mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
first ng update => angular@8
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -7,6 +7,6 @@
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
"editor.defaultFormatter": "vscode.typescript-language-features"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ import { FILIALE_LANDING_PAGE } from '../../core/utils/app.constants';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class BreadcrumbsComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
@ViewChild('container', { read: ElementRef }) public container: ElementRef<any>;
|
||||
@ViewChild('container', { read: ElementRef, static: false }) public container: ElementRef<any>;
|
||||
@Select(SharedSelectors.getBreadcrumbs) breadcrumbs$: Observable<Breadcrumb[]>;
|
||||
@Select(SharedSelectors.getCurrentProcess) currentProcess$: Observable<Process>;
|
||||
module: ModuleSwitcher;
|
||||
|
||||
@@ -18,7 +18,7 @@ import { BreadcrumbsState } from '../../core/store/state/breadcrumbs.state';
|
||||
styleUrls: ['./header.component.scss'],
|
||||
})
|
||||
export class HeaderComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('logOut') logOutDialog: LogOutComponent;
|
||||
@ViewChild('logOut', { static: false }) logOutDialog: LogOutComponent;
|
||||
doubleChoiceSwitch: DoubleChoiceSwitch;
|
||||
module: ModuleSwitcher = ModuleSwitcher.Customer;
|
||||
destroy$ = new Subject();
|
||||
|
||||
@@ -31,7 +31,7 @@ export class PrinterSelectionComponent implements OnInit, OnDestroy {
|
||||
printingRequested = false;
|
||||
submited = false;
|
||||
@Output() print: EventEmitter<string> = new EventEmitter();
|
||||
@ViewChild('printBtn') printBtn: ButtonComponent;
|
||||
@ViewChild('printBtn', { static: false }) printBtn: ButtonComponent;
|
||||
|
||||
constructor(
|
||||
private printerService: PrinterService,
|
||||
|
||||
@@ -21,7 +21,7 @@ import { ModuleSwitcher } from '../../core/models/app-switcher.enum';
|
||||
})
|
||||
export class ProcessHeaderComponent implements OnInit, OnDestroy {
|
||||
startProcessLabel = 'VORGANG STARTEN';
|
||||
@ViewChild('panel', { read: ElementRef }) public panel: ElementRef<any>;
|
||||
@ViewChild('panel', { read: ElementRef, static: false }) public panel: ElementRef<any>;
|
||||
@Select(ProcessSelectors.getProcesses) process$: Observable<Process[]>;
|
||||
@Select(ProcessSelectors.getCurrentProcess) selectedProcess$: Observable<Process>;
|
||||
@Input() module: ModuleSwitcher;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input, ViewChild, OnDestroy, ChangeDetectionStrategy, ChangeDetectorRef, AfterViewInit } from '@angular/core';
|
||||
import { Component, OnInit, Input, ViewChild, OnDestroy, ChangeDetectionStrategy, ChangeDetectorRef, AfterViewInit, ViewRef } from '@angular/core';
|
||||
import { Process } from '../../core/models/process.model';
|
||||
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
||||
import { Store, Select } from '@ngxs/store';
|
||||
@@ -21,7 +21,7 @@ import { AppState } from '../../core/store/state/app.state';
|
||||
import { AppSetCurrentProcess } from '../../core/store/actions/app.actions';
|
||||
import { ProcessSelectors } from '../../core/store/selectors/process.selectors';
|
||||
import { ModuleSwitcher } from '../../core/models/app-switcher.enum';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { USER_FORM_STATE_KEY, USER_EXTRAS_FORM_STATE_KEY, USER_ERRORS_FORM_STATE_KEY } from '../../core/utils/app.constants';
|
||||
import { DeleteFormState } from '../../core/store/actions/forms.actions';
|
||||
|
||||
@@ -57,7 +57,7 @@ export class ProcessTabComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
@Select(SharedSelectors.cartHasDownloadForProcess) cartHasDownloadForProcess$: Observable<{ status: boolean; currentProcessId: number }>;
|
||||
@Select(AppState.getCurrentProcessId) currentProcessId$: Observable<number>;
|
||||
destroy$ = new Subject();
|
||||
@ViewChild('deleteporcessdialog')
|
||||
@ViewChild('deleteporcessdialog', { static: false })
|
||||
processDeleteDialogComponent: ProcessDeleteDialogComponent;
|
||||
cartCount = 0;
|
||||
cartanimation = '';
|
||||
@@ -184,7 +184,7 @@ export class ProcessTabComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Injectable, ViewChild } from '@angular/core';
|
||||
import { ErrorComponent } from './error.component';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
|
||||
@@ -11,7 +11,7 @@ import { takeUntil } from 'rxjs/operators';
|
||||
})
|
||||
export class BarcodeScannerComponent implements OnInit, OnDestroy {
|
||||
@Output() scan: EventEmitter<string> = new EventEmitter();
|
||||
@ViewChild('scanner') scanner: ZXingScannerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ZXingScannerComponent;
|
||||
|
||||
allowedFormats = [BarcodeFormat.QR_CODE, BarcodeFormat.EAN_13, BarcodeFormat.CODE_128, BarcodeFormat.UPC_A];
|
||||
enabled = false;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Component, OnInit, ViewChildren, ElementRef, QueryList, AfterViewInit, OnDestroy, Output, EventEmitter } from '@angular/core';
|
||||
import { Component, OnInit, AfterViewInit, OnDestroy, Output, EventEmitter } from '@angular/core';
|
||||
import { ModalService } from '@libs/ui';
|
||||
import { Subject } from 'rxjs';
|
||||
import { takeUntil } from 'rxjs/operators';
|
||||
import { isNullOrUndefined } from 'util';
|
||||
import { Code128Reader } from '@zxing/library';
|
||||
|
||||
@Component({
|
||||
selector: 'app-customer-card-manual-entry',
|
||||
|
||||
@@ -21,7 +21,7 @@ import { ItemDTO } from '@swagger/cat';
|
||||
styleUrls: ['barcode-search.component.scss'],
|
||||
})
|
||||
export class BarcodeSearchComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('scanner') scanner: BarcodeScannerScanditComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: BarcodeScannerScanditComponent;
|
||||
@Select(ProcessSelectors.getProcesses) processes$: Observable<Process[]>;
|
||||
processes: Process[] = [];
|
||||
scanningVisible = false;
|
||||
|
||||
@@ -23,10 +23,10 @@ import { ErrorService } from 'apps/sales/src/app/core/error/component/error.serv
|
||||
styleUrls: ['customer-card-barcode-search.component.scss'],
|
||||
})
|
||||
export class CustomerCardBarcodeSearchComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
@ViewChild('scanner') scanner: CustomerCardScannerScanditComponent;
|
||||
@ViewChild('manualentry') manualentry: CustomerCardManualEntryComponent;
|
||||
@ViewChild('searchCardEmptyModal') searchCardEmptyModal: CustomerCardSearchEmptyModalComponent;
|
||||
@ViewChild('searchCardErrorModal') searchCardErrorModal: CustomerCardSearchErrorModalComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: CustomerCardScannerScanditComponent;
|
||||
@ViewChild('manualentry', { static: false }) manualentry: CustomerCardManualEntryComponent;
|
||||
@ViewChild('searchCardEmptyModal', { static: false }) searchCardEmptyModal: CustomerCardSearchEmptyModalComponent;
|
||||
@ViewChild('searchCardErrorModal', { static: false }) searchCardErrorModal: CustomerCardSearchErrorModalComponent;
|
||||
@Select(ProcessSelectors.getProcesses) processes$: Observable<Process[]>;
|
||||
processes: Process[] = [];
|
||||
destroy$ = new Subject();
|
||||
|
||||
@@ -8,6 +8,7 @@ import {
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
OnDestroy,
|
||||
ViewRef,
|
||||
} from '@angular/core';
|
||||
import { ModalService } from '@libs/ui';
|
||||
import { Store, Select } from '@ngxs/store';
|
||||
@@ -30,7 +31,7 @@ import { CheckoutService } from 'apps/sales/src/app/core/services/checkout.servi
|
||||
import { SearchDropdownComponent } from '@libs/ui/lib/search-dropdown';
|
||||
import { ItemDTO } from '@swagger/cat';
|
||||
import { allowedAvailabilityStatusCodes } from '../../../../core/utils/product.util';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
export interface ProcessAvailibilityMapper {
|
||||
branchId: number;
|
||||
@@ -46,7 +47,7 @@ export interface ProcessAvailibilityMapper {
|
||||
})
|
||||
export class ChangeOrderTypeComponent implements OnInit, OnDestroy {
|
||||
@Select(BranchSelectors.getBranches) branches$: Observable<{ [key: number]: BranchDTO }>;
|
||||
@ViewChild('branchesdropdown') branchesdd: SearchDropdownComponent;
|
||||
@ViewChild('branchesdropdown', { static: false }) branchesdd: SearchDropdownComponent;
|
||||
|
||||
private _item: CartReviewItem;
|
||||
@Input() set item(val: CartReviewItem) {
|
||||
@@ -464,7 +465,7 @@ export class ChangeOrderTypeComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -3,12 +3,12 @@ import { CartReviewItem } from '../../pages/cart-review/cart-review.component';
|
||||
import { ProductAvailabilityService } from '../../../../core/services/product-availability.service';
|
||||
import { BranchSelectors } from '../../../../core/store/selectors/branch.selector';
|
||||
import { map, tap, take } from 'rxjs/operators';
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit, Output, EventEmitter, ChangeDetectorRef, ViewChild } from '@angular/core';
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit, Output, EventEmitter, ChangeDetectorRef, ViewChild, ViewRef } from '@angular/core';
|
||||
import { Store } from '@ngxs/store';
|
||||
import { DeleteProductFromCart } from '../../../../core/store/actions/cart.actions';
|
||||
import { of, Observable } from 'rxjs';
|
||||
import { ChangeOrderTypeComponent } from '../change-order-type/change-order-type.component';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { DeleteDropdownComponent } from '@libs/ui';
|
||||
import { allowedAvailabilityStatusCodes } from 'apps/sales/src/app/core/utils/product.util';
|
||||
import { DeliveryOption } from 'apps/sales/src/app/core/models/delivery-option.model';
|
||||
@@ -22,8 +22,8 @@ import { AvailabilityDTO } from '@swagger/cat';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class DeliveryCartRowComponent implements OnInit {
|
||||
@ViewChild('changeOrder') changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref') deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('changeOrder', { static: false }) changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref', { static: false }) deleteDropdown: DeleteDropdownComponent;
|
||||
@Input() item: CartReviewItem;
|
||||
@Output() details = new EventEmitter();
|
||||
@Output() editAdress = new EventEmitter();
|
||||
@@ -160,7 +160,7 @@ export class DeliveryCartRowComponent implements OnInit {
|
||||
// This method is needed because of the console error ViewDestroyedError: Attempt to use a destroyed view
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef_).destroyed) {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef).destroyed) {
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, OnDestroy, Output, EventEmitter, Input } from '@angular/core';
|
||||
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, OnDestroy, Output, EventEmitter, Input, ViewRef } from '@angular/core';
|
||||
import { Cart } from '../../../../core/models/cart.model';
|
||||
import { DeliveryOption } from '../../../../core/models/delivery-option.model';
|
||||
import {
|
||||
@@ -21,7 +21,7 @@ import { Address } from '../../../../core/models/user.model';
|
||||
import { isArrayMinLength } from '../../../../core/utils/app.utils';
|
||||
import { DeleteProductFromCart } from 'apps/sales/src/app/core/store/actions/cart.actions';
|
||||
import { cartItem } from 'apps/sales/src/app/shared/animations/cart-item.animation';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-delivery-cart',
|
||||
@@ -165,7 +165,7 @@ export class DeliveryCartComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Store } from '@ngxs/store';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class DownloadCartRowComponent implements OnInit {
|
||||
@ViewChild('ref') deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('ref', { static: false }) deleteDropdown: DeleteDropdownComponent;
|
||||
@Input() item: CartReviewItem;
|
||||
@Output() details = new EventEmitter();
|
||||
@Output() editAdress = new EventEmitter();
|
||||
|
||||
@@ -83,7 +83,7 @@ label {
|
||||
position: relative;
|
||||
|
||||
&.view {
|
||||
/deep/ app-checkbox {
|
||||
::ng-deep app-checkbox {
|
||||
.option .checkbox .checkbox-icon {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input, ChangeDetectorRef, ChangeDetectionStrategy, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||
import { Component, OnInit, Input, ChangeDetectorRef, ChangeDetectionStrategy, Output, EventEmitter, OnDestroy, ViewRef } from '@angular/core';
|
||||
import { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';
|
||||
import { Select, Store } from '@ngxs/store';
|
||||
import { take, takeUntil } from 'rxjs/operators';
|
||||
@@ -7,7 +7,7 @@ import { SetUserDetails } from '../../../../core/store/actions/customer.actions'
|
||||
import { CustomValidators } from '../../../../shared/validation/custom-validation';
|
||||
import { SharedSelectors } from '../../../../core/store/selectors/shared.selectors';
|
||||
import { User } from '../../../../core/models/user.model';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { ProcessSelectors } from 'apps/sales/src/app/core/store/selectors/process.selectors';
|
||||
import { SetCustomerNotificationFlag } from 'apps/sales/src/app/core/store/actions/process.actions';
|
||||
|
||||
@@ -283,7 +283,7 @@ export class NotificationSettingsComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -10,6 +10,7 @@ import {
|
||||
ChangeDetectorRef,
|
||||
ViewChild,
|
||||
OnDestroy,
|
||||
ViewRef,
|
||||
} from '@angular/core';
|
||||
import { ProductAvailabilityService } from '../../../../core/services/product-availability.service';
|
||||
import { map, tap, take, takeUntil } from 'rxjs/operators';
|
||||
@@ -17,7 +18,7 @@ import { Store } from '@ngxs/store';
|
||||
import { DeleteProductFromCart } from '../../../../core/store/actions/cart.actions';
|
||||
import { ChangeOrderTypeComponent } from '../change-order-type/change-order-type.component';
|
||||
import { Subject, of, Observable } from 'rxjs';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { DeleteDropdownComponent } from '@libs/ui';
|
||||
import { allowedAvailabilityStatusCodes } from 'apps/sales/src/app/core/utils/product.util';
|
||||
import { DeliveryOption } from 'apps/sales/src/app/core/models/delivery-option.model';
|
||||
@@ -31,8 +32,8 @@ import { AvailabilityDTO } from '@swagger/cat';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class PickUpCartRowComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('changeOrder') changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref') deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('changeOrder', { static: false }) changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref', { static: false }) deleteDropdown: DeleteDropdownComponent;
|
||||
@Input() item: CartReviewItem;
|
||||
@Output() details = new EventEmitter();
|
||||
@Output() editAdress = new EventEmitter();
|
||||
@@ -172,7 +173,7 @@ export class PickUpCartRowComponent implements OnInit, OnDestroy {
|
||||
// This method is needed because of the console error ViewDestroyedError: Attempt to use a destroyed view
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef_).destroyed) {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef).destroyed) {
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { UpdateCartEntryQuantity } from './../../../../core/store/actions/cart-entry.actions';
|
||||
import { CartReviewItem } from '../../pages/cart-review/cart-review.component';
|
||||
import { Component, OnInit, Input, EventEmitter, Output, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, Input, EventEmitter, Output, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild, ViewRef } from '@angular/core';
|
||||
import { isNullOrUndefined } from 'util';
|
||||
import { ProductService } from '../../../../core/services/product.service';
|
||||
import { map, tap, take, switchMap } from 'rxjs/operators';
|
||||
@@ -9,7 +9,7 @@ import { DeleteProductFromCart } from '../../../../core/store/actions/cart.actio
|
||||
import { of, Observable, Subject } from 'rxjs';
|
||||
import { ChangeOrderTypeComponent } from '../change-order-type/change-order-type.component';
|
||||
import { ProductAvailabilityService } from '../../../../core/services/product-availability.service';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { DeleteDropdownComponent } from '@libs/ui';
|
||||
|
||||
@Component({
|
||||
@@ -19,8 +19,8 @@ import { DeleteDropdownComponent } from '@libs/ui';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class TakeNowCartRowComponent implements OnInit {
|
||||
@ViewChild('changeOrder') changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref') deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('changeOrder', { static: false }) changeOrderDialog: ChangeOrderTypeComponent;
|
||||
@ViewChild('ref', { static: false }) deleteDropdown: DeleteDropdownComponent;
|
||||
@Input() item: CartReviewItem;
|
||||
@Output() details = new EventEmitter();
|
||||
@Output() editAdress = new EventEmitter();
|
||||
@@ -139,7 +139,7 @@ export class TakeNowCartRowComponent implements OnInit {
|
||||
// This method is needed because of the console error ViewDestroyedError: Attempt to use a destroyed view
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef_).destroyed) {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef).destroyed) {
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -37,7 +37,7 @@ export interface OrderData {
|
||||
export class CartConfirmationComponent implements OnInit, OnDestroy {
|
||||
@Select(SharedSelectors.getConfirmedCart) cartData$: Observable<ProcessCartConfirmed>;
|
||||
@Select(SharedSelectors.getFinishedOrderCustomer) customer$: Observable<User>;
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
|
||||
destroy$ = new Subject();
|
||||
customer: User;
|
||||
|
||||
@@ -73,9 +73,9 @@ export const cartToCartReviewArray = (cart: Cart[]) => {
|
||||
})
|
||||
export class CartReviewComponent implements OnInit, OnDestroy {
|
||||
@Select(SharedSelectors.getCart) cartData$: Observable<ProcessCart>;
|
||||
@ViewChild('payMethod') payMethodDialog: PayMethodComponent;
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('continue') continueBtn: ButtonComponent;
|
||||
@ViewChild('payMethod', { static: false }) payMethodDialog: PayMethodComponent;
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
@ViewChild('continue', { static: false }) continueBtn: ButtonComponent;
|
||||
|
||||
deliveryCount$: Observable<number>;
|
||||
takeNowCount$: Observable<number>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, OnDestroy, HostListener, Renderer, ChangeDetectorRef, ViewChild, AfterViewInit } from '@angular/core';
|
||||
import { Component, OnInit, OnDestroy, HostListener, Renderer, ChangeDetectorRef, ViewChild, AfterViewInit, ViewRef } from '@angular/core';
|
||||
import { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';
|
||||
import { Store, Select } from '@ngxs/store';
|
||||
import {
|
||||
@@ -31,7 +31,7 @@ import { AddressDTO } from '@swagger/crm';
|
||||
import { ButtonComponent, SelectComponent } from '@libs/ui';
|
||||
import { AppService } from 'apps/sales/src/app/core/services/app.service';
|
||||
import { AddressSugestionsComponent } from '../address-sugestions/address-sugestions.component';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { ErrorService } from 'apps/sales/src/app/core/error/component/error.service';
|
||||
import { FormsSelectors } from 'apps/sales/src/app/core/store/selectors/forms.selectors';
|
||||
import { SaveFormState, DeleteFormState } from 'apps/sales/src/app/core/store/actions/forms.actions';
|
||||
@@ -49,9 +49,9 @@ export class CreateCustomerCardComponent implements OnInit, OnDestroy {
|
||||
@Select(SharedSelectors.getCustomerEditData) customerEditData$: Observable<EditCustomerData>;
|
||||
@Select(CountrySelector.getCountriesIterable) countries$: Observable<Country[]>;
|
||||
@Select(CountrySelector.getDeutchlandIterable) deutchland$: Observable<Country[]>;
|
||||
@ViewChild('postBtn') postBtn: ButtonComponent;
|
||||
@ViewChild('landDD') landDD: SelectComponent;
|
||||
@ViewChild('suggestions') suggestions: AddressSugestionsComponent;
|
||||
@ViewChild('postBtn', { static: false }) postBtn: ButtonComponent;
|
||||
@ViewChild('landDD', { static: false }) landDD: SelectComponent;
|
||||
@ViewChild('suggestions', { static: false }) suggestions: AddressSugestionsComponent;
|
||||
destroy$ = new Subject();
|
||||
destroyForm$ = new Subject();
|
||||
userForm: FormGroup;
|
||||
@@ -1118,7 +1118,7 @@ export class CreateCustomerCardComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef_).destroyed) {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef).destroyed) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -37,8 +37,8 @@ export class CustomerAddressFormComponent implements OnInit, OnDestroy {
|
||||
@Input() isBillingForm = true;
|
||||
@Select(SharedSelectors.getCustomerEditData) customerEditData$: Observable<EditCustomerData>;
|
||||
@Select(CountrySelector.getCountriesIterable) countries$: Observable<Country[]>;
|
||||
@ViewChild('suggestions') suggestions: AddressSugestionsComponent;
|
||||
@ViewChild('postBtn') postBtn: ButtonComponent;
|
||||
@ViewChild('suggestions', { static: false }) suggestions: AddressSugestionsComponent;
|
||||
@ViewChild('postBtn', { static: false }) postBtn: ButtonComponent;
|
||||
form: FormGroup;
|
||||
submitted = false;
|
||||
destroy$ = new Subject();
|
||||
|
||||
@@ -32,8 +32,8 @@ export class CustomerSearchCardComponent implements OnInit, AfterViewInit, OnDes
|
||||
searchError = '';
|
||||
|
||||
@Input() searchParams = '';
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('searchEmptyModal') searchEmptyModal: CustomerSearchEmptyModalComponent;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
@ViewChild('searchEmptyModal', { static: false }) searchEmptyModal: CustomerSearchEmptyModalComponent;
|
||||
|
||||
constructor(private store: Store, private router: Router, private customerService: CustomerService) { }
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import { CustomerSelectors } from 'apps/sales/src/app/core/store/selectors/custo
|
||||
styleUrls: ['./customer-order-detail.component.scss'],
|
||||
})
|
||||
export class CustomerOrderDetailComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
@Select(BranchSelectors.getBranches) branches$: Observable<{
|
||||
[key: number]: BranchDTO;
|
||||
}>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, AfterViewInit, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { Component, OnInit, AfterViewInit, ViewChild, ChangeDetectorRef, ChangeDetectionStrategy, ViewRef } from '@angular/core';
|
||||
import { Select, Store } from '@ngxs/store';
|
||||
import { Observable } from 'rxjs';
|
||||
import { User, Address } from '../../../../core/models/user.model';
|
||||
@@ -26,7 +26,7 @@ import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
||||
import { CUSTOMER_SCROLL_INDEX } from '../../../../core/utils/app.constants';
|
||||
import { AppState } from 'apps/sales/src/app/core/store/state/app.state';
|
||||
import { DeliveryOption } from 'apps/sales/src/app/core/models/delivery-option.model';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { Side } from '@libs/ui/lib/small-double-choice-switch';
|
||||
|
||||
export interface CustomerFilters {
|
||||
@@ -42,7 +42,7 @@ export interface CustomerFilters {
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class CustomerSearchResultComponent implements OnInit {
|
||||
@ViewChild(CdkVirtualScrollViewport) viewport: CdkVirtualScrollViewport;
|
||||
@ViewChild(CdkVirtualScrollViewport, { static: false }) viewport: CdkVirtualScrollViewport;
|
||||
@Select(SharedSelectors.getSearchedCustomers) customers$: Observable<CustomerSearchResult>;
|
||||
@Select(SharedSelectors.getCart) cartData$: Observable<ProcessCart>;
|
||||
customerSearch: CustomerSearch;
|
||||
@@ -253,7 +253,7 @@ export class CustomerSearchResultComponent implements OnInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef_).destroyed) {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef).destroyed) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -32,7 +32,7 @@ import { WindowRef } from 'apps/sales/src/app/core/services/window-ref.service';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class BookCardComponent implements OnInit {
|
||||
@ViewChild('books', { read: ElementRef }) public books: ElementRef<any>;
|
||||
@ViewChild('books', { read: ElementRef, static: false }) public books: ElementRef<any>;
|
||||
@Select(ProcessSelectors.getProcesses) processes$: Observable<Process[]>;
|
||||
@Input() card: FeedCard;
|
||||
isIPad: boolean;
|
||||
|
||||
@@ -34,7 +34,7 @@ export class SelectFilterComponent implements OnChanges, AfterViewInit {
|
||||
@Input()
|
||||
max?: number;
|
||||
|
||||
@ViewChild('optionsContainer')
|
||||
@ViewChild('optionsContainer', { static: false })
|
||||
optionsContainer: ElementRef;
|
||||
|
||||
canScroll = false;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, OnDestroy, ViewChild, ElementRef, AfterViewInit, ChangeDetectorRef, HostListener } from '@angular/core';
|
||||
import { Component, OnInit, OnDestroy, ViewChild, ElementRef, AfterViewInit, ChangeDetectorRef, HostListener, ViewRef } from '@angular/core';
|
||||
import { ActivatedRoute, Params, Router } from '@angular/router';
|
||||
import { take, switchMap, filter, takeUntil, concatMap, catchError, map } from 'rxjs/operators';
|
||||
import { of, Observable, Subject } from 'rxjs';
|
||||
@@ -13,7 +13,7 @@ import { Breadcrumb } from 'apps/sales/src/app/core/models/breadcrumb.model';
|
||||
import { SetEditOrder } from 'apps/sales/src/app/core/store/actions/collecting-shelf.action';
|
||||
import { PrinterService } from 'apps/sales/src/app/core/services/printer.service';
|
||||
import { AppService } from 'apps/sales/src/app/core/services/app.service';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
enum Tag {
|
||||
Maxi = 0,
|
||||
@@ -71,7 +71,7 @@ export class GoodsInOrderDetailsComponent implements OnInit, OnDestroy, AfterVie
|
||||
isIPad = false;
|
||||
|
||||
// attibutes for horizontal navigational arrow of all items
|
||||
@ViewChild('allItemsEL') allItemsEL: ElementRef;
|
||||
@ViewChild('allItemsEL', { static: false }) allItemsEL: ElementRef;
|
||||
showNext = false;
|
||||
showBack = false;
|
||||
showFowardContainer = false;
|
||||
@@ -527,7 +527,7 @@ export class GoodsInOrderDetailsComponent implements OnInit, OnDestroy, AfterVie
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, OnDestroy, ViewChild } from '@angular/core';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, OnDestroy, ViewChild, ViewRef } from '@angular/core';
|
||||
|
||||
import { GoodsInSearch } from 'apps/sales/src/app/core/models/GoodsInSearch.model';
|
||||
import { GoodsInSearchResultsDataSource } from './goods-in-search-results.datasource';
|
||||
import { Subject } from 'rxjs';
|
||||
@@ -23,7 +23,7 @@ import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class GoodsInSearchResultsComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('scroller') scroller: CdkVirtualScrollViewport;
|
||||
@ViewChild('scroller', { static: false }) scroller: CdkVirtualScrollViewport;
|
||||
goodsInSearch: GoodsInSearch;
|
||||
ds: GoodsInSearchResultsDataSource;
|
||||
destroy$ = new Subject();
|
||||
@@ -124,7 +124,7 @@ export class GoodsInSearchResultsComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -23,7 +23,7 @@ import { GOODS_IN_SCROLL_INDEX } from 'apps/sales/src/app/core/utils/app.constan
|
||||
styleUrls: ['./goods-in-search.component.scss'],
|
||||
})
|
||||
export class GoodsInSearchComponent implements OnInit {
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
error: string;
|
||||
constructor(private store: Store, private goodsInService: GoodsInService, private router: Router) { }
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import { CheckboxOption } from '@libs/ui';
|
||||
animations: [circleAnimation, removeAnimation, expandAnimation],
|
||||
})
|
||||
export class NewsletterSignupComponent implements OnInit {
|
||||
@ViewChild(SignaturePadComponent) sigPad: SignaturePadComponent;
|
||||
@ViewChild(SignaturePadComponent, { static: false }) sigPad: SignaturePadComponent;
|
||||
|
||||
stage = 'one';
|
||||
options = [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, OnInit, ChangeDetectorRef, ElementRef, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, ChangeDetectorRef } from '@angular/core';
|
||||
import { ModalService } from '@libs/ui';
|
||||
import { FormBuilder, FormGroup, Validators, AbstractControl, ValidationErrors } from '@angular/forms';
|
||||
import { FormBuilder, FormGroup, Validators, AbstractControl } from '@angular/forms';
|
||||
|
||||
@Component({
|
||||
selector: 'app-add-product-review',
|
||||
@@ -18,7 +18,7 @@ export class AddProductReviewComponent implements OnInit {
|
||||
];
|
||||
submitted = false;
|
||||
reviewForm: FormGroup;
|
||||
constructor(private modalService: ModalService, private fb: FormBuilder, private cdrf: ChangeDetectorRef) {}
|
||||
constructor(private modalService: ModalService, private fb: FormBuilder) { }
|
||||
|
||||
get f() {
|
||||
return this.reviewForm.controls;
|
||||
|
||||
@@ -28,7 +28,7 @@ export class BranchesAvalabilityOverviewComponent implements OnInit, OnDestroy {
|
||||
destroy$ = new Subject();
|
||||
|
||||
@Input() item: ItemDTO;
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
|
||||
error: string;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ export class ProductCardComponent implements OnInit, OnDestroy, AfterViewChecked
|
||||
authors: string[];
|
||||
destroy$ = new Subject();
|
||||
|
||||
@ViewChild('titleLine') titleLine: ElementRef;
|
||||
@ViewChild('titleLine', { static: false }) titleLine: ElementRef;
|
||||
private clearAfterCheckedTimeout;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Output, EventEmitter, Input, OnDestroy, ViewChild, ChangeDetectorRef } from '@angular/core';
|
||||
import { Component, OnInit, Output, EventEmitter, Input, OnDestroy, ViewChild, ChangeDetectorRef, ViewRef } from '@angular/core';
|
||||
import { ModalService, ButtonComponent, DeleteDropdownComponent } from '@libs/ui';
|
||||
import { Router } from '@angular/router';
|
||||
import { Store, Select } from '@ngxs/store';
|
||||
@@ -25,7 +25,7 @@ import { SharedSelectors } from '../../../../core/store/selectors/shared.selecto
|
||||
import { SearchDropdownComponent } from '@libs/ui/lib/search-dropdown';
|
||||
import { AddBranchesIfNotLoaded } from 'apps/sales/src/app/core/store/actions/branch.actions';
|
||||
import { allowedAvailabilityStatusCodes } from 'apps/sales/src/app/core/utils/product.util';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-checkout',
|
||||
@@ -37,8 +37,8 @@ export class ProductCheckoutComponent implements OnInit, OnDestroy {
|
||||
@Select(SharedSelectors.getBreadcrumbs) getBreadcrumbs$: Observable<Breadcrumb[]>;
|
||||
@Select(BranchSelectors.getBranches) branches$: Observable<{ [key: number]: BranchDTO }>;
|
||||
|
||||
@ViewChild('deleteDropdown') deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('branchesdropdown') branchesdd: SearchDropdownComponent;
|
||||
@ViewChild('deleteDropdown', { static: false }) deleteDropdown: DeleteDropdownComponent;
|
||||
@ViewChild('branchesdropdown', { static: false }) branchesdd: SearchDropdownComponent;
|
||||
|
||||
id = 'checkout-modal';
|
||||
stepOne = true;
|
||||
@@ -630,7 +630,7 @@ export class ProductCheckoutComponent implements OnInit, OnDestroy {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef_).destroyed) {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef).destroyed) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -24,7 +24,7 @@ import { WindowRef } from 'apps/sales/src/app/core/services/window-ref.service';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ProductOtherFormatsComponent implements OnInit {
|
||||
@ViewChild('formats', { read: ElementRef }) public formats: ElementRef<any>;
|
||||
@ViewChild('formats', { read: ElementRef, static: false }) public formats: ElementRef<any>;
|
||||
showNext = false;
|
||||
showBack = false;
|
||||
showFowardContainer = false;
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { Component, OnInit, Input, AfterViewInit, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
||||
import { ModalService } from '@libs/ui';
|
||||
import { ProductReview } from '../../../../core/models/product-review.model';
|
||||
import { of, Observable } from 'rxjs';
|
||||
import { of } from 'rxjs';
|
||||
import { Review } from '../../../../core/models/review.model';
|
||||
import { AddProductReviewComponent } from '../add-product-review/add-product-review.component';
|
||||
import { restoreView } from '@angular/core/src/render3';
|
||||
|
||||
@Component({
|
||||
selector: 'app-product-review',
|
||||
@@ -44,7 +43,7 @@ export class ProductReviewComponent implements OnInit {
|
||||
return this._fullStars + (this._halfStars === 1 ? 0.5 : 0);
|
||||
}
|
||||
}
|
||||
@ViewChild('addReview') addReview: AddProductReviewComponent;
|
||||
@ViewChild('addReview', { static: false }) addReview: AddProductReviewComponent;
|
||||
|
||||
// [HIMA-292] - feature disabled
|
||||
reviewFeatureDisabled = true;
|
||||
|
||||
@@ -43,18 +43,18 @@ import { allowedAvailabilityStatusCodes } from 'apps/sales/src/app/core/utils/pr
|
||||
animations: [shrinkTitleAnimation, shrinkSecondaryAnimation, shrinkMainCard],
|
||||
})
|
||||
export class ProductDetailsComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('productDetailContainer', { read: ElementRef })
|
||||
@ViewChild('productDetailContainer', { read: ElementRef, static: false })
|
||||
private productDetailContainer: ElementRef<any>;
|
||||
@ViewChild('checkout') checkoutDialog: ProductCheckoutComponent;
|
||||
@ViewChild('photoGallery') photoGallery: PhotoGalleryComponent;
|
||||
@ViewChild('productReview') productReview: ProductReviewComponent;
|
||||
@ViewChild('branchesAvailabilityInfo')
|
||||
@ViewChild('checkout', { static: false }) checkoutDialog: ProductCheckoutComponent;
|
||||
@ViewChild('photoGallery', { static: false }) photoGallery: PhotoGalleryComponent;
|
||||
@ViewChild('productReview', { static: false }) productReview: ProductReviewComponent;
|
||||
@ViewChild('branchesAvailabilityInfo', { static: false })
|
||||
branchesAvailabilityInfo: BranchesAvalabilityOverviewComponent;
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('addtocart') addToCartBtn: ButtonComponent;
|
||||
@ViewChild('recommendations') recommendations: RecommendationsComponent;
|
||||
@ViewChild('otherformats') elOtherformats: ProductOtherFormatsComponent;
|
||||
@ViewChild('panformatsel', { read: ElementRef }) public formats: ElementRef<any>;
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
@ViewChild('addtocart', { static: false }) addToCartBtn: ButtonComponent;
|
||||
@ViewChild('recommendations', { static: false }) recommendations: RecommendationsComponent;
|
||||
@ViewChild('otherformats', { static: false }) elOtherformats: ProductOtherFormatsComponent;
|
||||
@ViewChild('panformatsel', { read: ElementRef, static: false }) public formats: ElementRef<any>;
|
||||
expanded = true;
|
||||
id: number;
|
||||
item: ItemDTO;
|
||||
|
||||
@@ -53,7 +53,7 @@ export class ProductResultsComponent implements OnInit, OnDestroy, AfterViewInit
|
||||
products: Product[];
|
||||
skip = 0;
|
||||
processCount = 0;
|
||||
@ViewChild('scroller') scroller: CdkVirtualScrollViewport;
|
||||
@ViewChild('scroller', { static: false }) scroller: CdkVirtualScrollViewport;
|
||||
@ViewChildren('productCard') productCardList: QueryList<ProductCardComponent>;
|
||||
loading = true;
|
||||
filters: Filter[];
|
||||
|
||||
@@ -49,11 +49,11 @@ export class FilterItemComponent implements OnInit, OnDestroy {
|
||||
topPosition = 0;
|
||||
setContanerRightPosition = false;
|
||||
allowRecoveryScroll = false;
|
||||
@ViewChild('optionContainer') optionContainer: ElementRef<any>;
|
||||
@ViewChild('optionContainer', { static: false }) optionContainer: ElementRef<any>;
|
||||
|
||||
@Output() confirmed = new EventEmitter();
|
||||
|
||||
@ViewChild('menu') menu: ElementRef<any>;
|
||||
@ViewChild('menu', { static: false }) menu: ElementRef<any>;
|
||||
|
||||
get containerHeight() {
|
||||
if (this.menu) {
|
||||
|
||||
@@ -36,7 +36,7 @@ export class FilterComponent implements OnInit, OnDestroy {
|
||||
@Select(SharedSelectors.getSelectedFilterItems) filters$: Observable<Filter[]>;
|
||||
@Output() toggle = new EventEmitter();
|
||||
@Input() selectedFilterMode: Side;
|
||||
@ViewChild('filterContainer') filterContainer: ElementRef<any>;
|
||||
@ViewChild('filterContainer', { static: false }) filterContainer: ElementRef<any>;
|
||||
@ViewChildren(SelectedFilterItemComponent) selectedFilters: QueryList<SelectedFilterItemComponent>;
|
||||
filterIndexArray$: Observable<Filter[]>;
|
||||
showMore: boolean;
|
||||
|
||||
@@ -81,7 +81,7 @@ export class TextSearchComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
|
||||
constructor(private store: Store, private router: Router, private productService: ProductService, private appService: AppService) { }
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import { WindowRef } from '../../core/services/window-ref.service';
|
||||
styleUrls: ['recommendations.component.scss'],
|
||||
})
|
||||
export class RecommendationsComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('books', { read: ElementRef }) public books: ElementRef<any>;
|
||||
@ViewChild('books', { read: ElementRef, static: false }) public books: ElementRef<any>;
|
||||
@Input() book?: ItemDTO;
|
||||
@Output() redirect: EventEmitter<number> = new EventEmitter();
|
||||
recommendations: RecommendationItem[] = [];
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
ChangeDetectorRef,
|
||||
EventEmitter,
|
||||
Output,
|
||||
ViewRef,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
RemissionProduct,
|
||||
@@ -17,7 +18,7 @@ import { Store } from '@ngxs/store';
|
||||
import { RemissionHelperService } from '../../services/remission-helper.service';
|
||||
// tslint:disable-next-line: max-line-length
|
||||
import { RemissionAddProductToShippingDocumentDialogComponent } from '../remission-add-product-to-shipping-document-dialog/remission-add-product-to-shipping-document-dialog.component';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
// tslint:disable-next-line: max-line-length
|
||||
import { RemissionAddProductToShippingDocumentPartiallyDialogComponent } from '../remission-add-product-to-shipping-document-partially-dialog/remission-add-product-to-shipping-document-partially-dialog.component';
|
||||
import { ErrorService } from 'apps/sales/src/app/core/error/component/error.service';
|
||||
@@ -40,9 +41,9 @@ export class RemissionListCardStartedComponent implements OnInit {
|
||||
@Input() remissionProcess: RemissionProcess;
|
||||
@Output() updateShippingDocument = new EventEmitter<void>();
|
||||
|
||||
@ViewChild('addProductDialog')
|
||||
@ViewChild('addProductDialog', { static: false })
|
||||
addProductDialog: RemissionAddProductToShippingDocumentDialogComponent;
|
||||
@ViewChild('addProductPartiallyDialog')
|
||||
@ViewChild('addProductPartiallyDialog', { static: false })
|
||||
addProductPartiallyDialog: RemissionAddProductToShippingDocumentPartiallyDialogComponent;
|
||||
selectedFeatureDescription: string;
|
||||
toolTipOpened = [];
|
||||
@@ -220,7 +221,7 @@ export class RemissionListCardStartedComponent implements OnInit {
|
||||
if (
|
||||
this.cdr !== null &&
|
||||
this.cdr !== undefined &&
|
||||
!(this.cdr as ViewRef_).destroyed
|
||||
!(this.cdr as ViewRef).destroyed
|
||||
) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ import { SetRemissionIsLoading } from 'apps/sales/src/app/core/store/actions/rem
|
||||
styleUrls: ['./remission-list.component.scss'],
|
||||
})
|
||||
export class RemissionListComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('scroller') scroller: CdkVirtualScrollViewport;
|
||||
@ViewChild('remissionListContainer') remissionListContainer: ElementRef;
|
||||
@ViewChild('scroller', { static: false }) scroller: CdkVirtualScrollViewport;
|
||||
@ViewChild('remissionListContainer', { static: false }) remissionListContainer: ElementRef;
|
||||
@Input() started = false;
|
||||
@Input() hits: number;
|
||||
@Input() remissionProcess: RemissionProcess;
|
||||
|
||||
@@ -30,7 +30,7 @@ export class RemissionPrinterSelectionComponent implements OnInit, OnDestroy {
|
||||
printingRequested = false;
|
||||
submited = false;
|
||||
@Output() print: EventEmitter<string> = new EventEmitter();
|
||||
@ViewChild('printBtn') printBtn: ButtonComponent;
|
||||
@ViewChild('printBtn', { static: false }) printBtn: ButtonComponent;
|
||||
|
||||
constructor(
|
||||
private remissionService: RemissionService,
|
||||
|
||||
@@ -22,7 +22,7 @@ export class RemissionShippingDocumentCardComponent {
|
||||
|
||||
@Output() updateShippingDocument = new EventEmitter<void>();
|
||||
|
||||
@ViewChild('removeProductDialog')
|
||||
@ViewChild('removeProductDialog', { static: false })
|
||||
removeProductDialog: RemissionRemoveProductFromShippingDocumentDialogComponent;
|
||||
|
||||
showRemoveProductDialog = false;
|
||||
|
||||
@@ -45,7 +45,7 @@ export class RemissionShippingDocumentComponent implements OnInit, OnDestroy {
|
||||
|
||||
@Output() updateShippingDocument = new EventEmitter<void>();
|
||||
|
||||
@ViewChild('remissionConfirmDeleteDialog')
|
||||
@ViewChild('remissionConfirmDeleteDialog', { static: false })
|
||||
remissionConfirmDeleteDialog: RemissionConfirmDeleteShippingDocumentDialogComponent;
|
||||
|
||||
destroy$ = new Subject();
|
||||
|
||||
@@ -28,9 +28,9 @@ export class RemissionAddProductToRemissionListComponent
|
||||
implements OnInit, AfterViewInit {
|
||||
errorMessage: string;
|
||||
|
||||
@ViewChild('input') input: ElementRef;
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('invalidBarcodeDialog')
|
||||
@ViewChild('input', { static: false }) input: ElementRef;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
@ViewChild('invalidBarcodeDialog', { static: false })
|
||||
invalidBarcodeDialog: RemissionScanProductInvalidBarcodeComponent;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -62,10 +62,10 @@ export class RemissionDetailsComponent
|
||||
isIPad = false;
|
||||
showScanner = false;
|
||||
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('remissionConfirmDeleteDialog')
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
@ViewChild('remissionConfirmDeleteDialog', { static: false })
|
||||
remissionConfirmDeleteDialog: RemissionConfirmDeleteShippingDocumentDialogComponent;
|
||||
@ViewChild('scanner')
|
||||
@ViewChild('scanner', { static: false })
|
||||
scannerComponent: RemissionContainerScannerScanditComponent;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -45,12 +45,12 @@ export class RemissionFinishComponent implements OnInit, OnDestroy {
|
||||
currentRemissionProcess$: Observable<RemissionProcess>;
|
||||
@Select(RemissionSelectors.getRemissionProcessStatuses)
|
||||
remissionProcessStatuses$: Observable<RemissionProcessStatuses>;
|
||||
@ViewChild('invalidBarcodeDialog')
|
||||
@ViewChild('invalidBarcodeDialog', { static: false })
|
||||
invalidBarcodeDialog: RemissionScanProductInvalidBarcodeComponent;
|
||||
@ViewChild('invalidDocumentDialog')
|
||||
@ViewChild('invalidDocumentDialog', { static: false })
|
||||
invalidDocumentDialog: RemissionScanShippingDocumentClosedComponent;
|
||||
@ViewChild('printModal') printModal: PrinterSelectionComponent;
|
||||
@ViewChild('confirmScanModal') confirmScanModal: RemissionScanConfirmationDialogComponent;
|
||||
@ViewChild('printModal', { static: false }) printModal: PrinterSelectionComponent;
|
||||
@ViewChild('confirmScanModal', { static: false }) confirmScanModal: RemissionScanConfirmationDialogComponent;
|
||||
pageStatus: RemissionFinishingProcessStatus;
|
||||
suppliers: {
|
||||
leftSupplier: RemissionSupplier;
|
||||
|
||||
@@ -29,9 +29,9 @@ import { UpdateShippingDocuent } from 'apps/sales/src/app/core/store/actions/rem
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class RemissionProductListComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
@ViewChild('toTopToBottomActions')
|
||||
@ViewChild('toTopToBottomActions', { static: false })
|
||||
toTopToBottomActions: RemissionToTopToBottomActionsComponent;
|
||||
@ViewChild('remissionList') remissionList: RemissionListComponent;
|
||||
@ViewChild('remissionList', { static: false }) remissionList: RemissionListComponent;
|
||||
@ViewChildren('remissionListHitsRef') remissionHitsRef: QueryList<ElementRef>;
|
||||
|
||||
@Input() remissionListContainer: HTMLElement;
|
||||
|
||||
@@ -67,15 +67,15 @@ export class RemissionListCreateComponent implements OnInit, OnDestroy {
|
||||
remissionListHits$: Observable<number>;
|
||||
listLoaded$: Observable<boolean>;
|
||||
|
||||
@ViewChild('toTopToBottomActions')
|
||||
@ViewChild('toTopToBottomActions', { static: false })
|
||||
toTopToBottomActions: RemissionToTopToBottomActionsComponent;
|
||||
@ViewChild('remissionList') remissionList: RemissionListComponent;
|
||||
@ViewChild('remissionListContainer') remissionListContainer: ElementRef;
|
||||
@ViewChild('remissionStartDialog')
|
||||
@ViewChild('remissionList', { static: false }) remissionList: RemissionListComponent;
|
||||
@ViewChild('remissionListContainer', { static: false }) remissionListContainer: ElementRef;
|
||||
@ViewChild('remissionStartDialog', { static: false })
|
||||
remissionStartDialog: RemissionStartDialogComponent;
|
||||
@ViewChild('addProductToRemissionDialog')
|
||||
@ViewChild('addProductToRemissionDialog', { static: false })
|
||||
addProductToRemissionDialog: AddProductToRemissionDialogComponent;
|
||||
@ViewChild('invalidBarcodeDialog')
|
||||
@ViewChild('invalidBarcodeDialog', { static: false })
|
||||
invalidBarcodeDialog: RemissionScanProductInvalidBarcodeComponent;
|
||||
destroy$ = new Subject();
|
||||
|
||||
|
||||
@@ -62,9 +62,9 @@ export class RemissionListStartedComponent implements OnInit, OnDestroy {
|
||||
containerScroll$ = new BehaviorSubject<Event>(undefined);
|
||||
isCompleteButtomEnabled$: Observable<boolean>;
|
||||
|
||||
@ViewChild('remissionList') remissionList: RemissionListComponent;
|
||||
@ViewChild('remissionListContainer') remissionListContainer: ElementRef;
|
||||
@ViewChild('shippingDocumentContainer') shippingDocumentContainer: ElementRef;
|
||||
@ViewChild('remissionList', { static: false }) remissionList: RemissionListComponent;
|
||||
@ViewChild('remissionListContainer', { static: false }) remissionListContainer: ElementRef;
|
||||
@ViewChild('shippingDocumentContainer', { static: false }) shippingDocumentContainer: ElementRef;
|
||||
@ViewChildren('shippingDocumentContainer')
|
||||
shippingDocumentRef: QueryList<ElementRef>;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export class ShippingDocumentCreationComponent implements OnInit {
|
||||
@Select(RemissionSelectors.allowScanningShippingDocument)
|
||||
enableScan$: Observable<boolean>;
|
||||
|
||||
@ViewChild('invalidBarcodeDialog')
|
||||
@ViewChild('invalidBarcodeDialog', { static: false })
|
||||
invalidBarcodeDialog: RemissionScanProductInvalidBarcodeComponent;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -21,7 +21,7 @@ import { OrderItemListItemDTO, ListResponseArgsOfOrderItemListItemDTO } from '@s
|
||||
styleUrls: ['barcode-search.component.scss'],
|
||||
})
|
||||
export class ShelfBarcodeSearchComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('scanner') scanner: BarcodeScannerScanditComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: BarcodeScannerScanditComponent;
|
||||
scanningVisible = false;
|
||||
destroy$ = new Subject();
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export class ShelfTextSearchComponent implements OnInit, AfterViewInit, OnDestro
|
||||
private iPadDetected = false;
|
||||
private iPadEventRecieved = false;
|
||||
|
||||
@ViewChild('searchInput') searchInput: SearchInputComponent;
|
||||
@ViewChild('searchInput', { static: false }) searchInput: SearchInputComponent;
|
||||
|
||||
destroy$ = new Subject();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Subject, of, Observable } from 'rxjs';
|
||||
|
||||
import { Component, OnDestroy, OnInit, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef, AfterContentChecked } from '@angular/core';
|
||||
import { Component, OnDestroy, OnInit, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef, AfterContentChecked, ViewRef } from '@angular/core';
|
||||
import { Store } from '@ngxs/store';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { switchMap, takeUntil, take, catchError, concatMap, filter } from 'rxjs/operators';
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from 'apps/sales/src/app/core/store/actions/breadcrumb.actions';
|
||||
import { Breadcrumb } from 'apps/sales/src/app/core/models/breadcrumb.model';
|
||||
import { ChangeCurrentRoute } from 'apps/sales/src/app/core/store/actions/process.actions';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
import { objectNotNull } from 'apps/sales/src/app/core/utils/app.utils';
|
||||
import { isNullOrUndefined } from 'util';
|
||||
import { CustomerService } from 'apps/sales/src/app/core/services/customer.service';
|
||||
@@ -40,7 +40,7 @@ export const ARRIVED = 128;
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ShelfOrderDetailsComponent implements OnInit, OnDestroy, AfterContentChecked {
|
||||
@ViewChild('partialModal') partialModal: ShelfPartialCollectionModalComponent;
|
||||
@ViewChild('partialModal', { static: false }) partialModal: ShelfPartialCollectionModalComponent;
|
||||
destroy$ = new Subject();
|
||||
|
||||
orderDTO: OrderDTO;
|
||||
@@ -794,7 +794,7 @@ export class ShelfOrderDetailsComponent implements OnInit, OnDestroy, AfterConte
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef_).destroyed) {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef).destroyed) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -22,7 +22,7 @@ import { CollectingShelfSelectors } from 'apps/sales/src/app/core/store/selector
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ShelfSearchResultsComponent implements OnInit, OnDestroy {
|
||||
@ViewChild('scroller') scroller: CdkVirtualScrollViewport;
|
||||
@ViewChild('scroller', { static: false }) scroller: CdkVirtualScrollViewport;
|
||||
|
||||
shelfSearch: ShelfSearch;
|
||||
ds: ShelfSearchDataSource;
|
||||
|
||||
@@ -19,10 +19,10 @@ import { RemissionStartedLeaveDialogComponent } from '../../modules/remission/co
|
||||
styleUrls: ['./content.component.scss']
|
||||
})
|
||||
export class ContentPageComponent implements OnInit, OnDestroy {
|
||||
@ViewChild(ErrorComponent) element: ErrorComponent;
|
||||
@ViewChild(RemissionStartedLeaveDialogComponent) remissionStartedLeaveDialog: RemissionStartedLeaveDialogComponent;
|
||||
@ViewChild(RemissionLeaveDialogComponent) remissionLeavingDialog: RemissionLeaveDialogComponent;
|
||||
@ViewChild(RemissionReminderDialogComponent) remissionReminderDialog: RemissionReminderDialogComponent;
|
||||
@ViewChild(ErrorComponent, { static: false }) element: ErrorComponent;
|
||||
@ViewChild(RemissionStartedLeaveDialogComponent, { static: false }) remissionStartedLeaveDialog: RemissionStartedLeaveDialogComponent;
|
||||
@ViewChild(RemissionLeaveDialogComponent, { static: false }) remissionLeavingDialog: RemissionLeaveDialogComponent;
|
||||
@ViewChild(RemissionReminderDialogComponent, { static: false }) remissionReminderDialog: RemissionReminderDialogComponent;
|
||||
module: ModuleSwitcher = ModuleSwitcher.Customer;
|
||||
destroy$ = new Subject();
|
||||
showBreadcrumbs$: Observable<boolean>;
|
||||
|
||||
@@ -28,7 +28,7 @@ export class CollectingShelfScannerScanditComponent implements AfterViewInit, On
|
||||
enabledSymbologies: [Barcode.Symbology.CODE128, Barcode.Symbology.EAN13]
|
||||
});
|
||||
|
||||
@ViewChild('scanner') scanner: ScanditSdkBarcodePickerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ScanditSdkBarcodePickerComponent;
|
||||
log = 'tst';
|
||||
constructor(private cameraError: CameraErrorHandler, private cdRef: ChangeDetectorRef, private native: NativeContainerService) {
|
||||
this.webview = this.native.isUiWebview();
|
||||
|
||||
@@ -28,7 +28,7 @@ export class CustomerCardScannerScanditComponent implements AfterViewInit, OnDes
|
||||
enabledSymbologies: [Barcode.Symbology.CODE128, Barcode.Symbology.EAN13],
|
||||
});
|
||||
|
||||
@ViewChild('scanner') scanner: ScanditSdkBarcodePickerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ScanditSdkBarcodePickerComponent;
|
||||
log = 'tst';
|
||||
constructor(private cameraError: CameraErrorHandler, private cdRef: ChangeDetectorRef, private native: NativeContainerService) {
|
||||
this.webview = this.native.isUiWebview();
|
||||
|
||||
@@ -28,7 +28,7 @@ export class RemissionContainerScannerScanditComponent implements AfterViewInit,
|
||||
enabledSymbologies: [Barcode.Symbology.CODE128, Barcode.Symbology.EAN13]
|
||||
});
|
||||
|
||||
@ViewChild('scanner') scanner: ScanditSdkBarcodePickerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ScanditSdkBarcodePickerComponent;
|
||||
log = 'tst';
|
||||
constructor(private cameraError: CameraErrorHandler, private cdRef: ChangeDetectorRef, private native: NativeContainerService) {
|
||||
this.webview = this.native.isUiWebview().isNative;
|
||||
|
||||
@@ -28,7 +28,7 @@ export class RemissionProductScannerScanditComponent implements AfterViewInit, O
|
||||
enabledSymbologies: [Barcode.Symbology.CODE128, Barcode.Symbology.EAN13]
|
||||
});
|
||||
|
||||
@ViewChild('scanner') scanner: ScanditSdkBarcodePickerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ScanditSdkBarcodePickerComponent;
|
||||
log = 'tst';
|
||||
constructor(private cameraError: CameraErrorHandler, private cdRef: ChangeDetectorRef, private native: NativeContainerService) {
|
||||
this.webview = this.native.isUiWebview();
|
||||
|
||||
@@ -69,7 +69,7 @@ export class RemissionShippingDocumentScannerScanditComponent
|
||||
|
||||
public settings: ScanSettings;
|
||||
|
||||
@ViewChild('scanner') scanner: ScanditSdkBarcodePickerComponent;
|
||||
@ViewChild('scanner', { static: false }) scanner: ScanditSdkBarcodePickerComponent;
|
||||
log = 'tst';
|
||||
constructor(
|
||||
private cameraError: CameraErrorHandler,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { AfterViewInit, Component, ViewChild } from '@angular/core';
|
||||
template: ` <signature-pad [options]="signaturePadOptions" (onBeginEvent)="drawStart()" (onEndEvent)="drawComplete()"></signature-pad> `,
|
||||
})
|
||||
export class SignaturePadComponent implements AfterViewInit {
|
||||
@ViewChild(SignaturePad) signaturePad: SignaturePad;
|
||||
@ViewChild(SignaturePad, { static: false }) signaturePad: SignaturePad;
|
||||
|
||||
public signaturePadOptions: Object = {
|
||||
// passed through to szimek/signature_pad constructor
|
||||
|
||||
@@ -4,9 +4,10 @@ import {
|
||||
Output,
|
||||
EventEmitter,
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef
|
||||
ChangeDetectorRef,
|
||||
ViewRef
|
||||
} from '@angular/core';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-button',
|
||||
@@ -77,7 +78,7 @@ export class ButtonComponent {
|
||||
if (
|
||||
this.cdrf !== null &&
|
||||
this.cdrf !== undefined &&
|
||||
!(this.cdrf as ViewRef_).destroyed
|
||||
!(this.cdrf as ViewRef).destroyed
|
||||
) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, ChangeDetectionStrategy, Input, ChangeDetectorRef, Output, EventEmitter } from '@angular/core';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
import { Component, OnInit, ChangeDetectionStrategy, Input, ChangeDetectorRef, Output, EventEmitter, ViewRef } from '@angular/core';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'lib-date-picker',
|
||||
@@ -148,7 +148,7 @@ export class DatePickerComponent implements OnInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef_).destroyed) {
|
||||
if (this.cdr !== null && this.cdr !== undefined && !(this.cdr as ViewRef).destroyed) {
|
||||
this.cdr.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -27,8 +27,8 @@ export class DeleteDropdownFixedComponent implements AfterViewInit, OnInit, Afte
|
||||
@Output() valueChanges: EventEmitter<number> = new EventEmitter();
|
||||
@Output() delete: EventEmitter<boolean> = new EventEmitter();
|
||||
@Output() switch: EventEmitter<boolean> = new EventEmitter();
|
||||
@ViewChild('customInput') customInput: ElementRef;
|
||||
@ViewChild('selectedDiv') selectedDiv: ElementRef;
|
||||
@ViewChild('customInput', { static: false }) customInput: ElementRef;
|
||||
@ViewChild('selectedDiv', { static: false }) selectedDiv: ElementRef;
|
||||
isOpen = false;
|
||||
inputValue: number;
|
||||
showInput = false;
|
||||
|
||||
@@ -28,8 +28,8 @@ export class DeleteDropdownComponent implements AfterViewInit, AfterViewChecked,
|
||||
@Output() valueChanges: EventEmitter<number> = new EventEmitter();
|
||||
@Output() delete: EventEmitter<boolean> = new EventEmitter();
|
||||
@Output() switch: EventEmitter<boolean> = new EventEmitter();
|
||||
@ViewChild('customInput') customInput: ElementRef;
|
||||
@ViewChild('changeButton') changeButton: ButtonComponent;
|
||||
@ViewChild('customInput', { static: false }) customInput: ElementRef;
|
||||
@ViewChild('changeButton', { static: false }) changeButton: ButtonComponent;
|
||||
shouldFocus = false;
|
||||
timer: any;
|
||||
|
||||
|
||||
@@ -41,8 +41,8 @@ export class DropdownComponent {
|
||||
isOpen = false;
|
||||
absolute = false;
|
||||
top = 152 * this.index;
|
||||
@ViewChild('slectedItem') element: ElementRef;
|
||||
@ViewChild('container') container: ElementRef;
|
||||
@ViewChild('slectedItem', { static: false }) element: ElementRef;
|
||||
@ViewChild('container', { static: false }) container: ElementRef;
|
||||
|
||||
constructor(private cdrf: ChangeDetectorRef) { }
|
||||
|
||||
|
||||
@@ -8,9 +8,10 @@ import {
|
||||
AfterViewInit,
|
||||
ChangeDetectionStrategy,
|
||||
OnInit,
|
||||
ChangeDetectorRef
|
||||
ChangeDetectorRef,
|
||||
ViewRef
|
||||
} from '@angular/core';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-input',
|
||||
@@ -19,7 +20,7 @@ import { ViewRef_ } from '@angular/core/src/view';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class InputComponent implements OnInit, AfterViewInit {
|
||||
@ViewChild('input') input: ElementRef;
|
||||
@ViewChild('input', { static: false }) input: ElementRef;
|
||||
@Input() type: string;
|
||||
@Input() id: string;
|
||||
@Input() value: string = null;
|
||||
@@ -68,7 +69,7 @@ export class InputComponent implements OnInit, AfterViewInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef_).destroyed) {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef).destroyed) {
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -33,7 +33,7 @@ export class SearchDropdownComponent implements OnInit {
|
||||
@Output() search: EventEmitter<string> = new EventEmitter();
|
||||
isOpen = false;
|
||||
absolute = false;
|
||||
@ViewChild('slectedItem') element: ElementRef;
|
||||
@ViewChild('slectedItem', { static: false }) element: ElementRef;
|
||||
inputValue: string;
|
||||
@Input() load = false;
|
||||
loading = false;
|
||||
|
||||
@@ -7,10 +7,11 @@ import {
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef
|
||||
ChangeDetectorRef,
|
||||
ViewRef
|
||||
} from '@angular/core';
|
||||
import { AutocompleteResults } from './models/autocomplete-results.model';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
@@ -69,7 +70,7 @@ export class SearchInputComponent implements OnInit {
|
||||
@Output() search = new EventEmitter();
|
||||
@Output() keypress = new EventEmitter();
|
||||
@Output() empty = new EventEmitter();
|
||||
@ViewChild('search') searchInput: ElementRef;
|
||||
@ViewChild('search', { static: false }) searchInput: ElementRef;
|
||||
loading = false;
|
||||
constructor(private cdrf: ChangeDetectorRef) { }
|
||||
|
||||
@@ -133,7 +134,7 @@ export class SearchInputComponent implements OnInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef_).destroyed) {
|
||||
if (this.cdrf !== null && this.cdrf !== undefined && !(this.cdrf as ViewRef).destroyed) {
|
||||
this.cdrf.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, OnInit, ChangeDetectorRef } from '@angular/core';
|
||||
import { ViewRef_ } from '@angular/core/src/view';
|
||||
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, OnInit, ChangeDetectorRef, ViewRef } from '@angular/core';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-select',
|
||||
@@ -71,7 +71,7 @@ export class SelectComponent implements OnInit {
|
||||
|
||||
detectChanges() {
|
||||
setTimeout(() => {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef_).destroyed) {
|
||||
if (this.cdRef !== null && this.cdRef !== undefined && !(this.cdRef as ViewRef).destroyed) {
|
||||
this.cdRef.detectChanges();
|
||||
}
|
||||
}, 0);
|
||||
|
||||
8904
package-lock.json
generated
8904
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
39
package.json
39
package.json
@@ -37,18 +37,18 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "~7.2.12",
|
||||
"@angular/animations": "~8.2.14",
|
||||
"@angular/cdk": "^7.0.2",
|
||||
"@angular/cdk-experimental": "^7.3.7",
|
||||
"@angular/common": "^7.2.12",
|
||||
"@angular/compiler": "~7.2.12",
|
||||
"@angular/core": "~7.2.12",
|
||||
"@angular/forms": "~7.2.12",
|
||||
"@angular/platform-browser": "~7.2.12",
|
||||
"@angular/platform-browser-dynamic": "~7.2.12",
|
||||
"@angular/common": "^8.2.14",
|
||||
"@angular/compiler": "~8.2.14",
|
||||
"@angular/core": "~8.2.14",
|
||||
"@angular/forms": "~8.2.14",
|
||||
"@angular/platform-browser": "~8.2.14",
|
||||
"@angular/platform-browser-dynamic": "~8.2.14",
|
||||
"@angular/pwa": "^0.13.4",
|
||||
"@angular/router": "~7.2.12",
|
||||
"@angular/service-worker": "~7.2.12",
|
||||
"@angular/router": "~8.2.14",
|
||||
"@angular/service-worker": "~8.2.14",
|
||||
"@cmf/catalog-api": "^0.1.31",
|
||||
"@cmf/core": "^0.1.31",
|
||||
"@cmf/inventory-api": "^0.1.31",
|
||||
@@ -74,22 +74,22 @@
|
||||
"ngx-perfect-scrollbar": "^7.2.1",
|
||||
"ngx-toggle-switch": "^2.0.5",
|
||||
"node-sass": "^4.12.0",
|
||||
"rxjs": "~6.4.0",
|
||||
"rxjs": "~6.5.5",
|
||||
"scandit-sdk": "^4.1.1",
|
||||
"scandit-sdk-angular": "^2.0.0",
|
||||
"smoothscroll-polyfill": "^0.4.4",
|
||||
"socket.io": "^2.2.0",
|
||||
"tslib": "^1.9.0",
|
||||
"tslib": "^1.13.0",
|
||||
"uglify-js": "^3.4.9",
|
||||
"web-animations-js": "^2.3.2",
|
||||
"zone.js": "~0.8.29"
|
||||
"zone.js": "~0.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^0.13.8",
|
||||
"@angular-devkit/build-ng-packagr": "^0.12.4",
|
||||
"@angular/cli": "^7.2.4",
|
||||
"@angular/compiler-cli": "^7.2.12",
|
||||
"@angular/language-service": "~7.2.12",
|
||||
"@angular-devkit/build-angular": "^0.803.26",
|
||||
"@angular-devkit/build-ng-packagr": "^0.803.26",
|
||||
"@angular/cli": "^8.3.26",
|
||||
"@angular/compiler-cli": "^8.2.14",
|
||||
"@angular/language-service": "~8.2.14",
|
||||
"@ngxs/devtools-plugin": "^3.4.1",
|
||||
"@ngxs/logger-plugin": "^3.4.1",
|
||||
"@types/jasmine": "^2.8.16",
|
||||
@@ -103,14 +103,13 @@
|
||||
"karma-coverage-istanbul-reporter": "^2.0.5",
|
||||
"karma-jasmine": "~1.1.2",
|
||||
"karma-jasmine-html-reporter": "^0.2.2",
|
||||
"ng-packagr": "^4.7.1",
|
||||
"ng-packagr": "^5.7.1",
|
||||
"ng-swagger-gen": "^1.5.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"protractor": "~5.4.0",
|
||||
"ts-node": "~7.0.0",
|
||||
"tsickle": "^0.34.3",
|
||||
"tslib": "^1.9.0",
|
||||
"tslint": "~5.11.0",
|
||||
"typescript": "~3.2.4"
|
||||
"typescript": "~3.5.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user