cerxos-ui 0.0.22 → 0.0.23

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, EventEmitter, ElementRef, HostListener, ViewChildren, ViewChild, Output, Input, ChangeDetectionStrategy, Attribute, forwardRef, Directive, ContentChildren, inject, ChangeDetectorRef, ContentChild, HostBinding, signal, Injectable, Pipe } from '@angular/core';
2
+ import { Component, EventEmitter, ElementRef, HostListener, ViewChildren, ViewChild, Output, Input, ChangeDetectionStrategy, Attribute, inject, ChangeDetectorRef, forwardRef, Directive, ContentChildren, ContentChild, HostBinding, signal, Injectable, Pipe } from '@angular/core';
3
3
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import * as i1 from '@angular/common';
5
5
  import { NgTemplateOutlet, CommonModule } from '@angular/common';
@@ -975,6 +975,7 @@ const MARK_SIZE_CLASSES = {
975
975
  lg: 'after:h-3 after:w-2 before:h-0.5 before:w-4'
976
976
  };
977
977
  class CxsCheckboxComponent {
978
+ changeDetector = inject(ChangeDetectorRef);
978
979
  checked = false;
979
980
  indeterminate = false;
980
981
  disabled = false;
@@ -1020,6 +1021,7 @@ class CxsCheckboxComponent {
1020
1021
  }
1021
1022
  writeValue(value) {
1022
1023
  this.checked = value ?? false;
1024
+ this.changeDetector.markForCheck();
1023
1025
  }
1024
1026
  registerOnChange(fn) {
1025
1027
  this.onChange = fn;
@@ -1029,6 +1031,7 @@ class CxsCheckboxComponent {
1029
1031
  }
1030
1032
  setDisabledState(isDisabled) {
1031
1033
  this.disabledFromControl = isDisabled;
1034
+ this.changeDetector.markForCheck();
1032
1035
  }
1033
1036
  onCheckboxChange(event) {
1034
1037
  const target = event.target;
@@ -2075,6 +2078,7 @@ const DAY_TODAY = 'border border-[var(--cxs-color-primary)]';
2075
2078
  const DAY_SELECTED = 'bg-[var(--cxs-color-primary)] text-[var(--cxs-color-on-primary)]';
2076
2079
  const DAY_HOVER = 'hover:bg-[var(--cxs-color-surface-hover)]';
2077
2080
  class CxsDatepickerComponent {
2081
+ changeDetector = inject(ChangeDetectorRef);
2078
2082
  static nextId = 0;
2079
2083
  value = '';
2080
2084
  variant = 'outline';
@@ -2175,6 +2179,7 @@ class CxsDatepickerComponent {
2175
2179
  writeValue(value) {
2176
2180
  this.value = value ?? '';
2177
2181
  this.syncDisplayMonthWithValue();
2182
+ this.changeDetector.markForCheck();
2178
2183
  }
2179
2184
  registerOnChange(fn) {
2180
2185
  this.onChange = fn;
@@ -2184,6 +2189,7 @@ class CxsDatepickerComponent {
2184
2189
  }
2185
2190
  setDisabledState(isDisabled) {
2186
2191
  this.disabledFromControl = isDisabled;
2192
+ this.changeDetector.markForCheck();
2187
2193
  }
2188
2194
  onInput(event) {
2189
2195
  const target = event.target;
@@ -2862,6 +2868,7 @@ const ERROR_SIZE_CLASSES = {
2862
2868
  const INVALID_CLASSES$3 = 'border-[var(--cxs-color-danger)] focus-visible:border-[var(--cxs-color-danger)] ' +
2863
2869
  'focus-visible:outline-[var(--cxs-color-danger)]';
2864
2870
  class CxsInputComponent {
2871
+ changeDetector = inject(ChangeDetectorRef);
2865
2872
  static nextId = 0;
2866
2873
  value = '';
2867
2874
  type = 'text';
@@ -2944,6 +2951,7 @@ class CxsInputComponent {
2944
2951
  }
2945
2952
  writeValue(value) {
2946
2953
  this.value = value ?? '';
2954
+ this.changeDetector.markForCheck();
2947
2955
  }
2948
2956
  registerOnChange(fn) {
2949
2957
  this.onChange = fn;
@@ -2953,6 +2961,7 @@ class CxsInputComponent {
2953
2961
  }
2954
2962
  setDisabledState(isDisabled) {
2955
2963
  this.disabledFromControl = isDisabled;
2964
+ this.changeDetector.markForCheck();
2956
2965
  }
2957
2966
  onInput(event) {
2958
2967
  const target = event.target;
@@ -3205,6 +3214,7 @@ const INVALID_CLASSES$2 = 'border-[var(--cxs-color-danger)] focus-within:border-
3205
3214
  'focus-within:outline-[var(--cxs-color-danger)]';
3206
3215
  class CxsMultiSelectComponent {
3207
3216
  elementRef;
3217
+ changeDetector = inject(ChangeDetectorRef);
3208
3218
  static nextId = 0;
3209
3219
  options = [];
3210
3220
  value = [];
@@ -3321,6 +3331,7 @@ class CxsMultiSelectComponent {
3321
3331
  }
3322
3332
  writeValue(value) {
3323
3333
  this.value = value ? [...value] : [];
3334
+ this.changeDetector.markForCheck();
3324
3335
  }
3325
3336
  registerOnChange(fn) {
3326
3337
  this.onChange = fn;
@@ -3330,6 +3341,7 @@ class CxsMultiSelectComponent {
3330
3341
  }
3331
3342
  setDisabledState(isDisabled) {
3332
3343
  this.disabledFromControl = isDisabled;
3344
+ this.changeDetector.markForCheck();
3333
3345
  }
3334
3346
  focusInput() {
3335
3347
  if (this.isDisabled || this.readonly) {
@@ -3751,6 +3763,7 @@ const DOT_SIZE_CLASSES = {
3751
3763
  const INVALID_CLASSES$1 = 'border-[var(--cxs-color-danger)] peer-checked:border-[var(--cxs-color-danger)] ' +
3752
3764
  'after:bg-[var(--cxs-color-danger)]';
3753
3765
  class CxsRadioComponent {
3766
+ changeDetector = inject(ChangeDetectorRef);
3754
3767
  value = '';
3755
3768
  name;
3756
3769
  variant = 'primary';
@@ -3801,6 +3814,7 @@ class CxsRadioComponent {
3801
3814
  }
3802
3815
  writeValue(value) {
3803
3816
  this.selectedValue = value ?? null;
3817
+ this.changeDetector.markForCheck();
3804
3818
  }
3805
3819
  registerOnChange(fn) {
3806
3820
  this.onChange = fn;
@@ -3810,6 +3824,7 @@ class CxsRadioComponent {
3810
3824
  }
3811
3825
  setDisabledState(isDisabled) {
3812
3826
  this.disabledFromControl = isDisabled;
3827
+ this.changeDetector.markForCheck();
3813
3828
  }
3814
3829
  onRadioChange(event) {
3815
3830
  const target = event.target;
@@ -4002,6 +4017,7 @@ const LABEL_SIZE_CLASSES$1 = {
4002
4017
  const INVALID_CLASSES = 'border-[var(--cxs-color-danger)] focus-visible:border-[var(--cxs-color-danger)] ' +
4003
4018
  'focus-visible:outline-[var(--cxs-color-danger)]';
4004
4019
  class CxsSelectComponent {
4020
+ changeDetector = inject(ChangeDetectorRef);
4005
4021
  static nextId = 0;
4006
4022
  value = '';
4007
4023
  variant = 'outline';
@@ -4072,6 +4088,7 @@ class CxsSelectComponent {
4072
4088
  }
4073
4089
  writeValue(value) {
4074
4090
  this.value = value ?? '';
4091
+ this.changeDetector.markForCheck();
4075
4092
  }
4076
4093
  registerOnChange(fn) {
4077
4094
  this.onChange = fn;
@@ -4081,6 +4098,7 @@ class CxsSelectComponent {
4081
4098
  }
4082
4099
  setDisabledState(isDisabled) {
4083
4100
  this.disabledFromControl = isDisabled;
4101
+ this.changeDetector.markForCheck();
4084
4102
  }
4085
4103
  onSelectChange(event) {
4086
4104
  const target = event.target;
@@ -4241,6 +4259,7 @@ const INPUT_VARIANT_CLASSES = {
4241
4259
  danger: 'cxs-slider--danger'
4242
4260
  };
4243
4261
  class CxsSliderComponent {
4262
+ changeDetector = inject(ChangeDetectorRef);
4244
4263
  static nextId = 0;
4245
4264
  value = 0;
4246
4265
  min = 0;
@@ -4337,6 +4356,7 @@ class CxsSliderComponent {
4337
4356
  }
4338
4357
  writeValue(value) {
4339
4358
  this.value = value ?? this.normalizedMin;
4359
+ this.changeDetector.markForCheck();
4340
4360
  }
4341
4361
  registerOnChange(fn) {
4342
4362
  this.onChange = fn;
@@ -4346,6 +4366,7 @@ class CxsSliderComponent {
4346
4366
  }
4347
4367
  setDisabledState(isDisabled) {
4348
4368
  this.disabledFromControl = isDisabled;
4369
+ this.changeDetector.markForCheck();
4349
4370
  }
4350
4371
  onInput(event) {
4351
4372
  const target = event.target;