ca-components 1.3.35 → 1.3.37

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 (220) hide show
  1. package/assets/scss/icons.scss +29 -4
  2. package/assets/scss/input-dropdown-test.scss +2030 -0
  3. package/assets/scss/text-selection.scss +0 -14
  4. package/esm2022/lib/ca-components.module.mjs +8 -2
  5. package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +3 -3
  6. package/esm2022/lib/components/ca-chart/ca-chart.component.mjs +5 -4
  7. package/esm2022/lib/components/ca-checkbox/ca-checkbox.component.mjs +2 -2
  8. package/esm2022/lib/components/ca-collapsible-filter/ca-collapsible-filter.component.mjs +2 -2
  9. package/esm2022/lib/components/ca-comment/ca-comment.component.mjs +2 -2
  10. package/esm2022/lib/components/ca-comment/modals/comment-modal/comment-modal.component.mjs +3 -3
  11. package/esm2022/lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component.mjs +3 -3
  12. package/esm2022/lib/components/ca-details-dropdown/ca-details-dropdown.component.mjs +2 -2
  13. package/esm2022/lib/components/ca-dropdown-menu/ca-dropdown-menu.component.mjs +3 -3
  14. package/esm2022/lib/components/ca-filters/ca-filter.component.mjs +2 -2
  15. package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +2 -2
  16. package/esm2022/lib/components/ca-filters/components/ca-location-filter/ca-location-filter.component.mjs +2 -2
  17. package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +2 -2
  18. package/esm2022/lib/components/ca-filters/components/ca-pm-filter/ca-pm-filter.component.mjs +2 -2
  19. package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +2 -2
  20. package/esm2022/lib/components/ca-filters/components/ca-status-filter/ca-status-filter.component.mjs +2 -2
  21. package/esm2022/lib/components/ca-filters/components/ca-time-filter/ca-time-filter.component.mjs +3 -3
  22. package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +2 -2
  23. package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +2 -2
  24. package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +2 -2
  25. package/esm2022/lib/components/ca-filters/components/ca-violation-filter/ca-violation-filter.component.mjs +2 -2
  26. package/esm2022/lib/components/ca-input/ca-input.component.mjs +2 -2
  27. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  28. package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +2 -2
  29. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +2 -2
  30. package/esm2022/lib/components/ca-input-note/ca-input-note.component.mjs +2 -2
  31. package/esm2022/lib/components/ca-input-test/base-classes/ca-input-event-manager.mjs +24 -0
  32. package/esm2022/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.mjs +66 -0
  33. package/esm2022/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.mjs +48 -0
  34. package/esm2022/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.mjs +63 -0
  35. package/esm2022/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +85 -0
  36. package/esm2022/lib/components/ca-input-test/config/ca-input.config.mjs +2 -0
  37. package/esm2022/lib/components/ca-input-test/config/index.mjs +2 -0
  38. package/esm2022/lib/components/ca-input-test/directives/caps-lock.directive.mjs +50 -0
  39. package/esm2022/lib/components/ca-input-test/directives/command-visible.directive.mjs +48 -0
  40. package/esm2022/lib/components/ca-input-test/directives/index.mjs +6 -0
  41. package/esm2022/lib/components/ca-input-test/directives/input-max-value.directive.mjs +53 -0
  42. package/esm2022/lib/components/ca-input-test/directives/min-max-value.directive.mjs +41 -0
  43. package/esm2022/lib/components/ca-input-test/directives/price_format.directive.mjs +41 -0
  44. package/esm2022/lib/components/ca-input-test/directives/restrict-input.directive.mjs +94 -0
  45. package/esm2022/lib/components/ca-input-test/enums/index.mjs +5 -0
  46. package/esm2022/lib/components/ca-input-test/enums/input-commands-action.enum.mjs +11 -0
  47. package/esm2022/lib/components/ca-input-test/enums/input-commands-type.enum.mjs +8 -0
  48. package/esm2022/lib/components/ca-input-test/enums/input-config-name-string.enum.mjs +9 -0
  49. package/esm2022/lib/components/ca-input-test/enums/input-string.enum.mjs +114 -0
  50. package/esm2022/lib/components/ca-input-test/enums/input-text-transform.enum.mjs +9 -0
  51. package/esm2022/lib/components/ca-input-test/input-test.component.mjs +273 -0
  52. package/esm2022/lib/components/ca-input-test/mixins/input-command.mixin.mjs +124 -0
  53. package/esm2022/lib/components/ca-input-test/mixins/input-helper.mixin.mjs +49 -0
  54. package/esm2022/lib/components/ca-input-test/mixins/restriction-pipe.mixin.mjs +34 -0
  55. package/esm2022/lib/components/ca-input-test/models/base.model.mjs +2 -0
  56. package/esm2022/lib/components/ca-input-test/models/command-click.model.mjs +2 -0
  57. package/esm2022/lib/components/ca-input-test/models/commands-event.model.mjs +2 -0
  58. package/esm2022/lib/components/ca-input-test/models/index.mjs +4 -0
  59. package/esm2022/lib/components/ca-input-test/models/label-color.model.mjs +2 -0
  60. package/esm2022/lib/components/ca-input-test/pipes/color-finder.pipe.mjs +62 -0
  61. package/esm2022/lib/components/ca-input-test/pipes/form-control.pipe.mjs +17 -0
  62. package/esm2022/lib/components/ca-input-test/pipes/index.mjs +20 -0
  63. package/esm2022/lib/components/ca-input-test/pipes/input-class.pipe.mjs +155 -0
  64. package/esm2022/lib/components/ca-input-test/pipes/input-clear-class.pipe.mjs +87 -0
  65. package/esm2022/lib/components/ca-input-test/pipes/input-container-class.pipe.mjs +58 -0
  66. package/esm2022/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.mjs +77 -0
  67. package/esm2022/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.mjs +61 -0
  68. package/esm2022/lib/components/ca-input-test/pipes/input-error.pipe.mjs +88 -0
  69. package/esm2022/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.mjs +37 -0
  70. package/esm2022/lib/components/ca-input-test/pipes/input-pattern.pipe.mjs +326 -0
  71. package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.mjs +46 -0
  72. package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.mjs +58 -0
  73. package/esm2022/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.mjs +45 -0
  74. package/esm2022/lib/components/ca-input-test/pipes/input-type.pipe.mjs +25 -0
  75. package/esm2022/lib/components/ca-input-test/pipes/label-class.pipe.mjs +38 -0
  76. package/esm2022/lib/components/ca-input-test/pipes/show-clear.pipe.mjs +22 -0
  77. package/esm2022/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.mjs +26 -0
  78. package/esm2022/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.mjs +27 -0
  79. package/esm2022/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.mjs +24 -0
  80. package/esm2022/lib/components/ca-input-test/pipes/show-valid-check.pipe.mjs +27 -0
  81. package/esm2022/lib/components/ca-input-test/utils/index.mjs +3 -0
  82. package/esm2022/lib/components/ca-input-test/utils/input-change-value.type.mjs +2 -0
  83. package/esm2022/lib/components/ca-input-test/utils/input-svg-routes.mjs +17 -0
  84. package/esm2022/lib/components/ca-logo-change/ca-logo-change.component.mjs +3 -3
  85. package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +2 -2
  86. package/esm2022/lib/components/ca-modal-button/ca-modal-button.component.mjs +3 -3
  87. package/esm2022/lib/components/ca-new-filter/ca-filter-dropdown.component.mjs +3 -3
  88. package/esm2022/lib/components/ca-new-filter/components/ca-filter-state-dropdown/ca-filter-state-dropdown.component.mjs +3 -3
  89. package/esm2022/lib/components/ca-new-filter/components/ca-filter-time-dropdown/ca-filter-time-dropdown.component.mjs +3 -3
  90. package/esm2022/lib/components/ca-ngx-slider/ca-ngx-slider.component.mjs +2 -2
  91. package/esm2022/lib/components/ca-note/ca-note.component.mjs +2 -2
  92. package/esm2022/lib/components/ca-note-container/ca-note-container.component.mjs +2 -2
  93. package/esm2022/lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component.mjs +2 -2
  94. package/esm2022/lib/components/ca-period-content/ca-period-content.component.mjs +2 -2
  95. package/esm2022/lib/components/ca-period-content/components/ca-period-content-extra-info/ca-period-content-extra-info.component.mjs +3 -3
  96. package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +2 -2
  97. package/esm2022/lib/components/ca-period-content/components/ca-period-content-user-info/ca-period-content-user-info.component.mjs +3 -3
  98. package/esm2022/lib/components/ca-pickup-delivery-block/ca-pickup-delivery-block.component.mjs +3 -3
  99. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/ca-load.component.mjs +3 -3
  100. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-list/ca-load-list.component.mjs +3 -3
  101. package/esm2022/lib/components/ca-pickup-delivery-block/components/ca-load/components/ca-load-single/ca-load-single.component.mjs +3 -3
  102. package/esm2022/lib/components/ca-profile-image/ca-profile-image.component.mjs +3 -3
  103. package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +2 -2
  104. package/esm2022/lib/components/ca-progress-expiration/ca-progress-expiration.component.mjs +2 -2
  105. package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +2 -2
  106. package/esm2022/lib/components/ca-rating-review/components/ca-rating-review-user/ca-rating-review-user.component.mjs +2 -2
  107. package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +2 -2
  108. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.mjs +3 -3
  109. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
  110. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +3 -3
  111. package/esm2022/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.mjs +2 -2
  112. package/esm2022/lib/components/ca-search-multiple-states/models/tab-data.model.mjs +1 -1
  113. package/esm2022/lib/components/ca-sort-dropdown/ca-sort-dropdown.component.mjs +2 -2
  114. package/esm2022/lib/components/ca-spinner/ca-spinner.component.mjs +2 -2
  115. package/esm2022/lib/components/ca-tab-switch/ca-tab-switch.component.mjs +3 -3
  116. package/esm2022/lib/components/ca-todo/ca-todo.component.mjs +3 -3
  117. package/esm2022/lib/components/ca-todo/components/ca-todo-card.component.mjs +3 -3
  118. package/esm2022/lib/components/ca-tooltip-list/ca-tooltip-list.component.mjs +3 -3
  119. package/esm2022/lib/components/ca-truck-trailer-progress-bar/ca-truck-trailer-progress-bar.component.mjs +2 -2
  120. package/esm2022/lib/components/ca-upload-files/ca-upload-files.component.mjs +3 -3
  121. package/esm2022/lib/components/ca-upload-files/components/ca-upload-dropzone/ca-upload-dropzone.component.mjs +3 -3
  122. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +2 -2
  123. package/esm2022/lib/components/ca-upload-files/components/ca-upload-files-carousel/ca-upload-files-carousel.component.mjs +3 -3
  124. package/esm2022/lib/components/ca-vehicle-list/ca-vehicle-list.component.mjs +75 -0
  125. package/esm2022/lib/components/ca-vehicle-list/enums/index.mjs +2 -0
  126. package/esm2022/lib/components/ca-vehicle-list/enums/vehicle-list.enum.mjs +6 -0
  127. package/esm2022/lib/components/ca-vehicle-list/interfaces/index.mjs +3 -0
  128. package/esm2022/lib/components/ca-vehicle-list/interfaces/vehicle-list-actions-emit.interface.mjs +2 -0
  129. package/esm2022/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.mjs +2 -0
  130. package/esm2022/lib/components/ca-vehicle-list/models/index.mjs +2 -0
  131. package/esm2022/lib/components/ca-vehicle-list/models/vehicle-list.model.mjs +2 -0
  132. package/esm2022/lib/components/ca-vehicle-list/types/index.mjs +2 -0
  133. package/esm2022/lib/components/ca-vehicle-list/types/vehicle-list.type.mjs +2 -0
  134. package/esm2022/lib/components/ca-vehicle-list/utils/constants/index.mjs +2 -0
  135. package/esm2022/lib/components/ca-vehicle-list/utils/constants/vehicle-list.constants.mjs +4 -0
  136. package/esm2022/lib/components/ca-vehicle-list/utils/svg-routes/index.mjs +2 -0
  137. package/esm2022/lib/components/ca-vehicle-list/utils/svg-routes/vehicle-list-svg-routes.mjs +7 -0
  138. package/esm2022/lib/pipes/index.mjs +2 -1
  139. package/esm2022/lib/pipes/truck-trailer-color-finder.pipe.mjs +72 -0
  140. package/esm2022/public-api.mjs +7 -2
  141. package/fesm2022/ca-components.mjs +2618 -513
  142. package/fesm2022/ca-components.mjs.map +1 -1
  143. package/lib/ca-components.module.d.ts +4 -3
  144. package/lib/components/ca-input-test/base-classes/ca-input-event-manager.d.ts +16 -0
  145. package/lib/components/ca-input-test/components/ca-input-clear/ca-input-clear.component.d.ts +20 -0
  146. package/lib/components/ca-input-test/components/ca-input-commands/ca-input-commands.component.d.ts +16 -0
  147. package/lib/components/ca-input-test/components/ca-input-password/ca-input-password.component.d.ts +20 -0
  148. package/lib/components/ca-input-test/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +26 -0
  149. package/lib/components/ca-input-test/config/ca-input.config.d.ts +168 -0
  150. package/lib/components/ca-input-test/config/index.d.ts +1 -0
  151. package/lib/components/ca-input-test/directives/caps-lock.directive.d.ts +14 -0
  152. package/lib/components/ca-input-test/directives/index.d.ts +5 -0
  153. package/lib/components/ca-input-test/directives/input-max-value.directive.d.ts +12 -0
  154. package/lib/components/ca-input-test/directives/min-max-value.directive.d.ts +13 -0
  155. package/lib/components/ca-input-test/directives/price_format.directive.d.ts +11 -0
  156. package/lib/components/ca-input-test/directives/restrict-input.directive.d.ts +27 -0
  157. package/lib/components/ca-input-test/enums/index.d.ts +4 -0
  158. package/lib/components/ca-input-test/enums/input-commands-action.enum.d.ts +9 -0
  159. package/lib/components/ca-input-test/enums/input-commands-type.enum.d.ts +6 -0
  160. package/lib/components/ca-input-test/enums/input-config-name-string.enum.d.ts +7 -0
  161. package/lib/components/ca-input-test/enums/input-string.enum.d.ts +112 -0
  162. package/lib/components/ca-input-test/enums/input-text-transform.enum.d.ts +6 -0
  163. package/lib/components/{ca-input/input-test → ca-input-test}/input-test.component.d.ts +13 -12
  164. package/lib/components/ca-input-test/mixins/restriction-pipe.mixin.d.ts +12 -0
  165. package/lib/components/ca-input-test/models/command-click.model.d.ts +5 -0
  166. package/lib/components/ca-input-test/models/commands-event.model.d.ts +5 -0
  167. package/lib/components/ca-input-test/models/index.d.ts +3 -0
  168. package/lib/components/ca-input-test/models/label-color.model.d.ts +11 -0
  169. package/lib/components/ca-input-test/pipes/color-finder.pipe.d.ts +7 -0
  170. package/lib/components/ca-input-test/pipes/form-control.pipe.d.ts +8 -0
  171. package/lib/components/ca-input-test/pipes/index.d.ts +19 -0
  172. package/lib/components/ca-input-test/pipes/input-class.pipe.d.ts +13 -0
  173. package/lib/components/ca-input-test/pipes/input-clear-class.pipe.d.ts +11 -0
  174. package/lib/components/ca-input-test/pipes/input-container-class.pipe.d.ts +11 -0
  175. package/lib/components/ca-input-test/pipes/input-datetime-picker-class.pipe.d.ts +11 -0
  176. package/lib/components/ca-input-test/pipes/input-dropdown-arrow-class.pipe.d.ts +11 -0
  177. package/lib/components/ca-input-test/pipes/input-error.pipe.d.ts +7 -0
  178. package/lib/components/ca-input-test/pipes/input-password-eye-class.pipe.d.ts +11 -0
  179. package/lib/components/ca-input-test/pipes/input-pattern.pipe.d.ts +38 -0
  180. package/lib/components/ca-input-test/pipes/input-placeholder-icon-right.pipe.d.ts +11 -0
  181. package/lib/components/ca-input-test/pipes/input-placeholder-icon.class.pipe.d.ts +12 -0
  182. package/lib/components/ca-input-test/pipes/input-placeholder-text-class.pipe.d.ts +11 -0
  183. package/lib/components/ca-input-test/pipes/input-type.pipe.d.ts +7 -0
  184. package/lib/components/ca-input-test/pipes/label-class.pipe.d.ts +10 -0
  185. package/lib/components/ca-input-test/pipes/show-clear.pipe.d.ts +8 -0
  186. package/lib/components/ca-input-test/pipes/show-dropdown-arrow.pipe.d.ts +8 -0
  187. package/lib/components/ca-input-test/pipes/show-invalid-danger-mark.pipe.d.ts +9 -0
  188. package/lib/components/ca-input-test/pipes/show-placeholder-text.pipe.d.ts +9 -0
  189. package/lib/components/ca-input-test/pipes/show-valid-check.pipe.d.ts +9 -0
  190. package/lib/components/ca-input-test/utils/index.d.ts +2 -0
  191. package/lib/components/ca-input-test/utils/input-change-value.type.d.ts +1 -0
  192. package/lib/components/ca-input-test/utils/input-svg-routes.d.ts +16 -0
  193. package/lib/components/ca-vehicle-list/ca-vehicle-list.component.d.ts +20 -0
  194. package/lib/components/ca-vehicle-list/enums/index.d.ts +1 -0
  195. package/lib/components/ca-vehicle-list/enums/vehicle-list.enum.d.ts +4 -0
  196. package/lib/components/ca-vehicle-list/interfaces/index.d.ts +2 -0
  197. package/lib/components/ca-vehicle-list/interfaces/vehicle-list-actions-emit.interface.d.ts +5 -0
  198. package/lib/components/ca-vehicle-list/interfaces/vehicle-list-config.interface.d.ts +7 -0
  199. package/lib/components/ca-vehicle-list/models/index.d.ts +1 -0
  200. package/lib/components/ca-vehicle-list/models/vehicle-list.model.d.ts +11 -0
  201. package/lib/components/ca-vehicle-list/types/index.d.ts +1 -0
  202. package/lib/components/ca-vehicle-list/types/vehicle-list.type.d.ts +2 -0
  203. package/lib/components/ca-vehicle-list/utils/constants/index.d.ts +1 -0
  204. package/lib/components/ca-vehicle-list/utils/constants/vehicle-list.constants.d.ts +3 -0
  205. package/lib/components/ca-vehicle-list/utils/svg-routes/index.d.ts +1 -0
  206. package/lib/components/ca-vehicle-list/utils/svg-routes/vehicle-list-svg-routes.d.ts +6 -0
  207. package/lib/pipes/index.d.ts +1 -0
  208. package/lib/pipes/truck-trailer-color-finder.pipe.d.ts +7 -0
  209. package/package.json +1 -1
  210. package/public-api.d.ts +6 -1
  211. package/src/assets/ca-components/svg/common/fuel.svg +4 -0
  212. package/esm2022/lib/components/ca-input/directives/command-visible.directive.mjs +0 -48
  213. package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +0 -266
  214. package/esm2022/lib/components/ca-input/mixins/input-command.mixin.mjs +0 -127
  215. package/esm2022/lib/components/ca-input/mixins/input-helper.mixin.mjs +0 -49
  216. package/esm2022/lib/components/ca-input/models/base.model.mjs +0 -2
  217. /package/lib/components/{ca-input → ca-input-test}/directives/command-visible.directive.d.ts +0 -0
  218. /package/lib/components/{ca-input → ca-input-test}/mixins/input-command.mixin.d.ts +0 -0
  219. /package/lib/components/{ca-input → ca-input-test}/mixins/input-helper.mixin.d.ts +0 -0
  220. /package/lib/components/{ca-input → ca-input-test}/models/base.model.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ export interface LabelColor {
2
+ code?: string;
3
+ color?: string;
4
+ createdAt?: string;
5
+ hoverCode?: string;
6
+ name?: string;
7
+ updatedAt?: string;
8
+ colorId?: number;
9
+ count?: number;
10
+ id?: number;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ColorFinderPipe implements PipeTransform {
4
+ transform(id: number, type: string, isTooltip?: boolean): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorFinderPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<ColorFinderPipe, "colorFinder", true>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl, UntypedFormControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormControlPipe implements PipeTransform {
5
+ transform(value: AbstractControl): UntypedFormControl;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<FormControlPipe, "formControl", true>;
8
+ }
@@ -0,0 +1,19 @@
1
+ export * from './color-finder.pipe';
2
+ export * from './form-control.pipe';
3
+ export * from './input-class.pipe';
4
+ export * from './input-clear-class.pipe';
5
+ export * from './input-container-class.pipe';
6
+ export * from './input-datetime-picker-class.pipe';
7
+ export * from './input-dropdown-arrow-class.pipe';
8
+ export * from './input-error.pipe';
9
+ export * from './input-password-eye-class.pipe';
10
+ export * from './input-placeholder-icon.class.pipe';
11
+ export * from './input-type.pipe';
12
+ export * from './label-class.pipe';
13
+ export * from './show-clear.pipe';
14
+ export * from './show-dropdown-arrow.pipe';
15
+ export * from './show-invalid-danger-mark.pipe';
16
+ export * from './show-valid-check.pipe';
17
+ export * from './input-placeholder-icon-right.pipe';
18
+ export * from './input-placeholder-text-class.pipe';
19
+ export * from './show-placeholder-text.pipe';
@@ -0,0 +1,13 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { ICaInput } from '../config/ca-input.config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputClassPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, inputConfig: ICaInput, input: {
7
+ value: string;
8
+ }, isVisibleCommands: boolean, value: string | number, superControlInvalid: boolean | undefined, superControlTouched: boolean | undefined, isDropdownToggler: boolean, isEditInput: boolean, template: string): {
9
+ [key: string]: boolean | undefined | number | null | string;
10
+ };
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputClassPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputClassPipe, "inputClass", true>;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { ICaInput } from '../config/ca-input.config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputClearClassPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, incorrectValue: boolean, selectedDropdownLabelColor: boolean, template: string, value: string): {
7
+ [key: string]: boolean | undefined;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputClearClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputClearClassPipe, "inputClearClass", true>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { ICaInput } from '../config/ca-input.config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputContainerClassPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, inputConfig: ICaInput, value: string): {
7
+ [key: string]: boolean | undefined | null | string;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputContainerClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputContainerClassPipe, "inputContainerClass", true>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config/ca-input.config';
3
+ import { AbstractControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputDatetimePickerClassPipe implements PipeTransform {
6
+ transform(isFocusInput: boolean | undefined, isVisibleCommands: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: Partial<ICaInput>, isTouchedInput: boolean | undefined, value: string): {
7
+ [key: string]: boolean | undefined | number;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDatetimePickerClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputDatetimePickerClassPipe, "inputDatetimePickerClass", true>;
11
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { AbstractControl } from '@angular/forms';
3
+ import { ICaInput } from '../config/ca-input.config';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputDropdownArrowClassPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
7
+ [key: string]: boolean | undefined;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputDropdownArrowClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputDropdownArrowClassPipe, "inputDropdownArrowClass", true>;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputErrorPipe implements PipeTransform {
4
+ transform(value: any, inputName?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputErrorPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputErrorPipe, "inputError", true>;
7
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { AbstractControl } from "@angular/forms";
3
+ import { ICaInput } from "../config/ca-input.config";
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputPasswordEyeClassPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
7
+ [key: string]: boolean;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPasswordEyeClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputPasswordEyeClassPipe, "inputPasswordEyeClass", true>;
11
+ }
@@ -0,0 +1,38 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config';
3
+ import * as i0 from "@angular/core";
4
+ export declare class InputPatternPipe implements PipeTransform {
5
+ transform(inputName: string, inputConfig: ICaInput): {
6
+ regex: RegExp;
7
+ restrictMultipeDots: boolean;
8
+ isDecimalAndDotOnly: boolean;
9
+ restrictConsecutiveSpaces?: undefined;
10
+ restrictConsecutiveDots?: undefined;
11
+ } | {
12
+ regex: RegExp;
13
+ isDecimalAndDotOnly: boolean;
14
+ restrictMultipeDots?: undefined;
15
+ restrictConsecutiveSpaces?: undefined;
16
+ restrictConsecutiveDots?: undefined;
17
+ } | {
18
+ regex: RegExp;
19
+ restrictConsecutiveSpaces: boolean;
20
+ restrictConsecutiveDots: boolean;
21
+ restrictMultipeDots: boolean;
22
+ isDecimalAndDotOnly?: undefined;
23
+ } | {
24
+ regex: RegExp;
25
+ restrictMultipeDots?: undefined;
26
+ isDecimalAndDotOnly?: undefined;
27
+ restrictConsecutiveSpaces?: undefined;
28
+ restrictConsecutiveDots?: undefined;
29
+ } | {
30
+ regex: RegExp;
31
+ restrictConsecutiveSpaces: boolean;
32
+ restrictConsecutiveDots: boolean;
33
+ restrictMultipeDots: boolean;
34
+ isDecimalAndDotOnly: boolean;
35
+ };
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPatternPipe, never>;
37
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputPatternPipe, "inputPattern", true>;
38
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config';
3
+ import { AbstractControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputPlaceholderIconRightClassPipe implements PipeTransform {
6
+ transform(isFocusInput: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: ICaInput, isTouchedInput: boolean, value: string): {
7
+ [key: string]: boolean | undefined;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderIconRightClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderIconRightClassPipe, "inputPlaceholderIconRightClass", true>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { AbstractControl } from "@angular/forms";
3
+ import { ICaInput } from "../config/ca-input.config";
4
+ import { LabelColor } from "../models/label-color.model";
5
+ import * as i0 from "@angular/core";
6
+ export declare class InputPlaceholderIconClassPipe implements PipeTransform {
7
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, selectedDropdownLabelColor: LabelColor | null, isTouchedInput: boolean, isEditInput: boolean, value: string): {
8
+ [key: string]: boolean | undefined;
9
+ };
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderIconClassPipe, never>;
11
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderIconClassPipe, "inputPlaceholderIconClass", true>;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config';
3
+ import { AbstractControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class InputPlaceholderTextClassPipe implements PipeTransform {
6
+ transform(isFocusInput: boolean, isTouchedInput: boolean, getSuperControl: AbstractControl<any, any> | null, inputConfig: ICaInput, isVisibleCommands: boolean, value: string): {
7
+ [key: string]: boolean | undefined;
8
+ };
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputPlaceholderTextClassPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputPlaceholderTextClassPipe, "inputPlaceholderTextClass", true>;
11
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputTypePipe implements PipeTransform {
4
+ transform(type: string, value: boolean): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTypePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<InputTypePipe, "inputType", true>;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config/ca-input.config';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LabelClassPipe implements PipeTransform {
5
+ transform(value: string | number, isFocusInput: boolean, inputConfig: ICaInput, isTouchedInput: boolean, superControlInvalid?: boolean, superControlTouched?: boolean): {
6
+ [key: string]: boolean | null | undefined | string | number;
7
+ };
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<LabelClassPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<LabelClassPipe, "labelClass", true>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { ICaInput } from "../config/ca-input.config";
3
+ import * as i0 from "@angular/core";
4
+ export declare class ShowClearPipe implements PipeTransform {
5
+ transform(inputConfig: ICaInput): boolean | undefined;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowClearPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<ShowClearPipe, "showClear", true>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config/ca-input.config';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ShowDropdownArrowPipe implements PipeTransform {
5
+ transform(inputConfig: ICaInput): boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowDropdownArrowPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<ShowDropdownArrowPipe, "showDropdownArrow", true>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { AbstractControl } from "@angular/forms";
3
+ import { ICaInput } from "../config/ca-input.config";
4
+ import * as i0 from "@angular/core";
5
+ export declare class ShowInvalidDangerMarkPipe implements PipeTransform {
6
+ transform(inputConfig: ICaInput, getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, isTouchedInput: boolean, value: string): boolean | undefined;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowInvalidDangerMarkPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<ShowInvalidDangerMarkPipe, "showInvalidDangerMark", true>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ICaInput } from '../config/ca-input.config';
3
+ import { AbstractControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ShowPlaceholderTextPipe implements PipeTransform {
6
+ transform(inputConfig: ICaInput, getSuperControl: AbstractControl<any, any> | null, isVisibleCommands: boolean, value: string): boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowPlaceholderTextPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<ShowPlaceholderTextPipe, "showPlaceholderText", true>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { AbstractControl } from "@angular/forms";
3
+ import { ICaInput } from "../config/ca-input.config";
4
+ import * as i0 from "@angular/core";
5
+ export declare class ShowValidCheckPipe implements PipeTransform {
6
+ transform(getSuperControl: AbstractControl<any, any> | null, isFocusInput: boolean, inputConfig: ICaInput, value: string): boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowValidCheckPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<ShowValidCheckPipe, "showValidCheck", true>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './input-svg-routes';
2
+ export * from './input-change-value.type';
@@ -0,0 +1 @@
1
+ export type InputChangeValue = string | number | Date;
@@ -0,0 +1,16 @@
1
+ export declare class InputSvgRoutes {
2
+ static removeInputSvg: string;
3
+ static xClearSvg: string;
4
+ static xClearCommonSvg: string;
5
+ static confirmSvg: string;
6
+ static dangerSvg: string;
7
+ static eyeVisibleSvg: string;
8
+ static eyeHiddenSvg: string;
9
+ static decrementSvg: string;
10
+ static incrementSvg: string;
11
+ static inputPenSvg: string;
12
+ static inputDropdownArrowSvg: string;
13
+ static dynamicLabelSvg: string;
14
+ static dynamicFocusLabelSvg: string;
15
+ static ownerBadgeBlueSvg: string;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { eVehicleList } from './enums';
3
+ import { VehicleListSvgRoutes } from './utils/svg-routes';
4
+ import { IVehicleListConfig, IVehicleListActionsEmit } from './interfaces';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CaVehicleListComponent {
7
+ set vehicleListConfig(data: IVehicleListConfig);
8
+ vehicleListActionsEmitter: EventEmitter<IVehicleListActionsEmit>;
9
+ _vehicleListConfig: IVehicleListConfig;
10
+ vehicleListSvgRoutes: typeof VehicleListSvgRoutes;
11
+ eVehicleList: typeof eVehicleList;
12
+ vehicleListHeaderItems: string[];
13
+ vehicleHoverIndex: number;
14
+ constructor();
15
+ private getConstantData;
16
+ handleVehicleTypeHoverAction(vehicleIndex: number): void;
17
+ handleClickActions(action?: IVehicleListActionsEmit): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaVehicleListComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaVehicleListComponent, "app-ca-vehicle-list", never, { "vehicleListConfig": { "alias": "vehicleListConfig"; "required": false; }; }, { "vehicleListActionsEmitter": "vehicleListActionsEmitter"; }, never, never, true, never>;
20
+ }
@@ -0,0 +1 @@
1
+ export * from './vehicle-list.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum eVehicleList {
2
+ REPAIRED_VEHICLE_LIST = "repaired-vehicle-list",
3
+ FUELLED_VEHICLE_LIST = "fuelled-vehicle-list"
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './vehicle-list-config.interface';
2
+ export * from './vehicle-list-actions-emit.interface';
@@ -0,0 +1,5 @@
1
+ export interface IVehicleListActionsEmit {
2
+ unitType?: string;
3
+ unitId?: number | null;
4
+ isCloseSearch?: boolean;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { VehicleListType } from '../types';
2
+ import { VehicleListResponse } from 'projects/ca-components/src/lib/components/ca-vehicle-list/models';
3
+ export interface IVehicleListConfig {
4
+ type?: VehicleListType;
5
+ list: VehicleListResponse[];
6
+ isSearchActive?: boolean;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './vehicle-list.model';
@@ -0,0 +1,11 @@
1
+ export interface VehicleListResponse {
2
+ unitId?: number | null;
3
+ unitType?: RepairUnitType;
4
+ unitNumber?: string | null;
5
+ totalCount?: number | null;
6
+ vehicleTypeId?: number;
7
+ vehicleName?: string;
8
+ logoName?: string | null;
9
+ totalCost?: number | null;
10
+ }
11
+ export type RepairUnitType = 'Truck' | 'Trailer';
@@ -0,0 +1 @@
1
+ export * from './vehicle-list.type';
@@ -0,0 +1,2 @@
1
+ import { eVehicleList } from '../enums';
2
+ export type VehicleListType = eVehicleList.REPAIRED_VEHICLE_LIST | eVehicleList.FUELLED_VEHICLE_LIST;
@@ -0,0 +1 @@
1
+ export * from './vehicle-list.constants';
@@ -0,0 +1,3 @@
1
+ export declare class VehicleListConstants {
2
+ static VEHICLE_LIST_HEADER_ITEMS: string[];
3
+ }
@@ -0,0 +1 @@
1
+ export * from './vehicle-list-svg-routes';
@@ -0,0 +1,6 @@
1
+ export declare class VehicleListSvgRoutes {
2
+ static repairedVehicleListSvgRoute: string;
3
+ static fuelledVehicleListSvgRoute: string;
4
+ static trucksRoute: string;
5
+ static trailersRoute: string;
6
+ }
@@ -16,3 +16,4 @@ export * from './to-lower-case.pipe';
16
16
  export * from './truncate-string.pipe';
17
17
  export * from './unit-position.pipe';
18
18
  export * from './user-initials.pipe';
19
+ export * from './truck-trailer-color-finder.pipe';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TruckTrailerColorFinderPipe implements PipeTransform {
4
+ transform(id?: number, type?: string, isTooltip?: boolean): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruckTrailerColorFinderPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruckTrailerColorFinderPipe, "truckTrailerColorFinder", true>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13",
package/public-api.d.ts CHANGED
@@ -63,8 +63,13 @@ export * from './lib/components/ca-new-filter/components/ca-filter-list-dropdown
63
63
  export * from './lib/components/ca-chart-manager/ca-chart-manager.component';
64
64
  export * from './lib/components/ca-custom-scrollbar/ca-custom-scrollbar.component';
65
65
  export * from './lib/components/ca-map/utils/services';
66
- export * from './lib/components/ca-input/input-test/input-test.component';
66
+ export * from './lib/components/ca-input-test/input-test.component';
67
67
  export * from './lib/components/ca-checkbox/ca-checkbox.component';
68
68
  export * from './lib/components/ca-modal-button/enums';
69
+ export * from './lib/components/ca-vehicle-list/ca-vehicle-list.component';
70
+ export * from './lib/components/ca-vehicle-list/models';
71
+ export * from './lib/components/ca-vehicle-list/enums/vehicle-list.enum';
72
+ export * from './lib/pipes/truck-trailer-color-finder.pipe';
73
+ export * from './lib/components/ca-modal-button/enums';
69
74
  export * from './lib/components/ca-new-filter/enums';
70
75
  export * from './lib/components/ca-new-filter/interface';
@@ -0,0 +1,4 @@
1
+ <svg id="Group_78366" data-name="Group 78366" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
2
+ <rect id="Rectangle_63252" data-name="Rectangle 63252" width="18" height="18" fill="#aaa" opacity="0"/>
3
+ <path id="Path_36695" data-name="Path 36695" d="M10.631,15.075H.506A.512.512,0,0,0,0,15.581v1.013a.511.511,0,0,0,.506.506H10.631a.512.512,0,0,0,.507-.506V15.581a.512.512,0,0,0-.507-.506M15.6,4.3,13.045,1.732a.512.512,0,0,0-.715,0l-.357.357a.511.511,0,0,0,0,.716L13.166,4V5.96a1.77,1.77,0,0,0,1.519,1.746v5.087a.76.76,0,0,1-1.519,0V11.785A2.784,2.784,0,0,0,10.382,9h-.26V2.925A2.025,2.025,0,0,0,8.1.9H3.038A2.027,2.027,0,0,0,1.013,2.925V14.063h9.112V10.519h.256a1.265,1.265,0,0,1,1.265,1.265v.882a2.374,2.374,0,0,0,2.041,2.4,2.286,2.286,0,0,0,2.5-2.044c.007-.076.011-.151.011-.227V5.728A2.029,2.029,0,0,0,15.6,4.3M8.1,6.975H3.038V2.925H8.1Z" transform="translate(0 0)" fill="#aaa"/>
4
+ </svg>
@@ -1,48 +0,0 @@
1
- import { Directive, EventEmitter, HostListener, Input, Output, } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class CommandVisibleDirective {
4
- constructor(el) {
5
- this.el = el;
6
- this.commandVisible = new EventEmitter(); // ✅ Emit true/false
7
- }
8
- onKeyDown(event) {
9
- if ((event.key === 'Tab' && event.shiftKey) || event.key === 'Tab') {
10
- this.emitCommandVisible(false);
11
- }
12
- }
13
- onWindowBlur() {
14
- this.emitCommandVisible(false);
15
- }
16
- onFocus() {
17
- // Show commands on focus
18
- this.emitCommandVisible(true);
19
- }
20
- emitCommandVisible(status) {
21
- if (this.restrictInput.commands) {
22
- this.commandVisible.emit(status);
23
- }
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommandVisibleDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
26
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: CommandVisibleDirective, isStandalone: true, selector: "[commandVisible]", inputs: { restrictInput: "restrictInput" }, outputs: { commandVisible: "commandVisible" }, host: { listeners: { "keydown": "onKeyDown($event)", "blur": "onWindowBlur()", "focus": "onFocus()" } }, ngImport: i0 }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommandVisibleDirective, decorators: [{
29
- type: Directive,
30
- args: [{
31
- selector: '[commandVisible]',
32
- standalone: true,
33
- }]
34
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { commandVisible: [{
35
- type: Output
36
- }], restrictInput: [{
37
- type: Input
38
- }], onKeyDown: [{
39
- type: HostListener,
40
- args: ['keydown', ['$event']]
41
- }], onWindowBlur: [{
42
- type: HostListener,
43
- args: ['blur']
44
- }], onFocus: [{
45
- type: HostListener,
46
- args: ['focus']
47
- }] } });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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