Update uikit samples and bumped PrimeNG
This commit is contained in:
parent
088e5aa1a1
commit
6769826e5b
@ -22,7 +22,7 @@
|
|||||||
"chart.js": "^3.3.2",
|
"chart.js": "^3.3.2",
|
||||||
"primeflex": "^3.2.0",
|
"primeflex": "^3.2.0",
|
||||||
"primeicons": "6.0.1",
|
"primeicons": "6.0.1",
|
||||||
"primeng": "14.1.1",
|
"primeng": "14.1.2",
|
||||||
"prismjs": "1.9.0",
|
"prismjs": "1.9.0",
|
||||||
"rxjs": "~7.5.0",
|
"rxjs": "~7.5.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
@ -30,7 +30,7 @@
|
|||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~14.0.3",
|
"@angular-devkit/build-angular": "^14.2.6",
|
||||||
"@angular/cli": "~14.0.3",
|
"@angular/cli": "~14.0.3",
|
||||||
"@angular/compiler-cli": "~14.0.0",
|
"@angular/compiler-cli": "~14.0.0",
|
||||||
"@types/jasmine": "~3.10.0",
|
"@types/jasmine": "~3.10.0",
|
||||||
|
@ -10,12 +10,12 @@ import { AppLayoutComponent } from "./layout/app.layout.component";
|
|||||||
path: '', component: AppLayoutComponent,
|
path: '', component: AppLayoutComponent,
|
||||||
children: [
|
children: [
|
||||||
{ path: '', loadChildren: () => import('./demo/components/dashboard/dashboard.module').then(m => m.DashboardModule) },
|
{ path: '', loadChildren: () => import('./demo/components/dashboard/dashboard.module').then(m => m.DashboardModule) },
|
||||||
{ path: 'uikit', loadChildren: () => import('./demo/components/uikit/uikit.module').then(m => m.UikitModule) },
|
{ path: 'uikit', loadChildren: () => import('./demo/components/uikit/uikit.module').then(m => m.UIkitModule) },
|
||||||
{ path: 'utilities', loadChildren: () => import('./demo/components/utilities/utilities.module').then(m => m.UtilitiesModule) },
|
{ path: 'utilities', loadChildren: () => import('./demo/components/utilities/utilities.module').then(m => m.UtilitiesModule) },
|
||||||
{ path: 'documentation', loadChildren: () => import('./demo/components/documentation/documentation.module').then(m => m.DocumentationModule) },
|
{ path: 'documentation', loadChildren: () => import('./demo/components/documentation/documentation.module').then(m => m.DocumentationModule) },
|
||||||
{ path: 'blocks', loadChildren: () => import('./demo/components/primeblocks/primeblocks.module').then(m => m.PrimeBlocksModule) },
|
{ path: 'blocks', loadChildren: () => import('./demo/components/primeblocks/primeblocks.module').then(m => m.PrimeBlocksModule) },
|
||||||
{ path: 'pages', loadChildren: () => import('./demo/components/pages/pages.module').then(m => m.PagesModule) },
|
{ path: 'pages', loadChildren: () => import('./demo/components/pages/pages.module').then(m => m.PagesModule) }
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
{ path: 'auth', loadChildren: () => import('./demo/components/auth/auth.module').then(m => m.AuthModule) },
|
{ path: 'auth', loadChildren: () => import('./demo/components/auth/auth.module').then(m => m.AuthModule) },
|
||||||
{ path: 'landing', loadChildren: () => import('./demo/components/landing/landing.module').then(m => m.LandingModule) },
|
{ path: 'landing', loadChildren: () => import('./demo/components/landing/landing.module').then(m => m.LandingModule) },
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { ButtonDemoComponent } from './buttondemo.component';
|
import { ButtonDemoComponent } from './buttondemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: ButtonDemoComponent }
|
{ path: '', component: ButtonDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class ButtonDemoRoutingModule { }
|
export class ButtonDemoRoutingModule { }
|
||||||
|
@ -24,4 +24,5 @@ export class ButtonDemoComponent implements OnInit {
|
|||||||
this.loading[index] = true;
|
this.loading[index] = true;
|
||||||
setTimeout(() => this.loading[index] = false, 1000);
|
setTimeout(() => this.loading[index] = false, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,14 +8,14 @@ import { SplitButtonModule } from 'primeng/splitbutton';
|
|||||||
import { ToggleButtonModule } from 'primeng/togglebutton';
|
import { ToggleButtonModule } from 'primeng/togglebutton';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
ButtonDemoRoutingModule,
|
ButtonDemoRoutingModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
RippleModule,
|
RippleModule,
|
||||||
SplitButtonModule,
|
SplitButtonModule,
|
||||||
ToggleButtonModule,
|
ToggleButtonModule,
|
||||||
],
|
],
|
||||||
declarations: [ButtonDemoComponent]
|
declarations: [ButtonDemoComponent]
|
||||||
})
|
})
|
||||||
export class ButtonDemoModule { }
|
export class ButtonDemoModule { }
|
||||||
|
@ -265,4 +265,5 @@ export class ChartsDemoComponent implements OnInit {
|
|||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { FileDemoComponent } from './filedemo.component';
|
import { FileDemoComponent } from './filedemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: FileDemoComponent }
|
{ path: '', component: FileDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class FileDemoRoutingModule { }
|
export class FileDemoRoutingModule { }
|
||||||
|
0
src/app/demo/components/uikit/file/filedemo.component.html
Normal file → Executable file
0
src/app/demo/components/uikit/file/filedemo.component.html
Normal file → Executable file
3
src/app/demo/components/uikit/file/filedemo.component.ts
Normal file → Executable file
3
src/app/demo/components/uikit/file/filedemo.component.ts
Normal file → Executable file
@ -9,7 +9,7 @@ export class FileDemoComponent {
|
|||||||
|
|
||||||
uploadedFiles: any[] = [];
|
uploadedFiles: any[] = [];
|
||||||
|
|
||||||
constructor(private messageService: MessageService) { }
|
constructor(private messageService: MessageService) {}
|
||||||
|
|
||||||
onUpload(event: any) {
|
onUpload(event: any) {
|
||||||
for (const file of event.files) {
|
for (const file of event.files) {
|
||||||
@ -22,4 +22,5 @@ export class FileDemoComponent {
|
|||||||
onBasicUpload() {
|
onBasicUpload() {
|
||||||
this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded with Basic Mode' });
|
this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded with Basic Mode' });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,14 @@ import { FileUploadModule } from 'primeng/fileupload';
|
|||||||
import { FileDemoRoutingModule } from './filedemo-routing.module';
|
import { FileDemoRoutingModule } from './filedemo-routing.module';
|
||||||
import { FileDemoComponent } from './filedemo.component';
|
import { FileDemoComponent } from './filedemo.component';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
FileDemoRoutingModule,
|
FileDemoRoutingModule,
|
||||||
FileUploadModule
|
FileUploadModule
|
||||||
],
|
],
|
||||||
declarations: [FileDemoComponent],
|
declarations: [FileDemoComponent],
|
||||||
})
|
})
|
||||||
export class FileDemoModule { }
|
export class FileDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { FloatLabelDemoComponent } from './floatlabeldemo.component';
|
import { FloatLabelDemoComponent } from './floatlabeldemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: FloatLabelDemoComponent }
|
{ path: '', component: FloatLabelDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class FloatlabelDemoRoutingModule { }
|
export class FloatlabelDemoRoutingModule { }
|
||||||
|
@ -38,11 +38,11 @@ export class FloatLabelDemoComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(private countryService: CountryService) {
|
constructor(private countryService: CountryService) {
|
||||||
this.cities = [
|
this.cities = [
|
||||||
{ name: 'New York', code: 'NY' },
|
{name: 'New York', code: 'NY'},
|
||||||
{ name: 'Rome', code: 'RM' },
|
{name: 'Rome', code: 'RM'},
|
||||||
{ name: 'London', code: 'LDN' },
|
{name: 'London', code: 'LDN'},
|
||||||
{ name: 'Istanbul', code: 'IST' },
|
{name: 'Istanbul', code: 'IST'},
|
||||||
{ name: 'Paris', code: 'PRS' }
|
{name: 'Paris', code: 'PRS'}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,21 +15,21 @@ import { InputTextareaModule } from "primeng/inputtextarea";
|
|||||||
import { InputTextModule } from "primeng/inputtext";
|
import { InputTextModule } from "primeng/inputtext";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
FloatlabelDemoRoutingModule,
|
FloatlabelDemoRoutingModule,
|
||||||
AutoCompleteModule,
|
AutoCompleteModule,
|
||||||
CalendarModule,
|
CalendarModule,
|
||||||
ChipsModule,
|
ChipsModule,
|
||||||
DropdownModule,
|
DropdownModule,
|
||||||
InputMaskModule,
|
InputMaskModule,
|
||||||
InputNumberModule,
|
InputNumberModule,
|
||||||
CascadeSelectModule,
|
CascadeSelectModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
InputTextareaModule,
|
InputTextareaModule,
|
||||||
InputTextModule
|
InputTextModule
|
||||||
],
|
],
|
||||||
declarations: [FloatLabelDemoComponent]
|
declarations: [FloatLabelDemoComponent]
|
||||||
})
|
})
|
||||||
export class FloatlabelDemoModule { }
|
export class FloatlabelDemoModule { }
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule } from '@angular/router';
|
|
||||||
import { FormLayoutComponent } from './formlayout.component';
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forChild([
|
|
||||||
{ path: '', component: FormLayoutComponent }
|
|
||||||
])],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
|
||||||
export class FormlayoutRoutingModule { }
|
|
@ -1,15 +0,0 @@
|
|||||||
import { Component } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
templateUrl: './formlayout.component.html'
|
|
||||||
})
|
|
||||||
export class FormLayoutComponent {
|
|
||||||
|
|
||||||
selectedState: any;
|
|
||||||
|
|
||||||
dropdownItems = [
|
|
||||||
{ name: 'Option 1', code: 'Option 1' },
|
|
||||||
{ name: 'Option 2', code: 'Option 2' },
|
|
||||||
{ name: 'Option 3', code: 'Option 3' }
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { CommonModule } from '@angular/common';
|
|
||||||
import { FormLayoutComponent } from './formlayout.component';
|
|
||||||
import { DropdownModule } from 'primeng/dropdown';
|
|
||||||
import { FormsModule } from '@angular/forms';
|
|
||||||
import { FormlayoutRoutingModule } from './formlayout-routing.module';
|
|
||||||
import { InputTextModule } from 'primeng/inputtext';
|
|
||||||
import { ButtonModule } from 'primeng/button';
|
|
||||||
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [
|
|
||||||
CommonModule,
|
|
||||||
DropdownModule,
|
|
||||||
FormsModule,
|
|
||||||
InputTextModule,
|
|
||||||
InputTextareaModule,
|
|
||||||
ButtonModule,
|
|
||||||
FormlayoutRoutingModule
|
|
||||||
],
|
|
||||||
declarations: [FormLayoutComponent]
|
|
||||||
})
|
|
||||||
export class FormlayoutModule { }
|
|
@ -0,0 +1,11 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { FormLayoutDemoComponent } from './formlayoutdemo.component';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild([
|
||||||
|
{ path: '', component: FormLayoutDemoComponent }
|
||||||
|
])],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class FormLayoutDemoRoutingModule { }
|
@ -14,7 +14,6 @@
|
|||||||
<label htmlFor="age1">Age</label>
|
<label htmlFor="age1">Age</label>
|
||||||
<input pInputText id="age1" type="text" />
|
<input pInputText id="age1" type="text" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card p-fluid">
|
<div class="card p-fluid">
|
@ -0,0 +1,32 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
templateUrl: './formlayoutdemo.component.html'
|
||||||
|
})
|
||||||
|
export class FormLayoutDemoComponent {
|
||||||
|
|
||||||
|
selectedState: any = null;
|
||||||
|
|
||||||
|
states: any[] = [
|
||||||
|
{name: 'Arizona', code: 'Arizona'},
|
||||||
|
{name: 'California', value: 'California'},
|
||||||
|
{name: 'Florida', code: 'Florida'},
|
||||||
|
{name: 'Ohio', code: 'Ohio'},
|
||||||
|
{name: 'Washington', code: 'Washington'}
|
||||||
|
];
|
||||||
|
|
||||||
|
dropdownItems = [
|
||||||
|
{ name: 'Option 1', code: 'Option 1' },
|
||||||
|
{ name: 'Option 2', code: 'Option 2' },
|
||||||
|
{ name: 'Option 3', code: 'Option 3' }
|
||||||
|
];
|
||||||
|
|
||||||
|
cities1: any[] = [];
|
||||||
|
|
||||||
|
cities2: any[] = [];
|
||||||
|
|
||||||
|
city1: any = null;
|
||||||
|
|
||||||
|
city2: any = null;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { FormLayoutDemoComponent } from './formlayoutdemo.component';
|
||||||
|
import { FormLayoutDemoRoutingModule } from './formlayoutdemo-routing.module';
|
||||||
|
import { AutoCompleteModule } from "primeng/autocomplete";
|
||||||
|
import { CalendarModule } from "primeng/calendar";
|
||||||
|
import { ChipsModule } from "primeng/chips";
|
||||||
|
import { DropdownModule } from "primeng/dropdown";
|
||||||
|
import { InputMaskModule } from "primeng/inputmask";
|
||||||
|
import { InputNumberModule } from "primeng/inputnumber";
|
||||||
|
import { CascadeSelectModule } from "primeng/cascadeselect";
|
||||||
|
import { MultiSelectModule } from "primeng/multiselect";
|
||||||
|
import { InputTextareaModule } from "primeng/inputtextarea";
|
||||||
|
import { InputTextModule } from "primeng/inputtext";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
FormLayoutDemoRoutingModule,
|
||||||
|
AutoCompleteModule,
|
||||||
|
CalendarModule,
|
||||||
|
ChipsModule,
|
||||||
|
DropdownModule,
|
||||||
|
InputMaskModule,
|
||||||
|
InputNumberModule,
|
||||||
|
CascadeSelectModule,
|
||||||
|
MultiSelectModule,
|
||||||
|
InputTextareaModule,
|
||||||
|
InputTextModule
|
||||||
|
],
|
||||||
|
declarations: [FormLayoutDemoComponent]
|
||||||
|
})
|
||||||
|
export class FormLayoutDemoModule { }
|
@ -6,6 +6,7 @@ import { CountryService } from 'src/app/demo/service/country.service';
|
|||||||
templateUrl: './inputdemo.component.html'
|
templateUrl: './inputdemo.component.html'
|
||||||
})
|
})
|
||||||
export class InputDemoComponent implements OnInit {
|
export class InputDemoComponent implements OnInit {
|
||||||
|
|
||||||
countries: any[] = [];
|
countries: any[] = [];
|
||||||
|
|
||||||
filteredCountries: any[] = [];
|
filteredCountries: any[] = [];
|
||||||
|
@ -27,33 +27,33 @@ import { ToggleButtonModule } from 'primeng/togglebutton';
|
|||||||
import { SliderModule } from 'primeng/slider';
|
import { SliderModule } from 'primeng/slider';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
InputDemoRoutingModule,
|
InputDemoRoutingModule,
|
||||||
AutoCompleteModule,
|
AutoCompleteModule,
|
||||||
CalendarModule,
|
CalendarModule,
|
||||||
ChipsModule,
|
ChipsModule,
|
||||||
DropdownModule,
|
DropdownModule,
|
||||||
InputMaskModule,
|
InputMaskModule,
|
||||||
InputNumberModule,
|
InputNumberModule,
|
||||||
ColorPickerModule,
|
ColorPickerModule,
|
||||||
CascadeSelectModule,
|
CascadeSelectModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
ToggleButtonModule,
|
ToggleButtonModule,
|
||||||
SliderModule,
|
SliderModule,
|
||||||
InputTextareaModule,
|
InputTextareaModule,
|
||||||
RadioButtonModule,
|
RadioButtonModule,
|
||||||
InputTextModule,
|
InputTextModule,
|
||||||
RatingModule,
|
RatingModule,
|
||||||
ChipModule,
|
ChipModule,
|
||||||
KnobModule,
|
KnobModule,
|
||||||
InputSwitchModule,
|
InputSwitchModule,
|
||||||
ListboxModule,
|
ListboxModule,
|
||||||
SelectButtonModule,
|
SelectButtonModule,
|
||||||
CheckboxModule,
|
CheckboxModule,
|
||||||
ButtonModule
|
ButtonModule
|
||||||
],
|
],
|
||||||
declarations: [InputDemoComponent]
|
declarations: [InputDemoComponent]
|
||||||
})
|
})
|
||||||
export class InputDemoModule { }
|
export class InputDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { InvalidStateDemoComponent } from './invalidstatedemo.component';
|
import { InvalidStateDemoComponent } from './invalidstatedemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: InvalidStateDemoComponent }
|
{ path: '', component: InvalidStateDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class InvalidStateDemoRoutingModule { }
|
export class InvalidStateDemoRoutingModule { }
|
||||||
|
@ -62,4 +62,5 @@ export class InvalidStateDemoComponent implements OnInit {
|
|||||||
|
|
||||||
this.filteredCountries = filtered;
|
this.filteredCountries = filtered;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,22 +16,22 @@ import { InputTextModule } from "primeng/inputtext";
|
|||||||
import { PasswordModule } from "primeng/password";
|
import { PasswordModule } from "primeng/password";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
InvalidStateDemoRoutingModule,
|
InvalidStateDemoRoutingModule,
|
||||||
AutoCompleteModule,
|
AutoCompleteModule,
|
||||||
CalendarModule,
|
CalendarModule,
|
||||||
ChipsModule,
|
ChipsModule,
|
||||||
DropdownModule,
|
DropdownModule,
|
||||||
InputMaskModule,
|
InputMaskModule,
|
||||||
InputNumberModule,
|
InputNumberModule,
|
||||||
CascadeSelectModule,
|
CascadeSelectModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
PasswordModule,
|
PasswordModule,
|
||||||
InputTextareaModule,
|
InputTextareaModule,
|
||||||
InputTextModule
|
InputTextModule
|
||||||
],
|
],
|
||||||
declarations: [InvalidStateDemoComponent]
|
declarations: [InvalidStateDemoComponent]
|
||||||
})
|
})
|
||||||
export class InvalidStateDemoModule { }
|
export class InvalidStateDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { ListDemoComponent } from './listdemo.component';
|
import { ListDemoComponent } from './listdemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: ListDemoComponent }
|
{ path: '', component: ListDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class ListDemoRoutingModule { }
|
export class ListDemoRoutingModule { }
|
||||||
|
@ -69,4 +69,5 @@ export class ListDemoComponent implements OnInit {
|
|||||||
onFilter(dv: DataView, event: Event) {
|
onFilter(dv: DataView, event: Event) {
|
||||||
dv.filter((event.target as HTMLInputElement).value);
|
dv.filter((event.target as HTMLInputElement).value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,18 +12,18 @@ import { RatingModule } from 'primeng/rating';
|
|||||||
import { ButtonModule } from 'primeng/button';
|
import { ButtonModule } from 'primeng/button';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ListDemoRoutingModule,
|
ListDemoRoutingModule,
|
||||||
DataViewModule,
|
DataViewModule,
|
||||||
PickListModule,
|
PickListModule,
|
||||||
OrderListModule,
|
OrderListModule,
|
||||||
InputTextModule,
|
InputTextModule,
|
||||||
DropdownModule,
|
DropdownModule,
|
||||||
RatingModule,
|
RatingModule,
|
||||||
ButtonModule
|
ButtonModule
|
||||||
],
|
],
|
||||||
declarations: [ListDemoComponent]
|
declarations: [ListDemoComponent]
|
||||||
})
|
})
|
||||||
export class ListDemoModule { }
|
export class ListDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { MediaDemoComponent } from './mediademo.component';
|
import { MediaDemoComponent } from './mediademo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: MediaDemoComponent }
|
{ path: '', component: MediaDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class MediaDemoRoutingModule { }
|
export class MediaDemoRoutingModule { }
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Product } from 'src/app/demo/api/product';
|
|
||||||
import { PhotoService } from 'src/app/demo/service/photo.service';
|
|
||||||
import { ProductService } from 'src/app/demo/service/product.service';
|
import { ProductService } from 'src/app/demo/service/product.service';
|
||||||
|
import { PhotoService } from 'src/app/demo/service/photo.service';
|
||||||
|
import { Product } from 'src/app/demo/api/product';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './mediademo.component.html'
|
templateUrl: './mediademo.component.html'
|
||||||
@ -60,4 +60,5 @@ export class MediaDemoComponent implements OnInit {
|
|||||||
this.images = images;
|
this.images = images;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -8,14 +8,14 @@ import { GalleriaModule } from 'primeng/galleria';
|
|||||||
import { CarouselModule } from 'primeng/carousel';
|
import { CarouselModule } from 'primeng/carousel';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MediaDemoRoutingModule,
|
MediaDemoRoutingModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
ImageModule,
|
ImageModule,
|
||||||
GalleriaModule,
|
GalleriaModule,
|
||||||
CarouselModule
|
CarouselModule
|
||||||
],
|
],
|
||||||
declarations: [MediaDemoComponent]
|
declarations: [MediaDemoComponent]
|
||||||
})
|
})
|
||||||
export class MediaDemoModule { }
|
export class MediaDemoModule { }
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-confirmation',
|
template: `
|
||||||
template: `
|
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
||||||
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
<i class="pi pi-fw pi-check mr-2 text-2xl"></i>
|
||||||
<i class="pi pi-fw pi-check mr-2 text-2xl"></i>
|
<p class="m-0 mt-5 text-center text-lg">Confirmation Component Content via Child Route</p>
|
||||||
<p class="m-0 mt-5 text-center text-lg">Confirmation Component Content via Child Route</p>
|
</div>
|
||||||
</div>
|
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
export class ConfirmationComponent { }
|
export class ConfirmationComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
|
0
src/app/demo/components/uikit/menus/menus.component.html
Normal file → Executable file
0
src/app/demo/components/uikit/menus/menus.component.html
Normal file → Executable file
2
src/app/demo/components/uikit/menus/menus.component.ts
Normal file → Executable file
2
src/app/demo/components/uikit/menus/menus.component.ts
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { MegaMenuItem, MenuItem } from 'primeng/api';
|
import { MegaMenuItem, MenuItem } from 'primeng/api';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -1,54 +1,49 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
import { MenusComponent } from './menus.component';
|
||||||
import { PaymentComponent } from './payment.component';
|
import { PaymentComponent } from './payment.component';
|
||||||
import { SeatComponent } from './seat.component';
|
import { SeatComponent } from './seat.component';
|
||||||
import { PersonalComponent } from './personal.component';
|
import { PersonalComponent } from './personal.component';
|
||||||
import { ConfirmationComponent } from './confirmation.component';
|
import { ConfirmationComponent } from './confirmation.component';
|
||||||
import { MenusComponent } from './menus.component';
|
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
||||||
|
import { MenubarModule } from 'primeng/menubar';
|
||||||
|
import { TabMenuModule } from 'primeng/tabmenu';
|
||||||
|
import { StepsModule } from 'primeng/steps';
|
||||||
|
import { TieredMenuModule } from 'primeng/tieredmenu';
|
||||||
import { MenuModule } from 'primeng/menu';
|
import { MenuModule } from 'primeng/menu';
|
||||||
|
import { ButtonModule } from 'primeng/button';
|
||||||
|
import { ContextMenuModule } from 'primeng/contextmenu';
|
||||||
import { MegaMenuModule } from 'primeng/megamenu';
|
import { MegaMenuModule } from 'primeng/megamenu';
|
||||||
import { PanelMenuModule } from 'primeng/panelmenu';
|
import { PanelMenuModule } from 'primeng/panelmenu';
|
||||||
import { TieredMenuModule } from 'primeng/tieredmenu';
|
|
||||||
import { MenubarModule } from 'primeng/menubar';
|
|
||||||
import { BreadcrumbModule } from 'primeng/breadcrumb';
|
|
||||||
import { TabMenuModule } from 'primeng/tabmenu';
|
|
||||||
import { ContextMenuModule } from 'primeng/contextmenu';
|
|
||||||
import { StepsModule } from 'primeng/steps';
|
|
||||||
import { InputTextModule } from 'primeng/inputtext';
|
import { InputTextModule } from 'primeng/inputtext';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
imports: [
|
||||||
MenusComponent,
|
CommonModule,
|
||||||
PaymentComponent,
|
BreadcrumbModule,
|
||||||
ConfirmationComponent,
|
MenubarModule,
|
||||||
PersonalComponent,
|
TabMenuModule,
|
||||||
SeatComponent,
|
StepsModule,
|
||||||
|
TieredMenuModule,
|
||||||
],
|
MenuModule,
|
||||||
imports: [
|
ButtonModule,
|
||||||
MenuModule,
|
ContextMenuModule,
|
||||||
MegaMenuModule,
|
MegaMenuModule,
|
||||||
PanelMenuModule,
|
PanelMenuModule,
|
||||||
MenubarModule,
|
InputTextModule,
|
||||||
BreadcrumbModule,
|
RouterModule.forChild([
|
||||||
InputTextModule,
|
{
|
||||||
TieredMenuModule,
|
path: '', component: MenusComponent, children: [
|
||||||
TabMenuModule,
|
{ path: '', redirectTo: 'personal', pathMatch: 'full' },
|
||||||
ContextMenuModule,
|
{ path: 'personal', component: PersonalComponent },
|
||||||
StepsModule,
|
{ path: 'confirmation', component: ConfirmationComponent },
|
||||||
RouterModule.forChild([
|
{ path: 'seat', component: SeatComponent },
|
||||||
{
|
{ path: 'payment', component: PaymentComponent }
|
||||||
path: '', component: MenusComponent, children: [
|
]
|
||||||
{ path: '', redirectTo: 'personal', pathMatch: 'full' },
|
}
|
||||||
{ path: 'personal', component: PersonalComponent },
|
])
|
||||||
{ path: 'confirmation', component: ConfirmationComponent },
|
],
|
||||||
{ path: 'seat', component: SeatComponent },
|
declarations: [MenusComponent],
|
||||||
{ path: 'payment', component: PaymentComponent }
|
exports: [RouterModule]
|
||||||
]
|
|
||||||
}
|
|
||||||
])
|
|
||||||
],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
})
|
||||||
export class MenusModule { }
|
export class MenusModule { }
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-payment',
|
template: `
|
||||||
template: `
|
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
||||||
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
<i class="pi pi-fw pi-money-bill mr-2 text-2xl"></i>
|
||||||
<i class="pi pi-fw pi-money-bill mr-2 text-2xl"></i>
|
<p class="m-0 mt-5 text-center text-lg">Payment Component Content via Child Route</p>
|
||||||
<p class="m-0 mt-5 text-center text-lg">Payment Component Content via Child Route</p>
|
</div>
|
||||||
</div>
|
`
|
||||||
`
|
|
||||||
})
|
})
|
||||||
export class PaymentComponent { }
|
export class PaymentComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-personal',
|
template: `
|
||||||
template: `
|
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
||||||
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
<i class="pi pi-fw pi-user mr-2 text-2xl"></i>
|
||||||
<i class="pi pi-fw pi-user mr-2 text-2xl"></i>
|
<p class="mt-5 text-center text-lg">Personal Component Content via Child Route</p>
|
||||||
<p class="mt-5 text-center text-lg">Personal Component Content via Child Route</p>
|
</div>
|
||||||
</div>
|
`
|
||||||
`
|
|
||||||
})
|
})
|
||||||
export class PersonalComponent { }
|
export class PersonalComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-seat',
|
template: `
|
||||||
template: `
|
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
||||||
<div class="flex flex-column align-items-center justify-content-center h-full py-5 px-3">
|
<i class="pi pi-fw pi-ticket mr-2 text-2xl"></i>
|
||||||
<i class="pi pi-fw pi-ticket mr-2 text-2xl"></i>
|
<p class="m-0 mt-5 text-center text-lg">Seat Component Content via Child Route</p>
|
||||||
<p class="m-0 mt-5 text-center text-lg">Seat Component Content via Child Route</p>
|
</div>
|
||||||
</div>
|
`
|
||||||
`
|
|
||||||
})
|
})
|
||||||
export class SeatComponent { }
|
export class SeatComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { MessagesDemoComponent } from './messagesdemo.component';
|
import { MessagesDemoComponent } from './messagesdemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: MessagesDemoComponent }
|
{ path: '', component: MessagesDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class MessagesDemoRoutingModule { }
|
export class MessagesDemoRoutingModule { }
|
||||||
|
0
src/app/demo/components/uikit/messages/messagesdemo.component.html
Normal file → Executable file
0
src/app/demo/components/uikit/messages/messagesdemo.component.html
Normal file → Executable file
1
src/app/demo/components/uikit/messages/messagesdemo.component.ts
Normal file → Executable file
1
src/app/demo/components/uikit/messages/messagesdemo.component.ts
Normal file → Executable file
@ -46,4 +46,5 @@ export class MessagesDemoComponent {
|
|||||||
this.msgs = [];
|
this.msgs = [];
|
||||||
this.msgs.push({ severity: 'success', summary: 'Success Message', detail: 'Message sent' });
|
this.msgs.push({ severity: 'success', summary: 'Success Message', detail: 'Message sent' });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -9,15 +9,15 @@ import { ToastModule } from 'primeng/toast';
|
|||||||
import { InputTextModule } from 'primeng/inputtext';
|
import { InputTextModule } from 'primeng/inputtext';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MessagesDemoRoutingModule,
|
MessagesDemoRoutingModule,
|
||||||
MessagesModule,
|
MessagesModule,
|
||||||
MessageModule,
|
MessageModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
ToastModule,
|
ToastModule,
|
||||||
InputTextModule
|
InputTextModule
|
||||||
],
|
],
|
||||||
declarations: [MessagesDemoComponent]
|
declarations: [MessagesDemoComponent]
|
||||||
})
|
})
|
||||||
export class MessagesDemoModule { }
|
export class MessagesDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { MiscDemoComponent } from './miscdemo.component';
|
import { MiscDemoComponent } from './miscdemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: MiscDemoComponent }
|
{ path: '', component: MiscDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class MiscDemoRoutingModule { }
|
export class MiscDemoRoutingModule { }
|
||||||
|
0
src/app/demo/components/uikit/misc/miscdemo.component.html
Normal file → Executable file
0
src/app/demo/components/uikit/misc/miscdemo.component.html
Normal file → Executable file
1
src/app/demo/components/uikit/misc/miscdemo.component.ts
Normal file → Executable file
1
src/app/demo/components/uikit/misc/miscdemo.component.ts
Normal file → Executable file
@ -22,4 +22,5 @@ export class MiscDemoComponent implements OnInit, OnDestroy {
|
|||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
clearInterval(this.interval);
|
clearInterval(this.interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,20 +14,20 @@ import { AvatarGroupModule } from 'primeng/avatargroup';
|
|||||||
import { ScrollTopModule } from 'primeng/scrolltop';
|
import { ScrollTopModule } from 'primeng/scrolltop';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MiscDemoRoutingModule,
|
MiscDemoRoutingModule,
|
||||||
ProgressBarModule,
|
ProgressBarModule,
|
||||||
BadgeModule,
|
BadgeModule,
|
||||||
AvatarModule,
|
AvatarModule,
|
||||||
ScrollPanelModule,
|
ScrollPanelModule,
|
||||||
TagModule,
|
TagModule,
|
||||||
ChipModule,
|
ChipModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
SkeletonModule,
|
SkeletonModule,
|
||||||
AvatarGroupModule,
|
AvatarGroupModule,
|
||||||
ScrollTopModule
|
ScrollTopModule
|
||||||
],
|
],
|
||||||
declarations: [MiscDemoComponent]
|
declarations: [MiscDemoComponent]
|
||||||
})
|
})
|
||||||
export class MiscDemoModule { }
|
export class MiscDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { OverlaysDemoComponent } from './overlaysdemo.component';
|
import { OverlaysDemoComponent } from './overlaysdemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: OverlaysDemoComponent }
|
{ path: '', component: OverlaysDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class OverlaysDemoRoutingModule { }
|
export class OverlaysDemoRoutingModule { }
|
||||||
|
12
src/app/demo/components/uikit/overlays/overlaysdemo.component.html
Normal file → Executable file
12
src/app/demo/components/uikit/overlays/overlaysdemo.component.html
Normal file → Executable file
@ -37,16 +37,16 @@
|
|||||||
<p-table [value]="products" selectionMode="single" [(selection)]="selectedProduct" [paginator]="true" [rows]="5" (onRowSelect)="op2.hide()" responsiveLayout="scroll">
|
<p-table [value]="products" selectionMode="single" [(selection)]="selectedProduct" [paginator]="true" [rows]="5" (onRowSelect)="op2.hide()" responsiveLayout="scroll">
|
||||||
<ng-template pTemplate="header">
|
<ng-template pTemplate="header">
|
||||||
<tr>
|
<tr>
|
||||||
<th pSortableColumn="name">Name<p-sortIcon field="name"></p-sortIcon></th>
|
<th style="min-width:12rem" pSortableColumn="name">Name<p-sortIcon field="name"></p-sortIcon></th>
|
||||||
<th>Image</th>
|
<th style="min-width:5rem">Image</th>
|
||||||
<th pSortableColumn="price">Price <p-sortIcon field="price"></p-sortIcon></th>
|
<th style="min-width:8rem" pSortableColumn="price">Price <p-sortIcon field="price"></p-sortIcon></th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template pTemplate="body" let-rowData let-product>
|
<ng-template pTemplate="body" let-rowData let-product>
|
||||||
<tr [pSelectableRow]="rowData">
|
<tr [pSelectableRow]="rowData">
|
||||||
<td style="min-width: 10rem;">{{product.name}}</td>
|
<td>{{product.name}}</td>
|
||||||
<td style="min-width: 5rem;"><img src="assets/demo/images/product/{{product.image}}" [alt]="product.image" width="50" class="shadow-2"/></td>
|
<td><img src="assets/demo/images/product/{{product.image}}" [alt]="product.image" width="50" class="shadow-2"/></td>
|
||||||
<td style="min-width: 12rem;">{{formatCurrency(product.price)}}</td>
|
<td>{{formatCurrency(product.price)}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</p-table>
|
</p-table>
|
||||||
|
1
src/app/demo/components/uikit/overlays/overlaysdemo.component.ts
Normal file → Executable file
1
src/app/demo/components/uikit/overlays/overlaysdemo.component.ts
Normal file → Executable file
@ -76,4 +76,5 @@ export class OverlaysDemoComponent implements OnInit {
|
|||||||
formatCurrency(value: number) {
|
formatCurrency(value: number) {
|
||||||
return value.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
|
return value.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,24 +14,23 @@ import { RippleModule } from 'primeng/ripple';
|
|||||||
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
||||||
import { TooltipModule } from 'primeng/tooltip';
|
import { TooltipModule } from 'primeng/tooltip';
|
||||||
import { InputTextModule } from 'primeng/inputtext';
|
import { InputTextModule } from 'primeng/inputtext';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
OverlaysDemoRoutingModule,
|
OverlaysDemoRoutingModule,
|
||||||
ToastModule,
|
ToastModule,
|
||||||
DialogModule,
|
DialogModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
TooltipModule,
|
TooltipModule,
|
||||||
InputTextModule,
|
InputTextModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
OverlayPanelModule,
|
OverlayPanelModule,
|
||||||
TableModule,
|
TableModule,
|
||||||
ConfirmDialogModule,
|
ConfirmDialogModule,
|
||||||
SidebarModule,
|
SidebarModule,
|
||||||
RippleModule,
|
RippleModule,
|
||||||
ConfirmPopupModule
|
ConfirmPopupModule
|
||||||
],
|
],
|
||||||
declarations: [OverlaysDemoComponent]
|
declarations: [OverlaysDemoComponent]
|
||||||
})
|
})
|
||||||
export class OverlaysDemoModule { }
|
export class OverlaysDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { PanelsDemoComponent } from './panelsdemo.component';
|
import { PanelsDemoComponent } from './panelsdemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: PanelsDemoComponent }
|
{ path: '', component: PanelsDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class PanelsDemoRoutingModule { }
|
export class PanelsDemoRoutingModule { }
|
||||||
|
0
src/app/demo/components/uikit/panels/panelsdemo.component.html
Normal file → Executable file
0
src/app/demo/components/uikit/panels/panelsdemo.component.html
Normal file → Executable file
1
src/app/demo/components/uikit/panels/panelsdemo.component.ts
Normal file → Executable file
1
src/app/demo/components/uikit/panels/panelsdemo.component.ts
Normal file → Executable file
@ -28,4 +28,5 @@ export class PanelsDemoComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,23 +17,23 @@ import { SplitterModule } from 'primeng/splitter';
|
|||||||
import { PanelModule } from 'primeng/panel';
|
import { PanelModule } from 'primeng/panel';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
PanelsDemoRoutingModule,
|
PanelsDemoRoutingModule,
|
||||||
ToolbarModule,
|
ToolbarModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
RippleModule,
|
RippleModule,
|
||||||
SplitButtonModule,
|
SplitButtonModule,
|
||||||
AccordionModule,
|
AccordionModule,
|
||||||
TabViewModule,
|
TabViewModule,
|
||||||
FieldsetModule,
|
FieldsetModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
InputTextModule,
|
InputTextModule,
|
||||||
DividerModule,
|
DividerModule,
|
||||||
SplitterModule,
|
SplitterModule,
|
||||||
PanelModule
|
PanelModule
|
||||||
],
|
],
|
||||||
declarations: [PanelsDemoComponent]
|
declarations: [PanelsDemoComponent]
|
||||||
})
|
})
|
||||||
export class PanelsDemoModule { }
|
export class PanelsDemoModule { }
|
||||||
|
@ -3,9 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { TableDemoComponent } from './tabledemo.component';
|
import { TableDemoComponent } from './tabledemo.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: '', component: TableDemoComponent }
|
{ path: '', component: TableDemoComponent }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class TableDemoRoutingModule { }
|
export class TableDemoRoutingModule { }
|
||||||
|
@ -14,19 +14,19 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template pTemplate="header">
|
<ng-template pTemplate="header">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th style="min-width: 12rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Name
|
Name
|
||||||
<p-columnFilter type="text" field="name" display="menu" placeholder="Search by name"></p-columnFilter>
|
<p-columnFilter type="text" field="name" display="menu" placeholder="Search by name"></p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 12rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Country
|
Country
|
||||||
<p-columnFilter type="text" field="country.name" display="menu" placeholder="Search by country"></p-columnFilter>
|
<p-columnFilter type="text" field="country.name" display="menu" placeholder="Search by country"></p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 14rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Agent
|
Agent
|
||||||
<p-columnFilter field="representative" matchMode="in" display="menu" [showMatchModes]="false" [showOperator]="false" [showAddButton]="false">
|
<p-columnFilter field="representative" matchMode="in" display="menu" [showMatchModes]="false" [showOperator]="false" [showAddButton]="false">
|
||||||
@ -48,19 +48,19 @@
|
|||||||
</p-columnFilter>
|
</p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 10rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Date
|
Date
|
||||||
<p-columnFilter type="date" field="date" display="menu" placeholder="mm/dd/yyyy"></p-columnFilter>
|
<p-columnFilter type="date" field="date" display="menu" placeholder="mm/dd/yyyy"></p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 10rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Balance
|
Balance
|
||||||
<p-columnFilter type="numeric" field="balance" display="menu" currency="USD"></p-columnFilter>
|
<p-columnFilter type="numeric" field="balance" display="menu" currency="USD"></p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 12rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Status
|
Status
|
||||||
<p-columnFilter field="status" matchMode="equals" display="menu">
|
<p-columnFilter field="status" matchMode="equals" display="menu">
|
||||||
@ -74,7 +74,7 @@
|
|||||||
</p-columnFilter>
|
</p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th style="min-width: 12rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Activity
|
Activity
|
||||||
<p-columnFilter field="activity" matchMode="between" display="menu" [showMatchModes]="false" [showOperator]="false" [showAddButton]="false">
|
<p-columnFilter field="activity" matchMode="between" display="menu" [showMatchModes]="false" [showOperator]="false" [showAddButton]="false">
|
||||||
@ -88,7 +88,7 @@
|
|||||||
</p-columnFilter>
|
</p-columnFilter>
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
<th style="width: 8rem">
|
<th style="min-width: 8rem">
|
||||||
<div class="flex justify-content-between align-items-center">
|
<div class="flex justify-content-between align-items-center">
|
||||||
Verified
|
Verified
|
||||||
<p-columnFilter type="boolean" field="verified" display="menu"></p-columnFilter>
|
<p-columnFilter type="boolean" field="verified" display="menu"></p-columnFilter>
|
||||||
@ -98,30 +98,30 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template pTemplate="body" let-customer>
|
<ng-template pTemplate="body" let-customer>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="min-width: 12rem;">
|
<td>
|
||||||
{{customer.name}}
|
{{customer.name}}
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 12rem;">
|
<td>
|
||||||
<img src="assets/demo/images/flag/flag_placeholder.png" [class]="'flag flag-' + customer.country.code" width="30">
|
<img src="assets/demo/images/flag/flag_placeholder.png" [class]="'flag flag-' + customer.country.code" width="30">
|
||||||
<span class="image-text ml-2">{{customer.country.name}}</span>
|
<span class="image-text ml-2">{{customer.country.name}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 14rem;">
|
<td>
|
||||||
<img [alt]="customer.representative.name" src="assets/demo/images/avatar/{{customer.representative.image}}" width="32" style="vertical-align: middle"/>
|
<img [alt]="customer.representative.name" src="assets/demo/images/avatar/{{customer.representative.image}}" width="32" style="vertical-align: middle"/>
|
||||||
<span class="image-text ml-2">{{customer.representative.name}}</span>
|
<span class="image-text ml-2">{{customer.representative.name}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 10rem;">
|
<td>
|
||||||
{{customer.date | date: 'MM/dd/yyyy'}}
|
{{customer.date | date: 'MM/dd/yyyy'}}
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 10rem;">
|
<td>
|
||||||
{{customer.balance | currency:'USD':'symbol'}}
|
{{customer.balance | currency:'USD':'symbol'}}
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 12rem;">
|
<td>
|
||||||
<span [class]="'customer-badge status-' + customer.status">{{customer.status}}</span>
|
<span [class]="'customer-badge status-' + customer.status">{{customer.status}}</span>
|
||||||
</td>
|
</td>
|
||||||
<td style="min-width: 12rem; ">
|
<td>
|
||||||
<p-progressBar [value]="customer.activity" [showValue]="false" [style]="{'height': '0.5rem'}"></p-progressBar>
|
<p-progressBar [value]="customer.activity" [showValue]="false" [style]="{'height': '0.5rem'}"></p-progressBar>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center" style="min-width: 8rem;">
|
<td class="text-center">
|
||||||
<i class="pi" [ngClass]="{'true-icon pi-check-circle text-green-500': customer.verified, 'false-icon pi-times-circle text-pink-500': !customer.verified}"></i>
|
<i class="pi" [ngClass]="{'true-icon pi-check-circle text-green-500': customer.verified, 'false-icon pi-times-circle text-pink-500': !customer.verified}"></i>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
|
||||||
|
import { Customer, Representative } from 'src/app/demo/api/customer';
|
||||||
|
import { CustomerService } from 'src/app/demo/service/customer.service';
|
||||||
|
import { Product } from 'src/app/demo/api/product';
|
||||||
|
import { ProductService } from 'src/app/demo/service/product.service';
|
||||||
import { Table } from 'primeng/table';
|
import { Table } from 'primeng/table';
|
||||||
import { MessageService, ConfirmationService } from 'primeng/api';
|
import { MessageService, ConfirmationService } from 'primeng/api';
|
||||||
import { Customer, Representative } from 'src/app/demo/api/customer';
|
|
||||||
import { Product } from 'src/app/demo/api/product';
|
|
||||||
import { CustomerService } from 'src/app/demo/service/customer.service';
|
|
||||||
import { ProductService } from 'src/app/demo/service/product.service';
|
|
||||||
|
|
||||||
interface expandedRows {
|
interface expandedRows {
|
||||||
[key: string]: boolean;
|
[key: string]: boolean;
|
||||||
@ -134,4 +134,5 @@ export class TableDemoComponent implements OnInit {
|
|||||||
table.clear();
|
table.clear();
|
||||||
this.filter.nativeElement.value = '';
|
this.filter.nativeElement.value = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -16,22 +16,22 @@ import { SliderModule } from 'primeng/slider';
|
|||||||
import { RatingModule } from 'primeng/rating';
|
import { RatingModule } from 'primeng/rating';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TableDemoRoutingModule,
|
TableDemoRoutingModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
TableModule,
|
TableModule,
|
||||||
RatingModule,
|
RatingModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
SliderModule,
|
SliderModule,
|
||||||
InputTextModule,
|
InputTextModule,
|
||||||
ToggleButtonModule,
|
ToggleButtonModule,
|
||||||
RippleModule,
|
RippleModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
DropdownModule,
|
DropdownModule,
|
||||||
ProgressBarModule,
|
ProgressBarModule,
|
||||||
ToastModule
|
ToastModule
|
||||||
],
|
],
|
||||||
declarations: [TableDemoComponent]
|
declarations: [TableDemoComponent]
|
||||||
})
|
})
|
||||||
export class TableDemoModule { }
|
export class TableDemoModule { }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { TreeNode } from 'primeng/api';
|
|
||||||
import { NodeService } from 'src/app/demo/service/node.service';
|
import { NodeService } from 'src/app/demo/service/node.service';
|
||||||
|
import { TreeNode} from 'primeng/api';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: './treedemo.component.html'
|
templateUrl: './treedemo.component.html'
|
||||||
@ -21,7 +21,7 @@ export class TreeDemoComponent implements OnInit {
|
|||||||
|
|
||||||
cols: any[] = [];
|
cols: any[] = [];
|
||||||
|
|
||||||
constructor(private nodeService: NodeService) { }
|
constructor(private nodeService: NodeService) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.nodeService.getFiles().then(files => this.files1 = files);
|
this.nodeService.getFiles().then(files => this.files1 = files);
|
||||||
|
@ -7,13 +7,13 @@ import { TreeModule } from 'primeng/tree';
|
|||||||
import { TreeTableModule } from 'primeng/treetable';
|
import { TreeTableModule } from 'primeng/treetable';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TreeDemoRoutingModule,
|
TreeDemoRoutingModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
TreeModule,
|
TreeModule,
|
||||||
TreeTableModule
|
TreeTableModule
|
||||||
],
|
],
|
||||||
declarations: [TreeDemoComponent],
|
declarations: [TreeDemoComponent],
|
||||||
})
|
})
|
||||||
export class TreeDemoModule { }
|
export class TreeDemoModule { }
|
||||||
|
@ -3,23 +3,23 @@ import { RouterModule } from '@angular/router';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forChild([
|
imports: [RouterModule.forChild([
|
||||||
{ path: 'formlayout', loadChildren: () => import('./formlayout/formlayout.module').then(m => m.FormlayoutModule) },
|
{ path: 'button', data: { breadcrumb: 'Button' }, loadChildren: () => import('./button/buttondemo.module').then(m => m.ButtonDemoModule) },
|
||||||
{ path: 'button', loadChildren: () => import('./button/buttondemo.module').then(m => m.ButtonDemoModule) },
|
{ path: 'charts', data: { breadcrumb: 'Charts' }, loadChildren: () => import('./charts/chartsdemo.module').then(m => m.ChartsDemoModule) },
|
||||||
{ path: 'charts', loadChildren: () => import('./charts/chartsdemo.module').then(m => m.ChartsDemoModule) },
|
{ path: 'file', data: { breadcrumb: 'File' }, loadChildren: () => import('./file/filedemo.module').then(m => m.FileDemoModule) },
|
||||||
{ path: 'file', loadChildren: () => import('./file/filedemo.module').then(m => m.FileDemoModule) },
|
{ path: 'floatlabel', data: { breadcrumb: 'Float Label' }, loadChildren: () => import('./floatlabel/floatlabeldemo.module').then(m => m.FloatlabelDemoModule) },
|
||||||
{ path: 'floatlabel', loadChildren: () => import('./floatlabel/floatlabeldemo.module').then(m => m.FloatlabelDemoModule) },
|
{ path: 'formlayout', data: { breadcrumb: 'Form Layout' }, loadChildren: () => import('./formlayout/formlayoutdemo.module').then(m => m.FormLayoutDemoModule) },
|
||||||
{ path: 'input', loadChildren: () => import('./input/inputdemo.module').then(m => m.InputDemoModule) },
|
{ path: 'input', data: { breadcrumb: 'Input' }, loadChildren: () => import('./input/inputdemo.module').then(m => m.InputDemoModule) },
|
||||||
{ path: 'invalidstate', loadChildren: () => import('./invalid/invalidstatedemo.module').then(m => m.InvalidStateDemoModule) },
|
{ path: 'invalidstate', data: { breadcrumb: 'Invalid State' }, loadChildren: () => import('./invalid/invalidstatedemo.module').then(m => m.InvalidStateDemoModule) },
|
||||||
{ path: 'list', loadChildren: () => import('./list/listdemo.module').then(m => m.ListDemoModule) },
|
{ path: 'list', data: { breadcrumb: 'List' }, loadChildren: () => import('./list/listdemo.module').then(m => m.ListDemoModule) },
|
||||||
{ path: 'media', loadChildren: () => import('./media/mediademo.module').then(m => m.MediaDemoModule) },
|
{ path: 'media', data: { breadcrumb: 'Media' }, loadChildren: () => import('./media/mediademo.module').then(m => m.MediaDemoModule) },
|
||||||
{ path: 'message', loadChildren: () => import('./messages/messagesdemo.module').then(m => m.MessagesDemoModule) },
|
{ path: 'message', data: { breadcrumb: 'Message' }, loadChildren: () => import('./messages/messagesdemo.module').then(m => m.MessagesDemoModule) },
|
||||||
{ path: 'misc', loadChildren: () => import('./misc/miscdemo.module').then(m => m.MiscDemoModule) },
|
{ path: 'misc', data: { breadcrumb: 'Misc' }, loadChildren: () => import('./misc/miscdemo.module').then(m => m.MiscDemoModule) },
|
||||||
{ path: 'overlay', loadChildren: () => import('./overlays/overlaysdemo.module').then(m => m.OverlaysDemoModule) },
|
{ path: 'overlay', data: { breadcrumb: 'Overlay' }, loadChildren: () => import('./overlays/overlaysdemo.module').then(m => m.OverlaysDemoModule) },
|
||||||
{ path: 'panel', loadChildren: () => import('./panels/panelsdemo.module').then(m => m.PanelsDemoModule) },
|
{ path: 'panel', data: { breadcrumb: 'Panel' }, loadChildren: () => import('./panels/panelsdemo.module').then(m => m.PanelsDemoModule) },
|
||||||
{ path: 'table', loadChildren: () => import('./table/tabledemo.module').then(m => m.TableDemoModule) },
|
{ path: 'table', data: { breadcrumb: 'Table' }, loadChildren: () => import('./table/tabledemo.module').then(m => m.TableDemoModule) },
|
||||||
{ path: 'tree', loadChildren: () => import('./tree/treedemo.module').then(m => m.TreeDemoModule) },
|
{ path: 'tree', data: { breadcrumb: 'Tree' }, loadChildren: () => import('./tree/treedemo.module').then(m => m.TreeDemoModule) },
|
||||||
{ path: 'menu', loadChildren: () => import('./menus/menus.module').then(m => m.MenusModule) }
|
{ path: 'menu', data: { breadcrumb: 'Menu' }, loadChildren: () => import('./menus/menus.module').then(m => m.MenusModule) }
|
||||||
])],
|
])],
|
||||||
exports: [RouterModule]
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class UikitRoutingModule { }
|
export class UIkitRoutingModule { }
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { UikitRoutingModule } from './uikit-routing.module';
|
import { UIkitRoutingModule } from './uikit-routing.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
UikitRoutingModule
|
UIkitRoutingModule
|
||||||
],
|
]
|
||||||
declarations: []
|
|
||||||
})
|
})
|
||||||
export class UikitModule { }
|
export class UIkitModule { }
|
||||||
|
Loading…
Reference in New Issue
Block a user