@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 CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@rpan93/ron-lib",
3
- "version": "0.0.9",
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"
@@ -10,7 +10,7 @@ export class CustomCardComponent implements OnInit {
10
10
  title!: string;
11
11
  @Input()
12
12
  content!: string;
13
-
13
+
14
14
  constructor() { }
15
15
 
16
16
  ngOnInit(): void {
@@ -14,5 +14,5 @@ const routes : Routes = [
14
14
  exports: [RouterModule]
15
15
  })
16
16
  export class CustomPageRoutingModule{
17
-
18
- }
17
+
18
+ }
@@ -1,5 +0,0 @@
1
- .custom-box {
2
- background: var(--custom-background, #ff00ff);
3
- width: 100%;
4
- height: 100px;
5
- }
@@ -1,15 +1,15 @@
1
1
  <ion-header>
2
- <ion-toolbar color="primary">
3
- <ion-buttons slot="start">
4
- <ion-back-button defaultHref="/">
5
- </ion-back-button>
6
- <ion-title>
7
- Ron Lib Page
8
- </ion-title>
9
- </ion-buttons>
10
- </ion-toolbar>
11
- </ion-header>
12
- <ion-content>
13
- <div class="custom-box"></div>
14
- This is a full page from the library!
15
- </ion-content>
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>
@@ -14,4 +14,4 @@ import { FormsModule } from '@angular/forms';
14
14
  })
15
15
  export class CustomPageModule{
16
16
 
17
- }
17
+ }
package/src/public-api.ts CHANGED
@@ -7,4 +7,3 @@ export * from './lib/ron-lib.component';
7
7
  export * from './lib/ron-lib.module';
8
8
  export * from './lib/custom-card/custom-card.component';
9
9
  export * from './lib/custom-page/custom-page.module';
10
- export * from './lib/dashboard/dashboard.module';
@@ -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
- }