@colijnit/transaction 12.0.2 → 12.1.0

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.
Files changed (80) hide show
  1. package/app/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
  2. package/app/component/core/base/transaction-base.component.d.ts +38 -0
  3. package/app/component/core/directive/template-wrapper.directive.d.ts +13 -0
  4. package/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
  5. package/app/component/service-order/ione-service-order-module.d.ts +2 -0
  6. package/app/component/service-order/ione-service-order.component.d.ts +25 -0
  7. package/app/component/service-order/service-order.component.d.ts +48 -0
  8. package/app/component/service-order/summary/transaction-article-summary.component.d.ts +17 -0
  9. package/app/component/service-order/summary/transaction-delivery-summary.component.d.ts +20 -0
  10. package/app/component/service-order/summary/transaction-order-summary.component.d.ts +16 -0
  11. package/app/component/service-order/summary/transaction-payment-info.component.d.ts +14 -0
  12. package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts +7 -0
  13. package/app/component/service-order/summary/transaction-product-summary.component.d.ts +15 -0
  14. package/app/component/service-order/summary/transaction-service-status.component.d.ts +15 -0
  15. package/app/component/service-order/summary/transaction-service-summary.component.d.ts +15 -0
  16. package/app/component/service-order/summary/transaction-summary-block.component.d.ts +16 -0
  17. package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +24 -0
  18. package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts +15 -0
  19. package/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.d.ts +16 -0
  20. package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts +25 -0
  21. package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +7 -0
  22. package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts +22 -0
  23. package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts +29 -0
  24. package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts +11 -0
  25. package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts +26 -0
  26. package/app/component/shopping-cart/ione-shopping-cart.component.d.ts +20 -0
  27. package/app/component/shopping-cart/shopping-cart/shopping-cart.component.d.ts +7 -2
  28. package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +7 -0
  29. package/app/service/ione-connector-adapter.service.d.ts +5 -1
  30. package/app/service/transaction-event.service.d.ts +29 -0
  31. package/app/service/transaction.service.d.ts +9 -2
  32. package/bundles/colijnit-transaction.umd.js +1930 -62
  33. package/bundles/colijnit-transaction.umd.js.map +1 -1
  34. package/colijnit-transaction.d.ts +23 -1
  35. package/colijnit-transaction.metadata.json +1 -1
  36. package/enum/position-grid-row.enum.d.ts +4 -0
  37. package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +3 -3
  38. package/esm2015/app/component/checkout/ione-checkout.module.js +1 -3
  39. package/esm2015/app/component/common/icon/icon.component.js +2 -1
  40. package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +39 -0
  41. package/esm2015/app/component/core/base/transaction-base.component.js +121 -0
  42. package/esm2015/app/component/core/directive/template-wrapper.directive.js +69 -0
  43. package/esm2015/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.js +1 -1
  44. package/esm2015/app/component/service-order/ione-service-order-module.js +103 -0
  45. package/esm2015/app/component/service-order/ione-service-order.component.js +98 -0
  46. package/esm2015/app/component/service-order/service-order.component.js +167 -0
  47. package/esm2015/app/component/service-order/summary/transaction-article-summary.component.js +55 -0
  48. package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +59 -0
  49. package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +43 -0
  50. package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +35 -0
  51. package/esm2015/app/component/service-order/summary/transaction-product-contract-summary.component.js +38 -0
  52. package/esm2015/app/component/service-order/summary/transaction-product-summary.component.js +41 -0
  53. package/esm2015/app/component/service-order/summary/transaction-service-status.component.js +37 -0
  54. package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +38 -0
  55. package/esm2015/app/component/service-order/summary/transaction-summary-block.component.js +53 -0
  56. package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +183 -0
  57. package/esm2015/app/component/service-order/transaction-header-block/transaction-header-block.component.js +83 -0
  58. package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +76 -0
  59. package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +71 -0
  60. package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +37 -0
  61. package/esm2015/app/component/service-order/transaction-relation/transaction-relation-address.component.js +116 -0
  62. package/esm2015/app/component/service-order/transaction-relation/transaction-relation-edit.component.js +225 -0
  63. package/esm2015/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.js +172 -0
  64. package/esm2015/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.js +120 -0
  65. package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +52 -7
  66. package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +4 -6
  67. package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +42 -9
  68. package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
  69. package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +63 -3
  70. package/esm2015/app/service/ione-connector-adapter.service.js +60 -8
  71. package/esm2015/app/service/transaction-event.service.js +9 -1
  72. package/esm2015/app/service/transaction.service.js +87 -19
  73. package/esm2015/assets/dictionary/text.properties.js +43 -3
  74. package/esm2015/colijnit-transaction.js +24 -2
  75. package/esm2015/enum/position-grid-row.enum.js +6 -0
  76. package/esm2015/public_api.js +3 -1
  77. package/fesm2015/colijnit-transaction.js +2309 -50
  78. package/fesm2015/colijnit-transaction.js.map +1 -1
  79. package/package.json +17 -17
  80. 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
+ }
@@ -0,0 +1,2 @@
1
+ export declare class IoneServiceOrderModule {
2
+ }
@@ -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
+ static readonly TEST_ORDER_NR = 18156;
13
+ orderNr: number;
14
+ orderId: number;
15
+ set options(value: any);
16
+ upAndLoaded: boolean;
17
+ private _subscriptions;
18
+ private _remoteOptions;
19
+ private _publicOptions;
20
+ constructor(_changeDetector: ChangeDetectorRef, _optionsService: OptionsService, _connector: IOneConnectorAdapterService, _dictionary: DictionaryService, _service: TransactionService);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ private _handleSettingsLoaded;
24
+ private _initConnection;
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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ import { TransactionService } from "../../../service/transaction.service";
2
+ import { TransactionTotal } from "@colijnit/transactionapi/build/model/transaction-total.bo";
3
+ export declare class TransactionOrderTotalsComponent {
4
+ protected readonly service: TransactionService;
5
+ transactionTotal: TransactionTotal;
6
+ constructor(service: TransactionService);
7
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -7,6 +7,7 @@ import { DictionaryService } from "../../service/dictionary.service";
7
7
  import { IOneConnectorAdapterService } from "../../service/ione-connector-adapter.service";
8
8
  import { TransactionEventService } from "../../service/transaction-event.service";
9
9
  import { PromptService } from "@colijnit/corecomponents_v12";
10
+ import { PositionGridRow } from "../../../enum/position-grid-row.enum";
10
11
  export declare class IoneShoppingCartComponent implements OnInit, OnDestroy {
11
12
  _changeDetector: ChangeDetectorRef;
12
13
  _optionsService: OptionsService;
@@ -24,7 +25,19 @@ export declare class IoneShoppingCartComponent implements OnInit, OnDestroy {
24
25
  closeCart: EventEmitter<void>;
25
26
  checkout: EventEmitter<void>;
26
27
  overview: EventEmitter<void>;
28
+ addArticleLine: EventEmitter<{
29
+ lineNr: number;
30
+ beforeOrAfter: PositionGridRow;
31
+ }>;
32
+ addTextLine: EventEmitter<{
33
+ lineNr: number;
34
+ beforeOrAfter: PositionGridRow;
35
+ }>;
27
36
  get transactionNr(): number;
37
+ get options(): any;
38
+ showCatalogSidebar: boolean;
39
+ currentArticleLineNr: number;
40
+ currentPositionGridRow: PositionGridRow;
28
41
  show: boolean;
29
42
  amountOfLines: number;
30
43
  upAndLoaded: boolean;
@@ -32,6 +45,7 @@ export declare class IoneShoppingCartComponent implements OnInit, OnDestroy {
32
45
  private _subscriptions;
33
46
  private _remoteOptions;
34
47
  private _publicOptions;
48
+ private _options;
35
49
  constructor(_changeDetector: ChangeDetectorRef, _optionsService: OptionsService, _connector: IOneConnectorAdapterService, _dictionary: DictionaryService, _service: TransactionService, transactionEvents: TransactionEventService, _promptService: PromptService);
36
50
  ngOnInit(): void;
37
51
  ngOnDestroy(): void;
@@ -40,6 +54,10 @@ export declare class IoneShoppingCartComponent implements OnInit, OnDestroy {
40
54
  onOverviewButtonClicked(): void;
41
55
  linesChanged(openCart: boolean): void;
42
56
  addArticle(articleNo: string, amount: number): void;
57
+ addArticleButtonClick(article: any): void;
58
+ addToCart(article: any): void;
59
+ addArticleLineAt(articleNo: string, amount: number, lineNr: number, beforeOrAfter: PositionGridRow): void;
60
+ addTextLineAt(text: string, lineNr: number, beforeOrAfter: PositionGridRow): void;
43
61
  addArticleByBySelectorResult(selectorResult: {
44
62
  selectorData: {};
45
63
  quantity: number;
@@ -48,4 +66,6 @@ export declare class IoneShoppingCartComponent implements OnInit, OnDestroy {
48
66
  }, popCart: boolean): void;
49
67
  private _handleSettingsLoaded;
50
68
  private _initConnection;
69
+ private _handleAddArticleLine;
70
+ private _handleAddTextLine;
51
71
  }
@@ -3,11 +3,12 @@ import { DictionaryService } from "../../../service/dictionary.service";
3
3
  import { TransactionService } from "../../../service/transaction.service";
4
4
  import { OrderDiscountType } from "../../../enum/order-discount-type.enum";
5
5
  import { BusinessObject } from "@colijnit/transactionapi/build/model/business-object";
6
- import { CoreComponentsIcon, IconCacheService } from "@colijnit/corecomponents_v12";
6
+ import { CoreComponentsIcon, CoSidebarComponent, IconCacheService } from "@colijnit/corecomponents_v12";
7
7
  import { TransactionEventService } from "../../../service/transaction-event.service";
8
- import { CoSidebarComponent } from "@colijnit/corecomponents_v12";
9
8
  import { ContentViewMode } from "../../../enum/content-view-mode.enum";
10
9
  import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
10
+ import { ContextMenuItemModel, RowDragEventArgs } from "@syncfusion/ej2-angular-grids";
11
+ import { MenuEventArgs } from "@syncfusion/ej2-angular-navigations";
11
12
  export declare class ShoppingCartComponent implements AfterViewInit, OnDestroy {
12
13
  iconCacheService: IconCacheService;
13
14
  private _dictionary;
@@ -37,9 +38,11 @@ export declare class ShoppingCartComponent implements AfterViewInit, OnDestroy {
37
38
  discountType: OrderDiscountType;
38
39
  activeViewMode: ContentViewMode;
39
40
  columns: any[];
41
+ contextMenuItems: ContextMenuItemModel[];
40
42
  showDiscountsSidebar: boolean;
41
43
  private _filteredCollection;
42
44
  private _transactionUpdated;
45
+ private _selectedRow;
43
46
  constructor(iconCacheService: IconCacheService, _dictionary: DictionaryService, service: TransactionService, _transactionEvents: TransactionEventService, _changeDetector: ChangeDetectorRef);
44
47
  ngAfterViewInit(): void;
45
48
  ngOnDestroy(): void;
@@ -53,4 +56,6 @@ export declare class ShoppingCartComponent implements AfterViewInit, OnDestroy {
53
56
  handleRowsSelected(rows: any): void;
54
57
  showSidebar(): void;
55
58
  hideSidebar(): void;
59
+ menuItemClick(args: MenuEventArgs): void;
60
+ rowDrop(args: RowDragEventArgs): void;
56
61
  }
@@ -10,6 +10,7 @@ import { CoDialogComponent, CoGridComponent, PromptService } from "@colijnit/cor
10
10
  import { ArticleFullObject } from "@colijnit/transactionapi/build/model/article-full-object";
11
11
  import { DictionaryService } from "../../../service/dictionary.service";
12
12
  import { CharacteristicAnswerComponent } from "../characteristic-answer/characteristic-answer.component";
13
+ import { PositionGridRow } from "../../../../enum/position-grid-row.enum";
13
14
  export declare class ShoppingCartManagerComponent implements OnInit, OnDestroy {
14
15
  service: TransactionService;
15
16
  transactionEvents: TransactionEventService;
@@ -52,6 +53,9 @@ export declare class ShoppingCartManagerComponent implements OnInit, OnDestroy {
52
53
  ngOnInit(): Promise<void>;
53
54
  ngOnDestroy(): void;
54
55
  addToCart(sku: string, amount: number): Promise<void>;
56
+ addArticleLineToCartAt(sku: string, amount: number, lineNr: number, beforeOrAfter: PositionGridRow): Promise<void>;
57
+ addTextLineToCartAt(text: string, lineNr: number, beforeOrAfter: PositionGridRow): Promise<void>;
58
+ changeLineSequence(fromIndex: number, toIndex: number): Promise<void>;
55
59
  addToCartBySelectorResult(result: {
56
60
  goodId: number;
57
61
  baseGoodId: number;
@@ -68,6 +72,7 @@ export declare class ShoppingCartManagerComponent implements OnInit, OnDestroy {
68
72
  handleCharacteristicAnswerOkClick(answer: string): Promise<void>;
69
73
  private _reloadDataCollections;
70
74
  private _handleAddArticle;
75
+ private _handleAddArticleLineAt;
71
76
  private _getWareHouseNoFromArticle;
72
77
  private _isLineOperationStatus;
73
78
  private _checkIfShoppingCartNeedsToDisplay;
@@ -81,4 +86,6 @@ export declare class ShoppingCartManagerComponent implements OnInit, OnDestroy {
81
86
  private _loadArticle;
82
87
  private addEmailAddressToTransaction;
83
88
  private CharacteristicsAnswerNeeded;
89
+ private _getLineUuidByLineNr;
90
+ private _getTransactionLineInfoByIndex;
84
91
  }
@@ -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>;
@@ -51,7 +53,9 @@ export declare class IOneConnectorAdapterService {
51
53
  setTransactionDeliveryOptions(transactionDeliveryOptionsRequest: SetTransactionDeliveryOptionsRequest): Promise<TransactionResponseBase>;
52
54
  getPostalCodeRetrieval(postcalCode: string, houseNo: string): Promise<GetPostalCodeRetrievalOutputParams>;
53
55
  getRelationListObjects(relationRequest: RelationRequest): Promise<RelationListObject[]>;
54
- addTransactionLine(uuid: string, articleLine: TransactionLineType, articleNo: string, amount: number, warehouseNo: number, commissionCode: string, isReturn: boolean): Promise<LineOperationResponse>;
56
+ addTransactionLine(uuid: string, articleLine: TransactionLineType, articleNo: string, amount: number, warehouseNo: number, commissionCode: string, isReturn: boolean, aboveLineNr: number, belowLineNr: number): Promise<LineOperationResponse>;
57
+ addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<LineOperationResponse>;
58
+ changeLineSequence(uuid: string, lineUuid: string, aboveLineNr?: number, belowLineNr?: number): Promise<LineOperationResponse>;
55
59
  cancelAddTransactionLine(lineUuid: string): Promise<TransactionInfoResponse>;
56
60
  deleteTransactionLine(uuid: string, lineUuid: string): Promise<TransactionInfoResponse>;
57
61
  changeTransactionLineQuantity(uuid: string, lineUuid: string, newQuantity: number): Promise<LineOperationResponse>;