@colijnit/sharedcomponents 1.0.54 → 1.0.56

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 (592) hide show
  1. package/.browserslistrc +16 -0
  2. package/.editorconfig +16 -0
  3. package/.vscode/extensions.json +4 -0
  4. package/.vscode/launch.json +20 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/README.md +11 -8
  7. package/Sharedcomponents.iml +11 -0
  8. package/angular.json +177 -0
  9. package/custom-login-bundle.webpack.config.js +3 -0
  10. package/karma.conf.js +44 -0
  11. package/move-assets.js +14 -0
  12. package/package.json +68 -31
  13. package/projects/sharedcomponents/.browserslistrc +16 -0
  14. package/projects/sharedcomponents/README.md +24 -0
  15. package/projects/sharedcomponents/karma.conf.js +44 -0
  16. package/projects/sharedcomponents/ng-package.json +17 -0
  17. package/projects/sharedcomponents/package.json +23 -0
  18. package/projects/sharedcomponents/src/lib/assets/dictionary/text.properties.ts +8 -0
  19. package/projects/sharedcomponents/src/lib/assets/icons/account.svg +1 -0
  20. package/projects/sharedcomponents/src/lib/assets/icons/angle_left_solid.svg +1 -0
  21. package/projects/sharedcomponents/src/lib/assets/icons/angle_right_solid.svg +1 -0
  22. package/projects/sharedcomponents/src/lib/assets/icons/arrow_fat_right.svg +1 -0
  23. package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_left.svg +8 -0
  24. package/projects/sharedcomponents/src/lib/assets/icons/arrow_point_right.svg +4 -0
  25. package/projects/sharedcomponents/src/lib/assets/icons/at_solid.svg +1 -0
  26. package/projects/sharedcomponents/src/lib/assets/icons/bring_forward_regular.svg +1 -0
  27. package/projects/sharedcomponents/src/lib/assets/icons/check_duotone.svg +1 -0
  28. package/projects/sharedcomponents/src/lib/assets/icons/check_round.svg +1 -0
  29. package/projects/sharedcomponents/src/lib/assets/icons/cross_skinny.svg +1 -0
  30. package/projects/sharedcomponents/src/lib/assets/icons/delete_left_regular.svg +1 -0
  31. package/projects/sharedcomponents/src/lib/assets/icons/delivery_truck.svg +12 -0
  32. package/projects/sharedcomponents/src/lib/assets/icons/email.svg +5 -0
  33. package/projects/sharedcomponents/src/lib/assets/icons/envelope_regular.svg +1 -0
  34. package/projects/sharedcomponents/src/lib/assets/icons/eye_regular.svg +1 -0
  35. package/projects/sharedcomponents/src/lib/assets/icons/file_export_regular.svg +1 -0
  36. package/projects/sharedcomponents/src/lib/assets/icons/file_export_solid.svg +1 -0
  37. package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_regular.svg +1 -0
  38. package/projects/sharedcomponents/src/lib/assets/icons/file_pdf_solid.svg +1 -0
  39. package/projects/sharedcomponents/src/lib/assets/icons/file_signature_regular.svg +1 -0
  40. package/projects/sharedcomponents/src/lib/assets/icons/house_blank_regular.svg +1 -0
  41. package/projects/sharedcomponents/src/lib/assets/icons/lock.svg +1 -0
  42. package/projects/sharedcomponents/src/lib/assets/icons/message_sms_regular.svg +1 -0
  43. package/projects/sharedcomponents/src/lib/assets/icons/message_sms_solid.svg +1 -0
  44. package/projects/sharedcomponents/src/lib/assets/icons/pdf.svg +15 -0
  45. package/projects/sharedcomponents/src/lib/assets/icons/print.svg +10 -0
  46. package/projects/sharedcomponents/src/lib/assets/icons/print_regular.svg +1 -0
  47. package/projects/sharedcomponents/src/lib/assets/icons/print_solid.svg +1 -0
  48. package/projects/sharedcomponents/src/lib/assets/icons/signature_field.svg +9 -0
  49. package/projects/sharedcomponents/src/lib/assets/icons/tag_regular.svg +1 -0
  50. package/projects/sharedcomponents/src/lib/assets/icons/x_solid.svg +1 -0
  51. package/projects/sharedcomponents/src/lib/assets/icons/xml.svg +1 -0
  52. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-base-view.component.ts +68 -0
  53. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-day-view.component.ts +35 -0
  54. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-event.component.ts +73 -0
  55. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-events.component.ts +53 -0
  56. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.ts +81 -0
  57. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-header.component.ts +275 -0
  58. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-cell.component.ts +38 -0
  59. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.ts +50 -0
  60. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-hour-view.component.ts +46 -0
  61. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-month-view.component.ts +65 -0
  62. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-select-event.component.ts +39 -0
  63. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-view.component.ts +41 -0
  64. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-select-view.component.ts +63 -0
  65. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/agenda-week-view.component.ts +50 -0
  66. package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_layout.scss +12 -12
  67. package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_material-definition.scss +2 -1
  68. package/projects/sharedcomponents/src/lib/components/date-planning/component/agenda/view-select.component.ts +43 -0
  69. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-months.component.ts +37 -0
  70. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-all-years.component.ts +52 -0
  71. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-header.component.ts +123 -0
  72. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar-view.component.ts +200 -0
  73. package/projects/sharedcomponents/src/lib/components/date-planning/component/calendar/calendar.component.ts +35 -0
  74. package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.component.ts +141 -0
  75. package/projects/sharedcomponents/src/lib/components/date-planning/date-planning.module.ts +61 -0
  76. package/projects/sharedcomponents/src/lib/components/date-planning/style/material.scss +7 -0
  77. package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
  78. package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
  79. package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +270 -0
  80. package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
  81. package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.component.ts +216 -0
  82. package/projects/sharedcomponents/src/lib/components/key-pad/key-pad.module.ts +20 -0
  83. package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.component.ts +98 -0
  84. package/projects/sharedcomponents/src/lib/components/layout-switcher/layout-switcher.module.ts +21 -0
  85. package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.component.ts +57 -0
  86. package/projects/sharedcomponents/src/lib/components/linear-gauge/co-linear-gauge.module.ts +17 -0
  87. package/projects/sharedcomponents/src/lib/components/login/components/login-base.component.ts +98 -0
  88. package/projects/sharedcomponents/src/lib/components/login/components/login-change-password.component.ts +194 -0
  89. package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-entry.component.ts +41 -0
  90. package/projects/sharedcomponents/src/lib/components/login/components/login-mfa-code-setup.component.ts +44 -0
  91. package/projects/sharedcomponents/src/lib/components/login/components/login-username-password.component.ts +167 -0
  92. package/projects/sharedcomponents/src/lib/components/login/localization/login-translation.ts +15 -0
  93. package/projects/sharedcomponents/src/lib/components/login/login.component.ts +137 -0
  94. package/projects/sharedcomponents/src/lib/components/login/login.module.ts +53 -0
  95. package/projects/sharedcomponents/src/lib/components/login/service/login-adapter.service.ts +58 -0
  96. package/projects/sharedcomponents/src/lib/components/login/service/login.service.ts +50 -0
  97. package/projects/sharedcomponents/src/lib/components/screen-config-generator/enums/field-type.enum.ts +9 -0
  98. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Config.ts +6 -0
  99. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Field.ts +8 -0
  100. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Header.ts +8 -0
  101. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Module.ts +6 -0
  102. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/Rubric.ts +10 -0
  103. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/ScreenConfig.ts +9 -0
  104. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubCat.ts +9 -0
  105. package/projects/sharedcomponents/src/lib/components/screen-config-generator/models/SubRubric.ts +8 -0
  106. package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.component.ts +539 -0
  107. package/projects/sharedcomponents/src/lib/components/screen-config-generator/screen-config-generator.module.ts +21 -0
  108. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.ts +91 -0
  109. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.ts +19 -0
  110. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.ts +84 -0
  111. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.ts +19 -0
  112. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.ts +63 -0
  113. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.ts +24 -0
  114. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.ts +38 -0
  115. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.ts +21 -0
  116. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +25 -0
  117. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +5 -0
  118. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +5 -0
  119. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.ts +60 -0
  120. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.ts +26 -0
  121. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.component.ts +42 -0
  122. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/signature-button.module.ts +19 -0
  123. package/projects/sharedcomponents/src/lib/components/send-method-dialog/components/signature-button/style/material.scss +4 -0
  124. package/projects/sharedcomponents/src/lib/components/send-method-dialog/model/email-address-viewmodel.ts +9 -0
  125. package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +325 -0
  126. package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +32 -0
  127. package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-params.interface.ts +13 -0
  128. package/projects/sharedcomponents/src/lib/components/send-method-dialog/service/send-method.service.ts +63 -0
  129. package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_layout.scss +1 -1
  130. package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/material.scss +1 -0
  131. package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.component.ts +243 -0
  132. package/projects/sharedcomponents/src/lib/components/simple-tags/simple-tags.module.ts +24 -0
  133. package/projects/sharedcomponents/src/lib/components/statusbar/statusbar-popup.component.ts +100 -0
  134. package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.component.ts +107 -0
  135. package/projects/sharedcomponents/src/lib/components/statusbar/statusbar.module.ts +25 -0
  136. package/projects/sharedcomponents/src/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.ts +45 -0
  137. package/projects/sharedcomponents/src/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.ts +45 -0
  138. package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-history/order-stock-history.component.ts +45 -0
  139. package/projects/sharedcomponents/src/lib/components/stock/components/order-stock-tab/order-stock-tab.component.ts +43 -0
  140. package/projects/sharedcomponents/src/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.ts +45 -0
  141. package/projects/sharedcomponents/src/lib/components/stock/components/order-tab/order-tab.component.ts +71 -0
  142. package/projects/sharedcomponents/src/lib/components/stock/components/stock-history/stock-history.component.ts +52 -0
  143. package/projects/sharedcomponents/src/lib/components/stock/components/stock-location/stock-location.component.ts +276 -0
  144. package/projects/sharedcomponents/src/lib/components/stock/components/stock-prognose/stock-prognose.component.ts +49 -0
  145. package/projects/sharedcomponents/src/lib/components/stock/components/stock-tab/stock-tab.component.ts +40 -0
  146. package/projects/sharedcomponents/src/lib/components/stock/localization/translation.ts +60 -0
  147. package/projects/sharedcomponents/src/lib/components/stock/stock-history-tabs/stock-history-tabs.component.ts +32 -0
  148. package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +56 -0
  149. package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +500 -0
  150. package/projects/sharedcomponents/src/lib/components/stock/stock-tabs/stock-tabs.component.ts +276 -0
  151. package/{lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts → projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts} +2 -2
  152. package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-change-amount.component.ts +77 -0
  153. package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +178 -0
  154. package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +228 -0
  155. package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +97 -0
  156. package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.component.ts +23 -0
  157. package/projects/sharedcomponents/src/lib/components/stock-statusbar/stock-statusbar.module.ts +17 -0
  158. package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.component.ts +106 -0
  159. package/projects/sharedcomponents/src/lib/components/tab-bar/tab-bar.module.ts +20 -0
  160. package/projects/sharedcomponents/src/lib/components/tab-bar/tab.interface.ts +5 -0
  161. package/projects/sharedcomponents/src/lib/components/tags/component/tag-join-label/tag-join-label.component.ts +61 -0
  162. package/projects/sharedcomponents/src/lib/components/tags/component/tag-label/tag-label.component.ts +47 -0
  163. package/projects/sharedcomponents/src/lib/components/tags/component/treeview/model/tree-view-node-item.ts +132 -0
  164. package/projects/sharedcomponents/src/lib/components/tags/component/treeview/treeview.component.ts +258 -0
  165. package/projects/sharedcomponents/src/lib/components/tags/tags.component.ts +192 -0
  166. package/projects/sharedcomponents/src/lib/components/tags/tags.module.ts +27 -0
  167. package/projects/sharedcomponents/src/lib/directives/click-outside.directive.ts +25 -0
  168. package/projects/sharedcomponents/src/lib/enum/calendar-view.enum.ts +8 -0
  169. package/projects/sharedcomponents/src/lib/enum/gauge-color.enum.ts +8 -0
  170. package/{lib/enum/icon.enum.d.ts → projects/sharedcomponents/src/lib/enum/icon.enum.ts} +3 -2
  171. package/projects/sharedcomponents/src/lib/enum/keyboard-code.enum.ts +30 -0
  172. package/projects/sharedcomponents/src/lib/enum/language-code.enum.ts +6 -0
  173. package/projects/sharedcomponents/src/lib/enum/login-component-extra-action-type.enum.ts +4 -0
  174. package/projects/sharedcomponents/src/lib/enum/login-component-page.type.enum.ts +6 -0
  175. package/projects/sharedcomponents/src/lib/enum/login-component-query-variables-name.enum.ts +5 -0
  176. package/{lib/enum/month.enum.d.ts → projects/sharedcomponents/src/lib/enum/month.enum.ts} +2 -1
  177. package/projects/sharedcomponents/src/lib/enum/tag-category.enum.ts +20 -0
  178. package/projects/sharedcomponents/src/lib/enum/thumb-three-way-state.ts +18 -0
  179. package/{lib/enum/time-period.enum.d.ts → projects/sharedcomponents/src/lib/enum/time-period.enum.ts} +2 -1
  180. package/projects/sharedcomponents/src/lib/localization/localization.module.ts +17 -0
  181. package/projects/sharedcomponents/src/lib/localization/localize.pipe.ts +21 -0
  182. package/projects/sharedcomponents/src/lib/localization/localize.service.ts +28 -0
  183. package/projects/sharedcomponents/src/lib/localization/translation.ts +2 -0
  184. package/projects/sharedcomponents/src/lib/model/agenda-event-per-day.model.ts +6 -0
  185. package/projects/sharedcomponents/src/lib/model/agenda-event.model.ts +19 -0
  186. package/projects/sharedcomponents/src/lib/model/agenda-null-objects.ts +11 -0
  187. package/projects/sharedcomponents/src/lib/model/constant/all-months.ts +17 -0
  188. package/projects/sharedcomponents/src/lib/model/date-range.ts +10 -0
  189. package/projects/sharedcomponents/src/lib/model/day.model.ts +9 -0
  190. package/projects/sharedcomponents/src/lib/model/icon-svg.ts +37 -0
  191. package/projects/sharedcomponents/src/lib/model/month.model.ts +11 -0
  192. package/projects/sharedcomponents/src/lib/model/send-method.ts +13 -0
  193. package/projects/sharedcomponents/src/lib/model/settings.ts +5 -0
  194. package/projects/sharedcomponents/src/lib/model/tag-tree-item.bo.ts +28 -0
  195. package/projects/sharedcomponents/src/lib/model/time-window.bo.ts +21 -0
  196. package/projects/sharedcomponents/src/lib/model/tree-object.ts +13 -0
  197. package/projects/sharedcomponents/src/lib/model/tree-view-default.model.ts +107 -0
  198. package/projects/sharedcomponents/src/lib/model/tree-view-node-default.model.ts +196 -0
  199. package/projects/sharedcomponents/src/lib/model/tree-view-node-item-options.model.ts +12 -0
  200. package/projects/sharedcomponents/src/lib/model/tree-view-node.model.ts +150 -0
  201. package/projects/sharedcomponents/src/lib/model/tree-view.model.ts +57 -0
  202. package/projects/sharedcomponents/src/lib/model/week.model.ts +5 -0
  203. package/projects/sharedcomponents/src/lib/model/weekday.model.ts +17 -0
  204. package/projects/sharedcomponents/src/lib/pipe/array-number.pipe.ts +14 -0
  205. package/projects/sharedcomponents/src/lib/pipe/master-pipes.ts +7 -0
  206. package/projects/sharedcomponents/src/lib/pipe/ucfirst.pipe.ts +14 -0
  207. package/projects/sharedcomponents/src/lib/service/dictionary.service.ts +86 -0
  208. package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
  209. package/projects/sharedcomponents/src/lib/service/options.service.ts +43 -0
  210. package/projects/sharedcomponents/src/lib/service/shared-connector.service.ts +401 -0
  211. package/projects/sharedcomponents/src/lib/service/shared-initializer.service.ts +29 -0
  212. package/projects/sharedcomponents/src/lib/service/shared.service.ts +49 -0
  213. package/projects/sharedcomponents/src/lib/service/stock.service.ts +124 -0
  214. package/projects/sharedcomponents/src/lib/utils/array-utils.ts +225 -0
  215. package/projects/sharedcomponents/src/lib/utils/calendar.utils.ts +75 -0
  216. package/projects/sharedcomponents/src/lib/utils/check-precision-and-scale-result.ts +5 -0
  217. package/projects/sharedcomponents/src/lib/utils/check-within-stepped-bounds-result.ts +8 -0
  218. package/projects/sharedcomponents/src/lib/utils/css-utils.ts +275 -0
  219. package/projects/sharedcomponents/src/lib/utils/date-utils.ts +302 -0
  220. package/projects/sharedcomponents/src/lib/utils/function/not-nill.function.ts +4 -0
  221. package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
  222. package/projects/sharedcomponents/src/lib/utils/map-utils.ts +44 -0
  223. package/projects/sharedcomponents/src/lib/utils/number-utils.ts +439 -0
  224. package/projects/sharedcomponents/src/lib/utils/object-utils.ts +310 -0
  225. package/projects/sharedcomponents/src/lib/utils/string-utils.ts +67 -0
  226. package/projects/sharedcomponents/src/lib/utils/tree-utils.ts +63 -0
  227. package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +7 -0
  228. package/projects/sharedcomponents/src/test.ts +27 -0
  229. package/projects/sharedcomponents/tsconfig.lib.json +18 -0
  230. package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
  231. package/projects/sharedcomponents/tsconfig.spec.json +17 -0
  232. package/script/create-bundle-version.js +19 -0
  233. package/script/merge-icons.js +39 -0
  234. package/src/app/app.component.scss +31 -0
  235. package/src/app/app.component.spec.ts +31 -0
  236. package/src/app/app.component.ts +454 -0
  237. package/src/app/app.module.ts +69 -0
  238. package/src/app/bundle/index.html +14 -0
  239. package/src/app/bundle/login/login-bundle.component.scss +6 -0
  240. package/src/app/bundle/login/login-bundle.component.ts +111 -0
  241. package/src/app/bundle/login/login-bundle.module.ts +30 -0
  242. package/src/app/bundle/main-login-bundle.ts +11 -0
  243. package/src/app/bundle/polyfills.ts +63 -0
  244. package/src/app/test-data.service.ts +60 -0
  245. package/src/assets/.gitkeep +0 -0
  246. package/src/environments/environment.bundle.prod.ts +3 -0
  247. package/src/environments/environment.prod.ts +3 -0
  248. package/src/environments/environment.ts +16 -0
  249. package/src/favicon.ico +0 -0
  250. package/src/index.html +13 -0
  251. package/src/main.ts +12 -0
  252. package/src/polyfills.ts +53 -0
  253. package/src/styles.scss +54 -0
  254. package/src/test.ts +26 -0
  255. package/tsconfig.app.json +15 -0
  256. package/tsconfig.bundle.json +38 -0
  257. package/tsconfig.json +64 -0
  258. package/tsconfig.spec.json +18 -0
  259. package/webpack.login.bundle.config.js +32 -0
  260. package/bundles/colijnit-sharedcomponents.umd.js +0 -6630
  261. package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
  262. package/colijnit-sharedcomponents.d.ts +0 -72
  263. package/colijnit-sharedcomponents.metadata.json +0 -1
  264. package/esm2015/colijnit-sharedcomponents.js +0 -73
  265. package/esm2015/lib/assets/dictionary/text.properties.js +0 -11
  266. package/esm2015/lib/components/date-planning/component/agenda/agenda-base-view.component.js +0 -61
  267. package/esm2015/lib/components/date-planning/component/agenda/agenda-day-view.component.js +0 -32
  268. package/esm2015/lib/components/date-planning/component/agenda/agenda-event.component.js +0 -54
  269. package/esm2015/lib/components/date-planning/component/agenda/agenda-events.component.js +0 -43
  270. package/esm2015/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.js +0 -68
  271. package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +0 -232
  272. package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-cell.component.js +0 -36
  273. package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.js +0 -50
  274. package/esm2015/lib/components/date-planning/component/agenda/agenda-hour-view.component.js +0 -46
  275. package/esm2015/lib/components/date-planning/component/agenda/agenda-month-view.component.js +0 -61
  276. package/esm2015/lib/components/date-planning/component/agenda/agenda-select-event.component.js +0 -39
  277. package/esm2015/lib/components/date-planning/component/agenda/agenda-view.component.js +0 -35
  278. package/esm2015/lib/components/date-planning/component/agenda/agenda-week-select-view.component.js +0 -64
  279. package/esm2015/lib/components/date-planning/component/agenda/agenda-week-view.component.js +0 -48
  280. package/esm2015/lib/components/date-planning/component/agenda/view-select.component.js +0 -42
  281. package/esm2015/lib/components/date-planning/component/calendar/calendar-all-months.component.js +0 -34
  282. package/esm2015/lib/components/date-planning/component/calendar/calendar-all-years.component.js +0 -48
  283. package/esm2015/lib/components/date-planning/component/calendar/calendar-header.component.js +0 -107
  284. package/esm2015/lib/components/date-planning/component/calendar/calendar-view.component.js +0 -178
  285. package/esm2015/lib/components/date-planning/component/calendar/calendar.component.js +0 -34
  286. package/esm2015/lib/components/date-planning/date-planning.component.js +0 -108
  287. package/esm2015/lib/components/date-planning/date-planning.module.js +0 -63
  288. package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
  289. package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
  290. package/esm2015/lib/components/docsign/docsign.component.js +0 -242
  291. package/esm2015/lib/components/docsign/docsign.module.js +0 -23
  292. package/esm2015/lib/components/key-pad/key-pad.component.js +0 -200
  293. package/esm2015/lib/components/key-pad/key-pad.module.js +0 -22
  294. package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +0 -74
  295. package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +0 -21
  296. package/esm2015/lib/components/linear-gauge/co-linear-gauge.component.js +0 -59
  297. package/esm2015/lib/components/linear-gauge/co-linear-gauge.module.js +0 -19
  298. package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.js +0 -79
  299. package/esm2015/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.js +0 -21
  300. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +0 -85
  301. package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.js +0 -21
  302. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +0 -64
  303. package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.js +0 -26
  304. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +0 -59
  305. package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.js +0 -28
  306. package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.component.js +0 -38
  307. package/esm2015/lib/components/send-method-dialog/components/signature-button/signature-button.module.js +0 -21
  308. package/esm2015/lib/components/send-method-dialog/model/email-address-viewmodel.js +0 -7
  309. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +0 -243
  310. package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +0 -33
  311. package/esm2015/lib/components/send-method-dialog/send-method-params.interface.js +0 -2
  312. package/esm2015/lib/components/send-method-dialog/service/send-method.service.js +0 -59
  313. package/esm2015/lib/components/simple-tags/simple-tags.component.js +0 -229
  314. package/esm2015/lib/components/simple-tags/simple-tags.module.js +0 -26
  315. package/esm2015/lib/components/statusbar/statusbar-popup.component.js +0 -97
  316. package/esm2015/lib/components/statusbar/statusbar.component.js +0 -81
  317. package/esm2015/lib/components/statusbar/statusbar.module.js +0 -27
  318. package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +0 -46
  319. package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +0 -46
  320. package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +0 -46
  321. package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +0 -46
  322. package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +0 -46
  323. package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +0 -65
  324. package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +0 -51
  325. package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +0 -236
  326. package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +0 -51
  327. package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +0 -40
  328. package/esm2015/lib/components/stock/localization/translation.js +0 -63
  329. package/esm2015/lib/components/stock/stock-history-tabs/stock-history-tabs.component.js +0 -33
  330. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -48
  331. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -457
  332. package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +0 -220
  333. package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +0 -2
  334. package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +0 -72
  335. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -147
  336. package/esm2015/lib/components/stock/stock.component.js +0 -186
  337. package/esm2015/lib/components/stock/stock.module.js +0 -80
  338. package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +0 -23
  339. package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +0 -19
  340. package/esm2015/lib/components/tab-bar/tab-bar.component.js +0 -85
  341. package/esm2015/lib/components/tab-bar/tab-bar.module.js +0 -21
  342. package/esm2015/lib/components/tab-bar/tab.interface.js +0 -2
  343. package/esm2015/lib/enum/calendar-view.enum.js +0 -8
  344. package/esm2015/lib/enum/gauge-color.enum.js +0 -10
  345. package/esm2015/lib/enum/icon.enum.js +0 -38
  346. package/esm2015/lib/enum/keyboard-code.enum.js +0 -32
  347. package/esm2015/lib/enum/language-code.enum.js +0 -8
  348. package/esm2015/lib/enum/month.enum.js +0 -17
  349. package/esm2015/lib/enum/thumb-three-way-state.js +0 -19
  350. package/esm2015/lib/enum/time-period.enum.js +0 -11
  351. package/esm2015/lib/localization/localization.module.js +0 -19
  352. package/esm2015/lib/localization/localize.pipe.js +0 -26
  353. package/esm2015/lib/localization/localize.service.js +0 -30
  354. package/esm2015/lib/localization/translation.js +0 -3
  355. package/esm2015/lib/model/agenda-event-per-day.model.js +0 -6
  356. package/esm2015/lib/model/agenda-event.model.js +0 -8
  357. package/esm2015/lib/model/agenda-null-objects.js +0 -11
  358. package/esm2015/lib/model/constant/all-months.js +0 -17
  359. package/esm2015/lib/model/date-range.js +0 -5
  360. package/esm2015/lib/model/day.model.js +0 -7
  361. package/esm2015/lib/model/icon-svg.js +0 -37
  362. package/esm2015/lib/model/month.model.js +0 -11
  363. package/esm2015/lib/model/send-method.js +0 -8
  364. package/esm2015/lib/model/settings.js +0 -4
  365. package/esm2015/lib/model/time-window.bo.js +0 -26
  366. package/esm2015/lib/model/week.model.js +0 -6
  367. package/esm2015/lib/model/weekday.model.js +0 -10
  368. package/esm2015/lib/pipe/array-number.pipe.js +0 -15
  369. package/esm2015/lib/pipe/master-pipes.js +0 -7
  370. package/esm2015/lib/pipe/ucfirst.pipe.js +0 -16
  371. package/esm2015/lib/service/dictionary.service.js +0 -76
  372. package/esm2015/lib/service/icon-cache.service.js +0 -51
  373. package/esm2015/lib/service/options.service.js +0 -48
  374. package/esm2015/lib/service/shared-connector.service.js +0 -424
  375. package/esm2015/lib/service/shared.service.js +0 -60
  376. package/esm2015/lib/service/stock.service.js +0 -110
  377. package/esm2015/lib/utils/calendar.utils.js +0 -69
  378. package/esm2015/lib/utils/date-utils.js +0 -264
  379. package/esm2015/lib/utils/function/not-nill.function.js +0 -5
  380. package/esm2015/lib/utils/map-utils.js +0 -41
  381. package/esm2015/lib/utils/string-utils.js +0 -64
  382. package/esm2015/public-api.js +0 -24
  383. package/fesm2015/colijnit-sharedcomponents.js +0 -6884
  384. package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
  385. package/lib/assets/dictionary/text.properties.d.ts +0 -3
  386. package/lib/components/date-planning/component/agenda/agenda-base-view.component.d.ts +0 -21
  387. package/lib/components/date-planning/component/agenda/agenda-day-view.component.d.ts +0 -6
  388. package/lib/components/date-planning/component/agenda/agenda-event.component.d.ts +0 -17
  389. package/lib/components/date-planning/component/agenda/agenda-events.component.d.ts +0 -12
  390. package/lib/components/date-planning/component/agenda/agenda-half-hour-cell.component.d.ts +0 -18
  391. package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +0 -47
  392. package/lib/components/date-planning/component/agenda/agenda-hour-cell.component.d.ts +0 -9
  393. package/lib/components/date-planning/component/agenda/agenda-hour-view-labels.component.d.ts +0 -8
  394. package/lib/components/date-planning/component/agenda/agenda-hour-view.component.d.ts +0 -7
  395. package/lib/components/date-planning/component/agenda/agenda-month-view.component.d.ts +0 -10
  396. package/lib/components/date-planning/component/agenda/agenda-select-event.component.d.ts +0 -12
  397. package/lib/components/date-planning/component/agenda/agenda-view.component.d.ts +0 -11
  398. package/lib/components/date-planning/component/agenda/agenda-week-select-view.component.d.ts +0 -10
  399. package/lib/components/date-planning/component/agenda/agenda-week-view.component.d.ts +0 -8
  400. package/lib/components/date-planning/component/agenda/view-select.component.d.ts +0 -11
  401. package/lib/components/date-planning/component/calendar/calendar-all-months.component.d.ts +0 -9
  402. package/lib/components/date-planning/component/calendar/calendar-all-years.component.d.ts +0 -9
  403. package/lib/components/date-planning/component/calendar/calendar-header.component.d.ts +0 -23
  404. package/lib/components/date-planning/component/calendar/calendar-view.component.d.ts +0 -31
  405. package/lib/components/date-planning/component/calendar/calendar.component.d.ts +0 -10
  406. package/lib/components/date-planning/date-planning.component.d.ts +0 -26
  407. package/lib/components/date-planning/date-planning.module.d.ts +0 -2
  408. package/lib/components/date-planning/style/material.scss +0 -5
  409. package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
  410. package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
  411. package/lib/components/docsign/docsign.component.d.ts +0 -94
  412. package/lib/components/docsign/docsign.module.d.ts +0 -2
  413. package/lib/components/key-pad/key-pad.component.d.ts +0 -38
  414. package/lib/components/key-pad/key-pad.module.d.ts +0 -2
  415. package/lib/components/layout-switcher/layout-switcher.component.d.ts +0 -16
  416. package/lib/components/layout-switcher/layout-switcher.module.d.ts +0 -2
  417. package/lib/components/linear-gauge/co-linear-gauge.component.d.ts +0 -11
  418. package/lib/components/linear-gauge/co-linear-gauge.module.d.ts +0 -2
  419. package/lib/components/send-method-dialog/components/layout-selection/layout-selection.component.d.ts +0 -19
  420. package/lib/components/send-method-dialog/components/layout-selection/layout-selection.module.d.ts +0 -2
  421. package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +0 -19
  422. package/lib/components/send-method-dialog/components/printer-selection/printer-selection.module.d.ts +0 -2
  423. package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +0 -14
  424. package/lib/components/send-method-dialog/components/send-method-email/send-method-email.module.d.ts +0 -2
  425. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +0 -12
  426. package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.module.d.ts +0 -2
  427. package/lib/components/send-method-dialog/components/signature-button/signature-button.component.d.ts +0 -12
  428. package/lib/components/send-method-dialog/components/signature-button/signature-button.module.d.ts +0 -2
  429. package/lib/components/send-method-dialog/model/email-address-viewmodel.d.ts +0 -5
  430. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +0 -68
  431. package/lib/components/send-method-dialog/send-method-dialog.module.d.ts +0 -2
  432. package/lib/components/send-method-dialog/send-method-params.interface.d.ts +0 -13
  433. package/lib/components/send-method-dialog/service/send-method.service.d.ts +0 -23
  434. package/lib/components/simple-tags/simple-tags.component.d.ts +0 -31
  435. package/lib/components/simple-tags/simple-tags.module.d.ts +0 -2
  436. package/lib/components/statusbar/statusbar-popup.component.d.ts +0 -21
  437. package/lib/components/statusbar/statusbar.component.d.ts +0 -26
  438. package/lib/components/statusbar/statusbar.module.d.ts +0 -2
  439. package/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.d.ts +0 -9
  440. package/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.d.ts +0 -9
  441. package/lib/components/stock/components/order-stock-history/order-stock-history.component.d.ts +0 -9
  442. package/lib/components/stock/components/order-stock-tab/order-stock-tab.component.d.ts +0 -11
  443. package/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.d.ts +0 -9
  444. package/lib/components/stock/components/order-tab/order-tab.component.d.ts +0 -20
  445. package/lib/components/stock/components/stock-history/stock-history.component.d.ts +0 -13
  446. package/lib/components/stock/components/stock-location/stock-location.component.d.ts +0 -50
  447. package/lib/components/stock/components/stock-prognose/stock-prognose.component.d.ts +0 -11
  448. package/lib/components/stock/components/stock-tab/stock-tab.component.d.ts +0 -9
  449. package/lib/components/stock/localization/translation.d.ts +0 -60
  450. package/lib/components/stock/stock-history-tabs/stock-history-tabs.component.d.ts +0 -7
  451. package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -8
  452. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -75
  453. package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +0 -54
  454. package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +0 -18
  455. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -42
  456. package/lib/components/stock/stock.component.d.ts +0 -57
  457. package/lib/components/stock/stock.module.d.ts +0 -2
  458. package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +0 -4
  459. package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +0 -2
  460. package/lib/components/tab-bar/tab-bar.component.d.ts +0 -21
  461. package/lib/components/tab-bar/tab-bar.module.d.ts +0 -2
  462. package/lib/components/tab-bar/tab.interface.d.ts +0 -5
  463. package/lib/enum/calendar-view.enum.d.ts +0 -6
  464. package/lib/enum/gauge-color.enum.d.ts +0 -8
  465. package/lib/enum/keyboard-code.enum.d.ts +0 -30
  466. package/lib/enum/language-code.enum.d.ts +0 -6
  467. package/lib/enum/thumb-three-way-state.d.ts +0 -6
  468. package/lib/localization/localization.module.d.ts +0 -2
  469. package/lib/localization/localize.pipe.d.ts +0 -7
  470. package/lib/localization/localize.service.d.ts +0 -7
  471. package/lib/localization/translation.d.ts +0 -2
  472. package/lib/model/agenda-event-per-day.model.d.ts +0 -5
  473. package/lib/model/agenda-event.model.d.ts +0 -16
  474. package/lib/model/agenda-null-objects.d.ts +0 -10
  475. package/lib/model/constant/all-months.d.ts +0 -2
  476. package/lib/model/date-range.d.ts +0 -7
  477. package/lib/model/day.model.d.ts +0 -8
  478. package/lib/model/icon-svg.d.ts +0 -4
  479. package/lib/model/month.model.d.ts +0 -5
  480. package/lib/model/send-method.d.ts +0 -7
  481. package/lib/model/settings.d.ts +0 -3
  482. package/lib/model/time-window.bo.d.ts +0 -13
  483. package/lib/model/week.model.d.ts +0 -4
  484. package/lib/model/weekday.model.d.ts +0 -16
  485. package/lib/pipe/array-number.pipe.d.ts +0 -4
  486. package/lib/pipe/master-pipes.d.ts +0 -1
  487. package/lib/pipe/ucfirst.pipe.d.ts +0 -4
  488. package/lib/service/dictionary.service.d.ts +0 -21
  489. package/lib/service/icon-cache.service.d.ts +0 -18
  490. package/lib/service/options.service.d.ts +0 -13
  491. package/lib/service/shared-connector.service.d.ts +0 -53
  492. package/lib/service/shared.service.d.ts +0 -18
  493. package/lib/service/stock.service.d.ts +0 -41
  494. package/lib/utils/calendar.utils.d.ts +0 -10
  495. package/lib/utils/date-utils.d.ts +0 -44
  496. package/lib/utils/function/not-nill.function.d.ts +0 -1
  497. package/lib/utils/map-utils.d.ts +0 -16
  498. package/lib/utils/string-utils.d.ts +0 -22
  499. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/_theme.scss +0 -0
  500. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/agenda/style/material.scss +0 -0
  501. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_layout.scss +0 -0
  502. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_material-definition.scss +0 -0
  503. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/_theme.scss +0 -0
  504. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/component/calendar/style/material.scss +0 -0
  505. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_layout.scss +0 -0
  506. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_material-definition.scss +0 -0
  507. /package/{lib → projects/sharedcomponents/src/lib}/components/date-planning/style/_theme.scss +0 -0
  508. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
  509. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
  510. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
  511. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
  512. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
  513. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
  514. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
  515. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
  516. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
  517. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
  518. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
  519. /package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
  520. /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_layout.scss +0 -0
  521. /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_material-definition.scss +0 -0
  522. /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/_theme.scss +0 -0
  523. /package/{lib → projects/sharedcomponents/src/lib}/components/key-pad/style/material.scss +0 -0
  524. /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_layout.scss +0 -0
  525. /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_material-definition.scss +0 -0
  526. /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/_theme.scss +0 -0
  527. /package/{lib → projects/sharedcomponents/src/lib}/components/layout-switcher/style/material.scss +0 -0
  528. /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_layout.scss +0 -0
  529. /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_material-definition.scss +0 -0
  530. /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/_theme.scss +0 -0
  531. /package/{lib → projects/sharedcomponents/src/lib}/components/linear-gauge/style/material.scss +0 -0
  532. /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_layout.scss +0 -0
  533. /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_material-definition.scss +0 -0
  534. /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/_theme.scss +0 -0
  535. /package/{lib → projects/sharedcomponents/src/lib}/components/login/style/material.scss +0 -0
  536. /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_layout.scss +0 -0
  537. /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_material-definition.scss +0 -0
  538. /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/_theme.scss +0 -0
  539. /package/{lib → projects/sharedcomponents/src/lib}/components/screen-config-generator/style/material.scss +0 -0
  540. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_layout.scss +0 -0
  541. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_material-definition.scss +0 -0
  542. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/_theme.scss +0 -0
  543. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/layout-selection/style/material.scss +0 -0
  544. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_layout.scss +0 -0
  545. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_material-definition.scss +0 -0
  546. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/_theme.scss +0 -0
  547. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/printer-selection/style/material.scss +0 -0
  548. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_layout.scss +0 -0
  549. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_material-definition.scss +0 -0
  550. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/_theme.scss +0 -0
  551. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-email/style/material.scss +0 -0
  552. /package/{lib/components/send-method-dialog/components/send-method-printer → projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-pdf}/style/material.scss +0 -0
  553. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_layout.scss +0 -0
  554. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_material-definition.scss +0 -0
  555. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/send-method-printer/style/_theme.scss +0 -0
  556. /package/{lib/components/send-method-dialog/components/signature-button → projects/sharedcomponents/src/lib/components/send-method-dialog/components/send-method-printer}/style/material.scss +0 -0
  557. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_layout.scss +0 -0
  558. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_material-definition.scss +0 -0
  559. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/components/signature-button/style/_theme.scss +0 -0
  560. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_material-definition.scss +0 -0
  561. /package/{lib → projects/sharedcomponents/src/lib}/components/send-method-dialog/style/_theme.scss +0 -0
  562. /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_layout.scss +0 -0
  563. /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_material-definition.scss +0 -0
  564. /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/_theme.scss +0 -0
  565. /package/{lib → projects/sharedcomponents/src/lib}/components/simple-tags/style/material.scss +0 -0
  566. /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_layout.scss +0 -0
  567. /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_material-definition.scss +0 -0
  568. /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/_theme.scss +0 -0
  569. /package/{lib → projects/sharedcomponents/src/lib}/components/statusbar/style/material.scss +0 -0
  570. /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_layout.scss +0 -0
  571. /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_material-definition.scss +0 -0
  572. /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
  573. /package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/material.scss +0 -0
  574. /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_layout.scss +0 -0
  575. /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_material-definition.scss +0 -0
  576. /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/_theme.scss +0 -0
  577. /package/{lib → projects/sharedcomponents/src/lib}/components/stock-statusbar/style/material.scss +0 -0
  578. /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_layout.scss +0 -0
  579. /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_material-definition.scss +0 -0
  580. /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/_theme.scss +0 -0
  581. /package/{lib → projects/sharedcomponents/src/lib}/components/tab-bar/style/material.scss +0 -0
  582. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_layout.scss +0 -0
  583. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_material-definition.scss +0 -0
  584. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/_theme.scss +0 -0
  585. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/style/material.scss +0 -0
  586. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_layout.scss +0 -0
  587. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_material-definition.scss +0 -0
  588. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/_theme.scss +0 -0
  589. /package/{lib → projects/sharedcomponents/src/lib}/components/tags/component/tag-join-label/style/material.scss +0 -0
  590. /package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
  591. /package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
  592. /package/{lib → projects/sharedcomponents/src/lib}/style/sharedcomponents-globals.scss +0 -0
@@ -0,0 +1,196 @@
1
+ import {TreeViewNodeModel} from "./tree-view-node.model";
2
+ import {TreeViewModel} from "./tree-view.model";
3
+ import {ArrayUtils} from "../utils/array-utils";
4
+ import {TreeViewNodeItem} from "../components/tags/component/treeview/model/tree-view-node-item";
5
+
6
+ export class TreeViewNode implements TreeViewNodeModel {
7
+
8
+ public title: string;
9
+
10
+ private tree: TreeViewModel;
11
+
12
+ private id: number;
13
+ private level: number;
14
+ private children: TreeViewNodeModel[];
15
+ private expanded: boolean;
16
+ private filtered: boolean = true;
17
+ private showRoute: string;
18
+ private editRoute: string;
19
+
20
+ public constructor() {
21
+ }
22
+
23
+ public getId(): number {
24
+ return this.id;
25
+ }
26
+
27
+ public setId(value: number): TreeViewNodeModel {
28
+ this.id = value;
29
+ return this;
30
+ }
31
+
32
+ public getChildren(): TreeViewNodeModel[] {
33
+ return this.children;
34
+ }
35
+
36
+ public hasChildren(): boolean {
37
+ return ArrayUtils.IsArrayWithElements(this.children);
38
+ }
39
+
40
+ public setChildren(children: TreeViewNodeModel[]): TreeViewNodeModel {
41
+ this.children = children;
42
+ return this;
43
+ }
44
+
45
+ public containsChildWithGivenData(childData: any): boolean {
46
+ return this.children && !!(this.children as TreeViewNodeItem[]).find(child => child.data === childData);
47
+ }
48
+
49
+ public getSize(): number {
50
+ if (!this.filtered) {
51
+ return 0;
52
+ }
53
+ let c: number = 0;
54
+ this.children.forEach(child => {
55
+ c = c + child.getSize();
56
+ });
57
+ return c + 1;
58
+ }
59
+
60
+ public getLevel(): number {
61
+ return this.level;
62
+ }
63
+
64
+ public setLevel(level: number): TreeViewNodeModel {
65
+ this.level = level;
66
+ return this;
67
+ }
68
+
69
+ public isExpanded(): boolean {
70
+ return this.expanded;
71
+ }
72
+
73
+ public setExpanded(value: boolean): TreeViewNodeModel {
74
+ this.expanded = value;
75
+ return this;
76
+ }
77
+
78
+ public isFiltered(): boolean {
79
+ return this.filtered;
80
+ }
81
+
82
+ public setFiltered(value: boolean): TreeViewNodeModel {
83
+ this.filtered = value;
84
+ return this;
85
+ }
86
+
87
+ public getShowRoute(): string {
88
+ return this.showRoute;
89
+ }
90
+
91
+ public setShowRoute(value: string): TreeViewNodeModel {
92
+ this.showRoute = value;
93
+ return this;
94
+ }
95
+
96
+ public getEditRoute(): string {
97
+ return this.editRoute;
98
+ }
99
+
100
+ public setEditRoute(value: string): TreeViewNodeModel {
101
+ this.editRoute = value;
102
+ return this;
103
+ }
104
+
105
+ public toggle(): TreeViewNodeModel {
106
+ this.expanded = !this.expanded;
107
+ return this;
108
+ }
109
+
110
+ public expand(value: boolean): TreeViewNodeModel {
111
+ this.expanded = value;
112
+ this.children.forEach(child => child.expand(value));
113
+ return this;
114
+ }
115
+
116
+ public filter(term: string): TreeViewNodeModel {
117
+ this.filterImpl(term, false, false);
118
+ return this;
119
+ }
120
+
121
+ protected filterImpl(term: string, force: boolean = false, value: boolean): void {
122
+
123
+ // forcing a value for the node and all the children recoursively.
124
+ if (force) {
125
+ this.filtered = value;
126
+ this.children.forEach((child: TreeViewNode) => {
127
+ child.filterImpl(term, force, value);
128
+ });
129
+ return;
130
+ }
131
+
132
+ // looking for a proof.
133
+ this.filtered = this.filterCondition(term);
134
+
135
+ // matching: keeping the node and all his children.
136
+ if (this.filtered) {
137
+ this.children.forEach((child: TreeViewNode) => {
138
+ child.filterImpl(term, true, true);
139
+ });
140
+ return;
141
+ }
142
+
143
+ // not matching: keeping the node if at least one children is matching.
144
+ this.children.forEach((child: TreeViewNode) => {
145
+ child.filterImpl(term, false, false);
146
+ if (child.filtered) {
147
+ this.filtered = true;
148
+ return;
149
+ }
150
+ });
151
+ }
152
+
153
+ protected filterCondition(term: string): boolean {
154
+ return this.title.toLowerCase().indexOf(term) !== -1;
155
+ }
156
+
157
+ public getTree(): TreeViewModel {
158
+ return this.tree;
159
+ }
160
+
161
+ public setTree(tree: TreeViewModel): TreeViewNodeModel {
162
+ this.tree = tree;
163
+ return this;
164
+ }
165
+
166
+ public isFirst(): boolean {
167
+ if (this.tree) {
168
+ return <TreeViewNodeModel>this === this.tree.getFirst();
169
+ } else {
170
+ return false;
171
+ }
172
+ }
173
+
174
+ public isLast(): boolean {
175
+ if (this.tree) {
176
+ return <TreeViewNodeModel>this === this.tree.getLast();
177
+ } else {
178
+ return false;
179
+ }
180
+ }
181
+
182
+ public styles(): any {
183
+ return {
184
+ "padding-left": this.getLevel() * 2 + "em"
185
+ };
186
+ }
187
+
188
+ public classes(focusId: number): any {
189
+ return {
190
+ "first-item": this.isFirst(),
191
+ "last-item": this.isLast(),
192
+ "middle-item": !this.isFirst() && !this.isLast(),
193
+ "focus-item": focusId === this.getId()
194
+ };
195
+ }
196
+ }
@@ -0,0 +1,12 @@
1
+ import {Icon} from "../enum/icon.enum";
2
+
3
+ export interface TreeViewNodeItemOptions {
4
+ idField: string;
5
+ parentIdField: string;
6
+ descriptionField: string;
7
+ colorField: string;
8
+ imgField: string;
9
+ iconField: string;
10
+ leafIcon: Icon;
11
+ leafConditionField: string;
12
+ }
@@ -0,0 +1,150 @@
1
+ import {TreeViewModel} from "./tree-view.model";
2
+
3
+ export interface TreeViewNodeModel {
4
+
5
+ /**
6
+ * Identifier of the node.
7
+ * @returns {number}
8
+ */
9
+ getId(): any;
10
+
11
+ /**
12
+ * Set the identifier of the node.
13
+ * @param value
14
+ * @returns {TreeViewNodeModel}
15
+ */
16
+ setId(value: any): TreeViewNodeModel;
17
+
18
+ /**
19
+ * Children of the node.
20
+ * @returns {TreeViewNode[]}
21
+ */
22
+ getChildren(): TreeViewNodeModel[];
23
+
24
+ /**
25
+ * Set the children of the node.
26
+ * @returns {TreeViewNode[]}
27
+ */
28
+ setChildren(children: TreeViewNodeModel[]): TreeViewNodeModel;
29
+
30
+ /**
31
+ * Size of the tree with root this.
32
+ * @returns {number}
33
+ */
34
+ getSize(): number;
35
+
36
+ /**
37
+ * The hierarchical level.
38
+ * @returns {number}
39
+ */
40
+ getLevel(): number;
41
+
42
+ /**
43
+ * Set the hierarchical level.
44
+ * @param {number} level
45
+ * @returns {TreeViewNodeModel}
46
+ */
47
+ setLevel(level: number): TreeViewNodeModel;
48
+
49
+ /**
50
+ * If the node is currently expanded.
51
+ * @returns {boolean}
52
+ */
53
+ isExpanded(): boolean;
54
+
55
+ /**
56
+ * Set the expanded value of the node.
57
+ * @param {boolean} value
58
+ * @returns {TreeViewNodeModel}
59
+ */
60
+ setExpanded(value: boolean): TreeViewNodeModel;
61
+
62
+ /**
63
+ * If the node is currently filtered.
64
+ * @returns {boolean}
65
+ */
66
+ isFiltered(): boolean;
67
+
68
+ /**
69
+ * Set the filtered value of the node.
70
+ * @param {boolean} value
71
+ * @returns {TreeViewNodeModel}
72
+ */
73
+ setFiltered(value: boolean): TreeViewNodeModel;
74
+
75
+ /**
76
+ * Show breadCrumbs.
77
+ * @returns {string}
78
+ */
79
+ getShowRoute(): string;
80
+
81
+ /**
82
+ * Set the show breadCrumbs.
83
+ * @returns {string}
84
+ */
85
+ setShowRoute(value: string): TreeViewNodeModel;
86
+
87
+ /**
88
+ * Edit breadCrumbs.
89
+ * @returns {string}
90
+ */
91
+ getEditRoute(): string;
92
+
93
+ /**
94
+ * Set the edit breadCrumbs.
95
+ * @returns {string}
96
+ */
97
+ setEditRoute(value: string): TreeViewNodeModel;
98
+
99
+ /**
100
+ * Toggle expanded.
101
+ */
102
+ toggle(): TreeViewNodeModel;
103
+
104
+ /**
105
+ * Set the expand value for the tree with root this.
106
+ * @param value
107
+ */
108
+ expand(value: boolean): TreeViewNodeModel;
109
+
110
+ /**
111
+ * Set the value of the property filtered for each node of the tree with root this.
112
+ * @param term
113
+ */
114
+ filter(term: string): TreeViewNodeModel;
115
+
116
+ /**
117
+ * The tree which the node belong to.
118
+ * @returns {TreeViewModel}
119
+ */
120
+ getTree(): TreeViewModel;
121
+
122
+ /**
123
+ * Set the tree which the node belong to.
124
+ * @returns {TreeViewModel}
125
+ */
126
+ setTree(tree: TreeViewModel): TreeViewNodeModel;
127
+
128
+ /**
129
+ * First rendered node.
130
+ * @returns {boolean}
131
+ */
132
+ isFirst(): boolean;
133
+
134
+ /**
135
+ * Last rendered node.
136
+ * @returns {boolean}
137
+ */
138
+ isLast(): boolean;
139
+
140
+ /**
141
+ * Css classes.
142
+ */
143
+ classes(...args: any[]): any;
144
+
145
+ /**
146
+ * Css styles.
147
+ * @param args
148
+ */
149
+ styles(...args: any[]): any;
150
+ }
@@ -0,0 +1,57 @@
1
+ import {TreeViewNodeModel} from "./tree-view-node.model";
2
+
3
+ export interface TreeViewModel {
4
+
5
+ /**
6
+ * Set the nodes of the tree.
7
+ * @param {TreeViewNodeModel[]} nodes
8
+ * @returns {TreeViewModel}
9
+ */
10
+ withNodes(nodes: TreeViewNodeModel[]): TreeViewModel;
11
+
12
+ /**
13
+ * Get the nodes of the tree.
14
+ * @returns {TreeViewNodeModel[]}
15
+ */
16
+ getNodes(): TreeViewNodeModel[];
17
+
18
+ /**
19
+ * Handler on expand tree click.
20
+ */
21
+ onExpandTree(): void;
22
+
23
+ /**
24
+ * Handler on collapse tree click.
25
+ */
26
+ onCollapseTree(): void;
27
+
28
+ /**
29
+ * Handler on filter input.
30
+ * @param e
31
+ */
32
+ onFilterInput(e: any): void;
33
+
34
+ /**
35
+ * Foreach node of the tree applies the filter method implementation.
36
+ * @param {string} term
37
+ */
38
+ filterTree(term: string): void;
39
+
40
+ /**
41
+ * The number of the node of the tree.
42
+ * @returns {number}
43
+ */
44
+ getSize(): number;
45
+
46
+ /**
47
+ * First rendered node of the tree.
48
+ * @returns {TreeViewNodeModel}
49
+ */
50
+ getFirst(): TreeViewNodeModel;
51
+
52
+ /**
53
+ * Last rendered node of the tree.
54
+ * @returns {TreeViewNodeModel}
55
+ */
56
+ getLast(): TreeViewNodeModel;
57
+ }
@@ -0,0 +1,5 @@
1
+ import {Weekday} from "./weekday.model";
2
+
3
+ export class Week {
4
+ public weekDays: Weekday[] = [];
5
+ }
@@ -0,0 +1,17 @@
1
+ import {AgendaEvent} from "./agenda-event.model";
2
+
3
+ export class Weekday {
4
+ public inView: boolean = true;
5
+ public weekdayDay: number;
6
+ public weekdayMonthShort: string;
7
+ public weekdayMonthLong: string;
8
+ public weekdayYear: number;
9
+ public date: Date;
10
+ public weekdayShort: string;
11
+ public weekdayLong: string;
12
+ public description: string;
13
+ public newMonth: boolean = false;
14
+ public weekdaySelected: boolean = false;
15
+ public datesByTheHour: Date[] = [];
16
+ public events: AgendaEvent[] = [];
17
+ }
@@ -0,0 +1,14 @@
1
+ import {Pipe, PipeTransform} from "@angular/core";
2
+
3
+ @Pipe({
4
+ name: "arrayNumber"
5
+ })
6
+ export class ArrayNumberPipe implements PipeTransform {
7
+
8
+ transform(length: number, offset: number = 0): number[] {
9
+ if (!length || length < 0) {
10
+ return [];
11
+ }
12
+ return Array.from({length: Math.round(length)}, (x, i) => i + offset);
13
+ }
14
+ }
@@ -0,0 +1,7 @@
1
+ import {ArrayNumberPipe} from "./array-number.pipe";
2
+ import {UCfirstPipe} from "./ucfirst.pipe";
3
+
4
+ export const MASTER_PIPES: any[] = [
5
+ ArrayNumberPipe,
6
+ UCfirstPipe
7
+ ]
@@ -0,0 +1,14 @@
1
+ import {Pipe, PipeTransform} from "@angular/core";
2
+
3
+ @Pipe({
4
+ name: "ucfirst"
5
+ })
6
+ // Pipe capable of transforming the first character of a string-value to upper case.
7
+ export class UCfirstPipe implements PipeTransform {
8
+ transform(value: string): string {
9
+ if (typeof value === "string") {
10
+ return value.charAt(0).toUpperCase() + value.slice(1);
11
+ }
12
+ return value;
13
+ }
14
+ }
@@ -0,0 +1,86 @@
1
+ import {Injectable} from "@angular/core";
2
+ import {LanguageCode} from "../enum/language-code.enum";
3
+ import {StringUtils} from "../utils/string-utils";
4
+ import {Dictionary} from "../assets/dictionary/text.properties";
5
+
6
+ // The localization service, providing peers with text translation functionality.
7
+ @Injectable({
8
+ providedIn: "root"
9
+ })
10
+ export class DictionaryService {
11
+ private readonly dictionaryUrl: string = "js/browser/res/dictionary/";
12
+
13
+ public get language(): string {
14
+ return this._language;
15
+ }
16
+
17
+ public set rootUrl(value: string) {
18
+ this._rootUrl = value;
19
+ this._dictBasePath = this._rootUrl + "/" + this.dictionaryUrl;
20
+ }
21
+
22
+ // public dictionaryLoaded: Subject<void> = new Subject();
23
+
24
+ private _dictBasePath: string;
25
+ private _rootUrl: string;
26
+ // private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
27
+ private _dictionaries: Map<string, { [key: string]: string }> = new Map<string, { [key: string]: string }>();
28
+ private _language: string;
29
+
30
+ // Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
31
+ private readonly _placeholder: string = "|~";
32
+
33
+ constructor(
34
+ ) {
35
+ }
36
+
37
+ // Loads the dictionary for given language in memory.
38
+ public async setDictionary(language: string): Promise<void> {
39
+ this._language = language || LanguageCode.Dutch;
40
+ this._loadDictionary();
41
+ }
42
+
43
+ private _loadDictionary() {
44
+ if (!this._dictionaries.has(this._language)) {
45
+ const dictionary: Dictionary = new Dictionary();
46
+ // eslint-disable-next-line no-magic-numbers
47
+ if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
48
+ // eslint-disable-next-line no-magic-numbers
49
+ this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
50
+ }
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Returns the localized text for the given dictionary key.
56
+ * @param {string} key
57
+ * @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
58
+ * @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
59
+ * @returns {string} The translated text for given dictionary key
60
+ */
61
+ public get(key: string, upperCaseFirst: boolean = true, ...replacementTexts: string[]): string {
62
+ if (!StringUtils.IsStringWithLength(key)) {
63
+ return key || "";
64
+ }
65
+
66
+ if (this.language === undefined) {
67
+ this._language = LanguageCode.Dutch;
68
+ this._loadDictionary();
69
+ }
70
+
71
+ let text: string = this._dictionaries.get(this.language)[key];
72
+ text = StringUtils.IsStringWithLength(text) ? text : key;
73
+
74
+ if (upperCaseFirst) {
75
+ text = text.charAt(0).toUpperCase() + text.slice(1);
76
+ } else {
77
+ text = text.charAt(0).toLowerCase() + text.slice(1);
78
+ }
79
+
80
+ if (replacementTexts.length > 0) {
81
+ text = StringUtils.ReplaceOccurrencesIn(text, this._placeholder, ...replacementTexts);
82
+ }
83
+
84
+ return text;
85
+ }
86
+ }
@@ -0,0 +1,51 @@
1
+ import {Injectable} from "@angular/core";
2
+ import {DomSanitizer, SafeHtml} from "@angular/platform-browser";
3
+ import {Icon} from "../enum/icon.enum";
4
+ import {IconSvg} from "../model/icon-svg";
5
+
6
+ @Injectable({
7
+ providedIn: "root"
8
+ })
9
+ export class IconCacheService {
10
+ /**
11
+ * All the icons as a large JSON object, from the all-icons.json file.
12
+ * The object has property keys that are the icon names, and property values with the data string of the actual svg icon.
13
+ */
14
+ public get iconCache(): { [iconName: string]: SafeHtml } {
15
+ return this._iconCache;
16
+ }
17
+
18
+ private _iconCache: { [iconName: string]: SafeHtml } = {};
19
+
20
+ constructor(
21
+ private _sanitizer: DomSanitizer
22
+ ) {
23
+ this.setIconCache();
24
+ }
25
+
26
+ public getIcon(iconName: Icon | string): SafeHtml {
27
+ if (iconName) {
28
+ return this._iconCache[iconName.toLowerCase()];
29
+ }
30
+ }
31
+
32
+ public getIconAsBase64(iconName: Icon): SafeHtml {
33
+ const icon: string = IconSvg[iconName];
34
+ const base64Data: string = window.btoa(icon);
35
+ return this._sanitizer.bypassSecurityTrustUrl(`data:image/svg+xml;base64,${base64Data}`);
36
+ }
37
+
38
+ public getRawIcon(iconName: Icon): string {
39
+ if (iconName) {
40
+ return IconSvg[iconName.toLowerCase()];
41
+ }
42
+ }
43
+
44
+ public setIconCache(): void {
45
+ for (const key in IconSvg) {
46
+ if (IconSvg.hasOwnProperty(key) && typeof IconSvg[key] !== "function") {
47
+ this._iconCache[key.toLowerCase()] = this._sanitizer.bypassSecurityTrustHtml(IconSvg[key]);
48
+ }
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,43 @@
1
+ import {Injectable} from "@angular/core";
2
+ import {BehaviorSubject} from "rxjs";
3
+ import {DictionaryService} from "./dictionary.service";
4
+ import {SharedSettings} from '../model/settings';
5
+
6
+ @Injectable({
7
+ providedIn: "root"
8
+ })
9
+ export class OptionsService {
10
+
11
+ public optionsInitialized: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
12
+
13
+ public set options(value: any) {
14
+ this._options = value;
15
+ }
16
+
17
+ public get options(): any {
18
+ return this._options;
19
+ }
20
+
21
+ public optionsLoaded: BehaviorSubject<boolean> = new BehaviorSubject(false);
22
+
23
+ private _options: any;
24
+
25
+ constructor(private _dictionary: DictionaryService) {
26
+ }
27
+
28
+ public async createSettingsFromObject(obj: any): Promise<void> {
29
+ if (!this.options) {
30
+ this.options = new SharedSettings();
31
+ }
32
+ this.options = Object.assign(this.options, obj);
33
+ this.optionsLoaded.next(true);
34
+ }
35
+
36
+ public async initialize(options: any): Promise<void> {
37
+ if (options) {
38
+ await this.createSettingsFromObject(options);
39
+ await this._dictionary.setDictionary(this.options.languageCode);
40
+ this.optionsInitialized.next(true);
41
+ }
42
+ }
43
+ }