ca-components 2.1.13 → 2.1.15

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 (1797) hide show
  1. package/fesm2022/ca-components.mjs +38 -20
  2. package/fesm2022/ca-components.mjs.map +1 -1
  3. package/index.d.ts +7 -6
  4. package/lib/animations/accordion-animation.ts +41 -0
  5. package/lib/animations/animation.ts +33 -0
  6. package/lib/animations/area-left-side.animation.ts +44 -0
  7. package/lib/animations/area-right-side.animation.ts +43 -0
  8. package/lib/animations/card-component.animation.ts +78 -0
  9. package/lib/animations/close-form.animation.ts +34 -0
  10. package/lib/animations/expand-search-button.animation.ts +17 -0
  11. package/lib/animations/fade-in.animation.ts +15 -0
  12. package/lib/animations/in-out.animation.ts +87 -0
  13. package/lib/animations/index.ts +14 -0
  14. package/lib/animations/puff-in-out.animation.ts +40 -0
  15. package/lib/animations/search-bar-button-opacity.animation.ts +18 -0
  16. package/lib/animations/search-input-expand.animation.ts +18 -0
  17. package/lib/animations/show.animation.ts +36 -0
  18. package/lib/animations/slide-in-out.animation.ts +36 -0
  19. package/lib/animations/state-header.animation.ts +31 -0
  20. package/lib/animations/tabs-modal.animation.ts +121 -0
  21. package/lib/ca-components.module.ts +222 -0
  22. package/lib/components/ca-activity-log-list/ca-activity-log-list.component.html +227 -0
  23. package/lib/components/ca-activity-log-list/ca-activity-log-list.component.scss +398 -0
  24. package/lib/components/ca-activity-log-list/ca-activity-log-list.component.spec.ts +21 -0
  25. package/lib/components/ca-activity-log-list/ca-activity-log-list.component.ts +174 -0
  26. package/lib/components/ca-activity-log-list/ca-activity-log-list.stories.ts +29 -0
  27. package/lib/components/ca-activity-log-list/config/activity-log-search-filter.config.ts +18 -0
  28. package/lib/components/ca-activity-log-list/config/index.ts +1 -0
  29. package/lib/components/ca-activity-log-list/enums/action-log-type-title-text.enum.ts +5 -0
  30. package/lib/components/ca-activity-log-list/enums/action-log-type.enum.ts +7 -0
  31. package/lib/components/ca-activity-log-list/enums/activity-entity-type.enum.ts +4 -0
  32. package/lib/components/ca-activity-log-list/enums/activity-log-utils.enum.ts +4 -0
  33. package/lib/components/ca-activity-log-list/enums/index.ts +4 -0
  34. package/lib/components/ca-activity-log-list/models/action-log.model.ts +7 -0
  35. package/lib/components/ca-activity-log-list/models/activity-log-item-description.model.ts +5 -0
  36. package/lib/components/ca-activity-log-list/models/activity-log-item.model.ts +18 -0
  37. package/lib/components/ca-activity-log-list/models/activity-log-list-data.model.ts +7 -0
  38. package/lib/components/ca-activity-log-list/models/company-user-avatar-file.model.ts +9 -0
  39. package/lib/components/ca-activity-log-list/models/company-user.model.ts +10 -0
  40. package/lib/components/ca-activity-log-list/models/entity-type-activity.model.ts +4 -0
  41. package/lib/components/ca-activity-log-list/models/index.ts +7 -0
  42. package/lib/components/ca-activity-log-list/utils/constants/activity-log-list-data.constants.ts +537 -0
  43. package/lib/components/ca-activity-log-list/utils/constants/index.ts +1 -0
  44. package/lib/components/ca-activity-log-list/utils/pipes/action-log-name-transform.pipe.ts +11 -0
  45. package/lib/components/ca-activity-log-list/utils/pipes/activity-log-date-transform.pipe.ts +14 -0
  46. package/lib/components/ca-activity-log-list/utils/pipes/company-user-name-transform.pipe.ts +13 -0
  47. package/lib/components/ca-activity-log-list/utils/pipes/index.ts +4 -0
  48. package/lib/components/ca-activity-log-list/utils/pipes/tab-title-transform.pipe.ts +13 -0
  49. package/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.html +20 -0
  50. package/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.scss +0 -0
  51. package/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.ts +74 -0
  52. package/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.html +18 -0
  53. package/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.scss +0 -0
  54. package/lib/components/ca-autoclose-popover/ca-autoclose-popover.component.ts +56 -0
  55. package/lib/components/ca-autoclose-popover/enums/autoclose-string.enum.ts +3 -0
  56. package/lib/components/ca-chart/ca-chart.component.html +76 -0
  57. package/lib/components/ca-chart/ca-chart.component.scss +39 -0
  58. package/lib/components/ca-chart/ca-chart.component.spec.ts +21 -0
  59. package/lib/components/ca-chart/ca-chart.component.ts +912 -0
  60. package/lib/components/ca-chart/ca-chart.stories.ts +121 -0
  61. package/lib/components/ca-chart/config/ca-base-chart-dataset.config.ts +12 -0
  62. package/lib/components/ca-chart/config/index.ts +1 -0
  63. package/lib/components/ca-chart/enums/chart-annotation-type.enum.ts +8 -0
  64. package/lib/components/ca-chart/enums/chart-annotation.enum.ts +15 -0
  65. package/lib/components/ca-chart/enums/chart-colors.enum.ts +7 -0
  66. package/lib/components/ca-chart/enums/chart-event-properties.enum.ts +5 -0
  67. package/lib/components/ca-chart/enums/chart-event-types.enum.ts +3 -0
  68. package/lib/components/ca-chart/enums/chart-font-properties.enum.ts +4 -0
  69. package/lib/components/ca-chart/enums/chart-images.enum.ts +7 -0
  70. package/lib/components/ca-chart/enums/chart-plugin-ids.enum.ts +6 -0
  71. package/lib/components/ca-chart/enums/cubic-interpolation-mode.enum.ts +4 -0
  72. package/lib/components/ca-chart/enums/e-chart-types.enum.ts +5 -0
  73. package/lib/components/ca-chart/enums/index.ts +10 -0
  74. package/lib/components/ca-chart/models/chart-annotation.model.ts +15 -0
  75. package/lib/components/ca-chart/models/chart-base-dataset.model.ts +20 -0
  76. package/lib/components/ca-chart/models/chart-boundaries.model.ts +4 -0
  77. package/lib/components/ca-chart/models/chart-center-label.model.ts +11 -0
  78. package/lib/components/ca-chart/models/chart-config.model.ts +29 -0
  79. package/lib/components/ca-chart/models/chart-data.model.ts +6 -0
  80. package/lib/components/ca-chart/models/chart-dataset-hover.model.ts +5 -0
  81. package/lib/components/ca-chart/models/chart-legend-config.model.ts +7 -0
  82. package/lib/components/ca-chart/models/chart-legend-property.model.ts +10 -0
  83. package/lib/components/ca-chart/models/chart-line-dataset.model.ts +16 -0
  84. package/lib/components/ca-chart/models/index.ts +10 -0
  85. package/lib/components/ca-chart/utils/constants/chart.constants.ts +3 -0
  86. package/lib/components/ca-chart/utils/constants/index.ts +1 -0
  87. package/lib/components/ca-chart/utils/guards/chart-type.guard.ts +10 -0
  88. package/lib/components/ca-chart/utils/guards/index.ts +1 -0
  89. package/lib/components/ca-chart/utils/helpers/chart.helper.ts +294 -0
  90. package/lib/components/ca-chart/utils/helpers/index.ts +1 -0
  91. package/lib/components/ca-chart/utils/svg-routes/chart-svg-routes.ts +12 -0
  92. package/lib/components/ca-chart/utils/svg-routes/index.ts +1 -0
  93. package/lib/components/ca-chart-manager/ca-chart-manager.component.html +27 -0
  94. package/lib/components/ca-chart-manager/ca-chart-manager.component.scss +13 -0
  95. package/lib/components/ca-chart-manager/ca-chart-manager.component.spec.ts +21 -0
  96. package/lib/components/ca-chart-manager/ca-chart-manager.component.ts +131 -0
  97. package/lib/components/ca-chart-manager/models/hover-state.model.ts +7 -0
  98. package/lib/components/ca-chart-manager/models/index.ts +1 -0
  99. package/lib/components/ca-chart-manager/services/chart-manager.service.ts +21 -0
  100. package/lib/components/ca-chart-manager/services/index.ts +1 -0
  101. package/lib/components/ca-checkbox/ca-checkbox.component.html +207 -0
  102. package/lib/components/ca-checkbox/ca-checkbox.component.scss +417 -0
  103. package/lib/components/ca-checkbox/ca-checkbox.component.spec.ts +23 -0
  104. package/lib/components/ca-checkbox/ca-checkbox.component.ts +190 -0
  105. package/lib/components/ca-checkbox/ca-checkbox.stories.ts +87 -0
  106. package/lib/components/ca-checkbox/interfaces/column-check-action.interface.ts +6 -0
  107. package/lib/components/ca-checkbox/interfaces/index.ts +1 -0
  108. package/lib/components/ca-checkbox/utils/svg-routes/checkbox-svg-routes.ts +9 -0
  109. package/lib/components/ca-checkbox/utils/svg-routes/index.ts +1 -0
  110. package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-count.component.html +83 -0
  111. package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-count.component.scss +17 -0
  112. package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-count.component.spec.ts +23 -0
  113. package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-count.component.ts +70 -0
  114. package/lib/components/ca-checkbox-selected-count/ca-checkbox-selected-cpunt.component.stories.ts +90 -0
  115. package/lib/components/ca-checkbox-selected-count/pipes/checkbox-selected-count-class.pipe.ts +27 -0
  116. package/lib/components/ca-checkbox-selected-count/pipes/index.ts +1 -0
  117. package/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.html +41 -0
  118. package/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.scss +64 -0
  119. package/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.stories.ts +79 -0
  120. package/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.ts +81 -0
  121. package/lib/components/ca-comment/ca-comment.component.html +124 -0
  122. package/lib/components/ca-comment/ca-comment.component.scss +174 -0
  123. package/lib/components/ca-comment/ca-comment.component.ts +144 -0
  124. package/lib/components/ca-comment/ca-comment.stories.ts +133 -0
  125. package/lib/components/ca-comment/directives/auto-resize.directive.ts +41 -0
  126. package/lib/components/ca-comment/directives/index.ts +1 -0
  127. package/lib/components/ca-comment/enums/index.ts +1 -0
  128. package/lib/components/ca-comment/enums/svg-icon.enum.ts +6 -0
  129. package/lib/components/ca-comment/modals/comment-modal/comment-modal.component.html +52 -0
  130. package/lib/components/ca-comment/modals/comment-modal/comment-modal.component.scss +232 -0
  131. package/lib/components/ca-comment/modals/comment-modal/comment-modal.component.spec.ts +21 -0
  132. package/lib/components/ca-comment/modals/comment-modal/comment-modal.component.ts +46 -0
  133. package/lib/components/ca-comment/modals/comment-modal/svg-routes/index.ts +1 -0
  134. package/lib/components/ca-comment/modals/comment-modal/svg-routes/modal.routes.ts +4 -0
  135. package/lib/components/ca-comment/models/ca-comment-config.model.ts +11 -0
  136. package/lib/components/ca-comment/models/ca-delete-comment.model.ts +1 -0
  137. package/lib/components/ca-comment/models/ca-save-comment.model.ts +3 -0
  138. package/lib/components/ca-comment/models/ca-update-comment.model.ts +5 -0
  139. package/lib/components/ca-comment/models/index.ts +4 -0
  140. package/lib/components/ca-comment/pipes/icon.pipe.ts +18 -0
  141. package/lib/components/ca-comment/pipes/index.ts +1 -0
  142. package/lib/components/ca-comment/services/index.ts +1 -0
  143. package/lib/components/ca-comment/services/modal.service.ts +31 -0
  144. package/lib/components/ca-comment/utils/constants/comment.constant.ts +10 -0
  145. package/lib/components/ca-comment/utils/constants/index.ts +1 -0
  146. package/lib/components/ca-comment/utils/index.ts +1 -0
  147. package/lib/components/ca-comments/ca-comments.component.html +695 -0
  148. package/lib/components/ca-comments/ca-comments.component.scss +135 -0
  149. package/lib/components/ca-comments/ca-comments.component.spec.ts +23 -0
  150. package/lib/components/ca-comments/ca-comments.component.ts +257 -0
  151. package/lib/components/ca-comments/ca-comments.stories.ts +150 -0
  152. package/lib/components/ca-comments/models/comment.interface.ts +18 -0
  153. package/lib/components/ca-comments/models/index.ts +1 -0
  154. package/lib/components/ca-comments/pipes/highlight-comment.pipe.ts +51 -0
  155. package/lib/components/ca-comments/pipes/highlight-single-string.pipe.ts +26 -0
  156. package/lib/components/ca-comments/pipes/index.ts +4 -0
  157. package/lib/components/ca-comments/pipes/is-current-user.pipe.ts +24 -0
  158. package/lib/components/ca-comments/pipes/sort-comments.pipe.ts +35 -0
  159. package/lib/components/ca-comments/utils/helpers/index.ts +0 -0
  160. package/lib/components/ca-confirmation-modals/components/ca-activate-modal/ca-active-modal.component.html +78 -0
  161. package/lib/components/ca-confirmation-modals/components/ca-activate-modal/ca-active-modal.component.scss +0 -0
  162. package/lib/components/ca-confirmation-modals/components/ca-activate-modal/ca-active-modal.component.ts +49 -0
  163. package/lib/components/ca-confirmation-modals/components/ca-deactive-modal/ca-deactive-modal.component.html +76 -0
  164. package/lib/components/ca-confirmation-modals/components/ca-deactive-modal/ca-deactive-modal.component.scss +0 -0
  165. package/lib/components/ca-confirmation-modals/components/ca-deactive-modal/ca-deactive-modal.component.ts +58 -0
  166. package/lib/components/ca-confirmation-modals/components/ca-delete-modal/ca-delete-modal.component.html +74 -0
  167. package/lib/components/ca-confirmation-modals/components/ca-delete-modal/ca-delete-modal.component.scss +0 -0
  168. package/lib/components/ca-confirmation-modals/components/ca-delete-modal/ca-delete-modal.component.ts +48 -0
  169. package/lib/components/ca-confirmation-modals/components/ca-move-modal/ca-move-modal.component.html +78 -0
  170. package/lib/components/ca-confirmation-modals/components/ca-move-modal/ca-move-modal.component.scss +3 -0
  171. package/lib/components/ca-confirmation-modals/components/ca-move-modal/ca-move-modal.component.ts +49 -0
  172. package/lib/components/ca-confirmation-modals/components/ca-reset-table-modal/ca-reset-table-modal.component.html +74 -0
  173. package/lib/components/ca-confirmation-modals/components/ca-reset-table-modal/ca-reset-table-modal.component.scss +0 -0
  174. package/lib/components/ca-confirmation-modals/components/ca-reset-table-modal/ca-reset-table-modal.component.ts +48 -0
  175. package/lib/components/ca-confirmation-modals/components/ca-void-modal/ca-void-modal.component.html +74 -0
  176. package/lib/components/ca-confirmation-modals/components/ca-void-modal/ca-void-modal.component.scss +0 -0
  177. package/lib/components/ca-confirmation-modals/components/ca-void-modal/ca-void-modal.component.ts +48 -0
  178. package/lib/components/ca-confirmation-modals/components/interfaces/file.interface.ts +11 -0
  179. package/lib/components/ca-confirmation-modals/components/interfaces/modal-data.interface.ts +11 -0
  180. package/lib/components/ca-confirmation-modals/interfaces/confirmation-modal-buttons.interface.ts +7 -0
  181. package/lib/components/ca-confirmation-modals/interfaces/index.ts +1 -0
  182. package/lib/components/ca-confirmation-modals/utils/constants/confirmation-modal-buttons.constants.ts +28 -0
  183. package/lib/components/ca-confirmation-modals/utils/constants/index.ts +1 -0
  184. package/lib/components/ca-contacts-card/ca-contacts-card.component.html +200 -0
  185. package/lib/components/ca-contacts-card/ca-contacts-card.component.scss +0 -0
  186. package/lib/components/ca-contacts-card/ca-contacts-card.component.spec.ts +23 -0
  187. package/lib/components/ca-contacts-card/ca-contacts-card.component.stories.ts +84 -0
  188. package/lib/components/ca-contacts-card/ca-contacts-card.component.ts +86 -0
  189. package/lib/components/ca-contacts-card/interfaces/contact-department.interface.ts +7 -0
  190. package/lib/components/ca-contacts-card/interfaces/contact.interface.ts +7 -0
  191. package/lib/components/ca-contacts-card/interfaces/index.ts +2 -0
  192. package/lib/components/ca-custom-card/ca-custom-card.component.html +164 -0
  193. package/lib/components/ca-custom-card/ca-custom-card.component.scss +187 -0
  194. package/lib/components/ca-custom-card/ca-custom-card.component.stories.ts +97 -0
  195. package/lib/components/ca-custom-card/ca-custom-card.component.ts +181 -0
  196. package/lib/components/ca-custom-card/utils/animations/card-modal.animation.ts +80 -0
  197. package/lib/components/ca-custom-card/utils/animations/index.ts +1 -0
  198. package/lib/components/ca-custom-card/utils/enums/custom-card.enum.ts +4 -0
  199. package/lib/components/ca-custom-card/utils/enums/index.ts +1 -0
  200. package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.html +158 -0
  201. package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.scss +0 -0
  202. package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.spec.ts +24 -0
  203. package/lib/components/ca-custom-datetime-pickers/ca-custom-datetime-pickers.component.ts +298 -0
  204. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.html +190 -0
  205. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.scss +0 -0
  206. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.spec.ts +26 -0
  207. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.ts +241 -0
  208. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.html +23 -0
  209. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.scss +0 -0
  210. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.spec.ts +26 -0
  211. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.ts +61 -0
  212. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.html +26 -0
  213. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.scss +0 -0
  214. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.spec.ts +26 -0
  215. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.ts +194 -0
  216. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.html +66 -0
  217. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.scss +0 -0
  218. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.spec.ts +26 -0
  219. package/lib/components/ca-custom-datetime-pickers/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.ts +158 -0
  220. package/lib/components/ca-custom-datetime-pickers/enums/calendar-left-string.enum.ts +5 -0
  221. package/lib/components/ca-custom-datetime-pickers/enums/calendar-list-preview-string.enum.ts +4 -0
  222. package/lib/components/ca-custom-datetime-pickers/enums/calendar-main-string.enum.ts +5 -0
  223. package/lib/components/ca-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.ts +4 -0
  224. package/lib/components/ca-custom-datetime-pickers/enums/calendar-string.enum.ts +6 -0
  225. package/lib/components/ca-custom-datetime-pickers/enums/calendar-type-string.enum.ts +3 -0
  226. package/lib/components/ca-custom-datetime-pickers/models/scroll-change.model.ts +6 -0
  227. package/lib/components/ca-custom-datetime-pickers/models/scroll-type.model.ts +8 -0
  228. package/lib/components/ca-custom-datetime-pickers/pipes/calendar-months.pipe.ts +23 -0
  229. package/lib/components/ca-custom-datetime-pickers/services/calendar-datetime-picker.service.ts +35 -0
  230. package/lib/components/ca-custom-datetime-pickers/strategy/calendar-strategy.ts +120 -0
  231. package/lib/components/ca-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.ts +48 -0
  232. package/lib/components/ca-custom-datetime-pickers-test/ca-custom-datetime-pickers-test.component.html +158 -0
  233. package/lib/components/ca-custom-datetime-pickers-test/ca-custom-datetime-pickers-test.component.scss +0 -0
  234. package/lib/components/ca-custom-datetime-pickers-test/ca-custom-datetime-pickers-test.component.spec.ts +24 -0
  235. package/lib/components/ca-custom-datetime-pickers-test/ca-custom-datetime-pickers-test.component.ts +298 -0
  236. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.html +186 -0
  237. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.scss +0 -0
  238. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.spec.ts +26 -0
  239. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-dates-main/ca-custom-datetime-pickers-calendar-dates-main.component.ts +226 -0
  240. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.html +22 -0
  241. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.scss +0 -0
  242. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.spec.ts +26 -0
  243. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-days/ca-custom-datetime-pickers-calendar-days.component.ts +61 -0
  244. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.html +26 -0
  245. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.scss +0 -0
  246. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.spec.ts +26 -0
  247. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-calendar-left/ca-custom-datetime-pickers-calendar-left.component.ts +194 -0
  248. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.html +66 -0
  249. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.scss +0 -0
  250. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.spec.ts +26 -0
  251. package/lib/components/ca-custom-datetime-pickers-test/components/ca-custom-datetime-pickers-date-calendars/ca-custom-datetime-pickers-date-calendars.component.ts +158 -0
  252. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-left-string.enum.ts +5 -0
  253. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-list-preview-string.enum.ts +4 -0
  254. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-main-string.enum.ts +5 -0
  255. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-scroll-type-string.enum.ts +4 -0
  256. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-string.enum.ts +6 -0
  257. package/lib/components/ca-custom-datetime-pickers-test/enums/calendar-type-string.enum.ts +3 -0
  258. package/lib/components/ca-custom-datetime-pickers-test/models/scroll-change.model.ts +6 -0
  259. package/lib/components/ca-custom-datetime-pickers-test/models/scroll-type.model.ts +8 -0
  260. package/lib/components/ca-custom-datetime-pickers-test/pipes/calendar-months.pipe.ts +23 -0
  261. package/lib/components/ca-custom-datetime-pickers-test/services/calendar-datetime-picker.service.ts +35 -0
  262. package/lib/components/ca-custom-datetime-pickers-test/strategy/calendar-strategy.ts +120 -0
  263. package/lib/components/ca-custom-datetime-pickers-test/utils/constants/custom-datetime-pickers.constants.ts +48 -0
  264. package/lib/components/ca-custom-horizontal-scrollbar/ca-custom-horizontal-scrollbar.component.html +20 -0
  265. package/lib/components/ca-custom-horizontal-scrollbar/ca-custom-horizontal-scrollbar.component.scss +11 -0
  266. package/lib/components/ca-custom-horizontal-scrollbar/ca-custom-horizontal-scrollbar.component.ts +23 -0
  267. package/lib/components/ca-custom-horizontal-scrollbar/directives/scrollbar-sync.directive.ts +200 -0
  268. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.html +72 -0
  269. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.scss +78 -0
  270. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.spec.ts +23 -0
  271. package/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.ts +278 -0
  272. package/lib/components/ca-custom-scrollbar/enums/event-type.enum.ts +6 -0
  273. package/lib/components/ca-custom-scrollbar/enums/index.ts +2 -0
  274. package/lib/components/ca-custom-scrollbar/enums/scroll-event-action.enum.ts +4 -0
  275. package/lib/components/ca-custom-scrollbar/models/index.ts +2 -0
  276. package/lib/components/ca-custom-scrollbar/models/scroll-bar-options.model.ts +6 -0
  277. package/lib/components/ca-custom-scrollbar/models/scroll-event.model.ts +8 -0
  278. package/lib/components/ca-details-dropdown/ca-details-dropdown.component.html +77 -0
  279. package/lib/components/ca-details-dropdown/ca-details-dropdown.component.scss +357 -0
  280. package/lib/components/ca-details-dropdown/ca-details-dropdown.component.ts +132 -0
  281. package/lib/components/ca-details-dropdown/models/detail-dropdown.model.ts +17 -0
  282. package/lib/components/ca-details-dropdown/utils/svg-routes/detail-dropdown-svg-routes.ts +3 -0
  283. package/lib/components/ca-details-title-card/ca-details-title-card.component.html +98 -0
  284. package/lib/components/ca-details-title-card/ca-details-title-card.component.scss +153 -0
  285. package/lib/components/ca-details-title-card/ca-details-title-card.component.stories.ts +100 -0
  286. package/lib/components/ca-details-title-card/ca-details-title-card.component.ts +140 -0
  287. package/lib/components/ca-details-title-card/interfaces/ca-details-title-card-config.interface.ts +11 -0
  288. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.html +289 -0
  289. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.scss +334 -0
  290. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.spec.ts +21 -0
  291. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.stories.ts +162 -0
  292. package/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.ts +287 -0
  293. package/lib/components/ca-dropdown-menu/enums/dropdown-menu-item-type.enum.ts +11 -0
  294. package/lib/components/ca-dropdown-menu/enums/dropdown-menu.enum.ts +25 -0
  295. package/lib/components/ca-dropdown-menu/enums/index.ts +2 -0
  296. package/lib/components/ca-dropdown-menu/interfaces/dropdown-menu-item.interface.ts +22 -0
  297. package/lib/components/ca-dropdown-menu/interfaces/dropdown-menu-option-emit.interface.ts +5 -0
  298. package/lib/components/ca-dropdown-menu/interfaces/index.ts +2 -0
  299. package/lib/components/ca-dropdown-menu/pipes/dropdown-menu-placement-class.pipe.ts +18 -0
  300. package/lib/components/ca-dropdown-menu/pipes/group-item-checked-state.pipe.ts +20 -0
  301. package/lib/components/ca-dropdown-menu/pipes/index.ts +2 -0
  302. package/lib/components/ca-dropdown-menu/types/dropdown-menu-type.type.ts +4 -0
  303. package/lib/components/ca-dropdown-menu/types/index.ts +1 -0
  304. package/lib/components/ca-dropdown-menu/utils/constants/dropdown-menu.constants.ts +228 -0
  305. package/lib/components/ca-dropdown-menu/utils/constants/index.ts +1 -0
  306. package/lib/components/ca-dropdown-menu/utils/helpers/dropdown-menu.helper.ts +16 -0
  307. package/lib/components/ca-dropdown-menu/utils/helpers/index.ts +1 -0
  308. package/lib/components/ca-dropdown-menu/utils/svg-routes/dropdown-menu-svg-routes.ts +10 -0
  309. package/lib/components/ca-dropdown-menu/utils/svg-routes/index.ts +1 -0
  310. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.html +365 -0
  311. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.scss +36 -0
  312. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.spec.ts +23 -0
  313. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.component.ts +236 -0
  314. package/lib/components/ca-factoring-dropdown/ca-factoring-dropdown.stories.ts +41 -0
  315. package/lib/components/ca-factoring-dropdown/enums/factoring-form-control.enum.ts +6 -0
  316. package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-format.enum.ts +4 -0
  317. package/lib/components/ca-factoring-dropdown/enums/factoring-pdf-organize.enum.ts +4 -0
  318. package/lib/components/ca-factoring-dropdown/enums/index.ts +3 -0
  319. package/lib/components/ca-factoring-dropdown/interfaces/factoring-checkbox-item.interface.ts +5 -0
  320. package/lib/components/ca-factoring-dropdown/interfaces/factoring-export-item.interface.ts +14 -0
  321. package/lib/components/ca-factoring-dropdown/interfaces/index.ts +2 -0
  322. package/lib/components/ca-factoring-dropdown/utils/constants/factoring-dropdown.constants.ts +57 -0
  323. package/lib/components/ca-factoring-dropdown/utils/constants/index.ts +1 -0
  324. package/lib/components/ca-files-count/ca-files-count.component.html +38 -0
  325. package/lib/components/ca-files-count/ca-files-count.component.scss +1 -0
  326. package/lib/components/ca-files-count/ca-files-count.component.spec.ts +23 -0
  327. package/lib/components/ca-files-count/ca-files-count.component.stories.ts +37 -0
  328. package/lib/components/ca-files-count/ca-files-count.component.ts +50 -0
  329. package/lib/components/ca-filters/ca-filter.component.html +557 -0
  330. package/lib/components/ca-filters/ca-filter.component.scss +316 -0
  331. package/lib/components/ca-filters/ca-filter.component.stories.ts +420 -0
  332. package/lib/components/ca-filters/ca-filter.component.ts +572 -0
  333. package/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.html +162 -0
  334. package/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.scss +394 -0
  335. package/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.ts +299 -0
  336. package/lib/components/ca-filters/components/ca-dispatcher-filter/config/ca-broker-filter.config.ts +16 -0
  337. package/lib/components/ca-filters/components/ca-dispatcher-filter/config/ca-dispatcher-filter.config.ts +16 -0
  338. package/lib/components/ca-filters/components/ca-dispatcher-filter/config/ca-driver-filter.config.ts +16 -0
  339. package/lib/components/ca-filters/components/ca-dispatcher-filter/config/ca-fuel-stop-filter.config.ts +16 -0
  340. package/lib/components/ca-filters/components/ca-dispatcher-filter/config/index.ts +4 -0
  341. package/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.html +126 -0
  342. package/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.scss +371 -0
  343. package/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.ts +171 -0
  344. package/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.html +184 -0
  345. package/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.scss +397 -0
  346. package/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.ts +348 -0
  347. package/lib/components/ca-filters/components/ca-state-filter/config/ca-state-filter.config.ts +16 -0
  348. package/lib/components/ca-filters/components/ca-state-filter/config/index.ts +1 -0
  349. package/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.html +137 -0
  350. package/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.scss +212 -0
  351. package/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.ts +225 -0
  352. package/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.html +37 -0
  353. package/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.scss +122 -0
  354. package/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.ts +171 -0
  355. package/lib/components/ca-filters/components/ca-time-filter-dropdown/ca-time-filter-dropdown.component.html +33 -0
  356. package/lib/components/ca-filters/components/ca-time-filter-dropdown/ca-time-filter-dropdown.component.scss +114 -0
  357. package/lib/components/ca-filters/components/ca-time-filter-dropdown/ca-time-filter-dropdown.component.ts +198 -0
  358. package/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.html +127 -0
  359. package/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.scss +372 -0
  360. package/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.ts +242 -0
  361. package/lib/components/ca-filters/components/ca-trailer-type-filter/config/ca-trailer-type-filter.config.ts +16 -0
  362. package/lib/components/ca-filters/components/ca-trailer-type-filter/config/index.ts +1 -0
  363. package/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.html +125 -0
  364. package/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.scss +378 -0
  365. package/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.ts +236 -0
  366. package/lib/components/ca-filters/components/ca-truck-type-filter/config/ca-truck-type-filter.config.ts +16 -0
  367. package/lib/components/ca-filters/components/ca-truck-type-filter/config/index.ts +1 -0
  368. package/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.html +220 -0
  369. package/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.scss +597 -0
  370. package/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.ts +324 -0
  371. package/lib/components/ca-filters/components/ca-user-filter/config/ca-user-filter.config.ts +16 -0
  372. package/lib/components/ca-filters/components/ca-user-filter/config/index.ts +1 -0
  373. package/lib/components/ca-filters/components/ca-user-filter/models/ca-user-data.model.ts +10 -0
  374. package/lib/components/ca-filters/components/ca-user-filter/models/ca-user-group.model.ts +7 -0
  375. package/lib/components/ca-filters/components/ca-user-filter/models/index.ts +2 -0
  376. package/lib/components/ca-filters/components/ca-user-filter/pipes/filter-selected-items.pipe.ts +15 -0
  377. package/lib/components/ca-filters/components/ca-user-filter/pipes/group-selection-state.pipe.ts +19 -0
  378. package/lib/components/ca-filters/components/ca-user-filter/pipes/index.ts +3 -0
  379. package/lib/components/ca-filters/components/ca-user-filter/pipes/selected-users.pipe.ts +16 -0
  380. package/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.html +22 -0
  381. package/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.scss +355 -0
  382. package/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.ts +181 -0
  383. package/lib/components/ca-filters/enums/filter-actions-string.enum.ts +6 -0
  384. package/lib/components/ca-filters/enums/index.ts +1 -0
  385. package/lib/components/ca-filters/pipes/filter-conditions-clear.pipe.ts +81 -0
  386. package/lib/components/ca-filters/pipes/filter-conditions-set.pipe.ts +106 -0
  387. package/lib/components/ca-filters/pipes/filter-conditions-user-box.pipe.ts +39 -0
  388. package/lib/components/ca-filters/pipes/filter-popover-conditions.pipe.ts +146 -0
  389. package/lib/components/ca-filters/pipes/filter-trailer-color.pipe.ts +37 -0
  390. package/lib/components/ca-filters/pipes/filter-truck-color.pipe.ts +32 -0
  391. package/lib/components/ca-filters/pipes/index.ts +6 -0
  392. package/lib/components/ca-filters/utils/constants/directive.constants.ts +1342 -0
  393. package/lib/components/ca-filters/utils/constants/filter-config.constants.ts +44 -0
  394. package/lib/components/ca-filters/utils/constants/index.ts +2 -0
  395. package/lib/components/ca-filters/utils/constants/status-filter.constants.ts +258 -0
  396. package/lib/components/ca-filters/utils/helpers/filter.helper.ts +277 -0
  397. package/lib/components/ca-filters/utils/helpers/index.ts +2 -0
  398. package/lib/components/ca-filters/utils/helpers/time-filter.helper.ts +118 -0
  399. package/lib/components/ca-filters/utils/svg-routes/ca-filters-svg-routes.ts +15 -0
  400. package/lib/components/ca-filters/utils/svg-routes/index.ts +1 -0
  401. package/lib/components/ca-filters/validators/range.validator.ts +23 -0
  402. package/lib/components/ca-fleet-filter/ca-fleet-filter.component.html +271 -0
  403. package/lib/components/ca-fleet-filter/ca-fleet-filter.component.scss +271 -0
  404. package/lib/components/ca-fleet-filter/ca-fleet-filter.component.spec.ts +23 -0
  405. package/lib/components/ca-fleet-filter/ca-fleet-filter.component.ts +248 -0
  406. package/lib/components/ca-fleet-filter/ca-fleet-filter.stories.ts +42 -0
  407. package/lib/components/ca-fleet-filter/enums/fleet-filter-item-type.enum.ts +4 -0
  408. package/lib/components/ca-fleet-filter/enums/index.ts +1 -0
  409. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-data.interface.ts +10 -0
  410. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-item-emit.interface.ts +6 -0
  411. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-trailer-type.interface.ts +7 -0
  412. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-trailer.interface.ts +8 -0
  413. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-truck-type.interface.ts +6 -0
  414. package/lib/components/ca-fleet-filter/interfaces/fleet-filter-truck.interface.ts +8 -0
  415. package/lib/components/ca-fleet-filter/interfaces/index.ts +6 -0
  416. package/lib/components/ca-fleet-filter/utils/constants/fleet-filter.constants.ts +204 -0
  417. package/lib/components/ca-fleet-filter/utils/constants/index.ts +1 -0
  418. package/lib/components/ca-fleet-filter/utils/helpers/fleet-filter.helper.ts +56 -0
  419. package/lib/components/ca-fleet-filter/utils/helpers/index.ts +1 -0
  420. package/lib/components/ca-fleet-filter/utils/pipes/index.ts +1 -0
  421. package/lib/components/ca-fleet-filter/utils/pipes/remove-svg-extension.pipe.ts +11 -0
  422. package/lib/components/ca-fleet-filter/utils/svg-routes/fleet-filter-svg-routes.ts +7 -0
  423. package/lib/components/ca-fleet-filter/utils/svg-routes/index.ts +1 -0
  424. package/lib/components/ca-fuel-prices-range/ca-fuel-prices-range.component.html +116 -0
  425. package/lib/components/ca-fuel-prices-range/ca-fuel-prices-range.component.scss +28 -0
  426. package/lib/components/ca-fuel-prices-range/ca-fuel-prices-range.component.spec.ts +23 -0
  427. package/lib/components/ca-fuel-prices-range/ca-fuel-prices-range.component.ts +62 -0
  428. package/lib/components/ca-fuel-prices-range/interfaces/fuel-prices-range-config.interface.ts +6 -0
  429. package/lib/components/ca-fuel-prices-range/interfaces/index.ts +1 -0
  430. package/lib/components/ca-fuel-prices-range/pipes/fuel-prices-range.pipe.ts +29 -0
  431. package/lib/components/ca-fuel-prices-range/pipes/index.ts +1 -0
  432. package/lib/components/ca-fuel-prices-range/utils/constants/fuel-prices-range.constants.ts +28 -0
  433. package/lib/components/ca-fuel-prices-range/utils/constants/index.ts +1 -0
  434. package/lib/components/ca-heatmap-usa/ca-heatmap-usa.component.html +2454 -0
  435. package/lib/components/ca-heatmap-usa/ca-heatmap-usa.component.scss +25 -0
  436. package/lib/components/ca-heatmap-usa/ca-heatmap-usa.component.spec.ts +21 -0
  437. package/lib/components/ca-heatmap-usa/ca-heatmap-usa.component.ts +184 -0
  438. package/lib/components/ca-heatmap-usa/ca-heatmap-usa.stories.ts +45 -0
  439. package/lib/components/ca-heatmap-usa/constants/heatmap-usa.constants.ts +721 -0
  440. package/lib/components/ca-heatmap-usa/constants/index.ts +1 -0
  441. package/lib/components/ca-heatmap-usa/interfaces/index.ts +3 -0
  442. package/lib/components/ca-heatmap-usa/interfaces/map-list-item.interface.ts +6 -0
  443. package/lib/components/ca-heatmap-usa/interfaces/map-states.interface.ts +10 -0
  444. package/lib/components/ca-heatmap-usa/interfaces/top-list-by-state-item.interface.ts +11 -0
  445. package/lib/components/ca-icon-dropdown/ca-icon-dropdown.component.html +59 -0
  446. package/lib/components/ca-icon-dropdown/ca-icon-dropdown.component.scss +84 -0
  447. package/lib/components/ca-icon-dropdown/ca-icon-dropdown.component.spec.ts +23 -0
  448. package/lib/components/ca-icon-dropdown/ca-icon-dropdown.component.ts +118 -0
  449. package/lib/components/ca-icon-dropdown/ca-icon-dropdown.stories.ts +107 -0
  450. package/lib/components/ca-icon-dropdown/enums/index.ts +1 -0
  451. package/lib/components/ca-icon-dropdown/enums/placement.enum.ts +25 -0
  452. package/lib/components/ca-icon-dropdown/interfaces/icon-drop-down-item.interface.ts +5 -0
  453. package/lib/components/ca-icon-dropdown/interfaces/icon-dropdown-config.interface.ts +19 -0
  454. package/lib/components/ca-icon-dropdown/interfaces/index.ts +2 -0
  455. package/lib/components/ca-icon-dropdown/utils/svg-routes/icon-dropdown-svg-routes.ts +3 -0
  456. package/lib/components/ca-icon-dropdown/utils/svg-routes/index.ts +1 -0
  457. package/lib/components/ca-input/base-classes/ca-input-base-helpres.ts +343 -0
  458. package/lib/components/ca-input/base-classes/ca-input-base.ts +1394 -0
  459. package/lib/components/ca-input/base-classes/ca-input-event-manager.ts +32 -0
  460. package/lib/components/ca-input/ca-input.component.html +640 -0
  461. package/lib/components/ca-input/ca-input.component.scss +413 -0
  462. package/lib/components/ca-input/ca-input.component.ts +311 -0
  463. package/lib/components/ca-input/ca-input.stories.ts +416 -0
  464. package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.html +33 -0
  465. package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.scss +0 -0
  466. package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.spec.ts +26 -0
  467. package/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.ts +75 -0
  468. package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.html +85 -0
  469. package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.scss +0 -0
  470. package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.spec.ts +26 -0
  471. package/lib/components/ca-input/components/ca-input-commands/ca-input-commands.component.ts +46 -0
  472. package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.html +38 -0
  473. package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.scss +0 -0
  474. package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.spec.ts +25 -0
  475. package/lib/components/ca-input/components/ca-input-password/ca-input-password.component.ts +58 -0
  476. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.html +50 -0
  477. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.scss +0 -0
  478. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.spec.ts +25 -0
  479. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.ts +79 -0
  480. package/lib/components/ca-input/config/ca-input.config.ts +192 -0
  481. package/lib/components/ca-input/config/index.ts +1 -0
  482. package/lib/components/ca-input/custom-validators/email-custom.validator.ts +9 -0
  483. package/lib/components/ca-input/custom-validators/url-custom.validator.ts +9 -0
  484. package/lib/components/ca-input/directives/caps-lock.directive.ts +44 -0
  485. package/lib/components/ca-input/directives/command-visible.directive.ts +44 -0
  486. package/lib/components/ca-input/directives/index.ts +5 -0
  487. package/lib/components/ca-input/directives/input-max-value.directive.ts +48 -0
  488. package/lib/components/ca-input/directives/min-max-value.directive.ts +37 -0
  489. package/lib/components/ca-input/directives/price_format.directive.ts +35 -0
  490. package/lib/components/ca-input/directives/restrict-input.directive.ts +129 -0
  491. package/lib/components/ca-input/enums/index.ts +4 -0
  492. package/lib/components/ca-input/enums/input-commands-action.enum.ts +9 -0
  493. package/lib/components/ca-input/enums/input-commands-type.enum.ts +7 -0
  494. package/lib/components/ca-input/enums/input-config-name-string.enum.ts +7 -0
  495. package/lib/components/ca-input/enums/input-string.enum.ts +115 -0
  496. package/lib/components/ca-input/enums/input-text-transform.enum.ts +6 -0
  497. package/lib/components/ca-input/mixins/input-command.mixin.ts +158 -0
  498. package/lib/components/ca-input/mixins/input-helper.mixin.ts +61 -0
  499. package/lib/components/ca-input/mixins/input.mixin.ts +19 -0
  500. package/lib/components/ca-input/mixins/restriction-pipe.mixin.ts +54 -0
  501. package/lib/components/ca-input/models/base.model.ts +24 -0
  502. package/lib/components/ca-input/models/command-click.model.ts +5 -0
  503. package/lib/components/ca-input/models/commands-event.model.ts +5 -0
  504. package/lib/components/ca-input/models/index.ts +3 -0
  505. package/lib/components/ca-input/models/label-color.model.ts +11 -0
  506. package/lib/components/ca-input/pipes/color-finder.pipe.ts +55 -0
  507. package/lib/components/ca-input/pipes/form-control.pipe.ts +12 -0
  508. package/lib/components/ca-input/pipes/index.ts +19 -0
  509. package/lib/components/ca-input/pipes/input-class.pipe.ts +197 -0
  510. package/lib/components/ca-input/pipes/input-clear-class.pipe.ts +104 -0
  511. package/lib/components/ca-input/pipes/input-container-class.pipe.ts +70 -0
  512. package/lib/components/ca-input/pipes/input-datetime-picker-class.pipe.ts +98 -0
  513. package/lib/components/ca-input/pipes/input-dropdown-arrow-class.pipe.ts +68 -0
  514. package/lib/components/ca-input/pipes/input-error.pipe.ts +78 -0
  515. package/lib/components/ca-input/pipes/input-password-eye-class.pipe.ts +43 -0
  516. package/lib/components/ca-input/pipes/input-pattern.pipe.ts +308 -0
  517. package/lib/components/ca-input/pipes/input-placeholder-icon-right.pipe.ts +54 -0
  518. package/lib/components/ca-input/pipes/input-placeholder-icon.class.pipe.ts +69 -0
  519. package/lib/components/ca-input/pipes/input-placeholder-text-class.pipe.ts +52 -0
  520. package/lib/components/ca-input/pipes/input-type.pipe.ts +18 -0
  521. package/lib/components/ca-input/pipes/label-class.pipe.ts +46 -0
  522. package/lib/components/ca-input/pipes/show-clear.pipe.ts +19 -0
  523. package/lib/components/ca-input/pipes/show-dropdown-arrow.pipe.ts +23 -0
  524. package/lib/components/ca-input/pipes/show-invalid-danger-mark.pipe.ts +31 -0
  525. package/lib/components/ca-input/pipes/show-placeholder-text.pipe.ts +27 -0
  526. package/lib/components/ca-input/pipes/show-valid-check.pipe.ts +30 -0
  527. package/lib/components/ca-input/scss/ca-dropdown-input-image.scss +109 -0
  528. package/lib/components/ca-input/scss/ca-input.clear.scss +360 -0
  529. package/lib/components/ca-input/scss/ca-input.colors.scss +287 -0
  530. package/lib/components/ca-input/scss/ca-input.commands.scss +187 -0
  531. package/lib/components/ca-input/scss/ca-input.dangermark.scss +17 -0
  532. package/lib/components/ca-input/scss/ca-input.datepicker.scss +153 -0
  533. package/lib/components/ca-input/scss/ca-input.dropdown.scss +124 -0
  534. package/lib/components/ca-input/scss/ca-input.editlabel.scss +42 -0
  535. package/lib/components/ca-input/scss/ca-input.error.scss +34 -0
  536. package/lib/components/ca-input/scss/ca-input.input.scss +838 -0
  537. package/lib/components/ca-input/scss/ca-input.label.scss +281 -0
  538. package/lib/components/ca-input/scss/ca-input.labelcounter.scss +21 -0
  539. package/lib/components/ca-input/scss/ca-input.passwordcapslock.scss +17 -0
  540. package/lib/components/ca-input/scss/ca-input.passwordeye.scss +138 -0
  541. package/lib/components/ca-input/scss/ca-input.placeholderText.scss +82 -0
  542. package/lib/components/ca-input/scss/ca-input.placeholdericon-rightside.scss +90 -0
  543. package/lib/components/ca-input/scss/ca-input.placeholdericon.scss +188 -0
  544. package/lib/components/ca-input/scss/ca-input.requiredcheck.scss +19 -0
  545. package/lib/components/ca-input/scss/ca-input.spinner.scss +5 -0
  546. package/lib/components/ca-input/services/ca-input-validation.service.ts +246 -0
  547. package/lib/components/ca-input/services/index.ts +1 -0
  548. package/lib/components/ca-input/utils/constants/index.ts +1 -0
  549. package/lib/components/ca-input/utils/constants/input-constants.ts +129 -0
  550. package/lib/components/ca-input/utils/index.ts +2 -0
  551. package/lib/components/ca-input/utils/input-change-value.type.ts +1 -0
  552. package/lib/components/ca-input/utils/input-svg-routes.ts +26 -0
  553. package/lib/components/ca-input/versions/datetime/datetimepicker.directive.spec.ts +8 -0
  554. package/lib/components/ca-input/versions/datetime/datetimepicker.directive.ts +9 -0
  555. package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.html +77 -0
  556. package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.scss +134 -0
  557. package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.ts +517 -0
  558. package/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.stories.ts +290 -0
  559. package/lib/components/ca-input-address-dropdown/enums/input-address-basic-string.enum.ts +4 -0
  560. package/lib/components/ca-input-address-dropdown/enums/input-address-commands-string.enum.ts +6 -0
  561. package/lib/components/ca-input-address-dropdown/enums/input-address-layers-string.enum.ts +4 -0
  562. package/lib/components/ca-input-address-dropdown/enums/input-address-stop-types-string.enum.ts +4 -0
  563. package/lib/components/ca-input-address-dropdown/enums/input-address-type-string.enum.ts +5 -0
  564. package/lib/components/ca-input-address-dropdown/models/address-data.model.ts +14 -0
  565. package/lib/components/ca-input-address-dropdown/models/address-list.model.ts +6 -0
  566. package/lib/components/ca-input-address-dropdown/models/command-properties.model.ts +7 -0
  567. package/lib/components/ca-input-address-dropdown/models/commands-handler.model.ts +8 -0
  568. package/lib/components/ca-input-address-dropdown/models/index.ts +7 -0
  569. package/lib/components/ca-input-address-dropdown/models/input-address-commands-string.model.ts +5 -0
  570. package/lib/components/ca-input-address-dropdown/models/long-lat.model.ts +4 -0
  571. package/lib/components/ca-input-address-dropdown/models/sent-address-data.model.ts +7 -0
  572. package/lib/components/ca-input-address-dropdown/validators/ca-input-address.regex-validations.ts +12 -0
  573. package/lib/components/ca-input-address-dropdown-test/ca-input-address-dropdown-test.component.html +79 -0
  574. package/lib/components/ca-input-address-dropdown-test/ca-input-address-dropdown-test.component.scss +134 -0
  575. package/lib/components/ca-input-address-dropdown-test/ca-input-address-dropdown-test.component.ts +447 -0
  576. package/lib/components/ca-input-address-dropdown-test/ca-input-address-dropdown-test.stories.ts +183 -0
  577. package/lib/components/ca-input-address-dropdown-test/enums/input-address-basic-string.enum.ts +4 -0
  578. package/lib/components/ca-input-address-dropdown-test/enums/input-address-commands-string.enum.ts +6 -0
  579. package/lib/components/ca-input-address-dropdown-test/enums/input-address-layers-string.enum.ts +4 -0
  580. package/lib/components/ca-input-address-dropdown-test/enums/input-address-stop-types-string.enum.ts +4 -0
  581. package/lib/components/ca-input-address-dropdown-test/enums/input-address-type-string.enum.ts +5 -0
  582. package/lib/components/ca-input-address-dropdown-test/models/address-data.model.ts +13 -0
  583. package/lib/components/ca-input-address-dropdown-test/models/address-list.model.ts +5 -0
  584. package/lib/components/ca-input-address-dropdown-test/models/command-properties.model.ts +7 -0
  585. package/lib/components/ca-input-address-dropdown-test/models/commands-handler.model.ts +8 -0
  586. package/lib/components/ca-input-address-dropdown-test/models/input-address-commands-string.model.ts +5 -0
  587. package/lib/components/ca-input-address-dropdown-test/models/long-lat.model.ts +4 -0
  588. package/lib/components/ca-input-address-dropdown-test/models/sent-address-data.model.ts +7 -0
  589. package/lib/components/ca-input-address-dropdown-test/validators/ca-input-address-value.validations.ts +14 -0
  590. package/lib/components/ca-input-address-dropdown-test/validators/ca-input-address.regex-validations.ts +12 -0
  591. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.html +106 -0
  592. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.scss +138 -0
  593. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.ts +1193 -0
  594. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.stories.ts +231 -0
  595. package/lib/components/ca-input-dropdown/animations/index.ts +1 -0
  596. package/lib/components/ca-input-dropdown/animations/input-dropdown.animation.ts +24 -0
  597. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.html +397 -0
  598. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.scss +240 -0
  599. package/lib/components/ca-input-dropdown/ca-input-dropdown.component.ts +1468 -0
  600. package/lib/components/ca-input-dropdown/ca-input-dropdown.stories.ts +150 -0
  601. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.html +23 -0
  602. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.scss +0 -0
  603. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.ts +45 -0
  604. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.html +119 -0
  605. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.scss +0 -0
  606. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.ts +56 -0
  607. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.html +31 -0
  608. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.scss +0 -0
  609. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.ts +44 -0
  610. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.html +56 -0
  611. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.scss +0 -0
  612. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.ts +46 -0
  613. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.html +86 -0
  614. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.scss +0 -0
  615. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.ts +61 -0
  616. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.html +41 -0
  617. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.scss +0 -0
  618. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.ts +41 -0
  619. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.html +65 -0
  620. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.scss +0 -0
  621. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.ts +57 -0
  622. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.html +58 -0
  623. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.scss +0 -0
  624. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.ts +48 -0
  625. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.html +69 -0
  626. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.scss +0 -0
  627. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.ts +41 -0
  628. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.html +53 -0
  629. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.scss +0 -0
  630. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.ts +41 -0
  631. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.html +54 -0
  632. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.scss +0 -0
  633. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.ts +46 -0
  634. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.html +178 -0
  635. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.scss +0 -0
  636. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.ts +51 -0
  637. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.html +23 -0
  638. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.scss +0 -0
  639. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.ts +41 -0
  640. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-parking/ca-input-dropdown-parking.component.html +40 -0
  641. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-parking/ca-input-dropdown-parking.component.scss +0 -0
  642. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-parking/ca-input-dropdown-parking.component.ts +58 -0
  643. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.html +84 -0
  644. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.scss +0 -0
  645. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.ts +48 -0
  646. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.html +36 -0
  647. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.scss +0 -0
  648. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.ts +41 -0
  649. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.html +113 -0
  650. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.scss +0 -0
  651. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.ts +58 -0
  652. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.html +103 -0
  653. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.scss +0 -0
  654. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.ts +68 -0
  655. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.html +34 -0
  656. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.scss +0 -0
  657. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.ts +40 -0
  658. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.html +60 -0
  659. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.scss +0 -0
  660. package/lib/components/ca-input-dropdown/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.ts +46 -0
  661. package/lib/components/ca-input-dropdown/enums/dropdown-string.enum.ts +4 -0
  662. package/lib/components/ca-input-dropdown/enums/dropdown-template-type.enum.ts +22 -0
  663. package/lib/components/ca-input-dropdown/enums/index.ts +2 -0
  664. package/lib/components/ca-input-dropdown/models/index.ts +3 -0
  665. package/lib/components/ca-input-dropdown/models/input-dropdown-option.model.ts +98 -0
  666. package/lib/components/ca-input-dropdown/models/load-modal-status.model.ts +5 -0
  667. package/lib/components/ca-input-dropdown/models/status-order.model.ts +4 -0
  668. package/lib/components/ca-input-dropdown/pipes/dropdown-count.pipe.ts +22 -0
  669. package/lib/components/ca-input-dropdown/pipes/index.ts +8 -0
  670. package/lib/components/ca-input-dropdown/pipes/input-dropdown-default-template-class.pipe.ts +30 -0
  671. package/lib/components/ca-input-dropdown/pipes/input-dropdown-fuel-franchise-class.pipe.ts +20 -0
  672. package/lib/components/ca-input-dropdown/pipes/input-dropdown-label-class.pipe.ts +32 -0
  673. package/lib/components/ca-input-dropdown/pipes/input-dropdown-load-broker-container.pipe.ts +27 -0
  674. package/lib/components/ca-input-dropdown/pipes/input-dropdown-multiselect-class.pipe.ts +26 -0
  675. package/lib/components/ca-input-dropdown/pipes/input-dropdown-svgtext-template-container.pipe.ts +27 -0
  676. package/lib/components/ca-input-dropdown/pipes/input-dropdown-svgtext-template-icon.pipe.ts +24 -0
  677. package/lib/components/ca-input-dropdown/utils/constants/index.ts +1 -0
  678. package/lib/components/ca-input-dropdown/utils/constants/input-dropdown.constants.ts +206 -0
  679. package/lib/components/ca-input-dropdown/utils/svg-routes/index.ts +1 -0
  680. package/lib/components/ca-input-dropdown/utils/svg-routes/input-dropdown-svg-routes.ts +13 -0
  681. package/lib/components/ca-input-dropdown-test/animations/index.ts +1 -0
  682. package/lib/components/ca-input-dropdown-test/animations/input-dropdown.animation.ts +24 -0
  683. package/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.component.html +835 -0
  684. package/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.component.scss +276 -0
  685. package/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.component.ts +897 -0
  686. package/lib/components/ca-input-dropdown-test/ca-input-dropdown-test.stories.ts +837 -0
  687. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.html +26 -0
  688. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.scss +0 -0
  689. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-default-template/ca-input-dropdown-default-template.component.ts +66 -0
  690. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.html +136 -0
  691. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.scss +0 -0
  692. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-details-template/ca-input-dropdown-details-template.component.ts +77 -0
  693. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.html +32 -0
  694. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.scss +0 -0
  695. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-dispatch/ca-input-dropdown-dispatch.component.ts +67 -0
  696. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.html +58 -0
  697. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.scss +0 -0
  698. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-double-text-template/ca-input-dropdown-double-text-template.component.ts +69 -0
  699. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.html +77 -0
  700. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.scss +0 -0
  701. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-fuel-franchise/ca-input-dropdown-fuel-franchise.component.ts +83 -0
  702. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.html +42 -0
  703. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.scss +0 -0
  704. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-groups/ca-input-dropdown-groups.component.ts +64 -0
  705. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.html +63 -0
  706. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.scss +0 -0
  707. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-labels/ca-input-dropdown-labels.component.ts +73 -0
  708. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker-item/ca-input-dropdown-load-broker-item.component.html +49 -0
  709. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker-item/ca-input-dropdown-load-broker-item.component.scss +0 -0
  710. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker-item/ca-input-dropdown-load-broker-item.component.ts +33 -0
  711. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.html +17 -0
  712. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.scss +0 -0
  713. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker/ca-input-dropdown-load-broker.component.ts +74 -0
  714. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.html +37 -0
  715. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.scss +5 -0
  716. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.spec.ts +23 -0
  717. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact-item/ca-input-dropdown-load-broker-contact-item.component.ts +26 -0
  718. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.html +47 -0
  719. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.scss +0 -0
  720. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-contact/ca-input-dropdown-load-broker-contact.component.ts +68 -0
  721. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper-item/ca-input-dropdown-load-broker-shipper-item.component.html +56 -0
  722. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper-item/ca-input-dropdown-load-broker-shipper-item.component.scss +0 -0
  723. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper-item/ca-input-dropdown-load-broker-shipper-item.component.ts +27 -0
  724. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.html +22 -0
  725. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.scss +3 -0
  726. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-broker-shipper/ca-input-dropdown-load-broker-shipper.component.ts +66 -0
  727. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher-item/ca-input-dropdown-load-dispatcher-item.component.html +40 -0
  728. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher-item/ca-input-dropdown-load-dispatcher-item.component.scss +0 -0
  729. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher-item/ca-input-dropdown-load-dispatcher-item.component.ts +39 -0
  730. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.html +32 -0
  731. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.scss +0 -0
  732. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatcher/ca-input-dropdown-load-dispatcher.component.ts +68 -0
  733. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd-item/ca-input-dropdown-load-dispatches-ttd-item.html +166 -0
  734. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd-item/ca-input-dropdown-load-dispatches-ttd-item.scss +0 -0
  735. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd-item/ca-input-dropdown-load-dispatches-ttd-item.ts +38 -0
  736. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.html +24 -0
  737. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.scss +0 -0
  738. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-load-dispatches-ttd/ca-input-dropdown-load-dispatches-ttd.component.ts +73 -0
  739. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.html +24 -0
  740. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.scss +0 -0
  741. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-multiselect/ca-input-dropdown-multiselect.component.ts +64 -0
  742. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.html +87 -0
  743. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.scss +0 -0
  744. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-payroll-trucks/ca-input-dropdown-payroll-trucks.component.ts +68 -0
  745. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.html +38 -0
  746. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.scss +0 -0
  747. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svg-template/ca-input-dropdown-svg-template.component.ts +68 -0
  748. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.html +123 -0
  749. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.scss +0 -0
  750. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-dispatch-template/ca-input-dropdown-svgtext-dispatch-template.component.ts +80 -0
  751. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.css +0 -0
  752. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.html +105 -0
  753. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.spec.ts +23 -0
  754. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template-item/ca-input-dropdown-svgtext-template-item.component.ts +55 -0
  755. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.html +19 -0
  756. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.scss +0 -0
  757. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-svgtext-template/ca-input-dropdown-svgtext-template.component.ts +91 -0
  758. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.html +38 -0
  759. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.scss +0 -0
  760. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-text-counter/ca-input-dropdown-text-counter.component.ts +63 -0
  761. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.html +63 -0
  762. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.scss +0 -0
  763. package/lib/components/ca-input-dropdown-test/components/ca-input-dropdown-triple-text-template/ca-input-dropdown-triple-text-template.component.ts +61 -0
  764. package/lib/components/ca-input-dropdown-test/enums/dropdown-string.enum.ts +4 -0
  765. package/lib/components/ca-input-dropdown-test/enums/dropdown-template-type.enum.ts +21 -0
  766. package/lib/components/ca-input-dropdown-test/enums/index.ts +2 -0
  767. package/lib/components/ca-input-dropdown-test/interfaces/index.ts +1 -0
  768. package/lib/components/ca-input-dropdown-test/interfaces/input-dropdown-option.interface.ts +103 -0
  769. package/lib/components/ca-input-dropdown-test/interfaces/selected-status.interface.ts +5 -0
  770. package/lib/components/ca-input-dropdown-test/interfaces/status-order.interface.ts +4 -0
  771. package/lib/components/ca-input-dropdown-test/pipes/dropdown-count.pipe.ts +25 -0
  772. package/lib/components/ca-input-dropdown-test/pipes/dropdown-options.pipe.ts +107 -0
  773. package/lib/components/ca-input-dropdown-test/pipes/index.ts +9 -0
  774. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-default-template-class.pipe.ts +38 -0
  775. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-fuel-franchise-class.pipe.ts +22 -0
  776. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-get-icon.pipe.ts +28 -0
  777. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-label-class.pipe.ts +37 -0
  778. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-load-broker-container.pipe.ts +28 -0
  779. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-multiselect-class.pipe.ts +31 -0
  780. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-container.pipe.ts +29 -0
  781. package/lib/components/ca-input-dropdown-test/pipes/input-dropdown-svgtext-template-icon.pipe.ts +28 -0
  782. package/lib/components/ca-input-dropdown-test/types/index.ts +1 -0
  783. package/lib/components/ca-input-dropdown-test/types/input-dropdown-forms.type.ts +9 -0
  784. package/lib/components/ca-input-dropdown-test/types/select-dropdown-value.type.ts +8 -0
  785. package/lib/components/ca-input-dropdown-test/utils/constants/index.ts +1 -0
  786. package/lib/components/ca-input-dropdown-test/utils/constants/input-dropdown.constants.ts +2948 -0
  787. package/lib/components/ca-input-dropdown-test/utils/svg-routes/index.ts +1 -0
  788. package/lib/components/ca-input-dropdown-test/utils/svg-routes/input-dropdown-svg-routes.ts +13 -0
  789. package/lib/components/ca-input-dropdown-test/validators/dropdown-empty-value.validator.ts +11 -0
  790. package/lib/components/ca-input-dropdown-test/validators/index.ts +1 -0
  791. package/lib/components/ca-input-note/ca-input-note.component.html +91 -0
  792. package/lib/components/ca-input-note/ca-input-note.component.scss +171 -0
  793. package/lib/components/ca-input-note/ca-input-note.component.spec.ts +24 -0
  794. package/lib/components/ca-input-note/ca-input-note.component.ts +229 -0
  795. package/lib/components/ca-input-note/ca-input-note.stories.ts +64 -0
  796. package/lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component.html +28 -0
  797. package/lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component.scss +97 -0
  798. package/lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component.spec.ts +24 -0
  799. package/lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component.ts +43 -0
  800. package/lib/components/ca-input-radiobuttons/ca-input-radiobuttons.stories.ts +84 -0
  801. package/lib/components/ca-input-test/base-classes/ca-input-base-helpres.ts +343 -0
  802. package/lib/components/ca-input-test/base-classes/ca-input-base.ts +1394 -0
  803. package/lib/components/ca-input-test/base-classes/ca-input-event-manager.ts +32 -0
  804. package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.html +33 -0
  805. package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.scss +0 -0
  806. package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.spec.ts +26 -0
  807. package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.ts +75 -0
  808. package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.html +85 -0
  809. package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.scss +0 -0
  810. package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.spec.ts +26 -0
  811. package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.ts +46 -0
  812. package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.html +38 -0
  813. package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.scss +0 -0
  814. package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.spec.ts +25 -0
  815. package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.ts +58 -0
  816. package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.html +56 -0
  817. package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.scss +0 -0
  818. package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.spec.ts +25 -0
  819. package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.ts +79 -0
  820. package/lib/components/ca-input-test/config/ca-input.config.ts +196 -0
  821. package/lib/components/ca-input-test/config/index.ts +1 -0
  822. package/lib/components/ca-input-test/custom-validators/email-custom.validator.ts +9 -0
  823. package/lib/components/ca-input-test/custom-validators/url-custom.validator.ts +9 -0
  824. package/lib/components/ca-input-test/directives/caps-lock.directive.ts +44 -0
  825. package/lib/components/ca-input-test/directives/command-visible.directive.ts +44 -0
  826. package/lib/components/ca-input-test/directives/index.ts +5 -0
  827. package/lib/components/ca-input-test/directives/input-max-value.directive.ts +48 -0
  828. package/lib/components/ca-input-test/directives/min-max-value.directive.ts +37 -0
  829. package/lib/components/ca-input-test/directives/price_format.directive.ts +35 -0
  830. package/lib/components/ca-input-test/directives/restrict-input.directive.ts +134 -0
  831. package/lib/components/ca-input-test/enums/index.ts +4 -0
  832. package/lib/components/ca-input-test/enums/input-commands-action.enum.ts +9 -0
  833. package/lib/components/ca-input-test/enums/input-commands-type.enum.ts +7 -0
  834. package/lib/components/ca-input-test/enums/input-config-name-string.enum.ts +7 -0
  835. package/lib/components/ca-input-test/enums/input-string.enum.ts +115 -0
  836. package/lib/components/ca-input-test/enums/input-text-transform.enum.ts +6 -0
  837. package/lib/components/ca-input-test/input-test.component.html +352 -0
  838. package/lib/components/ca-input-test/input-test.component.scss +413 -0
  839. package/lib/components/ca-input-test/input-test.component.spec.ts +23 -0
  840. package/lib/components/ca-input-test/input-test.component.ts +401 -0
  841. package/lib/components/ca-input-test/input-test.stories.ts +838 -0
  842. package/lib/components/ca-input-test/mixins/input-command.mixin.ts +159 -0
  843. package/lib/components/ca-input-test/mixins/input-helper.mixin.ts +61 -0
  844. package/lib/components/ca-input-test/mixins/input.mixin.ts +19 -0
  845. package/lib/components/ca-input-test/mixins/restriction-pipe.mixin.ts +54 -0
  846. package/lib/components/ca-input-test/models/base.model.ts +24 -0
  847. package/lib/components/ca-input-test/models/command-click.model.ts +5 -0
  848. package/lib/components/ca-input-test/models/commands-event.model.ts +5 -0
  849. package/lib/components/ca-input-test/models/index.ts +3 -0
  850. package/lib/components/ca-input-test/models/label-color.model.ts +11 -0
  851. package/lib/components/ca-input-test/pipes/color-finder.pipe.ts +55 -0
  852. package/lib/components/ca-input-test/pipes/form-control.pipe.ts +12 -0
  853. package/lib/components/ca-input-test/pipes/index.ts +19 -0
  854. package/lib/components/ca-input-test/pipes/input-class.pipe.ts +195 -0
  855. package/lib/components/ca-input-test/pipes/input-clear-class.pipe.ts +104 -0
  856. package/lib/components/ca-input-test/pipes/input-container-class.pipe.ts +68 -0
  857. package/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.ts +90 -0
  858. package/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.ts +68 -0
  859. package/lib/components/ca-input-test/pipes/input-error.pipe.ts +72 -0
  860. package/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.ts +43 -0
  861. package/lib/components/ca-input-test/pipes/input-pattern.pipe.ts +308 -0
  862. package/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.ts +56 -0
  863. package/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.ts +69 -0
  864. package/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.ts +53 -0
  865. package/lib/components/ca-input-test/pipes/input-type.pipe.ts +18 -0
  866. package/lib/components/ca-input-test/pipes/label-class.pipe.ts +54 -0
  867. package/lib/components/ca-input-test/pipes/show-clear.pipe.ts +20 -0
  868. package/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.ts +24 -0
  869. package/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.ts +31 -0
  870. package/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.ts +27 -0
  871. package/lib/components/ca-input-test/pipes/show-valid-check.pipe.ts +31 -0
  872. package/lib/components/ca-input-test/scss/ca-dropdown-input-image.scss +109 -0
  873. package/lib/components/ca-input-test/scss/ca-input.clear.scss +360 -0
  874. package/lib/components/ca-input-test/scss/ca-input.colors.scss +287 -0
  875. package/lib/components/ca-input-test/scss/ca-input.commands.scss +187 -0
  876. package/lib/components/ca-input-test/scss/ca-input.dangermark.scss +17 -0
  877. package/lib/components/ca-input-test/scss/ca-input.datepicker.scss +153 -0
  878. package/lib/components/ca-input-test/scss/ca-input.dropdown.scss +124 -0
  879. package/lib/components/ca-input-test/scss/ca-input.editlabel.scss +42 -0
  880. package/lib/components/ca-input-test/scss/ca-input.error.scss +34 -0
  881. package/lib/components/ca-input-test/scss/ca-input.input.scss +837 -0
  882. package/lib/components/ca-input-test/scss/ca-input.label.scss +281 -0
  883. package/lib/components/ca-input-test/scss/ca-input.labelcounter.scss +21 -0
  884. package/lib/components/ca-input-test/scss/ca-input.passwordcapslock.scss +17 -0
  885. package/lib/components/ca-input-test/scss/ca-input.passwordeye.scss +138 -0
  886. package/lib/components/ca-input-test/scss/ca-input.placeholderText.scss +82 -0
  887. package/lib/components/ca-input-test/scss/ca-input.placeholdericon-rightside.scss +89 -0
  888. package/lib/components/ca-input-test/scss/ca-input.placeholdericon.scss +195 -0
  889. package/lib/components/ca-input-test/scss/ca-input.requiredcheck.scss +19 -0
  890. package/lib/components/ca-input-test/scss/ca-input.spinner.scss +5 -0
  891. package/lib/components/ca-input-test/services/ca-input-validation.service.ts +246 -0
  892. package/lib/components/ca-input-test/services/index.ts +1 -0
  893. package/lib/components/ca-input-test/utils/constants/index.ts +1 -0
  894. package/lib/components/ca-input-test/utils/constants/input-constants.ts +129 -0
  895. package/lib/components/ca-input-test/utils/index.ts +2 -0
  896. package/lib/components/ca-input-test/utils/input-change-value.type.ts +1 -0
  897. package/lib/components/ca-input-test/utils/input-svg-routes.ts +26 -0
  898. package/lib/components/ca-input-test/versions/datetime/datetimepicker.directive.spec.ts +8 -0
  899. package/lib/components/ca-input-test/versions/datetime/datetimepicker.directive.ts +9 -0
  900. package/lib/components/ca-items-dropdown/ca-items-dropdown.component.html +202 -0
  901. package/lib/components/ca-items-dropdown/ca-items-dropdown.component.scss +27 -0
  902. package/lib/components/ca-items-dropdown/ca-items-dropdown.component.spec.ts +23 -0
  903. package/lib/components/ca-items-dropdown/ca-items-dropdown.component.ts +102 -0
  904. package/lib/components/ca-items-dropdown/interfaces/index.ts +2 -0
  905. package/lib/components/ca-items-dropdown/interfaces/items-dropdown-config.interface.ts +7 -0
  906. package/lib/components/ca-items-dropdown/interfaces/items-dropdown-list.interface.ts +11 -0
  907. package/lib/components/ca-items-dropdown/pipes/dropdown-width.pipe.ts +13 -0
  908. package/lib/components/ca-items-dropdown/pipes/index.ts +2 -0
  909. package/lib/components/ca-items-dropdown/pipes/pm-item.pipe.ts +22 -0
  910. package/lib/components/ca-items-dropdown/utils/helpers/index.ts +1 -0
  911. package/lib/components/ca-items-dropdown/utils/helpers/items-dropdown.helper.ts +10 -0
  912. package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.html +111 -0
  913. package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.scss +127 -0
  914. package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.spec.ts +23 -0
  915. package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.stories.ts +71 -0
  916. package/lib/components/ca-last-fuel-price-progress/ca-last-fuel-price-progress.component.ts +123 -0
  917. package/lib/components/ca-last-fuel-price-progress/enums/index.ts +1 -0
  918. package/lib/components/ca-last-fuel-price-progress/enums/last-fuel-price-progress.enum.ts +4 -0
  919. package/lib/components/ca-last-fuel-price-progress/interfaces/index.ts +2 -0
  920. package/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-config.interface.ts +10 -0
  921. package/lib/components/ca-last-fuel-price-progress/interfaces/last-fuel-price-progress-data.interface.ts +12 -0
  922. package/lib/components/ca-last-fuel-price-progress/utils/constants/index.ts +1 -0
  923. package/lib/components/ca-last-fuel-price-progress/utils/constants/last-fuel-price-progress.constants.ts +9 -0
  924. package/lib/components/ca-last-fuel-price-progress/utils/helpers/index.ts +1 -0
  925. package/lib/components/ca-last-fuel-price-progress/utils/helpers/last-fuel-price-progress.helper.ts +100 -0
  926. package/lib/components/ca-last-fuel-price-progress/utils/svg-routes/index.ts +1 -0
  927. package/lib/components/ca-last-fuel-price-progress/utils/svg-routes/last-fuel-price-progress-svg-routes.ts +4 -0
  928. package/lib/components/ca-load-modal-progress-bar/ca-load-modal-progress-bar.component.html +14 -0
  929. package/lib/components/ca-load-modal-progress-bar/ca-load-modal-progress-bar.component.scss +39 -0
  930. package/lib/components/ca-load-modal-progress-bar/ca-load-modal-progress-bar.component.ts +79 -0
  931. package/lib/components/ca-load-pickup-delivery/ca-load-pickup-delivery.component.html +383 -0
  932. package/lib/components/ca-load-pickup-delivery/ca-load-pickup-delivery.component.scss +60 -0
  933. package/lib/components/ca-load-pickup-delivery/ca-load-pickup-delivery.component.spec.ts +21 -0
  934. package/lib/components/ca-load-pickup-delivery/ca-load-pickup-delivery.component.ts +163 -0
  935. package/lib/components/ca-load-pickup-delivery/ca-load-pickup-delivery.stories.ts +740 -0
  936. package/lib/components/ca-load-pickup-delivery/interfaces/index.ts +1 -0
  937. package/lib/components/ca-load-pickup-delivery/interfaces/load-pickup-delivery.interface.ts +74 -0
  938. package/lib/components/ca-load-pickup-delivery/types/index.ts +1 -0
  939. package/lib/components/ca-load-pickup-delivery/types/load-type.type.ts +7 -0
  940. package/lib/components/ca-load-status/ca-load-status.component.html +90 -0
  941. package/lib/components/ca-load-status/ca-load-status.component.scss +323 -0
  942. package/lib/components/ca-load-status/ca-load-status.component.ts +92 -0
  943. package/lib/components/ca-load-status/ca-load-status.stories.ts +318 -0
  944. package/lib/components/ca-load-status/constants/load-status.constants.ts +18 -0
  945. package/lib/components/ca-load-status/enums/load-status-background-colors.enum.ts +17 -0
  946. package/lib/components/ca-load-status/enums/load-status-icon-colors.enum.ts +13 -0
  947. package/lib/components/ca-load-status/enums/load-status-svg-colors.enum.ts +13 -0
  948. package/lib/components/ca-load-status/pipes/status-text.pipe.ts +73 -0
  949. package/lib/components/ca-load-status-log/ca-load-status-log.component.html +100 -0
  950. package/lib/components/ca-load-status-log/ca-load-status-log.component.scss +20 -0
  951. package/lib/components/ca-load-status-log/ca-load-status-log.component.stories.ts +71 -0
  952. package/lib/components/ca-load-status-log/ca-load-status-log.component.ts +60 -0
  953. package/lib/components/ca-load-status-string/ca-load-status-string.component.html +62 -0
  954. package/lib/components/ca-load-status-string/ca-load-status-string.component.scss +97 -0
  955. package/lib/components/ca-load-status-string/ca-load-status-string.component.ts +53 -0
  956. package/lib/components/ca-load-status-string/pipes/index.ts +1 -0
  957. package/lib/components/ca-load-status-string/pipes/load-status-string-class.pipe.ts +31 -0
  958. package/lib/components/ca-logo-change/ca-logo-change.component.html +71 -0
  959. package/lib/components/ca-logo-change/ca-logo-change.component.scss +182 -0
  960. package/lib/components/ca-logo-change/ca-logo-change.component.stories.ts +59 -0
  961. package/lib/components/ca-logo-change/ca-logo-change.component.ts +150 -0
  962. package/lib/components/ca-logo-change/enums/index.ts +1 -0
  963. package/lib/components/ca-logo-change/enums/logo-change.enum.ts +8 -0
  964. package/lib/components/ca-logo-change/pipes/index.ts +1 -0
  965. package/lib/components/ca-logo-change/pipes/logo-slider.pipe.ts +11 -0
  966. package/lib/components/ca-logo-change/utils/constants/index.ts +1 -0
  967. package/lib/components/ca-logo-change/utils/constants/logo-change.constants.ts +20 -0
  968. package/lib/components/ca-main-table/ca-main-table.component.html +220 -0
  969. package/lib/components/ca-main-table/ca-main-table.component.scss +298 -0
  970. package/lib/components/ca-main-table/ca-main-table.component.spec.ts +23 -0
  971. package/lib/components/ca-main-table/ca-main-table.component.ts +131 -0
  972. package/lib/components/ca-main-table/ca-main-table.stories.ts +187 -0
  973. package/lib/components/ca-main-table/models/main-table.model.ts +24 -0
  974. package/lib/components/ca-main-table/pipes/ca-main-table-hidden-rows/ca-main-table-hidden-rows.pipe.spec.ts +8 -0
  975. package/lib/components/ca-main-table/pipes/ca-main-table-hidden-rows/ca-main-table-hidden-rows.pipe.ts +18 -0
  976. package/lib/components/ca-map/ca-map.component.html +190 -0
  977. package/lib/components/ca-map/ca-map.component.scss +451 -0
  978. package/lib/components/ca-map/ca-map.component.ts +825 -0
  979. package/lib/components/ca-map/ca-map.stories.ts +1594 -0
  980. package/lib/components/ca-map/enums/google-map.enum.ts +6 -0
  981. package/lib/components/ca-map/enums/index.ts +4 -0
  982. package/lib/components/ca-map/enums/map-marker-stop-type.enum.ts +13 -0
  983. package/lib/components/ca-map/enums/map-marker-string.enum.ts +27 -0
  984. package/lib/components/ca-map/enums/toolbar-filter-string.enum.ts +129 -0
  985. package/lib/components/ca-map/models/index.ts +1 -0
  986. package/lib/components/ca-map/models/map.model.ts +166 -0
  987. package/lib/components/ca-map/utils/constants/index.ts +4 -0
  988. package/lib/components/ca-map/utils/constants/map-info-window-options.constants.ts +6 -0
  989. package/lib/components/ca-map/utils/constants/map-marker-icons.constants.ts +121 -0
  990. package/lib/components/ca-map/utils/constants/map-options.constants.ts +178 -0
  991. package/lib/components/ca-map/utils/constants/map.constants.ts +437 -0
  992. package/lib/components/ca-map/utils/helpers/index.ts +2 -0
  993. package/lib/components/ca-map/utils/helpers/map-marker-icon.helper.ts +776 -0
  994. package/lib/components/ca-map/utils/helpers/map.helper.ts +192 -0
  995. package/lib/components/ca-map/utils/services/index.ts +1 -0
  996. package/lib/components/ca-map/utils/services/map-marker-icon.service.ts +312 -0
  997. package/lib/components/ca-map/utils/svg-routes/index.ts +1 -0
  998. package/lib/components/ca-map/utils/svg-routes/map-svg-routes.ts +19 -0
  999. package/lib/components/ca-map-dropdown/ca-map-dropdown.component.html +702 -0
  1000. package/lib/components/ca-map-dropdown/ca-map-dropdown.component.scss +541 -0
  1001. package/lib/components/ca-map-dropdown/ca-map-dropdown.component.spec.ts +21 -0
  1002. package/lib/components/ca-map-dropdown/ca-map-dropdown.component.ts +178 -0
  1003. package/lib/components/ca-map-dropdown/enums/index.ts +1 -0
  1004. package/lib/components/ca-map-dropdown/enums/map-dropdown-string.enum.ts +20 -0
  1005. package/lib/components/ca-map-dropdown/models/index.ts +1 -0
  1006. package/lib/components/ca-map-dropdown/models/map-dropdown-content.model.ts +57 -0
  1007. package/lib/components/ca-map-dropdown/pipes/index.ts +3 -0
  1008. package/lib/components/ca-map-dropdown/pipes/map-dropdown-cluster-content-type.pipe.ts +16 -0
  1009. package/lib/components/ca-map-dropdown/pipes/map-dropdown-content-type.pipe.ts +16 -0
  1010. package/lib/components/ca-map-dropdown/pipes/map-dropdown-value.pipe.ts +33 -0
  1011. package/lib/components/ca-map-dropdown/utils/svg-routes/index.ts +1 -0
  1012. package/lib/components/ca-map-dropdown/utils/svg-routes/map-dropdown-svg-routes.ts +22 -0
  1013. package/lib/components/ca-map-list/ca-map-list.component.html +74 -0
  1014. package/lib/components/ca-map-list/ca-map-list.component.scss +34 -0
  1015. package/lib/components/ca-map-list/ca-map-list.component.spec.ts +23 -0
  1016. package/lib/components/ca-map-list/ca-map-list.component.ts +192 -0
  1017. package/lib/components/ca-map-list/utils/constants/index.ts +1 -0
  1018. package/lib/components/ca-map-list/utils/constants/map-list.constants.ts +11 -0
  1019. package/lib/components/ca-map-list-card/ca-map-list-card.component.html +41 -0
  1020. package/lib/components/ca-map-list-card/ca-map-list-card.component.scss +0 -0
  1021. package/lib/components/ca-map-list-card/ca-map-list-card.component.spec.ts +23 -0
  1022. package/lib/components/ca-map-list-card/ca-map-list-card.component.ts +28 -0
  1023. package/lib/components/ca-modal/ca-modal.component.html +59 -0
  1024. package/lib/components/ca-modal/ca-modal.component.scss +345 -0
  1025. package/lib/components/ca-modal/ca-modal.component.spec.ts +21 -0
  1026. package/lib/components/ca-modal/ca-modal.component.ts +60 -0
  1027. package/lib/components/ca-modal-button/ca-modal-button.component.html +68 -0
  1028. package/lib/components/ca-modal-button/ca-modal-button.component.scss +396 -0
  1029. package/lib/components/ca-modal-button/ca-modal-button.component.spec.ts +23 -0
  1030. package/lib/components/ca-modal-button/ca-modal-button.component.ts +35 -0
  1031. package/lib/components/ca-modal-button/ca-modal-button.stories.ts +255 -0
  1032. package/lib/components/ca-modal-button/enums/index.ts +2 -0
  1033. package/lib/components/ca-modal-button/enums/modal-button-class-type.enum.ts +15 -0
  1034. package/lib/components/ca-modal-button/enums/modal-button-size.enum.ts +10 -0
  1035. package/lib/components/ca-modal-button/pipes/index.ts +1 -0
  1036. package/lib/components/ca-modal-button/pipes/modal-button-class.pipe.ts +22 -0
  1037. package/lib/components/ca-modal-items/ca-modal-items.component.html +436 -0
  1038. package/lib/components/ca-modal-items/ca-modal-items.component.scss +63 -0
  1039. package/lib/components/ca-modal-items/ca-modal-items.component.spec.ts +23 -0
  1040. package/lib/components/ca-modal-items/ca-modal-items.component.ts +137 -0
  1041. package/lib/components/ca-modal-items/directives/index.ts +1 -0
  1042. package/lib/components/ca-modal-items/directives/scroll-shadow-border.directive.ts +199 -0
  1043. package/lib/components/ca-modal-items/enums/index.ts +1 -0
  1044. package/lib/components/ca-modal-items/enums/modal-items.enum.ts +4 -0
  1045. package/lib/components/ca-modal-items/interfaces/index.ts +2 -0
  1046. package/lib/components/ca-modal-items/interfaces/items-row-template.interface.ts +8 -0
  1047. package/lib/components/ca-modal-items/interfaces/modal-items-config.interface.ts +29 -0
  1048. package/lib/components/ca-modal-items/pipes/index.ts +1 -0
  1049. package/lib/components/ca-modal-items/pipes/modal-items-header-class.pipe.ts +34 -0
  1050. package/lib/components/ca-modal-spinner/ca-modal-spinner.component.html +7 -0
  1051. package/lib/components/ca-modal-spinner/ca-modal-spinner.component.scss +10 -0
  1052. package/lib/components/ca-modal-spinner/ca-modal-spinner.component.spec.ts +23 -0
  1053. package/lib/components/ca-modal-spinner/ca-modal-spinner.component.ts +10 -0
  1054. package/lib/components/ca-new-filter/ca-filter-dropdown.component.html +142 -0
  1055. package/lib/components/ca-new-filter/ca-filter-dropdown.component.scss +1 -0
  1056. package/lib/components/ca-new-filter/ca-filter-dropdown.component.spec.ts +23 -0
  1057. package/lib/components/ca-new-filter/ca-filter-dropdown.component.ts +138 -0
  1058. package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.html +232 -0
  1059. package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.scss +9 -0
  1060. package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.spec.ts +23 -0
  1061. package/lib/components/ca-new-filter/components/ca-filter-list-dropdown/ca-filter-list-dropdown.component.ts +215 -0
  1062. package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.html +159 -0
  1063. package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.scss +8 -0
  1064. package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.spec.ts +23 -0
  1065. package/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.ts +172 -0
  1066. package/lib/components/ca-new-filter/components/new-filter-base/new-filter-base.component.css +0 -0
  1067. package/lib/components/ca-new-filter/components/new-filter-base/new-filter-base.component.html +1 -0
  1068. package/lib/components/ca-new-filter/components/new-filter-base/new-filter-base.component.spec.ts +23 -0
  1069. package/lib/components/ca-new-filter/components/new-filter-base/new-filter-base.component.ts +40 -0
  1070. package/lib/components/ca-new-filter/constant/filter-dropdown-icons.constant.ts +141 -0
  1071. package/lib/components/ca-new-filter/constant/index.ts +1 -0
  1072. package/lib/components/ca-new-filter/enums/filter-dropdown-types.enum.ts +18 -0
  1073. package/lib/components/ca-new-filter/enums/filter-sorting-key.enum.ts +4 -0
  1074. package/lib/components/ca-new-filter/enums/filter-time.enum.ts +35 -0
  1075. package/lib/components/ca-new-filter/enums/index.ts +3 -0
  1076. package/lib/components/ca-new-filter/interface/country.interface.ts +15 -0
  1077. package/lib/components/ca-new-filter/interface/filter-action.interface.ts +27 -0
  1078. package/lib/components/ca-new-filter/interface/filter-dropdown-configuration.interface.ts +15 -0
  1079. package/lib/components/ca-new-filter/interface/filter-dropdown-list.ts +21 -0
  1080. package/lib/components/ca-new-filter/interface/index.ts +6 -0
  1081. package/lib/components/ca-new-filter/interface/sorting-emmiter.interface.ts +6 -0
  1082. package/lib/components/ca-new-filter/interface/time-options.interface.ts +4 -0
  1083. package/lib/components/ca-new-filter/pipes/filter-search.pipe.spec.ts +8 -0
  1084. package/lib/components/ca-new-filter/pipes/filter-search.pipe.ts +30 -0
  1085. package/lib/components/ca-new-filter/types/filter-dropdown.types.ts +15 -0
  1086. package/lib/components/ca-new-filter/types/filter-sorting-key.type.ts +3 -0
  1087. package/lib/components/ca-new-filter/types/filter-time.types.ts +3 -0
  1088. package/lib/components/ca-new-filter/types/index.ts +3 -0
  1089. package/lib/components/ca-new-filter/utils/configs/filter-dropdown-fields.config.ts +41 -0
  1090. package/lib/components/ca-new-filter/utils/configs/index.ts +1 -0
  1091. package/lib/components/ca-new-filter/utils/helpers/index.ts +1 -0
  1092. package/lib/components/ca-new-filter/utils/helpers/time-filter.helper.ts +142 -0
  1093. package/lib/components/ca-ngx-slider/ca-ngx-slider.component.html +54 -0
  1094. package/lib/components/ca-ngx-slider/ca-ngx-slider.component.scss +188 -0
  1095. package/lib/components/ca-ngx-slider/ca-ngx-slider.component.ts +84 -0
  1096. package/lib/components/ca-ngx-slider/enums/slider-template.enum.ts +6 -0
  1097. package/lib/components/ca-note/ca-note.component.html +138 -0
  1098. package/lib/components/ca-note/ca-note.component.scss +445 -0
  1099. package/lib/components/ca-note/ca-note.component.stories.ts +43 -0
  1100. package/lib/components/ca-note/ca-note.component.ts +289 -0
  1101. package/lib/components/ca-note/utils/helper/copy-paste.helper.ts +8 -0
  1102. package/lib/components/ca-note/utils/svg-routes/note-svg-routes.ts +5 -0
  1103. package/lib/components/ca-note-container/ca-note-container.component.html +137 -0
  1104. package/lib/components/ca-note-container/ca-note-container.component.scss +333 -0
  1105. package/lib/components/ca-note-container/ca-note-container.component.spec.ts +21 -0
  1106. package/lib/components/ca-note-container/ca-note-container.component.ts +226 -0
  1107. package/lib/components/ca-note-container/enums/note-default-string.enum.ts +9 -0
  1108. package/lib/components/ca-note-container/enums/note-selected-color.enum.ts +4 -0
  1109. package/lib/components/ca-note-container/models/note-colors.model.ts +4 -0
  1110. package/lib/components/ca-note-container/utils/constants/note-config.constant.ts +65 -0
  1111. package/lib/components/ca-note-container/utils/svg-routes/note-container-svg-routes.ts +8 -0
  1112. package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.html +105 -0
  1113. package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.scss +234 -0
  1114. package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.spec.ts +26 -0
  1115. package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.ts +70 -0
  1116. package/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.stories.ts +87 -0
  1117. package/lib/components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.component.html +18 -0
  1118. package/lib/components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.component.scss +24 -0
  1119. package/lib/components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.component.spec.ts +22 -0
  1120. package/lib/components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.component.ts +27 -0
  1121. package/lib/components/ca-payroll-list-summary-overview-table/ca-payroll-list-summary-overview-table.stories.ts +47 -0
  1122. package/lib/components/ca-period-content/ca-period-content.component.html +221 -0
  1123. package/lib/components/ca-period-content/ca-period-content.component.scss +160 -0
  1124. package/lib/components/ca-period-content/ca-period-content.component.spec.ts +21 -0
  1125. package/lib/components/ca-period-content/ca-period-content.component.ts +90 -0
  1126. package/lib/components/ca-period-content/ca-period-content.stories.ts +68 -0
  1127. package/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.html +19 -0
  1128. package/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.scss +30 -0
  1129. package/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.spec.ts +20 -0
  1130. package/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.ts +14 -0
  1131. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.html +335 -0
  1132. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.scss +339 -0
  1133. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.spec.ts +21 -0
  1134. package/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.ts +194 -0
  1135. package/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.html +60 -0
  1136. package/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.scss +152 -0
  1137. package/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.spec.ts +21 -0
  1138. package/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.ts +54 -0
  1139. package/lib/components/ca-period-content/components/index.ts +3 -0
  1140. package/lib/components/ca-period-content/enums/index.ts +2 -0
  1141. package/lib/components/ca-period-content/enums/payroll-type.enum.ts +15 -0
  1142. package/lib/components/ca-period-content/enums/period-title-type.enum.ts +7 -0
  1143. package/lib/components/ca-period-content/models/component-data.type.ts +26 -0
  1144. package/lib/components/ca-period-content/models/driver-info.ts +5 -0
  1145. package/lib/components/ca-period-content/models/driver-minimal-response.ts +19 -0
  1146. package/lib/components/ca-period-content/models/driver-short-response.ts +57 -0
  1147. package/lib/components/ca-period-content/models/extra-payments.ts +28 -0
  1148. package/lib/components/ca-period-content/models/formatted-component-data.type.ts +7 -0
  1149. package/lib/components/ca-period-content/models/formatted-period-data.ts +16 -0
  1150. package/lib/components/ca-period-content/models/index.ts +32 -0
  1151. package/lib/components/ca-period-content/models/miles-stop-payroll-response.ts +23 -0
  1152. package/lib/components/ca-period-content/models/notification-model.ts +5 -0
  1153. package/lib/components/ca-period-content/models/payment-sum.model.ts +4 -0
  1154. package/lib/components/ca-period-content/models/payroll-bonus-minimal-response.ts +6 -0
  1155. package/lib/components/ca-period-content/models/payroll-bonus-response.ts +12 -0
  1156. package/lib/components/ca-period-content/models/payroll-commission-total-sum.ts +7 -0
  1157. package/lib/components/ca-period-content/models/payroll-credit-minimal-response.ts +6 -0
  1158. package/lib/components/ca-period-content/models/payroll-credit-response.ts +18 -0
  1159. package/lib/components/ca-period-content/models/payroll-deadline-period.ts +6 -0
  1160. package/lib/components/ca-period-content/models/payroll-deadline-short-response.ts +6 -0
  1161. package/lib/components/ca-period-content/models/payroll-deduction-minimal-response.ts +8 -0
  1162. package/lib/components/ca-period-content/models/payroll-deduction-response.ts +22 -0
  1163. package/lib/components/ca-period-content/models/payroll-driver-commission-by-id-response.ts +65 -0
  1164. package/lib/components/ca-period-content/models/payroll-driver-flat-rate-closed-by-id-response.ts +34 -0
  1165. package/lib/components/ca-period-content/models/payroll-driver-mileage-response.ts +43 -0
  1166. package/lib/components/ca-period-content/models/payroll-flat-rate-total-sum.ts +7 -0
  1167. package/lib/components/ca-period-content/models/payroll-fuel-minimal-response.ts +8 -0
  1168. package/lib/components/ca-period-content/models/payroll-load-minimal-response.ts +18 -0
  1169. package/lib/components/ca-period-content/models/payroll-load-stop-minimal-response.ts +6 -0
  1170. package/lib/components/ca-period-content/models/payroll-map-location.ts +9 -0
  1171. package/lib/components/ca-period-content/models/payroll-owner-closed-response.ts +35 -0
  1172. package/lib/components/ca-period-content/models/payroll-owner-response.ts +34 -0
  1173. package/lib/components/ca-period-content/models/payroll-payment-response.ts +10 -0
  1174. package/lib/components/ca-period-content/models/payroll-payments-minimal-response.ts +6 -0
  1175. package/lib/components/ca-period-content/models/payroll-period-input.type.ts +40 -0
  1176. package/lib/components/ca-period-content/models/payroll-report-tables.type.ts +9 -0
  1177. package/lib/components/ca-period-content/models/payroll-report.type.ts +55 -0
  1178. package/lib/components/ca-period-content/models/per-mile-model.ts +5 -0
  1179. package/lib/components/ca-period-content/pipes/included_count.pipe.ts +22 -0
  1180. package/lib/components/ca-period-content/pipes/payroll-status-class.pipe.ts +27 -0
  1181. package/lib/components/ca-period-content/pipes/period_status.pipe.ts +51 -0
  1182. package/lib/components/ca-period-content/utils/constants/color-map.ts +9 -0
  1183. package/lib/components/ca-period-content/utils/constants/index.ts +2 -0
  1184. package/lib/components/ca-period-content/utils/constants/payroll-period-dropdown.constant.ts +15 -0
  1185. package/lib/components/ca-period-content/utils/helpers/index.ts +1 -0
  1186. package/lib/components/ca-period-content/utils/helpers/payroll-period-content.helper.ts +35 -0
  1187. package/lib/components/ca-period-content/utils/svg-routes/index.ts +1 -0
  1188. package/lib/components/ca-period-content/utils/svg-routes/period-content.routes.ts +20 -0
  1189. package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.html +159 -0
  1190. package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.scss +119 -0
  1191. package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.spec.ts +21 -0
  1192. package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.ts +101 -0
  1193. package/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.stories.ts +756 -0
  1194. package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.html +129 -0
  1195. package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.scss +110 -0
  1196. package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.spec.ts +24 -0
  1197. package/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.ts +141 -0
  1198. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.html +184 -0
  1199. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.scss +135 -0
  1200. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.spec.ts +24 -0
  1201. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.ts +130 -0
  1202. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.html +372 -0
  1203. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.scss +264 -0
  1204. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.spec.ts +24 -0
  1205. package/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.ts +120 -0
  1206. package/lib/components/ca-pickup-delivery-block/models/adress-model.ts +12 -0
  1207. package/lib/components/ca-pickup-delivery-block/models/animation-model.ts +6 -0
  1208. package/lib/components/ca-pickup-delivery-block/models/broker-short-response.ts +14 -0
  1209. package/lib/components/ca-pickup-delivery-block/models/companyUserShortResponse.model.ts +9 -0
  1210. package/lib/components/ca-pickup-delivery-block/models/dispatch-grouped-load-response.mode.ts +7 -0
  1211. package/lib/components/ca-pickup-delivery-block/models/dispatch-hos-response.model.ts +10 -0
  1212. package/lib/components/ca-pickup-delivery-block/models/dispatch-response.model.ts +37 -0
  1213. package/lib/components/ca-pickup-delivery-block/models/dispatch-status-response.model.ts +7 -0
  1214. package/lib/components/ca-pickup-delivery-block/models/driver-dispatch.model.ts +12 -0
  1215. package/lib/components/ca-pickup-delivery-block/models/enum-value.ts +4 -0
  1216. package/lib/components/ca-pickup-delivery-block/models/index.ts +15 -0
  1217. package/lib/components/ca-pickup-delivery-block/models/load-short-response.ts +22 -0
  1218. package/lib/components/ca-pickup-delivery-block/models/load-stop-short-response.ts +10 -0
  1219. package/lib/components/ca-pickup-delivery-block/models/parking-slot-short-response.model.ts +13 -0
  1220. package/lib/components/ca-pickup-delivery-block/models/shipper-short-response.ts +9 -0
  1221. package/lib/components/ca-pickup-delivery-block/models/status-types.enum.ts +5 -0
  1222. package/lib/components/ca-pickup-delivery-block/utils/constants/animation-object-default.constants.ts +8 -0
  1223. package/lib/components/ca-pickup-delivery-block/utils/constants/index.ts +1 -0
  1224. package/lib/components/ca-pickup-delivery-block/utils/svg-routes/index.ts +2 -0
  1225. package/lib/components/ca-pickup-delivery-block/utils/svg-routes/pickup-delivery-svg.routes.ts +36 -0
  1226. package/lib/components/ca-pickup-delivery-block/utils/svg-routes/return-arrow.routes.ts +4 -0
  1227. package/lib/components/ca-profile-image/ca-profile-image.component.html +42 -0
  1228. package/lib/components/ca-profile-image/ca-profile-image.component.scss +51 -0
  1229. package/lib/components/ca-profile-image/ca-profile-image.component.spec.ts +24 -0
  1230. package/lib/components/ca-profile-image/ca-profile-image.component.ts +89 -0
  1231. package/lib/components/ca-profile-image/ca-profile-image.stories.ts +69 -0
  1232. package/lib/components/ca-progress-bar/ca-progress-bar.component.html +404 -0
  1233. package/lib/components/ca-progress-bar/ca-progress-bar.component.scss +202 -0
  1234. package/lib/components/ca-progress-bar/ca-progress-bar.component.stories.ts +1539 -0
  1235. package/lib/components/ca-progress-bar/ca-progress-bar.component.ts +242 -0
  1236. package/lib/components/ca-progress-bar/enums/index.ts +1 -0
  1237. package/lib/components/ca-progress-bar/enums/progress-bar-string.enum.ts +6 -0
  1238. package/lib/components/ca-progress-bar/interfaces/gps-heading-info.interface.ts +6 -0
  1239. package/lib/components/ca-progress-bar/interfaces/gps-progress.interface.ts +21 -0
  1240. package/lib/components/ca-progress-bar/interfaces/index.ts +3 -0
  1241. package/lib/components/ca-progress-bar/interfaces/progress-bar-data.interface.ts +19 -0
  1242. package/lib/components/ca-progress-bar/pipes/convert-minutes-to-hours.pipe.ts +14 -0
  1243. package/lib/components/ca-progress-bar/pipes/index.ts +1 -0
  1244. package/lib/components/ca-progress-bar/utils/constants/index.ts +1 -0
  1245. package/lib/components/ca-progress-bar/utils/constants/progress-bar.constants.ts +8 -0
  1246. package/lib/components/ca-progress-bar/utils/helpers/convert-minutes-to-hours.helper.ts +9 -0
  1247. package/lib/components/ca-progress-bar/utils/helpers/index.ts +1 -0
  1248. package/lib/components/ca-progress-bar/utils/svg-routes/index.ts +1 -0
  1249. package/lib/components/ca-progress-bar/utils/svg-routes/progress-bar-svg-routes.ts +3 -0
  1250. package/lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component.html +90 -0
  1251. package/lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component.scss +72 -0
  1252. package/lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component.spec.ts +23 -0
  1253. package/lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component.stories.ts +131 -0
  1254. package/lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component.ts +49 -0
  1255. package/lib/components/ca-progress-bar-v2/interfaces/index.ts +1 -0
  1256. package/lib/components/ca-progress-bar-v2/interfaces/progress-bar-color-config.interface.ts +4 -0
  1257. package/lib/components/ca-progress-expiration/ca-progress-expiration.component.html +103 -0
  1258. package/lib/components/ca-progress-expiration/ca-progress-expiration.component.scss +65 -0
  1259. package/lib/components/ca-progress-expiration/ca-progress-expiration.component.stories.ts +157 -0
  1260. package/lib/components/ca-progress-expiration/ca-progress-expiration.component.ts +259 -0
  1261. package/lib/components/ca-progress-expiration/enums/index.ts +1 -0
  1262. package/lib/components/ca-progress-expiration/enums/time-units.enum.ts +6 -0
  1263. package/lib/components/ca-progress-expiration/helpers/hex-to-rgba.helper.ts +18 -0
  1264. package/lib/components/ca-progress-expiration/helpers/index.ts +2 -0
  1265. package/lib/components/ca-progress-expiration/helpers/progress-expiration.helper.ts +64 -0
  1266. package/lib/components/ca-progress-expiration/models/index.ts +7 -0
  1267. package/lib/components/ca-progress-expiration/models/progress-expiration-color-type.model.ts +6 -0
  1268. package/lib/components/ca-progress-expiration/models/progress-expiration-color.model.ts +4 -0
  1269. package/lib/components/ca-progress-expiration/models/progress-expiration-template.model.ts +6 -0
  1270. package/lib/components/ca-progress-expiration/models/progress-expiration-theme.model.ts +1 -0
  1271. package/lib/components/ca-progress-expiration/models/progress-expiration-title.model.ts +5 -0
  1272. package/lib/components/ca-progress-expiration/models/progress-expiration-type.model.ts +1 -0
  1273. package/lib/components/ca-progress-expiration/models/progress-expiration.model.ts +14 -0
  1274. package/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-abs.pipe.ts +12 -0
  1275. package/lib/components/ca-progress-expiration/pipes/ca-progress-expiration-width.pipe.ts +59 -0
  1276. package/lib/components/ca-progress-expiration/pipes/currency-format.pipe.ts +14 -0
  1277. package/lib/components/ca-progress-expiration/pipes/index.ts +4 -0
  1278. package/lib/components/ca-progress-expiration/pipes/time.pipe.ts +33 -0
  1279. package/lib/components/ca-progress-expiration/utils/constants/index.ts +1 -0
  1280. package/lib/components/ca-progress-expiration/utils/constants/progress-expiration.constant.ts +54 -0
  1281. package/lib/components/ca-progress-expiration/utils/index.ts +1 -0
  1282. package/lib/components/ca-range-slider/ca-range-slider.component.html +46 -0
  1283. package/lib/components/ca-range-slider/ca-range-slider.component.scss +28 -0
  1284. package/lib/components/ca-range-slider/ca-range-slider.component.spec.ts +23 -0
  1285. package/lib/components/ca-range-slider/ca-range-slider.component.ts +75 -0
  1286. package/lib/components/ca-range-slider/directives/index.ts +1 -0
  1287. package/lib/components/ca-range-slider/directives/range-slider.directive.ts +88 -0
  1288. package/lib/components/ca-range-slider/interfaces/index.ts +1 -0
  1289. package/lib/components/ca-range-slider/interfaces/range-slider-config.interface.ts +7 -0
  1290. package/lib/components/ca-rating-review/ca-rating-review.component.html +271 -0
  1291. package/lib/components/ca-rating-review/ca-rating-review.component.scss +279 -0
  1292. package/lib/components/ca-rating-review/ca-rating-review.component.spec.ts +21 -0
  1293. package/lib/components/ca-rating-review/ca-rating-review.component.ts +209 -0
  1294. package/lib/components/ca-rating-review/ca-rating-review.stories.ts +224 -0
  1295. package/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.html +201 -0
  1296. package/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.scss +359 -0
  1297. package/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.spec.ts +21 -0
  1298. package/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.ts +175 -0
  1299. package/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.html +141 -0
  1300. package/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.scss +160 -0
  1301. package/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.spec.ts +21 -0
  1302. package/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.ts +126 -0
  1303. package/lib/components/ca-rating-review/enums/rating-reviews-type.enums.ts +16 -0
  1304. package/lib/components/ca-rating-review/models/rating-review.model.ts +12 -0
  1305. package/lib/components/ca-rating-review/utils/config/rating-review-search.config.ts +16 -0
  1306. package/lib/components/ca-rating-review/utils/helpers/sort-data.helper.ts +13 -0
  1307. package/lib/components/ca-rating-review/utils/pipe/filter-title.pipe.ts +21 -0
  1308. package/lib/components/ca-rating-review/utils/svg-routes/ratings-reviews.routes.ts +16 -0
  1309. package/lib/components/ca-right-side-panel/ca-right-side-panel.component.html +46 -0
  1310. package/lib/components/ca-right-side-panel/ca-right-side-panel.component.scss +10 -0
  1311. package/lib/components/ca-right-side-panel/ca-right-side-panel.component.spec.ts +21 -0
  1312. package/lib/components/ca-right-side-panel/ca-right-side-panel.component.ts +161 -0
  1313. package/lib/components/ca-right-side-panel/ca-right-side-panel.stories.ts +47 -0
  1314. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.html +1214 -0
  1315. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.scss +307 -0
  1316. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.spec.ts +21 -0
  1317. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.ts +147 -0
  1318. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.html +180 -0
  1319. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.scss +282 -0
  1320. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.spec.ts +21 -0
  1321. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.ts +195 -0
  1322. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.html +238 -0
  1323. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.scss +143 -0
  1324. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.spec.ts +21 -0
  1325. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.ts +394 -0
  1326. package/lib/components/ca-right-side-panel/config/ca-right-side-panel.config.ts +66 -0
  1327. package/lib/components/ca-right-side-panel/enums/activity-log-sort-type.enum.ts +4 -0
  1328. package/lib/components/ca-right-side-panel/enums/company/bank-account-status.enum.ts +6 -0
  1329. package/lib/components/ca-right-side-panel/enums/company/bank-card-types-string.enum.ts +6 -0
  1330. package/lib/components/ca-right-side-panel/enums/company/fleet-type.enum.ts +5 -0
  1331. package/lib/components/ca-right-side-panel/enums/company/preferred-load-type.enum.ts +4 -0
  1332. package/lib/components/ca-right-side-panel/enums/company-font-size.enum.ts +5 -0
  1333. package/lib/components/ca-right-side-panel/enums/company-info-title.enum.ts +16 -0
  1334. package/lib/components/ca-right-side-panel/enums/filter-type.enum.ts +6 -0
  1335. package/lib/components/ca-right-side-panel/enums/index.ts +12 -0
  1336. package/lib/components/ca-right-side-panel/enums/modules-filter-item-label.enum.ts +4 -0
  1337. package/lib/components/ca-right-side-panel/enums/right-side-panel-current-tab.enum.ts +4 -0
  1338. package/lib/components/ca-right-side-panel/enums/selected-module.enum.ts +13 -0
  1339. package/lib/components/ca-right-side-panel/enums/time-filter-type.enum.ts +9 -0
  1340. package/lib/components/ca-right-side-panel/models/action-filter/action-filter-input-data.model.ts +9 -0
  1341. package/lib/components/ca-right-side-panel/models/activity-log-filter-params.model.ts +14 -0
  1342. package/lib/components/ca-right-side-panel/models/activity-log-filter.model.ts +6 -0
  1343. package/lib/components/ca-right-side-panel/models/company/bank-account.model.ts +15 -0
  1344. package/lib/components/ca-right-side-panel/models/company/bank-card.model.ts +10 -0
  1345. package/lib/components/ca-right-side-panel/models/company/bank.model.ts +7 -0
  1346. package/lib/components/ca-right-side-panel/models/company/company-additional-info.model.ts +17 -0
  1347. package/lib/components/ca-right-side-panel/models/company/company-address.model.ts +12 -0
  1348. package/lib/components/ca-right-side-panel/models/company/company-enum-value.model.ts +4 -0
  1349. package/lib/components/ca-right-side-panel/models/company/company-navigation-data.model.ts +5 -0
  1350. package/lib/components/ca-right-side-panel/models/company/company-payroll.model.ts +23 -0
  1351. package/lib/components/ca-right-side-panel/models/company/company-short.model.ts +11 -0
  1352. package/lib/components/ca-right-side-panel/models/company/company-user-short.model.ts +10 -0
  1353. package/lib/components/ca-right-side-panel/models/company/company.model.ts +52 -0
  1354. package/lib/components/ca-right-side-panel/models/company/department-contact.model.ts +12 -0
  1355. package/lib/components/ca-right-side-panel/models/company/department.model.ts +9 -0
  1356. package/lib/components/ca-right-side-panel/models/company/factoring-company.model.ts +11 -0
  1357. package/lib/components/ca-right-side-panel/models/company/file-response.model.ts +9 -0
  1358. package/lib/components/ca-right-side-panel/models/company/insurance-policy-addon.model.ts +27 -0
  1359. package/lib/components/ca-right-side-panel/models/company/insurance-policy.model.ts +15 -0
  1360. package/lib/components/ca-right-side-panel/models/company/per-mile.model.ts +5 -0
  1361. package/lib/components/ca-right-side-panel/models/index.ts +28 -0
  1362. package/lib/components/ca-right-side-panel/models/module-filter/module-filter-activity-log.model.ts +6 -0
  1363. package/lib/components/ca-right-side-panel/models/module-filter/module-filter-input-data.model.ts +7 -0
  1364. package/lib/components/ca-right-side-panel/models/navigation-item.model.ts +9 -0
  1365. package/lib/components/ca-right-side-panel/models/time-filter/time-filter-event.model.ts +8 -0
  1366. package/lib/components/ca-right-side-panel/models/user-filter/user-filter-avatar-file.model.ts +9 -0
  1367. package/lib/components/ca-right-side-panel/models/user-filter/user-filter-data.model.ts +9 -0
  1368. package/lib/components/ca-right-side-panel/models/user-filter/user-filter-input-data.model.ts +9 -0
  1369. package/lib/components/ca-right-side-panel/utils/constants/activity-log-filter-data.constants.ts +132 -0
  1370. package/lib/components/ca-right-side-panel/utils/constants/companies-side-panel-navigation.constants.ts +730 -0
  1371. package/lib/components/ca-right-side-panel/utils/constants/index.ts +2 -0
  1372. package/lib/components/ca-right-side-panel/utils/pipes/bank-card-types.pipe.ts +20 -0
  1373. package/lib/components/ca-right-side-panel/utils/pipes/hide-account.pipe.ts +59 -0
  1374. package/lib/components/ca-right-side-panel/utils/pipes/index.ts +2 -0
  1375. package/lib/components/ca-right-side-panel/utils/svg-routes/index.ts +2 -0
  1376. package/lib/components/ca-right-side-panel/utils/svg-routes/right-side-panel-top-bar-svg.routes.ts +10 -0
  1377. package/lib/components/ca-right-side-panel/utils/svg-routes/side-panel-company-svg.routes.ts +6 -0
  1378. package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.html +176 -0
  1379. package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.scss +373 -0
  1380. package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.spec.ts +21 -0
  1381. package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.ts +380 -0
  1382. package/lib/components/ca-search-multiple-states/ca-search-multiple-states.stories.ts +180 -0
  1383. package/lib/components/ca-search-multiple-states/models/chips.model.ts +6 -0
  1384. package/lib/components/ca-search-multiple-states/models/grid-column.model.ts +23 -0
  1385. package/lib/components/ca-search-multiple-states/models/index.ts +3 -0
  1386. package/lib/components/ca-search-multiple-states/models/tab-data.model.ts +14 -0
  1387. package/lib/components/ca-search-multiple-states/utils/config/index.ts +1 -0
  1388. package/lib/components/ca-search-multiple-states/utils/config/input-config.ts +10 -0
  1389. package/lib/components/ca-search-multiple-states/utils/enums/chips-colors.enum.ts +5 -0
  1390. package/lib/components/ca-search-multiple-states/utils/enums/index.ts +3 -0
  1391. package/lib/components/ca-search-multiple-states/utils/enums/keyboard-event-commands.enum.ts +3 -0
  1392. package/lib/components/ca-search-multiple-states/utils/enums/search-count.enum.ts +6 -0
  1393. package/lib/components/ca-search-multiple-states/utils/pipes/chip-class.pipe.ts +23 -0
  1394. package/lib/components/ca-search-multiple-states/utils/pipes/index.ts +1 -0
  1395. package/lib/components/ca-search-multiple-states/utils/services/index.ts +1 -0
  1396. package/lib/components/ca-search-multiple-states/utils/services/search-multiple-states.service.ts +37 -0
  1397. package/lib/components/ca-search-multiple-states/utils/svg-routes/index.ts +1 -0
  1398. package/lib/components/ca-search-multiple-states/utils/svg-routes/search-multiple-states.routes.ts +8 -0
  1399. package/lib/components/ca-search-multiple-states-2/ca-search-multiple-states-2.component.html +145 -0
  1400. package/lib/components/ca-search-multiple-states-2/ca-search-multiple-states-2.component.scss +205 -0
  1401. package/lib/components/ca-search-multiple-states-2/ca-search-multiple-states-2.component.spec.ts +22 -0
  1402. package/lib/components/ca-search-multiple-states-2/ca-search-multiple-states-2.component.ts +276 -0
  1403. package/lib/components/ca-search-multiple-states-2/ca-search-multiple-states-2.stories.ts +69 -0
  1404. package/lib/components/ca-search-multiple-states-2/enums/index.ts +1 -0
  1405. package/lib/components/ca-search-multiple-states-2/enums/search-multiple-state-action.enum.ts +3 -0
  1406. package/lib/components/ca-search-multiple-states-2/interfaces/index.ts +1 -0
  1407. package/lib/components/ca-search-multiple-states-2/interfaces/search-query.interface.ts +4 -0
  1408. package/lib/components/ca-search-multiple-states-2/util/index.ts +1 -0
  1409. package/lib/components/ca-search-multiple-states-2/util/routes/multiple-search-state-svg.route.ts +9 -0
  1410. package/lib/components/ca-selectable-column-table/ca-selectable-column-table.component.html +70 -0
  1411. package/lib/components/ca-selectable-column-table/ca-selectable-column-table.component.scss +96 -0
  1412. package/lib/components/ca-selectable-column-table/ca-selectable-column-table.component.ts +72 -0
  1413. package/lib/components/ca-selectable-column-table/ca-selectable-columns-table.stories.ts +53 -0
  1414. package/lib/components/ca-selectable-column-table/enums/ca-selectable-column-table.enum.ts +3 -0
  1415. package/lib/components/ca-selectable-column-table/enums/index.ts +1 -0
  1416. package/lib/components/ca-selectable-column-table/models/ca-selectable-column-table.model.ts +6 -0
  1417. package/lib/components/ca-selectable-column-table/models/index.ts +1 -0
  1418. package/lib/components/ca-selectable-column-table/utils/constants/ca-selectable-column-table.constants.ts +50 -0
  1419. package/lib/components/ca-selectable-column-table/utils/constants/index.ts +1 -0
  1420. package/lib/components/ca-show-more/ca-show-more.component.html +19 -0
  1421. package/lib/components/ca-show-more/ca-show-more.component.scss +0 -0
  1422. package/lib/components/ca-show-more/ca-show-more.component.spec.ts +23 -0
  1423. package/lib/components/ca-show-more/ca-show-more.component.ts +27 -0
  1424. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.html +122 -0
  1425. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.scss +158 -0
  1426. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.spec.ts +21 -0
  1427. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.ts +137 -0
  1428. package/lib/components/ca-sort-dropdown/ca-sort-dropdown.stories.ts +173 -0
  1429. package/lib/components/ca-sort-dropdown/enums/index.ts +1 -0
  1430. package/lib/components/ca-sort-dropdown/enums/sort-dropdown.enum.ts +11 -0
  1431. package/lib/components/ca-sort-dropdown/interfaces/index.ts +1 -0
  1432. package/lib/components/ca-sort-dropdown/interfaces/sort-dropdown-action.interface.ts +11 -0
  1433. package/lib/components/ca-sort-dropdown/models/index.ts +1 -0
  1434. package/lib/components/ca-sort-dropdown/models/sort-column.model.ts +8 -0
  1435. package/lib/components/ca-sort-dropdown/types/index.ts +1 -0
  1436. package/lib/components/ca-sort-dropdown/types/sort-directions.type.ts +6 -0
  1437. package/lib/components/ca-sort-dropdown/utils/svg-routes/ca-sort-dropdown-svg-routes.ts +10 -0
  1438. package/lib/components/ca-sort-dropdown/utils/svg-routes/index.ts +1 -0
  1439. package/lib/components/ca-sorting-card-dropdown/ca-sorting-card-dropdown.component.html +136 -0
  1440. package/lib/components/ca-sorting-card-dropdown/ca-sorting-card-dropdown.component.scss +6 -0
  1441. package/lib/components/ca-sorting-card-dropdown/ca-sorting-card-dropdown.component.spec.ts +23 -0
  1442. package/lib/components/ca-sorting-card-dropdown/ca-sorting-card-dropdown.component.stories.ts +103 -0
  1443. package/lib/components/ca-sorting-card-dropdown/ca-sorting-card-dropdown.component.ts +101 -0
  1444. package/lib/components/ca-spinner/ca-spinner.component.html +13 -0
  1445. package/lib/components/ca-spinner/ca-spinner.component.scss +63 -0
  1446. package/lib/components/ca-spinner/ca-spinner.component.spec.ts +24 -0
  1447. package/lib/components/ca-spinner/ca-spinner.component.ts +61 -0
  1448. package/lib/components/ca-status-change-dropdown/ca-status-change-dropdown.component.html +70 -0
  1449. package/lib/components/ca-status-change-dropdown/ca-status-change-dropdown.component.scss +10 -0
  1450. package/lib/components/ca-status-change-dropdown/ca-status-change-dropdown.component.stories.ts +78 -0
  1451. package/lib/components/ca-status-change-dropdown/ca-status-change-dropdown.component.ts +46 -0
  1452. package/lib/components/ca-tab-switch/ca-tab-switch.component.html +33 -0
  1453. package/lib/components/ca-tab-switch/ca-tab-switch.component.scss +381 -0
  1454. package/lib/components/ca-tab-switch/ca-tab-switch.component.ts +213 -0
  1455. package/lib/components/ca-tab-switch/ca-tab-switch.stories.ts +155 -0
  1456. package/lib/components/ca-tab-switch/models/hover-style.model.ts +4 -0
  1457. package/lib/components/ca-tab-switch/models/tab-options.model.ts +5 -0
  1458. package/lib/components/ca-tab-switch/utils/constants/tab-switch.constants.ts +6 -0
  1459. package/lib/components/ca-table-card-view/ca-table-card-view.component.html +255 -0
  1460. package/lib/components/ca-table-card-view/ca-table-card-view.component.scss +73 -0
  1461. package/lib/components/ca-table-card-view/ca-table-card-view.component.spec.ts +22 -0
  1462. package/lib/components/ca-table-card-view/ca-table-card-view.component.ts +322 -0
  1463. package/lib/components/ca-table-card-view/ca-table-card-view.stories.ts +79 -0
  1464. package/lib/components/ca-table-card-view/components/additional-components/ca-table-card-view-skeleton/ca-table-card-view-skeleton.component.html +28 -0
  1465. package/lib/components/ca-table-card-view/components/additional-components/ca-table-card-view-skeleton/ca-table-card-view-skeleton.component.scss +3 -0
  1466. package/lib/components/ca-table-card-view/components/additional-components/ca-table-card-view-skeleton/ca-table-card-view-skeleton.component.spec.ts +23 -0
  1467. package/lib/components/ca-table-card-view/components/additional-components/ca-table-card-view-skeleton/ca-table-card-view-skeleton.component.ts +25 -0
  1468. package/lib/components/ca-table-card-view/enums/index.ts +2 -0
  1469. package/lib/components/ca-table-card-view/enums/table-card-general.enum.ts +4 -0
  1470. package/lib/components/ca-table-card-view/enums/table-card-types.enum.ts +4 -0
  1471. package/lib/components/ca-table-card-view/pipes/index.ts +1 -0
  1472. package/lib/components/ca-table-card-view/pipes/is-card-flipped.pipe.ts +11 -0
  1473. package/lib/components/ca-table-card-view/utils/helpers/index.ts +2 -0
  1474. package/lib/components/ca-table-card-view/utils/helpers/table-card-skeleton.helper.ts +94 -0
  1475. package/lib/components/ca-table-card-view/utils/helpers/table-card-view-helper.ts +93 -0
  1476. package/lib/components/ca-table-card-view/utils/svg-routes/index.ts +1 -0
  1477. package/lib/components/ca-table-card-view/utils/svg-routes/table-card-view-svg-routes.ts +3 -0
  1478. package/lib/components/ca-telematic-map-list/ca-telematic-map-list.component.html +312 -0
  1479. package/lib/components/ca-telematic-map-list/ca-telematic-map-list.component.scss +195 -0
  1480. package/lib/components/ca-telematic-map-list/ca-telematic-map-list.component.ts +131 -0
  1481. package/lib/components/ca-telematic-map-list/ca-telematic-map-list.stories.ts +54 -0
  1482. package/lib/components/ca-telematic-map-list/config/ca-telematic-list.config.ts +16 -0
  1483. package/lib/components/ca-telematic-map-list/config/index.ts +1 -0
  1484. package/lib/components/ca-telematic-map-list/enums/ca-telematic-map-list.enum.ts +4 -0
  1485. package/lib/components/ca-telematic-map-list/enums/index.ts +1 -0
  1486. package/lib/components/ca-telematic-map-list/models/index.ts +1 -0
  1487. package/lib/components/ca-telematic-map-list/models/telematic-truck.model.ts +27 -0
  1488. package/lib/components/ca-telematic-map-list/pipes/index.ts +2 -0
  1489. package/lib/components/ca-telematic-map-list/pipes/is-column-selected.pipe.ts +18 -0
  1490. package/lib/components/ca-telematic-map-list/utils/constants/index.ts +1 -0
  1491. package/lib/components/ca-telematic-map-list/utils/constants/telematic-map-list.constants.ts +1782 -0
  1492. package/lib/components/ca-telematic-map-list/utils/svg-routes/ca-telematic-list-svg-routes.ts +8 -0
  1493. package/lib/components/ca-telematic-map-list/utils/svg-routes/index.ts +1 -0
  1494. package/lib/components/ca-toast-messages/ca-toast-messages-component.html +47 -0
  1495. package/lib/components/ca-toast-messages/ca-toast-messages-component.scss +41 -0
  1496. package/lib/components/ca-toast-messages/ca-toast-messages.component.ts +127 -0
  1497. package/lib/components/ca-toast-messages/ca-toast-messages.stories.ts +105 -0
  1498. package/lib/components/ca-toast-messages/enums/index.ts +1 -0
  1499. package/lib/components/ca-toast-messages/enums/toast-type.enum.ts +6 -0
  1500. package/lib/components/ca-toast-messages/pipes/index.ts +2 -0
  1501. package/lib/components/ca-toast-messages/pipes/toast-background.pipe.ts +28 -0
  1502. package/lib/components/ca-toast-messages/pipes/toast-stack.pipe.ts +17 -0
  1503. package/lib/components/ca-todo/ca-todo-component.html +35 -0
  1504. package/lib/components/ca-todo/ca-todo-component.scss +62 -0
  1505. package/lib/components/ca-todo/ca-todo.component.ts +109 -0
  1506. package/lib/components/ca-todo/ca-todo.stories.ts +711 -0
  1507. package/lib/components/ca-todo/components/ca-todo-card.component.html +313 -0
  1508. package/lib/components/ca-todo/components/ca-todo-card.component.scss +223 -0
  1509. package/lib/components/ca-todo/components/ca-todo-card.component.spec.ts +21 -0
  1510. package/lib/components/ca-todo/components/ca-todo-card.component.ts +192 -0
  1511. package/lib/components/ca-todo/components/ca-todo-card.stories.ts +378 -0
  1512. package/lib/components/ca-todo/config/column.config.ts +24 -0
  1513. package/lib/components/ca-todo/config/index.ts +1 -0
  1514. package/lib/components/ca-todo/enums/column.enum.ts +5 -0
  1515. package/lib/components/ca-todo/enums/download-link.enum.ts +5 -0
  1516. package/lib/components/ca-todo/enums/index.ts +2 -0
  1517. package/lib/components/ca-todo/models/image-config.model.ts +5 -0
  1518. package/lib/components/ca-todo/models/index.ts +4 -0
  1519. package/lib/components/ca-todo/models/to-do-column.model.ts +8 -0
  1520. package/lib/components/ca-todo/models/todo-card-config.model.ts +10 -0
  1521. package/lib/components/ca-todo/models/todo-config.model.ts +19 -0
  1522. package/lib/components/ca-todo/services/file-service.ts +15 -0
  1523. package/lib/components/ca-todo/services/index.ts +1 -0
  1524. package/lib/components/ca-todo/utils/index.ts +1 -0
  1525. package/lib/components/ca-todo/utils/svg-routes/index.ts +1 -0
  1526. package/lib/components/ca-todo/utils/svg-routes/todo.routes.ts +8 -0
  1527. package/lib/components/ca-toolbar-dropdown/ca-toolbar-dropdown.component.html +282 -0
  1528. package/lib/components/ca-toolbar-dropdown/ca-toolbar-dropdown.component.scss +53 -0
  1529. package/lib/components/ca-toolbar-dropdown/ca-toolbar-dropdown.component.spec.ts +23 -0
  1530. package/lib/components/ca-toolbar-dropdown/ca-toolbar-dropdown.component.ts +197 -0
  1531. package/lib/components/ca-toolbar-dropdown/ca-toolbar-dropdown.stories.ts +83 -0
  1532. package/lib/components/ca-toolbar-dropdown/interfaces/dropdown-item.interface.ts +14 -0
  1533. package/lib/components/ca-toolbar-dropdown/interfaces/index.ts +1 -0
  1534. package/lib/components/ca-toolbar-dropdown/pipes/filter-by-search-term.pipe.ts +20 -0
  1535. package/lib/components/ca-toolbar-dropdown/pipes/index.ts +2 -0
  1536. package/lib/components/ca-toolbar-dropdown/pipes/selected-item.pipe.ts +16 -0
  1537. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component.html +81 -0
  1538. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component.scss +18 -0
  1539. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component.spec.ts +23 -0
  1540. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component.ts +152 -0
  1541. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.stories.ts +170 -0
  1542. package/lib/components/ca-toolbar-tab-switch/enums/index.ts +1 -0
  1543. package/lib/components/ca-toolbar-tab-switch/enums/toolbar-variant.enum.ts +4 -0
  1544. package/lib/components/ca-toolbar-tab-switch/interfaces/index.ts +1 -0
  1545. package/lib/components/ca-toolbar-tab-switch/interfaces/toolbar-tabs.interface.ts +6 -0
  1546. package/lib/components/ca-toolbar-tab-switch/pipes/toolbar-tabs-class-pipe.ts +38 -0
  1547. package/lib/components/ca-toolbar-tab-switch/types/index.ts +1 -0
  1548. package/lib/components/ca-toolbar-tab-switch/types/toolbar-variant.type.ts +3 -0
  1549. package/lib/components/ca-tooltip-list/ca-tooltip-list.component.html +85 -0
  1550. package/lib/components/ca-tooltip-list/ca-tooltip-list.component.scss +105 -0
  1551. package/lib/components/ca-tooltip-list/ca-tooltip-list.component.spec.ts +21 -0
  1552. package/lib/components/ca-tooltip-list/ca-tooltip-list.component.ts +37 -0
  1553. package/lib/components/ca-tooltip-list/ca-tooltip-list.stories.ts +117 -0
  1554. package/lib/components/ca-tooltip-list/models/index.ts +2 -0
  1555. package/lib/components/ca-tooltip-list/models/tooltip-list-item.model.ts +7 -0
  1556. package/lib/components/ca-tooltip-list/models/tooltip-list.model.ts +8 -0
  1557. package/lib/components/ca-tooltip-list/utils/constants/ca-tooltip-list.constants.ts +3 -0
  1558. package/lib/components/ca-tooltip-list/utils/constants/index.ts +1 -0
  1559. package/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.html +238 -0
  1560. package/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.scss +137 -0
  1561. package/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.spec.ts +22 -0
  1562. package/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.ts +80 -0
  1563. package/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.stories.ts +134 -0
  1564. package/lib/components/ca-truck-trailer-progress-bar/models/progress-dropdown-data.model.ts +10 -0
  1565. package/lib/components/ca-upload-files/ca-upload-files.component.html +122 -0
  1566. package/lib/components/ca-upload-files/ca-upload-files.component.scss +134 -0
  1567. package/lib/components/ca-upload-files/ca-upload-files.component.ts +430 -0
  1568. package/lib/components/ca-upload-files/ca-upload-files.stories.ts +499 -0
  1569. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.html +303 -0
  1570. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.scss +204 -0
  1571. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.spec.ts +21 -0
  1572. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.ts +410 -0
  1573. package/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.stories.ts +209 -0
  1574. package/lib/components/ca-upload-files/components/ca-upload-dropzone/directives/index.ts +1 -0
  1575. package/lib/components/ca-upload-files/components/ca-upload-dropzone/directives/template.directive.ts +10 -0
  1576. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-action.enum.ts +6 -0
  1577. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-dropzone-type.enum.ts +6 -0
  1578. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/file-upload-page.enum.ts +26 -0
  1579. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/index.ts +4 -0
  1580. package/lib/components/ca-upload-files/components/ca-upload-dropzone/enums/template-type.enum.ts +7 -0
  1581. package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/file.helper.ts +30 -0
  1582. package/lib/components/ca-upload-files/components/ca-upload-dropzone/helpers/index.ts +1 -0
  1583. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/drop-background-event.interface.ts +4 -0
  1584. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-config.interface.ts +14 -0
  1585. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-option-config.interface.ts +14 -0
  1586. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/dropzone-settings.interface.ts +10 -0
  1587. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-config.interface.ts +19 -0
  1588. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/file-event.interface.ts +9 -0
  1589. package/lib/components/ca-upload-files/components/ca-upload-dropzone/interfaces/index.ts +6 -0
  1590. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-icons.constants.ts +27 -0
  1591. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/file-limit.constants.ts +41 -0
  1592. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/index.ts +4 -0
  1593. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/lottie-animation.constants.ts +10 -0
  1594. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/constants/mime-type.constants.ts +33 -0
  1595. package/lib/components/ca-upload-files/components/ca-upload-dropzone/utils/svg-routes/dropzone-svg.routes.ts +3 -0
  1596. package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.html +412 -0
  1597. package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.scss +1491 -0
  1598. package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.spec.ts +21 -0
  1599. package/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.ts +481 -0
  1600. package/lib/components/ca-upload-files/components/ca-upload-file/enums/document-action.enum.ts +8 -0
  1601. package/lib/components/ca-upload-files/components/ca-upload-file/enums/index.ts +1 -0
  1602. package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/delete-action.interface.ts +4 -0
  1603. package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/file-action-event.interface.ts +7 -0
  1604. package/lib/components/ca-upload-files/components/ca-upload-file/interfaces/index.ts +2 -0
  1605. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/byte-convert.pipe.ts +18 -0
  1606. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/file-name.pipe.ts +17 -0
  1607. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/index.ts +5 -0
  1608. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/mime-type-to-extension.pipe.ts +14 -0
  1609. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/ng-class.pipe.ts +41 -0
  1610. package/lib/components/ca-upload-files/components/ca-upload-file/pipes/url-extension.pipe.ts +18 -0
  1611. package/lib/components/ca-upload-files/components/ca-upload-file/services/document.service.ts +14 -0
  1612. package/lib/components/ca-upload-files/components/ca-upload-file/services/index.ts +1 -0
  1613. package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/index.ts +1 -0
  1614. package/lib/components/ca-upload-files/components/ca-upload-file/utils/config/upload-file-input.config.ts +10 -0
  1615. package/lib/components/ca-upload-files/components/ca-upload-file/utils/index.ts +1 -0
  1616. package/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/index.ts +1 -0
  1617. package/lib/components/ca-upload-files/components/ca-upload-file/utils/svg-routes/upload-file.routes.ts +9 -0
  1618. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.html +99 -0
  1619. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.scss +240 -0
  1620. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.spec.ts +21 -0
  1621. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.ts +190 -0
  1622. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/carousel-action.enum.ts +4 -0
  1623. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/file-carousel-size.enum.ts +8 -0
  1624. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/enums/index.ts +2 -0
  1625. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/files-carousel.interface.ts +7 -0
  1626. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/interfaces/index.ts +1 -0
  1627. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/files-by-size.constant.ts +19 -0
  1628. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/constants/index.ts +1 -0
  1629. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/index.ts +2 -0
  1630. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/carousel-svg.routes.ts +3 -0
  1631. package/lib/components/ca-upload-files/components/ca-upload-files-carousel/utils/svg-routes/index.ts +1 -0
  1632. package/lib/components/ca-upload-files/enums/file-action.enum.ts +5 -0
  1633. package/lib/components/ca-upload-files/enums/file-size.enum.ts +7 -0
  1634. package/lib/components/ca-upload-files/enums/file-type.enum.ts +6 -0
  1635. package/lib/components/ca-upload-files/enums/index.ts +4 -0
  1636. package/lib/components/ca-upload-files/enums/review-state.enum.ts +4 -0
  1637. package/lib/components/ca-upload-files/interfaces/document-review-input-event.interface.ts +7 -0
  1638. package/lib/components/ca-upload-files/interfaces/file-option-config.interface.ts +16 -0
  1639. package/lib/components/ca-upload-files/interfaces/index.ts +5 -0
  1640. package/lib/components/ca-upload-files/interfaces/review-file-config.interface.ts +10 -0
  1641. package/lib/components/ca-upload-files/interfaces/slider.interface.ts +4 -0
  1642. package/lib/components/ca-upload-files/interfaces/upload-files-config.interface.ts +46 -0
  1643. package/lib/components/ca-upload-files/pipes/index.ts +2 -0
  1644. package/lib/components/ca-upload-files/pipes/map-file.pipe.ts +17 -0
  1645. package/lib/components/ca-upload-files/pipes/upload-class.pipe.ts +41 -0
  1646. package/lib/components/ca-upload-files/services/index.ts +1 -0
  1647. package/lib/components/ca-upload-files/services/upload-file.service.ts +34 -0
  1648. package/lib/components/ca-upload-files/utils/svg-routes/files-upload-svg-routes.ts +6 -0
  1649. package/lib/components/ca-upload-files/utils/svg-routes/index.ts +1 -0
  1650. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.html +157 -0
  1651. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.scss +80 -0
  1652. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.spec.ts +22 -0
  1653. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.stories.ts +56 -0
  1654. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.ts +92 -0
  1655. package/lib/components/ca-vehicle-list/enums/index.ts +1 -0
  1656. package/lib/components/ca-vehicle-list/enums/vehicle-list.enum.ts +4 -0
  1657. package/lib/components/ca-vehicle-list/interfaces/index.ts +2 -0
  1658. package/lib/components/ca-vehicle-list/interfaces/vehicle-list-actions-emit.interface.ts +5 -0
  1659. package/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.ts +9 -0
  1660. package/lib/components/ca-vehicle-list/models/index.ts +1 -0
  1661. package/lib/components/ca-vehicle-list/models/vehicle-list.model.ts +12 -0
  1662. package/lib/components/ca-vehicle-list/types/index.ts +1 -0
  1663. package/lib/components/ca-vehicle-list/types/vehicle-list.type.ts +5 -0
  1664. package/lib/components/ca-vehicle-list/utils/constants/index.ts +1 -0
  1665. package/lib/components/ca-vehicle-list/utils/constants/vehicle-list.constants.ts +40 -0
  1666. package/lib/components/ca-vehicle-list/utils/svg-routes/index.ts +1 -0
  1667. package/lib/components/ca-vehicle-list/utils/svg-routes/vehicle-list-svg-routes.ts +8 -0
  1668. package/lib/directives/description-items-text-count.directive.ts +242 -0
  1669. package/lib/directives/hover-svg-directives.ts +49 -0
  1670. package/lib/directives/index.ts +3 -0
  1671. package/lib/directives/placeholder-directive.ts +51 -0
  1672. package/lib/enums/animation-state.enum.ts +4 -0
  1673. package/lib/enums/color.enum.ts +9 -0
  1674. package/lib/enums/common-element.enum.ts +8 -0
  1675. package/lib/enums/date-time-formats.enum.ts +14 -0
  1676. package/lib/enums/dispatch-status.enum.ts +24 -0
  1677. package/lib/enums/dropdown.enum.ts +20 -0
  1678. package/lib/enums/filter-color.enum.ts +14 -0
  1679. package/lib/enums/general-actions.enum.ts +71 -0
  1680. package/lib/enums/gps-heading-direction.enum.ts +10 -0
  1681. package/lib/enums/gps-motion-status.enum.ts +7 -0
  1682. package/lib/enums/index.ts +22 -0
  1683. package/lib/enums/load-filter.enum.ts +25 -0
  1684. package/lib/enums/load-status.enum.ts +58 -0
  1685. package/lib/enums/position.enum.ts +10 -0
  1686. package/lib/enums/shared-string.enum.ts +79 -0
  1687. package/lib/enums/string-placeholder.enum.ts +20 -0
  1688. package/lib/enums/style-property.enum.ts +4 -0
  1689. package/lib/enums/styling.enum.ts +13 -0
  1690. package/lib/enums/thousand-separator-format.enum.ts +5 -0
  1691. package/lib/enums/trailer-name.enum.ts +18 -0
  1692. package/lib/enums/truck-name.enum.ts +13 -0
  1693. package/lib/enums/unit.enum.ts +30 -0
  1694. package/lib/interfaces/dropdown-menu/table-card-body-actions.interface.ts +5 -0
  1695. package/lib/interfaces/gps-current-location/gps-current-location.interface.ts +20 -0
  1696. package/lib/interfaces/index.ts +5 -0
  1697. package/lib/interfaces/table/index.ts +2 -0
  1698. package/lib/interfaces/table/sortOrder.ts +7 -0
  1699. package/lib/interfaces/table/table-column.interface.ts +25 -0
  1700. package/lib/interfaces/user/company-user.interface.ts +10 -0
  1701. package/lib/interfaces/user/user-avatar-file.interface.ts +9 -0
  1702. package/lib/interfaces/user/user.interface.ts +14 -0
  1703. package/lib/models/address-entity.model.ts +12 -0
  1704. package/lib/models/address-list-response.model.ts +3 -0
  1705. package/lib/models/address-response.model.ts +7 -0
  1706. package/lib/models/array-status.model.ts +38 -0
  1707. package/lib/models/autocomplete-search-layer.model.ts +32 -0
  1708. package/lib/models/bank-response.ts +7 -0
  1709. package/lib/models/card-models/card-table-data.model.ts +924 -0
  1710. package/lib/models/cdl-response.ts +26 -0
  1711. package/lib/models/cdl-restriction-response.ts +11 -0
  1712. package/lib/models/color-response.ts +6 -0
  1713. package/lib/models/dashboard/custom-period-range.model.ts +5 -0
  1714. package/lib/models/dashboard/dropdown-list-item.model.ts +4 -0
  1715. package/lib/models/enumValue.ts +4 -0
  1716. package/lib/models/file-response.ts +9 -0
  1717. package/lib/models/filter-output-params.model.ts +6 -0
  1718. package/lib/models/filter-output.model.ts +6 -0
  1719. package/lib/models/highlight-text.model.ts +4 -0
  1720. package/lib/models/index.ts +8 -0
  1721. package/lib/models/load/load-possible-statuses-response.model.ts +6 -0
  1722. package/lib/models/load/load-status-response.model.ts +8 -0
  1723. package/lib/models/load-status-history-response.model.ts +17 -0
  1724. package/lib/models/long-lat.model.ts +4 -0
  1725. package/lib/models/mixin.model.ts +1 -0
  1726. package/lib/models/note-active-options.model.ts +6 -0
  1727. package/lib/models/owner-response.ts +24 -0
  1728. package/lib/models/pMTrailerShortResponse.ts +9 -0
  1729. package/lib/models/pMTruckShortResponse.ts +9 -0
  1730. package/lib/models/payroll-list-summary.model.ts +12 -0
  1731. package/lib/models/repairModalResponse.ts +9 -0
  1732. package/lib/models/state-response.ts +8 -0
  1733. package/lib/models/table-models/all-table-animation.model.ts +15 -0
  1734. package/lib/models/table-models/table-body-color-label.model.ts +11 -0
  1735. package/lib/models/tabs.model.ts +6 -0
  1736. package/lib/models/time-filter.model.ts +8 -0
  1737. package/lib/models/trailer-dispatch-modal-response.ts +12 -0
  1738. package/lib/models/trailer-minimal-response.ts +12 -0
  1739. package/lib/models/trailer-type-response.ts +7 -0
  1740. package/lib/models/truck-dispatch-modal-response.ts +19 -0
  1741. package/lib/models/truck-minimal-response.ts +14 -0
  1742. package/lib/models/truck-response.ts +0 -0
  1743. package/lib/models/truck-type-response.ts +6 -0
  1744. package/lib/models/user-selected.model.ts +8 -0
  1745. package/lib/pipes/ca-svg.pipe.ts +33 -0
  1746. package/lib/pipes/date-from-backend.pipe.ts +12 -0
  1747. package/lib/pipes/date-from-string.pipe.ts +46 -0
  1748. package/lib/pipes/date-to-time-from-backend.pipe.ts +15 -0
  1749. package/lib/pipes/date-wait-time.pipe.ts +36 -0
  1750. package/lib/pipes/date.pipe.ts +34 -0
  1751. package/lib/pipes/dispatch-status-color.pipe.ts +80 -0
  1752. package/lib/pipes/dispatch-status-colors.pipe.ts +60 -0
  1753. package/lib/pipes/dropdown-load-status-color.pipe.ts +159 -0
  1754. package/lib/pipes/format-city-state.pipe.ts +20 -0
  1755. package/lib/pipes/format-currency.pipe.ts +46 -0
  1756. package/lib/pipes/format-duration.pipe.ts +38 -0
  1757. package/lib/pipes/highlight-search.pipe.ts +41 -0
  1758. package/lib/pipes/index.ts +26 -0
  1759. package/lib/pipes/load-status-background-color.pipe.ts +106 -0
  1760. package/lib/pipes/load-status-color.pipe.ts +151 -0
  1761. package/lib/pipes/load-status-colors.pipe.ts +109 -0
  1762. package/lib/pipes/n-formatter.pipe.ts +41 -0
  1763. package/lib/pipes/name-initials.pipe.ts +26 -0
  1764. package/lib/pipes/progress-bar-line.pipe.ts +25 -0
  1765. package/lib/pipes/row-class.pipe.ts +22 -0
  1766. package/lib/pipes/safe-html.pipe.ts +16 -0
  1767. package/lib/pipes/table-highlight-search-text.pipe.ts +56 -0
  1768. package/lib/pipes/thousand-formater.pipe.ts +15 -0
  1769. package/lib/pipes/thousand-separator.pipe.ts +19 -0
  1770. package/lib/pipes/thousand-to-short-format-pipe.ts +16 -0
  1771. package/lib/pipes/to-lower-case.pipe.ts +12 -0
  1772. package/lib/pipes/truck-trailer-color-finder.pipe.ts +65 -0
  1773. package/lib/pipes/truncate-string.pipe.ts +12 -0
  1774. package/lib/pipes/unit-position.pipe.ts +20 -0
  1775. package/lib/pipes/user-initials.pipe.ts +15 -0
  1776. package/lib/services/google-script.service.ts +45 -0
  1777. package/lib/services/image-base64.service.ts +20 -0
  1778. package/lib/services/truckassist-table.service.ts +18 -0
  1779. package/lib/utils/animations/index.ts +1 -0
  1780. package/lib/utils/animations/toggle-up-down.animation.ts +23 -0
  1781. package/lib/utils/constants/dropdown-menu-content.constants.ts +59 -0
  1782. package/lib/utils/constants/gps-location.constants.ts +108 -0
  1783. package/lib/utils/constants/index.ts +3 -0
  1784. package/lib/utils/constants/search-multiple-states.constant.ts +7 -0
  1785. package/lib/utils/helpers/date-time.helper.ts +22 -0
  1786. package/lib/utils/helpers/dropdown-menu-content-conditional-items.helper.ts +66 -0
  1787. package/lib/utils/helpers/dropdown-menu-content.helper.ts +69 -0
  1788. package/lib/utils/helpers/file.helpers.ts +14 -0
  1789. package/lib/utils/helpers/gps-location.helper.ts +159 -0
  1790. package/lib/utils/helpers/index.ts +7 -0
  1791. package/lib/utils/helpers/methods-calculations.helper.ts +193 -0
  1792. package/lib/utils/helpers/user.helper.ts +19 -0
  1793. package/lib/utils/helpers/uuid.helper.ts +9 -0
  1794. package/lib/utils/svg-routes/index.ts +1 -0
  1795. package/lib/utils/svg-routes/payroll-list-summary-svg-routes.ts +4 -0
  1796. package/lib/utils/svg-routes/shared-svg.routes.ts +91 -0
  1797. package/package.json +1 -1
@@ -0,0 +1,1193 @@
1
+ import {
2
+ AfterViewInit,
3
+ Component,
4
+ ElementRef,
5
+ EventEmitter,
6
+ HostListener,
7
+ Input,
8
+ OnDestroy,
9
+ Output,
10
+ Self,
11
+ ViewChild,
12
+ } from '@angular/core';
13
+ import {
14
+ ControlValueAccessor,
15
+ FormControl,
16
+ FormsModule,
17
+ NgControl,
18
+ ReactiveFormsModule,
19
+ } from '@angular/forms';
20
+ import { CommonModule } from '@angular/common';
21
+
22
+ // Imports
23
+ import moment from 'moment';
24
+ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
25
+ import { Subject, take, takeUntil } from 'rxjs';
26
+
27
+ // Models
28
+ import { ICaInput } from '../ca-input/config';
29
+ import { InputChangeValue, InputSvgRoutes } from '../ca-input/utils';
30
+
31
+ // Pipe
32
+ import {
33
+ InputContainerClassPipe,
34
+ InputDatetimePickerClassPipe,
35
+ } from '../ca-input/pipes';
36
+
37
+ // Components
38
+ import { CaCustomDatetimePickersComponent } from '../ca-custom-datetime-pickers/ca-custom-datetime-pickers.component';
39
+ import { CaInputPlaceholderIconComponent } from '../ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component';
40
+
41
+ // Enums
42
+ import { InputConfigNameStringEnum } from '../ca-input/enums';
43
+
44
+ // Services
45
+ import { CalendarDateTimePickerService } from '../ca-custom-datetime-pickers/services/calendar-datetime-picker.service';
46
+ import { AngularSvgIconModule } from 'angular-svg-icon';
47
+ import { FormControlPipe } from '../ca-input/pipes/form-control.pipe';
48
+ import { InputTestComponent } from '../ca-input-test/input-test.component';
49
+ @Component({
50
+ selector: 'ca-input-datetime-picker',
51
+ templateUrl: './ca-input-datetime-picker.component.html',
52
+ styleUrls: [
53
+ './ca-input-datetime-picker.component.scss',
54
+ '../ca-input/scss//ca-input.datepicker.scss',
55
+ ],
56
+ imports: [
57
+ // modules
58
+ CommonModule,
59
+ FormsModule,
60
+ ReactiveFormsModule,
61
+ AngularSvgIconModule,
62
+ // components
63
+ CaCustomDatetimePickersComponent,
64
+ InputTestComponent,
65
+ // pipes
66
+ InputDatetimePickerClassPipe,
67
+ InputContainerClassPipe,
68
+ FormControlPipe,
69
+ ],
70
+ providers: [CalendarDateTimePickerService],
71
+ })
72
+ export class CaInputDatetimePickerComponent
73
+ implements AfterViewInit, ControlValueAccessor, OnDestroy
74
+ {
75
+ @Input() inputConfig!: ICaInput;
76
+ @Input() formFormat?: string;
77
+
78
+ @Output('clear') clearInputEvent: EventEmitter<boolean> =
79
+ new EventEmitter<boolean>();
80
+ @Output('blurInput') blurInputEvent: EventEmitter<boolean> =
81
+ new EventEmitter<boolean>();
82
+
83
+ @ViewChild(CaInputPlaceholderIconComponent)
84
+ caInputPlaceholderIconComponent!: CaInputPlaceholderIconComponent;
85
+
86
+ @ViewChild('dateTimePopover') dateTimePopover!: NgbPopover;
87
+ @ViewChild(InputTestComponent, { static: true })
88
+ caInputComponent!: InputTestComponent;
89
+
90
+ public inputFormControl: FormControl = new FormControl(null);
91
+
92
+ public showDateInput: boolean = false;
93
+ public dateTimeInputDate: Date = new Date();
94
+ public dateTimeIntDate: Date = new Date();
95
+ public selectionInput: number = -1;
96
+
97
+ private dateTimeMainTimer!: ReturnType<typeof setTimeout> | number;
98
+ private focusBlur!: ReturnType<typeof setTimeout> | number;
99
+ private timeoutCleaner!: ReturnType<typeof setTimeout> | number;
100
+
101
+ public inputSvgRoutes = InputSvgRoutes;
102
+
103
+ public isTouchedInput: boolean = false;
104
+ public preventBlur: boolean = false;
105
+ // Date
106
+ public newInputChanged: boolean = false;
107
+
108
+ @Output() selectLastOneForSelectionEmitter = new EventEmitter<boolean>();
109
+ @Output() selectLastOneAfterMouseUpEmitter = new EventEmitter<boolean>();
110
+ @Output() onDatePasteEmitter = new EventEmitter<ClipboardEvent>();
111
+ @Output() onFocusEmitter = new EventEmitter<FocusEvent>();
112
+ @Output() changeSelectionEmmiter = new EventEmitter<{
113
+ e: KeyboardEvent;
114
+ noPreventDefault: boolean;
115
+ }>();
116
+ @Output() setSelectionEmmiter = new EventEmitter<{
117
+ preventDefault: () => void;
118
+ stopPropagation: () => void;
119
+ target: any;
120
+ }>();
121
+
122
+ @ViewChild('span1', { static: true }) span1!: ElementRef;
123
+ @ViewChild('span2', { static: true }) span2!: ElementRef;
124
+ @ViewChild('span3', { static: true }) span3!: ElementRef;
125
+ @ViewChild('holder1', { static: true }) holder1!: ElementRef;
126
+
127
+ private destroy$: Subject<void> = new Subject<void>();
128
+
129
+ constructor(
130
+ @Self() public superControl: NgControl,
131
+ private calendarService: CalendarDateTimePickerService
132
+ ) {
133
+ this.superControl.valueAccessor = this;
134
+ }
135
+
136
+ valueAfterWriteValue!: string;
137
+
138
+ ngOnInit(): void {
139
+ if (this.superControl?.control) {
140
+ this.superControl.control.valueChanges
141
+ .pipe(take(1)) // 👈 only listen once
142
+ .subscribe((_) => {
143
+ if (this.valueAfterWriteValue) {
144
+ setTimeout(() => {
145
+ this.onChange(this.valueAfterWriteValue);
146
+ });
147
+ }
148
+ });
149
+ }
150
+ }
151
+
152
+ ngAfterViewInit(): void {
153
+ if (this.valueAfterWriteValue) {
154
+ this.setTimeDateInput(this.valueAfterWriteValue);
155
+ } else {
156
+ this.setTimePickerTime();
157
+ }
158
+
159
+ this.calendarService.dateChanged
160
+ .pipe(takeUntil(this.destroy$))
161
+ .subscribe((date) => {
162
+ if (!this.inputConfig.isDisabled) {
163
+ this.setTimeDateInput(date);
164
+ this.caInputComponent.caInputPlaceholderIconComponent.t2?.close();
165
+ }
166
+ });
167
+ }
168
+
169
+ get getSuperControl() {
170
+ return this.superControl.control;
171
+ }
172
+
173
+ public selectLastOneForSelection(): void {
174
+ let range, selection;
175
+
176
+ this.showDateInput = true;
177
+ this.selectionInput = -1;
178
+ this.caInputComponent.isFocusInput = true;
179
+
180
+ if (window.getSelection && document.createRange) {
181
+ selection = window.getSelection();
182
+ range = document.createRange();
183
+
184
+ if (
185
+ this.inputConfig.name !==
186
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
187
+ ) {
188
+ range.setStart(this.span3.nativeElement, 1);
189
+ range.setEnd(this.span3.nativeElement, 1);
190
+ } else {
191
+ range.setStart(this.span2.nativeElement, 1);
192
+ range.setEnd(this.span2.nativeElement, 1);
193
+ }
194
+
195
+ selection?.removeAllRanges();
196
+ selection?.addRange(range);
197
+ }
198
+
199
+ this.timeoutCleaner = setTimeout(() => {
200
+ clearTimeout(this.dateTimeMainTimer);
201
+ clearTimeout(this.focusBlur);
202
+ }, 90);
203
+ }
204
+
205
+ public selectLastOneAfterMouseUp(): void {
206
+ if (
207
+ this.inputConfig.name ===
208
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
209
+ ) {
210
+ this.selectionInput = 1;
211
+ this.span2.nativeElement.focus();
212
+ this.setSpanSelection(this.span2.nativeElement);
213
+ } else {
214
+ this.selectionInput = 2;
215
+ this.span3.nativeElement.focus();
216
+ this.setSpanSelection(this.span3.nativeElement);
217
+ }
218
+
219
+ this.showDateInput = true;
220
+
221
+ this.timeoutCleaner = setTimeout(() => {
222
+ clearTimeout(this.dateTimeMainTimer);
223
+ clearTimeout(this.focusBlur);
224
+ }, 90);
225
+ }
226
+
227
+ // 05/05/2025
228
+ public onDatePaste(event: ClipboardEvent): void {
229
+ event.preventDefault();
230
+
231
+ const pasteText = event.clipboardData?.getData('text') as string;
232
+ const pastedDate = new Date(pasteText);
233
+ if (!isNaN(pastedDate.getTime())) {
234
+ this.setTimeDateInput(pastedDate);
235
+ this.selectSpanByTabIndex(this.selectionInput);
236
+ }
237
+ }
238
+
239
+ changeSelection(e: any, noPreventDefault = false): void {
240
+ const isCtrlV = (e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'v';
241
+
242
+ if (isCtrlV) {
243
+ // Allow paste
244
+ return;
245
+ }
246
+
247
+ if (
248
+ e.keyCode == 37 ||
249
+ e.keyCode == 38 ||
250
+ e.keyCode == 39 ||
251
+ e.keyCode == 40 ||
252
+ e.keyCode == 8 ||
253
+ e.keyCode == 9 ||
254
+ e.keyCode == 46 ||
255
+ (this.selectionInput == 3 && this.inputConfig.name === 'timepicker')
256
+ ) {
257
+ !e.noPrevent && e.preventDefault();
258
+ if (e.keyCode == 37) {
259
+ if (this.selectionInput != 0) {
260
+ this.selectionInput = this.selectionInput - 1;
261
+ this.selectSpanByTabIndex(this.selectionInput, true);
262
+ }
263
+ } else if (e.keyCode == 39 || e.keyCode == 9) {
264
+ if (
265
+ ((this.inputConfig.name === 'datepickerBankCard' &&
266
+ this.selectionInput != 1) ||
267
+ (this.inputConfig.name !== 'datepickerBankCard' &&
268
+ this.selectionInput != 2)) &&
269
+ !e.shiftKey
270
+ ) {
271
+ this.selectionInput = this.selectionInput + 1;
272
+ this.selectSpanByTabIndex(this.selectionInput, true);
273
+ } else if (e.keyCode == 9 && !e.shiftKey) {
274
+ let allInputs = document.querySelectorAll(
275
+ 'input.input-control'
276
+ ) as NodeListOf<HTMLInputElement>;
277
+ [...(allInputs as any)].map((item, indx) => {
278
+ if (
279
+ item ===
280
+ this.caInputComponent.inputElement.nativeElement
281
+ ) {
282
+ if (allInputs[indx + 1]) {
283
+ allInputs[indx + 1].focus();
284
+ } else {
285
+ this.blurOnDateTime();
286
+ }
287
+ this.selectionInput = -1;
288
+ return;
289
+ }
290
+ });
291
+ } else if (
292
+ e.shiftKey &&
293
+ e.keyCode == 9 &&
294
+ this.selectionInput != 0
295
+ ) {
296
+ if (this.selectionInput == -1) {
297
+ this.selectionInput = 3;
298
+ }
299
+ this.selectionInput = this.selectionInput - 1;
300
+ this.selectSpanByTabIndex(this.selectionInput);
301
+ } else if (
302
+ e.shiftKey &&
303
+ e.keyCode == 9 &&
304
+ this.selectionInput == 0
305
+ ) {
306
+ let allInputs = document.querySelectorAll('input');
307
+ [...(allInputs as any)].map((item, indx) => {
308
+ if (
309
+ item ===
310
+ this.caInputComponent.inputElement.nativeElement
311
+ ) {
312
+ if (allInputs[indx - 1]) {
313
+ allInputs[indx - 1].focus();
314
+ }
315
+ this.selectionInput = -1;
316
+ return;
317
+ }
318
+ });
319
+ }
320
+ } else if (e.keyCode == 38) {
321
+ this.setDateTimeModel('up');
322
+ } else if (e.keyCode == 40) {
323
+ this.setDateTimeModel('down');
324
+ } else if (e.keyCode == 8 || e.keyCode == 46) {
325
+ this.handleKeyboardInputs(e, true);
326
+ }
327
+ } else if (!this.isNumber(e)) {
328
+ if (!noPreventDefault) {
329
+ e.preventDefault();
330
+ }
331
+ } else {
332
+ if (!noPreventDefault) {
333
+ e.preventDefault();
334
+ }
335
+ if (this.selectionInput == -1) {
336
+ this.selectionInput = 0;
337
+ }
338
+
339
+ this.handleKeyboardInputs(e);
340
+ }
341
+ }
342
+
343
+ public changeSelectionTwo(
344
+ event: KeyboardEvent,
345
+ noPreventDefault = false
346
+ ): void {
347
+ if (!noPreventDefault) {
348
+ event.preventDefault();
349
+ event.stopPropagation();
350
+ }
351
+
352
+ const isNavigationKey = this.isNavigationKey(event);
353
+ const isSpecialTimePickerKey =
354
+ this.selectionInput === 3 &&
355
+ this.inputConfig.name === InputConfigNameStringEnum.TIME_PICKER;
356
+
357
+ if (isNavigationKey || isSpecialTimePickerKey) {
358
+ event.preventDefault();
359
+ this.handleNavigationKey(event);
360
+ } else if (!this.isNumber(event)) {
361
+ if (!noPreventDefault) event.preventDefault();
362
+ else {
363
+ if (!noPreventDefault) event.preventDefault();
364
+
365
+ if (this.selectionInput === -1) this.selectionInput = 0;
366
+ this.handleKeyboardInputs(event);
367
+ }
368
+ }
369
+ }
370
+
371
+ private isNumber(evt: KeyboardEvent): boolean {
372
+ evt = evt ? evt : (window.event as KeyboardEvent);
373
+ let charCode = evt.which ? evt.which : evt.keyCode;
374
+ return (
375
+ (charCode >= 48 && charCode <= 57) ||
376
+ (charCode >= 96 && charCode <= 105)
377
+ );
378
+ }
379
+
380
+ private isNavigationKey(e: KeyboardEvent): boolean {
381
+ const navigationKeys = [37, 38, 39, 40, 8, 9, 46]; // Arrow keys, Backspace, Tab, Delete
382
+ return navigationKeys.includes(e.keyCode);
383
+ }
384
+
385
+ public onFocus(event?: FocusEvent): void {
386
+ this.onFocusEmitter.emit(event);
387
+ }
388
+
389
+ public closePopover(): void {
390
+ if (this.caInputComponent.caInputPlaceholderIconComponent.t2)
391
+ this.caInputComponent.caInputPlaceholderIconComponent.t2.close();
392
+ }
393
+
394
+ public toggleDropdownOptions() {
395
+ if (this.caInputComponent?.caInputPlaceholderIconComponent?.t2) {
396
+ if (
397
+ !this.caInputComponent.caInputPlaceholderIconComponent.t2.isOpen()
398
+ ) {
399
+ clearTimeout(this.dateTimeMainTimer);
400
+ clearTimeout(this.focusBlur);
401
+ this.holder1.nativeElement.focus();
402
+ this.selectionInput = -1;
403
+ this.setSpanSelection(this.holder1.nativeElement);
404
+ this.caInputComponent.caInputPlaceholderIconComponent.t2.open();
405
+ } else {
406
+ this.holder1.nativeElement.blur();
407
+ // this.setIsFocusInput(false);
408
+ let selection = window.getSelection();
409
+ selection?.removeAllRanges();
410
+ }
411
+ return;
412
+ }
413
+ }
414
+
415
+ public handleFocusInput(e: Event) {
416
+ const event = e as FocusEvent;
417
+
418
+ if (!this.inputConfig.isDisabled) {
419
+ clearTimeout(this.dateTimeMainTimer);
420
+ clearTimeout(this.focusBlur);
421
+ this.showDateInput = true;
422
+ if (
423
+ (this.selectionInput === -1 &&
424
+ (event?.target as HTMLElement)?.nodeName === 'INPUT') ||
425
+ (event?.relatedTarget as HTMLElement)?.nodeName === 'INPUT' ||
426
+ event?.relatedTarget === null
427
+ ) {
428
+ this.preventBlur = true;
429
+ this.holder1.nativeElement.focus();
430
+ this.setSpanSelection(this.holder1.nativeElement);
431
+ this.selectionInput = -1;
432
+ }
433
+
434
+ this.caInputComponent.caInputPlaceholderIconComponent.t2.toggle();
435
+ }
436
+ }
437
+
438
+ public setSpanSelection(element: Node): void {
439
+ let range: Range;
440
+ let selection: Selection | null;
441
+
442
+ if (window.getSelection && document.createRange) {
443
+ selection = window.getSelection();
444
+ range = document.createRange();
445
+ range.selectNodeContents(element);
446
+ selection?.removeAllRanges();
447
+ selection?.addRange(range);
448
+ }
449
+ }
450
+
451
+ public setSelection(event: {
452
+ preventDefault: () => void;
453
+ stopPropagation: () => void;
454
+ target: any;
455
+ }): void {
456
+ const element = event.target;
457
+
458
+ const selectionInput = parseInt(element.getAttribute('tabindex'));
459
+
460
+ const currentSelection = window.getSelection();
461
+
462
+ if (currentSelection && currentSelection.toString().length > 10) {
463
+ this.holder1.nativeElement.focus();
464
+ this.selectionInput = 0;
465
+ this.setSpanSelection(this.holder1.nativeElement);
466
+ clearTimeout(this.dateTimeMainTimer);
467
+ clearTimeout(this.focusBlur);
468
+ return;
469
+ }
470
+
471
+ clearTimeout(this.dateTimeMainTimer);
472
+ if (element.classList.contains('main')) {
473
+ this.selectionInput = selectionInput;
474
+ this.setSpanSelection(element);
475
+ } else {
476
+ if (this.selectionInput === -1) {
477
+ this.span1.nativeElement.focus();
478
+ this.selectionInput = 0;
479
+ this.setSpanSelection(this.span1.nativeElement);
480
+ } else {
481
+ event.preventDefault();
482
+ this.selectSpanByTabIndex(this.selectionInput);
483
+ }
484
+ }
485
+ }
486
+
487
+ public registerOnChange(fn: any): void {
488
+ this.onChange = fn;
489
+ }
490
+
491
+ public onChange(_: InputChangeValue): void {}
492
+
493
+ public writeValue(obj: InputChangeValue): void {
494
+ if (obj) this.setTimeDateInput(obj, true);
495
+ }
496
+
497
+ public registerOnTouched(): void {}
498
+
499
+ // BLUR ON INPUT
500
+ public blurOnDateTime(): void {
501
+ clearTimeout(this.dateTimeMainTimer);
502
+ this.dateTimeMainTimer = setTimeout(() => {
503
+ if (
504
+ this.inputConfig.name === InputConfigNameStringEnum.DATE_PICKER
505
+ ) {
506
+ if (
507
+ !isNaN(this.span1?.nativeElement.innerHTML) &&
508
+ !isNaN(this.span2?.nativeElement.innerHTML) &&
509
+ !isNaN(this.span3?.nativeElement.innerHTML)
510
+ ) {
511
+ if (
512
+ this.inputConfig.isFutureDateDisabled &&
513
+ moment(this.dateTimeInputDate).isAfter(moment())
514
+ )
515
+ this.superControl.control?.setErrors({
516
+ invalid: true,
517
+ });
518
+ // don't accept future dates
519
+ else {
520
+ if (
521
+ this.inputConfig.expiredDateInvalid &&
522
+ moment(this.dateTimeInputDate).isBefore(moment())
523
+ ) {
524
+ this.superControl.control?.setErrors({
525
+ invalid: true,
526
+ }); // don't accept expired dates
527
+ } else {
528
+ this.calendarService.dateChanged.next(
529
+ this.dateTimeInputDate
530
+ );
531
+ }
532
+ }
533
+ } else {
534
+ this.span1.nativeElement.innerHTML = 'mm';
535
+ this.span2.nativeElement.innerHTML = 'dd';
536
+ this.span3.nativeElement.innerHTML = 'yy';
537
+ this.dateTimeInputDate = new Date();
538
+ this.showDateInput = false;
539
+ }
540
+ } else if (
541
+ this.inputConfig.name ===
542
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
543
+ ) {
544
+ if (
545
+ !isNaN(this.span1.nativeElement.innerHTML) &&
546
+ !isNaN(this.span2.nativeElement.innerHTML)
547
+ ) {
548
+ if (
549
+ this.inputConfig.expiredDateInvalid &&
550
+ moment(this.dateTimeInputDate).isBefore(moment())
551
+ ) {
552
+ this.superControl.control?.setErrors({ invalid: true }); // don't accept expired dates
553
+ } else {
554
+ this.calendarService.dateChanged.next(
555
+ this.dateTimeInputDate
556
+ );
557
+ }
558
+ } else {
559
+ this.span1.nativeElement.innerHTML = 'mm';
560
+ this.span2.nativeElement.innerHTML = 'yy';
561
+ this.dateTimeInputDate = new Date();
562
+ this.showDateInput = false;
563
+ }
564
+ } else {
565
+ if (
566
+ !isNaN(this.span1.nativeElement.innerHTML) &&
567
+ !isNaN(this.span2.nativeElement.innerHTML)
568
+ ) {
569
+ this.calendarService.dateChanged.next(
570
+ this.dateTimeInputDate
571
+ );
572
+ } else {
573
+ this.span1.nativeElement.innerHTML = 'HH';
574
+ this.span2.nativeElement.innerHTML = 'MM';
575
+ this.setTimePickerTime();
576
+ this.showDateInput = false;
577
+ }
578
+ }
579
+
580
+ clearTimeout(this.dateTimeMainTimer);
581
+ this.selectionInput = -1;
582
+ this.newInputChanged = true;
583
+ }, 100);
584
+ }
585
+
586
+ public onPopoverShown(): void {
587
+ this.showDateInput = true;
588
+ this.holder1.nativeElement.focus();
589
+ }
590
+
591
+ public onPopoverHidden(): void {
592
+ this.blurOnDateTime();
593
+ }
594
+
595
+ public setTimeDateInput(date: InputChangeValue, hasValue?: boolean): void {
596
+ let text, dateFormat, timeFormat;
597
+ if (this.inputConfig.name === InputConfigNameStringEnum.DATE_PICKER) {
598
+ text = moment(new Date(date)).format('MM/DD/YY');
599
+ dateFormat = text.split('/');
600
+ } else if (
601
+ this.inputConfig.name ===
602
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
603
+ ) {
604
+ text = moment(new Date(date)).format('MM/DD/YY');
605
+ dateFormat = text.split('/');
606
+ } else {
607
+ date =
608
+ date instanceof Date
609
+ ? date
610
+ : new Date(moment().format('MM/DD/YYYY') + ' ' + date);
611
+ text = moment(new Date(date)).format('HH:mm');
612
+
613
+ timeFormat = moment(new Date(date)).format('hh/mm/A');
614
+ dateFormat = timeFormat.split('/');
615
+ }
616
+
617
+ if (this.formFormat) {
618
+ const newFormFormat = moment(new Date(date)).format(
619
+ this.formFormat
620
+ );
621
+ this.valueAfterWriteValue = newFormFormat;
622
+ text = newFormFormat;
623
+ }
624
+
625
+ if (!hasValue) this.onChange(text);
626
+ this.setIsFocusInput(false);
627
+
628
+ // HAS TO BE IN TIMEOUT BECAUSE OF ANGULAR STACK
629
+ setTimeout(() => {
630
+ if (this.span1) this.span1.nativeElement.innerHTML = dateFormat[0];
631
+
632
+ if (this.span2)
633
+ if (
634
+ this.inputConfig.name !==
635
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
636
+ ) {
637
+ this.span2.nativeElement.innerHTML = dateFormat[1];
638
+ this.span3.nativeElement.innerHTML = dateFormat[2];
639
+ } else {
640
+ this.span2.nativeElement.innerHTML = dateFormat[2];
641
+ }
642
+ }, 0);
643
+
644
+ if (date) {
645
+ this.dateTimeInputDate = new Date(date);
646
+ }
647
+ this.showDateInput = true;
648
+ }
649
+
650
+ public handleKeyboardInputs(e: KeyboardEvent, isRestart?: boolean): void {
651
+ const spanOneValue: number | undefined =
652
+ isNaN(this.span1.nativeElement.innerHTML) || this.newInputChanged
653
+ ? undefined
654
+ : parseInt(this.span1.nativeElement.innerHTML);
655
+ const span2Value: number | undefined =
656
+ isNaN(this.span2.nativeElement.innerHTML) || this.newInputChanged
657
+ ? undefined
658
+ : parseInt(this.span2.nativeElement.innerHTML);
659
+
660
+ let span3Value: string | number | undefined;
661
+
662
+ if (
663
+ this.inputConfig.name !==
664
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
665
+ ) {
666
+ span3Value =
667
+ isNaN(this.span3.nativeElement.innerHTML) ||
668
+ this.newInputChanged
669
+ ? ''
670
+ : parseInt(this.span3.nativeElement.innerHTML);
671
+ }
672
+
673
+ this.newInputChanged = false;
674
+ if (this.inputConfig.name === InputConfigNameStringEnum.DATE_PICKER) {
675
+ if (this.selectionInput === 0) {
676
+ if (isRestart) {
677
+ this.span1.nativeElement.innerHTML = 'mm';
678
+ this.selectionInput = 0;
679
+ this.selectSpanByTabIndex(0);
680
+ } else if (spanOneValue !== undefined) {
681
+ let final_value = parseInt(`${spanOneValue}${e.key}`);
682
+ if (final_value > 12) {
683
+ this.span1.nativeElement.innerHTML = (
684
+ '0' + parseInt(e.key)
685
+ ).slice(-2);
686
+ this.selectionInput = 1;
687
+ this.selectSpanByTabIndex(1, true);
688
+ } else {
689
+ this.dateTimeInputDate = new Date(
690
+ this.dateTimeInputDate.setMonth(
691
+ parseInt(
692
+ this.span1.nativeElement.innerHTML +
693
+ parseInt(e.key)
694
+ ) - 1
695
+ )
696
+ );
697
+
698
+ if (!final_value)
699
+ this.span1.nativeElement.innerHTML = 'mm';
700
+ else
701
+ this.span1.nativeElement.innerHTML = (
702
+ this.span1.nativeElement.innerHTML +
703
+ parseInt(e.key)
704
+ ).slice(-2);
705
+
706
+ this.selectionInput = 1;
707
+ this.selectSpanByTabIndex(1, true);
708
+ }
709
+ } else {
710
+ if (parseInt(e.key))
711
+ this.dateTimeInputDate = new Date(
712
+ this.dateTimeInputDate.setMonth(parseInt(e.key) - 1)
713
+ );
714
+
715
+ const final_value = ('0' + parseInt(e.key)).slice(-2);
716
+
717
+ this.span1.nativeElement.innerHTML = final_value;
718
+
719
+ if (parseInt(`1${e.key}`) > 12) {
720
+ this.selectionInput = 1;
721
+ this.selectSpanByTabIndex(1, true);
722
+ } else this.selectSpanByTabIndex(0);
723
+ }
724
+ } else if (this.selectionInput === 1) {
725
+ if (isRestart) {
726
+ this.span2.nativeElement.innerHTML = 'dd';
727
+ this.selectionInput = 0;
728
+ this.selectSpanByTabIndex(0, true);
729
+ } else if (span2Value !== undefined) {
730
+ let final_value = parseInt(`${span2Value}${e.key}`);
731
+ if (final_value > 31) {
732
+ this.span2.nativeElement.innerHTML = (
733
+ '0' + parseInt(e.key)
734
+ ).slice(-2);
735
+ this.selectionInput = 2;
736
+ this.selectSpanByTabIndex(2, true);
737
+ } else {
738
+ this.dateTimeInputDate = new Date(
739
+ this.dateTimeInputDate.setDate(
740
+ parseInt(
741
+ this.span2.nativeElement.innerHTML +
742
+ parseInt(e.key)
743
+ )
744
+ )
745
+ );
746
+
747
+ if (!final_value) {
748
+ this.span2.nativeElement.innerHTML = 'dd';
749
+ } else {
750
+ this.span2.nativeElement.innerHTML = (
751
+ this.span2.nativeElement.innerHTML +
752
+ parseInt(e.key)
753
+ ).slice(-2);
754
+ }
755
+
756
+ this.selectionInput = 2;
757
+ this.selectSpanByTabIndex(2, true);
758
+ }
759
+ } else {
760
+ if (parseInt(e.key))
761
+ this.dateTimeInputDate = new Date(
762
+ this.dateTimeInputDate.setDate(parseInt(e.key))
763
+ );
764
+
765
+ this.span2.nativeElement.innerHTML = (
766
+ '0' + parseInt(e.key)
767
+ ).slice(-2);
768
+
769
+ if (parseInt(`1${e.key}`) > 31) {
770
+ this.selectionInput = 2;
771
+ this.selectSpanByTabIndex(2, true);
772
+ } else {
773
+ this.selectSpanByTabIndex(1);
774
+ }
775
+ }
776
+ } else {
777
+ if (isRestart) {
778
+ this.span3.nativeElement.innerHTML = 'yy';
779
+ this.selectionInput = 1;
780
+ this.selectSpanByTabIndex(1, true);
781
+ } else if (!span3Value || span3Value.toString().length === 2) {
782
+ this.span3.nativeElement.innerHTML = (
783
+ '0' + parseInt(e.key)
784
+ ).slice(-2);
785
+ this.dateTimeInputDate = new Date(
786
+ this.dateTimeInputDate.setFullYear(
787
+ parseInt(`200${parseInt(e.key)}`)
788
+ )
789
+ );
790
+
791
+ this.selectSpanByTabIndex(2);
792
+ } else {
793
+ const finalYear = parseInt(
794
+ this.span3.nativeElement.innerHTML + parseInt(e.key)
795
+ );
796
+
797
+ const finalShowYear =
798
+ finalYear > 31
799
+ ? parseInt(`19${finalYear}`)
800
+ : parseInt(`20${finalYear}`);
801
+ this.dateTimeInputDate = new Date(
802
+ this.dateTimeInputDate.setFullYear(finalShowYear)
803
+ );
804
+
805
+ this.span3.nativeElement.innerHTML = (
806
+ this.span3.nativeElement.innerHTML + parseInt(e.key)
807
+ ).slice(-2);
808
+ this.selectSpanByTabIndex(2);
809
+ }
810
+ }
811
+ } else if (
812
+ this.inputConfig.name ===
813
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
814
+ ) {
815
+ if (!this.selectionInput) {
816
+ if (isRestart) {
817
+ this.span1.nativeElement.innerHTML = 'mm';
818
+ this.selectionInput = 0;
819
+ this.selectSpanByTabIndex(0);
820
+ } else if (spanOneValue) {
821
+ const final_value = parseInt(`${spanOneValue}${e.key}`);
822
+ if (final_value > 12) {
823
+ this.span1.nativeElement.innerHTML = (
824
+ '0' + parseInt(e.key)
825
+ ).slice(-2);
826
+ this.selectionInput = 1;
827
+ this.selectSpanByTabIndex(1, true);
828
+ } else {
829
+ this.dateTimeInputDate = new Date(
830
+ this.dateTimeInputDate.setMonth(
831
+ parseInt(
832
+ this.span1.nativeElement.innerHTML +
833
+ parseInt(e.key)
834
+ ) - 1
835
+ )
836
+ );
837
+
838
+ if (!final_value) {
839
+ this.span1.nativeElement.innerHTML = 'mm';
840
+ } else {
841
+ this.span1.nativeElement.innerHTML = (
842
+ this.span1.nativeElement.innerHTML +
843
+ parseInt(e.key)
844
+ ).slice(-2);
845
+ }
846
+
847
+ this.selectionInput = 1;
848
+ this.selectSpanByTabIndex(1, true);
849
+ }
850
+ } else {
851
+ if (parseInt(e.key))
852
+ this.dateTimeInputDate = new Date(
853
+ this.dateTimeInputDate.setMonth(parseInt(e.key) - 1)
854
+ );
855
+
856
+ const final_value = ('0' + parseInt(e.key)).slice(-2);
857
+
858
+ this.span1.nativeElement.innerHTML = final_value;
859
+
860
+ if (parseInt(`1${e.key}`) > 12) {
861
+ this.selectionInput = 1;
862
+ this.selectSpanByTabIndex(1, true);
863
+ } else this.selectSpanByTabIndex(0);
864
+ }
865
+ } else {
866
+ if (isRestart) {
867
+ this.span2.nativeElement.innerHTML = 'yy';
868
+ this.selectionInput = 2;
869
+ this.selectSpanByTabIndex(2, true);
870
+ } else if (!span2Value || span2Value.toString().length === 2) {
871
+ this.span2.nativeElement.innerHTML = (
872
+ '0' + parseInt(e.key)
873
+ ).slice(-2);
874
+ this.dateTimeInputDate = new Date(
875
+ this.dateTimeInputDate.setFullYear(
876
+ parseInt(`200${parseInt(e.key)}`)
877
+ )
878
+ );
879
+
880
+ this.selectSpanByTabIndex(1);
881
+ } else {
882
+ const finalYear = parseInt(
883
+ this.span2.nativeElement.innerHTML + parseInt(e.key)
884
+ );
885
+
886
+ const finalShowYear =
887
+ finalYear > 31
888
+ ? parseInt(`19${finalYear}`)
889
+ : parseInt(`20${finalYear}`);
890
+ this.dateTimeInputDate = new Date(
891
+ this.dateTimeInputDate.setFullYear(finalShowYear)
892
+ );
893
+
894
+ this.span2.nativeElement.innerHTML = (
895
+ this.span2.nativeElement.innerHTML + parseInt(e.key)
896
+ ).slice(-2);
897
+ this.selectSpanByTabIndex(1);
898
+ }
899
+ }
900
+ }
901
+ }
902
+
903
+ selectSpanByTabIndex(indx: number, changeTab?: boolean): void {
904
+ switch (indx) {
905
+ case 0:
906
+ this.setSpanSelection(this.span1.nativeElement);
907
+ break;
908
+ case 1:
909
+ this.setSpanSelection(this.span2.nativeElement);
910
+ break;
911
+ case 2:
912
+ this.setSpanSelection(this.span3.nativeElement);
913
+ break;
914
+ default:
915
+ this.setSpanSelection(this.holder1.nativeElement);
916
+ }
917
+
918
+ if (changeTab) this.newInputChanged = true;
919
+ }
920
+
921
+ private handleNavigationKey(event: KeyboardEvent): void {
922
+ switch (event.keyCode) {
923
+ case 37: // Left arrow
924
+ this.moveSelectionLeft();
925
+ break;
926
+ case 39: // Right arrow
927
+ case 9: // Tab
928
+ this.moveSelectionRightOrTab(event);
929
+ break;
930
+ case 38: // Up arrow
931
+ this.setDateTimeModel('up');
932
+ break;
933
+ case 40: // Down arrow
934
+ this.setDateTimeModel('down');
935
+ break;
936
+ case 8: // Backspace
937
+ case 46: // Delete
938
+ this.handleKeyboardInputs(event, true);
939
+ break;
940
+ }
941
+ }
942
+
943
+ private handleDatePickerInput(isUp: boolean, isDatePicker: boolean): void {
944
+ if (this.selectionInput === 0) this.updateMonth(isUp);
945
+ else if (this.selectionInput === 1) this.updateDate(isUp, isDatePicker);
946
+ else this.updateYear(isUp, isDatePicker);
947
+ }
948
+
949
+ private setDateTimeModel(direction: string): void {
950
+ if (this.selectionInput === -1) this.selectionInput = 0;
951
+
952
+ const isUp = direction === 'up';
953
+ const isDatePicker =
954
+ this.inputConfig.name === InputConfigNameStringEnum.DATE_PICKER;
955
+ const isBankCardPicker =
956
+ this.inputConfig.name ===
957
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD;
958
+
959
+ if (isDatePicker || isBankCardPicker)
960
+ this.handleDatePickerInput(isUp, isDatePicker);
961
+ else this.handleTimePickerInput(isUp);
962
+ }
963
+
964
+ private moveSelectionRightOrTab(e: KeyboardEvent): void {
965
+ const isDatepickerBankCard =
966
+ this.inputConfig.name ===
967
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD;
968
+ const maxIndex = isDatepickerBankCard ? 1 : 2;
969
+
970
+ if (this.selectionInput < maxIndex && !e.shiftKey) {
971
+ this.selectionInput += 1;
972
+ this.selectSpanByTabIndex(this.selectionInput, true);
973
+ } else if (e.keyCode === 9 && !e.shiftKey) {
974
+ this.focusNextInput();
975
+ } else if (e.shiftKey && e.keyCode === 9) {
976
+ this.focusPreviousInput();
977
+ }
978
+ }
979
+
980
+ private focusPreviousInput(): void {
981
+ const allInputs = Array.from(
982
+ document.querySelectorAll('input.input-control')
983
+ ) as HTMLInputElement[];
984
+
985
+ const currentIndex = allInputs.findIndex(
986
+ (input) =>
987
+ input === this.caInputComponent.inputElement.nativeElement
988
+ );
989
+
990
+ if (currentIndex === -1) this.selectionInput = 3;
991
+ else if (currentIndex === 0) this.selectionInput = 0;
992
+ else {
993
+ this.selectionInput -= 1;
994
+ this.selectSpanByTabIndex(this.selectionInput);
995
+ }
996
+
997
+ if (currentIndex > 0) allInputs[currentIndex - 1].focus();
998
+
999
+ this.selectionInput = -1;
1000
+ }
1001
+
1002
+ private focusNextInput(): void {
1003
+ const allInputs = Array.from(
1004
+ document.querySelectorAll('input.input-control')
1005
+ ) as HTMLInputElement[];
1006
+ const currentIndex = allInputs.findIndex(
1007
+ (input) =>
1008
+ input === this.caInputComponent.inputElement.nativeElement
1009
+ );
1010
+
1011
+ if (allInputs[currentIndex + 1]) allInputs[currentIndex + 1].focus();
1012
+ else {
1013
+ this.setIsFocusInput(false);
1014
+ this.blurOnDateTime();
1015
+ }
1016
+
1017
+ this.selectionInput = -1;
1018
+ }
1019
+
1020
+ public setIsFocusInput(value: boolean): void {
1021
+ this.caInputComponent.isFocusInput = value;
1022
+ }
1023
+
1024
+ private moveSelectionLeft(): void {
1025
+ if (this.selectionInput > 0) {
1026
+ this.selectionInput -= 1;
1027
+ this.selectSpanByTabIndex(this.selectionInput, true);
1028
+ }
1029
+ }
1030
+
1031
+ private updateMonth(isUp: boolean): void {
1032
+ const monthDelta = isUp ? 1 : -1;
1033
+ this.dateTimeInputDate = new Date(
1034
+ this.dateTimeInputDate.setMonth(
1035
+ this.dateTimeInputDate.getMonth() + monthDelta
1036
+ )
1037
+ );
1038
+
1039
+ this.span1.nativeElement.innerHTML = this.padValue(
1040
+ this.dateTimeInputDate.getMonth() + 1
1041
+ );
1042
+ this.setSpanSelection(this.span1.nativeElement);
1043
+ }
1044
+
1045
+ private updateDate(isUp: boolean, isDatePicker: boolean): void {
1046
+ const dateDelta = isUp ? 1 : -1;
1047
+ this.dateTimeInputDate = new Date(
1048
+ this.dateTimeInputDate.setDate(
1049
+ this.dateTimeInputDate.getDate() + dateDelta
1050
+ )
1051
+ );
1052
+
1053
+ const spanElement = isDatePicker
1054
+ ? this.span2.nativeElement
1055
+ : this.span1.nativeElement;
1056
+ spanElement.innerHTML = this.padValue(this.dateTimeInputDate.getDate());
1057
+ this.setSpanSelection(spanElement);
1058
+ }
1059
+
1060
+ private updateYear(isUp: boolean, isDatePicker: boolean): void {
1061
+ const yearDelta = isUp ? 1 : -1;
1062
+ this.dateTimeInputDate = new Date(
1063
+ this.dateTimeInputDate.setFullYear(
1064
+ this.dateTimeInputDate.getFullYear() + yearDelta
1065
+ )
1066
+ );
1067
+
1068
+ const spanElement = isDatePicker
1069
+ ? this.span3.nativeElement
1070
+ : this.span2.nativeElement;
1071
+ spanElement.innerHTML = this.dateTimeInputDate
1072
+ .getFullYear()
1073
+ .toString()
1074
+ .slice(-2);
1075
+ this.setSpanSelection(spanElement);
1076
+ }
1077
+
1078
+ private padValue(value: number): string {
1079
+ return ('0' + value).slice(-2);
1080
+ }
1081
+
1082
+ private handleTimePickerInput(isUp: boolean): void {
1083
+ if (this.selectionInput === 0) this.updateHours(isUp);
1084
+ else if (this.selectionInput === 1) this.updateMinutes(isUp);
1085
+ else this.toggleAMPM();
1086
+ }
1087
+
1088
+ private updateHours(isUp: boolean): void {
1089
+ const hoursDelta = isUp ? 1 : -1;
1090
+ let selectedHours = this.dateTimeInputDate.getHours() + hoursDelta;
1091
+
1092
+ if (selectedHours === 0) selectedHours = 24;
1093
+ if (selectedHours === -1) selectedHours = 23;
1094
+
1095
+ this.dateTimeInputDate = new Date(
1096
+ this.dateTimeInputDate.setHours(selectedHours)
1097
+ );
1098
+
1099
+ this.span1.nativeElement.innerHTML = this.padValue(
1100
+ selectedHours > 12 ? selectedHours - 12 : selectedHours
1101
+ );
1102
+ this.setSpanSelection(this.span1.nativeElement);
1103
+
1104
+ this.span3.nativeElement.innerHTML =
1105
+ selectedHours > 11 && selectedHours < 24 ? 'PM' : 'AM';
1106
+ }
1107
+
1108
+ private updateMinutes(isUp: boolean): void {
1109
+ const minutesDelta = isUp ? 1 : -1;
1110
+ this.dateTimeInputDate = new Date(
1111
+ this.dateTimeInputDate.setMinutes(
1112
+ this.dateTimeInputDate.getMinutes() + minutesDelta
1113
+ )
1114
+ );
1115
+
1116
+ this.span2.nativeElement.innerHTML = this.padValue(
1117
+ this.dateTimeInputDate.getMinutes()
1118
+ );
1119
+ this.setSpanSelection(this.span2.nativeElement);
1120
+ }
1121
+
1122
+ private toggleAMPM(): void {
1123
+ this.span3.nativeElement.innerHTML =
1124
+ this.span3.nativeElement.innerHTML === 'AM' ? 'PM' : 'AM';
1125
+
1126
+ const hoursToAdd =
1127
+ this.span3.nativeElement.innerHTML === 'AM' ? -12 : 12;
1128
+ this.dateTimeInputDate = new Date(
1129
+ this.dateTimeInputDate.setHours(
1130
+ this.dateTimeInputDate.getHours() + hoursToAdd
1131
+ )
1132
+ );
1133
+
1134
+ this.setSpanSelection(this.span3.nativeElement);
1135
+ }
1136
+
1137
+ public clearInput(event: boolean): void {
1138
+ this.clearInputEvent.emit(event);
1139
+
1140
+ this.setIsFocusInput(false);
1141
+ this.resetDateTimeInputs();
1142
+ this.onChange('');
1143
+ }
1144
+
1145
+ public onBlurInput(event: any): void {
1146
+ this.blurInputEvent.emit(event);
1147
+ // Datepicker
1148
+ this.focusBlur = setTimeout(() => {
1149
+ this.blurOnDateTime();
1150
+ }, 100);
1151
+ }
1152
+
1153
+ public resetDateTimeInputs(): void {
1154
+ if (this.span1)
1155
+ if (
1156
+ this.inputConfig.name === InputConfigNameStringEnum.DATE_PICKER
1157
+ ) {
1158
+ this.span1.nativeElement.innerHTML = 'mm';
1159
+ this.span2.nativeElement.innerHTML = 'dd';
1160
+ this.span3.nativeElement.innerHTML = 'yy';
1161
+ } else if (
1162
+ this.inputConfig.name ===
1163
+ InputConfigNameStringEnum.DATE_PICKER_BANK_CARD
1164
+ ) {
1165
+ this.span1.nativeElement.innerHTML = 'mm';
1166
+ this.span2.nativeElement.innerHTML = 'yy';
1167
+ } else if (
1168
+ this.inputConfig.name === InputConfigNameStringEnum.TIME_PICKER
1169
+ ) {
1170
+ this.span1.nativeElement.innerHTML = 'HH';
1171
+ this.span2.nativeElement.innerHTML = 'MM';
1172
+ this.span3.nativeElement.innerHTML = 'AM';
1173
+ }
1174
+
1175
+ this.setTimePickerTime();
1176
+ this.newInputChanged = true;
1177
+ this.setIsFocusInput(false);
1178
+ this.showDateInput = false;
1179
+ }
1180
+
1181
+ public setTimePickerTime(): void {
1182
+ if (this.inputConfig.name === InputConfigNameStringEnum.TIME_PICKER)
1183
+ this.dateTimeInputDate = new Date(
1184
+ moment().format('MM/DD/YYYY') +
1185
+ (this.inputConfig?.isFromDate ? ' 12:15' : ' 12:00')
1186
+ );
1187
+ }
1188
+
1189
+ public ngOnDestroy() {
1190
+ this.destroy$.next();
1191
+ this.destroy$.complete();
1192
+ }
1193
+ }