mirror of
https://github.com/valitydev/dashboard.git
synced 2024-11-06 02:25:23 +00:00
OPS-241: Replace legacy material (#127)
This commit is contained in:
parent
193f4bf436
commit
6eff441919
@ -1,15 +0,0 @@
|
|||||||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
|
||||||
# For additional information regarding the format and rule options, please see:
|
|
||||||
# https://github.com/browserslist/browserslist#queries
|
|
||||||
|
|
||||||
# For the full list of supported browsers by the Angular framework, please see:
|
|
||||||
# https://angular.io/guide/browser-support
|
|
||||||
|
|
||||||
# You can see what browsers were selected by your queries by running:
|
|
||||||
# npx browserslist
|
|
||||||
|
|
||||||
> 0.5%
|
|
||||||
last 2 versions
|
|
||||||
Firefox ESR
|
|
||||||
not dead
|
|
||||||
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
|
|
@ -34,12 +34,13 @@
|
|||||||
"moment",
|
"moment",
|
||||||
"flat",
|
"flat",
|
||||||
"base64-js",
|
"base64-js",
|
||||||
"js-sha256"
|
"js-sha256",
|
||||||
|
"utility-types"
|
||||||
],
|
],
|
||||||
"outputPath": "dist",
|
"outputPath": "dist",
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "src/main.ts",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": ["zone.js"],
|
||||||
"tsConfig": "tsconfig.app.json",
|
"tsConfig": "tsconfig.app.json",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
"assets": [
|
"assets": [
|
||||||
@ -136,7 +137,7 @@
|
|||||||
"builder": "@angular-builders/custom-webpack:karma",
|
"builder": "@angular-builders/custom-webpack:karma",
|
||||||
"options": {
|
"options": {
|
||||||
"main": "src/test.ts",
|
"main": "src/test.ts",
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": ["zone.js"],
|
||||||
"tsConfig": "tsconfig.spec.json",
|
"tsConfig": "tsconfig.spec.json",
|
||||||
"karmaConfig": "karma.conf.js",
|
"karmaConfig": "karma.conf.js",
|
||||||
"inlineStyleLanguage": "scss",
|
"inlineStyleLanguage": "scss",
|
||||||
|
45
package-lock.json
generated
45
package-lock.json
generated
@ -31,7 +31,7 @@
|
|||||||
"@sentry/angular": "7.54.0",
|
"@sentry/angular": "7.54.0",
|
||||||
"@sentry/integrations": "7.54.0",
|
"@sentry/integrations": "7.54.0",
|
||||||
"@sentry/tracing": "7.54.0",
|
"@sentry/tracing": "7.54.0",
|
||||||
"@vality/ng-core": "0.7.1-2a1b72f.0",
|
"@vality/ng-core": "15.0.0",
|
||||||
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
||||||
"@vality/swag-api-keys": "1.0.1-55db9ab.0",
|
"@vality/swag-api-keys": "1.0.1-55db9ab.0",
|
||||||
"@vality/swag-claim-management": "0.1.1-29260c7.0",
|
"@vality/swag-claim-management": "0.1.1-29260c7.0",
|
||||||
@ -55,7 +55,7 @@
|
|||||||
"lodash-es": "4.17.21",
|
"lodash-es": "4.17.21",
|
||||||
"moment": "2.29.4",
|
"moment": "2.29.4",
|
||||||
"ng-apexcharts": "1.7.1",
|
"ng-apexcharts": "1.7.1",
|
||||||
"ngx-mat-select-search": "6.0.0",
|
"ngx-mat-select-search": "7.0.2",
|
||||||
"rxjs": "7.5.6",
|
"rxjs": "7.5.6",
|
||||||
"short-uuid": "4.2.0",
|
"short-uuid": "4.2.0",
|
||||||
"tslib": "2.4.0",
|
"tslib": "2.4.0",
|
||||||
@ -82,7 +82,6 @@
|
|||||||
"@types/jwt-decode": "^3.1.0",
|
"@types/jwt-decode": "^3.1.0",
|
||||||
"@types/lodash-es": "4.17.6",
|
"@types/lodash-es": "4.17.6",
|
||||||
"@types/moment": "2.13.0",
|
"@types/moment": "2.13.0",
|
||||||
"@types/node": "18.6.1",
|
|
||||||
"@types/prettier": "2.4.3",
|
"@types/prettier": "2.4.3",
|
||||||
"@typescript-eslint/eslint-plugin": "5.57.0",
|
"@typescript-eslint/eslint-plugin": "5.57.0",
|
||||||
"@typescript-eslint/parser": "5.57.0",
|
"@typescript-eslint/parser": "5.57.0",
|
||||||
@ -106,7 +105,7 @@
|
|||||||
"karma-jasmine": "~4.0.0",
|
"karma-jasmine": "~4.0.0",
|
||||||
"karma-jasmine-html-reporter": "^1.5.0",
|
"karma-jasmine-html-reporter": "^1.5.0",
|
||||||
"karma-spec-reporter": "0.0.32",
|
"karma-spec-reporter": "0.0.32",
|
||||||
"prettier": "2.5.1",
|
"prettier": "~2.8.8",
|
||||||
"ts-mockito": "^2.6.1",
|
"ts-mockito": "^2.6.1",
|
||||||
"ts-node": "10.9.1",
|
"ts-node": "10.9.1",
|
||||||
"typescript": "4.9.5"
|
"typescript": "4.9.5"
|
||||||
@ -6008,9 +6007,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vality/ng-core": {
|
"node_modules/@vality/ng-core": {
|
||||||
"version": "0.7.1-2a1b72f.0",
|
"version": "15.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-0.7.1-2a1b72f.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-15.0.0.tgz",
|
||||||
"integrity": "sha512-LhMLijiVuJ0cjZ7UPpCAc5s2svjFJI6+wGq0/zfLs5vBfM43D8BNiGfnD2dARtG6CEaHCuh7wvsTyzNMv+p9/w==",
|
"integrity": "sha512-7ux9yH80Bu7QnONFzmY8BSlxCZojvervVuecZdLAhvCo0/W6/NysOjzt3skSsi4S9I0vEtfaJ2kYpFqfqLjuJA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ng-matero/extensions": "^15.0.0",
|
"@ng-matero/extensions": "^15.0.0",
|
||||||
"@s-libs/js-core": "^15.2.0",
|
"@s-libs/js-core": "^15.2.0",
|
||||||
@ -13332,14 +13331,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ngx-mat-select-search": {
|
"node_modules/ngx-mat-select-search": {
|
||||||
"version": "6.0.0",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-7.0.2.tgz",
|
||||||
"integrity": "sha512-arrWZg2N/Pv3hCE2EV0qj3rqEUKImntmhW8qvo/aYxeN9iWPsseOpokcfMeC9I/SrLrqQFdfyPgHOgB9DqF2Hw==",
|
"integrity": "sha512-69vy/mWh7pnnR6rw1BWxO8E4HyylUvvBlmhrtWqXIYqfIx3mfvWuNj0tE1v+ERPg8a4vViFpfilRUUvvbrv1cA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/material": "^15.0.0"
|
"@angular/material": "^15.0.0 || ^16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nice-napi": {
|
"node_modules/nice-napi": {
|
||||||
@ -14476,14 +14475,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "2.5.1",
|
"version": "2.8.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
||||||
|
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin-prettier.js"
|
"prettier": "bin-prettier.js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.13.0"
|
"node": ">=10.13.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/pretty-bytes": {
|
"node_modules/pretty-bytes": {
|
||||||
@ -22381,9 +22384,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vality/ng-core": {
|
"@vality/ng-core": {
|
||||||
"version": "0.7.1-2a1b72f.0",
|
"version": "15.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-0.7.1-2a1b72f.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-15.0.0.tgz",
|
||||||
"integrity": "sha512-LhMLijiVuJ0cjZ7UPpCAc5s2svjFJI6+wGq0/zfLs5vBfM43D8BNiGfnD2dARtG6CEaHCuh7wvsTyzNMv+p9/w==",
|
"integrity": "sha512-7ux9yH80Bu7QnONFzmY8BSlxCZojvervVuecZdLAhvCo0/W6/NysOjzt3skSsi4S9I0vEtfaJ2kYpFqfqLjuJA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@ng-matero/extensions": "^15.0.0",
|
"@ng-matero/extensions": "^15.0.0",
|
||||||
"@s-libs/js-core": "^15.2.0",
|
"@s-libs/js-core": "^15.2.0",
|
||||||
@ -27576,9 +27579,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ngx-mat-select-search": {
|
"ngx-mat-select-search": {
|
||||||
"version": "6.0.0",
|
"version": "7.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-6.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-7.0.2.tgz",
|
||||||
"integrity": "sha512-arrWZg2N/Pv3hCE2EV0qj3rqEUKImntmhW8qvo/aYxeN9iWPsseOpokcfMeC9I/SrLrqQFdfyPgHOgB9DqF2Hw==",
|
"integrity": "sha512-69vy/mWh7pnnR6rw1BWxO8E4HyylUvvBlmhrtWqXIYqfIx3mfvWuNj0tE1v+ERPg8a4vViFpfilRUUvvbrv1cA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
}
|
}
|
||||||
@ -28368,7 +28371,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"version": "2.5.1",
|
"version": "2.8.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
||||||
|
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"pretty-bytes": {
|
"pretty-bytes": {
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"@sentry/angular": "7.54.0",
|
"@sentry/angular": "7.54.0",
|
||||||
"@sentry/integrations": "7.54.0",
|
"@sentry/integrations": "7.54.0",
|
||||||
"@sentry/tracing": "7.54.0",
|
"@sentry/tracing": "7.54.0",
|
||||||
"@vality/ng-core": "0.7.1-2a1b72f.0",
|
"@vality/ng-core": "15.0.0",
|
||||||
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
"@vality/swag-anapi-v2": "2.0.1-38f360b.0",
|
||||||
"@vality/swag-api-keys": "1.0.1-55db9ab.0",
|
"@vality/swag-api-keys": "1.0.1-55db9ab.0",
|
||||||
"@vality/swag-claim-management": "0.1.1-29260c7.0",
|
"@vality/swag-claim-management": "0.1.1-29260c7.0",
|
||||||
@ -72,7 +72,7 @@
|
|||||||
"lodash-es": "4.17.21",
|
"lodash-es": "4.17.21",
|
||||||
"moment": "2.29.4",
|
"moment": "2.29.4",
|
||||||
"ng-apexcharts": "1.7.1",
|
"ng-apexcharts": "1.7.1",
|
||||||
"ngx-mat-select-search": "6.0.0",
|
"ngx-mat-select-search": "7.0.2",
|
||||||
"rxjs": "7.5.6",
|
"rxjs": "7.5.6",
|
||||||
"short-uuid": "4.2.0",
|
"short-uuid": "4.2.0",
|
||||||
"tslib": "2.4.0",
|
"tslib": "2.4.0",
|
||||||
@ -99,7 +99,6 @@
|
|||||||
"@types/jwt-decode": "^3.1.0",
|
"@types/jwt-decode": "^3.1.0",
|
||||||
"@types/lodash-es": "4.17.6",
|
"@types/lodash-es": "4.17.6",
|
||||||
"@types/moment": "2.13.0",
|
"@types/moment": "2.13.0",
|
||||||
"@types/node": "18.6.1",
|
|
||||||
"@types/prettier": "2.4.3",
|
"@types/prettier": "2.4.3",
|
||||||
"@typescript-eslint/eslint-plugin": "5.57.0",
|
"@typescript-eslint/eslint-plugin": "5.57.0",
|
||||||
"@typescript-eslint/parser": "5.57.0",
|
"@typescript-eslint/parser": "5.57.0",
|
||||||
@ -123,7 +122,7 @@
|
|||||||
"karma-jasmine": "~4.0.0",
|
"karma-jasmine": "~4.0.0",
|
||||||
"karma-jasmine-html-reporter": "^1.5.0",
|
"karma-jasmine-html-reporter": "^1.5.0",
|
||||||
"karma-spec-reporter": "0.0.32",
|
"karma-spec-reporter": "0.0.32",
|
||||||
"prettier": "2.5.1",
|
"prettier": "~2.8.8",
|
||||||
"ts-mockito": "^2.6.1",
|
"ts-mockito": "^2.6.1",
|
||||||
"ts-node": "10.9.1",
|
"ts-node": "10.9.1",
|
||||||
"typescript": "4.9.5"
|
"typescript": "4.9.5"
|
||||||
|
@ -3,8 +3,8 @@ import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|||||||
import { APP_INITIALIZER, ErrorHandler, LOCALE_ID, NgModule } from '@angular/core';
|
import { APP_INITIALIZER, ErrorHandler, LOCALE_ID, NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_RIPPLE_GLOBAL_OPTIONS } from '@angular/material/core';
|
import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_RIPPLE_GLOBAL_OPTIONS } from '@angular/material/core';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MAT_LEGACY_FORM_FIELD_DEFAULT_OPTIONS as MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/legacy-form-field';
|
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
||||||
import {
|
import {
|
||||||
MAT_MOMENT_DATE_ADAPTER_OPTIONS,
|
MAT_MOMENT_DATE_ADAPTER_OPTIONS,
|
||||||
MAT_MOMENT_DATE_FORMATS,
|
MAT_MOMENT_DATE_FORMATS,
|
||||||
|
@ -6,11 +6,11 @@
|
|||||||
<mat-option *ngFor="let option of options$ | async" [value]="option.label" class="option">
|
<mat-option *ngFor="let option of options$ | async" [value]="option.label" class="option">
|
||||||
<div
|
<div
|
||||||
class="dsh-dadata-autocomplete-option-header"
|
class="dsh-dadata-autocomplete-option-header"
|
||||||
[innerHTML]="option.label | highlight: control.value"
|
[innerHTML]="option.label | highlight : control.value"
|
||||||
></div>
|
></div>
|
||||||
<div
|
<div
|
||||||
class="dsh-dadata-autocomplete-option-description"
|
class="dsh-dadata-autocomplete-option-description"
|
||||||
[innerHTML]="option.description | highlight: control.value"
|
[innerHTML]="option.description | highlight : control.value"
|
||||||
></div>
|
></div>
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { MatLegacyAutocompleteSelectedEvent as MatAutocompleteSelectedEvent } from '@angular/material/legacy-autocomplete';
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { WrappedFormControlSuperclass } from '@s-libs/ng-core';
|
import { WrappedFormControlSuperclass } from '@s-libs/ng-core';
|
||||||
import {
|
import {
|
||||||
|
@ -2,9 +2,9 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyAutocompleteModule as MatAutocompleteModule } from '@angular/material/legacy-autocomplete';
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||||
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
|
||||||
import { FormControlsModule } from '@dsh/components/form-controls';
|
import { FormControlsModule } from '@dsh/components/form-controls';
|
||||||
import { BootstrapIconModule } from '@dsh/components/indicators';
|
import { BootstrapIconModule } from '@dsh/components/indicators';
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
export const TYPE = ['address', 'party', 'bank', 'fio', 'fmsUnit', 'okved'] as const;
|
export const TYPE = ['address', 'party', 'bank', 'fio', 'fmsUnit', 'okved'] as const;
|
||||||
export type Type = typeof TYPE[number];
|
export type Type = (typeof TYPE)[number];
|
||||||
|
@ -4,8 +4,8 @@ import { NgModule } from '@angular/core';
|
|||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyMenuModule as MatMenuModule } from '@angular/material/legacy-menu';
|
import { MatMenuModule } from '@angular/material/menu';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
||||||
import { Organization } from '@vality/swag-organizations';
|
import { Organization } from '@vality/swag-organizations';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Output, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Output, Inject } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { Organization } from '@vality/swag-organizations';
|
import { Organization } from '@vality/swag-organizations';
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
.dsh-mobile-grid {
|
.dsh-mobile-grid {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
background-color: transparent !important;
|
||||||
|
|
||||||
&-drawer {
|
&-drawer {
|
||||||
width: 75vw;
|
width: 75vw;
|
||||||
@ -28,7 +29,7 @@
|
|||||||
|
|
||||||
&-toggle-button {
|
&-toggle-button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&.mat-icon {
|
&.mat-mdc-icon {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="dsh-toolbar" fxLayout fxLayoutGap="24px" fxLayoutAlign="center center">
|
<div class="dsh-toolbar" fxLayout fxLayoutGap="24px" fxLayoutAlign="center center">
|
||||||
<dsh-brand fxFlex fxLayoutAlign="start"></dsh-brand>
|
<dsh-brand fxFlex fxLayoutAlign="start"></dsh-brand>
|
||||||
<div fxFlex fxLayoutAlign="center">
|
<div fxFlex fxLayoutAlign="center">
|
||||||
<nav class="dsh-top-tab-nav-bar" mat-tab-nav-bar>
|
<nav class="dsh-top-tab-nav-bar" mat-tab-nav-bar [tabPanel]="tabPanel">
|
||||||
<a
|
<a
|
||||||
*ngFor="let link of sectionLinks$ | async"
|
*ngFor="let link of sectionLinks$ | async"
|
||||||
mat-tab-link
|
mat-tab-link
|
||||||
@ -14,6 +14,7 @@
|
|||||||
{{ link.label }}
|
{{ link.label }}
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>
|
||||||
</div>
|
</div>
|
||||||
<dsh-actionbar fxFlex fxLayoutAlign="end"></dsh-actionbar>
|
<dsh-actionbar fxFlex fxLayoutAlign="end"></dsh-actionbar>
|
||||||
</div>
|
</div>
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
|
|
||||||
import { SectionsLinksModule } from '@dsh/app/shared/services/sections-links';
|
import { SectionsLinksModule } from '@dsh/app/shared/services/sections-links';
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
<dsh-claim-row [claim]="claim"></dsh-claim-row>
|
<dsh-claim-row [claim]="claim"></dsh-claim-row>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<dsh-show-more-panel *ngIf="hasMore" (showMore)="showMoreElements()" [isLoading]="isLoading"></dsh-show-more-panel>
|
<dsh-show-more-panel *ngIf="hasMore" (showMore)="showMoreElements()" [isLoading]="isLoading"></dsh-show-more-panel>
|
||||||
<div *ngIf="isEmptyList" class="mat-headline">
|
<dsh-empty-search-result *ngIf="isEmptyList"></dsh-empty-search-result>
|
||||||
<dsh-empty-search-result></dsh-empty-search-result>
|
|
||||||
</div>
|
|
||||||
<ng-container *ngIf="isLoading">
|
<ng-container *ngIf="isLoading">
|
||||||
<div fxLayout fxFlexAlign="center">
|
<div fxLayout fxFlexAlign="center">
|
||||||
<dsh-spinner></dsh-spinner>
|
<dsh-spinner></dsh-spinner>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
>
|
>
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
<dsh-row-label fxFlex.gt-sm="30" fxFlex fxLayoutAlign="end center">
|
<dsh-row-label fxFlex.gt-sm="30" fxFlex fxLayoutAlign="end center">
|
||||||
<span fxHide.lt-md>{{ item.updatedAt | date: 'dd MMMM yyyy, HH:mm' }}</span>
|
<span fxHide.lt-md>{{ item.updatedAt | date : 'dd MMMM yyyy, HH:mm' }}</span>
|
||||||
<span fxHide.gt-sm>{{ item.updatedAt | date: 'dd.MM.yyyy, HH:mm' }}</span>
|
<span fxHide.gt-sm>{{ item.updatedAt | date : 'dd.MM.yyyy, HH:mm' }}</span>
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*transloco="let t; scope: 'claim-section'; read: 'claimSection.claimStatusesFilter'"
|
*transloco="let t; scope: 'claim-section'; read: 'claimSection.claimStatusesFilter'"
|
||||||
[active]="isActive"
|
[active]="isActive"
|
||||||
[label]="t('label')"
|
[label]="t('label')"
|
||||||
[activeLabel]="t('label') | listLabel: (labels$ | async)"
|
[activeLabel]="t('label') | listLabel : (labels$ | async)"
|
||||||
[content]="content"
|
[content]="content"
|
||||||
(save)="save()"
|
(save)="save()"
|
||||||
(clear)="clear()"
|
(clear)="clear()"
|
||||||
|
@ -2,11 +2,11 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatOptionModule } from '@angular/material/core';
|
||||||
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { MatLegacyOptionModule as MatOptionModule } from '@angular/material/legacy-core';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { ClaimsService } from '@dsh/app/api/claim-management';
|
import { ClaimsService } from '@dsh/app/api/claim-management';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { FetchClaimsService } from './services/fetch-claims/fetch-claims.service';
|
import { FetchClaimsService } from './services/fetch-claims/fetch-claims.service';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { Claim } from '@vality/swag-claim-management';
|
import { Claim } from '@vality/swag-claim-management';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
|
@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
|
||||||
import { ApiShopsService } from '@dsh/app/api';
|
import { ApiShopsService } from '@dsh/app/api';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectorRef, Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';
|
import { ChangeDetectorRef, Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { MemberRole, ResourceScopeId, RoleId } from '@vality/swag-organizations';
|
import { MemberRole, ResourceScopeId, RoleId } from '@vality/swag-organizations';
|
||||||
import { coerceBoolean } from 'coerce-property';
|
import { coerceBoolean } from 'coerce-property';
|
||||||
|
@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { RoleId } from '@vality/swag-organizations';
|
import { RoleId } from '@vality/swag-organizations';
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import { Validators } from '@angular/forms';
|
import { Validators } from '@angular/forms';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { FormBuilder } from '@ngneat/reactive-forms';
|
import { FormBuilder } from '@ngneat/reactive-forms';
|
||||||
import { RoleId } from '@vality/swag-organizations';
|
import { RoleId } from '@vality/swag-organizations';
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { InviteeContact } from '@vality/swag-organizations';
|
import { InviteeContact } from '@vality/swag-organizations';
|
||||||
import { Shop } from '@vality/swag-payments';
|
import { Shop } from '@vality/swag-payments';
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import { Validators } from '@angular/forms';
|
import { Validators } from '@angular/forms';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { FormBuilder } from '@ngneat/reactive-forms';
|
import { FormBuilder } from '@ngneat/reactive-forms';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { InviteeContact, MemberRole } from '@vality/swag-organizations';
|
import { InviteeContact, MemberRole } from '@vality/swag-organizations';
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
|
|
||||||
<div gdColumns="1fr 1fr">
|
<div gdColumns="1fr 1fr">
|
||||||
<dsh-details-item [title]="t('createdAt')">
|
<dsh-details-item [title]="t('createdAt')">
|
||||||
{{ invitation.createdAt | date: 'dd MMMM yyyy, HH:mm' }}
|
{{ invitation.createdAt | date : 'dd MMMM yyyy, HH:mm' }}
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
<dsh-details-item [title]="t('expiresAt')">
|
<dsh-details-item [title]="t('expiresAt')">
|
||||||
{{ invitation.expiresAt | date: 'dd MMMM yyyy, HH:mm' }}
|
{{ invitation.expiresAt | date : 'dd MMMM yyyy, HH:mm' }}
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
|
||||||
import { OrgsService } from '@dsh/app/api/organizations';
|
import { OrgsService } from '@dsh/app/api/organizations';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { InlineObject1, Invitation, Organization } from '@vality/swag-organizations';
|
import { InlineObject1, Invitation, Organization } from '@vality/swag-organizations';
|
||||||
import { filter, switchMap } from 'rxjs/operators';
|
import { filter, switchMap } from 'rxjs/operators';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { InvitationListResult } from '@vality/swag-organizations';
|
import { InvitationListResult } from '@vality/swag-organizations';
|
||||||
import { cold } from 'jasmine-marbles';
|
import { cold } from 'jasmine-marbles';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { filter, first, shareReplay, switchMap } from 'rxjs/operators';
|
import { filter, first, shareReplay, switchMap } from 'rxjs/operators';
|
||||||
|
@ -2,11 +2,11 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule, GridModule } from '@angular/flex-layout';
|
import { FlexModule, GridModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatDatepickerModule } from '@angular/material/datepicker';
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
|
||||||
import { MatMomentDateModule } from '@angular/material-moment-adapter';
|
import { MatMomentDateModule } from '@angular/material-moment-adapter';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
|
|
||||||
import { OrgsService } from '@dsh/app/api/organizations';
|
import { OrgsService } from '@dsh/app/api/organizations';
|
||||||
import { ErrorService } from '@dsh/app/shared';
|
import { ErrorService } from '@dsh/app/shared';
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { UntilDestroy } from '@ngneat/until-destroy';
|
import { UntilDestroy } from '@ngneat/until-destroy';
|
||||||
import { MemberRole } from '@vality/swag-organizations';
|
import { MemberRole } from '@vality/swag-organizations';
|
||||||
import { BehaviorSubject, defer, forkJoin, of, Subscription } from 'rxjs';
|
import { BehaviorSubject, defer, forkJoin, of, Subscription } from 'rxjs';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
|
|
||||||
import { OrgsService } from '@dsh/app/api/organizations';
|
import { OrgsService } from '@dsh/app/api/organizations';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, OnChanges, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, OnChanges, Output } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { Member, Organization } from '@vality/swag-organizations';
|
import { Member, Organization } from '@vality/swag-organizations';
|
||||||
import { filter, switchMap } from 'rxjs/operators';
|
import { filter, switchMap } from 'rxjs/operators';
|
||||||
|
@ -2,11 +2,11 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { OrganizationsModule as OrganizationsAPIModule } from '@dsh/app/api/organizations';
|
import { OrganizationsModule as OrganizationsAPIModule } from '@dsh/app/api/organizations';
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { OrganizationManagementModule } from '@dsh/app/shared/services/organization-management/organization-management.module';
|
import { OrganizationManagementModule } from '@dsh/app/shared/services/organization-management/organization-management.module';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { of, throwError } from 'rxjs';
|
import { of, throwError } from 'rxjs';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { FormBuilder } from '@ngneat/reactive-forms';
|
import { FormBuilder } from '@ngneat/reactive-forms';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { BehaviorSubject, switchMap } from 'rxjs';
|
import { BehaviorSubject, switchMap } from 'rxjs';
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
import { MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import {
|
|
||||||
MatLegacyDialog as MatDialog,
|
|
||||||
MatLegacyDialogModule as MatDialogModule,
|
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { Organization } from '@vality/swag-organizations';
|
import { Organization } from '@vality/swag-organizations';
|
||||||
import isNil from 'lodash-es/isNil';
|
import isNil from 'lodash-es/isNil';
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
<dsh-accordion-item-content-header (collapse)="accordionItem.collapse($event)">
|
<dsh-accordion-item-content-header (collapse)="accordionItem.collapse($event)">
|
||||||
<div fxLayout fxLayoutAlign="space-between">
|
<div fxLayout fxLayoutAlign="space-between">
|
||||||
<div>{{ organization.id }}</div>
|
<div>{{ organization.id }}</div>
|
||||||
<div>{{ organization.createdAt | date: 'dd MMMM yyyy, HH:mm' }}</div>
|
<div>{{ organization.createdAt | date : 'dd MMMM yyyy, HH:mm' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</dsh-accordion-item-content-header>
|
</dsh-accordion-item-content-header>
|
||||||
<dsh-organization [organization]="organization" (changed)="changed.emit()"></dsh-organization>
|
<dsh-organization [organization]="organization" (changed)="changed.emit()"></dsh-organization>
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
import { MatInputModule } from '@angular/material/input';
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { FormBuilder, FormGroup } from '@ngneat/reactive-forms';
|
import { FormBuilder, FormGroup } from '@ngneat/reactive-forms';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { BehaviorSubject } from 'rxjs';
|
import { BehaviorSubject } from 'rxjs';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, DebugElement } from '@angular/core';
|
import { Component, DebugElement } from '@angular/core';
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { filter } from 'rxjs/operators';
|
import { filter } from 'rxjs/operators';
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { OrganizationsModule as OrganizationsAPIModule } from '@dsh/app/api/organizations';
|
import { OrganizationsModule as OrganizationsAPIModule } from '@dsh/app/api/organizations';
|
||||||
|
@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { BarChartModule, DonutChartModule } from '@dsh/components/charts';
|
import { BarChartModule, DonutChartModule } from '@dsh/components/charts';
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { SpinnerModule } from '@dsh/components/indicators';
|
import { SpinnerModule } from '@dsh/components/indicators';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<dsh-card class="bar-chart" *transloco="let c; scope: 'components'; read: 'components.shared'">
|
<dsh-card class="bar-chart" *transloco="let c; scope: 'components'; read: 'components.shared'">
|
||||||
<dsh-card-title fxLayoutAlign="space-between">
|
<dsh-card-title fxLayoutAlign="space-between">
|
||||||
<h1 class="mat-title">{{ title }}</h1>
|
<h1 class="mat-h2">{{ title }}</h1>
|
||||||
<dsh-spinner *ngIf="isLoading" size="30" [type]="spinnerType"></dsh-spinner>
|
<dsh-spinner *ngIf="isLoading" size="30" [type]="spinnerType"></dsh-spinner>
|
||||||
</dsh-card-title>
|
</dsh-card-title>
|
||||||
<dsh-card-content *transloco="let t; scope: 'payment-section'; read: 'paymentSection.analytics'">
|
<dsh-card-content *transloco="let t; scope: 'payment-section'; read: 'paymentSection.analytics'">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<dsh-card *transloco="let c; scope: 'components'; read: 'components.shared'">
|
<dsh-card *transloco="let c; scope: 'components'; read: 'components.shared'">
|
||||||
<dsh-card-title fxLayoutAlign="space-between">
|
<dsh-card-title fxLayoutAlign="space-between">
|
||||||
<h1 class="mat-title">{{ title }}</h1>
|
<h1 class="mat-h2">{{ title }}</h1>
|
||||||
<dsh-spinner *ngIf="isLoading" size="30" [type]="spinnerType"></dsh-spinner>
|
<dsh-spinner *ngIf="isLoading" size="30" [type]="spinnerType"></dsh-spinner>
|
||||||
</dsh-card-title>
|
</dsh-card-title>
|
||||||
<dsh-card-content *transloco="let t; scope: 'payment-section'; read: 'paymentSection.analytics'" fxFlexFill>
|
<dsh-card-content *transloco="let t; scope: 'payment-section'; read: 'paymentSection.analytics'" fxFlexFill>
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { SpinnerModule } from '@dsh/components/indicators';
|
import { SpinnerModule } from '@dsh/components/indicators';
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { SpinnerModule } from '@dsh/components/indicators';
|
import { SpinnerModule } from '@dsh/components/indicators';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { KNOWN_ERRORS } from './known-errors';
|
import { KNOWN_ERRORS } from './known-errors';
|
||||||
|
|
||||||
export interface ErrorDistribution {
|
export interface ErrorDistribution {
|
||||||
errorCode: typeof KNOWN_ERRORS[number] | 'other';
|
errorCode: (typeof KNOWN_ERRORS)[number] | 'other';
|
||||||
percents: number;
|
percents: number;
|
||||||
subErrors: ErrorDistribution[];
|
subErrors: ErrorDistribution[];
|
||||||
}
|
}
|
||||||
|
@ -5,8 +5,8 @@ import { ErrorDistribution } from './error-distribution';
|
|||||||
import { KNOWN_ERRORS } from './known-errors';
|
import { KNOWN_ERRORS } from './known-errors';
|
||||||
|
|
||||||
function getDistributionErrorCode(errorCode: string): ErrorDistribution['errorCode'] {
|
function getDistributionErrorCode(errorCode: string): ErrorDistribution['errorCode'] {
|
||||||
return KNOWN_ERRORS.includes(errorCode as typeof KNOWN_ERRORS[number])
|
return KNOWN_ERRORS.includes(errorCode as (typeof KNOWN_ERRORS)[number])
|
||||||
? (errorCode as typeof KNOWN_ERRORS[number])
|
? (errorCode as (typeof KNOWN_ERRORS)[number])
|
||||||
: 'other';
|
: 'other';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
[class.negative-percent-difference]="percents < 0"
|
[class.negative-percent-difference]="percents < 0"
|
||||||
[class.positive-percent-difference]="percents > 0"
|
[class.positive-percent-difference]="percents > 0"
|
||||||
>
|
>
|
||||||
{{ percents >= 0 ? '+' : '' }}{{ percents | percent: '1.0-2':'en' }}
|
{{ percents >= 0 ? '+' : '' }}{{ percents | percent : '1.0-2' : 'en' }}
|
||||||
</div>
|
</div>
|
||||||
<ng-template #noPercents>-</ng-template>
|
<ng-template #noPercents>-</ng-template>
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { SpinnerModule } from '@dsh/components/indicators';
|
import { SpinnerModule } from '@dsh/components/indicators';
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
fxLayoutAlign="space-between"
|
fxLayoutAlign="space-between"
|
||||||
fxLayoutGap="10px"
|
fxLayoutGap="10px"
|
||||||
>
|
>
|
||||||
<h2 *ngIf="!isLoading" class="mat-title stat-item-title">
|
<h2 *ngIf="!isLoading" class="mat-h2 stat-item-title">
|
||||||
<div *ngIf="statData?.current; else noData">
|
<div *ngIf="statData?.current; else noData">
|
||||||
<div *ngIf="hideCurrency; else showCurrency">
|
<div *ngIf="hideCurrency; else showCurrency">
|
||||||
{{ statData.current | number }}
|
{{ statData.current | number }}
|
||||||
</div>
|
</div>
|
||||||
<ng-template #showCurrency>
|
<ng-template #showCurrency>
|
||||||
{{ statData.current | amountCurrency: statData.currency:'short' }}
|
{{ statData.current | amountCurrency : statData.currency : 'short' }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #noData>
|
<ng-template #noData>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*ngFor="let balance of balances$ | async"
|
*ngFor="let balance of balances$ | async"
|
||||||
[ngClass]="(balancesCount$ | async) <= 3 ? 'dsh-balances-balance-lg' : 'dsh-balances-balance-md'"
|
[ngClass]="(balancesCount$ | async) <= 3 ? 'dsh-balances-balance-lg' : 'dsh-balances-balance-md'"
|
||||||
>
|
>
|
||||||
{{ balance.amount | amountCurrency: balance.currency:'short' }}
|
{{ balance.amount | amountCurrency : balance.currency : 'short' }}
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #elseBlock><div class="dsh-balances-balance-lg">--/--</div></ng-template>
|
<ng-template #elseBlock><div class="dsh-balances-balance-lg">--/--</div></ng-template>
|
||||||
|
@ -2,7 +2,7 @@ import { ClipboardModule } from '@angular/cdk/clipboard';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { ButtonModule } from '@dsh/components/buttons';
|
import { ButtonModule } from '@dsh/components/buttons';
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
{{ apiKey.name }}
|
{{ apiKey.name }}
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
<dsh-row-label fxFlex="25" fxHide.lt-md>{{
|
<dsh-row-label fxFlex="25" fxHide.lt-md>{{
|
||||||
apiKey.createdAt | date: 'dd MMMM yyyy, HH:mm'
|
apiKey.createdAt | date : 'dd MMMM yyyy, HH:mm'
|
||||||
}}</dsh-row-label>
|
}}</dsh-row-label>
|
||||||
<dsh-row-label fxFlex="25" fxHide.lt-md>{{ apiKey.status }}</dsh-row-label>
|
<dsh-row-label fxFlex="25" fxHide.lt-md>{{ apiKey.status }}</dsh-row-label>
|
||||||
</dsh-row>
|
</dsh-row>
|
||||||
@ -30,7 +30,7 @@
|
|||||||
<dsh-accordion-item-content-header (collapse)="accordionItem.collapse($event)">
|
<dsh-accordion-item-content-header (collapse)="accordionItem.collapse($event)">
|
||||||
<div fxLayout="row" fxLayoutAlign="space-between center">
|
<div fxLayout="row" fxLayoutAlign="space-between center">
|
||||||
<div>{{ t('details') }} #{{ apiKey.id }}</div>
|
<div>{{ t('details') }} #{{ apiKey.id }}</div>
|
||||||
<div>{{ apiKey.createdAt | date: 'dd MMMM yyyy, HH:mm' }}</div>
|
<div>{{ apiKey.createdAt | date : 'dd MMMM yyyy, HH:mm' }}</div>
|
||||||
</div>
|
</div>
|
||||||
</dsh-accordion-item-content-header>
|
</dsh-accordion-item-content-header>
|
||||||
<div fxLayout="column" fxLayoutGap="24px">
|
<div fxLayout="column" fxLayoutGap="24px">
|
||||||
@ -44,7 +44,7 @@
|
|||||||
<div class="dsh-body-1">{{ apiKey.status }}</div>
|
<div class="dsh-body-1">{{ apiKey.status }}</div>
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
<dsh-details-item [title]="t('createdAt')">
|
<dsh-details-item [title]="t('createdAt')">
|
||||||
<div class="dsh-body-1">{{ apiKey.createdAt | date: 'dd MMMM yyyy, HH:mm' }}</div>
|
<div class="dsh-body-1">{{ apiKey.createdAt | date : 'dd MMMM yyyy, HH:mm' }}</div>
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { Component, Injector } from '@angular/core';
|
import { Component, Injector } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule, NonNullableFormBuilder } from '@angular/forms';
|
import { ReactiveFormsModule, NonNullableFormBuilder } from '@angular/forms';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
|
import { TranslocoModule, TranslocoService } from '@ngneat/transloco';
|
||||||
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
||||||
import { DialogSuperclass } from '@vality/ng-core';
|
import { DialogSuperclass } from '@vality/ng-core';
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
fxLayout="column"
|
fxLayout="column"
|
||||||
fxLayoutGap="32px"
|
fxLayoutGap="32px"
|
||||||
>
|
>
|
||||||
<nav mat-tab-nav-bar>
|
<nav mat-tab-nav-bar [tabPanel]="tabPanel">
|
||||||
<a
|
<a
|
||||||
mat-tab-link
|
mat-tab-link
|
||||||
*ngFor="let link of links"
|
*ngFor="let link of links"
|
||||||
@ -15,8 +15,8 @@
|
|||||||
<span>{{ link.label$ | async }}</span>
|
<span>{{ link.label$ | async }}</span>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div>
|
<mat-tab-nav-panel #tabPanel>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</mat-tab-nav-panel>
|
||||||
</div>
|
</div>
|
||||||
<dsh-scroll-up></dsh-scroll-up>
|
<dsh-scroll-up></dsh-scroll-up>
|
||||||
|
@ -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 { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs';
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { LayoutModule } from '@dsh/components/layout';
|
import { LayoutModule } from '@dsh/components/layout';
|
||||||
|
@ -89,7 +89,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<div fxLayout fxLayoutGap="24px" fxLayoutAlign="space-between center">
|
<div fxLayout fxLayoutGap="24px" fxLayoutAlign="space-between center">
|
||||||
<div>{{ c('form.cart.summary') }}: {{ summary$ | async | currency: form.value.currency }}</div>
|
<div>{{ c('form.cart.summary') }}: {{ summary$ | async | currency : form.value.currency }}</div>
|
||||||
<button dsh-text-button color="accent" (click)="addProduct()">
|
<button dsh-text-button color="accent" (click)="addProduct()">
|
||||||
{{ c('form.cart.add') }}
|
{{ c('form.cart.add') }}
|
||||||
</button>
|
</button>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||||
import { UntypedFormArray } from '@angular/forms';
|
import { UntypedFormArray } from '@angular/forms';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { InvoiceLineTaxVAT, InvoiceTemplateAndToken, Shop } from '@vality/swag-payments';
|
import { InvoiceLineTaxVAT, InvoiceTemplateAndToken, Shop } from '@vality/swag-payments';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
@ -2,13 +2,13 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatDatepickerModule } from '@angular/material/datepicker';
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
|
||||||
import { MatMomentDateModule } from '@angular/material-moment-adapter';
|
import { MatMomentDateModule } from '@angular/material-moment-adapter';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import {
|
import {
|
||||||
InvoiceLineTaxMode,
|
InvoiceLineTaxMode,
|
||||||
InvoiceLineTaxVAT,
|
InvoiceLineTaxVAT,
|
||||||
|
@ -2,12 +2,12 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { ActionsModule } from '@dsh/app/shared/components/actions';
|
import { ActionsModule } from '@dsh/app/shared/components/actions';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { filter } from 'rxjs/operators';
|
import { filter } from 'rxjs/operators';
|
||||||
|
|
||||||
|
@ -2,12 +2,12 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { filter, switchMap, takeUntil } from 'rxjs/operators';
|
import { filter, switchMap, takeUntil } from 'rxjs/operators';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { combineLatest, Observable, of, Subject } from 'rxjs';
|
import { combineLatest, Observable, of, Subject } from 'rxjs';
|
||||||
import { catchError, filter, switchMap, takeUntil } from 'rxjs/operators';
|
import { catchError, filter, switchMap, takeUntil } from 'rxjs/operators';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { Webhook } from '@vality/swag-payments';
|
import { Webhook } from '@vality/swag-payments';
|
||||||
import sortBy from 'lodash-es/sortBy';
|
import sortBy from 'lodash-es/sortBy';
|
||||||
|
@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { WebhookApiKeyModule } from '@dsh/app/shared/components';
|
import { WebhookApiKeyModule } from '@dsh/app/shared/components';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
|
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { Webhook, WebhookScope } from '@vality/swag-payments';
|
import { Webhook, WebhookScope } from '@vality/swag-payments';
|
||||||
|
|
||||||
|
@ -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 { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { ApiModelRefsModule } from '@dsh/app/shared/pipes';
|
import { ApiModelRefsModule } from '@dsh/app/shared/pipes';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { CreateWebhookService } from './create-webhook';
|
import { CreateWebhookService } from './create-webhook';
|
||||||
|
@ -2,12 +2,12 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import { MatDividerModule } from '@angular/material/divider';
|
import { MatDividerModule } from '@angular/material/divider';
|
||||||
import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
|
||||||
import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select';
|
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { ButtonModule } from '@dsh/components/buttons';
|
import { ButtonModule } from '@dsh/components/buttons';
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { FormControl } from '@ngneat/reactive-forms';
|
import { FormControl } from '@ngneat/reactive-forms';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { Shop } from '@vality/swag-payments';
|
import { Shop } from '@vality/swag-payments';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { Shop } from '@vality/swag-payments';
|
import { Shop } from '@vality/swag-payments';
|
||||||
import { cold } from 'jasmine-marbles';
|
import { cold } from 'jasmine-marbles';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { PaymentInstitution, Shop } from '@vality/swag-payments';
|
import { PaymentInstitution, Shop } from '@vality/swag-payments';
|
||||||
import { Observable, of, ReplaySubject } from 'rxjs';
|
import { Observable, of, ReplaySubject } from 'rxjs';
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{ invoice.product }}
|
{{ invoice.product }}
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
<dsh-row-label fxFlex.gt-md="10">
|
<dsh-row-label fxFlex.gt-md="10">
|
||||||
<span class="dsh-body-2">{{ invoice.amount | amountCurrency: invoice.currency }}</span>
|
<span class="dsh-body-2">{{ invoice.amount | amountCurrency : invoice.currency }}</span>
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
<dsh-row-label fxFlex.gt-md="10" fxHide.lt-md>
|
<dsh-row-label fxFlex.gt-md="10" fxHide.lt-md>
|
||||||
<dsh-status
|
<dsh-status
|
||||||
@ -11,7 +11,7 @@
|
|||||||
>{{ (invoiceStatusDict$ | async)?.[invoice.status] }}</dsh-status
|
>{{ (invoiceStatusDict$ | async)?.[invoice.status] }}</dsh-status
|
||||||
>
|
>
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
<dsh-row-label fxFlex.gt-md="20">{{ invoice.createdAt | date: 'dd MMMM yyyy, HH:mm' }}</dsh-row-label>
|
<dsh-row-label fxFlex.gt-md="20">{{ invoice.createdAt | date : 'dd MMMM yyyy, HH:mm' }}</dsh-row-label>
|
||||||
<dsh-row-label fxFlex.gt-md="20" fxHide.lt-md>
|
<dsh-row-label fxFlex.gt-md="20" fxHide.lt-md>
|
||||||
{{ invoice.shopID | shopDetails }}
|
{{ invoice.shopID | shopDetails }}
|
||||||
</dsh-row-label>
|
</dsh-row-label>
|
||||||
|
@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { cold } from 'jasmine-marbles';
|
import { cold } from 'jasmine-marbles';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService } from '@ngneat/transloco';
|
import { TranslocoService } from '@ngneat/transloco';
|
||||||
import { Observable, ReplaySubject } from 'rxjs';
|
import { Observable, ReplaySubject } from 'rxjs';
|
||||||
import { filter, switchMap, take } from 'rxjs/operators';
|
import { filter, switchMap, take } from 'rxjs/operators';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { FormControl } from '@ngneat/reactive-forms';
|
import { FormControl } from '@ngneat/reactive-forms';
|
||||||
|
|
||||||
import { CancelInvoiceDialogResponse } from '../../types/cancel-invoice-dialog-response';
|
import { CancelInvoiceDialogResponse } from '../../types/cancel-invoice-dialog-response';
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
fxLayoutGap="24px"
|
fxLayoutGap="24px"
|
||||||
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.actions'"
|
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.actions'"
|
||||||
>
|
>
|
||||||
<div class="mat-title">
|
<div class="mat-h2">
|
||||||
{{ t('title') }}
|
{{ t('title') }}
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap="24px">
|
<div fxLayout="column" fxLayout.gt-sm="row" fxLayoutGap="24px">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Output } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Input, Output } from '@angular/core';
|
||||||
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
||||||
import { Invoice } from '@vality/swag-payments';
|
import { Invoice } from '@vality/swag-payments';
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{ line.product }}
|
{{ line.product }}
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
<dsh-details-item [title]="t('price')">
|
<dsh-details-item [title]="t('price')">
|
||||||
{{ line.price | amountCurrency: currency }}
|
{{ line.price | amountCurrency : currency }}
|
||||||
</dsh-details-item>
|
</dsh-details-item>
|
||||||
<dsh-details-item [title]="t('quantity')">
|
<dsh-details-item [title]="t('quantity')">
|
||||||
{{ line.quantity }}
|
{{ line.quantity }}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
fxLayoutGap="24px"
|
fxLayoutGap="24px"
|
||||||
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.cartInfo'"
|
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.cartInfo'"
|
||||||
>
|
>
|
||||||
<div class="mat-title">
|
<div class="mat-h2">
|
||||||
{{ t('title') }}
|
{{ t('title') }}
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngFor="let line of cart; index as i">
|
<ng-container *ngFor="let line of cart; index as i">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
fxLayoutGap="24px"
|
fxLayoutGap="24px"
|
||||||
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.payments'"
|
*transloco="let t; scope: 'payment-section'; read: 'paymentSection.operations.invoices.payments'"
|
||||||
>
|
>
|
||||||
<div class="mat-title">
|
<div class="mat-h2">
|
||||||
{{ t('title') }}
|
{{ t('title') }}
|
||||||
</div>
|
</div>
|
||||||
<div *ngFor="let payment of payments$ | async as payments; index as i" fxLayout="column" fxLayoutGap="24px">
|
<div *ngFor="let payment of payments$ | async as payments; index as i" fxLayout="column" fxLayoutGap="24px">
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
||||||
import {
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
MatLegacyDialogRef as MatDialogRef,
|
|
||||||
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
|
|
||||||
} from '@angular/material/legacy-dialog';
|
|
||||||
import { FormControl } from '@ngneat/reactive-forms';
|
import { FormControl } from '@ngneat/reactive-forms';
|
||||||
import { BehaviorSubject, defer, merge, Subject } from 'rxjs';
|
import { BehaviorSubject, defer, merge, Subject } from 'rxjs';
|
||||||
import { mapTo, switchMap } from 'rxjs/operators';
|
import { mapTo, switchMap } from 'rxjs/operators';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||||
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { FormControl } from '@ngneat/reactive-forms';
|
import { FormControl } from '@ngneat/reactive-forms';
|
||||||
|
|
||||||
import { FulfillInvoiceDialogResponse } from '../../types/fulfill-invoice-dialog-response';
|
import { FulfillInvoiceDialogResponse } from '../../types/fulfill-invoice-dialog-response';
|
||||||
|
@ -2,8 +2,8 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexModule } from '@angular/flex-layout';
|
import { FlexModule } from '@angular/flex-layout';
|
||||||
import { ReactiveFormsModule } from '@angular/forms';
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input';
|
import { MatInputModule } from '@angular/material/input';
|
||||||
import { TranslocoModule } from '@ngneat/transloco';
|
import { TranslocoModule } from '@ngneat/transloco';
|
||||||
|
|
||||||
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
import { BaseDialogModule } from '@dsh/app/shared/components/dialog/base-dialog';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import { TestBed } from '@angular/core/testing';
|
||||||
import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { MatLegacySnackBar as MatSnackBar } from '@angular/material/legacy-snack-bar';
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||||
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
import { TranslocoService, TranslocoTestingModule } from '@ngneat/transloco';
|
||||||
import { cold } from 'jasmine-marbles';
|
import { cold } from 'jasmine-marbles';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user