WEB-215 Merge angular-update-19 into dev to upgrade Angular from v18 to v19 (#2530)
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormArray, Validators } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import {
|
||||
UntypedFormGroup,
|
||||
UntypedFormBuilder,
|
||||
UntypedFormArray,
|
||||
Validators,
|
||||
ReactiveFormsModule
|
||||
} from '@angular/forms';
|
||||
import { Router, ActivatedRoute, RouterLink } from '@angular/router';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
|
||||
import { CdkDragDrop, moveItemInArray, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
||||
|
||||
/** Custom Services */
|
||||
import { SystemService } from '../../system.service';
|
||||
|
||||
/** Custom Components */
|
||||
import { CancelDialogComponent } from '../../../shared/cancel-dialog/cancel-dialog.component';
|
||||
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
||||
import { MatButton, MatIconButton } from '@angular/material/button';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Create survey component.
|
||||
@@ -17,7 +29,17 @@ import { CancelDialogComponent } from '../../../shared/cancel-dialog/cancel-dial
|
||||
@Component({
|
||||
selector: 'mifosx-create-survey',
|
||||
templateUrl: './create-survey.component.html',
|
||||
styleUrls: ['./create-survey.component.scss']
|
||||
styleUrls: ['./create-survey.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
CdkTextareaAutosize,
|
||||
CdkDropList,
|
||||
CdkDrag,
|
||||
FaIconComponent,
|
||||
MatDivider,
|
||||
MatIconButton,
|
||||
MatTooltip
|
||||
]
|
||||
})
|
||||
export class CreateSurveyComponent implements OnInit {
|
||||
/** Survey form. */
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
/** Angular Imports */
|
||||
import { Component } from '@angular/core';
|
||||
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormArray, Validators, FormControl } from '@angular/forms';
|
||||
import {
|
||||
UntypedFormGroup,
|
||||
UntypedFormBuilder,
|
||||
UntypedFormArray,
|
||||
Validators,
|
||||
FormControl,
|
||||
ReactiveFormsModule
|
||||
} from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
|
||||
import { CdkDragDrop, moveItemInArray, CdkDropList, CdkDrag } from '@angular/cdk/drag-drop';
|
||||
|
||||
/** Custom Services */
|
||||
import { SystemService } from '../../system.service';
|
||||
@@ -13,6 +20,12 @@ import { CancelDialogComponent } from '../../../shared/cancel-dialog/cancel-dial
|
||||
|
||||
/** Survey Models */
|
||||
import { Survey, QuestionData, ResponseData } from './../survey.model';
|
||||
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
||||
import { MatButton, MatIconButton } from '@angular/material/button';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Edit survey component.
|
||||
@@ -20,7 +33,17 @@ import { Survey, QuestionData, ResponseData } from './../survey.model';
|
||||
@Component({
|
||||
selector: 'mifosx-edit-survey',
|
||||
templateUrl: './edit-survey.component.html',
|
||||
styleUrls: ['./edit-survey.component.scss']
|
||||
styleUrls: ['./edit-survey.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
CdkTextareaAutosize,
|
||||
CdkDropList,
|
||||
CdkDrag,
|
||||
FaIconComponent,
|
||||
MatDivider,
|
||||
MatIconButton,
|
||||
MatTooltip
|
||||
]
|
||||
})
|
||||
export class EditSurveyComponent {
|
||||
/** Survey form. */
|
||||
|
||||
@@ -1,12 +1,27 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { MatPaginator } from '@angular/material/paginator';
|
||||
import { MatSort } from '@angular/material/sort';
|
||||
import { MatTableDataSource } from '@angular/material/table';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { MatSort, MatSortHeader } from '@angular/material/sort';
|
||||
import {
|
||||
MatTableDataSource,
|
||||
MatTable,
|
||||
MatColumnDef,
|
||||
MatHeaderCellDef,
|
||||
MatHeaderCell,
|
||||
MatCellDef,
|
||||
MatCell,
|
||||
MatHeaderRowDef,
|
||||
MatHeaderRow,
|
||||
MatRowDef,
|
||||
MatRow
|
||||
} from '@angular/material/table';
|
||||
import { ActivatedRoute, RouterLink } from '@angular/router';
|
||||
|
||||
/** Custom Services */
|
||||
import { SystemService } from '../system.service';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Manage Surveys component.
|
||||
@@ -14,7 +29,25 @@ import { SystemService } from '../system.service';
|
||||
@Component({
|
||||
selector: 'mifosx-manage-surveys',
|
||||
templateUrl: './manage-surveys.component.html',
|
||||
styleUrls: ['./manage-surveys.component.scss']
|
||||
styleUrls: ['./manage-surveys.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
FaIconComponent,
|
||||
MatTable,
|
||||
MatSort,
|
||||
MatColumnDef,
|
||||
MatHeaderCellDef,
|
||||
MatHeaderCell,
|
||||
MatSortHeader,
|
||||
MatCellDef,
|
||||
MatCell,
|
||||
MatTooltip,
|
||||
MatHeaderRowDef,
|
||||
MatHeaderRow,
|
||||
MatRowDef,
|
||||
MatRow,
|
||||
MatPaginator
|
||||
]
|
||||
})
|
||||
export class ManageSurveysComponent implements OnInit {
|
||||
/* Surveys data */
|
||||
|
||||
@@ -5,6 +5,11 @@ import { MatDialog } from '@angular/material/dialog';
|
||||
|
||||
/** Custom Services */
|
||||
import { SystemService } from 'app/system/system.service';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatCard, MatCardHeader, MatCardTitle, MatCardContent } from '@angular/material/card';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
import { NgFor, TitleCasePipe } from '@angular/common';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* View Survey Component.
|
||||
@@ -12,7 +17,15 @@ import { SystemService } from 'app/system/system.service';
|
||||
@Component({
|
||||
selector: 'mifosx-view-survey',
|
||||
templateUrl: './view-survey.component.html',
|
||||
styleUrls: ['./view-survey.component.scss']
|
||||
styleUrls: ['./view-survey.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
FaIconComponent,
|
||||
MatCardHeader,
|
||||
MatCardTitle,
|
||||
MatDivider,
|
||||
TitleCasePipe
|
||||
]
|
||||
})
|
||||
export class ViewSurveyComponent {
|
||||
/** Survey Data */
|
||||
|
||||
Reference in New Issue
Block a user