-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* angular 18 update complete * Update package.json --------- Co-authored-by: Dikshit Moradiya <dixit.moradia@phoenixcoded.co>
- Loading branch information
1 parent
e087ab4
commit 5b76c09
Showing
59 changed files
with
60,244 additions
and
4,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export class BerryConfig { | ||
static isCollapse_menu: boolean = false; | ||
static fontFamily: string = 'Roboto'; // Roboto, poppins, inter | ||
static font_family: string = 'Roboto'; // Roboto, poppins, inter | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/app/demo/default/bajaj-chart/bajaj-chart.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<apx-chart | ||
[series]="chartOptions.series" | ||
[chart]="chartOptions.chart" | ||
[dataLabels]="chartOptions.dataLabels" | ||
[plotOptions]="chartOptions.plotOptions" | ||
[responsive]="chartOptions.responsive" | ||
[colors]="chartOptions.colors" | ||
[tooltip]="chartOptions.tooltip" | ||
[stroke]="chartOptions.stroke" | ||
></apx-chart> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// angular import | ||
import { Component, ViewChild } from '@angular/core'; | ||
|
||
// project import | ||
import { SharedModule } from 'src/app/theme/shared/shared.module'; | ||
|
||
// third party | ||
import { | ||
NgApexchartsModule, | ||
ApexChart, | ||
ChartComponent, | ||
ApexDataLabels, | ||
ApexAxisChartSeries, | ||
ApexTooltip, | ||
ApexPlotOptions, | ||
ApexResponsive, | ||
ApexStroke | ||
} from 'ng-apexcharts'; | ||
|
||
export type ChartOptions = { | ||
series: ApexAxisChartSeries; | ||
chart: ApexChart; | ||
dataLabels: ApexDataLabels; | ||
plotOptions: ApexPlotOptions; | ||
responsive: ApexResponsive[]; | ||
colors: string[]; | ||
stroke: ApexStroke; | ||
tooltip: ApexTooltip; | ||
}; | ||
|
||
@Component({ | ||
selector: 'app-bajaj-chart', | ||
standalone: true, | ||
imports: [SharedModule, NgApexchartsModule], | ||
templateUrl: './bajaj-chart.component.html', | ||
styleUrl: './bajaj-chart.component.scss' | ||
}) | ||
export class BajajChartComponent { | ||
// public props | ||
@ViewChild('chart') chart!: ChartComponent; | ||
chartOptions!: Partial<ChartOptions>; | ||
|
||
// constructor | ||
constructor() { | ||
this.chartOptions = { | ||
chart: { | ||
type: 'area', | ||
height: 95, | ||
stacked: true, | ||
sparkline: { | ||
enabled: true | ||
}, | ||
background: 'transparent' | ||
}, | ||
stroke: { | ||
curve: 'smooth', | ||
width: 1 | ||
}, | ||
series: [ | ||
{ | ||
data: [0, 15, 10, 50, 30, 40, 25] | ||
} | ||
], | ||
tooltip: { | ||
theme: 'light', | ||
fixed: { | ||
enabled: false | ||
}, | ||
x: { | ||
show: false | ||
}, | ||
y: { | ||
title: { | ||
formatter: () => 'Ticket ' | ||
} | ||
}, | ||
marker: { | ||
show: false | ||
} | ||
}, | ||
colors: ['#673ab7'] | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="row mb-3 align-items-center"> | ||
<div class="col"> | ||
<div class="text-sm">Total Growth</div> | ||
<h3 class="mt-2 f-w-600">$2,324.00</h3> | ||
</div> | ||
<div class="col-auto"> | ||
<select class="form-select p-r-35" title="Select"> | ||
<option>Today</option> | ||
<option selected>Month</option> | ||
<option>Year</option> | ||
</select> | ||
</div> | ||
</div> | ||
<apx-chart | ||
[series]="chartOptions.series" | ||
[chart]="chartOptions.chart" | ||
[dataLabels]="chartOptions.dataLabels" | ||
[plotOptions]="chartOptions.plotOptions" | ||
[responsive]="chartOptions.responsive" | ||
[xaxis]="chartOptions.xaxis" | ||
[colors]="chartOptions.colors" | ||
[tooltip]="chartOptions.tooltip" | ||
></apx-chart> | ||
</div> | ||
</div> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// angular import | ||
import { Component, ViewChild } from '@angular/core'; | ||
|
||
// project import | ||
import { SharedModule } from 'src/app/theme/shared/shared.module'; | ||
|
||
// third party | ||
import { | ||
NgApexchartsModule, | ||
ApexChart, | ||
ChartComponent, | ||
ApexDataLabels, | ||
ApexAxisChartSeries, | ||
ApexXAxis, | ||
ApexYAxis, | ||
ApexTooltip, | ||
ApexPlotOptions, | ||
ApexResponsive | ||
} from 'ng-apexcharts'; | ||
|
||
export type ChartOptions = { | ||
series: ApexAxisChartSeries; | ||
chart: ApexChart; | ||
dataLabels: ApexDataLabels; | ||
plotOptions: ApexPlotOptions; | ||
responsive: ApexResponsive[]; | ||
xaxis: ApexXAxis; | ||
colors: string[]; | ||
yaxis: ApexYAxis; | ||
tooltip: ApexTooltip; | ||
}; | ||
|
||
@Component({ | ||
selector: 'app-bar-chart', | ||
standalone: true, | ||
imports: [NgApexchartsModule, SharedModule], | ||
templateUrl: './bar-chart.component.html', | ||
styleUrl: './bar-chart.component.scss' | ||
}) | ||
export class BarChartComponent { | ||
// public props | ||
@ViewChild('chart') chart!: ChartComponent; | ||
chartOptions!: Partial<ChartOptions>; | ||
|
||
// Constructor | ||
constructor() { | ||
this.chartOptions = { | ||
series: [ | ||
{ | ||
name: 'Investment', | ||
data: [35, 125, 35, 35, 35, 80, 35, 20, 35, 45, 15, 75] | ||
}, | ||
{ | ||
name: 'Loss', | ||
data: [35, 15, 15, 35, 65, 40, 80, 25, 15, 85, 25, 75] | ||
}, | ||
{ | ||
name: 'Profit', | ||
data: [35, 145, 35, 35, 20, 105, 100, 10, 65, 45, 30, 10] | ||
}, | ||
{ | ||
name: 'Maintenance', | ||
data: [0, 0, 75, 0, 0, 115, 0, 0, 0, 0, 150, 0] | ||
} | ||
], | ||
dataLabels: { | ||
enabled: false | ||
}, | ||
chart: { | ||
type: 'bar', | ||
height: 480, | ||
stacked: true, | ||
toolbar: { | ||
show: true | ||
}, | ||
background: 'transparent' | ||
}, | ||
colors: ['#d3eafd', '#2196f3', '#673ab7', '#ede7f6'], | ||
responsive: [ | ||
{ | ||
breakpoint: 480, | ||
options: { | ||
legend: { | ||
position: 'bottom', | ||
offsetX: -10, | ||
offsetY: 0 | ||
} | ||
} | ||
} | ||
], | ||
plotOptions: { | ||
bar: { | ||
horizontal: false, | ||
columnWidth: '50%' | ||
} | ||
}, | ||
xaxis: { | ||
type: 'category', | ||
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] | ||
}, | ||
tooltip: { | ||
theme: 'light' | ||
} | ||
}; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/app/demo/default/chart-data-month/chart-data-month.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div class="row"> | ||
<div class="col"> | ||
<div class="avatar avatar-lg"> | ||
<i class="text-white ti ti-credit-card"></i> | ||
</div> | ||
</div> | ||
<div class="col-auto"> | ||
<div class="d-flex align-items-center gap-2 chart-income"> | ||
<div class="btn btn-sm text-white" [ngClass]="this.btnActive === 'month' ? 'btn-primary' : ''" (click)="toggleActive('month')" | ||
>Month</div | ||
> | ||
<div class="btn btn-sm text-white" [ngClass]="this.btnActive === 'year' ? 'btn-primary' : ''" (click)="toggleActive('year')" | ||
>Year</div | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-6"> | ||
<span class="text-white d-block f-34 f-w-500 my-2">${{ amount }} <i class="ti ti-circle-arrow-up-right opacity-50"></i></span> | ||
<p class="mb-0 opacity-50">C/W Last Year</p> | ||
</div> | ||
<div class="col-6"> | ||
<div id="chart text-dark"> | ||
<apx-chart | ||
[series]="chartOptions.series" | ||
[chart]="chartOptions.chart" | ||
[dataLabels]="chartOptions.dataLabels" | ||
[yaxis]="chartOptions.yaxis" | ||
[colors]="chartOptions.colors" | ||
[stroke]="chartOptions.stroke" | ||
[tooltip]="chartOptions.tooltip" | ||
></apx-chart> | ||
</div> | ||
</div> | ||
</div> |
34 changes: 34 additions & 0 deletions
34
src/app/demo/default/chart-data-month/chart-data-month.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.chart-income { | ||
.active { | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: relative; | ||
box-sizing: border-box; | ||
-webkit-tap-highlight-color: transparent; | ||
outline: 0px; | ||
border: 0px; | ||
margin: 0px; | ||
cursor: pointer; | ||
user-select: none; | ||
vertical-align: middle; | ||
appearance: none; | ||
text-decoration: none; | ||
text-transform: capitalize; | ||
font-family: Roboto, sans-serif; | ||
font-size: 0.8125rem; | ||
line-height: 1.75; | ||
min-width: 64px; | ||
padding: 4px 10px; | ||
transition: | ||
background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, | ||
box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, | ||
border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, | ||
color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; | ||
background-color: rgb(33, 150, 243); | ||
box-shadow: none; | ||
font-weight: 500; | ||
border-radius: 4px; | ||
color: inherit; | ||
} | ||
} |
Oops, something went wrong.