@colijnit/transaction 12.1.6 → 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/README.md +10 -13
- package/bundles/colijnit-transaction.umd.js +5786 -7155
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +57 -57
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/colijnit-transaction.js +58 -58
- package/esm2015/lib/assets/dictionary/text.properties.js +418 -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 +275 -0
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +538 -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 +132 -0
- package/esm2015/lib/component/checkout/checkout.module.js +86 -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/lib/component/core/icon/icon.component.js +31 -0
- package/esm2015/lib/component/core/image-display/image-display.component.js +29 -0
- package/esm2015/lib/component/core/relation/customer-groups.component.js +41 -0
- package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +24 -0
- 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/discount/discount.component.js +107 -0
- package/esm2015/lib/component/discount/discount.module.js +29 -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/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 +61 -0
- package/esm2015/lib/component/relation-address-tile/relation-address-tile.module.js +32 -0
- 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.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 +55 -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 +124 -0
- package/esm2015/lib/component/stepper/stepper.module.js +29 -0
- 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 +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 +278 -0
- package/esm2015/lib/component/transaction-line/transaction-line.module.js +32 -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-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 +122 -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 +24 -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/delivery-type.js +3 -0
- package/esm2015/lib/model/icon-svg.js +23 -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 +591 -0
- package/esm2015/lib/service/options.service.js +69 -0
- package/esm2015/lib/service/pending-reason.service.js +172 -0
- package/esm2015/lib/service/transaction.service.js +521 -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 +5913 -7162
- 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/lib/component/checkout/checkout-login/checkout-login.component.scss +35 -0
- package/{app → lib}/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.d.ts +0 -0
- package/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 +23 -36
- package/lib/component/checkout/checkout-overview-delivery-edit/style/_layout.scss +98 -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 +7 -0
- package/{app → lib}/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +41 -14
- package/lib/component/checkout/checkout-overview-relation-edit/style/_layout.scss +125 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_material-definition.scss +18 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/_theme.scss +9 -0
- package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +10 -0
- package/{app → lib}/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.d.ts +2 -3
- package/lib/component/checkout/checkout-relation-suggestions-list/style/_layout.scss +8 -0
- package/lib/component/checkout/checkout-relation-suggestions-list/style/_material-definition.scss +0 -0
- package/lib/component/checkout/checkout-relation-suggestions-list/style/_theme.scss +6 -0
- package/lib/component/checkout/checkout-relation-suggestions-list/style/material.scss +5 -0
- package/lib/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.d.ts +8 -0
- package/lib/component/checkout/checkout-relation-suggestions-list-item/style/_layout.scss +34 -0
- package/lib/component/checkout/checkout-relation-suggestions-list-item/style/_material-definition.scss +8 -0
- package/lib/component/checkout/checkout-relation-suggestions-list-item/style/_theme.scss +6 -0
- package/lib/component/checkout/checkout-relation-suggestions-list-item/style/material.scss +4 -0
- package/lib/component/checkout/checkout.component.d.ts +36 -0
- package/lib/component/checkout/checkout.module.d.ts +2 -0
- package/lib/component/checkout/style/_layout.scss +31 -0
- package/lib/component/checkout/style/_material-definition.scss +5 -0
- package/lib/component/checkout/style/_theme.scss +8 -0
- package/lib/component/checkout/style/material.scss +10 -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/lib/component/confirmation-dialog/style/material.scss +5 -0
- package/lib/component/core/base/dialog-base.component.d.ts +4 -0
- package/lib/component/core/base/style/_layout.scss +7 -0
- package/lib/component/core/base/style/_material-definition.scss +0 -0
- package/lib/component/core/base/style/_theme.scss +6 -0
- package/lib/component/core/base/style/material.scss +4 -0
- package/{app → lib}/component/core/base/transaction-base.component.d.ts +7 -23
- package/lib/component/core/characteristic-answer/characteristic-answer.component.scss +20 -0
- 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/lib/component/core/icon/icon.component.scss +87 -0
- package/lib/component/core/image-display/image-display.component.d.ts +5 -0
- package/lib/component/core/image-display/style/_layout.scss +57 -0
- package/lib/component/core/image-display/style/_material-definition.scss +4 -0
- package/lib/component/core/image-display/style/_theme.scss +6 -0
- package/lib/component/core/image-display/style/material.scss +4 -0
- package/lib/component/core/relation/customer-groups.component.d.ts +13 -0
- package/lib/component/core/relation/relation-customer-groups.component.scss +6 -0
- package/{app → lib}/component/core/stock-status-indicator/stock-status-indicator.component.d.ts +0 -0
- package/lib/component/core/stock-status-indicator/stock-status-indicator.component.scss +47 -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/discount/discount.component.d.ts +19 -0
- package/lib/component/discount/discount.module.d.ts +2 -0
- package/lib/component/discount/style/_layout.scss +0 -0
- package/lib/component/discount/style/_material-definition.scss +0 -0
- package/lib/component/discount/style/_theme.scss +0 -0
- package/lib/component/discount/style/material.scss +0 -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/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 +25 -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 +14 -0
- package/lib/component/relation-address-tile/relation-address-tile.module.d.ts +2 -0
- package/lib/component/relation-address-tile/style/_layout.scss +42 -0
- package/lib/component/relation-address-tile/style/_material-definition.scss +16 -0
- package/lib/component/relation-address-tile/style/_theme.scss +21 -0
- package/lib/component/relation-address-tile/style/material.scss +5 -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/service-order/service-order.component.scss +154 -0
- package/lib/component/service-order/summary/transaction-delivery-summary.component.scss +22 -0
- package/lib/component/service-order/summary/transaction-summary-block.component.scss +109 -0
- package/lib/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.scss +0 -0
- package/lib/component/service-order/transaction-manager/transaction-manager.component.scss +54 -0
- package/lib/component/service-order/transaction-order-line-view/transaction-order-line-view.component.scss +90 -0
- package/lib/component/service-order/transaction-order-lines/transaction-order-lines.component.scss +85 -0
- package/lib/component/service-order/transaction-order-totals/transaction-order-totals.component.scss +26 -0
- package/lib/component/service-order/transaction-relation/transaction-relation-edit.component.scss +24 -0
- package/lib/component/service-order/transaction-sidebar/transaction-line-accordion.component.scss +0 -0
- package/lib/component/service-order/transaction-sidebar/transaction-sidebar-right.component.scss +17 -0
- package/lib/component/service-order/warehouse/warehouse.component.scss +54 -0
- 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/lib/component/shopping-cart-OLD/shopping-cart-manager/shopping-cart-manager.component.scss +54 -0
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +13 -0
- package/lib/component/shopping-cart-preview/shopping-cart-preview.module.d.ts +2 -0
- package/lib/component/shopping-cart-preview/style/_layout.scss +48 -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 +35 -0
- package/lib/component/stepper/stepper.module.d.ts +2 -0
- package/lib/component/stepper/style/_layout.scss +107 -0
- package/lib/component/stepper/style/_material-definition.scss +18 -0
- package/lib/component/stepper/style/_theme.scss +43 -0
- package/lib/component/stepper/style/material.scss +4 -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/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 +41 -0
- package/lib/component/transaction-line/style/material.scss +9 -0
- package/lib/component/transaction-line/transaction-line.component.d.ts +51 -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/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-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/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 +32 -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 +22 -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/delivery-type.d.ts +7 -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 +15 -8
- package/lib/service/options.service.d.ts +12 -0
- package/lib/service/pending-reason.service.d.ts +31 -0
- package/{app → lib}/service/transaction.service.d.ts +16 -47
- package/lib/style/_mixin.scss +9 -0
- package/lib/style/_variables.scss +101 -0
- 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 -34
- package/public_api.d.ts +27 -6
- package/app/component/checkout/checkout/checkout.component.d.ts +0 -32
- 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-relation-address/checkout-overview-relation-address.component.d.ts +0 -22
- package/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.d.ts +0 -12
- package/app/component/checkout/checkout-transaction/checkout-transaction.component.d.ts +0 -13
- package/app/component/checkout/ione-checkout.component.d.ts +0 -39
- 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 -13
- 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-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-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-line/shopping-cart-line.component.d.ts +0 -34
- 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/direction.enum.d.ts +0 -6
- 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/options.service.d.ts +0 -14
- package/app/service/transaction-event.service.d.ts +0 -53
- package/css/styles.css +0 -38
- package/esm2015/app/component/checkout/checkout/checkout.component.js +0 -149
- 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 -115
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +0 -396
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +0 -33
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +0 -53
- package/esm2015/app/component/checkout/checkout-transaction/checkout-transaction.component.js +0 -53
- package/esm2015/app/component/checkout/ione-checkout.component.js +0 -135
- package/esm2015/app/component/checkout/ione-checkout.module.js +0 -76
- package/esm2015/app/component/core/base/default-ok-cancel-buttons.component.js +0 -39
- 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 -43
- package/esm2015/app/component/core/directive/template-wrapper.directive.js +0 -69
- package/esm2015/app/component/core/icon/icon.component.js +0 -32
- package/esm2015/app/component/core/image-display/image-display.component.js +0 -41
- package/esm2015/app/component/core/no-image-display/no-image-display.component.js +0 -26
- package/esm2015/app/component/core/stock-status-indicator/stock-status-indicator.component.js +0 -24
- 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/direction.enum.js +0 -9
- 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 -553
- package/esm2015/app/service/options.service.js +0 -92
- package/esm2015/app/service/transaction-event.service.js +0 -26
- package/esm2015/app/service/transaction.service.js +0 -572
- 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
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
|
|
2
|
-
import { DictionaryService } from "../../../service/dictionary.service";
|
|
3
|
-
import { TransactionService } from "../../../service/transaction.service";
|
|
4
|
-
import { OrderDiscountType } from "../../../enum/order-discount-type.enum";
|
|
5
|
-
import { BusinessObject } from "@colijnit/transactionapi/build/model/business-object";
|
|
6
|
-
import { CoreComponentsIcon, CoSidebarComponent, IconCacheService } from "@colijnit/corecomponents_v12";
|
|
7
|
-
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
8
|
-
import { ContentViewMode } from "../../../enum/content-view-mode.enum";
|
|
9
|
-
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
10
|
-
import { ContextMenuItemModel, RowDragEventArgs } from "@syncfusion/ej2-angular-grids";
|
|
11
|
-
import { MenuEventArgs } from "@syncfusion/ej2-angular-navigations";
|
|
12
|
-
export declare class ShoppingCartComponent implements AfterViewInit, OnDestroy {
|
|
13
|
-
iconCacheService: IconCacheService;
|
|
14
|
-
private _dictionary;
|
|
15
|
-
service: TransactionService;
|
|
16
|
-
private _transactionEvents;
|
|
17
|
-
private _changeDetector;
|
|
18
|
-
readonly orderDiscountType: typeof OrderDiscountType;
|
|
19
|
-
readonly iconThickLines: CoreComponentsIcon;
|
|
20
|
-
readonly iconThinLines: CoreComponentsIcon;
|
|
21
|
-
readonly viewModes: typeof ContentViewMode;
|
|
22
|
-
discountsSidebar: CoSidebarComponent;
|
|
23
|
-
overlayMode: boolean;
|
|
24
|
-
overviewMode: boolean;
|
|
25
|
-
hideOverviewButton: boolean;
|
|
26
|
-
hideCheckoutButton: boolean;
|
|
27
|
-
hideCloseCartButton: boolean;
|
|
28
|
-
closeCart: EventEmitter<void>;
|
|
29
|
-
checkout: EventEmitter<void>;
|
|
30
|
-
overview: EventEmitter<void>;
|
|
31
|
-
get filteredCollection(): TransactionLineInfo[];
|
|
32
|
-
setFilteredCollection(value: BusinessObject[]): void;
|
|
33
|
-
discountHeader: string;
|
|
34
|
-
inputDiscounts: boolean;
|
|
35
|
-
transactionDiscountAmount: number;
|
|
36
|
-
transactionDiscountPercentage: number;
|
|
37
|
-
transactionTotal: number;
|
|
38
|
-
discountType: OrderDiscountType;
|
|
39
|
-
activeViewMode: ContentViewMode;
|
|
40
|
-
columns: any[];
|
|
41
|
-
contextMenuItems: ContextMenuItemModel[];
|
|
42
|
-
showDiscountsSidebar: boolean;
|
|
43
|
-
private _filteredCollection;
|
|
44
|
-
private _transactionUpdated;
|
|
45
|
-
private _selectedRow;
|
|
46
|
-
constructor(iconCacheService: IconCacheService, _dictionary: DictionaryService, service: TransactionService, _transactionEvents: TransactionEventService, _changeDetector: ChangeDetectorRef);
|
|
47
|
-
ngAfterViewInit(): void;
|
|
48
|
-
ngOnDestroy(): void;
|
|
49
|
-
getCartLabel(): string;
|
|
50
|
-
addDiscount(): void;
|
|
51
|
-
onStartDiscountInput(discountType: OrderDiscountType, header: string): void;
|
|
52
|
-
openShoppingCartModule(): void;
|
|
53
|
-
setDiscountHeader(discountType: OrderDiscountType): void;
|
|
54
|
-
onInputDiscountsOkClick(): void;
|
|
55
|
-
trackByFn(index: number, line: TransactionLineInfo): any;
|
|
56
|
-
handleRowsSelected(rows: any): void;
|
|
57
|
-
showSidebar(): void;
|
|
58
|
-
hideSidebar(): void;
|
|
59
|
-
menuItemClick(args: MenuEventArgs): void;
|
|
60
|
-
rowDrop(args: RowDragEventArgs): void;
|
|
61
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit } from "@angular/core";
|
|
2
|
-
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
3
|
-
import { StockStatus } from "@colijnit/transactionapi/build/enum/refcode/stock-status.enum";
|
|
4
|
-
import { TransactionService } from "../../../service/transaction.service";
|
|
5
|
-
import { CoreComponentsIcon, IconCacheService, PromptService } from "@colijnit/corecomponents_v12";
|
|
6
|
-
import { DictionaryService } from "../../../service/dictionary.service";
|
|
7
|
-
import { ResolvePendingLineReasonRequest } from "@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo";
|
|
8
|
-
export declare class ShoppingCartLineComponent implements AfterViewInit {
|
|
9
|
-
iconCacheService: IconCacheService;
|
|
10
|
-
service: TransactionService;
|
|
11
|
-
private _promptService;
|
|
12
|
-
private _dictionaryService;
|
|
13
|
-
readonly iconTrashBin: CoreComponentsIcon;
|
|
14
|
-
overlayMode: boolean;
|
|
15
|
-
overviewMode: boolean;
|
|
16
|
-
isText: boolean;
|
|
17
|
-
isArticle: boolean;
|
|
18
|
-
isSelected: boolean;
|
|
19
|
-
get line(): TransactionLineInfo;
|
|
20
|
-
set line(value: TransactionLineInfo);
|
|
21
|
-
localAmount: number;
|
|
22
|
-
image: string;
|
|
23
|
-
stock: StockStatus;
|
|
24
|
-
currentReason: ResolvePendingLineReasonRequest;
|
|
25
|
-
private _line;
|
|
26
|
-
constructor(iconCacheService: IconCacheService, service: TransactionService, _promptService: PromptService, _dictionaryService: DictionaryService);
|
|
27
|
-
ngAfterViewInit(): void;
|
|
28
|
-
changeLineAmount(amount: number): void;
|
|
29
|
-
deleteTransactionLineClick(): Promise<void>;
|
|
30
|
-
private _loadLineImage;
|
|
31
|
-
private _confirmAction;
|
|
32
|
-
private _showInformation;
|
|
33
|
-
private _handleLine;
|
|
34
|
-
}
|
package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { TransactionService } from "../../../service/transaction.service";
|
|
3
|
-
import { TransactionEventService } from "../../../service/transaction-event.service";
|
|
4
|
-
import { CommissionCodeType } from "@colijnit/transactionapi/build/enum/refcode/commission-code-type.enum";
|
|
5
|
-
import { TransactionLineInfo } from "@colijnit/transactionapi/build/model/transaction-line-info.bo";
|
|
6
|
-
import { ResolvePendingLineReasonRequest } from "@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo";
|
|
7
|
-
import { CoDomainValue } from "@colijnit/transactionapi/build/model/co-domain-value.bo";
|
|
8
|
-
import { TransactionArticleWarehouse } from "@colijnit/transactionapi/build/model/transaction-article-warehouse.bo";
|
|
9
|
-
import { CoDialogComponent, CoGridComponent, PromptService } from "@colijnit/corecomponents_v12";
|
|
10
|
-
import { ArticleFullObject } from "@colijnit/transactionapi/build/model/article-full-object";
|
|
11
|
-
import { DictionaryService } from "../../../service/dictionary.service";
|
|
12
|
-
import { CharacteristicAnswerComponent } from "../../core/characteristic-answer/characteristic-answer.component";
|
|
13
|
-
import { PositionGridRow } from "../../../enum/position-grid-row.enum";
|
|
14
|
-
export declare class ShoppingCartManagerComponent implements OnInit, OnDestroy {
|
|
15
|
-
service: TransactionService;
|
|
16
|
-
transactionEvents: TransactionEventService;
|
|
17
|
-
promptService: PromptService;
|
|
18
|
-
_dictionaryService: DictionaryService;
|
|
19
|
-
warehouseDialog: CoDialogComponent;
|
|
20
|
-
warehouseGrid: CoGridComponent<any>;
|
|
21
|
-
characteristicAnswer: CharacteristicAnswerComponent;
|
|
22
|
-
readonly linesChanged: EventEmitter<boolean>;
|
|
23
|
-
readonly openCart: EventEmitter<boolean>;
|
|
24
|
-
readonly articleAdded: EventEmitter<boolean>;
|
|
25
|
-
get amountOfLines(): number;
|
|
26
|
-
get showCharacteristicDialog(): boolean;
|
|
27
|
-
set showCharacteristicDialog(value: boolean);
|
|
28
|
-
branchNr: string;
|
|
29
|
-
newArticleNr: string;
|
|
30
|
-
newArticle: ArticleFullObject;
|
|
31
|
-
selectedWarehouseNr: number;
|
|
32
|
-
amount: number;
|
|
33
|
-
isReturn: boolean;
|
|
34
|
-
waitForLinesChangedToOpenCart: boolean;
|
|
35
|
-
message: string;
|
|
36
|
-
commissionCode: CommissionCodeType;
|
|
37
|
-
commissionCodes: CoDomainValue[];
|
|
38
|
-
commissionFields: Object;
|
|
39
|
-
transactionArticleWarehouses: TransactionArticleWarehouse[];
|
|
40
|
-
transactionArticleWarehouseFields: Object;
|
|
41
|
-
columns: any[];
|
|
42
|
-
currentPendingLine: TransactionLineInfo;
|
|
43
|
-
currentReason: ResolvePendingLineReasonRequest;
|
|
44
|
-
editingLine: TransactionLineInfo;
|
|
45
|
-
dialogPromptHeader: string;
|
|
46
|
-
rootElement: HTMLElement;
|
|
47
|
-
private _subscriptions;
|
|
48
|
-
private currentOperationStatus;
|
|
49
|
-
private _inOutCollection;
|
|
50
|
-
private _okOrCancelClick;
|
|
51
|
-
private _showCharacteristic;
|
|
52
|
-
constructor(service: TransactionService, transactionEvents: TransactionEventService, promptService: PromptService, _dictionaryService: DictionaryService);
|
|
53
|
-
ngOnInit(): Promise<void>;
|
|
54
|
-
ngOnDestroy(): void;
|
|
55
|
-
addToCart(sku: string, amount: number): Promise<void>;
|
|
56
|
-
addArticleLineToCartAt(sku: string, amount: number, lineNr: number, beforeOrAfter: PositionGridRow): Promise<void>;
|
|
57
|
-
addTextLineToCartAt(text: string, lineNr: number, beforeOrAfter: PositionGridRow): Promise<void>;
|
|
58
|
-
changeLineSequence(fromIndex: number, toIndex: number): Promise<void>;
|
|
59
|
-
addToCartBySelectorResult(result: {
|
|
60
|
-
goodId: number;
|
|
61
|
-
baseGoodId: number;
|
|
62
|
-
selectorData: any;
|
|
63
|
-
quantity: number;
|
|
64
|
-
}): Promise<void>;
|
|
65
|
-
addUserRelationToTransactionAndLogin(userName: string, password: string): Promise<void>;
|
|
66
|
-
showStockManager(line: TransactionLineInfo): Promise<void>;
|
|
67
|
-
hide(): Promise<void>;
|
|
68
|
-
show(articleNr: string): void;
|
|
69
|
-
onStockManagerCancelClick(): Promise<void>;
|
|
70
|
-
onStockManagerOkClick(): Promise<void>;
|
|
71
|
-
handleRowsSelected(rows: any): void;
|
|
72
|
-
handleCharacteristicAnswerOkClick(answer: string): Promise<void>;
|
|
73
|
-
private _reloadDataCollections;
|
|
74
|
-
private _handleAddArticle;
|
|
75
|
-
private _handleAddArticleLineAt;
|
|
76
|
-
private _getWareHouseNoFromArticle;
|
|
77
|
-
private _isLineOperationStatus;
|
|
78
|
-
private _checkIfShoppingCartNeedsToDisplay;
|
|
79
|
-
private _confirmAction;
|
|
80
|
-
private _showInformation;
|
|
81
|
-
private _getPendingReasonText;
|
|
82
|
-
private getInOutCollectionOfArticle;
|
|
83
|
-
private _handleLineOperationStatus;
|
|
84
|
-
private _handlePendingLine;
|
|
85
|
-
private _createTransaction;
|
|
86
|
-
private _loadArticle;
|
|
87
|
-
private addEmailAddressToTransaction;
|
|
88
|
-
private CharacteristicsAnswerNeeded;
|
|
89
|
-
private _getLineUuidByLineNr;
|
|
90
|
-
private _getTransactionLineInfoByIndex;
|
|
91
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from "rxjs";
|
|
2
|
-
import { Options } from "@colijnit/ioneconnector/build/model/options";
|
|
3
|
-
export declare class OptionsService {
|
|
4
|
-
set options(value: Options);
|
|
5
|
-
get options(): Options;
|
|
6
|
-
optionsLoaded: BehaviorSubject<boolean>;
|
|
7
|
-
private _options;
|
|
8
|
-
constructor();
|
|
9
|
-
createSettingsFromObject(obj: any): Promise<void>;
|
|
10
|
-
initialize(options: any): Promise<void>;
|
|
11
|
-
initializeDevelopmentOptions(remote: boolean): void;
|
|
12
|
-
private _initializeDevelopmentRemoteOptions;
|
|
13
|
-
private _initializeDevelopmentLocalOptions;
|
|
14
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import { BusinessObject } from "@colijnit/transactionapi/build/model/business-object";
|
|
3
|
-
import { PositionGridRow } from "../enum/position-grid-row.enum";
|
|
4
|
-
import { Scroll } from "@angular/router";
|
|
5
|
-
export declare class TransactionEventService {
|
|
6
|
-
readonly addToCartBySku: Subject<{
|
|
7
|
-
sku: string;
|
|
8
|
-
amount: number;
|
|
9
|
-
popCart: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
readonly addToCartBySelectorResult: Subject<{
|
|
12
|
-
selectorResult: {
|
|
13
|
-
goodId: number;
|
|
14
|
-
baseGoodId: number;
|
|
15
|
-
selectorData: any;
|
|
16
|
-
quantity: number;
|
|
17
|
-
};
|
|
18
|
-
popCart: boolean;
|
|
19
|
-
}>;
|
|
20
|
-
readonly openShoppingCartModule: Subject<void>;
|
|
21
|
-
readonly loggedIn: Subject<void>;
|
|
22
|
-
readonly addNewUserToShoppingCartModule: Subject<string>;
|
|
23
|
-
readonly addUserRelationShoppingCartModule: Subject<{
|
|
24
|
-
user: string;
|
|
25
|
-
pw: string;
|
|
26
|
-
}>;
|
|
27
|
-
readonly addArticleLine: Subject<{
|
|
28
|
-
lineNr: number;
|
|
29
|
-
beforeOrAfter: PositionGridRow;
|
|
30
|
-
}>;
|
|
31
|
-
readonly addTextLine: Subject<{
|
|
32
|
-
lineNr: number;
|
|
33
|
-
beforeOrAfter: PositionGridRow;
|
|
34
|
-
}>;
|
|
35
|
-
readonly addArticleLineAt: Subject<{
|
|
36
|
-
sku: string;
|
|
37
|
-
amount: number;
|
|
38
|
-
lineNr: number;
|
|
39
|
-
beforeOrAfter: PositionGridRow;
|
|
40
|
-
}>;
|
|
41
|
-
readonly addTextLineAt: Subject<{
|
|
42
|
-
text: string;
|
|
43
|
-
lineNr: number;
|
|
44
|
-
beforeOrAfter: PositionGridRow;
|
|
45
|
-
}>;
|
|
46
|
-
readonly changeLineSequence: Subject<({
|
|
47
|
-
fromIndex: number;
|
|
48
|
-
toIndex: number;
|
|
49
|
-
})>;
|
|
50
|
-
readonly transactionLineClicked: Subject<BusinessObject>;
|
|
51
|
-
readonly rightSidebarClose: Subject<void>;
|
|
52
|
-
readonly scrollContent: Subject<Scroll>;
|
|
53
|
-
}
|
package/css/styles.css
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* You can add global styles to this file, and also import other style files */
|
|
2
|
-
html, body {
|
|
3
|
-
height: 100%; }
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 0;
|
|
7
|
-
font-family: Roboto, "Helvetica Neue", sans-serif; }
|
|
8
|
-
|
|
9
|
-
.flex-center {
|
|
10
|
-
display: flex; }
|
|
11
|
-
|
|
12
|
-
.flex-center {
|
|
13
|
-
flex-direction: row; }
|
|
14
|
-
|
|
15
|
-
.flex-center {
|
|
16
|
-
align-items: center !important;
|
|
17
|
-
justify-content: center !important; }
|
|
18
|
-
|
|
19
|
-
/*
|
|
20
|
-
structure
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
mixins
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
icon extensions
|
|
27
|
-
*/
|
|
28
|
-
.triangle {
|
|
29
|
-
border-top-left-radius: 3px;
|
|
30
|
-
border-bottom-left-radius: 3px;
|
|
31
|
-
border-top-right-radius: 3px;
|
|
32
|
-
border-bottom-right-radius: 3px; }
|
|
33
|
-
|
|
34
|
-
.full-width {
|
|
35
|
-
width: 100%; }
|
|
36
|
-
|
|
37
|
-
.flex-center {
|
|
38
|
-
margin: 10px 0 10px; }
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { Component, ViewChild } from "@angular/core";
|
|
3
|
-
import { CheckoutSteps } from "../../../enum/checkout-steps.enum";
|
|
4
|
-
import { CheckoutOverviewComponent } from "../checkout-overview/checkout-overview.component";
|
|
5
|
-
import { isNill } from "@colijnit/transactionapi/build/utils/function/is-nill.function";
|
|
6
|
-
import { NULL_RELATION_OBJECT } from "@colijnit/transactionapi/build/model/nul-relation-object";
|
|
7
|
-
import { TransactionService } from "../../../service/transaction.service";
|
|
8
|
-
import { PromptService } from "@colijnit/corecomponents_v12";
|
|
9
|
-
export class CheckoutComponent {
|
|
10
|
-
constructor(service, promptService) {
|
|
11
|
-
this.service = service;
|
|
12
|
-
this.promptService = promptService;
|
|
13
|
-
this.completedRelation = false;
|
|
14
|
-
this.completedDelivery = false;
|
|
15
|
-
this._relation = NULL_RELATION_OBJECT;
|
|
16
|
-
}
|
|
17
|
-
get relation() {
|
|
18
|
-
return this.service.currentRelation;
|
|
19
|
-
}
|
|
20
|
-
get transaction() {
|
|
21
|
-
return this.service.currentTransaction;
|
|
22
|
-
}
|
|
23
|
-
get canContinue() {
|
|
24
|
-
return this.stepper && (this.stepper.selectedIndex !== 0 || !isNill(this.relation));
|
|
25
|
-
}
|
|
26
|
-
get finished() {
|
|
27
|
-
return this.stepper && this.stepper.steps && this.stepper.selectedIndex === this.stepper.steps.length - 1;
|
|
28
|
-
}
|
|
29
|
-
get userIsApplicationUser() {
|
|
30
|
-
// TODO: return this.userService.isApplicationUser;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
static _currentStepByIndex(index) {
|
|
34
|
-
switch (index) {
|
|
35
|
-
case 0:
|
|
36
|
-
return CheckoutSteps.Relation;
|
|
37
|
-
case 1:
|
|
38
|
-
return CheckoutSteps.Delivery;
|
|
39
|
-
case 2:
|
|
40
|
-
return CheckoutSteps.Payment;
|
|
41
|
-
default:
|
|
42
|
-
return CheckoutSteps.Overview;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
continue() {
|
|
46
|
-
let toNextStep = false;
|
|
47
|
-
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Relation) {
|
|
48
|
-
toNextStep = this.overview.relationForm.submit();
|
|
49
|
-
this.completedRelation = toNextStep;
|
|
50
|
-
this.completedDelivery = false;
|
|
51
|
-
}
|
|
52
|
-
if (CheckoutComponent._currentStepByIndex(this.stepper.selectedIndex) === CheckoutSteps.Delivery) {
|
|
53
|
-
toNextStep = this.overview.deliveryForm.submit();
|
|
54
|
-
this.completedDelivery = toNextStep;
|
|
55
|
-
}
|
|
56
|
-
if (this.stepper && toNextStep) {
|
|
57
|
-
this.stepper.selected.completed = true;
|
|
58
|
-
this.stepper.next();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
previous() {
|
|
62
|
-
if (this.stepper) {
|
|
63
|
-
this.stepper.previous();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
stepFinished() {
|
|
67
|
-
this.continue();
|
|
68
|
-
}
|
|
69
|
-
handleSaveRelation() {
|
|
70
|
-
this.saveNewRelation().then(() => {
|
|
71
|
-
this.service.saveTransaction();
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
handleSaveDelivery() {
|
|
75
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
return new Promise((resolve, reject) => {
|
|
77
|
-
this.service.setTransactionDeliveryOptions().then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
if (response) {
|
|
79
|
-
yield this.service.saveTransaction().then();
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
yield this.promptService.showError("Opslag bezorging mislukt", " ");
|
|
83
|
-
}
|
|
84
|
-
resolve(true);
|
|
85
|
-
})).catch((reason) => {
|
|
86
|
-
this.promptService.showError("Opslag transactie mislukt", " ");
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
saveNewRelation() {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
if (isNill(this.service.currentRelation.relationId)) {
|
|
94
|
-
yield this.service.saveNewRelation();
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
yield this.service.saveRelation();
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
stepChanged(event) {
|
|
102
|
-
this.overview.moveToStep(CheckoutComponent._currentStepByIndex(event.selectedIndex), true);
|
|
103
|
-
}
|
|
104
|
-
insertData() {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
yield this.service.insertCustomer(this.relation);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
updateData() {
|
|
110
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
const relation = this.relation;
|
|
112
|
-
yield this.service.updateCustomer(relation);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
CheckoutComponent.decorators = [
|
|
117
|
-
{ type: Component, args: [{
|
|
118
|
-
selector: "app-checkout",
|
|
119
|
-
template: `
|
|
120
|
-
<div class="checkout-viewport">
|
|
121
|
-
<mat-horizontal-stepper #stepper
|
|
122
|
-
[linear]="true" labelPosition="bottom"
|
|
123
|
-
(selectionChange)="stepChanged($event)">
|
|
124
|
-
<mat-step [label]="'YOUR_DATA' | localize" [completed]="completedRelation"></mat-step>
|
|
125
|
-
<mat-step [label]="'DELIVERY' | localize" [completed]="completedDelivery"></mat-step>
|
|
126
|
-
<mat-step [label]="'PAYMENT' | localize"></mat-step>
|
|
127
|
-
<mat-step [label]="'OVERVIEW' | localize"></mat-step>
|
|
128
|
-
</mat-horizontal-stepper>
|
|
129
|
-
<checkout-overview [relation]="relation"
|
|
130
|
-
[transaction]="transaction"
|
|
131
|
-
[userIsApplicationUser]="userIsApplicationUser"
|
|
132
|
-
(saveRelation)="handleSaveRelation()"
|
|
133
|
-
(saveDelivery)="handleSaveDelivery()"
|
|
134
|
-
(stepFinished)="stepFinished()"></checkout-overview>
|
|
135
|
-
<div class="step-content-customer"></div>
|
|
136
|
-
</div>
|
|
137
|
-
`,
|
|
138
|
-
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-delivery,.step-content-customer{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px}.step-content-customer,.step-content-delivery{padding-top:20px}.step-content-customer,.step-content-delivery{padding-left:20px}.step-content-customer,.step-content-delivery{padding-right:20px}.overview-body{padding-left:30px}.overview-body{padding-right:30px}.overview-body{padding-top:30px}.overview-body{padding-bottom:30px}ul.cart-buttons>li{padding-left:11px}ul.cart-buttons>li{padding-right:11px}ul.cart-buttons{margin-top:20px}ul.cart-buttons{margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa}.overview-header .overview-step-nr{background-color:#2b60a7}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;grid-column-gap:20px;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{display:block;margin-top:1em;margin-bottom:1em;font-size:18px;font-weight:bold}.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-size:14px;font-weight:bold}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:bold}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer{background-color:#fff}.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:rgba(255,255,255,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:rgba(255,255,255,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:bold}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label{font-weight:bold}.overview-label{font-weight:bold}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #DCE4EA;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}\n"]
|
|
139
|
-
},] }
|
|
140
|
-
];
|
|
141
|
-
CheckoutComponent.ctorParameters = () => [
|
|
142
|
-
{ type: TransactionService },
|
|
143
|
-
{ type: PromptService }
|
|
144
|
-
];
|
|
145
|
-
CheckoutComponent.propDecorators = {
|
|
146
|
-
overview: [{ type: ViewChild, args: [CheckoutOverviewComponent,] }],
|
|
147
|
-
stepper: [{ type: ViewChild, args: ["stepper",] }]
|
|
148
|
-
};
|
|
149
|
-
//# sourceMappingURL=data:application/json;base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IHRoaXMuc2VydmljZS51cGRhdGVDdXN0b21lcihyZWxhdGlvbik7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Output, ViewChild } from "@angular/core";
|
|
2
|
-
export class CheckoutLoginComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.createNewAccountSubmit = new EventEmitter();
|
|
5
|
-
this.continueWithoutSubmit = new EventEmitter();
|
|
6
|
-
this.loginSubmit = new EventEmitter();
|
|
7
|
-
this.userEmailAddress = "";
|
|
8
|
-
this.userNewEmailAddress = "";
|
|
9
|
-
this.userPassword = "";
|
|
10
|
-
this.continueWithoutAccount = false;
|
|
11
|
-
this.company = "<bedrijf>";
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
}
|
|
15
|
-
login() {
|
|
16
|
-
this.loginSubmit.emit();
|
|
17
|
-
}
|
|
18
|
-
submit() {
|
|
19
|
-
this.loginForm.submit();
|
|
20
|
-
}
|
|
21
|
-
createAccountSubmit() {
|
|
22
|
-
this.accountForm.submit();
|
|
23
|
-
}
|
|
24
|
-
continueSubmit() {
|
|
25
|
-
this.continueWithoutAccount = true;
|
|
26
|
-
this.accountForm.submit();
|
|
27
|
-
}
|
|
28
|
-
accountLogin() {
|
|
29
|
-
if (this.continueWithoutAccount) {
|
|
30
|
-
this.continueWithoutSubmit.emit();
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
this.createNewAccountSubmit.emit();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
CheckoutLoginComponent.decorators = [
|
|
38
|
-
{ type: Component, args: [{
|
|
39
|
-
selector: "checkout-login",
|
|
40
|
-
template: `
|
|
41
|
-
<h1>{{ "LOGIN" | localize}}</h1>
|
|
42
|
-
<div class="users">
|
|
43
|
-
<co-form #loginForm (validSubmit)="login()">
|
|
44
|
-
<div class="existing-user">
|
|
45
|
-
<p><strong>{{ "EXISTING_CUSTOMERS" | localize }}</strong></p>
|
|
46
|
-
<co-input-text
|
|
47
|
-
[(model)]="userEmailAddress"
|
|
48
|
-
[placeholder]="'EMAIL_ADDRESS' | localize "
|
|
49
|
-
[type]="'email'"
|
|
50
|
-
required
|
|
51
|
-
></co-input-text>
|
|
52
|
-
|
|
53
|
-
<co-input-text
|
|
54
|
-
[(model)]="userPassword"
|
|
55
|
-
[placeholder]="'PASSWORD' | localize "
|
|
56
|
-
[type]="'password'"
|
|
57
|
-
required
|
|
58
|
-
></co-input-text>
|
|
59
|
-
<div class="login-button">
|
|
60
|
-
<co-button
|
|
61
|
-
[label]="'LOGIN' | localize" (click)="submit()"
|
|
62
|
-
></co-button>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</co-form>
|
|
66
|
-
|
|
67
|
-
<co-form #accountForm (validSubmit)="accountLogin()">
|
|
68
|
-
<div class="new-user">
|
|
69
|
-
<p class="boxedbottom">
|
|
70
|
-
<strong>{{ "NEW_AT" | localize}}{{company}}</strong>
|
|
71
|
-
<br/>{{ "CREATE_ACCOUNT_IN_2_MIN" | localize }}
|
|
72
|
-
</p>
|
|
73
|
-
<div class="new-user-e-mail">
|
|
74
|
-
<co-input-text
|
|
75
|
-
[(model)]="userNewEmailAddress"
|
|
76
|
-
[placeholder]="'EMAIL_ADDRESS' | localize "
|
|
77
|
-
[type]="'email'"
|
|
78
|
-
required
|
|
79
|
-
></co-input-text>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="login-button">
|
|
82
|
-
<co-button
|
|
83
|
-
[label]="'CREATE_ACCOUNT' | localize"
|
|
84
|
-
(click)="createAccountSubmit()"
|
|
85
|
-
></co-button>
|
|
86
|
-
<co-button
|
|
87
|
-
[label]="'CONTINUE_WITHOUT_ACCOUNT' | localize"
|
|
88
|
-
(click)="continueSubmit()"
|
|
89
|
-
></co-button>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
</co-form>
|
|
93
|
-
</div>
|
|
94
|
-
`,
|
|
95
|
-
styles: [".users{display:flex;flex-direction:row}.users co-form{width:50%}.existing-user{padding-right:2rem;margin-bottom:0;border-right:1px solid #aaa}.new-user{padding-left:2rem}.new-user-e-mail{padding-top:2.6rem}.boxedbottom{margin-bottom:.5rem}.login-button{display:flex;margin-top:10px}.login-button co-button{margin-right:10px}\n"]
|
|
96
|
-
},] }
|
|
97
|
-
];
|
|
98
|
-
CheckoutLoginComponent.ctorParameters = () => [];
|
|
99
|
-
CheckoutLoginComponent.propDecorators = {
|
|
100
|
-
loginForm: [{ type: ViewChild, args: ["loginForm",] }],
|
|
101
|
-
accountForm: [{ type: ViewChild, args: ["accountForm",] }],
|
|
102
|
-
createNewAccountSubmit: [{ type: Output }],
|
|
103
|
-
continueWithoutSubmit: [{ type: Output }],
|
|
104
|
-
loginSubmit: [{ type: Output }]
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tvdXQtbG9naW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9jb21wb25lbnQvY2hlY2tvdXQvY2hlY2tvdXQtbG9naW4vY2hlY2tvdXQtbG9naW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFVLE1BQU0sRUFBRSxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUE4RGpGLE1BQU0sT0FBTyxzQkFBc0I7SUFzQmpDO1FBZE8sMkJBQXNCLEdBQXVCLElBQUksWUFBWSxFQUFRLENBQUM7UUFHdEUsMEJBQXFCLEdBQXVCLElBQUksWUFBWSxFQUFRLENBQUM7UUFHckUsZ0JBQVcsR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQUUzRCxxQkFBZ0IsR0FBVy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AgICAgIFt0eXBlXT1cIidwYXNzd29yZCdcIlxuICAgICAgICAgICAgcmVxdWlyZWRcbiAgICAgICAgICA+PC9jby1pbnB1dC10ZXh0PlxuICAgICAgICAgIDxkaXYgY2xhc3M9XCJsb2dpbi1idXR0b25cIj5cbiAgICAgICAgICAgIDxjby1idXR0b25cbiAgICAgICAgICAgICAgW2xhYmVsXT1cIidMT0dJTicgfCBsb2NhbGl6ZVwiIChjbGljayk9XCJzdWJtaXQoKVwiXG4gICAgICAgICAgICA+PC9jby1idXR0b24+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgICAgPC9jby1mb3JtPlxuXG4gICAgICA8Y28tZm9ybSAjYWNjb3VudEZvcm0gKHZhbGlkU3VibWl0KT1cImFjY291bnRMb2dpbigpXCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJuZXctdXNlclwiPlxuICAgICAgICAgIDxwIGNsYXNzPVwiYm94ZWRib3R0b21cIj5cbiAgICAgICAgICAgIDxzdHJvbmc+e3sgXCJORVdfQVRcIiB8IGxvY2FsaXplfX17e2NvbXBhbnl9fTwvc3Ryb25nPlxuICAgICAgICAgICAgPGJyLz57eyBcIkNSRUFURV9BQ0NPVU5UX0lOXzJfTUlOXCIgfCBsb2NhbGl6ZSB9fVxuICAgICAgICAgIDwvcD5cbiAgICAgICAgICA8ZGl2IGNsYXNzPVwibmV3LXVzZXItZS1tYWlsXCI+XG4gICAgICAgICAgICA8Y28taW5wdXQtdGV4dFxuICAgICAgICAgICAgICBbKG1vZGVsKV09XCJ1c2VyTmV3RW1haWxBZGRyZXNzXCJcbiAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cIidFTUFJTF9BRERSRVNTJyB8IGxvY2FsaXplIFwiXG4gICAgICAgICAgICAgIFt0eXBlXT1cIidlbWFpbCdcIlxuICAgICAgICAgICAgICByZXF1aXJlZFxuICAgICAgICAgICAgPjwvY28taW5wdXQtdGV4dD5cbiAgICAgICAgICA8L2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