@rpan93/ron-lib 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,58 +1,19 @@
1
- import { Component, ViewChild } from '@angular/core';
2
- import { Chart } from "chart.js";
1
+ import { Component } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
4
3
  import * as i1 from "@ionic/angular";
5
4
  export class DashboardPage {
5
+ // @ViewChild('barChart')
6
+ // private barChart!: ElementRef;
7
+ // bars: any;
6
8
  constructor() { }
7
9
  ngOnInit() {
8
- this.createBarChart();
9
- }
10
- createBarChart() {
11
- this.bars = new Chart(this.barChart.nativeElement, {
12
- type: 'bar',
13
- data: {
14
- labels: ['BJP', 'INC', 'AAP', 'CPI', 'CPI-M', 'NCP'],
15
- datasets: [{
16
- label: '# of Votes',
17
- data: [200, 50, 30, 15, 20, 34],
18
- backgroundColor: [
19
- 'rgba(255, 99, 132, 0.2)',
20
- 'rgba(54, 162, 235, 0.2)',
21
- 'rgba(255, 206, 86, 0.2)',
22
- 'rgba(75, 192, 192, 0.2)',
23
- 'rgba(153, 102, 255, 0.2)',
24
- 'rgba(255, 159, 64, 0.2)'
25
- ],
26
- borderColor: [
27
- 'rgba(255,99,132,1)',
28
- 'rgba(54, 162, 235, 1)',
29
- 'rgba(255, 206, 86, 1)',
30
- 'rgba(75, 192, 192, 1)',
31
- 'rgba(153, 102, 255, 1)',
32
- 'rgba(255, 159, 64, 1)'
33
- ],
34
- borderWidth: 1
35
- }]
36
- },
37
- options: {
38
- scales: {
39
- // yAxes: [{
40
- // ticks: {
41
- // beginAtZero: true
42
- // }
43
- // }]
44
- }
45
- }
46
- });
10
+ // this.createBarChart();
47
11
  }
48
12
  }
49
13
  DashboardPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
- 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"] }] });
14
+ 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 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"] }] });
51
15
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
52
16
  type: Component,
53
- 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: [""] }]
54
- }], ctorParameters: function () { return []; }, propDecorators: { barChart: [{
55
- type: ViewChild,
56
- args: ['barChart']
57
- }] } });
58
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLnBhZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9yb24tbGliL3NyYy9saWIvZGFzaGJvYXJkL2Rhc2hib2FyZC5wYWdlLnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcm9uLWxpYi9zcmMvbGliL2Rhc2hib2FyZC9kYXNoYm9hcmQucGFnZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsU0FBUyxFQUFjLE1BQU0sZUFBZSxDQUFDO0FBQ3pFLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxVQUFVLENBQUM7OztBQU9qQyxNQUFNLE9BQU8sYUFBYTtJQUl2QixnQkFBYyxDQUFDO0lBRWhCLFFBQVE7UUFDTCxJQUFJLENBQUMsY0FBYyxFQUFFLENBQUM7SUFDekIsQ0FBQztJQUNELGNBQWM7UUFDWixJQUFJLENBQUMsSUFBSS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29sb3I6IFtcbiAgICAgICAgICAgICdyZ2JhKDI1NSwgOTksIDEzMiwgMC4yKScsXG4gICAgICAgICAgICAncmdiYSg1NCwgMTYyLCAyMzUsIDAuMiknLFxuICAgICAgICAgICAgJ3JnYmEoMjU1LCAyMDYsIDg2LCAwLjIpJyxcbiAgICAgICAgICAgICdyZ2JhKDc1LCAxOTIsIDE5MiwgMC4yKScsXG4gICAgICAgICAgICAncmdiYSgxNTMsIDEwMiwgMjU1LCAwLjIpJyxcbiAgICAgICAgICAgICdyZ2JhKDI1NSwgMTU5LCA2NCwgMC4yKSdcbiAgICAgICAgICBdLFxuICAgICAgICAgIGJvcmRlckNvbG9yOiBbXG4gICAgICAgICAgICAncmdiYSgyNTUsOTksMTMyLDEpJyxcbiAgICAgICAgICAgICdyZ2JhKDU0LCAxNjIsIDIzNSwgMSknLFxuICAgICAgICAgICAgJ3JnYmEoMjU1LCAyMDYsIDg2LCAxKScsXG4gICAgICAgICAgICAncmdiYSg3NSwgMTkyLCAxOTIsIDEpJyxcbiAgICAgICAgICAgICdyZ2JhKDE1MywgMTAyLCAyNTUsIDEpJyxcbiAgICAgICAgICAgICdyZ2JhKDI1NSwgMTU5LCA2NCwgMSknXG4gICAgICAgICAgXSxcbiAgICAgICAgICBib3JkZXJXaWR0aDogMVxuICAgICAgICB9XVxuICAgICAgfSxcbiAgICAgIG9wdGlvbnM6IHtcbiAgICAgICAgc2NhbGVzOiB7XG4gICAgICAgICAgLy8geUF4ZXM6IFt7XG4gICAgICAgICAgLy8gICB0aWNrczoge1xuICAgICAgICAgIC8vICAgICBiZWdpbkF0WmVybzogdHJ1ZVxuICAgICAgICAgIC8vICAgfVxuICAgICAgICAgIC8vIH1dXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9KTtcbiB9XG59XG4iLCI8aW9uLWhlYWRlcj5cbiAgPGlvbi10b29sYmFyIGNvbG9yPVwicHJpbWFyeVwiPlxuICAgIDxpb24tYnV0dG9ucyBzbG90PVwic3RhcnRcIj5cbiAgICAgIDxpb24tYmFjay1idXR0b24gZGVmYXVsdEhyZWY9XCIvXCI+XG4gICAgICA8L2lvbi1iYWNrLWJ1dHRvbj5cbiAgICAgIDxpb24tdGl0bGU+XG4gICAgICAgIFJvbiBEYXNoYm9hcmQgUGFnZVxuICAgICAgPC9pb24tdGl0bGU+XG4gICAgPC9pb24tYnV0dG9ucz5cbiAgPC9pb24tdG9vbGJhcj5cbjwvaW9uLWhlYWRlcj5cblxuPGlvbi1jb250ZW50PlxuRGFzaGJvYXJkXG48aW9uLWNhcmQgY2xhc3M9XCJ3ZWxjb21lLWNhcmRcIj5cbiAgPGlvbi1jYXJkLWhlYWRlcj5cbiAgICA8aW9uLWNhcmQtc3VidGl0bGU+QXV0aG9yaXphdGlvbnM8L2lvbi1jYXJkLXN1YnRpdGxlPlxuICAgIDxpb24tY2FyZC10aXRsZT5UcmFuc2FjdGlvbiBkZXRhaWxzPC9pb24tY2FyZC10aXRsZT5cbiAgPC9pb24tY2FyZC1oZWFkZXI+XG4gIDxpb24tY2FyZC1jb250ZW50PlxuICAgIE15IENhcmRcbiAgICA8Y2FudmFzICNiYXJDaGFydCBzdHlsZT1cInBvc2l0aW9uOiByZWxhdGl2ZTsgaGVpZ2h0OjIwdmg7IHdpZHRoOjQwdndcIj48L2NhbnZhcz5cbiAgPC9pb24tY2FyZC1jb250ZW50PlxuPC9pb24tY2FyZD5cbjwvaW9uLWNvbnRlbnQ+XG4iXX0=
17
+ 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: [""] }]
18
+ }], ctorParameters: function () { return []; } });
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLnBhZ2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9yb24tbGliL3NyYy9saWIvZGFzaGJvYXJkL2Rhc2hib2FyZC5wYWdlLnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcm9uLWxpYi9zcmMvbGliL2Rhc2hib2FyZC9kYXNoYm9hcmQucGFnZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWlDLE1BQU0sZUFBZSxDQUFDOzs7QUFRekUsTUFBTSxPQUFPLGFBQWE7SUFDeEIsMEJBQTBCO0lBQzFCLGtDQUFrQztJQUNsQyxjQUFjO0lBQ2IsZ0JBQWMsQ0FBQztJQUVoQixRQUFRO1FBQ04sMEJBQTBCO0lBQzVCLENBQUM7OzBHQVJVLGFBQWE7OEZBQWIsYUFBYSxxRENSMUIsd3FCQXlCQTsyRkRqQmEsYUFBYTtrQkFMekIsU0FBUzsrQkFDRSxlQUFlIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBPbkluaXQsIFZpZXdDaGlsZCwgRWxlbWVudFJlZiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ2hhcnQgfSBmcm9tIFwiY2hhcnQuanNcIjtcbmltcG9ydCB7IEh0dHBDbGllbnQgfSBmcm9tICdAYW5ndWxhci9jb21tb24vaHR0cCc7XG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdhcHAtZGFzaGJvYXJkJyxcbiAgdGVtcGxh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sIDI1NSwgMC4yKScsXG4vLyAgICAgICAgICAgICAncmdiYSgyNTUsIDE1OSwgNjQsIDAuMiknXG4vLyAgICAgICAgICAgXSxcbi8vICAgICAgICAgICBib3JkZXJDb2xvcjogW1xuLy8gICAgICAgICAgICAgJ3JnYmEoMjU1LDk5LDEzMiwxKScsXG4vLyAgICAgICAgICAgICAncmdiYSg1NCwgMTYyLCAyMzUsIDEpJyxcbi8vICAgICAgICAgICAgICdyZ2JhKDI1NSwgMjA2LCA4NiwgMSknLFxuLy8gICAgICAgICAgICAgJ3JnYmEoNzUsIDE5MiwgMTkyLCAxKScsXG4vLyAgICAgICAgICAgICAncmdiYSgxNTMsIDEwMiwgMjU1LCAxKScsXG4vLyAgICAgICAgICAgICAncmdiYSgyNTUsIDE1OSwgNjQsIDEpJ1xuLy8gICAgICAgICAgIF0sXG4vLyAgICAgICAgICAgYm9yZGVyV2lkdGg6IDFcbi8vICAgICAgICAgfV1cbi8vICAgICAgIH0sXG4vLyAgICAgICBvcHRpb25zOiB7XG4vLyAgICAgICAgIHNjYWxlczoge1xuLy8gICAgICAgICAgIC8vIHlBeGVzOiBbe1xuLy8gICAgICAgICAgIC8vICAgdGlja3M6IHtcbi8vICAgICAgICAgICAvLyAgICAgYmVnaW5BdFplcm86IHRydWVcbi8vICAgICAgICAgICAvLyAgIH1cbi8vICAgICAgICAgICAvLyB9XVxuLy8gICAgICAgICB9XG4vLyAgICAgICB9XG4vLyAgICAgfSk7XG4vLyAgfVxufVxuIiwiPGlvbi1oZWFkZXI+XG4gIDxpb24tdG9vbGJhciBjb2xvcj1cInByaW1hcnlcIj5cbiAgICA8aW9uLWJ1dHRvbnMgc2xvdD1cInN0YXJ0XCI+XG4gICAgICA8aW9uLWJhY2stYnV0dG9uIGRlZmF1bHRIcmVmPVwiL1wiPlxuICAgICAgPC9pb24tYmFjay1idXR0b24+XG4gICAgICA8aW9uLXRpdGxlPlxuICAgICAgICBSb24gRGFzaGJvYXJkIFBhZ2VcbiAgICAgIDwvaW9uLXRpdGxlPlxuICAgIDwvaW9uLWJ1dHRvbnM+XG4gIDwvaW9uLXRvb2xiYXI+XG48L2lvbi1oZWFkZXI+XG5cbjxpb24tY29udGVudD5cbkRhc2hib2FyZFxuPGlvbi1jYXJkIGNsYXNzPVwid2VsY29tZS1jYXJkXCI+XG4gIDxpb24tY2FyZC1oZWFkZXI+XG4gICAgPGlvbi1jYXJkLXN1YnRpdGxlPkF1dGhvcml6YXRpb25zPC9pb24tY2FyZC1zdWJ0aXRsZT5cbiAgICA8aW9uLWNhcmQtdGl0bGU+VHJhbnNhY3Rpb24gZGV0YWlsczwvaW9uLWNhcmQtdGl0bGU+XG4gIDwvaW9uLWNhcmQtaGVhZGVyPlxuICA8aW9uLWNhcmQtY29udGVudD5cbiAgICBNeSBDYXJkXG4gICAgPCEtLSA8Y2FudmFzICNiYXJDaGFydCBzdHlsZT1cInBvc2l0aW9uOiByZWxhdGl2ZTsgaGVpZ2h0OjIwdmg7IHdpZHRoOjQwdndcIj48L2NhbnZhcz4gLS0+XG4gIDwvaW9uLWNhcmQtY29udGVudD5cbjwvaW9uLWNhcmQ+XG48L2lvbi1jb250ZW50PlxuIl19
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, InjectionToken, NgModule, Injectable, Inject, ViewChild } from '@angular/core';
2
+ import { Component, Input, InjectionToken, NgModule, Injectable, Inject } from '@angular/core';
3
3
  import * as i1 from '@ionic/angular';
4
4
  import { IonicModule } from '@ionic/angular';
5
5
  import * as i1$1 from '@angular/common/http';
@@ -9,7 +9,6 @@ import { map } from 'rxjs/operators';
9
9
  import * as i1$2 from '@angular/router';
10
10
  import { RouterModule } from '@angular/router';
11
11
  import { FormsModule } from '@angular/forms';
12
- import { Chart } from 'chart.js';
13
12
 
14
13
  class RonLibComponent {
15
14
  constructor() { }
@@ -172,58 +171,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
172
171
  }] });
173
172
 
174
173
  class DashboardPage {
174
+ // @ViewChild('barChart')
175
+ // private barChart!: ElementRef;
176
+ // bars: any;
175
177
  constructor() { }
176
178
  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
- });
179
+ // this.createBarChart();
216
180
  }
217
181
  }
218
182
  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"] }] });
183
+ 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 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
184
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
221
185
  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
- }] } });
186
+ 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: [""] }]
187
+ }], ctorParameters: function () { return []; } });
227
188
 
228
189
  const routes = [
229
190
  {
@@ -1 +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":";;;;;;;;;;;;;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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,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;;;;;;"}
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":";;;;;;;;;;;;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;wBACZ,gBAAgB;wBAChB,WAAW;qBAC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AAE,CAAC,aAAa,CAAC;iBAC9B;;;ACrBD;;;;ACAA;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, InjectionToken, NgModule, Injectable, Inject, ViewChild } from '@angular/core';
2
+ import { Component, Input, InjectionToken, NgModule, Injectable, Inject } from '@angular/core';
3
3
  import * as i1 from '@ionic/angular';
4
4
  import { IonicModule } from '@ionic/angular';
5
5
  import * as i1$1 from '@angular/common/http';
@@ -9,7 +9,6 @@ import { map } from 'rxjs/operators';
9
9
  import * as i1$2 from '@angular/router';
10
10
  import { RouterModule } from '@angular/router';
11
11
  import { FormsModule } from '@angular/forms';
12
- import { Chart } from 'chart.js';
13
12
 
14
13
  class RonLibComponent {
15
14
  constructor() { }
@@ -170,58 +169,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImpor
170
169
  }] });
171
170
 
172
171
  class DashboardPage {
172
+ // @ViewChild('barChart')
173
+ // private barChart!: ElementRef;
174
+ // bars: any;
173
175
  constructor() { }
174
176
  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
- });
177
+ // this.createBarChart();
214
178
  }
215
179
  }
216
180
  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"] }] });
181
+ 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 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
182
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.2", ngImport: i0, type: DashboardPage, decorators: [{
219
183
  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
- }] } });
184
+ 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: [""] }]
185
+ }], ctorParameters: function () { return []; } });
225
186
 
226
187
  const routes = [
227
188
  {
@@ -1 +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":";;;;;;;;;;;;;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;wBACZ,gBAAgB;wBAChB,WAAW;qBACZ;oBACD,OAAO,EAAE;wBACP,eAAe,EAAE,mBAAmB;qBACrC;iBACF;;;MCnBY,aAAa;IAExB,YAA8C,MAAiB,EAAU,IAAgB;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EAAE,aAAa;KACzB;CACF,CAAC;MAMW,0BAA0B;;uHAA1B,0BAA0B;wHAA1B,0BAA0B,0CAF3B,YAAY;wHAEX,0BAA0B,YAH5B,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAC9B,YAAY;2FAEX,0BAA0B;kBAJtC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACxC,OAAO,EAAE,CAAC,YAAY,CAAC;iBACxB;;;MCOY,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,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;;;;;;"}
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":";;;;;;;;;;;;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,c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AC,MAAM,CAAC,CAAC,EAC9B,YAAY;2FAEX,0BAA0B;kBAJtC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;oBACxC,OAAO,EAAE,CAAC,YAAY,CAAC;iBACxB;;;MCOY,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,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;;;;;;"}
@@ -1,11 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DashboardPage implements OnInit {
4
- private barChart;
5
- bars: any;
6
4
  constructor();
7
5
  ngOnInit(): void;
8
- createBarChart(): void;
9
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPage, never>;
10
7
  static ɵcmp: i0.ɵɵComponentDeclaration<DashboardPage, "app-dashboard", never, {}, {}, never, never>;
11
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpan93/ron-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.1.0",
6
6
  "@angular/core": "^13.1.0",