ca-components 1.0.78 → 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 (66) 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-rating-review/ca-rating-review.component.mjs +2 -2
  35. package/esm2022/lib/components/ca-rating-review/components/ca-ratings-reviews-popup/ca-ratings-reviews-popup.component.mjs +1 -1
  36. package/esm2022/lib/components/ca-upload-files/components/ca-upload-file/ca-upload-file.component.mjs +1 -1
  37. package/esm2022/public-api.mjs +3 -1
  38. package/fesm2022/ca-components.mjs +7690 -7171
  39. package/fesm2022/ca-components.mjs.map +1 -1
  40. package/lib/ca-components.module.d.ts +32 -30
  41. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  42. package/lib/components/ca-input/base-classes/ca-input-base-helpres.d.ts +29 -0
  43. package/lib/components/ca-input/base-classes/ca-input-base.d.ts +82 -0
  44. package/lib/components/ca-input/base-classes/ca-input-event-manager.d.ts +16 -0
  45. package/lib/components/ca-input/ca-input.component.d.ts +30 -48
  46. package/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.d.ts +3 -7
  47. package/lib/components/ca-input/config/ca-input.config.d.ts +10 -1
  48. package/lib/components/ca-input/directives/caps-lock.directive.d.ts +14 -0
  49. package/lib/components/ca-input/directives/index.d.ts +4 -0
  50. package/lib/components/ca-input/directives/input-max-value.directive.d.ts +12 -0
  51. package/lib/components/ca-input/directives/price_format.directive.d.ts +11 -0
  52. package/lib/components/ca-input/directives/restrict-input.directive.d.ts +15 -0
  53. package/lib/components/ca-input/enums/input-text-transform.enum.d.ts +6 -0
  54. package/lib/components/ca-input/input-test/input-test.component.d.ts +47 -0
  55. package/lib/components/ca-input/pipes/input-container-class.pipe.d.ts +3 -3
  56. package/lib/components/ca-input/pipes/input-datetime-picker-class.pipe.d.ts +1 -1
  57. package/lib/components/ca-input/pipes/input-pattern.pipe.d.ts +25 -0
  58. package/lib/components/ca-input/services/index.d.ts +0 -1
  59. package/lib/components/ca-input/utils/constants/input-constants.d.ts +11 -0
  60. package/lib/components/ca-input-datetime-picker/ca-input-datetime-picker.component.d.ts +99 -0
  61. package/package.json +1 -1
  62. package/public-api.d.ts +2 -0
  63. package/esm2022/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.mjs +0 -100
  64. package/esm2022/lib/components/ca-input/services/ca-input-state.service.mjs +0 -2173
  65. package/lib/components/ca-input/components/ca-input-datetime-picker/ca-input-datetime-picker.component.d.ts +0 -48
  66. 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2EtaW5wdXQtZXZlbnQtbWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NhLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2NhLWlucHV0L2Jhc2UtY2xhc3Nlcy9jYS1pbnB1dC1ldmVudC1tYW5hZ2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFHbkQsTUFBTSxPQUFPLGlCQUFpQjtJQUk1QixZQUNFLFlBQXNCLEVBQ2QsWUFBNkI7UUFBN0IsaUJBQVksR0FBWixZQUFZLENBQWlCO1FBRXJDLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxlQUFlLENBQVcsWUFBWSxDQUFDLENBQUM7UUFDaEUsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLENBQUMsWUFBWSxDQUFDLFlBQVksRUFBRSxDQUFDO0lBQ2pELENBQUM7SUFFRDs7T0FFRztJQUNILElBQUksQ0FBQyxRQUFXO1FBQ2QsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxlQUFlO1FBQ2pELElBQUksSUFBSSxDQUFDLFlBQVksRUFBRSxDQUFDO1lBQ3RCLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsYUFBYTtRQUNqRCxDQUFDO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0gsSUFBSSxLQUFLO1FBQ1AsT0FBTyxJQUFJLENBQ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