@colijnit/sharedcomponents 1.0.25 → 1.0.26

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 (292) hide show
  1. package/README.md +8 -11
  2. package/bundles/colijnit-sharedcomponents.umd.js +3706 -0
  3. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -0
  4. package/colijnit-sharedcomponents.d.ts +16 -0
  5. package/colijnit-sharedcomponents.metadata.json +1 -0
  6. package/esm2015/colijnit-sharedcomponents.js +17 -0
  7. package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
  8. package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +126 -0
  9. package/esm2015/lib/components/circular-gauge/co-circular-gauge.module.js +21 -0
  10. package/esm2015/lib/components/docsign/component/signature/signature.component.js +75 -0
  11. package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +44 -0
  12. package/esm2015/lib/components/docsign/docsign.component.js +225 -0
  13. package/esm2015/lib/components/docsign/docsign.module.js +23 -0
  14. package/esm2015/lib/components/key-pad/key-pad.component.js +191 -0
  15. package/esm2015/lib/components/key-pad/key-pad.module.js +21 -0
  16. package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -0
  17. package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -0
  18. package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +55 -0
  19. package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +19 -0
  20. package/esm2015/lib/components/send-method-dialog/enums/send-option.js +8 -0
  21. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +309 -0
  22. package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +31 -0
  23. package/esm2015/lib/components/statusbar/statusbar.component.js +81 -0
  24. package/esm2015/lib/components/statusbar/statusbar.module.js +23 -0
  25. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +54 -0
  26. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +350 -0
  27. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +62 -0
  28. package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +2 -0
  29. package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +68 -0
  30. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +130 -0
  31. package/esm2015/lib/components/stock/stock.component.js +140 -0
  32. package/esm2015/lib/components/stock/stock.module.js +48 -0
  33. package/esm2015/lib/enum/icon.enum.js +19 -0
  34. package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
  35. package/esm2015/lib/enum/language-code.enum.js +8 -0
  36. package/esm2015/lib/factory/business-object-factory.js +120 -0
  37. package/esm2015/lib/factory/decorators/boolean.decorator.js +102 -0
  38. package/esm2015/lib/factory/decorators/complex-array.decorator.js +55 -0
  39. package/esm2015/lib/factory/decorators/complex-field.decorator.js +57 -0
  40. package/esm2015/lib/factory/decorators/date-field.decorator.js +36 -0
  41. package/esm2015/lib/factory/decorators/string-number.decorator.js +43 -0
  42. package/esm2015/lib/model/business-object.js +81 -0
  43. package/esm2015/lib/model/icon-svg.js +18 -0
  44. package/esm2015/lib/service/dictionary.service.js +76 -0
  45. package/esm2015/lib/service/icon-cache.service.js +51 -0
  46. package/esm2015/lib/service/options.service.js +71 -0
  47. package/esm2015/lib/service/shared-connector.service.js +278 -0
  48. package/esm2015/lib/service/shared.service.js +30 -0
  49. package/esm2015/lib/service/stock.service.js +95 -0
  50. package/esm2015/lib/utils/array-utils.js +183 -0
  51. package/esm2015/lib/utils/is-nill.function.js +5 -0
  52. package/esm2015/lib/utils/string-utils.js +64 -0
  53. package/esm2015/public-api.js +21 -0
  54. package/fesm2015/colijnit-sharedcomponents.js +3516 -0
  55. package/fesm2015/colijnit-sharedcomponents.js.map +1 -0
  56. package/lib/assets/dictionary/text.properties.d.ts +3 -0
  57. package/lib/components/circular-gauge/co-circular-gauge.component.d.ts +20 -0
  58. package/lib/components/circular-gauge/co-circular-gauge.module.d.ts +2 -0
  59. package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_layout.scss +0 -0
  60. package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_material-definition.scss +0 -0
  61. package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/_theme.scss +0 -0
  62. package/{projects/sharedcomponents/src/lib → lib}/components/circular-gauge/style/material.scss +0 -0
  63. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_layout.scss +0 -0
  64. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_material-definition.scss +0 -0
  65. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/_theme.scss +0 -0
  66. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/agenda/style/material.scss +0 -0
  67. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_layout.scss +0 -0
  68. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_material-definition.scss +0 -0
  69. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/_theme.scss +0 -0
  70. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/component/calendar/style/material.scss +0 -0
  71. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_layout.scss +0 -0
  72. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_material-definition.scss +0 -0
  73. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/_theme.scss +0 -0
  74. package/{projects/sharedcomponents/src/lib → lib}/components/date-planning/style/material.scss +0 -0
  75. package/lib/components/docsign/component/signature/signature.component.d.ts +16 -0
  76. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_layout.scss +0 -0
  77. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
  78. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/_theme.scss +0 -0
  79. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signature/style/material.scss +0 -0
  80. package/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -0
  81. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
  82. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
  83. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
  84. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/component/signatures/style/material.scss +0 -0
  85. package/lib/components/docsign/docsign.component.d.ts +92 -0
  86. package/lib/components/docsign/docsign.module.d.ts +2 -0
  87. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_layout.scss +0 -0
  88. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_material-definition.scss +0 -0
  89. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/_theme.scss +0 -0
  90. package/{projects/sharedcomponents/src/lib → lib}/components/docsign/style/material.scss +0 -0
  91. package/lib/components/key-pad/key-pad.component.d.ts +36 -0
  92. package/lib/components/key-pad/key-pad.module.d.ts +2 -0
  93. package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_layout.scss +0 -0
  94. package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_material-definition.scss +0 -0
  95. package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/_theme.scss +0 -0
  96. package/{projects/sharedcomponents/src/lib → lib}/components/key-pad/style/material.scss +0 -0
  97. package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -0
  98. package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -0
  99. package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_layout.scss +0 -0
  100. package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_material-definition.scss +0 -0
  101. package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/_theme.scss +0 -0
  102. package/{projects/sharedcomponents/src/lib → lib}/components/layout-switcher/style/material.scss +0 -0
  103. package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +16 -0
  104. package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +2 -0
  105. package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_layout.scss +0 -0
  106. package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_material-definition.scss +0 -0
  107. package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/_theme.scss +0 -0
  108. package/{projects/sharedcomponents/src/lib → lib}/components/linear-gauge/style/material.scss +0 -0
  109. package/lib/components/send-method-dialog/enums/send-option.d.ts +6 -0
  110. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +62 -0
  111. package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +2 -0
  112. package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_layout.scss +0 -0
  113. package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
  114. package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/_theme.scss +0 -0
  115. package/{projects/sharedcomponents/src/lib → lib}/components/send-method-dialog/style/material.scss +0 -0
  116. package/lib/components/statusbar/statusbar.component.d.ts +22 -0
  117. package/lib/components/statusbar/statusbar.module.d.ts +2 -0
  118. package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_layout.scss +0 -0
  119. package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_material-definition.scss +0 -0
  120. package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/_theme.scss +0 -0
  121. package/{projects/sharedcomponents/src/lib → lib}/components/statusbar/style/material.scss +0 -0
  122. package/lib/components/stock/stock-information/stock-information.component.d.ts +10 -0
  123. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +60 -0
  124. package/lib/components/stock/stock-location/stock-location.component.d.ts +15 -0
  125. package/{projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts → lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts} +2 -2
  126. package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -0
  127. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +36 -0
  128. package/lib/components/stock/stock.component.d.ts +42 -0
  129. package/lib/components/stock/stock.module.d.ts +2 -0
  130. package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_layout.scss +0 -0
  131. package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_material-definition.scss +0 -0
  132. package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/_theme.scss +0 -0
  133. package/{projects/sharedcomponents/src/lib → lib}/components/stock/style/material.scss +0 -0
  134. package/{projects/sharedcomponents/src/lib/enum/icon.enum.ts → lib/enum/icon.enum.d.ts} +2 -3
  135. package/lib/enum/keyboard-code.enum.d.ts +30 -0
  136. package/lib/enum/language-code.enum.d.ts +6 -0
  137. package/lib/factory/business-object-factory.d.ts +23 -0
  138. package/lib/factory/decorators/boolean.decorator.d.ts +43 -0
  139. package/lib/factory/decorators/complex-array.decorator.d.ts +25 -0
  140. package/lib/factory/decorators/complex-field.decorator.d.ts +25 -0
  141. package/lib/factory/decorators/date-field.decorator.d.ts +17 -0
  142. package/lib/factory/decorators/string-number.decorator.d.ts +22 -0
  143. package/lib/model/business-object.d.ts +7 -0
  144. package/lib/model/icon-svg.d.ts +4 -0
  145. package/lib/service/dictionary.service.d.ts +21 -0
  146. package/lib/service/icon-cache.service.d.ts +18 -0
  147. package/lib/service/options.service.d.ts +13 -0
  148. package/lib/service/shared-connector.service.d.ts +43 -0
  149. package/lib/service/shared.service.d.ts +8 -0
  150. package/lib/service/stock.service.d.ts +38 -0
  151. package/{projects/sharedcomponents/src/lib → lib}/style/_mixin.scss +0 -0
  152. package/{projects/sharedcomponents/src/lib → lib}/style/_variables.scss +0 -0
  153. package/{projects/sharedcomponents/src/lib → lib}/style/sharedcomponents-globals.scss +0 -0
  154. package/lib/utils/array-utils.d.ts +57 -0
  155. package/lib/utils/is-nill.function.d.ts +1 -0
  156. package/lib/utils/string-utils.d.ts +22 -0
  157. package/package.json +26 -74
  158. package/{projects/sharedcomponents/src/public-api.ts → public-api.d.ts} +0 -5
  159. package/.browserslistrc +0 -16
  160. package/.editorconfig +0 -16
  161. package/.vscode/extensions.json +0 -4
  162. package/.vscode/launch.json +0 -20
  163. package/.vscode/tasks.json +0 -42
  164. package/Sharedcomponents.iml +0 -11
  165. package/angular.json +0 -133
  166. package/karma.conf.js +0 -44
  167. package/move-assets.js +0 -14
  168. package/projects/sharedcomponents/.browserslistrc +0 -16
  169. package/projects/sharedcomponents/README.md +0 -24
  170. package/projects/sharedcomponents/karma.conf.js +0 -44
  171. package/projects/sharedcomponents/ng-package.json +0 -17
  172. package/projects/sharedcomponents/package.json +0 -18
  173. package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +0 -8
  174. package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +0 -1
  175. package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +0 -1
  176. package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +0 -1
  177. package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +0 -8
  178. package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +0 -4
  179. package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +0 -1
  180. package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +0 -1
  181. package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +0 -1
  182. package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +0 -12
  183. package/projects/sharedcomponents/src/lib/assets/icons/email.svg +0 -5
  184. package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +0 -15
  185. package/projects/sharedcomponents/src/lib/assets/icons/print.svg +0 -10
  186. package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +0 -9
  187. package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +0 -9
  188. package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.component.ts +0 -139
  189. package/projects/sharedcomponents/src/lib/components/circular-gauge/co-circular-gauge.module.ts +0 -19
  190. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +0 -68
  191. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +0 -31
  192. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +0 -67
  193. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +0 -48
  194. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +0 -81
  195. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +0 -265
  196. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +0 -38
  197. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +0 -50
  198. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +0 -46
  199. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +0 -65
  200. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +0 -38
  201. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +0 -63
  202. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +0 -46
  203. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +0 -37
  204. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +0 -52
  205. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +0 -124
  206. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +0 -201
  207. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +0 -35
  208. package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +0 -133
  209. package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +0 -56
  210. package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +0 -82
  211. package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +0 -50
  212. package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +0 -252
  213. package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +0 -22
  214. package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +0 -205
  215. package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +0 -19
  216. package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +0 -98
  217. package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +0 -21
  218. package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +0 -56
  219. package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +0 -17
  220. package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +0 -6
  221. package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +0 -342
  222. package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +0 -33
  223. package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +0 -97
  224. package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +0 -21
  225. package/projects/sharedcomponents/src/lib/components/stock/stock-in-order/stock-in-order.component.ts +0 -0
  226. package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +0 -64
  227. package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +0 -384
  228. package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +0 -84
  229. package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +0 -73
  230. package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +0 -153
  231. package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +0 -165
  232. package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +0 -51
  233. package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +0 -6
  234. package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +0 -30
  235. package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +0 -6
  236. package/projects/sharedcomponents/src/lib/enum/month.enum.ts +0 -15
  237. package/projects/sharedcomponents/src/lib/enum/time-period.enum.ts +0 -9
  238. package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +0 -120
  239. package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +0 -113
  240. package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +0 -61
  241. package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +0 -63
  242. package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +0 -41
  243. package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +0 -48
  244. package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +0 -6
  245. package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +0 -17
  246. package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +0 -11
  247. package/projects/sharedcomponents/src/lib/model/business-object.ts +0 -85
  248. package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +0 -17
  249. package/projects/sharedcomponents/src/lib/model/date-range.ts +0 -10
  250. package/projects/sharedcomponents/src/lib/model/day.model.ts +0 -9
  251. package/projects/sharedcomponents/src/lib/model/icon-svg.ts +0 -18
  252. package/projects/sharedcomponents/src/lib/model/month.model.ts +0 -11
  253. package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +0 -21
  254. package/projects/sharedcomponents/src/lib/model/week.model.ts +0 -5
  255. package/projects/sharedcomponents/src/lib/model/weekday.model.ts +0 -17
  256. package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +0 -14
  257. package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +0 -7
  258. package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +0 -14
  259. package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +0 -86
  260. package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +0 -51
  261. package/projects/sharedcomponents/src/lib/service/options.service.ts +0 -66
  262. package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +0 -258
  263. package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +0 -29
  264. package/projects/sharedcomponents/src/lib/service/shared.service.ts +0 -21
  265. package/projects/sharedcomponents/src/lib/service/stock.service.ts +0 -95
  266. package/projects/sharedcomponents/src/lib/utils/array-utils.ts +0 -202
  267. package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +0 -75
  268. package/projects/sharedcomponents/src/lib/utils/date-utils.ts +0 -302
  269. package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +0 -4
  270. package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +0 -4
  271. package/projects/sharedcomponents/src/lib/utils/string-utils.ts +0 -67
  272. package/projects/sharedcomponents/src/test.ts +0 -27
  273. package/projects/sharedcomponents/tsconfig.lib.json +0 -18
  274. package/projects/sharedcomponents/tsconfig.lib.prod.json +0 -10
  275. package/projects/sharedcomponents/tsconfig.spec.json +0 -17
  276. package/script/merge-icons.js +0 -39
  277. package/src/app/app.component.scss +0 -9
  278. package/src/app/app.component.spec.ts +0 -31
  279. package/src/app/app.component.ts +0 -156
  280. package/src/app/app.module.ts +0 -60
  281. package/src/assets/.gitkeep +0 -0
  282. package/src/environments/environment.prod.ts +0 -3
  283. package/src/environments/environment.ts +0 -16
  284. package/src/favicon.ico +0 -0
  285. package/src/index.html +0 -13
  286. package/src/main.ts +0 -12
  287. package/src/polyfills.ts +0 -53
  288. package/src/styles.scss +0 -40
  289. package/src/test.ts +0 -26
  290. package/tsconfig.app.json +0 -15
  291. package/tsconfig.json +0 -65
  292. package/tsconfig.spec.json +0 -18
@@ -0,0 +1,42 @@
1
+ import { ChangeDetectorRef, EventEmitter, OnDestroy } from "@angular/core";
2
+ import { StockService } from "../../service/stock.service";
3
+ import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
4
+ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
5
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
6
+ import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
7
+ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
8
+ import { OptionsService } from "../../service/options.service";
9
+ import { DictionaryService } from "../../service/dictionary.service";
10
+ export declare class StockComponent implements OnDestroy {
11
+ stockService: StockService;
12
+ private _optionsService;
13
+ private _dictionary;
14
+ private _changeDetector;
15
+ stock: StockComponent;
16
+ handleStickerClicked: EventEmitter<any>;
17
+ set article(article: any);
18
+ articleWarehouse: any[];
19
+ allWarehouses: any[];
20
+ showClass(): boolean;
21
+ showStockInformationGrid: boolean;
22
+ showStockLocation: boolean;
23
+ showStockTransfer: boolean;
24
+ stockInformation: ArticleStockBo[];
25
+ stockLocationInformation: ArticleStockBo[];
26
+ stockTransferArticle: ArticleStockBo;
27
+ stockTransferArticleDetails: ArticleDetailsBo;
28
+ articleExtended: ArticleExtended;
29
+ stockHistory: StockHistoryBo[];
30
+ allAvailableStock: number;
31
+ allTechnicalStock: number;
32
+ private _subscriptions;
33
+ constructor(stockService: StockService, _optionsService: OptionsService, _dictionary: DictionaryService, _changeDetector: ChangeDetectorRef);
34
+ ngOnDestroy(): void;
35
+ backToStockLinesClicked(): void;
36
+ handleStockTransferClick(event: any): void;
37
+ backToStock(): void;
38
+ getStockHistory(): Promise<void>;
39
+ getStockInformation(data: ArticleStock): Promise<void>;
40
+ private _handleSettingsLoaded;
41
+ private _initConnection;
42
+ }
@@ -0,0 +1,2 @@
1
+ export declare class StockModule {
2
+ }
@@ -1,6 +1,5 @@
1
1
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2
-
3
- export enum Icon {
2
+ export declare enum Icon {
4
3
  AngleLeftSolid = "angle_left_solid",
5
4
  AngleRightSolid = "angle_right_solid",
6
5
  ArrowFatRight = "arrow_fat_right",
@@ -15,4 +14,4 @@ export enum Icon {
15
14
  Print = "print",
16
15
  SignatureField = "signature_field",
17
16
  Xml = "xml"
18
- }
17
+ }
@@ -0,0 +1,30 @@
1
+ export declare enum KeyboardCode {
2
+ Backspace = "Backspace",
3
+ Digit0 = "Digit0",
4
+ Digit1 = "Digit1",
5
+ Digit2 = "Digit2",
6
+ Digit3 = "Digit3",
7
+ Digit4 = "Digit4",
8
+ Digit5 = "Digit5",
9
+ Digit6 = "Digit6",
10
+ Digit7 = "Digit7",
11
+ Digit8 = "Digit8",
12
+ Digit9 = "Digit9",
13
+ Enter = "Enter",
14
+ Escape = "Escape",
15
+ Minus = "Minus",
16
+ Numpad0 = "Numpad0",
17
+ Numpad1 = "Numpad1",
18
+ Numpad2 = "Numpad2",
19
+ Numpad3 = "Numpad3",
20
+ Numpad4 = "Numpad4",
21
+ Numpad5 = "Numpad5",
22
+ Numpad6 = "Numpad6",
23
+ Numpad7 = "Numpad7",
24
+ Numpad8 = "Numpad8",
25
+ Numpad9 = "Numpad9",
26
+ NumpadDecimal = "NumpadDecimal",
27
+ NumpadEnter = "NumpadEnter",
28
+ NumpadSubtract = "NumpadSubtract",
29
+ Period = "Period"
30
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum LanguageCode {
2
+ Dutch = "nl-NL",
3
+ English = "en-GB",
4
+ German = "de-DE",
5
+ French = "fr-FR"
6
+ }
@@ -0,0 +1,23 @@
1
+ import { BusinessObject } from "../model/business-object";
2
+ export declare class BusinessObjectFactory {
3
+ constructor();
4
+ /**
5
+ * Creates and returns a new business data object instance of given class, with all given data properties applied to it in a
6
+ * complex-aware style. That is, all properties on given class that are decorated with @ComplexField(..) or @ComplexArray(..) decorators
7
+ * become strongly typed business objects, with methods that are usable and such.
8
+ *
9
+ * @param modelClass
10
+ * @param {Object} rawData The object with all (possibly raw/flat/not alive) data to be applied to the created model object
11
+ */
12
+ makeWithRawBackendData(modelClass: any, rawData: Object): BusinessObject;
13
+ makeBOArrayFromRawBackendDataArray(modelClass: any, arrayOfRawDatas: Object[]): BusinessObject[];
14
+ instantiateNewBo(modelClass: any): BusinessObject;
15
+ /**
16
+ * Applies all properties of given 'source' object to the given 'destination' businessobject, if destination has that property.
17
+ * Works with the @ComplexField(), @ComplexArray, @BooleanText, @CoInject and @DateField annotations of given destination model.
18
+ *
19
+ * @param sourceData Raw data to copy to destination model
20
+ * @param {BusinessObject} destinationModel InOut: The annotated businessobject to apply source properties to
21
+ */
22
+ private _copyAllPropertiesDecoratorProcessedFrom;
23
+ }
@@ -0,0 +1,43 @@
1
+ import { DbBooleanValueType } from "@colijnit/articleapi/build/enum/db-boolean-value-type.enum";
2
+ /**
3
+ * There are 'J', 'T', 'N', 'F', 0 and 1 'boolean values' in the database. These should be translated to true and false boolean values in
4
+ * our client application.
5
+ *
6
+ * The values 'J' and 'N' seem to be most commonly used. This is the default setting when using this decorator.
7
+ * You can pass 'T' or 1 for the other variants as follows:
8
+ *
9
+ * Usage:
10
+ *
11
+ * @BooleanText() or @BooleanText("J") (the default, uses YesNoDbType char values)
12
+ * public foo: boolean // 'J' and 'N' become true and false after BusinessObjectFactoryService and -SerializerService processing
13
+ *
14
+ * @BooleanText('T') (uses TrueFalseDbType char values)
15
+ * public bar: boolean // 'T' and 'F' become true and false after BusinessObjectFactoryService and -SerializerService processing
16
+ *
17
+ * @BooleanText(1)
18
+ * public baz: boolean // 1 and 0 become true and false after BusinessObjectFactoryService and -SerializerService processing
19
+ */
20
+ export declare function BooleanText(type?: "J" | "T" | 1): PropertyDecorator;
21
+ export declare class BooleanTextDecorator {
22
+ /**
23
+ * Returns whether given property (as a string) on given object is a boolean text field. That is, it's a field that is decorated
24
+ * with the @BooleanText decorator.
25
+ */
26
+ static IsBooleanTextField(target: Object, propertyKey: string): boolean;
27
+ /**
28
+ * Returns the logical true or false value of given character ('J', 'N', 'T' or 'F') or number (0 or 1).
29
+ * Returns UNDEFINED if given boolChar was not recognised as a boolean text.
30
+ */
31
+ static GetLogicalBooleanValue(dbBoolChar: DbBooleanValueType | string): boolean;
32
+ /**
33
+ * Returns the boolean character / number of given logical bool property on target object. Uses its @BooleanText() annotation to decide
34
+ * what character / number to return.
35
+ * Used in BusinessObjectSerializerServiceService to convert logical bools to their original boolean character.
36
+ * @returns {string|number} The original, reverse-engineered boolean character (or number) of given object property, or undefined.
37
+ */
38
+ static GetDbBooleanValue(target: Object, propertyKey: string): DbBooleanValueType;
39
+ private static _IsJaNeeProp;
40
+ private static _IsTrueFalseProp;
41
+ private static _IsZeroOneProp;
42
+ private static _IsProp;
43
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
3
+ */
4
+ /**
5
+ * Property decorator for properties of businessobject classes that are an array of other strongly typed businessobjects.
6
+ * Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
7
+ * to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
8
+ *
9
+ * Usage:
10
+ *
11
+ * @ComplexArray(TransactionLine)
12
+ * public transactionLines: TransactionLine[]
13
+ */
14
+ export declare function ComplexArray(type: any): PropertyDecorator;
15
+ export declare class ComplexArrayDecorator {
16
+ /**
17
+ * Returns whether given property (as a string) on given object is a complex array. A complex array is an array field that is decorated
18
+ * with the @ComplexArray decorator.
19
+ */
20
+ static IsComplexArray(target: Object, propertyKey: string): boolean;
21
+ /**
22
+ * Returns the VALUE of the @ComplexArray(VALUE) property decorator on the given propertyKey on the given modelobject.
23
+ */
24
+ static GetComplexArrayType(target: Object, propertyKey: string): any;
25
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
3
+ */
4
+ /**
5
+ * Property decorator for properties of businessobject classes that are other strongly typed businessobjects.
6
+ * Ensures that the BusinessObjectFactoryService makes properly typed objects from incoming raw persistence data. Otherwise we couldn't add methods
7
+ * to our own businessobjects and use them, since all fields would be flat data without methods after BusinessObjectFactoryService creation.
8
+ *
9
+ * Usage:
10
+ *
11
+ * @ComplexField(Transaction)
12
+ * public transaction: Transaction
13
+ *
14
+ * Also keeps track of a "complexFieldProps" metadata on the class-level, as a reflect-metadata workaround to be able to
15
+ * retrieve all properties that have the @ComplexField(..) decorator (impossible with current Reflect API).
16
+ */
17
+ export declare function ComplexField(type: any): PropertyDecorator;
18
+ export declare class ComplexFieldDecorator {
19
+ /**
20
+ * Returns whether given property (as a string) on given object is a complex field. A complex field is a field that is decorated
21
+ * with the @ComplexField decorator.
22
+ */
23
+ static IsComplexField(target: Object, propertyKey: string): boolean;
24
+ static GetComplexFieldType(target: Object, propertyKey: string): any;
25
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
3
+ */
4
+ /**
5
+ * Property decorator for properties of businessobject classes that are of type Date, but are sent to us as strings.
6
+ * Ensures that the BusinessObjectFactory makes proper JavaScript Date objects from incoming strings for @DateField() decorated properties.
7
+ *
8
+ * Usage:
9
+ *
10
+ * @DateField()
11
+ * public expectedDeliveryDate: Date
12
+ */
13
+ export declare function DateField(): PropertyDecorator;
14
+ export declare class DateFieldFieldDecorator {
15
+ static IsDateField(target: Object, propertyKey: string): boolean;
16
+ static StringAsDate(str: string): Date;
17
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * !! just a TAG DECORATOR for now, there is no code that uses this meta data within the ione connector lib itself.
3
+ */
4
+ /**
5
+ * Decorator for properties of businessobjects that are sent to us as strings from the database, but which we want to use as a number in the client.
6
+ *
7
+ * Can be handy for incongruent backend api cases, where id data types are communicated wrongly via strings instead of numbers
8
+ * (e.g. on EmployeeFullObject.district, points to a District which has a number id, but in employee it's a string representation of that number...)
9
+ *
10
+ * Used by business object factory and -serializer.
11
+ *
12
+ * Usage:
13
+ *
14
+ * @StringNumber()
15
+ * public rights: UserRightType
16
+ */
17
+ export declare function StringNumber(): PropertyDecorator;
18
+ export declare class StringNumberDecorator {
19
+ static IsStringNumber(target: Object, propertyKey: string): boolean;
20
+ static StringAsNumber(str: string): number;
21
+ static NumberAsString(nr: number): string;
22
+ }
@@ -0,0 +1,7 @@
1
+ export declare type BusinessObjectIDType = number | string | Object;
2
+ export declare abstract class BusinessObject {
3
+ id: BusinessObjectIDType;
4
+ getId(): BusinessObjectIDType;
5
+ constructor();
6
+ protected setOwnMappedPropsFromRawData(rawData?: any): void;
7
+ }
@@ -0,0 +1,4 @@
1
+ /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
2
+ export declare const IconSvg: {
3
+ [iconName: string]: string;
4
+ };
@@ -0,0 +1,21 @@
1
+ export declare class DictionaryService {
2
+ private readonly dictionaryUrl;
3
+ get language(): string;
4
+ set rootUrl(value: string);
5
+ private _dictBasePath;
6
+ private _rootUrl;
7
+ private _dictionaries;
8
+ private _language;
9
+ private readonly _placeholder;
10
+ constructor();
11
+ setDictionary(language: string): Promise<void>;
12
+ private _loadDictionary;
13
+ /**
14
+ * Returns the localized text for the given dictionary key.
15
+ * @param {string} key
16
+ * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
17
+ * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
18
+ * @returns {string} The translated text for given dictionary key
19
+ */
20
+ get(key: string, upperCaseFirst?: boolean, ...replacementTexts: string[]): string;
21
+ }
@@ -0,0 +1,18 @@
1
+ import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
2
+ import { Icon } from "../enum/icon.enum";
3
+ export declare class IconCacheService {
4
+ private _sanitizer;
5
+ /**
6
+ * All the icons as a large JSON object, from the all-icons.json file.
7
+ * The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
8
+ */
9
+ get iconCache(): {
10
+ [iconName: string]: SafeHtml;
11
+ };
12
+ private _iconCache;
13
+ constructor(_sanitizer: DomSanitizer);
14
+ getIcon(iconName: Icon): SafeHtml;
15
+ getIconAsBase64(iconName: Icon): SafeHtml;
16
+ getRawIcon(iconName: Icon): string;
17
+ setIconCache(): void;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { BehaviorSubject } from "rxjs";
2
+ import { DictionaryService } from "./dictionary.service";
3
+ export declare class OptionsService {
4
+ private _dictionary;
5
+ optionsInitialized: BehaviorSubject<boolean>;
6
+ set options(value: any);
7
+ get options(): any;
8
+ optionsLoaded: BehaviorSubject<boolean>;
9
+ private _options;
10
+ constructor(_dictionary: DictionaryService);
11
+ createSettingsFromObject(obj: any): Promise<void>;
12
+ initialize(options: any): Promise<void>;
13
+ }
@@ -0,0 +1,43 @@
1
+ import { Articles } from "@colijnit/articleapi/build/articles";
2
+ import { Sharedapi } from "@colijnit/sharedapi/build/sharedapi";
3
+ import { Printer } from "@colijnit/sharedapi/build/model/report/printer.bo";
4
+ import { ArticleExtended } from "@colijnit/articleapi/build/model/article-extended.bo";
5
+ import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
6
+ import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
7
+ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
8
+ import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
9
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
10
+ import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
11
+ import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
12
+ import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
13
+ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
14
+ import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
15
+ import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
16
+ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
17
+ import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
18
+ import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
19
+ import { OptionsService } from "./options.service";
20
+ import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
21
+ export declare class SharedConnectorService {
22
+ private _optionsService;
23
+ articleConnector: Articles;
24
+ sharedConnector: Sharedapi;
25
+ private _boFactory;
26
+ constructor(_optionsService: OptionsService);
27
+ connect(): Promise<void>;
28
+ getAllPrinters(showAll?: boolean): Promise<Printer[]>;
29
+ getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers>;
30
+ getPrintPriceStickers(request: PrintPriceStickers): Promise<PrintPriceStickers>;
31
+ getArticleFullObject(goodId: number): Promise<ArticleExtended>;
32
+ getStockHistory(request: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
33
+ getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
34
+ getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
35
+ getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
36
+ getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
37
+ updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
38
+ lockArticleDetails(data: ArticleStockManagement): Promise<boolean>;
39
+ getStockStatus(): Promise<StockStatus[]>;
40
+ getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
41
+ getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
42
+ commit(): Promise<DataServiceResponseData>;
43
+ }
@@ -0,0 +1,8 @@
1
+ import { SharedConnectorService } from "./shared-connector.service";
2
+ import { OptionsService } from "./options.service";
3
+ export declare class SharedService {
4
+ protected options: OptionsService;
5
+ protected connector: SharedConnectorService;
6
+ constructor(options: OptionsService, connector: SharedConnectorService);
7
+ init(options: any): Promise<void>;
8
+ }
@@ -0,0 +1,38 @@
1
+ import { PrintStockStickers } from "@colijnit/sharedapi/build/model/print-stock-stickers";
2
+ import { Printer } from "@colijnit/sharedapi/build/model/report/printer.bo";
3
+ import { GetStockHistoryRequest } from "@colijnit/articleapi/build/model/get-stock-history-request";
4
+ import { ArticleStock as ArticleStockBo } from "@colijnit/articleapi/build/model/article-stock.bo";
5
+ import { ArticleStock } from "@colijnit/articleapi/build/model/article-stock";
6
+ import { StockHistoryBo } from "@colijnit/articleapi/build/model/stock-history.bo";
7
+ import { StockStickersPrintLayouts } from "@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo";
8
+ import { ArticleDetailsBo } from "@colijnit/articleapi/build/model/article-details.bo";
9
+ import { ArticleStockManagement } from "@colijnit/articleapi/build/model/article-stock-management";
10
+ import { StockStatus } from "@colijnit/articleapi/build/model/stock-status.bo";
11
+ import { StockManagementWarehouses } from "@colijnit/articleapi/build/model/stock-management-warehouses.bo";
12
+ import { StockLocation } from "@colijnit/articleapi/build/model/stock-location.bo";
13
+ import { DataServiceResponseData } from "@colijnit/articleapi/build/model/data-service-response-data";
14
+ import { ArticleTransaction } from "@colijnit/articleapi/build/model/article-transaction";
15
+ import { ArticleTransaction as ArticleTransactionBo } from "@colijnit/articleapi/build/model/article-transaction.bo";
16
+ import { PrintPriceStickers } from "@colijnit/sharedapi/build/model/print-price-stickers.bo";
17
+ import { SharedConnectorService } from "./shared-connector.service";
18
+ export declare class StockService {
19
+ private _sharedService;
20
+ stockStickers: PrintStockStickers;
21
+ printSticker: PrintStockStickers;
22
+ printPriceSticker: PrintPriceStickers;
23
+ constructor(_sharedService: SharedConnectorService);
24
+ getPrintStockStickers(data: PrintStockStickers): Promise<void>;
25
+ getPrintPriceStickers(data: PrintPriceStickers): Promise<void>;
26
+ getAllPrinters(showAll?: boolean): Promise<Printer[]>;
27
+ getStockHistory(data: GetStockHistoryRequest): Promise<StockHistoryBo[]>;
28
+ getStockInformation(data: ArticleStock): Promise<ArticleStockBo[]>;
29
+ getArticleDetails(data: ArticleStockManagement): Promise<ArticleDetailsBo[]>;
30
+ updateArticleDetails(data: ArticleDetailsBo): Promise<boolean>;
31
+ getStockState(): Promise<StockStatus[]>;
32
+ getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]>;
33
+ getStockManagementWarehouses(): Promise<StockManagementWarehouses[]>;
34
+ getStockManagementLocations(warehouseNo: number): Promise<StockLocation[]>;
35
+ getArticleTransaction(data: ArticleTransaction): Promise<ArticleTransactionBo[]>;
36
+ lockArticleDetails(data: ArticleStockManagement): Promise<boolean>;
37
+ commit(): Promise<DataServiceResponseData>;
38
+ }
@@ -0,0 +1,57 @@
1
+ export declare class ArrayUtils {
2
+ /**
3
+ * Returns whether at least one element in given array could be found by given finder function.
4
+ *
5
+ * @param {T[]} array
6
+ * @param {(element: T) => boolean} finder A finder function that takes an element of the array and returns a boolean that represents
7
+ * the 'found status' for that element; whether it should have been found or not.
8
+ */
9
+ static ContainsAnElementFoundBy<T>(array: T[], finder: (element: T) => boolean): boolean;
10
+ /**
11
+ * Cross-browser Array.find() function. Returns the first item in given array for which the foundBy function returns true. Returns
12
+ * undefined when none was found.
13
+ *
14
+ * Example usage:
15
+ * const foundItem: BusinessObject = ArrayUtils.Find<BusinessObject>(modelArray, (modelItem: BusinessObject) => <br>
16
+ * (return modelItem.getId() === '1')
17
+ * * });
18
+ *
19
+ * @param array The array with items to search in.
20
+ * @param foundBy The finder function applied on each items of the array, when that returns true, the item is considered found.
21
+ */
22
+ static Find<T>(array: T[], foundBy: (item: T) => boolean): T;
23
+ static FindAll<T>(array: T[], foundBy: (item: T) => boolean): T[];
24
+ static CloneArray<T>(array: T[]): T[];
25
+ /**
26
+ * Returns a 'semi deep clone' of given array. Its first-level members are object-shallow-cloned (optionally with a strongly typed constructor),
27
+ * or just as plain object (see param arrayItemsClass).
28
+ * @param array
29
+ * @param arrayItemsClass If provided, the cloned array's first-level items will be strongly typed to / constructed as this class. Otherwise
30
+ * it'll be a plain object.
31
+ * @param deepClone Set to true if array items contain FUNCTIONS that need to be cloned..
32
+ * @returns {Array} semi-deep clone of given array
33
+ */
34
+ static CloneArrayAndItsItems<T>(array: T[], arrayItemsClass?: any, deepClone?: boolean): T[];
35
+ /**
36
+ * Removes element at given index from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really
37
+ * removes the element using splice().
38
+ *
39
+ * @param {number} index
40
+ * @param {any[]} array in-out
41
+ * @returns {boolean} True if and only if the element on given index is succesfully removed from given array.
42
+ */
43
+ static RemoveElementAtIndex(index: number, array: any[]): boolean;
44
+ /**
45
+ * Removes given element from given array. Doesn't just set it to null like JavaScripts standard 'delete' does, but really removes the
46
+ * element using splice(). Also works on associative arrays.
47
+ *
48
+ * @param {T} element The element to remove.
49
+ * @param {T[]} array The array to remove the element from.
50
+ * @returns {boolean} True iff given element was truly successfully removed from given array.
51
+ */
52
+ static RemoveElement<T>(element: T, array: T[]): boolean;
53
+ static IsArrayWithElements<T>(arrayToCheck: T[], classItemsMustBeInstanceOf?: any): boolean;
54
+ static RemoveElementsByFilter(array: any[], filterFunction: (item: any) => boolean): boolean;
55
+ static MoveElement<T>(element: T, toIndex: number, array: T[]): boolean;
56
+ static PlaceElementAfterOther(array: any[], elementToPlace: any, afterThisElement: any): void;
57
+ }
@@ -0,0 +1 @@
1
+ export declare function isNill(value: any): boolean;
@@ -0,0 +1,22 @@
1
+ export declare class StringUtils {
2
+ /**
3
+ * Returns a new string where given placeholder in given source string are replaced by given replacement texts.
4
+ *
5
+ * Example usage:
6
+ *
7
+ * source = "ABCDABCD"
8
+ * placeholder = "BC"
9
+ * replacementTexts = "Z", "Z" (REST arguments)
10
+ * OUTPUT = "AZDAZD"
11
+ *
12
+ * @param {string} source
13
+ * @param {string} placeholder
14
+ * @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
15
+ * If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
16
+ */
17
+ static ReplaceOccurrencesIn(source: string, placeholder: string, ...replacementTexts: string[]): string;
18
+ static ParseString(arg: any, defaultValue?: string): string;
19
+ static IsString(str: any): boolean;
20
+ static IsStringWithLength(str: string): boolean;
21
+ private static _escapeRegExp;
22
+ }
package/package.json CHANGED
@@ -1,74 +1,26 @@
1
- {
2
- "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.25",
4
- "scripts": {
5
- "ng": "ng",
6
- "start": "ng serve",
7
- "build": "ng build",
8
- "watch": "ng build --watch --configuration development",
9
- "package": "ng build && ng-packagr -p projects/sharedcomponents/ng-package.json && npm run postPackage",
10
- "postPackage": "node move-assets",
11
- "test": "ng test"
12
- },
13
- "private": false,
14
- "dependencies": {
15
- "@angular/animations": "^12.2.0",
16
- "@angular/cdk": "^12.2.0",
17
- "@angular/common": "^12.2.0",
18
- "@angular/compiler": "^12.2.0",
19
- "@angular/core": "^12.2.0",
20
- "@angular/forms": "^12.2.0",
21
- "@angular/platform-browser": "^12.2.0",
22
- "@angular/platform-browser-dynamic": "^12.2.0",
23
- "@angular/router": "^12.2.0",
24
- "@colijnit/articleapi": "^1.0.15",
25
- "@colijnit/sharedapi": "^1.0.7",
26
- "@colijnit/corecomponents_v12": "^12.0.66",
27
- "@syncfusion/ej2-angular-buttons": "~19.3.44",
28
- "@syncfusion/ej2-angular-calendars": "~19.3.44",
29
- "@syncfusion/ej2-angular-circulargauge": "^19.3.45",
30
- "@syncfusion/ej2-angular-dropdowns": "~19.3.45",
31
- "@syncfusion/ej2-angular-grids": "~19.3.45",
32
- "@syncfusion/ej2-angular-inputs": "~19.3.44",
33
- "@syncfusion/ej2-angular-kanban": "~19.3.45",
34
- "@syncfusion/ej2-angular-lists": "~19.3.45",
35
- "@syncfusion/ej2-angular-navigations": "~19.3.45",
36
- "@syncfusion/ej2-angular-pivotview": "~19.3.44",
37
- "@syncfusion/ej2-angular-popups": "~19.3.43",
38
- "@syncfusion/ej2-angular-richtexteditor": "~19.3.45",
39
- "@syncfusion/ej2-angular-schedule": "~19.3.44",
40
- "@syncfusion/ej2-angular-splitbuttons": "~19.3.45",
41
- "@syncfusion/ej2-base": "~19.3.43",
42
- "@syncfusion/ej2-popups": "~19.3.43",
43
- "@types/hammerjs": "2.0.35",
44
- "@types/three": "0.126.0",
45
- "@tweenjs/tween.js": "^17.2.0",
46
- "hammerjs": "^2.0.8",
47
- "three": "0.126.0",
48
- "moment": "^2.22.2",
49
- "pdf-lib": "^1.17.1",
50
- "pdfjs-dist": "^2.12.313",
51
- "rxjs": "~7.4.0",
52
- "signature_pad": "^4.0.2",
53
- "tslib": "^2.3.0",
54
- "zone.js": "~0.11.4"
55
- },
56
- "devDependencies": {
57
- "@angular-devkit/build-angular": "^12.2.0",
58
- "@angular/cli": "^12.2.0",
59
- "@angular/compiler-cli": "^12.2.0",
60
- "@types/jasmine": "~3.10.0",
61
- "@types/node": "^12.11.1",
62
- "jasmine-core": "~3.10.0",
63
- "karma": "~6.3.0",
64
- "karma-chrome-launcher": "~3.1.0",
65
- "karma-coverage": "~2.1.0",
66
- "karma-jasmine": "~4.0.0",
67
- "karma-jasmine-html-reporter": "~1.7.0",
68
- "ng-packagr": "^12.1.1",
69
- "typescript": "~4.3.5"
70
- },
71
- "peerDependencies": {
72
- "@colijnit/corecomponents_v12": "^12.0.21"
73
- }
74
- }
1
+ {
2
+ "name": "@colijnit/sharedcomponents",
3
+ "version": "1.0.26",
4
+ "private": false,
5
+ "dependencies": {
6
+ "@colijnit/sharedapi": "^1.0.1",
7
+ "tslib": "^2.3.0"
8
+ },
9
+ "peerDependencies": {
10
+ "@angular/common": "^12.2.0",
11
+ "@angular/core": "^12.2.0",
12
+ "pdf-lib": "^1.17.1",
13
+ "pdfjs-dist": "^2.12.313",
14
+ "rxjs": "~7.4.0",
15
+ "signature_pad": "^4.0.2",
16
+ "zone.js": "~0.11.4"
17
+ },
18
+ "main": "bundles/colijnit-sharedcomponents.umd.js",
19
+ "module": "fesm2015/colijnit-sharedcomponents.js",
20
+ "es2015": "fesm2015/colijnit-sharedcomponents.js",
21
+ "esm2015": "esm2015/colijnit-sharedcomponents.js",
22
+ "fesm2015": "fesm2015/colijnit-sharedcomponents.js",
23
+ "typings": "colijnit-sharedcomponents.d.ts",
24
+ "metadata": "colijnit-sharedcomponents.metadata.json",
25
+ "sideEffects": false
26
+ }