@colijnit/transaction 12.1.0 → 12.1.4

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 (43) hide show
  1. package/app/component/core/base/transaction-base.component.d.ts +10 -0
  2. package/app/component/{shopping-cart → core}/characteristic-answer/characteristic-answer.component.d.ts +0 -0
  3. package/app/component/core/warehouse/warehouse.component.d.ts +35 -0
  4. package/app/component/service-order/ione-service-order.component.d.ts +3 -3
  5. package/app/component/service-order/service-order.component.d.ts +9 -4
  6. package/app/component/service-order/transaction-manager/transaction-manager.component.d.ts +63 -0
  7. package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +2 -3
  8. package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +1 -1
  9. package/app/service/dictionary.service.d.ts +1 -0
  10. package/app/service/transaction.service.d.ts +14 -8
  11. package/bundles/colijnit-transaction.umd.js +915 -162
  12. package/bundles/colijnit-transaction.umd.js.map +1 -1
  13. package/colijnit-transaction.d.ts +20 -18
  14. package/colijnit-transaction.metadata.json +1 -1
  15. package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +2 -2
  16. package/esm2015/app/component/checkout/ione-checkout.module.js +3 -3
  17. package/esm2015/app/component/core/base/transaction-base.component.js +35 -10
  18. package/esm2015/app/component/core/characteristic-answer/characteristic-answer.component.js +100 -0
  19. package/esm2015/app/component/core/warehouse/warehouse.component.js +134 -0
  20. package/esm2015/app/component/service-order/ione-service-order-module.js +10 -5
  21. package/esm2015/app/component/service-order/ione-service-order.component.js +12 -14
  22. package/esm2015/app/component/service-order/service-order.component.js +35 -7
  23. package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +5 -5
  24. package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +3 -3
  25. package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +3 -3
  26. package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +3 -3
  27. package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +16 -5
  28. package/esm2015/app/component/service-order/transaction-manager/transaction-manager.component.js +305 -0
  29. package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +1 -1
  30. package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +1 -1
  31. package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +9 -10
  32. package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +3 -5
  33. package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
  34. package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +1 -1
  35. package/esm2015/app/service/dictionary.service.js +20 -9
  36. package/esm2015/app/service/ione-connector-adapter.service.js +10 -5
  37. package/esm2015/app/service/transaction.service.js +72 -23
  38. package/esm2015/assets/dictionary/text.properties.js +5 -1
  39. package/esm2015/colijnit-transaction.js +21 -19
  40. package/fesm2015/colijnit-transaction.js +647 -97
  41. package/fesm2015/colijnit-transaction.js.map +1 -1
  42. package/package.json +2 -2
  43. package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +0 -99
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/line-operation-response.bo'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/utils/array-utils'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/line-operation-status.bo'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/corecomponents_v12'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/platform-browser/animations'), require('@angular/flex-layout'), require('@angular/material/stepper'), require('@angular/common'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/enum/sort-direction'), require('@colijnit/transactionapi/build/enum/sort-type.enum'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@angular/animations'), require('@colijnit/transactionapi/build/model/relation-request'), require('@syncfusion/ej2-angular-splitbuttons'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-navigations'), require('@syncfusion/ej2-angular-navigations'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/line-operation-response.bo', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/utils/array-utils', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/line-operation-status.bo', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/corecomponents_v12', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/platform-browser/animations', '@angular/flex-layout', '@angular/material/stepper', '@angular/common', '@angular/platform-browser', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/enum/sort-direction', '@colijnit/transactionapi/build/enum/sort-type.enum', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@angular/animations', '@colijnit/transactionapi/build/model/relation-request', '@syncfusion/ej2-angular-splitbuttons', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-navigations', '@syncfusion/ej2-angular-navigations', '@colijnit/transactionapi/build/model/transaction-line-info.bo'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.rxjs, global.options, global.customerFullObject_bo, global.transactionInfoResponse_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.articleFullObject, global.lineOperationResponse_bo, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.arrayUtils, global.setTransactionDeliveryOptionsRequest_bo, global.transactionTotal_bo, global.transactionLineType_enum, global.lineOperationStatus_bo, global.transactionInfo_bo, global.pendingReasonType_enum, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.addressType_enum, global.genderType_enum, global.businessObjectUtils, global.corecomponents_v12, global.functionUtils, global.address_bo, global.ng.platformBrowser.animations, global.ng.flexLayout, global.ng.material.stepper, global.ng.common, global.ng.platformBrowser, global.resolvePendingReasonRequest_bo, global.sortDirection, global.sortType_enum, global.stockStatus_enum, global.ng.animations, global.relationRequest, global.ej2AngularSplitbuttons, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2Navigations, global.ej2AngularNavigations, global.transactionLineInfo_bo));
5
- })(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, articleFullObject, lineOperationResponse_bo, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils, corecomponents_v12, functionUtils, address_bo, animations, flexLayout, stepper, common, platformBrowser, resolvePendingReasonRequest_bo, sortDirection, sortType_enum, stockStatus_enum, animations$1, relationRequest, ej2AngularSplitbuttons, ej2AngularButtons, ej2AngularDropdowns, ej2Navigations, ej2AngularNavigations, transactionLineInfo_bo) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params'), require('@colijnit/transactionapi/build/model/relation-list-object.bo'), require('@colijnit/transactionapi/build/model/article-full-object'), require('@colijnit/transactionapi/build/model/line-operation-response.bo'), require('@colijnit/transactionapi/build/transaction'), require('@colijnit/transactionapi/build/utils/function/not-nill.function'), require('@colijnit/transactionapi/build/utils/object-utils'), require('@colijnit/transactionapi/build/enum/yes-no-db-type.enum'), require('@colijnit/transactionapi/build/enum/true-false-db-type.enum'), require('@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/transactionapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/transactionapi/build/utils/date-utils'), require('@colijnit/transactionapi/build/utils/number-utils'), require('@colijnit/transactionapi/build/utils/function/is-nill.function'), require('@colijnit/transactionapi/build/factory/decorators/map-property.decorator'), require('@colijnit/transactionapi/build/factory/decorators/boolean.decorator'), require('@colijnit/transactionapi/build/factory/decorators/json.decorator'), require('@colijnit/transactionapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/transactionapi/build/utils/image-utils'), require('@colijnit/transactionapi/build/model/nul-relation-object'), require('@colijnit/transactionapi/build/enum/transaction-kind.enum'), require('@colijnit/transactionapi/build/enum/sequence-name.enum'), require('@colijnit/transactionapi/build/utils/array-utils'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/model/transaction-total.bo'), require('@colijnit/transactionapi/build/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/model/line-operation-status.bo'), require('@colijnit/transactionapi/build/model/transaction-info.bo'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('@colijnit/corecomponents_v12'), require('@colijnit/transactionapi/build/enum/communication-type.enum'), require('@colijnit/transactionapi/build/model/contact-option.bo'), require('@colijnit/transactionapi/build/enum/relation-name-kind.enum'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/enum/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/flex-layout'), require('@angular/material/stepper'), require('@angular/common'), require('@angular/platform-browser'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/enum/sort-direction'), require('@colijnit/transactionapi/build/enum/sort-type.enum'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@angular/animations'), require('@colijnit/transactionapi/build/model/relation-request'), require('@syncfusion/ej2-angular-splitbuttons'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-navigations'), require('@syncfusion/ej2-angular-navigations'), require('@colijnit/transactionapi/build/model/transaction-line-info.bo')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/article-full-object', '@colijnit/transactionapi/build/model/line-operation-response.bo', '@colijnit/transactionapi/build/transaction', '@colijnit/transactionapi/build/utils/function/not-nill.function', '@colijnit/transactionapi/build/utils/object-utils', '@colijnit/transactionapi/build/enum/yes-no-db-type.enum', '@colijnit/transactionapi/build/enum/true-false-db-type.enum', '@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/transactionapi/build/enum/db-boolean-value-type.enum', '@colijnit/transactionapi/build/utils/date-utils', '@colijnit/transactionapi/build/utils/number-utils', '@colijnit/transactionapi/build/utils/function/is-nill.function', '@colijnit/transactionapi/build/factory/decorators/map-property.decorator', '@colijnit/transactionapi/build/factory/decorators/boolean.decorator', '@colijnit/transactionapi/build/factory/decorators/json.decorator', '@colijnit/transactionapi/build/factory/decorators/complex-array.decorator', '@colijnit/transactionapi/build/utils/image-utils', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/utils/array-utils', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/model/transaction-total.bo', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/model/line-operation-status.bo', '@colijnit/transactionapi/build/model/transaction-info.bo', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', '@colijnit/corecomponents_v12', '@colijnit/transactionapi/build/enum/communication-type.enum', '@colijnit/transactionapi/build/model/contact-option.bo', '@colijnit/transactionapi/build/enum/relation-name-kind.enum', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/enum/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/flex-layout', '@angular/material/stepper', '@angular/common', '@angular/platform-browser', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/enum/sort-direction', '@colijnit/transactionapi/build/enum/sort-type.enum', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@angular/animations', '@colijnit/transactionapi/build/model/relation-request', '@syncfusion/ej2-angular-splitbuttons', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-navigations', '@syncfusion/ej2-angular-navigations', '@colijnit/transactionapi/build/model/transaction-line-info.bo'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.rxjs, global.options, global.customerFullObject_bo, global.transactionInfoResponse_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.articleFullObject, global.lineOperationResponse_bo, global.transaction, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.imageUtils, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.arrayUtils, global.setTransactionDeliveryOptionsRequest_bo, global.transactionTotal_bo, global.transactionLineType_enum, global.lineOperationStatus_bo, global.transactionInfo_bo, global.pendingReasonType_enum, global.corecomponents_v12, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.addressType_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.flexLayout, global.ng.material.stepper, global.ng.common, global.ng.platformBrowser, global.resolvePendingReasonRequest_bo, global.sortDirection, global.sortType_enum, global.stockStatus_enum, global.ng.animations, global.relationRequest, global.ej2AngularSplitbuttons, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2Navigations, global.ej2AngularNavigations, global.transactionLineInfo_bo));
5
+ })(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, articleFullObject, lineOperationResponse_bo, transaction, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, imageUtils, nulRelationObject, transactionKind_enum, sequenceName_enum, arrayUtils, setTransactionDeliveryOptionsRequest_bo, transactionTotal_bo, transactionLineType_enum, lineOperationStatus_bo, transactionInfo_bo, pendingReasonType_enum, corecomponents_v12, communicationType_enum, contactOption_bo, relationNameKind_enum, addressType_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, flexLayout, stepper, common, platformBrowser, resolvePendingReasonRequest_bo, sortDirection, sortType_enum, stockStatus_enum, animations, relationRequest, ej2AngularSplitbuttons, ej2AngularButtons, ej2AngularDropdowns, ej2Navigations, ej2AngularNavigations, transactionLineInfo_bo) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -1187,14 +1187,19 @@
1187
1187
  return new Promise(function (resolve, reject) {
1188
1188
  return _this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then(function (result) {
1189
1189
  if (result.validationResult && result.validationResult.success) {
1190
- if (result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
1190
+ if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
1191
1191
  return resolve(imageUtils.ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
1192
1192
  }
1193
1193
  else {
1194
- if (includeMimetype) {
1195
- return resolve(imageUtils.ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
1194
+ if (result.resultObject) {
1195
+ if (includeMimetype) {
1196
+ return resolve(imageUtils.ImageUtils.getDocBodyWithMimeTypeDefinition(result.resultObject.fileName, thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody));
1197
+ }
1198
+ return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
1199
+ }
1200
+ else {
1201
+ reject(result.validationMessagesAsString);
1196
1202
  }
1197
- return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
1198
1203
  }
1199
1204
  }
1200
1205
  else {
@@ -1724,8 +1729,9 @@
1724
1729
  IOneConnectorAdapterService.ctorParameters = function () { return []; };
1725
1730
 
1726
1731
  var TransactionService = /** @class */ (function () {
1727
- function TransactionService(_connector) {
1732
+ function TransactionService(_connector, _prompt) {
1728
1733
  this._connector = _connector;
1734
+ this._prompt = _prompt;
1729
1735
  this.transactionUpdated = new i0.EventEmitter();
1730
1736
  this.transactionLoaded = new i0.EventEmitter();
1731
1737
  this.applicationUser = false;
@@ -1795,6 +1801,11 @@
1795
1801
  enumerable: false,
1796
1802
  configurable: true
1797
1803
  });
1804
+ TransactionService.prototype.pendingLineOperationStatus = function (lineOperationStatuses) {
1805
+ var status = lineOperationStatuses.find(function (line) { return line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NONE
1806
+ && line.pendingReasonType !== pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION; });
1807
+ return status;
1808
+ };
1798
1809
  TransactionService.prototype.getArticleFullObject = function (goodId) {
1799
1810
  return __awaiter(this, void 0, void 0, function () {
1800
1811
  return __generator(this, function (_a) {
@@ -1968,13 +1979,13 @@
1968
1979
  });
1969
1980
  });
1970
1981
  };
1971
- TransactionService.prototype.resolvePendingLineReason = function (pendingLineValues) {
1982
+ TransactionService.prototype.resolvePendingLineReason = function (pendingLineValues, remember) {
1972
1983
  var _this = this;
1984
+ if (remember === void 0) { remember = true; }
1973
1985
  return new Promise(function (resolve) {
1974
1986
  _this._connector.resolvePendingLineReason(pendingLineValues).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
1975
1987
  return __generator(this, function (_a) {
1976
- this._rememberCurrentTransaction(response);
1977
- this._rememberCurrentTransactionLineStatus(response);
1988
+ this._rememberResponse(remember, response);
1978
1989
  resolve(response);
1979
1990
  return [2 /*return*/];
1980
1991
  });
@@ -2052,6 +2063,34 @@
2052
2063
  });
2053
2064
  });
2054
2065
  };
2066
+ TransactionService.prototype.saveTransactionByUuid = function (transactionUuid) {
2067
+ return __awaiter(this, void 0, void 0, function () {
2068
+ var _this = this;
2069
+ return __generator(this, function (_a) {
2070
+ return [2 /*return*/, new Promise(function (resolve, reject) {
2071
+ _this._connector.saveTransaction(transactionUuid)
2072
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2073
+ return __generator(this, function (_a) {
2074
+ if (response.isSuccess) {
2075
+ this.transactionLoaded.emit(response);
2076
+ resolve(true);
2077
+ }
2078
+ else {
2079
+ reject(false);
2080
+ }
2081
+ return [2 /*return*/];
2082
+ });
2083
+ }); })
2084
+ .catch(function (reason) {
2085
+ if (reason) {
2086
+ _this._prompt.showError(reason.getFullErrorString());
2087
+ }
2088
+ reject(false);
2089
+ });
2090
+ })];
2091
+ });
2092
+ });
2093
+ };
2055
2094
  TransactionService.prototype.addRelationToTransaction = function (relationId) {
2056
2095
  return __awaiter(this, void 0, void 0, function () {
2057
2096
  var success;
@@ -2254,7 +2293,37 @@
2254
2293
  });
2255
2294
  });
2256
2295
  };
2257
- TransactionService.prototype.addTransactionLine = function (lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2296
+ TransactionService.prototype.addArticleToTransaction = function (transactionUuid, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr) {
2297
+ if (amount === void 0) { amount = 1; }
2298
+ if (warehouseNo === void 0) { warehouseNo = 1; }
2299
+ if (commissionCode === void 0) { commissionCode = "2"; }
2300
+ if (isReturn === void 0) { isReturn = false; }
2301
+ if (aboveLineNr === void 0) { aboveLineNr = 0; }
2302
+ if (belowLineNr === void 0) { belowLineNr = 0; }
2303
+ return __awaiter(this, void 0, void 0, function () {
2304
+ var _this = this;
2305
+ return __generator(this, function (_a) {
2306
+ return [2 /*return*/, new Promise(function (resolve, reject) {
2307
+ _this._connector.addTransactionLine(transactionUuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
2308
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2309
+ return __generator(this, function (_a) {
2310
+ resolve(response);
2311
+ return [2 /*return*/];
2312
+ });
2313
+ }); }, function (error) {
2314
+ _this._prompt.showError(error);
2315
+ reject(error);
2316
+ })
2317
+ .catch(function (reason) {
2318
+ _this._prompt.showError(reason.getFullErrorString());
2319
+ resolve(null);
2320
+ });
2321
+ })];
2322
+ });
2323
+ });
2324
+ };
2325
+ TransactionService.prototype.addTransactionLine = function (lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr, remember) {
2326
+ if (remember === void 0) { remember = true; }
2258
2327
  return __awaiter(this, void 0, void 0, function () {
2259
2328
  var _this = this;
2260
2329
  return __generator(this, function (_a) {
@@ -2262,8 +2331,7 @@
2262
2331
  _this._connector.addTransactionLine(_this.currentTransaction.uuid, lineType, articleNo, amount, warehouseNo, commissionCode, isReturn, aboveLineNr, belowLineNr)
2263
2332
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2264
2333
  return __generator(this, function (_a) {
2265
- this._rememberCurrentTransaction(response);
2266
- this._rememberCurrentTransactionLineStatus(response);
2334
+ this._rememberResponse(remember, response);
2267
2335
  resolve(response);
2268
2336
  return [2 /*return*/];
2269
2337
  });
@@ -2277,7 +2345,8 @@
2277
2345
  });
2278
2346
  });
2279
2347
  };
2280
- TransactionService.prototype.addTextLineToTransaction = function (showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
2348
+ TransactionService.prototype.addTextLineToTransaction = function (showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr, remember) {
2349
+ if (remember === void 0) { remember = true; }
2281
2350
  return __awaiter(this, void 0, void 0, function () {
2282
2351
  var _this = this;
2283
2352
  return __generator(this, function (_a) {
@@ -2285,8 +2354,7 @@
2285
2354
  _this._connector.addTextLineToTransaction(_this.currentTransaction.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
2286
2355
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2287
2356
  return __generator(this, function (_a) {
2288
- this._rememberCurrentTransaction(response);
2289
- this._rememberCurrentTransactionLineStatus(response);
2357
+ this._rememberResponse(remember, response);
2290
2358
  resolve(response);
2291
2359
  return [2 /*return*/];
2292
2360
  });
@@ -2300,14 +2368,14 @@
2300
2368
  });
2301
2369
  });
2302
2370
  };
2303
- TransactionService.prototype.changeLineSequence = function (lineUuid, aboveLineNr, belowLineNr) {
2371
+ TransactionService.prototype.changeLineSequence = function (lineUuid, aboveLineNr, belowLineNr, remember) {
2304
2372
  var _this = this;
2373
+ if (remember === void 0) { remember = true; }
2305
2374
  return new Promise(function (resolve, reject) {
2306
2375
  _this._connector.changeLineSequence(_this.currentTransaction.uuid, lineUuid, aboveLineNr, belowLineNr)
2307
2376
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2308
2377
  return __generator(this, function (_a) {
2309
- this._rememberCurrentTransaction(response);
2310
- this._rememberCurrentTransactionLineStatus(response);
2378
+ this._rememberResponse(remember, response);
2311
2379
  resolve(response);
2312
2380
  return [2 /*return*/];
2313
2381
  });
@@ -2319,7 +2387,8 @@
2319
2387
  });
2320
2388
  });
2321
2389
  };
2322
- TransactionService.prototype.cancelAddTransactionLine = function (lineUuid) {
2390
+ TransactionService.prototype.cancelAddTransactionLine = function (lineUuid, remember) {
2391
+ if (remember === void 0) { remember = true; }
2323
2392
  return __awaiter(this, void 0, void 0, function () {
2324
2393
  var _this = this;
2325
2394
  return __generator(this, function (_a) {
@@ -2327,7 +2396,9 @@
2327
2396
  _this._connector.cancelAddTransactionLine(lineUuid)
2328
2397
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2329
2398
  return __generator(this, function (_a) {
2330
- this._rememberCurrentTransaction(response);
2399
+ if (remember) {
2400
+ this._rememberCurrentTransaction(response);
2401
+ }
2331
2402
  if (response.isSuccess) {
2332
2403
  resolve(response);
2333
2404
  }
@@ -2344,7 +2415,8 @@
2344
2415
  });
2345
2416
  });
2346
2417
  };
2347
- TransactionService.prototype.deleteTransactionLine = function (transactionUuid, TransactionLineUuid) {
2418
+ TransactionService.prototype.deleteTransactionLine = function (transactionUuid, TransactionLineUuid, remember) {
2419
+ if (remember === void 0) { remember = true; }
2348
2420
  return __awaiter(this, void 0, void 0, function () {
2349
2421
  var _this = this;
2350
2422
  return __generator(this, function (_a) {
@@ -2352,8 +2424,7 @@
2352
2424
  _this._connector.deleteTransactionLine(transactionUuid, TransactionLineUuid)
2353
2425
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2354
2426
  return __generator(this, function (_a) {
2355
- this._rememberCurrentTransaction(response);
2356
- this._rememberCurrentTransactionLineStatus(response);
2427
+ this._rememberResponse(remember, response);
2357
2428
  if (response.isSuccess) {
2358
2429
  resolve(response);
2359
2430
  }
@@ -2370,7 +2441,8 @@
2370
2441
  });
2371
2442
  });
2372
2443
  };
2373
- TransactionService.prototype.changeTransactionLineQuantity = function (lineUuid, newQuantity) {
2444
+ TransactionService.prototype.changeTransactionLineQuantity = function (lineUuid, newQuantity, remember) {
2445
+ if (remember === void 0) { remember = true; }
2374
2446
  return __awaiter(this, void 0, void 0, function () {
2375
2447
  var _this = this;
2376
2448
  return __generator(this, function (_a) {
@@ -2379,8 +2451,7 @@
2379
2451
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2380
2452
  return __generator(this, function (_a) {
2381
2453
  if (response.isSuccess) {
2382
- this._rememberCurrentTransaction(response);
2383
- this._rememberCurrentTransactionLineStatus(response);
2454
+ this._rememberResponse(remember, response);
2384
2455
  }
2385
2456
  resolve(response);
2386
2457
  return [2 /*return*/];
@@ -2494,13 +2565,20 @@
2494
2565
  transactionDeliveryOptionsRequest.invoiceAddress = this._currentTransaction.invoiceAddress.nawNr;
2495
2566
  return transactionDeliveryOptionsRequest;
2496
2567
  };
2568
+ TransactionService.prototype._rememberResponse = function (remember, response) {
2569
+ if (remember) {
2570
+ this._rememberCurrentTransaction(response);
2571
+ this._rememberCurrentTransactionLineStatus(response);
2572
+ }
2573
+ };
2497
2574
  return TransactionService;
2498
2575
  }());
2499
2576
  TransactionService.decorators = [
2500
2577
  { type: i0.Injectable }
2501
2578
  ];
2502
2579
  TransactionService.ctorParameters = function () { return [
2503
- { type: IOneConnectorAdapterService }
2580
+ { type: IOneConnectorAdapterService },
2581
+ { type: corecomponents_v12.PromptService }
2504
2582
  ]; };
2505
2583
 
2506
2584
  var LanguageCode;
@@ -2604,6 +2682,7 @@
2604
2682
  "ARTICLE_DESCRIPTION": "Artikelomschrijving",
2605
2683
  "ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
2606
2684
  "ARTICLE_NR": "Artikelnummer",
2685
+ "ARTICLE_UNKNOWN": "Onbekend artikel",
2607
2686
  "ASSEMBLY_COSTS": "Montagekosten",
2608
2687
  "ASSEMBLY_DATE": "Montagedatum",
2609
2688
  "AMOUNT": "Aantal",
@@ -2743,6 +2822,7 @@
2743
2822
  "VAT": "Btw",
2744
2823
  "VAT_AMOUNT": "BTW-bedrag",
2745
2824
  "VALUE": "Waarde",
2825
+ "WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
2746
2826
  "WAREHOUSE": "Magazijn",
2747
2827
  "YOUR_DATA": "Uw gegevens",
2748
2828
  },
@@ -2765,6 +2845,7 @@
2765
2845
  "ARTICLE_DESCRIPTION": "Article description",
2766
2846
  "ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
2767
2847
  "ARTICLE_NR": "Article number",
2848
+ "ARTICLE_UNKNOWN": "Article unknown",
2768
2849
  "ASSEMBLY_COSTS": "Assembly costs",
2769
2850
  "ASSEMBLY_DATE": "Assembly date",
2770
2851
  "AMOUNT": "Amount",
@@ -2897,6 +2978,7 @@
2897
2978
  "VAT": "VAT",
2898
2979
  "VAT_AMOUNT": "VAT amount",
2899
2980
  "WAREHOUSE": "Warehouse",
2981
+ "WHERE_ARE_YOU_LOOKING_FOR": "Where are you looking for?",
2900
2982
  "YOUR_DATA": "Your data",
2901
2983
  },
2902
2984
  };
@@ -2931,21 +3013,23 @@
2931
3013
  // Loads the dictionary for given language in memory.
2932
3014
  DictionaryService.prototype.setDictionary = function (language) {
2933
3015
  return __awaiter(this, void 0, void 0, function () {
2934
- var dictionary;
2935
3016
  return __generator(this, function (_a) {
2936
3017
  this._language = language || LanguageCode.Dutch;
2937
- if (!this._dictionaries.has(this._language)) {
2938
- dictionary = new Dictionary();
2939
- // eslint-disable-next-line no-magic-numbers
2940
- if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
2941
- // eslint-disable-next-line no-magic-numbers
2942
- this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
2943
- }
2944
- }
3018
+ this._loadDictionary();
2945
3019
  return [2 /*return*/];
2946
3020
  });
2947
3021
  });
2948
3022
  };
3023
+ DictionaryService.prototype._loadDictionary = function () {
3024
+ if (!this._dictionaries.has(this._language)) {
3025
+ var dictionary = new Dictionary();
3026
+ // eslint-disable-next-line no-magic-numbers
3027
+ if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
3028
+ // eslint-disable-next-line no-magic-numbers
3029
+ this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
3030
+ }
3031
+ }
3032
+ };
2949
3033
  /**
2950
3034
  * Returns the localized text for the given dictionary key.
2951
3035
  * @param {string} key
@@ -2962,6 +3046,10 @@
2962
3046
  if (!StringUtils.IsStringWithLength(key)) {
2963
3047
  return key || "";
2964
3048
  }
3049
+ if (this.language === undefined) {
3050
+ this._language = LanguageCode.Dutch;
3051
+ this._loadDictionary();
3052
+ }
2965
3053
  var text = this._dictionaries.get(this.language)[key];
2966
3054
  text = StringUtils.IsStringWithLength(text) ? text : key;
2967
3055
  if (upperCaseFirst) {
@@ -2977,8 +3065,11 @@
2977
3065
  };
2978
3066
  return DictionaryService;
2979
3067
  }());
3068
+ DictionaryService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DictionaryService_Factory() { return new DictionaryService(); }, token: DictionaryService, providedIn: "root" });
2980
3069
  DictionaryService.decorators = [
2981
- { type: i0.Injectable }
3070
+ { type: i0.Injectable, args: [{
3071
+ providedIn: "root"
3072
+ },] }
2982
3073
  ];
2983
3074
  DictionaryService.ctorParameters = function () { return []; };
2984
3075
 
@@ -3743,7 +3834,7 @@
3743
3834
  CheckoutOverviewComponent.decorators = [
3744
3835
  { type: i0.Component, args: [{
3745
3836
  selector: "checkout-overview",
3746
- template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep == steps.Relation && editMode\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onRelationValid()\"\n (invalidSubmit)=\"onRelationInvalid()\"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr=\"3\" label=\"DELIVERY\"\n [hidden]=\"currentStep !== steps.Delivery\"\n (editModeChange)=\"handleEditChangeDelivery($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]=\"currentStep !== steps.Delivery\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onDeliveryValid()\"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ",
3837
+ template: "\n <checkout-overview-block #relationBlock sequenceNr=\"2\" label=\"YOUR_DATA\"\n *ngIf=\"currentStep === steps.Relation\"\n (editModeChange)=\"handleEditChangeRelation($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf=\"currentStep === steps.Relation && editMode\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onRelationValid()\"\n (invalidSubmit)=\"onRelationInvalid()\"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr=\"3\" label=\"DELIVERY\"\n [hidden]=\"currentStep !== steps.Delivery\"\n (editModeChange)=\"handleEditChangeDelivery($event)\">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]=\"currentStep !== steps.Delivery\"\n [relation]=\"relation\"\n [transaction]=\"transaction\"\n (validSubmit)=\"onDeliveryValid()\"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ",
3747
3838
  styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
3748
3839
  },] }
3749
3840
  ];
@@ -4739,7 +4830,6 @@
4739
4830
  IoneCheckoutModule.decorators = [
4740
4831
  { type: i0.NgModule, args: [{
4741
4832
  imports: [
4742
- animations.BrowserAnimationsModule,
4743
4833
  corecomponents_v12.IconModule,
4744
4834
  corecomponents_v12.InputTextModule,
4745
4835
  corecomponents_v12.InputCheckboxModule,
@@ -4759,6 +4849,7 @@
4759
4849
  corecomponents_v12.CoSidebarModule,
4760
4850
  corecomponents_v12.CoGridModule,
4761
4851
  CoreModule,
4852
+ common.CommonModule,
4762
4853
  ],
4763
4854
  declarations: [
4764
4855
  CheckoutComponent,
@@ -5980,7 +6071,7 @@
5980
6071
  { type: i0.Component, args: [{
5981
6072
  selector: "shopping-cart-line",
5982
6073
  template: "\n <div *ngIf=\"line.isArticle\" class=\"cart-line-r\" fxFlex>\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconTrashBin)\"\n [title]=\"'DELETE_TRANSACTION_LINE_HINT' | localize\"\n (click)=\"deleteTransactionLineClick()\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-image\" *ngIf=\"!overviewMode\">\n <image-display [model]=\"image\" hideOnEmptyModel></image-display>\n </div>\n <div fxLayout=\"column\" class=\"cart-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"cart-line-right\">\n <div fxLayout=\"column\" class=\"cart-line-stock\" *ngIf=\"!overlayMode && !overviewMode\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"cart-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"localAmount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n\n <div class=\"cart-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n <div *ngIf=\"line.isText\" class=\"cart-line-t\" fxFlex\n [class.article-text]=\"line.articleBound\"\n [textContent]=\"line.text\">\n </div>\n ",
5983
- styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.horizontal{display:flex;flex-direction:row-reverse}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
6074
+ styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.horizontal{display:flex;flex-direction:row}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
5984
6075
  },] }
5985
6076
  ];
5986
6077
  ShoppingCartLineComponent.ctorParameters = function () { return [
@@ -6063,6 +6154,7 @@
6063
6154
  }());
6064
6155
  CharacteristicAnswerComponent.decorators = [
6065
6156
  { type: i0.Component, args: [{
6157
+ // eslint-disable-next-line @angular-eslint/component-selector
6066
6158
  selector: "characteristic-answer",
6067
6159
  template: "\n <co-dialog\n #characteristic\n [showCloseIcon]=\"false\"\n >\n <ng-container header>\n <div>\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('ARTICLE')\"\n ></span>\n <span [textContent]=\"title\"></span>\n </div>\n </ng-container>\n\n <ng-container>\n <div>\n <div class=\"characteristic-header\">\n <span class=\"characteristic-title\"\n [textContent]=\"getTranslationWithColon('CHARACTERISTIC_QUESTION')\"\n ></span>\n </div>\n <div class=\"characteristic-header\">\n <span [textContent]=\"question | localize\"></span>\n </div>\n <div *ngIf=\"characteristicOptions\" class=\"npm characteristic-options\">\n <co-input-combo-box [(model)]=\"value\"\n [source]=\"characteristics\"\n [fields]=\"characteristicsFields\"\n [placeholder]=\"'VALUE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div *ngIf=\"!characteristicOptions\" class=\"characteristic-value\">\n <co-input-text\n [(model)]=\"value\"\n [placeholder]=\"'VALUE' | localize \"\n required\n ></co-input-text>\n </div>\n </div>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onCharacteristicOkClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
6068
6160
  styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.characteristic-title{font-weight:bold;font-size:20px;margin-right:10px}.characteristic-value{font-weight:bold;font-size:20px}.characteristic-header{display:flex;justify-content:center}\n"]
@@ -6094,7 +6186,6 @@
6094
6186
  CharacteristicAnswerComponent,
6095
6187
  ],
6096
6188
  imports: [
6097
- animations.BrowserAnimationsModule,
6098
6189
  common.CommonModule,
6099
6190
  corecomponents_v12.IconModule,
6100
6191
  corecomponents_v12.InputTextModule,
@@ -6124,7 +6215,7 @@
6124
6215
  entryComponents: [
6125
6216
  IoneShoppingCartComponent
6126
6217
  ],
6127
- exports: [IoneShoppingCartComponent, StockStatusIndicatorComponent],
6218
+ exports: [IoneShoppingCartComponent, StockStatusIndicatorComponent, CharacteristicAnswerComponent],
6128
6219
  bootstrap: [IoneShoppingCartComponent]
6129
6220
  },] }
6130
6221
  ];
@@ -6137,14 +6228,22 @@
6137
6228
  this._connector = _connector;
6138
6229
  this._dictionary = _dictionary;
6139
6230
  this._service = _service;
6140
- this.orderNr = 0;
6141
- this.orderId = 0;
6142
6231
  this.upAndLoaded = false;
6143
6232
  this._subscriptions = [];
6144
6233
  this._remoteOptions = true;
6145
6234
  this._publicOptions = true;
6235
+ this._orderId = 0;
6146
6236
  this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
6147
6237
  }
6238
+ Object.defineProperty(IoneServiceOrderComponent.prototype, "orderId", {
6239
+ set: function (value) {
6240
+ this._orderId = value;
6241
+ this._getTransactionById(this._orderId);
6242
+ },
6243
+ enumerable: false,
6244
+ configurable: true
6245
+ });
6246
+ ;
6148
6247
  Object.defineProperty(IoneServiceOrderComponent.prototype, "options", {
6149
6248
  set: function (value) {
6150
6249
  if (value) {
@@ -6194,27 +6293,11 @@
6194
6293
  case 0: return [4 /*yield*/, this._connector.connect(this._optionsService.options)];
6195
6294
  case 1:
6196
6295
  _a.sent();
6197
- if (!this.orderNr) return [3 /*break*/, 3];
6198
- return [4 /*yield*/, this._service.getTransaction(this.orderNr)];
6199
- case 2:
6200
- _a.sent();
6201
- return [3 /*break*/, 7];
6202
- case 3:
6203
- if (!this.orderId) return [3 /*break*/, 5];
6204
- return [4 /*yield*/, this._service.getTransactionById(this.orderId)];
6205
- case 4:
6206
- _a.sent();
6207
- return [3 /*break*/, 7];
6208
- case 5: return [4 /*yield*/, this._service.getTransaction(IoneServiceOrderComponent.TEST_ORDER_NR)];
6209
- case 6:
6210
- _a.sent();
6211
- _a.label = 7;
6212
- case 7:
6213
6296
  if (this._optionsService.options.url) {
6214
6297
  this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
6215
6298
  }
6216
6299
  return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
6217
- case 8:
6300
+ case 2:
6218
6301
  _a.sent();
6219
6302
  setTimeout(function () {
6220
6303
  _this._changeDetector.detectChanges();
@@ -6224,9 +6307,20 @@
6224
6307
  });
6225
6308
  });
6226
6309
  };
6310
+ IoneServiceOrderComponent.prototype._getTransactionById = function (orderId) {
6311
+ return __awaiter(this, void 0, void 0, function () {
6312
+ return __generator(this, function (_a) {
6313
+ switch (_a.label) {
6314
+ case 0: return [4 /*yield*/, this._service.getTransactionById(orderId)];
6315
+ case 1:
6316
+ _a.sent();
6317
+ return [2 /*return*/];
6318
+ }
6319
+ });
6320
+ });
6321
+ };
6227
6322
  return IoneServiceOrderComponent;
6228
6323
  }());
6229
- IoneServiceOrderComponent.TEST_ORDER_NR = 18156;
6230
6324
  IoneServiceOrderComponent.decorators = [
6231
6325
  { type: i0.Component, args: [{
6232
6326
  // eslint-disable-next-line @angular-eslint/component-selector
@@ -6242,7 +6336,6 @@
6242
6336
  { type: TransactionService }
6243
6337
  ]; };
6244
6338
  IoneServiceOrderComponent.propDecorators = {
6245
- orderNr: [{ type: i0.Input }],
6246
6339
  orderId: [{ type: i0.Input }],
6247
6340
  options: [{ type: i0.Input }]
6248
6341
  };
@@ -6254,6 +6347,8 @@
6254
6347
  this.customer = nulRelationObject.NULL_CUSTOMER_FULL_OBJECT;
6255
6348
  this._isService = false;
6256
6349
  this.basedOnProduct = false;
6350
+ this._lineOperationStatuses = [];
6351
+ this._transactionLines = [];
6257
6352
  }
6258
6353
  Object.defineProperty(TransactionBaseComponent.prototype, "transaction", {
6259
6354
  get: function () {
@@ -6261,8 +6356,20 @@
6261
6356
  },
6262
6357
  set: function (value) {
6263
6358
  this._transaction = value;
6264
- if (this._transaction && this._transaction.transactionInfo) {
6265
- this._isService = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.ServiceOrder;
6359
+ if (this._transaction) {
6360
+ if (this._transaction.transactionInfo) {
6361
+ this._transactionInfo = this._transaction.transactionInfo;
6362
+ this._isService = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.ServiceOrder;
6363
+ }
6364
+ if (this._transaction.transactionLines) {
6365
+ this.transactionLines = this._transaction.transactionLines;
6366
+ }
6367
+ if (this._transaction.transactionTotal) {
6368
+ this._transactionTotal = this._transaction.transactionTotal;
6369
+ }
6370
+ if (this._transaction.lineOperationStatuses) {
6371
+ this.lineOperationStatuses = this._transaction.lineOperationStatuses;
6372
+ }
6266
6373
  }
6267
6374
  },
6268
6375
  enumerable: false,
@@ -6270,25 +6377,40 @@
6270
6377
  });
6271
6378
  Object.defineProperty(TransactionBaseComponent.prototype, "transactionInfo", {
6272
6379
  get: function () {
6273
- return this._transaction.transactionInfo;
6380
+ return this._transactionInfo;
6381
+ },
6382
+ set: function (value) {
6383
+ this._transactionInfo = value;
6274
6384
  },
6275
6385
  enumerable: false,
6276
6386
  configurable: true
6277
6387
  });
6278
6388
  Object.defineProperty(TransactionBaseComponent.prototype, "transactionLines", {
6279
6389
  get: function () {
6280
- if (this._transaction) {
6281
- return this._transaction.transactionLines;
6282
- }
6390
+ return this._transactionLines;
6391
+ },
6392
+ set: function (value) {
6393
+ this._transactionLines = value;
6283
6394
  },
6284
6395
  enumerable: false,
6285
6396
  configurable: true
6286
6397
  });
6287
6398
  Object.defineProperty(TransactionBaseComponent.prototype, "transactionTotal", {
6288
6399
  get: function () {
6289
- if (this._transaction) {
6290
- return this._transaction.transactionTotal;
6291
- }
6400
+ return this._transactionTotal;
6401
+ },
6402
+ set: function (value) {
6403
+ this._transactionTotal = value;
6404
+ },
6405
+ enumerable: false,
6406
+ configurable: true
6407
+ });
6408
+ Object.defineProperty(TransactionBaseComponent.prototype, "lineOperationStatuses", {
6409
+ get: function () {
6410
+ return this._lineOperationStatuses;
6411
+ },
6412
+ set: function (value) {
6413
+ this._lineOperationStatuses = value;
6292
6414
  },
6293
6415
  enumerable: false,
6294
6416
  configurable: true
@@ -6417,6 +6539,13 @@
6417
6539
  customer: [{ type: i0.Input }]
6418
6540
  };
6419
6541
 
6542
+ // import {
6543
+ // ToolbarService,
6544
+ // LinkService,
6545
+ // ImageService,
6546
+ // HtmlEditorService,
6547
+ // RichTextEditor
6548
+ // } from '@syncfusion/ej2-angular-richtexteditor';
6420
6549
  var TransactionArticleTextComponent = /** @class */ (function (_super) {
6421
6550
  __extends(TransactionArticleTextComponent, _super);
6422
6551
  function TransactionArticleTextComponent(service) {
@@ -6479,7 +6608,7 @@
6479
6608
  { type: i0.Component, args: [{
6480
6609
  // eslint-disable-next-line @angular-eslint/component-selector
6481
6610
  selector: "transaction-article-text",
6482
- template: "\n <co-dialog [visible]=\"visible\" (close)=\"onPopupClose()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!--transactiontransaction-->\n<!-- label=\"Artikeltekst\"-->\n<!-- ></co-text-editor>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:16px;\">\n <ejs-dropdownlist\n [dataSource]=\"collection\"\n [fields]=\"fields\"\n placeholder=\"Standaardteksten\"\n ></ejs-dropdownlist>\n </div>\n <div style=\"margin-top:20px;\">\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\">\n </co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hide()\"></co-button>\n <co-button label=\"OVERVIEW\" (click)=\"onOverview()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"overviewSelected\" (close)=\"hideOverview()\">\n <ng-container header>Artikelgebonden teksten {{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\" style=\"width:75%\">\n<!-- <grid [data]=\"articleTexts\" detailLink (detailLinkClick)=\"onDetailLinkClick($event)\">-->\n<!-- <grid-column key=\"title\" header=\"TITLE\" width=\"100px;\"></grid-column>-->\n<!-- <grid-column key=\"description\" header=\"DESCRIPTION\" width=\"200px\"></grid-column>-->\n<!-- </grid>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:20px;\">\n\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\"\n value=\"true\"\n ></co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxPosition=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkOverviewClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideOverview()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"editArtikelText\" (close)=\"hideEditArtikelText()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!-- <co-text-editor-->\n<!-- label=\"Artikeltekst\"-->\n<!-- ></co-text-editor>-->\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkEditArtikelTextClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideEditArtikelText()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
6611
+ template: "\n <co-dialog [visible]=\"visible\" (close)=\"onPopupClose()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!-- <ejs-richtexteditor-->\n<!-- #rte-->\n<!-- id=\"Rte\"-->\n<!-- >-->\n<!-- </ejs-richtexteditor>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:16px;\">\n <ejs-dropdownlist\n [dataSource]=\"collection\"\n [fields]=\"fields\"\n placeholder=\"Standaardteksten\"\n ></ejs-dropdownlist>\n\n </div>\n <div style=\"margin-top:20px;\">\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\">\n </co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hide()\"></co-button>\n <co-button label=\"OVERVIEW\" (click)=\"onOverview()\"></co-button>\n<!-- <co-button label=\"TEST\" (click)=\"onTest()\"></co-button>-->\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"overviewSelected\" (close)=\"hideOverview()\">\n <ng-container header>Artikelgebonden teksten {{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\" style=\"width:75%\">\n<!-- <grid [data]=\"articleTexts\" detailLink (detailLinkClick)=\"onDetailLinkClick($event)\">-->\n<!-- <grid-column key=\"title\" header=\"TITLE\" width=\"100px;\"></grid-column>-->\n<!-- <grid-column key=\"description\" header=\"DESCRIPTION\" width=\"200px\"></grid-column>-->\n<!-- </grid>-->\n </div>\n <div style=\"margin-left:5px;\">\n <div style=\"margin-top:20px;\">\n\n <co-input-checkbox\n label=\"Artikelgebonden tekst\"\n name=\"articleBoundText\"\n value=\"true\"\n ></co-input-checkbox>\n </div>\n <div style=\"margin-top:20px;\">\n <label>Bestemd voor documenten</label>\n <ejs-chiplist id=\"chip-default\">\n <e-chips>\n <e-chip text=\"Apple\" cssClass=\"e-primary\"></e-chip>\n <e-chip text=\"Microsoft\" cssClass=\"e-info\"></e-chip>\n <e-chip text=\"Google\" cssClass=\"e-success\"></e-chip>\n <e-chip text=\"Tesla\" cssClass=\"e-warning\"></e-chip>\n <e-chip text=\"Intel\" cssClass=\"e-danger\"></e-chip>\n </e-chips>\n </ejs-chiplist>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxPosition=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkOverviewClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideOverview()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <co-dialog [visible]=\"editArtikelText\" (close)=\"hideEditArtikelText()\">\n <ng-container header>{{ subHeader }}</ng-container>\n <ng-container content>\n <div class=\"tags-join-content\" fxLayout fxLayoutGap=\"10px\">\n <div class=\"column-separator\">\n <co-input-text placeholder=\"Titel\"></co-input-text>\n<!-- <co-text-editor-->\n<!-- label=\"Artikeltekst\"-->\n<!-- ></co-text-editor>-->\n </div>\n </div>\n </ng-container>\n <ng-container footer>\n <div class=\"footer\" fxLayout fxLayoutAlign=\"center center\" fxLayoutGap=\"10px\" style=\"margin-top:30px;\">\n <co-button label=\"OK\" (click)=\"onOkEditArtikelTextClick()\"></co-button>\n <co-button label=\"CANCEL\" (click)=\"hideEditArtikelText()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
6483
6612
  styles: [""]
6484
6613
  },] }
6485
6614
  ];
@@ -6490,80 +6619,552 @@
6490
6619
  subHeader: [{ type: i0.Input }]
6491
6620
  };
6492
6621
 
6493
- var ServiceOrderComponent = /** @class */ (function (_super) {
6494
- __extends(ServiceOrderComponent, _super);
6495
- function ServiceOrderComponent(service, transactionEvents, iconCacheService) {
6622
+ var TransactionManagerComponent = /** @class */ (function (_super) {
6623
+ __extends(TransactionManagerComponent, _super);
6624
+ function TransactionManagerComponent(service, transactionEvents, promptService, _dictionaryService) {
6496
6625
  var _this = _super.call(this, service) || this;
6497
6626
  _this.service = service;
6498
6627
  _this.transactionEvents = transactionEvents;
6499
- _this.iconCacheService = iconCacheService;
6500
- _this.iconThickLines = corecomponents_v12.CoreComponentsIcon.ThickLines;
6501
- _this.iconThinLines = corecomponents_v12.CoreComponentsIcon.ThinLines;
6502
- _this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
6503
- _this.viewModes = ContentViewMode;
6504
- _this.canPlanDelivery = false;
6505
- _this.showTotals = true;
6506
- _this.contextMenuItems = [];
6507
- _this.isRouteOptimizationConfigured = false;
6508
- _this.activeViewMode = ContentViewMode.List;
6509
- _this.floatButtonSelected = false;
6628
+ _this.promptService = promptService;
6629
+ _this._dictionaryService = _dictionaryService;
6630
+ _this.linesChanged = new i0.EventEmitter();
6631
+ _this.articleAdded = new i0.EventEmitter();
6632
+ _this.columns = [];
6633
+ _this._inOutCollection = [];
6634
+ _this._showCharacteristic = false;
6510
6635
  _this._subs = [];
6636
+ _this._subs.push(_this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
6637
+ if (transactionInfoResponse.isSuccess) {
6638
+ _this.transaction = transactionInfoResponse;
6639
+ }
6640
+ }));
6511
6641
  return _this;
6512
6642
  }
6513
- Object.defineProperty(ServiceOrderComponent.prototype, "inListView", {
6643
+ Object.defineProperty(TransactionManagerComponent.prototype, "amountOfLines", {
6514
6644
  get: function () {
6515
- return this.activeViewMode === ContentViewMode.List;
6645
+ return numberUtils.NumberUtils.NrOrDefault(this.service.articleAmount, 0);
6516
6646
  },
6517
6647
  enumerable: false,
6518
6648
  configurable: true
6519
6649
  });
6520
- Object.defineProperty(ServiceOrderComponent.prototype, "inGridView", {
6650
+ Object.defineProperty(TransactionManagerComponent.prototype, "showCharacteristicDialog", {
6521
6651
  get: function () {
6522
- return this.activeViewMode === ContentViewMode.Grid;
6652
+ return this._showCharacteristic;
6653
+ },
6654
+ set: function (value) {
6655
+ this._showCharacteristic = value;
6523
6656
  },
6524
6657
  enumerable: false,
6525
6658
  configurable: true
6526
6659
  });
6527
- ServiceOrderComponent.prototype.ngOnInit = function () {
6660
+ TransactionManagerComponent.prototype.ngOnDestroy = function () {
6661
+ this._subs.forEach(function (sub) { return sub.unsubscribe(); });
6662
+ };
6663
+ TransactionManagerComponent.prototype.addArticleLine = function (transactionUuid, sku, amount, lineNr, beforeOrAfter) {
6664
+ return __awaiter(this, void 0, void 0, function () {
6665
+ var goodId;
6666
+ return __generator(this, function (_a) {
6667
+ switch (_a.label) {
6668
+ case 0: return [4 /*yield*/, this.service.getGoodIdFromArticleNr(sku)];
6669
+ case 1:
6670
+ goodId = _a.sent();
6671
+ if (!goodId) return [3 /*break*/, 4];
6672
+ return [4 /*yield*/, this._loadArticle(goodId)];
6673
+ case 2:
6674
+ _a.sent();
6675
+ return [4 /*yield*/, this._handleAddArticleLineAt(amount, lineNr, beforeOrAfter)];
6676
+ case 3:
6677
+ _a.sent();
6678
+ return [3 /*break*/, 5];
6679
+ case 4:
6680
+ this.promptService.showError(this._dictionaryService.get("ARTICLE_UNKNOWN"));
6681
+ _a.label = 5;
6682
+ case 5: return [2 /*return*/];
6683
+ }
6684
+ });
6685
+ });
6686
+ };
6687
+ TransactionManagerComponent.prototype.changeLineSequence = function (fromIndex, toIndex) {
6528
6688
  return __awaiter(this, void 0, void 0, function () {
6689
+ var fromLine, toLine, aboveLineNr, belowLineNr;
6529
6690
  var _this = this;
6530
6691
  return __generator(this, function (_a) {
6531
- this._subs.push(this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
6532
- if (transactionInfoResponse.isSuccess) {
6533
- _this.transaction = transactionInfoResponse;
6534
- if (_this.transaction && _this.transaction.transactionInfo) {
6535
- _this.customerId = Number(_this.transaction.transactionInfo.relation.relationNr);
6536
- _this.relationId = _this.transaction.transactionInfo.relation.relationId;
6692
+ switch (_a.label) {
6693
+ case 0:
6694
+ fromLine = this._getTransactionLineInfoByIndex(fromIndex);
6695
+ toLine = this._getTransactionLineInfoByIndex(toIndex);
6696
+ if (fromIndex > toIndex) {
6697
+ aboveLineNr = toLine.lineNr;
6537
6698
  }
6538
- }
6539
- }), this.transactionEvents.rightSidebarClose.subscribe(function () {
6540
- _this.moveFloatingButtonToRight();
6541
- }), this.transactionEvents.transactionLineClicked.subscribe(function (transactionLine) {
6542
- _this._selectedTransLine = transactionLine;
6543
- _this.moveFloatingButtonToLeft();
6544
- }), this.transactionEvents.scrollContent.subscribe(function (event) {
6545
- _this.hideOrderTotals(event);
6546
- }));
6699
+ else {
6700
+ belowLineNr = toLine.lineNr;
6701
+ }
6702
+ return [4 /*yield*/, this.service.changeLineSequence(fromLine.uuid, aboveLineNr, belowLineNr, false)
6703
+ .then(function (value) {
6704
+ _this.handleLineOperationStatus(value);
6705
+ }, function (error) { return _this.promptService.showError(error); })];
6706
+ case 1:
6707
+ _a.sent();
6708
+ return [2 /*return*/];
6709
+ }
6710
+ });
6711
+ });
6712
+ };
6713
+ TransactionManagerComponent.prototype.showStockManager = function (line) {
6714
+ return __awaiter(this, void 0, void 0, function () {
6715
+ return __generator(this, function (_a) {
6716
+ this.warehouse.selectedWarehouseNr = line.warehouseNumber;
6717
+ this.warehouse.amount = line.amount;
6718
+ this.warehouse.commissionCode = line.commissionCode;
6719
+ this.warehouse.message = this.currentOperationStatus.pendingReason;
6720
+ this.warehouse.show(line.articleNumber);
6547
6721
  return [2 /*return*/];
6548
6722
  });
6549
6723
  });
6550
6724
  };
6551
- ServiceOrderComponent.prototype.ngOnDestroy = function () {
6552
- this._subs.forEach(function (sub) { return sub.unsubscribe(); });
6725
+ TransactionManagerComponent.prototype.warehouseOkClick = function () {
6726
+ return __awaiter(this, void 0, void 0, function () {
6727
+ var _this = this;
6728
+ return __generator(this, function (_a) {
6729
+ switch (_a.label) {
6730
+ case 0:
6731
+ if (this.warehouse.commissionCode !== undefined) {
6732
+ this.currentReason.commissionCode = this.warehouse.commissionCode;
6733
+ }
6734
+ if (this.warehouse.amount !== undefined) {
6735
+ this.currentReason.quantity = this.warehouse.amount;
6736
+ }
6737
+ if (this.warehouse.selectedWarehouseNr !== undefined) {
6738
+ this.currentReason.warehouseNr = this.warehouse.selectedWarehouseNr;
6739
+ }
6740
+ if (!this.currentReason) return [3 /*break*/, 2];
6741
+ return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
6742
+ .then(function (value) {
6743
+ _this.handleLineOperationStatus(value);
6744
+ })];
6745
+ case 1:
6746
+ _a.sent();
6747
+ _a.label = 2;
6748
+ case 2: return [2 /*return*/];
6749
+ }
6750
+ });
6751
+ });
6553
6752
  };
6554
- ServiceOrderComponent.prototype.animationFn = function () {
6555
- return animations$1.trigger("showPopup", [
6556
- animations$1.state("void", animations$1.style({ transform: "translate3d(0, 0, 0)" })),
6557
- animations$1.state("*", animations$1.style({ transform: "translate3d(100%, 0, 0)" })),
6558
- animations$1.transition("void <=> *", [
6559
- animations$1.animate("200ms ease-in-out")
6560
- ])
6561
- ]);
6753
+ TransactionManagerComponent.prototype.warehouseCancelClick = function () {
6754
+ return __awaiter(this, void 0, void 0, function () {
6755
+ return __generator(this, function (_a) {
6756
+ switch (_a.label) {
6757
+ case 0:
6758
+ if (!this.currentReason) return [3 /*break*/, 2];
6759
+ return [4 /*yield*/, this._cancelArticle(this.currentReason.lineUuid)];
6760
+ case 1:
6761
+ _a.sent();
6762
+ _a.label = 2;
6763
+ case 2: return [2 /*return*/];
6764
+ }
6765
+ });
6766
+ });
6562
6767
  };
6563
- ServiceOrderComponent.prototype.trackByFn = function (index, line) {
6564
- return line.lineNr;
6768
+ TransactionManagerComponent.prototype.handleCharacteristicAnswerOkClick = function (answer) {
6769
+ return __awaiter(this, void 0, void 0, function () {
6770
+ var _this = this;
6771
+ return __generator(this, function (_a) {
6772
+ switch (_a.label) {
6773
+ case 0:
6774
+ this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
6775
+ this.currentReason.textualUserInput = answer;
6776
+ return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
6777
+ .then(function (value) {
6778
+ _this.handleLineOperationStatus(value);
6779
+ })];
6780
+ case 1:
6781
+ _a.sent();
6782
+ return [2 /*return*/];
6783
+ }
6784
+ });
6785
+ });
6565
6786
  };
6566
- ServiceOrderComponent.prototype.handleRowsSelected = function (rows) {
6787
+ TransactionManagerComponent.prototype._handleAddArticle = function (amount) {
6788
+ if (amount === void 0) { amount = 1; }
6789
+ return __awaiter(this, void 0, void 0, function () {
6790
+ var _this = this;
6791
+ return __generator(this, function (_a) {
6792
+ switch (_a.label) {
6793
+ case 0: return [4 /*yield*/, this.service.addTransactionLine(transactionLineType_enum.TransactionLineType.ArticleLine, this.newArticleNr, amount, this.newArticle.standardWareHouse, this.newArticle.commissionCode, false, 0, 0, false)
6794
+ .then(function (value) {
6795
+ _this.handleLineOperationStatus(value);
6796
+ }, function (error) { return _this.promptService.showError(error); })];
6797
+ case 1:
6798
+ _a.sent();
6799
+ return [2 /*return*/];
6800
+ }
6801
+ });
6802
+ });
6803
+ };
6804
+ TransactionManagerComponent.prototype._handleAddArticleLineAt = function (amount, lineNr, beforeOrAfter) {
6805
+ return __awaiter(this, void 0, void 0, function () {
6806
+ var _this = this;
6807
+ return __generator(this, function (_a) {
6808
+ switch (_a.label) {
6809
+ case 0: return [4 /*yield*/, this.service.addArticleToTransaction(this.transactionInfo.uuid, this.newArticleNr, amount, this.newArticle.standardWareHouse, this.newArticle.commissionCode, false, beforeOrAfter === PositionGridRow.Before ? lineNr : undefined, beforeOrAfter === PositionGridRow.After ? lineNr : undefined)
6810
+ .then(function (value) {
6811
+ _this.lineOperationStatuses = value.lineOperationStatuses;
6812
+ _this.handleLineOperationStatus(value);
6813
+ }, function (error) { return _this.promptService.showError(error); })];
6814
+ case 1:
6815
+ _a.sent();
6816
+ return [2 /*return*/];
6817
+ }
6818
+ });
6819
+ });
6820
+ };
6821
+ TransactionManagerComponent.prototype._getWareHouseNoFromArticle = function () {
6822
+ if (this.newArticle !== undefined && this.newArticle.stockLocations !== undefined && this.newArticle.stockLocations.length) {
6823
+ return this.newArticle.stockLocations[0].warehouseNr;
6824
+ }
6825
+ return 0;
6826
+ };
6827
+ TransactionManagerComponent.prototype.isLineOperationStatus = function (lineOperationStatuses) {
6828
+ this.currentOperationStatus = this.service.pendingLineOperationStatus(lineOperationStatuses);
6829
+ if (this.currentOperationStatus !== undefined) {
6830
+ return true;
6831
+ }
6832
+ return false;
6833
+ };
6834
+ TransactionManagerComponent.prototype._confirmAction = function () {
6835
+ return __awaiter(this, void 0, void 0, function () {
6836
+ var pendingReasonText, _a;
6837
+ var _this = this;
6838
+ return __generator(this, function (_b) {
6839
+ switch (_b.label) {
6840
+ case 0:
6841
+ this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
6842
+ return [4 /*yield*/, this._getPendingReasonText(this.currentOperationStatus.pendingReason)];
6843
+ case 1:
6844
+ pendingReasonText = _b.sent();
6845
+ _a = this.currentReason;
6846
+ return [4 /*yield*/, this.promptService.showYesNo(pendingReasonText, " ")];
6847
+ case 2:
6848
+ _a.confirmation = _b.sent();
6849
+ return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
6850
+ .then(function (value) {
6851
+ _this.handleLineOperationStatus(value);
6852
+ })];
6853
+ case 3:
6854
+ _b.sent();
6855
+ return [2 /*return*/];
6856
+ }
6857
+ });
6858
+ });
6859
+ };
6860
+ TransactionManagerComponent.prototype._showInformation = function () {
6861
+ return __awaiter(this, void 0, void 0, function () {
6862
+ var pendingReasonText;
6863
+ var _this = this;
6864
+ return __generator(this, function (_a) {
6865
+ switch (_a.label) {
6866
+ case 0:
6867
+ this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
6868
+ return [4 /*yield*/, this._getPendingReasonText(this.currentOperationStatus.pendingReason)];
6869
+ case 1:
6870
+ pendingReasonText = _a.sent();
6871
+ return [4 /*yield*/, this.promptService.showOkModal(pendingReasonText, " ")];
6872
+ case 2:
6873
+ _a.sent();
6874
+ return [4 /*yield*/, this.service.resolvePendingLineReason(this.currentReason, false)
6875
+ .then(function (value) {
6876
+ _this.handleLineOperationStatus(value);
6877
+ })];
6878
+ case 3:
6879
+ _a.sent();
6880
+ return [2 /*return*/];
6881
+ }
6882
+ });
6883
+ });
6884
+ };
6885
+ TransactionManagerComponent.prototype._getPendingReasonText = function (pendingReason) {
6886
+ return __awaiter(this, void 0, void 0, function () {
6887
+ var _a, _b, _c;
6888
+ return __generator(this, function (_d) {
6889
+ switch (_d.label) {
6890
+ case 0:
6891
+ if (!(pendingReason === "ARTICLE_IS_DISCONTINUED_DO_YOU_WANT_TO_CONTINUE_PLEASE_CONFIRM")) return [3 /*break*/, 2];
6892
+ _b = (_a = this._dictionaryService.get("ARTICLE_IN_OUT_COLLECTION")).replace;
6893
+ _c = ["|~"];
6894
+ return [4 /*yield*/, this.getInOutCollectionOfArticle()];
6895
+ case 1: return [2 /*return*/, _b.apply(_a, _c.concat([_d.sent()]))];
6896
+ case 2: return [2 /*return*/, this._dictionaryService.get(pendingReason)];
6897
+ }
6898
+ });
6899
+ });
6900
+ };
6901
+ TransactionManagerComponent.prototype.getInOutCollectionOfArticle = function () {
6902
+ return __awaiter(this, void 0, void 0, function () {
6903
+ var _a, domainValue;
6904
+ var _this = this;
6905
+ return __generator(this, function (_b) {
6906
+ switch (_b.label) {
6907
+ case 0:
6908
+ if (!!this._inOutCollection.length) return [3 /*break*/, 2];
6909
+ _a = this;
6910
+ return [4 /*yield*/, this.service.getInOutCollection("NL")];
6911
+ case 1:
6912
+ _a._inOutCollection = _b.sent();
6913
+ _b.label = 2;
6914
+ case 2:
6915
+ domainValue = this._inOutCollection.find(function (element) { return element.code === _this.newArticle.inOutCollection; });
6916
+ if (domainValue) {
6917
+ return [2 /*return*/, domainValue.description];
6918
+ }
6919
+ return [2 /*return*/, ""];
6920
+ }
6921
+ });
6922
+ });
6923
+ };
6924
+ TransactionManagerComponent.prototype.handleLineOperationStatus = function (lineOperationResponse) {
6925
+ return __awaiter(this, void 0, void 0, function () {
6926
+ return __generator(this, function (_a) {
6927
+ switch (_a.label) {
6928
+ case 0:
6929
+ if (!this.isLineOperationStatus(lineOperationResponse.lineOperationStatuses)) return [3 /*break*/, 2];
6930
+ this.transaction = lineOperationResponse;
6931
+ this.articleAdded.emit(this.transaction);
6932
+ return [4 /*yield*/, this._handlePendingLine(this.currentOperationStatus.uuid).then()];
6933
+ case 1:
6934
+ _a.sent();
6935
+ return [3 /*break*/, 4];
6936
+ case 2: return [4 /*yield*/, this._saveTransaction()];
6937
+ case 3:
6938
+ _a.sent();
6939
+ _a.label = 4;
6940
+ case 4: return [2 /*return*/];
6941
+ }
6942
+ });
6943
+ });
6944
+ };
6945
+ TransactionManagerComponent.prototype._handlePendingLine = function (lineUuid) {
6946
+ return __awaiter(this, void 0, void 0, function () {
6947
+ var _a;
6948
+ return __generator(this, function (_b) {
6949
+ switch (_b.label) {
6950
+ case 0:
6951
+ this.currentReason = new resolvePendingReasonRequest_bo.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid, this.currentOperationStatus.pendingReason, this.currentOperationStatus.pendingReasonType);
6952
+ this.currentPendingLine = this.transactionLines.find(function (l) { return l.uuid === lineUuid; });
6953
+ _a = this.currentOperationStatus.pendingReasonType;
6954
+ switch (_a) {
6955
+ case pendingReasonType_enum.PendingReasonType.ABORTED: return [3 /*break*/, 1];
6956
+ case pendingReasonType_enum.PendingReasonType.CANCELLED: return [3 /*break*/, 1];
6957
+ case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/, 3];
6958
+ case pendingReasonType_enum.PendingReasonType.INVALID_LOGISTICS: return [3 /*break*/, 5];
6959
+ case pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION: return [3 /*break*/, 7];
6960
+ case pendingReasonType_enum.PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED: return [3 /*break*/, 9];
6961
+ case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/, 10];
6962
+ }
6963
+ return [3 /*break*/, 10];
6964
+ case 1: return [4 /*yield*/, this._cancelArticle(this.currentPendingLine.uuid)];
6965
+ case 2:
6966
+ _b.sent();
6967
+ return [3 /*break*/, 11];
6968
+ case 3: return [4 /*yield*/, this._confirmAction()];
6969
+ case 4:
6970
+ _b.sent();
6971
+ return [3 /*break*/, 11];
6972
+ case 5: return [4 /*yield*/, this.showStockManager(this.currentPendingLine)];
6973
+ case 6:
6974
+ _b.sent();
6975
+ return [3 /*break*/, 11];
6976
+ case 7: return [4 /*yield*/, this._showInformation()];
6977
+ case 8:
6978
+ _b.sent();
6979
+ return [3 /*break*/, 11];
6980
+ case 9:
6981
+ this.CharacteristicsAnswerNeeded();
6982
+ return [3 /*break*/, 11];
6983
+ case 10:
6984
+ this.currentReason = undefined;
6985
+ this.currentPendingLine = undefined;
6986
+ return [3 /*break*/, 11];
6987
+ case 11: return [2 /*return*/];
6988
+ }
6989
+ });
6990
+ });
6991
+ };
6992
+ TransactionManagerComponent.prototype._saveTransaction = function () {
6993
+ return __awaiter(this, void 0, void 0, function () {
6994
+ var success;
6995
+ return __generator(this, function (_a) {
6996
+ switch (_a.label) {
6997
+ case 0:
6998
+ if (!this.transactionInfo) return [3 /*break*/, 2];
6999
+ return [4 /*yield*/, this.service.saveTransactionByUuid(this.transactionInfo.uuid)];
7000
+ case 1:
7001
+ success = _a.sent();
7002
+ if (!success) {
7003
+ this.promptService.showError("Transaction could not be saved!");
7004
+ }
7005
+ _a.label = 2;
7006
+ case 2: return [2 /*return*/];
7007
+ }
7008
+ });
7009
+ });
7010
+ };
7011
+ TransactionManagerComponent.prototype._loadArticle = function (goodId) {
7012
+ return __awaiter(this, void 0, void 0, function () {
7013
+ var _a;
7014
+ return __generator(this, function (_b) {
7015
+ switch (_b.label) {
7016
+ case 0:
7017
+ _a = this;
7018
+ return [4 /*yield*/, this.service.getArticleFullObject(goodId)];
7019
+ case 1:
7020
+ _a.newArticle = _b.sent();
7021
+ this.newArticleNr = this.newArticle.articleNr;
7022
+ return [2 /*return*/];
7023
+ }
7024
+ });
7025
+ });
7026
+ };
7027
+ TransactionManagerComponent.prototype.addEmailAddressToTransaction = function (emailAddress) {
7028
+ this.service.emailAddress = emailAddress;
7029
+ };
7030
+ TransactionManagerComponent.prototype.CharacteristicsAnswerNeeded = function () {
7031
+ var _this = this;
7032
+ this.characteristicAnswer.question = this.currentOperationStatus.characteristic.question;
7033
+ this.characteristicAnswer.title = this.newArticle.description;
7034
+ this.characteristicAnswer.value = this.currentOperationStatus.characteristic.value;
7035
+ this.characteristicAnswer.characteristics = this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices;
7036
+ setTimeout(function () {
7037
+ _this.characteristicAnswer.open();
7038
+ // eslint-disable-next-line no-magic-numbers
7039
+ }, 1000);
7040
+ };
7041
+ TransactionManagerComponent.prototype._getTransactionLineInfoByIndex = function (index) {
7042
+ if (index >= 0 && index < this.transactionLines.length) {
7043
+ return this.service.currentLines[index];
7044
+ }
7045
+ };
7046
+ TransactionManagerComponent.prototype._cancelArticle = function (uuid) {
7047
+ return __awaiter(this, void 0, void 0, function () {
7048
+ var _this = this;
7049
+ return __generator(this, function (_a) {
7050
+ switch (_a.label) {
7051
+ case 0: return [4 /*yield*/, this.service.cancelAddTransactionLine(uuid, false)
7052
+ .then(function (response) {
7053
+ _this.transaction = response;
7054
+ _this.articleAdded.emit(response);
7055
+ })];
7056
+ case 1:
7057
+ _a.sent();
7058
+ return [2 /*return*/];
7059
+ }
7060
+ });
7061
+ });
7062
+ };
7063
+ return TransactionManagerComponent;
7064
+ }(TransactionBaseComponent));
7065
+ TransactionManagerComponent.decorators = [
7066
+ { type: i0.Component, args: [{
7067
+ // eslint-disable-next-line @angular-eslint/component-selector
7068
+ selector: "transaction-manager",
7069
+ template: "\n <warehouse #warehouse\n (okClick)=\"warehouseOkClick()\"\n (cancelClick)=\"warehouseCancelClick()\"\n ></warehouse>\n <characteristic-answer\n #characteristicAnswer\n (okClick)=\"handleCharacteristicAnswerOkClick($event)\"\n ></characteristic-answer>\n ",
7070
+ styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
7071
+ },] }
7072
+ ];
7073
+ TransactionManagerComponent.ctorParameters = function () { return [
7074
+ { type: TransactionService },
7075
+ { type: TransactionEventService },
7076
+ { type: corecomponents_v12.PromptService },
7077
+ { type: DictionaryService }
7078
+ ]; };
7079
+ TransactionManagerComponent.propDecorators = {
7080
+ warehouse: [{ type: i0.ViewChild, args: ["warehouse",] }],
7081
+ characteristicAnswer: [{ type: i0.ViewChild, args: ["characteristicAnswer",] }],
7082
+ linesChanged: [{ type: i0.Output }],
7083
+ articleAdded: [{ type: i0.Output }]
7084
+ };
7085
+
7086
+ var ServiceOrderComponent = /** @class */ (function (_super) {
7087
+ __extends(ServiceOrderComponent, _super);
7088
+ function ServiceOrderComponent(service, transactionEvents, iconCacheService, _promptService) {
7089
+ var _this = _super.call(this, service) || this;
7090
+ _this.service = service;
7091
+ _this.transactionEvents = transactionEvents;
7092
+ _this.iconCacheService = iconCacheService;
7093
+ _this._promptService = _promptService;
7094
+ _this.iconThickLines = corecomponents_v12.CoreComponentsIcon.ThickLines;
7095
+ _this.iconThinLines = corecomponents_v12.CoreComponentsIcon.ThinLines;
7096
+ _this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
7097
+ _this.viewModes = ContentViewMode;
7098
+ _this.canPlanDelivery = false;
7099
+ _this.showTotals = true;
7100
+ _this.contextMenuItems = [];
7101
+ _this.isRouteOptimizationConfigured = false;
7102
+ _this.activeViewMode = ContentViewMode.List;
7103
+ _this.floatButtonSelected = false;
7104
+ _this.newArticleNr = "";
7105
+ _this._subs = [];
7106
+ return _this;
7107
+ }
7108
+ Object.defineProperty(ServiceOrderComponent.prototype, "inListView", {
7109
+ get: function () {
7110
+ return this.activeViewMode === ContentViewMode.List;
7111
+ },
7112
+ enumerable: false,
7113
+ configurable: true
7114
+ });
7115
+ Object.defineProperty(ServiceOrderComponent.prototype, "inGridView", {
7116
+ get: function () {
7117
+ return this.activeViewMode === ContentViewMode.Grid;
7118
+ },
7119
+ enumerable: false,
7120
+ configurable: true
7121
+ });
7122
+ ServiceOrderComponent.prototype.ngOnInit = function () {
7123
+ return __awaiter(this, void 0, void 0, function () {
7124
+ var _this = this;
7125
+ return __generator(this, function (_a) {
7126
+ this._subs.push(this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
7127
+ if (transactionInfoResponse.isSuccess) {
7128
+ _this.transaction = transactionInfoResponse;
7129
+ if (_this.transaction && _this.transaction.transactionInfo) {
7130
+ _this.customerId = Number(_this.transaction.transactionInfo.relation.relationNr);
7131
+ _this.relationId = _this.transaction.transactionInfo.relation.relationId;
7132
+ }
7133
+ }
7134
+ }), this.transactionEvents.rightSidebarClose.subscribe(function () {
7135
+ _this.moveFloatingButtonToRight();
7136
+ }), this.transactionEvents.transactionLineClicked.subscribe(function (transactionLine) {
7137
+ _this._selectedTransLine = transactionLine;
7138
+ _this.moveFloatingButtonToLeft();
7139
+ }), this.transactionEvents.scrollContent.subscribe(function (event) {
7140
+ _this.hideOrderTotals(event);
7141
+ }));
7142
+ return [2 /*return*/];
7143
+ });
7144
+ });
7145
+ };
7146
+ ServiceOrderComponent.prototype.ngAfterViewInit = function () {
7147
+ var _this = this;
7148
+ this._subs.push(this._transactionManager.articleAdded.subscribe(function (transactionInfoResponse) {
7149
+ _this.transaction = transactionInfoResponse;
7150
+ }));
7151
+ };
7152
+ ServiceOrderComponent.prototype.ngOnDestroy = function () {
7153
+ this._subs.forEach(function (sub) { return sub.unsubscribe(); });
7154
+ };
7155
+ ServiceOrderComponent.prototype.animationFn = function () {
7156
+ return animations.trigger("showPopup", [
7157
+ animations.state("void", animations.style({ transform: "translate3d(0, 0, 0)" })),
7158
+ animations.state("*", animations.style({ transform: "translate3d(100%, 0, 0)" })),
7159
+ animations.transition("void <=> *", [
7160
+ animations.animate("200ms ease-in-out")
7161
+ ])
7162
+ ]);
7163
+ };
7164
+ ServiceOrderComponent.prototype.trackByFn = function (index, line) {
7165
+ return line.lineNr;
7166
+ };
7167
+ ServiceOrderComponent.prototype.handleRowsSelected = function (rows) {
6567
7168
  this._selectedTransLine = rows.find(function (x) { return x !== undefined; });
6568
7169
  };
6569
7170
  ServiceOrderComponent.prototype.handlePlanningRequest = function (event) {
@@ -6591,7 +7192,7 @@
6591
7192
  };
6592
7193
  Object.defineProperty(ServiceOrderComponent.prototype, "subHeader", {
6593
7194
  get: function () {
6594
- if (this._selectedTransLine && this._selectedTransLine !== undefined) {
7195
+ if (this._selectedTransLine) {
6595
7196
  return this._selectedTransLine.goodDescription;
6596
7197
  }
6597
7198
  return "";
@@ -6602,6 +7203,22 @@
6602
7203
  ServiceOrderComponent.prototype.hideOrderTotals = function (event) {
6603
7204
  this.showTotals = false;
6604
7205
  };
7206
+ ServiceOrderComponent.prototype.addArticleLine = function (event) {
7207
+ return __awaiter(this, void 0, void 0, function () {
7208
+ return __generator(this, function (_a) {
7209
+ switch (_a.label) {
7210
+ case 0:
7211
+ if (!(event.code === "Enter")) return [3 /*break*/, 2];
7212
+ if (!(this.newArticleNr && this.newArticleNr !== "")) return [3 /*break*/, 2];
7213
+ return [4 /*yield*/, this._transactionManager.addArticleLine(this.transactionInfo.uuid, this.newArticleNr, 1, 0, PositionGridRow.After)];
7214
+ case 1:
7215
+ _a.sent();
7216
+ _a.label = 2;
7217
+ case 2: return [2 /*return*/];
7218
+ }
7219
+ });
7220
+ });
7221
+ };
6605
7222
  return ServiceOrderComponent;
6606
7223
  }(TransactionBaseComponent));
6607
7224
  ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR = 50;
@@ -6610,39 +7227,41 @@
6610
7227
  { type: i0.Component, args: [{
6611
7228
  // eslint-disable-next-line @angular-eslint/component-selector
6612
7229
  selector: "service-order",
6613
- template: "\n <div id=\"transaction-general-tab\" style=\"height:100%;\">\n <transaction-header-block\n [relationId]=\"relationId\"\n [transaction]=\"transaction\"\n [canPlanDelivery]=\"canPlanDelivery\"\n (planningRequestButtonClick)=\"handlePlanningRequest($event)\"\n ></transaction-header-block>\n <div *ngIf=\"!isService\">\n <div class=\"transaction-view\" fxLayout=\"row\" fxLayoutGap=\"1px\" fxLayoutAlign=\"flex-end\">\n <div class=\"view-mode-buttons\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n <co-button [iconData]=\"iconCacheService.getIcon(iconThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.List\">\n <transaction-order-line-view *ngFor=\"let line of transactionLines; trackBy:trackByFn;\"\n [line]=\"line\"\n ></transaction-order-line-view>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.Grid\">\n <transaction-order-lines [transaction]=\"transaction\"></transaction-order-lines>\n </div>\n <div class=\"floating-icon-wrapper\" [style.right.px]=\"floatButtonRightPosition\">\n <icon [icon]=\"iconOrder\"\n class=\"light\"\n (click)=\"floatButtonClick()\" id=\"floatingIcon\"\n [style.right.px]=\"floatButtonRightPosition\"></icon>\n </div>\n </div>\n <transaction-order-totals *ngIf=\"!isService\"\n [transactionTotal]=\"transactionTotal\"\n [ngClass]=\"showTotals ? 'transaction-totals-show' : 'transaction-totals-hide'\"></transaction-order-totals>\n </div>\n\n <transaction-article-text></transaction-article-text>\n ",
7230
+ template: "\n <transaction-manager></transaction-manager>\n <div id=\"transaction-general-tab\" style=\"height:100%;\">\n <transaction-header-block\n [relationId]=\"relationId\"\n [transaction]=\"transaction\"\n [canPlanDelivery]=\"canPlanDelivery\"\n (planningRequestButtonClick)=\"handlePlanningRequest($event)\"\n ></transaction-header-block>\n <div *ngIf=\"!isService\">\n <div style=\"display: flex; flex-direction: row; place-content: center\">\n <co-input-text style=\"width: 200px;\"\n [(model)]=\"newArticleNr\"\n [placeholder]=\"'WHERE_ARE_YOU_LOOKING_FOR' | localize\"\n [showClearButton]=\"true\"\n (keypress)=\"addArticleLine($event)\"\n ></co-input-text>\n </div>\n <div class=\"transaction-view\" fxLayout=\"row\" fxLayoutGap=\"1px\" fxLayoutAlign=\"flex-end\">\n <div class=\"view-mode-buttons\">\n <co-button [iconData]=\"iconCacheService.getIcon(iconThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n <co-button [iconData]=\"iconCacheService.getIcon(iconThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"\n class=\"triangle white\"\n iconClass=\"medium light\"></co-button>\n </div>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.List\">\n <transaction-order-line-view *ngFor=\"let line of transactionLines; trackBy:trackByFn;\"\n [line]=\"line\"\n ></transaction-order-line-view>\n </div>\n <div *ngIf=\"this.activeViewMode === viewModes.Grid\">\n <transaction-order-lines [transaction]=\"transaction\"></transaction-order-lines>\n </div>\n <div class=\"floating-icon-wrapper\" [style.right.px]=\"floatButtonRightPosition\">\n <icon [icon]=\"iconOrder\"\n class=\"light\"\n (click)=\"floatButtonClick()\" id=\"floatingIcon\"\n [style.right.px]=\"floatButtonRightPosition\"></icon>\n </div>\n </div>\n <transaction-order-totals *ngIf=\"!isService\"\n [ngClass]=\"showTotals ? 'transaction-totals-show' : 'transaction-totals-hide'\"></transaction-order-totals>\n </div>\n\n <transaction-article-text></transaction-article-text>\n ",
6614
7231
  styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host :host{display:flex}.flex-center{flex-direction:row}:host :host{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.transaction-view .view-mode-buttons{margin-left:11px}:host :host{width:100%}:host :host{overflow:hidden}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host :host{padding-bottom:60px}.page-wrapper :host{padding:20px;margin-bottom:60px}:host transaction-order-totals{display:flex;flex-direction:column;align-items:flex-end}:host .transaction-totals-show{padding:20px}:host .transaction-totals-hide{position:relative;bottom:0;right:0}::ng-deep #transaction_planning_agenda{top:160px!important;width:calc(100vw - 80px)!important}::ng-deep #transaction_planning_agenda .popup-card-title{padding:10px 20px;background:#74B77F;color:#fff}::ng-deep #transaction_planning_agenda .popup-card-title .header-wrapper{align-items:center!important}::ng-deep #transaction_planning_agenda .popup-card-title .separator{border-color:#fff!important}::ng-deep #transaction_planning_agenda .popup-card-title .header{font-size:15px;font-weight:normal}::ng-deep #transaction_planning_agenda .popup-card-title .sub-header{font-size:18px;color:#fff!important;font-weight:bold!important}::ng-deep #transaction_planning_agenda .popup-card-title button-select icon [fill]{fill:#fff}::ng-deep #transaction_planning_agenda .popup-card-content{overflow:hidden}@media only screen and (max-width: 599px){::ng-deep #transaction_planning_agenda{width:100vw!important}::ng-deep #transaction_planning_agenda .popup-card-content{padding:0}}.column-separator{padding-right:25px;border-right:1px solid #0000001c}.floating-icon-wrapper{position:fixed;bottom:50px;right:50px;display:flex;flex-shrink:0;align-items:center;justify-content:center;background:#475060;height:50px;width:50px;opacity:.5;transition:opacity .4s ease-in-out;border-radius:50%;overflow:hidden;box-shadow:0 0 6px #0009;-webkit-box-shadow:0px 0px 6px 0px rgba(0,0,0,.6);-moz-box-shadow:0px 0px 6px 0px rgba(0,0,0,.6);cursor:pointer}.floating-icon-wrapper:hover{opacity:1;transition:opacity .4s ease-in-out}.floating-icon-wrapper ::ng-deep icon{height:44px!important;width:44px!important;color:#fff!important;flex-shrink:0}.transaction-wrapper{padding:0 20px}.view-mode-buttons co-button{padding:0}.transaction-view{display:flex;margin-top:10px;justify-content:stretch}.transaction-view .view-mode-buttons{display:flex;flex-direction:row}.transaction-view .view-mode-buttons button-select ::ng-deep button-colijn{border-radius:0}.transaction-view .view-mode-buttons button-select:first-child{margin-right:5px}.transaction-view .view-mode-buttons button-select:first-child ::ng-deep button-colijn{border-radius:3px}.transaction-view .view-mode-buttons button-select:nth-child(2) ::ng-deep button-colijn{border-top-left-radius:3px;border-bottom-left-radius:3px}.transaction-view .view-mode-buttons button-select:last-child ::ng-deep button-colijn{border-top-right-radius:3px;border-bottom-right-radius:3px}\n"]
6615
7232
  },] }
6616
7233
  ];
6617
7234
  ServiceOrderComponent.ctorParameters = function () { return [
6618
7235
  { type: TransactionService },
6619
7236
  { type: TransactionEventService },
6620
- { type: corecomponents_v12.IconCacheService }
7237
+ { type: corecomponents_v12.IconCacheService },
7238
+ { type: corecomponents_v12.PromptService }
6621
7239
  ]; };
6622
7240
  ServiceOrderComponent.propDecorators = {
6623
- _transactionArticleTextComponent: [{ type: i0.ViewChild, args: [TransactionArticleTextComponent, { static: false },] }]
7241
+ _transactionArticleTextComponent: [{ type: i0.ViewChild, args: [TransactionArticleTextComponent,] }],
7242
+ _transactionManager: [{ type: i0.ViewChild, args: [TransactionManagerComponent,] }]
6624
7243
  };
6625
7244
 
6626
- var TransactionOrderTotalsComponent /*extends TransactionBaseComponent*/ = /** @class */ (function () {
7245
+ var TransactionOrderTotalsComponent = /** @class */ (function (_super) {
7246
+ __extends(TransactionOrderTotalsComponent, _super);
6627
7247
  function TransactionOrderTotalsComponent(service) {
6628
- this.service = service;
6629
- //super(service);
7248
+ var _this = _super.call(this, service) || this;
7249
+ _this.service = service;
7250
+ return _this;
6630
7251
  }
6631
7252
  return TransactionOrderTotalsComponent;
6632
- }());
7253
+ }(TransactionBaseComponent));
6633
7254
  TransactionOrderTotalsComponent.decorators = [
6634
7255
  { type: i0.Component, args: [{
7256
+ // eslint-disable-next-line @angular-eslint/component-selector
6635
7257
  selector: "transaction-order-totals",
6636
- template: "\n <div class=\"totals-wrapper\">\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'SUBTOTAL' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal.grossAmount | coCurrency | coCurrency\"></div>\n </div>\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'VAT_AMOUNT' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"totals-item total\">\n <div class=\"totals-item-description\" [textContent]=\"'TRANSACTION_SUM_I' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal.netAmount | coCurrency\"></div>\n </div>\n </div>\n ",
7258
+ template: "\n <div class=\"totals-wrapper\">\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'SUBTOTAL' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.grossAmount | coCurrency | coCurrency\"></div>\n </div>\n <div class=\"totals-item\">\n <div class=\"totals-item-description\" [textContent]=\"'VAT_AMOUNT' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.surchargeAmount | coCurrency\"></div>\n </div>\n <div class=\"totals-item total\">\n <div class=\"totals-item-description\" [textContent]=\"'TRANSACTION_SUM_I' | localize\"></div>\n <div class=\"totals-item-value\" [textContent]=\"transactionTotal?.netAmount | coCurrency\"></div>\n </div>\n </div>\n ",
6637
7259
  styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host .totals-wrapper{width:310px;font-size:13px}:host .totals-item{display:flex;flex-direction:row;height:25px;align-items:center}:host .totals-item>div{text-align:end;width:50%}:host .totals-item.total{font-weight:bold;height:30px;border-top:1px solid #DCE4EA}\n"]
6638
7260
  },] }
6639
7261
  ];
6640
7262
  TransactionOrderTotalsComponent.ctorParameters = function () { return [
6641
7263
  { type: TransactionService }
6642
- ]; };
6643
- TransactionOrderTotalsComponent.propDecorators = {
6644
- transactionTotal: [{ type: i0.Input }]
6645
- };
7264
+ ]; };
6646
7265
 
6647
7266
  var TransactionOrderLineViewComponent = /** @class */ (function () {
6648
7267
  function TransactionOrderLineViewComponent(_service, _eventService) {
@@ -6687,7 +7306,7 @@
6687
7306
  // eslint-disable-next-line @angular-eslint/component-selector
6688
7307
  selector: "transaction-order-line-view",
6689
7308
  template: "\n <div class=\"transaction-order-line-r\" fxFlex (click)=\"transactionLineClick(line)\">\n <div fxLayout=\"row\" class=\"full-width\">\n <div fxLayout=\"column\" class=\"transaction-order-line-description\" fxLayoutGap=\"20px\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <span [textContent]=\"line.goodDescription\" class=\"cart-line-description-main\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"cart-line-description-artnr\"></span>\n </div>\n <div>\n <span [innerHTML]=\"line.configurationReadable\" class=\"cart-line-description-detail\"></span>\n </div>\n </div>\n <div fxLayout=\"column\" class=\"transaction-order-line-image\">\n <image-display [model]=\"image\"></image-display>\n </div>\n </div>\n <div fxLayout=\"row\" class=\"transaction-order-line-right\">\n <div fxLayout=\"column\" class=\"transaction-order-line-stock\">\n <span [textContent]=\"'STOCK' | localize\" class=\"small-font\"></span>\n <stock-status-indicator [model]=\"stock\"></stock-status-indicator>\n <span [textContent]=\"'DELIVERY_TIME_PERIOD' | localize\" class=\"small-font\"></span>\n <span [textContent]=\"line.deliveryDate | deliveryTime\"></span>\n </div>\n <div class=\"transaction-order-line-amount\">\n <co-input-number-picker\n class=\"horizontal\"\n [(model)]=\"line.amount\" [min]=\"0\" [buttonShowMode]=\"'always'\"\n [readonly]=\"true\"></co-input-number-picker>\n </div>\n <div class=\"transaction-order-line-totals\">\n <span [textContent]=\"line.netLineTotal | coCurrency: true\"></span>\n </div>\n </div>\n </div>\n ",
6690
- styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.horizontal{display:flex;flex-direction:row}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
7309
+ styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.horizontal{display:flex;flex-direction:row}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:15em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
6691
7310
  },] }
6692
7311
  ];
6693
7312
  TransactionOrderLineViewComponent.ctorParameters = function () { return [
@@ -6754,7 +7373,7 @@
6754
7373
  // eslint-disable-next-line @angular-eslint/component-selector
6755
7374
  selector: "transaction-order-lines",
6756
7375
  template: "\n <co-grid #transactionGrid\n [data]=\"transactionLines\"\n [columns]=\"columns\"\n [pagingEnabled]=\"pagingEnabled\"\n [maxNumberOfRows]=\"'20'\"\n (rowsSelected)=\"onRowClick($event)\"\n ></co-grid>\n ",
6757
- styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
7376
+ styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.transaction-order-line-r .transaction-order-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-top:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-image,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-bottom:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{margin-left:20px}.transaction-order-line-r .transaction-order-line-description,.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:block;padding:20px}:host ::ng-deep collapseable{width:100%!important}.service-request-button-wrapper{display:flex;justify-content:center;margin-top:20px}.transaction-order-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.transaction-order-line-r{flex-direction:column}}.transaction-order-line-r .transaction-order-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center;padding-right:10px}.transaction-order-line-r .transaction-order-line-image image-display{width:6em;height:6em}.transaction-order-line-r .transaction-order-line-image ::ng-deep no-image-display{display:none}.transaction-order-line-r .transaction-order-line-description{display:flex;flex-direction:column;width:auto;max-width:355px;margin-left:10px}.transaction-order-line-r .transaction-order-line-description .cart-line-description-main{font-weight:bold}.transaction-order-line-r .transaction-order-line-right{justify-content:flex-end;align-items:center}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-stock{width:10em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-amount{width:15em}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.transaction-order-line-r .transaction-order-line-right .transaction-order-line-totals span{text-align:right}\n"]
6758
7377
  },] }
6759
7378
  ];
6760
7379
  TransactionOrderLinesComponent.ctorParameters = function () { return [
@@ -7100,7 +7719,7 @@
7100
7719
  { type: i0.Component, args: [{
7101
7720
  // eslint-disable-next-line @angular-eslint/component-selector
7102
7721
  selector: "transaction-service-info",
7103
- template: "\n <transaction-summary-block\n [hideAvatar]=\"true\"\n [class.disabled]=\"!isNew\"\n label=\"SERVICE\"\n [icon]=\"iconWrench\"\n headerLabel=\"SERVICE_NUMBER\"\n [headerValue]=\"transactionInfo.transactionNr\"\n subHeaderLabel=\"SERVICE_REQUEST_DATE\"\n [subHeaderValue]=\"transactionInfo.transactionDate | date:'shortDate'\"\n ></transaction-summary-block>\n "
7722
+ template: "\n <transaction-summary-block\n [hideAvatar]=\"true\"\n [class.disabled]=\"!isNew\"\n label=\"SERVICE\"\n [icon]=\"iconWrench\"\n headerLabel=\"SERVICE_NUMBER\"\n [headerValue]=\"transactionInfo?.transactionNr\"\n subHeaderLabel=\"SERVICE_REQUEST_DATE\"\n [subHeaderValue]=\"transactionInfo?.transactionDate | date:'shortDate'\"\n ></transaction-summary-block>\n "
7104
7723
  },] }
7105
7724
  ];
7106
7725
  TransactionServiceSummaryComponent.ctorParameters = function () { return [
@@ -7207,7 +7826,7 @@
7207
7826
  { type: i0.Component, args: [{
7208
7827
  // eslint-disable-next-line @angular-eslint/component-selector
7209
7828
  selector: "transaction-order-info",
7210
- template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"ORDER_INFO\"\n [icon]=\"iconOrder\"\n headerLabel=\"ORDER_NUMBER\"\n [headerValue]=\"isService ? sourceTransactionNr : transactionInfo.transactionNr\"\n subHeaderLabel=\"ORDER_DATE\"\n [subHeaderValue]=\"(isService ? sourceTransactionDate : this.transactionInfo.transactionDate) | date:'shortDate'\"\n ></transaction-summary-block>\n "
7829
+ template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"ORDER_INFO\"\n [icon]=\"iconOrder\"\n headerLabel=\"ORDER_NUMBER\"\n [headerValue]=\"isService ? sourceTransactionNr : transactionInfo?.transactionNr\"\n subHeaderLabel=\"ORDER_DATE\"\n [subHeaderValue]=\"(isService ? sourceTransactionDate : this.transactionInfo?.transactionDate) | date:'shortDate'\"\n ></transaction-summary-block>\n "
7211
7830
  },] }
7212
7831
  ];
7213
7832
  TransactionOrderSummaryComponent.ctorParameters = function () { return [
@@ -7231,7 +7850,7 @@
7231
7850
  { type: i0.Component, args: [{
7232
7851
  // eslint-disable-next-line @angular-eslint/component-selector
7233
7852
  selector: "transaction-payment-info",
7234
- template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"PAYMENT\"\n [icon]=\"euro\"\n headerLabel=\"TOTAL_AMOUNT\"\n [headerValue]=\"transactionTotal.netAmount | coCurrency\"\n subHeaderLabel=\"PAID_DOWN2\"\n [subHeaderValue]=\"transactionTotal.transactionDiscountAmount | coCurrency\"\n ></transaction-summary-block>\n "
7853
+ template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"PAYMENT\"\n [icon]=\"euro\"\n headerLabel=\"TOTAL_AMOUNT\"\n [headerValue]=\"transactionTotal?.netAmount | coCurrency\"\n subHeaderLabel=\"PAID_DOWN2\"\n [subHeaderValue]=\"transactionTotal?.transactionDiscountAmount | coCurrency\"\n ></transaction-summary-block>\n "
7235
7854
  },] }
7236
7855
  ];
7237
7856
  TransactionPaymentInfoComponent.ctorParameters = function () { return [
@@ -7316,7 +7935,7 @@
7316
7935
  { type: i0.Component, args: [{
7317
7936
  // eslint-disable-next-line @angular-eslint/component-selector
7318
7937
  selector: "transaction-delivery-summary",
7319
- template: "\n <transaction-summary-block\n label=\"DELIVERY\"\n [icon]=\"deliveryTruck\"\n headerLabel=\"DELIVERY_METHOD2\"\n [headerValue]=\"deliveryMethodDescription\"\n [subHeaderLabel]=\"transactionInfo.preferredDeliveryDate ? 'DELIVERY_DATE' : !canPlanDelivery ? 'EXPECTED_DELIVERY_WEEK' : 'EXPECTED_DELIVERY'\"\n [subHeaderValue]=\"transactionInfo.preferredDeliveryDate ? (transactionInfo.deliveryDate | date:'shortDate') : 'WEEK' | localize | append:(' ') | append:(transactionInfo.deliveryDate | date:'w')\">\n <ng-template #subHeaderTemplate *ngIf=\"canPlanDelivery\">\n <div class=\"planning-wrapper\">\n <span class=\"subheader\" *ngIf=\"transactionInfo.preferredDeliveryDate\"\n [textContent]=\"(transactionInfo.preferredDeliveryDate | date:'shortDate') + ', ' + transactionInfo.preferredDeliveryDate | date: 'time' \"></span>\n<!-- <arrow-link *ngIf=\"!transactionInfo.preferredDeliveryDate\"-->\n<!-- label=\"PLAN_YOUR_DELIVERY\"-->\n<!-- (click)=\"planningRequestButtonClick.emit($event)\"-->\n<!-- ></arrow-link>-->\n <icon [icon]=\"calendarRoundOpen\" (click)=\"planningRequestButtonClick.emit($event)\"></icon>\n </div>\n </ng-template>\n </transaction-summary-block>\n ",
7938
+ template: "\n <transaction-summary-block\n label=\"DELIVERY\"\n [icon]=\"deliveryTruck\"\n headerLabel=\"DELIVERY_METHOD2\"\n [headerValue]=\"deliveryMethodDescription\"\n [subHeaderLabel]=\"transactionInfo?.preferredDeliveryDate ? 'DELIVERY_DATE' : !canPlanDelivery ? 'EXPECTED_DELIVERY_WEEK' : 'EXPECTED_DELIVERY'\"\n [subHeaderValue]=\"transactionInfo?.preferredDeliveryDate ? (transactionInfo?.deliveryDate | date:'shortDate') : 'WEEK' | localize | append:(' ') | append:(transactionInfo?.deliveryDate | date:'w')\">\n <ng-template #subHeaderTemplate *ngIf=\"canPlanDelivery\">\n <div class=\"planning-wrapper\">\n <span class=\"subheader\" *ngIf=\"transactionInfo?.preferredDeliveryDate\"\n [textContent]=\"(transactionInfo?.preferredDeliveryDate | date:'shortDate') + ', ' + transactionInfo?.preferredDeliveryDate | date: 'time' \"></span>\n<!-- <arrow-link *ngIf=\"!transactionInfo.preferredDeliveryDate\"-->\n<!-- label=\"PLAN_YOUR_DELIVERY\"-->\n<!-- (click)=\"planningRequestButtonClick.emit($event)\"-->\n<!-- ></arrow-link>-->\n <icon [icon]=\"calendarRoundOpen\" (click)=\"planningRequestButtonClick.emit($event)\"></icon>\n </div>\n </ng-template>\n </transaction-summary-block>\n ",
7320
7939
  styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host .planning-wrapper{display:flex;justify-content:space-between;align-items:center;flex-direction:row;color:#2b60a7;margin-top:-10px;font-size:13px}:host .planning-wrapper ::ng-deep icon{cursor:pointer}:host .planning-wrapper ::ng-deep icon [fill]{fill:#2b60a7}\n"]
7321
7940
  },] }
7322
7941
  ];
@@ -7514,6 +8133,135 @@
7514
8133
  okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }]
7515
8134
  };
7516
8135
 
8136
+ var WarehouseComponent = /** @class */ (function () {
8137
+ function WarehouseComponent(service, _dictionaryService) {
8138
+ this.service = service;
8139
+ this._dictionaryService = _dictionaryService;
8140
+ this.message = "";
8141
+ this.okClick = new i0.EventEmitter();
8142
+ this.cancelClick = new i0.EventEmitter();
8143
+ this.commissionCodes = [];
8144
+ this.commissionFields = { text: "description", value: "code" };
8145
+ this.transactionArticleWarehouses = [];
8146
+ this.columns = [];
8147
+ this._okOrCancelClick = false;
8148
+ }
8149
+ WarehouseComponent.prototype.ngOnInit = function () {
8150
+ return __awaiter(this, void 0, void 0, function () {
8151
+ var _a;
8152
+ return __generator(this, function (_b) {
8153
+ switch (_b.label) {
8154
+ case 0:
8155
+ _a = this;
8156
+ return [4 /*yield*/, this.service.getCommissionCodes("NL")];
8157
+ case 1:
8158
+ _a.commissionCodes = _b.sent();
8159
+ this.columns.push({ field: "warehouseNr", headerText: this._dictionaryService.get("WAREHOUSE"), allowFiltering: false }, { field: "warehouseDesc", headerText: this._dictionaryService.get("DESCRIPTION") }, { field: "stockAmount", headerText: this._dictionaryService.get("STOCK") });
8160
+ return [2 /*return*/];
8161
+ }
8162
+ });
8163
+ });
8164
+ };
8165
+ WarehouseComponent.prototype.ngOnDestroy = function () {
8166
+ this.warehouseDialog.close();
8167
+ };
8168
+ WarehouseComponent.prototype.showStockManager = function (line) {
8169
+ return __awaiter(this, void 0, void 0, function () {
8170
+ return __generator(this, function (_a) {
8171
+ this.selectedWarehouseNr = line.warehouseNumber;
8172
+ this.amount = line.amount;
8173
+ this.commissionCode = line.commissionCode;
8174
+ this.show(line.articleNumber);
8175
+ return [2 /*return*/];
8176
+ });
8177
+ });
8178
+ };
8179
+ WarehouseComponent.prototype.hide = function () {
8180
+ return __awaiter(this, void 0, void 0, function () {
8181
+ return __generator(this, function (_a) {
8182
+ switch (_a.label) {
8183
+ case 0:
8184
+ if (this._okOrCancelClick) {
8185
+ this._okOrCancelClick = false;
8186
+ return [2 /*return*/];
8187
+ }
8188
+ return [4 /*yield*/, this.onStockManagerCancelClick()];
8189
+ case 1:
8190
+ _a.sent();
8191
+ return [2 /*return*/];
8192
+ }
8193
+ });
8194
+ });
8195
+ };
8196
+ WarehouseComponent.prototype.show = function (articleNr) {
8197
+ this._reloadDataCollections(articleNr).then();
8198
+ this.warehouseGrid.selectRow(this.selectedWarehouseNr);
8199
+ this.warehouseDialog.targetElement = null;
8200
+ this.warehouseDialog.open();
8201
+ };
8202
+ WarehouseComponent.prototype.handleRowsSelected = function (rows) {
8203
+ this.selectedWarehouseNr = (rows.find(function (x) { return x !== undefined; })).warehouseNr;
8204
+ };
8205
+ WarehouseComponent.prototype.onStockManagerCancelClick = function () {
8206
+ return __awaiter(this, void 0, void 0, function () {
8207
+ return __generator(this, function (_a) {
8208
+ this._okOrCancelClick = true;
8209
+ this.warehouseDialog.close();
8210
+ this.cancelClick.emit();
8211
+ return [2 /*return*/];
8212
+ });
8213
+ });
8214
+ };
8215
+ WarehouseComponent.prototype.onStockManagerOkClick = function () {
8216
+ return __awaiter(this, void 0, void 0, function () {
8217
+ return __generator(this, function (_a) {
8218
+ this._okOrCancelClick = true;
8219
+ this.warehouseDialog.close();
8220
+ this.okClick.emit();
8221
+ return [2 /*return*/];
8222
+ });
8223
+ });
8224
+ };
8225
+ WarehouseComponent.prototype._reloadDataCollections = function (articleNr) {
8226
+ return __awaiter(this, void 0, void 0, function () {
8227
+ var goodId, _a;
8228
+ return __generator(this, function (_b) {
8229
+ switch (_b.label) {
8230
+ case 0: return [4 /*yield*/, this.service.getGoodIdFromArticleNr(articleNr)];
8231
+ case 1:
8232
+ goodId = _b.sent();
8233
+ _a = this;
8234
+ return [4 /*yield*/, this.service.getTransactionArticleWarehouses(goodId)];
8235
+ case 2:
8236
+ _a.transactionArticleWarehouses = _b.sent();
8237
+ return [2 /*return*/];
8238
+ }
8239
+ });
8240
+ });
8241
+ };
8242
+ return WarehouseComponent;
8243
+ }());
8244
+ WarehouseComponent.decorators = [
8245
+ { type: i0.Component, args: [{
8246
+ // eslint-disable-next-line @angular-eslint/component-selector
8247
+ selector: "warehouse",
8248
+ template: "\n <co-dialog #warehouseDialog\n (closeClick)=\"hide()\"\n (overlayClick)=\"onStockManagerCancelClick()\"\n >\n <ng-container header>{{ 'STOCK_NOTIFICATION' | localize }}</ng-container>\n\n <ng-container content>\n <co-form>\n <div class=\"form-content\">\n <span *ngIf=\"message\" class=\"message-field\" [textContent]=\"message | localize\"></span>\n <div class=\"commission-fields\" fxLayout=\"row\">\n <co-input-number-picker class=\"horizontal\" [(model)]=\"amount\" [min]=\"0\" decimals=\"3\"></co-input-number-picker>\n <co-input-combo-box [(model)]=\"commissionCode\"\n [source]=\"commissionCodes\"\n [fields]=\"commissionFields\"\n [placeholder]=\"'COMMISSION_CODE' | localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n <div>\n <co-grid #warehouseGrid\n [data]=\"transactionArticleWarehouses\"\n [columns]=\"columns\"\n [pagingEnabled]=\"'true'\"\n [maxNumberOfRows]=\"'10'\"\n (rowsSelected)=\"handleRowsSelected($event)\"\n ></co-grid>\n </div>\n </div>\n </co-form>\n </ng-container>\n\n <ng-container footer>\n <div class=\"flex-center\">\n <co-button [label]=\"'OK' | localize\" (click)=\"onStockManagerOkClick()\"></co-button>\n <co-button [label]=\"'CANCEL' | localize\" (click)=\"onStockManagerCancelClick()\"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ",
8249
+ providers: [DictionaryService],
8250
+ styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
8251
+ },] }
8252
+ ];
8253
+ WarehouseComponent.ctorParameters = function () { return [
8254
+ { type: TransactionService },
8255
+ { type: DictionaryService }
8256
+ ]; };
8257
+ WarehouseComponent.propDecorators = {
8258
+ warehouseDialog: [{ type: i0.ViewChild, args: ["warehouseDialog",] }],
8259
+ warehouseGrid: [{ type: i0.ViewChild, args: ["warehouseGrid",] }],
8260
+ message: [{ type: i0.Input }],
8261
+ okClick: [{ type: i0.Output }],
8262
+ cancelClick: [{ type: i0.Output }]
8263
+ };
8264
+
7517
8265
  var IoneServiceOrderModule = /** @class */ (function () {
7518
8266
  function IoneServiceOrderModule() {
7519
8267
  }
@@ -7522,7 +8270,6 @@
7522
8270
  IoneServiceOrderModule.decorators = [
7523
8271
  { type: i0.NgModule, args: [{
7524
8272
  imports: [
7525
- animations.BrowserAnimationsModule,
7526
8273
  corecomponents_v12.IconModule,
7527
8274
  corecomponents_v12.InputTextModule,
7528
8275
  corecomponents_v12.InputCheckboxModule,
@@ -7540,13 +8287,15 @@
7540
8287
  corecomponents_v12.PopupModule.forRoot(),
7541
8288
  corecomponents_v12.CoSidebarModule,
7542
8289
  corecomponents_v12.CoGridModule,
7543
- CoreModule,
7544
8290
  ej2AngularButtons.ChipListModule,
7545
8291
  ej2AngularSplitbuttons.DropDownButtonModule,
7546
8292
  ej2AngularButtons.CheckBoxModule,
7547
8293
  ej2AngularDropdowns.DropDownListModule,
7548
8294
  IoneShoppingCartModule,
7549
8295
  ej2AngularNavigations.TabModule,
8296
+ CoreModule,
8297
+ common.CommonModule,
8298
+ // RichTextEditorModule
7550
8299
  ],
7551
8300
  declarations: [
7552
8301
  TemplateWrapperDirective,
@@ -7571,11 +8320,13 @@
7571
8320
  TransactionDeliverySummaryComponent,
7572
8321
  TransactionProductContractSummaryComponent,
7573
8322
  TransactionProductSummaryComponent,
8323
+ TransactionManagerComponent,
8324
+ WarehouseComponent,
7574
8325
  ],
7575
8326
  providers: [
7576
8327
  DictionaryService,
7577
8328
  TransactionService,
7578
- OptionsService
8329
+ OptionsService,
7579
8330
  ],
7580
8331
  entryComponents: [
7581
8332
  IoneServiceOrderComponent
@@ -7609,24 +8360,26 @@
7609
8360
  exports["ɵbh"] = ServiceOrderComponent;
7610
8361
  exports["ɵbi"] = TransactionBaseComponent;
7611
8362
  exports["ɵbj"] = TransactionArticleTextComponent;
7612
- exports["ɵbk"] = TransactionOrderTotalsComponent;
7613
- exports["ɵbl"] = TransactionOrderLineViewComponent;
7614
- exports["ɵbm"] = TransactionOrderLinesComponent;
7615
- exports["ɵbn"] = TransactionRelationAddressComponent;
7616
- exports["ɵbo"] = TransactionSidebarRightComponent;
7617
- exports["ɵbp"] = TransactionLineAccordionComponent;
7618
- exports["ɵbq"] = TransactionHeaderBlockComponent;
7619
- exports["ɵbr"] = TransactionRelationEditComponent;
7620
- exports["ɵbs"] = TransactionServiceSummaryComponent;
7621
- exports["ɵbt"] = TransactionSummaryBlockComponent;
7622
- exports["ɵbu"] = TransactionServiceStatusComponent;
7623
- exports["ɵbv"] = TransactionOrderSummaryComponent;
7624
- exports["ɵbw"] = TransactionPaymentInfoComponent;
7625
- exports["ɵbx"] = TransactionArticleSummaryComponent;
7626
- exports["ɵby"] = TransactionDeliverySummaryComponent;
7627
- exports["ɵbz"] = TransactionProductContractSummaryComponent;
8363
+ exports["ɵbk"] = TransactionManagerComponent;
8364
+ exports["ɵbl"] = TransactionOrderTotalsComponent;
8365
+ exports["ɵbm"] = TransactionOrderLineViewComponent;
8366
+ exports["ɵbn"] = TransactionOrderLinesComponent;
8367
+ exports["ɵbo"] = TransactionRelationAddressComponent;
8368
+ exports["ɵbp"] = TransactionSidebarRightComponent;
8369
+ exports["ɵbq"] = TransactionLineAccordionComponent;
8370
+ exports["ɵbr"] = TransactionHeaderBlockComponent;
8371
+ exports["ɵbs"] = TransactionRelationEditComponent;
8372
+ exports["ɵbt"] = TransactionServiceSummaryComponent;
8373
+ exports["ɵbu"] = TransactionSummaryBlockComponent;
8374
+ exports["ɵbv"] = TransactionServiceStatusComponent;
8375
+ exports["ɵbw"] = TransactionOrderSummaryComponent;
8376
+ exports["ɵbx"] = TransactionPaymentInfoComponent;
8377
+ exports["ɵby"] = TransactionArticleSummaryComponent;
8378
+ exports["ɵbz"] = TransactionDeliverySummaryComponent;
7628
8379
  exports["ɵc"] = CheckoutOverviewComponent;
7629
- exports["ɵca"] = TransactionProductSummaryComponent;
8380
+ exports["ɵca"] = TransactionProductContractSummaryComponent;
8381
+ exports["ɵcb"] = TransactionProductSummaryComponent;
8382
+ exports["ɵcc"] = WarehouseComponent;
7630
8383
  exports["ɵd"] = CheckoutOverviewBlockComponent;
7631
8384
  exports["ɵe"] = CheckoutOverviewRelationEditComponent;
7632
8385
  exports["ɵf"] = TransactionService;