@colijnit/transaction 12.0.4 → 12.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
- package/app/component/core/base/transaction-base.component.d.ts +38 -0
- package/app/component/core/directive/template-wrapper.directive.d.ts +13 -0
- package/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
- package/app/component/service-order/ione-service-order-module.d.ts +2 -0
- package/app/component/service-order/ione-service-order.component.d.ts +25 -0
- package/app/component/service-order/service-order.component.d.ts +48 -0
- package/app/component/service-order/summary/transaction-article-summary.component.d.ts +17 -0
- package/app/component/service-order/summary/transaction-delivery-summary.component.d.ts +20 -0
- package/app/component/service-order/summary/transaction-order-summary.component.d.ts +16 -0
- package/app/component/service-order/summary/transaction-payment-info.component.d.ts +14 -0
- package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts +7 -0
- package/app/component/service-order/summary/transaction-product-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-status.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-summary-block.component.d.ts +16 -0
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +24 -0
- package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts +15 -0
- package/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.d.ts +16 -0
- package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts +25 -0
- package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +6 -0
- package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts +22 -0
- package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts +29 -0
- package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts +11 -0
- package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts +26 -0
- package/app/service/ione-connector-adapter.service.d.ts +2 -0
- package/app/service/transaction-event.service.d.ts +5 -0
- package/app/service/transaction.service.d.ts +5 -0
- package/bundles/colijnit-transaction.umd.js +1656 -47
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +23 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +2 -2
- package/esm2015/app/component/checkout/ione-checkout.module.js +3 -5
- package/esm2015/app/component/common/icon/icon.component.js +2 -1
- package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +39 -0
- package/esm2015/app/component/core/base/transaction-base.component.js +123 -0
- package/esm2015/app/component/core/directive/template-wrapper.directive.js +69 -0
- package/esm2015/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/app/component/service-order/ione-service-order-module.js +103 -0
- package/esm2015/app/component/service-order/ione-service-order.component.js +96 -0
- package/esm2015/app/component/service-order/service-order.component.js +166 -0
- package/esm2015/app/component/service-order/summary/transaction-article-summary.component.js +55 -0
- package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +59 -0
- package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +43 -0
- package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +35 -0
- package/esm2015/app/component/service-order/summary/transaction-product-contract-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-product-summary.component.js +41 -0
- package/esm2015/app/component/service-order/summary/transaction-service-status.component.js +37 -0
- package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-summary-block.component.js +53 -0
- package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +183 -0
- package/esm2015/app/component/service-order/transaction-header-block/transaction-header-block.component.js +83 -0
- package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +76 -0
- package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +71 -0
- package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +36 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-address.component.js +116 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-edit.component.js +225 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.js +172 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.js +120 -0
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +3 -7
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
- package/esm2015/app/service/ione-connector-adapter.service.js +39 -10
- package/esm2015/app/service/transaction-event.service.js +4 -1
- package/esm2015/app/service/transaction.service.js +51 -15
- package/esm2015/assets/dictionary/text.properties.js +33 -1
- package/esm2015/colijnit-transaction.js +24 -2
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +2077 -33
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +3 -3
- package/public_api.d.ts +2 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { ButtonComponent } from "@colijnit/corecomponents_v12";
|
|
3
|
+
export declare class DefaultOkCancelButtonsComponent {
|
|
4
|
+
okDisabled: boolean;
|
|
5
|
+
hideCancel: boolean;
|
|
6
|
+
hideOk: boolean;
|
|
7
|
+
okLabel: string;
|
|
8
|
+
okClick: EventEmitter<MouseEvent>;
|
|
9
|
+
cancelClick: EventEmitter<MouseEvent>;
|
|
10
|
+
okButtonComp: ButtonComponent;
|
|
11
|
+
constructor();
|
|
12
|
+
onOkClick(event: MouseEvent): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
2
|
+
import { TransactionInfoResponse } from "@colijnit/transactionapi/build/model/transaction-info-response.bo";
|
|
3
|
+
import { TransactionInfo } from "@colijnit/transactionapi/build/model/transaction-info.bo";
|
|
4
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
5
|
+
import { TransactionTotal } from "@colijnit/transactionapi/build/model/transaction-total.bo";
|
|
6
|
+
import { RelationListObject } from "@colijnit/transactionapi/build/model/relation-list-object.bo";
|
|
7
|
+
import { CustomerFullObject } from "@colijnit/transactionapi/build/model/customer-full-object.bo";
|
|
8
|
+
import { SlaProduct } from "@colijnit/transactionapi/build/model/sla-product.bo";
|
|
9
|
+
export declare abstract class TransactionBaseComponent {
|
|
10
|
+
protected readonly service: TransactionService;
|
|
11
|
+
set transaction(value: TransactionInfoResponse);
|
|
12
|
+
get transaction(): TransactionInfoResponse;
|
|
13
|
+
get transactionInfo(): TransactionInfo;
|
|
14
|
+
get transactionLines(): TransactionLineInfo[];
|
|
15
|
+
get transactionTotal(): TransactionTotal;
|
|
16
|
+
get isService(): boolean;
|
|
17
|
+
set relationId(value: number);
|
|
18
|
+
get relationId(): number;
|
|
19
|
+
set customerId(value: number);
|
|
20
|
+
get customerId(): number;
|
|
21
|
+
set product(value: SlaProduct);
|
|
22
|
+
get product(): SlaProduct;
|
|
23
|
+
get isNew(): boolean;
|
|
24
|
+
relation: RelationListObject;
|
|
25
|
+
customer: CustomerFullObject;
|
|
26
|
+
_isService: boolean;
|
|
27
|
+
basedOnProduct: boolean;
|
|
28
|
+
private _relationId;
|
|
29
|
+
private _customerId;
|
|
30
|
+
private _transaction;
|
|
31
|
+
private _product;
|
|
32
|
+
constructor(service: TransactionService);
|
|
33
|
+
transactionSet(): void;
|
|
34
|
+
productSet(): void;
|
|
35
|
+
private _retrieveCustomer;
|
|
36
|
+
private _retrieveRelation;
|
|
37
|
+
private _setBasedOnProduct;
|
|
38
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges, TemplateRef, ViewContainerRef } from "@angular/core";
|
|
2
|
+
export declare class TemplateWrapperDirective implements OnDestroy, OnChanges {
|
|
3
|
+
protected viewContainer: ViewContainerRef;
|
|
4
|
+
templateWrapper: TemplateRef<any> | null;
|
|
5
|
+
templateWrapperContext: Object | null;
|
|
6
|
+
private _viewRef;
|
|
7
|
+
constructor(viewContainer: ViewContainerRef);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
private _shouldRecreateView;
|
|
11
|
+
private _hasContextShapeChanged;
|
|
12
|
+
private _updateExistingContext;
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { OptionsService } from "../../service/options.service";
|
|
3
|
+
import { DictionaryService } from "../../service/dictionary.service";
|
|
4
|
+
import { IOneConnectorAdapterService } from "../../service/ione-connector-adapter.service";
|
|
5
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
6
|
+
export declare class IoneServiceOrderComponent implements OnInit, OnDestroy {
|
|
7
|
+
_changeDetector: ChangeDetectorRef;
|
|
8
|
+
_optionsService: OptionsService;
|
|
9
|
+
_connector: IOneConnectorAdapterService;
|
|
10
|
+
_dictionary: DictionaryService;
|
|
11
|
+
_service: TransactionService;
|
|
12
|
+
set orderId(value: number);
|
|
13
|
+
set options(value: any);
|
|
14
|
+
upAndLoaded: boolean;
|
|
15
|
+
private _subscriptions;
|
|
16
|
+
private _remoteOptions;
|
|
17
|
+
private _publicOptions;
|
|
18
|
+
private _orderId;
|
|
19
|
+
constructor(_changeDetector: ChangeDetectorRef, _optionsService: OptionsService, _connector: IOneConnectorAdapterService, _dictionary: DictionaryService, _service: TransactionService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
private _handleSettingsLoaded;
|
|
23
|
+
private _initConnection;
|
|
24
|
+
private _getTransactionById;
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { AnimationTriggerMetadata } from "@angular/animations";
|
|
3
|
+
import { Scroll } from "@angular/router";
|
|
4
|
+
import { TransactionService } from "../../service/transaction.service";
|
|
5
|
+
import { TransactionEventService } from "../../service/transaction-event.service";
|
|
6
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
7
|
+
import { ContentViewMode } from "../../enum/content-view-mode.enum";
|
|
8
|
+
import { CoreComponentsIcon, IconCacheService } from "@colijnit/corecomponents_v12";
|
|
9
|
+
import { ContextMenuItemModel } from "@syncfusion/ej2-angular-grids";
|
|
10
|
+
import { TransactionBaseComponent } from "../core/base/transaction-base.component";
|
|
11
|
+
export declare class ServiceOrderComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
12
|
+
service: TransactionService;
|
|
13
|
+
transactionEvents: TransactionEventService;
|
|
14
|
+
iconCacheService: IconCacheService;
|
|
15
|
+
private _transactionArticleTextComponent;
|
|
16
|
+
static readonly FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR = 50;
|
|
17
|
+
static readonly FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR = 350;
|
|
18
|
+
readonly iconThickLines: CoreComponentsIcon;
|
|
19
|
+
readonly iconThinLines: CoreComponentsIcon;
|
|
20
|
+
readonly iconOrder: CoreComponentsIcon;
|
|
21
|
+
readonly viewModes: typeof ContentViewMode;
|
|
22
|
+
popupHeaderLabel: string;
|
|
23
|
+
canPlanDelivery: boolean;
|
|
24
|
+
showTotals: boolean;
|
|
25
|
+
floatButtonRightPosition: number;
|
|
26
|
+
get inListView(): boolean;
|
|
27
|
+
get inGridView(): boolean;
|
|
28
|
+
contextMenuItems: ContextMenuItemModel[];
|
|
29
|
+
isRouteOptimizationConfigured: boolean;
|
|
30
|
+
activeViewMode: ContentViewMode;
|
|
31
|
+
floatButtonSelected: boolean;
|
|
32
|
+
private _subs;
|
|
33
|
+
private _selectedTransLine;
|
|
34
|
+
constructor(service: TransactionService, transactionEvents: TransactionEventService, iconCacheService: IconCacheService);
|
|
35
|
+
ngOnInit(): Promise<void>;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
animationFn(): AnimationTriggerMetadata;
|
|
38
|
+
trackByFn(index: number, line: TransactionLineInfo): any;
|
|
39
|
+
handleRowsSelected(rows: any): void;
|
|
40
|
+
handlePlanningRequest(event: any): void;
|
|
41
|
+
moveFloatingButtonToLeft(): void;
|
|
42
|
+
moveFloatingButtonToRight(): void;
|
|
43
|
+
onOkClick(): void;
|
|
44
|
+
hide(): void;
|
|
45
|
+
floatButtonClick(): void;
|
|
46
|
+
get subHeader(): string;
|
|
47
|
+
hideOrderTotals(event: Scroll): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
export declare class TransactionArticleSummaryComponent extends TransactionBaseComponent {
|
|
4
|
+
service: TransactionService;
|
|
5
|
+
decimals: number;
|
|
6
|
+
forceReadonly: boolean;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
required: boolean;
|
|
11
|
+
imageDataUri: string;
|
|
12
|
+
get sourceArticleDescription(): string;
|
|
13
|
+
get sourceArticleNr(): string;
|
|
14
|
+
constructor(service: TransactionService);
|
|
15
|
+
private _getArticleImage;
|
|
16
|
+
transactionSet(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
4
|
+
import { CoreComponentsIcon } from "@colijnit/corecomponents_v12";
|
|
5
|
+
export declare class TransactionDeliverySummaryComponent extends TransactionBaseComponent {
|
|
6
|
+
service: TransactionService;
|
|
7
|
+
readonly deliveryTruck: CoreComponentsIcon.DeliveryTruck;
|
|
8
|
+
readonly calendarRoundOpen: CoreComponentsIcon.CalendarRoundOpen;
|
|
9
|
+
decimals: number;
|
|
10
|
+
forceReadonly: boolean;
|
|
11
|
+
hidden: boolean;
|
|
12
|
+
maxLength: number;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
deliveryMethodDescription: string;
|
|
16
|
+
canPlanDelivery: boolean;
|
|
17
|
+
planningRequestButtonClick: EventEmitter<any>;
|
|
18
|
+
constructor(service: TransactionService);
|
|
19
|
+
transactionSet(): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { CoreComponentsIcon } from "@colijnit/corecomponents_v12";
|
|
4
|
+
export declare class TransactionOrderSummaryComponent extends TransactionBaseComponent {
|
|
5
|
+
service: TransactionService;
|
|
6
|
+
readonly iconOrder: CoreComponentsIcon;
|
|
7
|
+
get sourceTransactionNr(): number;
|
|
8
|
+
get sourceTransactionDate(): Date;
|
|
9
|
+
decimals: number;
|
|
10
|
+
forceReadonly: boolean;
|
|
11
|
+
hidden: boolean;
|
|
12
|
+
maxLength: number;
|
|
13
|
+
readonly: boolean;
|
|
14
|
+
required: boolean;
|
|
15
|
+
constructor(service: TransactionService);
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { CoreComponentsIcon } from "@colijnit/corecomponents_v12";
|
|
4
|
+
export declare class TransactionPaymentInfoComponent extends TransactionBaseComponent {
|
|
5
|
+
service: TransactionService;
|
|
6
|
+
readonly euro: CoreComponentsIcon.Information;
|
|
7
|
+
decimals: number;
|
|
8
|
+
forceReadonly: boolean;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
maxLength: number;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
required: boolean;
|
|
13
|
+
constructor(service: TransactionService);
|
|
14
|
+
}
|
package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
export declare class TransactionProductContractSummaryComponent extends TransactionBaseComponent {
|
|
4
|
+
service: TransactionService;
|
|
5
|
+
constructor(service: TransactionService);
|
|
6
|
+
productSet(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
export declare class TransactionProductSummaryComponent extends TransactionBaseComponent {
|
|
4
|
+
service: TransactionService;
|
|
5
|
+
decimals: number;
|
|
6
|
+
forceReadonly: boolean;
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
objectConfigName: string;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
redErrorBackground: boolean;
|
|
12
|
+
required: boolean;
|
|
13
|
+
constructor(service: TransactionService);
|
|
14
|
+
productSet(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { CoreComponentsIcon } from "@colijnit/corecomponents_v12";
|
|
4
|
+
export declare class TransactionServiceStatusComponent extends TransactionBaseComponent {
|
|
5
|
+
service: TransactionService;
|
|
6
|
+
readonly iconPin: CoreComponentsIcon;
|
|
7
|
+
get serviceStatus(): string;
|
|
8
|
+
decimals: number;
|
|
9
|
+
forceReadonly: boolean;
|
|
10
|
+
hidden: boolean;
|
|
11
|
+
maxLength: number;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
constructor(service: TransactionService);
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { CoreComponentsIcon, IconCacheService } from "@colijnit/corecomponents_v12";
|
|
4
|
+
export declare class TransactionServiceSummaryComponent extends TransactionBaseComponent {
|
|
5
|
+
service: TransactionService;
|
|
6
|
+
iconCacheService: IconCacheService;
|
|
7
|
+
readonly iconWrench: CoreComponentsIcon;
|
|
8
|
+
decimals: number;
|
|
9
|
+
forceReadonly: boolean;
|
|
10
|
+
hidden: boolean;
|
|
11
|
+
maxLength: number;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
constructor(service: TransactionService, iconCacheService: IconCacheService);
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnDestroy, TemplateRef } from "@angular/core";
|
|
2
|
+
import { CoreComponentsIcon } from "@colijnit/corecomponents_v12";
|
|
3
|
+
export declare class TransactionSummaryBlockComponent implements OnDestroy {
|
|
4
|
+
readonly Icon: typeof CoreComponentsIcon;
|
|
5
|
+
hideAvatar: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: CoreComponentsIcon;
|
|
8
|
+
image: string;
|
|
9
|
+
headerLabel: string;
|
|
10
|
+
headerValue: string;
|
|
11
|
+
subHeaderLabel: string;
|
|
12
|
+
subHeaderValue: string;
|
|
13
|
+
subHeaderTemplate: TemplateRef<any>;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
}
|
package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BusinessObject } from "@colijnit/transactionapi/build/model/business-object";
|
|
2
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
4
|
+
export declare class TransactionArticleTextComponent extends TransactionBaseComponent {
|
|
5
|
+
service: TransactionService;
|
|
6
|
+
subHeader: string;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
floatButtonSelected: boolean;
|
|
9
|
+
overviewSelected: boolean;
|
|
10
|
+
editArtikelText: boolean;
|
|
11
|
+
collection: Object[];
|
|
12
|
+
articleTexts: Object[];
|
|
13
|
+
fields: Object;
|
|
14
|
+
constructor(service: TransactionService);
|
|
15
|
+
onOkClick(): void;
|
|
16
|
+
onPopupClose(): void;
|
|
17
|
+
hide(): void;
|
|
18
|
+
onOverview(): void;
|
|
19
|
+
onOkOverviewClick(): void;
|
|
20
|
+
hideOverview(): void;
|
|
21
|
+
onDetailLinkClick(bo: BusinessObject): void;
|
|
22
|
+
hideEditArtikelText(): void;
|
|
23
|
+
onOkEditArtikelTextClick(): void;
|
|
24
|
+
}
|
package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
4
|
+
import { TransactionRelationEditComponent } from "../transaction-relation/transaction-relation-edit.component";
|
|
5
|
+
export declare class TransactionHeaderBlockComponent extends TransactionBaseComponent {
|
|
6
|
+
service: TransactionService;
|
|
7
|
+
relationPopup: TransactionRelationEditComponent;
|
|
8
|
+
canPlanDelivery: boolean;
|
|
9
|
+
planningRequestButtonClick: EventEmitter<any>;
|
|
10
|
+
selectedTab: number;
|
|
11
|
+
showPopupTab(index: number): void;
|
|
12
|
+
constructor(service: TransactionService);
|
|
13
|
+
tabClick(): void;
|
|
14
|
+
transactionEditClose(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
3
|
+
import { StockStatus } from "@colijnit/transactionapi/build/enum/refcode/stock-status.enum";
|
|
4
|
+
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
5
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
6
|
+
export declare class TransactionOrderLineViewComponent implements OnInit {
|
|
7
|
+
private _service;
|
|
8
|
+
private _eventService;
|
|
9
|
+
line: TransactionLineInfo;
|
|
10
|
+
stock: StockStatus;
|
|
11
|
+
image: string;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
constructor(_service: TransactionService, _eventService: TransactionEventService);
|
|
14
|
+
private _loadArticleImage;
|
|
15
|
+
transactionLineClick(line: TransactionLineInfo): void;
|
|
16
|
+
}
|
package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { CoGridComponent } from "@colijnit/corecomponents_v12";
|
|
3
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
4
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
5
|
+
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
6
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
7
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
8
|
+
export declare class TransactionOrderLinesComponent extends TransactionBaseComponent {
|
|
9
|
+
service: TransactionService;
|
|
10
|
+
private _eventService;
|
|
11
|
+
private _dictionaryService;
|
|
12
|
+
static readonly MAX_TRANSACTION_LINES = 20;
|
|
13
|
+
transactionGrid: CoGridComponent<any>;
|
|
14
|
+
createServiceClick: EventEmitter<TransactionLineInfo>;
|
|
15
|
+
get pagingEnabled(): boolean;
|
|
16
|
+
nothingSelected: boolean;
|
|
17
|
+
columns: any[];
|
|
18
|
+
private _selectedTransLine;
|
|
19
|
+
private set selectedTransLine(value);
|
|
20
|
+
private get selectedTransLine();
|
|
21
|
+
constructor(service: TransactionService, _eventService: TransactionEventService, _dictionaryService: DictionaryService);
|
|
22
|
+
onRowClick(row: TransactionLineInfo): void;
|
|
23
|
+
onRowDeselect(event: any): void;
|
|
24
|
+
newServiceRequestClick(): void;
|
|
25
|
+
}
|
package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
2
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
3
|
+
export declare class TransactionOrderTotalsComponent extends TransactionBaseComponent {
|
|
4
|
+
protected readonly service: TransactionService;
|
|
5
|
+
constructor(service: TransactionService);
|
|
6
|
+
}
|
package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { Address } from "@colijnit/transactionapi/build/model/address.bo";
|
|
3
|
+
import { Country } from "@colijnit/transactionapi/build/model/country.bo";
|
|
4
|
+
import { IOneConnectorAdapterService } from "../../../service/ione-connector-adapter.service";
|
|
5
|
+
import { DictionaryService } from "../../../service/dictionary.service";
|
|
6
|
+
export declare class TransactionRelationAddressComponent implements OnInit {
|
|
7
|
+
private _dictionary;
|
|
8
|
+
private _connector;
|
|
9
|
+
label: string;
|
|
10
|
+
set address(address: Address);
|
|
11
|
+
get address(): Address;
|
|
12
|
+
countries: Country[];
|
|
13
|
+
fields: Object;
|
|
14
|
+
constructor(_dictionary: DictionaryService, _connector: IOneConnectorAdapterService);
|
|
15
|
+
postalCodeCheckErrorMessage: string;
|
|
16
|
+
private _prevPostalCodeForCheck;
|
|
17
|
+
private _prevHouseNoForCheck;
|
|
18
|
+
private _address;
|
|
19
|
+
ngOnInit(): Promise<void>;
|
|
20
|
+
checkForPostalCodeCheckError(): Promise<void>;
|
|
21
|
+
changeHouseNo(): void;
|
|
22
|
+
}
|
package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { GenderType } from "@colijnit/transactionapi/build/enum/gender-type.enum";
|
|
3
|
+
import { Address } from "@colijnit/transactionapi/build/model/address.bo";
|
|
4
|
+
import { ContactOption } from "@colijnit/transactionapi/build/model/contact-option.bo";
|
|
5
|
+
import { RelationNameKind } from "@colijnit/transactionapi/build/enum/relation-name-kind.enum";
|
|
6
|
+
import { FormComponent } from "@colijnit/corecomponents_v12";
|
|
7
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
8
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
9
|
+
export declare class TransactionRelationEditComponent extends TransactionBaseComponent {
|
|
10
|
+
protected readonly service: TransactionService;
|
|
11
|
+
transactionRelationEditForm: FormComponent;
|
|
12
|
+
showPopup: boolean;
|
|
13
|
+
readonly relType: typeof RelationNameKind;
|
|
14
|
+
readonly genderType: typeof GenderType;
|
|
15
|
+
validSubmit: EventEmitter<void>;
|
|
16
|
+
invalidSubmit: EventEmitter<void>;
|
|
17
|
+
dateOfBirth: Date;
|
|
18
|
+
phoneNumber: ContactOption;
|
|
19
|
+
get readonly(): boolean;
|
|
20
|
+
constructor(service: TransactionService);
|
|
21
|
+
get subHeader(): string;
|
|
22
|
+
get editFirstAddress(): Address;
|
|
23
|
+
get firstAddress(): Address;
|
|
24
|
+
onPopupClose(): void;
|
|
25
|
+
changeRelationType(relationType: RelationNameKind): void;
|
|
26
|
+
changeGenderType(genderType: GenderType): void;
|
|
27
|
+
firstNameChange(firstName: string): void;
|
|
28
|
+
familyNameChange(familyName: string): void;
|
|
29
|
+
}
|
package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from "@angular/core";
|
|
2
|
+
import { Accordion } from "@syncfusion/ej2-navigations";
|
|
3
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
4
|
+
export declare class TransactionLineAccordionComponent implements OnInit {
|
|
5
|
+
protected changeDetector: ChangeDetectorRef;
|
|
6
|
+
transactionLine: TransactionLineInfo;
|
|
7
|
+
accordion: Accordion;
|
|
8
|
+
private _subscriptions;
|
|
9
|
+
constructor(changeDetector: ChangeDetectorRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
}
|
package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { Sidebar } from "@syncfusion/ej2-navigations";
|
|
3
|
+
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
4
|
+
import { TransactionBaseComponent } from "../../core/base/transaction-base.component";
|
|
5
|
+
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
6
|
+
import { TransactionService } from "../../../service/transaction.service";
|
|
7
|
+
import { CoreComponentsIcon, IconCacheService } from "@colijnit/corecomponents_v12";
|
|
8
|
+
export declare class TransactionSidebarRightComponent extends TransactionBaseComponent implements OnInit, OnDestroy {
|
|
9
|
+
service: TransactionService;
|
|
10
|
+
iconCacheService: IconCacheService;
|
|
11
|
+
private _eventService;
|
|
12
|
+
protected changeDetector: ChangeDetectorRef;
|
|
13
|
+
readonly iconDetailView: CoreComponentsIcon;
|
|
14
|
+
readonly iconArrowPointRight: CoreComponentsIcon;
|
|
15
|
+
readonly iconStock: CoreComponentsIcon;
|
|
16
|
+
readonly iconDocuments: CoreComponentsIcon;
|
|
17
|
+
ArrowPointRight: any;
|
|
18
|
+
test: string;
|
|
19
|
+
transactionLine: TransactionLineInfo;
|
|
20
|
+
defaultSidebar: Sidebar;
|
|
21
|
+
private _subscriptions;
|
|
22
|
+
constructor(service: TransactionService, iconCacheService: IconCacheService, _eventService: TransactionEventService, changeDetector: ChangeDetectorRef);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
sidebarCloseClick(): void;
|
|
26
|
+
}
|
|
@@ -28,6 +28,7 @@ export declare class IOneConnectorAdapterService {
|
|
|
28
28
|
private _countryList;
|
|
29
29
|
constructor();
|
|
30
30
|
connect(options: Options): Promise<void>;
|
|
31
|
+
disconnect(): Promise<void>;
|
|
31
32
|
getArticleFullObject(goodId: number): Promise<ArticleFullObject>;
|
|
32
33
|
getGoodIdFromArticleNr(articleNr: string): Promise<number>;
|
|
33
34
|
getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean): Promise<string>;
|
|
@@ -39,6 +40,7 @@ export declare class IOneConnectorAdapterService {
|
|
|
39
40
|
getMarketingCodes(): Promise<Marketing[]>;
|
|
40
41
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<TransactionInfoResponse>;
|
|
41
42
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<TransactionInfoResponse>;
|
|
43
|
+
getTransactionById(transactionId: number): Promise<TransactionInfoResponse>;
|
|
42
44
|
saveTransaction(uuid: string): Promise<TransactionInfoResponse>;
|
|
43
45
|
getCustomerFullObject(relationNo: number): Promise<CustomerFullObject>;
|
|
44
46
|
getRelationNumber(relationId: number): Promise<string>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Subject } from "rxjs";
|
|
2
|
+
import { BusinessObject } from "@colijnit/transactionapi/build/model/business-object";
|
|
2
3
|
import { PositionGridRow } from "../../enum/position-grid-row.enum";
|
|
4
|
+
import { Scroll } from "@angular/router";
|
|
3
5
|
export declare class TransactionEventService {
|
|
4
6
|
readonly addToCartBySku: Subject<{
|
|
5
7
|
sku: string;
|
|
@@ -45,4 +47,7 @@ export declare class TransactionEventService {
|
|
|
45
47
|
fromIndex: number;
|
|
46
48
|
toIndex: number;
|
|
47
49
|
})>;
|
|
50
|
+
readonly transactionLineClicked: Subject<BusinessObject>;
|
|
51
|
+
readonly rightSidebarClose: Subject<void>;
|
|
52
|
+
readonly scrollContent: Subject<Scroll>;
|
|
48
53
|
}
|
|
@@ -24,6 +24,7 @@ import { TransactionInfo } from "@colijnit/transactionapi/build/model/transactio
|
|
|
24
24
|
export declare class TransactionService {
|
|
25
25
|
_connector: IOneConnectorAdapterService;
|
|
26
26
|
transactionUpdated: EventEmitter<void>;
|
|
27
|
+
transactionLoaded: EventEmitter<TransactionInfoResponse>;
|
|
27
28
|
emailAddress: string;
|
|
28
29
|
applicationUser: boolean;
|
|
29
30
|
get currentLines(): TransactionLineInfo[];
|
|
@@ -59,6 +60,7 @@ export declare class TransactionService {
|
|
|
59
60
|
resolvePendingLineReason(pendingLineValues: ResolvePendingLineReasonRequest): Promise<LineOperationResponse>;
|
|
60
61
|
getTransaction(transactionNo: number): Promise<boolean>;
|
|
61
62
|
openExistingTransaction(kind: TransactionKind, transactionNr: number): Promise<boolean>;
|
|
63
|
+
getTransactionById(transactionId: number): Promise<boolean>;
|
|
62
64
|
saveTransaction(close?: boolean): Promise<void>;
|
|
63
65
|
addRelationToTransaction(relationId: number): Promise<void>;
|
|
64
66
|
getCommissionCodes(languageCode: string): Promise<CoDomainValue[]>;
|
|
@@ -72,6 +74,8 @@ export declare class TransactionService {
|
|
|
72
74
|
setTransactionDeliveryOptions(): Promise<boolean>;
|
|
73
75
|
getRelationListObjects(relationRequest: RelationRequest): Promise<RelationListObject[]>;
|
|
74
76
|
retrieveLineImage(line: TransactionLineInfo): Promise<string>;
|
|
77
|
+
getArticleImageByArticleNumber(articleNumber: string): Promise<string>;
|
|
78
|
+
getArticleImageByGoodId(goodId: number): Promise<string>;
|
|
75
79
|
addArticle(articleNo: string, amount?: number, warehouseNo?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<boolean>;
|
|
76
80
|
addTransactionLine(lineType: TransactionLineType, articleNo: string, amount: number, warehouseNo?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<LineOperationResponse>;
|
|
77
81
|
addTextLineToTransaction(showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<LineOperationResponse>;
|
|
@@ -80,6 +84,7 @@ export declare class TransactionService {
|
|
|
80
84
|
deleteTransactionLine(transactionUuid: string, TransactionLineUuid: string): Promise<LineOperationResponse>;
|
|
81
85
|
changeTransactionLineQuantity(lineUuid: string, newQuantity: number): Promise<LineOperationResponse>;
|
|
82
86
|
setRelationByUser(username: string, password: string): Promise<boolean>;
|
|
87
|
+
getCustomerFulObjectByRelationId(relationId: number): Promise<CustomerFullObject>;
|
|
83
88
|
private _initializeTransaction;
|
|
84
89
|
private _rememberCurrentTransaction;
|
|
85
90
|
private _rememberCurrentTransactionLineStatus;
|