Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"outputPath": "dist/angular-intl-demo",
"index": "projects/angular-intl-demo/src/index.html",
"browser": "projects/angular-intl-demo/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "projects/angular-intl-demo/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
},
"private": true,
"dependencies": {
"@angular/animations": "19.2.8",
"@angular/cdk": "19.2.11",
"@angular/common": "19.2.8",
"@angular/compiler": "19.2.8",
"@angular/core": "19.2.8",
"@angular/forms": "19.2.8",
"@angular/material": "19.2.11",
"@angular/platform-browser": "19.2.8",
"@angular/platform-browser-dynamic": "19.2.8",
"@angular/router": "19.2.8",
"@angular/animations": "20.0.0-next.8",
"@angular/cdk": "20.0.0-next.8",
"@angular/common": "20.0.0-next.8",
"@angular/compiler": "20.0.0-next.8",
"@angular/core": "20.0.0-next.8",
"@angular/forms": "20.0.0-next.8",
"@angular/material": "20.0.0-next.8",
"@angular/platform-browser": "20.0.0-next.8",
"@angular/platform-browser-dynamic": "20.0.0-next.8",
"@angular/router": "20.0.0-next.8",
"marked": "^15.0.0",
"ngx-markdown": "^19.0.0",
"prismjs": "^1.29.0",
Expand All @@ -33,9 +33,9 @@
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "19.2.9",
"@angular/cli": "19.2.9",
"@angular/compiler-cli": "19.2.8",
"@angular-devkit/build-angular": "20.0.0-next.8",
"@angular/cli": "20.0.0-next.8",
"@angular/compiler-cli": "20.0.0-next.8",
"@eslint/js": "^9.2.0",
"@types/jasmine": "~5.1.0",
"angular-eslint": "^19.0.0-alpha.4",
Expand All @@ -51,7 +51,7 @@
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"karma-safarinative-launcher": "^1.1.0",
"ng-packagr": "~19.2.0",
"ng-packagr": "~20.0.0-next.8",
"prettier": "~3.5.0",
"prettier-plugin-organize-imports": "^4.0.0",
"typescript": "~5.8.0",
Expand Down
1,439 changes: 545 additions & 894 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

16 changes: 4 additions & 12 deletions projects/angular-intl-demo/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import { provideHttpClient } from '@angular/common/http';
import { ApplicationConfig } from '@angular/core';
import {
MAT_FORM_FIELD_DEFAULT_OPTIONS,
MatFormFieldDefaultOptions,
} from '@angular/material/form-field';
import { provideAnimations } from '@angular/platform-browser/animations';
ApplicationConfig,
provideZonelessChangeDetection,
} from '@angular/core';
import { provideRouter, withHashLocation } from '@angular/router';
import { provideMarkdown } from 'ngx-markdown';
import { routes } from './app.routes';

export const appConfig: ApplicationConfig = {
providers: [
provideZonelessChangeDetection(),
provideMarkdown(),
{
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: {
subscriptSizing: 'dynamic',
} satisfies MatFormFieldDefaultOptions,
},
provideAnimations(),
provideHttpClient(),
provideRouter(routes, withHashLocation()),
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { MatFormField, MatLabel } from '@angular/material/form-field';
import { MatOption, MatSelect } from '@angular/material/select';
import {
IntlCountryPipe,
IntlCountryPipeOptions,
Expand All @@ -15,11 +14,12 @@ import { countries } from './countries';
templateUrl: './country.component.html',
styleUrls: ['./country.component.scss'],
imports: [
MatFormFieldModule,
MatSelectModule,
FormsModule,
MatOptionModule,
IntlCountryPipe,
MatFormField,
MatSelect,
MatOption,
MatLabel,
],
})
export class CountryComponent {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatError, MatFormField, MatLabel } from '@angular/material/form-field';
import { MatInput } from '@angular/material/input';
import { MatOption, MatSelect } from '@angular/material/select';
import {
IntlCurrencyPipe,
IntlCurrencyPipeOptions,
Expand All @@ -16,12 +15,14 @@ import { currencies } from './currencies';
templateUrl: './currency.component.html',
styleUrls: ['./currency.component.scss'],
imports: [
MatFormFieldModule,
MatInputModule,
FormsModule,
MatSelectModule,
MatOptionModule,
IntlCurrencyPipe,
MatFormField,
MatInput,
MatSelect,
MatOption,
MatLabel,
MatError,
],
})
export class CurrencyComponent {
Expand Down
30 changes: 18 additions & 12 deletions projects/angular-intl-demo/src/app/pipes/date/date.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatIconModule } from '@angular/material/icon';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatIconButton } from '@angular/material/button';
import { MatOption } from '@angular/material/core';
import {
MatFormField,
MatLabel,
MatSuffix,
} from '@angular/material/form-field';
import { MatIcon } from '@angular/material/icon';
import { MatInput } from '@angular/material/input';
import { MatSelect } from '@angular/material/select';
import { IntlDatePipe, IntlDatePipeOptions } from 'angular-ecmascript-intl';
import { languages } from '../../languages';
import { getDateString } from '../date-utils';
Expand All @@ -15,14 +19,16 @@ import { getDateString } from '../date-utils';
templateUrl: './date.component.html',
styleUrls: ['./date.component.scss'],
imports: [
MatFormFieldModule,
MatInputModule,
FormsModule,
MatButtonModule,
MatIconModule,
MatSelectModule,
MatOptionModule,
IntlDatePipe,
MatFormField,
MatInput,
MatIconButton,
MatIcon,
MatSelect,
MatOption,
MatLabel,
MatSuffix,
],
})
export class DateComponent {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatOption } from '@angular/material/core';
import { MatError, MatFormField, MatLabel } from '@angular/material/form-field';
import { MatInput } from '@angular/material/input';
import { MatSelect } from '@angular/material/select';
import {
IntlDecimalPipe,
IntlDecimalPipeOptions,
Expand All @@ -15,12 +15,14 @@ import { languages } from '../../languages';
templateUrl: './decimal.component.html',
styleUrls: ['./decimal.component.scss'],
imports: [
MatFormFieldModule,
MatInputModule,
FormsModule,
MatSelectModule,
MatOptionModule,
IntlDecimalPipe,
MatFormField,
MatInput,
MatSelect,
MatOption,
MatLabel,
MatError,
],
})
export class DecimalComponent {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { CommonModule } from '@angular/common';
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatFormField, MatLabel } from '@angular/material/form-field';
import { MatInput } from '@angular/material/input';
import { MatOption, MatSelect } from '@angular/material/select';
import {
IntlDurationPipe,
IntlDurationPipeOptions,
Expand All @@ -13,12 +12,13 @@ import { languages } from '../../languages';
@Component({
selector: 'app-duration',
imports: [
CommonModule,
MatFormFieldModule,
MatSelectModule,
IntlDurationPipe,
FormsModule,
MatInputModule,
MatFormField,
MatInput,
MatSelect,
MatOption,
MatLabel,
],
templateUrl: './duration.component.html',
styleUrls: ['./duration.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { MatOption } from '@angular/material/core';
import { MatFormField, MatLabel } from '@angular/material/form-field';
import { MatSelect } from '@angular/material/select';
import {
IntlLanguagePipe,
IntlLanguagePipeOptions,
Expand All @@ -14,11 +14,12 @@ import { languages } from '../../languages';
templateUrl: './language.component.html',
styleUrls: ['./language.component.scss'],
imports: [
MatFormFieldModule,
MatSelectModule,
FormsModule,
MatOptionModule,
IntlLanguagePipe,
MatFormField,
MatSelect,
MatOption,
MatLabel,
],
})
export class LanguageComponent {
Expand Down
13 changes: 7 additions & 6 deletions projects/angular-intl-demo/src/app/pipes/list/list.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatSelectModule } from '@angular/material/select';
import { MatOption } from '@angular/material/core';
import { MatFormField, MatLabel } from '@angular/material/form-field';
import { MatSelect } from '@angular/material/select';
import { IntlListPipe, IntlListPipeOptions } from 'angular-ecmascript-intl';
import { languages } from '../../languages';
import { list } from './list';
Expand All @@ -12,11 +12,12 @@ import { list } from './list';
templateUrl: './list.component.html',
styleUrls: ['./list.component.scss'],
imports: [
MatFormFieldModule,
MatSelectModule,
FormsModule,
MatOptionModule,
IntlListPipe,
MatFormField,
MatSelect,
MatOption,
MatLabel,
],
})
export class ListComponent {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, computed, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { MatOptionModule } from '@angular/material/core';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { MatSelectModule } from '@angular/material/select';
import { MatOption } from '@angular/material/core';
import { MatError, MatFormField, MatLabel } from '@angular/material/form-field';
import { MatInput } from '@angular/material/input';
import { MatSelect } from '@angular/material/select';
import {
IntlPercentPipe,
IntlPercentPipeOptions,
Expand All @@ -15,12 +15,14 @@ import { languages } from '../../languages';
templateUrl: './percent.component.html',
styleUrls: ['./percent.component.scss'],
imports: [
MatFormFieldModule,
MatInputModule,
FormsModule,
MatSelectModule,
MatOptionModule,
IntlPercentPipe,
MatFormField,
MatInput,
MatSelect,
MatOption,
MatLabel,
MatError,
],
})
export class PercentComponent {
Expand Down
Loading