Update uikit samples and bumped PrimeNG

This commit is contained in:
Cagatay Civici
2022-10-16 13:29:59 +03:00
parent 088e5aa1a1
commit 6769826e5b
62 changed files with 461 additions and 420 deletions

View File

@@ -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 { }

View File

@@ -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' }
];
}

View File

@@ -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 { }

View File

@@ -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 { }

View File

@@ -14,7 +14,6 @@
<label htmlFor="age1">Age</label>
<input pInputText id="age1" type="text" />
</div>
</div>
<div class="card p-fluid">

View File

@@ -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;
}

View File

@@ -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 { }