@rpan93/ron-lib 1.0.0 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/esm2020/lib/custom-card/custom-card.component.mjs +19 -0
  2. package/esm2020/lib/custom-page/custom-page-routing.module.mjs +24 -0
  3. package/esm2020/lib/custom-page/custom-page.component.mjs +15 -0
  4. package/esm2020/lib/custom-page/custom-page.module.mjs +28 -0
  5. package/esm2020/lib/dashboard/dashboard-routing.module.mjs +24 -0
  6. package/esm2020/lib/dashboard/dashboard.module.mjs +41 -0
  7. package/esm2020/lib/dashboard/dashboard.page.mjs +58 -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 +288 -0
  14. package/fesm2015/rpan93-ron-lib.mjs.map +1 -0
  15. package/fesm2020/rpan93-ron-lib.mjs +286 -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 +11 -0
  24. package/lib/ron-lib.component.d.ts +8 -0
  25. package/lib/ron-lib.module.d.ts +17 -0
  26. package/lib/ron-lib.service.d.ts +12 -0
  27. package/package.json +24 -6
  28. package/{src/public-api.ts → public-api.d.ts} +6 -9
  29. package/rpan93-ron-lib.d.ts +5 -0
  30. package/.browserslistrc +0 -16
  31. package/karma.conf.js +0 -44
  32. package/ng-package.json +0 -7
  33. package/src/lib/custom-card/custom-card.component.css +0 -0
  34. package/src/lib/custom-card/custom-card.component.html +0 -8
  35. package/src/lib/custom-card/custom-card.component.spec.ts +0 -25
  36. package/src/lib/custom-card/custom-card.component.ts +0 -19
  37. package/src/lib/custom-page/custom-page-routing.module.ts +0 -18
  38. package/src/lib/custom-page/custom-page.component.css +0 -0
  39. package/src/lib/custom-page/custom-page.component.html +0 -15
  40. package/src/lib/custom-page/custom-page.component.spec.ts +0 -25
  41. package/src/lib/custom-page/custom-page.component.ts +0 -15
  42. package/src/lib/custom-page/custom-page.module.ts +0 -17
  43. package/src/lib/ron-lib.component.spec.ts +0 -25
  44. package/src/lib/ron-lib.component.ts +0 -20
  45. package/src/lib/ron-lib.module.ts +0 -42
  46. package/src/lib/ron-lib.service.spec.ts +0 -16
  47. package/src/lib/ron-lib.service.ts +0 -19
  48. package/src/test.ts +0 -27
  49. package/tsconfig.lib.json +0 -15
  50. package/tsconfig.lib.prod.json +0 -10
  51. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,288 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, InjectionToken, NgModule, Injectable, Inject, ViewChild } 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
+ import { Chart } from 'chart.js';
13
+
14
+ class RonLibComponent {
15
+ constructor() { }
16
+ ngOnInit() {
17
+ }
18
+ }
19
+ RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
+ RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
21
+ <p>
22
+ ron-lib works!
23
+ </p>
24
+ `, isInline: true });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
26
+ type: Component,
27
+ args: [{
28
+ selector: 'dev-ron-lib',
29
+ template: `
30
+ <p>
31
+ ron-lib works!
32
+ </p>
33
+ `,
34
+ styles: []
35
+ }]
36
+ }], ctorParameters: function () { return []; } });
37
+
38
+ class CustomCardComponent {
39
+ constructor() { }
40
+ ngOnInit() {
41
+ }
42
+ }
43
+ CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
+ 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"] }] });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
46
+ type: Component,
47
+ 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: [""] }]
48
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
49
+ type: Input
50
+ }], content: [{
51
+ type: Input
52
+ }] } });
53
+
54
+ const LibConfigService = new InjectionToken('LibConfig');
55
+ class RonLibModule {
56
+ static forRoot(config) {
57
+ return {
58
+ ngModule: RonLibModule,
59
+ providers: [
60
+ RonLibService,
61
+ {
62
+ provide: LibConfigService,
63
+ useValue: config
64
+ }
65
+ ]
66
+ };
67
+ }
68
+ }
69
+ RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
70
+ RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
71
+ CustomCardComponent], imports: [CommonModule,
72
+ HttpClientModule,
73
+ IonicModule], exports: [RonLibComponent, CustomCardComponent] });
74
+ RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
75
+ CommonModule,
76
+ HttpClientModule,
77
+ IonicModule
78
+ ]] });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
80
+ type: NgModule,
81
+ args: [{
82
+ declarations: [
83
+ RonLibComponent,
84
+ CustomCardComponent
85
+ ],
86
+ imports: [
87
+ CommonModule,
88
+ HttpClientModule,
89
+ IonicModule
90
+ ],
91
+ exports: [
92
+ RonLibComponent, CustomCardComponent
93
+ ]
94
+ }]
95
+ }] });
96
+
97
+ class RonLibService {
98
+ constructor(config, http) {
99
+ this.config = config;
100
+ this.http = http;
101
+ this.baseUrl = this.config.apiUrl;
102
+ console.log('My config: ', config);
103
+ }
104
+ getData() {
105
+ return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
106
+ }
107
+ }
108
+ 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 });
109
+ RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
111
+ type: Injectable,
112
+ args: [{
113
+ providedIn: 'root'
114
+ }]
115
+ }], ctorParameters: function () {
116
+ return [{ type: undefined, decorators: [{
117
+ type: Inject,
118
+ args: [LibConfigService]
119
+ }] }, { type: i1$1.HttpClient }];
120
+ } });
121
+
122
+ class CustomPageComponent {
123
+ constructor() { }
124
+ ngOnInit() {
125
+ }
126
+ }
127
+ CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
128
+ 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"] }] });
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
130
+ type: Component,
131
+ 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"] }]
132
+ }], ctorParameters: function () { return []; } });
133
+
134
+ const routes$1 = [
135
+ {
136
+ path: '',
137
+ component: CustomPageComponent,
138
+ }
139
+ ];
140
+ class CustomPageRoutingModule {
141
+ }
142
+ CustomPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
143
+ CustomPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
144
+ CustomPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [[RouterModule.forChild(routes$1)], RouterModule] });
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, decorators: [{
146
+ type: NgModule,
147
+ args: [{
148
+ imports: [RouterModule.forChild(routes$1)],
149
+ exports: [RouterModule]
150
+ }]
151
+ }] });
152
+
153
+ class CustomPageModule {
154
+ }
155
+ CustomPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
156
+ CustomPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, declarations: [CustomPageComponent], imports: [CommonModule, FormsModule,
157
+ IonicModule,
158
+ CustomPageRoutingModule] });
159
+ CustomPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, imports: [[CommonModule, FormsModule,
160
+ IonicModule,
161
+ CustomPageRoutingModule
162
+ ]] });
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, decorators: [{
164
+ type: NgModule,
165
+ args: [{
166
+ imports: [CommonModule, FormsModule,
167
+ IonicModule,
168
+ CustomPageRoutingModule
169
+ ],
170
+ declarations: [CustomPageComponent]
171
+ }]
172
+ }] });
173
+
174
+ class DashboardPage {
175
+ constructor() { }
176
+ ngOnInit() {
177
+ this.createBarChart();
178
+ }
179
+ createBarChart() {
180
+ this.bars = new Chart(this.barChart.nativeElement, {
181
+ type: 'bar',
182
+ data: {
183
+ labels: ['BJP', 'INC', 'AAP', 'CPI', 'CPI-M', 'NCP'],
184
+ datasets: [{
185
+ label: '# of Votes',
186
+ data: [200, 50, 30, 15, 20, 34],
187
+ backgroundColor: [
188
+ 'rgba(255, 99, 132, 0.2)',
189
+ 'rgba(54, 162, 235, 0.2)',
190
+ 'rgba(255, 206, 86, 0.2)',
191
+ 'rgba(75, 192, 192, 0.2)',
192
+ 'rgba(153, 102, 255, 0.2)',
193
+ 'rgba(255, 159, 64, 0.2)'
194
+ ],
195
+ borderColor: [
196
+ 'rgba(255,99,132,1)',
197
+ 'rgba(54, 162, 235, 1)',
198
+ 'rgba(255, 206, 86, 1)',
199
+ 'rgba(75, 192, 192, 1)',
200
+ 'rgba(153, 102, 255, 1)',
201
+ 'rgba(255, 159, 64, 1)'
202
+ ],
203
+ borderWidth: 1
204
+ }]
205
+ },
206
+ options: {
207
+ scales: {
208
+ // yAxes: [{
209
+ // ticks: {
210
+ // beginAtZero: true
211
+ // }
212
+ // }]
213
+ }
214
+ }
215
+ });
216
+ }
217
+ }
218
+ DashboardPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
219
+ DashboardPage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: DashboardPage, selector: "app-dashboard", viewQueries: [{ propertyName: "barChart", first: true, predicate: ["barChart"], descendants: true }], 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 style=\"position: relative; height:20vh; width:40vw\"></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"] }] });
220
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
221
+ type: Component,
222
+ 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 style=\"position: relative; height:20vh; width:40vw\"></canvas>\n </ion-card-content>\n</ion-card>\n</ion-content>\n", styles: [""] }]
223
+ }], ctorParameters: function () { return []; }, propDecorators: { barChart: [{
224
+ type: ViewChild,
225
+ args: ['barChart']
226
+ }] } });
227
+
228
+ const routes = [
229
+ {
230
+ path: '',
231
+ component: DashboardPage
232
+ }
233
+ ];
234
+ class DashboardPageRoutingModule {
235
+ }
236
+ DashboardPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
237
+ DashboardPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
238
+ DashboardPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, decorators: [{
240
+ type: NgModule,
241
+ args: [{
242
+ imports: [RouterModule.forChild(routes)],
243
+ exports: [RouterModule],
244
+ }]
245
+ }] });
246
+
247
+ class DashboardPageModule {
248
+ }
249
+ DashboardPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
250
+ DashboardPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, declarations: [DashboardPage], imports: [CommonModule,
251
+ FormsModule,
252
+ IonicModule,
253
+ DashboardPageRoutingModule,
254
+ //ChartModule,
255
+ HttpClientModule] });
256
+ DashboardPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, imports: [[
257
+ CommonModule,
258
+ FormsModule,
259
+ IonicModule,
260
+ DashboardPageRoutingModule,
261
+ //ChartModule,
262
+ HttpClientModule
263
+ ]] });
264
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, decorators: [{
265
+ type: NgModule,
266
+ args: [{
267
+ imports: [
268
+ CommonModule,
269
+ FormsModule,
270
+ IonicModule,
271
+ DashboardPageRoutingModule,
272
+ //ChartModule,
273
+ HttpClientModule
274
+ ],
275
+ declarations: [DashboardPage]
276
+ }]
277
+ }] });
278
+
279
+ /*
280
+ * Public API Surface of ron-lib
281
+ */
282
+
283
+ /**
284
+ * Generated bundle index. Do not edit.
285
+ */
286
+
287
+ export { CustomCardComponent, CustomPageModule, DashboardPageModule, LibConfigService, RonLibComponent, RonLibModule, RonLibService };
288
+ //# 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')\n private 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: ['BJP', 'INC', 'AAP', 'CPI', 'CPI-M', 'NCP'],\n datasets: [{\n label: '# of Votes',\n data: [200, 50, 30, 15, 20, 34],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(255, 206, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(255, 159, 64, 0.2)'\n ],\n borderColor: [\n 'rgba(255,99,132,1)',\n 'rgba(54, 162, 235, 1)',\n 'rgba(255, 206, 86, 1)',\n 'rgba(75, 192, 192, 1)',\n 'rgba(153, 102, 255, 1)',\n 'rgba(255, 159, 64, 1)'\n ],\n borderWidth: 1\n }]\n },\n options: {\n scales: {\n // yAxes: [{\n // ticks: {\n // beginAtZero: true\n // }\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 style=\"position: relative; height:20vh; width:40vw\"></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":"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"}
@@ -0,0 +1,286 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Input, InjectionToken, NgModule, Injectable, Inject, ViewChild } 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
+ import { Chart } from 'chart.js';
13
+
14
+ class RonLibComponent {
15
+ constructor() { }
16
+ ngOnInit() {
17
+ }
18
+ }
19
+ RonLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
+ RonLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: RonLibComponent, selector: "dev-ron-lib", ngImport: i0, template: `
21
+ <p>
22
+ ron-lib works!
23
+ </p>
24
+ `, isInline: true });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibComponent, decorators: [{
26
+ type: Component,
27
+ args: [{
28
+ selector: 'dev-ron-lib',
29
+ template: `
30
+ <p>
31
+ ron-lib works!
32
+ </p>
33
+ `,
34
+ styles: []
35
+ }]
36
+ }], ctorParameters: function () { return []; } });
37
+
38
+ class CustomCardComponent {
39
+ constructor() { }
40
+ ngOnInit() {
41
+ }
42
+ }
43
+ CustomCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
44
+ 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"] }] });
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomCardComponent, decorators: [{
46
+ type: Component,
47
+ 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: [""] }]
48
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
49
+ type: Input
50
+ }], content: [{
51
+ type: Input
52
+ }] } });
53
+
54
+ const LibConfigService = new InjectionToken('LibConfig');
55
+ class RonLibModule {
56
+ static forRoot(config) {
57
+ return {
58
+ ngModule: RonLibModule,
59
+ providers: [
60
+ RonLibService,
61
+ {
62
+ provide: LibConfigService,
63
+ useValue: config
64
+ }
65
+ ]
66
+ };
67
+ }
68
+ }
69
+ RonLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
70
+ RonLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, declarations: [RonLibComponent,
71
+ CustomCardComponent], imports: [CommonModule,
72
+ HttpClientModule,
73
+ IonicModule], exports: [RonLibComponent, CustomCardComponent] });
74
+ RonLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, imports: [[
75
+ CommonModule,
76
+ HttpClientModule,
77
+ IonicModule
78
+ ]] });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibModule, decorators: [{
80
+ type: NgModule,
81
+ args: [{
82
+ declarations: [
83
+ RonLibComponent,
84
+ CustomCardComponent
85
+ ],
86
+ imports: [
87
+ CommonModule,
88
+ HttpClientModule,
89
+ IonicModule
90
+ ],
91
+ exports: [
92
+ RonLibComponent, CustomCardComponent
93
+ ]
94
+ }]
95
+ }] });
96
+
97
+ class RonLibService {
98
+ constructor(config, http) {
99
+ this.config = config;
100
+ this.http = http;
101
+ this.baseUrl = this.config.apiUrl;
102
+ console.log('My config: ', config);
103
+ }
104
+ getData() {
105
+ return this.http.get(`${this.baseUrl}/api`).pipe(map((res) => res.results[0]));
106
+ }
107
+ }
108
+ 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 });
109
+ RonLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, providedIn: 'root' });
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: RonLibService, decorators: [{
111
+ type: Injectable,
112
+ args: [{
113
+ providedIn: 'root'
114
+ }]
115
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
116
+ type: Inject,
117
+ args: [LibConfigService]
118
+ }] }, { type: i1$1.HttpClient }]; } });
119
+
120
+ class CustomPageComponent {
121
+ constructor() { }
122
+ ngOnInit() {
123
+ }
124
+ }
125
+ CustomPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
+ 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"] }] });
127
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageComponent, decorators: [{
128
+ type: Component,
129
+ 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"] }]
130
+ }], ctorParameters: function () { return []; } });
131
+
132
+ const routes$1 = [
133
+ {
134
+ path: '',
135
+ component: CustomPageComponent,
136
+ }
137
+ ];
138
+ class CustomPageRoutingModule {
139
+ }
140
+ CustomPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
141
+ CustomPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
142
+ CustomPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, imports: [[RouterModule.forChild(routes$1)], RouterModule] });
143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageRoutingModule, decorators: [{
144
+ type: NgModule,
145
+ args: [{
146
+ imports: [RouterModule.forChild(routes$1)],
147
+ exports: [RouterModule]
148
+ }]
149
+ }] });
150
+
151
+ class CustomPageModule {
152
+ }
153
+ CustomPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
154
+ CustomPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, declarations: [CustomPageComponent], imports: [CommonModule, FormsModule,
155
+ IonicModule,
156
+ CustomPageRoutingModule] });
157
+ CustomPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, imports: [[CommonModule, FormsModule,
158
+ IonicModule,
159
+ CustomPageRoutingModule
160
+ ]] });
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: CustomPageModule, decorators: [{
162
+ type: NgModule,
163
+ args: [{
164
+ imports: [CommonModule, FormsModule,
165
+ IonicModule,
166
+ CustomPageRoutingModule
167
+ ],
168
+ declarations: [CustomPageComponent]
169
+ }]
170
+ }] });
171
+
172
+ class DashboardPage {
173
+ constructor() { }
174
+ ngOnInit() {
175
+ this.createBarChart();
176
+ }
177
+ createBarChart() {
178
+ this.bars = new Chart(this.barChart.nativeElement, {
179
+ type: 'bar',
180
+ data: {
181
+ labels: ['BJP', 'INC', 'AAP', 'CPI', 'CPI-M', 'NCP'],
182
+ datasets: [{
183
+ label: '# of Votes',
184
+ data: [200, 50, 30, 15, 20, 34],
185
+ backgroundColor: [
186
+ 'rgba(255, 99, 132, 0.2)',
187
+ 'rgba(54, 162, 235, 0.2)',
188
+ 'rgba(255, 206, 86, 0.2)',
189
+ 'rgba(75, 192, 192, 0.2)',
190
+ 'rgba(153, 102, 255, 0.2)',
191
+ 'rgba(255, 159, 64, 0.2)'
192
+ ],
193
+ borderColor: [
194
+ 'rgba(255,99,132,1)',
195
+ 'rgba(54, 162, 235, 1)',
196
+ 'rgba(255, 206, 86, 1)',
197
+ 'rgba(75, 192, 192, 1)',
198
+ 'rgba(153, 102, 255, 1)',
199
+ 'rgba(255, 159, 64, 1)'
200
+ ],
201
+ borderWidth: 1
202
+ }]
203
+ },
204
+ options: {
205
+ scales: {
206
+ // yAxes: [{
207
+ // ticks: {
208
+ // beginAtZero: true
209
+ // }
210
+ // }]
211
+ }
212
+ }
213
+ });
214
+ }
215
+ }
216
+ DashboardPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
217
+ DashboardPage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.2", type: DashboardPage, selector: "app-dashboard", viewQueries: [{ propertyName: "barChart", first: true, predicate: ["barChart"], descendants: true }], 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 style=\"position: relative; height:20vh; width:40vw\"></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"] }] });
218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
219
+ type: Component,
220
+ 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 style=\"position: relative; height:20vh; width:40vw\"></canvas>\n </ion-card-content>\n</ion-card>\n</ion-content>\n", styles: [""] }]
221
+ }], ctorParameters: function () { return []; }, propDecorators: { barChart: [{
222
+ type: ViewChild,
223
+ args: ['barChart']
224
+ }] } });
225
+
226
+ const routes = [
227
+ {
228
+ path: '',
229
+ component: DashboardPage
230
+ }
231
+ ];
232
+ class DashboardPageRoutingModule {
233
+ }
234
+ DashboardPageRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
235
+ DashboardPageRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] });
236
+ DashboardPageRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
237
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageRoutingModule, decorators: [{
238
+ type: NgModule,
239
+ args: [{
240
+ imports: [RouterModule.forChild(routes)],
241
+ exports: [RouterModule],
242
+ }]
243
+ }] });
244
+
245
+ class DashboardPageModule {
246
+ }
247
+ DashboardPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
248
+ DashboardPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, declarations: [DashboardPage], imports: [CommonModule,
249
+ FormsModule,
250
+ IonicModule,
251
+ DashboardPageRoutingModule,
252
+ //ChartModule,
253
+ HttpClientModule] });
254
+ DashboardPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, imports: [[
255
+ CommonModule,
256
+ FormsModule,
257
+ IonicModule,
258
+ DashboardPageRoutingModule,
259
+ //ChartModule,
260
+ HttpClientModule
261
+ ]] });
262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPageModule, decorators: [{
263
+ type: NgModule,
264
+ args: [{
265
+ imports: [
266
+ CommonModule,
267
+ FormsModule,
268
+ IonicModule,
269
+ DashboardPageRoutingModule,
270
+ //ChartModule,
271
+ HttpClientModule
272
+ ],
273
+ declarations: [DashboardPage]
274
+ }]
275
+ }] });
276
+
277
+ /*
278
+ * Public API Surface of ron-lib
279
+ */
280
+
281
+ /**
282
+ * Generated bundle index. Do not edit.
283
+ */
284
+
285
+ export { CustomCardComponent, CustomPageModule, DashboardPageModule, LibConfigService, RonLibComponent, RonLibModule, RonLibService };
286
+ //# sourceMappingURL=rpan93-ron-lib.mjs.map