@dev-tcloud/tcloud-ui 6.19.0-beta.3 → 6.19.0

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.
@@ -7556,7 +7556,7 @@ class TCloudUiPaginationPipe {
7556
7556
  this._tcloudUiPaginationService.notifyCollectionChange(args.id);
7557
7557
  }
7558
7558
  this._previousLengths.set(args.id, currentLength);
7559
- const total = args?.totalPages || Math.ceil((collection?.length || 0) / args.itemsPerPage);
7559
+ const total = Math.ceil((collection?.length || 0) / args.itemsPerPage);
7560
7560
  this._tcloudUiPaginationService.set_total(args, total);
7561
7561
  if (!Array.isArray(collection) ||
7562
7562
  isNaN(args.currentPage) ||
@@ -8914,6 +8914,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
8914
8914
  type: Output
8915
8915
  }] } });
8916
8916
 
8917
+ class TCloudUiInputDirective {
8918
+ constructor(_el) {
8919
+ this._el = _el;
8920
+ this.fullWidth = input(false);
8921
+ effect(() => {
8922
+ this.setClasses();
8923
+ });
8924
+ }
8925
+ setClasses() {
8926
+ this.fullWidth() ? this._el.nativeElement.classList.add('tc-rev-input-control--full-width') : null;
8927
+ }
8928
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
8929
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TCloudUiInputDirective, isStandalone: true, selector: "input[tcloudUiInput], select[tcloudUiInput]", inputs: { fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "tc-rev-input-control" }, ngImport: i0 }); }
8930
+ }
8931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiInputDirective, decorators: [{
8932
+ type: Directive,
8933
+ args: [{
8934
+ selector: 'input[tcloudUiInput], select[tcloudUiInput]',
8935
+ host: {
8936
+ class: 'tc-rev-input-control'
8937
+ }
8938
+ }]
8939
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
8940
+
8917
8941
  const COMPONENTS = [
8918
8942
  TCloudUiAccordionComponent,
8919
8943
  TCloudUiAccordionBodyComponent,
@@ -9000,7 +9024,8 @@ const DIRECTIVES = [
9000
9024
  TCloudUiFormDirective,
9001
9025
  TCloudUiSlideToggleDirective,
9002
9026
  TCloudUiRadioDirective,
9003
- TCloudUiIconButtonDirective
9027
+ TCloudUiIconButtonDirective,
9028
+ TCloudUiInputDirective,
9004
9029
  ];
9005
9030
  const PIPES = [
9006
9031
  ToTextPipe,
@@ -9122,7 +9147,8 @@ class TCloudUiModule {
9122
9147
  TCloudUiFormDirective,
9123
9148
  TCloudUiSlideToggleDirective,
9124
9149
  TCloudUiRadioDirective,
9125
- TCloudUiIconButtonDirective, ToTextPipe,
9150
+ TCloudUiIconButtonDirective,
9151
+ TCloudUiInputDirective, ToTextPipe,
9126
9152
  BytesPipe,
9127
9153
  CNPJPipe,
9128
9154
  CPFPipe,
@@ -9212,7 +9238,8 @@ class TCloudUiModule {
9212
9238
  TCloudUiFormDirective,
9213
9239
  TCloudUiSlideToggleDirective,
9214
9240
  TCloudUiRadioDirective,
9215
- TCloudUiIconButtonDirective, ToTextPipe,
9241
+ TCloudUiIconButtonDirective,
9242
+ TCloudUiInputDirective, ToTextPipe,
9216
9243
  BytesPipe,
9217
9244
  CNPJPipe,
9218
9245
  CPFPipe,
@@ -9359,30 +9386,6 @@ function provideTCloudUi(config) {
9359
9386
  return makeEnvironmentProviders(providers);
9360
9387
  }
9361
9388
 
9362
- class TCloudUiInputDirective {
9363
- constructor(_el) {
9364
- this._el = _el;
9365
- this.fullWidth = input(false);
9366
- effect(() => {
9367
- this.setClasses();
9368
- });
9369
- }
9370
- setClasses() {
9371
- this.fullWidth() ? this._el.nativeElement.classList.add('tc-rev-input-control--full-width') : null;
9372
- }
9373
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiInputDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
9374
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TCloudUiInputDirective, isStandalone: true, selector: "input[tcloudUiInput], select[tcloudUiInput]", inputs: { fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "tc-rev-input-control" }, ngImport: i0 }); }
9375
- }
9376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiInputDirective, decorators: [{
9377
- type: Directive,
9378
- args: [{
9379
- selector: 'input[tcloudUiInput], select[tcloudUiInput]',
9380
- host: {
9381
- class: 'tc-rev-input-control'
9382
- }
9383
- }]
9384
- }], ctorParameters: () => [{ type: i0.ElementRef }] });
9385
-
9386
9389
  class TCloudUiLoadingTransitionsService {
9387
9390
  constructor() {
9388
9391
  this.ID = 'tcloud-ui-loading-transitions';
@@ -10415,7 +10418,7 @@ class TcRevMultiInputComponent {
10415
10418
  setTimeout(() => {
10416
10419
  if (this.initialValue() !== '') {
10417
10420
  this.autoFocus = true;
10418
- this.multiInputForm.get('multiInput')?.setValue(this.initialValue());
10421
+ this.multiInputForm?.get('multiInput')?.setValue(this.initialValue());
10419
10422
  }
10420
10423
  });
10421
10424
  }
@@ -10430,7 +10433,7 @@ class TcRevMultiInputComponent {
10430
10433
  return isTextEllipsed(text);
10431
10434
  }
10432
10435
  addItem() {
10433
- const newItem = this.multiInputForm.get('multiInput').value;
10436
+ const newItem = this.multiInputForm?.get('multiInput').value;
10434
10437
  this.itemsList.update((currentItems) => {
10435
10438
  const updatedItems = currentItems.includes(newItem)
10436
10439
  ? currentItems
@@ -10440,7 +10443,7 @@ class TcRevMultiInputComponent {
10440
10443
  this.onChangeList.emit(updatedItems);
10441
10444
  return updatedItems;
10442
10445
  });
10443
- this.multiInputForm.reset();
10446
+ this.multiInputForm?.reset();
10444
10447
  }
10445
10448
  removeItem(index) {
10446
10449
  this.itemsList.update((currentItems) => {