@rpan93/ron-lib 0.0.8 → 1.0.2
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/esm2020/lib/custom-card/custom-card.component.mjs +19 -0
- package/esm2020/lib/custom-page/custom-page-routing.module.mjs +24 -0
- package/esm2020/lib/custom-page/custom-page.component.mjs +15 -0
- package/esm2020/lib/custom-page/custom-page.module.mjs +28 -0
- package/esm2020/lib/dashboard/dashboard-routing.module.mjs +24 -0
- package/esm2020/lib/dashboard/dashboard.module.mjs +41 -0
- package/esm2020/lib/dashboard/dashboard.page.mjs +38 -0
- package/esm2020/lib/ron-lib.component.mjs +26 -0
- package/esm2020/lib/ron-lib.module.mjs +51 -0
- package/esm2020/lib/ron-lib.service.mjs +28 -0
- package/esm2020/public-api.mjs +10 -0
- package/esm2020/rpan93-ron-lib.mjs +5 -0
- package/fesm2015/rpan93-ron-lib.mjs +268 -0
- package/fesm2015/rpan93-ron-lib.mjs.map +1 -0
- package/fesm2020/rpan93-ron-lib.mjs +266 -0
- package/fesm2020/rpan93-ron-lib.mjs.map +1 -0
- package/lib/custom-card/custom-card.component.d.ts +10 -0
- package/lib/custom-page/custom-page-routing.module.d.ts +7 -0
- package/lib/custom-page/custom-page.component.d.ts +8 -0
- package/lib/custom-page/custom-page.module.d.ts +11 -0
- package/lib/dashboard/dashboard-routing.module.d.ts +7 -0
- package/lib/dashboard/dashboard.module.d.ts +12 -0
- package/lib/dashboard/dashboard.page.d.ts +11 -0
- package/lib/ron-lib.component.d.ts +8 -0
- package/lib/ron-lib.module.d.ts +17 -0
- package/lib/ron-lib.service.d.ts +12 -0
- package/package.json +22 -6
- package/{src/public-api.ts → public-api.d.ts} +6 -10
- package/rpan93-ron-lib.d.ts +5 -0
- package/.browserslistrc +0 -16
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/custom-card/custom-card.component.css +0 -0
- package/src/lib/custom-card/custom-card.component.html +0 -8
- package/src/lib/custom-card/custom-card.component.spec.ts +0 -25
- package/src/lib/custom-card/custom-card.component.ts +0 -18
- package/src/lib/custom-page/custom-page-routing.module.ts +0 -18
- package/src/lib/custom-page/custom-page.component.css +0 -5
- package/src/lib/custom-page/custom-page.component.html +0 -15
- package/src/lib/custom-page/custom-page.component.spec.ts +0 -25
- package/src/lib/custom-page/custom-page.component.ts +0 -15
- package/src/lib/custom-page/custom-page.module.ts +0 -17
- package/src/lib/dashboard/dashboard-routing.module.ts +0 -17
- package/src/lib/dashboard/dashboard.module.ts +0 -23
- package/src/lib/dashboard/dashboard.page.html +0 -24
- package/src/lib/dashboard/dashboard.page.scss +0 -0
- package/src/lib/dashboard/dashboard.page.spec.ts +0 -24
- package/src/lib/dashboard/dashboard.page.ts +0 -37
- package/src/lib/ron-lib.component.spec.ts +0 -25
- package/src/lib/ron-lib.component.ts +0 -20
- package/src/lib/ron-lib.module.ts +0 -42
- package/src/lib/ron-lib.service.spec.ts +0 -16
- package/src/lib/ron-lib.service.ts +0 -19
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
| @@ -0,0 +1,8 @@ | |
| 1 | 
            +
            import { OnInit } from '@angular/core';
         | 
| 2 | 
            +
            import * as i0 from "@angular/core";
         | 
| 3 | 
            +
            export declare class CustomPageComponent implements OnInit {
         | 
| 4 | 
            +
                constructor();
         | 
| 5 | 
            +
                ngOnInit(): void;
         | 
| 6 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<CustomPageComponent, never>;
         | 
| 7 | 
            +
                static ɵcmp: i0.ɵɵComponentDeclaration<CustomPageComponent, "dev-custom-page", never, {}, {}, never, never>;
         | 
| 8 | 
            +
            }
         | 
| @@ -0,0 +1,11 @@ | |
| 1 | 
            +
            import * as i0 from "@angular/core";
         | 
| 2 | 
            +
            import * as i1 from "./custom-page.component";
         | 
| 3 | 
            +
            import * as i2 from "@angular/common";
         | 
| 4 | 
            +
            import * as i3 from "@angular/forms";
         | 
| 5 | 
            +
            import * as i4 from "@ionic/angular";
         | 
| 6 | 
            +
            import * as i5 from "./custom-page-routing.module";
         | 
| 7 | 
            +
            export declare class CustomPageModule {
         | 
| 8 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<CustomPageModule, never>;
         | 
| 9 | 
            +
                static ɵmod: i0.ɵɵNgModuleDeclaration<CustomPageModule, [typeof i1.CustomPageComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.IonicModule, typeof i5.CustomPageRoutingModule], never>;
         | 
| 10 | 
            +
                static ɵinj: i0.ɵɵInjectorDeclaration<CustomPageModule>;
         | 
| 11 | 
            +
            }
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            import * as i0 from "@angular/core";
         | 
| 2 | 
            +
            import * as i1 from "@angular/router";
         | 
| 3 | 
            +
            export declare class DashboardPageRoutingModule {
         | 
| 4 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPageRoutingModule, never>;
         | 
| 5 | 
            +
                static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardPageRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
         | 
| 6 | 
            +
                static ɵinj: i0.ɵɵInjectorDeclaration<DashboardPageRoutingModule>;
         | 
| 7 | 
            +
            }
         | 
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            import * as i0 from "@angular/core";
         | 
| 2 | 
            +
            import * as i1 from "./dashboard.page";
         | 
| 3 | 
            +
            import * as i2 from "@angular/common";
         | 
| 4 | 
            +
            import * as i3 from "@angular/forms";
         | 
| 5 | 
            +
            import * as i4 from "@ionic/angular";
         | 
| 6 | 
            +
            import * as i5 from "./dashboard-routing.module";
         | 
| 7 | 
            +
            import * as i6 from "@angular/common/http";
         | 
| 8 | 
            +
            export declare class DashboardPageModule {
         | 
| 9 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPageModule, never>;
         | 
| 10 | 
            +
                static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardPageModule, [typeof i1.DashboardPage], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.IonicModule, typeof i5.DashboardPageRoutingModule, typeof i6.HttpClientModule], never>;
         | 
| 11 | 
            +
                static ɵinj: i0.ɵɵInjectorDeclaration<DashboardPageModule>;
         | 
| 12 | 
            +
            }
         | 
| @@ -0,0 +1,11 @@ | |
| 1 | 
            +
            import { OnInit, ElementRef } from '@angular/core';
         | 
| 2 | 
            +
            import * as i0 from "@angular/core";
         | 
| 3 | 
            +
            export declare class DashboardPage implements OnInit {
         | 
| 4 | 
            +
                barChart: ElementRef;
         | 
| 5 | 
            +
                bars: any;
         | 
| 6 | 
            +
                constructor();
         | 
| 7 | 
            +
                ngOnInit(): void;
         | 
| 8 | 
            +
                createBarChart(): void;
         | 
| 9 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPage, never>;
         | 
| 10 | 
            +
                static ɵcmp: i0.ɵɵComponentDeclaration<DashboardPage, "app-dashboard", never, {}, {}, never, never>;
         | 
| 11 | 
            +
            }
         | 
| @@ -0,0 +1,8 @@ | |
| 1 | 
            +
            import { OnInit } from '@angular/core';
         | 
| 2 | 
            +
            import * as i0 from "@angular/core";
         | 
| 3 | 
            +
            export declare class RonLibComponent implements OnInit {
         | 
| 4 | 
            +
                constructor();
         | 
| 5 | 
            +
                ngOnInit(): void;
         | 
| 6 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<RonLibComponent, never>;
         | 
| 7 | 
            +
                static ɵcmp: i0.ɵɵComponentDeclaration<RonLibComponent, "dev-ron-lib", never, {}, {}, never, never>;
         | 
| 8 | 
            +
            }
         | 
| @@ -0,0 +1,17 @@ | |
| 1 | 
            +
            import { InjectionToken, ModuleWithProviders } from '@angular/core';
         | 
| 2 | 
            +
            import * as i0 from "@angular/core";
         | 
| 3 | 
            +
            import * as i1 from "./ron-lib.component";
         | 
| 4 | 
            +
            import * as i2 from "./custom-card/custom-card.component";
         | 
| 5 | 
            +
            import * as i3 from "@angular/common";
         | 
| 6 | 
            +
            import * as i4 from "@angular/common/http";
         | 
| 7 | 
            +
            import * as i5 from "@ionic/angular";
         | 
| 8 | 
            +
            export interface LibConfig {
         | 
| 9 | 
            +
                apiUrl: string;
         | 
| 10 | 
            +
            }
         | 
| 11 | 
            +
            export declare const LibConfigService: InjectionToken<LibConfig>;
         | 
| 12 | 
            +
            export declare class RonLibModule {
         | 
| 13 | 
            +
                static forRoot(config: LibConfig): ModuleWithProviders<any>;
         | 
| 14 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<RonLibModule, never>;
         | 
| 15 | 
            +
                static ɵmod: i0.ɵɵNgModuleDeclaration<RonLibModule, [typeof i1.RonLibComponent, typeof i2.CustomCardComponent], [typeof i3.CommonModule, typeof i4.HttpClientModule, typeof i5.IonicModule], [typeof i1.RonLibComponent, typeof i2.CustomCardComponent]>;
         | 
| 16 | 
            +
                static ɵinj: i0.ɵɵInjectorDeclaration<RonLibModule>;
         | 
| 17 | 
            +
            }
         | 
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            import { HttpClient } from '@angular/common/http';
         | 
| 2 | 
            +
            import { LibConfig } from './ron-lib.module';
         | 
| 3 | 
            +
            import * as i0 from "@angular/core";
         | 
| 4 | 
            +
            export declare class RonLibService {
         | 
| 5 | 
            +
                private config;
         | 
| 6 | 
            +
                private http;
         | 
| 7 | 
            +
                baseUrl: string;
         | 
| 8 | 
            +
                constructor(config: LibConfig, http: HttpClient);
         | 
| 9 | 
            +
                getData(): import("rxjs").Observable<any>;
         | 
| 10 | 
            +
                static ɵfac: i0.ɵɵFactoryDeclaration<RonLibService, never>;
         | 
| 11 | 
            +
                static ɵprov: i0.ɵɵInjectableDeclaration<RonLibService>;
         | 
| 12 | 
            +
            }
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "@rpan93/ron-lib",
         | 
| 3 | 
            -
              "version": " | 
| 3 | 
            +
              "version": "1.0.2",
         | 
| 4 4 | 
             
              "peerDependencies": {
         | 
| 5 5 | 
             
                "@angular/common": "^13.1.0",
         | 
| 6 6 | 
             
                "@angular/core": "^13.1.0",
         | 
| @@ -9,8 +9,24 @@ | |
| 9 9 | 
             
              "dependencies": {
         | 
| 10 10 | 
             
                "tslib": "^2.3.0"
         | 
| 11 11 | 
             
              },
         | 
| 12 | 
            -
              " | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
               | 
| 16 | 
            -
             | 
| 12 | 
            +
              "module": "fesm2015/rpan93-ron-lib.mjs",
         | 
| 13 | 
            +
              "es2020": "fesm2020/rpan93-ron-lib.mjs",
         | 
| 14 | 
            +
              "esm2020": "esm2020/rpan93-ron-lib.mjs",
         | 
| 15 | 
            +
              "fesm2020": "fesm2020/rpan93-ron-lib.mjs",
         | 
| 16 | 
            +
              "fesm2015": "fesm2015/rpan93-ron-lib.mjs",
         | 
| 17 | 
            +
              "typings": "rpan93-ron-lib.d.ts",
         | 
| 18 | 
            +
              "exports": {
         | 
| 19 | 
            +
                "./package.json": {
         | 
| 20 | 
            +
                  "default": "./package.json"
         | 
| 21 | 
            +
                },
         | 
| 22 | 
            +
                ".": {
         | 
| 23 | 
            +
                  "types": "./rpan93-ron-lib.d.ts",
         | 
| 24 | 
            +
                  "esm2020": "./esm2020/rpan93-ron-lib.mjs",
         | 
| 25 | 
            +
                  "es2020": "./fesm2020/rpan93-ron-lib.mjs",
         | 
| 26 | 
            +
                  "es2015": "./fesm2015/rpan93-ron-lib.mjs",
         | 
| 27 | 
            +
                  "node": "./fesm2015/rpan93-ron-lib.mjs",
         | 
| 28 | 
            +
                  "default": "./fesm2020/rpan93-ron-lib.mjs"
         | 
| 29 | 
            +
                }
         | 
| 30 | 
            +
              },
         | 
| 31 | 
            +
              "sideEffects": false
         | 
| 32 | 
            +
            }
         | 
| @@ -1,10 +1,6 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
             *  | 
| 3 | 
            -
              | 
| 4 | 
            -
             | 
| 5 | 
            -
            export * from './lib/ | 
| 6 | 
            -
            export * from './lib/ | 
| 7 | 
            -
            export * from './lib/ron-lib.module';
         | 
| 8 | 
            -
            export * from './lib/custom-card/custom-card.component';
         | 
| 9 | 
            -
            export * from './lib/custom-page/custom-page.module';
         | 
| 10 | 
            -
            export * from './lib/dashboard/dashboard.module';
         | 
| 1 | 
            +
            export * from './lib/ron-lib.service';
         | 
| 2 | 
            +
            export * from './lib/ron-lib.component';
         | 
| 3 | 
            +
            export * from './lib/ron-lib.module';
         | 
| 4 | 
            +
            export * from './lib/custom-card/custom-card.component';
         | 
| 5 | 
            +
            export * from './lib/custom-page/custom-page.module';
         | 
| 6 | 
            +
            export * from './lib/dashboard/dashboard.module';
         | 
    
        package/.browserslistrc
    DELETED
    
    | @@ -1,16 +0,0 @@ | |
| 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/karma.conf.js
    DELETED
    
    | @@ -1,44 +0,0 @@ | |
| 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/ron-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 | 
            -
            };
         | 
    
        package/ng-package.json
    DELETED
    
    
| 
            File without changes
         | 
| @@ -1,25 +0,0 @@ | |
| 1 | 
            -
            import { ComponentFixture, TestBed } from '@angular/core/testing';
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            import { CustomCardComponent } from './custom-card.component';
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            describe('CustomCardComponent', () => {
         | 
| 6 | 
            -
              let component: CustomCardComponent;
         | 
| 7 | 
            -
              let fixture: ComponentFixture<CustomCardComponent>;
         | 
| 8 | 
            -
             | 
| 9 | 
            -
              beforeEach(async () => {
         | 
| 10 | 
            -
                await TestBed.configureTestingModule({
         | 
| 11 | 
            -
                  declarations: [ CustomCardComponent ]
         | 
| 12 | 
            -
                })
         | 
| 13 | 
            -
                .compileComponents();
         | 
| 14 | 
            -
              });
         | 
| 15 | 
            -
             | 
| 16 | 
            -
              beforeEach(() => {
         | 
| 17 | 
            -
                fixture = TestBed.createComponent(CustomCardComponent);
         | 
| 18 | 
            -
                component = fixture.componentInstance;
         | 
| 19 | 
            -
                fixture.detectChanges();
         | 
| 20 | 
            -
              });
         | 
| 21 | 
            -
             | 
| 22 | 
            -
              it('should create', () => {
         | 
| 23 | 
            -
                expect(component).toBeTruthy();
         | 
| 24 | 
            -
              });
         | 
| 25 | 
            -
            });
         | 
| @@ -1,18 +0,0 @@ | |
| 1 | 
            -
            import { Component, OnInit, Input  } from '@angular/core';
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            @Component({
         | 
| 4 | 
            -
              selector: 'dev-custom-card',
         | 
| 5 | 
            -
              templateUrl: './custom-card.component.html',
         | 
| 6 | 
            -
              styleUrls: ['./custom-card.component.css']
         | 
| 7 | 
            -
            })
         | 
| 8 | 
            -
            export class CustomCardComponent implements OnInit {
         | 
| 9 | 
            -
              @Input()
         | 
| 10 | 
            -
              title!: string;
         | 
| 11 | 
            -
              @Input()
         | 
| 12 | 
            -
              content!: string;
         | 
| 13 | 
            -
              constructor() { }
         | 
| 14 | 
            -
             | 
| 15 | 
            -
              ngOnInit(): void {
         | 
| 16 | 
            -
              }
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            }
         | 
| @@ -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 | 
            -
            }
         | 
| @@ -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,17 +0,0 @@ | |
| 1 | 
            -
            import { NgModule } from '@angular/core';
         | 
| 2 | 
            -
            import { Routes, RouterModule } from '@angular/router';
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            import { DashboardPage } from './dashboard.page';
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            const routes: Routes = [
         | 
| 7 | 
            -
              {
         | 
| 8 | 
            -
                path: '',
         | 
| 9 | 
            -
                component: DashboardPage
         | 
| 10 | 
            -
              }
         | 
| 11 | 
            -
            ];
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            @NgModule({
         | 
| 14 | 
            -
              imports: [RouterModule.forChild(routes)],
         | 
| 15 | 
            -
              exports: [RouterModule],
         | 
| 16 | 
            -
            })
         | 
| 17 | 
            -
            export class DashboardPageRoutingModule {}
         | 
| @@ -1,23 +0,0 @@ | |
| 1 | 
            -
            import { NgModule } from '@angular/core';
         | 
| 2 | 
            -
            import { CommonModule } from '@angular/common';
         | 
| 3 | 
            -
            import { FormsModule } from '@angular/forms';
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            import { IonicModule } from '@ionic/angular';
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            import { DashboardPageRoutingModule } from './dashboard-routing.module';
         | 
| 8 | 
            -
             | 
| 9 | 
            -
            import { DashboardPage } from './dashboard.page';
         | 
| 10 | 
            -
            import { ChartModule } from 'angular2-chartjs';
         | 
| 11 | 
            -
            import { HttpClientModule } from '@angular/common/http';
         | 
| 12 | 
            -
            @NgModule({
         | 
| 13 | 
            -
              imports: [
         | 
| 14 | 
            -
                CommonModule,
         | 
| 15 | 
            -
                FormsModule,
         | 
| 16 | 
            -
                IonicModule,
         | 
| 17 | 
            -
                DashboardPageRoutingModule,
         | 
| 18 | 
            -
                ChartModule,
         | 
| 19 | 
            -
                HttpClientModule
         | 
| 20 | 
            -
              ],
         | 
| 21 | 
            -
              declarations: [DashboardPage]
         | 
| 22 | 
            -
            })
         | 
| 23 | 
            -
            export class DashboardPageModule {}
         | 
| @@ -1,24 +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 Dashboard Page
         | 
| 8 | 
            -
                  </ion-title>
         | 
| 9 | 
            -
                </ion-buttons>
         | 
| 10 | 
            -
              </ion-toolbar>
         | 
| 11 | 
            -
            </ion-header>
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            <ion-content>
         | 
| 14 | 
            -
            Dashboard
         | 
| 15 | 
            -
            <ion-card class="welcome-card">
         | 
| 16 | 
            -
              <ion-card-header>
         | 
| 17 | 
            -
                <ion-card-subtitle>Authorizations</ion-card-subtitle>
         | 
| 18 | 
            -
                <ion-card-title>Transaction details</ion-card-title>
         | 
| 19 | 
            -
              </ion-card-header>
         | 
| 20 | 
            -
              <ion-card-content>
         | 
| 21 | 
            -
                <!-- <canvas #barChart></canvas> -->
         | 
| 22 | 
            -
              </ion-card-content>
         | 
| 23 | 
            -
            </ion-card>
         | 
| 24 | 
            -
            </ion-content>
         | 
| 
            File without changes
         | 
| @@ -1,24 +0,0 @@ | |
| 1 | 
            -
            import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
         | 
| 2 | 
            -
            import { IonicModule } from '@ionic/angular';
         | 
| 3 | 
            -
             | 
| 4 | 
            -
            import { DashboardPage } from './dashboard.page';
         | 
| 5 | 
            -
             | 
| 6 | 
            -
            describe('DashboardPage', () => {
         | 
| 7 | 
            -
              let component: DashboardPage;
         | 
| 8 | 
            -
              let fixture: ComponentFixture<DashboardPage>;
         | 
| 9 | 
            -
             | 
| 10 | 
            -
              beforeEach(waitForAsync(() => {
         | 
| 11 | 
            -
                TestBed.configureTestingModule({
         | 
| 12 | 
            -
                  declarations: [ DashboardPage ],
         | 
| 13 | 
            -
                  imports: [IonicModule.forRoot()]
         | 
| 14 | 
            -
                }).compileComponents();
         | 
| 15 | 
            -
             | 
| 16 | 
            -
                fixture = TestBed.createComponent(DashboardPage);
         | 
| 17 | 
            -
                component = fixture.componentInstance;
         | 
| 18 | 
            -
                fixture.detectChanges();
         | 
| 19 | 
            -
              }));
         | 
| 20 | 
            -
             | 
| 21 | 
            -
              it('should create', () => {
         | 
| 22 | 
            -
                expect(component).toBeTruthy();
         | 
| 23 | 
            -
              });
         | 
| 24 | 
            -
            });
         | 
| @@ -1,37 +0,0 @@ | |
| 1 | 
            -
            import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
         | 
| 2 | 
            -
            import { Chart } from "chart.js";
         | 
| 3 | 
            -
            import { HttpClient } from '@angular/common/http';
         | 
| 4 | 
            -
            @Component({
         | 
| 5 | 
            -
              selector: 'app-dashboard',
         | 
| 6 | 
            -
              templateUrl: './dashboard.page.html',
         | 
| 7 | 
            -
              styleUrls: ['./dashboard.page.scss'],
         | 
| 8 | 
            -
            })
         | 
| 9 | 
            -
            export class DashboardPage implements OnInit {
         | 
| 10 | 
            -
              // @ViewChild('barChart', {static: true}) barChart: ElementRef;
         | 
| 11 | 
            -
              // bars: any;
         | 
| 12 | 
            -
              // constructor(){}
         | 
| 13 | 
            -
             | 
| 14 | 
            -
              ngOnInit() {
         | 
| 15 | 
            -
                // this.createBarChart();
         | 
| 16 | 
            -
              }
         | 
| 17 | 
            -
            //   createBarChart() {
         | 
| 18 | 
            -
            //     this.bars = new Chart(this.barChart.nativeElement, {
         | 
| 19 | 
            -
            //       type: 'bar',
         | 
| 20 | 
            -
            //       data: {
         | 
| 21 | 
            -
            //         labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],
         | 
| 22 | 
            -
            //         datasets: [{
         | 
| 23 | 
            -
            //           label: 'Transactions in millions',
         | 
| 24 | 
            -
            //           data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],
         | 
| 25 | 
            -
            //           backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset
         | 
| 26 | 
            -
            //           borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset
         | 
| 27 | 
            -
            //           borderWidth: 1
         | 
| 28 | 
            -
            //         }]
         | 
| 29 | 
            -
            //       },
         | 
| 30 | 
            -
            //       options: {
         | 
| 31 | 
            -
            //         scales: {
         | 
| 32 | 
            -
                     
         | 
| 33 | 
            -
            //         }
         | 
| 34 | 
            -
            //       }
         | 
| 35 | 
            -
            //     });
         | 
| 36 | 
            -
            //  }
         | 
| 37 | 
            -
            }
         | 
| @@ -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 | 
            -
            }
         |