WEB-215 Merge angular-update-19 into dev to upgrade Angular from v18 to v19 (#2530)
This commit is contained in:
@@ -10,6 +10,10 @@ import { CampaignMessageStepComponent } from '../sms-campaign-stepper/campaign-m
|
||||
import { OrganizationService } from 'app/organization/organization.service';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { MatStepper, MatStepperIcon, MatStep, MatStepLabel } from '@angular/material/stepper';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { CampaignPreviewStepComponent } from '../sms-campaign-stepper/campaign-preview-step/campaign-preview-step.component';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Create SMS Campaign Component
|
||||
@@ -17,7 +21,18 @@ import { Dates } from 'app/core/utils/dates';
|
||||
@Component({
|
||||
selector: 'mifosx-create-campaign',
|
||||
templateUrl: './create-campaign.component.html',
|
||||
styleUrls: ['./create-campaign.component.scss']
|
||||
styleUrls: ['./create-campaign.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatStepper,
|
||||
MatStepperIcon,
|
||||
FaIconComponent,
|
||||
MatStep,
|
||||
MatStepLabel,
|
||||
SmsCampaignStepComponent,
|
||||
CampaignMessageStepComponent,
|
||||
CampaignPreviewStepComponent
|
||||
]
|
||||
})
|
||||
export class CreateCampaignComponent {
|
||||
/** SMS Campaign Template */
|
||||
|
||||
@@ -9,6 +9,11 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
|
||||
/** Custom Components */
|
||||
import { CampaignMessageStepComponent } from '../sms-campaign-stepper/campaign-message-step/campaign-message-step.component';
|
||||
import { MatStepper, MatStepperIcon, MatStep, MatStepLabel } from '@angular/material/stepper';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { EditSmsCampaignStepComponent } from '../sms-campaign-stepper/edit-sms-campaign-step/edit-sms-campaign-step.component';
|
||||
import { CampaignPreviewStepComponent } from '../sms-campaign-stepper/campaign-preview-step/campaign-preview-step.component';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Edit Campaign Component
|
||||
@@ -16,7 +21,18 @@ import { CampaignMessageStepComponent } from '../sms-campaign-stepper/campaign-m
|
||||
@Component({
|
||||
selector: 'mifosx-edit-campaign',
|
||||
templateUrl: './edit-campaign.component.html',
|
||||
styleUrls: ['./edit-campaign.component.scss']
|
||||
styleUrls: ['./edit-campaign.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatStepper,
|
||||
MatStepperIcon,
|
||||
FaIconComponent,
|
||||
MatStep,
|
||||
MatStepLabel,
|
||||
EditSmsCampaignStepComponent,
|
||||
CampaignMessageStepComponent,
|
||||
CampaignPreviewStepComponent
|
||||
]
|
||||
})
|
||||
export class EditCampaignComponent {
|
||||
/** smsCampaign */
|
||||
|
||||
+11
-2
@@ -1,6 +1,9 @@
|
||||
/** Angular Imports */
|
||||
import { Component, Input, OnChanges } from '@angular/core';
|
||||
import { UntypedFormControl } from '@angular/forms';
|
||||
import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatStepperPrevious, MatStepperNext } from '@angular/material/stepper';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Campaign Message Step
|
||||
@@ -8,7 +11,13 @@ import { UntypedFormControl } from '@angular/forms';
|
||||
@Component({
|
||||
selector: 'mifosx-campaign-message-step',
|
||||
templateUrl: './campaign-message-step.component.html',
|
||||
styleUrls: ['./campaign-message-step.component.scss']
|
||||
styleUrls: ['./campaign-message-step.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatStepperPrevious,
|
||||
FaIconComponent,
|
||||
MatStepperNext
|
||||
]
|
||||
})
|
||||
export class CampaignMessageStepComponent implements OnChanges {
|
||||
/** Column headers */
|
||||
|
||||
+10
-1
@@ -1,5 +1,8 @@
|
||||
/** Angular Imports */
|
||||
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
import { MatList, MatListItem } from '@angular/material/list';
|
||||
import { FindPipe } from '../../../../pipes/find.pipe';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Campaign Preview Step.
|
||||
@@ -7,7 +10,13 @@ import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'mifosx-campaign-preview-step',
|
||||
templateUrl: './campaign-preview-step.component.html',
|
||||
styleUrls: ['./campaign-preview-step.component.scss']
|
||||
styleUrls: ['./campaign-preview-step.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatList,
|
||||
MatListItem,
|
||||
FindPipe
|
||||
]
|
||||
})
|
||||
export class CampaignPreviewStepComponent implements OnInit {
|
||||
/** SMS Campaign */
|
||||
|
||||
+16
-2
@@ -1,6 +1,6 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnChanges, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
import { Validators, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
|
||||
import { Validators, UntypedFormGroup, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
/** Rxjs Imports */
|
||||
import { distinctUntilChanged } from 'rxjs/operators';
|
||||
@@ -13,6 +13,11 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
import { ReportParameter } from 'app/reports/common-models/report-parameter.model';
|
||||
import { SelectOption } from 'app/reports/common-models/select-option.model';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
import { NgFor, NgSwitch, NgIf, NgSwitchCase } from '@angular/common';
|
||||
import { MatStepperPrevious, MatStepperNext } from '@angular/material/stepper';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Edit Business Rule Parameters.
|
||||
@@ -20,7 +25,16 @@ import { Dates } from 'app/core/utils/dates';
|
||||
@Component({
|
||||
selector: 'mifosx-edit-business-rule-parameters',
|
||||
templateUrl: './edit-business-rule-parameters.component.html',
|
||||
styleUrls: ['./edit-business-rule-parameters.component.scss']
|
||||
styleUrls: ['./edit-business-rule-parameters.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatDivider,
|
||||
NgSwitch,
|
||||
NgSwitchCase,
|
||||
MatStepperPrevious,
|
||||
FaIconComponent,
|
||||
MatStepperNext
|
||||
]
|
||||
})
|
||||
export class EditBusinessRuleParametersComponent implements OnInit, OnChanges {
|
||||
/** Run Report Parameters Data */
|
||||
|
||||
+16
-2
@@ -1,6 +1,12 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';
|
||||
import { UntypedFormGroup, Validators, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
||||
import {
|
||||
UntypedFormGroup,
|
||||
Validators,
|
||||
UntypedFormBuilder,
|
||||
UntypedFormControl,
|
||||
ReactiveFormsModule
|
||||
} from '@angular/forms';
|
||||
|
||||
/** Custom Services */
|
||||
import { ReportsService } from 'app/reports/reports.service';
|
||||
@@ -8,6 +14,9 @@ import { ReportsService } from 'app/reports/reports.service';
|
||||
/** Custom Models */
|
||||
import { ReportParameter } from 'app/reports/common-models/report-parameter.model';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { MatCheckbox } from '@angular/material/checkbox';
|
||||
import { EditBusinessRuleParametersComponent } from './edit-business-rule-parameters/edit-business-rule-parameters.component';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Edit SMS Campaign step.
|
||||
@@ -15,7 +24,12 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
@Component({
|
||||
selector: 'mifosx-edit-sms-campaign-step',
|
||||
templateUrl: './edit-sms-campaign-step.component.html',
|
||||
styleUrls: ['./edit-sms-campaign-step.component.scss']
|
||||
styleUrls: ['./edit-sms-campaign-step.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatCheckbox,
|
||||
EditBusinessRuleParametersComponent
|
||||
]
|
||||
})
|
||||
export class EditSmsCampaignStepComponent implements OnInit {
|
||||
/** SMS Campaign Template */
|
||||
|
||||
+13
-2
@@ -1,6 +1,6 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnChanges, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
import { Validators, UntypedFormGroup, UntypedFormControl } from '@angular/forms';
|
||||
import { Validators, UntypedFormGroup, UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
/** Custom Services */
|
||||
import { ReportsService } from 'app/reports/reports.service';
|
||||
@@ -10,6 +10,10 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
import { ReportParameter } from 'app/reports/common-models/report-parameter.model';
|
||||
import { SelectOption } from 'app/reports/common-models/select-option.model';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { MatDivider } from '@angular/material/divider';
|
||||
import { NgFor, NgSwitch, NgIf, NgSwitchCase } from '@angular/common';
|
||||
import { MatStepperNext } from '@angular/material/stepper';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* Business Rule Parameters Component.
|
||||
@@ -17,7 +21,14 @@ import { Dates } from 'app/core/utils/dates';
|
||||
@Component({
|
||||
selector: 'mifosx-business-rule-parameters',
|
||||
templateUrl: './business-rule-parameters.component.html',
|
||||
styleUrls: ['./business-rule-parameters.component.scss']
|
||||
styleUrls: ['./business-rule-parameters.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatDivider,
|
||||
NgSwitch,
|
||||
NgSwitchCase,
|
||||
MatStepperNext
|
||||
]
|
||||
})
|
||||
export class BusinessRuleParametersComponent implements OnInit, OnChanges {
|
||||
/** Run Report Parameters Data */
|
||||
|
||||
+20
-2
@@ -1,6 +1,12 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, Input, ViewChild, EventEmitter, Output } from '@angular/core';
|
||||
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||
import {
|
||||
UntypedFormGroup,
|
||||
UntypedFormBuilder,
|
||||
Validators,
|
||||
UntypedFormControl,
|
||||
ReactiveFormsModule
|
||||
} from '@angular/forms';
|
||||
|
||||
/** Custom Services */
|
||||
import { ReportsService } from 'app/reports/reports.service';
|
||||
@@ -10,6 +16,10 @@ import { ReportParameter } from 'app/reports/common-models/report-parameter.mode
|
||||
|
||||
/** Custom Components */
|
||||
import { BusinessRuleParametersComponent } from './business-rule-parameters/business-rule-parameters.component';
|
||||
import { MatCheckbox } from '@angular/material/checkbox';
|
||||
import { MatStepperPrevious, MatStepperNext } from '@angular/material/stepper';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* SMS Campaign Step Component
|
||||
@@ -17,7 +27,15 @@ import { BusinessRuleParametersComponent } from './business-rule-parameters/busi
|
||||
@Component({
|
||||
selector: 'mifosx-sms-campaign-step',
|
||||
templateUrl: './sms-campaign-step.component.html',
|
||||
styleUrls: ['./sms-campaign-step.component.scss']
|
||||
styleUrls: ['./sms-campaign-step.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
MatCheckbox,
|
||||
MatStepperPrevious,
|
||||
FaIconComponent,
|
||||
MatStepperNext,
|
||||
BusinessRuleParametersComponent
|
||||
]
|
||||
})
|
||||
export class SmsCampaignStepComponent implements OnInit {
|
||||
/** SMS Campaign Template */
|
||||
|
||||
@@ -1,12 +1,29 @@
|
||||
/** 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';
|
||||
|
||||
/** rxjs Imports */
|
||||
import { of } from 'rxjs';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
import { TitleCasePipe } from '@angular/common';
|
||||
import { StatusLookupPipe } from '../../pipes/status-lookup.pipe';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* SMS Campaigns component.
|
||||
@@ -14,7 +31,27 @@ import { of } from 'rxjs';
|
||||
@Component({
|
||||
selector: 'mifosx-sms-campaigns',
|
||||
templateUrl: './sms-campaigns.component.html',
|
||||
styleUrls: ['./sms-campaigns.component.scss']
|
||||
styleUrls: ['./sms-campaigns.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
FaIconComponent,
|
||||
MatTable,
|
||||
MatSort,
|
||||
MatColumnDef,
|
||||
MatHeaderCellDef,
|
||||
MatHeaderCell,
|
||||
MatSortHeader,
|
||||
MatCellDef,
|
||||
MatCell,
|
||||
MatTooltip,
|
||||
MatHeaderRowDef,
|
||||
MatHeaderRow,
|
||||
MatRowDef,
|
||||
MatRow,
|
||||
MatPaginator,
|
||||
TitleCasePipe,
|
||||
StatusLookupPipe
|
||||
]
|
||||
})
|
||||
export class SmsCampaignsComponent implements OnInit {
|
||||
/** SMS Campaigns data. */
|
||||
|
||||
@@ -1,9 +1,21 @@
|
||||
/** Angular Imports */
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||
import { UntypedFormGroup, UntypedFormBuilder, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { MatTableDataSource, MatTable } from '@angular/material/table';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import {
|
||||
MatTableDataSource,
|
||||
MatTable,
|
||||
MatColumnDef,
|
||||
MatHeaderCellDef,
|
||||
MatHeaderCell,
|
||||
MatCellDef,
|
||||
MatCell,
|
||||
MatHeaderRowDef,
|
||||
MatHeaderRow,
|
||||
MatRowDef,
|
||||
MatRow
|
||||
} from '@angular/material/table';
|
||||
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
|
||||
|
||||
/** Custom Dialogs */
|
||||
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
|
||||
@@ -17,6 +29,11 @@ import { DatepickerBase } from 'app/shared/form-dialog/formfield/model/datepicke
|
||||
import { OrganizationService } from '../../organization.service';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { MatTabGroup, MatTab } from '@angular/material/tabs';
|
||||
import { MatList, MatListItem } from '@angular/material/list';
|
||||
import { DateFormatPipe } from '../../../pipes/date-format.pipe';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
* View SMS Campaign Component
|
||||
@@ -24,7 +41,26 @@ import { Dates } from 'app/core/utils/dates';
|
||||
@Component({
|
||||
selector: 'mifosx-view-campaign',
|
||||
templateUrl: './view-campaign.component.html',
|
||||
styleUrls: ['./view-campaign.component.scss']
|
||||
styleUrls: ['./view-campaign.component.scss'],
|
||||
imports: [
|
||||
...STANDALONE_SHARED_IMPORTS,
|
||||
FaIconComponent,
|
||||
MatTabGroup,
|
||||
MatTab,
|
||||
MatList,
|
||||
MatListItem,
|
||||
MatTable,
|
||||
MatColumnDef,
|
||||
MatHeaderCellDef,
|
||||
MatHeaderCell,
|
||||
MatCellDef,
|
||||
MatCell,
|
||||
MatHeaderRowDef,
|
||||
MatHeaderRow,
|
||||
MatRowDef,
|
||||
MatRow,
|
||||
DateFormatPipe
|
||||
]
|
||||
})
|
||||
export class ViewCampaignComponent implements OnInit {
|
||||
/** Minimum date allowed. */
|
||||
|
||||
Reference in New Issue
Block a user