@rpan93/ron-lib 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/esm2020/lib/custom-card/custom-card.component.mjs +19 -0
  2. package/esm2020/lib/custom-page/custom-page-routing.module.mjs +24 -0
  3. package/esm2020/lib/custom-page/custom-page.component.mjs +15 -0
  4. package/esm2020/lib/custom-page/custom-page.module.mjs +28 -0
  5. package/esm2020/lib/dashboard/dashboard-routing.module.mjs +24 -0
  6. package/esm2020/lib/dashboard/dashboard.module.mjs +41 -0
  7. package/esm2020/lib/dashboard/dashboard.page.mjs +18 -0
  8. package/esm2020/lib/ron-lib.component.mjs +26 -0
  9. package/esm2020/lib/ron-lib.module.mjs +51 -0
  10. package/esm2020/lib/ron-lib.service.mjs +28 -0
  11. package/esm2020/public-api.mjs +10 -0
  12. package/esm2020/rpan93-ron-lib.mjs +5 -0
  13. package/fesm2015/rpan93-ron-lib.mjs +248 -0
  14. package/fesm2015/rpan93-ron-lib.mjs.map +1 -0
  15. package/fesm2020/rpan93-ron-lib.mjs +246 -0
  16. package/fesm2020/rpan93-ron-lib.mjs.map +1 -0
  17. package/lib/custom-card/custom-card.component.d.ts +10 -0
  18. package/lib/custom-page/custom-page-routing.module.d.ts +7 -0
  19. package/lib/custom-page/custom-page.component.d.ts +8 -0
  20. package/lib/custom-page/custom-page.module.d.ts +11 -0
  21. package/lib/dashboard/dashboard-routing.module.d.ts +7 -0
  22. package/lib/dashboard/dashboard.module.d.ts +12 -0
  23. package/lib/dashboard/dashboard.page.d.ts +7 -0
  24. package/lib/ron-lib.component.d.ts +8 -0
  25. package/lib/ron-lib.module.d.ts +17 -0
  26. package/lib/ron-lib.service.d.ts +12 -0
  27. package/package.json +24 -6
  28. package/{src/public-api.ts → public-api.d.ts} +6 -9
  29. package/rpan93-ron-lib.d.ts +5 -0
  30. package/.browserslistrc +0 -16
  31. package/karma.conf.js +0 -44
  32. package/ng-package.json +0 -7
  33. package/src/lib/custom-card/custom-card.component.css +0 -0
  34. package/src/lib/custom-card/custom-card.component.html +0 -8
  35. package/src/lib/custom-card/custom-card.component.spec.ts +0 -25
  36. package/src/lib/custom-card/custom-card.component.ts +0 -19
  37. package/src/lib/custom-page/custom-page-routing.module.ts +0 -18
  38. package/src/lib/custom-page/custom-page.component.css +0 -0
  39. package/src/lib/custom-page/custom-page.component.html +0 -15
  40. package/src/lib/custom-page/custom-page.component.spec.ts +0 -25
  41. package/src/lib/custom-page/custom-page.component.ts +0 -15
  42. package/src/lib/custom-page/custom-page.module.ts +0 -17
  43. package/src/lib/ron-lib.component.spec.ts +0 -25
  44. package/src/lib/ron-lib.component.ts +0 -20
  45. package/src/lib/ron-lib.module.ts +0 -42
  46. package/src/lib/ron-lib.service.spec.ts +0 -16
  47. package/src/lib/ron-lib.service.ts +0 -19
  48. package/src/test.ts +0 -27
  49. package/tsconfig.lib.json +0 -15
  50. package/tsconfig.lib.prod.json +0 -10
  51. package/tsconfig.spec.json +0 -17
@@ -1,18 +0,0 @@
1
- import { CustomPageComponent } from './custom-page.component';
2
- import { NgModule } from '@angular/core';
3
- import { RouterModule, Routes } from '@angular/router';
4
-
5
- const routes : Routes = [
6
- {
7
- path: '',
8
- component: CustomPageComponent,
9
- }
10
- ];
11
-
12
- @NgModule({
13
- imports: [RouterModule.forChild(routes)],
14
- exports: [RouterModule]
15
- })
16
- export class CustomPageRoutingModule{
17
-
18
- }
File without changes
@@ -1,15 +0,0 @@
1
- <ion-header>
2
- <ion-toolbar color="primary">
3
- <ion-buttons slot="start">
4
- <ion-back-button defaultHref="/">
5
- </ion-back-button>
6
- <ion-title>
7
- Ron Lib Page
8
- </ion-title>
9
- </ion-buttons>
10
- </ion-toolbar>
11
- </ion-header>
12
- <ion-content>
13
- <div class="custom-box"></div>
14
- This is a full page from the library!
15
- </ion-content>
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CustomPageComponent } from './custom-page.component';
4
-
5
- describe('CustomPageComponent', () => {
6
- let component: CustomPageComponent;
7
- let fixture: ComponentFixture<CustomPageComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ CustomPageComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(CustomPageComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,15 +0,0 @@
1
- import { Component, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'dev-custom-page',
5
- templateUrl: './custom-page.component.html',
6
- styleUrls: ['./custom-page.component.css']
7
- })
8
- export class CustomPageComponent implements OnInit {
9
-
10
- constructor() { }
11
-
12
- ngOnInit(): void {
13
- }
14
-
15
- }
@@ -1,17 +0,0 @@
1
- import { CustomPageComponent } from "./custom-page.component";
2
- import { CustomPageRoutingModule } from "./custom-page-routing.module";
3
- import { NgModule } from '@angular/core';
4
- import { CommonModule } from '@angular/common';
5
- import { IonicModule } from '@ionic/angular';
6
- import { FormsModule } from '@angular/forms';
7
-
8
- @NgModule({
9
- imports:[CommonModule,FormsModule,
10
- IonicModule,
11
- CustomPageRoutingModule
12
- ],
13
- declarations: [CustomPageComponent]
14
- })
15
- export class CustomPageModule{
16
-
17
- }
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { RonLibComponent } from './ron-lib.component';
4
-
5
- describe('RonLibComponent', () => {
6
- let component: RonLibComponent;
7
- let fixture: ComponentFixture<RonLibComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ RonLibComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(RonLibComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,20 +0,0 @@
1
- import { Component, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'dev-ron-lib',
5
- template: `
6
- <p>
7
- ron-lib works!
8
- </p>
9
- `,
10
- styles: [
11
- ]
12
- })
13
- export class RonLibComponent implements OnInit {
14
-
15
- constructor() { }
16
-
17
- ngOnInit(): void {
18
- }
19
-
20
- }
@@ -1,42 +0,0 @@
1
- import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';
2
- import { RonLibComponent } from './ron-lib.component';
3
- import { CustomCardComponent } from './custom-card/custom-card.component';
4
- import { CustomPageComponent } from './custom-page/custom-page.component';
5
-
6
- import { IonicModule } from '@ionic/angular';
7
- import { HttpClientModule } from '@angular/common/http';
8
- import { CommonModule } from '@angular/common';
9
- import { RonLibService } from './ron-lib.service';
10
-
11
- export interface LibConfig {
12
- apiUrl: string;
13
- }
14
- export const LibConfigService = new InjectionToken<LibConfig>('LibConfig');
15
- @NgModule({
16
- declarations: [
17
- RonLibComponent,
18
- CustomCardComponent
19
- ],
20
- imports: [
21
- CommonModule,
22
- HttpClientModule,
23
- IonicModule
24
- ],
25
- exports: [
26
- RonLibComponent, CustomCardComponent
27
- ]
28
- })
29
- export class RonLibModule {
30
- static forRoot(config: LibConfig): ModuleWithProviders<any> {
31
- return {
32
- ngModule: RonLibModule,
33
- providers: [
34
- RonLibService,
35
- {
36
- provide: LibConfigService,
37
- useValue: config
38
- }
39
- ]
40
- };
41
- }
42
- }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { RonLibService } from './ron-lib.service';
4
-
5
- describe('RonLibService', () => {
6
- let service: RonLibService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(RonLibService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });
@@ -1,19 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Inject, Injectable } from '@angular/core';
3
- import { LibConfigService, LibConfig } from './ron-lib.module';
4
- import { map } from 'rxjs/operators';
5
-
6
- @Injectable({
7
- providedIn: 'root'
8
- })
9
- export class RonLibService {
10
- baseUrl = this.config.apiUrl;
11
- constructor(@Inject(LibConfigService) private config: LibConfig, private http: HttpClient) {
12
- console.log('My config: ', config);
13
- }
14
- getData() {
15
- return this.http.get<any>(`${this.baseUrl}/api`).pipe(
16
- map((res: any) => res.results[0])
17
- )
18
- }
19
- }
package/src/test.ts DELETED
@@ -1,27 +0,0 @@
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);
package/tsconfig.lib.json DELETED
@@ -1,15 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
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
- }