ca-components 1.0.77 → 1.0.80

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 (89) hide show
  1. package/esm2022/lib/ca-components.module.mjs +16 -4
  2. package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +1 -1
  3. package/esm2022/lib/components/ca-app-tooltip-v2/ca-app-tooltip-v2.component.mjs +1 -1
  4. package/esm2022/lib/components/ca-filters/components/ca-dispatcher-filter/ca-dispatcher-filter.component.mjs +2 -2
  5. package/esm2022/lib/components/ca-filters/components/ca-money-filter/ca-money-filter.component.mjs +2 -2
  6. package/esm2022/lib/components/ca-filters/components/ca-state-filter/ca-state-filter.component.mjs +2 -2
  7. package/esm2022/lib/components/ca-filters/components/ca-trailer-type-filter/ca-trailer-type-filter.component.mjs +1 -1
  8. package/esm2022/lib/components/ca-filters/components/ca-truck-type-filter/ca-truck-type-filter.component.mjs +1 -1
  9. package/esm2022/lib/components/ca-filters/components/ca-user-filter/ca-user-filter.component.mjs +2 -2
  10. package/esm2022/lib/components/ca-input/base-classes/ca-input-base-helpres.mjs +237 -0
  11. package/esm2022/lib/components/ca-input/base-classes/ca-input-base.mjs +1020 -0
  12. package/esm2022/lib/components/ca-input/base-classes/ca-input-event-manager.mjs +24 -0
  13. package/esm2022/lib/components/ca-input/ca-input.component.mjs +53 -163
  14. package/esm2022/lib/components/ca-input/components/ca-input-clear/ca-input-clear.component.mjs +4 -4
  15. package/esm2022/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +11 -17
  16. package/esm2022/lib/components/ca-input/config/ca-input.config.mjs +1 -1
  17. package/esm2022/lib/components/ca-input/directives/caps-lock.directive.mjs +50 -0
  18. package/esm2022/lib/components/ca-input/directives/index.mjs +5 -1
  19. package/esm2022/lib/components/ca-input/directives/input-max-value.directive.mjs +53 -0
  20. package/esm2022/lib/components/ca-input/directives/min-max-value.directive.mjs +1 -1
  21. package/esm2022/lib/components/ca-input/directives/price_format.directive.mjs +41 -0
  22. package/esm2022/lib/components/ca-input/directives/restrict-input.directive.mjs +98 -0
  23. package/esm2022/lib/components/ca-input/enums/input-text-transform.enum.mjs +9 -0
  24. package/esm2022/lib/components/ca-input/input-test/input-test.component.mjs +175 -0
  25. package/esm2022/lib/components/ca-input/pipes/input-container-class.pipe.mjs +16 -16
  26. package/esm2022/lib/components/ca-input/pipes/input-datetime-picker-class.pipe.mjs +1 -1
  27. package/esm2022/lib/components/ca-input/pipes/input-error.pipe.mjs +18 -15
  28. package/esm2022/lib/components/ca-input/pipes/input-pattern.pipe.mjs +322 -0
  29. package/esm2022/lib/components/ca-input/services/index.mjs +1 -2
  30. package/esm2022/lib/components/ca-input/utils/constants/input-constants.mjs +102 -1
  31. package/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +2 -2
  32. package/esm2022/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +809 -0
  33. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +18 -18
  34. package/esm2022/lib/components/ca-map/ca-map.component.mjs +137 -210
  35. package/esm2022/lib/components/ca-map/enums/google-map.enum.mjs +2 -1
  36. package/esm2022/lib/components/ca-map/enums/map-marker-string.enum.mjs +2 -1
  37. package/esm2022/lib/components/ca-map/models/map.model.mjs +1 -1
  38. package/esm2022/lib/components/ca-map/utils/constants/index.mjs +2 -1
  39. package/esm2022/lib/components/ca-map/utils/constants/map-marker-icons.constants.mjs +119 -0
  40. package/esm2022/lib/components/ca-map/utils/constants/map-options.constants.mjs +1 -2
  41. package/esm2022/lib/components/ca-map/utils/helpers/map-marker-icon.helper.mjs +50 -12
  42. package/esm2022/lib/components/ca-map/utils/services/index.mjs +2 -0
  43. package/esm2022/lib/components/ca-map/utils/services/map-marker-icon.service.mjs +137 -0
  44. package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +25 -11
  45. package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +15 -15
  46. package/esm2022/lib/components/ca-rating-review/ca-rating-review.component.mjs +2 -2
  47. package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +1 -1
  48. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +1 -1
  49. package/esm2022/lib/constants/map.constant.mjs +131 -131
  50. package/esm2022/public-api.mjs +4 -1
  51. package/fesm2022/ca-components.mjs +10387 -9642
  52. package/fesm2022/ca-components.mjs.map +1 -1
  53. package/lib/ca-components.module.d.ts +32 -30
  54. package/lib/components/ca-input/base-classes/ca-input-base-helpres.d.ts +29 -0
  55. package/lib/components/ca-input/base-classes/ca-input-base.d.ts +82 -0
  56. package/lib/components/ca-input/base-classes/ca-input-event-manager.d.ts +16 -0
  57. package/lib/components/ca-input/ca-input.component.d.ts +30 -48
  58. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +3 -7
  59. package/lib/components/ca-input/config/ca-input.config.d.ts +10 -1
  60. package/lib/components/ca-input/directives/caps-lock.directive.d.ts +14 -0
  61. package/lib/components/ca-input/directives/index.d.ts +4 -0
  62. package/lib/components/ca-input/directives/input-max-value.directive.d.ts +12 -0
  63. package/lib/components/ca-input/directives/price_format.directive.d.ts +11 -0
  64. package/lib/components/ca-input/directives/restrict-input.directive.d.ts +15 -0
  65. package/lib/components/ca-input/enums/input-text-transform.enum.d.ts +6 -0
  66. package/lib/components/ca-input/input-test/input-test.component.d.ts +47 -0
  67. package/lib/components/ca-input/pipes/input-container-class.pipe.d.ts +3 -3
  68. package/lib/components/ca-input/pipes/input-datetime-picker-class.pipe.d.ts +1 -1
  69. package/lib/components/ca-input/pipes/input-pattern.pipe.d.ts +25 -0
  70. package/lib/components/ca-input/services/index.d.ts +0 -1
  71. package/lib/components/ca-input/utils/constants/input-constants.d.ts +11 -0
  72. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.d.ts +99 -0
  73. package/lib/components/ca-map/ca-map.component.d.ts +22 -25
  74. package/lib/components/ca-map/enums/google-map.enum.d.ts +2 -1
  75. package/lib/components/ca-map/enums/map-marker-string.enum.d.ts +2 -1
  76. package/lib/components/ca-map/models/map.model.d.ts +8 -3
  77. package/lib/components/ca-map/utils/constants/index.d.ts +1 -0
  78. package/lib/components/ca-map/utils/constants/map-marker-icons.constants.d.ts +6 -0
  79. package/lib/components/ca-map/utils/helpers/map-marker-icon.helper.d.ts +2 -0
  80. package/lib/components/ca-map/utils/services/index.d.ts +1 -0
  81. package/lib/components/ca-map/utils/services/map-marker-icon.service.d.ts +23 -0
  82. package/lib/components/ca-map-dropdown/ca-map-dropdown.component.d.ts +5 -3
  83. package/lib/components/ca-progress-bar/ca-progress-bar.component.d.ts +3 -1
  84. package/package.json +1 -1
  85. package/public-api.d.ts +3 -0
  86. package/esm2022/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +0 -100
  87. package/esm2022/lib/components/ca-input/services/ca-input-state.service.mjs +0 -2173
  88. package/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.d.ts +0 -48
  89. package/lib/components/ca-input/services/ca-input-state.service.d.ts +0 -196
@@ -0,0 +1,24 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ export class EventInputManager {
3
+ constructor(initialValue, eventEmitter) {
4
+ this.eventEmitter = eventEmitter;
5
+ this.stateSubject = new BehaviorSubject(initialValue);
6
+ this.state$ = this.stateSubject.asObservable();
7
+ }
8
+ /**
9
+ * Update the value and emit the event.
10
+ */
11
+ next(newValue) {
12
+ this.stateSubject.next(newValue); // Update state
13
+ if (this.eventEmitter) {
14
+ this.eventEmitter.emit(newValue); // Emit event
15
+ }
16
+ }
17
+ /**
18
+ * Get the current value.
19
+ */
20
+ get value() {
21
+ return this.stateSubject.value;
22
+ }
23
+ }
24
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY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