@colijnit/transaction 12.1.13 → 12.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/bundles/colijnit-transaction.umd.js +6256 -2331
  2. package/bundles/colijnit-transaction.umd.js.map +1 -1
  3. package/colijnit-transaction.d.ts +130 -86
  4. package/colijnit-transaction.metadata.json +1 -1
  5. package/esm2015/colijnit-transaction.js +131 -87
  6. package/esm2015/lib/assets/dictionary/text.properties.js +98 -2
  7. package/esm2015/lib/component/avatar/avatar.component.js +64 -0
  8. package/esm2015/lib/component/avatar/avatar.module.js +21 -0
  9. package/esm2015/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +11 -1
  10. package/esm2015/lib/component/checkout/checkout.component.js +9 -8
  11. package/esm2015/lib/component/checkout/checkout.module.js +3 -3
  12. package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.js +38 -0
  13. package/esm2015/lib/component/core/base/components/transaction-header-block/transaction-header-block.module.js +19 -0
  14. package/esm2015/lib/component/core/base/transaction-grid-base.component.js +53 -0
  15. package/esm2015/lib/component/core/core.module.js +3 -6
  16. package/esm2015/lib/component/core/icon/icon.component.js +1 -1
  17. package/esm2015/lib/component/core/relation/customer-groups.component.js +3 -3
  18. package/esm2015/lib/component/core/stock-status-indicator/stock-status-indicator.component.js +1 -1
  19. package/esm2015/lib/component/payment/payment.component.js +112 -30
  20. package/esm2015/lib/component/payment/payment.module.js +7 -3
  21. package/esm2015/lib/component/payment-tile/payment-tile.component.js +4 -2
  22. package/esm2015/lib/component/relation-address/relation-address.component.js +3 -3
  23. package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +7 -2
  24. package/esm2015/lib/component/transaction/transaction.component.js +41 -39
  25. package/esm2015/lib/component/transaction/transaction.module.js +15 -9
  26. package/esm2015/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-button-bar-button.component.js +29 -0
  27. package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.component.js +54 -0
  28. package/esm2015/lib/component/transaction-button-bar/transaction-button-bar.module.js +28 -0
  29. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.component.js +2 -2
  30. package/esm2015/lib/component/transaction-confirmation-history/transaction-confirmation-history.module.js +2 -2
  31. package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.js +52 -0
  32. package/esm2015/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.js +28 -0
  33. package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.component.js +85 -0
  34. package/esm2015/lib/component/transaction-grid/transaction-grid/transaction-grid.module.js +19 -0
  35. package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.js +64 -0
  36. package/esm2015/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.module.js +28 -0
  37. package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.js +76 -0
  38. package/esm2015/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.module.js +30 -0
  39. package/esm2015/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.component.js +51 -0
  40. package/esm2015/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.module.js +29 -0
  41. package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.js +156 -0
  42. package/esm2015/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.js +30 -0
  43. package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.component.js +40 -0
  44. package/esm2015/lib/component/transaction-header/transaction-header/transaction-header.module.js +29 -0
  45. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.js +75 -0
  46. package/esm2015/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.module.js +28 -0
  47. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +41 -0
  48. package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.js +26 -0
  49. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +58 -0
  50. package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.js +28 -0
  51. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.component.js +36 -0
  52. package/esm2015/lib/component/transaction-header/transaction-header-relation/transaction-header-relation.module.js +21 -0
  53. package/esm2015/lib/component/transaction-header/transaction-header.component.js +6 -11
  54. package/esm2015/lib/component/transaction-header/transaction-header.module.js +8 -6
  55. package/esm2015/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.js +16 -3
  56. package/esm2015/lib/component/transaction-line/transaction-line.component.js +26 -29
  57. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.js +37 -33
  58. package/esm2015/lib/component/transaction-line-side-panel/transaction-line-side-panel.module.js +6 -4
  59. package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.js +87 -0
  60. package/esm2015/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.js +31 -0
  61. package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +8 -5
  62. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.js +72 -0
  63. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.module.js +33 -0
  64. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +28 -0
  65. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.js +25 -0
  66. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +23 -0
  67. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.module.js +23 -0
  68. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.js +65 -0
  69. package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.js +25 -0
  70. package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.js +138 -18
  71. package/esm2015/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.module.js +6 -2
  72. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.js +57 -11
  73. package/esm2015/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.module.js +7 -4
  74. package/esm2015/lib/component/transaction-search/service/filter-request.service.js +117 -0
  75. package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +33 -0
  76. package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.component.js +87 -0
  77. package/esm2015/lib/component/transaction-search/transaction-filter/transaction-filter.module.js +34 -0
  78. package/esm2015/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.component.js +42 -0
  79. package/esm2015/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.module.js +19 -0
  80. package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.js +120 -0
  81. package/esm2015/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.module.js +25 -0
  82. package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.js +242 -0
  83. package/esm2015/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.js +28 -0
  84. package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.js +240 -0
  85. package/esm2015/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.module.js +30 -0
  86. package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +62 -0
  87. package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.js +30 -0
  88. package/esm2015/lib/component/transaction-search/transaction-search.component.js +55 -0
  89. package/esm2015/lib/component/transaction-search/transaction-search.module.js +25 -0
  90. package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.component.js +77 -0
  91. package/esm2015/lib/component/transaction-search/transaction-tile/transaction-tile.module.js +28 -0
  92. package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.component.js +86 -0
  93. package/esm2015/lib/component/transaction-search-grid/transaction-search-grid.module.js +26 -0
  94. package/esm2015/lib/component/view-mode-buttons/view-mode-buttons.component.js +61 -0
  95. package/esm2015/lib/component/view-mode-buttons/view-mode-buttons.module.js +23 -0
  96. package/esm2015/lib/enum/content-view-mode.enum.js +2 -1
  97. package/esm2015/lib/enum/icon.enum.js +18 -1
  98. package/esm2015/lib/enum/position-grid-row.enum.js +6 -0
  99. package/esm2015/lib/enum/status-type.enum.js +3 -1
  100. package/esm2015/lib/enum/transaction-type-category.enum.js +16 -0
  101. package/esm2015/lib/model/filter-item.viewmodel.js +9 -0
  102. package/esm2015/lib/model/filter-viewmodel.js +11 -0
  103. package/esm2015/lib/model/icon-svg.js +18 -1
  104. package/esm2015/lib/model/payment.viewmodel.js +6 -0
  105. package/esm2015/lib/model/received-goods-view-model.js +11 -0
  106. package/esm2015/lib/model/transaction-bar-button.js +3 -0
  107. package/esm2015/lib/service/article-connector.service.js +60 -0
  108. package/esm2015/lib/service/article.service.js +25 -0
  109. package/esm2015/lib/service/collection-cache.service.js +38 -0
  110. package/esm2015/lib/service/ione-connector-adapter.service.js +187 -18
  111. package/esm2015/lib/service/options.service.js +3 -1
  112. package/esm2015/lib/service/payment.service.js +51 -0
  113. package/esm2015/lib/service/pending-reason.service.js +5 -5
  114. package/esm2015/lib/service/shared-connector.service.js +53 -0
  115. package/esm2015/lib/service/shared.service.js +38 -0
  116. package/esm2015/lib/service/transaction-connector.service.js +1015 -0
  117. package/esm2015/lib/service/transaction-event.service.js +29 -0
  118. package/esm2015/lib/service/transaction-image.service.js +53 -0
  119. package/esm2015/lib/service/transaction-mapping.service.js +85 -0
  120. package/esm2015/lib/service/transaction.service.js +97 -117
  121. package/esm2015/public_api.js +15 -9
  122. package/fesm2015/colijnit-transaction.js +6270 -2159
  123. package/fesm2015/colijnit-transaction.js.map +1 -1
  124. package/lib/component/{seller-information/seller-information.component.d.ts → avatar/avatar.component.d.ts} +5 -3
  125. package/lib/component/avatar/avatar.module.d.ts +2 -0
  126. package/lib/component/{seller-information → avatar}/style/_layout.scss +5 -5
  127. package/lib/component/avatar/style/_material-definition.scss +2 -0
  128. package/lib/component/avatar/style/_theme.scss +7 -0
  129. package/lib/component/{order-confirmation-grid → avatar}/style/material.scss +0 -1
  130. package/lib/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +2 -0
  131. package/lib/component/checkout/checkout-overview-delivery-edit/style/material.scss +0 -1
  132. package/lib/component/checkout/checkout-overview-relation-edit/style/material.scss +0 -1
  133. package/lib/component/checkout/checkout-relation-suggestions-list/style/material.scss +0 -1
  134. package/lib/component/checkout/checkout-relation-suggestions-list-item/style/material.scss +0 -1
  135. package/lib/component/checkout/style/material.scss +1 -2
  136. package/lib/component/confirmation-dialog/style/material.scss +0 -1
  137. package/lib/component/core/base/components/transaction-header-block/style/_layout.scss +53 -0
  138. package/lib/component/core/base/components/transaction-header-block/style/_material-definition.scss +20 -0
  139. package/lib/component/core/base/components/transaction-header-block/style/_theme.scss +11 -0
  140. package/lib/component/core/base/components/transaction-header-block/style/material.scss +4 -0
  141. package/lib/component/core/base/components/transaction-header-block/transaction-header-block.component.d.ts +8 -0
  142. package/lib/component/core/base/components/transaction-header-block/transaction-header-block.module.d.ts +2 -0
  143. package/lib/component/core/base/style/material.scss +0 -1
  144. package/lib/component/core/base/transaction-grid-base.component.d.ts +25 -0
  145. package/lib/component/core/characteristic-answer/characteristic-answer.component.scss +0 -1
  146. package/lib/component/core/icon/icon.component.scss +0 -1
  147. package/lib/component/core/image-display/style/material.scss +0 -1
  148. package/lib/component/core/relation/customer-groups.component.d.ts +2 -2
  149. package/lib/component/core/stock-status-indicator/stock-status-indicator.component.scss +0 -1
  150. package/lib/component/delivery-type-tile/style/material.scss +0 -1
  151. package/lib/component/order-confirmation-create/style/material.scss +0 -1
  152. package/lib/component/payment/payment.component.d.ts +22 -5
  153. package/lib/component/payment/style/_layout.scss +23 -1
  154. package/lib/component/payment/style/_material-definition.scss +0 -1
  155. package/lib/component/payment/style/_theme.scss +24 -0
  156. package/lib/component/payment/style/material.scss +0 -1
  157. package/lib/component/payment-tile/payment-tile.component.d.ts +1 -0
  158. package/lib/component/payment-tile/style/_layout.scss +2 -1
  159. package/lib/component/payment-tile/style/material.scss +0 -1
  160. package/lib/component/relation-address/relation-address.component.d.ts +2 -2
  161. package/lib/component/relation-address/style/material.scss +0 -1
  162. package/lib/component/relation-address-select/style/material.scss +0 -1
  163. package/lib/component/relation-address-tile/style/material.scss +0 -1
  164. package/lib/component/shared/transaction-article-text/style/material.scss +0 -1
  165. package/lib/component/shared/transaction-article-text-overview/style/material.scss +0 -1
  166. package/lib/component/shopping-cart/style/material.scss +0 -1
  167. package/lib/component/shopping-cart-OLD/shopping-cart-manager/shopping-cart-manager.component.scss +0 -1
  168. package/lib/component/shopping-cart-preview/style/material.scss +0 -1
  169. package/lib/component/stepper/style/material.scss +0 -1
  170. package/lib/component/tile/style/material.scss +0 -1
  171. package/lib/component/transaction/style/_layout.scss +13 -13
  172. package/lib/component/transaction/style/_material-definition.scss +2 -6
  173. package/lib/component/transaction/style/_theme.scss +0 -18
  174. package/lib/component/transaction/style/material.scss +5 -5
  175. package/lib/component/transaction/transaction.component.d.ts +9 -9
  176. package/lib/component/transaction-button-bar/style/_layout.scss +50 -0
  177. package/lib/component/transaction-button-bar/style/_material-definition.scss +12 -0
  178. package/lib/component/transaction-button-bar/style/_theme.scss +14 -0
  179. package/lib/component/{order-grid → transaction-button-bar}/style/material.scss +0 -1
  180. package/lib/component/transaction-button-bar/transaction-button-bar-button/transaction-button-bar-button.component.d.ts +9 -0
  181. package/lib/component/transaction-button-bar/transaction-button-bar.component.d.ts +17 -0
  182. package/lib/component/transaction-button-bar/transaction-button-bar.module.d.ts +2 -0
  183. package/lib/component/transaction-confirmation-history/style/material.scss +0 -1
  184. package/lib/component/transaction-grid/transaction-base-grid/style/_layout.scss +33 -0
  185. package/lib/component/transaction-grid/transaction-base-grid/style/_material-definition.scss +8 -0
  186. package/lib/component/transaction-grid/transaction-base-grid/style/_theme.scss +12 -0
  187. package/lib/component/{seller-information → transaction-grid/transaction-base-grid}/style/material.scss +0 -1
  188. package/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.component.d.ts +8 -0
  189. package/lib/component/transaction-grid/transaction-base-grid/transaction-base-grid.module.d.ts +2 -0
  190. package/lib/component/transaction-grid/transaction-grid/style/_layout.scss +6 -0
  191. package/lib/component/{transaction-history-grid → transaction-grid/transaction-grid}/style/_material-definition.scss +0 -0
  192. package/lib/component/transaction-grid/transaction-grid/style/_theme.scss +6 -0
  193. package/lib/component/transaction-grid/transaction-grid/style/material.scss +5 -0
  194. package/lib/component/transaction-grid/transaction-grid/transaction-grid.component.d.ts +26 -0
  195. package/lib/component/transaction-grid/transaction-grid/transaction-grid.module.d.ts +2 -0
  196. package/lib/component/transaction-grid/transaction-history-grid/style/_layout.scss +15 -0
  197. package/lib/component/transaction-grid/transaction-history-grid/style/_material-definition.scss +1 -0
  198. package/lib/component/{transaction-history-grid → transaction-grid/transaction-history-grid}/style/_theme.scss +1 -1
  199. package/lib/component/{transaction-commit-bar → transaction-grid/transaction-history-grid}/style/material.scss +0 -1
  200. package/lib/component/transaction-grid/transaction-history-grid/transaction-history-grid.component.d.ts +19 -0
  201. package/lib/component/{transaction-history-grid → transaction-grid/transaction-history-grid}/transaction-history-grid.module.d.ts +0 -0
  202. package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_layout.scss +5 -1
  203. package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_material-definition.scss +3 -0
  204. package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/style/_theme.scss +1 -1
  205. package/lib/component/transaction-grid/transaction-lines-grid/style/material.scss +4 -0
  206. package/lib/component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component.d.ts +11 -0
  207. package/lib/component/{transaction-lines-grid → transaction-grid/transaction-lines-grid}/transaction-lines-grid.module.d.ts +0 -0
  208. package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/_layout.scss +7 -0
  209. package/lib/component/{order-confirmation-grid → transaction-grid/transaction-order-confirmation-grid}/style/_material-definition.scss +0 -0
  210. package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/_theme.scss +7 -0
  211. package/lib/component/transaction-grid/transaction-order-confirmation-grid/style/material.scss +3 -0
  212. package/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.component.d.ts +4 -0
  213. package/lib/component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.module.d.ts +2 -0
  214. package/lib/component/transaction-grid/transaction-received-goods-grid/style/_layout.scss +6 -0
  215. package/lib/component/transaction-grid/transaction-received-goods-grid/style/_material-definition.scss +0 -0
  216. package/lib/component/transaction-grid/transaction-received-goods-grid/style/_theme.scss +6 -0
  217. package/lib/component/transaction-grid/transaction-received-goods-grid/style/material.scss +4 -0
  218. package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component.d.ts +37 -0
  219. package/lib/component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.module.d.ts +2 -0
  220. package/lib/component/transaction-header/transaction-header/style/_layout.scss +40 -0
  221. package/lib/component/transaction-header/transaction-header/style/_material-definition.scss +9 -0
  222. package/lib/component/transaction-header/transaction-header/style/_theme.scss +11 -0
  223. package/lib/component/transaction-header/transaction-header/style/material.scss +7 -0
  224. package/lib/component/transaction-header/transaction-header/transaction-header.component.d.ts +10 -0
  225. package/lib/component/transaction-header/transaction-header/transaction-header.module.d.ts +2 -0
  226. package/lib/component/transaction-header/transaction-header-delivery/style/_layout.scss +38 -0
  227. package/lib/component/transaction-header/transaction-header-delivery/style/_material-definition.scss +7 -0
  228. package/lib/component/transaction-header/transaction-header-delivery/style/_theme.scss +25 -0
  229. package/lib/component/transaction-header/transaction-header-delivery/style/material.scss +3 -0
  230. package/lib/component/transaction-header/transaction-header-delivery/transaction-header-delivery.component.d.ts +15 -0
  231. package/lib/component/{transaction-header-delivery → transaction-header/transaction-header-delivery}/transaction-header-delivery.module.d.ts +0 -0
  232. package/lib/component/transaction-header/transaction-header-order/style/_layout.scss +12 -0
  233. package/lib/component/transaction-header/transaction-header-order/style/_material-definition.scss +0 -0
  234. package/lib/component/transaction-header/transaction-header-order/style/_theme.scss +6 -0
  235. package/lib/component/transaction-header/transaction-header-order/style/material.scss +4 -0
  236. package/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.d.ts +4 -0
  237. package/lib/component/transaction-header/transaction-header-order/transaction-header-order.module.d.ts +2 -0
  238. package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +14 -0
  239. package/lib/component/transaction-header/transaction-header-payment/style/_material-definition.scss +4 -0
  240. package/lib/component/transaction-header/transaction-header-payment/style/_theme.scss +12 -0
  241. package/lib/component/transaction-header/transaction-header-payment/style/material.scss +5 -0
  242. package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +6 -0
  243. package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.module.d.ts +2 -0
  244. package/lib/component/transaction-header/transaction-header-relation/style/_layout.scss +7 -0
  245. package/lib/component/transaction-header/transaction-header-relation/style/_material-definition.scss +0 -0
  246. package/lib/component/transaction-header/transaction-header-relation/style/_theme.scss +6 -0
  247. package/lib/component/transaction-header/transaction-header-relation/style/material.scss +4 -0
  248. package/lib/component/{transaction-header-relation → transaction-header/transaction-header-relation}/transaction-header-relation.component.d.ts +1 -1
  249. package/lib/component/{transaction-header-relation → transaction-header/transaction-header-relation}/transaction-header-relation.module.d.ts +0 -0
  250. package/lib/component/transaction-header/transaction-header.component.d.ts +0 -2
  251. package/lib/component/transaction-history-grid-status/style/_layout.scss +7 -7
  252. package/lib/component/transaction-history-grid-status/style/_material-definition.scss +8 -0
  253. package/lib/component/transaction-history-grid-status/style/material.scss +0 -1
  254. package/lib/component/transaction-history-grid-status/transaction-history-grid-status.component.d.ts +2 -0
  255. package/lib/component/transaction-line/style/_layout.scss +38 -1
  256. package/lib/component/transaction-line/style/_material-definition.scss +4 -3
  257. package/lib/component/transaction-line/style/_theme.scss +5 -0
  258. package/lib/component/transaction-line/style/material.scss +0 -1
  259. package/lib/component/transaction-line/transaction-line.component.d.ts +7 -4
  260. package/lib/component/transaction-line-grid/style/material.scss +0 -1
  261. package/lib/component/transaction-line-side-panel/style/_layout.scss +3 -2
  262. package/lib/component/transaction-line-side-panel/style/_material-definition.scss +2 -0
  263. package/lib/component/transaction-line-side-panel/style/material.scss +0 -1
  264. package/lib/component/transaction-line-side-panel/transaction-line-side-panel.component.d.ts +13 -6
  265. package/lib/component/transaction-line-side-panel-default/style/material.scss +0 -1
  266. package/lib/component/transaction-line-side-panel-purchase/style/_layout.scss +6 -0
  267. package/lib/component/transaction-line-side-panel-purchase/style/_material-definition.scss +0 -0
  268. package/lib/component/transaction-line-side-panel-purchase/style/_theme.scss +6 -0
  269. package/lib/component/transaction-line-side-panel-purchase/style/material.scss +5 -0
  270. package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.component.d.ts +21 -0
  271. package/lib/component/transaction-line-side-panel-purchase/transaction-line-side-panel-purchase.module.d.ts +2 -0
  272. package/lib/component/transaction-lines/style/material.scss +0 -1
  273. package/lib/component/transaction-lines/transaction-lines.component.d.ts +3 -5
  274. package/lib/component/transaction-quick-access/transaction-quick-access/style/_layout.scss +11 -0
  275. package/lib/component/{transaction-commit-bar → transaction-quick-access/transaction-quick-access}/style/_material-definition.scss +0 -0
  276. package/lib/component/{transaction-commit-bar → transaction-quick-access/transaction-quick-access}/style/_theme.scss +1 -1
  277. package/lib/component/transaction-quick-access/transaction-quick-access/style/material.scss +6 -0
  278. package/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.component.d.ts +21 -0
  279. package/lib/component/transaction-quick-access/transaction-quick-access/transaction-quick-access.module.d.ts +2 -0
  280. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_layout.scss +9 -0
  281. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_material-definition.scss +0 -0
  282. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/_theme.scss +6 -0
  283. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/style/material.scss +4 -0
  284. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.d.ts +4 -0
  285. package/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.module.d.ts +2 -0
  286. package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_layout.scss +7 -0
  287. package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_material-definition.scss +0 -0
  288. package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/_theme.scss +6 -0
  289. package/lib/component/transaction-quick-access/transaction-quick-access-overview/style/material.scss +4 -0
  290. package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.d.ts +4 -0
  291. package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.module.d.ts +2 -0
  292. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_layout.scss +9 -0
  293. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_material-definition.scss +0 -0
  294. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/_theme.scss +6 -0
  295. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/style/material.scss +4 -0
  296. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component.d.ts +27 -0
  297. package/lib/component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.module.d.ts +2 -0
  298. package/lib/component/transaction-receiving-goods-details/style/_layout.scss +4 -4
  299. package/lib/component/transaction-receiving-goods-details/style/_material-definition.scss +3 -1
  300. package/lib/component/transaction-receiving-goods-details/style/material.scss +0 -1
  301. package/lib/component/transaction-receiving-goods-details/transaction-receiving-goods-details.component.d.ts +28 -2
  302. package/lib/component/transaction-receiving-goods-history/style/material.scss +0 -1
  303. package/lib/component/transaction-receiving-goods-history/transaction-receiving-goods-history.component.d.ts +14 -1
  304. package/lib/component/transaction-search/service/filter-request.service.d.ts +23 -0
  305. package/lib/component/transaction-search/service/transaction-search.service.d.ts +11 -0
  306. package/lib/component/transaction-search/style/_layout.scss +37 -0
  307. package/lib/component/transaction-search/style/_material-definition.scss +41 -0
  308. package/lib/component/transaction-search/style/_theme.scss +6 -0
  309. package/lib/component/transaction-search/style/material.scss +7 -0
  310. package/lib/component/transaction-search/transaction-filter/style/_layout.scss +53 -0
  311. package/lib/component/transaction-search/transaction-filter/style/_material-definition.scss +1 -0
  312. package/lib/component/transaction-search/transaction-filter/style/_theme.scss +8 -0
  313. package/lib/component/transaction-search/transaction-filter/style/material.scss +7 -0
  314. package/lib/component/transaction-search/transaction-filter/transaction-filter.component.d.ts +21 -0
  315. package/lib/component/transaction-search/transaction-filter/transaction-filter.module.d.ts +2 -0
  316. package/lib/component/transaction-search/transaction-filter-categories/style/_layout.scss +23 -0
  317. package/lib/component/transaction-search/transaction-filter-categories/style/_material-definition.scss +0 -0
  318. package/lib/component/transaction-search/transaction-filter-categories/style/_theme.scss +13 -0
  319. package/lib/component/transaction-search/transaction-filter-categories/style/material.scss +3 -0
  320. package/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.component.d.ts +10 -0
  321. package/lib/component/transaction-search/transaction-filter-categories/transaction-filter-categories.module.d.ts +2 -0
  322. package/lib/component/transaction-search/transaction-filter-content-article/style/_layout.scss +13 -0
  323. package/lib/component/transaction-search/transaction-filter-content-article/style/_material-definition.scss +1 -0
  324. package/lib/component/transaction-search/transaction-filter-content-article/style/_theme.scss +6 -0
  325. package/lib/component/transaction-search/transaction-filter-content-article/style/material.scss +4 -0
  326. package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.component.d.ts +37 -0
  327. package/lib/component/transaction-search/transaction-filter-content-article/transaction-filter-content-article.module.d.ts +2 -0
  328. package/lib/component/transaction-search/transaction-filter-content-logistics/style/_layout.scss +12 -0
  329. package/lib/component/transaction-search/transaction-filter-content-logistics/style/_material-definition.scss +0 -0
  330. package/lib/component/transaction-search/transaction-filter-content-logistics/style/_theme.scss +6 -0
  331. package/lib/component/transaction-search/transaction-filter-content-logistics/style/material.scss +4 -0
  332. package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.component.d.ts +36 -0
  333. package/lib/component/transaction-search/transaction-filter-content-logistics/transaction-filter-content-logistics.module.d.ts +2 -0
  334. package/lib/component/transaction-search/transaction-filter-content-order/style/_layout.scss +12 -0
  335. package/lib/component/transaction-search/transaction-filter-content-order/style/_material-definition.scss +1 -0
  336. package/lib/component/transaction-search/transaction-filter-content-order/style/_theme.scss +6 -0
  337. package/lib/component/transaction-search/transaction-filter-content-order/style/material.scss +4 -0
  338. package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.component.d.ts +60 -0
  339. package/lib/component/transaction-search/transaction-filter-content-order/transaction-filter-content-order.module.d.ts +2 -0
  340. package/lib/component/transaction-search/transaction-search-result/style/_layout.scss +30 -0
  341. package/lib/component/transaction-search/transaction-search-result/style/_material-definition.scss +1 -0
  342. package/lib/component/transaction-search/transaction-search-result/style/_theme.scss +10 -0
  343. package/lib/component/transaction-search/transaction-search-result/style/material.scss +3 -0
  344. package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +19 -0
  345. package/lib/component/transaction-search/transaction-search-result/transaction-search-result.module.d.ts +2 -0
  346. package/lib/component/transaction-search/transaction-search.component.d.ts +12 -0
  347. package/lib/component/transaction-search/transaction-search.module.d.ts +2 -0
  348. package/lib/component/transaction-search/transaction-tile/style/_layout.scss +91 -0
  349. package/lib/component/transaction-search/transaction-tile/style/_material-definition.scss +0 -0
  350. package/lib/component/transaction-search/transaction-tile/style/_theme.scss +46 -0
  351. package/lib/component/transaction-search/transaction-tile/style/material.scss +5 -0
  352. package/lib/component/transaction-search/transaction-tile/transaction-tile.component.d.ts +13 -0
  353. package/lib/component/transaction-search/transaction-tile/transaction-tile.module.d.ts +2 -0
  354. package/lib/component/transaction-search-grid/style/_layout.scss +6 -0
  355. package/lib/component/transaction-search-grid/style/_material-definition.scss +1 -0
  356. package/lib/component/transaction-search-grid/style/_theme.scss +6 -0
  357. package/lib/component/transaction-search-grid/style/material.scss +7 -0
  358. package/lib/component/transaction-search-grid/transaction-search-grid.component.d.ts +13 -0
  359. package/lib/component/transaction-search-grid/transaction-search-grid.module.d.ts +2 -0
  360. package/lib/component/transaction-totals/style/material.scss +0 -1
  361. package/lib/component/view-mode-buttons/style/_layout.scss +20 -0
  362. package/lib/component/view-mode-buttons/style/_material-definition.scss +5 -0
  363. package/lib/component/view-mode-buttons/style/_theme.scss +22 -0
  364. package/lib/component/view-mode-buttons/style/material.scss +3 -0
  365. package/lib/component/view-mode-buttons/view-mode-buttons.component.d.ts +17 -0
  366. package/lib/component/view-mode-buttons/view-mode-buttons.module.d.ts +2 -0
  367. package/lib/enum/content-view-mode.enum.d.ts +2 -1
  368. package/lib/enum/icon.enum.d.ts +17 -0
  369. package/lib/enum/position-grid-row.enum.d.ts +4 -0
  370. package/lib/enum/status-type.enum.d.ts +3 -1
  371. package/lib/enum/transaction-type-category.enum.d.ts +14 -0
  372. package/lib/model/filter-item.viewmodel.d.ts +7 -0
  373. package/lib/model/filter-viewmodel.d.ts +8 -0
  374. package/lib/model/payment.viewmodel.d.ts +6 -0
  375. package/lib/model/received-goods-view-model.d.ts +10 -0
  376. package/lib/model/transaction-bar-button.d.ts +7 -0
  377. package/lib/service/article-connector.service.d.ts +13 -0
  378. package/lib/service/article.service.d.ts +6 -0
  379. package/lib/service/collection-cache.service.d.ts +6 -0
  380. package/lib/service/ione-connector-adapter.service.d.ts +24 -3
  381. package/lib/service/options.service.d.ts +1 -0
  382. package/lib/service/payment.service.d.ts +9 -0
  383. package/lib/service/pending-reason.service.d.ts +3 -3
  384. package/lib/service/shared-connector.service.d.ts +12 -0
  385. package/lib/service/shared.service.d.ts +13 -0
  386. package/lib/service/transaction-connector.service.d.ts +119 -0
  387. package/lib/service/transaction-event.service.d.ts +65 -0
  388. package/lib/service/transaction-image.service.d.ts +10 -0
  389. package/lib/service/transaction-mapping.service.d.ts +14 -0
  390. package/lib/service/transaction.service.d.ts +48 -28
  391. package/lib/style/_variables.scss +41 -36
  392. package/lib/style/transaction-globals.scss +25 -0
  393. package/package.json +6 -3
  394. package/public_api.d.ts +14 -8
  395. package/esm2015/lib/component/core/base/default-ok-cancel-buttons.component.js +0 -41
  396. package/esm2015/lib/component/order-confirmation-grid/order-confirmation-grid.component.js +0 -70
  397. package/esm2015/lib/component/order-confirmation-grid/order-confirmation-grid.module.js +0 -29
  398. package/esm2015/lib/component/order-grid/order-grid.component.js +0 -99
  399. package/esm2015/lib/component/order-grid/order-grid.module.js +0 -28
  400. package/esm2015/lib/component/seller-information/seller-information.component.js +0 -61
  401. package/esm2015/lib/component/seller-information/seller-information.module.js +0 -21
  402. package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.component.js +0 -46
  403. package/esm2015/lib/component/transaction-commit-bar/transaction-commit-bar.module.js +0 -27
  404. package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.component.js +0 -34
  405. package/esm2015/lib/component/transaction-header-contact/transaction-header-contact.module.js +0 -19
  406. package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.component.js +0 -60
  407. package/esm2015/lib/component/transaction-header-delivery/transaction-header-delivery.module.js +0 -21
  408. package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.component.js +0 -35
  409. package/esm2015/lib/component/transaction-header-relation/transaction-header-relation.module.js +0 -19
  410. package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.component.js +0 -47
  411. package/esm2015/lib/component/transaction-history-grid/transaction-history-grid.module.js +0 -27
  412. package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.component.js +0 -64
  413. package/esm2015/lib/component/transaction-lines-grid/transaction-lines-grid.module.js +0 -27
  414. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.js +0 -29
  415. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.component.js +0 -65
  416. package/esm2015/lib/component/transaction-nav-bar/transaction-nav-bar.module.js +0 -26
  417. package/esm2015/lib/enum/tab-category.enum.js +0 -10
  418. package/lib/component/core/base/default-ok-cancel-buttons.component.d.ts +0 -13
  419. package/lib/component/order-confirmation-grid/order-confirmation-grid.component.d.ts +0 -15
  420. package/lib/component/order-confirmation-grid/order-confirmation-grid.module.d.ts +0 -2
  421. package/lib/component/order-confirmation-grid/style/_layout.scss +0 -5
  422. package/lib/component/order-confirmation-grid/style/_theme.scss +0 -5
  423. package/lib/component/order-grid/order-grid.component.d.ts +0 -23
  424. package/lib/component/order-grid/order-grid.module.d.ts +0 -2
  425. package/lib/component/order-grid/style/_layout.scss +0 -21
  426. package/lib/component/order-grid/style/_material-definition.scss +0 -2
  427. package/lib/component/order-grid/style/_theme.scss +0 -6
  428. package/lib/component/seller-information/seller-information.module.d.ts +0 -2
  429. package/lib/component/seller-information/style/_material-definition.scss +0 -2
  430. package/lib/component/seller-information/style/_theme.scss +0 -7
  431. package/lib/component/transaction-commit-bar/style/_layout.scss +0 -16
  432. package/lib/component/transaction-commit-bar/transaction-commit-bar.component.d.ts +0 -11
  433. package/lib/component/transaction-commit-bar/transaction-commit-bar.module.d.ts +0 -2
  434. package/lib/component/transaction-header-contact/style/_layout.scss +0 -25
  435. package/lib/component/transaction-header-contact/style/_material-definition.scss +0 -7
  436. package/lib/component/transaction-header-contact/style/_theme.scss +0 -11
  437. package/lib/component/transaction-header-contact/style/material.scss +0 -4
  438. package/lib/component/transaction-header-contact/transaction-header-contact.component.d.ts +0 -4
  439. package/lib/component/transaction-header-contact/transaction-header-contact.module.d.ts +0 -2
  440. package/lib/component/transaction-header-delivery/style/_layout.scss +0 -54
  441. package/lib/component/transaction-header-delivery/style/_material-definition.scss +0 -12
  442. package/lib/component/transaction-header-delivery/style/_theme.scss +0 -24
  443. package/lib/component/transaction-header-delivery/style/material.scss +0 -4
  444. package/lib/component/transaction-header-delivery/transaction-header-delivery.component.d.ts +0 -13
  445. package/lib/component/transaction-header-relation/style/_layout.scss +0 -25
  446. package/lib/component/transaction-header-relation/style/_material-definition.scss +0 -7
  447. package/lib/component/transaction-header-relation/style/_theme.scss +0 -11
  448. package/lib/component/transaction-header-relation/style/material.scss +0 -4
  449. package/lib/component/transaction-history-grid/style/_layout.scss +0 -7
  450. package/lib/component/transaction-history-grid/style/material.scss +0 -4
  451. package/lib/component/transaction-history-grid/transaction-history-grid.component.d.ts +0 -14
  452. package/lib/component/transaction-lines-grid/style/material.scss +0 -5
  453. package/lib/component/transaction-lines-grid/transaction-lines-grid.component.d.ts +0 -20
  454. package/lib/component/transaction-nav-bar/style/_layout.scss +0 -13
  455. package/lib/component/transaction-nav-bar/style/_material-definition.scss +0 -1
  456. package/lib/component/transaction-nav-bar/style/_theme.scss +0 -7
  457. package/lib/component/transaction-nav-bar/style/material.scss +0 -4
  458. package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.d.ts +0 -14
  459. package/lib/component/transaction-nav-bar/transaction-nav-bar-button/transaction-nav-bar-button.component.scss +0 -23
  460. package/lib/component/transaction-nav-bar/transaction-nav-bar.component.d.ts +0 -18
  461. package/lib/component/transaction-nav-bar/transaction-nav-bar.module.d.ts +0 -2
  462. package/lib/enum/tab-category.enum.d.ts +0 -8
@@ -0,0 +1,29 @@
1
+ import { Injectable } from "@angular/core";
2
+ import { Subject } from "rxjs";
3
+ import * as i0 from "@angular/core";
4
+ export class TransactionEventService {
5
+ constructor() {
6
+ this.addToCartBySku = new Subject();
7
+ this.addToCartBySelectorResult = new Subject();
8
+ this.openShoppingCartModule = new Subject();
9
+ this.loggedIn = new Subject();
10
+ this.addNewUserToShoppingCartModule = new Subject();
11
+ this.addUserRelationShoppingCartModule = new Subject();
12
+ this.addArticleLine = new Subject();
13
+ this.addTextLine = new Subject();
14
+ this.addArticleLineAt = new Subject();
15
+ this.addTextLineAt = new Subject();
16
+ this.changeLineSequence = new Subject();
17
+ this.transactionLineClicked = new Subject();
18
+ this.rightSidebarClose = new Subject();
19
+ this.scrollContent = new Subject();
20
+ this.receivedPurchaseOrderCommit = new Subject();
21
+ this.commitReceivePurchaseOrders = new Subject();
22
+ this.transactionLineChanged = new Subject();
23
+ }
24
+ }
25
+ TransactionEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionEventService_Factory() { return new TransactionEventService(); }, token: TransactionEventService, providedIn: "root" });
26
+ TransactionEventService.decorators = [
27
+ { type: Injectable, args: [{ providedIn: "root" },] }
28
+ ];
29
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tZXZlbnQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvc2VydmljZS90cmFuc2FjdGlvbi1ldmVudC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLE1BQU0sQ0FBQzs7QUFRN0IsTUFBTSxPQUFPLHVCQUF1QjtJQURwQztRQUVrQixtQkFBYyxHQUE2RCxJQUFJLE9BQU8sRUFBbUQsQ0FBQztRQUMxSSw4QkFBeUIsR0FDdkMsSUFBSSxPQUFPLEVBQWlILENBQUM7UUFDL0csMkJBQXNCLEdBQWtCLElBQUksT0FBTyxFQUFRLENBQ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jdDxib29sZWFuPiA9IG5ldyBTdWJqZWN0PGJvb2xlYW4+KCk7XG4gIHB1YmxpYyByZWFkb25seSBjb21taXRSZWNlaXZlUHVyY2hhc2VPcmRlcnM6IFN1YmplY3Q8e2NoZWNrYm94VmFsdWU6IGJvb2xlYW4sIGRhdGU6IERhdGUsIGlkOiBzdHJpbmd9PiA9IG5ldyBTdWJqZWN0PHtjaGVja2JveFZhbHVlOiBib29sZWFuLCBkYXRlOiBEYXRlLCBpZDogc3RyaW5nfT4oKTtcbiAgcHVibGljIHJlYWRvbmx5IHRyYW5zYWN0aW9uTGluZUNoYW5nZWQ6IFN1YmplY3Q8e3RyYW5zYWN0aW9uTGluZTogVHJhbnNhY3Rpb25MaW5lSW5mbywgZ29vZHNSZWNlaXB0U3RhdHVzOiBHb29kc1JlY2VpcHRTdGF0dXNXaXRoSGlzdG9yeX0+ID0gbmV3IFN1YmplY3Q8e3RyYW5zYWN0aW9uTGluZTogVHJhbnNhY3Rpb25MaW5lSW5mbywgZ29vZHNSZWNlaXB0U3RhdHVzOiBHb29kc1JlY2VpcHRTdGF0dXNXaXRoSGlzdG9yeX0+KCk7XG59XG4iXX0=
@@ -0,0 +1,53 @@
1
+ import { __awaiter } from "tslib";
2
+ import { Injectable } from "@angular/core";
3
+ import { TransactionConnectorService } from "./transaction-connector.service";
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./transaction-connector.service";
6
+ export class TransactionImageService {
7
+ constructor(_connector) {
8
+ this._connector = _connector;
9
+ this._articleImageCache = new Map();
10
+ }
11
+ retrieveLineImage(line) {
12
+ return __awaiter(this, void 0, void 0, function* () {
13
+ return yield this.getArticleImageByArticleNumber(line.articleNumber);
14
+ });
15
+ }
16
+ getArticleImageByArticleNumber(articleNumber) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ if (this._articleImageCache.has(articleNumber)) {
19
+ return this._articleImageCache.get(articleNumber);
20
+ }
21
+ const goodId = yield this._connector.getGoodIdFromArticleNr(articleNumber).catch((error) => {
22
+ console.error(error);
23
+ return null;
24
+ });
25
+ const image = yield this.getArticleImageByGoodId(goodId);
26
+ this._articleImageCache.set(articleNumber, image);
27
+ return image;
28
+ });
29
+ }
30
+ getArticleImageByGoodId(goodId) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ if (!isNaN(goodId)) {
33
+ return this._connector.getSingleImage(goodId, 1, true, true).catch((error) => {
34
+ console.error(error);
35
+ return "";
36
+ });
37
+ }
38
+ else {
39
+ return "";
40
+ }
41
+ });
42
+ }
43
+ }
44
+ TransactionImageService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionImageService_Factory() { return new TransactionImageService(i0.ɵɵinject(i1.TransactionConnectorService)); }, token: TransactionImageService, providedIn: "root" });
45
+ TransactionImageService.decorators = [
46
+ { type: Injectable, args: [{
47
+ providedIn: "root"
48
+ },] }
49
+ ];
50
+ TransactionImageService.ctorParameters = () => [
51
+ { type: TransactionConnectorService }
52
+ ];
53
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24taW1hZ2Uuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvc2VydmljZS90cmFuc2FjdGlvbi1pbWFnZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBQywyQkFBMkIsRUFBQyxNQUFNLGlDQUFpQyxDQUFDOzs7QUFLNUUsTUFBTSxPQUFPLHVCQUF1QjtJQUlsQyxZQUFvQixVQUF1QztRQUF2QyxlQUFVLEdBQVYsVUFBVSxDQUE2QjtRQUZuRCx1QkFBa0IsR0FBd0IsSUFBSSxHQUFHLEVBQUUsQ0FBQztJQUc1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7XHJcbiAgICAgICAgY29uc29sZS5lcnJvcihlcnJvcik7XHJcbiAgICAgICAgcmV0dXJuIFwiXCI7XHJcbiAgICAgIH0pO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgcmV0dXJuIFwiXCI7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -0,0 +1,85 @@
1
+ import { Injectable } from "@angular/core";
2
+ import { TransactionKind } from "@colijnit/transactionapi/build/enum/transaction-kind.enum";
3
+ import { Icon } from "../enum/icon.enum";
4
+ import { TransactionTypeCategory } from "../enum/transaction-type-category.enum";
5
+ import { TransactionQuickAccessOrderConfirmationComponent } from "../component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component";
6
+ import { TransactionQuickAccessReceivedGoodsComponent } from "../component/transaction-quick-access/transaction-quick-access-received-goods/transaction-quick-access-received-goods.component";
7
+ import { TransactionQuickAccessOverviewComponent } from "../component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component";
8
+ import { TransactionOrderConfirmationGridComponent } from "../component/transaction-grid/transaction-order-confirmation-grid/transaction-order-confirmation-grid.component";
9
+ import { TransactionLinesGridComponent } from "../component/transaction-grid/transaction-lines-grid/transaction-lines-grid.component";
10
+ import { TransactionReceivedGoodsGridComponent } from "../component/transaction-grid/transaction-received-goods-grid/transaction-received-goods-grid.component";
11
+ import * as i0 from "@angular/core";
12
+ export class TransactionMappingService {
13
+ constructor() {
14
+ this._buttonBarTransaction = new Map([
15
+ [TransactionKind.PurchaseOrder, [
16
+ { title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.PurchaseOrderOverview },
17
+ { title: 'CONFIRMATION', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation },
18
+ { title: 'TRANSPORT', icon: Icon.TruckContainerSolid, category: TransactionTypeCategory.PurchaseOrderTransport },
19
+ { title: 'RECEIVED', icon: Icon.CartFlatbedBoxesSolid, category: TransactionTypeCategory.PurchaseOrderReceivedGoods },
20
+ { title: 'INVOICE_CHECK', icon: Icon.Tag, category: TransactionTypeCategory.PurchaseOrderInvoiceCheck },
21
+ { title: 'MENU', icon: Icon.Tag, category: TransactionTypeCategory.PurchaseOrderMenu }
22
+ ]],
23
+ [TransactionKind.SalesOrder, [
24
+ { title: 'OVERVIEW', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderOverview },
25
+ { title: 'PURCHASE', icon: Icon.PalletBoxesSolid, category: TransactionTypeCategory.SalesOrderPurchase },
26
+ { title: 'LOGISTICS', icon: Icon.ShelvesSolid, category: TransactionTypeCategory.SalesOrderLogistics },
27
+ { title: 'PLANNING', icon: Icon.TruckArrowRightSolid, category: TransactionTypeCategory.SalesOrderPlanning },
28
+ { title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckSolid, category: TransactionTypeCategory.SalesOrderDeliveryNote },
29
+ { title: 'INVOICE', icon: Icon.CartShoppingSolid, category: TransactionTypeCategory.SalesOrderInvoice }
30
+ ]],
31
+ ]);
32
+ this._quickAccessComponent = new Map([
33
+ [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionQuickAccessOrderConfirmationComponent],
34
+ [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionQuickAccessReceivedGoodsComponent],
35
+ [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionQuickAccessOverviewComponent]
36
+ ]);
37
+ this._transactionGridComponent = new Map([
38
+ [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionLinesGridComponent],
39
+ [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionOrderConfirmationGridComponent],
40
+ [{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceivedGoodsGridComponent],
41
+ [{ type: TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderOverview }, TransactionLinesGridComponent]
42
+ ]);
43
+ }
44
+ getButtonBar(type) {
45
+ if (this._buttonBarTransaction.has(type)) {
46
+ return this._buttonBarTransaction.get(type);
47
+ }
48
+ return [];
49
+ }
50
+ getQuickAccessComponent(type, category) {
51
+ const key = {
52
+ type: type,
53
+ category: category
54
+ };
55
+ let entry;
56
+ this._quickAccessComponent.forEach((v, t, m) => {
57
+ if (t.type === key.type && t.category === key.category) {
58
+ entry = v;
59
+ return;
60
+ }
61
+ });
62
+ return entry;
63
+ }
64
+ getTransactionGridComponent(type, category) {
65
+ const key = {
66
+ type: type,
67
+ category: category
68
+ };
69
+ let entry;
70
+ this._transactionGridComponent.forEach((v, t, m) => {
71
+ if (t.type === key.type && t.category === key.category) {
72
+ entry = v;
73
+ return;
74
+ }
75
+ });
76
+ return entry;
77
+ }
78
+ }
79
+ TransactionMappingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionMappingService_Factory() { return new TransactionMappingService(); }, token: TransactionMappingService, providedIn: "root" });
80
+ TransactionMappingService.decorators = [
81
+ { type: Injectable, args: [{
82
+ providedIn: "root"
83
+ },] }
84
+ ];
85
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tbWFwcGluZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJhbnNhY3Rpb24vc3JjL2xpYi9zZXJ2aWNlL3RyYW5zYWN0aW9uLW1hcHBpbmcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFPLE1BQU0sZUFBZSxDQUFDO0FBQy9DLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSwyREFBMkQsQ0FBQztBQUUxRix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