@rpan93/ron-lib 0.0.9 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/esm2020/lib/custom-card/custom-card.component.mjs +19 -0
  2. package/esm2020/lib/custom-page/custom-page-routing.module.mjs +24 -0
  3. package/esm2020/lib/custom-page/custom-page.component.mjs +15 -0
  4. package/esm2020/lib/custom-page/custom-page.module.mjs +28 -0
  5. package/esm2020/lib/dashboard/dashboard-routing.module.mjs +24 -0
  6. package/esm2020/lib/dashboard/dashboard.module.mjs +41 -0
  7. package/esm2020/lib/dashboard/dashboard.page.mjs +18 -0
  8. package/esm2020/lib/ron-lib.component.mjs +26 -0
  9. package/esm2020/lib/ron-lib.module.mjs +51 -0
  10. package/esm2020/lib/ron-lib.service.mjs +28 -0
  11. package/esm2020/public-api.mjs +10 -0
  12. package/esm2020/rpan93-ron-lib.mjs +5 -0
  13. package/fesm2015/rpan93-ron-lib.mjs +248 -0
  14. package/fesm2015/rpan93-ron-lib.mjs.map +1 -0
  15. package/fesm2020/rpan93-ron-lib.mjs +246 -0
  16. package/fesm2020/rpan93-ron-lib.mjs.map +1 -0
  17. package/lib/custom-card/custom-card.component.d.ts +10 -0
  18. package/lib/custom-page/custom-page-routing.module.d.ts +7 -0
  19. package/lib/custom-page/custom-page.component.d.ts +8 -0
  20. package/lib/custom-page/custom-page.module.d.ts +11 -0
  21. package/lib/dashboard/dashboard-routing.module.d.ts +7 -0
  22. package/lib/dashboard/dashboard.module.d.ts +12 -0
  23. package/lib/dashboard/dashboard.page.d.ts +8 -0
  24. package/lib/ron-lib.component.d.ts +8 -0
  25. package/lib/ron-lib.module.d.ts +17 -0
  26. package/lib/ron-lib.service.d.ts +12 -0
  27. package/package.json +22 -5
  28. package/{src/public-api.ts → public-api.d.ts} +6 -10
  29. package/rpan93-ron-lib.d.ts +5 -0
  30. package/.browserslistrc +0 -16
  31. package/karma.conf.js +0 -44
  32. package/ng-package.json +0 -7
  33. package/src/lib/custom-card/custom-card.component.css +0 -0
  34. package/src/lib/custom-card/custom-card.component.html +0 -8
  35. package/src/lib/custom-card/custom-card.component.spec.ts +0 -25
  36. package/src/lib/custom-card/custom-card.component.ts +0 -19
  37. package/src/lib/custom-page/custom-page-routing.module.ts +0 -18
  38. package/src/lib/custom-page/custom-page.component.css +0 -5
  39. package/src/lib/custom-page/custom-page.component.html +0 -15
  40. package/src/lib/custom-page/custom-page.component.spec.ts +0 -25
  41. package/src/lib/custom-page/custom-page.component.ts +0 -15
  42. package/src/lib/custom-page/custom-page.module.ts +0 -17
  43. package/src/lib/dashboard/dashboard-routing.module.ts +0 -17
  44. package/src/lib/dashboard/dashboard.module.ts +0 -23
  45. package/src/lib/dashboard/dashboard.page.html +0 -24
  46. package/src/lib/dashboard/dashboard.page.scss +0 -0
  47. package/src/lib/dashboard/dashboard.page.spec.ts +0 -24
  48. package/src/lib/dashboard/dashboard.page.ts +0 -37
  49. package/src/lib/ron-lib.component.spec.ts +0 -25
  50. package/src/lib/ron-lib.component.ts +0 -20
  51. package/src/lib/ron-lib.module.ts +0 -42
  52. package/src/lib/ron-lib.service.spec.ts +0 -16
  53. package/src/lib/ron-lib.service.ts +0 -19
  54. package/src/test.ts +0 -27
  55. package/tsconfig.lib.json +0 -15
  56. package/tsconfig.lib.prod.json +0 -10
  57. package/tsconfig.spec.json +0 -17
@@ -0,0 +1 @@
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/ron-lib.module.ts","../../../projects/ron-lib/src/lib/ron-lib.service.ts","../../../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/custom-page/custom-page-routing.module.ts","../../../projects/ron-lib/src/lib/custom-page/custom-page.module.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.page.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.page.html","../../../projects/ron-lib/src/lib/dashboard/dashboard-routing.module.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.module.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 \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 { 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 ],\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","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","<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Lib Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <div class=\"custom-box\"></div>\n This is a full page from the library!\n</ion-content>\n","import { CustomPageComponent } from './custom-page.component';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\n\r\nconst routes : Routes = [\r\n {\r\n path: '',\r\n component: CustomPageComponent,\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class CustomPageRoutingModule{\r\n \r\n}","import { CustomPageComponent } from \"./custom-page.component\";\r\nimport { CustomPageRoutingModule } from \"./custom-page-routing.module\";\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { IonicModule } from '@ionic/angular';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@NgModule({\r\n imports:[CommonModule,FormsModule,\r\n IonicModule,\r\n CustomPageRoutingModule\r\n ],\r\n declarations: [CustomPageComponent]\r\n})\r\nexport class CustomPageModule{\r\n\r\n}","import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';\nimport { Chart } from \"chart.js\";\nimport { HttpClient } from '@angular/common/http';\n@Component({\n selector: 'app-dashboard',\n templateUrl: './dashboard.page.html',\n styleUrls: ['./dashboard.page.scss'],\n})\nexport class DashboardPage implements OnInit {\n // @ViewChild('barChart', {static: true}) barChart: ElementRef;\n // bars: any;\n constructor(){}\n\n ngOnInit() {\n // this.createBarChart();\n }\n// createBarChart() {\n// this.bars = new Chart(this.barChart.nativeElement, {\n// type: 'bar',\n// data: {\n// labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],\n// datasets: [{\n// label: 'Transactions in millions',\n// data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],\n// backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset\n// borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset\n// borderWidth: 1\n// }]\n// },\n// options: {\n// scales: {\n \n// }\n// }\n// });\n// }\n}\n","<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Dashboard Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\nDashboard\n<ion-card class=\"welcome-card\">\n <ion-card-header>\n <ion-card-subtitle>Authorizations</ion-card-subtitle>\n <ion-card-title>Transaction details</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n My Card\n <!-- <canvas #barChart></canvas> -->\n </ion-card-content>\n</ion-card>\n</ion-content>\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { DashboardPage } from './dashboard.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { DashboardPageRoutingModule } from './dashboard-routing.module';\n\nimport { DashboardPage } from './dashboard.page';\n//import { ChartModule } from 'angular2-chartjs';\nimport { HttpClientModule } from '@angular/common/http';\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n DashboardPageRoutingModule,\n //ChartModule,\n HttpClientModule\n ],\n declarations: [DashboardPage]\n})\nexport class DashboardPageModule {}\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';\nexport * from './lib/custom-page/custom-page.module';\nexport * from './lib/dashboard/dashboard.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["routes"],"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;IAM9B,iBAAiB;IAEjB,QAAQ;KACP;;gHATU,mBAAmB;oGAAnB,mBAAmB,uGCPhC,wMAQA;2FDDa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;0EAM3B,KAAK;sBADJ,KAAK;gBAGN,OAAO;sBADN,KAAK;;;MEGK,gBAAgB,GAAG,IAAI,cAAc,CAAY,WAAW,EAAE;MAe9D,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,YA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AAmB,iBAFf,aAAa,aAP1B,YAAY;QACZ,WAAW;QACX,WAAW;QACX,0BAA0B;;QAE1B,gBAAgB;iHAIP,mBAAmB,YAVrB;YACP,YAAY;YACZ,WAAW;YACX,WAAW;YACX,0BAA0B;;YAE1B,gBAAgB;SACjB;2FAGU,mBAAmB;kBAX/B,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,WAAW;wBACX,0BAA0B;;wBAE1B,gBAAgB;qBACjB;oBACD,YAAY,EAAE,CAAC,aAAa,CAAC;iBAC9B;;;ACrBD;;;;ACAA;;;;;;"}
@@ -0,0 +1,246 @@
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
+ import * as i1$2 from '@angular/router';
10
+ import { RouterModule } from '@angular/router';
11
+ import { FormsModule } from '@angular/forms';
12
+
13
+ class RonLibComponent {
14
+ constructor() { }
15
+ ngOnInit() {
16
+ }
17
+ }
18
+ RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
+ RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
20
+ <p>
21
+ ron-lib works!
22
+ </p>
23
+ `, isInline: true });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
25
+ type: Component,
26
+ args: [{
27
+ selector: 'dev-ron-lib',
28
+ template: `
29
+ <p>
30
+ ron-lib works!
31
+ </p>
32
+ `,
33
+ styles: []
34
+ }]
35
+ }], ctorParameters: function () { return []; } });
36
+
37
+ class CustomCardComponent {
38
+ constructor() { }
39
+ ngOnInit() {
40
+ }
41
+ }
42
+ CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
43
+ 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"] }] });
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
45
+ type: Component,
46
+ 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: [""] }]
47
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
48
+ type: Input
49
+ }], content: [{
50
+ type: Input
51
+ }] } });
52
+
53
+ const LibConfigService = new InjectionToken('LibConfig');
54
+ class RonLibModule {
55
+ static forRoot(config) {
56
+ return {
57
+ ngModule: RonLibModule,
58
+ providers: [
59
+ RonLibService,
60
+ {
61
+ provide: LibConfigService,
62
+ useValue: config
63
+ }
64
+ ]
65
+ };
66
+ }
67
+ }
68
+ RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
69
+ RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
70
+ CustomCardComponent], imports: [CommonModule,
71
+ HttpClientModule,
72
+ IonicModule], exports: [RonLibComponent, CustomCardComponent] });
73
+ RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
74
+ CommonModule,
75
+ HttpClientModule,
76
+ IonicModule
77
+ ]] });
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
79
+ type: NgModule,
80
+ args: [{
81
+ declarations: [
82
+ RonLibComponent,
83
+ CustomCardComponent
84
+ ],
85
+ imports: [
86
+ CommonModule,
87
+ HttpClientModule,
88
+ IonicModule
89
+ ],
90
+ exports: [
91
+ RonLibComponent, CustomCardComponent
92
+ ]
93
+ }]
94
+ }] });
95
+
96
+ class RonLibService {
97
+ constructor(config, http) {
98
+ this.config = config;
99
+ this.http = http;
100
+ this.baseUrl = this.config.apiUrl;
101
+ console.log('My config: ', config);
102
+ }
103
+ getData() {
104
+ return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
105
+ }
106
+ }
107
+ 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 });
108
+ RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
110
+ type: Injectable,
111
+ args: [{
112
+ providedIn: 'root'
113
+ }]
114
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
115
+ type: Inject,
116
+ args: [LibConfigService]
117
+ }] }, { type: i1$1.HttpClient }]; } });
118
+
119
+ class CustomPageComponent {
120
+ constructor() { }
121
+ ngOnInit() {
122
+ }
123
+ }
124
+ CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
125
+ CustomPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: CustomPageComponent, selector: "dev-custom-page", ngImport: i0, template: "<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Lib Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <div class=\"custom-box\"></div>\n This is a full page from the library!\n</ion-content>\n", styles: [".custom-box{background:var(--custom-background, #ff00ff);width:100%;height:100px}\n"], components: [{ type: i1.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { type: i1.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { type: i1.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { type: i1.IonBackButton, selector: "ion-back-button", inputs: ["color", "defaultHref", "disabled", "icon", "mode", "routerAnimation", "text", "type"] }, { type: i1.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { type: i1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }], directives: [{ type: i1.IonBackButtonDelegate, selector: "ion-back-button", inputs: ["defaultHref", "routerAnimation"] }] });
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
127
+ type: Component,
128
+ args: [{ selector: 'dev-custom-page', template: "<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Lib Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <div class=\"custom-box\"></div>\n This is a full page from the library!\n</ion-content>\n", styles: [".custom-box{background:var(--custom-background, #ff00ff);width:100%;height:100px}\n"] }]
129
+ }], ctorParameters: function () { return []; } });
130
+
131
+ const routes$1 = [
132
+ {
133
+ path: '',
134
+ component: CustomPageComponent,
135
+ }
136
+ ];
137
+ class CustomPageRoutingModule {
138
+ }
139
+ CustomPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
140
+ CustomPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
141
+ CustomPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [[RouterModule.forChild(routes$1)], RouterModule] });
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, decorators: [{
143
+ type: NgModule,
144
+ args: [{
145
+ imports: [RouterModule.forChild(routes$1)],
146
+ exports: [RouterModule]
147
+ }]
148
+ }] });
149
+
150
+ class CustomPageModule {
151
+ }
152
+ CustomPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
153
+ CustomPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, declarations: [CustomPageComponent], imports: [CommonModule, FormsModule,
154
+ IonicModule,
155
+ CustomPageRoutingModule] });
156
+ CustomPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, imports: [[CommonModule, FormsModule,
157
+ IonicModule,
158
+ CustomPageRoutingModule
159
+ ]] });
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, decorators: [{
161
+ type: NgModule,
162
+ args: [{
163
+ imports: [CommonModule, FormsModule,
164
+ IonicModule,
165
+ CustomPageRoutingModule
166
+ ],
167
+ declarations: [CustomPageComponent]
168
+ }]
169
+ }] });
170
+
171
+ class DashboardPage {
172
+ // @ViewChild('barChart', {static: true}) barChart: ElementRef;
173
+ // bars: any;
174
+ constructor() { }
175
+ ngOnInit() {
176
+ // this.createBarChart();
177
+ }
178
+ }
179
+ DashboardPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
180
+ DashboardPage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: DashboardPage, selector: "app-dashboard", ngImport: i0, template: "<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Dashboard Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\nDashboard\n<ion-card class=\"welcome-card\">\n <ion-card-header>\n <ion-card-subtitle>Authorizations</ion-card-subtitle>\n <ion-card-title>Transaction details</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n My Card\n <!-- <canvas #barChart></canvas> -->\n </ion-card-content>\n</ion-card>\n</ion-content>\n", styles: [""], components: [{ type: i1.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { type: i1.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { type: i1.IonButtons, selector: "ion-buttons", inputs: ["collapse"] }, { type: i1.IonBackButton, selector: "ion-back-button", inputs: ["color", "defaultHref", "disabled", "icon", "mode", "routerAnimation", "text", "type"] }, { type: i1.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { type: i1.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { 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.IonCardSubtitle, selector: "ion-card-subtitle", inputs: ["color", "mode"] }, { type: i1.IonCardTitle, selector: "ion-card-title", inputs: ["color", "mode"] }, { type: i1.IonCardContent, selector: "ion-card-content", inputs: ["mode"] }], directives: [{ type: i1.IonBackButtonDelegate, selector: "ion-back-button", inputs: ["defaultHref", "routerAnimation"] }] });
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
182
+ type: Component,
183
+ args: [{ selector: 'app-dashboard', template: "<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Dashboard Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\nDashboard\n<ion-card class=\"welcome-card\">\n <ion-card-header>\n <ion-card-subtitle>Authorizations</ion-card-subtitle>\n <ion-card-title>Transaction details</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n My Card\n <!-- <canvas #barChart></canvas> -->\n </ion-card-content>\n</ion-card>\n</ion-content>\n", styles: [""] }]
184
+ }], ctorParameters: function () { return []; } });
185
+
186
+ const routes = [
187
+ {
188
+ path: '',
189
+ component: DashboardPage
190
+ }
191
+ ];
192
+ class DashboardPageRoutingModule {
193
+ }
194
+ DashboardPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
195
+ DashboardPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
196
+ DashboardPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, decorators: [{
198
+ type: NgModule,
199
+ args: [{
200
+ imports: [RouterModule.forChild(routes)],
201
+ exports: [RouterModule],
202
+ }]
203
+ }] });
204
+
205
+ class DashboardPageModule {
206
+ }
207
+ DashboardPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
208
+ DashboardPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, declarations: [DashboardPage], imports: [CommonModule,
209
+ FormsModule,
210
+ IonicModule,
211
+ DashboardPageRoutingModule,
212
+ //ChartModule,
213
+ HttpClientModule] });
214
+ DashboardPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, imports: [[
215
+ CommonModule,
216
+ FormsModule,
217
+ IonicModule,
218
+ DashboardPageRoutingModule,
219
+ //ChartModule,
220
+ HttpClientModule
221
+ ]] });
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, decorators: [{
223
+ type: NgModule,
224
+ args: [{
225
+ imports: [
226
+ CommonModule,
227
+ FormsModule,
228
+ IonicModule,
229
+ DashboardPageRoutingModule,
230
+ //ChartModule,
231
+ HttpClientModule
232
+ ],
233
+ declarations: [DashboardPage]
234
+ }]
235
+ }] });
236
+
237
+ /*
238
+ * Public API Surface of ron-lib
239
+ */
240
+
241
+ /**
242
+ * Generated bundle index. Do not edit.
243
+ */
244
+
245
+ export { CustomCardComponent, CustomPageModule, DashboardPageModule, LibConfigService, RonLibComponent, RonLibModule, RonLibService };
246
+ //# sourceMappingURL=rpan93-ron-lib.mjs.map
@@ -0,0 +1 @@
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/ron-lib.module.ts","../../../projects/ron-lib/src/lib/ron-lib.service.ts","../../../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/custom-page/custom-page-routing.module.ts","../../../projects/ron-lib/src/lib/custom-page/custom-page.module.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.page.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.page.html","../../../projects/ron-lib/src/lib/dashboard/dashboard-routing.module.ts","../../../projects/ron-lib/src/lib/dashboard/dashboard.module.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 \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 { 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 ],\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","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","<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Lib Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <div class=\"custom-box\"></div>\n This is a full page from the library!\n</ion-content>\n","import { CustomPageComponent } from './custom-page.component';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule, Routes } from '@angular/router';\r\n\r\nconst routes : Routes = [\r\n {\r\n path: '',\r\n component: CustomPageComponent,\r\n }\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forChild(routes)],\r\n exports: [RouterModule]\r\n})\r\nexport class CustomPageRoutingModule{\r\n \r\n}","import { CustomPageComponent } from \"./custom-page.component\";\r\nimport { CustomPageRoutingModule } from \"./custom-page-routing.module\";\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { IonicModule } from '@ionic/angular';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\n@NgModule({\r\n imports:[CommonModule,FormsModule,\r\n IonicModule,\r\n CustomPageRoutingModule\r\n ],\r\n declarations: [CustomPageComponent]\r\n})\r\nexport class CustomPageModule{\r\n\r\n}","import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';\nimport { Chart } from \"chart.js\";\nimport { HttpClient } from '@angular/common/http';\n@Component({\n selector: 'app-dashboard',\n templateUrl: './dashboard.page.html',\n styleUrls: ['./dashboard.page.scss'],\n})\nexport class DashboardPage implements OnInit {\n // @ViewChild('barChart', {static: true}) barChart: ElementRef;\n // bars: any;\n constructor(){}\n\n ngOnInit() {\n // this.createBarChart();\n }\n// createBarChart() {\n// this.bars = new Chart(this.barChart.nativeElement, {\n// type: 'bar',\n// data: {\n// labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],\n// datasets: [{\n// label: 'Transactions in millions',\n// data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],\n// backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset\n// borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset\n// borderWidth: 1\n// }]\n// },\n// options: {\n// scales: {\n \n// }\n// }\n// });\n// }\n}\n","<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-back-button defaultHref=\"/\">\n </ion-back-button>\n <ion-title>\n Ron Dashboard Page\n </ion-title>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\nDashboard\n<ion-card class=\"welcome-card\">\n <ion-card-header>\n <ion-card-subtitle>Authorizations</ion-card-subtitle>\n <ion-card-title>Transaction details</ion-card-title>\n </ion-card-header>\n <ion-card-content>\n My Card\n <!-- <canvas #barChart></canvas> -->\n </ion-card-content>\n</ion-card>\n</ion-content>\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { DashboardPage } from './dashboard.page';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardPage\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardPageRoutingModule {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { IonicModule } from '@ionic/angular';\n\nimport { DashboardPageRoutingModule } from './dashboard-routing.module';\n\nimport { DashboardPage } from './dashboard.page';\n//import { ChartModule } from 'angular2-chartjs';\nimport { HttpClientModule } from '@angular/common/http';\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n IonicModule,\n DashboardPageRoutingModule,\n //ChartModule,\n HttpClientModule\n ],\n declarations: [DashboardPage]\n})\nexport class DashboardPageModule {}\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';\nexport * from './lib/custom-page/custom-page.module';\nexport * from './lib/dashboard/dashboard.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["routes"],"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;IAM9B,iBAAiB;IAEjB,QAAQ;KACP;;gHATU,mBAAmB;oGAAnB,mBAAmB,uGCPhC,wMAQA;2FDDa,mBAAmB;kBAL/B,SAAS;+BACE,iBAAiB;0EAM3B,KAAK;sBADJ,KAAK;gBAGN,OAAO;sBADN,KAAK;;;MEGK,gBAAgB,GAAG,IAAI,cAAc,CAAY,WAAW,EAAE;MAe9D,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,iBAZrB,eAAe;QACf,mBAAmB,aAGnB,YAAY;QACZ,gBAAgB;QAChB,WAAW,aAGX,eAAe,EAAE,mBAAmB;0GAG3B,YAAY,YATd;YACP,YAAY;YACZ,gBAAgB;YAChB,WAAW;SACZ;2FAKU,YAAY;kBAdxB,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;wBACf,mBAAmB;qBACpB;oBACD,OAAO,EAAE;wBACP,YAAY;wB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AAgB;qBACjB;oBACD,YAAY,EAAE,CAAC,aAAa,CAAC;iBAC9B;;;ACrBD;;;;ACAA;;;;;;"}
@@ -0,0 +1,10 @@
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
+ }
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class CustomPageRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomPageRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CustomPageRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<CustomPageRoutingModule>;
7
+ }
@@ -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,8 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DashboardPage implements OnInit {
4
+ constructor();
5
+ ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPage, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardPage, "app-dashboard", never, {}, {}, never, never>;
8
+ }
@@ -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": "0.0.9",
3
+ "version": "1.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
6
  "@angular/core": "^13.1.0",
@@ -9,7 +9,24 @@
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"
11
11
  },
12
- "devDependencies": {
13
- "@ionic/angular": "^6.0.2"
14
- }
15
- }
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
- * 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';
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';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@rpan93/ron-lib" />
5
+ export * from './public-api';
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
@@ -1,7 +0,0 @@
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
- }
File without changes
@@ -1,8 +0,0 @@
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>
@@ -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,19 +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
-
14
- constructor() { }
15
-
16
- ngOnInit(): void {
17
- }
18
-
19
- }