@colijnit/transaction 12.1.7 → 12.1.8
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/README.md +10 -13
- package/bundles/colijnit-transaction.umd.js +5378 -7324
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +45 -58
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +46 -59
- package/esm2015/lib/assets/dictionary/text.properties.js +346 -0
- package/esm2015/lib/component/checkout/checkout-login/checkout-login.component.js +106 -0
- package/esm2015/lib/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +47 -0
- package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +443 -0
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +371 -0
- package/esm2015/lib/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +30 -0
- package/esm2015/lib/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +31 -0
- package/esm2015/lib/component/checkout/checkout.component.js +102 -0
- package/esm2015/lib/component/checkout/checkout.module.js +77 -0
- package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.component.js +38 -0
- package/esm2015/lib/component/confirmation-dialog/confirmation-dialog.module.js +24 -0
- package/esm2015/lib/component/core/base/dialog-base.component.js +6 -0
- package/esm2015/lib/component/core/base/transaction-base.component.js +96 -0
- package/esm2015/lib/component/core/core.module.js +36 -0
- package/esm2015/lib/component/core/enum/app-popup-button-type.enum.js +11 -0
- package/esm2015/{app → lib}/component/core/icon/icon.component.js +3 -4
- package/esm2015/lib/component/core/image-display/image-display.component.js +29 -0
- package/esm2015/lib/component/core/relation/customer-groups.component.js +40 -0
- package/esm2015/{app → lib}/component/core/stock-status-indicator/stock-status-indicator.component.js +2 -2
- package/esm2015/lib/component/discount/discount.component.js +107 -0
- package/esm2015/lib/component/discount/discount.module.js +29 -0
- package/esm2015/lib/component/relation-address/relation-address.component.js +125 -0
- package/esm2015/lib/component/relation-address/relation-address.module.js +28 -0
- package/esm2015/lib/component/relation-address-select/relation-address-select.component.js +146 -0
- package/esm2015/lib/component/relation-address-select/relation-address-select.module.js +33 -0
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.component.js +73 -0
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +30 -0
- package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.component.js +118 -0
- package/esm2015/lib/component/shared/transaction-article-text/transaction-article-text.module.js +31 -0
- package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.js +129 -0
- package/esm2015/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.module.js +34 -0
- package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +57 -0
- package/esm2015/lib/component/shopping-cart/shopping-cart.module.js +27 -0
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +51 -0
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.module.js +29 -0
- package/esm2015/lib/component/stepper/component/stepper-step.component.js +40 -0
- package/esm2015/lib/component/stepper/stepper.component.js +126 -0
- package/esm2015/lib/component/stepper/stepper.module.js +26 -0
- package/esm2015/lib/component/transaction/transaction.component.js +96 -0
- package/esm2015/lib/component/transaction/transaction.module.js +39 -0
- package/esm2015/lib/component/transaction-header/transaction-header.component.js +36 -0
- package/esm2015/lib/component/transaction-header/transaction-header.module.js +27 -0
- package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.component.js +34 -0
- package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.module.js +19 -0
- package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.component.js +57 -0
- package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.module.js +21 -0
- package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.component.js +35 -0
- package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.module.js +19 -0
- package/esm2015/lib/component/transaction-line/transaction-line.component.js +250 -0
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +30 -0
- package/esm2015/lib/component/transaction-line-grid/transaction-line-grid.component.js +23 -0
- package/esm2015/lib/component/transaction-line-grid/transaction-line-grid.module.js +21 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +117 -0
- package/esm2015/lib/component/transaction-lines/transaction-lines.module.js +31 -0
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +58 -0
- package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.module.js +26 -0
- package/esm2015/lib/component/transaction-totals/transaction-totals.component.js +44 -0
- package/esm2015/lib/component/transaction-totals/transaction-totals.module.js +23 -0
- package/esm2015/lib/enum/content-view-mode.enum.js +10 -0
- package/esm2015/lib/enum/icon.enum.js +17 -0
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/enum/order-discount-type.enum.js +7 -0
- package/esm2015/lib/enum/time-size.type.js +10 -0
- package/esm2015/lib/factory/business-object-factory.js +120 -0
- package/esm2015/lib/factory/decorators/boolean.decorator.js +102 -0
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +55 -0
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +57 -0
- package/esm2015/lib/factory/decorators/date-field.decorator.js +36 -0
- package/esm2015/lib/factory/decorators/string-number.decorator.js +43 -0
- package/esm2015/lib/model/business-object.js +81 -0
- package/esm2015/lib/model/icon-svg.js +16 -0
- package/esm2015/lib/model/standard-text.js +3 -0
- package/esm2015/lib/model/text-value-container.js +3 -0
- package/esm2015/lib/pipe/append.pipe.js +17 -0
- package/esm2015/lib/pipe/co-currency.pipe.js +47 -0
- package/esm2015/lib/pipe/date-duration.pipe.js +57 -0
- package/esm2015/lib/pipe/delivery-time.pipe.js +33 -0
- package/esm2015/lib/pipe/localize.pipe.js +28 -0
- package/esm2015/lib/pipe/pipe.module.js +37 -0
- package/esm2015/lib/pipe/safe-html.pipe.js +19 -0
- package/esm2015/lib/pipe/safe-style.pipe.js +19 -0
- package/esm2015/lib/service/dialog.service.js +65 -0
- package/esm2015/lib/service/dictionary.service.js +76 -0
- package/esm2015/lib/service/icon-cache.service.js +51 -0
- package/esm2015/lib/service/ione-connector-adapter.service.js +578 -0
- package/esm2015/lib/service/options.service.js +69 -0
- package/esm2015/lib/service/pending-reason.service.js +171 -0
- package/esm2015/lib/service/transaction.service.js +513 -0
- package/esm2015/lib/utils/array-utils.js +183 -0
- package/esm2015/lib/utils/is-nill.function.js +5 -0
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public_api.js +28 -10
- package/fesm2015/colijnit-transaction.js +5276 -7218
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/{assets → lib/assets}/dictionary/text.properties.d.ts +0 -0
- package/{app → lib}/component/checkout/checkout-login/checkout-login.component.d.ts +0 -0
- package/{app → lib}/component/checkout/checkout-login/checkout-login.component.scss +0 -0
- package/{app → lib}/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.d.ts +0 -0
- package/{app → lib}/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.scss +0 -0
- package/{app → lib}/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +38 -14
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_layout.scss +91 -0
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_material-definition.scss +12 -0
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_theme.scss +17 -0
- package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +8 -0
- package/{app → lib}/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +11 -11
- package/{app → lib}/component/checkout/checkout-overview-relation-edit/style/_layout.scss +22 -17
- package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +17 -0
- package/{app → lib}/component/checkout/checkout-overview-relation-edit/style/_theme.scss +1 -1
- package/{app → lib}/component/checkout/checkout-overview-relation-edit/style/material.scss +2 -1
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.d.ts +0 -0
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list/style/_layout.scss +2 -2
- package/{app/component/checkout/checkout-overview-relation-address → lib/component/checkout/checkout-relation-suggestions-list}/style/_material-definition.scss +0 -0
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list/style/_theme.scss +1 -1
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list/style/material.scss +1 -1
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.d.ts +0 -0
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list-item/style/_layout.scss +1 -1
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list-item/style/_material-definition.scss +0 -0
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list-item/style/_theme.scss +1 -1
- package/{app/component/core/base → lib/component/checkout/checkout-relation-suggestions-list-item}/style/material.scss +1 -1
- package/lib/component/checkout/checkout.component.d.ts +27 -0
- package/lib/component/checkout/checkout.module.d.ts +2 -0
- package/lib/component/checkout/style/_layout.scss +6 -0
- package/{app/component/checkout/checkout-relation-suggestions-list → lib/component/checkout}/style/_material-definition.scss +0 -0
- package/lib/component/checkout/style/_theme.scss +8 -0
- package/lib/component/checkout/style/material.scss +8 -0
- package/lib/component/confirmation-dialog/confirmation-dialog.component.d.ts +8 -0
- package/lib/component/confirmation-dialog/confirmation-dialog.module.d.ts +2 -0
- package/lib/component/confirmation-dialog/style/_layout.scss +22 -0
- package/lib/component/confirmation-dialog/style/_material-definition.scss +2 -0
- package/lib/component/confirmation-dialog/style/_theme.scss +6 -0
- package/{app/component/checkout/checkout-overview-relation-address → lib/component/confirmation-dialog}/style/material.scss +1 -1
- package/lib/component/core/base/dialog-base.component.d.ts +4 -0
- package/{app → lib}/component/core/base/style/_layout.scss +1 -1
- package/{app → lib}/component/core/base/style/_material-definition.scss +0 -0
- package/{app → lib}/component/core/base/style/_theme.scss +1 -1
- package/{app/component/core/image-display → lib/component/core/base}/style/material.scss +1 -1
- package/{app → lib}/component/core/base/transaction-base.component.d.ts +7 -23
- package/{app → lib}/component/core/characteristic-answer/characteristic-answer.component.scss +3 -1
- package/{app → lib}/component/core/core.module.d.ts +0 -0
- package/lib/component/core/enum/app-popup-button-type.enum.d.ts +9 -0
- package/{app → lib}/component/core/icon/icon.component.d.ts +3 -2
- package/{app → lib}/component/core/icon/icon.component.scss +3 -1
- package/lib/component/core/image-display/image-display.component.d.ts +5 -0
- package/{app → lib}/component/core/image-display/style/_layout.scss +20 -2
- package/lib/component/core/image-display/style/_material-definition.scss +4 -0
- package/{app → lib}/component/core/image-display/style/_theme.scss +1 -1
- package/{app/component/checkout/checkout-relation-suggestions-list-item → lib/component/core/image-display}/style/material.scss +1 -1
- package/{app → lib}/component/core/relation/customer-groups.component.d.ts +0 -0
- package/{app → lib}/component/core/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
- package/{app → lib}/component/core/stock-status-indicator/stock-status-indicator.component.scss +3 -1
- package/lib/component/discount/discount.component.d.ts +19 -0
- package/lib/component/discount/discount.module.d.ts +2 -0
- package/{app/component/checkout/checkout-overview-block/checkout-overview-block.component.scss → lib/component/discount/style/_layout.scss} +0 -0
- package/{app/component/core/image-display → lib/component/discount}/style/_material-definition.scss +0 -0
- package/{app/component/checkout/checkout-overview/checkout-overview.component.scss → lib/component/discount/style/_theme.scss} +0 -0
- package/{app/component/core/no-image-display/no-image-display.component.scss → lib/component/discount/style/material.scss} +0 -0
- package/lib/component/relation-address/relation-address.component.d.ts +28 -0
- package/lib/component/relation-address/relation-address.module.d.ts +2 -0
- package/lib/component/relation-address/style/_layout.scss +20 -0
- package/lib/component/relation-address/style/_material-definition.scss +3 -0
- package/lib/component/relation-address/style/_theme.scss +7 -0
- package/lib/component/relation-address/style/material.scss +5 -0
- package/lib/component/relation-address-select/relation-address-select.component.d.ts +33 -0
- package/lib/component/relation-address-select/relation-address-select.module.d.ts +2 -0
- package/lib/component/relation-address-select/style/_layout.scss +85 -0
- package/lib/component/relation-address-select/style/_material-definition.scss +4 -0
- package/lib/component/relation-address-select/style/_theme.scss +6 -0
- package/lib/component/relation-address-select/style/material.scss +5 -0
- package/lib/component/relation-address-tile/relation-address-tile.component.d.ts +13 -0
- package/lib/component/relation-address-tile/relation-address-tile.module.d.ts +2 -0
- package/lib/component/relation-address-tile/style/_layout.scss +63 -0
- package/lib/component/relation-address-tile/style/_material-definition.scss +15 -0
- package/lib/component/relation-address-tile/style/_theme.scss +51 -0
- package/lib/component/relation-address-tile/style/material.scss +4 -0
- package/{app → lib}/component/service-order/service-order.component.scss +4 -2
- package/{app → lib}/component/service-order/summary/transaction-delivery-summary.component.scss +3 -1
- package/{app → lib}/component/service-order/summary/transaction-summary-block.component.scss +3 -1
- package/{app → lib}/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.scss +0 -0
- package/{app → lib}/component/service-order/transaction-manager/transaction-manager.component.scss +3 -1
- package/{app → lib}/component/service-order/transaction-order-line-view/transaction-order-line-view.component.scss +3 -1
- package/{app → lib}/component/service-order/transaction-order-lines/transaction-order-lines.component.scss +3 -1
- package/{app → lib}/component/service-order/transaction-order-totals/transaction-order-totals.component.scss +3 -1
- package/{app → lib}/component/service-order/transaction-relation/transaction-relation-edit.component.scss +0 -0
- package/{app → lib}/component/service-order/transaction-sidebar/transaction-line-accordion.component.scss +0 -0
- package/{app → lib}/component/service-order/transaction-sidebar/transaction-sidebar-right.component.scss +0 -0
- package/{app → lib}/component/service-order/warehouse/warehouse.component.scss +3 -1
- package/lib/component/shared/transaction-article-text/style/_layout.scss +42 -0
- package/lib/component/shared/transaction-article-text/style/_material-definition.scss +7 -0
- package/lib/component/shared/transaction-article-text/style/_theme.scss +11 -0
- package/lib/component/shared/transaction-article-text/style/material.scss +5 -0
- package/lib/component/shared/transaction-article-text/transaction-article-text.component.d.ts +31 -0
- package/lib/component/shared/transaction-article-text/transaction-article-text.module.d.ts +2 -0
- package/lib/component/shared/transaction-article-text-overview/style/_layout.scss +56 -0
- package/lib/component/shared/transaction-article-text-overview/style/_material-definition.scss +9 -0
- package/lib/component/shared/transaction-article-text-overview/style/_theme.scss +9 -0
- package/lib/component/shared/transaction-article-text-overview/style/material.scss +4 -0
- package/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.component.d.ts +30 -0
- package/lib/component/shared/transaction-article-text-overview/transaction-article-text-overview.module.d.ts +2 -0
- package/lib/component/shopping-cart/shopping-cart.component.d.ts +15 -0
- package/lib/component/shopping-cart/shopping-cart.module.d.ts +2 -0
- package/lib/component/shopping-cart/style/_layout.scss +33 -0
- package/lib/component/shopping-cart/style/_material-definition.scss +10 -0
- package/lib/component/shopping-cart/style/_theme.scss +14 -0
- package/lib/component/shopping-cart/style/material.scss +4 -0
- package/{app/component/shopping-cart → lib/component/shopping-cart-OLD}/shopping-cart-manager/shopping-cart-manager.component.scss +4 -2
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +11 -0
- package/lib/component/shopping-cart-preview/shopping-cart-preview.module.d.ts +2 -0
- package/lib/component/shopping-cart-preview/style/_layout.scss +44 -0
- package/lib/component/shopping-cart-preview/style/_material-definition.scss +20 -0
- package/lib/component/shopping-cart-preview/style/_theme.scss +17 -0
- package/lib/component/shopping-cart-preview/style/material.scss +4 -0
- package/lib/component/stepper/component/stepper-step.component.d.ts +12 -0
- package/lib/component/stepper/stepper.component.d.ts +30 -0
- package/lib/component/stepper/stepper.module.d.ts +2 -0
- package/lib/component/stepper/style/_layout.scss +75 -0
- package/lib/component/stepper/style/_material-definition.scss +11 -0
- package/lib/component/stepper/style/_theme.scss +7 -0
- package/lib/component/stepper/style/material.scss +4 -0
- package/lib/component/transaction/style/_layout.scss +25 -0
- package/lib/component/transaction/style/_material-definition.scss +7 -0
- package/lib/component/transaction/style/_theme.scss +24 -0
- package/lib/component/transaction/style/material.scss +8 -0
- package/lib/component/transaction/transaction.component.d.ts +24 -0
- package/lib/component/transaction/transaction.module.d.ts +2 -0
- package/lib/component/transaction-header/style/_layout.scss +38 -0
- package/lib/component/transaction-header/style/_material-definition.scss +8 -0
- package/lib/component/transaction-header/style/_theme.scss +11 -0
- package/lib/component/transaction-header/style/material.scss +7 -0
- package/lib/component/transaction-header/transaction-header.component.d.ts +9 -0
- package/lib/component/transaction-header/transaction-header.module.d.ts +2 -0
- package/lib/component/transaction-header-contact/style/_layout.scss +25 -0
- package/lib/component/transaction-header-contact/style/_material-definition.scss +7 -0
- package/lib/component/transaction-header-contact/style/_theme.scss +11 -0
- package/lib/component/transaction-header-contact/style/material.scss +4 -0
- package/lib/component/transaction-header-contact/transaction-header-contact.component.d.ts +4 -0
- package/lib/component/transaction-header-contact/transaction-header-contact.module.d.ts +2 -0
- package/lib/component/transaction-header-delivery/style/_layout.scss +54 -0
- package/lib/component/transaction-header-delivery/style/_material-definition.scss +12 -0
- package/lib/component/transaction-header-delivery/style/_theme.scss +24 -0
- package/lib/component/transaction-header-delivery/style/material.scss +4 -0
- package/lib/component/transaction-header-delivery/transaction-header-delivery.component.d.ts +13 -0
- package/lib/component/transaction-header-delivery/transaction-header-delivery.module.d.ts +2 -0
- package/lib/component/transaction-header-relation/style/_layout.scss +25 -0
- package/lib/component/transaction-header-relation/style/_material-definition.scss +7 -0
- package/lib/component/transaction-header-relation/style/_theme.scss +11 -0
- package/lib/component/transaction-header-relation/style/material.scss +4 -0
- package/lib/component/transaction-header-relation/transaction-header-relation.component.d.ts +4 -0
- package/lib/component/transaction-header-relation/transaction-header-relation.module.d.ts +2 -0
- package/lib/component/transaction-line/style/_layout.scss +143 -0
- package/lib/component/transaction-line/style/_material-definition.scss +29 -0
- package/lib/component/transaction-line/style/_theme.scss +36 -0
- package/lib/component/transaction-line/style/material.scss +8 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +46 -0
- package/lib/component/transaction-line/transaction-line.module.d.ts +2 -0
- package/lib/component/transaction-line-grid/style/_layout.scss +6 -0
- package/{app/component/service-order/transaction-article-text-overview/transaction-article-text-overview.component.scss → lib/component/transaction-line-grid/style/_material-definition.scss} +0 -0
- package/lib/component/transaction-line-grid/style/_theme.scss +6 -0
- package/lib/component/transaction-line-grid/style/material.scss +4 -0
- package/lib/component/transaction-line-grid/transaction-line-grid.component.d.ts +5 -0
- package/lib/component/transaction-line-grid/transaction-line-grid.module.d.ts +2 -0
- package/lib/component/transaction-lines/style/_layout.scss +33 -0
- package/lib/component/transaction-lines/style/_material-definition.scss +3 -0
- package/lib/component/transaction-lines/style/_theme.scss +19 -0
- package/lib/component/transaction-lines/style/material.scss +7 -0
- package/lib/component/transaction-lines/transaction-lines.component.d.ts +31 -0
- package/lib/component/transaction-lines/transaction-lines.module.d.ts +2 -0
- package/lib/component/transaction-lines-grid/style/_layout.scss +37 -0
- package/lib/component/transaction-lines-grid/style/_material-definition.scss +19 -0
- package/lib/component/transaction-lines-grid/style/_theme.scss +15 -0
- package/lib/component/transaction-lines-grid/style/material.scss +5 -0
- package/lib/component/transaction-lines-grid/transaction-lines-grid.component.d.ts +17 -0
- package/lib/component/transaction-lines-grid/transaction-lines-grid.module.d.ts +2 -0
- package/lib/component/transaction-totals/style/_layout.scss +35 -0
- package/lib/component/transaction-totals/style/_material-definition.scss +15 -0
- package/lib/component/transaction-totals/style/_theme.scss +10 -0
- package/lib/component/transaction-totals/style/material.scss +4 -0
- package/lib/component/transaction-totals/transaction-totals.component.d.ts +9 -0
- package/lib/component/transaction-totals/transaction-totals.module.d.ts +2 -0
- package/{app → lib}/enum/content-view-mode.enum.d.ts +0 -0
- package/lib/enum/icon.enum.d.ts +15 -0
- package/{app → lib}/enum/language-code.enum.d.ts +0 -0
- package/{app → lib}/enum/order-discount-type.enum.d.ts +0 -0
- package/{app → lib}/enum/time-size.type.d.ts +0 -0
- package/{factory → lib/factory}/business-object-factory.d.ts +1 -1
- package/{factory → lib/factory}/decorators/boolean.decorator.d.ts +0 -0
- package/{factory → lib/factory}/decorators/complex-array.decorator.d.ts +0 -0
- package/{factory → lib/factory}/decorators/complex-field.decorator.d.ts +0 -0
- package/{factory → lib/factory}/decorators/date-field.decorator.d.ts +0 -0
- package/{factory → lib/factory}/decorators/string-number.decorator.d.ts +0 -0
- package/{app → lib}/model/business-object.d.ts +0 -0
- package/lib/model/icon-svg.d.ts +4 -0
- package/{app → lib}/model/standard-text.d.ts +0 -0
- package/{app → lib}/model/text-value-container.d.ts +0 -0
- package/{app → lib}/pipe/append.pipe.d.ts +0 -0
- package/{app → lib}/pipe/co-currency.pipe.d.ts +0 -0
- package/{app → lib}/pipe/date-duration.pipe.d.ts +0 -0
- package/{app → lib}/pipe/delivery-time.pipe.d.ts +0 -0
- package/{app → lib}/pipe/localize.pipe.d.ts +0 -0
- package/lib/pipe/pipe.module.d.ts +2 -0
- package/lib/pipe/safe-html.pipe.d.ts +7 -0
- package/{app/pipe/safe-style-pipe.d.ts → lib/pipe/safe-style.pipe.d.ts} +0 -0
- package/lib/service/dialog.service.d.ts +11 -0
- package/{app → lib}/service/dictionary.service.d.ts +0 -0
- package/lib/service/icon-cache.service.d.ts +18 -0
- package/{app → lib}/service/ione-connector-adapter.service.d.ts +8 -6
- package/{app → lib}/service/options.service.d.ts +3 -4
- package/lib/service/pending-reason.service.d.ts +31 -0
- package/{app → lib}/service/transaction.service.d.ts +10 -46
- package/{style → lib/style}/_mixin.scss +0 -0
- package/{style → lib/style}/_variables.scss +19 -1
- package/{utils → lib/utils}/array-utils.d.ts +0 -0
- package/{utils → lib/utils}/is-nill.function.d.ts +0 -0
- package/{app → lib}/utils/string-utils.d.ts +0 -0
- package/package.json +27 -33
- package/public_api.d.ts +27 -6
- package/app/app.component.scss +0 -39
- package/app/component/checkout/checkout/checkout.component.d.ts +0 -34
- package/app/component/checkout/checkout/checkout.component.scss +0 -137
- package/app/component/checkout/checkout-overview/checkout-overview.component.d.ts +0 -42
- package/app/component/checkout/checkout-overview-block/checkout-overview-block.component.d.ts +0 -12
- package/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.scss +0 -3
- package/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.d.ts +0 -23
- package/app/component/checkout/checkout-overview-relation-address/style/_layout.scss +0 -19
- package/app/component/checkout/checkout-overview-relation-address/style/_theme.scss +0 -7
- package/app/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +0 -15
- package/app/component/checkout/checkout-transaction/checkout-transaction.component.d.ts +0 -16
- package/app/component/checkout/checkout-transaction/checkout-transaction.component.scss +0 -11
- package/app/component/checkout/ione-checkout.component.d.ts +0 -41
- package/app/component/checkout/ione-checkout.module.d.ts +0 -2
- package/app/component/core/base/default-ok-cancel-buttons.component.d.ts +0 -13
- package/app/component/core/characteristic-answer/characteristic-answer.component.d.ts +0 -22
- package/app/component/core/directive/template-wrapper.directive.d.ts +0 -13
- package/app/component/core/image-display/image-display.component.d.ts +0 -14
- package/app/component/core/no-image-display/no-image-display.component.d.ts +0 -5
- package/app/component/service-order/ione-service-order-module.d.ts +0 -2
- package/app/component/service-order/ione-service-order.component.d.ts +0 -25
- package/app/component/service-order/service-order.component.d.ts +0 -52
- package/app/component/service-order/summary/transaction-article-summary.component.d.ts +0 -17
- package/app/component/service-order/summary/transaction-delivery-summary.component.d.ts +0 -20
- package/app/component/service-order/summary/transaction-order-summary.component.d.ts +0 -16
- package/app/component/service-order/summary/transaction-payment-info.component.d.ts +0 -14
- package/app/component/service-order/summary/transaction-product-contract-summary.component.d.ts +0 -7
- package/app/component/service-order/summary/transaction-product-summary.component.d.ts +0 -15
- package/app/component/service-order/summary/transaction-service-status.component.d.ts +0 -15
- package/app/component/service-order/summary/transaction-service-summary.component.d.ts +0 -15
- package/app/component/service-order/summary/transaction-summary-block.component.d.ts +0 -16
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +0 -33
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.scss +0 -6
- package/app/component/service-order/transaction-article-text-overview/transaction-article-text-overview.component.d.ts +0 -23
- package/app/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.d.ts +0 -19
- package/app/component/service-order/transaction-header-block/transaction-header-block.component.d.ts +0 -15
- package/app/component/service-order/transaction-header-block/transaction-header-block.component.scss +0 -65
- package/app/component/service-order/transaction-manager/transaction-manager.component.d.ts +0 -64
- package/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.d.ts +0 -16
- package/app/component/service-order/transaction-order-lines/transaction-order-lines.component.d.ts +0 -25
- package/app/component/service-order/transaction-order-totals/transaction-order-totals.component.d.ts +0 -6
- package/app/component/service-order/transaction-relation/transaction-relation-address.component.d.ts +0 -22
- package/app/component/service-order/transaction-relation/transaction-relation-edit.component.d.ts +0 -29
- package/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.d.ts +0 -11
- package/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.d.ts +0 -26
- package/app/component/service-order/warehouse/warehouse.component.d.ts +0 -35
- package/app/component/shopping-cart/ione-shopping-cart.component.d.ts +0 -71
- package/app/component/shopping-cart/ione-shopping-cart.module.d.ts +0 -2
- package/app/component/shopping-cart/shopping-cart/shopping-cart.component.d.ts +0 -61
- package/app/component/shopping-cart/shopping-cart/shopping-cart.component.scss +0 -79
- package/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.d.ts +0 -34
- package/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.scss +0 -107
- package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +0 -91
- package/app/enum/checkout-steps.enum.d.ts +0 -7
- package/app/enum/position-grid-row.enum.d.ts +0 -4
- package/app/model/transaction-add-text-line-request.d.ts +0 -9
- package/app/service/transaction-event.service.d.ts +0 -53
- package/esm2015/app/component/checkout/checkout/checkout.component.js +0 -157
- package/esm2015/app/component/checkout/checkout-login/checkout-login.component.js +0 -106
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +0 -185
- package/esm2015/app/component/checkout/checkout-overview-block/checkout-overview-block.component.js +0 -47
- package/esm2015/app/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +0 -47
- package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +0 -420
- package/esm2015/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +0 -103
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +0 -377
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +0 -30
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +0 -31
- package/esm2015/app/component/checkout/checkout-transaction/checkout-transaction.component.js +0 -55
- package/esm2015/app/component/checkout/ione-checkout.component.js +0 -137
- package/esm2015/app/component/checkout/ione-checkout.module.js +0 -76
- package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +0 -41
- package/esm2015/app/component/core/base/transaction-base.component.js +0 -146
- package/esm2015/app/component/core/characteristic-answer/characteristic-answer.component.js +0 -100
- package/esm2015/app/component/core/core.module.js +0 -48
- package/esm2015/app/component/core/directive/template-wrapper.directive.js +0 -69
- package/esm2015/app/component/core/image-display/image-display.component.js +0 -45
- package/esm2015/app/component/core/no-image-display/no-image-display.component.js +0 -26
- package/esm2015/app/component/core/relation/customer-groups.component.js +0 -40
- package/esm2015/app/component/service-order/ione-service-order-module.js +0 -114
- package/esm2015/app/component/service-order/ione-service-order.component.js +0 -96
- package/esm2015/app/component/service-order/service-order.component.js +0 -199
- package/esm2015/app/component/service-order/summary/transaction-article-summary.component.js +0 -55
- package/esm2015/app/component/service-order/summary/transaction-delivery-summary.component.js +0 -59
- package/esm2015/app/component/service-order/summary/transaction-order-summary.component.js +0 -43
- package/esm2015/app/component/service-order/summary/transaction-payment-info.component.js +0 -35
- package/esm2015/app/component/service-order/summary/transaction-product-contract-summary.component.js +0 -38
- package/esm2015/app/component/service-order/summary/transaction-product-summary.component.js +0 -41
- package/esm2015/app/component/service-order/summary/transaction-service-status.component.js +0 -37
- package/esm2015/app/component/service-order/summary/transaction-service-summary.component.js +0 -38
- package/esm2015/app/component/service-order/summary/transaction-summary-block.component.js +0 -53
- package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +0 -140
- package/esm2015/app/component/service-order/transaction-article-text-overview/transaction-article-text-overview.component.js +0 -105
- package/esm2015/app/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.js +0 -73
- package/esm2015/app/component/service-order/transaction-header-block/transaction-header-block.component.js +0 -83
- package/esm2015/app/component/service-order/transaction-manager/transaction-manager.component.js +0 -314
- package/esm2015/app/component/service-order/transaction-order-line-view/transaction-order-line-view.component.js +0 -76
- package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +0 -71
- package/esm2015/app/component/service-order/transaction-order-totals/transaction-order-totals.component.js +0 -36
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-address.component.js +0 -116
- package/esm2015/app/component/service-order/transaction-relation/transaction-relation-edit.component.js +0 -225
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-line-accordion.component.js +0 -172
- package/esm2015/app/component/service-order/transaction-sidebar/transaction-sidebar-right.component.js +0 -120
- package/esm2015/app/component/service-order/warehouse/warehouse.component.js +0 -133
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +0 -185
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +0 -62
- package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +0 -294
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +0 -172
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +0 -451
- package/esm2015/app/enum/checkout-steps.enum.js +0 -10
- package/esm2015/app/enum/content-view-mode.enum.js +0 -10
- package/esm2015/app/enum/language-code.enum.js +0 -8
- package/esm2015/app/enum/order-discount-type.enum.js +0 -7
- package/esm2015/app/enum/position-grid-row.enum.js +0 -6
- package/esm2015/app/enum/time-size.type.js +0 -10
- package/esm2015/app/model/business-object.js +0 -81
- package/esm2015/app/model/standard-text.js +0 -3
- package/esm2015/app/model/text-value-container.js +0 -3
- package/esm2015/app/model/transaction-add-text-line-request.js +0 -11
- package/esm2015/app/pipe/append.pipe.js +0 -17
- package/esm2015/app/pipe/co-currency.pipe.js +0 -47
- package/esm2015/app/pipe/date-duration.pipe.js +0 -57
- package/esm2015/app/pipe/delivery-time.pipe.js +0 -33
- package/esm2015/app/pipe/localize.pipe.js +0 -28
- package/esm2015/app/pipe/safe-style-pipe.js +0 -19
- package/esm2015/app/service/dictionary.service.js +0 -76
- package/esm2015/app/service/ione-connector-adapter.service.js +0 -567
- package/esm2015/app/service/options.service.js +0 -91
- package/esm2015/app/service/transaction-event.service.js +0 -26
- package/esm2015/app/service/transaction.service.js +0 -584
- package/esm2015/app/utils/string-utils.js +0 -64
- package/esm2015/assets/dictionary/text.properties.js +0 -332
- package/esm2015/factory/business-object-factory.js +0 -120
- package/esm2015/factory/decorators/boolean.decorator.js +0 -102
- package/esm2015/factory/decorators/complex-array.decorator.js +0 -55
- package/esm2015/factory/decorators/complex-field.decorator.js +0 -57
- package/esm2015/factory/decorators/date-field.decorator.js +0 -36
- package/esm2015/factory/decorators/string-number.decorator.js +0 -43
- package/esm2015/utils/array-utils.js +0 -183
- package/esm2015/utils/is-nill.function.js +0 -5
- package/style/styles.scss +0 -367
- package/styles.scss +0 -11
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
import { DictionaryService } from "./dictionary.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./dictionary.service";
|
|
7
|
+
export class OptionsService {
|
|
8
|
+
constructor(_dictionary) {
|
|
9
|
+
this._dictionary = _dictionary;
|
|
10
|
+
this.optionsLoaded = new BehaviorSubject(false);
|
|
11
|
+
}
|
|
12
|
+
set options(value) {
|
|
13
|
+
this._options = value;
|
|
14
|
+
}
|
|
15
|
+
get options() {
|
|
16
|
+
return this._options;
|
|
17
|
+
}
|
|
18
|
+
createSettingsFromObject(obj) {
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
this.options = new Object();
|
|
21
|
+
if (obj.hasOwnProperty("url")) {
|
|
22
|
+
this.options.url = obj["url"];
|
|
23
|
+
}
|
|
24
|
+
if (obj.hasOwnProperty("schema")) {
|
|
25
|
+
this.options.schema = obj["schema"];
|
|
26
|
+
}
|
|
27
|
+
if (obj.hasOwnProperty("version")) {
|
|
28
|
+
this.options.version = obj["version"];
|
|
29
|
+
}
|
|
30
|
+
if (obj.hasOwnProperty("languageCode")) {
|
|
31
|
+
this.options.languageCode = obj["languageCode"];
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.options.languageCode = "NL";
|
|
35
|
+
}
|
|
36
|
+
if (obj.hasOwnProperty("username")) {
|
|
37
|
+
this.options.username = obj["username"];
|
|
38
|
+
}
|
|
39
|
+
if (obj.hasOwnProperty("password")) {
|
|
40
|
+
this.options.password = obj["password"];
|
|
41
|
+
}
|
|
42
|
+
if (obj.hasOwnProperty("session")) {
|
|
43
|
+
this.options.session = obj["session"];
|
|
44
|
+
}
|
|
45
|
+
if (obj.hasOwnProperty("useLoginEncryption")) {
|
|
46
|
+
this.options.useLoginEncryption = obj["useLoginEncryption"];
|
|
47
|
+
}
|
|
48
|
+
this.optionsLoaded.next(true);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
initialize(options) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
if (options) {
|
|
54
|
+
yield this.createSettingsFromObject(options);
|
|
55
|
+
yield this._dictionary.setDictionary(this.options.languageCode);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
OptionsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function OptionsService_Factory() { return new OptionsService(i0.ɵɵinject(i1.DictionaryService)); }, token: OptionsService, providedIn: "root" });
|
|
61
|
+
OptionsService.decorators = [
|
|
62
|
+
{ type: Injectable, args: [{
|
|
63
|
+
providedIn: "root"
|
|
64
|
+
},] }
|
|
65
|
+
];
|
|
66
|
+
OptionsService.ctorParameters = () => [
|
|
67
|
+
{ type: DictionaryService }
|
|
68
|
+
];
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9zZXJ2aWNlL29wdGlvbnMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQ3JDLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLHNCQUFzQixDQUFDOzs7QUFLdkQsTUFBTSxPQUFPLGNBQWM7SUFjekIsWUFBb0IsV0FBOEI7UUFBOUIsZ0JBQVcsR0FBWCxXQUFXLENBQW1CO1FBSjNDLGtCQUFhLEdBQTZCLElBQUksZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBSzVFLENBQUM7SUFiRCxJQUFXLE9BQU8sQ0FBQyxLQUFVO1FBQzNCLElBQUksQ0FBQyxRQUFRLEdBQUcsS0FBSyxDQUFDO0lBQ3hCLENBQUM7SUFFRCxJQUFXLE9BQU87UUFDaEIsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ3ZCLENBQUM7SUFTWSx3QkFBd0IsQ0FBQyxHQUFROztZQUM1QyxJQUFJLENBQUMsT0FBTyxHQUFHLElBQUksTUFBTSxFQUFFLENBQU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@ -0,0 +1,171 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { TransactionInfoResponse } from "@colijnit/transactionapi/build/model/transaction-info-response.bo";
|
|
4
|
+
import { PendingReasonType } from "@colijnit/transactionapi/build/enum/pending-reason-type.enum";
|
|
5
|
+
import { ResolvePendingLineReasonRequest } from "@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo";
|
|
6
|
+
import { OptionsService } from "./options.service";
|
|
7
|
+
import { IOneConnectorAdapterService } from "./ione-connector-adapter.service";
|
|
8
|
+
import { BehaviorSubject } from "rxjs";
|
|
9
|
+
import { CustomerFullObject } from "@colijnit/transactionapi/build/model/customer-full-object.bo";
|
|
10
|
+
import { SetTransactionDeliveryOptionsRequest } from "@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo";
|
|
11
|
+
import { TransactionLineType } from "@colijnit/transactionapi/build/enum/transaction-line-type.enum";
|
|
12
|
+
import { RelationStatus } from "@colijnit/transactionapi/build/enum/relation-status.enum";
|
|
13
|
+
import { DialogService } from "./dialog.service";
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
import * as i1 from "./dialog.service";
|
|
16
|
+
import * as i2 from "./options.service";
|
|
17
|
+
import * as i3 from "./ione-connector-adapter.service";
|
|
18
|
+
export class PendingReasonService {
|
|
19
|
+
constructor(dialogService, options, connector) {
|
|
20
|
+
this.dialogService = dialogService;
|
|
21
|
+
this.options = options;
|
|
22
|
+
this.connector = connector;
|
|
23
|
+
this.transactionUpdated = new BehaviorSubject(undefined);
|
|
24
|
+
this.applicationUser = false;
|
|
25
|
+
this.currentTransaction = new TransactionInfoResponse();
|
|
26
|
+
this.relation = new CustomerFullObject();
|
|
27
|
+
this.articleAmount = 0;
|
|
28
|
+
}
|
|
29
|
+
init(options) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
yield this.options.initialize(options);
|
|
32
|
+
this.connector.connect();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
cancelAddTransactionLine(lineUuid, remember = true) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return new Promise((resolve, reject) => {
|
|
38
|
+
this.connector.cancelAddTransactionLine(lineUuid)
|
|
39
|
+
.then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (remember) {
|
|
41
|
+
this._rememberCurrentTransaction(response);
|
|
42
|
+
}
|
|
43
|
+
if (response.isSuccess) {
|
|
44
|
+
resolve(response);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
reject(response);
|
|
48
|
+
}
|
|
49
|
+
}))
|
|
50
|
+
.catch((reason) => {
|
|
51
|
+
resolve(null);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
handleLineOperationStatuses(response) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
if (!response.lineOperationStatuses || response.lineOperationStatuses.length === 0) {
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
for (let i = 0; i < response.lineOperationStatuses.length; i++) {
|
|
62
|
+
const status = response.lineOperationStatuses[i];
|
|
63
|
+
const transLine = response.transactionLines.find(t => t.lineNr === status.lineNr);
|
|
64
|
+
yield this._handleLineOperationStatus(status, transLine);
|
|
65
|
+
}
|
|
66
|
+
return true;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
_rememberCurrentTransaction(value) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
this.currentTransaction = value;
|
|
72
|
+
this._setTransactionDeliveryOptions();
|
|
73
|
+
this._setAmount();
|
|
74
|
+
this._initializeTransaction();
|
|
75
|
+
this.transactionUpdated.next(this.currentTransaction);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
_handleLineOperationStatus(operationStatus, transactionLine) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
switch (operationStatus.pendingReasonType) {
|
|
81
|
+
case PendingReasonType.ABORTED:
|
|
82
|
+
case PendingReasonType.CANCELLED:
|
|
83
|
+
yield this._cancelArticle(operationStatus.uuid);
|
|
84
|
+
break;
|
|
85
|
+
case PendingReasonType.CONFIRMATION_NEEDED:
|
|
86
|
+
yield this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
87
|
+
break;
|
|
88
|
+
// case PendingReasonType.INVALID_LOGISTICS:
|
|
89
|
+
// await this.showStockManager(this.currentPendingLine);
|
|
90
|
+
// break;
|
|
91
|
+
// case PendingReasonType.NON_CRITICAL_DISCONTINUATION:
|
|
92
|
+
// await this._showInformation();
|
|
93
|
+
// break;
|
|
94
|
+
// case PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED:
|
|
95
|
+
// this.CharacteristicsAnswerNeeded();
|
|
96
|
+
// break;
|
|
97
|
+
case PendingReasonType.NONE:
|
|
98
|
+
default:
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
resolvePendingLineReason(pendingLineValues) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const response = yield this.connector.resolvePendingLineReason(pendingLineValues);
|
|
106
|
+
this._rememberCurrentTransaction(response);
|
|
107
|
+
this.handleLineOperationStatuses(response);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
_confirmAction(uuid, reason, type) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const reasonRequest = new ResolvePendingLineReasonRequest(uuid, reason, type);
|
|
113
|
+
// const pendingReasonText: string = await this._getPendingReasonText(this.currentOperationStatus.pendingReason);
|
|
114
|
+
reasonRequest.confirmation = yield this.dialogService.showYesNo('Action', reason);
|
|
115
|
+
yield this.resolvePendingLineReason(reasonRequest);
|
|
116
|
+
// this._handleLineOperationStatus()
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
_setTransactionDeliveryOptions() {
|
|
120
|
+
if (!this.deliveryOptions) {
|
|
121
|
+
this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
|
|
122
|
+
}
|
|
123
|
+
this.deliveryOptions.allowPartialDelivery = this.currentTransaction.transactionInfo.allowPartialDelivery;
|
|
124
|
+
this.deliveryOptions.deliveryDate = this.currentTransaction.transactionInfo.deliveryDate;
|
|
125
|
+
this.deliveryOptions.deliveryMethod = this.currentTransaction.transactionInfo.deliveryMethod;
|
|
126
|
+
this.deliveryOptions.deliveryOptions = this.currentTransaction.transactionInfo.deliveryOptions;
|
|
127
|
+
this.deliveryOptions.marketingCode = this.currentTransaction.transactionInfo.marketingCode;
|
|
128
|
+
this.deliveryOptions.ownReference = this.currentTransaction.transactionInfo.ownReference;
|
|
129
|
+
this.deliveryOptions.preferredDeliveryDate = this.currentTransaction.transactionInfo.preferredDeliveryDate;
|
|
130
|
+
this.deliveryOptions.preferredDeliveryDate2 = this.currentTransaction.transactionInfo.preferredDeliveryDate2;
|
|
131
|
+
this.deliveryOptions.relationReference = this.currentTransaction.transactionInfo.relationReference;
|
|
132
|
+
this.deliveryOptions.remark = this.currentTransaction.transactionInfo.remark;
|
|
133
|
+
this.deliveryOptions.transactionUuid = this.currentTransaction.transactionInfo.uuid;
|
|
134
|
+
}
|
|
135
|
+
_setAmount() {
|
|
136
|
+
if (this.currentTransaction && this.currentTransaction.transactionLines) {
|
|
137
|
+
this.articleAmount = this.currentTransaction.transactionLines.filter(t => t.lineType === TransactionLineType.ArticleLine).length;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
_initializeTransaction() {
|
|
141
|
+
if (!this.relation) {
|
|
142
|
+
this.relation = new CustomerFullObject();
|
|
143
|
+
this.relation.relationStatus = RelationStatus.RegularCustomer;
|
|
144
|
+
this.relation.startDate = new Date();
|
|
145
|
+
this.deliveryOptions = new SetTransactionDeliveryOptionsRequest();
|
|
146
|
+
}
|
|
147
|
+
if (this.currentTransaction.transactionInfo.preferredDeliveryDate2 === undefined) {
|
|
148
|
+
this.currentTransaction.transactionInfo.preferredDeliveryDate2 = "=";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
_cancelArticle(uuid) {
|
|
152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
yield this.cancelAddTransactionLine(uuid, false)
|
|
154
|
+
.then((response) => {
|
|
155
|
+
this._rememberCurrentTransaction(response);
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
PendingReasonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PendingReasonService_Factory() { return new PendingReasonService(i0.ɵɵinject(i1.DialogService), i0.ɵɵinject(i2.OptionsService), i0.ɵɵinject(i3.IOneConnectorAdapterService)); }, token: PendingReasonService, providedIn: "root" });
|
|
161
|
+
PendingReasonService.decorators = [
|
|
162
|
+
{ type: Injectable, args: [{
|
|
163
|
+
providedIn: "root"
|
|
164
|
+
},] }
|
|
165
|
+
];
|
|
166
|
+
PendingReasonService.ctorParameters = () => [
|
|
167
|
+
{ type: DialogService },
|
|
168
|
+
{ type: OptionsService },
|
|
169
|
+
{ type: IOneConnectorAdapterService }
|
|
170
|
+
];
|
|
171
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVuZGluZy1yZWFzb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvc2VydmljZS9wZW5kaW5nLXJlYXNvbi5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyx1QkFBdUIsRUFBQyxNQUFNLG1FQUFtRSxDQUFDO0FBRTFHLE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