@colijnit/transaction 12.0.4 → 12.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/component/core/base/default-ok-cancel-buttons.component.d.ts +13 -0
- package/app/component/core/base/transaction-base.component.d.ts +38 -0
- package/app/component/core/directive/template-wrapper.directive.d.ts +13 -0
- package/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
- package/app/component/service-order/ione-service-order-module.d.ts +2 -0
- package/app/component/service-order/ione-service-order.component.d.ts +25 -0
- package/app/component/service-order/service-order.component.d.ts +48 -0
- package/app/component/service-order/summary/transaction-article-summary.component.d.ts +17 -0
- package/app/component/service-order/summary/transaction-delivery-summary.component.d.ts +20 -0
- package/app/component/service-order/summary/transaction-order-summary.component.d.ts +16 -0
- package/app/component/service-order/summary/transaction-payment-info.component.d.ts +14 -0
- package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts +7 -0
- package/app/component/service-order/summary/transaction-product-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-status.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-service-summary.component.d.ts +15 -0
- package/app/component/service-order/summary/transaction-summary-block.component.d.ts +16 -0
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +24 -0
- package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts +15 -0
- package/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.d.ts +16 -0
- package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts +25 -0
- package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +6 -0
- package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts +22 -0
- package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts +29 -0
- package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts +11 -0
- package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts +26 -0
- package/app/service/ione-connector-adapter.service.d.ts +2 -0
- package/app/service/transaction-event.service.d.ts +5 -0
- package/app/service/transaction.service.d.ts +5 -0
- package/bundles/colijnit-transaction.umd.js +1656 -47
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +23 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +2 -2
- package/esm2015/app/component/checkout/ione-checkout.module.js +3 -5
- package/esm2015/app/component/common/icon/icon.component.js +2 -1
- package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +39 -0
- package/esm2015/app/component/core/base/transaction-base.component.js +123 -0
- package/esm2015/app/component/core/directive/template-wrapper.directive.js +69 -0
- package/esm2015/app/component/{shopping-cart → core}/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/app/component/service-order/ione-service-order-module.js +103 -0
- package/esm2015/app/component/service-order/ione-service-order.component.js +96 -0
- package/esm2015/app/component/service-order/service-order.component.js +166 -0
- package/esm2015/app/component/service-order/summary/transaction-article-summary.component.js +55 -0
- package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +59 -0
- package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +43 -0
- package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +35 -0
- package/esm2015/app/component/service-order/summary/transaction-product-contract-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-product-summary.component.js +41 -0
- package/esm2015/app/component/service-order/summary/transaction-service-status.component.js +37 -0
- package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +38 -0
- package/esm2015/app/component/service-order/summary/transaction-summary-block.component.js +53 -0
- package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +183 -0
- package/esm2015/app/component/service-order/transaction-header-block/transaction-header-block.component.js +83 -0
- package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +76 -0
- package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +71 -0
- package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +36 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-address.component.js +116 -0
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-edit.component.js +225 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.js +172 -0
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.js +120 -0
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +3 -7
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
- package/esm2015/app/service/ione-connector-adapter.service.js +39 -10
- package/esm2015/app/service/transaction-event.service.js +4 -1
- package/esm2015/app/service/transaction.service.js +51 -15
- package/esm2015/assets/dictionary/text.properties.js +33 -1
- package/esm2015/colijnit-transaction.js +24 -2
- package/esm2015/public_api.js +3 -1
- package/fesm2015/colijnit-transaction.js +2077 -33
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +3 -3
- package/public_api.d.ts +2 -0
|
@@ -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/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/
|
|
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/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/
|
|
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.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.
|
|
5
|
-
})(this, (function (exports, i0, rxjs, options, customerFullObject_bo, transactionInfoResponse_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, 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,
|
|
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/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/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.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, 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;
|
|
@@ -1133,9 +1133,19 @@
|
|
|
1133
1133
|
IOneConnectorAdapterService.prototype.connect = function (options) {
|
|
1134
1134
|
return __awaiter(this, void 0, void 0, function () {
|
|
1135
1135
|
return __generator(this, function (_a) {
|
|
1136
|
-
this.options
|
|
1137
|
-
|
|
1138
|
-
|
|
1136
|
+
if (this.options === undefined) {
|
|
1137
|
+
this.options = options;
|
|
1138
|
+
this.connector = new transaction.Transaction(options);
|
|
1139
|
+
this.options.session = this.connector.session;
|
|
1140
|
+
}
|
|
1141
|
+
return [2 /*return*/];
|
|
1142
|
+
});
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1145
|
+
IOneConnectorAdapterService.prototype.disconnect = function () {
|
|
1146
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1147
|
+
return __generator(this, function (_a) {
|
|
1148
|
+
this.options = undefined;
|
|
1139
1149
|
return [2 /*return*/];
|
|
1140
1150
|
});
|
|
1141
1151
|
});
|
|
@@ -1177,14 +1187,19 @@
|
|
|
1177
1187
|
return new Promise(function (resolve, reject) {
|
|
1178
1188
|
return _this.connector.getSingleImage(nodeId, publication, includeMimetype, thumb).then(function (result) {
|
|
1179
1189
|
if (result.validationResult && result.validationResult.success) {
|
|
1180
|
-
if (result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
|
|
1190
|
+
if (result.resultObject && result.resultObject.filePath !== null && result.resultObject.filePath !== "") {
|
|
1181
1191
|
return resolve(imageUtils.ImageUtils.getFixedImageFilepathUrl(result.resultObject.filePath));
|
|
1182
1192
|
}
|
|
1183
1193
|
else {
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
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);
|
|
1186
1202
|
}
|
|
1187
|
-
return resolve(thumb ? result.resultObject.thumbnailBody : result.resultObject.documentBody);
|
|
1188
1203
|
}
|
|
1189
1204
|
}
|
|
1190
1205
|
else {
|
|
@@ -1302,6 +1317,19 @@
|
|
|
1302
1317
|
});
|
|
1303
1318
|
});
|
|
1304
1319
|
};
|
|
1320
|
+
IOneConnectorAdapterService.prototype.getTransactionById = function (transactionId) {
|
|
1321
|
+
var _this = this;
|
|
1322
|
+
return new Promise(function (resolve, reject) {
|
|
1323
|
+
return _this.connector.getTransactionById(transactionId).then(function (result) {
|
|
1324
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1325
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
1326
|
+
}
|
|
1327
|
+
else {
|
|
1328
|
+
reject(result.validationMessagesAsString);
|
|
1329
|
+
}
|
|
1330
|
+
});
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1305
1333
|
IOneConnectorAdapterService.prototype.saveTransaction = function (uuid) {
|
|
1306
1334
|
var _this = this;
|
|
1307
1335
|
return new Promise(function (resolve, reject) {
|
|
@@ -1493,7 +1521,7 @@
|
|
|
1493
1521
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1494
1522
|
return _this.connector.getRelationListObjects(relationRequest).then(function (result) {
|
|
1495
1523
|
if (result.validationResult && result.validationResult.success) {
|
|
1496
|
-
resolve(result.resultObjects);
|
|
1524
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(relationListObject_bo.RelationListObject, result.resultObjects));
|
|
1497
1525
|
}
|
|
1498
1526
|
else {
|
|
1499
1527
|
reject(result.validationMessagesAsString);
|
|
@@ -1692,8 +1720,11 @@
|
|
|
1692
1720
|
};
|
|
1693
1721
|
return IOneConnectorAdapterService;
|
|
1694
1722
|
}());
|
|
1723
|
+
IOneConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IOneConnectorAdapterService_Factory() { return new IOneConnectorAdapterService(); }, token: IOneConnectorAdapterService, providedIn: "root" });
|
|
1695
1724
|
IOneConnectorAdapterService.decorators = [
|
|
1696
|
-
{ type: i0.Injectable
|
|
1725
|
+
{ type: i0.Injectable, args: [{
|
|
1726
|
+
providedIn: "root"
|
|
1727
|
+
},] }
|
|
1697
1728
|
];
|
|
1698
1729
|
IOneConnectorAdapterService.ctorParameters = function () { return []; };
|
|
1699
1730
|
|
|
@@ -1701,6 +1732,7 @@
|
|
|
1701
1732
|
function TransactionService(_connector) {
|
|
1702
1733
|
this._connector = _connector;
|
|
1703
1734
|
this.transactionUpdated = new i0.EventEmitter();
|
|
1735
|
+
this.transactionLoaded = new i0.EventEmitter();
|
|
1704
1736
|
this.applicationUser = false;
|
|
1705
1737
|
this.articleAmount = 0;
|
|
1706
1738
|
this._currentLines = [];
|
|
@@ -1972,8 +2004,29 @@
|
|
|
1972
2004
|
_this._connector.getTransactionByNrAndKind(kind, transactionNr)
|
|
1973
2005
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
1974
2006
|
return __generator(this, function (_a) {
|
|
1975
|
-
this._rememberCurrentTransaction(response);
|
|
1976
2007
|
if (response.isSuccess) {
|
|
2008
|
+
this.transactionLoaded.emit(response);
|
|
2009
|
+
resolve(true);
|
|
2010
|
+
}
|
|
2011
|
+
else {
|
|
2012
|
+
reject(false);
|
|
2013
|
+
}
|
|
2014
|
+
return [2 /*return*/];
|
|
2015
|
+
});
|
|
2016
|
+
}); })
|
|
2017
|
+
.catch(function (reason) {
|
|
2018
|
+
reject(false);
|
|
2019
|
+
});
|
|
2020
|
+
});
|
|
2021
|
+
};
|
|
2022
|
+
TransactionService.prototype.getTransactionById = function (transactionId) {
|
|
2023
|
+
var _this = this;
|
|
2024
|
+
return new Promise(function (resolve, reject) {
|
|
2025
|
+
_this._connector.getTransactionById(transactionId)
|
|
2026
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
2027
|
+
return __generator(this, function (_a) {
|
|
2028
|
+
if (response.isSuccess) {
|
|
2029
|
+
this.transactionLoaded.emit(response);
|
|
1977
2030
|
resolve(true);
|
|
1978
2031
|
}
|
|
1979
2032
|
else {
|
|
@@ -2144,21 +2197,38 @@
|
|
|
2144
2197
|
});
|
|
2145
2198
|
};
|
|
2146
2199
|
TransactionService.prototype.retrieveLineImage = function (line) {
|
|
2200
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2201
|
+
return __generator(this, function (_a) {
|
|
2202
|
+
switch (_a.label) {
|
|
2203
|
+
case 0: return [4 /*yield*/, this.getArticleImageByArticleNumber(line.articleNumber)];
|
|
2204
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2205
|
+
}
|
|
2206
|
+
});
|
|
2207
|
+
});
|
|
2208
|
+
};
|
|
2209
|
+
TransactionService.prototype.getArticleImageByArticleNumber = function (articleNumber) {
|
|
2147
2210
|
return __awaiter(this, void 0, void 0, function () {
|
|
2148
2211
|
var goodId;
|
|
2149
2212
|
return __generator(this, function (_a) {
|
|
2150
2213
|
switch (_a.label) {
|
|
2151
|
-
case 0: return [4 /*yield*/, this._connector.getGoodIdFromArticleNr(
|
|
2214
|
+
case 0: return [4 /*yield*/, this._connector.getGoodIdFromArticleNr(articleNumber)];
|
|
2152
2215
|
case 1:
|
|
2153
2216
|
goodId = _a.sent();
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2217
|
+
return [2 /*return*/, this.getArticleImageByGoodId(goodId)];
|
|
2218
|
+
}
|
|
2219
|
+
});
|
|
2220
|
+
});
|
|
2221
|
+
};
|
|
2222
|
+
TransactionService.prototype.getArticleImageByGoodId = function (goodId) {
|
|
2223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2224
|
+
return __generator(this, function (_a) {
|
|
2225
|
+
if (!isNaN(goodId)) {
|
|
2226
|
+
return [2 /*return*/, this._connector.getSingleImage(goodId, 1, true, true)];
|
|
2227
|
+
}
|
|
2228
|
+
else {
|
|
2229
|
+
return [2 /*return*/, ""];
|
|
2161
2230
|
}
|
|
2231
|
+
return [2 /*return*/];
|
|
2162
2232
|
});
|
|
2163
2233
|
});
|
|
2164
2234
|
};
|
|
@@ -2345,6 +2415,22 @@
|
|
|
2345
2415
|
});
|
|
2346
2416
|
});
|
|
2347
2417
|
};
|
|
2418
|
+
TransactionService.prototype.getCustomerFulObjectByRelationId = function (relationId) {
|
|
2419
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2420
|
+
var relationNr;
|
|
2421
|
+
return __generator(this, function (_a) {
|
|
2422
|
+
switch (_a.label) {
|
|
2423
|
+
case 0: return [4 /*yield*/, this._connector.getRelationNumber(relationId)];
|
|
2424
|
+
case 1:
|
|
2425
|
+
relationNr = _a.sent();
|
|
2426
|
+
if (!relationNr) return [3 /*break*/, 3];
|
|
2427
|
+
return [4 /*yield*/, this._connector.getCustomerFullObject(Number(relationNr))];
|
|
2428
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2429
|
+
case 3: return [2 /*return*/, nulRelationObject.NULL_CUSTOMER_FULL_OBJECT];
|
|
2430
|
+
}
|
|
2431
|
+
});
|
|
2432
|
+
});
|
|
2433
|
+
};
|
|
2348
2434
|
// public async setRelationByUser(username: string, password: string): Promise<boolean> {
|
|
2349
2435
|
// const response: boolean = await this._connector.setRelationByUser(this.currentTransaction.uuid, username, password);
|
|
2350
2436
|
// return response;
|
|
@@ -2355,13 +2441,23 @@
|
|
|
2355
2441
|
}
|
|
2356
2442
|
};
|
|
2357
2443
|
TransactionService.prototype._rememberCurrentTransaction = function (value) {
|
|
2358
|
-
this
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2444
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2445
|
+
return __generator(this, function (_a) {
|
|
2446
|
+
switch (_a.label) {
|
|
2447
|
+
case 0:
|
|
2448
|
+
this._currentTransaction = value.transactionInfo;
|
|
2449
|
+
this._initializeTransaction();
|
|
2450
|
+
this.currentLines = value.transactionLines;
|
|
2451
|
+
this.currentTotals = value.transactionTotal;
|
|
2452
|
+
this.currentLineOperationStatuses = value.lineOperationStatuses;
|
|
2453
|
+
return [4 /*yield*/, this._updateRelation()];
|
|
2454
|
+
case 1:
|
|
2455
|
+
_a.sent();
|
|
2456
|
+
this.transactionUpdated.emit();
|
|
2457
|
+
return [2 /*return*/];
|
|
2458
|
+
}
|
|
2459
|
+
});
|
|
2460
|
+
});
|
|
2365
2461
|
};
|
|
2366
2462
|
TransactionService.prototype._rememberCurrentTransactionLineStatus = function (value) {
|
|
2367
2463
|
// this._currentLineOperationStatus.uuid = value.lineUuid;
|
|
@@ -2370,22 +2466,18 @@
|
|
|
2370
2466
|
};
|
|
2371
2467
|
TransactionService.prototype._updateRelation = function () {
|
|
2372
2468
|
return __awaiter(this, void 0, void 0, function () {
|
|
2373
|
-
var
|
|
2469
|
+
var _a;
|
|
2374
2470
|
return __generator(this, function (_b) {
|
|
2375
2471
|
switch (_b.label) {
|
|
2376
2472
|
case 0:
|
|
2377
|
-
if (!(this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId)) return [3 /*break*/,
|
|
2378
|
-
if (!(!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId)) return [3 /*break*/,
|
|
2379
|
-
return [4 /*yield*/, this._connector.getRelationNumber(this.currentTransaction.relation.relationId)];
|
|
2380
|
-
case 1:
|
|
2381
|
-
relationNr = _b.sent();
|
|
2382
|
-
if (!relationNr) return [3 /*break*/, 3];
|
|
2473
|
+
if (!(this.currentTransaction && this.currentTransaction.relation && this.currentTransaction.relation.relationId)) return [3 /*break*/, 2];
|
|
2474
|
+
if (!(!this._currentRelation || this._currentRelation.relationId !== this.currentTransaction.relation.relationId)) return [3 /*break*/, 2];
|
|
2383
2475
|
_a = this;
|
|
2384
|
-
return [4 /*yield*/, this.
|
|
2385
|
-
case
|
|
2476
|
+
return [4 /*yield*/, this.getCustomerFulObjectByRelationId(this.currentTransaction.relation.relationId)];
|
|
2477
|
+
case 1:
|
|
2386
2478
|
_a._currentRelation = _b.sent();
|
|
2387
|
-
_b.label =
|
|
2388
|
-
case
|
|
2479
|
+
_b.label = 2;
|
|
2480
|
+
case 2: return [2 /*return*/];
|
|
2389
2481
|
}
|
|
2390
2482
|
});
|
|
2391
2483
|
});
|
|
@@ -2514,6 +2606,7 @@
|
|
|
2514
2606
|
"ADDRESS_CHANGE": "Adres wijzigen",
|
|
2515
2607
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Controleer magazijn en commissiecode",
|
|
2516
2608
|
"ARTICLE": "Artikel",
|
|
2609
|
+
"ARTICLE_DESCRIPTION": "Artikelomschrijving",
|
|
2517
2610
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
2518
2611
|
"ARTICLE_NR": "Artikelnummer",
|
|
2519
2612
|
"ASSEMBLY_COSTS": "Montagekosten",
|
|
@@ -2554,12 +2647,15 @@
|
|
|
2554
2647
|
"DELIVERY_OPTARTICLE_NRIONS": "Bezorgopties",
|
|
2555
2648
|
"DELIVERY_TIME_PERIOD": "Levertijd",
|
|
2556
2649
|
"DESCRIPTION": "Omschrijving",
|
|
2650
|
+
"DETAILS": "Details",
|
|
2557
2651
|
"DISCOUNT": "Korting",
|
|
2558
2652
|
"DISCOUNT_AMOUNT": "Kortingsbedrag",
|
|
2559
2653
|
"DISCOUNT_PERCENTAGE": "Kortings %",
|
|
2560
2654
|
"DROPSHIPMENT": "Dropshipment",
|
|
2561
2655
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2562
2656
|
"EXISTING_CUSTOMERS": "Bestaande klanten",
|
|
2657
|
+
"EXPECTED_DELIVERY_DATE": "Verwachte bezorgdatum",
|
|
2658
|
+
"EXPECTED_DELIVERY_WEEK": "Verwachte leverweek",
|
|
2563
2659
|
"FEMALE": "Vrouw",
|
|
2564
2660
|
"FIRST_NAME": "Voornaam",
|
|
2565
2661
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
@@ -2586,11 +2682,14 @@
|
|
|
2586
2682
|
"NUMBER": "Aantal",
|
|
2587
2683
|
"ON_DATE": "Op datum",
|
|
2588
2684
|
"OPEN_SHOPPING_CART": "Open winkelwagen",
|
|
2685
|
+
"ORDER_DATE": "Orderdatum",
|
|
2589
2686
|
"ORDER_GROSS": "Ordertotaal bruto",
|
|
2590
2687
|
"ORDER_NET": "Ordertotaal netto",
|
|
2688
|
+
"ORDER_NUMBER": "Ordernummer",
|
|
2591
2689
|
"ORDER_TYPE": "Type bestelling",
|
|
2592
2690
|
"OVERVIEW": "Overzicht",
|
|
2593
2691
|
"OWN_REFERENCE": "Eigen referentie",
|
|
2692
|
+
"PAID_DOWN2": "Aanbetaald",
|
|
2594
2693
|
"PART_DELIVERIES": "Deelleveringen",
|
|
2595
2694
|
"PASSWORD": "Wachtwoord",
|
|
2596
2695
|
"PAYMENT": "Betaling",
|
|
@@ -2603,6 +2702,8 @@
|
|
|
2603
2702
|
"PRICE_LIST": "Prijslijst",
|
|
2604
2703
|
"PRIVACY_PREFERENCES": "Privacyvoorkeuren",
|
|
2605
2704
|
"PRIVATE_PERSON": "Particulier",
|
|
2705
|
+
"PRODUCT": "Product",
|
|
2706
|
+
"PRODUCT_TYPE": "Productsoort",
|
|
2606
2707
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Het aantal mag geen 0 zijn.",
|
|
2607
2708
|
"QUANTITY_CANNOT_BE_LESS_THAN_DELIVERED": "Het aantal moet gelijk zijn aan het geleverde aantal",
|
|
2608
2709
|
"QUANTITY_CANNOT_BE_MORE_THAN_DELIVERED": "Het aantal moet gelijk zijn aan het geleverde aantal",
|
|
@@ -2618,6 +2719,9 @@
|
|
|
2618
2719
|
"SALUTATION": "Aanhef",
|
|
2619
2720
|
"SAVE": "Opslaan",
|
|
2620
2721
|
"SELECT": "Selecteren",
|
|
2722
|
+
"SERVICE_NUMBER": "Servicenummer",
|
|
2723
|
+
"SERVICE_REQUEST_DATE": "Datum aanvraag",
|
|
2724
|
+
"SERVICE_STATE": "Service status",
|
|
2621
2725
|
"SHOPPING_CART": "Winkelwagen",
|
|
2622
2726
|
"SHOPPING_CART_CHECKOUT": "Bestellen",
|
|
2623
2727
|
"SHOPPING_CART_OVERVIEW": "Overzicht van uw bestelling",
|
|
@@ -2629,16 +2733,20 @@
|
|
|
2629
2733
|
"SUBTOTAL": "Subtotaal",
|
|
2630
2734
|
"SUGGESTIONS": "Suggesties",
|
|
2631
2735
|
"SURCHARGE_AMOUNT": "Toeslag",
|
|
2736
|
+
"STATE": "Status",
|
|
2632
2737
|
"STREET": "Straatnaam",
|
|
2738
|
+
"TOTAL_AMOUNT": "Totaalbedrag",
|
|
2633
2739
|
"TOTAL_GROSS": "Totaal bruto",
|
|
2634
2740
|
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
2635
2741
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
2636
2742
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
2637
2743
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
2744
|
+
"TRANSACTION_SUM_I": "Ordertotaal incl. BTW",
|
|
2638
2745
|
"TRANSACTION_TOTAL": "Transactie totaal",
|
|
2639
2746
|
"UNKNOWN": "Onbekend",
|
|
2640
2747
|
"UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
|
|
2641
2748
|
"VAT": "Btw",
|
|
2749
|
+
"VAT_AMOUNT": "BTW-bedrag",
|
|
2642
2750
|
"VALUE": "Waarde",
|
|
2643
2751
|
"WAREHOUSE": "Magazijn",
|
|
2644
2752
|
"YOUR_DATA": "Uw gegevens",
|
|
@@ -2659,6 +2767,7 @@
|
|
|
2659
2767
|
"ADDRESS_CHANGE": "Change address",
|
|
2660
2768
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Check warehouse and commissioncode",
|
|
2661
2769
|
"ARTICLE": "Article",
|
|
2770
|
+
"ARTICLE_DESCRIPTION": "Article description",
|
|
2662
2771
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
2663
2772
|
"ARTICLE_NR": "Article number",
|
|
2664
2773
|
"ASSEMBLY_COSTS": "Assembly costs",
|
|
@@ -2699,12 +2808,15 @@
|
|
|
2699
2808
|
"DELIVERY_OPTARTICLE_NRIONS": "Delivery options",
|
|
2700
2809
|
"DELIVERY_TIME_PERIOD": "Delivery time period",
|
|
2701
2810
|
"DESCRIPTION": "Description",
|
|
2811
|
+
"DETAILS": "Details",
|
|
2702
2812
|
"DISCOUNT": "Discount",
|
|
2703
2813
|
"DISCOUNT_AMOUNT": "Discount amount",
|
|
2704
2814
|
"DISCOUNT_PERCENTAGE": "Discount %",
|
|
2705
2815
|
"DROPSHIPMENT": "Dropshipment",
|
|
2706
2816
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
2707
2817
|
"EXISTING_CUSTOMERS": "Existing customers",
|
|
2818
|
+
"EXPECTED_DELIVERY_DATE": "Expected delivery date",
|
|
2819
|
+
"EXPECTED_DELIVERY_WEEK": "Expected delivery week",
|
|
2708
2820
|
"FEMALE": "Female",
|
|
2709
2821
|
"FIRST_NAME": "First name",
|
|
2710
2822
|
"GOOD_DESCRIPTION": "Article description",
|
|
@@ -2731,11 +2843,14 @@
|
|
|
2731
2843
|
"NUMBER": "Amount",
|
|
2732
2844
|
"ON_DATE": "On date",
|
|
2733
2845
|
"OPEN_SHOPPING_CART": "Open shopping cart",
|
|
2846
|
+
"ORDER_DATE": "Order date",
|
|
2734
2847
|
"ORDER_GROSS": "Total gross amount",
|
|
2735
2848
|
"ORDER_NET": "Total net amount",
|
|
2849
|
+
"ORDER_NUMBER": "Order number",
|
|
2736
2850
|
"ORDER_TYPE": "Order type",
|
|
2737
2851
|
"OVERVIEW": "Overview",
|
|
2738
2852
|
"OWN_REFERENCE": "Own reference",
|
|
2853
|
+
"PAID_DOWN2": "Prepaid",
|
|
2739
2854
|
"PART_DELIVERIES": "Partial deliveries",
|
|
2740
2855
|
"PASSWORD": "Password",
|
|
2741
2856
|
"PAYMENT": "Payment",
|
|
@@ -2748,6 +2863,8 @@
|
|
|
2748
2863
|
"PRICE_LIST": "Pricelist",
|
|
2749
2864
|
"PRIVACY_PREFERENCES": "Privacy preferences",
|
|
2750
2865
|
"PRIVATE_PERSON": "Private",
|
|
2866
|
+
"PRODUCT": "Product",
|
|
2867
|
+
"PRODUCT_TYPE": "Product type",
|
|
2751
2868
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Quantity cannot be zero or empty",
|
|
2752
2869
|
"QUANTUM_DISCOUNT": "Quantum discount",
|
|
2753
2870
|
"REFERENCE_RELATION": "Ref. relation",
|
|
@@ -2755,6 +2872,9 @@
|
|
|
2755
2872
|
"SALUTATION": "Salutation",
|
|
2756
2873
|
"SAVE": "Save",
|
|
2757
2874
|
"SELECT": "Select",
|
|
2875
|
+
"SERVICE_NUMBER": "Service number",
|
|
2876
|
+
"SERVICE_REQUEST_DATE": "Service request data",
|
|
2877
|
+
"SERVICE_STATE": "Service state",
|
|
2758
2878
|
"SHOPPING_CART": "Shopping cart",
|
|
2759
2879
|
"SHOPPING_CART_CHECKOUT": "Checkout",
|
|
2760
2880
|
"SHOPPING_CART_OVERVIEW": "Order overview",
|
|
@@ -2766,17 +2886,21 @@
|
|
|
2766
2886
|
"SUBTOTAL": "Subtotal",
|
|
2767
2887
|
"SUGGESTIONS": "Suggestions",
|
|
2768
2888
|
"SURCHARGE_AMOUNT": "Surcharge",
|
|
2889
|
+
"STATE": "STATUS",
|
|
2769
2890
|
"STREET": "Streetname",
|
|
2891
|
+
"TOTAL_AMOUNT": "Total amount",
|
|
2770
2892
|
"TOTAL_GROSS": "Gross total",
|
|
2771
2893
|
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
2772
2894
|
"TRANSACTION_DISCOUNT": "Total transaction discount",
|
|
2773
2895
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. discount",
|
|
2774
2896
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
2897
|
+
"TRANSACTION_SUM_I": "Ordertotal incl VAT",
|
|
2775
2898
|
"TRANSACTION_TOTAL": "Transaction total",
|
|
2776
2899
|
"UNKNOWN": "unknown",
|
|
2777
2900
|
"UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
|
|
2778
2901
|
"VALUE": "Value",
|
|
2779
2902
|
"VAT": "VAT",
|
|
2903
|
+
"VAT_AMOUNT": "VAT amount",
|
|
2780
2904
|
"WAREHOUSE": "Warehouse",
|
|
2781
2905
|
"YOUR_DATA": "Your data",
|
|
2782
2906
|
},
|
|
@@ -2876,6 +3000,9 @@
|
|
|
2876
3000
|
this.addArticleLineAt = new rxjs.Subject();
|
|
2877
3001
|
this.addTextLineAt = new rxjs.Subject();
|
|
2878
3002
|
this.changeLineSequence = new rxjs.Subject();
|
|
3003
|
+
this.transactionLineClicked = new rxjs.Subject();
|
|
3004
|
+
this.rightSidebarClose = new rxjs.Subject();
|
|
3005
|
+
this.scrollContent = new rxjs.Subject();
|
|
2879
3006
|
}
|
|
2880
3007
|
return TransactionEventService;
|
|
2881
3008
|
}());
|
|
@@ -3621,7 +3748,7 @@
|
|
|
3621
3748
|
CheckoutOverviewComponent.decorators = [
|
|
3622
3749
|
{ type: i0.Component, args: [{
|
|
3623
3750
|
selector: "checkout-overview",
|
|
3624
|
-
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
|
|
3751
|
+
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 ",
|
|
3625
3752
|
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"]
|
|
3626
3753
|
},] }
|
|
3627
3754
|
];
|
|
@@ -4560,6 +4687,7 @@
|
|
|
4560
4687
|
}());
|
|
4561
4688
|
IconComponent.decorators = [
|
|
4562
4689
|
{ type: i0.Component, args: [{
|
|
4690
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
4563
4691
|
selector: "icon",
|
|
4564
4692
|
template: "",
|
|
4565
4693
|
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.circle:host{border-radius:50%}.flex-center{display:flex}:host{display:inline-flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.no-shrink:host{flex-shrink:0}:host.action ::ng-deep{cursor:pointer}:host ::ng-deep svg{width:100%}:host ::ng-deep svg{height:100%}.massive:host{width:100px;height:100px}.humongous:host{width:70px;height:70px}.very-big:host{width:45px;height:45px}.big:host{width:40px;height:40px}:host{width:30px;height:30px}.small:host{width:25px;height:25px}.nano:host{width:18px;height:18px}.pico:host{width:14px;height:14px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.dark ::ng-deep [fill]{fill:#22313c}:host.light ::ng-deep [fill]{fill:#fff}:host.red ::ng-deep [fill]{fill:#c1002a}:host.grey ::ng-deep [fill]{fill:#dad9d9}:host.action-color ::ng-deep [fill]{fill:#2b60a7}:host.inactive{opacity:.25}:host.disabled{opacity:.25!important}:host:hover.action ::ng-deep [fill]{fill:#2b60a7}\n"]
|
|
@@ -4616,7 +4744,6 @@
|
|
|
4616
4744
|
IoneCheckoutModule.decorators = [
|
|
4617
4745
|
{ type: i0.NgModule, args: [{
|
|
4618
4746
|
imports: [
|
|
4619
|
-
animations.BrowserAnimationsModule,
|
|
4620
4747
|
corecomponents_v12.IconModule,
|
|
4621
4748
|
corecomponents_v12.InputTextModule,
|
|
4622
4749
|
corecomponents_v12.InputCheckboxModule,
|
|
@@ -4636,6 +4763,7 @@
|
|
|
4636
4763
|
corecomponents_v12.CoSidebarModule,
|
|
4637
4764
|
corecomponents_v12.CoGridModule,
|
|
4638
4765
|
CoreModule,
|
|
4766
|
+
common.CommonModule,
|
|
4639
4767
|
],
|
|
4640
4768
|
declarations: [
|
|
4641
4769
|
CheckoutComponent,
|
|
@@ -4652,7 +4780,6 @@
|
|
|
4652
4780
|
IoneCheckoutComponent,
|
|
4653
4781
|
],
|
|
4654
4782
|
providers: [
|
|
4655
|
-
IOneConnectorAdapterService,
|
|
4656
4783
|
DictionaryService,
|
|
4657
4784
|
TransactionService,
|
|
4658
4785
|
OptionsService
|
|
@@ -5858,7 +5985,7 @@
|
|
|
5858
5985
|
{ type: i0.Component, args: [{
|
|
5859
5986
|
selector: "shopping-cart-line",
|
|
5860
5987
|
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 ",
|
|
5861
|
-
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}.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"]
|
|
5988
|
+
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"]
|
|
5862
5989
|
},] }
|
|
5863
5990
|
];
|
|
5864
5991
|
ShoppingCartLineComponent.ctorParameters = function () { return [
|
|
@@ -5972,7 +6099,6 @@
|
|
|
5972
6099
|
CharacteristicAnswerComponent,
|
|
5973
6100
|
],
|
|
5974
6101
|
imports: [
|
|
5975
|
-
animations.BrowserAnimationsModule,
|
|
5976
6102
|
common.CommonModule,
|
|
5977
6103
|
corecomponents_v12.IconModule,
|
|
5978
6104
|
corecomponents_v12.InputTextModule,
|
|
@@ -5995,7 +6121,6 @@
|
|
|
5995
6121
|
CoreModule
|
|
5996
6122
|
],
|
|
5997
6123
|
providers: [
|
|
5998
|
-
IOneConnectorAdapterService,
|
|
5999
6124
|
DictionaryService,
|
|
6000
6125
|
TransactionService,
|
|
6001
6126
|
OptionsService
|
|
@@ -6003,11 +6128,1471 @@
|
|
|
6003
6128
|
entryComponents: [
|
|
6004
6129
|
IoneShoppingCartComponent
|
|
6005
6130
|
],
|
|
6006
|
-
exports: [IoneShoppingCartComponent],
|
|
6131
|
+
exports: [IoneShoppingCartComponent, StockStatusIndicatorComponent],
|
|
6007
6132
|
bootstrap: [IoneShoppingCartComponent]
|
|
6008
6133
|
},] }
|
|
6009
6134
|
];
|
|
6010
6135
|
|
|
6136
|
+
var IoneServiceOrderComponent = /** @class */ (function () {
|
|
6137
|
+
function IoneServiceOrderComponent(_changeDetector, _optionsService, _connector, _dictionary, _service) {
|
|
6138
|
+
var _this = this;
|
|
6139
|
+
this._changeDetector = _changeDetector;
|
|
6140
|
+
this._optionsService = _optionsService;
|
|
6141
|
+
this._connector = _connector;
|
|
6142
|
+
this._dictionary = _dictionary;
|
|
6143
|
+
this._service = _service;
|
|
6144
|
+
this.upAndLoaded = false;
|
|
6145
|
+
this._subscriptions = [];
|
|
6146
|
+
this._remoteOptions = true;
|
|
6147
|
+
this._publicOptions = true;
|
|
6148
|
+
this._orderId = 0;
|
|
6149
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
|
|
6150
|
+
}
|
|
6151
|
+
Object.defineProperty(IoneServiceOrderComponent.prototype, "orderId", {
|
|
6152
|
+
set: function (value) {
|
|
6153
|
+
this._orderId = value;
|
|
6154
|
+
this._getTransactionById(this._orderId);
|
|
6155
|
+
},
|
|
6156
|
+
enumerable: false,
|
|
6157
|
+
configurable: true
|
|
6158
|
+
});
|
|
6159
|
+
;
|
|
6160
|
+
Object.defineProperty(IoneServiceOrderComponent.prototype, "options", {
|
|
6161
|
+
set: function (value) {
|
|
6162
|
+
if (value) {
|
|
6163
|
+
var options = void 0;
|
|
6164
|
+
if (typeof value === "string") {
|
|
6165
|
+
options = JSON.parse(value);
|
|
6166
|
+
}
|
|
6167
|
+
else {
|
|
6168
|
+
options = value;
|
|
6169
|
+
}
|
|
6170
|
+
this._publicOptions = true;
|
|
6171
|
+
this._optionsService.initialize(options).then();
|
|
6172
|
+
}
|
|
6173
|
+
},
|
|
6174
|
+
enumerable: false,
|
|
6175
|
+
configurable: true
|
|
6176
|
+
});
|
|
6177
|
+
IoneServiceOrderComponent.prototype.ngOnInit = function () {
|
|
6178
|
+
if (!this._publicOptions) {
|
|
6179
|
+
this._optionsService.initializeDevelopmentOptions(this._remoteOptions);
|
|
6180
|
+
}
|
|
6181
|
+
};
|
|
6182
|
+
IoneServiceOrderComponent.prototype.ngOnDestroy = function () {
|
|
6183
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
6184
|
+
};
|
|
6185
|
+
IoneServiceOrderComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
6186
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6187
|
+
return __generator(this, function (_a) {
|
|
6188
|
+
switch (_a.label) {
|
|
6189
|
+
case 0:
|
|
6190
|
+
if (!loaded) return [3 /*break*/, 2];
|
|
6191
|
+
return [4 /*yield*/, this._initConnection().then()];
|
|
6192
|
+
case 1:
|
|
6193
|
+
_a.sent();
|
|
6194
|
+
this.upAndLoaded = true;
|
|
6195
|
+
_a.label = 2;
|
|
6196
|
+
case 2: return [2 /*return*/];
|
|
6197
|
+
}
|
|
6198
|
+
});
|
|
6199
|
+
});
|
|
6200
|
+
};
|
|
6201
|
+
IoneServiceOrderComponent.prototype._initConnection = function () {
|
|
6202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6203
|
+
var _this = this;
|
|
6204
|
+
return __generator(this, function (_a) {
|
|
6205
|
+
switch (_a.label) {
|
|
6206
|
+
case 0: return [4 /*yield*/, this._connector.connect(this._optionsService.options)];
|
|
6207
|
+
case 1:
|
|
6208
|
+
_a.sent();
|
|
6209
|
+
if (this._optionsService.options.url) {
|
|
6210
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
6211
|
+
}
|
|
6212
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
6213
|
+
case 2:
|
|
6214
|
+
_a.sent();
|
|
6215
|
+
setTimeout(function () {
|
|
6216
|
+
_this._changeDetector.detectChanges();
|
|
6217
|
+
});
|
|
6218
|
+
return [2 /*return*/];
|
|
6219
|
+
}
|
|
6220
|
+
});
|
|
6221
|
+
});
|
|
6222
|
+
};
|
|
6223
|
+
IoneServiceOrderComponent.prototype._getTransactionById = function (orderId) {
|
|
6224
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6225
|
+
return __generator(this, function (_a) {
|
|
6226
|
+
switch (_a.label) {
|
|
6227
|
+
case 0: return [4 /*yield*/, this._service.getTransactionById(orderId)];
|
|
6228
|
+
case 1:
|
|
6229
|
+
_a.sent();
|
|
6230
|
+
return [2 /*return*/];
|
|
6231
|
+
}
|
|
6232
|
+
});
|
|
6233
|
+
});
|
|
6234
|
+
};
|
|
6235
|
+
return IoneServiceOrderComponent;
|
|
6236
|
+
}());
|
|
6237
|
+
IoneServiceOrderComponent.decorators = [
|
|
6238
|
+
{ type: i0.Component, args: [{
|
|
6239
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6240
|
+
selector: "ione-service-order",
|
|
6241
|
+
template: "\n <div>\n <service-order></service-order>\n </div>\n <transaction-sidebar-right></transaction-sidebar-right>\n "
|
|
6242
|
+
},] }
|
|
6243
|
+
];
|
|
6244
|
+
IoneServiceOrderComponent.ctorParameters = function () { return [
|
|
6245
|
+
{ type: i0.ChangeDetectorRef },
|
|
6246
|
+
{ type: OptionsService },
|
|
6247
|
+
{ type: IOneConnectorAdapterService },
|
|
6248
|
+
{ type: DictionaryService },
|
|
6249
|
+
{ type: TransactionService }
|
|
6250
|
+
]; };
|
|
6251
|
+
IoneServiceOrderComponent.propDecorators = {
|
|
6252
|
+
orderId: [{ type: i0.Input }],
|
|
6253
|
+
options: [{ type: i0.Input }]
|
|
6254
|
+
};
|
|
6255
|
+
|
|
6256
|
+
var TransactionBaseComponent = /** @class */ (function () {
|
|
6257
|
+
function TransactionBaseComponent(service) {
|
|
6258
|
+
this.service = service;
|
|
6259
|
+
this.relation = nulRelationObject.NULL_RELATION_LIST_OBJECT;
|
|
6260
|
+
this.customer = nulRelationObject.NULL_CUSTOMER_FULL_OBJECT;
|
|
6261
|
+
this._isService = false;
|
|
6262
|
+
this.basedOnProduct = false;
|
|
6263
|
+
}
|
|
6264
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transaction", {
|
|
6265
|
+
get: function () {
|
|
6266
|
+
return this._transaction;
|
|
6267
|
+
},
|
|
6268
|
+
set: function (value) {
|
|
6269
|
+
this._transaction = value;
|
|
6270
|
+
if (this._transaction && this._transaction.transactionInfo) {
|
|
6271
|
+
this._isService = this._transaction.transactionInfo.transactionKind === transactionKind_enum.TransactionKind.ServiceOrder;
|
|
6272
|
+
}
|
|
6273
|
+
},
|
|
6274
|
+
enumerable: false,
|
|
6275
|
+
configurable: true
|
|
6276
|
+
});
|
|
6277
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionInfo", {
|
|
6278
|
+
get: function () {
|
|
6279
|
+
if (this._transaction) {
|
|
6280
|
+
return this._transaction.transactionInfo;
|
|
6281
|
+
}
|
|
6282
|
+
},
|
|
6283
|
+
enumerable: false,
|
|
6284
|
+
configurable: true
|
|
6285
|
+
});
|
|
6286
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionLines", {
|
|
6287
|
+
get: function () {
|
|
6288
|
+
if (this._transaction) {
|
|
6289
|
+
return this._transaction.transactionLines;
|
|
6290
|
+
}
|
|
6291
|
+
},
|
|
6292
|
+
enumerable: false,
|
|
6293
|
+
configurable: true
|
|
6294
|
+
});
|
|
6295
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "transactionTotal", {
|
|
6296
|
+
get: function () {
|
|
6297
|
+
if (this._transaction) {
|
|
6298
|
+
return this._transaction.transactionTotal;
|
|
6299
|
+
}
|
|
6300
|
+
},
|
|
6301
|
+
enumerable: false,
|
|
6302
|
+
configurable: true
|
|
6303
|
+
});
|
|
6304
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "isService", {
|
|
6305
|
+
get: function () {
|
|
6306
|
+
return this._isService;
|
|
6307
|
+
},
|
|
6308
|
+
enumerable: false,
|
|
6309
|
+
configurable: true
|
|
6310
|
+
});
|
|
6311
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "relationId", {
|
|
6312
|
+
get: function () {
|
|
6313
|
+
return this._relationId;
|
|
6314
|
+
},
|
|
6315
|
+
set: function (value) {
|
|
6316
|
+
if (value === undefined) {
|
|
6317
|
+
return;
|
|
6318
|
+
}
|
|
6319
|
+
this._relationId = value;
|
|
6320
|
+
this._retrieveRelation();
|
|
6321
|
+
},
|
|
6322
|
+
enumerable: false,
|
|
6323
|
+
configurable: true
|
|
6324
|
+
});
|
|
6325
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "customerId", {
|
|
6326
|
+
get: function () {
|
|
6327
|
+
return this._customerId;
|
|
6328
|
+
},
|
|
6329
|
+
set: function (value) {
|
|
6330
|
+
if (value === undefined) {
|
|
6331
|
+
return;
|
|
6332
|
+
}
|
|
6333
|
+
this._customerId = value;
|
|
6334
|
+
this._retrieveCustomer();
|
|
6335
|
+
},
|
|
6336
|
+
enumerable: false,
|
|
6337
|
+
configurable: true
|
|
6338
|
+
});
|
|
6339
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "product", {
|
|
6340
|
+
get: function () {
|
|
6341
|
+
return this._product;
|
|
6342
|
+
},
|
|
6343
|
+
set: function (value) {
|
|
6344
|
+
this._product = value;
|
|
6345
|
+
this.productSet();
|
|
6346
|
+
this._setBasedOnProduct();
|
|
6347
|
+
},
|
|
6348
|
+
enumerable: false,
|
|
6349
|
+
configurable: true
|
|
6350
|
+
});
|
|
6351
|
+
Object.defineProperty(TransactionBaseComponent.prototype, "isNew", {
|
|
6352
|
+
get: function () {
|
|
6353
|
+
return isNill_function.isNill(this.transaction) || isNill_function.isNill(this.transactionInfo.transactionNr);
|
|
6354
|
+
},
|
|
6355
|
+
enumerable: false,
|
|
6356
|
+
configurable: true
|
|
6357
|
+
});
|
|
6358
|
+
TransactionBaseComponent.prototype.transactionSet = function () {
|
|
6359
|
+
// overridden by descendents
|
|
6360
|
+
};
|
|
6361
|
+
TransactionBaseComponent.prototype.productSet = function () {
|
|
6362
|
+
// overridden by descendents
|
|
6363
|
+
};
|
|
6364
|
+
TransactionBaseComponent.prototype._retrieveCustomer = function () {
|
|
6365
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6366
|
+
var _a;
|
|
6367
|
+
return __generator(this, function (_b) {
|
|
6368
|
+
switch (_b.label) {
|
|
6369
|
+
case 0:
|
|
6370
|
+
_a = this;
|
|
6371
|
+
return [4 /*yield*/, this.service.getCustomerFulObjectByRelationId(this._customerId)];
|
|
6372
|
+
case 1:
|
|
6373
|
+
_a.customer = _b.sent();
|
|
6374
|
+
return [2 /*return*/];
|
|
6375
|
+
}
|
|
6376
|
+
});
|
|
6377
|
+
});
|
|
6378
|
+
};
|
|
6379
|
+
TransactionBaseComponent.prototype._retrieveRelation = function () {
|
|
6380
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6381
|
+
var relationRequest$1, relations;
|
|
6382
|
+
return __generator(this, function (_a) {
|
|
6383
|
+
switch (_a.label) {
|
|
6384
|
+
case 0:
|
|
6385
|
+
relationRequest$1 = new relationRequest.RelationRequest();
|
|
6386
|
+
relations = [];
|
|
6387
|
+
relationRequest$1.relationId = this.relationId;
|
|
6388
|
+
return [4 /*yield*/, this.service.getRelationListObjects(relationRequest$1)];
|
|
6389
|
+
case 1:
|
|
6390
|
+
relations = _a.sent();
|
|
6391
|
+
if (relations && relations.length) {
|
|
6392
|
+
this.relation = relations[0];
|
|
6393
|
+
}
|
|
6394
|
+
return [2 /*return*/];
|
|
6395
|
+
}
|
|
6396
|
+
});
|
|
6397
|
+
});
|
|
6398
|
+
};
|
|
6399
|
+
TransactionBaseComponent.prototype._setBasedOnProduct = function () {
|
|
6400
|
+
if (this.product) {
|
|
6401
|
+
this.basedOnProduct = true;
|
|
6402
|
+
}
|
|
6403
|
+
else { //check transaction (service) for product
|
|
6404
|
+
// TODO: assProduct is not a property of transaction right now.
|
|
6405
|
+
// this.basedOnProduct = notNill(this._transaction.assProduct);
|
|
6406
|
+
// if (this.basedOnProduct) {
|
|
6407
|
+
// this._product = this.transaction.assProduct;
|
|
6408
|
+
// }
|
|
6409
|
+
}
|
|
6410
|
+
};
|
|
6411
|
+
return TransactionBaseComponent;
|
|
6412
|
+
}());
|
|
6413
|
+
TransactionBaseComponent.decorators = [
|
|
6414
|
+
{ type: i0.Directive }
|
|
6415
|
+
];
|
|
6416
|
+
TransactionBaseComponent.ctorParameters = function () { return [
|
|
6417
|
+
{ type: TransactionService }
|
|
6418
|
+
]; };
|
|
6419
|
+
TransactionBaseComponent.propDecorators = {
|
|
6420
|
+
transaction: [{ type: i0.Input }],
|
|
6421
|
+
relationId: [{ type: i0.Input }],
|
|
6422
|
+
customerId: [{ type: i0.Input }],
|
|
6423
|
+
product: [{ type: i0.Input }],
|
|
6424
|
+
relation: [{ type: i0.Input }],
|
|
6425
|
+
customer: [{ type: i0.Input }]
|
|
6426
|
+
};
|
|
6427
|
+
|
|
6428
|
+
var TransactionArticleTextComponent = /** @class */ (function (_super) {
|
|
6429
|
+
__extends(TransactionArticleTextComponent, _super);
|
|
6430
|
+
function TransactionArticleTextComponent(service) {
|
|
6431
|
+
var _this = _super.call(this, service) || this;
|
|
6432
|
+
_this.service = service;
|
|
6433
|
+
_this.visible = false;
|
|
6434
|
+
_this.floatButtonSelected = false;
|
|
6435
|
+
_this.overviewSelected = false;
|
|
6436
|
+
_this.editArtikelText = false;
|
|
6437
|
+
_this.collection = [
|
|
6438
|
+
{ id: 1, name: "Standaardtekst 1" },
|
|
6439
|
+
{ id: 2, name: "Standaardtekst 1" },
|
|
6440
|
+
{ id: 3, name: "Standaardtekst 1" },
|
|
6441
|
+
{ id: 4, name: "Standaardtekst 1" },
|
|
6442
|
+
{ id: 5, name: "Standaardtekst 1" }
|
|
6443
|
+
];
|
|
6444
|
+
_this.articleTexts = [
|
|
6445
|
+
{ title: "title 1", description: "Omschrijving 1" },
|
|
6446
|
+
{ title: "title 2", description: "Omschrijving 2" },
|
|
6447
|
+
{ title: "title 3", description: "Omschrijving 3" },
|
|
6448
|
+
{ title: "title 4", description: "Omschrijving 4" },
|
|
6449
|
+
{ title: "title 5", description: "Omschrijving 5" },
|
|
6450
|
+
];
|
|
6451
|
+
_this.fields = { text: "name", value: "id" };
|
|
6452
|
+
return _this;
|
|
6453
|
+
}
|
|
6454
|
+
TransactionArticleTextComponent.prototype.onOkClick = function () {
|
|
6455
|
+
this.hide();
|
|
6456
|
+
};
|
|
6457
|
+
TransactionArticleTextComponent.prototype.onPopupClose = function () {
|
|
6458
|
+
this.hide();
|
|
6459
|
+
this.hideOverview();
|
|
6460
|
+
this.hideEditArtikelText();
|
|
6461
|
+
};
|
|
6462
|
+
TransactionArticleTextComponent.prototype.hide = function () {
|
|
6463
|
+
// TODO: throw hide event
|
|
6464
|
+
this.visible = false;
|
|
6465
|
+
};
|
|
6466
|
+
TransactionArticleTextComponent.prototype.onOverview = function () {
|
|
6467
|
+
this.overviewSelected = true;
|
|
6468
|
+
};
|
|
6469
|
+
TransactionArticleTextComponent.prototype.onOkOverviewClick = function () {
|
|
6470
|
+
this.hideOverview();
|
|
6471
|
+
};
|
|
6472
|
+
TransactionArticleTextComponent.prototype.hideOverview = function () {
|
|
6473
|
+
this.overviewSelected = false;
|
|
6474
|
+
};
|
|
6475
|
+
TransactionArticleTextComponent.prototype.onDetailLinkClick = function (bo) {
|
|
6476
|
+
this.editArtikelText = true;
|
|
6477
|
+
};
|
|
6478
|
+
TransactionArticleTextComponent.prototype.hideEditArtikelText = function () {
|
|
6479
|
+
this.editArtikelText = false;
|
|
6480
|
+
};
|
|
6481
|
+
TransactionArticleTextComponent.prototype.onOkEditArtikelTextClick = function () {
|
|
6482
|
+
this.editArtikelText = false;
|
|
6483
|
+
};
|
|
6484
|
+
return TransactionArticleTextComponent;
|
|
6485
|
+
}(TransactionBaseComponent));
|
|
6486
|
+
TransactionArticleTextComponent.decorators = [
|
|
6487
|
+
{ type: i0.Component, args: [{
|
|
6488
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6489
|
+
selector: "transaction-article-text",
|
|
6490
|
+
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 ",
|
|
6491
|
+
styles: [""]
|
|
6492
|
+
},] }
|
|
6493
|
+
];
|
|
6494
|
+
TransactionArticleTextComponent.ctorParameters = function () { return [
|
|
6495
|
+
{ type: TransactionService }
|
|
6496
|
+
]; };
|
|
6497
|
+
TransactionArticleTextComponent.propDecorators = {
|
|
6498
|
+
subHeader: [{ type: i0.Input }]
|
|
6499
|
+
};
|
|
6500
|
+
|
|
6501
|
+
var ServiceOrderComponent = /** @class */ (function (_super) {
|
|
6502
|
+
__extends(ServiceOrderComponent, _super);
|
|
6503
|
+
function ServiceOrderComponent(service, transactionEvents, iconCacheService) {
|
|
6504
|
+
var _this = _super.call(this, service) || this;
|
|
6505
|
+
_this.service = service;
|
|
6506
|
+
_this.transactionEvents = transactionEvents;
|
|
6507
|
+
_this.iconCacheService = iconCacheService;
|
|
6508
|
+
_this.iconThickLines = corecomponents_v12.CoreComponentsIcon.ThickLines;
|
|
6509
|
+
_this.iconThinLines = corecomponents_v12.CoreComponentsIcon.ThinLines;
|
|
6510
|
+
_this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
|
|
6511
|
+
_this.viewModes = ContentViewMode;
|
|
6512
|
+
_this.canPlanDelivery = false;
|
|
6513
|
+
_this.showTotals = true;
|
|
6514
|
+
_this.contextMenuItems = [];
|
|
6515
|
+
_this.isRouteOptimizationConfigured = false;
|
|
6516
|
+
_this.activeViewMode = ContentViewMode.List;
|
|
6517
|
+
_this.floatButtonSelected = false;
|
|
6518
|
+
_this._subs = [];
|
|
6519
|
+
return _this;
|
|
6520
|
+
}
|
|
6521
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "inListView", {
|
|
6522
|
+
get: function () {
|
|
6523
|
+
return this.activeViewMode === ContentViewMode.List;
|
|
6524
|
+
},
|
|
6525
|
+
enumerable: false,
|
|
6526
|
+
configurable: true
|
|
6527
|
+
});
|
|
6528
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "inGridView", {
|
|
6529
|
+
get: function () {
|
|
6530
|
+
return this.activeViewMode === ContentViewMode.Grid;
|
|
6531
|
+
},
|
|
6532
|
+
enumerable: false,
|
|
6533
|
+
configurable: true
|
|
6534
|
+
});
|
|
6535
|
+
ServiceOrderComponent.prototype.ngOnInit = function () {
|
|
6536
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6537
|
+
var _this = this;
|
|
6538
|
+
return __generator(this, function (_a) {
|
|
6539
|
+
this._subs.push(this.service.transactionLoaded.subscribe(function (transactionInfoResponse) {
|
|
6540
|
+
if (transactionInfoResponse.isSuccess) {
|
|
6541
|
+
_this.transaction = transactionInfoResponse;
|
|
6542
|
+
if (_this.transaction && _this.transaction.transactionInfo) {
|
|
6543
|
+
_this.customerId = Number(_this.transaction.transactionInfo.relation.relationNr);
|
|
6544
|
+
_this.relationId = _this.transaction.transactionInfo.relation.relationId;
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
}), this.transactionEvents.rightSidebarClose.subscribe(function () {
|
|
6548
|
+
_this.moveFloatingButtonToRight();
|
|
6549
|
+
}), this.transactionEvents.transactionLineClicked.subscribe(function (transactionLine) {
|
|
6550
|
+
_this._selectedTransLine = transactionLine;
|
|
6551
|
+
_this.moveFloatingButtonToLeft();
|
|
6552
|
+
}), this.transactionEvents.scrollContent.subscribe(function (event) {
|
|
6553
|
+
_this.hideOrderTotals(event);
|
|
6554
|
+
}));
|
|
6555
|
+
return [2 /*return*/];
|
|
6556
|
+
});
|
|
6557
|
+
});
|
|
6558
|
+
};
|
|
6559
|
+
ServiceOrderComponent.prototype.ngOnDestroy = function () {
|
|
6560
|
+
this._subs.forEach(function (sub) { return sub.unsubscribe(); });
|
|
6561
|
+
};
|
|
6562
|
+
ServiceOrderComponent.prototype.animationFn = function () {
|
|
6563
|
+
return animations.trigger("showPopup", [
|
|
6564
|
+
animations.state("void", animations.style({ transform: "translate3d(0, 0, 0)" })),
|
|
6565
|
+
animations.state("*", animations.style({ transform: "translate3d(100%, 0, 0)" })),
|
|
6566
|
+
animations.transition("void <=> *", [
|
|
6567
|
+
animations.animate("200ms ease-in-out")
|
|
6568
|
+
])
|
|
6569
|
+
]);
|
|
6570
|
+
};
|
|
6571
|
+
ServiceOrderComponent.prototype.trackByFn = function (index, line) {
|
|
6572
|
+
return line.lineNr;
|
|
6573
|
+
};
|
|
6574
|
+
ServiceOrderComponent.prototype.handleRowsSelected = function (rows) {
|
|
6575
|
+
this._selectedTransLine = rows.find(function (x) { return x !== undefined; });
|
|
6576
|
+
};
|
|
6577
|
+
ServiceOrderComponent.prototype.handlePlanningRequest = function (event) {
|
|
6578
|
+
// TODO: handlePlanningRequest... from new Planning package
|
|
6579
|
+
};
|
|
6580
|
+
ServiceOrderComponent.prototype.moveFloatingButtonToLeft = function () {
|
|
6581
|
+
if (this.floatButtonRightPosition === ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR) {
|
|
6582
|
+
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR;
|
|
6583
|
+
}
|
|
6584
|
+
};
|
|
6585
|
+
ServiceOrderComponent.prototype.moveFloatingButtonToRight = function () {
|
|
6586
|
+
if (this.floatButtonRightPosition === ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR) {
|
|
6587
|
+
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR;
|
|
6588
|
+
}
|
|
6589
|
+
};
|
|
6590
|
+
ServiceOrderComponent.prototype.onOkClick = function () {
|
|
6591
|
+
this.hide();
|
|
6592
|
+
};
|
|
6593
|
+
ServiceOrderComponent.prototype.hide = function () {
|
|
6594
|
+
this.floatButtonSelected = false;
|
|
6595
|
+
};
|
|
6596
|
+
ServiceOrderComponent.prototype.floatButtonClick = function () {
|
|
6597
|
+
this.floatButtonSelected = true;
|
|
6598
|
+
this._transactionArticleTextComponent.visible = this.floatButtonSelected;
|
|
6599
|
+
};
|
|
6600
|
+
Object.defineProperty(ServiceOrderComponent.prototype, "subHeader", {
|
|
6601
|
+
get: function () {
|
|
6602
|
+
if (this._selectedTransLine && this._selectedTransLine !== undefined) {
|
|
6603
|
+
return this._selectedTransLine.goodDescription;
|
|
6604
|
+
}
|
|
6605
|
+
return "";
|
|
6606
|
+
},
|
|
6607
|
+
enumerable: false,
|
|
6608
|
+
configurable: true
|
|
6609
|
+
});
|
|
6610
|
+
ServiceOrderComponent.prototype.hideOrderTotals = function (event) {
|
|
6611
|
+
this.showTotals = false;
|
|
6612
|
+
};
|
|
6613
|
+
return ServiceOrderComponent;
|
|
6614
|
+
}(TransactionBaseComponent));
|
|
6615
|
+
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR = 50;
|
|
6616
|
+
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR = 350;
|
|
6617
|
+
ServiceOrderComponent.decorators = [
|
|
6618
|
+
{ type: i0.Component, args: [{
|
|
6619
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6620
|
+
selector: "service-order",
|
|
6621
|
+
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 [ngClass]=\"showTotals ? 'transaction-totals-show' : 'transaction-totals-hide'\"></transaction-order-totals>\n </div>\n\n <transaction-article-text></transaction-article-text>\n ",
|
|
6622
|
+
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"]
|
|
6623
|
+
},] }
|
|
6624
|
+
];
|
|
6625
|
+
ServiceOrderComponent.ctorParameters = function () { return [
|
|
6626
|
+
{ type: TransactionService },
|
|
6627
|
+
{ type: TransactionEventService },
|
|
6628
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
6629
|
+
]; };
|
|
6630
|
+
ServiceOrderComponent.propDecorators = {
|
|
6631
|
+
_transactionArticleTextComponent: [{ type: i0.ViewChild, args: [TransactionArticleTextComponent, { static: false },] }]
|
|
6632
|
+
};
|
|
6633
|
+
|
|
6634
|
+
var TransactionOrderTotalsComponent = /** @class */ (function (_super) {
|
|
6635
|
+
__extends(TransactionOrderTotalsComponent, _super);
|
|
6636
|
+
function TransactionOrderTotalsComponent(service) {
|
|
6637
|
+
var _this = _super.call(this, service) || this;
|
|
6638
|
+
_this.service = service;
|
|
6639
|
+
return _this;
|
|
6640
|
+
}
|
|
6641
|
+
return TransactionOrderTotalsComponent;
|
|
6642
|
+
}(TransactionBaseComponent));
|
|
6643
|
+
TransactionOrderTotalsComponent.decorators = [
|
|
6644
|
+
{ type: i0.Component, args: [{
|
|
6645
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6646
|
+
selector: "transaction-order-totals",
|
|
6647
|
+
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 ",
|
|
6648
|
+
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"]
|
|
6649
|
+
},] }
|
|
6650
|
+
];
|
|
6651
|
+
TransactionOrderTotalsComponent.ctorParameters = function () { return [
|
|
6652
|
+
{ type: TransactionService }
|
|
6653
|
+
]; };
|
|
6654
|
+
|
|
6655
|
+
var TransactionOrderLineViewComponent = /** @class */ (function () {
|
|
6656
|
+
function TransactionOrderLineViewComponent(_service, _eventService) {
|
|
6657
|
+
this._service = _service;
|
|
6658
|
+
this._eventService = _eventService;
|
|
6659
|
+
this.stock = stockStatus_enum.StockStatus.Low;
|
|
6660
|
+
}
|
|
6661
|
+
TransactionOrderLineViewComponent.prototype.ngOnInit = function () {
|
|
6662
|
+
this._loadArticleImage();
|
|
6663
|
+
};
|
|
6664
|
+
TransactionOrderLineViewComponent.prototype._loadArticleImage = function () {
|
|
6665
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6666
|
+
var _a, _b;
|
|
6667
|
+
return __generator(this, function (_c) {
|
|
6668
|
+
switch (_c.label) {
|
|
6669
|
+
case 0:
|
|
6670
|
+
if (!this.line) return [3 /*break*/, 4];
|
|
6671
|
+
_a = this;
|
|
6672
|
+
if (!this.line) return [3 /*break*/, 2];
|
|
6673
|
+
return [4 /*yield*/, this._service.retrieveLineImage(this.line)];
|
|
6674
|
+
case 1:
|
|
6675
|
+
_b = _c.sent();
|
|
6676
|
+
return [3 /*break*/, 3];
|
|
6677
|
+
case 2:
|
|
6678
|
+
_b = undefined;
|
|
6679
|
+
_c.label = 3;
|
|
6680
|
+
case 3:
|
|
6681
|
+
_a.image = _b;
|
|
6682
|
+
_c.label = 4;
|
|
6683
|
+
case 4: return [2 /*return*/];
|
|
6684
|
+
}
|
|
6685
|
+
});
|
|
6686
|
+
});
|
|
6687
|
+
};
|
|
6688
|
+
TransactionOrderLineViewComponent.prototype.transactionLineClick = function (line) {
|
|
6689
|
+
this._eventService.transactionLineClicked.next(this.line);
|
|
6690
|
+
};
|
|
6691
|
+
return TransactionOrderLineViewComponent;
|
|
6692
|
+
}());
|
|
6693
|
+
TransactionOrderLineViewComponent.decorators = [
|
|
6694
|
+
{ type: i0.Component, args: [{
|
|
6695
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6696
|
+
selector: "transaction-order-line-view",
|
|
6697
|
+
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 ",
|
|
6698
|
+
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"]
|
|
6699
|
+
},] }
|
|
6700
|
+
];
|
|
6701
|
+
TransactionOrderLineViewComponent.ctorParameters = function () { return [
|
|
6702
|
+
{ type: TransactionService },
|
|
6703
|
+
{ type: TransactionEventService }
|
|
6704
|
+
]; };
|
|
6705
|
+
TransactionOrderLineViewComponent.propDecorators = {
|
|
6706
|
+
line: [{ type: i0.Input }]
|
|
6707
|
+
};
|
|
6708
|
+
|
|
6709
|
+
var TransactionOrderLinesComponent = /** @class */ (function (_super) {
|
|
6710
|
+
__extends(TransactionOrderLinesComponent, _super);
|
|
6711
|
+
function TransactionOrderLinesComponent(service, _eventService, _dictionaryService) {
|
|
6712
|
+
var _this = _super.call(this, service) || this;
|
|
6713
|
+
_this.service = service;
|
|
6714
|
+
_this._eventService = _eventService;
|
|
6715
|
+
_this._dictionaryService = _dictionaryService;
|
|
6716
|
+
_this.createServiceClick = new i0.EventEmitter();
|
|
6717
|
+
_this.nothingSelected = true;
|
|
6718
|
+
_this.columns = [];
|
|
6719
|
+
_this.columns.push({ field: "articleNumber", headerText: _this._dictionaryService.get("ARTICLE_NR"), allowFiltering: false }, { field: "goodDescription", headerText: _this._dictionaryService.get("DESCRIPTION") }, { field: "detailsAsString", headerText: _this._dictionaryService.get("DETAILS") }, { field: "price", headerText: _this._dictionaryService.get("PRICE") }, { field: "amount", headerText: _this._dictionaryService.get("NUMBER") }, { field: "lineTotal", headerText: _this._dictionaryService.get("SUBTOTAL") }, { field: "logisticState", headerText: _this._dictionaryService.get("STATE") }, { field: "expectedDeliveryDate", headerText: _this._dictionaryService.get("EXPECTED_DELIVERY_DATE") });
|
|
6720
|
+
return _this;
|
|
6721
|
+
}
|
|
6722
|
+
Object.defineProperty(TransactionOrderLinesComponent.prototype, "pagingEnabled", {
|
|
6723
|
+
get: function () {
|
|
6724
|
+
if (this.transactionLines) {
|
|
6725
|
+
return this.transactionLines.length >= TransactionOrderLinesComponent.MAX_TRANSACTION_LINES;
|
|
6726
|
+
}
|
|
6727
|
+
return false;
|
|
6728
|
+
},
|
|
6729
|
+
enumerable: false,
|
|
6730
|
+
configurable: true
|
|
6731
|
+
});
|
|
6732
|
+
Object.defineProperty(TransactionOrderLinesComponent.prototype, "selectedTransLine", {
|
|
6733
|
+
get: function () {
|
|
6734
|
+
return this._selectedTransLine;
|
|
6735
|
+
},
|
|
6736
|
+
set: function (value) {
|
|
6737
|
+
this._selectedTransLine = value;
|
|
6738
|
+
this.nothingSelected = this._selectedTransLine === null;
|
|
6739
|
+
},
|
|
6740
|
+
enumerable: false,
|
|
6741
|
+
configurable: true
|
|
6742
|
+
});
|
|
6743
|
+
TransactionOrderLinesComponent.prototype.onRowClick = function (row) {
|
|
6744
|
+
this.selectedTransLine = row;
|
|
6745
|
+
this._eventService.transactionLineClicked.next(this.selectedTransLine);
|
|
6746
|
+
};
|
|
6747
|
+
TransactionOrderLinesComponent.prototype.onRowDeselect = function (event) {
|
|
6748
|
+
this.selectedTransLine = null;
|
|
6749
|
+
};
|
|
6750
|
+
// TODO: navragen wat de bedoeling is, zie originele source iOneJS
|
|
6751
|
+
TransactionOrderLinesComponent.prototype.newServiceRequestClick = function () {
|
|
6752
|
+
if (this.nothingSelected) {
|
|
6753
|
+
return;
|
|
6754
|
+
}
|
|
6755
|
+
this.createServiceClick.emit(this._selectedTransLine);
|
|
6756
|
+
};
|
|
6757
|
+
return TransactionOrderLinesComponent;
|
|
6758
|
+
}(TransactionBaseComponent));
|
|
6759
|
+
TransactionOrderLinesComponent.MAX_TRANSACTION_LINES = 20;
|
|
6760
|
+
TransactionOrderLinesComponent.decorators = [
|
|
6761
|
+
{ type: i0.Component, args: [{
|
|
6762
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6763
|
+
selector: "transaction-order-lines",
|
|
6764
|
+
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 ",
|
|
6765
|
+
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"]
|
|
6766
|
+
},] }
|
|
6767
|
+
];
|
|
6768
|
+
TransactionOrderLinesComponent.ctorParameters = function () { return [
|
|
6769
|
+
{ type: TransactionService },
|
|
6770
|
+
{ type: TransactionEventService },
|
|
6771
|
+
{ type: DictionaryService }
|
|
6772
|
+
]; };
|
|
6773
|
+
TransactionOrderLinesComponent.propDecorators = {
|
|
6774
|
+
transactionGrid: [{ type: i0.ViewChild, args: ["transactionGrid",] }],
|
|
6775
|
+
createServiceClick: [{ type: i0.Output }]
|
|
6776
|
+
};
|
|
6777
|
+
|
|
6778
|
+
var TransactionRelationAddressComponent = /** @class */ (function () {
|
|
6779
|
+
function TransactionRelationAddressComponent(_dictionary, _connector) {
|
|
6780
|
+
this._dictionary = _dictionary;
|
|
6781
|
+
this._connector = _connector;
|
|
6782
|
+
this.countries = [];
|
|
6783
|
+
this.fields = { text: "description", value: "code" };
|
|
6784
|
+
this.postalCodeCheckErrorMessage = "";
|
|
6785
|
+
this._prevPostalCodeForCheck = "";
|
|
6786
|
+
}
|
|
6787
|
+
Object.defineProperty(TransactionRelationAddressComponent.prototype, "address", {
|
|
6788
|
+
get: function () {
|
|
6789
|
+
if (this._address === undefined) {
|
|
6790
|
+
this._address = new address_bo.Address();
|
|
6791
|
+
}
|
|
6792
|
+
return this._address;
|
|
6793
|
+
},
|
|
6794
|
+
set: function (address) {
|
|
6795
|
+
this._address = address;
|
|
6796
|
+
},
|
|
6797
|
+
enumerable: false,
|
|
6798
|
+
configurable: true
|
|
6799
|
+
});
|
|
6800
|
+
TransactionRelationAddressComponent.prototype.ngOnInit = function () {
|
|
6801
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6802
|
+
var _a;
|
|
6803
|
+
return __generator(this, function (_b) {
|
|
6804
|
+
switch (_b.label) {
|
|
6805
|
+
case 0:
|
|
6806
|
+
_a = this;
|
|
6807
|
+
return [4 /*yield*/, this._connector.getCountries()];
|
|
6808
|
+
case 1:
|
|
6809
|
+
_a.countries = _b.sent();
|
|
6810
|
+
return [2 /*return*/];
|
|
6811
|
+
}
|
|
6812
|
+
});
|
|
6813
|
+
});
|
|
6814
|
+
};
|
|
6815
|
+
TransactionRelationAddressComponent.prototype.checkForPostalCodeCheckError = function () {
|
|
6816
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6817
|
+
var postalCodeResponse;
|
|
6818
|
+
return __generator(this, function (_a) {
|
|
6819
|
+
switch (_a.label) {
|
|
6820
|
+
case 0:
|
|
6821
|
+
if (!this.address.postalCode || isNill_function.isNill(this.address.houseNo)) {
|
|
6822
|
+
this.postalCodeCheckErrorMessage = "";
|
|
6823
|
+
return [2 /*return*/];
|
|
6824
|
+
}
|
|
6825
|
+
if (!(this._prevPostalCodeForCheck !== this.address.postalCode || this._prevHouseNoForCheck !== this.address.houseNo)) return [3 /*break*/, 2];
|
|
6826
|
+
this._prevPostalCodeForCheck = this.address.postalCode;
|
|
6827
|
+
this._prevHouseNoForCheck = this.address.houseNo;
|
|
6828
|
+
return [4 /*yield*/, this._connector.getPostalCodeRetrieval((this.address.postalCode ? this.address.postalCode : ""), StringUtils.ParseString(this.address.houseNo))];
|
|
6829
|
+
case 1:
|
|
6830
|
+
postalCodeResponse = _a.sent();
|
|
6831
|
+
if (postalCodeResponse && postalCodeResponse.isBadAddress) {
|
|
6832
|
+
this.postalCodeCheckErrorMessage = this._dictionary.get("UNKNOWN_ADDRESS_CHECK_IT");
|
|
6833
|
+
}
|
|
6834
|
+
else {
|
|
6835
|
+
this.postalCodeCheckErrorMessage = "";
|
|
6836
|
+
this.address.streetName = postalCodeResponse.street;
|
|
6837
|
+
this.address.city = postalCodeResponse.city;
|
|
6838
|
+
}
|
|
6839
|
+
_a.label = 2;
|
|
6840
|
+
case 2: return [2 /*return*/];
|
|
6841
|
+
}
|
|
6842
|
+
});
|
|
6843
|
+
});
|
|
6844
|
+
};
|
|
6845
|
+
TransactionRelationAddressComponent.prototype.changeHouseNo = function () {
|
|
6846
|
+
this.address.houseNo = Number(this.address.houseNo);
|
|
6847
|
+
};
|
|
6848
|
+
return TransactionRelationAddressComponent;
|
|
6849
|
+
}());
|
|
6850
|
+
TransactionRelationAddressComponent.decorators = [
|
|
6851
|
+
{ type: i0.Component, args: [{
|
|
6852
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6853
|
+
selector: "transaction-relation-address",
|
|
6854
|
+
template: "\n <label [textContent]=\"label | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.postalCode\"\n [placeholder]=\"'POSTAL_CODE' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNo\"\n [placeholder]=\"'HOUSE_NO' | localize\"\n (blur)=\"checkForPostalCodeCheckError()\"\n (modelChange) = \"changeHouseNo()\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.houseNoAddition\"\n [placeholder]=\"'HOUSE_NO_ADDITION' | localize\"\n ></co-input-text>\n </div>\n </div>\n <div>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.streetName\" [placeholder]=\"'STREET' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text [(model)]=\"address.city\" [placeholder]=\"'CITY' | localize\" required></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-combo-box [(model)]=\"address.countryId\"\n [source]=\"countries\"\n [fields]=\"fields\"\n [placeholder]=\"'COUNTRY'| localize\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n </div>\n </div>\n ",
|
|
6855
|
+
styles: [".button-wrapper{margin-top:10px;justify-content:center}co-input-radio-button{margin-left:16px}.transaction-relation-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.transaction-relation-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}\n"]
|
|
6856
|
+
},] }
|
|
6857
|
+
];
|
|
6858
|
+
TransactionRelationAddressComponent.ctorParameters = function () { return [
|
|
6859
|
+
{ type: DictionaryService },
|
|
6860
|
+
{ type: IOneConnectorAdapterService }
|
|
6861
|
+
]; };
|
|
6862
|
+
TransactionRelationAddressComponent.propDecorators = {
|
|
6863
|
+
label: [{ type: i0.Input }],
|
|
6864
|
+
address: [{ type: i0.Input }]
|
|
6865
|
+
};
|
|
6866
|
+
|
|
6867
|
+
var TransactionSidebarRightComponent = /** @class */ (function (_super) {
|
|
6868
|
+
__extends(TransactionSidebarRightComponent, _super);
|
|
6869
|
+
function TransactionSidebarRightComponent(service, iconCacheService, _eventService, changeDetector) {
|
|
6870
|
+
var _this = _super.call(this, service) || this;
|
|
6871
|
+
_this.service = service;
|
|
6872
|
+
_this.iconCacheService = iconCacheService;
|
|
6873
|
+
_this._eventService = _eventService;
|
|
6874
|
+
_this.changeDetector = changeDetector;
|
|
6875
|
+
_this.iconDetailView = corecomponents_v12.CoreComponentsIcon.DetailView;
|
|
6876
|
+
_this.iconArrowPointRight = corecomponents_v12.CoreComponentsIcon.ArrowPointRight;
|
|
6877
|
+
_this.iconStock = corecomponents_v12.CoreComponentsIcon.Stock;
|
|
6878
|
+
_this.iconDocuments = corecomponents_v12.CoreComponentsIcon.Documents;
|
|
6879
|
+
_this.test = "";
|
|
6880
|
+
_this.defaultSidebar = new ej2Navigations.Sidebar({
|
|
6881
|
+
width: "320px",
|
|
6882
|
+
type: "Auto",
|
|
6883
|
+
isOpen: false,
|
|
6884
|
+
position: "Right",
|
|
6885
|
+
target: "#app-module-sidebar-right"
|
|
6886
|
+
});
|
|
6887
|
+
_this._subscriptions = [];
|
|
6888
|
+
_this._subscriptions.push(_this._eventService.transactionLineClicked.subscribe(function (transactionLine) {
|
|
6889
|
+
_this.transactionLine = transactionLine;
|
|
6890
|
+
_this.defaultSidebar.show();
|
|
6891
|
+
}));
|
|
6892
|
+
return _this;
|
|
6893
|
+
}
|
|
6894
|
+
TransactionSidebarRightComponent.prototype.ngOnInit = function () {
|
|
6895
|
+
var _this = this;
|
|
6896
|
+
setTimeout(function () {
|
|
6897
|
+
_this.defaultSidebar.appendTo("#default-sidebar");
|
|
6898
|
+
_this.sidebarCloseClick();
|
|
6899
|
+
_this.changeDetector.detectChanges();
|
|
6900
|
+
});
|
|
6901
|
+
};
|
|
6902
|
+
TransactionSidebarRightComponent.prototype.ngOnDestroy = function () {
|
|
6903
|
+
this._subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
6904
|
+
};
|
|
6905
|
+
TransactionSidebarRightComponent.prototype.sidebarCloseClick = function () {
|
|
6906
|
+
this.defaultSidebar.hide();
|
|
6907
|
+
this._eventService.rightSidebarClose.next();
|
|
6908
|
+
};
|
|
6909
|
+
return TransactionSidebarRightComponent;
|
|
6910
|
+
}(TransactionBaseComponent));
|
|
6911
|
+
TransactionSidebarRightComponent.decorators = [
|
|
6912
|
+
{ type: i0.Component, args: [{
|
|
6913
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6914
|
+
selector: "transaction-sidebar-right",
|
|
6915
|
+
template: "\n <div id=\"default-sidebar\">\n <div>\n <icon [icon]=\"iconArrowPointRight\" (click)=\"sidebarCloseClick()\"></icon>\n <label [textContent]=\"transactionLine?.goodDescription\"></label>\n </div>\n <div>\n <ejs-tab id=\"element2\">\n <e-tabitems>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconDetailView\" title=\"Regeldetails\"></icon>\n </ng-template>\n <ng-template #content>\n <transaction-line-accordion [transactionLine]=\"transactionLine\"></transaction-line-accordion>\n </ng-template>\n </e-tabitem>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconStock\" title=\"Voorraad\"></icon>\n </ng-template>\n <ng-template #content>\n <div style=\"margin: 10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In voorraad\"></co-input-text>\n <co-input-text placeholder=\"In order voorraad\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In order commissie\"></co-input-text>\n <co-input-text placeholder=\"Beschikbaar\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In bestelling\"></co-input-text>\n <co-input-text placeholder=\"Later beschikbaar\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Toegewezen\" [model]=\"transactionLine?.amount\"></co-input-text>\n <co-input-text placeholder=\"Vrije voorraad\"></co-input-text>\n </div>\n </div>\n </ng-template>\n </e-tabitem>\n <e-tabitem>\n <ng-template #headerText>\n <icon [icon]=\"iconDocuments\" title=\"Documenten en notities\"></icon>\n </ng-template>\n <ng-template #content>\n <div>\n Documenten en notities\n </div>\n </ng-template>\n </e-tabitem>\n </e-tabitems>\n </ejs-tab>\n </div>\n </div>\n ",
|
|
6916
|
+
styles: [":host{display:block;width:100%}.e-accordion{border:none}.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon .e-icons{color:#add8e6}.e-tab .e-toolbar-items{display:flex;justify-content:center}\n"]
|
|
6917
|
+
},] }
|
|
6918
|
+
];
|
|
6919
|
+
TransactionSidebarRightComponent.ctorParameters = function () { return [
|
|
6920
|
+
{ type: TransactionService },
|
|
6921
|
+
{ type: corecomponents_v12.IconCacheService },
|
|
6922
|
+
{ type: TransactionEventService },
|
|
6923
|
+
{ type: i0.ChangeDetectorRef }
|
|
6924
|
+
]; };
|
|
6925
|
+
|
|
6926
|
+
var TransactionLineAccordionComponent = /** @class */ (function () {
|
|
6927
|
+
function TransactionLineAccordionComponent(changeDetector) {
|
|
6928
|
+
this.changeDetector = changeDetector;
|
|
6929
|
+
this.transactionLine = new transactionLineInfo_bo.TransactionLineInfo;
|
|
6930
|
+
this.accordion = new ej2Navigations.Accordion({});
|
|
6931
|
+
this._subscriptions = [];
|
|
6932
|
+
}
|
|
6933
|
+
TransactionLineAccordionComponent.prototype.ngOnInit = function () {
|
|
6934
|
+
var _this = this;
|
|
6935
|
+
setTimeout(function () {
|
|
6936
|
+
_this.accordion.appendTo("#accordion_html_markup");
|
|
6937
|
+
_this.changeDetector.detectChanges();
|
|
6938
|
+
});
|
|
6939
|
+
};
|
|
6940
|
+
return TransactionLineAccordionComponent;
|
|
6941
|
+
}());
|
|
6942
|
+
TransactionLineAccordionComponent.decorators = [
|
|
6943
|
+
{ type: i0.Component, args: [{
|
|
6944
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
6945
|
+
selector: "transaction-line-accordion",
|
|
6946
|
+
template: "\n <div id='container'>\n <div id='accordion_html_markup'>\n <div>\n <div>Prijsdetails</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Aantal\" [model]=\"transactionLine?.amount\"></co-input-text>\n <co-input-text placeholder=\"Verkoopprijs\" [model]=\"transactionLine?.price\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Adviesprijs\"></co-input-text>\n <co-input-text placeholder=\"Totaal korting\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Koritngspercentage\"></co-input-text>\n <co-input-text placeholder=\"Kortingsbedrag\" [model]=\"transactionLine?.discountAmount\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Speciale korting\"></co-input-text>\n <co-input-text placeholder=\"Transactiekorting\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Business rule korting\"></co-input-text>\n <co-input-text placeholder=\"Kwantumkorting\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Toeslag\"></co-input-text>\n <co-input-text placeholder=\"BTW\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Prijslijst\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div>Logistiek</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Commissiecode\"></co-input-text>\n <co-input-text placeholder=\"Levermethode\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Montagetijd\"></co-input-text>\n <co-input-text placeholder=\"Bewerkingstijd\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Leverancier\"></co-input-text>\n <co-input-text placeholder=\"Artikelnummer leverancier\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"In/uit collectie\"></co-input-text>\n <co-input-text placeholder=\"Dropshipment\"></co-input-text>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Leverdatum\"></co-input-text>\n <co-input-text placeholder=\"Referentie\"></co-input-text>\n </div>\n </div>\n </div>\n\n </div>\n <div>\n <div id=\"header\">Opmaak</div>\n <div id=\"opmaak\">\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Orderregelset\"></co-input-text>\n <co-input-text placeholder=\"Hoofdstuk\"></co-input-text>\n </div>\n <div>\n <co-input-text placeholder=\"Laatste wijziging Door\"></co-input-text>\n </div>\n <div>\n <co-input-text placeholder=\"Zichtbaar op documenten\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div>Artikelkenmerken</div>\n <div>\n <div style=\"margin-left:10px;\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Breedte\"></co-input-text>\n <co-input-text placeholder=\"Lengte\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Hoogte\"></co-input-text>\n <co-input-text placeholder=\"Zitdiepte\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Zithoogte\"></co-input-text>\n <co-input-text placeholder=\"Volume\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Stopmaat\"></co-input-text>\n <co-input-text placeholder=\"Patroonhoogte\"></co-input-text>\n </div>\n <br>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Standaard levertijd\"></co-input-text>\n <co-input-text placeholder=\"Standaard levertijd verkoop\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Eenheid verkoop\"></co-input-text>\n <co-input-text placeholder=\"Verkoophoeveelheid\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Aantal\"></co-input-text>\n <co-input-text placeholder=\"Colli\"></co-input-text>\n </div>\n <br>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Omzetgroep\"></co-input-text>\n <co-input-text placeholder=\"Artikelgroep\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Hoofdartikel\"></co-input-text>\n <co-input-text placeholder=\"Sfeer\"></co-input-text>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <co-input-text placeholder=\"Concept\"></co-input-text>\n <co-input-text placeholder=\"Afdeling\"></co-input-text>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n ",
|
|
6947
|
+
styles: [""]
|
|
6948
|
+
},] }
|
|
6949
|
+
];
|
|
6950
|
+
TransactionLineAccordionComponent.ctorParameters = function () { return [
|
|
6951
|
+
{ type: i0.ChangeDetectorRef }
|
|
6952
|
+
]; };
|
|
6953
|
+
TransactionLineAccordionComponent.propDecorators = {
|
|
6954
|
+
transactionLine: [{ type: i0.Input }]
|
|
6955
|
+
};
|
|
6956
|
+
|
|
6957
|
+
var TransactionRelationEditComponent = /** @class */ (function (_super) {
|
|
6958
|
+
__extends(TransactionRelationEditComponent, _super);
|
|
6959
|
+
function TransactionRelationEditComponent(service) {
|
|
6960
|
+
var _this = _super.call(this, service) || this;
|
|
6961
|
+
_this.service = service;
|
|
6962
|
+
_this.showPopup = false;
|
|
6963
|
+
_this.relType = relationNameKind_enum.RelationNameKind;
|
|
6964
|
+
_this.genderType = genderType_enum.GenderType;
|
|
6965
|
+
_this.validSubmit = new i0.EventEmitter();
|
|
6966
|
+
_this.invalidSubmit = new i0.EventEmitter();
|
|
6967
|
+
_this.dateOfBirth = new Date();
|
|
6968
|
+
_this.phoneNumber = new contactOption_bo.ContactOption();
|
|
6969
|
+
return _this;
|
|
6970
|
+
}
|
|
6971
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "readonly", {
|
|
6972
|
+
get: function () {
|
|
6973
|
+
return false;
|
|
6974
|
+
},
|
|
6975
|
+
enumerable: false,
|
|
6976
|
+
configurable: true
|
|
6977
|
+
});
|
|
6978
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "subHeader", {
|
|
6979
|
+
get: function () {
|
|
6980
|
+
return "";
|
|
6981
|
+
},
|
|
6982
|
+
enumerable: false,
|
|
6983
|
+
configurable: true
|
|
6984
|
+
});
|
|
6985
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "editFirstAddress", {
|
|
6986
|
+
get: function () {
|
|
6987
|
+
if (this.firstAddress) {
|
|
6988
|
+
return this.firstAddress;
|
|
6989
|
+
}
|
|
6990
|
+
else if (this.customer) {
|
|
6991
|
+
var address = new address_bo.Address();
|
|
6992
|
+
address.addressType = addressType_enum.AddressType.DeliveryAddress;
|
|
6993
|
+
address.startDate = new Date();
|
|
6994
|
+
address.sequence = this.customer.getNextAddressSequence();
|
|
6995
|
+
this.customer.addresses.push(address);
|
|
6996
|
+
return address;
|
|
6997
|
+
}
|
|
6998
|
+
},
|
|
6999
|
+
enumerable: false,
|
|
7000
|
+
configurable: true
|
|
7001
|
+
});
|
|
7002
|
+
Object.defineProperty(TransactionRelationEditComponent.prototype, "firstAddress", {
|
|
7003
|
+
get: function () {
|
|
7004
|
+
if (!this.relation || !this.customer.addresses.length) {
|
|
7005
|
+
return;
|
|
7006
|
+
}
|
|
7007
|
+
return this.customer.getFirstAvailableAddress([
|
|
7008
|
+
addressType_enum.AddressType.DeliveryAddress,
|
|
7009
|
+
addressType_enum.AddressType.BillingAddress,
|
|
7010
|
+
addressType_enum.AddressType.VisitingAddress,
|
|
7011
|
+
addressType_enum.AddressType.MailingAddress,
|
|
7012
|
+
addressType_enum.AddressType.NursingAddress
|
|
7013
|
+
]);
|
|
7014
|
+
},
|
|
7015
|
+
enumerable: false,
|
|
7016
|
+
configurable: true
|
|
7017
|
+
});
|
|
7018
|
+
TransactionRelationEditComponent.prototype.onPopupClose = function () {
|
|
7019
|
+
this.showPopup = false;
|
|
7020
|
+
};
|
|
7021
|
+
TransactionRelationEditComponent.prototype.changeRelationType = function (relationType) {
|
|
7022
|
+
if (this.customer) {
|
|
7023
|
+
this.customer.type = relationType;
|
|
7024
|
+
}
|
|
7025
|
+
};
|
|
7026
|
+
TransactionRelationEditComponent.prototype.changeGenderType = function (genderType) {
|
|
7027
|
+
if (this.customer) {
|
|
7028
|
+
this.customer.gender = genderType;
|
|
7029
|
+
}
|
|
7030
|
+
};
|
|
7031
|
+
TransactionRelationEditComponent.prototype.firstNameChange = function (firstName) {
|
|
7032
|
+
if (this.customer) {
|
|
7033
|
+
this.customer.firstName = firstName;
|
|
7034
|
+
}
|
|
7035
|
+
};
|
|
7036
|
+
TransactionRelationEditComponent.prototype.familyNameChange = function (familyName) {
|
|
7037
|
+
if (this.customer) {
|
|
7038
|
+
this.customer.familyName = familyName;
|
|
7039
|
+
}
|
|
7040
|
+
};
|
|
7041
|
+
return TransactionRelationEditComponent;
|
|
7042
|
+
}(TransactionBaseComponent));
|
|
7043
|
+
TransactionRelationEditComponent.decorators = [
|
|
7044
|
+
{ type: i0.Component, args: [{
|
|
7045
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7046
|
+
selector: "transaction-relation-edit",
|
|
7047
|
+
template: "\n <co-dialog [visible]=\"showPopup\" header=\"ACCOUNT_DETAILS\" (close)=\"onPopupClose()\"\n noClickOutside contentSize>\n <ng-container content>\n <co-form #transactionRelationEditForm (validSubmit)=\"validSubmit.emit()\" (invalidSubmit)=\"invalidSubmit.emit()\">\n <div style=\"min-width: 500px;\">\n <div>\n <label [textContent]=\"'PERSONAL_DATA' | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n </div>\n <div>\n <div>\n <label [textContent]=\"'ORDER_TYPE' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n </div>\n <div *ngIf=\"customer?.type\">\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"customer.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [checked]=\"customer.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"customer?.type === relType.Private\">\n <label [textContent]=\"'SALUTATION' | localize\"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div *ngIf=\"customer?.gender\">\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"customer.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"customer.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"customer.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf=\"customer?.type === relType.Private\">\n <div>\n <label [textContent]=\"'NAME' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n <div class=\"default-flex-row\">\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize \"\n (modelChange)=\"firstNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.prefix\"\n [placeholder]=\"'PREFIX' | localize \"\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"customer.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n required\n ></co-input-text>\n </div>\n <div class=\"default-flex-column\">\n <co-input-date\n [placeholder]=\"'DATE_OF_BIRTH' | localize \"\n [(model)]=\"dateOfBirth\"\n required\n ></co-input-date>\n </div>\n <div class=\"default-flex-column\">\n <co-input-text\n [(model)]=\"phoneNumber.value\"\n [placeholder]=\"'PHONE_NO' | localize \"\n required\n ></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div>\n <div *ngIf=\"customer?.type === relType.Company\" class=\"default-flex-column\">\n <label [textContent]=\"'COMPANY_NAME' | localize \"\n class=\"transaction-relation-label-h3\"\n ></label>\n <co-input-text\n [(model)]=\"customer.familyName\"\n [label]=\"'COMPANY_NAME'\"\n required\n ></co-input-text>\n </div>\n </div>\n\n <div>\n <transaction-relation-address\n label=\"DELIVERY_ADDRESS\" [address]=\"editFirstAddress\"\n ></transaction-relation-address>\n </div>\n\n <div fxLayout=\"row\" fxLayoutGap=\"10px\" class=\"button-wrapper\">\n <default-ok-cancel-buttons\n [okDisabled]=\"readonly\"\n (okClick)=\"transactionRelationEditForm.submit()\"\n (cancelClick)=\"onPopupClose()\"\n ></default-ok-cancel-buttons>\n </div>\n </div>\n </co-form>\n </ng-container>\n </co-dialog>\n ",
|
|
7048
|
+
styles: [".button-wrapper{margin-top:10px;justify-content:center}co-input-radio-button{margin-left:16px}.transaction-relation-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.transaction-relation-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}\n"]
|
|
7049
|
+
},] }
|
|
7050
|
+
];
|
|
7051
|
+
TransactionRelationEditComponent.ctorParameters = function () { return [
|
|
7052
|
+
{ type: TransactionService }
|
|
7053
|
+
]; };
|
|
7054
|
+
TransactionRelationEditComponent.propDecorators = {
|
|
7055
|
+
transactionRelationEditForm: [{ type: i0.ViewChild, args: ["transactionRelationEditForm", { read: corecomponents_v12.FormComponent },] }],
|
|
7056
|
+
showPopup: [{ type: i0.Input }],
|
|
7057
|
+
validSubmit: [{ type: i0.Output }]
|
|
7058
|
+
};
|
|
7059
|
+
|
|
7060
|
+
var TransactionHeaderBlockComponent = /** @class */ (function (_super) {
|
|
7061
|
+
__extends(TransactionHeaderBlockComponent, _super);
|
|
7062
|
+
function TransactionHeaderBlockComponent(service) {
|
|
7063
|
+
var _this = _super.call(this, service) || this;
|
|
7064
|
+
_this.service = service;
|
|
7065
|
+
_this.planningRequestButtonClick = new i0.EventEmitter();
|
|
7066
|
+
return _this;
|
|
7067
|
+
}
|
|
7068
|
+
TransactionHeaderBlockComponent.prototype.showPopupTab = function (index) {
|
|
7069
|
+
this.selectedTab = index;
|
|
7070
|
+
};
|
|
7071
|
+
TransactionHeaderBlockComponent.prototype.tabClick = function () {
|
|
7072
|
+
this.relationPopup.showPopup = true;
|
|
7073
|
+
};
|
|
7074
|
+
TransactionHeaderBlockComponent.prototype.transactionEditClose = function () {
|
|
7075
|
+
this.relationPopup.showPopup = false;
|
|
7076
|
+
};
|
|
7077
|
+
return TransactionHeaderBlockComponent;
|
|
7078
|
+
}(TransactionBaseComponent));
|
|
7079
|
+
TransactionHeaderBlockComponent.decorators = [
|
|
7080
|
+
{ type: i0.Component, args: [{
|
|
7081
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7082
|
+
selector: "transaction-header-block",
|
|
7083
|
+
template: "\n <div fxLayout=\"row wrap\" fxLayout.xs=\"column\">\n <div class=\"summary-block\" (click)=\"tabClick()\">\n <div class=\"block-wrapper\">\n <div class=\"content-wrapper\">\n <div class=\"name\"\n [textContent]=\"relation?.displayName\"></div>\n <div class=\"address link pointer\"\n [textContent]=\"relation?.displayAddressFull\"></div>\n <div class=\"phone link pointer\"\n [textContent]=\"relation?.tel1\"></div>\n <div [textContent]=\"relation?.email\"\n class=\"email link pointer\"\n ></div>\n </div>\n </div>\n </div>\n\n <transaction-service-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-service-info>\n <transaction-service-status class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-service-status>\n <transaction-order-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-order-info>\n <transaction-payment-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-payment-info>\n <transaction-delivery-summary class=\"summary-block\"\n [transaction]=\"transaction\"\n [canPlanDelivery]=\"!isService && canPlanDelivery\"\n (planningRequestButtonClick)=\"planningRequestButtonClick.emit($event)\"\n (click)=\"showPopupTab(1)\"\n ></transaction-delivery-summary>\n <transaction-article-info class=\"summary-block\"\n [transaction]=\"transaction\"\n ></transaction-article-info>\n <transaction-product-summary class=\"summary-block\"\n [transaction]=\"transaction\"\n [product]=\"product\"\n ></transaction-product-summary>\n </div>\n\n <transaction-relation-edit [customerId]=\"relationId\" (validSubmit)=\"transactionEditClose()\"></transaction-relation-edit>\n ",
|
|
7084
|
+
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{display:block;padding:15px 0 30px}.name{font-size:13px;font-weight:bold;color:#22313c;margin-bottom:5px}.address,.phone,.email{font-size:13px;line-height:16px;color:#5b6875}.pointer{cursor:pointer}.link{color:#2b60a7}.summary-block{width:calc(25% - 15px);border:2px dashed #DCE4EA;margin:7px;border-radius:15px;position:relative}.summary-block .block-wrapper{position:relative;display:flex;align-items:center;padding:30px 20px}.summary-block:after{content:\"\";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border:1px solid #FFF;pointer-events:none;border-radius:15px}@media only screen and (min-width: 960px) and (max-width: 1279px){.summary-block{width:calc(50% - 15px)}}@media only screen and (max-width: 599px){.summary-block{width:calc(100%);margin:7px 0}}\n"]
|
|
7085
|
+
},] }
|
|
7086
|
+
];
|
|
7087
|
+
TransactionHeaderBlockComponent.ctorParameters = function () { return [
|
|
7088
|
+
{ type: TransactionService }
|
|
7089
|
+
]; };
|
|
7090
|
+
TransactionHeaderBlockComponent.propDecorators = {
|
|
7091
|
+
relationPopup: [{ type: i0.ViewChild, args: [TransactionRelationEditComponent, { static: true },] }],
|
|
7092
|
+
canPlanDelivery: [{ type: i0.Input }],
|
|
7093
|
+
planningRequestButtonClick: [{ type: i0.Output }]
|
|
7094
|
+
};
|
|
7095
|
+
|
|
7096
|
+
var TransactionServiceSummaryComponent = /** @class */ (function (_super) {
|
|
7097
|
+
__extends(TransactionServiceSummaryComponent, _super);
|
|
7098
|
+
function TransactionServiceSummaryComponent(service, iconCacheService) {
|
|
7099
|
+
var _this = _super.call(this, service) || this;
|
|
7100
|
+
_this.service = service;
|
|
7101
|
+
_this.iconCacheService = iconCacheService;
|
|
7102
|
+
_this.iconWrench = corecomponents_v12.CoreComponentsIcon.Wrench;
|
|
7103
|
+
return _this;
|
|
7104
|
+
}
|
|
7105
|
+
return TransactionServiceSummaryComponent;
|
|
7106
|
+
}(TransactionBaseComponent));
|
|
7107
|
+
TransactionServiceSummaryComponent.decorators = [
|
|
7108
|
+
{ type: i0.Component, args: [{
|
|
7109
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7110
|
+
selector: "transaction-service-info",
|
|
7111
|
+
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 "
|
|
7112
|
+
},] }
|
|
7113
|
+
];
|
|
7114
|
+
TransactionServiceSummaryComponent.ctorParameters = function () { return [
|
|
7115
|
+
{ type: TransactionService },
|
|
7116
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
7117
|
+
]; };
|
|
7118
|
+
TransactionServiceSummaryComponent.propDecorators = {
|
|
7119
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7120
|
+
};
|
|
7121
|
+
|
|
7122
|
+
var TransactionSummaryBlockComponent = /** @class */ (function () {
|
|
7123
|
+
function TransactionSummaryBlockComponent() {
|
|
7124
|
+
this.Icon = corecomponents_v12.CoreComponentsIcon;
|
|
7125
|
+
this.hideAvatar = false;
|
|
7126
|
+
this.label = "";
|
|
7127
|
+
this.headerLabel = "";
|
|
7128
|
+
this.subHeaderLabel = "";
|
|
7129
|
+
}
|
|
7130
|
+
TransactionSummaryBlockComponent.prototype.ngOnDestroy = function () {
|
|
7131
|
+
this.subHeaderTemplate = undefined;
|
|
7132
|
+
};
|
|
7133
|
+
return TransactionSummaryBlockComponent;
|
|
7134
|
+
}());
|
|
7135
|
+
TransactionSummaryBlockComponent.decorators = [
|
|
7136
|
+
{ type: i0.Component, args: [{
|
|
7137
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7138
|
+
selector: "transaction-summary-block",
|
|
7139
|
+
template: "\n <div class=\"block-wrapper\">\n <div *ngIf=\"hideAvatar\" class=\"icon-wrapper\">\n <icon *ngIf=\"icon\" [icon]=\"icon\" class=\"dark\"></icon>\n <image-display *ngIf=\"!icon\" [model]=\"image\"></image-display>\n </div>\n <div class=\"content-wrapper\">\n <div class=\"value-block\">\n <div class=\"header-label\" [textContent]=\"headerLabel | localize\"></div>\n <div class=\"header\" [textContent]=\"headerValue\"></div>\n </div>\n <div class=\"value-block\">\n <div class=\"subheader-label\" [textContent]=\"subHeaderLabel | localize\"></div>\n <ng-container *ngIf=\"subHeaderTemplate\" [templateWrapper]=\"subHeaderTemplate\"></ng-container>\n <div *ngIf=\"!subHeaderTemplate\" class=\"subheader\" [textContent]=\"subHeaderValue\"></div>\n </div>\n </div>\n </div>\n ",
|
|
7140
|
+
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{width:368px;min-height:130px;height:auto;display:flex;flex-direction:column;margin-top:1px;margin-left:1px;padding:30px 20px}:host .content-wrapper .value-block{margin-bottom:10px}:host .content-wrapper .value-block ::ng-deep .planning-wrapper{justify-content:flex-start}:host .content-wrapper .value-block ::ng-deep .planning-wrapper arrow-link{margin-right:10px}:host .disabled-indicator{position:absolute;top:0;left:0;display:none}:host.disabled .disabled-indicator{display:block}:host ::ng-deep image-display{height:60px;width:60px;flex-shrink:0}:host ::ng-deep image-display span{display:none}:host .icon-wrapper{display:flex;flex-shrink:0;align-items:center;justify-content:center;background:#F8FBFA;height:60px;width:60px;border-radius:50%;border:1px solid #DCE4EA;overflow:hidden}:host .icon-wrapper ::ng-deep icon{height:60px!important;width:60px!important;flex-shrink:0}:host .title{font-size:13px;color:#22313c}:host .block-wrapper{position:relative;display:flex;align-items:center}:host .border{border-radius:3px;padding:15px;background:white;border:1px solid #DCE4EA}:host .content-wrapper{display:flex;flex-direction:column;justify-content:center;margin-left:10px;min-height:60px;height:auto;width:100%}:host .header-label,:host .subheader-label{font-size:11px;line-height:13px;color:#5b6875}:host .header,:host .subheader{font-size:13px;font-weight:bold;color:#22313c}\n"]
|
|
7141
|
+
},] }
|
|
7142
|
+
];
|
|
7143
|
+
TransactionSummaryBlockComponent.ctorParameters = function () { return []; };
|
|
7144
|
+
TransactionSummaryBlockComponent.propDecorators = {
|
|
7145
|
+
hideAvatar: [{ type: i0.Input }],
|
|
7146
|
+
label: [{ type: i0.Input }],
|
|
7147
|
+
icon: [{ type: i0.Input }],
|
|
7148
|
+
image: [{ type: i0.Input }],
|
|
7149
|
+
headerLabel: [{ type: i0.Input }],
|
|
7150
|
+
headerValue: [{ type: i0.Input }],
|
|
7151
|
+
subHeaderLabel: [{ type: i0.Input }],
|
|
7152
|
+
subHeaderValue: [{ type: i0.Input }],
|
|
7153
|
+
subHeaderTemplate: [{ type: i0.ContentChild, args: ["subHeaderTemplate", { static: false },] }]
|
|
7154
|
+
};
|
|
7155
|
+
|
|
7156
|
+
var TransactionServiceStatusComponent = /** @class */ (function (_super) {
|
|
7157
|
+
__extends(TransactionServiceStatusComponent, _super);
|
|
7158
|
+
function TransactionServiceStatusComponent(service) {
|
|
7159
|
+
var _this = _super.call(this, service) || this;
|
|
7160
|
+
_this.service = service;
|
|
7161
|
+
_this.iconPin = corecomponents_v12.CoreComponentsIcon.Pin;
|
|
7162
|
+
return _this;
|
|
7163
|
+
}
|
|
7164
|
+
Object.defineProperty(TransactionServiceStatusComponent.prototype, "serviceStatus", {
|
|
7165
|
+
get: function () {
|
|
7166
|
+
// TODO: transaction.serviceStatus
|
|
7167
|
+
return "serviceStatus";
|
|
7168
|
+
},
|
|
7169
|
+
enumerable: false,
|
|
7170
|
+
configurable: true
|
|
7171
|
+
});
|
|
7172
|
+
return TransactionServiceStatusComponent;
|
|
7173
|
+
}(TransactionBaseComponent));
|
|
7174
|
+
TransactionServiceStatusComponent.decorators = [
|
|
7175
|
+
{ type: i0.Component, args: [{
|
|
7176
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7177
|
+
selector: "transaction-service-status",
|
|
7178
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"STATUS\"\n [icon]=\"iconPin\"\n headerLabel=\"SERVICE_STATE\"\n [headerValue]=\"serviceStatus\"\n ></transaction-summary-block>\n "
|
|
7179
|
+
},] }
|
|
7180
|
+
];
|
|
7181
|
+
TransactionServiceStatusComponent.ctorParameters = function () { return [
|
|
7182
|
+
{ type: TransactionService }
|
|
7183
|
+
]; };
|
|
7184
|
+
TransactionServiceStatusComponent.propDecorators = {
|
|
7185
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7186
|
+
};
|
|
7187
|
+
|
|
7188
|
+
var TransactionOrderSummaryComponent = /** @class */ (function (_super) {
|
|
7189
|
+
__extends(TransactionOrderSummaryComponent, _super);
|
|
7190
|
+
function TransactionOrderSummaryComponent(service) {
|
|
7191
|
+
var _this = _super.call(this, service) || this;
|
|
7192
|
+
_this.service = service;
|
|
7193
|
+
_this.iconOrder = corecomponents_v12.CoreComponentsIcon.Order;
|
|
7194
|
+
return _this;
|
|
7195
|
+
}
|
|
7196
|
+
Object.defineProperty(TransactionOrderSummaryComponent.prototype, "sourceTransactionNr", {
|
|
7197
|
+
get: function () {
|
|
7198
|
+
// TODO: transaction.sourceTransactionNr
|
|
7199
|
+
return 0;
|
|
7200
|
+
},
|
|
7201
|
+
enumerable: false,
|
|
7202
|
+
configurable: true
|
|
7203
|
+
});
|
|
7204
|
+
Object.defineProperty(TransactionOrderSummaryComponent.prototype, "sourceTransactionDate", {
|
|
7205
|
+
get: function () {
|
|
7206
|
+
// TODO: transaction.sourceTransactionDate
|
|
7207
|
+
return new Date();
|
|
7208
|
+
},
|
|
7209
|
+
enumerable: false,
|
|
7210
|
+
configurable: true
|
|
7211
|
+
});
|
|
7212
|
+
return TransactionOrderSummaryComponent;
|
|
7213
|
+
}(TransactionBaseComponent));
|
|
7214
|
+
TransactionOrderSummaryComponent.decorators = [
|
|
7215
|
+
{ type: i0.Component, args: [{
|
|
7216
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7217
|
+
selector: "transaction-order-info",
|
|
7218
|
+
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 "
|
|
7219
|
+
},] }
|
|
7220
|
+
];
|
|
7221
|
+
TransactionOrderSummaryComponent.ctorParameters = function () { return [
|
|
7222
|
+
{ type: TransactionService }
|
|
7223
|
+
]; };
|
|
7224
|
+
TransactionOrderSummaryComponent.propDecorators = {
|
|
7225
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7226
|
+
};
|
|
7227
|
+
|
|
7228
|
+
var TransactionPaymentInfoComponent = /** @class */ (function (_super) {
|
|
7229
|
+
__extends(TransactionPaymentInfoComponent, _super);
|
|
7230
|
+
function TransactionPaymentInfoComponent(service) {
|
|
7231
|
+
var _this = _super.call(this, service) || this;
|
|
7232
|
+
_this.service = service;
|
|
7233
|
+
_this.euro = corecomponents_v12.CoreComponentsIcon.Information;
|
|
7234
|
+
return _this;
|
|
7235
|
+
}
|
|
7236
|
+
return TransactionPaymentInfoComponent;
|
|
7237
|
+
}(TransactionBaseComponent));
|
|
7238
|
+
TransactionPaymentInfoComponent.decorators = [
|
|
7239
|
+
{ type: i0.Component, args: [{
|
|
7240
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7241
|
+
selector: "transaction-payment-info",
|
|
7242
|
+
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 "
|
|
7243
|
+
},] }
|
|
7244
|
+
];
|
|
7245
|
+
TransactionPaymentInfoComponent.ctorParameters = function () { return [
|
|
7246
|
+
{ type: TransactionService }
|
|
7247
|
+
]; };
|
|
7248
|
+
TransactionPaymentInfoComponent.propDecorators = {
|
|
7249
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7250
|
+
};
|
|
7251
|
+
|
|
7252
|
+
var TransactionArticleSummaryComponent = /** @class */ (function (_super) {
|
|
7253
|
+
__extends(TransactionArticleSummaryComponent, _super);
|
|
7254
|
+
function TransactionArticleSummaryComponent(service) {
|
|
7255
|
+
var _this = _super.call(this, service) || this;
|
|
7256
|
+
_this.service = service;
|
|
7257
|
+
_this.imageDataUri = "";
|
|
7258
|
+
return _this;
|
|
7259
|
+
}
|
|
7260
|
+
Object.defineProperty(TransactionArticleSummaryComponent.prototype, "sourceArticleDescription", {
|
|
7261
|
+
get: function () {
|
|
7262
|
+
// TODO: transaction.sourceArticleDescription
|
|
7263
|
+
return "sourceArticleDescription";
|
|
7264
|
+
},
|
|
7265
|
+
enumerable: false,
|
|
7266
|
+
configurable: true
|
|
7267
|
+
});
|
|
7268
|
+
Object.defineProperty(TransactionArticleSummaryComponent.prototype, "sourceArticleNr", {
|
|
7269
|
+
get: function () {
|
|
7270
|
+
// TODO: transaction.sourceArticleNr
|
|
7271
|
+
return "sourceArticleNr";
|
|
7272
|
+
},
|
|
7273
|
+
enumerable: false,
|
|
7274
|
+
configurable: true
|
|
7275
|
+
});
|
|
7276
|
+
TransactionArticleSummaryComponent.prototype._getArticleImage = function () {
|
|
7277
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7278
|
+
return __generator(this, function (_a) {
|
|
7279
|
+
return [2 /*return*/];
|
|
7280
|
+
});
|
|
7281
|
+
});
|
|
7282
|
+
};
|
|
7283
|
+
TransactionArticleSummaryComponent.prototype.transactionSet = function () {
|
|
7284
|
+
this._getArticleImage();
|
|
7285
|
+
};
|
|
7286
|
+
return TransactionArticleSummaryComponent;
|
|
7287
|
+
}(TransactionBaseComponent));
|
|
7288
|
+
TransactionArticleSummaryComponent.decorators = [
|
|
7289
|
+
{ type: i0.Component, args: [{
|
|
7290
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7291
|
+
selector: "transaction-article-info",
|
|
7292
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n headerLabel=\"ARTICLE_DESCRIPTION\"\n [image]=\"imageDataUri\"\n [headerValue]=\"sourceArticleDescription\"\n subHeaderLabel=\"ARTICLE_NR\"\n [subHeaderValue]=\"sourceArticleNr\"\n ></transaction-summary-block>\n "
|
|
7293
|
+
},] }
|
|
7294
|
+
];
|
|
7295
|
+
TransactionArticleSummaryComponent.ctorParameters = function () { return [
|
|
7296
|
+
{ type: TransactionService }
|
|
7297
|
+
]; };
|
|
7298
|
+
TransactionArticleSummaryComponent.propDecorators = {
|
|
7299
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7300
|
+
};
|
|
7301
|
+
|
|
7302
|
+
var TransactionDeliverySummaryComponent = /** @class */ (function (_super) {
|
|
7303
|
+
__extends(TransactionDeliverySummaryComponent, _super);
|
|
7304
|
+
function TransactionDeliverySummaryComponent(service) {
|
|
7305
|
+
var _this = _super.call(this, service) || this;
|
|
7306
|
+
_this.service = service;
|
|
7307
|
+
_this.deliveryTruck = corecomponents_v12.CoreComponentsIcon.DeliveryTruck;
|
|
7308
|
+
_this.calendarRoundOpen = corecomponents_v12.CoreComponentsIcon.CalendarRoundOpen;
|
|
7309
|
+
_this.deliveryMethodDescription = "";
|
|
7310
|
+
_this.canPlanDelivery = false;
|
|
7311
|
+
_this.planningRequestButtonClick = new i0.EventEmitter();
|
|
7312
|
+
return _this;
|
|
7313
|
+
}
|
|
7314
|
+
TransactionDeliverySummaryComponent.prototype.transactionSet = function () {
|
|
7315
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7316
|
+
return __generator(this, function (_a) {
|
|
7317
|
+
return [2 /*return*/];
|
|
7318
|
+
});
|
|
7319
|
+
});
|
|
7320
|
+
};
|
|
7321
|
+
return TransactionDeliverySummaryComponent;
|
|
7322
|
+
}(TransactionBaseComponent));
|
|
7323
|
+
TransactionDeliverySummaryComponent.decorators = [
|
|
7324
|
+
{ type: i0.Component, args: [{
|
|
7325
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7326
|
+
selector: "transaction-delivery-summary",
|
|
7327
|
+
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 ",
|
|
7328
|
+
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"]
|
|
7329
|
+
},] }
|
|
7330
|
+
];
|
|
7331
|
+
TransactionDeliverySummaryComponent.ctorParameters = function () { return [
|
|
7332
|
+
{ type: TransactionService }
|
|
7333
|
+
]; };
|
|
7334
|
+
TransactionDeliverySummaryComponent.propDecorators = {
|
|
7335
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }],
|
|
7336
|
+
canPlanDelivery: [{ type: i0.Input }],
|
|
7337
|
+
planningRequestButtonClick: [{ type: i0.Output }]
|
|
7338
|
+
};
|
|
7339
|
+
|
|
7340
|
+
var TransactionProductContractSummaryComponent = /** @class */ (function (_super) {
|
|
7341
|
+
__extends(TransactionProductContractSummaryComponent, _super);
|
|
7342
|
+
function TransactionProductContractSummaryComponent(service) {
|
|
7343
|
+
var _this = _super.call(this, service) || this;
|
|
7344
|
+
_this.service = service;
|
|
7345
|
+
return _this;
|
|
7346
|
+
}
|
|
7347
|
+
TransactionProductContractSummaryComponent.prototype.productSet = function () {
|
|
7348
|
+
// TODO: add to TransactionAPI?
|
|
7349
|
+
if (!this.product.imageAsDataUri) {
|
|
7350
|
+
// this._generalRepo.getDocument(this.product.image.documentId).then((doc: CoDocument) => {
|
|
7351
|
+
// this.product.imageAsDataUri = doc.thumbnailBodyAsDataUri;
|
|
7352
|
+
// });
|
|
7353
|
+
}
|
|
7354
|
+
};
|
|
7355
|
+
return TransactionProductContractSummaryComponent;
|
|
7356
|
+
}(TransactionBaseComponent));
|
|
7357
|
+
TransactionProductContractSummaryComponent.decorators = [
|
|
7358
|
+
{ type: i0.Component, args: [{
|
|
7359
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7360
|
+
selector: "transaction-product-contract-summary",
|
|
7361
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"CONTRACT\"\n [image]=\"product?.imageAsDataUri\"\n headerLabel=\"PRODUCT\"\n [headerValue]=\"product?.product\"\n subHeaderLabel=\"REFERENCE\"\n [subHeaderValue]=\"product?.productReference\"\n ></transaction-summary-block>\n "
|
|
7362
|
+
},] }
|
|
7363
|
+
];
|
|
7364
|
+
TransactionProductContractSummaryComponent.ctorParameters = function () { return [
|
|
7365
|
+
{ type: TransactionService }
|
|
7366
|
+
]; };
|
|
7367
|
+
|
|
7368
|
+
var TransactionProductSummaryComponent = /** @class */ (function (_super) {
|
|
7369
|
+
__extends(TransactionProductSummaryComponent, _super);
|
|
7370
|
+
function TransactionProductSummaryComponent(service) {
|
|
7371
|
+
var _this = _super.call(this, service) || this;
|
|
7372
|
+
_this.service = service;
|
|
7373
|
+
return _this;
|
|
7374
|
+
}
|
|
7375
|
+
TransactionProductSummaryComponent.prototype.productSet = function () {
|
|
7376
|
+
// TODO: Add to TransactionAPI?
|
|
7377
|
+
if (this.product && !this.product.imageAsDataUri && this.product.image && this.product.image.documentId) {
|
|
7378
|
+
// this._generalRepo.getDocument(this.product.image.documentId).then((doc: CoDocument) => {
|
|
7379
|
+
// this.product.imageAsDataUri = doc.thumbnailBodyAsDataUri;
|
|
7380
|
+
// });
|
|
7381
|
+
}
|
|
7382
|
+
};
|
|
7383
|
+
return TransactionProductSummaryComponent;
|
|
7384
|
+
}(TransactionBaseComponent));
|
|
7385
|
+
TransactionProductSummaryComponent.decorators = [
|
|
7386
|
+
{ type: i0.Component, args: [{
|
|
7387
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7388
|
+
selector: "transaction-product-summary",
|
|
7389
|
+
template: "\n <transaction-summary-block\n [class.disabled]=\"!isNew\"\n label=\"PRODUCT\"\n [image]=\"product?.imageAsDataUri\"\n headerLabel=\"PRODUCT_TYPE\"\n [headerValue]=\"product?.productReference\"\n subHeaderLabel=\"PRODUCT\"\n [subHeaderValue]=\"product?.product\"\n ></transaction-summary-block>\n "
|
|
7390
|
+
},] }
|
|
7391
|
+
];
|
|
7392
|
+
TransactionProductSummaryComponent.ctorParameters = function () { return [
|
|
7393
|
+
{ type: TransactionService }
|
|
7394
|
+
]; };
|
|
7395
|
+
TransactionProductSummaryComponent.propDecorators = {
|
|
7396
|
+
hidden: [{ type: i0.HostBinding, args: ["class.hidden",] }]
|
|
7397
|
+
};
|
|
7398
|
+
|
|
7399
|
+
var TemplateWrapperDirective = /** @class */ (function () {
|
|
7400
|
+
function TemplateWrapperDirective(viewContainer) {
|
|
7401
|
+
this.viewContainer = viewContainer;
|
|
7402
|
+
this.templateWrapper = null;
|
|
7403
|
+
this.templateWrapperContext = null;
|
|
7404
|
+
}
|
|
7405
|
+
TemplateWrapperDirective.prototype.ngOnChanges = function (changes) {
|
|
7406
|
+
var recreateView = this._shouldRecreateView(changes);
|
|
7407
|
+
if (recreateView) {
|
|
7408
|
+
if (this._viewRef) {
|
|
7409
|
+
this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
|
|
7410
|
+
}
|
|
7411
|
+
if (this.templateWrapper) {
|
|
7412
|
+
this._viewRef = this.viewContainer.createEmbeddedView(this.templateWrapper, this.templateWrapperContext);
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
else {
|
|
7416
|
+
if (this._viewRef && this.templateWrapperContext) {
|
|
7417
|
+
this._updateExistingContext(this.templateWrapperContext);
|
|
7418
|
+
}
|
|
7419
|
+
}
|
|
7420
|
+
};
|
|
7421
|
+
TemplateWrapperDirective.prototype.ngOnDestroy = function () {
|
|
7422
|
+
if (this._viewRef) {
|
|
7423
|
+
this.viewContainer.remove(this.viewContainer.indexOf(this._viewRef));
|
|
7424
|
+
this._viewRef = undefined;
|
|
7425
|
+
}
|
|
7426
|
+
this.templateWrapper = undefined;
|
|
7427
|
+
};
|
|
7428
|
+
TemplateWrapperDirective.prototype._shouldRecreateView = function (changes) {
|
|
7429
|
+
var ctxChange = changes["templateWrapperContext"];
|
|
7430
|
+
return !!changes["templateWrapper"] || (ctxChange && this._hasContextShapeChanged(ctxChange));
|
|
7431
|
+
};
|
|
7432
|
+
TemplateWrapperDirective.prototype._hasContextShapeChanged = function (ctxChange) {
|
|
7433
|
+
var e_1, _a;
|
|
7434
|
+
var prevCtxKeys = Object.keys(ctxChange.previousValue || {});
|
|
7435
|
+
var currCtxKeys = Object.keys(ctxChange.currentValue || {});
|
|
7436
|
+
if (prevCtxKeys.length === currCtxKeys.length) {
|
|
7437
|
+
try {
|
|
7438
|
+
for (var currCtxKeys_1 = __values(currCtxKeys), currCtxKeys_1_1 = currCtxKeys_1.next(); !currCtxKeys_1_1.done; currCtxKeys_1_1 = currCtxKeys_1.next()) {
|
|
7439
|
+
var propName = currCtxKeys_1_1.value;
|
|
7440
|
+
if (prevCtxKeys.indexOf(propName) === -1) {
|
|
7441
|
+
return true;
|
|
7442
|
+
}
|
|
7443
|
+
}
|
|
7444
|
+
}
|
|
7445
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7446
|
+
finally {
|
|
7447
|
+
try {
|
|
7448
|
+
if (currCtxKeys_1_1 && !currCtxKeys_1_1.done && (_a = currCtxKeys_1.return)) _a.call(currCtxKeys_1);
|
|
7449
|
+
}
|
|
7450
|
+
finally { if (e_1) throw e_1.error; }
|
|
7451
|
+
}
|
|
7452
|
+
return false;
|
|
7453
|
+
}
|
|
7454
|
+
else {
|
|
7455
|
+
return true;
|
|
7456
|
+
}
|
|
7457
|
+
};
|
|
7458
|
+
TemplateWrapperDirective.prototype._updateExistingContext = function (ctx) {
|
|
7459
|
+
var e_2, _a;
|
|
7460
|
+
try {
|
|
7461
|
+
for (var _b = __values(Object.keys(ctx)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7462
|
+
var propName = _c.value;
|
|
7463
|
+
this._viewRef.context[propName] = this.templateWrapperContext[propName];
|
|
7464
|
+
}
|
|
7465
|
+
}
|
|
7466
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
7467
|
+
finally {
|
|
7468
|
+
try {
|
|
7469
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7470
|
+
}
|
|
7471
|
+
finally { if (e_2) throw e_2.error; }
|
|
7472
|
+
}
|
|
7473
|
+
};
|
|
7474
|
+
return TemplateWrapperDirective;
|
|
7475
|
+
}());
|
|
7476
|
+
TemplateWrapperDirective.decorators = [
|
|
7477
|
+
{ type: i0.Directive, args: [{
|
|
7478
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
7479
|
+
selector: "[templateWrapper]"
|
|
7480
|
+
},] }
|
|
7481
|
+
];
|
|
7482
|
+
TemplateWrapperDirective.ctorParameters = function () { return [
|
|
7483
|
+
{ type: i0.ViewContainerRef }
|
|
7484
|
+
]; };
|
|
7485
|
+
TemplateWrapperDirective.propDecorators = {
|
|
7486
|
+
templateWrapper: [{ type: i0.Input }],
|
|
7487
|
+
templateWrapperContext: [{ type: i0.Input }]
|
|
7488
|
+
};
|
|
7489
|
+
|
|
7490
|
+
var DefaultOkCancelButtonsComponent = /** @class */ (function () {
|
|
7491
|
+
function DefaultOkCancelButtonsComponent() {
|
|
7492
|
+
this.hideCancel = false;
|
|
7493
|
+
this.hideOk = false;
|
|
7494
|
+
this.okLabel = "OK";
|
|
7495
|
+
// only emits when ok button was not disabled when it was clicked
|
|
7496
|
+
this.okClick = new i0.EventEmitter();
|
|
7497
|
+
this.cancelClick = new i0.EventEmitter();
|
|
7498
|
+
}
|
|
7499
|
+
DefaultOkCancelButtonsComponent.prototype.onOkClick = function (event) {
|
|
7500
|
+
if (this.okButtonComp && !this.okButtonComp.disabled) {
|
|
7501
|
+
this.okClick.emit(event);
|
|
7502
|
+
}
|
|
7503
|
+
};
|
|
7504
|
+
return DefaultOkCancelButtonsComponent;
|
|
7505
|
+
}());
|
|
7506
|
+
DefaultOkCancelButtonsComponent.decorators = [
|
|
7507
|
+
{ type: i0.Component, args: [{
|
|
7508
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
7509
|
+
selector: "default-ok-cancel-buttons",
|
|
7510
|
+
template: "\n <co-button *ngIf=\"!hideOk\" [label]=\"okLabel\" [disabled]=\"okDisabled\" class=\"ok\" #okButton (click)=\"onOkClick($event)\"></co-button>\n <co-button *ngIf=\"!hideCancel\" label=\"CANCEL\" (click)=\"cancelClick.emit($event)\"></co-button>\n <ng-content></ng-content>\n ",
|
|
7511
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,:host{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.margin-popup:host{margin-top:20px}.margin-popup:host{margin-bottom:20px}.margin-popup:host{margin-left:20px}.margin-popup:host{margin-right:20px}.margin-top:host{margin-top:11px}:host button-colijn:not(:last-child){margin-right:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.justify-center{justify-content:center}\n"]
|
|
7512
|
+
},] }
|
|
7513
|
+
];
|
|
7514
|
+
DefaultOkCancelButtonsComponent.ctorParameters = function () { return []; };
|
|
7515
|
+
DefaultOkCancelButtonsComponent.propDecorators = {
|
|
7516
|
+
okDisabled: [{ type: i0.Input }],
|
|
7517
|
+
hideCancel: [{ type: i0.Input }],
|
|
7518
|
+
hideOk: [{ type: i0.Input }],
|
|
7519
|
+
okLabel: [{ type: i0.Input }],
|
|
7520
|
+
okClick: [{ type: i0.Output }],
|
|
7521
|
+
cancelClick: [{ type: i0.Output }],
|
|
7522
|
+
okButtonComp: [{ type: i0.ViewChild, args: ["okButton",] }]
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
var IoneServiceOrderModule = /** @class */ (function () {
|
|
7526
|
+
function IoneServiceOrderModule() {
|
|
7527
|
+
}
|
|
7528
|
+
return IoneServiceOrderModule;
|
|
7529
|
+
}());
|
|
7530
|
+
IoneServiceOrderModule.decorators = [
|
|
7531
|
+
{ type: i0.NgModule, args: [{
|
|
7532
|
+
imports: [
|
|
7533
|
+
corecomponents_v12.IconModule,
|
|
7534
|
+
corecomponents_v12.InputTextModule,
|
|
7535
|
+
corecomponents_v12.InputCheckboxModule,
|
|
7536
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
7537
|
+
corecomponents_v12.FormModule,
|
|
7538
|
+
corecomponents_v12.InputComboBoxModule,
|
|
7539
|
+
corecomponents_v12.InputDatePickerModule,
|
|
7540
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
7541
|
+
corecomponents_v12.CoDialogModule,
|
|
7542
|
+
corecomponents_v12.CoDialogPromptModule,
|
|
7543
|
+
corecomponents_v12.ButtonModule,
|
|
7544
|
+
flexLayout.FlexModule,
|
|
7545
|
+
corecomponents_v12.MultiSelectListModule,
|
|
7546
|
+
corecomponents_v12.DropDownModule,
|
|
7547
|
+
corecomponents_v12.PopupModule.forRoot(),
|
|
7548
|
+
corecomponents_v12.CoSidebarModule,
|
|
7549
|
+
corecomponents_v12.CoGridModule,
|
|
7550
|
+
CoreModule,
|
|
7551
|
+
ej2AngularButtons.ChipListModule,
|
|
7552
|
+
ej2AngularSplitbuttons.DropDownButtonModule,
|
|
7553
|
+
ej2AngularButtons.CheckBoxModule,
|
|
7554
|
+
ej2AngularDropdowns.DropDownListModule,
|
|
7555
|
+
IoneShoppingCartModule,
|
|
7556
|
+
ej2AngularNavigations.TabModule,
|
|
7557
|
+
common.CommonModule,
|
|
7558
|
+
],
|
|
7559
|
+
declarations: [
|
|
7560
|
+
TemplateWrapperDirective,
|
|
7561
|
+
DefaultOkCancelButtonsComponent,
|
|
7562
|
+
IoneServiceOrderComponent,
|
|
7563
|
+
ServiceOrderComponent,
|
|
7564
|
+
TransactionOrderTotalsComponent,
|
|
7565
|
+
TransactionOrderLineViewComponent,
|
|
7566
|
+
TransactionOrderLinesComponent,
|
|
7567
|
+
TransactionRelationAddressComponent,
|
|
7568
|
+
TransactionArticleTextComponent,
|
|
7569
|
+
TransactionSidebarRightComponent,
|
|
7570
|
+
TransactionLineAccordionComponent,
|
|
7571
|
+
TransactionHeaderBlockComponent,
|
|
7572
|
+
TransactionServiceSummaryComponent,
|
|
7573
|
+
TransactionSummaryBlockComponent,
|
|
7574
|
+
TransactionServiceStatusComponent,
|
|
7575
|
+
TransactionOrderSummaryComponent,
|
|
7576
|
+
TransactionPaymentInfoComponent,
|
|
7577
|
+
TransactionRelationEditComponent,
|
|
7578
|
+
TransactionArticleSummaryComponent,
|
|
7579
|
+
TransactionDeliverySummaryComponent,
|
|
7580
|
+
TransactionProductContractSummaryComponent,
|
|
7581
|
+
TransactionProductSummaryComponent,
|
|
7582
|
+
],
|
|
7583
|
+
providers: [
|
|
7584
|
+
DictionaryService,
|
|
7585
|
+
TransactionService,
|
|
7586
|
+
OptionsService
|
|
7587
|
+
],
|
|
7588
|
+
entryComponents: [
|
|
7589
|
+
IoneServiceOrderComponent
|
|
7590
|
+
],
|
|
7591
|
+
exports: [IoneServiceOrderComponent],
|
|
7592
|
+
bootstrap: [IoneServiceOrderComponent]
|
|
7593
|
+
},] }
|
|
7594
|
+
];
|
|
7595
|
+
|
|
6011
7596
|
//export * from "./app/component/ione-transaction.module";
|
|
6012
7597
|
|
|
6013
7598
|
/**
|
|
@@ -6016,6 +7601,8 @@
|
|
|
6016
7601
|
|
|
6017
7602
|
exports.IoneCheckoutComponent = IoneCheckoutComponent;
|
|
6018
7603
|
exports.IoneCheckoutModule = IoneCheckoutModule;
|
|
7604
|
+
exports.IoneServiceOrderComponent = IoneServiceOrderComponent;
|
|
7605
|
+
exports.IoneServiceOrderModule = IoneServiceOrderModule;
|
|
6019
7606
|
exports.IoneShoppingCartComponent = IoneShoppingCartComponent;
|
|
6020
7607
|
exports.IoneShoppingCartModule = IoneShoppingCartModule;
|
|
6021
7608
|
exports["ɵa"] = RetailTransactionCheckoutComponent;
|
|
@@ -6025,7 +7612,29 @@
|
|
|
6025
7612
|
exports["ɵbc"] = ShoppingCartLineComponent;
|
|
6026
7613
|
exports["ɵbd"] = StockStatusIndicatorComponent;
|
|
6027
7614
|
exports["ɵbe"] = CharacteristicAnswerComponent;
|
|
7615
|
+
exports["ɵbf"] = TemplateWrapperDirective;
|
|
7616
|
+
exports["ɵbg"] = DefaultOkCancelButtonsComponent;
|
|
7617
|
+
exports["ɵbh"] = ServiceOrderComponent;
|
|
7618
|
+
exports["ɵbi"] = TransactionBaseComponent;
|
|
7619
|
+
exports["ɵbj"] = TransactionArticleTextComponent;
|
|
7620
|
+
exports["ɵbk"] = TransactionOrderTotalsComponent;
|
|
7621
|
+
exports["ɵbl"] = TransactionOrderLineViewComponent;
|
|
7622
|
+
exports["ɵbm"] = TransactionOrderLinesComponent;
|
|
7623
|
+
exports["ɵbn"] = TransactionRelationAddressComponent;
|
|
7624
|
+
exports["ɵbo"] = TransactionSidebarRightComponent;
|
|
7625
|
+
exports["ɵbp"] = TransactionLineAccordionComponent;
|
|
7626
|
+
exports["ɵbq"] = TransactionHeaderBlockComponent;
|
|
7627
|
+
exports["ɵbr"] = TransactionRelationEditComponent;
|
|
7628
|
+
exports["ɵbs"] = TransactionServiceSummaryComponent;
|
|
7629
|
+
exports["ɵbt"] = TransactionSummaryBlockComponent;
|
|
7630
|
+
exports["ɵbu"] = TransactionServiceStatusComponent;
|
|
7631
|
+
exports["ɵbv"] = TransactionOrderSummaryComponent;
|
|
7632
|
+
exports["ɵbw"] = TransactionPaymentInfoComponent;
|
|
7633
|
+
exports["ɵbx"] = TransactionArticleSummaryComponent;
|
|
7634
|
+
exports["ɵby"] = TransactionDeliverySummaryComponent;
|
|
7635
|
+
exports["ɵbz"] = TransactionProductContractSummaryComponent;
|
|
6028
7636
|
exports["ɵc"] = CheckoutOverviewComponent;
|
|
7637
|
+
exports["ɵca"] = TransactionProductSummaryComponent;
|
|
6029
7638
|
exports["ɵd"] = CheckoutOverviewBlockComponent;
|
|
6030
7639
|
exports["ɵe"] = CheckoutOverviewRelationEditComponent;
|
|
6031
7640
|
exports["ɵf"] = TransactionService;
|