@dev-tcloud/tcloud-ui 6.19.0-beta.4 → 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.
- package/fesm2022/dev-tcloud-tcloud-ui.mjs +28 -28
- package/fesm2022/dev-tcloud-tcloud-ui.mjs.map +1 -1
- package/js/tcloud-ui-app.js +2 -2
- package/lib/_modules/tcloud-ui-pagination/pipes/tcloud-ui-pagination.pipe.d.ts +0 -1
- package/lib/revitalizacao/components/tc-rev-multi-input/tc-rev-multi-input.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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 =
|
|
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,
|
|
@@ -9362,30 +9386,6 @@ function provideTCloudUi(config) {
|
|
|
9362
9386
|
return makeEnvironmentProviders(providers);
|
|
9363
9387
|
}
|
|
9364
9388
|
|
|
9365
|
-
class TCloudUiInputDirective {
|
|
9366
|
-
constructor(_el) {
|
|
9367
|
-
this._el = _el;
|
|
9368
|
-
this.fullWidth = input(false);
|
|
9369
|
-
effect(() => {
|
|
9370
|
-
this.setClasses();
|
|
9371
|
-
});
|
|
9372
|
-
}
|
|
9373
|
-
setClasses() {
|
|
9374
|
-
this.fullWidth() ? this._el.nativeElement.classList.add('tc-rev-input-control--full-width') : null;
|
|
9375
|
-
}
|
|
9376
|
-
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 }); }
|
|
9377
|
-
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 }); }
|
|
9378
|
-
}
|
|
9379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TCloudUiInputDirective, decorators: [{
|
|
9380
|
-
type: Directive,
|
|
9381
|
-
args: [{
|
|
9382
|
-
selector: 'input[tcloudUiInput], select[tcloudUiInput]',
|
|
9383
|
-
host: {
|
|
9384
|
-
class: 'tc-rev-input-control'
|
|
9385
|
-
}
|
|
9386
|
-
}]
|
|
9387
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
9388
|
-
|
|
9389
9389
|
class TCloudUiLoadingTransitionsService {
|
|
9390
9390
|
constructor() {
|
|
9391
9391
|
this.ID = 'tcloud-ui-loading-transitions';
|
|
@@ -10418,7 +10418,7 @@ class TcRevMultiInputComponent {
|
|
|
10418
10418
|
setTimeout(() => {
|
|
10419
10419
|
if (this.initialValue() !== '') {
|
|
10420
10420
|
this.autoFocus = true;
|
|
10421
|
-
this.multiInputForm
|
|
10421
|
+
this.multiInputForm?.get('multiInput')?.setValue(this.initialValue());
|
|
10422
10422
|
}
|
|
10423
10423
|
});
|
|
10424
10424
|
}
|
|
@@ -10433,7 +10433,7 @@ class TcRevMultiInputComponent {
|
|
|
10433
10433
|
return isTextEllipsed(text);
|
|
10434
10434
|
}
|
|
10435
10435
|
addItem() {
|
|
10436
|
-
const newItem = this.multiInputForm
|
|
10436
|
+
const newItem = this.multiInputForm?.get('multiInput').value;
|
|
10437
10437
|
this.itemsList.update((currentItems) => {
|
|
10438
10438
|
const updatedItems = currentItems.includes(newItem)
|
|
10439
10439
|
? currentItems
|
|
@@ -10443,7 +10443,7 @@ class TcRevMultiInputComponent {
|
|
|
10443
10443
|
this.onChangeList.emit(updatedItems);
|
|
10444
10444
|
return updatedItems;
|
|
10445
10445
|
});
|
|
10446
|
-
this.multiInputForm
|
|
10446
|
+
this.multiInputForm?.reset();
|
|
10447
10447
|
}
|
|
10448
10448
|
removeItem(index) {
|
|
10449
10449
|
this.itemsList.update((currentItems) => {
|