carriera-intern-components 1.1.153 → 1.1.155

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.
@@ -14,7 +14,7 @@ export declare class AvatarComponent {
14
14
  * The size of the avatar in pixels.
15
15
  * @type {Size}
16
16
  */
17
- size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160>;
17
+ size: import("@angular/core").InputSignal<18 | 32 | 22 | 74 | 160>;
18
18
  /**
19
19
  * Whether the avatar should be rounded or not at sizes of 74px and 160px.
20
20
  * @type {boolean}
@@ -165,4 +165,5 @@ export interface ICaInput {
165
165
  minutesGapFive?: boolean;
166
166
  updateAsTouchedOnEdit?: boolean;
167
167
  transparentInput?: boolean;
168
+ preventTyping?: boolean;
168
169
  }
@@ -4734,10 +4734,9 @@ class CaCustomDatetimePickersComponent {
4734
4734
  }
4735
4735
  setTimeValue() {
4736
4736
  const dateInputArray = moment(this.dateTime)
4737
- .format('H/mm/A')
4737
+ .format('h/mm/A')
4738
4738
  .split('/');
4739
- console.log(this.dateTime, 'this.dateTime', moment(this.dateTime)
4740
- .format('H/mm/A'), dateInputArray[2] === 'AM' ? 0 : 1);
4739
+ console.log(dateInputArray, 'this.inputConfig');
4741
4740
  setTimeout(() => {
4742
4741
  this.scrollTypes.hourScroll = this.hourTimes.indexOf(parseInt(dateInputArray[0]));
4743
4742
  this.scrollTypes.minutesScroll = this.timeMinutes.indexOf(dateInputArray[1]);
@@ -5052,6 +5051,7 @@ class CaiInputDatetimePickerComponent {
5052
5051
  onChange(_) { }
5053
5052
  onTouched = () => { };
5054
5053
  writeValue(obj) {
5054
+ console.log(obj, 'writeValue');
5055
5055
  if (obj)
5056
5056
  this.setTimeDateInput(obj, true);
5057
5057
  }
@@ -5062,6 +5062,7 @@ class CaiInputDatetimePickerComponent {
5062
5062
  this.isFocusInput = false;
5063
5063
  }
5064
5064
  ngAfterViewInit() {
5065
+ console.log(this.valueAfterWriteValue, 'this.valueAfterWriteValue');
5065
5066
  if (this.valueAfterWriteValue) {
5066
5067
  this.setTimeDateInput(this.valueAfterWriteValue);
5067
5068
  }
@@ -5390,6 +5391,7 @@ class CaiInputDatetimePickerComponent {
5390
5391
  ? date
5391
5392
  : new Date(moment().format('MM/DD/YYYY') + ' ' + date);
5392
5393
  text = moment(new Date(date)).format('HH:mm');
5394
+ console.log(date, 'TIME ONLY');
5393
5395
  timeFormat = moment(new Date(date)).format('hh/mm/A');
5394
5396
  dateFormat = timeFormat.split('/');
5395
5397
  }
@@ -5418,6 +5420,7 @@ class CaiInputDatetimePickerComponent {
5418
5420
  this.span2.nativeElement.innerHTML = dateFormat[2];
5419
5421
  }
5420
5422
  }, 0);
5423
+ console.log(date, 'date');
5421
5424
  if (date) {
5422
5425
  this.dateTimeInputDate = new Date(date);
5423
5426
  }
@@ -5553,7 +5556,8 @@ class CaiInputDatetimePickerComponent {
5553
5556
  }
5554
5557
  }
5555
5558
  }
5556
- else if (this.inputConfig.name === InputConfigNameStringEnum.TIME_PICKER) {
5559
+ else if (this.inputConfig.name === InputConfigNameStringEnum.TIME_PICKER &&
5560
+ !this.inputConfig.preventTyping) {
5557
5561
  // Handle time picker keyboard input
5558
5562
  if (this.selectionInput === 0) {
5559
5563
  // Hours input