matcha-components 20.193.0 → 20.195.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.
|
@@ -1840,10 +1840,11 @@ class MatchaSelectModule {
|
|
|
1840
1840
|
MatchaSelectTriggerDirective], imports: [CommonModule,
|
|
1841
1841
|
MatchaOptionModule,
|
|
1842
1842
|
MatchaPanelModule], exports: [MatchaSelectComponent,
|
|
1843
|
-
MatchaSelectTriggerDirective
|
|
1843
|
+
MatchaSelectTriggerDirective,
|
|
1844
|
+
MatchaOptionModule] }); }
|
|
1844
1845
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MatchaSelectModule, imports: [CommonModule,
|
|
1845
1846
|
MatchaOptionModule,
|
|
1846
|
-
MatchaPanelModule] }); }
|
|
1847
|
+
MatchaPanelModule, MatchaOptionModule] }); }
|
|
1847
1848
|
}
|
|
1848
1849
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MatchaSelectModule, decorators: [{
|
|
1849
1850
|
type: NgModule,
|
|
@@ -1859,7 +1860,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
1859
1860
|
],
|
|
1860
1861
|
exports: [
|
|
1861
1862
|
MatchaSelectComponent,
|
|
1862
|
-
MatchaSelectTriggerDirective
|
|
1863
|
+
MatchaSelectTriggerDirective,
|
|
1864
|
+
MatchaOptionModule
|
|
1863
1865
|
]
|
|
1864
1866
|
}]
|
|
1865
1867
|
}] });
|
|
@@ -13593,11 +13595,13 @@ class MatchaChipComponent {
|
|
|
13593
13595
|
this.removed = new EventEmitter();
|
|
13594
13596
|
/** Evento emitido quando o chip é destruído */
|
|
13595
13597
|
this.destroyed = new EventEmitter();
|
|
13598
|
+
this._hasCustomRemoveIcon = false;
|
|
13596
13599
|
}
|
|
13597
13600
|
ngOnInit() {
|
|
13598
|
-
// Aplica as classes CSS diretamente no elemento
|
|
13599
13601
|
const element = this._elementRef.nativeElement;
|
|
13600
13602
|
element.classList.add('matcha-chip', 'radius-full', 'd-flex', 'align-items-center', 'gap-8', 'px-14', 'py-10', 'h-20');
|
|
13603
|
+
// Verifica conteúdo projetado antes do template renderizar o botão padrão
|
|
13604
|
+
this._hasCustomRemoveIcon = element.querySelector('[matchaChipRemove]') !== null;
|
|
13601
13605
|
}
|
|
13602
13606
|
ngAfterViewInit() {
|
|
13603
13607
|
this._setupChipRemoveDirective();
|
|
@@ -13673,11 +13677,11 @@ class MatchaChipComponent {
|
|
|
13673
13677
|
this.destroyed.emit(this);
|
|
13674
13678
|
}
|
|
13675
13679
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MatchaChipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13676
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.2", type: MatchaChipComponent, isStandalone: false, selector: "matcha-chip", inputs: { color: "color", selected: "selected", selectable: "selectable", removable: "removable", disabled: "disabled", value: "value" }, outputs: { selectedChange: "selectedChange", removed: "removed", destroyed: "destroyed" }, host: { listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)" }, properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<span class=\"matcha-chip-content color-label\">\n <ng-content></ng-content>\n</span>\n<ng-container *ngIf=\"removable && !
|
|
13680
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.2", type: MatchaChipComponent, isStandalone: false, selector: "matcha-chip", inputs: { color: "color", selected: "selected", selectable: "selectable", removable: "removable", disabled: "disabled", value: "value" }, outputs: { selectedChange: "selectedChange", removed: "removed", destroyed: "destroyed" }, host: { listeners: { "click": "_handleClick($event)", "keydown": "_handleKeydown($event)" }, properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<span class=\"matcha-chip-content color-label\">\n <ng-content></ng-content>\n</span>\n<ng-container *ngIf=\"removable && !_hasCustomRemoveIcon\">\n <matcha-divider direction=\"vertical\" gap=\"0\"></matcha-divider>\n <button \n type=\"button\"\n class=\"matcha-chip-remove d-flex align-items-center justify-content-center w-20 h-20 min-w-20 radius-full cursor-pointer border-0 background-transparent p-0 m-0\"\n [disabled]=\"disabled\"\n (click)=\"remove(); $event.stopPropagation()\"\n tabindex=\"-1\"\n aria-label=\"Remove\"\n matchaChipRemove>\n <matcha-icon name=\"close\" class=\"fs-14\" color=\"label\"></matcha-icon>\n </button>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatchaDividerComponent, selector: "matcha-divider", inputs: ["gap", "gap-sm", "gap-md", "gap-lg", "gap-xl", "direction"] }, { kind: "component", type: MatchaIconComponent, selector: "matcha-icon", inputs: ["name", "size", "color", "class", "loading"] }] }); }
|
|
13677
13681
|
}
|
|
13678
13682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: MatchaChipComponent, decorators: [{
|
|
13679
13683
|
type: Component,
|
|
13680
|
-
args: [{ selector: 'matcha-chip', standalone: false, template: "<span class=\"matcha-chip-content color-label\">\n <ng-content></ng-content>\n</span>\n<ng-container *ngIf=\"removable && !
|
|
13684
|
+
args: [{ selector: 'matcha-chip', standalone: false, template: "<span class=\"matcha-chip-content color-label\">\n <ng-content></ng-content>\n</span>\n<ng-container *ngIf=\"removable && !_hasCustomRemoveIcon\">\n <matcha-divider direction=\"vertical\" gap=\"0\"></matcha-divider>\n <button \n type=\"button\"\n class=\"matcha-chip-remove d-flex align-items-center justify-content-center w-20 h-20 min-w-20 radius-full cursor-pointer border-0 background-transparent p-0 m-0\"\n [disabled]=\"disabled\"\n (click)=\"remove(); $event.stopPropagation()\"\n tabindex=\"-1\"\n aria-label=\"Remove\"\n matchaChipRemove>\n <matcha-icon name=\"close\" class=\"fs-14\" color=\"label\"></matcha-icon>\n </button>\n</ng-container>\n" }]
|
|
13681
13685
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { hostClasses: [{
|
|
13682
13686
|
type: HostBinding,
|
|
13683
13687
|
args: ['class']
|