@rpan93/ron-lib 0.0.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -3
- package/src/lib/custom-card/custom-card.component.ts +1 -1
- package/src/lib/custom-page/custom-page-routing.module.ts +2 -2
- package/src/lib/custom-page/custom-page.component.css +0 -5
- package/src/lib/custom-page/custom-page.component.html +14 -14
- package/src/lib/custom-page/custom-page.module.ts +1 -1
- package/src/public-api.ts +0 -1
- package/src/lib/dashboard/dashboard-routing.module.ts +0 -17
- package/src/lib/dashboard/dashboard.module.ts +0 -23
- package/src/lib/dashboard/dashboard.page.html +0 -24
- package/src/lib/dashboard/dashboard.page.scss +0 -0
- package/src/lib/dashboard/dashboard.page.spec.ts +0 -24
- package/src/lib/dashboard/dashboard.page.ts +0 -37
package/package.json
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rpan93/ron-lib",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "1.0.0",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": "^13.1.0",
|
6
|
-
"@angular/core": "^13.1.0"
|
7
|
-
"@ionic/angular": "^6.0.2"
|
6
|
+
"@angular/core": "^13.1.0"
|
8
7
|
},
|
9
8
|
"dependencies": {
|
10
9
|
"tslib": "^2.3.0"
|
@@ -1,15 +1,15 @@
|
|
1
1
|
<ion-header>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
</ion-header>
|
12
|
-
<ion-content>
|
13
|
-
|
14
|
-
|
15
|
-
</ion-content>
|
2
|
+
<ion-toolbar color="primary">
|
3
|
+
<ion-buttons slot="start">
|
4
|
+
<ion-back-button defaultHref="/">
|
5
|
+
</ion-back-button>
|
6
|
+
<ion-title>
|
7
|
+
Ron Lib Page
|
8
|
+
</ion-title>
|
9
|
+
</ion-buttons>
|
10
|
+
</ion-toolbar>
|
11
|
+
</ion-header>
|
12
|
+
<ion-content>
|
13
|
+
<div class="custom-box"></div>
|
14
|
+
This is a full page from the library!
|
15
|
+
</ion-content>
|
package/src/public-api.ts
CHANGED
@@ -1,17 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { Routes, RouterModule } from '@angular/router';
|
3
|
-
|
4
|
-
import { DashboardPage } from './dashboard.page';
|
5
|
-
|
6
|
-
const routes: Routes = [
|
7
|
-
{
|
8
|
-
path: '',
|
9
|
-
component: DashboardPage
|
10
|
-
}
|
11
|
-
];
|
12
|
-
|
13
|
-
@NgModule({
|
14
|
-
imports: [RouterModule.forChild(routes)],
|
15
|
-
exports: [RouterModule],
|
16
|
-
})
|
17
|
-
export class DashboardPageRoutingModule {}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { FormsModule } from '@angular/forms';
|
4
|
-
|
5
|
-
import { IonicModule } from '@ionic/angular';
|
6
|
-
|
7
|
-
import { DashboardPageRoutingModule } from './dashboard-routing.module';
|
8
|
-
|
9
|
-
import { DashboardPage } from './dashboard.page';
|
10
|
-
import { ChartModule } from 'angular2-chartjs';
|
11
|
-
import { HttpClientModule } from '@angular/common/http';
|
12
|
-
@NgModule({
|
13
|
-
imports: [
|
14
|
-
CommonModule,
|
15
|
-
FormsModule,
|
16
|
-
IonicModule,
|
17
|
-
DashboardPageRoutingModule,
|
18
|
-
ChartModule,
|
19
|
-
HttpClientModule
|
20
|
-
],
|
21
|
-
declarations: [DashboardPage]
|
22
|
-
})
|
23
|
-
export class DashboardPageModule {}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<ion-header>
|
2
|
-
<ion-toolbar color="primary">
|
3
|
-
<ion-buttons slot="start">
|
4
|
-
<ion-back-button defaultHref="/">
|
5
|
-
</ion-back-button>
|
6
|
-
<ion-title>
|
7
|
-
Ron Dashboard Page
|
8
|
-
</ion-title>
|
9
|
-
</ion-buttons>
|
10
|
-
</ion-toolbar>
|
11
|
-
</ion-header>
|
12
|
-
|
13
|
-
<ion-content>
|
14
|
-
Dashboard
|
15
|
-
<ion-card class="welcome-card">
|
16
|
-
<ion-card-header>
|
17
|
-
<ion-card-subtitle>Authorizations</ion-card-subtitle>
|
18
|
-
<ion-card-title>Transaction details</ion-card-title>
|
19
|
-
</ion-card-header>
|
20
|
-
<ion-card-content>
|
21
|
-
<!-- <canvas #barChart></canvas> -->
|
22
|
-
</ion-card-content>
|
23
|
-
</ion-card>
|
24
|
-
</ion-content>
|
File without changes
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
2
|
-
import { IonicModule } from '@ionic/angular';
|
3
|
-
|
4
|
-
import { DashboardPage } from './dashboard.page';
|
5
|
-
|
6
|
-
describe('DashboardPage', () => {
|
7
|
-
let component: DashboardPage;
|
8
|
-
let fixture: ComponentFixture<DashboardPage>;
|
9
|
-
|
10
|
-
beforeEach(waitForAsync(() => {
|
11
|
-
TestBed.configureTestingModule({
|
12
|
-
declarations: [ DashboardPage ],
|
13
|
-
imports: [IonicModule.forRoot()]
|
14
|
-
}).compileComponents();
|
15
|
-
|
16
|
-
fixture = TestBed.createComponent(DashboardPage);
|
17
|
-
component = fixture.componentInstance;
|
18
|
-
fixture.detectChanges();
|
19
|
-
}));
|
20
|
-
|
21
|
-
it('should create', () => {
|
22
|
-
expect(component).toBeTruthy();
|
23
|
-
});
|
24
|
-
});
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
2
|
-
import { Chart } from "chart.js";
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
4
|
-
@Component({
|
5
|
-
selector: 'app-dashboard',
|
6
|
-
templateUrl: './dashboard.page.html',
|
7
|
-
styleUrls: ['./dashboard.page.scss'],
|
8
|
-
})
|
9
|
-
export class DashboardPage implements OnInit {
|
10
|
-
// @ViewChild('barChart', {static: true}) barChart: ElementRef;
|
11
|
-
// bars: any;
|
12
|
-
// constructor(){}
|
13
|
-
|
14
|
-
ngOnInit() {
|
15
|
-
// this.createBarChart();
|
16
|
-
}
|
17
|
-
// createBarChart() {
|
18
|
-
// this.bars = new Chart(this.barChart.nativeElement, {
|
19
|
-
// type: 'bar',
|
20
|
-
// data: {
|
21
|
-
// labels: ['S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8'],
|
22
|
-
// datasets: [{
|
23
|
-
// label: 'Transactions in millions',
|
24
|
-
// data: [2.5, 3.8, 5, 6.9, 6.9, 7.5, 10, 17],
|
25
|
-
// backgroundColor: 'rgb(38, 194, 129)', // array should have same number of elements as number of dataset
|
26
|
-
// borderColor: 'rgb(38, 194, 129)',// array should have same number of elements as number of dataset
|
27
|
-
// borderWidth: 1
|
28
|
-
// }]
|
29
|
-
// },
|
30
|
-
// options: {
|
31
|
-
// scales: {
|
32
|
-
|
33
|
-
// }
|
34
|
-
// }
|
35
|
-
// });
|
36
|
-
// }
|
37
|
-
}
|