Skip to content

Commit

Permalink
Merge pull request #94 from vcl/chore/upgrade-deps
Browse files Browse the repository at this point in the history
Chore/upgrade deps
  • Loading branch information
vanthome authored Dec 11, 2024
2 parents 5e44c4e + a18080e commit 51ad986
Show file tree
Hide file tree
Showing 149 changed files with 29,002 additions and 9,433 deletions.
88 changes: 49 additions & 39 deletions demo/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { NgModule, LOCALE_ID, SecurityContext } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import {
provideHttpClient,
withInterceptorsFromDi,
} from '@angular/common/http';
import { ScrollingModule } from '@angular/cdk/scrolling';
import { MarkdownModule, MARKED_OPTIONS } from 'ngx-markdown';

Expand Down Expand Up @@ -38,43 +41,50 @@ export function determineWeekdayOffset() {
return locale.startsWith('de') ? 1 : 0;
}

@NgModule({ declarations: [AppComponent, HomeComponent],
bootstrap: [AppComponent], imports: [FormsModule,
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
VCLInputModule,
VCLButtonModule,
VCLIconModule,
VCLIcogramModule,
VCLFontAwesomeModule,
VCLMaterialDesignModule,
VCLNavigationModule,
VCLBusyIndicatorModule,
VCLLayerModule,
VCLDrawerModule,
VCLDateAdapterModule.forRoot({
weekDayOffset: determineWeekdayOffset(),
}),
ScrollingModule,
MarkdownModule.forRoot({
sanitize: SecurityContext.NONE,
markedOptions: {
provide: MARKED_OPTIONS,
useValue: {
gfm: true,
breaks: true,
pedantic: false,
smartLists: true,
smartypants: false,
tables: true,
},
},
})], providers: [
{
provide: LOCALE_ID,
useFactory: determineLocale,
@NgModule({
declarations: [AppComponent, HomeComponent],
bootstrap: [AppComponent],
imports: [
FormsModule,
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
VCLInputModule,
VCLButtonModule,
VCLIconModule,
VCLIcogramModule,
VCLFontAwesomeModule,
VCLMaterialDesignModule,
VCLNavigationModule,
VCLBusyIndicatorModule,
VCLLayerModule,
VCLDrawerModule,
VCLDateAdapterModule.forRoot({
weekDayOffset: determineWeekdayOffset(),
}),
ScrollingModule,
MarkdownModule.forRoot({
sanitize: SecurityContext.NONE,
markedOptions: {
provide: MARKED_OPTIONS,
useValue: {
gfm: true,
breaks: true,
pedantic: false,

// smartLists: true,
// smartypants: false,
// tables: true,
},
provideHttpClient(withInterceptorsFromDi()),
] })
},
}),
],
providers: [
{
provide: LOCALE_ID,
useFactory: determineLocale,
},
provideHttpClient(withInterceptorsFromDi()),
],
})
export class AppModule {}
5 changes: 3 additions & 2 deletions demo/app/components/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ import { DrawerComponent } from '@vcl/ng-vcl';
declare var gitBranch: string;

@Component({
selector: 'demo-app',
templateUrl: 'app.component.html',
selector: 'demo-app',
templateUrl: 'app.component.html',
standalone: false
})
export class AppComponent implements OnInit, OnDestroy {
constructor(
Expand Down
3 changes: 2 additions & 1 deletion demo/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { DomSanitizer } from '@angular/platform-browser';
import README from '!raw-loader!../../../../README.md';

@Component({
templateUrl: 'home.component.html',
templateUrl: 'home.component.html',
standalone: false
})
export class HomeComponent {
constructor(private sanitizer: DomSanitizer) {}
Expand Down
5 changes: 3 additions & 2 deletions demo/app/demos/alert/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ function createAsyncResult(
}

@Component({
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
standalone: false
})
export class AlertDemoComponent {
constructor(private alert: AlertService) {}
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/badge/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class BadgeDemoComponent {}
3 changes: 2 additions & 1 deletion demo/app/demos/breakpoints/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { map } from 'rxjs/operators';
const pickMatches = map((state: BreakpointState) => state.matches);

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class BreakpointsDemoComponent {
constructor(private breakpointObserver: BreakpointObserver) {}
Expand Down
7 changes: 4 additions & 3 deletions demo/app/demos/busy-indicator/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Component, ViewEncapsulation } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
encapsulation: ViewEncapsulation.None,
styleUrls: ['./demo.component.scss'],
templateUrl: 'demo.component.html',
encapsulation: ViewEncapsulation.None,
styleUrls: ['./demo.component.scss'],
standalone: false
})
export class BusyDemoComponent {
isBusy = false;
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/button-group/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component, OnInit } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class ButtonGroupDemoComponent {
value1 = 2;
Expand Down
5 changes: 3 additions & 2 deletions demo/app/demos/button/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
standalone: false
})
export class ButtonDemoComponent {
someAction(param) {
Expand Down
9 changes: 5 additions & 4 deletions demo/app/demos/calendar/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import { VCLDateRange, DateAdapterBase } from '@vcl/ng-vcl';
import { VCLCalendarDateModifier } from '@vcl/ng-vcl';

@Component({
templateUrl: 'demo.component.html',
styles: [
`
templateUrl: 'demo.component.html',
styles: [
`
vcl-calendar {
width: 18em;
}
`,
],
],
standalone: false
})
export class CalendarDemoComponent {
constructor(private dateAdapter: DateAdapterBase<Date>) {}
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/checkbox/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class CheckboxDemoComponent {
value1 = false;
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/data-list/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component, ViewChild, ElementRef } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class DataListDemoComponent {
value1 = 'gr';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Component } from '@angular/core';
import { ComponentLayerRef } from '@vcl/ng-vcl';

@Component({
selector: 'app-create-country',
template: `
selector: 'app-create-country',
template: `
<vcl-panel-dialog [showCloseButton]="true" (close)="close()">
<vcl-panel-title>Add Kitten</vcl-panel-title>
Expand All @@ -28,6 +28,7 @@ import { ComponentLayerRef } from '@vcl/ng-vcl';
</button>
</vcl-panel-dialog>
`,
standalone: false
})
export class CreateCountryComponent {
name = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import { CreateCountryComponent } from './create-kitten.component';
import { data, Kitten } from './data';

@Component({
selector: 'data-list-add-remove-demo',
templateUrl: './data-list-add-remove-demo.component.html',
styleUrls: ['./data-list-add-remove-demo.component.scss'],
selector: 'data-list-add-remove-demo',
templateUrl: './data-list-add-remove-demo.component.html',
styleUrls: ['./data-list-add-remove-demo.component.scss'],
standalone: false
})
export class DataListAddRemoveDemo implements OnDestroy {
createCountryLayer: LayerRef;
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/date-picker/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from '@vcl/ng-vcl';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class DatePickerDemoComponent {
constructor(private da: DateAdapter) {}
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/drawer/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class DrawerDemoComponent {
opened = true;
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/file-input/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class FileInputDemoComponent {}
3 changes: 2 additions & 1 deletion demo/app/demos/flip-switch/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component, OnInit } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class FlipSwitchDemoComponent {
value1 = false;
Expand Down
33 changes: 17 additions & 16 deletions demo/app/demos/form-control-group/counter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import { CommonModule } from '@angular/common';
let uniqueID = 0;

@Component({
selector: 'demo-counter',
styles: [
`
selector: 'demo-counter',
styles: [
`
:host {
display: flex;
align-items: center;
Expand All @@ -42,8 +42,8 @@ let uniqueID = 0;
padding-right: 0.2em;
}
`,
],
template: `
],
template: `
<button
vcl-button
square
Expand All @@ -68,17 +68,18 @@ let uniqueID = 0;
<vcl-icon icon="vcl:add"></vcl-icon>
</button>
`,
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => CounterComponent),
multi: true,
},
{
provide: FORM_CONTROL_GROUP_INPUT_STATE,
useExisting: forwardRef(() => CounterComponent),
},
],
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => CounterComponent),
multi: true,
},
{
provide: FORM_CONTROL_GROUP_INPUT_STATE,
useExisting: forwardRef(() => CounterComponent),
},
],
standalone: false
})
export class CounterComponent
implements ControlValueAccessor, FormControlGroupInputState
Expand Down
7 changes: 4 additions & 3 deletions demo/app/demos/form-control-group/demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import {
} from '@vcl/ng-vcl';

@Component({
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
encapsulation: ViewEncapsulation.None,
templateUrl: 'demo.component.html',
styleUrls: ['demo.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class FormControlGroupDemoComponent {
constructor(private notifier: NotifierService, private da: DateAdapter) {}
Expand Down
3 changes: 2 additions & 1 deletion demo/app/demos/gallery/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class GalleryDemoComponent {}
3 changes: 2 additions & 1 deletion demo/app/demos/icogram/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class IcogramDemoComponent {}
3 changes: 2 additions & 1 deletion demo/app/demos/icon/demo.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, OnInit } from '@angular/core';

@Component({
templateUrl: 'demo.component.html',
templateUrl: 'demo.component.html',
standalone: false
})
export class IconDemoComponent {}
Loading

0 comments on commit 51ad986

Please sign in to comment.