mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
Project structure (#204)
This commit is contained in:
parent
4a784f2119
commit
73177cdf0e
@ -12,7 +12,7 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatStepperModule } from '@angular/material/stepper';
|
import { MatStepperModule } from '@angular/material/stepper';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { ConfirmActionDialogModule } from '@cc/components/confirm-action-dialog';
|
import { ConfirmActionDialogModule } from '@cc/components/confirm-action-dialog';
|
||||||
|
|
||||||
import { ClaimRoutingModule } from './claim-routing.module';
|
import { ClaimRoutingModule } from './claim-routing.module';
|
||||||
@ -24,7 +24,6 @@ import { StatusChangerComponent } from './status-changer/status-changer.componen
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
ClaimRoutingModule,
|
ClaimRoutingModule,
|
||||||
SharedPipesModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
FlexModule,
|
FlexModule,
|
||||||
@ -39,6 +38,8 @@ import { StatusChangerComponent } from './status-changer/status-changer.componen
|
|||||||
MatBottomSheetModule,
|
MatBottomSheetModule,
|
||||||
MatStepperModule,
|
MatStepperModule,
|
||||||
ConfirmActionDialogModule,
|
ConfirmActionDialogModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [ClaimComponent, DetailsComponent, StatusChangerComponent],
|
declarations: [ClaimComponent, DetailsComponent, StatusChangerComponent],
|
||||||
entryComponents: [StatusChangerComponent],
|
entryComponents: [StatusChangerComponent],
|
||||||
|
@ -15,14 +15,14 @@ import { combineLatest, from, of } from 'rxjs';
|
|||||||
import { filter, first, map, switchMap } from 'rxjs/operators';
|
import { filter, first, map, switchMap } from 'rxjs/operators';
|
||||||
|
|
||||||
import { AppAuthGuardService, ClaimManagementRole } from '@cc/app/shared/services';
|
import { AppAuthGuardService, ClaimManagementRole } from '@cc/app/shared/services';
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { extractClaimStatus } from '@cc/app/shared/utils';
|
||||||
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ClaimStatus } from '../../../papi/model';
|
import { ClaimStatus } from '../../../papi/model';
|
||||||
import {
|
import {
|
||||||
PartyModificationEmitter,
|
PartyModificationEmitter,
|
||||||
UnitActionsNavListComponent,
|
UnitActionsNavListComponent,
|
||||||
} from '../../../party-modification-creator-legacy';
|
} from '../../../party-modification-creator-legacy';
|
||||||
import { extractClaimStatus } from '../../../shared/utils';
|
|
||||||
import { Questionary } from '../../../thrift-services/ank/gen-model/questionary_manager';
|
import { Questionary } from '../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { Claim, Modification } from '../../../thrift-services/damsel/gen-model/claim_management';
|
import { Claim, Modification } from '../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
import { PartyModification } from '../../../thrift-services/damsel/gen-model/payment_processing';
|
import { PartyModification } from '../../../thrift-services/damsel/gen-model/payment_processing';
|
||||||
|
@ -15,10 +15,9 @@ import { MatMenuModule } from '@angular/material/menu';
|
|||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { QuestionaryDocumentModule } from '@cc/app/shared/components';
|
import { QuestionaryDocumentModule } from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { HumanizeDurationModule } from '@cc/app/shared/pipes/humanize-duration';
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
import { TimelineModule } from '@cc/components/timeline';
|
import { TimelineModule } from '@cc/components/timeline';
|
||||||
import { HumanizeDurationModule } from '@cc/pipes/humanize-duration';
|
|
||||||
|
|
||||||
import { MonacoEditorModule } from '../../../monaco-editor';
|
import { MonacoEditorModule } from '../../../monaco-editor';
|
||||||
import { PartyModificationCreatorLegacyModule } from '../../../party-modification-creator-legacy';
|
import { PartyModificationCreatorLegacyModule } from '../../../party-modification-creator-legacy';
|
||||||
@ -45,12 +44,10 @@ import { SendCommentComponent } from './send-comment';
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
TimelineModule,
|
TimelineModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
SharedPipesModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
MonacoEditorModule,
|
MonacoEditorModule,
|
||||||
HumanizeDurationModule,
|
|
||||||
MessagesModule,
|
MessagesModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
HumanizeDurationModule,
|
HumanizeDurationModule,
|
||||||
|
@ -2,7 +2,7 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { PartyModification } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
import { PartyModification } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { ContractorSelectorComponent } from './contractor-selector.component';
|
import { ContractorSelectorComponent } from './contractor-selector.component';
|
||||||
@ -27,7 +26,6 @@ import { SelectorTypePipe } from './selector-type.pipe';
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatPaginatorModule,
|
MatPaginatorModule,
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
|
@ -6,7 +6,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
|||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|
||||||
import { getUnionValue } from '@cc/utils/index';
|
import { getUnionValue } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { PartyService } from '../../../../../../papi/party.service';
|
import { PartyService } from '../../../../../../papi/party.service';
|
||||||
import { PartyID } from '../../../../../../thrift-services/damsel/gen-model/domain';
|
import { PartyID } from '../../../../../../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { InternationalLegalEntity } from '../../../../../thrift-services/damsel/gen-model/domain';
|
import { InternationalLegalEntity } from '../../../../../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { RussianLegalEntity } from '../../../../../thrift-services/damsel/gen-model/domain';
|
import { RussianLegalEntity } from '../../../../../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { InternationalBankAccount } from '../../../../../thrift-services/damsel/gen-model/domain';
|
import { InternationalBankAccount } from '../../../../../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { RussianBankAccount } from '../../../../../thrift-services/damsel/gen-model/domain';
|
import { RussianBankAccount } from '../../../../../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getOr } from '@cc/utils/index';
|
import { getOr } from '@cc/utils/get-or';
|
||||||
|
|
||||||
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { QuestionaryData } from '../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
@ -4,7 +4,7 @@ import * as moment from 'moment';
|
|||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { filter, map, shareReplay, switchMap } from 'rxjs/operators';
|
import { filter, map, shareReplay, switchMap } from 'rxjs/operators';
|
||||||
|
|
||||||
import { booleanDelay } from '@cc/operators/index';
|
import { booleanDelay } from '@cc/utils/boolean-delay';
|
||||||
|
|
||||||
import { FileStorageService } from '../../../../thrift-services/file-storage/file-storage.service';
|
import { FileStorageService } from '../../../../thrift-services/file-storage/file-storage.service';
|
||||||
import { FileData } from '../../../../thrift-services/file-storage/gen-model/file_storage';
|
import { FileData } from '../../../../thrift-services/file-storage/gen-model/file_storage';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||||
|
|
||||||
import { getUnionValue } from '@cc/utils/index';
|
import { getUnionValue } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { Contractor } from '../../../../../thrift-services/ank/gen-model/questionary';
|
import { Contractor } from '../../../../../thrift-services/ank/gen-model/questionary';
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||||
import get from 'lodash-es/get';
|
import get from 'lodash-es/get';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
RussianIndividualEntity,
|
RussianIndividualEntity,
|
||||||
|
@ -7,7 +7,7 @@ import { slugify } from 'transliteration';
|
|||||||
|
|
||||||
import { QuestionaryDocumentService } from '@cc/app/shared/components';
|
import { QuestionaryDocumentService } from '@cc/app/shared/components';
|
||||||
import { getCompanyInfo } from '@cc/app/shared/components/questionary-document/select-data';
|
import { getCompanyInfo } from '@cc/app/shared/components/questionary-document/select-data';
|
||||||
import { getUnionValue } from '@cc/utils/index';
|
import { getUnionValue } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { BeneficialOwner } from '../../../../thrift-services/ank/gen-model/questionary';
|
import { BeneficialOwner } from '../../../../thrift-services/ank/gen-model/questionary';
|
||||||
import { Questionary } from '../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { Questionary } from '../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ClaimStatus } from '../../../../papi/model';
|
import { ClaimStatus } from '../../../../papi/model';
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { getUnionKey, sortUnitsByCreatedAtAsc } from '@cc/utils/index';
|
import { sortUnitsByCreatedAtAsc } from '@cc/app/shared/utils';
|
||||||
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ClaimModification,
|
ClaimModification,
|
||||||
|
@ -5,7 +5,6 @@ import { MatButtonModule } from '@angular/material/button';
|
|||||||
import { MatDialogModule } from '@angular/material/dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatExpansionModule } from '@angular/material/expansion';
|
import { MatExpansionModule } from '@angular/material/expansion';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { EditUnsavedModificationModule } from '../conversation/edit-unsaved-modification/edit-unsaved-modification.module';
|
import { EditUnsavedModificationModule } from '../conversation/edit-unsaved-modification/edit-unsaved-modification.module';
|
||||||
@ -15,7 +14,6 @@ import { UnsavedPartyModificationsComponent } from './unsaved-party-modification
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
|
@ -20,7 +20,6 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|||||||
import { MatStepperModule } from '@angular/material/stepper';
|
import { MatStepperModule } from '@angular/material/stepper';
|
||||||
import { MatTabsModule } from '@angular/material/tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
@ -50,7 +49,6 @@ import { PersistentContainerService } from './persistent-container.service';
|
|||||||
PapiModule,
|
PapiModule,
|
||||||
DamselModule,
|
DamselModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
SharedPipesModule,
|
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
ClaimRoutingModule,
|
ClaimRoutingModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
|
@ -15,7 +15,6 @@ import { MatSelectModule } from '@angular/material/select';
|
|||||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
|
|
||||||
import { PapiModule } from '../papi/papi.module';
|
import { PapiModule } from '../papi/papi.module';
|
||||||
@ -45,7 +44,6 @@ import { SearchFormComponent } from './search-form/search-form.component';
|
|||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
CdkTableModule,
|
CdkTableModule,
|
||||||
SharedPipesModule,
|
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -3,7 +3,7 @@ import { FormGroup } from '@angular/forms';
|
|||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
|
|
||||||
import { PollingTimeoutError } from '@cc/operators/index';
|
import { PollingTimeoutError } from '@cc/utils/poll';
|
||||||
|
|
||||||
import { CreateDepositService, currencies } from './create-deposit.service';
|
import { CreateDepositService, currencies } from './create-deposit.service';
|
||||||
|
|
||||||
|
@ -7,8 +7,9 @@ import { map, switchMap } from 'rxjs/operators';
|
|||||||
import Int64 from 'thrift-ts/lib/int64';
|
import Int64 from 'thrift-ts/lib/int64';
|
||||||
import * as uuid from 'uuid/v4';
|
import * as uuid from 'uuid/v4';
|
||||||
|
|
||||||
import { createDepositStopPollingCondition, poll } from '@cc/operators/index';
|
import { createDepositStopPollingCondition } from '@cc/app/shared/utils';
|
||||||
import { toMinor } from '@cc/utils/index';
|
import { poll } from '@cc/utils/poll';
|
||||||
|
import { toMinor } from '@cc/utils/to-minor';
|
||||||
|
|
||||||
import { FistfulAdminService } from '../../thrift-services/fistful/fistful-admin.service';
|
import { FistfulAdminService } from '../../thrift-services/fistful/fistful-admin.service';
|
||||||
import { FistfulStatisticsService } from '../../thrift-services/fistful/fistful-stat.service';
|
import { FistfulStatisticsService } from '../../thrift-services/fistful/fistful-stat.service';
|
||||||
|
@ -13,9 +13,8 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { CommonPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { FistfulAdminService } from '../thrift-services/fistful/fistful-admin.service';
|
import { FistfulAdminService } from '../thrift-services/fistful/fistful-admin.service';
|
||||||
import { FistfulStatisticsService } from '../thrift-services/fistful/fistful-stat.service';
|
import { FistfulStatisticsService } from '../thrift-services/fistful/fistful-stat.service';
|
||||||
@ -36,7 +35,6 @@ import { SearchFormService } from './search-form/search-form.service';
|
|||||||
DepositsRoutingModule,
|
DepositsRoutingModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatButtonToggleModule,
|
MatButtonToggleModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
@ -48,6 +46,7 @@ import { SearchFormService } from './search-form/search-form.service';
|
|||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
MatDatepickerModule,
|
MatDatepickerModule,
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
|
ThriftPipesModule,
|
||||||
CommonPipesModule,
|
CommonPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -5,7 +5,7 @@ import * as moment from 'moment';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { filter, shareReplay } from 'rxjs/operators';
|
import { filter, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
import { booleanDelay } from '@cc/operators/index';
|
import { booleanDelay } from '@cc/utils/boolean-delay';
|
||||||
|
|
||||||
import { FistfulStatisticsService } from '../thrift-services/fistful/fistful-stat.service';
|
import { FistfulStatisticsService } from '../thrift-services/fistful/fistful-stat.service';
|
||||||
import { StatDeposit } from '../thrift-services/fistful/gen-model/fistful_stat';
|
import { StatDeposit } from '../thrift-services/fistful/gen-model/fistful_stat';
|
||||||
|
@ -14,7 +14,6 @@ import { MatSelectModule } from '@angular/material/select';
|
|||||||
import { MatSortModule } from '@angular/material/sort';
|
import { MatSortModule } from '@angular/material/sort';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { DomainGroupComponent } from './domain-group.component';
|
import { DomainGroupComponent } from './domain-group.component';
|
||||||
@ -43,7 +42,6 @@ import { GroupTableComponent } from './group-table';
|
|||||||
MatCardModule,
|
MatCardModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatSortModule,
|
MatSortModule,
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
],
|
],
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { toJson } from '@cc/utils/index';
|
import { toJson } from '@cc/utils/thrift-json-converter';
|
||||||
|
|
||||||
import { DomainGroup } from '../domain-group';
|
import { DomainGroup } from '../domain-group';
|
||||||
import { TableDataSource, TableGroup } from './model';
|
import { TableDataSource, TableGroup } from './model';
|
||||||
|
@ -9,7 +9,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|||||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
|
|
||||||
import { MonacoEditorModule } from '../../monaco-editor';
|
import { MonacoEditorModule } from '../../monaco-editor';
|
||||||
@ -33,7 +32,6 @@ import { DomainObjDetailsComponent } from './domain-obj-details';
|
|||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MonacoEditorModule,
|
MonacoEditorModule,
|
||||||
DamselModule,
|
DamselModule,
|
||||||
SharedPipesModule,
|
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
@ -8,8 +8,6 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { MonacoEditorModule } from '../../monaco-editor';
|
import { MonacoEditorModule } from '../../monaco-editor';
|
||||||
import { DomainObjModificationComponent } from './domain-obj-modification.component';
|
import { DomainObjModificationComponent } from './domain-obj-modification.component';
|
||||||
import { ResetConfirmDialogComponent } from './reset-confirm-dialog/reset-confirm-dialog.component';
|
import { ResetConfirmDialogComponent } from './reset-confirm-dialog/reset-confirm-dialog.component';
|
||||||
@ -25,7 +23,6 @@ import { ResetConfirmDialogComponent } from './reset-confirm-dialog/reset-confir
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MonacoEditorModule,
|
MonacoEditorModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
],
|
],
|
||||||
entryComponents: [ResetConfirmDialogComponent],
|
entryComponents: [ResetConfirmDialogComponent],
|
||||||
|
@ -7,8 +7,6 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
|||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { MonacoEditorModule } from '../../monaco-editor';
|
import { MonacoEditorModule } from '../../monaco-editor';
|
||||||
import { DomainObjReviewComponent } from './domain-obj-review.component';
|
import { DomainObjReviewComponent } from './domain-obj-review.component';
|
||||||
|
|
||||||
@ -22,7 +20,6 @@ import { DomainObjReviewComponent } from './domain-obj-review.component';
|
|||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
MonacoEditorModule,
|
MonacoEditorModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
],
|
],
|
||||||
exports: [DomainObjReviewComponent],
|
exports: [DomainObjReviewComponent],
|
||||||
|
@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map, switchMap } from 'rxjs/operators';
|
import { map, switchMap } from 'rxjs/operators';
|
||||||
|
|
||||||
import { toJson } from '@cc/utils/index';
|
import { toJson } from '@cc/utils/thrift-json-converter';
|
||||||
|
|
||||||
import { toGenCommit, toGenReference } from '../thrift-services/converters';
|
import { toGenCommit, toGenReference } from '../thrift-services/converters';
|
||||||
import { DomainService as ThriftDomainService } from '../thrift-services/damsel/domain.service';
|
import { DomainService as ThriftDomainService } from '../thrift-services/damsel/domain.service';
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import * as uuid from 'uuid/v4';
|
import * as uuid from 'uuid/v4';
|
||||||
|
|
||||||
import { extract, toJson } from '@cc/utils/index';
|
import { toJson } from '@cc/utils/thrift-json-converter';
|
||||||
|
import { extract } from '@cc/utils/thrift-utils';
|
||||||
|
|
||||||
import { MonacoFile } from '../monaco-editor';
|
import { MonacoFile } from '../monaco-editor';
|
||||||
import { DomainObject, Reference } from '../thrift-services/damsel/gen-model/domain';
|
import { DomainObject, Reference } from '../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|
||||||
import { decode, encode } from '@cc/utils/index';
|
import { decode, encode } from '@cc/utils/java-thrift-formatter';
|
||||||
|
|
||||||
import { ConfigService } from '../core/config.service';
|
import { ConfigService } from '../core/config.service';
|
||||||
import { ClaimCreated, ClaimInfo, PartyModificationUnit } from './model';
|
import { ClaimCreated, ClaimInfo, PartyModificationUnit } from './model';
|
||||||
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|
||||||
import { decode } from '@cc/utils/index';
|
import { decode } from '@cc/utils/java-thrift-formatter';
|
||||||
|
|
||||||
import { ConfigService } from '../core/config.service';
|
import { ConfigService } from '../core/config.service';
|
||||||
import { Party } from '../thrift-services/damsel/gen-model/domain';
|
import { Party } from '../thrift-services/damsel/gen-model/domain';
|
||||||
|
@ -10,7 +10,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { FillInUnitIdComponent } from './fill-in-unit-id/fill-in-unit-id.component';
|
import { FillInUnitIdComponent } from './fill-in-unit-id/fill-in-unit-id.component';
|
||||||
@ -30,7 +29,6 @@ import { PartyTargetComponent } from './party-target/party-target.component';
|
|||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MatSnackBarModule,
|
MatSnackBarModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
SharedPipesModule,
|
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -9,7 +9,6 @@ import { MatPaginatorModule } from '@angular/material/paginator';
|
|||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
|
|
||||||
import { PartyDetailsComponent } from './party-details.component';
|
import { PartyDetailsComponent } from './party-details.component';
|
||||||
@ -27,7 +26,6 @@ import { ShopsTableComponent } from './shops-table/shops-table.component';
|
|||||||
MatPaginatorModule,
|
MatPaginatorModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
SharedPipesModule,
|
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
],
|
],
|
||||||
declarations: [PartyDetailsComponent, ShopsTableComponent, PartyInfoComponent],
|
declarations: [PartyDetailsComponent, ShopsTableComponent, PartyInfoComponent],
|
||||||
|
@ -21,7 +21,6 @@ import { MatStepperModule } from '@angular/material/stepper';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
import { MatTabsModule } from '@angular/material/tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
@ -66,7 +65,6 @@ import { TerminalsComponent } from './terminals/terminals.component';
|
|||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
MatProgressBarModule,
|
MatProgressBarModule,
|
||||||
MatChipsModule,
|
MatChipsModule,
|
||||||
SharedPipesModule,
|
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
],
|
],
|
||||||
|
@ -22,9 +22,8 @@ import { MatStepperModule } from '@angular/material/stepper';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { DomainModule } from '../domain';
|
import { DomainModule } from '../domain';
|
||||||
import { PapiModule } from '../papi/papi.module';
|
import { PapiModule } from '../papi/papi.module';
|
||||||
@ -69,8 +68,7 @@ import { TableComponent } from './table/table.component';
|
|||||||
DomainModule,
|
DomainModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
SharedPipesModule,
|
ThriftPipesModule,
|
||||||
CommonPipesModule,
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
PaymentAdjustmentComponent,
|
PaymentAdjustmentComponent,
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
|
|
||||||
import { i64ToNumber } from '@cc/utils/index';
|
import { i64ToNumber } from '@cc/utils/i64-to-number';
|
||||||
|
|
||||||
import { StatPayment } from '../../thrift-services/damsel/gen-model/merch_stat';
|
import { StatPayment } from '../../thrift-services/damsel/gen-model/merch_stat';
|
||||||
|
|
||||||
|
@ -21,9 +21,8 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { CommonPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { PapiModule } from '../papi/papi.module';
|
import { PapiModule } from '../papi/papi.module';
|
||||||
import { CancelPayoutComponent } from './cancel-payout/cancel-payout.component';
|
import { CancelPayoutComponent } from './cancel-payout/cancel-payout.component';
|
||||||
@ -64,7 +63,6 @@ import { SearchFormComponent } from './search-form/search-form.component';
|
|||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
MatPaginatorModule,
|
MatPaginatorModule,
|
||||||
CardContainerModule,
|
CardContainerModule,
|
||||||
SharedPipesModule,
|
|
||||||
CommonPipesModule,
|
CommonPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -18,7 +18,6 @@ import { MatTableModule } from '@angular/material/table';
|
|||||||
import { MatTabsModule } from '@angular/material/tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||||
|
|
||||||
import { FistfulModule } from '../thrift-services/fistful/fistful.module';
|
import { FistfulModule } from '../thrift-services/fistful/fistful.module';
|
||||||
@ -40,7 +39,6 @@ import { SimpleRepairComponent } from './simple-repair/simple-repair.component';
|
|||||||
RepairingRoutingModule,
|
RepairingRoutingModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatProgressBarModule,
|
MatProgressBarModule,
|
||||||
MatTabsModule,
|
MatTabsModule,
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
|
@ -13,9 +13,9 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
|
|
||||||
|
import { CommonPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { DetailsItemModule } from '@cc/components/details-item';
|
import { DetailsItemModule } from '@cc/components/details-item';
|
||||||
import { HeadlineModule } from '@cc/components/headline';
|
import { HeadlineModule } from '@cc/components/headline';
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { PaymentMainInfoModule } from '../payment-details/payment-main-info';
|
import { PaymentMainInfoModule } from '../payment-details/payment-main-info';
|
||||||
import { ChangeChargebackStatusDialogComponent } from './change-chargeback-status-dialog';
|
import { ChangeChargebackStatusDialogComponent } from './change-chargeback-status-dialog';
|
||||||
@ -37,7 +37,6 @@ const EXPORTED_DECLARATIONS = [
|
|||||||
MatCardModule,
|
MatCardModule,
|
||||||
MatDividerModule,
|
MatDividerModule,
|
||||||
DetailsItemModule,
|
DetailsItemModule,
|
||||||
CommonPipesModule,
|
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
PaymentMainInfoModule,
|
PaymentMainInfoModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
@ -49,6 +48,8 @@ const EXPORTED_DECLARATIONS = [
|
|||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
CommonPipesModule,
|
||||||
],
|
],
|
||||||
declarations: EXPORTED_DECLARATIONS,
|
declarations: EXPORTED_DECLARATIONS,
|
||||||
exports: EXPORTED_DECLARATIONS,
|
exports: EXPORTED_DECLARATIONS,
|
||||||
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
import { AppAuthGuardService, OperationRole } from '@cc/app/shared/services';
|
import { AppAuthGuardService, OperationRole } from '@cc/app/shared/services';
|
||||||
import { hasActiveFragments } from '@cc/utils/index';
|
import { hasActiveFragments } from '@cc/utils/has-active-fragments';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'operations.component.html',
|
templateUrl: 'operations.component.html',
|
||||||
|
@ -3,7 +3,7 @@ import { ActivatedRoute, Params, Router } from '@angular/router';
|
|||||||
import pickBy from 'lodash-es/pickBy';
|
import pickBy from 'lodash-es/pickBy';
|
||||||
|
|
||||||
import { QueryParamsStore } from '@cc/app/shared/services';
|
import { QueryParamsStore } from '@cc/app/shared/services';
|
||||||
import { wrapValuesToArray } from '@cc/utils/index';
|
import { wrapValuesToArray } from '@cc/utils/wrap-values-to-array';
|
||||||
|
|
||||||
import { FormValue } from './chargebacks-search-filters';
|
import { FormValue } from './chargebacks-search-filters';
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ import { MatMenuModule } from '@angular/material/menu';
|
|||||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
|
import { StatusModule } from '@cc/app/shared/components';
|
||||||
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChargebacksMainSearchFiltersModule,
|
ChargebacksMainSearchFiltersModule,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
CommentModification,
|
CommentModification,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
FileModification,
|
FileModification,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ModificationUnit } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
import { ModificationUnit } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
import { ChangesetInfo, ChangesetInfoType } from './changeset-info';
|
import { ChangesetInfo, ChangesetInfoType } from './changeset-info';
|
||||||
|
@ -3,8 +3,6 @@ import { FormBuilder } from '@angular/forms';
|
|||||||
import { combineLatest, Subject } from 'rxjs';
|
import { combineLatest, Subject } from 'rxjs';
|
||||||
import { map, shareReplay, startWith } from 'rxjs/operators';
|
import { map, shareReplay, startWith } from 'rxjs/operators';
|
||||||
|
|
||||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|
||||||
|
|
||||||
import { ChangesetInfo, ChangesetInfoType } from '../changeset-infos';
|
import { ChangesetInfo, ChangesetInfoType } from '../changeset-infos';
|
||||||
import { infosFilter } from './infos-filter';
|
import { infosFilter } from './infos-filter';
|
||||||
|
|
||||||
@ -29,7 +27,7 @@ export class ChangesetsFilterService {
|
|||||||
this.changesetsFilterForm.valueChanges.pipe(startWith(this.changesetsFilterForm.value)),
|
this.changesetsFilterForm.valueChanges.pipe(startWith(this.changesetsFilterForm.value)),
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([infos, { filters }]) => infos.filter((info) => infosFilter(info, filters))),
|
map(([infos, { filters }]) => infos.filter((info) => infosFilter(info, filters))),
|
||||||
shareReplay(SHARE_REPLAY_CONF)
|
shareReplay(1)
|
||||||
);
|
);
|
||||||
|
|
||||||
constructor(private fb: FormBuilder) {
|
constructor(private fb: FormBuilder) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { HumanizeDurationModule } from '@cc/pipes/humanize-duration';
|
import { HumanizeDurationModule } from '@cc/app/shared/pipes/humanize-duration';
|
||||||
|
|
||||||
import { TimelineItemErrorComponent } from './timeline-item-error/timeline-item-error.component';
|
import { TimelineItemErrorComponent } from './timeline-item-error/timeline-item-error.component';
|
||||||
import { TimelineItemHeaderComponent } from './timeline-item-header/timeline-item-header.component';
|
import { TimelineItemHeaderComponent } from './timeline-item-header/timeline-item-header.component';
|
||||||
|
@ -6,7 +6,7 @@ import { MatExpansionModule } from '@angular/material/expansion';
|
|||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { MatMenuModule } from '@angular/material/menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
import { TimelineModule } from '@cc/components/timeline';
|
import { TimelineModule } from '@cc/components/timeline';
|
||||||
|
|
||||||
@ -25,10 +25,10 @@ import { PartyModificationTimelineItemComponent } from './party-modification-tim
|
|||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
FlexModule,
|
FlexModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
SharedPipesModule,
|
|
||||||
TimelineComponentsModule,
|
TimelineComponentsModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
exports: [PartyModificationTimelineItemComponent],
|
exports: [PartyModificationTimelineItemComponent],
|
||||||
})
|
})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
import get from 'lodash-es/get';
|
import get from 'lodash-es/get';
|
||||||
|
|
||||||
import { getUnionValue } from '@cc/utils/index';
|
import { getUnionValue } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { Questionary } from '../../../../../../thrift-services/ank/gen-model/questionary_manager';
|
import { Questionary } from '../../../../../../thrift-services/ank/gen-model/questionary_manager';
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
import { MatMenuModule } from '@angular/material/menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
|
|
||||||
import { PartyModificationsExtractorModule } from '@cc/app/shared/components';
|
import { PartyModificationsExtractorModule } from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
import { TimelineModule } from '@cc/components/timeline';
|
import { TimelineModule } from '@cc/components/timeline';
|
||||||
|
|
||||||
@ -30,7 +29,6 @@ import { SerialNumberPipe } from './serial-number.pipe';
|
|||||||
FlexModule,
|
FlexModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
SharedPipesModule,
|
|
||||||
TimelineComponentsModule,
|
TimelineComponentsModule,
|
||||||
PartyModificationsExtractorModule,
|
PartyModificationsExtractorModule,
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Pipe, PipeTransform } from '@angular/core';
|
import { Pipe, PipeTransform } from '@angular/core';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Pipe, PipeTransform } from '@angular/core';
|
import { Pipe, PipeTransform } from '@angular/core';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Pipe, PipeTransform } from '@angular/core';
|
import { Pipe, PipeTransform } from '@angular/core';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { ClaimStatus } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import { Component, Inject } from '@angular/core';
|
|||||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { getUnionKey, getUnionValue } from '@cc/utils/index';
|
import { getUnionKey, getUnionValue } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
import { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import { BehaviorSubject, forkJoin, merge, Observable, of, Subject } from 'rxjs'
|
|||||||
import { catchError, first, map, shareReplay, switchMap, tap } from 'rxjs/operators';
|
import { catchError, first, map, shareReplay, switchMap, tap } from 'rxjs/operators';
|
||||||
|
|
||||||
import { PartyModificationEmitter } from '@cc/app/shared/components';
|
import { PartyModificationEmitter } from '@cc/app/shared/components';
|
||||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|
||||||
|
|
||||||
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
||||||
import {
|
import {
|
||||||
@ -42,7 +41,7 @@ export class UnsavedClaimChangesetService {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
shareReplay(SHARE_REPLAY_CONF)
|
shareReplay(1)
|
||||||
);
|
);
|
||||||
|
|
||||||
inProgress$ = progress(this.save$, merge(this.changesetUpdated$, this.hasError$));
|
inProgress$ = progress(this.save$, merge(this.changesetUpdated$, this.hasError$));
|
||||||
|
@ -6,8 +6,6 @@ import { forkJoin, merge, of, Subject } from 'rxjs';
|
|||||||
import { catchError, filter, shareReplay, switchMap, tap } from 'rxjs/operators';
|
import { catchError, filter, shareReplay, switchMap, tap } from 'rxjs/operators';
|
||||||
import * as uuid from 'uuid/v4';
|
import * as uuid from 'uuid/v4';
|
||||||
|
|
||||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|
||||||
|
|
||||||
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
||||||
import { Modification } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
import { Modification } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
import { ConversationId, User } from '../../../../thrift-services/messages/gen-model/messages';
|
import { ConversationId, User } from '../../../../thrift-services/messages/gen-model/messages';
|
||||||
@ -52,7 +50,7 @@ export class SendCommentService {
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
filter(([_, result]) => result !== 'error'),
|
filter(([_, result]) => result !== 'error'),
|
||||||
shareReplay(SHARE_REPLAY_CONF)
|
shareReplay(1)
|
||||||
);
|
);
|
||||||
|
|
||||||
inProgress$ = progress(this.sendComment$, merge(this.comment$, this.hasError$));
|
inProgress$ = progress(this.sendComment$, merge(this.comment$, this.hasError$));
|
||||||
|
@ -9,7 +9,7 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule } from '@cc/app/shared/pipes';
|
||||||
|
|
||||||
import { DamselModule } from '../../../../thrift-services/damsel';
|
import { DamselModule } from '../../../../thrift-services/damsel';
|
||||||
import { StatusChangerDialogComponent } from './status-changer-dialog.component';
|
import { StatusChangerDialogComponent } from './status-changer-dialog.component';
|
||||||
@ -27,7 +27,7 @@ import { StatusChangerService } from './status-changer.service';
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
SharedPipesModule,
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [StatusChangerDialogComponent],
|
declarations: [StatusChangerDialogComponent],
|
||||||
entryComponents: [StatusChangerDialogComponent],
|
entryComponents: [StatusChangerDialogComponent],
|
||||||
|
@ -3,8 +3,6 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
import { combineLatest } from 'rxjs';
|
import { combineLatest } from 'rxjs';
|
||||||
import { first, pluck, shareReplay } from 'rxjs/operators';
|
import { first, pluck, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|
||||||
|
|
||||||
import { FetchClaimService } from './fetch-claim.service';
|
import { FetchClaimService } from './fetch-claim.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -13,8 +11,8 @@ import { FetchClaimService } from './fetch-claim.service';
|
|||||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class PartyClaimComponent implements OnInit {
|
export class PartyClaimComponent implements OnInit {
|
||||||
claimID$ = this.route.params.pipe(pluck('claimID'), shareReplay(SHARE_REPLAY_CONF));
|
claimID$ = this.route.params.pipe(pluck('claimID'), shareReplay(1));
|
||||||
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(SHARE_REPLAY_CONF));
|
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(1));
|
||||||
isLoading$ = this.fetchClaimService.isLoading$;
|
isLoading$ = this.fetchClaimService.isLoading$;
|
||||||
createdAt$ = this.fetchClaimService.claim$.pipe(pluck('created_at'));
|
createdAt$ = this.fetchClaimService.claim$.pipe(pluck('created_at'));
|
||||||
changeset$ = this.fetchClaimService.claim$.pipe(pluck('changeset'));
|
changeset$ = this.fetchClaimService.claim$.pipe(pluck('changeset'));
|
||||||
|
@ -10,7 +10,7 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { PartyModificationCreatorModule } from '@cc/app/shared/components';
|
import { PartyModificationCreatorModule } from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
|
|
||||||
import { ClaimChangesetModule, UnsavedClaimChangesetModule } from './changeset';
|
import { ClaimChangesetModule, UnsavedClaimChangesetModule } from './changeset';
|
||||||
import { EditUnsavedModificationModule } from './changeset/unsaved-changeset/edit-unsaved-modification/edit-unsaved-modification.module';
|
import { EditUnsavedModificationModule } from './changeset/unsaved-changeset/edit-unsaved-modification/edit-unsaved-modification.module';
|
||||||
@ -32,11 +32,12 @@ import { PartyClaimComponent } from './party-claim.component';
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
EditUnsavedModificationModule,
|
EditUnsavedModificationModule,
|
||||||
ClaimChangesetModule,
|
ClaimChangesetModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
PartyClaimActionsModule,
|
PartyClaimActionsModule,
|
||||||
UnsavedClaimChangesetModule,
|
UnsavedClaimChangesetModule,
|
||||||
PartyModificationCreatorModule,
|
PartyModificationCreatorModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [PartyClaimComponent, PartyClaimTitleComponent],
|
declarations: [PartyClaimComponent, PartyClaimTitleComponent],
|
||||||
})
|
})
|
||||||
|
@ -13,7 +13,7 @@ import { MatSelectModule } from '@angular/material/select';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { ClaimSearchFormModule } from '@cc/app/shared/components';
|
import { ClaimSearchFormModule } from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||||
|
|
||||||
import { ClaimsTableComponent } from './claims-table/claims-table.component';
|
import { ClaimsTableComponent } from './claims-table/claims-table.component';
|
||||||
@ -35,9 +35,10 @@ import { PartyClaimsComponent } from './party-claims.component';
|
|||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
SharedPipesModule,
|
|
||||||
ClaimSearchFormModule,
|
ClaimSearchFormModule,
|
||||||
EmptySearchResultModule,
|
EmptySearchResultModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [PartyClaimsComponent, ClaimsTableComponent],
|
declarations: [PartyClaimsComponent, ClaimsTableComponent],
|
||||||
})
|
})
|
||||||
|
@ -16,12 +16,11 @@ import {
|
|||||||
PaymentsMainSearchFiltersModule,
|
PaymentsMainSearchFiltersModule,
|
||||||
PaymentsOtherSearchFiltersModule,
|
PaymentsOtherSearchFiltersModule,
|
||||||
PaymentsSearcherModule,
|
PaymentsSearcherModule,
|
||||||
|
PaymentsTableModule,
|
||||||
|
StatusModule,
|
||||||
} from '@cc/app/shared/components';
|
} from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
|
|
||||||
import { PaymentsTableModule } from '../../shared/components/payments-table/payments-table.module';
|
|
||||||
import { PartyPaymentsRoutingModule } from './party-payments-routing.module';
|
import { PartyPaymentsRoutingModule } from './party-payments-routing.module';
|
||||||
import { PartyPaymentsComponent } from './party-payments.component';
|
import { PartyPaymentsComponent } from './party-payments.component';
|
||||||
|
|
||||||
@ -29,7 +28,6 @@ import { PartyPaymentsComponent } from './party-payments.component';
|
|||||||
imports: [
|
imports: [
|
||||||
FlexModule,
|
FlexModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatProgressBarModule,
|
MatProgressBarModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
|
@ -4,7 +4,7 @@ import pickBy from 'lodash-es/pickBy';
|
|||||||
|
|
||||||
import { SearchFiltersParams } from '@cc/app/shared/components';
|
import { SearchFiltersParams } from '@cc/app/shared/components';
|
||||||
import { QueryParamsStore } from '@cc/app/shared/services';
|
import { QueryParamsStore } from '@cc/app/shared/services';
|
||||||
import { wrapValuesToArray } from '@cc/utils/index';
|
import { wrapValuesToArray } from '@cc/utils/wrap-values-to-array';
|
||||||
|
|
||||||
const shopIDsAndPrimitives = (v, k) => typeof v === 'string' && k === 'shopIDs';
|
const shopIDsAndPrimitives = (v, k) => typeof v === 'string' && k === 'shopIDs';
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import {
|
|||||||
OperationRole,
|
OperationRole,
|
||||||
PartyRole,
|
PartyRole,
|
||||||
} from '@cc/app/shared/services';
|
} from '@cc/app/shared/services';
|
||||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: 'party.component.html',
|
templateUrl: 'party.component.html',
|
||||||
@ -18,7 +17,7 @@ import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
|||||||
})
|
})
|
||||||
export class PartyComponent {
|
export class PartyComponent {
|
||||||
links = this.getLinks();
|
links = this.getLinks();
|
||||||
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(SHARE_REPLAY_CONF));
|
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(1));
|
||||||
activeLinkByFragment$ = this.router.events.pipe(
|
activeLinkByFragment$ = this.router.events.pipe(
|
||||||
filter((e) => e instanceof NavigationEnd),
|
filter((e) => e instanceof NavigationEnd),
|
||||||
startWith(undefined),
|
startWith(undefined),
|
||||||
|
@ -4,20 +4,11 @@ import { FlexModule } from '@angular/flex-layout';
|
|||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { MatTabsModule } from '@angular/material/tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { PartyRouting } from './party-routing.module';
|
import { PartyRouting } from './party-routing.module';
|
||||||
import { PartyComponent } from './party.component';
|
import { PartyComponent } from './party.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [PartyRouting, CommonModule, MatTabsModule, FlexModule, MatButtonModule],
|
||||||
PartyRouting,
|
|
||||||
CommonModule,
|
|
||||||
MatTabsModule,
|
|
||||||
SharedPipesModule,
|
|
||||||
FlexModule,
|
|
||||||
MatButtonModule,
|
|
||||||
],
|
|
||||||
declarations: [PartyComponent],
|
declarations: [PartyComponent],
|
||||||
})
|
})
|
||||||
export class PartyModule {}
|
export class PartyModule {}
|
||||||
|
@ -6,12 +6,11 @@ import { MatCardModule } from '@angular/material/card';
|
|||||||
import { MatDialogModule } from '@angular/material/dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
|
|
||||||
|
import { StatusModule } from '@cc/app/shared/components';
|
||||||
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
||||||
import { CreateChargebackDialogModule } from '@cc/app/shared/components/create-chargeback-dialog';
|
import { CreateChargebackDialogModule } from '@cc/app/shared/components/create-chargeback-dialog';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { DetailsItemModule } from '@cc/components/details-item';
|
import { DetailsItemModule } from '@cc/components/details-item';
|
||||||
import { HeadlineModule } from '@cc/components/headline';
|
import { HeadlineModule } from '@cc/components/headline';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
|
|
||||||
import { PaymentDetailsRoutingModule } from './payment-details-routing.module';
|
import { PaymentDetailsRoutingModule } from './payment-details-routing.module';
|
||||||
import { PaymentDetailsComponent } from './payment-details.component';
|
import { PaymentDetailsComponent } from './payment-details.component';
|
||||||
@ -26,7 +25,6 @@ import { PaymentToolModule } from './payment-main-info/payment-tool';
|
|||||||
PaymentDetailsRoutingModule,
|
PaymentDetailsRoutingModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
DetailsItemModule,
|
DetailsItemModule,
|
||||||
SharedPipesModule,
|
|
||||||
StatusModule,
|
StatusModule,
|
||||||
PaymentToolModule,
|
PaymentToolModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
|
@ -3,10 +3,9 @@ import { NgModule } from '@angular/core';
|
|||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { StatusModule } from '@cc/app/shared/components';
|
||||||
|
import { CommonPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { DetailsItemModule } from '@cc/components/details-item';
|
import { DetailsItemModule } from '@cc/components/details-item';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { PaymentMainInfoComponent } from './payment-main-info.component';
|
import { PaymentMainInfoComponent } from './payment-main-info.component';
|
||||||
import { PaymentToolModule } from './payment-tool';
|
import { PaymentToolModule } from './payment-tool';
|
||||||
@ -19,8 +18,8 @@ import { PaymentToolModule } from './payment-tool';
|
|||||||
DetailsItemModule,
|
DetailsItemModule,
|
||||||
StatusModule,
|
StatusModule,
|
||||||
PaymentToolModule,
|
PaymentToolModule,
|
||||||
|
ThriftPipesModule,
|
||||||
CommonPipesModule,
|
CommonPipesModule,
|
||||||
SharedPipesModule,
|
|
||||||
],
|
],
|
||||||
declarations: [PaymentMainInfoComponent],
|
declarations: [PaymentMainInfoComponent],
|
||||||
exports: [PaymentMainInfoComponent],
|
exports: [PaymentMainInfoComponent],
|
||||||
|
@ -12,7 +12,7 @@ import { map, startWith } from 'rxjs/operators';
|
|||||||
import { DomainCacheService } from 'src/app/thrift-services/damsel/domain-cache.service';
|
import { DomainCacheService } from 'src/app/thrift-services/damsel/domain-cache.service';
|
||||||
import { PaymentInstitutionObject } from 'src/app/thrift-services/damsel/gen-model/domain';
|
import { PaymentInstitutionObject } from 'src/app/thrift-services/damsel/gen-model/domain';
|
||||||
|
|
||||||
import { ComponentChanges } from '@cc/app/shared/index';
|
import { ComponentChanges } from '@cc/app/shared/utils';
|
||||||
|
|
||||||
enum Target {
|
enum Target {
|
||||||
manual = 'manual',
|
manual = 'manual',
|
||||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { AddPartyPaymentRoutingRuleDialogComponent } from './add-party-payment-routing-rule-dialog.component';
|
import { AddPartyPaymentRoutingRuleDialogComponent } from './add-party-payment-routing-rule-dialog.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -29,7 +27,6 @@ import { AddPartyPaymentRoutingRuleDialogComponent } from './add-party-payment-r
|
|||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatAutocompleteModule,
|
MatAutocompleteModule,
|
||||||
],
|
],
|
||||||
declarations: [AddPartyPaymentRoutingRuleDialogComponent],
|
declarations: [AddPartyPaymentRoutingRuleDialogComponent],
|
||||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { InitializePaymentRoutingRulesDialogComponent } from './initialize-payment-routing-rules-dialog.component';
|
import { InitializePaymentRoutingRulesDialogComponent } from './initialize-payment-routing-rules-dialog.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -29,7 +27,6 @@ import { InitializePaymentRoutingRulesDialogComponent } from './initialize-payme
|
|||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatAutocompleteModule,
|
MatAutocompleteModule,
|
||||||
],
|
],
|
||||||
declarations: [InitializePaymentRoutingRulesDialogComponent],
|
declarations: [InitializePaymentRoutingRulesDialogComponent],
|
||||||
|
@ -17,8 +17,6 @@ import { MatSelectModule } from '@angular/material/select';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { DamselModule } from '../../../thrift-services';
|
import { DamselModule } from '../../../thrift-services';
|
||||||
import { PaymentRoutingRulesetHeaderModule } from '../payment-routing-ruleset-header';
|
import { PaymentRoutingRulesetHeaderModule } from '../payment-routing-ruleset-header';
|
||||||
import { AddPartyPaymentRoutingRuleDialogModule } from './add-party-payment-routing-rule-dialog';
|
import { AddPartyPaymentRoutingRuleDialogModule } from './add-party-payment-routing-rule-dialog';
|
||||||
@ -47,7 +45,6 @@ import { PaymentRoutingRulesComponent } from './party-payment-routing-ruleset.co
|
|||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
SharedPipesModule,
|
|
||||||
PaymentRoutingRulesetHeaderModule,
|
PaymentRoutingRulesetHeaderModule,
|
||||||
AddPartyPaymentRoutingRuleDialogModule,
|
AddPartyPaymentRoutingRuleDialogModule,
|
||||||
InitializePaymentRoutingRulesDialogModule,
|
InitializePaymentRoutingRulesDialogModule,
|
||||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
|||||||
import { MatRadioModule } from '@angular/material/radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
|
|
||||||
import { AddShopPaymentRoutingRuleDialogComponent } from './add-shop-payment-routing-rule-dialog.component';
|
import { AddShopPaymentRoutingRuleDialogComponent } from './add-shop-payment-routing-rule-dialog.component';
|
||||||
import { ExpanderComponent } from './expander';
|
import { ExpanderComponent } from './expander';
|
||||||
import { PredicateComponent } from './predicate';
|
import { PredicateComponent } from './predicate';
|
||||||
@ -31,7 +29,6 @@ import { PredicateComponent } from './predicate';
|
|||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatAutocompleteModule,
|
MatAutocompleteModule,
|
||||||
],
|
],
|
||||||
declarations: [AddShopPaymentRoutingRuleDialogComponent, PredicateComponent, ExpanderComponent],
|
declarations: [AddShopPaymentRoutingRuleDialogComponent, PredicateComponent, ExpanderComponent],
|
||||||
|
@ -18,7 +18,6 @@ import { MatSelectModule } from '@angular/material/select';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { DamselModule } from '../../../thrift-services';
|
import { DamselModule } from '../../../thrift-services';
|
||||||
@ -48,7 +47,6 @@ import { ShopPaymentRoutingRulesetComponent } from './shop-payment-routing-rules
|
|||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
SharedPipesModule,
|
|
||||||
PaymentRoutingRulesetHeaderModule,
|
PaymentRoutingRulesetHeaderModule,
|
||||||
MatAutocompleteModule,
|
MatAutocompleteModule,
|
||||||
AddShopPaymentRoutingRuleDialogModule,
|
AddShopPaymentRoutingRuleDialogModule,
|
||||||
|
@ -16,7 +16,7 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { ClaimSearchFormModule } from '@cc/app/shared/components';
|
import { ClaimSearchFormModule } from '@cc/app/shared/components';
|
||||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
import { ApiModelPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||||
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||||
|
|
||||||
import { ClaimManagementService } from '../../thrift-services/damsel/claim-management.service';
|
import { ClaimManagementService } from '../../thrift-services/damsel/claim-management.service';
|
||||||
@ -43,10 +43,11 @@ import { SearchTableComponent } from './search-table/search-table.component';
|
|||||||
MatTableModule,
|
MatTableModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatExpansionModule,
|
MatExpansionModule,
|
||||||
ClaimSearchFormModule,
|
ClaimSearchFormModule,
|
||||||
EmptySearchResultModule,
|
EmptySearchResultModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
|
ThriftPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [SearchClaimsComponent, SearchTableComponent, ClaimMailPipePipe],
|
declarations: [SearchClaimsComponent, SearchTableComponent, ClaimMailPipePipe],
|
||||||
providers: [SearchClaimsService, ClaimManagementService],
|
providers: [SearchClaimsService, ClaimManagementService],
|
||||||
|
7
src/app/shared/components/_shared-components-themes.scss
Normal file
7
src/app/shared/components/_shared-components-themes.scss
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@import './status/status-theme';
|
||||||
|
@import './party-modification-creator/party-modification-creator-theme';
|
||||||
|
|
||||||
|
@mixin cc-shared-components-themes($theme) {
|
||||||
|
@include cc-status-theme($theme);
|
||||||
|
@include cc-party-modification-creator-theme($theme);
|
||||||
|
}
|
@ -9,10 +9,13 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../../shared';
|
import {
|
||||||
|
ApiModelPipesModule,
|
||||||
|
CommonPipesModule,
|
||||||
|
StatusModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
} from '../../../shared';
|
||||||
import { ChargebacksTableComponent } from './chargebacks-table.component';
|
import { ChargebacksTableComponent } from './chargebacks-table.component';
|
||||||
import { FetchChargebacksService } from './fetch-chargebacks.service';
|
import { FetchChargebacksService } from './fetch-chargebacks.service';
|
||||||
|
|
||||||
@ -27,9 +30,10 @@ import { FetchChargebacksService } from './fetch-chargebacks.service';
|
|||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
EmptySearchResultModule,
|
EmptySearchResultModule,
|
||||||
CommonPipesModule,
|
|
||||||
SharedPipesModule,
|
|
||||||
MatSnackBarModule,
|
MatSnackBarModule,
|
||||||
|
ThriftPipesModule,
|
||||||
|
CommonPipesModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [ChargebacksTableComponent],
|
declarations: [ChargebacksTableComponent],
|
||||||
exports: [ChargebacksTableComponent],
|
exports: [ChargebacksTableComponent],
|
||||||
|
@ -5,7 +5,7 @@ import moment from 'moment';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map, shareReplay } from 'rxjs/operators';
|
import { map, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
import { booleanDelay } from '@cc/operators/index';
|
import { booleanDelay } from '@cc/utils/boolean-delay';
|
||||||
|
|
||||||
import { ChargebacksParams, createDSL } from '../../../query-dsl';
|
import { ChargebacksParams, createDSL } from '../../../query-dsl';
|
||||||
import { StatChargeback } from '../../../thrift-services/damsel/gen-model/merch_stat';
|
import { StatChargeback } from '../../../thrift-services/damsel/gen-model/merch_stat';
|
||||||
|
@ -5,17 +5,16 @@ import { ReactiveFormsModule } from '@angular/forms';
|
|||||||
import { MatInputModule } from '@angular/material/input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../pipes';
|
import { ApiModelPipesModule } from '../../pipes';
|
||||||
import { ClaimSearchFormComponent } from './claim-search-form.component';
|
import { ClaimSearchFormComponent } from './claim-search-form.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatSelectModule,
|
MatSelectModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [ClaimSearchFormComponent],
|
declarations: [ClaimSearchFormComponent],
|
||||||
exports: [ClaimSearchFormComponent],
|
exports: [ClaimSearchFormComponent],
|
||||||
|
@ -6,3 +6,4 @@ export * from './payments-search-filters';
|
|||||||
export * from './payments-table';
|
export * from './payments-table';
|
||||||
export * from './questionary-document';
|
export * from './questionary-document';
|
||||||
export * from './payments-searcher';
|
export * from './payments-searcher';
|
||||||
|
export * from './status';
|
||||||
|
@ -14,7 +14,6 @@ import { MatTableModule } from '@angular/material/table';
|
|||||||
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../../pipes';
|
|
||||||
import { FillInUnitIdComponent } from './fill-in-unit-id/fill-in-unit-id.component';
|
import { FillInUnitIdComponent } from './fill-in-unit-id/fill-in-unit-id.component';
|
||||||
import { PartyItemNamePipe } from './party-item-name.pipe';
|
import { PartyItemNamePipe } from './party-item-name.pipe';
|
||||||
import { PartyModificationTargetComponent } from './party-modification-target.component';
|
import { PartyModificationTargetComponent } from './party-modification-target.component';
|
||||||
@ -32,7 +31,6 @@ import { TargetTableComponent } from './target-table/target-table.component';
|
|||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MatSnackBarModule,
|
MatSnackBarModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatPaginatorModule,
|
MatPaginatorModule,
|
||||||
|
@ -12,7 +12,6 @@ import { MatTableModule } from '@angular/material/table';
|
|||||||
|
|
||||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../../pipes';
|
|
||||||
import { ContractorSelectorComponent } from './contractor-selector.component';
|
import { ContractorSelectorComponent } from './contractor-selector.component';
|
||||||
import { ContractorsTableComponent } from './contractors-table/contractors-table.component';
|
import { ContractorsTableComponent } from './contractors-table/contractors-table.component';
|
||||||
import { SelectorTypePipe } from './selector-type.pipe';
|
import { SelectorTypePipe } from './selector-type.pipe';
|
||||||
@ -27,7 +26,6 @@ import { SelectorTypePipe } from './selector-type.pipe';
|
|||||||
MatInputModule,
|
MatInputModule,
|
||||||
MatProgressSpinnerModule,
|
MatProgressSpinnerModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatPaginatorModule,
|
MatPaginatorModule,
|
||||||
PrettyJsonModule,
|
PrettyJsonModule,
|
||||||
|
@ -4,7 +4,7 @@ import * as moment from 'moment';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map, shareReplay } from 'rxjs/operators';
|
import { map, shareReplay } from 'rxjs/operators';
|
||||||
|
|
||||||
import { booleanDelay } from '@cc/operators/index';
|
import { booleanDelay } from '@cc/utils/boolean-delay';
|
||||||
|
|
||||||
import { QueryDSL } from '../../../query-dsl';
|
import { QueryDSL } from '../../../query-dsl';
|
||||||
import { StatPayment } from '../../../thrift-services/damsel/gen-model/merch_stat';
|
import { StatPayment } from '../../../thrift-services/damsel/gen-model/merch_stat';
|
||||||
|
@ -13,21 +13,19 @@ import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
import { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||||
import { StatusModule } from '@cc/components/status';
|
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../pipes';
|
|
||||||
import {
|
import {
|
||||||
PaymentsMainSearchFiltersModule,
|
PaymentsMainSearchFiltersModule,
|
||||||
PaymentsOtherSearchFiltersModule,
|
PaymentsOtherSearchFiltersModule,
|
||||||
} from '../payments-search-filters';
|
} from '../payments-search-filters';
|
||||||
import { PaymentsTableModule } from '../payments-table/payments-table.module';
|
import { PaymentsTableModule } from '../payments-table/payments-table.module';
|
||||||
|
import { StatusModule } from '../status';
|
||||||
import { PaymentsSearcherComponent } from './payments-searcher.component';
|
import { PaymentsSearcherComponent } from './payments-searcher.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
FlexModule,
|
FlexModule,
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
SharedPipesModule,
|
|
||||||
MatProgressBarModule,
|
MatProgressBarModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
|
@ -6,10 +6,8 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
import { MatMenuModule } from '@angular/material/menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
|
||||||
import { StatusModule } from '@cc/components/status';
|
import { ApiModelPipesModule, CommonPipesModule } from '../../pipes';
|
||||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
import { StatusModule } from '../status';
|
||||||
|
|
||||||
import { SharedPipesModule } from '../../pipes';
|
|
||||||
import { PaymentActionsPipe } from './payment-actions.pipe';
|
import { PaymentActionsPipe } from './payment-actions.pipe';
|
||||||
import { PaymentsTableComponent } from './payments-table.component';
|
import { PaymentsTableComponent } from './payments-table.component';
|
||||||
|
|
||||||
@ -17,13 +15,13 @@ import { PaymentsTableComponent } from './payments-table.component';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MatTableModule,
|
MatTableModule,
|
||||||
SharedPipesModule,
|
|
||||||
FlexModule,
|
FlexModule,
|
||||||
StatusModule,
|
StatusModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatMenuModule,
|
MatMenuModule,
|
||||||
CommonPipesModule,
|
CommonPipesModule,
|
||||||
|
ApiModelPipesModule,
|
||||||
],
|
],
|
||||||
declarations: [PaymentsTableComponent, PaymentActionsPipe],
|
declarations: [PaymentsTableComponent, PaymentActionsPipe],
|
||||||
exports: [PaymentsTableComponent],
|
exports: [PaymentsTableComponent],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Pipe, PipeTransform } from '@angular/core';
|
import { Pipe, PipeTransform } from '@angular/core';
|
||||||
import startCase from 'lodash-es/startCase';
|
import startCase from 'lodash-es/startCase';
|
||||||
|
|
||||||
import { getUnionKey } from '@cc/utils/index';
|
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'toPaymentStatus',
|
name: 'toPaymentStatus',
|
@ -1,21 +1,14 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { ClaimSourcePipe } from './claim-source.pipe';
|
import { ClaimSourcePipe } from './claim-source.pipe';
|
||||||
import { ClaimStatusThriftPipe } from './claim-status-thrift.pipe';
|
|
||||||
import { ClaimStatusPipe } from './claim-status.pipe';
|
import { ClaimStatusPipe } from './claim-status.pipe';
|
||||||
import { PartyModificationNamePipe } from './party-modification-name.pipe';
|
import { PartyModificationNamePipe } from './party-modification-name.pipe';
|
||||||
import { ShopNamePipe } from './shop-name.pipe';
|
import { ShopNamePipe } from './shop-name.pipe';
|
||||||
|
|
||||||
const declarations = [
|
const pipes = [ClaimSourcePipe, ClaimStatusPipe, PartyModificationNamePipe, ShopNamePipe];
|
||||||
ClaimStatusThriftPipe,
|
|
||||||
ClaimStatusPipe,
|
|
||||||
ClaimSourcePipe,
|
|
||||||
ShopNamePipe,
|
|
||||||
PartyModificationNamePipe,
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations,
|
declarations: pipes,
|
||||||
exports: declarations,
|
exports: pipes,
|
||||||
})
|
})
|
||||||
export class SharedPipesModule {}
|
export class ApiModelPipesModule {}
|
1
src/app/shared/pipes/api-model-types/index.ts
Normal file
1
src/app/shared/pipes/api-model-types/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './api-model-pipes.module';
|
@ -7,7 +7,7 @@ import {
|
|||||||
ContractorModificationUnit,
|
ContractorModificationUnit,
|
||||||
PartyModification,
|
PartyModification,
|
||||||
ShopModificationUnit,
|
ShopModificationUnit,
|
||||||
} from '../../thrift-services/damsel/gen-model/claim_management';
|
} from '../../../thrift-services/damsel/gen-model/claim_management';
|
||||||
|
|
||||||
function getContractorModificationName(mod: ContractorModificationUnit): string {
|
function getContractorModificationName(mod: ContractorModificationUnit): string {
|
||||||
switch (getUnionKey(mod.modification)) {
|
switch (getUnionKey(mod.modification)) {
|
@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, Pipe, PipeTransform } from '@angular/core
|
|||||||
import { BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
import { BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
||||||
import { distinctUntilChanged, map, pluck, switchMap, takeUntil } from 'rxjs/operators';
|
import { distinctUntilChanged, map, pluck, switchMap, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
import { PartyService } from '../../party/party.service';
|
import { PartyService } from '../../../party/party.service';
|
||||||
|
|
||||||
@Pipe({
|
@Pipe({
|
||||||
name: 'shopName',
|
name: 'shopName',
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user