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 { 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 { ClaimRoutingModule } from './claim-routing.module';
|
||||
@ -24,7 +24,6 @@ import { StatusChangerComponent } from './status-changer/status-changer.componen
|
||||
@NgModule({
|
||||
imports: [
|
||||
ClaimRoutingModule,
|
||||
SharedPipesModule,
|
||||
CommonModule,
|
||||
MatCardModule,
|
||||
FlexModule,
|
||||
@ -39,6 +38,8 @@ import { StatusChangerComponent } from './status-changer/status-changer.componen
|
||||
MatBottomSheetModule,
|
||||
MatStepperModule,
|
||||
ConfirmActionDialogModule,
|
||||
ThriftPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [ClaimComponent, DetailsComponent, StatusChangerComponent],
|
||||
entryComponents: [StatusChangerComponent],
|
||||
|
@ -15,14 +15,14 @@ import { combineLatest, from, of } from 'rxjs';
|
||||
import { filter, first, map, switchMap } from 'rxjs/operators';
|
||||
|
||||
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 {
|
||||
PartyModificationEmitter,
|
||||
UnitActionsNavListComponent,
|
||||
} from '../../../party-modification-creator-legacy';
|
||||
import { extractClaimStatus } from '../../../shared/utils';
|
||||
import { Questionary } from '../../../thrift-services/ank/gen-model/questionary_manager';
|
||||
import { Claim, Modification } from '../../../thrift-services/damsel/gen-model/claim_management';
|
||||
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 { 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 { TimelineModule } from '@cc/components/timeline';
|
||||
import { HumanizeDurationModule } from '@cc/pipes/humanize-duration';
|
||||
|
||||
import { MonacoEditorModule } from '../../../monaco-editor';
|
||||
import { PartyModificationCreatorLegacyModule } from '../../../party-modification-creator-legacy';
|
||||
@ -45,12 +44,10 @@ import { SendCommentComponent } from './send-comment';
|
||||
MatInputModule,
|
||||
TimelineModule,
|
||||
MatIconModule,
|
||||
SharedPipesModule,
|
||||
CommonModule,
|
||||
ReactiveFormsModule,
|
||||
MatExpansionModule,
|
||||
MonacoEditorModule,
|
||||
HumanizeDurationModule,
|
||||
MessagesModule,
|
||||
MatCardModule,
|
||||
HumanizeDurationModule,
|
||||
|
@ -2,7 +2,7 @@ import { Component, Inject } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
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';
|
||||
|
||||
|
@ -10,7 +10,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
import { ContractorSelectorComponent } from './contractor-selector.component';
|
||||
@ -27,7 +26,6 @@ import { SelectorTypePipe } from './selector-type.pipe';
|
||||
MatInputModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatCheckboxModule,
|
||||
SharedPipesModule,
|
||||
MatTableModule,
|
||||
MatPaginatorModule,
|
||||
PrettyJsonModule,
|
||||
|
@ -6,7 +6,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
import { MatTableDataSource } from '@angular/material/table';
|
||||
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 { 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 { 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 { 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 { 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 { 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 { 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 { PartyModification } from '../../../../../thrift-services/damsel/gen-model/claim_management';
|
||||
|
@ -4,7 +4,7 @@ import * as moment from 'moment';
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
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 { FileData } from '../../../../thrift-services/file-storage/gen-model/file_storage';
|
||||
|
@ -1,6 +1,6 @@
|
||||
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';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||
import get from 'lodash-es/get';
|
||||
|
||||
import { getUnionKey } from '@cc/utils/index';
|
||||
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||
|
||||
import {
|
||||
RussianIndividualEntity,
|
||||
|
@ -7,7 +7,7 @@ import { slugify } from 'transliteration';
|
||||
|
||||
import { QuestionaryDocumentService } from '@cc/app/shared/components';
|
||||
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 { 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 {
|
||||
|
@ -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 {
|
||||
ClaimModification,
|
||||
|
@ -5,7 +5,6 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatExpansionModule } from '@angular/material/expansion';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
import { EditUnsavedModificationModule } from '../conversation/edit-unsaved-modification/edit-unsaved-modification.module';
|
||||
@ -15,7 +14,6 @@ import { UnsavedPartyModificationsComponent } from './unsaved-party-modification
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatExpansionModule,
|
||||
SharedPipesModule,
|
||||
MatButtonModule,
|
||||
FlexLayoutModule,
|
||||
MatDialogModule,
|
||||
|
@ -20,7 +20,6 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatStepperModule } from '@angular/material/stepper';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
@ -50,7 +49,6 @@ import { PersistentContainerService } from './persistent-container.service';
|
||||
PapiModule,
|
||||
DamselModule,
|
||||
CommonModule,
|
||||
SharedPipesModule,
|
||||
ReactiveFormsModule,
|
||||
ClaimRoutingModule,
|
||||
FlexLayoutModule,
|
||||
|
@ -15,7 +15,6 @@ import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||
|
||||
import { PapiModule } from '../papi/papi.module';
|
||||
@ -45,7 +44,6 @@ import { SearchFormComponent } from './search-form/search-form.component';
|
||||
MatMenuModule,
|
||||
MatDialogModule,
|
||||
CdkTableModule,
|
||||
SharedPipesModule,
|
||||
CardContainerModule,
|
||||
],
|
||||
declarations: [
|
||||
|
@ -3,7 +3,7 @@ import { FormGroup } from '@angular/forms';
|
||||
import { MatDialogRef } from '@angular/material/dialog';
|
||||
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';
|
||||
|
||||
|
@ -7,8 +7,9 @@ import { map, switchMap } from 'rxjs/operators';
|
||||
import Int64 from 'thrift-ts/lib/int64';
|
||||
import * as uuid from 'uuid/v4';
|
||||
|
||||
import { createDepositStopPollingCondition, poll } from '@cc/operators/index';
|
||||
import { toMinor } from '@cc/utils/index';
|
||||
import { createDepositStopPollingCondition } from '@cc/app/shared/utils';
|
||||
import { poll } from '@cc/utils/poll';
|
||||
import { toMinor } from '@cc/utils/to-minor';
|
||||
|
||||
import { FistfulAdminService } from '../../thrift-services/fistful/fistful-admin.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 { 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 { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { FistfulAdminService } from '../thrift-services/fistful/fistful-admin.service';
|
||||
import { FistfulStatisticsService } from '../thrift-services/fistful/fistful-stat.service';
|
||||
@ -36,7 +35,6 @@ import { SearchFormService } from './search-form/search-form.service';
|
||||
DepositsRoutingModule,
|
||||
FlexLayoutModule,
|
||||
MatCardModule,
|
||||
SharedPipesModule,
|
||||
MatButtonToggleModule,
|
||||
MatButtonModule,
|
||||
MatFormFieldModule,
|
||||
@ -48,6 +46,7 @@ import { SearchFormService } from './search-form/search-form.service';
|
||||
MatDialogModule,
|
||||
MatDatepickerModule,
|
||||
CardContainerModule,
|
||||
ThriftPipesModule,
|
||||
CommonPipesModule,
|
||||
],
|
||||
declarations: [
|
||||
|
@ -5,7 +5,7 @@ import * as moment from 'moment';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { 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 { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
import { DomainGroupComponent } from './domain-group.component';
|
||||
@ -43,7 +42,6 @@ import { GroupTableComponent } from './group-table';
|
||||
MatCardModule,
|
||||
MatCheckboxModule,
|
||||
MatSelectModule,
|
||||
SharedPipesModule,
|
||||
MatSortModule,
|
||||
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 { TableDataSource, TableGroup } from './model';
|
||||
|
@ -9,7 +9,6 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
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 { MonacoEditorModule } from '../../monaco-editor';
|
||||
@ -33,7 +32,6 @@ import { DomainObjDetailsComponent } from './domain-obj-details';
|
||||
MatProgressSpinnerModule,
|
||||
MonacoEditorModule,
|
||||
DamselModule,
|
||||
SharedPipesModule,
|
||||
CardContainerModule,
|
||||
],
|
||||
})
|
||||
|
@ -8,8 +8,6 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { MonacoEditorModule } from '../../monaco-editor';
|
||||
import { DomainObjModificationComponent } from './domain-obj-modification.component';
|
||||
import { ResetConfirmDialogComponent } from './reset-confirm-dialog/reset-confirm-dialog.component';
|
||||
@ -25,7 +23,6 @@ import { ResetConfirmDialogComponent } from './reset-confirm-dialog/reset-confir
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
MonacoEditorModule,
|
||||
SharedPipesModule,
|
||||
MatDialogModule,
|
||||
],
|
||||
entryComponents: [ResetConfirmDialogComponent],
|
||||
|
@ -7,8 +7,6 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { MonacoEditorModule } from '../../monaco-editor';
|
||||
import { DomainObjReviewComponent } from './domain-obj-review.component';
|
||||
|
||||
@ -22,7 +20,6 @@ import { DomainObjReviewComponent } from './domain-obj-review.component';
|
||||
MatButtonModule,
|
||||
MatCheckboxModule,
|
||||
MonacoEditorModule,
|
||||
SharedPipesModule,
|
||||
MatIconModule,
|
||||
],
|
||||
exports: [DomainObjReviewComponent],
|
||||
|
@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { DomainService as ThriftDomainService } from '../thrift-services/damsel/domain.service';
|
||||
|
@ -1,6 +1,7 @@
|
||||
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 { DomainObject, Reference } from '../thrift-services/damsel/gen-model/domain';
|
||||
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { ClaimCreated, ClaimInfo, PartyModificationUnit } from './model';
|
||||
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { 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 { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
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,
|
||||
MatSnackBarModule,
|
||||
MatCheckboxModule,
|
||||
SharedPipesModule,
|
||||
PrettyJsonModule,
|
||||
],
|
||||
declarations: [
|
||||
|
@ -9,7 +9,6 @@ import { MatPaginatorModule } from '@angular/material/paginator';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||
|
||||
import { PartyDetailsComponent } from './party-details.component';
|
||||
@ -27,7 +26,6 @@ import { ShopsTableComponent } from './shops-table/shops-table.component';
|
||||
MatPaginatorModule,
|
||||
MatFormFieldModule,
|
||||
MatInputModule,
|
||||
SharedPipesModule,
|
||||
CardContainerModule,
|
||||
],
|
||||
declarations: [PartyDetailsComponent, ShopsTableComponent, PartyInfoComponent],
|
||||
|
@ -21,7 +21,6 @@ import { MatStepperModule } from '@angular/material/stepper';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
@ -66,7 +65,6 @@ import { TerminalsComponent } from './terminals/terminals.component';
|
||||
MatMenuModule,
|
||||
MatProgressBarModule,
|
||||
MatChipsModule,
|
||||
SharedPipesModule,
|
||||
PrettyJsonModule,
|
||||
CardContainerModule,
|
||||
],
|
||||
|
@ -22,9 +22,8 @@ import { MatStepperModule } from '@angular/material/stepper';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
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 { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { DomainModule } from '../domain';
|
||||
import { PapiModule } from '../papi/papi.module';
|
||||
@ -69,8 +68,7 @@ import { TableComponent } from './table/table.component';
|
||||
DomainModule,
|
||||
MatRadioModule,
|
||||
CardContainerModule,
|
||||
SharedPipesModule,
|
||||
CommonPipesModule,
|
||||
ThriftPipesModule,
|
||||
],
|
||||
declarations: [
|
||||
PaymentAdjustmentComponent,
|
||||
|
@ -12,7 +12,7 @@ import {
|
||||
import { MatPaginator } from '@angular/material/paginator';
|
||||
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';
|
||||
|
||||
|
@ -21,9 +21,8 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
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 { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { PapiModule } from '../papi/papi.module';
|
||||
import { CancelPayoutComponent } from './cancel-payout/cancel-payout.component';
|
||||
@ -64,7 +63,6 @@ import { SearchFormComponent } from './search-form/search-form.component';
|
||||
MatTooltipModule,
|
||||
MatPaginatorModule,
|
||||
CardContainerModule,
|
||||
SharedPipesModule,
|
||||
CommonPipesModule,
|
||||
],
|
||||
declarations: [
|
||||
|
@ -18,7 +18,6 @@ import { MatTableModule } from '@angular/material/table';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { CardContainerModule } from '@cc/components/card-container/card-container.module';
|
||||
|
||||
import { FistfulModule } from '../thrift-services/fistful/fistful.module';
|
||||
@ -40,7 +39,6 @@ import { SimpleRepairComponent } from './simple-repair/simple-repair.component';
|
||||
RepairingRoutingModule,
|
||||
MatCardModule,
|
||||
MatButtonModule,
|
||||
SharedPipesModule,
|
||||
MatProgressBarModule,
|
||||
MatTabsModule,
|
||||
MatTableModule,
|
||||
|
@ -13,9 +13,9 @@ import { MatInputModule } from '@angular/material/input';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
|
||||
import { CommonPipesModule, ThriftPipesModule } from '@cc/app/shared/pipes';
|
||||
import { DetailsItemModule } from '@cc/components/details-item';
|
||||
import { HeadlineModule } from '@cc/components/headline';
|
||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { PaymentMainInfoModule } from '../payment-details/payment-main-info';
|
||||
import { ChangeChargebackStatusDialogComponent } from './change-chargeback-status-dialog';
|
||||
@ -37,7 +37,6 @@ const EXPORTED_DECLARATIONS = [
|
||||
MatCardModule,
|
||||
MatDividerModule,
|
||||
DetailsItemModule,
|
||||
CommonPipesModule,
|
||||
FlexLayoutModule,
|
||||
PaymentMainInfoModule,
|
||||
MatButtonModule,
|
||||
@ -49,6 +48,8 @@ const EXPORTED_DECLARATIONS = [
|
||||
MatSelectModule,
|
||||
MatInputModule,
|
||||
MatIconModule,
|
||||
ThriftPipesModule,
|
||||
CommonPipesModule,
|
||||
],
|
||||
declarations: EXPORTED_DECLARATIONS,
|
||||
exports: EXPORTED_DECLARATIONS,
|
||||
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { AppAuthGuardService, OperationRole } from '@cc/app/shared/services';
|
||||
import { hasActiveFragments } from '@cc/utils/index';
|
||||
import { hasActiveFragments } from '@cc/utils/has-active-fragments';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'operations.component.html',
|
||||
|
@ -3,7 +3,7 @@ import { ActivatedRoute, Params, Router } from '@angular/router';
|
||||
import pickBy from 'lodash-es/pickBy';
|
||||
|
||||
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';
|
||||
|
||||
|
@ -12,8 +12,8 @@ import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { StatusModule } from '@cc/app/shared/components';
|
||||
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
||||
import { StatusModule } from '@cc/components/status';
|
||||
|
||||
import {
|
||||
ChargebacksMainSearchFiltersModule,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getUnionKey } from '@cc/utils/index';
|
||||
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||
|
||||
import {
|
||||
CommentModification,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getUnionKey } from '@cc/utils/index';
|
||||
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||
|
||||
import {
|
||||
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 { ChangesetInfo, ChangesetInfoType } from './changeset-info';
|
||||
|
@ -3,8 +3,6 @@ import { FormBuilder } from '@angular/forms';
|
||||
import { combineLatest, Subject } from 'rxjs';
|
||||
import { map, shareReplay, startWith } from 'rxjs/operators';
|
||||
|
||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
|
||||
import { ChangesetInfo, ChangesetInfoType } from '../changeset-infos';
|
||||
import { infosFilter } from './infos-filter';
|
||||
|
||||
@ -29,7 +27,7 @@ export class ChangesetsFilterService {
|
||||
this.changesetsFilterForm.valueChanges.pipe(startWith(this.changesetsFilterForm.value)),
|
||||
]).pipe(
|
||||
map(([infos, { filters }]) => infos.filter((info) => infosFilter(info, filters))),
|
||||
shareReplay(SHARE_REPLAY_CONF)
|
||||
shareReplay(1)
|
||||
);
|
||||
|
||||
constructor(private fb: FormBuilder) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
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 { 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 { 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 { TimelineModule } from '@cc/components/timeline';
|
||||
|
||||
@ -25,10 +25,10 @@ import { PartyModificationTimelineItemComponent } from './party-modification-tim
|
||||
MatMenuModule,
|
||||
FlexModule,
|
||||
MatExpansionModule,
|
||||
SharedPipesModule,
|
||||
TimelineComponentsModule,
|
||||
CommonModule,
|
||||
PrettyJsonModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
exports: [PartyModificationTimelineItemComponent],
|
||||
})
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
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';
|
||||
|
||||
|
@ -7,7 +7,6 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
|
||||
import { PartyModificationsExtractorModule } from '@cc/app/shared/components';
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
import { TimelineModule } from '@cc/components/timeline';
|
||||
|
||||
@ -30,7 +29,6 @@ import { SerialNumberPipe } from './serial-number.pipe';
|
||||
FlexModule,
|
||||
CommonModule,
|
||||
MatExpansionModule,
|
||||
SharedPipesModule,
|
||||
TimelineComponentsModule,
|
||||
PartyModificationsExtractorModule,
|
||||
PrettyJsonModule,
|
||||
|
@ -1,6 +1,6 @@
|
||||
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';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
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';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
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';
|
||||
|
||||
|
@ -2,7 +2,7 @@ import { Component, Inject } from '@angular/core';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
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';
|
||||
|
||||
|
@ -4,7 +4,6 @@ import { BehaviorSubject, forkJoin, merge, Observable, of, Subject } from 'rxjs'
|
||||
import { catchError, first, map, shareReplay, switchMap, tap } from 'rxjs/operators';
|
||||
|
||||
import { PartyModificationEmitter } from '@cc/app/shared/components';
|
||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
|
||||
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
||||
import {
|
||||
@ -42,7 +41,7 @@ export class UnsavedClaimChangesetService {
|
||||
)
|
||||
);
|
||||
}),
|
||||
shareReplay(SHARE_REPLAY_CONF)
|
||||
shareReplay(1)
|
||||
);
|
||||
|
||||
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 * as uuid from 'uuid/v4';
|
||||
|
||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
|
||||
import { KeycloakTokenInfoService } from '../../../../keycloak-token-info.service';
|
||||
import { Modification } from '../../../../thrift-services/damsel/gen-model/claim_management';
|
||||
import { ConversationId, User } from '../../../../thrift-services/messages/gen-model/messages';
|
||||
@ -52,7 +50,7 @@ export class SendCommentService {
|
||||
)
|
||||
),
|
||||
filter(([_, result]) => result !== 'error'),
|
||||
shareReplay(SHARE_REPLAY_CONF)
|
||||
shareReplay(1)
|
||||
);
|
||||
|
||||
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 { 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 { StatusChangerDialogComponent } from './status-changer-dialog.component';
|
||||
@ -27,7 +27,7 @@ import { StatusChangerService } from './status-changer.service';
|
||||
MatInputModule,
|
||||
ReactiveFormsModule,
|
||||
MatButtonModule,
|
||||
SharedPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [StatusChangerDialogComponent],
|
||||
entryComponents: [StatusChangerDialogComponent],
|
||||
|
@ -3,8 +3,6 @@ import { ActivatedRoute } from '@angular/router';
|
||||
import { combineLatest } from 'rxjs';
|
||||
import { first, pluck, shareReplay } from 'rxjs/operators';
|
||||
|
||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
|
||||
import { FetchClaimService } from './fetch-claim.service';
|
||||
|
||||
@Component({
|
||||
@ -13,8 +11,8 @@ import { FetchClaimService } from './fetch-claim.service';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class PartyClaimComponent implements OnInit {
|
||||
claimID$ = this.route.params.pipe(pluck('claimID'), shareReplay(SHARE_REPLAY_CONF));
|
||||
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(SHARE_REPLAY_CONF));
|
||||
claimID$ = this.route.params.pipe(pluck('claimID'), shareReplay(1));
|
||||
partyID$ = this.route.params.pipe(pluck('partyID'), shareReplay(1));
|
||||
isLoading$ = this.fetchClaimService.isLoading$;
|
||||
createdAt$ = this.fetchClaimService.claim$.pipe(pluck('created_at'));
|
||||
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 { 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 { EditUnsavedModificationModule } from './changeset/unsaved-changeset/edit-unsaved-modification/edit-unsaved-modification.module';
|
||||
@ -32,11 +32,12 @@ import { PartyClaimComponent } from './party-claim.component';
|
||||
MatInputModule,
|
||||
EditUnsavedModificationModule,
|
||||
ClaimChangesetModule,
|
||||
SharedPipesModule,
|
||||
MatProgressSpinnerModule,
|
||||
PartyClaimActionsModule,
|
||||
UnsavedClaimChangesetModule,
|
||||
PartyModificationCreatorModule,
|
||||
ThriftPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [PartyClaimComponent, PartyClaimTitleComponent],
|
||||
})
|
||||
|
@ -13,7 +13,7 @@ import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
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 { ClaimsTableComponent } from './claims-table/claims-table.component';
|
||||
@ -35,9 +35,10 @@ import { PartyClaimsComponent } from './party-claims.component';
|
||||
MatSelectModule,
|
||||
ReactiveFormsModule,
|
||||
MatProgressSpinnerModule,
|
||||
SharedPipesModule,
|
||||
ClaimSearchFormModule,
|
||||
EmptySearchResultModule,
|
||||
ThriftPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [PartyClaimsComponent, ClaimsTableComponent],
|
||||
})
|
||||
|
@ -16,12 +16,11 @@ import {
|
||||
PaymentsMainSearchFiltersModule,
|
||||
PaymentsOtherSearchFiltersModule,
|
||||
PaymentsSearcherModule,
|
||||
PaymentsTableModule,
|
||||
StatusModule,
|
||||
} from '@cc/app/shared/components';
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
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 { PartyPaymentsComponent } from './party-payments.component';
|
||||
|
||||
@ -29,7 +28,6 @@ import { PartyPaymentsComponent } from './party-payments.component';
|
||||
imports: [
|
||||
FlexModule,
|
||||
MatCardModule,
|
||||
SharedPipesModule,
|
||||
MatProgressBarModule,
|
||||
CommonModule,
|
||||
MatButtonModule,
|
||||
|
@ -4,7 +4,7 @@ import pickBy from 'lodash-es/pickBy';
|
||||
|
||||
import { SearchFiltersParams } from '@cc/app/shared/components';
|
||||
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';
|
||||
|
||||
|
@ -10,7 +10,6 @@ import {
|
||||
OperationRole,
|
||||
PartyRole,
|
||||
} from '@cc/app/shared/services';
|
||||
import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
|
||||
@Component({
|
||||
templateUrl: 'party.component.html',
|
||||
@ -18,7 +17,7 @@ import { SHARE_REPLAY_CONF } from '@cc/utils/index';
|
||||
})
|
||||
export class PartyComponent {
|
||||
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(
|
||||
filter((e) => e instanceof NavigationEnd),
|
||||
startWith(undefined),
|
||||
|
@ -4,20 +4,11 @@ import { FlexModule } from '@angular/flex-layout';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatTabsModule } from '@angular/material/tabs';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { PartyRouting } from './party-routing.module';
|
||||
import { PartyComponent } from './party.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
PartyRouting,
|
||||
CommonModule,
|
||||
MatTabsModule,
|
||||
SharedPipesModule,
|
||||
FlexModule,
|
||||
MatButtonModule,
|
||||
],
|
||||
imports: [PartyRouting, CommonModule, MatTabsModule, FlexModule, MatButtonModule],
|
||||
declarations: [PartyComponent],
|
||||
})
|
||||
export class PartyModule {}
|
||||
|
@ -6,12 +6,11 @@ import { MatCardModule } from '@angular/material/card';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
|
||||
import { StatusModule } from '@cc/app/shared/components';
|
||||
import { ChargebacksTableModule } from '@cc/app/shared/components/chargebacks-table';
|
||||
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 { HeadlineModule } from '@cc/components/headline';
|
||||
import { StatusModule } from '@cc/components/status';
|
||||
|
||||
import { PaymentDetailsRoutingModule } from './payment-details-routing.module';
|
||||
import { PaymentDetailsComponent } from './payment-details.component';
|
||||
@ -26,7 +25,6 @@ import { PaymentToolModule } from './payment-main-info/payment-tool';
|
||||
PaymentDetailsRoutingModule,
|
||||
MatCardModule,
|
||||
DetailsItemModule,
|
||||
SharedPipesModule,
|
||||
StatusModule,
|
||||
PaymentToolModule,
|
||||
MatProgressSpinnerModule,
|
||||
|
@ -3,10 +3,9 @@ import { NgModule } from '@angular/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
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 { StatusModule } from '@cc/components/status';
|
||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { PaymentMainInfoComponent } from './payment-main-info.component';
|
||||
import { PaymentToolModule } from './payment-tool';
|
||||
@ -19,8 +18,8 @@ import { PaymentToolModule } from './payment-tool';
|
||||
DetailsItemModule,
|
||||
StatusModule,
|
||||
PaymentToolModule,
|
||||
ThriftPipesModule,
|
||||
CommonPipesModule,
|
||||
SharedPipesModule,
|
||||
],
|
||||
declarations: [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 { 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 {
|
||||
manual = 'manual',
|
||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { AddPartyPaymentRoutingRuleDialogComponent } from './add-party-payment-routing-rule-dialog.component';
|
||||
|
||||
@NgModule({
|
||||
@ -29,7 +27,6 @@ import { AddPartyPaymentRoutingRuleDialogComponent } from './add-party-payment-r
|
||||
MatIconModule,
|
||||
MatSelectModule,
|
||||
MatRadioModule,
|
||||
SharedPipesModule,
|
||||
MatAutocompleteModule,
|
||||
],
|
||||
declarations: [AddPartyPaymentRoutingRuleDialogComponent],
|
||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { InitializePaymentRoutingRulesDialogComponent } from './initialize-payment-routing-rules-dialog.component';
|
||||
|
||||
@NgModule({
|
||||
@ -29,7 +27,6 @@ import { InitializePaymentRoutingRulesDialogComponent } from './initialize-payme
|
||||
MatIconModule,
|
||||
MatSelectModule,
|
||||
MatRadioModule,
|
||||
SharedPipesModule,
|
||||
MatAutocompleteModule,
|
||||
],
|
||||
declarations: [InitializePaymentRoutingRulesDialogComponent],
|
||||
|
@ -17,8 +17,6 @@ import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { DamselModule } from '../../../thrift-services';
|
||||
import { PaymentRoutingRulesetHeaderModule } from '../payment-routing-ruleset-header';
|
||||
import { AddPartyPaymentRoutingRuleDialogModule } from './add-party-payment-routing-rule-dialog';
|
||||
@ -47,7 +45,6 @@ import { PaymentRoutingRulesComponent } from './party-payment-routing-ruleset.co
|
||||
MatSelectModule,
|
||||
MatRadioModule,
|
||||
MatExpansionModule,
|
||||
SharedPipesModule,
|
||||
PaymentRoutingRulesetHeaderModule,
|
||||
AddPartyPaymentRoutingRuleDialogModule,
|
||||
InitializePaymentRoutingRulesDialogModule,
|
||||
|
@ -12,8 +12,6 @@ import { MatInputModule } from '@angular/material/input';
|
||||
import { MatRadioModule } from '@angular/material/radio';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
|
||||
import { AddShopPaymentRoutingRuleDialogComponent } from './add-shop-payment-routing-rule-dialog.component';
|
||||
import { ExpanderComponent } from './expander';
|
||||
import { PredicateComponent } from './predicate';
|
||||
@ -31,7 +29,6 @@ import { PredicateComponent } from './predicate';
|
||||
MatIconModule,
|
||||
MatSelectModule,
|
||||
MatRadioModule,
|
||||
SharedPipesModule,
|
||||
MatAutocompleteModule,
|
||||
],
|
||||
declarations: [AddShopPaymentRoutingRuleDialogComponent, PredicateComponent, ExpanderComponent],
|
||||
|
@ -18,7 +18,6 @@ import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { SharedPipesModule } from '@cc/app/shared/pipes';
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
import { DamselModule } from '../../../thrift-services';
|
||||
@ -48,7 +47,6 @@ import { ShopPaymentRoutingRulesetComponent } from './shop-payment-routing-rules
|
||||
MatSelectModule,
|
||||
MatRadioModule,
|
||||
MatExpansionModule,
|
||||
SharedPipesModule,
|
||||
PaymentRoutingRulesetHeaderModule,
|
||||
MatAutocompleteModule,
|
||||
AddShopPaymentRoutingRuleDialogModule,
|
||||
|
@ -16,7 +16,7 @@ import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
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 { ClaimManagementService } from '../../thrift-services/damsel/claim-management.service';
|
||||
@ -43,10 +43,11 @@ import { SearchTableComponent } from './search-table/search-table.component';
|
||||
MatTableModule,
|
||||
ReactiveFormsModule,
|
||||
FlexLayoutModule,
|
||||
SharedPipesModule,
|
||||
MatExpansionModule,
|
||||
ClaimSearchFormModule,
|
||||
EmptySearchResultModule,
|
||||
ApiModelPipesModule,
|
||||
ThriftPipesModule,
|
||||
],
|
||||
declarations: [SearchClaimsComponent, SearchTableComponent, ClaimMailPipePipe],
|
||||
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 { 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 { FetchChargebacksService } from './fetch-chargebacks.service';
|
||||
|
||||
@ -27,9 +30,10 @@ import { FetchChargebacksService } from './fetch-chargebacks.service';
|
||||
MatMenuModule,
|
||||
MatProgressSpinnerModule,
|
||||
EmptySearchResultModule,
|
||||
CommonPipesModule,
|
||||
SharedPipesModule,
|
||||
MatSnackBarModule,
|
||||
ThriftPipesModule,
|
||||
CommonPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [ChargebacksTableComponent],
|
||||
exports: [ChargebacksTableComponent],
|
||||
|
@ -5,7 +5,7 @@ import moment from 'moment';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { 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 { MatSelectModule } from '@angular/material/select';
|
||||
|
||||
import { SharedPipesModule } from '../../pipes';
|
||||
import { ApiModelPipesModule } from '../../pipes';
|
||||
import { ClaimSearchFormComponent } from './claim-search-form.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FlexLayoutModule,
|
||||
SharedPipesModule,
|
||||
MatInputModule,
|
||||
MatSelectModule,
|
||||
ReactiveFormsModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [ClaimSearchFormComponent],
|
||||
exports: [ClaimSearchFormComponent],
|
||||
|
@ -6,3 +6,4 @@ export * from './payments-search-filters';
|
||||
export * from './payments-table';
|
||||
export * from './questionary-document';
|
||||
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 { SharedPipesModule } from '../../../pipes';
|
||||
import { FillInUnitIdComponent } from './fill-in-unit-id/fill-in-unit-id.component';
|
||||
import { PartyItemNamePipe } from './party-item-name.pipe';
|
||||
import { PartyModificationTargetComponent } from './party-modification-target.component';
|
||||
@ -32,7 +31,6 @@ import { TargetTableComponent } from './target-table/target-table.component';
|
||||
MatProgressSpinnerModule,
|
||||
MatSnackBarModule,
|
||||
MatCheckboxModule,
|
||||
SharedPipesModule,
|
||||
MatTableModule,
|
||||
MatTableModule,
|
||||
MatPaginatorModule,
|
||||
|
@ -12,7 +12,6 @@ import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { PrettyJsonModule } from '@cc/components/pretty-json';
|
||||
|
||||
import { SharedPipesModule } from '../../../pipes';
|
||||
import { ContractorSelectorComponent } from './contractor-selector.component';
|
||||
import { ContractorsTableComponent } from './contractors-table/contractors-table.component';
|
||||
import { SelectorTypePipe } from './selector-type.pipe';
|
||||
@ -27,7 +26,6 @@ import { SelectorTypePipe } from './selector-type.pipe';
|
||||
MatInputModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatCheckboxModule,
|
||||
SharedPipesModule,
|
||||
MatTableModule,
|
||||
MatPaginatorModule,
|
||||
PrettyJsonModule,
|
||||
|
@ -4,7 +4,7 @@ import * as moment from 'moment';
|
||||
import { Observable } from 'rxjs';
|
||||
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 { 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 { EmptySearchResultModule } from '@cc/components/empty-search-result';
|
||||
import { StatusModule } from '@cc/components/status';
|
||||
|
||||
import { SharedPipesModule } from '../../pipes';
|
||||
import {
|
||||
PaymentsMainSearchFiltersModule,
|
||||
PaymentsOtherSearchFiltersModule,
|
||||
} from '../payments-search-filters';
|
||||
import { PaymentsTableModule } from '../payments-table/payments-table.module';
|
||||
import { StatusModule } from '../status';
|
||||
import { PaymentsSearcherComponent } from './payments-searcher.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
FlexModule,
|
||||
MatCardModule,
|
||||
SharedPipesModule,
|
||||
MatProgressBarModule,
|
||||
CommonModule,
|
||||
MatButtonModule,
|
||||
|
@ -6,10 +6,8 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
|
||||
import { StatusModule } from '@cc/components/status';
|
||||
import { CommonPipesModule } from '@cc/pipes/common-pipes.module';
|
||||
|
||||
import { SharedPipesModule } from '../../pipes';
|
||||
import { ApiModelPipesModule, CommonPipesModule } from '../../pipes';
|
||||
import { StatusModule } from '../status';
|
||||
import { PaymentActionsPipe } from './payment-actions.pipe';
|
||||
import { PaymentsTableComponent } from './payments-table.component';
|
||||
|
||||
@ -17,13 +15,13 @@ import { PaymentsTableComponent } from './payments-table.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatTableModule,
|
||||
SharedPipesModule,
|
||||
FlexModule,
|
||||
StatusModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
MatMenuModule,
|
||||
CommonPipesModule,
|
||||
ApiModelPipesModule,
|
||||
],
|
||||
declarations: [PaymentsTableComponent, PaymentActionsPipe],
|
||||
exports: [PaymentsTableComponent],
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import startCase from 'lodash-es/startCase';
|
||||
|
||||
import { getUnionKey } from '@cc/utils/index';
|
||||
import { getUnionKey } from '@cc/utils/get-union-key';
|
||||
|
||||
@Pipe({
|
||||
name: 'toPaymentStatus',
|
@ -1,21 +1,14 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { ClaimSourcePipe } from './claim-source.pipe';
|
||||
import { ClaimStatusThriftPipe } from './claim-status-thrift.pipe';
|
||||
import { ClaimStatusPipe } from './claim-status.pipe';
|
||||
import { PartyModificationNamePipe } from './party-modification-name.pipe';
|
||||
import { ShopNamePipe } from './shop-name.pipe';
|
||||
|
||||
const declarations = [
|
||||
ClaimStatusThriftPipe,
|
||||
ClaimStatusPipe,
|
||||
ClaimSourcePipe,
|
||||
ShopNamePipe,
|
||||
PartyModificationNamePipe,
|
||||
];
|
||||
const pipes = [ClaimSourcePipe, ClaimStatusPipe, PartyModificationNamePipe, ShopNamePipe];
|
||||
|
||||
@NgModule({
|
||||
declarations,
|
||||
exports: declarations,
|
||||
declarations: pipes,
|
||||
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,
|
||||
PartyModification,
|
||||
ShopModificationUnit,
|
||||
} from '../../thrift-services/damsel/gen-model/claim_management';
|
||||
} from '../../../thrift-services/damsel/gen-model/claim_management';
|
||||
|
||||
function getContractorModificationName(mod: ContractorModificationUnit): string {
|
||||
switch (getUnionKey(mod.modification)) {
|
@ -2,7 +2,7 @@ import { ChangeDetectorRef, OnDestroy, Pipe, PipeTransform } from '@angular/core
|
||||
import { BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
||||
import { distinctUntilChanged, map, pluck, switchMap, takeUntil } from 'rxjs/operators';
|
||||
|
||||
import { PartyService } from '../../party/party.service';
|
||||
import { PartyService } from '../../../party/party.service';
|
||||
|
||||
@Pipe({
|
||||
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