@colijnit/transaction 12.1.8 → 12.1.9
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/bundles/colijnit-transaction.umd.js +1180 -698
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +31 -19
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +32 -20
- package/esm2015/lib/assets/dictionary/text.properties.js +80 -8
- package/esm2015/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +120 -288
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +279 -112
- package/esm2015/lib/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +2 -2
- package/esm2015/lib/component/checkout/checkout.component.js +64 -34
- package/esm2015/lib/component/checkout/checkout.module.js +11 -2
- package/esm2015/lib/component/core/relation/customer-groups.component.js +4 -3
- package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +1 -1
- package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.component.js +40 -0
- package/esm2015/lib/component/delivery-type-tile/delivery-type-tile.module.js +26 -0
- package/esm2015/lib/component/payment/payment.component.js +73 -0
- package/esm2015/lib/component/payment/payment.module.js +27 -0
- package/esm2015/lib/component/payment-tile/payment-tile.component.js +32 -0
- package/esm2015/lib/component/payment-tile/payment-tile.module.js +25 -0
- package/esm2015/lib/component/relation-address-select/relation-address-select.component.js +1 -1
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +12 -24
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +4 -2
- package/esm2015/lib/component/seller-information/seller-information.component.js +61 -0
- package/esm2015/lib/component/seller-information/seller-information.module.js +21 -0
- package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +1 -1
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +7 -3
- package/esm2015/lib/component/stepper/component/stepper-step.component.js +3 -3
- package/esm2015/lib/component/stepper/stepper.component.js +39 -41
- package/esm2015/lib/component/stepper/stepper.module.js +6 -3
- package/esm2015/lib/component/tile/tile.component.js +32 -0
- package/esm2015/lib/component/tile/tile.module.js +19 -0
- package/esm2015/lib/component/transaction/transaction.component.js +1 -1
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +30 -2
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +4 -2
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +163 -0
- package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +30 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +8 -3
- package/esm2015/lib/enum/icon.enum.js +8 -1
- package/esm2015/lib/model/delivery-type.js +3 -0
- package/esm2015/lib/model/icon-svg.js +8 -1
- package/esm2015/lib/pipe/date-duration.pipe.js +1 -1
- package/esm2015/lib/pipe/delivery-time.pipe.js +1 -1
- package/esm2015/lib/pipe/localize.pipe.js +1 -1
- package/esm2015/lib/pipe/safe-html.pipe.js +1 -1
- package/esm2015/lib/pipe/safe-style.pipe.js +1 -1
- package/esm2015/lib/service/dialog.service.js +1 -1
- package/esm2015/lib/service/dictionary.service.js +1 -1
- package/esm2015/lib/service/ione-connector-adapter.service.js +19 -6
- package/esm2015/lib/service/pending-reason.service.js +2 -1
- package/esm2015/lib/service/transaction.service.js +9 -1
- package/fesm2015/colijnit-transaction.js +1658 -985
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +8 -45
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_layout.scss +13 -6
- package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +1 -2
- package/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +31 -3
- package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +28 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +1 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +4 -0
- package/lib/component/checkout/checkout-relation-suggestions-list/style/_layout.scss +1 -0
- package/lib/component/checkout/checkout.component.d.ts +10 -1
- package/lib/component/checkout/style/_layout.scss +25 -0
- package/lib/component/checkout/style/_material-definition.scss +5 -0
- package/lib/component/checkout/style/material.scss +2 -0
- package/lib/component/confirmation-dialog/style/material.scss +1 -0
- package/lib/component/core/relation/relation-customer-groups.component.scss +6 -0
- package/lib/component/delivery-type-tile/delivery-type-tile.component.d.ts +10 -0
- package/lib/component/delivery-type-tile/delivery-type-tile.module.d.ts +2 -0
- package/lib/component/delivery-type-tile/style/_layout.scss +35 -0
- package/lib/component/delivery-type-tile/style/_material-definition.scss +16 -0
- package/lib/component/delivery-type-tile/style/_theme.scss +6 -0
- package/lib/component/delivery-type-tile/style/material.scss +5 -0
- package/lib/component/payment/payment.component.d.ts +18 -0
- package/lib/component/payment/payment.module.d.ts +2 -0
- package/lib/component/payment/style/_layout.scss +54 -0
- package/lib/component/payment/style/_material-definition.scss +17 -0
- package/lib/component/payment/style/_theme.scss +16 -0
- package/lib/component/payment/style/material.scss +5 -0
- package/lib/component/payment-tile/payment-tile.component.d.ts +9 -0
- package/lib/component/payment-tile/payment-tile.module.d.ts +2 -0
- package/lib/component/payment-tile/style/_layout.scss +22 -0
- package/lib/component/payment-tile/style/_material-definition.scss +0 -0
- package/lib/component/payment-tile/style/_theme.scss +6 -0
- package/lib/component/payment-tile/style/material.scss +5 -0
- package/lib/component/relation-address/style/_layout.scss +5 -0
- package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +1 -0
- package/lib/component/relation-address-tile/style/_layout.scss +0 -21
- package/lib/component/relation-address-tile/style/_material-definition.scss +2 -1
- package/lib/component/relation-address-tile/style/_theme.scss +0 -30
- package/lib/component/relation-address-tile/style/material.scss +1 -0
- package/lib/component/sell-order/sell-order-side-panel/sell-order-side-panel.component.scss +49 -0
- package/lib/component/sell-order/sell-order.component.scss +15 -0
- package/lib/component/seller-information/seller-information.component.d.ts +13 -0
- package/lib/component/seller-information/seller-information.module.d.ts +2 -0
- package/lib/component/seller-information/style/_layout.scss +21 -0
- package/lib/component/seller-information/style/_material-definition.scss +2 -0
- package/lib/component/seller-information/style/_theme.scss +7 -0
- package/lib/component/seller-information/style/material.scss +4 -0
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -0
- package/lib/component/shopping-cart-preview/style/_layout.scss +6 -2
- package/lib/component/shopping-cart-preview/style/_material-definition.scss +1 -1
- package/lib/component/stepper/component/stepper-step.component.d.ts +1 -1
- package/lib/component/stepper/stepper.component.d.ts +10 -5
- package/lib/component/stepper/style/_layout.scss +52 -20
- package/lib/component/stepper/style/_material-definition.scss +9 -2
- package/lib/component/stepper/style/_theme.scss +36 -0
- package/lib/component/tile/style/_layout.scss +36 -0
- package/lib/component/tile/style/_material-definition.scss +16 -0
- package/lib/component/tile/style/_theme.scss +36 -0
- package/lib/component/tile/style/material.scss +4 -0
- package/lib/component/tile/tile.component.d.ts +6 -0
- package/lib/component/tile/tile.module.d.ts +2 -0
- package/lib/component/transaction-line/style/_theme.scss +5 -0
- package/lib/component/transaction-line/style/material.scss +1 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +5 -0
- package/lib/component/transaction-line-side-panel/style/_layout.scss +47 -0
- package/lib/component/transaction-line-side-panel/style/_material-definition.scss +10 -0
- package/lib/component/transaction-line-side-panel/style/_theme.scss +7 -0
- package/lib/component/transaction-line-side-panel/style/material.scss +4 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +20 -0
- package/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.d.ts +2 -0
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +1 -0
- package/lib/enum/icon.enum.d.ts +7 -0
- package/lib/model/delivery-type.d.ts +7 -0
- package/lib/service/ione-connector-adapter.service.d.ts +3 -1
- package/lib/service/transaction.service.d.ts +3 -0
- package/lib/style/_variables.scss +10 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), 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/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.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/co-domain-value.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/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), 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/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/animations'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', 'rxjs', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/model/customer-full-object.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/co-domain-value.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/transaction-line-info.bo', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@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/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/animations', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.transactionLineType_enum, global.pendingReasonType_enum, global.rxjs, global.addressType_enum, global.transactionInfoResponse_bo, global.resolvePendingReasonRequest_bo, global.customerFullObject_bo, global.relationPrivacySetting_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.coDomainValue_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.transactionLineInfo_bo, global.setTransactionDeliveryOptionsRequest_bo, global.relationStatus_enum, global.corecomponents_v12, global.ng.flexLayout, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.animations, global.ng.
|
|
5
|
-
})(this, (function (exports, i0, nulRelationObject, transactionKind_enum, sequenceName_enum, transactionLineType_enum, pendingReasonType_enum, rxjs, addressType_enum, transactionInfoResponse_bo, resolvePendingReasonRequest_bo, customerFullObject_bo, relationPrivacySetting_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, coDomainValue_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, transactionLineInfo_bo, setTransactionDeliveryOptionsRequest_bo, relationStatus_enum, corecomponents_v12, flexLayout, communicationType_enum, contactOption_bo, relationNameKind_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, animations,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), 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/enum/transaction-line-type.enum'), require('@colijnit/transactionapi/build/enum/pending-reason-type.enum'), require('rxjs'), require('@colijnit/transactionapi/build/enum/address-type.enum'), require('@colijnit/transactionapi/build/model/transaction-info-response.bo'), require('@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo'), require('@colijnit/transactionapi/build/model/customer-full-object.bo'), require('@colijnit/transactionapi/build/model/relation-privacy-setting.bo'), require('@colijnit/transactionapi/build/model/delivery-method.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/co-domain-value.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/transaction-line-info.bo'), require('@colijnit/transactionapi/build/model/cash-register'), require('@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo'), require('@colijnit/transactionapi/build/enum/relation-status.enum'), require('@colijnit/corecomponents_v12'), require('@angular/flex-layout'), 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/gender-type.enum'), require('@colijnit/transactionapi/build/utils/business-object-utils'), require('@colijnit/transactionapi/build/utils/function-utils'), require('@colijnit/transactionapi/build/model/address.bo'), require('@angular/animations'), require('@angular/platform-browser'), require('@angular/common'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo'), require('@colijnit/transactionapi/build/enum/refcode/stock-status.enum'), require('@colijnit/transactionapi/build/model/relation-request')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/transaction', ['exports', '@angular/core', '@colijnit/transactionapi/build/model/nul-relation-object', '@colijnit/transactionapi/build/enum/transaction-kind.enum', '@colijnit/transactionapi/build/enum/sequence-name.enum', '@colijnit/transactionapi/build/enum/transaction-line-type.enum', '@colijnit/transactionapi/build/enum/pending-reason-type.enum', 'rxjs', '@colijnit/transactionapi/build/enum/address-type.enum', '@colijnit/transactionapi/build/model/transaction-info-response.bo', '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo', '@colijnit/transactionapi/build/model/customer-full-object.bo', '@colijnit/transactionapi/build/model/relation-privacy-setting.bo', '@colijnit/transactionapi/build/model/delivery-method.bo', '@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params', '@colijnit/transactionapi/build/model/relation-list-object.bo', '@colijnit/transactionapi/build/model/co-domain-value.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/transaction-line-info.bo', '@colijnit/transactionapi/build/model/cash-register', '@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo', '@colijnit/transactionapi/build/enum/relation-status.enum', '@colijnit/corecomponents_v12', '@angular/flex-layout', '@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/gender-type.enum', '@colijnit/transactionapi/build/utils/business-object-utils', '@colijnit/transactionapi/build/utils/function-utils', '@colijnit/transactionapi/build/model/address.bo', '@angular/animations', '@angular/platform-browser', '@angular/common', '@angular/forms', '@angular/cdk/drag-drop', '@colijnit/transactionapi/build/model/transaction-add-text-line-request.bo', '@colijnit/transactionapi/build/enum/refcode/stock-status.enum', '@colijnit/transactionapi/build/model/relation-request'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.transaction = {}), global.ng.core, global.nulRelationObject, global.transactionKind_enum, global.sequenceName_enum, global.transactionLineType_enum, global.pendingReasonType_enum, global.rxjs, global.addressType_enum, global.transactionInfoResponse_bo, global.resolvePendingReasonRequest_bo, global.customerFullObject_bo, global.relationPrivacySetting_bo, global.deliveryMethod_bo, global.getPostalCodeRetrievalOutputParams, global.relationListObject_bo, global.coDomainValue_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.transactionLineInfo_bo, global.cashRegister, global.setTransactionDeliveryOptionsRequest_bo, global.relationStatus_enum, global.corecomponents_v12, global.ng.flexLayout, global.communicationType_enum, global.contactOption_bo, global.relationNameKind_enum, global.genderType_enum, global.businessObjectUtils, global.functionUtils, global.address_bo, global.ng.animations, global.ng.platformBrowser, global.ng.common, global.ng.forms, global.ng.cdk.dragDrop, global.transactionAddTextLineRequest_bo, global.stockStatus_enum, global.relationRequest));
|
|
5
|
+
})(this, (function (exports, i0, nulRelationObject, transactionKind_enum, sequenceName_enum, transactionLineType_enum, pendingReasonType_enum, rxjs, addressType_enum, transactionInfoResponse_bo, resolvePendingReasonRequest_bo, customerFullObject_bo, relationPrivacySetting_bo, deliveryMethod_bo, getPostalCodeRetrievalOutputParams, relationListObject_bo, coDomainValue_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, transactionLineInfo_bo, cashRegister, setTransactionDeliveryOptionsRequest_bo, relationStatus_enum, corecomponents_v12, flexLayout, communicationType_enum, contactOption_bo, relationNameKind_enum, genderType_enum, businessObjectUtils, functionUtils, address_bo, animations, i1, common, forms, dragDrop, transactionAddTextLineRequest_bo, stockStatus_enum, relationRequest) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -434,23 +434,31 @@
|
|
|
434
434
|
"ADD_ARTICLE_LINE_DOWN": "Artikelregel onder toevoegen",
|
|
435
435
|
"ADD_ARTICLE_TEXT_LINE_UP": "Tekstregel boven toevoegen",
|
|
436
436
|
"ADD_ARTICLE_TEXT_LINE_DOWN": "Tekstregel onder toevoegen",
|
|
437
|
+
"ADD_DELIVERY_OPTION": "Voeg een leveroptie toe",
|
|
437
438
|
"ADD_DISCOUNTS": "Korting toevoegen",
|
|
439
|
+
"ADD_REFERENCE": "Voeg referentie toe",
|
|
440
|
+
"ADD_REMARK": "Voeg een opmerking toe",
|
|
438
441
|
"ADDRESS": "Adres",
|
|
439
442
|
"ADDRESSES": "Adressen",
|
|
440
443
|
"ADDRESS_ADD": "Adres toevoegen",
|
|
441
444
|
"ADDRESS_CHANGE": "Adres wijzigen",
|
|
445
|
+
"ADMINISTRATIVE_MANAGER": "Administratief verantwoordelijke",
|
|
442
446
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Controleer magazijn en commissiecode",
|
|
443
447
|
"ARTICLE": "Artikel",
|
|
444
448
|
"ARTICLE_DESCRIPTION": "Artikelomschrijving",
|
|
445
449
|
"ARTICLE_IN_OUT_COLLECTION": "Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",
|
|
446
450
|
"ARTICLE_NR": "Artikelnummer",
|
|
451
|
+
"ARTICLE_NR_SUPPLIER": "Artikelnr leverancier",
|
|
447
452
|
"ARTICLE_UNKNOWN": "Onbekend artikel",
|
|
448
453
|
"ASSEMBLY_COSTS": "Montagekosten",
|
|
449
454
|
"ASSEMBLY_DATE": "Montagedatum",
|
|
455
|
+
"ASSEMBLY_TIME": "Montagetijd",
|
|
450
456
|
"AMOUNT": "Aantal",
|
|
451
457
|
"AVAILABLE_STOCK": "Bechikbaar",
|
|
452
458
|
"BACK": "Terug",
|
|
453
459
|
"BACK_TO_STOCK_LINES": "Terug naar voorraadregels",
|
|
460
|
+
"BRANCH": "Filiaal",
|
|
461
|
+
"BUSINESS_RULE_DISCOUNT": "Business rule korting",
|
|
454
462
|
"CANCEL": "Annuleren",
|
|
455
463
|
"CANNOT_CHANGE_NEGATIVE_QUANTITY": "Een negatieve voorraad kan niet gewijzigd worden.",
|
|
456
464
|
"CART": "Winkelwagen",
|
|
@@ -461,6 +469,7 @@
|
|
|
461
469
|
"COMPANY": "Bedrijf",
|
|
462
470
|
"COMPANY_NAME": "Bedrijfsnaam",
|
|
463
471
|
"COMMISSION_CODE": "Commisiecode",
|
|
472
|
+
"CONTACT_DETAILS": "Contactgegevens",
|
|
464
473
|
"CONTINUE": "Volgende",
|
|
465
474
|
"CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "U heeft gekozen voor het bestellen van artikelen terwijl er nog voorraad aanwezig is. Wilt u verdergaan?",
|
|
466
475
|
"CONTINUE_WITHOUT_ACCOUNT": "Ga door zonder account",
|
|
@@ -468,6 +477,8 @@
|
|
|
468
477
|
"COUNTRY": "Land",
|
|
469
478
|
"CREATE_ACCOUNT": "Maak een account aan",
|
|
470
479
|
"CREATE_ACCOUNT_IN_2_MIN": "Maak binnen 2 minuten een account aan.",
|
|
480
|
+
"CUSTOMER": "Klant",
|
|
481
|
+
"CUSTOMER_GROUP": "Klantgroep",
|
|
471
482
|
"DATE_OF_BIRTH": "Geboortedatum",
|
|
472
483
|
"DELETE_TRANSACTION_LINE": "verwijderen",
|
|
473
484
|
"DELETE_TRANSACTION_LINE_HINT": "Verwijderen transactieregel",
|
|
@@ -478,20 +489,27 @@
|
|
|
478
489
|
"DELIVERY_ADDRESS_ADD": "Bezorgadres toevoegen",
|
|
479
490
|
"DELIVERY_ADDRESS_CHANGE": "Bezorgadres wijzigen",
|
|
480
491
|
"DELIVERY_COSTS": "Bezorgkosten",
|
|
492
|
+
"DELIVERY_DATA": "Levergegevens",
|
|
481
493
|
"DELIVERY_DATE": "Leverdatum",
|
|
482
494
|
"DELIVERY_DATE_FINAL": "Definitieve leverdatum",
|
|
483
495
|
"DELIVERY_DIRECT": "Direct leverbaar",
|
|
484
496
|
"DELIVERY_LOCATION": "Bezorgingslocatie",
|
|
485
497
|
"DELIVERY_OPTIONS": "Leveropties",
|
|
486
|
-
"
|
|
498
|
+
"DELIVERY_METHOD": "Levermethode",
|
|
487
499
|
"DELIVERY_MOMENT": "Levermoment",
|
|
488
500
|
"DELIVERY_OPTARTICLE_NRIONS": "Bezorgopties",
|
|
489
501
|
"DELIVERY_TIME_PERIOD": "Levertijd",
|
|
490
502
|
"DESCRIPTION": "Omschrijving",
|
|
491
503
|
"DETAILS": "Details",
|
|
492
504
|
"DISCOUNT": "Korting",
|
|
505
|
+
"DISCOUNTS": "Kortingen",
|
|
493
506
|
"DISCOUNT_AMOUNT": "Kortingsbedrag",
|
|
494
507
|
"DISCOUNT_PERCENTAGE": "Kortings %",
|
|
508
|
+
"DOWNPAYMENT": "Aanbetaling",
|
|
509
|
+
"DOWNPAYMENT_PERCENTAGE": "Aan te betalen percentage",
|
|
510
|
+
"DOWNPAYMENT_AMOUNT": "Aan te betalen bedrag",
|
|
511
|
+
"DOWNPAYMENT_BY_BR": "Berekend door BR",
|
|
512
|
+
"DOWNPAYMENT_ON_DELIVERY": "Rembours",
|
|
495
513
|
"DROPSHIPMENT": "Dropshipment",
|
|
496
514
|
"ECONOMICAL_STOCK": "Later beschikbaar",
|
|
497
515
|
"EDIT_CART": "Wijzig winkelwagen",
|
|
@@ -499,22 +517,30 @@
|
|
|
499
517
|
"EXISTING_CUSTOMERS": "Bestaande klanten",
|
|
500
518
|
"EXPECTED_DELIVERY_DATE": "Verwachte bezorgdatum",
|
|
501
519
|
"EXPECTED_DELIVERY_WEEK": "Verwachte leverweek",
|
|
520
|
+
"FABRICATION_COST": "Fabricageprijs",
|
|
521
|
+
"FABRICATION_COST_LINE_TOTAL": "Fabricageprijs regeltotaal",
|
|
502
522
|
"FEMALE": "Vrouw",
|
|
503
523
|
"FIRST_NAME": "Voornaam",
|
|
504
524
|
"GOOD_DESCRIPTION": "Artikelomschrijving",
|
|
505
525
|
"HOUSE_NO": "Huisnummer",
|
|
506
526
|
"HOUSE_NO_ADDITION": "Huisnummer toevoeging",
|
|
527
|
+
"IN_OUT_COLLECTION": "In-uit-collectie",
|
|
507
528
|
"INVITE_TO_ACCOUNT": "Uitnodigen voor account",
|
|
508
529
|
"INVOICE_ADDRESS": "Factuuradres",
|
|
509
530
|
"INVOICE_ADDRESS_ADD": "Factuuradres toevoegen",
|
|
510
531
|
"INVOICE_ADDRESS_CHANGE": "Factuuradres wijzigen",
|
|
532
|
+
"LAST_EDITED_DATE": "Datum laatste wijziging",
|
|
533
|
+
"LAST_EDITED_USER": "Gebruiker laatste wijziging",
|
|
511
534
|
"LAST_NAME": "Achternaam",
|
|
512
535
|
"LINE_NEEDS_COMMISSION_CODE": "De commisiecode ontbreekt. Vul de commissiecode in.",
|
|
513
536
|
"LOGIN": "Inloggen",
|
|
514
537
|
"LOGIN_DETAILS": "Inloggegevens",
|
|
538
|
+
"LOGISTICS_AND_PLANNING": "Logistiek & planning",
|
|
515
539
|
"MALE": "Man",
|
|
516
540
|
"MARKETING": "Marketing",
|
|
541
|
+
"MODIFICATION_TIME": "Bewerkingstijd",
|
|
517
542
|
"NAME": "Naam",
|
|
543
|
+
"NET_LINE_TOTAL": "Regeltotaal",
|
|
518
544
|
"NETT": "Netto",
|
|
519
545
|
"NEW_AT": "Nieuw bij ",
|
|
520
546
|
"NEW_LOCATION": "Nieuwe locatie",
|
|
@@ -526,17 +552,21 @@
|
|
|
526
552
|
"ON_DATE": "Op datum",
|
|
527
553
|
"OPEN_SHOPPING_CART": "Open winkelwagen",
|
|
528
554
|
"ORDER_DATE": "Orderdatum",
|
|
555
|
+
"ORDER_DATA": "Ordergegevens",
|
|
529
556
|
"ORDER_GROSS": "Ordertotaal bruto",
|
|
530
557
|
"ORDER_NET": "Ordertotaal netto",
|
|
531
558
|
"ORDER_NUMBER": "Ordernummer",
|
|
559
|
+
"ORDER_RULESET": "Orderregelset",
|
|
532
560
|
"ORDER_TYPE": "Type bestelling",
|
|
561
|
+
"OTHER": "Overig",
|
|
533
562
|
"OVERVIEW": "Overzicht",
|
|
534
563
|
"OWN_REFERENCE": "Eigen referentie",
|
|
535
564
|
"PAID_DOWN2": "Aanbetaald",
|
|
536
565
|
"PART_DELIVERIES": "Deelleveringen",
|
|
537
566
|
"PASSWORD": "Wachtwoord",
|
|
567
|
+
"PAY": "Betalen",
|
|
538
568
|
"PAYMENT": "Betaling",
|
|
539
|
-
"PERSONAL_DATA": "
|
|
569
|
+
"PERSONAL_DATA": "Basisgegevens",
|
|
540
570
|
"PHONE_NO": "Telefoonnummer",
|
|
541
571
|
"PHYSICAL_STOCK": "Fysieke voorraad",
|
|
542
572
|
"POSTAL_CODE": "Postcode",
|
|
@@ -544,6 +574,7 @@
|
|
|
544
574
|
"PREFIX": "Tussenvoegsel",
|
|
545
575
|
"PRICE": "Prijs",
|
|
546
576
|
"PRICE_LIST": "Prijslijst",
|
|
577
|
+
"PRICING": "Prijzen",
|
|
547
578
|
"PRIVACY_PREFERENCES": "Privacyvoorkeuren",
|
|
548
579
|
"PRIVATE_PERSON": "Particulier",
|
|
549
580
|
"PRODUCT": "Product",
|
|
@@ -558,10 +589,11 @@
|
|
|
558
589
|
"QUANTITY_CANNOT_BE_LESS_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen.",
|
|
559
590
|
"QUANTITY_CANNOT_BE_MORE_THAN_RECEIVED": "Het aantal moet gelijk zijn aan het aantal ontvangen",
|
|
560
591
|
"QUANTUM_DISCOUNT": "Kwantumkorting",
|
|
592
|
+
"REFERENCE": "Referentie",
|
|
561
593
|
"REFERENCE_RELATION": "Ref. relatie",
|
|
562
594
|
"REMARKS": "Opmerkingen",
|
|
563
595
|
"SALUTATION": "Aanhef",
|
|
564
|
-
"SAME_AS_DELIVERY": "Hetzelfde als
|
|
596
|
+
"SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
|
|
565
597
|
"SAVE": "Opslaan",
|
|
566
598
|
"SELECT": "Selecteren",
|
|
567
599
|
"SERVICE_NUMBER": "Servicenummer",
|
|
@@ -577,18 +609,22 @@
|
|
|
577
609
|
"STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE": "Er is voldoende voorraad. Verander magazijn en/of commissiecode",
|
|
578
610
|
"SUBTOTAL": "Subtotaal",
|
|
579
611
|
"SUGGESTIONS": "Suggesties",
|
|
612
|
+
"SUPPLIER": "Leverancier",
|
|
580
613
|
"SURCHARGE_AMOUNT": "Toeslag",
|
|
581
614
|
"STATE": "Status",
|
|
582
615
|
"STREET": "Straatnaam",
|
|
583
616
|
"TEXT_ARTICLE_BOUND": "Text bij artikel |~",
|
|
584
617
|
"TOTAL_AMOUNT": "Totaalbedrag",
|
|
585
|
-
"TOTAL_GROSS": "Totaal bruto",
|
|
586
618
|
"TOTAL_ASSEMBLY_TIME": "Totale montagetijd",
|
|
619
|
+
"TOTAL_GROSS": "Totaal bruto",
|
|
620
|
+
"TOTAL_LINE_DISCOUNT": "Totale regelkorting",
|
|
587
621
|
"TRANSACTION_DISCOUNT": "Totale transactie korting",
|
|
588
622
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. korting",
|
|
589
623
|
"TRANSACTION_PRICE_DECLARATION": "Order prijsverklaring",
|
|
590
624
|
"TRANSACTION_SUM_I": "Ordertotaal incl. BTW",
|
|
591
625
|
"TRANSACTION_TOTAL": "Transactie totaal",
|
|
626
|
+
"TRANSPORT_COST": "Transportkosten",
|
|
627
|
+
"TRANSPORT_COST_LINE_TOTAL": "Transportkosten regeltotaal",
|
|
592
628
|
"UNKNOWN": "Onbekend",
|
|
593
629
|
"UNKNOWN_ADDRESS_CHECK_IT": "Onbekend adres",
|
|
594
630
|
"VAT": "Btw",
|
|
@@ -596,7 +632,7 @@
|
|
|
596
632
|
"VALUE": "Waarde",
|
|
597
633
|
"WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
|
|
598
634
|
"WAREHOUSE": "Magazijn",
|
|
599
|
-
"YOUR_DATA": "
|
|
635
|
+
"YOUR_DATA": "Gegevens",
|
|
600
636
|
"STANDARD_TEXTS": "Standaardteksten",
|
|
601
637
|
"ARTICLE_BOUND_TEXT": "Artikelgebonden tekst",
|
|
602
638
|
"FOR_DOCUMENTS": "Bestemd voor documenten",
|
|
@@ -611,21 +647,29 @@
|
|
|
611
647
|
"ADD_ARTICLE_LINE_DOWN": "Add article line down",
|
|
612
648
|
"ADD_ARTICLE_TEXT_LINE_UP": "Add text line up",
|
|
613
649
|
"ADD_ARTICLE_TEXT_LINE_DOWN": "Add text line down",
|
|
650
|
+
"ADD_DELIVERY_OPTION": "Add delivery option",
|
|
614
651
|
"ADD_DISCOUNTS": "Add discount",
|
|
652
|
+
"ADD_REFERENCE": "Add reference",
|
|
653
|
+
"ADD_REMARK": "Add remark",
|
|
615
654
|
"ADDRESS": "Address",
|
|
616
655
|
"ADDRESSES": "Addresses",
|
|
617
656
|
"ADDRESS_ADD": "Add address",
|
|
618
657
|
"ADDRESS_CHANGE": "Change address",
|
|
658
|
+
"ADMINISTRATIVE_MANAGER": "Administrative manager",
|
|
619
659
|
"ALWAYS_SHOW_LOGISTICS_POPUP": "Check warehouse and commissioncode",
|
|
620
660
|
"ARTICLE": "Article",
|
|
621
661
|
"ARTICLE_DESCRIPTION": "Article description",
|
|
622
662
|
"ARTICLE_IN_OUT_COLLECTION": "Status of article is '|~'. Are you sure to proceed?",
|
|
623
663
|
"ARTICLE_NR": "Article number",
|
|
664
|
+
"ARTICLE_NR_SUPPLIER": "Artikelnr supplier",
|
|
624
665
|
"ARTICLE_UNKNOWN": "Article unknown",
|
|
625
666
|
"ASSEMBLY_COSTS": "Assembly costs",
|
|
626
667
|
"ASSEMBLY_DATE": "Assembly date",
|
|
668
|
+
"ASSEMBLY_TIME": "Assembly time",
|
|
627
669
|
"AMOUNT": "Amount",
|
|
628
670
|
"BACK": "Back",
|
|
671
|
+
"BRANCH": "Branch",
|
|
672
|
+
"BUSINESS_RULE_DISCOUNT": "Business rule discount",
|
|
629
673
|
"CANCEL": "Cancel",
|
|
630
674
|
"CANNOT_CHANGE_NEGATIVE_QUANTITY": "A negative supply cannot be changed.",
|
|
631
675
|
"CART": "Cart",
|
|
@@ -636,6 +680,7 @@
|
|
|
636
680
|
"COMPANY": "Company",
|
|
637
681
|
"COMPANY_NAME": "Company name",
|
|
638
682
|
"COMMISSION_CODE": "Commission code",
|
|
683
|
+
"CONTACT_DETAILS": "Contactdetails",
|
|
639
684
|
"CONTINUE": "Next",
|
|
640
685
|
"CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM": "You have chosen to order articles while stock is still available. Do you wish to proceed?",
|
|
641
686
|
"CONTINUE_WITHOUT_ACCOUNT": "Continue without an account",
|
|
@@ -643,6 +688,8 @@
|
|
|
643
688
|
"COUNTRY": "Country",
|
|
644
689
|
"CREATE_ACCOUNT": "Create an account",
|
|
645
690
|
"CREATE_ACCOUNT_IN_2_MIN": "Create an account in 2 minutes.",
|
|
691
|
+
"CUSTOMER": "Customer",
|
|
692
|
+
"CUSTOMER_GROUP": "Customergroup",
|
|
646
693
|
"DATE_OF_BIRTH": "Date of birth",
|
|
647
694
|
"DELETE_TRANSACTION_LINE": "Delete transaction line verwijderen?",
|
|
648
695
|
"DELETE_TRANSACTION_LINE_HINT": "Delete transaction line",
|
|
@@ -652,42 +699,57 @@
|
|
|
652
699
|
"DELIVERY_ADDRESS_ADD": "Add delivery address",
|
|
653
700
|
"DELIVERY_ADDRESS_CHANGE": "Change delivery address",
|
|
654
701
|
"DELIVERY_COSTS": "Delivery costs",
|
|
702
|
+
"DELIVERY_DATA": "Deliverydata",
|
|
655
703
|
"DELIVERY_DATE": "Delivery date",
|
|
656
704
|
"DELIVERY_DATE_FINAL": "Final delivery date",
|
|
657
705
|
"DELIVERY_DIRECT": "Direct delivery",
|
|
658
706
|
"DELIVERY_LOCATION": "Delivery location",
|
|
659
707
|
"DELIVERY_OPTIONS": "Delivery options",
|
|
660
|
-
"
|
|
708
|
+
"DELIVERY_METHOD": "Delivery method",
|
|
661
709
|
"DELIVERY_MOMENT": "Delivery moment",
|
|
662
710
|
"DELIVERY_OPTARTICLE_NRIONS": "Delivery options",
|
|
663
711
|
"DELIVERY_TIME_PERIOD": "Delivery time period",
|
|
664
712
|
"DESCRIPTION": "Description",
|
|
665
713
|
"DETAILS": "Details",
|
|
666
714
|
"DISCOUNT": "Discount",
|
|
715
|
+
"DISCOUNTS": "Discounts",
|
|
667
716
|
"DISCOUNT_AMOUNT": "Discount amount",
|
|
668
717
|
"DISCOUNT_PERCENTAGE": "Discount %",
|
|
718
|
+
"DOWNPAYMENT": "Downpayment",
|
|
719
|
+
"DOWNPAYMENT_PERCENTAGE": "Percentage to be paid",
|
|
720
|
+
"DOWNPAYMENT_AMOUNT": "Amount to be paid",
|
|
721
|
+
"DOWNPAYMENT_BY_BR": "Calculated by BR",
|
|
722
|
+
"DOWNPAYMENT_ON_DELIVERY": "On delivery",
|
|
669
723
|
"DROPSHIPMENT": "Dropshipment",
|
|
670
724
|
"EDIT_CART": "Edit cart",
|
|
671
725
|
"EMAIL_ADDRESS": "E-mailadres",
|
|
672
726
|
"EXISTING_CUSTOMERS": "Existing customers",
|
|
673
727
|
"EXPECTED_DELIVERY_DATE": "Expected delivery date",
|
|
674
728
|
"EXPECTED_DELIVERY_WEEK": "Expected delivery week",
|
|
729
|
+
"FABRICATION_COST": "Fabricationcost",
|
|
730
|
+
"FABRICATION_COST_LINE_TOTAL": "Fabricationcost linetotal",
|
|
675
731
|
"FEMALE": "Female",
|
|
676
732
|
"FIRST_NAME": "First name",
|
|
677
733
|
"GOOD_DESCRIPTION": "Article description",
|
|
678
734
|
"HOUSE_NO": "Housenumber",
|
|
679
735
|
"HOUSE_NO_ADDITION": "Housenumber addition",
|
|
736
|
+
"IN_OUT_COLLECTION": "In-out-collection",
|
|
680
737
|
"INVITE_TO_ACCOUNT": "Invite account",
|
|
681
738
|
"INVOICE_ADDRESS": "Invoice address",
|
|
682
739
|
"INVOICE_ADDRESS_ADD": "Add invoice address",
|
|
683
740
|
"INVOICE_ADDRESS_CHANGE": "Change invoice address",
|
|
741
|
+
"LAST_EDITED_DATE": "Date last mutation",
|
|
742
|
+
"LAST_EDITED_USER": "User last mutation",
|
|
684
743
|
"LAST_NAME": "Last name",
|
|
685
744
|
"LINE_NEEDS_COMMISSION_CODE": "Line needs a commission code",
|
|
686
745
|
"LOGIN": "Login",
|
|
687
746
|
"LOGIN_DETAILS": "Login details",
|
|
747
|
+
"LOGISTICS_AND_PLANNING": "Logistics & planning",
|
|
688
748
|
"MALE": "Male",
|
|
689
749
|
"MARKETING": "Marketing",
|
|
750
|
+
"MODIFICATION_TIME": "Modification time",
|
|
690
751
|
"NAME": "Name",
|
|
752
|
+
"NET_LINE_TOTAL": "Linetotal",
|
|
691
753
|
"NETT": "Net",
|
|
692
754
|
"NEW_AT": "New at ",
|
|
693
755
|
"NEW_LOCATION": "New location",
|
|
@@ -699,15 +761,19 @@
|
|
|
699
761
|
"ON_DATE": "On date",
|
|
700
762
|
"OPEN_SHOPPING_CART": "Open shopping cart",
|
|
701
763
|
"ORDER_DATE": "Order date",
|
|
764
|
+
"ORDER_DATA": "Orderdata",
|
|
702
765
|
"ORDER_GROSS": "Total gross amount",
|
|
703
766
|
"ORDER_NET": "Total net amount",
|
|
704
767
|
"ORDER_NUMBER": "Order number",
|
|
768
|
+
"ORDER_RULESET": "Orderruleset",
|
|
705
769
|
"ORDER_TYPE": "Order type",
|
|
770
|
+
"OTHER": "Other",
|
|
706
771
|
"OVERVIEW": "Overview",
|
|
707
772
|
"OWN_REFERENCE": "Own reference",
|
|
708
773
|
"PAID_DOWN2": "Prepaid",
|
|
709
774
|
"PART_DELIVERIES": "Partial deliveries",
|
|
710
775
|
"PASSWORD": "Password",
|
|
776
|
+
"PAY": "Pay",
|
|
711
777
|
"PAYMENT": "Payment",
|
|
712
778
|
"PERSONAL_DATA": "Personal data",
|
|
713
779
|
"PHONE_NO": "Telephone number",
|
|
@@ -716,12 +782,14 @@
|
|
|
716
782
|
"PREFIX": "Prefix",
|
|
717
783
|
"PRICE": "Price",
|
|
718
784
|
"PRICE_LIST": "Pricelist",
|
|
785
|
+
"PRICING": "Pricing",
|
|
719
786
|
"PRIVACY_PREFERENCES": "Privacy preferences",
|
|
720
787
|
"PRIVATE_PERSON": "Private",
|
|
721
788
|
"PRODUCT": "Product",
|
|
722
789
|
"PRODUCT_TYPE": "Product type",
|
|
723
790
|
"QUANTITY_CANNOT_BE_ZERO_OR_EMPTY": "Quantity cannot be zero or empty",
|
|
724
791
|
"QUANTUM_DISCOUNT": "Quantum discount",
|
|
792
|
+
"REFERENCE": "Reference",
|
|
725
793
|
"REFERENCE_RELATION": "Ref. relation",
|
|
726
794
|
"REMARKS": "Remarks",
|
|
727
795
|
"SALUTATION": "Salutation",
|
|
@@ -741,17 +809,21 @@
|
|
|
741
809
|
"STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE": "Not enough supply. Change warehouse and/or commissioncode",
|
|
742
810
|
"SUBTOTAL": "Subtotal",
|
|
743
811
|
"SUGGESTIONS": "Suggestions",
|
|
812
|
+
"SUPPLIER": "Supplier",
|
|
744
813
|
"SURCHARGE_AMOUNT": "Surcharge",
|
|
745
814
|
"STATE": "STATUS",
|
|
746
815
|
"STREET": "Streetname",
|
|
747
816
|
"TOTAL_AMOUNT": "Total amount",
|
|
748
|
-
"TOTAL_GROSS": "Gross total",
|
|
749
817
|
"TOTAL_ASSEMBLY_TIME": "Total assembly time",
|
|
818
|
+
"TOTAL_GROSS": "Gross total",
|
|
819
|
+
"TOTAL_LINE_DISCOUNT": "Total linediscount",
|
|
750
820
|
"TRANSACTION_DISCOUNT": "Total transaction discount",
|
|
751
821
|
"TRANSACTION_DISCOUNT_PERC": "% Trans. discount",
|
|
752
822
|
"TRANSACTION_PRICE_DECLARATION": "Transaction price declaration",
|
|
753
823
|
"TRANSACTION_SUM_I": "Ordertotal incl VAT",
|
|
754
824
|
"TRANSACTION_TOTAL": "Transaction total",
|
|
825
|
+
"TRANSPORT_COST": "Transportcosts",
|
|
826
|
+
"TRANSPORT_COST_LINE_TOTAL": "Transportcosts linetotal",
|
|
755
827
|
"UNKNOWN": "unknown",
|
|
756
828
|
"UNKNOWN_ADDRESS_CHECK_IT": "Unknown address",
|
|
757
829
|
"VALUE": "Value",
|
|
@@ -1697,6 +1769,7 @@
|
|
|
1697
1769
|
};
|
|
1698
1770
|
IOneConnectorAdapterService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
1699
1771
|
var _this = this;
|
|
1772
|
+
if (thumbnail === void 0) { thumbnail = true; }
|
|
1700
1773
|
return new Promise(function (resolve, reject) {
|
|
1701
1774
|
return _this.connector.getDocumentContent(id, thumbnail).then(function (result) {
|
|
1702
1775
|
if (result.validationResult && result.validationResult.success) {
|
|
@@ -1884,6 +1957,25 @@
|
|
|
1884
1957
|
});
|
|
1885
1958
|
});
|
|
1886
1959
|
};
|
|
1960
|
+
IOneConnectorAdapterService.prototype.getCashRegisters = function (branch, group) {
|
|
1961
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1962
|
+
var response;
|
|
1963
|
+
return __generator(this, function (_a) {
|
|
1964
|
+
switch (_a.label) {
|
|
1965
|
+
case 0: return [4 /*yield*/, this.connector.getCashRegister(branch, group)];
|
|
1966
|
+
case 1:
|
|
1967
|
+
response = _a.sent();
|
|
1968
|
+
if (response.validationResult && response.validationResult.success) {
|
|
1969
|
+
return [2 /*return*/, this._boFactory.makeBOArrayFromRawBackendDataArray(cashRegister.CashRegister, response.resultObjects)];
|
|
1970
|
+
}
|
|
1971
|
+
else {
|
|
1972
|
+
return [2 /*return*/, []];
|
|
1973
|
+
}
|
|
1974
|
+
return [2 /*return*/];
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
});
|
|
1978
|
+
};
|
|
1887
1979
|
IOneConnectorAdapterService.prototype.getRelationNumber = function (relationId) {
|
|
1888
1980
|
return __awaiter(this, void 0, void 0, function () {
|
|
1889
1981
|
var _this = this;
|
|
@@ -1959,7 +2051,7 @@
|
|
|
1959
2051
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1960
2052
|
return _this.connector.getDeliveryMethods().then(function (result) {
|
|
1961
2053
|
if (result.validationResult && result.validationResult.success) {
|
|
1962
|
-
resolve(result.resultObjects);
|
|
2054
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects));
|
|
1963
2055
|
}
|
|
1964
2056
|
else {
|
|
1965
2057
|
reject(result.validationMessagesAsString);
|
|
@@ -1976,7 +2068,7 @@
|
|
|
1976
2068
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1977
2069
|
return _this.connector.getDeliveryOptions().then(function (result) {
|
|
1978
2070
|
if (result.validationResult && result.validationResult.success) {
|
|
1979
|
-
resolve(result.resultObjects);
|
|
2071
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(deliveryMethod_bo.DeliveryMethod, result.resultObjects));
|
|
1980
2072
|
}
|
|
1981
2073
|
else {
|
|
1982
2074
|
reject(result.validationMessagesAsString);
|
|
@@ -1993,7 +2085,7 @@
|
|
|
1993
2085
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1994
2086
|
return _this.connector.addRelationToTransaction(uuid, relationId).then(function (result) {
|
|
1995
2087
|
if (result.validationResult && result.validationResult.success) {
|
|
1996
|
-
resolve(result.resultObject);
|
|
2088
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
1997
2089
|
}
|
|
1998
2090
|
else {
|
|
1999
2091
|
reject(result.validationMessagesAsString);
|
|
@@ -2010,7 +2102,7 @@
|
|
|
2010
2102
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
2011
2103
|
return _this.connector.setTransactionDeliveryOptions(transactionDeliveryOptionsRequest).then(function (result) {
|
|
2012
2104
|
if (result.validationResult && result.validationResult.success) {
|
|
2013
|
-
resolve(result.resultObject);
|
|
2105
|
+
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
2014
2106
|
}
|
|
2015
2107
|
else {
|
|
2016
2108
|
reject(result.validationMessagesAsString);
|
|
@@ -2422,6 +2514,7 @@
|
|
|
2422
2514
|
this.applicationUser = false;
|
|
2423
2515
|
this.currentTransaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
2424
2516
|
this.relation = new customerFullObject_bo.CustomerFullObject();
|
|
2517
|
+
this.deliveryOptions = new setTransactionDeliveryOptionsRequest_bo.SetTransactionDeliveryOptionsRequest();
|
|
2425
2518
|
this.articleAmount = 0;
|
|
2426
2519
|
}
|
|
2427
2520
|
PendingReasonService.prototype.init = function (options) {
|
|
@@ -2713,6 +2806,9 @@
|
|
|
2713
2806
|
});
|
|
2714
2807
|
});
|
|
2715
2808
|
};
|
|
2809
|
+
TransactionService.prototype.getDocumentContent = function (id) {
|
|
2810
|
+
return this.connector.getDocumentContent(id);
|
|
2811
|
+
};
|
|
2716
2812
|
TransactionService.prototype.getGoodIdFromArticleNr = function (sku) {
|
|
2717
2813
|
return __awaiter(this, void 0, void 0, function () {
|
|
2718
2814
|
return __generator(this, function (_a) {
|
|
@@ -2733,6 +2829,13 @@
|
|
|
2733
2829
|
});
|
|
2734
2830
|
});
|
|
2735
2831
|
};
|
|
2832
|
+
TransactionService.prototype.getCashRegisters = function () {
|
|
2833
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2834
|
+
return __generator(this, function (_a) {
|
|
2835
|
+
return [2 /*return*/, this.connector.getCashRegisters(undefined, 1)];
|
|
2836
|
+
});
|
|
2837
|
+
});
|
|
2838
|
+
};
|
|
2736
2839
|
TransactionService.prototype.getRelationNumber = function (relationId) {
|
|
2737
2840
|
return __awaiter(this, void 0, void 0, function () {
|
|
2738
2841
|
return __generator(this, function (_a) {
|
|
@@ -3414,67 +3517,82 @@
|
|
|
3414
3517
|
// }
|
|
3415
3518
|
CheckoutComponent.prototype.handleRelationValidation = function () {
|
|
3416
3519
|
return __awaiter(this, void 0, void 0, function () {
|
|
3417
|
-
var valid;
|
|
3418
|
-
return __generator(this, function (
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
this.
|
|
3424
|
-
|
|
3520
|
+
var valid, _a;
|
|
3521
|
+
return __generator(this, function (_b) {
|
|
3522
|
+
switch (_b.label) {
|
|
3523
|
+
case 0:
|
|
3524
|
+
if (!(this.checkoutRelation && this.stepRelation)) return [3 /*break*/, 2];
|
|
3525
|
+
valid = this.checkoutRelation.submit();
|
|
3526
|
+
_a = this.stepRelation;
|
|
3527
|
+
return [4 /*yield*/, this.saveRelation()];
|
|
3528
|
+
case 1:
|
|
3529
|
+
_a.completed = _b.sent();
|
|
3530
|
+
_b.label = 2;
|
|
3531
|
+
case 2: return [2 /*return*/];
|
|
3425
3532
|
}
|
|
3426
|
-
return [2 /*return*/];
|
|
3427
3533
|
});
|
|
3428
3534
|
});
|
|
3429
3535
|
};
|
|
3430
3536
|
CheckoutComponent.prototype.handleDeliveryValidation = function () {
|
|
3431
|
-
|
|
3432
|
-
var valid
|
|
3433
|
-
this
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3537
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3538
|
+
var valid, _a;
|
|
3539
|
+
return __generator(this, function (_b) {
|
|
3540
|
+
switch (_b.label) {
|
|
3541
|
+
case 0:
|
|
3542
|
+
if (!(this.checkoutDelivery && this.stepDelivery)) return [3 /*break*/, 2];
|
|
3543
|
+
valid = this.checkoutDelivery.submit();
|
|
3544
|
+
_a = this.stepDelivery;
|
|
3545
|
+
return [4 /*yield*/, this.handleSaveDelivery()];
|
|
3546
|
+
case 1:
|
|
3547
|
+
_a.completed = _b.sent();
|
|
3548
|
+
_b.label = 2;
|
|
3549
|
+
case 2: return [2 /*return*/];
|
|
3550
|
+
}
|
|
3551
|
+
});
|
|
3552
|
+
});
|
|
3553
|
+
};
|
|
3554
|
+
CheckoutComponent.prototype.handlePaymentValidation = function () {
|
|
3555
|
+
if ( /*this.checkoutDelivery && */this.stepPayment) {
|
|
3556
|
+
this.stepPayment.completed = true;
|
|
3437
3557
|
}
|
|
3438
3558
|
};
|
|
3559
|
+
CheckoutComponent.prototype.handleOverviewValidation = function () {
|
|
3560
|
+
if ( /*this.checkoutDelivery && */this.stepOverview) {
|
|
3561
|
+
this.stepOverview.completed = true;
|
|
3562
|
+
}
|
|
3563
|
+
};
|
|
3564
|
+
CheckoutComponent.prototype.handleFinishStep = function () {
|
|
3565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3566
|
+
var response;
|
|
3567
|
+
return __generator(this, function (_a) {
|
|
3568
|
+
switch (_a.label) {
|
|
3569
|
+
case 0:
|
|
3570
|
+
if (!this.stepPay) return [3 /*break*/, 4];
|
|
3571
|
+
this.stepPay.completed = true;
|
|
3572
|
+
return [4 /*yield*/, this.service.saveTransaction()];
|
|
3573
|
+
case 1:
|
|
3574
|
+
response = _a.sent();
|
|
3575
|
+
if (!(response && response.isSuccess)) return [3 /*break*/, 2];
|
|
3576
|
+
// const commitResponse: DataServiceResponseData = await this.service.commit();
|
|
3577
|
+
// if (commitResponse && commitResponse.validationResult && commitResponse.validationResult.success) {
|
|
3578
|
+
this.transactionFinished.next(this.service.currentTransaction.transactionInfo);
|
|
3579
|
+
return [3 /*break*/, 4];
|
|
3580
|
+
case 2: return [4 /*yield*/, this._dialogService.showError("Opslag bezorging mislukt")];
|
|
3581
|
+
case 3:
|
|
3582
|
+
_a.sent();
|
|
3583
|
+
_a.label = 4;
|
|
3584
|
+
case 4: return [2 /*return*/];
|
|
3585
|
+
}
|
|
3586
|
+
});
|
|
3587
|
+
});
|
|
3588
|
+
};
|
|
3439
3589
|
CheckoutComponent.prototype.saveRelation = function () {
|
|
3440
3590
|
return this.service.saveRelation();
|
|
3441
3591
|
};
|
|
3442
3592
|
CheckoutComponent.prototype.handleSaveDelivery = function () {
|
|
3443
3593
|
return __awaiter(this, void 0, void 0, function () {
|
|
3444
|
-
var _this = this;
|
|
3445
3594
|
return __generator(this, function (_a) {
|
|
3446
|
-
return [2 /*return*/,
|
|
3447
|
-
_this.service.setTransactionDeliveryOptions().then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3448
|
-
var response_1, commitResponse;
|
|
3449
|
-
return __generator(this, function (_a) {
|
|
3450
|
-
switch (_a.label) {
|
|
3451
|
-
case 0:
|
|
3452
|
-
if (!response) return [3 /*break*/, 4];
|
|
3453
|
-
return [4 /*yield*/, this.service.saveTransaction()];
|
|
3454
|
-
case 1:
|
|
3455
|
-
response_1 = _a.sent();
|
|
3456
|
-
if (!(response_1 && response_1.isSuccess)) return [3 /*break*/, 3];
|
|
3457
|
-
return [4 /*yield*/, this.service.commit()];
|
|
3458
|
-
case 2:
|
|
3459
|
-
commitResponse = _a.sent();
|
|
3460
|
-
if (commitResponse && commitResponse.validationResult && commitResponse.validationResult.success) {
|
|
3461
|
-
this.transactionFinished.next(this.service.currentTransaction.transactionInfo);
|
|
3462
|
-
}
|
|
3463
|
-
_a.label = 3;
|
|
3464
|
-
case 3: return [3 /*break*/, 6];
|
|
3465
|
-
case 4: return [4 /*yield*/, this._dialogService.showError("Opslag bezorging mislukt")];
|
|
3466
|
-
case 5:
|
|
3467
|
-
_a.sent();
|
|
3468
|
-
_a.label = 6;
|
|
3469
|
-
case 6:
|
|
3470
|
-
resolve(true);
|
|
3471
|
-
return [2 /*return*/];
|
|
3472
|
-
}
|
|
3473
|
-
});
|
|
3474
|
-
}); }).catch(function (reason) {
|
|
3475
|
-
_this._dialogService.showError("Opslag transactie mislukt");
|
|
3476
|
-
});
|
|
3477
|
-
})];
|
|
3595
|
+
return [2 /*return*/, this.service.setTransactionDeliveryOptions()];
|
|
3478
3596
|
});
|
|
3479
3597
|
});
|
|
3480
3598
|
};
|
|
@@ -3483,7 +3601,7 @@
|
|
|
3483
3601
|
CheckoutComponent.decorators = [
|
|
3484
3602
|
{ type: i0.Component, args: [{
|
|
3485
3603
|
selector: "co-checkout",
|
|
3486
|
-
template: "\n <co-stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"
|
|
3604
|
+
template: "\n <co-stepper [finishButtonLabel]=\"'CHECKOUT_FINISH' | localize\" (finishStep)=\"handleFinishStep()\">\n <co-stepper-step #stepRelation [index]=\"1\" [label]=\"'YOUR_DATA' | localize\" (validateStep)=\"handleRelationValidation()\">\n <co-checkout-overview-relation-edit #checkoutRelation *ngIf=\"stepRelation.show\" [(relation)]=\"service.relation\" [deliveryOptionsRequest]=\"service.deliveryOptions\"\n (relationChange)=\"service.relation = $event\"\n ></co-checkout-overview-relation-edit>\n </co-stepper-step>\n <co-stepper-step #stepDelivery [index]=\"2\" [label]=\"'DELIVERY' | localize\" (validateStep)=\"handleDeliveryValidation()\">\n <co-checkout-overview-delivery-edit #checkoutDelivery *ngIf=\"stepDelivery.show\" [deliveryOptionsRequest]=\"service.deliveryOptions\"\n [transaction]=\"service.currentTransaction\"\n ></co-checkout-overview-delivery-edit>\n </co-stepper-step>\n <co-stepper-step #stepPayment [index]=\"3\" [label]=\"'PAYMENT' | localize\" (validateStep)=\"handlePaymentValidation()\">\n <co-payment #checkoutPayment *ngIf=\"stepPayment.show\" [amount]=\"service.currentTransaction.transactionTotal.netAmount\"></co-payment>\n </co-stepper-step>\n <co-stepper-step #stepOverview [index]=\"4\" [label]=\"'OVERVIEW' | localize\" (validateStep)=\"handleOverviewValidation()\">\n </co-stepper-step>\n <co-stepper-step #stepPay [index]=\"5\" [label]=\"'PAY' | localize\">\n </co-stepper-step>\n <div class=\"co-checkout-right-panel\">\n <div class=\"co-checkout-right-panel-relation\">\n <co-seller-information [relationId]=\"sellerId\"></co-seller-information>\n </div>\n <co-shopping-cart-preview [showCheckoutButton]=\"false\" [withoutBorder]=\"true\"></co-shopping-cart-preview>\n </div>\n </co-stepper>\n ",
|
|
3487
3605
|
encapsulation: i0.ViewEncapsulation.None
|
|
3488
3606
|
},] }
|
|
3489
3607
|
];
|
|
@@ -3495,17 +3613,48 @@
|
|
|
3495
3613
|
CheckoutComponent.propDecorators = {
|
|
3496
3614
|
stepRelation: [{ type: i0.ViewChild, args: ["stepRelation",] }],
|
|
3497
3615
|
stepDelivery: [{ type: i0.ViewChild, args: ["stepDelivery",] }],
|
|
3616
|
+
stepPayment: [{ type: i0.ViewChild, args: ["stepPayment",] }],
|
|
3617
|
+
stepOverview: [{ type: i0.ViewChild, args: ["stepOverview",] }],
|
|
3618
|
+
stepPay: [{ type: i0.ViewChild, args: ["stepPay",] }],
|
|
3498
3619
|
checkoutRelation: [{ type: i0.ViewChild, args: ["checkoutRelation",] }],
|
|
3499
3620
|
checkoutDelivery: [{ type: i0.ViewChild, args: ["checkoutDelivery",] }],
|
|
3621
|
+
checkoutPayment: [{ type: i0.ViewChild, args: ["checkoutPayment",] }],
|
|
3622
|
+
sellerId: [{ type: i0.Input }],
|
|
3500
3623
|
transactionFinished: [{ type: i0.Output }],
|
|
3501
3624
|
showClass: [{ type: i0.HostBinding, args: ["class.co-checkout",] }]
|
|
3502
3625
|
};
|
|
3503
3626
|
|
|
3627
|
+
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
3628
|
+
var Icon;
|
|
3629
|
+
(function (Icon) {
|
|
3630
|
+
Icon["ArrowPointDown"] = "arrow_point_down";
|
|
3631
|
+
Icon["ArrowPointLeft"] = "arrow_point_left";
|
|
3632
|
+
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
3633
|
+
Icon["CalendarDay"] = "calendar_day";
|
|
3634
|
+
Icon["Cancel"] = "cancel";
|
|
3635
|
+
Icon["CashRegister"] = "cash_register";
|
|
3636
|
+
Icon["DeliveryTruck"] = "delivery_truck";
|
|
3637
|
+
Icon["EditPencil"] = "edit_pencil";
|
|
3638
|
+
Icon["IdealLogo"] = "ideal_logo";
|
|
3639
|
+
Icon["MasterDetail"] = "master_detail";
|
|
3640
|
+
Icon["PlusRound"] = "plus_round";
|
|
3641
|
+
Icon["SidePanel"] = "side_panel";
|
|
3642
|
+
Icon["Tag"] = "tag";
|
|
3643
|
+
Icon["ThickLines"] = "thick_lines";
|
|
3644
|
+
Icon["ThinLines"] = "thin_lines";
|
|
3645
|
+
Icon["TriangleDown"] = "triangle_down";
|
|
3646
|
+
Icon["TriangleUp"] = "triangle_up";
|
|
3647
|
+
Icon["Truck"] = "truck";
|
|
3648
|
+
Icon["Txt"] = "txt";
|
|
3649
|
+
})(Icon || (Icon = {}));
|
|
3650
|
+
|
|
3504
3651
|
var CheckoutOverviewRelationEditComponent = /** @class */ (function () {
|
|
3505
|
-
function CheckoutOverviewRelationEditComponent(_service, _formMaster) {
|
|
3652
|
+
function CheckoutOverviewRelationEditComponent(_service, _formMaster, _boFactory) {
|
|
3506
3653
|
var _this = this;
|
|
3507
3654
|
this._service = _service;
|
|
3508
3655
|
this._formMaster = _formMaster;
|
|
3656
|
+
this._boFactory = _boFactory;
|
|
3657
|
+
this.icons = Icon;
|
|
3509
3658
|
this.validSubmit = new i0.EventEmitter();
|
|
3510
3659
|
this.invalidSubmit = new i0.EventEmitter();
|
|
3511
3660
|
this.relationChange = new i0.EventEmitter();
|
|
@@ -3517,6 +3666,13 @@
|
|
|
3517
3666
|
this.relationSuggestions = [];
|
|
3518
3667
|
this.showRelationSidebar = false;
|
|
3519
3668
|
this.inviteToAccount = false;
|
|
3669
|
+
this.addresses = [];
|
|
3670
|
+
this.deliveryAddressIdx = 0;
|
|
3671
|
+
this.invoiceAddressIdx = 0;
|
|
3672
|
+
this.invoiceAddressSameAsDeliveryAddress = true;
|
|
3673
|
+
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3674
|
+
this.showSelectAddressDialog = false;
|
|
3675
|
+
this.showCreateAddressDialog = false;
|
|
3520
3676
|
this.relType = relationNameKind_enum.RelationNameKind;
|
|
3521
3677
|
this.genderType = genderType_enum.GenderType;
|
|
3522
3678
|
this._relation = nulRelationObject.NULL_RELATION_OBJECT;
|
|
@@ -3593,6 +3749,73 @@
|
|
|
3593
3749
|
// return this.relationForm.submit();
|
|
3594
3750
|
return this._formMaster.submitSlaves();
|
|
3595
3751
|
};
|
|
3752
|
+
CheckoutOverviewRelationEditComponent.prototype.showNewAddressDialog = function (deliveryAddress) {
|
|
3753
|
+
if (deliveryAddress === void 0) { deliveryAddress = true; }
|
|
3754
|
+
this.editAddressType = deliveryAddress ? addressType_enum.AddressType.DeliveryAddress : addressType_enum.AddressType.BillingAddress;
|
|
3755
|
+
this.showCreateAddressDialog = true;
|
|
3756
|
+
};
|
|
3757
|
+
CheckoutOverviewRelationEditComponent.prototype.showEditAddressDialog = function (deliveryAddress) {
|
|
3758
|
+
if (deliveryAddress === void 0) { deliveryAddress = true; }
|
|
3759
|
+
this.editAddressType = deliveryAddress ? addressType_enum.AddressType.DeliveryAddress : addressType_enum.AddressType.BillingAddress;
|
|
3760
|
+
this.showSelectAddressDialog = true;
|
|
3761
|
+
};
|
|
3762
|
+
CheckoutOverviewRelationEditComponent.prototype.setIndexDeliveryAddress = function (idx) {
|
|
3763
|
+
this.deliveryAddressIdx = idx;
|
|
3764
|
+
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3765
|
+
this.selectAddress(this.relation.addresses[idx]);
|
|
3766
|
+
};
|
|
3767
|
+
CheckoutOverviewRelationEditComponent.prototype.setIndexInvoiceAddress = function (idx) {
|
|
3768
|
+
this.invoiceAddressIdx = idx;
|
|
3769
|
+
this.editAddressType = addressType_enum.AddressType.BillingAddress;
|
|
3770
|
+
this.selectAddress(this.relation.addresses[idx]);
|
|
3771
|
+
};
|
|
3772
|
+
CheckoutOverviewRelationEditComponent.prototype.editAddress = function (addr) {
|
|
3773
|
+
this.addressToEdit = this._boFactory.makeWithRawBackendData(address_bo.Address, addr);
|
|
3774
|
+
this.showEditAddressDialog();
|
|
3775
|
+
};
|
|
3776
|
+
CheckoutOverviewRelationEditComponent.prototype.checkSameAddress = function (checked) {
|
|
3777
|
+
if (checked) {
|
|
3778
|
+
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3779
|
+
this.selectAddress(this.deliveryAddress);
|
|
3780
|
+
}
|
|
3781
|
+
};
|
|
3782
|
+
CheckoutOverviewRelationEditComponent.prototype.saveNewAddress = function (address) {
|
|
3783
|
+
address.addressType = this.editAddressType;
|
|
3784
|
+
this.relation.addresses.push(address);
|
|
3785
|
+
this.selectAddress(address);
|
|
3786
|
+
this.showCreateAddressDialog = false;
|
|
3787
|
+
};
|
|
3788
|
+
CheckoutOverviewRelationEditComponent.prototype.saveAddress = function (address) {
|
|
3789
|
+
var idx = this.relation.addresses.findIndex(function (a) { return a.nawNr === address.nawNr; });
|
|
3790
|
+
if (idx > -1) {
|
|
3791
|
+
this.relation.addresses[idx] = this._boFactory.makeWithRawBackendData(address_bo.Address, address);
|
|
3792
|
+
}
|
|
3793
|
+
this.showSelectAddressDialog = false;
|
|
3794
|
+
};
|
|
3795
|
+
CheckoutOverviewRelationEditComponent.prototype.selectAddress = function (address) {
|
|
3796
|
+
var _this = this;
|
|
3797
|
+
if (!this.deliveryOptionsRequest) {
|
|
3798
|
+
return;
|
|
3799
|
+
}
|
|
3800
|
+
if (!address) {
|
|
3801
|
+
address = this._service.getFirstAddress(this.relation);
|
|
3802
|
+
}
|
|
3803
|
+
if (!address) {
|
|
3804
|
+
return;
|
|
3805
|
+
}
|
|
3806
|
+
this._setCountryNameToAddress(address);
|
|
3807
|
+
if (this.editAddressType === addressType_enum.AddressType.DeliveryAddress) {
|
|
3808
|
+
this.deliveryOptionsRequest.transactionAddress = address.nawNr;
|
|
3809
|
+
this.deliveryAddress = address;
|
|
3810
|
+
this.deliveryAddressIdx = this.relation.addresses.findIndex(function (a) { return a.nawNr === _this.deliveryAddress.nawNr; });
|
|
3811
|
+
}
|
|
3812
|
+
if (this.invoiceAddressSameAsDeliveryAddress || this.editAddressType !== addressType_enum.AddressType.DeliveryAddress) {
|
|
3813
|
+
this.deliveryOptionsRequest.invoiceAddress = address.nawNr;
|
|
3814
|
+
this.invoiceAddress = address;
|
|
3815
|
+
this.invoiceAddressIdx = this.relation.addresses.findIndex(function (a) { return a.nawNr === _this.invoiceAddress.nawNr; });
|
|
3816
|
+
}
|
|
3817
|
+
this.showSelectAddressDialog = false;
|
|
3818
|
+
};
|
|
3596
3819
|
CheckoutOverviewRelationEditComponent.prototype.preparePrimaryEmail = function () {
|
|
3597
3820
|
if (this._relation) {
|
|
3598
3821
|
this.emailAddress = this._relation.getLowestSequenceOfContactOptionsWithType(communicationType_enum.CommunicationType.Email);
|
|
@@ -3670,6 +3893,11 @@
|
|
|
3670
3893
|
}
|
|
3671
3894
|
this._relationNameChangeHandler.call(this);
|
|
3672
3895
|
};
|
|
3896
|
+
CheckoutOverviewRelationEditComponent.prototype.checkVisibilitySuggestions = function () {
|
|
3897
|
+
if (this._relation.firstName && this._relation.familyName) {
|
|
3898
|
+
this.hideSidebar();
|
|
3899
|
+
}
|
|
3900
|
+
};
|
|
3673
3901
|
CheckoutOverviewRelationEditComponent.prototype.onRelationSuggestionClick = function (relationSuggested) {
|
|
3674
3902
|
return __awaiter(this, void 0, void 0, function () {
|
|
3675
3903
|
var _a;
|
|
@@ -3703,8 +3931,12 @@
|
|
|
3703
3931
|
CheckoutOverviewRelationEditComponent.prototype.showSidebar = function () {
|
|
3704
3932
|
this.showRelationSidebar = true;
|
|
3705
3933
|
};
|
|
3934
|
+
// Hide sidebar with a little timeout to prevent missing the click
|
|
3706
3935
|
CheckoutOverviewRelationEditComponent.prototype.hideSidebar = function () {
|
|
3707
|
-
|
|
3936
|
+
var _this = this;
|
|
3937
|
+
setTimeout(function () {
|
|
3938
|
+
_this.showRelationSidebar = false;
|
|
3939
|
+
}, 200);
|
|
3708
3940
|
};
|
|
3709
3941
|
CheckoutOverviewRelationEditComponent.prototype._initForm = function () {
|
|
3710
3942
|
if (this.relationForm) {
|
|
@@ -3743,12 +3975,29 @@
|
|
|
3743
3975
|
});
|
|
3744
3976
|
});
|
|
3745
3977
|
};
|
|
3978
|
+
CheckoutOverviewRelationEditComponent.prototype._setCountryNameToAddress = function (address) {
|
|
3979
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3980
|
+
var country;
|
|
3981
|
+
return __generator(this, function (_a) {
|
|
3982
|
+
switch (_a.label) {
|
|
3983
|
+
case 0:
|
|
3984
|
+
if (!(address.countryId && !address.countryName)) return [3 /*break*/, 2];
|
|
3985
|
+
return [4 /*yield*/, this._service.getCountry(address.countryId)];
|
|
3986
|
+
case 1:
|
|
3987
|
+
country = _a.sent();
|
|
3988
|
+
address.countryName = country.description;
|
|
3989
|
+
_a.label = 2;
|
|
3990
|
+
case 2: return [2 /*return*/];
|
|
3991
|
+
}
|
|
3992
|
+
});
|
|
3993
|
+
});
|
|
3994
|
+
};
|
|
3746
3995
|
return CheckoutOverviewRelationEditComponent;
|
|
3747
3996
|
}());
|
|
3748
3997
|
CheckoutOverviewRelationEditComponent.decorators = [
|
|
3749
3998
|
{ type: i0.Component, args: [{
|
|
3750
3999
|
selector: "co-checkout-overview-relation-edit",
|
|
3751
|
-
template: "\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span>01</span>\n <span class=\"label\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"relation.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [(model)]=\"relation.type\"\n [checked]=\"relation.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n <div class=\"checkout-data-row\">\n <relation-customer-groups [(model)]=\"relation.customerGroup\" required></relation-customer-groups>\n </div>\n <div *ngIf=\"relation.type === relType.Private\" class=\"collapseable\" @showHidePrivateRelationFields>\n <div class=\"checkout-data-row\">\n <co-input-text\n class=\"checkout-first-name\"\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize\"\n (modelChange)=\"firstNameChange($event)\"\n [required]=\"true\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-prefix-name default-width\"\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-last-name\"\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n [required]=\"true\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\" [required]=\"true\"></co-input-date>\n <co-input-text [(model)]=\"phoneNumber.value\" [placeholder]=\"'PHONE_NO' | localize \" [required]=\"true\"></co-input-text>\n </div>\n </div>\n <div *ngIf=\"relation?.type === relType.Company\" class=\"checkout-data-row collapseable\" @showHideCompanyRelationFields>\n <co-input-text [(model)]=\"relation.familyName\" [placeholder]=\"'COMPANY_NAME' | localize\" [required]=\"true\"></co-input-text>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>02</span>\n <span class=\"label\" [textContent]=\"'DELIVERY_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <co-relation-address [address]=\"editFirstAddress\" [showButtons]=\"false\"></co-relation-address>\n </div>\n <div class=\"checkout-label-column\">\n <span>03</span>\n <span class=\"label\" [textContent]=\"'LOGIN_DETAILS' | localize\"></span>\n <span class=\"label-description\" [textContent]=\"'ACCOUNT_EXPLANATION' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-text [(model)]=\"emailAddress.value\" [placeholder]=\"'EMAIL_ADDRESS' | localize \" [type]=\"'email'\" [required]=\"true\"></co-input-text>\n </div>\n <div *ngIf=\"!applicationUser\" class=\"checkout-data-row\">\n <co-input-text [(model)]=\"accountPassword\" [placeholder]=\"'PASSWORD' | localize \" [type]=\"'password'\" [required]=\"true\"></co-input-text>\n </div>\n <div *ngIf=\"applicationUser\" class=\"checkout-data-row\">\n <co-input-checkbox [label]=\"'INVITE_TO_ACCOUNT' | localize\" [(model)]=\"inviteToAccount\"></co-input-checkbox>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>04</span>\n <span class=\"label\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"two-column-grid\">\n <ng-container *ngFor=\"let privacySetting of privacySettings\">\n <co-input-checkbox class=\"first-column\"\n [label]=\"privacySetting.description\"\n [model]=\"isShared(privacySetting)\"\n (modelChange)=\"changePrivacySetting(privacySetting, $event)\"\n ></co-input-checkbox>\n <span class=\"second-column\" [textContent]=\"privacySetting.explanation\"></span>\n </ng-container>\n </div>\n </div>\n </div>\n </co-form>\n\n <div class=\"suggestions-sidebar\" *ngIf=\"showRelationSidebar\" @showHideSidebar>\n <div class=\"relation-sidebar-header\">\n <label class=\"checkout-label-h3\" [textContent]=\"'SUGGESTIONS' | localize\"></label>\n </div>\n <co-checkout-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionSelected)=\"onRelationSuggestionClick($event)\"\n ></co-checkout-relation-suggestions-list>\n </div>\n ",
|
|
4000
|
+
template: "\n <div class=\"relation-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-label-column\">\n <span>01</span>\n <span class=\"label\" [textContent]=\"'PERSONAL_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'PRIVATE_PERSON' | localize\"\n [value]=\"relType.Private\"\n [checked]=\"relation.type === relType.Private\"\n (modelChange)=\"changeRelationType(relType.Private)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'type'\"\n [label]=\"'COMPANY' | localize\"\n [value]=\"relType.Company\"\n [(model)]=\"relation.type\"\n [checked]=\"relation.type === relType.Company\"\n (modelChange)=\"changeRelationType(relType.Company)\"\n ></co-input-radio-button>\n </div>\n <div class=\"checkout-data-row\">\n <relation-customer-groups [(model)]=\"relation.customerGroup\" required></relation-customer-groups>\n </div>\n <div *ngIf=\"relation.type === relType.Private\" class=\"collapseable\" @showHidePrivateRelationFields>\n <div class=\"checkout-data-row\">\n <co-input-text\n class=\"checkout-first-name\"\n [(model)]=\"relation.firstName\"\n [placeholder]=\"'FIRST_NAME' | localize\"\n (modelChange)=\"firstNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-prefix-name default-width\"\n [(model)]=\"relation.prefix\"\n [placeholder]=\"'PREFIX' | localize\"\n ></co-input-text>\n <co-input-text\n class=\"checkout-last-name\"\n [(model)]=\"relation.familyName\"\n [placeholder]=\"'LAST_NAME' | localize\"\n (modelChange)=\"familyNameChange($event)\"\n (blur)=\"checkVisibilitySuggestions()\"\n [required]=\"true\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'MALE' | localize\"\n [value]=\"genderType.Male\"\n [checked]=\"relation.gender === genderType.Male\"\n (modelChange)=\"changeGenderType(genderType.Male)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'FEMALE' | localize \"\n [value]=\"genderType.Female\"\n [checked]=\"relation.gender === genderType.Female\"\n (modelChange)=\"changeGenderType(genderType.Female)\"\n ></co-input-radio-button>\n <co-input-radio-button class=\"default-width\"\n [name]=\"'gender'\"\n [label]=\"'UNKNOWN' | localize\"\n [value]=\"genderType.Unspecified\"\n [checked]=\"relation.gender === genderType.Unspecified\"\n (modelChange)=\"changeGenderType(genderType.Unspecified)\"\n ></co-input-radio-button>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-date [placeholder]=\"'DATE_OF_BIRTH' | localize \" [(model)]=\"dateOfBirth\" [required]=\"true\"></co-input-date>\n </div>\n </div>\n <div *ngIf=\"relation?.type === relType.Company\" class=\"checkout-data-row collapseable\" @showHideCompanyRelationFields>\n <co-input-text [(model)]=\"relation.familyName\" [placeholder]=\"'COMPANY_NAME' | localize\" [required]=\"true\"></co-input-text>\n </div>\n <co-relation-address [address]=\"editFirstAddress\" [showButtons]=\"false\"></co-relation-address>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-carousel-3d *ngIf=\"relation.addresses && relation.addresses.length > 1\"\n [tileWidth]=\"200\"\n [tileHeight]=\"100\"\n [selectedIndex]=\"deliveryAddressIdx\"\n (indexSelected)=\"setIndexDeliveryAddress($event)\">\n <co-relation-address-tile #carouselItem *ngFor=\"let address of relation.addresses; let index = index\"\n [address]=\"address\"\n [selected]=\"deliveryAddressIdx === index\"\n (editAddressClicked)=\"editAddress($event)\"\n ></co-relation-address-tile>\n </co-carousel-3d>\n </div>\n <div class=\"checkout-data-row\">\n <div class=\"relation-address-new\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'ADDRESS_ADD' | localize\" (click)=\"showNewAddressDialog()\"></div>\n </div>\n </div>\n </div>\n\n <div class=\"checkout-label-column\">\n <span>02</span>\n <span class=\"label\" [textContent]=\"'INVOICE_ADDRESS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"invoiceAddressSameAsDeliveryAddress\" (modelChange)=\"checkSameAddress($event)\" [label]=\"'SAME_AS_DELIVERY' | localize\"></co-input-checkbox>\n </div>\n <div class=\"overview-delivery-invoice-address\" *ngIf=\"!invoiceAddressSameAsDeliveryAddress\" @showHideInvoiceAddress>\n <div class=\"checkout-data-row\">\n <co-carousel-3d *ngIf=\"relation.addresses && relation.addresses.length > 1\"\n [tileWidth]=\"200\"\n [tileHeight]=\"100\"\n [selectedIndex]=\"invoiceAddressIdx\"\n (indexSelected)=\"setIndexInvoiceAddress($event)\">\n <co-relation-address-tile #carouselItem *ngFor=\"let address of relation.addresses; let index = index\"\n [address]=\"address\"\n [selected]=\"invoiceAddressIdx === index\"\n (editAddressClicked)=\"editAddress($event)\"\n ></co-relation-address-tile>\n </co-carousel-3d>\n </div>\n <div class=\"checkout-data-row\">\n <div class=\"relation-address-new\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.ArrowPointRight\"></icon>\n <div [textContent]=\"'ADDRESS_ADD' | localize\" (click)=\"showNewAddressDialog()\"></div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>03</span>\n <span class=\"label\" [textContent]=\"'CONTACT_DETAILS' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-text [(model)]=\"phoneNumber.value\" [placeholder]=\"'PHONE_NO' | localize \" [required]=\"true\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-text [(model)]=\"emailAddress.value\" [placeholder]=\"'EMAIL_ADDRESS' | localize \" [type]=\"'email'\" [required]=\"true\"></co-input-text>\n </div>\n<!--\n </div>\n <div class=\"checkout-label-column\">\n <span>04</span>\n <span class=\"label\" [textContent]=\"'PASSWORD' | localize\"></span>\n <span class=\"label-description\" [textContent]=\"'ACCOUNT_EXPLANATION' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n-->\n <div class=\"checkout-data-row\">\n <co-input-checkbox [label]=\"'INVITE_TO_ACCOUNT' | localize\" [(model)]=\"inviteToAccount\"></co-input-checkbox>\n </div>\n </div>\n <div class=\"checkout-label-column\">\n <span>04</span>\n <span class=\"label\" [textContent]=\"'PRIVACY_PREFERENCES' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"two-column-grid\">\n <ng-container *ngFor=\"let privacySetting of privacySettings\">\n <co-input-checkbox class=\"first-column\"\n [label]=\"privacySetting.description\"\n [model]=\"isShared(privacySetting)\"\n (modelChange)=\"changePrivacySetting(privacySetting, $event)\"\n ></co-input-checkbox>\n <span class=\"second-column\" [textContent]=\"privacySetting.explanation\"></span>\n </ng-container>\n </div>\n </div>\n </div>\n </co-form>\n </div>\n <div class=\"suggestions-sidebar\" *ngIf=\"showRelationSidebar\" @showHideSidebar>\n <div class=\"relation-sidebar-header\">\n <label class=\"checkout-label-h3\" [textContent]=\"'SUGGESTIONS' | localize\"></label>\n </div>\n <co-checkout-relation-suggestions-list\n [suggestions]=\"relationSuggestions\"\n (suggestionSelected)=\"onRelationSuggestionClick($event)\"\n ></co-checkout-relation-suggestions-list>\n </div>\n <co-dialog *ngIf=\"showCreateAddressDialog\">\n <co-relation-address\n (saveClick)=\"saveNewAddress($event)\"\n (cancelClick)=\"showCreateAddressDialog = false\"\n ></co-relation-address>\n </co-dialog>\n <co-dialog *ngIf=\"showSelectAddressDialog && addressToEdit\">\n <co-relation-address\n [address]=\"addressToEdit\"\n (saveClick)=\"saveAddress($event)\"\n (cancelClick)=\"showSelectAddressDialog = false\"\n ></co-relation-address>\n </co-dialog>\n ",
|
|
3752
4001
|
providers: [
|
|
3753
4002
|
corecomponents_v12.FormMasterService
|
|
3754
4003
|
],
|
|
@@ -3769,6 +4018,12 @@
|
|
|
3769
4018
|
animations.state("void", animations.style({ transform: "translateX(100%)" })),
|
|
3770
4019
|
animations.state("*", animations.style({ transform: "translateX(0)" })),
|
|
3771
4020
|
animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
|
|
4021
|
+
]),
|
|
4022
|
+
animations.trigger("showHideInvoiceAddress", [
|
|
4023
|
+
animations.state("void", animations.style({ height: 0, opacity: 0 })),
|
|
4024
|
+
animations.state("*", animations.style({ height: "*", opacity: 1 })),
|
|
4025
|
+
animations.transition("void => *", animations.animate("200ms ease-in-out")),
|
|
4026
|
+
animations.transition("* => void", animations.animate("200ms ease-out"))
|
|
3772
4027
|
])
|
|
3773
4028
|
],
|
|
3774
4029
|
encapsulation: i0.ViewEncapsulation.None
|
|
@@ -3776,11 +4031,13 @@
|
|
|
3776
4031
|
];
|
|
3777
4032
|
CheckoutOverviewRelationEditComponent.ctorParameters = function () { return [
|
|
3778
4033
|
{ type: TransactionService },
|
|
3779
|
-
{ type: corecomponents_v12.FormMasterService }
|
|
4034
|
+
{ type: corecomponents_v12.FormMasterService },
|
|
4035
|
+
{ type: BusinessObjectFactory }
|
|
3780
4036
|
]; };
|
|
3781
4037
|
CheckoutOverviewRelationEditComponent.propDecorators = {
|
|
3782
4038
|
relationForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent, { static: true },] }],
|
|
3783
4039
|
relation: [{ type: i0.Input }],
|
|
4040
|
+
deliveryOptionsRequest: [{ type: i0.Input }],
|
|
3784
4041
|
validSubmit: [{ type: i0.Output }],
|
|
3785
4042
|
invalidSubmit: [{ type: i0.Output }],
|
|
3786
4043
|
relationChange: [{ type: i0.Output }],
|
|
@@ -3788,91 +4045,118 @@
|
|
|
3788
4045
|
};
|
|
3789
4046
|
|
|
3790
4047
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
3791
|
-
var
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
4048
|
+
var IconSvg = {
|
|
4049
|
+
"arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
|
|
4050
|
+
"arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
|
|
4051
|
+
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
4052
|
+
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
4053
|
+
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
4054
|
+
"cash_register": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M35.39,18.12H14.62L10,29.66H40ZM23,19.29H27l.1,1.6H22.87Zm-.13,2h4.32l.12,1.81H22.72Zm-.15,2.3h4.62l.14,2.08h-4.9ZM17.9,19.29H22l-.16,1.6H17.54Zm-.46,2h4.32l-.18,1.81H17Zm-.53,2.3h4.62l-.2,2.08h-4.9Zm-1.16,5.06.55-2.42H27.49l.16,2.42ZM28,19.29H32.1l.36,1.6H28.2Zm.2,2h4.32L33,23.12H28.42Zm.23,2.3h4.62l.48,2.08h-4.9Zm.5,5.06-.24-2.42h5l.55,2.42Z\" fill=\"#484f60\"/><path d=\"M10,29.66v9.23H40V29.66Zm27.69,6.92H12.31V32H37.69Z\" fill=\"#484f60\"/><path d=\"M15.63,11.11v7.58H34.37V11.11Zm17.31,6.15H17.06V12.54H32.94Z\" fill=\"#484f60\"/></svg>",
|
|
4055
|
+
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
4056
|
+
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
4057
|
+
"ideal_logo": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 306.1 269.8\" style=\"enable-background:new 0 0 306.1 269.8;\" ><style type=\"text/css\">.st0{fill:#FFFFFF;}.st1{fill:#CC0066;}</style><g><g><path class=\"st0\" d=\"M0,20v229.8c0,11,9,20,20,20h137.3c103.8,0,148.8-58.1,148.8-135.2C306.1,57.9,261.1,0,157.3,0H20C9,0,0,9,0,20z\"/><path class=\"st1\" d=\"M91.9,56.4v169.8h73.9c67.1,0,96.2-37.9,96.2-91.5c0-51.3-29.1-91.1-96.2-91.1h-61.1C97.6,43.6,91.9,49.4,91.9,56.4z\"/><g><g><path d=\"M157.3,251.5H37.9c-10.6,0-19.2-8.6-19.2-19.2V37.6c0-10.6,8.6-19.2,19.2-19.2h119.4c113.3,0,130.2,72.9,130.2,116.3C287.5,210,241.2,251.5,157.3,251.5z M37.9,24.8c-7.1,0-12.8,5.7-12.8,12.8v194.7c0,7.1,5.7,12.8,12.8,12.8h119.4c79.8,0,123.8-39.2,123.8-110.4c0-95.6-77.6-109.9-123.8-109.9H37.9z\"/></g></g></g><g><path class=\"st0\" d=\"M117.9,111.8c2.6,0,5,0.4,7.3,1.2c2.3,0.8,4.2,2.1,5.9,3.7c1.6,1.7,2.9,3.8,3.9,6.2c0.9,2.5,1.4,5.4,1.4,8.8c0,3-0.4,5.7-1.1,8.2c-0.8,2.5-1.9,4.7-3.4,6.5c-1.5,1.8-3.4,3.2-5.7,4.3c-2.3,1-5,1.6-8.1,1.6h-17.5v-40.6H117.9z M117.3,144.9c1.3,0,2.5-0.2,3.8-0.6c1.2-0.4,2.3-1.1,3.2-2.1c0.9-1,1.7-2.2,2.3-3.8c0.6-1.6,0.9-3.4,0.9-5.7c0-2-0.2-3.9-0.6-5.5c-0.4-1.6-1.1-3.1-2-4.2s-2.1-2.1-3.6-2.7c-1.5-0.6-3.3-0.9-5.5-0.9h-6.4v25.6H117.3z\"/><path class=\"st0\" d=\"M172.5,111.8v7.5h-21.4v8.7h19.7v6.9h-19.7v9.9H173v7.5h-30.8v-40.6H172.5z\"/><path class=\"st0\" d=\"M203.1,111.8l15.2,40.6H209l-3.1-9h-15.2l-3.2,9h-9l15.3-40.6H203.1z M203.6,136.7l-5.1-14.9h-0.1l-5.3,14.9H203.6z\"/><path class=\"st0\" d=\"M232.8,111.8v33.1h19.8v7.5h-28.7v-40.6H232.8z\"/></g><g><circle cx=\"58.5\" cy=\"132.1\" r=\"18.7\"/></g><path d=\"M72.6,226.2L72.6,226.2c-15.7,0-28.3-12.7-28.3-28.3v-22.1c0-7.8,6.3-14.2,14.2-14.2h0c7.8,0,14.2,6.3,14.2,14.2V226.2z\"/></g></svg>",
|
|
4058
|
+
"master_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"22\" y=\"32.17\" width=\"18\" height=\"4\" transform=\"translate(62 68.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"26.17\" width=\"18\" height=\"4\" transform=\"translate(62 56.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"20.17\" width=\"18\" height=\"4\" transform=\"translate(62 44.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"14.17\" width=\"18\" height=\"4\" transform=\"translate(62 32.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"10\" y=\"14.17\" width=\"10\" height=\"22\" transform=\"translate(30 50.33) rotate(180)\" fill=\"#484f60\"/></svg>",
|
|
4059
|
+
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
4060
|
+
"side_panel": "<svg width=\"47px\" height=\"43px\" viewBox=\"0 0 47 43\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><defs><image width=\"47\" height=\"43\" xlink:href=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC8AAAArCAYAAADottG6AAAABHNCSVQICAgIfAhkiAAAAHtJREFUWIXt18EJwCAQAEENKSNv60gVgVQYSBWpw3f6OHvQx3Kw8xcX0QNrRERJaqMDVhhPMZ5iPMV4ivEU4ynGU/bZhb3/5Xm/pc3v6yytHdPrq58RiPEUHywl9bUxnuKDpaS+NsZTUsennjapT95RSTGeYjzFeErq+AEBrixGEVJ5mAAAAABJRU5ErkJggg==\" /></defs><use xlink:href=\"#img_1\" fill=\"#FFFFFF\" stroke=\"none\" /></svg>",
|
|
4061
|
+
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
4062
|
+
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
4063
|
+
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
4064
|
+
"triangle_down": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"29.06 18.75 37.5 18.75 25 31.25 12.5 18.75 20.95 18.75 29.06 18.75\" fill=\"#484f60\"/></svg>",
|
|
4065
|
+
"triangle_up": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"20.94 31.25 12.5 31.25 25 18.75 37.5 31.25 29.05 31.25 20.94 31.25\" fill=\"#484f60\"/></svg>",
|
|
4066
|
+
"truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.75\" width=\"17.47\" height=\"12.62\" fill=\"#484f60\"/><path d=\"M37,18.11h-8V28.84H20.22a4.42,4.42,0,0,1,1.41,2.73H30a4.41,4.41,0,0,1,8.76,0H40V24.63Zm-.26,6.73H32.25a.57.57,0,0,1-.57-.57V20a.57.57,0,0,1,.57-.58h2.63a.58.58,0,0,1,.52.35L37.31,24A.58.58,0,0,1,36.78,24.84Z\" fill=\"#484f60\"/><path d=\"M14.28,28.84a4.39,4.39,0,0,0-1.42,2.73H12l-2-1.26V28.84Z\" fill=\"#484f60\"/><path d=\"M31.25,32.1a3.16,3.16,0,1,0,3.16-3.16A3.16,3.16,0,0,0,31.25,32.1Z\" fill=\"#484f60\"/><path d=\"M14.09,32.1a3.16,3.16,0,1,0,3.16-3.16A3.15,3.15,0,0,0,14.09,32.1Z\" fill=\"#484f60\"/></svg>",
|
|
4067
|
+
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>"
|
|
4068
|
+
};
|
|
3806
4069
|
|
|
3807
|
-
var
|
|
3808
|
-
function
|
|
3809
|
-
this.
|
|
3810
|
-
this.
|
|
3811
|
-
this.
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
this.deliveryMethods = [];
|
|
3821
|
-
this.deliveryMethodFields = { text: "description", value: "code" };
|
|
3822
|
-
this.addLocationPopup = false;
|
|
3823
|
-
this.changeLocationPopup = false;
|
|
3824
|
-
this.preferredDateOptions = [
|
|
3825
|
-
{ text: "NOT_AFTER", value: ">" },
|
|
3826
|
-
{ text: "NOT_BEFORE", value: "<" },
|
|
3827
|
-
{ text: "ON_DATE", value: "=" },
|
|
3828
|
-
];
|
|
3829
|
-
this.preferredDate = new Date();
|
|
3830
|
-
this.marketing = [];
|
|
3831
|
-
this.marketingFields = { text: "description", value: "code" };
|
|
3832
|
-
this.showSelectAddressDialog = false;
|
|
3833
|
-
this.showCreateAddressDialog = false;
|
|
3834
|
-
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3835
|
-
this.addresses = [];
|
|
3836
|
-
this.deliveryAddressIdx = 0;
|
|
3837
|
-
this.invoiceAddressIdx = 0;
|
|
3838
|
-
this.invoiceAddressSameAsDeliveryAddress = true;
|
|
3839
|
-
this.columns = [];
|
|
3840
|
-
// TODO: Deze velden nog opnemen in Transaction!!
|
|
3841
|
-
this.deliveryDateFinal = false;
|
|
3842
|
-
this.assemblyDate = new Date();
|
|
3843
|
-
this.totalAssemblyTime = "";
|
|
3844
|
-
this.dropshipment = false;
|
|
3845
|
-
this.columns.push({ field: "streetName", headerText: this._dictionaryService.get("STREET") }, { field: "houseNo", headerText: this._dictionaryService.get("HOUSE_NO") }, { field: "houseNoAddition", headerText: this._dictionaryService.get("HOUSE_NO_ADDITION") }, { field: "postalCode", headerText: this._dictionaryService.get("POSTAL_CODE"), allowFiltering: false }, { field: "city", headerText: this._dictionaryService.get("CITY") });
|
|
3846
|
-
}
|
|
3847
|
-
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "relation", {
|
|
3848
|
-
get: function () {
|
|
3849
|
-
return this._relation;
|
|
3850
|
-
},
|
|
3851
|
-
set: function (value) {
|
|
3852
|
-
this._relation = value;
|
|
3853
|
-
this.selectAddress();
|
|
4070
|
+
var IconCacheService = /** @class */ (function () {
|
|
4071
|
+
function IconCacheService(_sanitizer) {
|
|
4072
|
+
this._sanitizer = _sanitizer;
|
|
4073
|
+
this._iconCache = {};
|
|
4074
|
+
this.setIconCache();
|
|
4075
|
+
}
|
|
4076
|
+
Object.defineProperty(IconCacheService.prototype, "iconCache", {
|
|
4077
|
+
/**
|
|
4078
|
+
* All the icons as a large JSON object, from the all-icons.json file.
|
|
4079
|
+
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
4080
|
+
*/
|
|
4081
|
+
get: function () {
|
|
4082
|
+
return this._iconCache;
|
|
3854
4083
|
},
|
|
3855
4084
|
enumerable: false,
|
|
3856
4085
|
configurable: true
|
|
3857
4086
|
});
|
|
4087
|
+
IconCacheService.prototype.getIcon = function (iconName) {
|
|
4088
|
+
if (iconName) {
|
|
4089
|
+
return this._iconCache[iconName.toLowerCase()];
|
|
4090
|
+
}
|
|
4091
|
+
};
|
|
4092
|
+
IconCacheService.prototype.getIconAsBase64 = function (iconName) {
|
|
4093
|
+
var icon = IconSvg[iconName];
|
|
4094
|
+
var base64Data = window.btoa(icon);
|
|
4095
|
+
return this._sanitizer.bypassSecurityTrustUrl("data:image/svg+xml;base64," + base64Data);
|
|
4096
|
+
};
|
|
4097
|
+
IconCacheService.prototype.getRawIcon = function (iconName) {
|
|
4098
|
+
if (iconName) {
|
|
4099
|
+
return IconSvg[iconName.toLowerCase()];
|
|
4100
|
+
}
|
|
4101
|
+
};
|
|
4102
|
+
IconCacheService.prototype.setIconCache = function () {
|
|
4103
|
+
for (var key in IconSvg) {
|
|
4104
|
+
if (IconSvg.hasOwnProperty(key) && typeof IconSvg[key] !== "function") {
|
|
4105
|
+
this._iconCache[key.toLowerCase()] = this._sanitizer.bypassSecurityTrustHtml(IconSvg[key]);
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
};
|
|
4109
|
+
return IconCacheService;
|
|
4110
|
+
}());
|
|
4111
|
+
IconCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IconCacheService_Factory() { return new IconCacheService(i0__namespace.ɵɵinject(i1__namespace.DomSanitizer)); }, token: IconCacheService, providedIn: "root" });
|
|
4112
|
+
IconCacheService.decorators = [
|
|
4113
|
+
{ type: i0.Injectable, args: [{
|
|
4114
|
+
providedIn: "root"
|
|
4115
|
+
},] }
|
|
4116
|
+
];
|
|
4117
|
+
IconCacheService.ctorParameters = function () { return [
|
|
4118
|
+
{ type: i1.DomSanitizer }
|
|
4119
|
+
]; };
|
|
4120
|
+
|
|
4121
|
+
var CheckoutOverviewDeliveryEditComponent = /** @class */ (function () {
|
|
4122
|
+
function CheckoutOverviewDeliveryEditComponent(_dictionaryService, _formMasterService, _boFactory, service, iconService) {
|
|
4123
|
+
this._dictionaryService = _dictionaryService;
|
|
4124
|
+
this._formMasterService = _formMasterService;
|
|
4125
|
+
this._boFactory = _boFactory;
|
|
4126
|
+
this.service = service;
|
|
4127
|
+
this.iconService = iconService;
|
|
4128
|
+
this.icons = Icon;
|
|
4129
|
+
this.validSubmit = new i0.EventEmitter();
|
|
4130
|
+
this.invalidSubmit = new i0.EventEmitter();
|
|
4131
|
+
this.deliveryTypes = [
|
|
4132
|
+
{ code: '1', description: 'Bezorgen', icon: this.icons.DeliveryTruck, price: 89 },
|
|
4133
|
+
{ code: '2', description: 'Bezorgen & monteren', icon: this.icons.CalendarDay, price: 119 },
|
|
4134
|
+
{ code: '3', description: 'Meenemen', icon: this.icons.Truck },
|
|
4135
|
+
];
|
|
4136
|
+
this.deliveryOptionList = [];
|
|
4137
|
+
this.deliveryOptions = [];
|
|
4138
|
+
this.deliveryOptionFields = { text: "description", value: "code" };
|
|
4139
|
+
this.deliveryMethods = [];
|
|
4140
|
+
this.deliveryMethodFields = { text: "description", value: "code" };
|
|
4141
|
+
this.deliveryTypeIdx = 0;
|
|
4142
|
+
this.changeLocationPopup = false;
|
|
4143
|
+
this.preferredDateOptions = [
|
|
4144
|
+
{ text: "NOT_AFTER", value: ">" },
|
|
4145
|
+
{ text: "NOT_BEFORE", value: "<" },
|
|
4146
|
+
{ text: "ON_DATE", value: "=" },
|
|
4147
|
+
];
|
|
4148
|
+
this.preferredDate = new Date();
|
|
4149
|
+
this.marketing = [];
|
|
4150
|
+
this.marketingFields = { text: "description", value: "code" };
|
|
4151
|
+
// TODO: Deze velden nog opnemen in Transaction!!
|
|
4152
|
+
this.deliveryDateFinal = false;
|
|
4153
|
+
this.assemblyDate = new Date();
|
|
4154
|
+
this.totalAssemblyTime = "";
|
|
4155
|
+
this.dropshipment = false;
|
|
4156
|
+
}
|
|
3858
4157
|
CheckoutOverviewDeliveryEditComponent.prototype.showClass = function () {
|
|
3859
4158
|
return true;
|
|
3860
4159
|
};
|
|
3861
|
-
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "billingAddress", {
|
|
3862
|
-
get: function () {
|
|
3863
|
-
if (this.transaction.transactionInfo.invoiceAddress === undefined) {
|
|
3864
|
-
if (this.relation &&
|
|
3865
|
-
this.relation.firstBillingAddress &&
|
|
3866
|
-
this.relation.firstBillingAddress.isNotEmptyAddress()) {
|
|
3867
|
-
this.transaction.transactionInfo.invoiceAddress = this.relation.firstBillingAddress;
|
|
3868
|
-
this._setCountryNameToAddress(this.transaction.transactionInfo.invoiceAddress).then();
|
|
3869
|
-
}
|
|
3870
|
-
}
|
|
3871
|
-
return this.transaction.transactionInfo.invoiceAddress;
|
|
3872
|
-
},
|
|
3873
|
-
enumerable: false,
|
|
3874
|
-
configurable: true
|
|
3875
|
-
});
|
|
3876
4160
|
Object.defineProperty(CheckoutOverviewDeliveryEditComponent.prototype, "deliveryDate", {
|
|
3877
4161
|
get: function () {
|
|
3878
4162
|
if (this.transaction.transactionInfo.deliveryDate === undefined) {
|
|
@@ -3899,16 +4183,6 @@
|
|
|
3899
4183
|
enumerable: false,
|
|
3900
4184
|
configurable: true
|
|
3901
4185
|
});
|
|
3902
|
-
CheckoutOverviewDeliveryEditComponent.prototype.newRelationAddress = function () {
|
|
3903
|
-
if (this.relation) {
|
|
3904
|
-
var address = new address_bo.Address();
|
|
3905
|
-
address.addressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3906
|
-
address.startDate = new Date();
|
|
3907
|
-
address.sequence = this.relation.getNextAddressSequence();
|
|
3908
|
-
this.relation.addresses.push(address);
|
|
3909
|
-
return address;
|
|
3910
|
-
}
|
|
3911
|
-
};
|
|
3912
4186
|
CheckoutOverviewDeliveryEditComponent.prototype.ngOnInit = function () {
|
|
3913
4187
|
return __awaiter(this, void 0, void 0, function () {
|
|
3914
4188
|
var _this = this;
|
|
@@ -3928,73 +4202,9 @@
|
|
|
3928
4202
|
});
|
|
3929
4203
|
});
|
|
3930
4204
|
};
|
|
3931
|
-
CheckoutOverviewDeliveryEditComponent.prototype.showNewAddressDialog = function (deliveryAddress) {
|
|
3932
|
-
if (deliveryAddress === void 0) { deliveryAddress = true; }
|
|
3933
|
-
this.editAddressType = deliveryAddress ? addressType_enum.AddressType.DeliveryAddress : addressType_enum.AddressType.BillingAddress;
|
|
3934
|
-
this.showCreateAddressDialog = true;
|
|
3935
|
-
};
|
|
3936
|
-
CheckoutOverviewDeliveryEditComponent.prototype.showEditAddressDialog = function (deliveryAddress) {
|
|
3937
|
-
if (deliveryAddress === void 0) { deliveryAddress = true; }
|
|
3938
|
-
this.editAddressType = deliveryAddress ? addressType_enum.AddressType.DeliveryAddress : addressType_enum.AddressType.BillingAddress;
|
|
3939
|
-
this.showSelectAddressDialog = true;
|
|
3940
|
-
};
|
|
3941
|
-
CheckoutOverviewDeliveryEditComponent.prototype.setIndexDeliveryAddress = function (idx) {
|
|
3942
|
-
this.deliveryAddressIdx = idx;
|
|
3943
|
-
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3944
|
-
this.selectAddress(this.relation.addresses[idx]);
|
|
3945
|
-
};
|
|
3946
|
-
CheckoutOverviewDeliveryEditComponent.prototype.setIndexInvoiceAddress = function (idx) {
|
|
3947
|
-
this.invoiceAddressIdx = idx;
|
|
3948
|
-
this.editAddressType = addressType_enum.AddressType.BillingAddress;
|
|
3949
|
-
this.selectAddress(this.relation.addresses[idx]);
|
|
3950
|
-
};
|
|
3951
|
-
CheckoutOverviewDeliveryEditComponent.prototype.editAddress = function (addr) {
|
|
3952
|
-
this.addressToEdit = this._boFactory.makeWithRawBackendData(address_bo.Address, addr);
|
|
3953
|
-
this.showEditAddressDialog();
|
|
3954
|
-
};
|
|
3955
|
-
CheckoutOverviewDeliveryEditComponent.prototype.checkSameAddress = function (checked) {
|
|
3956
|
-
if (checked) {
|
|
3957
|
-
this.editAddressType = addressType_enum.AddressType.DeliveryAddress;
|
|
3958
|
-
this.selectAddress(this.deliveryAddress);
|
|
3959
|
-
}
|
|
3960
|
-
};
|
|
3961
4205
|
CheckoutOverviewDeliveryEditComponent.prototype.submit = function () {
|
|
3962
4206
|
return this._formMasterService.submitSlaves();
|
|
3963
4207
|
};
|
|
3964
|
-
CheckoutOverviewDeliveryEditComponent.prototype.saveNewAddress = function (address) {
|
|
3965
|
-
address.addressType = this.editAddressType;
|
|
3966
|
-
this.relation.addresses.push(address);
|
|
3967
|
-
this.selectAddress(address);
|
|
3968
|
-
this.showCreateAddressDialog = false;
|
|
3969
|
-
};
|
|
3970
|
-
CheckoutOverviewDeliveryEditComponent.prototype.saveAddress = function (address) {
|
|
3971
|
-
var idx = this.relation.addresses.findIndex(function (a) { return a.nawNr === address.nawNr; });
|
|
3972
|
-
if (idx > -1) {
|
|
3973
|
-
this.relation.addresses[idx] = this._boFactory.makeWithRawBackendData(address_bo.Address, address);
|
|
3974
|
-
}
|
|
3975
|
-
this.showSelectAddressDialog = false;
|
|
3976
|
-
};
|
|
3977
|
-
CheckoutOverviewDeliveryEditComponent.prototype.selectAddress = function (address) {
|
|
3978
|
-
var _this = this;
|
|
3979
|
-
if (!address) {
|
|
3980
|
-
address = this.service.getFirstAddress(this.relation);
|
|
3981
|
-
}
|
|
3982
|
-
if (!address) {
|
|
3983
|
-
return;
|
|
3984
|
-
}
|
|
3985
|
-
this._setCountryNameToAddress(address);
|
|
3986
|
-
if (this.editAddressType === addressType_enum.AddressType.DeliveryAddress) {
|
|
3987
|
-
this.deliveryOptionsRequest.transactionAddress = address.nawNr;
|
|
3988
|
-
this.deliveryAddress = address;
|
|
3989
|
-
this.deliveryAddressIdx = this.relation.addresses.findIndex(function (a) { return a.nawNr === _this.deliveryAddress.nawNr; });
|
|
3990
|
-
}
|
|
3991
|
-
if (this.invoiceAddressSameAsDeliveryAddress || this.editAddressType !== addressType_enum.AddressType.DeliveryAddress) {
|
|
3992
|
-
this.deliveryOptionsRequest.invoiceAddress = address.nawNr;
|
|
3993
|
-
this.invoiceAddress = address;
|
|
3994
|
-
this.invoiceAddressIdx = this.relation.addresses.findIndex(function (a) { return a.nawNr === _this.invoiceAddress.nawNr; });
|
|
3995
|
-
}
|
|
3996
|
-
this.showSelectAddressDialog = false;
|
|
3997
|
-
};
|
|
3998
4208
|
CheckoutOverviewDeliveryEditComponent.prototype.handleDeliveryMethodChange = function (deliveryMethodId) {
|
|
3999
4209
|
return __awaiter(this, void 0, void 0, function () {
|
|
4000
4210
|
var deliveryMethod;
|
|
@@ -4009,49 +4219,16 @@
|
|
|
4009
4219
|
});
|
|
4010
4220
|
});
|
|
4011
4221
|
};
|
|
4222
|
+
CheckoutOverviewDeliveryEditComponent.prototype.setIndexDeliveryType = function (idx) {
|
|
4223
|
+
this.deliveryTypeIdx = idx;
|
|
4224
|
+
// this.selectAddress(this.relation.addresses[idx]);
|
|
4225
|
+
};
|
|
4012
4226
|
CheckoutOverviewDeliveryEditComponent.prototype.selectDeliveryOptionsByDeliveryMethod = function (deliveryMethod) {
|
|
4013
4227
|
return this.deliveryOptionList.filter(function (deliveryOption) { return deliveryMethod.deliveryOptions.indexOf(deliveryOption.code) !== -1; });
|
|
4014
4228
|
};
|
|
4015
4229
|
CheckoutOverviewDeliveryEditComponent.prototype.selectDeliveryMethodById = function (deliveryMethodId) {
|
|
4016
4230
|
return this.deliveryMethods.find(function (delivery) { return delivery.code === deliveryMethodId; });
|
|
4017
4231
|
};
|
|
4018
|
-
CheckoutOverviewDeliveryEditComponent.prototype.changeAddress = function (addressType) {
|
|
4019
|
-
this._addressType = addressType;
|
|
4020
|
-
this.addresses = this.relation.addresses;
|
|
4021
|
-
this.changeLocationPopup = true;
|
|
4022
|
-
};
|
|
4023
|
-
CheckoutOverviewDeliveryEditComponent.prototype.saveNewLocation = function () {
|
|
4024
|
-
this.locationForm.submit();
|
|
4025
|
-
};
|
|
4026
|
-
CheckoutOverviewDeliveryEditComponent.prototype.saveLocation = function () {
|
|
4027
|
-
this.addLocation();
|
|
4028
|
-
this.changeLocationPopup = false;
|
|
4029
|
-
};
|
|
4030
|
-
CheckoutOverviewDeliveryEditComponent.prototype.addLocation = function () {
|
|
4031
|
-
this.updateAddress(this.newAddress).then();
|
|
4032
|
-
this.relation.addresses.push(this.newAddress);
|
|
4033
|
-
// this.service.saveRelation().then();
|
|
4034
|
-
this.addLocationPopup = false;
|
|
4035
|
-
};
|
|
4036
|
-
CheckoutOverviewDeliveryEditComponent.prototype.updateAddress = function (address) {
|
|
4037
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4038
|
-
return __generator(this, function (_a) {
|
|
4039
|
-
switch (_a.label) {
|
|
4040
|
-
case 0:
|
|
4041
|
-
if (this._addressType === addressType_enum.AddressType.DeliveryAddress) {
|
|
4042
|
-
this.transaction.transactionInfo.transactionAddress = address;
|
|
4043
|
-
}
|
|
4044
|
-
else {
|
|
4045
|
-
this.transaction.transactionInfo.invoiceAddress = address;
|
|
4046
|
-
}
|
|
4047
|
-
return [4 /*yield*/, this._setCountryNameToAddress(address)];
|
|
4048
|
-
case 1:
|
|
4049
|
-
_a.sent();
|
|
4050
|
-
return [2 /*return*/];
|
|
4051
|
-
}
|
|
4052
|
-
});
|
|
4053
|
-
});
|
|
4054
|
-
};
|
|
4055
4232
|
CheckoutOverviewDeliveryEditComponent.prototype.isDeliveryOptionChecked = function (deliveryOptionItem) {
|
|
4056
4233
|
return (this.transaction.transactionInfo.deliveryOptions.indexOf(deliveryOptionItem.code, 0) === 0);
|
|
4057
4234
|
};
|
|
@@ -4064,50 +4241,18 @@
|
|
|
4064
4241
|
CheckoutOverviewDeliveryEditComponent.prototype.onChangeLocationCancelClick = function () {
|
|
4065
4242
|
this.changeLocationPopup = false;
|
|
4066
4243
|
};
|
|
4067
|
-
CheckoutOverviewDeliveryEditComponent.prototype.onAddLocationOkClick = function () {
|
|
4068
|
-
this._addAddress(this._addressType);
|
|
4069
|
-
this.addLocationPopup = true;
|
|
4070
|
-
};
|
|
4071
|
-
CheckoutOverviewDeliveryEditComponent.prototype.handleAddressSelected = function (rows) {
|
|
4072
|
-
this.selectedAddress = (rows.find(function (x) { return x !== undefined; }));
|
|
4073
|
-
this.updateAddress(this.selectedAddress);
|
|
4074
|
-
this.changeLocationPopup = false;
|
|
4075
|
-
};
|
|
4076
4244
|
CheckoutOverviewDeliveryEditComponent.prototype.calculateDeliveryCosts = function () {
|
|
4077
4245
|
return 0;
|
|
4078
4246
|
};
|
|
4079
4247
|
CheckoutOverviewDeliveryEditComponent.prototype.calculateAssemblyCosts = function () {
|
|
4080
4248
|
return 0;
|
|
4081
4249
|
};
|
|
4082
|
-
CheckoutOverviewDeliveryEditComponent.prototype._addAddress = function (addressType) {
|
|
4083
|
-
this.newAddress = new address_bo.Address();
|
|
4084
|
-
this.newAddress.addressType = addressType;
|
|
4085
|
-
this.newAddress.startDate = new Date();
|
|
4086
|
-
this.newAddress.sequence = this.relation.getNextAddressSequence();
|
|
4087
|
-
};
|
|
4088
|
-
CheckoutOverviewDeliveryEditComponent.prototype._setCountryNameToAddress = function (address) {
|
|
4089
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
4090
|
-
var country;
|
|
4091
|
-
return __generator(this, function (_a) {
|
|
4092
|
-
switch (_a.label) {
|
|
4093
|
-
case 0:
|
|
4094
|
-
if (!(address.countryId && !address.countryName)) return [3 /*break*/, 2];
|
|
4095
|
-
return [4 /*yield*/, this.service.getCountry(address.countryId)];
|
|
4096
|
-
case 1:
|
|
4097
|
-
country = _a.sent();
|
|
4098
|
-
address.countryName = country.description;
|
|
4099
|
-
_a.label = 2;
|
|
4100
|
-
case 2: return [2 /*return*/];
|
|
4101
|
-
}
|
|
4102
|
-
});
|
|
4103
|
-
});
|
|
4104
|
-
};
|
|
4105
4250
|
return CheckoutOverviewDeliveryEditComponent;
|
|
4106
4251
|
}());
|
|
4107
4252
|
CheckoutOverviewDeliveryEditComponent.decorators = [
|
|
4108
4253
|
{ type: i0.Component, args: [{
|
|
4109
4254
|
selector: "co-checkout-overview-delivery-edit",
|
|
4110
|
-
template: "\n <co-form>\n
|
|
4255
|
+
template: "\n <div class=\"delivery-edit-content\">\n <co-form>\n <div class=\"checkout-form-wrapper\">\n <div class=\"checkout-section-wrapper\">\n <div class=\"checkout-label-column\">\n <span>01</span>\n <span class=\"label\" [textContent]=\"'DELIVERY_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-carousel-3d [tileWidth]=\"200\"\n [tileHeight]=\"100\"\n [selectedIndex]=\"deliveryTypeIdx\"\n (indexSelected)=\"setIndexDeliveryType($event)\">\n <co-delivery-type-tile #carouselItem *ngFor=\"let type of deliveryTypes; let index = index\"\n [type]=\"type\"\n [selected]=\"deliveryTypeIdx === index\"\n ></co-delivery-type-tile>\n </co-carousel-3d>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-date [(model)]=\"deliveryOptionsRequest.deliveryDate\" [placeholder]=\"'DELIVERY_DATE' | localize\" [required]=\"true\"></co-input-date>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-date [(model)]=\"deliveryOptionsRequest.preferredDeliveryDate\" [placeholder]=\"'PREFERRED_DATE' | localize\"></co-input-date>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-checkbox [(model)]=\"deliveryOptionsRequest.allowPartialDelivery\" [label]=\"'PART_DELIVERIES' | localize\"></co-input-checkbox>\n </div>\n <div class=\"checkout-data-row\">\n <co-collapsible [headerTitle]=\"'ADD_DELIVERY_OPTION' | localize\" [iconData]=\"iconService.getIcon(icons.TriangleDown)\">\n <div class=\"checkout-data-row\">\n <co-drop-down-list\n [collection]=\"deliveryMethods\"\n [fields]=\"deliveryMethodFields\"\n [required]=\"true\"\n [model]=\"deliveryOptionsRequest.deliveryMethod\"\n (modelChange)=\"handleDeliveryMethodChange($event)\"\n [placeholder]=\"'DELIVERY_METHOD' | localize\"></co-drop-down-list>\n <co-input-text [placeholder]=\"'TOTAL_ASSEMBLY_TIME' | localize\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-listbox\n [placeholder]=\"'DELIVERY_OPTIONS' | localize\"\n [(model)]=\"deliveryOptionsRequest.deliveryOptions\"\n [collection]=\"deliveryOptions\"\n [fields]=\"deliveryOptionFields\"\n [showCheckbox]=\"true\"\n ></co-input-listbox>\n </div>\n </co-collapsible>\n </div>\n <div class=\"checkout-data-row\">\n <co-collapsible [headerTitle]=\"'ADD_REMARK' | localize\" [iconData]=\"iconService.getIcon(icons.TriangleDown)\">\n <div class=\"checkout-data-row\">\n <co-input-textarea [(model)]=\"deliveryOptionsRequest.remark\" [placeholder]=\"'REMARKS' | localize\"></co-input-textarea>\n </div>\n </co-collapsible>\n </div>\n <div class=\"checkout-data-row\">\n <co-collapsible [headerTitle]=\"'ADD_REFERENCE' | localize\" [iconData]=\"iconService.getIcon(icons.TriangleDown)\">\n <div class=\"checkout-data-row\">\n <co-input-text [(model)]=\"deliveryOptionsRequest.ownReference\" [placeholder]=\"'REFERENCE' | localize\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-text [(model)]=\"deliveryOptionsRequest.relationReference\" [placeholder]=\"'REFERENCE_RELATION' | localize\"></co-input-text>\n </div>\n </co-collapsible>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-date [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'ASSEMBLY_DATE' | localize\"></co-input-date>\n </div>\n </div>\n </div>\n <div class=\"checkout-section-wrapper\">\n <div class=\"checkout-label-column\">\n <span>02</span>\n <span class=\"label\" [textContent]=\"'DOWNPAYMENT' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'DOWNPAYMENT_PERCENTAGE' | localize\"></co-input-text>\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'DOWNPAYMENT_AMOUNT' | localize\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'DOWNPAYMENT_BY_BR' | localize\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'DOWNPAYMENT_ON_DELIVERY' | localize\"></co-input-text>\n </div>\n </div>\n </div>\n <div class=\"checkout-section-wrapper\">\n <div class=\"checkout-label-column\">\n <span>03</span>\n <span class=\"label\" [textContent]=\"'ORDER_DATA' | localize\"></span>\n </div>\n <div class=\"checkout-data-column\">\n <div class=\"checkout-data-row\">\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'BRANCH' | localize\"></co-input-text>\n <co-input-text [model]=\"'NOG_NIET_GEIMPLEMENTEERD'\" [placeholder]=\"'ADMINISTRATIVE_MANAGER' | localize\"></co-input-text>\n </div>\n <div class=\"checkout-data-row\">\n <co-drop-down-list\n [collection]=\"marketing\"\n [fields]=\"marketingFields\"\n [(model)]=\"deliveryOptionsRequest.marketingCode\"\n [placeholder]=\"'MARKETING' | localize\"></co-drop-down-list>\n </div>\n <div class=\"checkout-data-row\">\n </div>\n <div class=\"checkout-data-row\">\n </div>\n </div>\n </div>\n </div>\n </co-form>\n </div>\n ",
|
|
4111
4256
|
providers: [
|
|
4112
4257
|
corecomponents_v12.FormMasterService
|
|
4113
4258
|
],
|
|
@@ -4126,17 +4271,12 @@
|
|
|
4126
4271
|
{ type: DictionaryService },
|
|
4127
4272
|
{ type: corecomponents_v12.FormMasterService },
|
|
4128
4273
|
{ type: BusinessObjectFactory },
|
|
4129
|
-
{ type: TransactionService }
|
|
4274
|
+
{ type: TransactionService },
|
|
4275
|
+
{ type: IconCacheService }
|
|
4130
4276
|
]; };
|
|
4131
4277
|
CheckoutOverviewDeliveryEditComponent.propDecorators = {
|
|
4132
|
-
deliveryForm: [{ type: i0.ViewChild, args: ["deliveryForm", { read: corecomponents_v12.FormComponent },] }],
|
|
4133
|
-
locationForm: [{ type: i0.ViewChild, args: ["locationForm", { read: corecomponents_v12.FormComponent },] }],
|
|
4134
|
-
changeLocationDialog: [{ type: i0.ViewChild, args: ["changeLocationDialog",] }],
|
|
4135
|
-
addressGrid: [{ type: i0.ViewChild, args: ["addressGrid",] }],
|
|
4136
|
-
relation: [{ type: i0.Input }],
|
|
4137
4278
|
deliveryOptionsRequest: [{ type: i0.Input }],
|
|
4138
4279
|
transaction: [{ type: i0.Input }],
|
|
4139
|
-
relationChange: [{ type: i0.Output }],
|
|
4140
4280
|
validSubmit: [{ type: i0.Output }],
|
|
4141
4281
|
invalidSubmit: [{ type: i0.Output }],
|
|
4142
4282
|
showClass: [{ type: i0.HostBinding, args: ["class.co-checkout-overview-delivery-edit",] }]
|
|
@@ -4182,7 +4322,7 @@
|
|
|
4182
4322
|
CheckOutRelationSuggestionsListComponent.decorators = [
|
|
4183
4323
|
{ type: i0.Component, args: [{
|
|
4184
4324
|
selector: "co-checkout-relation-suggestions-list",
|
|
4185
|
-
template: "\n <div class=\"flex-column items-wrapper\">\n <co-checkout-relation-suggestions-list-item *ngFor=\"let suggestion of suggestions\" [suggestion]=\"suggestion\"\n (selectionSelected)=\"suggestionSelected.emit(
|
|
4325
|
+
template: "\n <div class=\"flex-column items-wrapper\">\n <co-checkout-relation-suggestions-list-item *ngFor=\"let suggestion of suggestions\" [suggestion]=\"suggestion\"\n (selectionSelected)=\"suggestionSelected.emit($event)\"></co-checkout-relation-suggestions-list-item>\n <span *ngIf=\"suggestions?.length === 0\" class=\"no-results\" localize=\"NO_RESULTS_FOUND\"></span>\n </div>\n ",
|
|
4186
4326
|
encapsulation: i0.ViewEncapsulation.None
|
|
4187
4327
|
},] }
|
|
4188
4328
|
];
|
|
@@ -4293,73 +4433,6 @@
|
|
|
4293
4433
|
showClass: [{ type: i0.HostBinding, args: ['class.co-image-display',] }]
|
|
4294
4434
|
};
|
|
4295
4435
|
|
|
4296
|
-
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
4297
|
-
var IconSvg = {
|
|
4298
|
-
"arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
|
|
4299
|
-
"arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
|
|
4300
|
-
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
4301
|
-
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
4302
|
-
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
4303
|
-
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
4304
|
-
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
4305
|
-
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
4306
|
-
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
4307
|
-
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
4308
|
-
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
4309
|
-
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>"
|
|
4310
|
-
};
|
|
4311
|
-
|
|
4312
|
-
var IconCacheService = /** @class */ (function () {
|
|
4313
|
-
function IconCacheService(_sanitizer) {
|
|
4314
|
-
this._sanitizer = _sanitizer;
|
|
4315
|
-
this._iconCache = {};
|
|
4316
|
-
this.setIconCache();
|
|
4317
|
-
}
|
|
4318
|
-
Object.defineProperty(IconCacheService.prototype, "iconCache", {
|
|
4319
|
-
/**
|
|
4320
|
-
* All the icons as a large JSON object, from the all-icons.json file.
|
|
4321
|
-
* The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
|
|
4322
|
-
*/
|
|
4323
|
-
get: function () {
|
|
4324
|
-
return this._iconCache;
|
|
4325
|
-
},
|
|
4326
|
-
enumerable: false,
|
|
4327
|
-
configurable: true
|
|
4328
|
-
});
|
|
4329
|
-
IconCacheService.prototype.getIcon = function (iconName) {
|
|
4330
|
-
if (iconName) {
|
|
4331
|
-
return this._iconCache[iconName.toLowerCase()];
|
|
4332
|
-
}
|
|
4333
|
-
};
|
|
4334
|
-
IconCacheService.prototype.getIconAsBase64 = function (iconName) {
|
|
4335
|
-
var icon = IconSvg[iconName];
|
|
4336
|
-
var base64Data = window.btoa(icon);
|
|
4337
|
-
return this._sanitizer.bypassSecurityTrustUrl("data:image/svg+xml;base64," + base64Data);
|
|
4338
|
-
};
|
|
4339
|
-
IconCacheService.prototype.getRawIcon = function (iconName) {
|
|
4340
|
-
if (iconName) {
|
|
4341
|
-
return IconSvg[iconName.toLowerCase()];
|
|
4342
|
-
}
|
|
4343
|
-
};
|
|
4344
|
-
IconCacheService.prototype.setIconCache = function () {
|
|
4345
|
-
for (var key in IconSvg) {
|
|
4346
|
-
if (IconSvg.hasOwnProperty(key) && typeof IconSvg[key] !== "function") {
|
|
4347
|
-
this._iconCache[key.toLowerCase()] = this._sanitizer.bypassSecurityTrustHtml(IconSvg[key]);
|
|
4348
|
-
}
|
|
4349
|
-
}
|
|
4350
|
-
};
|
|
4351
|
-
return IconCacheService;
|
|
4352
|
-
}());
|
|
4353
|
-
IconCacheService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IconCacheService_Factory() { return new IconCacheService(i0__namespace.ɵɵinject(i1__namespace.DomSanitizer)); }, token: IconCacheService, providedIn: "root" });
|
|
4354
|
-
IconCacheService.decorators = [
|
|
4355
|
-
{ type: i0.Injectable, args: [{
|
|
4356
|
-
providedIn: "root"
|
|
4357
|
-
},] }
|
|
4358
|
-
];
|
|
4359
|
-
IconCacheService.ctorParameters = function () { return [
|
|
4360
|
-
{ type: i1.DomSanitizer }
|
|
4361
|
-
]; };
|
|
4362
|
-
|
|
4363
4436
|
var IconComponent = /** @class */ (function () {
|
|
4364
4437
|
function IconComponent(_iconCacheService) {
|
|
4365
4438
|
this._iconCacheService = _iconCacheService;
|
|
@@ -4422,7 +4495,8 @@
|
|
|
4422
4495
|
CustomerGroupsComponent.decorators = [
|
|
4423
4496
|
{ type: i0.Component, args: [{
|
|
4424
4497
|
selector: "relation-customer-groups",
|
|
4425
|
-
template: "\n <co-input-combo-box [model]=\"model\"\n (modelChange)=\"modelChange.emit($event)\"\n [collection]=\"customerGroups\"\n [fields]=\"fields\"\n [placeholder]=\"'CUSTOMER_GROUP'| localize\"\n [required]=\"required\"\n ></co-input-combo-box>\n "
|
|
4498
|
+
template: "\n <co-input-combo-box [model]=\"model\"\n (modelChange)=\"modelChange.emit($event)\"\n [collection]=\"customerGroups\"\n [fields]=\"fields\"\n [placeholder]=\"'CUSTOMER_GROUP' | localize\"\n [required]=\"required\"\n ></co-input-combo-box>\n ",
|
|
4499
|
+
styles: [":host{display:flex}:host .co-input-combo-box{width:100%}\n"]
|
|
4426
4500
|
},] }
|
|
4427
4501
|
];
|
|
4428
4502
|
CustomerGroupsComponent.ctorParameters = function () { return [
|
|
@@ -5012,6 +5086,7 @@
|
|
|
5012
5086
|
this.icons = Icon;
|
|
5013
5087
|
this.actAsAddTile = false;
|
|
5014
5088
|
this.selected = false;
|
|
5089
|
+
this.selectedChange = new i0.EventEmitter();
|
|
5015
5090
|
this.addAddressClicked = new i0.EventEmitter();
|
|
5016
5091
|
this.editAddressClicked = new i0.EventEmitter();
|
|
5017
5092
|
}
|
|
@@ -5029,18 +5104,7 @@
|
|
|
5029
5104
|
RelationAddressTileComponent.decorators = [
|
|
5030
5105
|
{ type: i0.Component, args: [{
|
|
5031
5106
|
selector: "co-relation-address-tile",
|
|
5032
|
-
template: "\n <ng-container *ngIf=\"!actAsAddTile\">\n <
|
|
5033
|
-
providers: [
|
|
5034
|
-
corecomponents_v12.FormMasterService
|
|
5035
|
-
],
|
|
5036
|
-
animations: [
|
|
5037
|
-
animations.trigger("showHideNavigationButton", [
|
|
5038
|
-
animations.state("void", animations.style({ opacity: 0 })),
|
|
5039
|
-
animations.state("*", animations.style({ opacity: 1 })),
|
|
5040
|
-
animations.transition("void => *", animations.animate("200ms ease-in-out")),
|
|
5041
|
-
animations.transition("* => void", animations.animate("200ms ease-out"))
|
|
5042
|
-
])
|
|
5043
|
-
],
|
|
5107
|
+
template: "\n <ng-container *ngIf=\"!actAsAddTile\">\n <co-tile [selected]=\"selected\" (selectedChange)=\"selectedChange.emit($event)\">\n <div class=\"relation-content-wrapper\">\n <span class=\"relation-address-type\" [textContent]=\"address.displayType | localize\"></span>\n <span class=\"relation-address-name\" [textContent]=\"address.addressName\"></span>\n <span class=\"relation-address-address\" [textContent]=\"address.displayAddress\"></span>\n <span class=\"relation-address-postal\" [textContent]=\"address.displayPostal\"></span>\n <span class=\"relation-address-country\" [textContent]=\"address.displayCountry\"></span>\n </div>\n <div class=\"relation-address-edit\" (click)=\"handleEditAddressClick($event)\">\n <icon class=\"relation-address-edit-icon\" [icon]=\"icons.EditPencil\"></icon>\n </div>\n </co-tile>\n </ng-container>\n <ng-container *ngIf=\"actAsAddTile\">\n <co-tile (click)=\"addAddressClicked.emit()\">\n <div class=\"relation-content-wrapper\">\n <icon class=\"relation-address-icon\" [icon]=\"icons.PlusRound\"></icon>\n <span [textContent]=\"'ADDRESS_ADD' | localize\"></span>\n </div>\n </co-tile>\n </ng-container>\n ",
|
|
5044
5108
|
encapsulation: i0.ViewEncapsulation.None
|
|
5045
5109
|
},] }
|
|
5046
5110
|
];
|
|
@@ -5048,11 +5112,54 @@
|
|
|
5048
5112
|
showClass: [{ type: i0.HostBinding, args: ["class.co-relation-address-tile",] }],
|
|
5049
5113
|
address: [{ type: i0.Input }],
|
|
5050
5114
|
actAsAddTile: [{ type: i0.Input }],
|
|
5051
|
-
selected: [{ type: i0.
|
|
5115
|
+
selected: [{ type: i0.Input }],
|
|
5116
|
+
selectedChange: [{ type: i0.Output }],
|
|
5052
5117
|
addAddressClicked: [{ type: i0.Output }],
|
|
5053
5118
|
editAddressClicked: [{ type: i0.Output }]
|
|
5054
5119
|
};
|
|
5055
5120
|
|
|
5121
|
+
var TileComponent = /** @class */ (function () {
|
|
5122
|
+
function TileComponent() {
|
|
5123
|
+
this.selected = false;
|
|
5124
|
+
this.selectedChange = new i0.EventEmitter();
|
|
5125
|
+
}
|
|
5126
|
+
TileComponent.prototype.showClass = function () {
|
|
5127
|
+
return true;
|
|
5128
|
+
};
|
|
5129
|
+
return TileComponent;
|
|
5130
|
+
}());
|
|
5131
|
+
TileComponent.decorators = [
|
|
5132
|
+
{ type: i0.Component, args: [{
|
|
5133
|
+
selector: "co-tile",
|
|
5134
|
+
template: "\n <div class=\"co-tile-wrapper\" (click)=\"selectedChange.emit(selected)\">\n <div class=\"co-tile-select-wrapper\">\n <co-input-radio-button [checked]=\"selected\" (modelChange)=\"selectedChange.emit($event)\"></co-input-radio-button>\n </div>\n <div class=\"co-tile-content-wrapper\">\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
5135
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
5136
|
+
},] }
|
|
5137
|
+
];
|
|
5138
|
+
TileComponent.propDecorators = {
|
|
5139
|
+
selected: [{ type: i0.HostBinding, args: ['class.selected',] }, { type: i0.Input }],
|
|
5140
|
+
selectedChange: [{ type: i0.Output }],
|
|
5141
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-tile",] }]
|
|
5142
|
+
};
|
|
5143
|
+
|
|
5144
|
+
var TileModule = /** @class */ (function () {
|
|
5145
|
+
function TileModule() {
|
|
5146
|
+
}
|
|
5147
|
+
return TileModule;
|
|
5148
|
+
}());
|
|
5149
|
+
TileModule.decorators = [
|
|
5150
|
+
{ type: i0.NgModule, args: [{
|
|
5151
|
+
imports: [
|
|
5152
|
+
corecomponents_v12.InputRadioButtonModule
|
|
5153
|
+
],
|
|
5154
|
+
declarations: [
|
|
5155
|
+
TileComponent
|
|
5156
|
+
],
|
|
5157
|
+
exports: [
|
|
5158
|
+
TileComponent
|
|
5159
|
+
]
|
|
5160
|
+
},] }
|
|
5161
|
+
];
|
|
5162
|
+
|
|
5056
5163
|
var RelationAddressTileModule = /** @class */ (function () {
|
|
5057
5164
|
function RelationAddressTileModule() {
|
|
5058
5165
|
}
|
|
@@ -5068,7 +5175,8 @@
|
|
|
5068
5175
|
RelationAddressModule,
|
|
5069
5176
|
corecomponents_v12.ButtonModule,
|
|
5070
5177
|
corecomponents_v12.FormModule,
|
|
5071
|
-
PipeModule
|
|
5178
|
+
PipeModule,
|
|
5179
|
+
TileModule
|
|
5072
5180
|
],
|
|
5073
5181
|
declarations: [
|
|
5074
5182
|
RelationAddressTileComponent
|
|
@@ -5110,8 +5218,8 @@
|
|
|
5110
5218
|
var StepperStepComponent = /** @class */ (function () {
|
|
5111
5219
|
function StepperStepComponent() {
|
|
5112
5220
|
this.index = 0;
|
|
5113
|
-
this.validateStep = new i0.EventEmitter();
|
|
5114
5221
|
this.show = false;
|
|
5222
|
+
this.validateStep = new i0.EventEmitter();
|
|
5115
5223
|
this._completed = false;
|
|
5116
5224
|
this.onComplete = function (complete) { };
|
|
5117
5225
|
}
|
|
@@ -5142,19 +5250,37 @@
|
|
|
5142
5250
|
index: [{ type: i0.Input }],
|
|
5143
5251
|
label: [{ type: i0.Input }],
|
|
5144
5252
|
completed: [{ type: i0.Input }],
|
|
5253
|
+
show: [{ type: i0.HostBinding, args: ['class.show',] }, { type: i0.Input }],
|
|
5145
5254
|
validateStep: [{ type: i0.Output }],
|
|
5146
|
-
show: [{ type: i0.Input }],
|
|
5147
5255
|
showClass: [{ type: i0.HostBinding, args: ["class.co-stepper-step",] }]
|
|
5148
5256
|
};
|
|
5149
5257
|
|
|
5150
5258
|
var StepperComponent = /** @class */ (function () {
|
|
5151
5259
|
function StepperComponent() {
|
|
5260
|
+
this.icons = Icon;
|
|
5152
5261
|
this.finishStep = new i0.EventEmitter();
|
|
5153
|
-
this.
|
|
5262
|
+
this.firstStep = 0;
|
|
5263
|
+
this.truckPosition = 0;
|
|
5264
|
+
this._activeStep = 0;
|
|
5154
5265
|
}
|
|
5155
5266
|
Object.defineProperty(StepperComponent.prototype, "content", {
|
|
5156
5267
|
set: function (children) {
|
|
5268
|
+
var _this = this;
|
|
5157
5269
|
this.stepChildren = children.toArray();
|
|
5270
|
+
if (this.stepChildren) {
|
|
5271
|
+
setTimeout(function () {
|
|
5272
|
+
_this._setActive(0);
|
|
5273
|
+
});
|
|
5274
|
+
}
|
|
5275
|
+
},
|
|
5276
|
+
enumerable: false,
|
|
5277
|
+
configurable: true
|
|
5278
|
+
});
|
|
5279
|
+
Object.defineProperty(StepperComponent.prototype, "child", {
|
|
5280
|
+
set: function (child) {
|
|
5281
|
+
if (child && child.nativeElement) {
|
|
5282
|
+
this._deliveryTruckClientRect = child.nativeElement.getBoundingClientRect();
|
|
5283
|
+
}
|
|
5158
5284
|
},
|
|
5159
5285
|
enumerable: false,
|
|
5160
5286
|
configurable: true
|
|
@@ -5175,14 +5301,14 @@
|
|
|
5175
5301
|
});
|
|
5176
5302
|
Object.defineProperty(StepperComponent.prototype, "canPrevious", {
|
|
5177
5303
|
get: function () {
|
|
5178
|
-
return this.activeStep
|
|
5304
|
+
return this.activeStep > this.firstStep;
|
|
5179
5305
|
},
|
|
5180
5306
|
enumerable: false,
|
|
5181
5307
|
configurable: true
|
|
5182
5308
|
});
|
|
5183
5309
|
Object.defineProperty(StepperComponent.prototype, "canNext", {
|
|
5184
5310
|
get: function () {
|
|
5185
|
-
return this.activeStep
|
|
5311
|
+
return this.activeStep < this.lastStep;
|
|
5186
5312
|
},
|
|
5187
5313
|
enumerable: false,
|
|
5188
5314
|
configurable: true
|
|
@@ -5194,16 +5320,19 @@
|
|
|
5194
5320
|
enumerable: false,
|
|
5195
5321
|
configurable: true
|
|
5196
5322
|
});
|
|
5197
|
-
StepperComponent.prototype
|
|
5198
|
-
|
|
5199
|
-
this.
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5323
|
+
Object.defineProperty(StepperComponent.prototype, "activeStep", {
|
|
5324
|
+
get: function () {
|
|
5325
|
+
return this._activeStep;
|
|
5326
|
+
},
|
|
5327
|
+
set: function (value) {
|
|
5328
|
+
this._activeStep = value;
|
|
5329
|
+
this.truckPosition = (100 / this.stepChildren.length) * (this._activeStep + 1);
|
|
5330
|
+
},
|
|
5331
|
+
enumerable: false,
|
|
5332
|
+
configurable: true
|
|
5333
|
+
});
|
|
5203
5334
|
StepperComponent.prototype.goto = function (idx) {
|
|
5204
|
-
|
|
5205
|
-
var currentIndex = this.stepChildren.findIndex(function (s) { return s.index === _this.activeStep; });
|
|
5206
|
-
if (idx > currentIndex) {
|
|
5335
|
+
if (idx > this.activeStep) {
|
|
5207
5336
|
this._validateCurrentStep(idx);
|
|
5208
5337
|
}
|
|
5209
5338
|
else {
|
|
@@ -5211,24 +5340,19 @@
|
|
|
5211
5340
|
}
|
|
5212
5341
|
};
|
|
5213
5342
|
StepperComponent.prototype.gotoPrevious = function () {
|
|
5214
|
-
|
|
5215
|
-
var currentIndex = this.stepChildren.findIndex(function (s) { return s.index === _this.activeStep; });
|
|
5216
|
-
this._setActive(currentIndex - 1);
|
|
5343
|
+
this._setActive(this.activeStep - 1);
|
|
5217
5344
|
};
|
|
5218
5345
|
StepperComponent.prototype.gotoNext = function () {
|
|
5219
5346
|
this._validateCurrentStep();
|
|
5220
5347
|
};
|
|
5221
5348
|
StepperComponent.prototype._validateCurrentStep = function (nextStep) {
|
|
5222
5349
|
var _this = this;
|
|
5223
|
-
|
|
5224
|
-
var currentStepIdx = this.stepChildren.findIndex(function (s) { return s.index === _this.activeStep; });
|
|
5225
|
-
currentStep.onComplete = function (complete) {
|
|
5226
|
-
_this.steps[currentStepIdx].complete = complete;
|
|
5350
|
+
this.stepChildren[this.activeStep].onComplete = function (complete) {
|
|
5227
5351
|
if (complete) {
|
|
5228
|
-
_this._setActive(nextStep === undefined ?
|
|
5352
|
+
_this._setActive(nextStep === undefined ? _this.activeStep + 1 : nextStep);
|
|
5229
5353
|
}
|
|
5230
5354
|
};
|
|
5231
|
-
|
|
5355
|
+
this.stepChildren[this.activeStep].validateStep.next();
|
|
5232
5356
|
};
|
|
5233
5357
|
StepperComponent.prototype._setActive = function (idx) {
|
|
5234
5358
|
var prevStep = this.stepChildren[idx - 1];
|
|
@@ -5236,38 +5360,25 @@
|
|
|
5236
5360
|
if (this.stepChildren) {
|
|
5237
5361
|
this.stepChildren.map(function (s) { return s.show = false; });
|
|
5238
5362
|
this.stepChildren[idx].show = true;
|
|
5239
|
-
this.activeStep =
|
|
5363
|
+
this.activeStep = idx;
|
|
5240
5364
|
}
|
|
5241
5365
|
}
|
|
5242
5366
|
};
|
|
5243
5367
|
StepperComponent.prototype._prepareSteps = function () {
|
|
5244
|
-
this.
|
|
5245
|
-
for (var i = 0; i < this.stepChildren.length; i++) {
|
|
5246
|
-
var step = this.stepChildren[i];
|
|
5247
|
-
this.steps.push({
|
|
5248
|
-
index: step.index,
|
|
5249
|
-
description: step.label,
|
|
5250
|
-
complete: step.completed
|
|
5251
|
-
});
|
|
5252
|
-
if (i === 0) {
|
|
5253
|
-
this.firstStep = step.index;
|
|
5254
|
-
}
|
|
5255
|
-
if (i === this.stepChildren.length - 1) {
|
|
5256
|
-
this.lastStep = step.index;
|
|
5257
|
-
}
|
|
5258
|
-
}
|
|
5368
|
+
this.lastStep = this.stepChildren.length - 1;
|
|
5259
5369
|
};
|
|
5260
5370
|
return StepperComponent;
|
|
5261
5371
|
}());
|
|
5262
5372
|
StepperComponent.decorators = [
|
|
5263
5373
|
{ type: i0.Component, args: [{
|
|
5264
5374
|
selector: "co-stepper",
|
|
5265
|
-
template: "\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <div class=\"co-stepper-content\">\n <div class=\"stepper-step\" *ngFor=\"let step of
|
|
5375
|
+
template: "\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <div class=\"co-stepper-content\">\n <div class=\"stepper-step\" [class.last]=\"index === stepChildren.length - 1\" *ngFor=\"let step of stepChildren; let index = index\"\n [class.active]=\"index === activeStep\"\n [class.complete]=\"step.completed\"\n (click)=\"goto(index)\">\n <div class=\"description\" [textContent]=\"step.label\"></div>\n <div class=\"index\"></div>\n </div>\n <icon #deliveryTruck *ngIf=\"activeStep !== lastStep\" class=\"delivery-truck\" [icon]=\"icons.DeliveryTruck\" [style.left.%]=\"truckPosition\"></icon>\n </div>\n <div class=\"co-stepper-content-wrapper\">\n <ng-content></ng-content>\n </div>\n <ng-container [ngTemplateOutlet]=\"buttonTemplate\"></ng-container>\n <ng-template #buttonTemplate>\n <div class=\"stepper-button-wrapper\">\n <co-button [label]=\"'BACK' | localize\" *ngIf=\"canPrevious\" (click)=\"gotoPrevious()\"></co-button>\n <co-button [label]=\"'CONTINUE' | localize\" *ngIf=\"canNext\" (click)=\"gotoNext()\"></co-button>\n <co-button [label]=\"finishButtonLabel\" *ngIf=\"finished\" (click)=\"finishStep.emit()\"></co-button>\n </div>\n </ng-template>\n ",
|
|
5266
5376
|
encapsulation: i0.ViewEncapsulation.None
|
|
5267
5377
|
},] }
|
|
5268
5378
|
];
|
|
5269
5379
|
StepperComponent.propDecorators = {
|
|
5270
5380
|
content: [{ type: i0.ContentChildren, args: [StepperStepComponent,] }],
|
|
5381
|
+
child: [{ type: i0.ViewChild, args: ['deliveryTruck', { read: i0.ElementRef },] }],
|
|
5271
5382
|
finishButtonLabel: [{ type: i0.Input }],
|
|
5272
5383
|
finishStep: [{ type: i0.Output }],
|
|
5273
5384
|
showClass: [{ type: i0.HostBinding, args: ["class.co-stepper",] }]
|
|
@@ -5283,7 +5394,9 @@
|
|
|
5283
5394
|
imports: [
|
|
5284
5395
|
common.CommonModule,
|
|
5285
5396
|
corecomponents_v12.ButtonModule,
|
|
5286
|
-
PipeModule
|
|
5397
|
+
PipeModule,
|
|
5398
|
+
corecomponents_v12.IconModule,
|
|
5399
|
+
CoreModule
|
|
5287
5400
|
],
|
|
5288
5401
|
declarations: [
|
|
5289
5402
|
StepperComponent,
|
|
@@ -5296,183 +5409,50 @@
|
|
|
5296
5409
|
},] }
|
|
5297
5410
|
];
|
|
5298
5411
|
|
|
5299
|
-
var
|
|
5300
|
-
function
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
}());
|
|
5304
|
-
CheckoutModule.decorators = [
|
|
5305
|
-
{ type: i0.NgModule, args: [{
|
|
5306
|
-
imports: [
|
|
5307
|
-
CoreModule,
|
|
5308
|
-
common.CommonModule,
|
|
5309
|
-
corecomponents_v12.IconModule,
|
|
5310
|
-
corecomponents_v12.InputTextModule,
|
|
5311
|
-
corecomponents_v12.InputCheckboxModule,
|
|
5312
|
-
corecomponents_v12.InputRadioButtonModule,
|
|
5313
|
-
corecomponents_v12.FormModule,
|
|
5314
|
-
corecomponents_v12.InputComboBoxModule,
|
|
5315
|
-
corecomponents_v12.InputDatePickerModule,
|
|
5316
|
-
corecomponents_v12.InputNumberPickerModule,
|
|
5317
|
-
corecomponents_v12.CoDialogModule,
|
|
5318
|
-
corecomponents_v12.CoDialogPromptModule,
|
|
5319
|
-
corecomponents_v12.ButtonModule,
|
|
5320
|
-
flexLayout.FlexModule,
|
|
5321
|
-
corecomponents_v12.MultiSelectListModule,
|
|
5322
|
-
corecomponents_v12.DropDownModule,
|
|
5323
|
-
corecomponents_v12.PopupModule.forRoot(),
|
|
5324
|
-
corecomponents_v12.CoSidebarModule,
|
|
5325
|
-
corecomponents_v12.CoGridModule,
|
|
5326
|
-
forms.ReactiveFormsModule,
|
|
5327
|
-
forms.FormsModule,
|
|
5328
|
-
RelationAddressModule,
|
|
5329
|
-
RelationAddressSelectModule,
|
|
5330
|
-
RelationAddressTileModule,
|
|
5331
|
-
corecomponents_v12.CoRichTextEditorModule,
|
|
5332
|
-
corecomponents_v12.Carousel3dModule,
|
|
5333
|
-
corecomponents_v12.InputTextareaModule,
|
|
5334
|
-
corecomponents_v12.InputListboxModule,
|
|
5335
|
-
PipeModule,
|
|
5336
|
-
StepperModule,
|
|
5337
|
-
],
|
|
5338
|
-
declarations: [
|
|
5339
|
-
CheckoutOverviewRelationEditComponent,
|
|
5340
|
-
CheckoutOverviewDeliveryEditComponent,
|
|
5341
|
-
CheckoutOverviewDeliveryAddressComponent,
|
|
5342
|
-
CheckOutRelationSuggestionsListComponent,
|
|
5343
|
-
CheckOutRelationSuggestionsListItemComponent,
|
|
5344
|
-
CheckoutLoginComponent,
|
|
5345
|
-
CheckoutComponent,
|
|
5346
|
-
],
|
|
5347
|
-
providers: [
|
|
5348
|
-
DictionaryService,
|
|
5349
|
-
OptionsService
|
|
5350
|
-
],
|
|
5351
|
-
entryComponents: [
|
|
5352
|
-
CheckoutComponent
|
|
5353
|
-
],
|
|
5354
|
-
exports: [CheckoutComponent],
|
|
5355
|
-
bootstrap: [CheckoutComponent]
|
|
5356
|
-
},] }
|
|
5357
|
-
];
|
|
5358
|
-
|
|
5359
|
-
var ShoppingCartComponent = /** @class */ (function () {
|
|
5360
|
-
function ShoppingCartComponent(service, _dictionary) {
|
|
5361
|
-
var _this = this;
|
|
5362
|
-
this.service = service;
|
|
5363
|
-
this._dictionary = _dictionary;
|
|
5364
|
-
this.closeCart = new i0.EventEmitter();
|
|
5365
|
-
this.checkout = new i0.EventEmitter();
|
|
5366
|
-
this.transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
5367
|
-
this._subs = [];
|
|
5368
|
-
this._subs.push(this.service.transactionUpdated.subscribe(function (transaction) {
|
|
5369
|
-
if (transaction) {
|
|
5370
|
-
_this.transaction = transaction;
|
|
5371
|
-
}
|
|
5372
|
-
}));
|
|
5412
|
+
var TransactionTotalsComponent = /** @class */ (function () {
|
|
5413
|
+
function TransactionTotalsComponent() {
|
|
5414
|
+
this.showDiscount = false;
|
|
5415
|
+
this.discountClick = new i0.EventEmitter();
|
|
5373
5416
|
}
|
|
5374
|
-
|
|
5417
|
+
TransactionTotalsComponent.prototype.showClass = function () {
|
|
5375
5418
|
return true;
|
|
5376
5419
|
};
|
|
5377
|
-
|
|
5378
|
-
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
5379
|
-
};
|
|
5380
|
-
return ShoppingCartComponent;
|
|
5420
|
+
return TransactionTotalsComponent;
|
|
5381
5421
|
}());
|
|
5382
|
-
|
|
5422
|
+
TransactionTotalsComponent.decorators = [
|
|
5383
5423
|
{ type: i0.Component, args: [{
|
|
5384
|
-
selector: "co-
|
|
5385
|
-
template: "\n <div class=\"
|
|
5424
|
+
selector: "co-transaction-totals",
|
|
5425
|
+
template: "\n <div class=\"transaction-totals-wrapper\">\n <span class=\"totals-gross label\" [textContent]=\"'ORDER_GROSS' | localize\"></span>\n <span class=\"totals-gross value\" [textContent]=\"totals?.grossAmount | coCurrency: true\"></span>\n <ng-container *ngIf=\"totals?.discountAmount\">\n <span class=\"totals-discount-amount label\" [textContent]=\"'DISCOUNT_AMOUNT' | localize\"></span>\n <span class=\"totals-discount-amount value\" [textContent]=\"totals?.discountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"totals?.transactionDiscountAmount\">\n <span class=\"totals-discount label\" [textContent]=\"'TRANSACTION_DISCOUNT' | localize\"></span>\n <span class=\"totals-discount value\" [textContent]=\"totals?.transactionDiscountAmount | coCurrency: true\"></span>\n </ng-container>\n <ng-container *ngIf=\"totals?.transactionDiscountPercentage\">\n <span class=\"totals-discount-percentage label\" [textContent]=\"'TRANSACTION_DISCOUNT_PERC' | localize\"></span>\n <span class=\"totals-discount-percentage value\" [textContent]=\"totals?.transactionDiscountPercentage.toString() | append:' %'\"></span>\n </ng-container>\n <span class=\"totals-net label\" [textContent]=\"'ORDER_NET'| localize\"></span>\n <span class=\"totals-net value\" [textContent]=\"totals?.netAmount | coCurrency: true\"></span>\n <a *ngIf=\"showDiscount\" class=\"add-discount label\" (click)=\"discountClick.emit($event)\" [textContent]=\"'ADD_DISCOUNTS' | localize\"></a>\n </div>\n ",
|
|
5386
5426
|
encapsulation: i0.ViewEncapsulation.None
|
|
5387
5427
|
},] }
|
|
5388
5428
|
];
|
|
5389
|
-
|
|
5390
|
-
{ type:
|
|
5391
|
-
{ type:
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
closeCart: [{ type: i0.Output }],
|
|
5395
|
-
checkout: [{ type: i0.Output }],
|
|
5396
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-shopping-cart",] }]
|
|
5429
|
+
TransactionTotalsComponent.propDecorators = {
|
|
5430
|
+
totals: [{ type: i0.Input }],
|
|
5431
|
+
showDiscount: [{ type: i0.Input }],
|
|
5432
|
+
discountClick: [{ type: i0.Output }],
|
|
5433
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-totals",] }]
|
|
5397
5434
|
};
|
|
5398
5435
|
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
(function (ContentViewMode) {
|
|
5402
|
-
ContentViewMode[ContentViewMode["List"] = 0] = "List";
|
|
5403
|
-
ContentViewMode[ContentViewMode["Grid"] = 1] = "Grid";
|
|
5404
|
-
ContentViewMode[ContentViewMode["GridExpanded"] = 2] = "GridExpanded";
|
|
5405
|
-
ContentViewMode[ContentViewMode["MasterDetail"] = 3] = "MasterDetail";
|
|
5406
|
-
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
5407
|
-
})(ContentViewMode || (ContentViewMode = {}));
|
|
5408
|
-
|
|
5409
|
-
var TransactionComponent = /** @class */ (function () {
|
|
5410
|
-
function TransactionComponent(iconCacheService, _service) {
|
|
5411
|
-
var _this = this;
|
|
5412
|
-
this.iconCacheService = iconCacheService;
|
|
5413
|
-
this._service = _service;
|
|
5414
|
-
this.viewModes = ContentViewMode;
|
|
5415
|
-
this.icons = Icon;
|
|
5416
|
-
this.transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
5417
|
-
this.showHeader = true;
|
|
5418
|
-
this.activeViewMode = ContentViewMode.List;
|
|
5419
|
-
this.showDiscountsSidebar = false;
|
|
5420
|
-
this._subs = [];
|
|
5421
|
-
this._subs.push(this._service.transactionUpdated.subscribe(function (transaction) { return __awaiter(_this, void 0, void 0, function () {
|
|
5422
|
-
return __generator(this, function (_a) {
|
|
5423
|
-
this.transaction = transaction;
|
|
5424
|
-
return [2 /*return*/];
|
|
5425
|
-
});
|
|
5426
|
-
}); }));
|
|
5436
|
+
var TransactionTotalsModule = /** @class */ (function () {
|
|
5437
|
+
function TransactionTotalsModule() {
|
|
5427
5438
|
}
|
|
5428
|
-
|
|
5429
|
-
set: function (value) {
|
|
5430
|
-
if (value) {
|
|
5431
|
-
this._service.getTransactionById(value);
|
|
5432
|
-
}
|
|
5433
|
-
},
|
|
5434
|
-
enumerable: false,
|
|
5435
|
-
configurable: true
|
|
5436
|
-
});
|
|
5437
|
-
TransactionComponent.prototype.showClass = function () {
|
|
5438
|
-
return true;
|
|
5439
|
-
};
|
|
5440
|
-
TransactionComponent.prototype.ngOnDestroy = function () {
|
|
5441
|
-
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
5442
|
-
};
|
|
5443
|
-
TransactionComponent.prototype.addDiscount = function () {
|
|
5444
|
-
this.showDiscountsSidebar = true;
|
|
5445
|
-
// TODO
|
|
5446
|
-
// this.transactionDiscountPercentage = this.service.currentTransaction.transactionDiscountPercentage;
|
|
5447
|
-
// this.transactionDiscountAmount = this.service.currentTransaction.transactionDiscountAmount;
|
|
5448
|
-
// this.transactionTotal = undefined;
|
|
5449
|
-
};
|
|
5450
|
-
TransactionComponent.prototype.saveTransactionLine = function (transactionAddTextLineRequest) {
|
|
5451
|
-
if (transactionAddTextLineRequest.transactionUuid) { //update
|
|
5452
|
-
}
|
|
5453
|
-
else { // new transactionLine (transactionArticleText)
|
|
5454
|
-
this._service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, transactionAddTextLineRequest.articleBound, 0, 0, 0);
|
|
5455
|
-
}
|
|
5456
|
-
};
|
|
5457
|
-
return TransactionComponent;
|
|
5439
|
+
return TransactionTotalsModule;
|
|
5458
5440
|
}());
|
|
5459
|
-
|
|
5460
|
-
{ type: i0.
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5441
|
+
TransactionTotalsModule.decorators = [
|
|
5442
|
+
{ type: i0.NgModule, args: [{
|
|
5443
|
+
imports: [
|
|
5444
|
+
common.CommonModule,
|
|
5445
|
+
CoreModule,
|
|
5446
|
+
PipeModule
|
|
5447
|
+
],
|
|
5448
|
+
declarations: [
|
|
5449
|
+
TransactionTotalsComponent
|
|
5450
|
+
],
|
|
5451
|
+
exports: [
|
|
5452
|
+
TransactionTotalsComponent
|
|
5453
|
+
]
|
|
5464
5454
|
},] }
|
|
5465
|
-
];
|
|
5466
|
-
TransactionComponent.ctorParameters = function () { return [
|
|
5467
|
-
{ type: IconCacheService },
|
|
5468
|
-
{ type: TransactionService }
|
|
5469
|
-
]; };
|
|
5470
|
-
TransactionComponent.propDecorators = {
|
|
5471
|
-
transaction: [{ type: i0.Input }],
|
|
5472
|
-
transactionId: [{ type: i0.Input }],
|
|
5473
|
-
showHeader: [{ type: i0.Input }],
|
|
5474
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction",] }]
|
|
5475
|
-
};
|
|
5455
|
+
];
|
|
5476
5456
|
|
|
5477
5457
|
var TransactionArticleTextComponent = /** @class */ (function () {
|
|
5478
5458
|
function TransactionArticleTextComponent(service) {
|
|
@@ -5618,9 +5598,11 @@
|
|
|
5618
5598
|
this._dictionaryService = _dictionaryService;
|
|
5619
5599
|
this.icons = Icon;
|
|
5620
5600
|
this.preview = false;
|
|
5601
|
+
this.waitingForUserAction = new i0.EventEmitter();
|
|
5621
5602
|
this.stock = stockStatus_enum.StockStatus.Low;
|
|
5622
5603
|
this.showTransactionArticleText = false;
|
|
5623
5604
|
this.showTransactionArticleTextOverview = false;
|
|
5605
|
+
this.showSidePanel = false;
|
|
5624
5606
|
}
|
|
5625
5607
|
Object.defineProperty(TransactionLineComponent.prototype, "line", {
|
|
5626
5608
|
get: function () {
|
|
@@ -5762,22 +5744,41 @@
|
|
|
5762
5744
|
// }
|
|
5763
5745
|
TransactionLineComponent.prototype._showArticleTextDialog = function () {
|
|
5764
5746
|
this.showTransactionArticleText = true;
|
|
5747
|
+
this.waitingForUserAction.next(true);
|
|
5765
5748
|
};
|
|
5766
5749
|
TransactionLineComponent.prototype._hideArticleTextDialog = function () {
|
|
5767
5750
|
this.showTransactionArticleText = false;
|
|
5751
|
+
this.waitingForUserAction.next(false);
|
|
5768
5752
|
};
|
|
5769
5753
|
TransactionLineComponent.prototype._showArticleTextOverviewDialog = function () {
|
|
5770
5754
|
this.showTransactionArticleTextOverview = true;
|
|
5755
|
+
this.waitingForUserAction.next(true);
|
|
5771
5756
|
};
|
|
5772
5757
|
TransactionLineComponent.prototype._hideArticleTextOverviewDialog = function () {
|
|
5773
5758
|
this.showTransactionArticleTextOverview = false;
|
|
5759
|
+
this.waitingForUserAction.next(false);
|
|
5760
|
+
};
|
|
5761
|
+
TransactionLineComponent.prototype.handleShowSidePanel = function (event) {
|
|
5762
|
+
this.showSidePanel = true;
|
|
5763
|
+
this.waitingForUserAction.next(true);
|
|
5764
|
+
};
|
|
5765
|
+
TransactionLineComponent.prototype.handleCloseSidePanel = function (event) {
|
|
5766
|
+
this.showSidePanel = false;
|
|
5767
|
+
this.waitingForUserAction.next(false);
|
|
5774
5768
|
};
|
|
5775
5769
|
return TransactionLineComponent;
|
|
5776
5770
|
}());
|
|
5777
5771
|
TransactionLineComponent.decorators = [
|
|
5778
5772
|
{ type: i0.Component, args: [{
|
|
5779
5773
|
selector: "co-transaction-line",
|
|
5780
|
-
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <span [textContent]=\"line.goodDescription\" class=\"transaction-line-description-description\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-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 *ngIf=!preview class=\"transaction-line-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-buttons\">\n <co-button class=\"transaction-line-overview-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleTextOverview($event)\"></co-button>\n <co-button class=\"transaction-line-add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n </div>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <co-transaction-article-text-overview *ngIf=\"showTransactionArticleTextOverview\"\n [header]=\"articleTextHeader | localize\"\n [transactionLine]=\"line\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleTextOverview($event)\"\n (cancelClick)=\"closeTransactionArticleTextOverview($event)\"\n ></co-transaction-article-text-overview>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"articleTextHeader | localize\"\n [articleLineNr]=\"line.lineNr\"\n [articleRef]=\"line.articleNumber\"\n [transactionLine]=\"line\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
5774
|
+
template: "\n <div class=\"transaction-line\">\n <ng-container *ngIf=\"line.isArticle\">\n <div class=\"transaction-line-wrapper\">\n <div class=\"transaction-line-image\" [class.preview]=\"preview\">\n <co-image-display [model]=\"image\"></co-image-display>\n </div>\n <div class=\"transaction-line-description\">\n <div class=\"description-wrapper\">\n <span [textContent]=\"line.goodDescription\" class=\"transaction-line-description-description\"></span>\n <span *ngIf=\"line.goodDescription && line.articleNumber\" class=\"transaction-line-description-divider\">|</span>\n <span [textContent]=\"line.articleNumber\" class=\"transaction-line-description-sku\"></span>\n </div>\n <div *ngIf=!preview class=\"article-text-wrapper\">\n <div class=\"article-text\" *ngFor=\"let text of line.articleTestAsArray\">\n <span [innerHTML]=\"text | safeHtml\" (dblclick)=\"handleOpenArticleText(text)\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"configuration-text-wrapper\">\n <span [innerHTML]=\"line.configurationReadable\"></span>\n </div>\n </div>\n <div *ngIf=!preview class=\"transaction-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 *ngIf=!preview class=\"transaction-line-amount\">\n <co-input-number-picker class=\"amount-number-picker\"\n [(model)]=\"localAmount\" [min]=\"0\"\n [readonly]=\"true\"\n (modelChange)=\"changeLineAmount($event)\"></co-input-number-picker>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n <div class=\"transaction-line-totals\">\n <span [textContent]=\"line.displayNetLineTotal | coCurrency: true\"></span>\n </div>\n <div *ngIf=!preview class=\"transaction-line-buttons\">\n <co-button class=\"transaction-line-overview-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleTextOverview($event)\"></co-button>\n <co-button class=\"transaction-line-add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-button class=\"transaction-line-show-sidebar-button circle\" [iconData]=\"iconCacheService.getIcon(icons.MasterDetail)\" (click)=\"handleShowSidePanel($event)\"></co-button>\n </div>\n </div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"line.isText\">\n <div [textContent]=\"line.text\"></div>\n <div class=\"transaction-line-delete\" *ngIf=\"!preview\">\n <div class=\"delete-wrapper\" (click)=\"deleteTransactionLineClick()\">\n <icon class=\"delete-icon\" [icon]=\"icons.Cancel\"></icon>\n <div class=\"delete-link\"\n [textContent]=\"'DELETE_TRANSACTION_LINE' | localize:false\">\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <co-transaction-article-text-overview *ngIf=\"showTransactionArticleTextOverview\"\n [header]=\"articleTextHeader | localize\"\n [transactionLine]=\"line\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleTextOverview($event)\"\n (cancelClick)=\"closeTransactionArticleTextOverview($event)\"\n ></co-transaction-article-text-overview>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"articleTextHeader | localize\"\n [articleLineNr]=\"line.lineNr\"\n [articleRef]=\"line.articleNumber\"\n [transactionLine]=\"line\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n <co-transaction-line-side-panel *ngIf=\"showSidePanel\" @showHideSidePanel\n [transactionLine]=\"line\"\n (cancelClick)=\"handleCloseSidePanel($event)\"\n ></co-transaction-line-side-panel>\n ",
|
|
5775
|
+
animations: [
|
|
5776
|
+
animations.trigger("showHideSidePanel", [
|
|
5777
|
+
animations.state("void", animations.style({ transform: 'translateX(100%)' })),
|
|
5778
|
+
animations.state("*", animations.style({ transform: 'translateX(0)' })),
|
|
5779
|
+
animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
|
|
5780
|
+
])
|
|
5781
|
+
],
|
|
5781
5782
|
encapsulation: i0.ViewEncapsulation.None
|
|
5782
5783
|
},] }
|
|
5783
5784
|
];
|
|
@@ -5790,6 +5791,7 @@
|
|
|
5790
5791
|
TransactionLineComponent.propDecorators = {
|
|
5791
5792
|
preview: [{ type: i0.HostBinding, args: ["class.preview",] }, { type: i0.Input }],
|
|
5792
5793
|
line: [{ type: i0.Input }],
|
|
5794
|
+
waitingForUserAction: [{ type: i0.Output }],
|
|
5793
5795
|
isText: [{ type: i0.HostBinding, args: ["class.is-text",] }],
|
|
5794
5796
|
isArticle: [{ type: i0.HostBinding, args: ["class.is-article",] }],
|
|
5795
5797
|
isSelected: [{ type: i0.HostBinding, args: ["class.is-selected",] }],
|
|
@@ -5920,6 +5922,82 @@
|
|
|
5920
5922
|
},] }
|
|
5921
5923
|
];
|
|
5922
5924
|
|
|
5925
|
+
var TransactionLineSidePanelComponent = /** @class */ (function () {
|
|
5926
|
+
function TransactionLineSidePanelComponent(iconService, _transactionService) {
|
|
5927
|
+
this.iconService = iconService;
|
|
5928
|
+
this._transactionService = _transactionService;
|
|
5929
|
+
this.icons = Icon;
|
|
5930
|
+
this.cancelClick = new i0.EventEmitter();
|
|
5931
|
+
this.data = [];
|
|
5932
|
+
}
|
|
5933
|
+
Object.defineProperty(TransactionLineSidePanelComponent.prototype, "child", {
|
|
5934
|
+
set: function (content) {
|
|
5935
|
+
this.inputPrice = content;
|
|
5936
|
+
this.inputPrice.commit = this.commitPrice;
|
|
5937
|
+
},
|
|
5938
|
+
enumerable: false,
|
|
5939
|
+
configurable: true
|
|
5940
|
+
});
|
|
5941
|
+
TransactionLineSidePanelComponent.prototype.showClass = function () {
|
|
5942
|
+
return true;
|
|
5943
|
+
};
|
|
5944
|
+
TransactionLineSidePanelComponent.prototype.handleCancelClick = function (event) {
|
|
5945
|
+
this.cancelClick.next(event);
|
|
5946
|
+
};
|
|
5947
|
+
TransactionLineSidePanelComponent.prototype.commitPrice = function (price) {
|
|
5948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5949
|
+
return __generator(this, function (_a) {
|
|
5950
|
+
return [2 /*return*/, true];
|
|
5951
|
+
});
|
|
5952
|
+
});
|
|
5953
|
+
};
|
|
5954
|
+
return TransactionLineSidePanelComponent;
|
|
5955
|
+
}());
|
|
5956
|
+
TransactionLineSidePanelComponent.decorators = [
|
|
5957
|
+
{ type: i0.Component, args: [{
|
|
5958
|
+
selector: "co-transaction-line-side-panel",
|
|
5959
|
+
template: "\n <div class=\"transaction-side-panel-header\">\n <co-button (click)=\"handleCancelClick($event)\" [iconData]=\"iconService.getIcon(icons.Cancel)\" class=\"white circle small\"></co-button>\n <span class=\"side-panel-header-description\" [textContent]=\"transactionLine.goodDescription\"></span>\n <span class=\"side-panel-header-divider\" [textContent]=\"'|'\"></span>\n <span class=\"side-panel-header-sku\" [textContent]=\"transactionLine.articleNumber\"></span>\n </div>\n <div class=\"transaction-line-side-panel-content\">\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'PRICING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'NET_LINE_TOTAL' | localize\" [model]=\"transactionLine.netLineTotal\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-number-picker class=\"side-panel-input\" [label]=\"'AMOUNT' | localize\" [(model)]=\"transactionLine.amount\"></co-input-number-picker>\n <co-input-text #inputPrice class=\"side-panel-input\"\n [placeholder]=\"'PRICE' | localize\"\n [type]=\"'number'\"\n [showSaveCancel]=\"true\"\n [(model)]=\"transactionLine.price\"\n ></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.vatId\" [placeholder]=\"'VAT' | localize\"></co-input-combo-box>\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.priceListCode\" [placeholder]=\"'PRICE_LIST' | localize\"></co-input-combo-box>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'DISCOUNTS' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'TOTAL_LINE_DISCOUNT' | localize\" [model]=\"transactionLine.lineTotalDiscountAmount\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'DISCOUNT_PERCENTAGE' | localize\" [type]=\"'number'\" [model]=\"transactionLine.discountAmount\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'DISCOUNT_AMOUNT' | localize\" [type]=\"'number'\" [(model)]=\"transactionLine.lineDiscount\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'QUANTUM_DISCOUNT' | localize\" [type]=\"'number'\" [model]=\"transactionLine.quantumDiscount\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'SPECIAL_DISCOUNT' | localize\" [type]=\"'number'\" [(model)]=\"transactionLine.specialDiscount\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'SURCHARGE_AMOUNT' | localize\" [model]=\"transactionLine.surchargeAmount\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'BUSINESS_RULE_DISCOUNT' | localize\" [model]=\"'NIET_GEIMPLEMENTEERD'\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'LOGISTICS_AND_PLANNING' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [(model)]=\"transactionLine.commissionCode\" [placeholder]=\"'COMMISSION_CODE' | localize\"></co-input-combo-box>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'WAREHOUSE' | localize\" [model]=\"transactionLine.warehouseNumber\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [placeholder]=\"'DELIVERY_METHOD' | localize\"></co-input-combo-box>\n <co-input-date class=\"side-panel-input\" [placeholder]=\"'DELIVERY_DATE' | localize\" [model]=\"transactionLine.deliveryDate\"></co-input-date>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ASSEMBLY_COSTS' | localize\" [type]=\"'number'\" [model]=\"transactionLine.assemblyCost\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'MODIFICATION_TIME' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-combo-box class=\"side-panel-input\" [collection]=\"data\" [placeholder]=\"'SUPPLIER' | localize\"></co-input-combo-box>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ARTICLE_NR_SUPPLIER' | localize\" [model]=\"transactionLine.articleNumber\" [readonly]=\"true\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'IN_OUT_COLLECTION' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </div>\n </co-collapsible>\n\n <co-collapsible\n [iconData]=\"iconService.getIcon(icons.TriangleUp)\"\n [headerTitle]=\"'OTHER' | localize\"\n [expandButtonLast]=\"true\"\n [expanded]=\"true\"\n >\n <div class=\"collapsible-content-wrapper\">\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'REFERENCE' | localize\" [model]=\"transactionLine.refLineNr\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'ORDER_RULESET' | localize\"></co-input-text>\n </div>\n <div class=\"side-panel-input-row\">\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_DATE' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text class=\"side-panel-input\" [placeholder]=\"'LAST_EDITED_USER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n <co-input-text [placeholder]=\"'FABRICATION_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'FABRICATION_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'TRANSPORT_COST_LINE_TOTAL' | localize\" [readonly]=\"true\"></co-input-text>\n <co-input-text [placeholder]=\"'CUSTOMER' | localize\" [readonly]=\"true\"></co-input-text>\n </div>\n </co-collapsible>\n </div>\n ",
|
|
5960
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
5961
|
+
},] }
|
|
5962
|
+
];
|
|
5963
|
+
TransactionLineSidePanelComponent.ctorParameters = function () { return [
|
|
5964
|
+
{ type: IconCacheService },
|
|
5965
|
+
{ type: TransactionService }
|
|
5966
|
+
]; };
|
|
5967
|
+
TransactionLineSidePanelComponent.propDecorators = {
|
|
5968
|
+
child: [{ type: i0.ViewChild, args: ['inputPrice', { read: corecomponents_v12.InputTextComponent },] }],
|
|
5969
|
+
transactionLine: [{ type: i0.Input }],
|
|
5970
|
+
cancelClick: [{ type: i0.Output }],
|
|
5971
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-line-side-panel",] }]
|
|
5972
|
+
};
|
|
5973
|
+
|
|
5974
|
+
var TransactionLineSidePanelModule = /** @class */ (function () {
|
|
5975
|
+
function TransactionLineSidePanelModule() {
|
|
5976
|
+
}
|
|
5977
|
+
return TransactionLineSidePanelModule;
|
|
5978
|
+
}());
|
|
5979
|
+
TransactionLineSidePanelModule.decorators = [
|
|
5980
|
+
{ type: i0.NgModule, args: [{
|
|
5981
|
+
imports: [
|
|
5982
|
+
common.CommonModule,
|
|
5983
|
+
CoreModule,
|
|
5984
|
+
PipeModule,
|
|
5985
|
+
corecomponents_v12.ButtonModule,
|
|
5986
|
+
corecomponents_v12.CollapsibleModule,
|
|
5987
|
+
corecomponents_v12.InputTextModule,
|
|
5988
|
+
corecomponents_v12.InputComboBoxModule,
|
|
5989
|
+
corecomponents_v12.InputDatePickerModule,
|
|
5990
|
+
corecomponents_v12.InputNumberPickerModule
|
|
5991
|
+
],
|
|
5992
|
+
declarations: [
|
|
5993
|
+
TransactionLineSidePanelComponent
|
|
5994
|
+
],
|
|
5995
|
+
exports: [
|
|
5996
|
+
TransactionLineSidePanelComponent
|
|
5997
|
+
]
|
|
5998
|
+
},] }
|
|
5999
|
+
];
|
|
6000
|
+
|
|
5923
6001
|
var TransactionLineModule = /** @class */ (function () {
|
|
5924
6002
|
function TransactionLineModule() {
|
|
5925
6003
|
}
|
|
@@ -5934,7 +6012,8 @@
|
|
|
5934
6012
|
corecomponents_v12.InputNumberPickerModule,
|
|
5935
6013
|
TransactionArticleTextModule,
|
|
5936
6014
|
TransactionArticleTextOverviewModule,
|
|
5937
|
-
PipeModule
|
|
6015
|
+
PipeModule,
|
|
6016
|
+
TransactionLineSidePanelModule
|
|
5938
6017
|
],
|
|
5939
6018
|
declarations: [
|
|
5940
6019
|
TransactionLineComponent
|
|
@@ -5954,6 +6033,7 @@
|
|
|
5954
6033
|
this.preview = false;
|
|
5955
6034
|
this.saveTransactionLine = new i0.EventEmitter();
|
|
5956
6035
|
this.showTransactionArticleText = false;
|
|
6036
|
+
this.userActionRequired = false;
|
|
5957
6037
|
}
|
|
5958
6038
|
TransactionLinesComponent.prototype.showClass = function () {
|
|
5959
6039
|
return true;
|
|
@@ -6018,7 +6098,7 @@
|
|
|
6018
6098
|
TransactionLinesComponent.decorators = [
|
|
6019
6099
|
{ type: i0.Component, args: [{
|
|
6020
6100
|
selector: "co-transaction-lines",
|
|
6021
|
-
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-transaction-line
|
|
6101
|
+
template: "\n <div cdkDropListGroup class=\"drop-list-group\">\n <div #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"transaction-lines-drag-drop-list narrow-scrollbar\"\n [cdkDropListDisabled]=\"preview || userActionRequired\"\n [cdkDropListData]=\"transactionLines\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\"\n >\n <div class=\"draggable-transaction-line\" *ngFor=\"let line of transactionLines; trackBy:trackByFn;\" cdkDrag>\n <co-transaction-line\n [preview]=\"preview\"\n [line]=\"line\"\n (dblclick)=\"handleTransactionLineDblClick(line)\"\n (waitingForUserAction)=\"userActionRequired = $event\"></co-transaction-line>\n </div>\n </div>\n </div>\n <co-button *ngIf=!preview class=\"add-text-button circle\" [iconData]=\"iconCacheService.getIcon(icons.Txt)\" (click)=\"handleTransactionArticleText($event)\"></co-button>\n <co-transaction-article-text *ngIf=\"showTransactionArticleText\"\n [header]=\"'TEXT' | localize\"\n [transactionLine]=\"selectedArticleText\"\n [editText]=\"textToEdit\"\n (saveClick)=\"saveTransactionArticleLineText($event)\"\n (closeClick)=\"closeTransactionArticleText($event)\"\n (cancelClick)=\"closeTransactionArticleText($event)\"\n ></co-transaction-article-text>\n ",
|
|
6022
6102
|
encapsulation: i0.ViewEncapsulation.None
|
|
6023
6103
|
},] }
|
|
6024
6104
|
];
|
|
@@ -6037,72 +6117,514 @@
|
|
|
6037
6117
|
var TransactionLinesModule = /** @class */ (function () {
|
|
6038
6118
|
function TransactionLinesModule() {
|
|
6039
6119
|
}
|
|
6040
|
-
return TransactionLinesModule;
|
|
6120
|
+
return TransactionLinesModule;
|
|
6121
|
+
}());
|
|
6122
|
+
TransactionLinesModule.decorators = [
|
|
6123
|
+
{ type: i0.NgModule, args: [{
|
|
6124
|
+
imports: [
|
|
6125
|
+
common.CommonModule,
|
|
6126
|
+
CoreModule,
|
|
6127
|
+
TransactionLineModule,
|
|
6128
|
+
dragDrop.DragDropModule,
|
|
6129
|
+
corecomponents_v12.ButtonModule,
|
|
6130
|
+
TransactionArticleTextModule,
|
|
6131
|
+
PipeModule
|
|
6132
|
+
],
|
|
6133
|
+
declarations: [
|
|
6134
|
+
TransactionLinesComponent
|
|
6135
|
+
],
|
|
6136
|
+
exports: [
|
|
6137
|
+
TransactionLinesComponent
|
|
6138
|
+
]
|
|
6139
|
+
},] }
|
|
6140
|
+
];
|
|
6141
|
+
|
|
6142
|
+
var ShoppingCartPreviewComponent = /** @class */ (function () {
|
|
6143
|
+
function ShoppingCartPreviewComponent(service) {
|
|
6144
|
+
this.service = service;
|
|
6145
|
+
this.icons = Icon;
|
|
6146
|
+
this.showCheckoutButton = true;
|
|
6147
|
+
this.withoutBorder = false;
|
|
6148
|
+
this.checkout = new i0.EventEmitter();
|
|
6149
|
+
this.editCartClick = new i0.EventEmitter();
|
|
6150
|
+
}
|
|
6151
|
+
ShoppingCartPreviewComponent.prototype.showClass = function () {
|
|
6152
|
+
return true;
|
|
6153
|
+
};
|
|
6154
|
+
return ShoppingCartPreviewComponent;
|
|
6155
|
+
}());
|
|
6156
|
+
ShoppingCartPreviewComponent.decorators = [
|
|
6157
|
+
{ type: i0.Component, args: [{
|
|
6158
|
+
selector: "co-shopping-cart-preview",
|
|
6159
|
+
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals [totals]=\"service.currentTransaction.transactionTotal\"></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button *ngIf=\"showCheckoutButton\" class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
6160
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6161
|
+
},] }
|
|
6162
|
+
];
|
|
6163
|
+
ShoppingCartPreviewComponent.ctorParameters = function () { return [
|
|
6164
|
+
{ type: TransactionService }
|
|
6165
|
+
]; };
|
|
6166
|
+
ShoppingCartPreviewComponent.propDecorators = {
|
|
6167
|
+
showCheckoutButton: [{ type: i0.Input }],
|
|
6168
|
+
withoutBorder: [{ type: i0.HostBinding, args: ["class.borderless",] }, { type: i0.Input }],
|
|
6169
|
+
checkout: [{ type: i0.Output }],
|
|
6170
|
+
editCartClick: [{ type: i0.Output }],
|
|
6171
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-shopping-cart-preview",] }]
|
|
6172
|
+
};
|
|
6173
|
+
|
|
6174
|
+
var ShoppingCartPreviewModule = /** @class */ (function () {
|
|
6175
|
+
function ShoppingCartPreviewModule() {
|
|
6176
|
+
}
|
|
6177
|
+
return ShoppingCartPreviewModule;
|
|
6178
|
+
}());
|
|
6179
|
+
ShoppingCartPreviewModule.decorators = [
|
|
6180
|
+
{ type: i0.NgModule, args: [{
|
|
6181
|
+
imports: [
|
|
6182
|
+
common.CommonModule,
|
|
6183
|
+
CoreModule,
|
|
6184
|
+
corecomponents_v12.ButtonModule,
|
|
6185
|
+
TransactionLinesModule,
|
|
6186
|
+
TransactionTotalsModule,
|
|
6187
|
+
PipeModule
|
|
6188
|
+
],
|
|
6189
|
+
declarations: [
|
|
6190
|
+
ShoppingCartPreviewComponent
|
|
6191
|
+
],
|
|
6192
|
+
exports: [
|
|
6193
|
+
ShoppingCartPreviewComponent
|
|
6194
|
+
]
|
|
6195
|
+
},] }
|
|
6196
|
+
];
|
|
6197
|
+
|
|
6198
|
+
var SellerInformationComponent = /** @class */ (function () {
|
|
6199
|
+
function SellerInformationComponent(_service) {
|
|
6200
|
+
this._service = _service;
|
|
6201
|
+
}
|
|
6202
|
+
Object.defineProperty(SellerInformationComponent.prototype, "relationId", {
|
|
6203
|
+
get: function () {
|
|
6204
|
+
return this._relationId;
|
|
6205
|
+
},
|
|
6206
|
+
set: function (value) {
|
|
6207
|
+
this._relationId = value;
|
|
6208
|
+
this._getRelation();
|
|
6209
|
+
},
|
|
6210
|
+
enumerable: false,
|
|
6211
|
+
configurable: true
|
|
6212
|
+
});
|
|
6213
|
+
SellerInformationComponent.prototype.showClass = function () {
|
|
6214
|
+
return true;
|
|
6215
|
+
};
|
|
6216
|
+
SellerInformationComponent.prototype._getRelation = function () {
|
|
6217
|
+
var _this = this;
|
|
6218
|
+
if (!isNaN(this._relationId)) {
|
|
6219
|
+
var request = new relationRequest.RelationRequest();
|
|
6220
|
+
request.relationId = this._relationId;
|
|
6221
|
+
this._service.getRelationListObjects(request).then(function (data) {
|
|
6222
|
+
if (data && data.length > 0) {
|
|
6223
|
+
_this.relation = data[0];
|
|
6224
|
+
if (_this.relation && _this.relation.image && _this.relation.image.documentId) {
|
|
6225
|
+
_this._service.getDocumentContent(_this.relation.image.documentId)
|
|
6226
|
+
.then(function (content) {
|
|
6227
|
+
_this.image = content;
|
|
6228
|
+
})
|
|
6229
|
+
.catch(function (e) {
|
|
6230
|
+
_this.image = "";
|
|
6231
|
+
});
|
|
6232
|
+
}
|
|
6233
|
+
}
|
|
6234
|
+
});
|
|
6235
|
+
}
|
|
6236
|
+
};
|
|
6237
|
+
return SellerInformationComponent;
|
|
6238
|
+
}());
|
|
6239
|
+
SellerInformationComponent.decorators = [
|
|
6240
|
+
{ type: i0.Component, args: [{
|
|
6241
|
+
selector: "co-seller-information",
|
|
6242
|
+
template: "\n <co-image-display [model]=\"image\" *ngIf=\"image; else showInitials\"></co-image-display>\n <ng-template #showInitials>\n <svg viewBox=\"0 0 30 30\">\n <text x=\"50%\" y=\"50%\" dominant-baseline=\"middle\" text-anchor=\"middle\">{{ relation?.displayInitials }}</text>\n </svg>\n </ng-template>\n ",
|
|
6243
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6244
|
+
},] }
|
|
6245
|
+
];
|
|
6246
|
+
SellerInformationComponent.ctorParameters = function () { return [
|
|
6247
|
+
{ type: TransactionService }
|
|
6248
|
+
]; };
|
|
6249
|
+
SellerInformationComponent.propDecorators = {
|
|
6250
|
+
relationId: [{ type: i0.Input }],
|
|
6251
|
+
relation: [{ type: i0.Input }],
|
|
6252
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-seller-information",] }]
|
|
6253
|
+
};
|
|
6254
|
+
|
|
6255
|
+
var SellerInformationModule = /** @class */ (function () {
|
|
6256
|
+
function SellerInformationModule() {
|
|
6257
|
+
}
|
|
6258
|
+
return SellerInformationModule;
|
|
6259
|
+
}());
|
|
6260
|
+
SellerInformationModule.decorators = [
|
|
6261
|
+
{ type: i0.NgModule, args: [{
|
|
6262
|
+
imports: [
|
|
6263
|
+
common.CommonModule,
|
|
6264
|
+
CoreModule
|
|
6265
|
+
],
|
|
6266
|
+
declarations: [
|
|
6267
|
+
SellerInformationComponent
|
|
6268
|
+
],
|
|
6269
|
+
exports: [
|
|
6270
|
+
SellerInformationComponent
|
|
6271
|
+
]
|
|
6272
|
+
},] }
|
|
6273
|
+
];
|
|
6274
|
+
|
|
6275
|
+
var DeliveryType = /** @class */ (function () {
|
|
6276
|
+
function DeliveryType() {
|
|
6277
|
+
}
|
|
6278
|
+
return DeliveryType;
|
|
6279
|
+
}());
|
|
6280
|
+
|
|
6281
|
+
var DeliveryTypeTileComponent = /** @class */ (function () {
|
|
6282
|
+
function DeliveryTypeTileComponent() {
|
|
6283
|
+
this.type = new DeliveryType();
|
|
6284
|
+
this.selected = false;
|
|
6285
|
+
this.selectedChange = new i0.EventEmitter();
|
|
6286
|
+
this.deliveryTypeIdx = 0;
|
|
6287
|
+
}
|
|
6288
|
+
DeliveryTypeTileComponent.prototype.showClass = function () {
|
|
6289
|
+
return true;
|
|
6290
|
+
};
|
|
6291
|
+
DeliveryTypeTileComponent.prototype.setIndexDeliveryType = function (index) {
|
|
6292
|
+
console.log(index);
|
|
6293
|
+
};
|
|
6294
|
+
return DeliveryTypeTileComponent;
|
|
6295
|
+
}());
|
|
6296
|
+
DeliveryTypeTileComponent.decorators = [
|
|
6297
|
+
{ type: i0.Component, args: [{
|
|
6298
|
+
selector: "co-delivery-type-tile",
|
|
6299
|
+
template: "\n <co-tile [selected]=\"selected\" (selectedChange)=\"selectedChange.emit($event)\">\n <div class=\"delivery-type-content-wrapper\">\n <div class=\"delivery-type-title\" [textContent]=\"type.description\"></div>\n <div class=\"delivery-type-icon\">\n <icon [icon]=\"type.icon\"></icon>\n </div>\n <div *ngIf=\"type.price\" class=\"delivery-type-price\" [textContent]=\"type.price | priceDisplay\"></div>\n </div>\n </co-tile>\n ",
|
|
6300
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6301
|
+
},] }
|
|
6302
|
+
];
|
|
6303
|
+
DeliveryTypeTileComponent.propDecorators = {
|
|
6304
|
+
type: [{ type: i0.Input }],
|
|
6305
|
+
selected: [{ type: i0.Input }],
|
|
6306
|
+
selectedChange: [{ type: i0.Output }],
|
|
6307
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-delivery-type-tile",] }]
|
|
6308
|
+
};
|
|
6309
|
+
|
|
6310
|
+
var DeliveryTypeTileModule = /** @class */ (function () {
|
|
6311
|
+
function DeliveryTypeTileModule() {
|
|
6312
|
+
}
|
|
6313
|
+
return DeliveryTypeTileModule;
|
|
6314
|
+
}());
|
|
6315
|
+
DeliveryTypeTileModule.decorators = [
|
|
6316
|
+
{ type: i0.NgModule, args: [{
|
|
6317
|
+
imports: [
|
|
6318
|
+
common.CommonModule,
|
|
6319
|
+
CoreModule,
|
|
6320
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
6321
|
+
corecomponents_v12.PriceDisplayPipeModule,
|
|
6322
|
+
TileModule
|
|
6323
|
+
],
|
|
6324
|
+
declarations: [
|
|
6325
|
+
DeliveryTypeTileComponent
|
|
6326
|
+
],
|
|
6327
|
+
exports: [
|
|
6328
|
+
DeliveryTypeTileComponent
|
|
6329
|
+
]
|
|
6330
|
+
},] }
|
|
6331
|
+
];
|
|
6332
|
+
|
|
6333
|
+
var PaymentComponent = /** @class */ (function () {
|
|
6334
|
+
function PaymentComponent(_transactionService) {
|
|
6335
|
+
this._transactionService = _transactionService;
|
|
6336
|
+
this.icons = Icon;
|
|
6337
|
+
this.amount = 0;
|
|
6338
|
+
this.paymentMethodIdx = 0;
|
|
6339
|
+
this.paymentMethods = [
|
|
6340
|
+
{ icon: this.icons.Truck, description: 'Contant' },
|
|
6341
|
+
{ icon: this.icons.IdealLogo, description: 'iDeal' },
|
|
6342
|
+
{ icon: this.icons.Truck, description: 'Creditcard' },
|
|
6343
|
+
{ icon: this.icons.Truck, description: 'Overschrijving' }
|
|
6344
|
+
];
|
|
6345
|
+
this.cashRegisters = [];
|
|
6346
|
+
}
|
|
6347
|
+
PaymentComponent.prototype.showClass = function () {
|
|
6348
|
+
return true;
|
|
6349
|
+
};
|
|
6350
|
+
PaymentComponent.prototype.ngOnInit = function () {
|
|
6351
|
+
this._getCashRegisters();
|
|
6352
|
+
};
|
|
6353
|
+
PaymentComponent.prototype._getCashRegisters = function () {
|
|
6354
|
+
var _this = this;
|
|
6355
|
+
this._transactionService.getCashRegisters().then(function (cashRegisters) {
|
|
6356
|
+
_this.cashRegisters = cashRegisters;
|
|
6357
|
+
});
|
|
6358
|
+
};
|
|
6359
|
+
return PaymentComponent;
|
|
6360
|
+
}());
|
|
6361
|
+
PaymentComponent.decorators = [
|
|
6362
|
+
{ type: i0.Component, args: [{
|
|
6363
|
+
selector: "co-payment",
|
|
6364
|
+
template: "\n <div class=\"payment-wrapper\">\n <div class=\"payment-methods-header\">\n <span class=\"payment-header-title\" [textContent]=\"'Selecteer een' | localize\"></span>\n <span class=\"payment-header-title extra\" [textContent]=\"'gratis' | localize:false\"></span>\n <span class=\"payment-header-title\" [textContent]=\"'betaalmethode' | localize:false\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let paymentMethod of paymentMethods; let index = index\"\n [icon]=\"paymentMethod.icon\"\n [description]=\"paymentMethod.description\"\n [selected]=\"paymentMethodIdx === index\"\n (selectedChange)=\"paymentMethodIdx = index\"\n ></co-payment-tile>\n </div>\n <div class=\"payment-cash-register-header\">\n <span class=\"payment-header-title\" [textContent]=\"'Selecteer kassa' | localize\"></span>\n </div>\n <div class=\"payment-methods\">\n <co-payment-tile *ngFor=\"let cashRegister of cashRegisters\"\n [icon]=\"cashRegister.icon\"\n [description]=\"cashRegister.description\"\n ></co-payment-tile>\n </div>\n <div class=\"payment-to-pay\">\n <div [textContent]=\"'Te betalen' | localize\"></div>\n <div class=\"payment-amount\" [textContent]=\"amount | priceDisplay\"></div>\n </div>\n </div>\n ",
|
|
6365
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6366
|
+
},] }
|
|
6367
|
+
];
|
|
6368
|
+
PaymentComponent.ctorParameters = function () { return [
|
|
6369
|
+
{ type: TransactionService }
|
|
6370
|
+
]; };
|
|
6371
|
+
PaymentComponent.propDecorators = {
|
|
6372
|
+
amount: [{ type: i0.Input }],
|
|
6373
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-payment",] }]
|
|
6374
|
+
};
|
|
6375
|
+
|
|
6376
|
+
var PaymentTileComponent = /** @class */ (function () {
|
|
6377
|
+
function PaymentTileComponent() {
|
|
6378
|
+
this.selected = false;
|
|
6379
|
+
this.selectedChange = new i0.EventEmitter();
|
|
6380
|
+
}
|
|
6381
|
+
PaymentTileComponent.prototype.showClass = function () {
|
|
6382
|
+
return true;
|
|
6383
|
+
};
|
|
6384
|
+
return PaymentTileComponent;
|
|
6385
|
+
}());
|
|
6386
|
+
PaymentTileComponent.decorators = [
|
|
6387
|
+
{ type: i0.Component, args: [{
|
|
6388
|
+
selector: "co-payment-tile",
|
|
6389
|
+
template: "\n <co-tile [selected]=\"selected\" (selectedChange)=\"selectedChange.emit($event)\">\n <div class=\"payment-tile-wrapper\">\n <icon class=\"payment-tile-icon\" [icon]=\"icon\"></icon>\n <span class=\"payment-tile-description\" [textContent]=\"description | localize\"></span>\n </div>\n </co-tile>\n ",
|
|
6390
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6391
|
+
},] }
|
|
6392
|
+
];
|
|
6393
|
+
PaymentTileComponent.propDecorators = {
|
|
6394
|
+
selected: [{ type: i0.Input }],
|
|
6395
|
+
icon: [{ type: i0.Input }],
|
|
6396
|
+
description: [{ type: i0.Input }],
|
|
6397
|
+
selectedChange: [{ type: i0.Output }],
|
|
6398
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-payment-tile",] }]
|
|
6399
|
+
};
|
|
6400
|
+
|
|
6401
|
+
var PaymentTileModule = /** @class */ (function () {
|
|
6402
|
+
function PaymentTileModule() {
|
|
6403
|
+
}
|
|
6404
|
+
return PaymentTileModule;
|
|
6405
|
+
}());
|
|
6406
|
+
PaymentTileModule.decorators = [
|
|
6407
|
+
{ type: i0.NgModule, args: [{
|
|
6408
|
+
imports: [
|
|
6409
|
+
common.CommonModule,
|
|
6410
|
+
TileModule,
|
|
6411
|
+
CoreModule,
|
|
6412
|
+
PipeModule
|
|
6413
|
+
],
|
|
6414
|
+
declarations: [
|
|
6415
|
+
PaymentTileComponent
|
|
6416
|
+
],
|
|
6417
|
+
exports: [
|
|
6418
|
+
PaymentTileComponent
|
|
6419
|
+
]
|
|
6420
|
+
},] }
|
|
6421
|
+
];
|
|
6422
|
+
|
|
6423
|
+
var PaymentModule = /** @class */ (function () {
|
|
6424
|
+
function PaymentModule() {
|
|
6425
|
+
}
|
|
6426
|
+
return PaymentModule;
|
|
6041
6427
|
}());
|
|
6042
|
-
|
|
6428
|
+
PaymentModule.decorators = [
|
|
6043
6429
|
{ type: i0.NgModule, args: [{
|
|
6044
6430
|
imports: [
|
|
6045
6431
|
common.CommonModule,
|
|
6046
6432
|
CoreModule,
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
corecomponents_v12.
|
|
6050
|
-
TransactionArticleTextModule,
|
|
6051
|
-
PipeModule
|
|
6433
|
+
PipeModule,
|
|
6434
|
+
PaymentTileModule,
|
|
6435
|
+
corecomponents_v12.PriceDisplayPipeModule
|
|
6052
6436
|
],
|
|
6053
6437
|
declarations: [
|
|
6054
|
-
|
|
6438
|
+
PaymentComponent
|
|
6055
6439
|
],
|
|
6056
6440
|
exports: [
|
|
6057
|
-
|
|
6441
|
+
PaymentComponent
|
|
6058
6442
|
]
|
|
6059
6443
|
},] }
|
|
6060
6444
|
];
|
|
6061
6445
|
|
|
6062
|
-
var
|
|
6063
|
-
function
|
|
6064
|
-
this.showDiscount = false;
|
|
6065
|
-
this.discountClick = new i0.EventEmitter();
|
|
6446
|
+
var CheckoutModule = /** @class */ (function () {
|
|
6447
|
+
function CheckoutModule() {
|
|
6066
6448
|
}
|
|
6067
|
-
|
|
6449
|
+
return CheckoutModule;
|
|
6450
|
+
}());
|
|
6451
|
+
CheckoutModule.decorators = [
|
|
6452
|
+
{ type: i0.NgModule, args: [{
|
|
6453
|
+
imports: [
|
|
6454
|
+
CoreModule,
|
|
6455
|
+
common.CommonModule,
|
|
6456
|
+
corecomponents_v12.IconModule,
|
|
6457
|
+
corecomponents_v12.InputTextModule,
|
|
6458
|
+
corecomponents_v12.InputCheckboxModule,
|
|
6459
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
6460
|
+
corecomponents_v12.FormModule,
|
|
6461
|
+
corecomponents_v12.InputComboBoxModule,
|
|
6462
|
+
corecomponents_v12.InputDatePickerModule,
|
|
6463
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
6464
|
+
corecomponents_v12.CoDialogModule,
|
|
6465
|
+
corecomponents_v12.CoDialogPromptModule,
|
|
6466
|
+
corecomponents_v12.ButtonModule,
|
|
6467
|
+
flexLayout.FlexModule,
|
|
6468
|
+
corecomponents_v12.MultiSelectListModule,
|
|
6469
|
+
corecomponents_v12.DropDownModule,
|
|
6470
|
+
corecomponents_v12.PopupModule.forRoot(),
|
|
6471
|
+
corecomponents_v12.CoSidebarModule,
|
|
6472
|
+
corecomponents_v12.CoGridModule,
|
|
6473
|
+
forms.ReactiveFormsModule,
|
|
6474
|
+
forms.FormsModule,
|
|
6475
|
+
RelationAddressModule,
|
|
6476
|
+
RelationAddressSelectModule,
|
|
6477
|
+
RelationAddressTileModule,
|
|
6478
|
+
corecomponents_v12.CoRichTextEditorModule,
|
|
6479
|
+
corecomponents_v12.Carousel3dModule,
|
|
6480
|
+
corecomponents_v12.InputTextareaModule,
|
|
6481
|
+
corecomponents_v12.InputListboxModule,
|
|
6482
|
+
PipeModule,
|
|
6483
|
+
StepperModule,
|
|
6484
|
+
ShoppingCartPreviewModule,
|
|
6485
|
+
SellerInformationModule,
|
|
6486
|
+
DeliveryTypeTileModule,
|
|
6487
|
+
corecomponents_v12.CollapsibleModule,
|
|
6488
|
+
PaymentModule,
|
|
6489
|
+
],
|
|
6490
|
+
declarations: [
|
|
6491
|
+
CheckoutOverviewRelationEditComponent,
|
|
6492
|
+
CheckoutOverviewDeliveryEditComponent,
|
|
6493
|
+
CheckoutOverviewDeliveryAddressComponent,
|
|
6494
|
+
CheckOutRelationSuggestionsListComponent,
|
|
6495
|
+
CheckOutRelationSuggestionsListItemComponent,
|
|
6496
|
+
CheckoutLoginComponent,
|
|
6497
|
+
CheckoutComponent,
|
|
6498
|
+
],
|
|
6499
|
+
providers: [
|
|
6500
|
+
DictionaryService,
|
|
6501
|
+
OptionsService
|
|
6502
|
+
],
|
|
6503
|
+
entryComponents: [
|
|
6504
|
+
CheckoutComponent
|
|
6505
|
+
],
|
|
6506
|
+
exports: [CheckoutComponent],
|
|
6507
|
+
bootstrap: [CheckoutComponent]
|
|
6508
|
+
},] }
|
|
6509
|
+
];
|
|
6510
|
+
|
|
6511
|
+
var ShoppingCartComponent = /** @class */ (function () {
|
|
6512
|
+
function ShoppingCartComponent(service, _dictionary) {
|
|
6513
|
+
var _this = this;
|
|
6514
|
+
this.service = service;
|
|
6515
|
+
this._dictionary = _dictionary;
|
|
6516
|
+
this.closeCart = new i0.EventEmitter();
|
|
6517
|
+
this.checkout = new i0.EventEmitter();
|
|
6518
|
+
this.transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
6519
|
+
this._subs = [];
|
|
6520
|
+
this._subs.push(this.service.transactionUpdated.subscribe(function (transaction) {
|
|
6521
|
+
if (transaction) {
|
|
6522
|
+
_this.transaction = transaction;
|
|
6523
|
+
}
|
|
6524
|
+
}));
|
|
6525
|
+
}
|
|
6526
|
+
ShoppingCartComponent.prototype.showClass = function () {
|
|
6068
6527
|
return true;
|
|
6069
6528
|
};
|
|
6070
|
-
|
|
6529
|
+
ShoppingCartComponent.prototype.ngOnDestroy = function () {
|
|
6530
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
6531
|
+
};
|
|
6532
|
+
return ShoppingCartComponent;
|
|
6071
6533
|
}());
|
|
6072
|
-
|
|
6534
|
+
ShoppingCartComponent.decorators = [
|
|
6073
6535
|
{ type: i0.Component, args: [{
|
|
6074
|
-
selector: "co-
|
|
6075
|
-
template: "\n <div class=\"
|
|
6536
|
+
selector: "co-shopping-cart",
|
|
6537
|
+
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'SHOPPING_CART_OVERVIEW' | localize | append:'(' + service.articleAmount + ')'\"></span>\n </div>\n <div class=\"shopping-cart-transaction-wrapper\">\n <co-transaction [showHeader]=\"false\" [transaction]=\"transaction\"></co-transaction>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-resume\" [textContent]=\"'SHOPPING_CART_RESUME' | localize\"\n (click)=\"closeCart.emit()\"\n ></a>\n <co-button class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"service.articleAmount === 0\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
6076
6538
|
encapsulation: i0.ViewEncapsulation.None
|
|
6077
6539
|
},] }
|
|
6078
6540
|
];
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6541
|
+
ShoppingCartComponent.ctorParameters = function () { return [
|
|
6542
|
+
{ type: TransactionService },
|
|
6543
|
+
{ type: DictionaryService }
|
|
6544
|
+
]; };
|
|
6545
|
+
ShoppingCartComponent.propDecorators = {
|
|
6546
|
+
closeCart: [{ type: i0.Output }],
|
|
6547
|
+
checkout: [{ type: i0.Output }],
|
|
6548
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-shopping-cart",] }]
|
|
6084
6549
|
};
|
|
6085
6550
|
|
|
6086
|
-
|
|
6087
|
-
|
|
6551
|
+
// The different view modes for content, e.g. list, grid, ..
|
|
6552
|
+
var ContentViewMode;
|
|
6553
|
+
(function (ContentViewMode) {
|
|
6554
|
+
ContentViewMode[ContentViewMode["List"] = 0] = "List";
|
|
6555
|
+
ContentViewMode[ContentViewMode["Grid"] = 1] = "Grid";
|
|
6556
|
+
ContentViewMode[ContentViewMode["GridExpanded"] = 2] = "GridExpanded";
|
|
6557
|
+
ContentViewMode[ContentViewMode["MasterDetail"] = 3] = "MasterDetail";
|
|
6558
|
+
ContentViewMode[ContentViewMode["Timeline"] = 4] = "Timeline";
|
|
6559
|
+
})(ContentViewMode || (ContentViewMode = {}));
|
|
6560
|
+
|
|
6561
|
+
var TransactionComponent = /** @class */ (function () {
|
|
6562
|
+
function TransactionComponent(iconCacheService, _service) {
|
|
6563
|
+
var _this = this;
|
|
6564
|
+
this.iconCacheService = iconCacheService;
|
|
6565
|
+
this._service = _service;
|
|
6566
|
+
this.viewModes = ContentViewMode;
|
|
6567
|
+
this.icons = Icon;
|
|
6568
|
+
this.transaction = new transactionInfoResponse_bo.TransactionInfoResponse();
|
|
6569
|
+
this.showHeader = true;
|
|
6570
|
+
this.activeViewMode = ContentViewMode.List;
|
|
6571
|
+
this.showDiscountsSidebar = false;
|
|
6572
|
+
this._subs = [];
|
|
6573
|
+
this._subs.push(this._service.transactionUpdated.subscribe(function (transaction) { return __awaiter(_this, void 0, void 0, function () {
|
|
6574
|
+
return __generator(this, function (_a) {
|
|
6575
|
+
this.transaction = transaction;
|
|
6576
|
+
return [2 /*return*/];
|
|
6577
|
+
});
|
|
6578
|
+
}); }));
|
|
6088
6579
|
}
|
|
6089
|
-
|
|
6580
|
+
Object.defineProperty(TransactionComponent.prototype, "transactionId", {
|
|
6581
|
+
set: function (value) {
|
|
6582
|
+
if (value) {
|
|
6583
|
+
this._service.getTransactionById(value);
|
|
6584
|
+
}
|
|
6585
|
+
},
|
|
6586
|
+
enumerable: false,
|
|
6587
|
+
configurable: true
|
|
6588
|
+
});
|
|
6589
|
+
TransactionComponent.prototype.showClass = function () {
|
|
6590
|
+
return true;
|
|
6591
|
+
};
|
|
6592
|
+
TransactionComponent.prototype.ngOnDestroy = function () {
|
|
6593
|
+
this._subs.forEach(function (s) { return s.unsubscribe(); });
|
|
6594
|
+
};
|
|
6595
|
+
TransactionComponent.prototype.addDiscount = function () {
|
|
6596
|
+
this.showDiscountsSidebar = true;
|
|
6597
|
+
// TODO
|
|
6598
|
+
// this.transactionDiscountPercentage = this.service.currentTransaction.transactionDiscountPercentage;
|
|
6599
|
+
// this.transactionDiscountAmount = this.service.currentTransaction.transactionDiscountAmount;
|
|
6600
|
+
// this.transactionTotal = undefined;
|
|
6601
|
+
};
|
|
6602
|
+
TransactionComponent.prototype.saveTransactionLine = function (transactionAddTextLineRequest) {
|
|
6603
|
+
if (transactionAddTextLineRequest.transactionUuid) { //update
|
|
6604
|
+
}
|
|
6605
|
+
else { // new transactionLine (transactionArticleText)
|
|
6606
|
+
this._service.addTextLine(transactionAddTextLineRequest.showOnDocuments, transactionAddTextLineRequest.text, 0, transactionAddTextLineRequest.articleBound, 0, 0, 0);
|
|
6607
|
+
}
|
|
6608
|
+
};
|
|
6609
|
+
return TransactionComponent;
|
|
6090
6610
|
}());
|
|
6091
|
-
|
|
6092
|
-
{ type: i0.
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
PipeModule
|
|
6097
|
-
],
|
|
6098
|
-
declarations: [
|
|
6099
|
-
TransactionTotalsComponent
|
|
6100
|
-
],
|
|
6101
|
-
exports: [
|
|
6102
|
-
TransactionTotalsComponent
|
|
6103
|
-
]
|
|
6611
|
+
TransactionComponent.decorators = [
|
|
6612
|
+
{ type: i0.Component, args: [{
|
|
6613
|
+
selector: "co-transaction",
|
|
6614
|
+
template: "\n <co-transaction-header *ngIf=\"showHeader\" [transaction]=\"transaction\"></co-transaction-header>\n <div class=\"transaction-view-mode-buttons\">\n <co-button class=\"view-button white\"\n [class.selected]=\"this.activeViewMode === viewModes.List\"\n [iconData]=\"iconCacheService.getIcon(icons.ThickLines)\"\n [title]=\"'LIST_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.List\"></co-button>\n <co-button class=\"view-button white\"\n [class.selected]=\"this.activeViewMode === viewModes.Grid\"\n [iconData]=\"iconCacheService.getIcon(icons.ThinLines)\"\n [title]=\"'GRID_VIEW' | localize\"\n (click)=\"this.activeViewMode = viewModes.Grid\"></co-button>\n </div>\n <div class=\"transaction-lines-wrapper\" *ngIf=\"activeViewMode === viewModes.List\">\n <co-transaction-lines\n [transactionLines]=\"transaction.transactionLines\"\n (saveTransactionLine)=\"saveTransactionLine($event)\"\n ></co-transaction-lines>\n </div>\n <div class=\"transaction-lines-grid-wrapper\" *ngIf=\"activeViewMode === viewModes.Grid\">\n <co-transaction-lines-grid\n [transactionLines]=\"transaction.transactionLines\"\n ></co-transaction-lines-grid>\n </div>\n <div class=\"transaction-footer-wrapper\">\n <co-transaction-totals [totals]=\"transaction.transactionTotal\" [showDiscount]=\"true\" (discountClick)=\"addDiscount()\"></co-transaction-totals>\n </div>\n <co-discount *ngIf=\"showDiscountsSidebar\">\n </co-discount>\n ",
|
|
6615
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6104
6616
|
},] }
|
|
6105
|
-
];
|
|
6617
|
+
];
|
|
6618
|
+
TransactionComponent.ctorParameters = function () { return [
|
|
6619
|
+
{ type: IconCacheService },
|
|
6620
|
+
{ type: TransactionService }
|
|
6621
|
+
]; };
|
|
6622
|
+
TransactionComponent.propDecorators = {
|
|
6623
|
+
transaction: [{ type: i0.Input }],
|
|
6624
|
+
transactionId: [{ type: i0.Input }],
|
|
6625
|
+
showHeader: [{ type: i0.Input }],
|
|
6626
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction",] }]
|
|
6627
|
+
};
|
|
6106
6628
|
|
|
6107
6629
|
var TransactionHeaderComponent = /** @class */ (function () {
|
|
6108
6630
|
function TransactionHeaderComponent() {
|
|
@@ -6640,58 +7162,6 @@
|
|
|
6640
7162
|
},] }
|
|
6641
7163
|
];
|
|
6642
7164
|
|
|
6643
|
-
var ShoppingCartPreviewComponent = /** @class */ (function () {
|
|
6644
|
-
function ShoppingCartPreviewComponent(service) {
|
|
6645
|
-
this.service = service;
|
|
6646
|
-
this.icons = Icon;
|
|
6647
|
-
this.checkout = new i0.EventEmitter();
|
|
6648
|
-
this.editCartClick = new i0.EventEmitter();
|
|
6649
|
-
}
|
|
6650
|
-
ShoppingCartPreviewComponent.prototype.showClass = function () {
|
|
6651
|
-
return true;
|
|
6652
|
-
};
|
|
6653
|
-
return ShoppingCartPreviewComponent;
|
|
6654
|
-
}());
|
|
6655
|
-
ShoppingCartPreviewComponent.decorators = [
|
|
6656
|
-
{ type: i0.Component, args: [{
|
|
6657
|
-
selector: "co-shopping-cart-preview",
|
|
6658
|
-
template: "\n <div class=\"cart-header\">\n <span class=\"cart-header-label\" [textContent]=\"'CART' | localize\"></span>\n </div>\n <div class=\"cart-lines\">\n <co-transaction-lines\n [transactionLines]=\"service.currentTransaction.transactionLines\"\n [preview]=\"true\"\n ></co-transaction-lines>\n </div>\n <div class=\"preview-totals-wrapper\">\n <co-transaction-totals [totals]=\"service.currentTransaction.transactionTotal\"></co-transaction-totals>\n </div>\n <div class=\"cart-buttons\">\n <a class=\"button-edit-cart\" [textContent]=\"'EDIT_CART' | localize\"\n (click)=\"editCartClick.emit()\"\n ></a>\n <co-button class=\"button-checkout\" [label]=\"'SHOPPING_CART_CHECKOUT' | localize\"\n [disabled]=\"!service.articleAmount\"\n (click)=\"checkout.emit()\"></co-button>\n </div>\n ",
|
|
6659
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
6660
|
-
},] }
|
|
6661
|
-
];
|
|
6662
|
-
ShoppingCartPreviewComponent.ctorParameters = function () { return [
|
|
6663
|
-
{ type: TransactionService }
|
|
6664
|
-
]; };
|
|
6665
|
-
ShoppingCartPreviewComponent.propDecorators = {
|
|
6666
|
-
checkout: [{ type: i0.Output }],
|
|
6667
|
-
editCartClick: [{ type: i0.Output }],
|
|
6668
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-shopping-cart-preview",] }]
|
|
6669
|
-
};
|
|
6670
|
-
|
|
6671
|
-
var ShoppingCartPreviewModule = /** @class */ (function () {
|
|
6672
|
-
function ShoppingCartPreviewModule() {
|
|
6673
|
-
}
|
|
6674
|
-
return ShoppingCartPreviewModule;
|
|
6675
|
-
}());
|
|
6676
|
-
ShoppingCartPreviewModule.decorators = [
|
|
6677
|
-
{ type: i0.NgModule, args: [{
|
|
6678
|
-
imports: [
|
|
6679
|
-
common.CommonModule,
|
|
6680
|
-
CoreModule,
|
|
6681
|
-
corecomponents_v12.ButtonModule,
|
|
6682
|
-
TransactionLinesModule,
|
|
6683
|
-
TransactionTotalsModule,
|
|
6684
|
-
PipeModule
|
|
6685
|
-
],
|
|
6686
|
-
declarations: [
|
|
6687
|
-
ShoppingCartPreviewComponent
|
|
6688
|
-
],
|
|
6689
|
-
exports: [
|
|
6690
|
-
ShoppingCartPreviewComponent
|
|
6691
|
-
]
|
|
6692
|
-
},] }
|
|
6693
|
-
];
|
|
6694
|
-
|
|
6695
7165
|
var TransactionLineGridComponent = /** @class */ (function () {
|
|
6696
7166
|
function TransactionLineGridComponent() {
|
|
6697
7167
|
this.transactionLines = [];
|
|
@@ -6766,26 +7236,38 @@
|
|
|
6766
7236
|
exports.TransactionTotalsModule = TransactionTotalsModule;
|
|
6767
7237
|
exports["ɵa"] = PendingReasonService;
|
|
6768
7238
|
exports["ɵb"] = DialogService;
|
|
6769
|
-
exports["ɵba"] =
|
|
6770
|
-
exports["ɵbb"] =
|
|
6771
|
-
exports["ɵbc"] =
|
|
6772
|
-
exports["ɵbd"] =
|
|
6773
|
-
exports["ɵbe"] =
|
|
6774
|
-
exports["ɵbf"] =
|
|
6775
|
-
exports["ɵbg"] =
|
|
6776
|
-
exports["ɵbh"] =
|
|
6777
|
-
exports["ɵbi"] =
|
|
6778
|
-
exports["ɵbj"] =
|
|
6779
|
-
exports["ɵbk"] =
|
|
6780
|
-
exports["ɵbl"] =
|
|
6781
|
-
exports["ɵbm"] =
|
|
6782
|
-
exports["ɵbn"] =
|
|
6783
|
-
exports["ɵbo"] =
|
|
6784
|
-
exports["ɵbp"] =
|
|
6785
|
-
exports["ɵbq"] =
|
|
6786
|
-
exports["ɵbr"] =
|
|
6787
|
-
exports["ɵbs"] =
|
|
7239
|
+
exports["ɵba"] = TileModule;
|
|
7240
|
+
exports["ɵbb"] = TileComponent;
|
|
7241
|
+
exports["ɵbc"] = RelationAddressTileComponent;
|
|
7242
|
+
exports["ɵbd"] = RelationAddressSelectComponent;
|
|
7243
|
+
exports["ɵbe"] = BusinessObjectFactory;
|
|
7244
|
+
exports["ɵbf"] = StepperModule;
|
|
7245
|
+
exports["ɵbg"] = StepperComponent;
|
|
7246
|
+
exports["ɵbh"] = StepperStepComponent;
|
|
7247
|
+
exports["ɵbi"] = TransactionArticleTextModule;
|
|
7248
|
+
exports["ɵbj"] = TransactionArticleTextComponent;
|
|
7249
|
+
exports["ɵbk"] = TransactionArticleTextOverviewModule;
|
|
7250
|
+
exports["ɵbl"] = TransactionArticleTextOverviewComponent;
|
|
7251
|
+
exports["ɵbm"] = TransactionLineSidePanelModule;
|
|
7252
|
+
exports["ɵbn"] = TransactionLineSidePanelComponent;
|
|
7253
|
+
exports["ɵbo"] = SellerInformationModule;
|
|
7254
|
+
exports["ɵbp"] = SellerInformationComponent;
|
|
7255
|
+
exports["ɵbq"] = DeliveryTypeTileModule;
|
|
7256
|
+
exports["ɵbr"] = DeliveryTypeTileComponent;
|
|
7257
|
+
exports["ɵbs"] = PaymentModule;
|
|
7258
|
+
exports["ɵbt"] = PaymentTileModule;
|
|
7259
|
+
exports["ɵbu"] = PaymentTileComponent;
|
|
7260
|
+
exports["ɵbv"] = PaymentComponent;
|
|
7261
|
+
exports["ɵbw"] = CheckoutOverviewRelationEditComponent;
|
|
7262
|
+
exports["ɵbx"] = CheckoutOverviewDeliveryEditComponent;
|
|
7263
|
+
exports["ɵby"] = CheckoutOverviewDeliveryAddressComponent;
|
|
7264
|
+
exports["ɵbz"] = CheckOutRelationSuggestionsListComponent;
|
|
6788
7265
|
exports["ɵc"] = OptionsService;
|
|
7266
|
+
exports["ɵca"] = CheckOutRelationSuggestionsListItemComponent;
|
|
7267
|
+
exports["ɵcb"] = CheckoutLoginComponent;
|
|
7268
|
+
exports["ɵcc"] = TransactionBaseComponent;
|
|
7269
|
+
exports["ɵcd"] = DiscountModule;
|
|
7270
|
+
exports["ɵce"] = DiscountComponent;
|
|
6789
7271
|
exports["ɵd"] = DictionaryService;
|
|
6790
7272
|
exports["ɵe"] = IOneConnectorAdapterService;
|
|
6791
7273
|
exports["ɵf"] = CoreModule;
|