@rpan93/ron-lib 0.0.1 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/.browserslistrc +16 -0
  2. package/karma.conf.js +44 -0
  3. package/ng-package.json +7 -0
  4. package/package.json +21 -23
  5. package/src/lib/custom-card/custom-card.component.css +0 -0
  6. package/src/lib/custom-card/custom-card.component.html +8 -0
  7. package/src/lib/custom-card/custom-card.component.spec.ts +25 -0
  8. package/src/lib/custom-card/custom-card.component.ts +18 -0
  9. package/src/lib/custom-page/custom-page-routing.module.ts +18 -0
  10. package/src/lib/custom-page/custom-page.component.css +5 -0
  11. package/src/lib/custom-page/custom-page.component.html +15 -0
  12. package/src/lib/custom-page/custom-page.component.spec.ts +25 -0
  13. package/src/lib/custom-page/custom-page.component.ts +15 -0
  14. package/src/lib/custom-page/custom-page.module.ts +17 -0
  15. package/src/lib/dashboard/dashboard-routing.module.ts +17 -0
  16. package/src/lib/dashboard/dashboard.module.ts +23 -0
  17. package/src/lib/dashboard/dashboard.page.html +24 -0
  18. package/src/lib/dashboard/dashboard.page.scss +0 -0
  19. package/src/lib/dashboard/dashboard.page.spec.ts +24 -0
  20. package/src/lib/dashboard/dashboard.page.ts +47 -0
  21. package/src/lib/ron-lib.component.spec.ts +25 -0
  22. package/src/lib/ron-lib.component.ts +20 -0
  23. package/src/lib/ron-lib.module.ts +42 -0
  24. package/src/lib/ron-lib.service.spec.ts +16 -0
  25. package/src/lib/ron-lib.service.ts +19 -0
  26. package/{public-api.d.ts → src/public-api.ts} +10 -4
  27. package/src/test.ts +27 -0
  28. package/tsconfig.lib.json +15 -0
  29. package/tsconfig.lib.prod.json +10 -0
  30. package/tsconfig.spec.json +17 -0
  31. package/esm2020/lib/custom-card/custom-card.component.mjs +0 -19
  32. package/esm2020/lib/custom-page/custom-page.component.mjs +0 -14
  33. package/esm2020/lib/ron-lib.component.mjs +0 -26
  34. package/esm2020/lib/ron-lib.module.mjs +0 -54
  35. package/esm2020/lib/ron-lib.service.mjs +0 -28
  36. package/esm2020/public-api.mjs +0 -8
  37. package/esm2020/rpan93-ron-lib.mjs +0 -5
  38. package/fesm2015/rpan93-ron-lib.mjs +0 -141
  39. package/fesm2015/rpan93-ron-lib.mjs.map +0 -1
  40. package/fesm2020/rpan93-ron-lib.mjs +0 -139
  41. package/fesm2020/rpan93-ron-lib.mjs.map +0 -1
  42. package/lib/custom-card/custom-card.component.d.ts +0 -10
  43. package/lib/custom-page/custom-page.component.d.ts +0 -8
  44. package/lib/ron-lib.component.d.ts +0 -8
  45. package/lib/ron-lib.module.d.ts +0 -18
  46. package/lib/ron-lib.service.d.ts +0 -12
  47. package/rpan93-ron-lib.d.ts +0 -5
@@ -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/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/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
+ };
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/ron-lib",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,31 +1,29 @@
1
1
  {
2
2
  "name": "@rpan93/ron-lib",
3
- "version": "0.0.1",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
- "@angular/core": "^13.1.0"
6
+ "@angular/core": "^13.1.0",
7
+ "@angular/forms": "^13.1.0",
8
+ "@angular/platform-browser": "^13.1.0",
9
+ "@angular/platform-browser-dynamic": "^13.1.0",
10
+ "@angular/router": "^13.1.0",
11
+ "@capacitor/app": "1.0.7",
12
+ "@capacitor/core": "3.3.4",
13
+ "@capacitor/haptics": "1.1.3",
14
+ "@capacitor/keyboard": "1.2.0",
15
+ "@capacitor/status-bar": "1.0.6",
16
+ "@ionic/angular": "^6.0.2",
17
+ "chart.js": "^3.7.0",
18
+ "rxjs": "~6.6.0",
19
+ "zone.js": "~0.11.4"
7
20
  },
8
21
  "dependencies": {
9
22
  "tslib": "^2.3.0"
10
23
  },
11
- "module": "fesm2015/rpan93-ron-lib.mjs",
12
- "es2020": "fesm2020/rpan93-ron-lib.mjs",
13
- "esm2020": "esm2020/rpan93-ron-lib.mjs",
14
- "fesm2020": "fesm2020/rpan93-ron-lib.mjs",
15
- "fesm2015": "fesm2015/rpan93-ron-lib.mjs",
16
- "typings": "rpan93-ron-lib.d.ts",
17
- "exports": {
18
- "./package.json": {
19
- "default": "./package.json"
20
- },
21
- ".": {
22
- "types": "./rpan93-ron-lib.d.ts",
23
- "esm2020": "./esm2020/rpan93-ron-lib.mjs",
24
- "es2020": "./fesm2020/rpan93-ron-lib.mjs",
25
- "es2015": "./fesm2015/rpan93-ron-lib.mjs",
26
- "node": "./fesm2015/rpan93-ron-lib.mjs",
27
- "default": "./fesm2020/rpan93-ron-lib.mjs"
28
- }
29
- },
30
- "sideEffects": false
31
- }
24
+ "devDependencies": {
25
+ "@ionic/angular": "^6.0.2",
26
+ "chart.js": "^3.7.0",
27
+ "ng2-charts": "^3.0.7"
28
+ }
29
+ }
File without changes
@@ -0,0 +1,8 @@
1
+ <ion-card>
2
+ <ion-card-header>
3
+ <ion-card-title>{{ title }}</ion-card-title>
4
+ </ion-card-header>
5
+ <ion-card-content>
6
+ {{ content }}
7
+ </ion-card-content>
8
+ </ion-card>
@@ -0,0 +1,25 @@
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
+ });
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ .custom-box {
2
+ background: var(--custom-background, #ff00ff);
3
+ width: 100%;
4
+ height: 100px;
5
+ }
@@ -0,0 +1,15 @@
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>
@@ -0,0 +1,25 @@
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
+ });
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,17 @@
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
+ }
@@ -0,0 +1,17 @@
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 {}
@@ -0,0 +1,23 @@
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 {}
@@ -0,0 +1,24 @@
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>Number of Viewers per season for</ion-card-subtitle>
18
+ <ion-card-title>Game of Thrones</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
@@ -0,0 +1,24 @@
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
+ });
@@ -0,0 +1,47 @@
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
+ apiData: any;
13
+ colorArray: any;
14
+ constructor( private http: HttpClient ){}
15
+
16
+ ngOnInit() {
17
+ this.createBarChart();
18
+ }
19
+ fetchData() {
20
+ const my_url = 'http://www.mocky.io/v2/5d28754a2c000066003eda63?mocky-delay=3000ms'
21
+ this.http.get(my_url).subscribe(data => {
22
+ console.log(data);
23
+ this.apiData = data;
24
+ })
25
+ }
26
+
27
+ createBarChart() {
28
+ this.bars = new Chart(this.barChart.nativeElement, {
29
+ type: 'bar',
30
+ data: {
31
+ labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],
32
+ datasets: [{
33
+ label: 'Viewers in millions',
34
+ data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],
35
+ backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset
36
+ borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset
37
+ borderWidth: 1
38
+ }]
39
+ },
40
+ options: {
41
+ scales: {
42
+
43
+ }
44
+ }
45
+ });
46
+ }
47
+ }
@@ -0,0 +1,25 @@
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
+ });
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,42 @@
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
+ }
@@ -0,0 +1,16 @@
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
+ });
@@ -0,0 +1,19 @@
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
+ }
@@ -1,4 +1,10 @@
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';
1
+ /*
2
+ * Public API Surface of ron-lib
3
+ */
4
+
5
+ export * from './lib/ron-lib.service';
6
+ export * from './lib/ron-lib.component';
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';
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
+ }
@@ -1,19 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@ionic/angular";
4
- export class CustomCardComponent {
5
- constructor() { }
6
- ngOnInit() {
7
- }
8
- }
9
- CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- CustomCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomCardComponent, selector: "dev-custom-card", inputs: { title: "title", content: "content" }, ngImport: i0, template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""], components: [{ type: i1.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }, { type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }] });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
12
- type: Component,
13
- args: [{ selector: 'dev-custom-card', template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""] }]
14
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
15
- type: Input
16
- }], content: [{
17
- type: Input
18
- }] } });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLWNhcmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcm9uLWxpYi9zcmMvbGliL2N1c3RvbS1jYXJkL2N1c3RvbS1jYXJkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Jvbi1saWIvc3JjL2xpYi9jdXN0b20tY2FyZC9jdXN0b20tY2FyZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRyxNQUFNLGVBQWUsQ0FBQzs7O0FBTzFELE1BQU0sT0FBTyxtQkFBbUI7SUFLOUIsZ0JBQWdCLENBQUM7SUFFakIsUUFBUTtJQUNSLENBQUM7O2dIQVJVLG1CQUFtQjtvR0FBbkIsbUJBQW1CLHVHQ1BoQyx3TUFRQTsyRkREYSxtQkFBbUI7a0JBTC9CLFNBQVM7K0JBQ0UsaUJBQWlCOzBFQU0zQixLQUFLO3NCQURKLEtBQUs7Z0JBR04sT0FBTztzQkFETixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQsIElucHV0ICB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdkZXYtY3VzdG9tLWNhcmQnLFxuICB0ZW1wbGF0ZVVybDogJy4vY3VzdG9tLWNhcmQuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9jdXN0b20tY2FyZC5jb21wb25lbnQuY3NzJ11cbn0pXG5leHBvcnQgY2xhc3MgQ3VzdG9tQ2FyZENvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIEBJbnB1dCgpXG4gIHRpdGxlITogc3RyaW5nO1xuICBASW5wdXQoKVxuICBjb250ZW50ITogc3RyaW5nO1xuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICB9XG5cbn1cbiIsIjxpb24tY2FyZD5cbiAgICA8aW9uLWNhcmQtaGVhZGVyPlxuICAgICAgICA8aW9uLWNhcmQtdGl0bGU+e3sgdGl0bGUgfX08L2lvbi1jYXJkLXRpdGxlPlxuICAgIDwvaW9uLWNhcmQtaGVhZGVyPlxuICAgIDxpb24tY2FyZC1jb250ZW50PlxuICAgICAgICB7eyBjb250ZW50IH19XG4gICAgPC9pb24tY2FyZC1jb250ZW50PlxuPC9pb24tY2FyZD5cbiJdfQ==
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class CustomPageComponent {
4
- constructor() { }
5
- ngOnInit() {
6
- }
7
- }
8
- CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- CustomPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomPageComponent, selector: "dev-custom-page", ngImport: i0, template: "<p>custom-page works!</p>\n", styles: [""] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
11
- type: Component,
12
- args: [{ selector: 'dev-custom-page', template: "<p>custom-page works!</p>\n", styles: [""] }]
13
- }], ctorParameters: function () { return []; } });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLXBhZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcm9uLWxpYi9zcmMvbGliL2N1c3RvbS1wYWdlL2N1c3RvbS1wYWdlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Jvbi1saWIvc3JjL2xpYi9jdXN0b20tcGFnZS9jdXN0b20tcGFnZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDOztBQU9sRCxNQUFNLE9BQU8sbUJBQW1CO0lBRTlCLGdCQUFnQixDQUFDO0lBRWpCLFFBQVE7SUFDUixDQUFDOztnSEFMVSxtQkFBbUI7b0dBQW5CLG1CQUFtQix1RENQaEMsNkJBQ0E7MkZETWEsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLGlCQUFpQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Rldi1jdXN0b20tcGFnZScsXG4gIHRlbXBsYXRlVXJsOiAnLi9jdXN0b20tcGFnZS5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL2N1c3RvbS1wYWdlLmNvbXBvbmVudC5jc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBDdXN0b21QYWdlQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICB9XG5cbn1cbiIsIjxwPmN1c3RvbS1wYWdlIHdvcmtzITwvcD5cbiJdfQ==
@@ -1,26 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class RonLibComponent {
4
- constructor() { }
5
- ngOnInit() {
6
- }
7
- }
8
- RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9
- RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
10
- <p>
11
- ron-lib works!
12
- </p>
13
- `, isInline: true });
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
15
- type: Component,
16
- args: [{
17
- selector: 'dev-ron-lib',
18
- template: `
19
- <p>
20
- ron-lib works!
21
- </p>
22
- `,
23
- styles: []
24
- }]
25
- }], ctorParameters: function () { return []; } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9uLWxpYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9yb24tbGliL3NyYy9saWIvcm9uLWxpYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7QUFZbEQsTUFBTSxPQUFPLGVBQWU7SUFFMUIsZ0JBQWdCLENBQUM7SUFFakIsUUFBUTtJQUNSLENBQUM7OzRHQUxVLGVBQWU7Z0dBQWYsZUFBZSxtREFSaEI7Ozs7R0FJVDsyRkFJVSxlQUFlO2tCQVYzQixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxhQUFhO29CQUN2QixRQUFRLEVBQUU7Ozs7R0FJVDtvQkFDRCxNQUFNLEVBQUUsRUFDUDtpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Rldi1yb24tbGliJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8cD5cbiAgICAgIHJvbi1saWIgd29ya3MhXG4gICAgPC9wPlxuICBgLFxuICBzdHlsZXM6IFtcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBSb25MaWJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxufVxuIl19
@@ -1,54 +0,0 @@
1
- import { InjectionToken, 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
- import { IonicModule } from '@ionic/angular';
6
- import { HttpClientModule } from '@angular/common/http';
7
- import { CommonModule } from '@angular/common';
8
- import { RonLibService } from './ron-lib.service';
9
- import * as i0 from "@angular/core";
10
- export const LibConfigService = new InjectionToken('LibConfig');
11
- export class RonLibModule {
12
- static forRoot(config) {
13
- return {
14
- ngModule: RonLibModule,
15
- providers: [
16
- RonLibService,
17
- {
18
- provide: LibConfigService,
19
- useValue: config
20
- }
21
- ]
22
- };
23
- }
24
- }
25
- RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
26
- RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
27
- CustomCardComponent,
28
- CustomPageComponent], imports: [CommonModule,
29
- HttpClientModule,
30
- IonicModule], exports: [RonLibComponent, CustomCardComponent] });
31
- RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
32
- CommonModule,
33
- HttpClientModule,
34
- IonicModule
35
- ]] });
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
37
- type: NgModule,
38
- args: [{
39
- declarations: [
40
- RonLibComponent,
41
- CustomCardComponent,
42
- CustomPageComponent
43
- ],
44
- imports: [
45
- CommonModule,
46
- HttpClientModule,
47
- IonicModule
48
- ],
49
- exports: [
50
- RonLibComponent, CustomCardComponent
51
- ]
52
- }]
53
- }] });
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9uLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9yb24tbGliL3NyYy9saWIvcm9uLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGNBQWMsRUFBd0IsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUMxRSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUUxRSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDeEQsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7QUFLbEQsTUFBTSxDQUFDLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxjQUFjLENBQVksV0FBVyxDQUFDLENBQUM7QUFnQjNFLE1BQU0sT0FBTyxZQUFZO0lBQ3ZCLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBaUI7UUFDOUIsT0FBTztZQUNMLFFBQVEsRUFBRSxZQUFZO1lBQ3RCLFNBQVMsRUFBRTtnQkFDVCxhQUFhO2dCQUNiO29CQUNFLE9BQU8sRUFBRSxnQkFBZ0I7b0JBQ3pCLFFBQVEsRUFBRSxNQUFNO2lCQUNqQjthQUNGO1NBQ0YsQ0FBQztJQUNKLENBQUM7O3lHQVpVLFlBQVk7MEdBQVosWUFBWSxpQkFickIsZUFBZTtRQUNmLG1CQUFtQjtRQUNuQixtQkFBbUIsYUFHbkIsWUFBWTtRQUNaLGdCQUFnQjtRQUNoQixXQUFXLGFBR1gsZUFBZSxFQUFFLG1CQUFtQjswR0FHM0IsWUFBWSxZQVRkO1lBQ1AsWUFBWTtZQUNaLGdCQUFnQjtZQUNoQixXQUFXO1NBQ1o7MkZBS1UsWUFBWTtrQkFmeEIsUUFBUTttQkFBQztvQkFDUixZQUFZLEVBQUU7d0JBQ1osZUFBZTt3QkFDZixtQkFBbUI7d0JBQ25CLG1CQUFtQjtxQkFDcEI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLFlBQVk7d0JBQ1osZ0JBQWdCO3dCQUNoQixXQUFXO3FCQUNaO29CQUNELE9BQU8sRUFBRTt3QkFDUCxlQUFlLEVBQUUsbUJBQW1CO3FCQUNyQztpQkFDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuLCAgTW9kdWxlV2l0aFByb3ZpZGVycywgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFJvbkxpYkNvbXBvbmVudCB9IGZyb20gJy4vcm9uLWxpYi5jb21wb25lbnQnO1xuaW1wb3J0IHsgQ3VzdG9tQ2FyZENvbXBvbmVudCB9IGZyb20gJy4vY3VzdG9tLWNhcmQvY3VzdG9tLWNhcmQuY29tcG9uZW50JztcbmltcG9ydCB7IEN1c3RvbVBhZ2VDb21wb25lbnQgfSBmcm9tICcuL2N1c3RvbS1wYWdlL2N1c3RvbS1wYWdlLmNvbXBvbmVudCc7XG5cbmltcG9ydCB7IElvbmljTW9kdWxlIH0gZnJvbSAnQGlvbmljL2FuZ3VsYXInO1xuaW1wb3J0IHsgSHR0cENsaWVudE1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbi9odHRwJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBSb25MaWJTZXJ2aWNlIH0gZnJvbSAnLi9yb24tbGliLnNlcnZpY2UnO1xuIFxuZXhwb3J0IGludGVyZmFjZSBMaWJDb25maWcge1xuICBhcGlVcmw6IHN0cmluZztcbn1cbmV4cG9ydCBjb25zdCBMaWJDb25maWdTZXJ2aWNlID0gbmV3IEluamVjdGlvblRva2VuPExpYkNvbmZpZz4oJ0xpYkNvbmZpZycpO1xuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgUm9uTGliQ29tcG9uZW50LFxuICAgIEN1c3RvbUNhcmRDb21wb25lbnQsXG4gICAgQ3VzdG9tUGFnZUNvbXBvbmVudFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEh0dHBDbGllbnRNb2R1bGUsXG4gICAgSW9uaWNNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFJvbkxpYkNvbXBvbmVudCwgQ3VzdG9tQ2FyZENvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIFJvbkxpYk1vZHVsZSB7XG4gIHN0YXRpYyBmb3JSb290KGNvbmZpZzogTGliQ29uZmlnKTogTW9kdWxlV2l0aFByb3ZpZGVyczxhbnk+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IFJvbkxpYk1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICBSb25MaWJTZXJ2aWNlLFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogTGliQ29uZmlnU2VydmljZSxcbiAgICAgICAgICB1c2VWYWx1ZTogY29uZmlnXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9O1xuICB9XG4gfVxuIl19
@@ -1,28 +0,0 @@
1
- import { Inject, Injectable } from '@angular/core';
2
- import { LibConfigService } from './ron-lib.module';
3
- import { map } from 'rxjs/operators';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common/http";
6
- export class RonLibService {
7
- constructor(config, http) {
8
- this.config = config;
9
- this.http = http;
10
- this.baseUrl = this.config.apiUrl;
11
- console.log('My config: ', config);
12
- }
13
- getData() {
14
- return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
15
- }
16
- }
17
- RonLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, deps: [{ token: LibConfigService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
18
- RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
20
- type: Injectable,
21
- args: [{
22
- providedIn: 'root'
23
- }]
24
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
25
- type: Inject,
26
- args: [LibConfigService]
27
- }] }, { type: i1.HttpClient }]; } });
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9uLWxpYi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvcm9uLWxpYi9zcmMvbGliL3Jvbi1saWIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsZ0JBQWdCLEVBQWEsTUFBTSxrQkFBa0IsQ0FBQztBQUMvRCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7OztBQUtyQyxNQUFNLE9BQU8sYUFBYTtJQUV4QixZQUE4QyxNQUFpQixFQUFVLElBQWdCO1FBQTNDLFdBQU0sR0FBTixNQUFNLENBQVc7UUFBVSxTQUFJLEdBQUosSUFBSSxDQUFZO1FBRHpGLFlBQU8sR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQztRQUUzQixPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWEsRUFBRSxNQUFNLENBQUMsQ0FBQztJQUNyQyxDQUFDO0lBQ0QsT0FBTztRQUNMLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQU0sR0FBRyxJQUFJLENBQUMsT0FBTyxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQ25ELEdBQUcsQ0FBQyxDQUFDLEdBQVEsRUFBRSxFQUFFLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUNsQyxDQUFBO0lBQ0gsQ0FBQzs7MEdBVFUsYUFBYSxrQkFFSixnQkFBZ0I7OEdBRnpCLGFBQWEsY0FGWixNQUFNOzJGQUVQLGFBQWE7a0JBSHpCLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25COzswQkFHYyxNQUFNOzJCQUFDLGdCQUFnQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBDbGllbnQgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5pbXBvcnQgeyBJbmplY3QsIEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IExpYkNvbmZpZ1NlcnZpY2UsIExpYkNvbmZpZyB9IGZyb20gJy4vcm9uLWxpYi5tb2R1bGUnO1xuaW1wb3J0IHsgbWFwIH0gZnJvbSAncnhqcy9vcGVyYXRvcnMnO1xuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290J1xufSlcbmV4cG9ydCBjbGFzcyBSb25MaWJTZXJ2aWNlIHtcbiAgYmFzZVVybCA9IHRoaXMuY29uZmlnLmFwaVVybDtcbiAgY29uc3RydWN0b3IoQEluamVjdChMaWJDb25maWdTZXJ2aWNlKSBwcml2YXRlIGNvbmZpZzogTGliQ29uZmlnLCBwcml2YXRlIGh0dHA6IEh0dHBDbGllbnQpIHtcbiAgICBjb25zb2xlLmxvZygnTXkgY29uZmlnOiAnLCBjb25maWcpO1xuICB9XG4gIGdldERhdGEoKSB7XG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8YW55PihgJHt0aGlzLmJhc2VVcmx9L2FwaWApLnBpcGUoXG4gICAgICBtYXAoKHJlczogYW55KSA9PiByZXMucmVzdWx0c1swXSlcbiAgICApXG4gIH1cbn1cbiJdfQ==
@@ -1,8 +0,0 @@
1
- /*
2
- * Public API Surface of ron-lib
3
- */
4
- export * from './lib/ron-lib.service';
5
- export * from './lib/ron-lib.component';
6
- export * from './lib/ron-lib.module';
7
- export * from './lib/custom-card/custom-card.component';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3Jvbi1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLHlDQUF5QyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiByb24tbGliXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvcm9uLWxpYi5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Jvbi1saWIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Jvbi1saWIubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2N1c3RvbS1jYXJkL2N1c3RvbS1jYXJkLmNvbXBvbmVudCc7Il19
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnBhbjkzLXJvbi1saWIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9yb24tbGliL3NyYy9ycGFuOTMtcm9uLWxpYi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
@@ -1,141 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Input, InjectionToken, NgModule, Injectable, Inject } from '@angular/core';
3
- import * as i1 from '@ionic/angular';
4
- import { IonicModule } from '@ionic/angular';
5
- import * as i1$1 from '@angular/common/http';
6
- import { HttpClientModule } from '@angular/common/http';
7
- import { CommonModule } from '@angular/common';
8
- import { map } from 'rxjs/operators';
9
-
10
- class RonLibComponent {
11
- constructor() { }
12
- ngOnInit() {
13
- }
14
- }
15
- RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
17
- <p>
18
- ron-lib works!
19
- </p>
20
- `, isInline: true });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
22
- type: Component,
23
- args: [{
24
- selector: 'dev-ron-lib',
25
- template: `
26
- <p>
27
- ron-lib works!
28
- </p>
29
- `,
30
- styles: []
31
- }]
32
- }], ctorParameters: function () { return []; } });
33
-
34
- class CustomCardComponent {
35
- constructor() { }
36
- ngOnInit() {
37
- }
38
- }
39
- CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
- CustomCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomCardComponent, selector: "dev-custom-card", inputs: { title: "title", content: "content" }, ngImport: i0, template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""], components: [{ type: i1.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }, { type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }] });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
42
- type: Component,
43
- args: [{ selector: 'dev-custom-card', template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""] }]
44
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
45
- type: Input
46
- }], content: [{
47
- type: Input
48
- }] } });
49
-
50
- class CustomPageComponent {
51
- constructor() { }
52
- ngOnInit() {
53
- }
54
- }
55
- CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
- CustomPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomPageComponent, selector: "dev-custom-page", ngImport: i0, template: "<p>custom-page works!</p>\n", styles: [""] });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
58
- type: Component,
59
- args: [{ selector: 'dev-custom-page', template: "<p>custom-page works!</p>\n", styles: [""] }]
60
- }], ctorParameters: function () { return []; } });
61
-
62
- const LibConfigService = new InjectionToken('LibConfig');
63
- class RonLibModule {
64
- static forRoot(config) {
65
- return {
66
- ngModule: RonLibModule,
67
- providers: [
68
- RonLibService,
69
- {
70
- provide: LibConfigService,
71
- useValue: config
72
- }
73
- ]
74
- };
75
- }
76
- }
77
- RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
78
- RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
79
- CustomCardComponent,
80
- CustomPageComponent], imports: [CommonModule,
81
- HttpClientModule,
82
- IonicModule], exports: [RonLibComponent, CustomCardComponent] });
83
- RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
84
- CommonModule,
85
- HttpClientModule,
86
- IonicModule
87
- ]] });
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
89
- type: NgModule,
90
- args: [{
91
- declarations: [
92
- RonLibComponent,
93
- CustomCardComponent,
94
- CustomPageComponent
95
- ],
96
- imports: [
97
- CommonModule,
98
- HttpClientModule,
99
- IonicModule
100
- ],
101
- exports: [
102
- RonLibComponent, CustomCardComponent
103
- ]
104
- }]
105
- }] });
106
-
107
- class RonLibService {
108
- constructor(config, http) {
109
- this.config = config;
110
- this.http = http;
111
- this.baseUrl = this.config.apiUrl;
112
- console.log('My config: ', config);
113
- }
114
- getData() {
115
- return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
116
- }
117
- }
118
- RonLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, deps: [{ token: LibConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
119
- RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
121
- type: Injectable,
122
- args: [{
123
- providedIn: 'root'
124
- }]
125
- }], ctorParameters: function () {
126
- return [{ type: undefined, decorators: [{
127
- type: Inject,
128
- args: [LibConfigService]
129
- }] }, { type: i1$1.HttpClient }];
130
- } });
131
-
132
- /*
133
- * Public API Surface of ron-lib
134
- */
135
-
136
- /**
137
- * Generated bundle index. Do not edit.
138
- */
139
-
140
- export { CustomCardComponent, LibConfigService, RonLibComponent, RonLibModule, RonLibService };
141
- //# sourceMappingURL=rpan93-ron-lib.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpan93-ron-lib.mjs","sources":["../../../projects/ron-lib/src/lib/ron-lib.component.ts","../../../projects/ron-lib/src/lib/custom-card/custom-card.component.ts","../../../projects/ron-lib/src/lib/custom-card/custom-card.component.html","../../../projects/ron-lib/src/lib/custom-page/custom-page.component.ts","../../../projects/ron-lib/src/lib/custom-page/custom-page.component.html","../../../projects/ron-lib/src/lib/ron-lib.module.ts","../../../projects/ron-lib/src/lib/ron-lib.service.ts","../../../projects/ron-lib/src/public-api.ts","../../../projects/ron-lib/src/rpan93-ron-lib.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'dev-ron-lib',\n template: `\n <p>\n ron-lib works!\n </p>\n `,\n styles: [\n ]\n})\nexport class RonLibComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'dev-custom-card',\n templateUrl: './custom-card.component.html',\n styleUrls: ['./custom-card.component.css']\n})\nexport class CustomCardComponent implements OnInit {\n @Input()\n title!: string;\n @Input()\n content!: string;\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'dev-custom-page',\n templateUrl: './custom-page.component.html',\n styleUrls: ['./custom-page.component.css']\n})\nexport class CustomPageComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<p>custom-page works!</p>\n","import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\nimport { RonLibComponent } from './ron-lib.component';\nimport { CustomCardComponent } from './custom-card/custom-card.component';\nimport { CustomPageComponent } from './custom-page/custom-page.component';\n\nimport { IonicModule } from '@ionic/angular';\nimport { HttpClientModule } from '@angular/common/http';\nimport { CommonModule } from '@angular/common';\nimport { RonLibService } from './ron-lib.service';\n \nexport interface LibConfig {\n apiUrl: string;\n}\nexport const LibConfigService = new InjectionToken<LibConfig>('LibConfig');\n@NgModule({\n declarations: [\n RonLibComponent,\n CustomCardComponent,\n CustomPageComponent\n ],\n imports: [\n CommonModule,\n HttpClientModule,\n IonicModule\n ],\n exports: [\n RonLibComponent, CustomCardComponent\n ]\n})\nexport class RonLibModule {\n static forRoot(config: LibConfig): ModuleWithProviders<any> {\n return {\n ngModule: RonLibModule,\n providers: [\n RonLibService,\n {\n provide: LibConfigService,\n useValue: config\n }\n ]\n };\n }\n }\n","import { HttpClient } from '@angular/common/http';\nimport { Inject, Injectable } from '@angular/core';\nimport { LibConfigService, LibConfig } from './ron-lib.module';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RonLibService {\n baseUrl = this.config.apiUrl;\n constructor(@Inject(LibConfigService) private config: LibConfig, private http: HttpClient) {\n console.log('My config: ', config);\n }\n getData() {\n return this.http.get<any>(`${this.baseUrl}/api`).pipe(\n map((res: any) => res.results[0])\n )\n }\n}\n","/*\n * Public API Surface of ron-lib\n */\n\nexport * from './lib/ron-lib.service';\nexport * from './lib/ron-lib.component';\nexport * from './lib/ron-lib.module';\nexport * from './lib/custom-card/custom-card.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAYa,eAAe;IAE1B,iBAAiB;IAEjB,QAAQ;KACP;;4GALU,eAAe;gGAAf,eAAe,mDARhB;;;;GAIT;2FAIU,eAAe;kBAV3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,QAAQ,EAAE;;;;GAIT;oBACD,MAAM,EAAE,EACP;iBACF;;;MCJY,mBAAmB;IAK9B,iBAAiB;IAEjB,QAAQ;KACP;;gHARU,mBAAmB;oGAAnB,mBAAmB,uGCPhC,wMAQA;2FDDa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;0EAM3B,KAAK;sBADJ,KAAK;gBAGN,OAAO;sBADN,KAAK;;;MEHK,mBAAmB;IAE9B,iBAAiB;IAEjB,QAAQ;KACP;;gHALU,mBAAmB;oGAAnB,mBAAmB,uDCPhC,6BACA;2FDMa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;;;MEUhB,gBAAgB,GAAG,IAAI,cAAc,CAAY,WAAW,EAAE;MAgB9D,YAAY;IACvB,OAAO,OAAO,CAAC,MAAiB;QAC9B,OAAO;YACL,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE;gBACT,aAAa;gBACb;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,MAAM;iBACjB;aACF;SACF,CAAC;KACH;;yGAZU,YAAY;0GAAZ,YAAY,iBAbrB,eAAe;QACf,mBAAmB;QACnB,mBAAmB,aAGnB,YAAY;QACZ,gBAAgB;QAChB,WAAW,aAGX,eAAe,EAAE,mBAAmB;0GAG3B,YAAY,YATd;YACP,YAAY;YACZ,gBAAgB;YAChB,WAAW;SACZ;2FAKU,YAAY;kBAfxB,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;qBACpB;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,WAAW;qBACZ;oBACD,OAAO,EAAE;wBACP,eAAe,EAAE,mBAAmB;qBACrC;iBACF;;;MCpBY,aAAa;IAExB,YAA8C,MAAiB,EAAU,IAAgB;QAA3C,WAAM,GAAN,MAAM,CAAW;QAAU,SAAI,GAAJ,IAAI,CAAY;QADzF,YAAO,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAE3B,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KACpC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAM,GAAG,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CACnD,GAAG,CAAC,CAAC,GAAQ,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAClC,CAAA;KACF;;0GATU,aAAa,kBAEJ,gBAAgB;8GAFzB,aAAa,cAFZ,MAAM;2FAEP,aAAa;kBAHzB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;8BAGc,MAAM;+BAAC,gBAAgB;;;;ACVtC;;;;ACAA;;;;;;"}
@@ -1,139 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, Input, InjectionToken, NgModule, Injectable, Inject } from '@angular/core';
3
- import * as i1 from '@ionic/angular';
4
- import { IonicModule } from '@ionic/angular';
5
- import * as i1$1 from '@angular/common/http';
6
- import { HttpClientModule } from '@angular/common/http';
7
- import { CommonModule } from '@angular/common';
8
- import { map } from 'rxjs/operators';
9
-
10
- class RonLibComponent {
11
- constructor() { }
12
- ngOnInit() {
13
- }
14
- }
15
- RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
16
- RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
17
- <p>
18
- ron-lib works!
19
- </p>
20
- `, isInline: true });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
22
- type: Component,
23
- args: [{
24
- selector: 'dev-ron-lib',
25
- template: `
26
- <p>
27
- ron-lib works!
28
- </p>
29
- `,
30
- styles: []
31
- }]
32
- }], ctorParameters: function () { return []; } });
33
-
34
- class CustomCardComponent {
35
- constructor() { }
36
- ngOnInit() {
37
- }
38
- }
39
- CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
40
- CustomCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomCardComponent, selector: "dev-custom-card", inputs: { title: "title", content: "content" }, ngImport: i0, template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""], components: [{ type: i1.IonCard, selector: "ion-card", inputs: ["button", "color", "disabled", "download", "href", "mode", "rel", "routerAnimation", "routerDirection", "target", "type"] }, { type: i1.IonCardHeader, selector: "ion-card-header", inputs: ["color", "mode", "translucent"] }, { type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }, { type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }] });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
42
- type: Component,
43
- args: [{ selector: 'dev-custom-card', template: "<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n", styles: [""] }]
44
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
45
- type: Input
46
- }], content: [{
47
- type: Input
48
- }] } });
49
-
50
- class CustomPageComponent {
51
- constructor() { }
52
- ngOnInit() {
53
- }
54
- }
55
- CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
- CustomPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomPageComponent, selector: "dev-custom-page", ngImport: i0, template: "<p>custom-page works!</p>\n", styles: [""] });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
58
- type: Component,
59
- args: [{ selector: 'dev-custom-page', template: "<p>custom-page works!</p>\n", styles: [""] }]
60
- }], ctorParameters: function () { return []; } });
61
-
62
- const LibConfigService = new InjectionToken('LibConfig');
63
- class RonLibModule {
64
- static forRoot(config) {
65
- return {
66
- ngModule: RonLibModule,
67
- providers: [
68
- RonLibService,
69
- {
70
- provide: LibConfigService,
71
- useValue: config
72
- }
73
- ]
74
- };
75
- }
76
- }
77
- RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
78
- RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
79
- CustomCardComponent,
80
- CustomPageComponent], imports: [CommonModule,
81
- HttpClientModule,
82
- IonicModule], exports: [RonLibComponent, CustomCardComponent] });
83
- RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
84
- CommonModule,
85
- HttpClientModule,
86
- IonicModule
87
- ]] });
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
89
- type: NgModule,
90
- args: [{
91
- declarations: [
92
- RonLibComponent,
93
- CustomCardComponent,
94
- CustomPageComponent
95
- ],
96
- imports: [
97
- CommonModule,
98
- HttpClientModule,
99
- IonicModule
100
- ],
101
- exports: [
102
- RonLibComponent, CustomCardComponent
103
- ]
104
- }]
105
- }] });
106
-
107
- class RonLibService {
108
- constructor(config, http) {
109
- this.config = config;
110
- this.http = http;
111
- this.baseUrl = this.config.apiUrl;
112
- console.log('My config: ', config);
113
- }
114
- getData() {
115
- return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
116
- }
117
- }
118
- RonLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, deps: [{ token: LibConfigService }, { token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
119
- RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
121
- type: Injectable,
122
- args: [{
123
- providedIn: 'root'
124
- }]
125
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
126
- type: Inject,
127
- args: [LibConfigService]
128
- }] }, { type: i1$1.HttpClient }]; } });
129
-
130
- /*
131
- * Public API Surface of ron-lib
132
- */
133
-
134
- /**
135
- * Generated bundle index. Do not edit.
136
- */
137
-
138
- export { CustomCardComponent, LibConfigService, RonLibComponent, RonLibModule, RonLibService };
139
- //# sourceMappingURL=rpan93-ron-lib.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpan93-ron-lib.mjs","sources":["../../../projects/ron-lib/src/lib/ron-lib.component.ts","../../../projects/ron-lib/src/lib/custom-card/custom-card.component.ts","../../../projects/ron-lib/src/lib/custom-card/custom-card.component.html","../../../projects/ron-lib/src/lib/custom-page/custom-page.component.ts","../../../projects/ron-lib/src/lib/custom-page/custom-page.component.html","../../../projects/ron-lib/src/lib/ron-lib.module.ts","../../../projects/ron-lib/src/lib/ron-lib.service.ts","../../../projects/ron-lib/src/public-api.ts","../../../projects/ron-lib/src/rpan93-ron-lib.ts"],"sourcesContent":["import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'dev-ron-lib',\n template: `\n <p>\n ron-lib works!\n </p>\n `,\n styles: [\n ]\n})\nexport class RonLibComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { Component, OnInit, Input } from '@angular/core';\n\n@Component({\n selector: 'dev-custom-card',\n templateUrl: './custom-card.component.html',\n styleUrls: ['./custom-card.component.css']\n})\nexport class CustomCardComponent implements OnInit {\n @Input()\n title!: string;\n @Input()\n content!: string;\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<ion-card>\n <ion-card-header>\n <ion-card-title>{{ title }}</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n {{ content }}\n </ion-card-content>\n</ion-card>\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'dev-custom-page',\n templateUrl: './custom-page.component.html',\n styleUrls: ['./custom-page.component.css']\n})\nexport class CustomPageComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","<p>custom-page works!</p>\n","import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';\nimport { RonLibComponent } from './ron-lib.component';\nimport { CustomCardComponent } from './custom-card/custom-card.component';\nimport { CustomPageComponent } from './custom-page/custom-page.component';\n\nimport { IonicModule } from '@ionic/angular';\nimport { HttpClientModule } from '@angular/common/http';\nimport { CommonModule } from '@angular/common';\nimport { RonLibService } from './ron-lib.service';\n \nexport interface LibConfig {\n apiUrl: string;\n}\nexport const LibConfigService = new InjectionToken<LibConfig>('LibConfig');\n@NgModule({\n declarations: [\n RonLibComponent,\n CustomCardComponent,\n CustomPageComponent\n ],\n imports: [\n CommonModule,\n HttpClientModule,\n IonicModule\n ],\n exports: [\n RonLibComponent, CustomCardComponent\n ]\n})\nexport class RonLibModule {\n static forRoot(config: LibConfig): ModuleWithProviders<any> {\n return {\n ngModule: RonLibModule,\n providers: [\n RonLibService,\n {\n provide: LibConfigService,\n useValue: config\n }\n ]\n };\n }\n }\n","import { HttpClient } from '@angular/common/http';\nimport { Inject, Injectable } from '@angular/core';\nimport { LibConfigService, LibConfig } from './ron-lib.module';\nimport { map } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RonLibService {\n baseUrl = this.config.apiUrl;\n constructor(@Inject(LibConfigService) private config: LibConfig, private http: HttpClient) {\n console.log('My config: ', config);\n }\n getData() {\n return this.http.get<any>(`${this.baseUrl}/api`).pipe(\n map((res: any) => res.results[0])\n )\n }\n}\n","/*\n * Public API Surface of ron-lib\n */\n\nexport * from './lib/ron-lib.service';\nexport * from './lib/ron-lib.component';\nexport * from './lib/ron-lib.module';\nexport * from './lib/custom-card/custom-card.component';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAYa,eAAe;IAE1B,iBAAiB;IAEjB,QAAQ;KACP;;4GALU,eAAe;gGAAf,eAAe,mDARhB;;;;GAIT;2FAIU,eAAe;kBAV3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,QAAQ,EAAE;;;;GAIT;oBACD,MAAM,EAAE,EACP;iBACF;;;MCJY,mBAAmB;IAK9B,iBAAiB;IAEjB,QAAQ;KACP;;gHARU,mBAAmB;oGAAnB,mBAAmB,uGCPhC,wMAQA;2FDDa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;0EAM3B,KAAK;sBADJ,KAAK;gBAGN,OAAO;sBADN,KAAK;;;MEHK,mBAAmB;IAE9B,iBAAiB;IAEjB,QAAQ;KACP;;gHALU,mBAAmB;oGAAnB,mBAAmB,uDCPhC,6BACA;2FDMa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;;;MEUhB,gBAAgB,GAAG,IAAI,cAAc,CAAY,WAAW,EAAE;MAgB9D,YAAY;IACvB,OAAO,OAAO,CAAC,MAAiB;QAC9B,OAAO;YACL,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE;gBACT,aAAa;gBACb;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,MAAM;iBACjB;aACF;SACF,CAAC;KACH;;yGAZU,YAAY;0GAAZ,YAAY,iBAbrB,eAAe;QACf,mBAAmB;QACnB,mBAAmB,aAGnB,YAAY;QACZ,gBAAgB;QAChB,WAAW,aAGX,eAAe,EAAE,mBAAmB;0GAG3B,YAAY,YATd;YACP,YAAY;YACZ,gBAAgB;YAChB,WAAW;SACZ;2FAKU,YAAY;kBAfxB,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;qBACpB;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,gBAAgB;wBAChB,WAAW;qBACZ;oBACD,OAAO,EAAE;wBACP,eAAe,EAAE,mBAAmB;qBACrC;iBACF;;;MCpBY,aAAa;IAExB,YAA8C,MAAiB,EAAU,IAAgB;QAA3C,WAAM,GAAN,MAAM,CAAW;QAAU,SAAI,GAAJ,IAAI,CAAY;QADzF,YAAO,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAE3B,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KACpC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAM,GAAG,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC,IAAI,CACnD,GAAG,CAAC,CAAC,GAAQ,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAClC,CAAA;KACF;;0GATU,aAAa,kBAEJ,gBAAgB;8GAFzB,aAAa,cAFZ,MAAM;2FAEP,aAAa;kBAHzB,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;0BAGc,MAAM;2BAAC,gBAAgB;;;ACVtC;;;;ACAA;;;;;;"}
@@ -1,10 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class CustomCardComponent implements OnInit {
4
- title: string;
5
- content: string;
6
- constructor();
7
- ngOnInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomCardComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomCardComponent, "dev-custom-card", never, { "title": "title"; "content": "content"; }, {}, never, never>;
10
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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 "./custom-page/custom-page.component";
6
- import * as i4 from "@angular/common";
7
- import * as i5 from "@angular/common/http";
8
- import * as i6 from "@ionic/angular";
9
- export interface LibConfig {
10
- apiUrl: string;
11
- }
12
- export declare const LibConfigService: InjectionToken<LibConfig>;
13
- export declare class RonLibModule {
14
- static forRoot(config: LibConfig): ModuleWithProviders<any>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<RonLibModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<RonLibModule, [typeof i1.RonLibComponent, typeof i2.CustomCardComponent, typeof i3.CustomPageComponent], [typeof i4.CommonModule, typeof i5.HttpClientModule, typeof i6.IonicModule], [typeof i1.RonLibComponent, typeof i2.CustomCardComponent]>;
17
- static ɵinj: i0.ɵɵInjectorDeclaration<RonLibModule>;
18
- }
@@ -1,12 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rpan93/ron-lib" />
5
- export * from './public-api';