Replaced checked in package-lock.json by regenerated one. Ran ng update @angular/core@20 @angular/cli@20 Ran npm install @angular-builders/jest@^20.0.0 @fortawesome/angular-fontawesome@^3.0.0 @swimlane/ngx-graph@^11 Ran npm install ngx-mat-select-search@^8.0.2. Ran ng update @angular/material@20. Updated all eslint and typescript to the latest versions. Removed @angular-devkit/schematics. Updated fontawesome. Updated rxjs and tslib. Moved required node version from 16 to 20. Updated jest-preset-angular. Set preserveWhitespaces to false. Corrected two type declarations in two typescript files to make ng serve run without errors. Removed unused angular-devkit/schematics from view-user.component.ts . Updated list of supported browsers. Upgraded prettier. Ran prettier . --write the first time. Ran prettier . --write the second time. Ran ng generate @angular/core:inject with defaults, excepted a handful of files. Fixed remaining eslint problems. Added dist directory to ignores in eslint.config.js. Let prettier fix formatting, almost everything is just line breaks. Made htmlhint ignore @if and @for Angular constructs. Updated node version in Github workflow to 22.12.0 (build.yml). Updated .env.ts. Updated Angular datetime format strings from YYYY-MM-DD to yyyy-MM-dd. Merged changes from dev into angular20 branch.
151 lines
6.8 KiB
TypeScript
151 lines
6.8 KiB
TypeScript
/** Angular Imports */
|
|
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
|
|
/** Custom Components */
|
|
import { FormfieldComponent } from './form-dialog/formfield/formfield.component';
|
|
import { FormDialogComponent } from './form-dialog/form-dialog.component';
|
|
import { DeleteDialogComponent } from './delete-dialog/delete-dialog.component';
|
|
import { CancelDialogComponent } from './cancel-dialog/cancel-dialog.component';
|
|
import { FileUploadComponent } from './file-upload/file-upload.component';
|
|
import { FooterComponent } from './footer/footer.component';
|
|
import { LanguageSelectorComponent } from './language-selector/language-selector.component';
|
|
import { ThemePickerComponent } from './theme-picker/theme-picker.component';
|
|
import { ChangePasswordDialogComponent } from './change-password-dialog/change-password-dialog.component';
|
|
import { EnableDialogComponent } from './enable-dialog/enable-dialog.component';
|
|
import { DisableDialogComponent } from './disable-dialog/disable-dialog.component';
|
|
import { ConfirmationDialogComponent } from './confirmation-dialog/confirmation-dialog.component';
|
|
import { ErrorDialogComponent } from './error-dialog/error-dialog.component';
|
|
import { NotificationsTrayComponent } from './notifications-tray/notifications-tray.component';
|
|
import { SearchToolComponent } from './search-tool/search-tool.component';
|
|
import { KeyboardShortcutsDialogComponent } from './keyboard-shortcuts-dialog/keyboard-shortcuts-dialog.component';
|
|
import { ServerSelectorComponent } from './server-selector/server-selector.component';
|
|
import { TenantSelectorComponent } from './tenant-selector/tenant-selector.component';
|
|
|
|
/** Custom Modules */
|
|
import { IconsModule } from './icons.module';
|
|
import { MaterialModule } from './material.module';
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
import { ExternalIdentifierComponent } from './external-identifier/external-identifier.component';
|
|
import { PipesModule } from 'app/pipes/pipes.module';
|
|
import { EntityNotesTabComponent } from './tabs/entity-notes-tab/entity-notes-tab.component';
|
|
import { EntityDocumentsTabComponent } from './tabs/entity-documents-tab/entity-documents-tab.component';
|
|
import { DirectivesModule } from 'app/directives/directives.module';
|
|
import { EntityDatatableTabComponent } from './tabs/entity-datatable-tab/entity-datatable-tab.component';
|
|
import { DatatableSingleRowComponent } from './tabs/entity-datatable-tab/datatable-single-row/datatable-single-row.component';
|
|
import { DatatableMultiRowComponent } from './tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component';
|
|
import { SvgIconComponent } from './svg-icon/svg-icon.component';
|
|
// import { NgxMatDatetimePickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
import { ViewJournalEntryComponent } from './accounting/view-journal-entry/view-journal-entry.component';
|
|
import { ViewJournalEntryTransactionComponent } from './accounting/view-journal-entry-transaction/view-journal-entry-transaction.component';
|
|
import { AccountNumberComponent } from './account-number/account-number.component';
|
|
import { EntityNameComponent } from './entity-name/entity-name.component';
|
|
import { TransactionPaymentDetailComponent } from './transaction-payment-detail/transaction-payment-detail.component';
|
|
import { StepperButtonsComponent } from './steppers/stepper-buttons/stepper-buttons.component';
|
|
import { GlAccountSelectorComponent } from './accounting/gl-account-selector/gl-account-selector.component';
|
|
import { GlAccountDisplayComponent } from './accounting/gl-account-display/gl-account-display.component';
|
|
import { ViewSavingsAccountingDetailsComponent } from './accounting/view-savings-accounting-details/view-savings-accounting-details.component';
|
|
import { ThemeToggleComponent } from './theme-toggle/theme-toggle.component';
|
|
import { LongTextComponent } from './long-text/long-text.component';
|
|
import { DropdownComponent } from './dropdown/dropdown.component';
|
|
import { InputAmountComponent } from './input-amount/input-amount.component';
|
|
import { InputPasswordComponent } from './input-password/input-password.component';
|
|
import { DatetimePickerStubComponent } from './datetime-picker-stub/datetime-picker-stub.component'; // import Datetime Picker Stub
|
|
|
|
/**
|
|
* Shared Module
|
|
*
|
|
* Modules and components that are shared throughout the application should be here.
|
|
*/
|
|
@NgModule({
|
|
imports: [
|
|
CommonModule,
|
|
IconsModule,
|
|
MaterialModule,
|
|
ReactiveFormsModule,
|
|
TranslateModule,
|
|
PipesModule,
|
|
DirectivesModule,
|
|
// NgxMatDatetimePickerModule,
|
|
// NgxMatNativeDateModule
|
|
FormfieldComponent,
|
|
FormDialogComponent,
|
|
DeleteDialogComponent,
|
|
CancelDialogComponent,
|
|
FileUploadComponent,
|
|
FooterComponent,
|
|
LanguageSelectorComponent,
|
|
ThemePickerComponent,
|
|
ChangePasswordDialogComponent,
|
|
EnableDialogComponent,
|
|
DisableDialogComponent,
|
|
ConfirmationDialogComponent,
|
|
KeyboardShortcutsDialogComponent,
|
|
ErrorDialogComponent,
|
|
NotificationsTrayComponent,
|
|
SearchToolComponent,
|
|
ServerSelectorComponent,
|
|
TenantSelectorComponent,
|
|
ExternalIdentifierComponent,
|
|
EntityNotesTabComponent,
|
|
EntityDocumentsTabComponent,
|
|
EntityDatatableTabComponent,
|
|
DatatableSingleRowComponent,
|
|
DatatableMultiRowComponent,
|
|
SvgIconComponent,
|
|
ViewJournalEntryComponent,
|
|
ViewJournalEntryTransactionComponent,
|
|
AccountNumberComponent,
|
|
EntityNameComponent,
|
|
TransactionPaymentDetailComponent,
|
|
StepperButtonsComponent,
|
|
GlAccountSelectorComponent,
|
|
GlAccountDisplayComponent,
|
|
ViewSavingsAccountingDetailsComponent,
|
|
ThemeToggleComponent,
|
|
LongTextComponent,
|
|
DropdownComponent,
|
|
InputAmountComponent,
|
|
InputPasswordComponent,
|
|
DatetimePickerStubComponent // temporarily added stub for datetime picker
|
|
],
|
|
exports: [
|
|
FileUploadComponent,
|
|
FooterComponent,
|
|
LanguageSelectorComponent,
|
|
ServerSelectorComponent,
|
|
ThemePickerComponent,
|
|
NotificationsTrayComponent,
|
|
SearchToolComponent,
|
|
ErrorDialogComponent,
|
|
CommonModule,
|
|
IconsModule,
|
|
MaterialModule,
|
|
FormsModule,
|
|
ReactiveFormsModule,
|
|
TranslateModule,
|
|
TenantSelectorComponent,
|
|
ExternalIdentifierComponent,
|
|
AccountNumberComponent,
|
|
EntityNotesTabComponent,
|
|
EntityDocumentsTabComponent,
|
|
EntityDatatableTabComponent,
|
|
ViewJournalEntryComponent,
|
|
ViewJournalEntryTransactionComponent,
|
|
SvgIconComponent,
|
|
EntityNameComponent,
|
|
TransactionPaymentDetailComponent,
|
|
StepperButtonsComponent,
|
|
GlAccountSelectorComponent,
|
|
GlAccountDisplayComponent,
|
|
ViewSavingsAccountingDetailsComponent,
|
|
ThemeToggleComponent,
|
|
LongTextComponent,
|
|
DropdownComponent,
|
|
InputAmountComponent,
|
|
DatetimePickerStubComponent // Export stub for datetime picker
|
|
]
|
|
})
|
|
export class SharedModule {}
|