matcha-components 20.68.0 → 20.69.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.
|
@@ -9649,6 +9649,11 @@ class MatchaChipComponent {
|
|
|
9649
9649
|
/** Evento emitido quando o chip é destruído */
|
|
9650
9650
|
this.destroyed = new EventEmitter();
|
|
9651
9651
|
}
|
|
9652
|
+
ngOnInit() {
|
|
9653
|
+
// Aplica as classes CSS diretamente no elemento
|
|
9654
|
+
const element = this._elementRef.nativeElement;
|
|
9655
|
+
element.classList.add('matcha-chip', 'radius-full', 'd-flex', 'align-items-center', 'gap-8', 'px-14', 'py-10', 'h-20');
|
|
9656
|
+
}
|
|
9652
9657
|
ngAfterViewInit() {
|
|
9653
9658
|
this._setupChipRemoveDirective();
|
|
9654
9659
|
}
|
|
@@ -9758,7 +9763,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
|
|
|
9758
9763
|
}] } });
|
|
9759
9764
|
|
|
9760
9765
|
class MatchaChipListComponent {
|
|
9761
|
-
|
|
9766
|
+
/** Se a chip list está desabilitada */
|
|
9767
|
+
get disabled() {
|
|
9768
|
+
return this._disabled;
|
|
9769
|
+
}
|
|
9770
|
+
set disabled(value) {
|
|
9771
|
+
this._disabled = value;
|
|
9772
|
+
this._updateChipsDisabledState();
|
|
9773
|
+
}
|
|
9774
|
+
/** Valor(es) selecionado(s) */
|
|
9775
|
+
get value() {
|
|
9776
|
+
return this._value;
|
|
9777
|
+
}
|
|
9778
|
+
set value(newValue) {
|
|
9779
|
+
this._value = newValue;
|
|
9780
|
+
this._updateChipsSelectionState();
|
|
9781
|
+
}
|
|
9782
|
+
get isDisabled() { return this.disabled; }
|
|
9783
|
+
get ariaMultiselectable() { return this.multiple ? 'true' : null; }
|
|
9784
|
+
get ariaDisabled() { return this.disabled.toString(); }
|
|
9785
|
+
constructor(_elementRef) {
|
|
9786
|
+
this._elementRef = _elementRef;
|
|
9762
9787
|
/** Se múltiplos chips podem ser selecionados */
|
|
9763
9788
|
this.multiple = false;
|
|
9764
9789
|
/** Se os chips podem ser selecionados */
|
|
@@ -9778,25 +9803,11 @@ class MatchaChipListComponent {
|
|
|
9778
9803
|
this.onChange = () => { };
|
|
9779
9804
|
this.onTouched = () => { };
|
|
9780
9805
|
}
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
set disabled(value) {
|
|
9786
|
-
this._disabled = value;
|
|
9787
|
-
this._updateChipsDisabledState();
|
|
9788
|
-
}
|
|
9789
|
-
/** Valor(es) selecionado(s) */
|
|
9790
|
-
get value() {
|
|
9791
|
-
return this._value;
|
|
9792
|
-
}
|
|
9793
|
-
set value(newValue) {
|
|
9794
|
-
this._value = newValue;
|
|
9795
|
-
this._updateChipsSelectionState();
|
|
9806
|
+
ngOnInit() {
|
|
9807
|
+
// Aplica as classes CSS diretamente no elemento
|
|
9808
|
+
const element = this._elementRef.nativeElement;
|
|
9809
|
+
element.classList.add('matcha-chip-list');
|
|
9796
9810
|
}
|
|
9797
|
-
get isDisabled() { return this.disabled; }
|
|
9798
|
-
get ariaMultiselectable() { return this.multiple ? 'true' : null; }
|
|
9799
|
-
get ariaDisabled() { return this.disabled.toString(); }
|
|
9800
9811
|
ngAfterContentInit() {
|
|
9801
9812
|
this._setupChipListeners();
|
|
9802
9813
|
this._updateChipsSelectionState();
|
|
@@ -9975,7 +9986,7 @@ class MatchaChipListComponent {
|
|
|
9975
9986
|
setDisabledState(isDisabled) {
|
|
9976
9987
|
this.disabled = isDisabled;
|
|
9977
9988
|
}
|
|
9978
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: MatchaChipListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9989
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.7", ngImport: i0, type: MatchaChipListComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9979
9990
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.7", type: MatchaChipListComponent, isStandalone: false, selector: "matcha-chip-list", inputs: { multiple: "multiple", selectable: "selectable", disabled: "disabled", value: "value", orientation: "orientation" }, outputs: { change: "change", removed: "removed" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, properties: { "class.matcha-chip-list": "this.chipListClass", "class.matcha-chip-list-disabled": "this.isDisabled", "attr.role": "this.role", "attr.aria-multiselectable": "this.ariaMultiselectable", "attr.aria-disabled": "this.ariaDisabled" } }, providers: [
|
|
9980
9991
|
{
|
|
9981
9992
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -9993,7 +10004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.7", ngImpor
|
|
|
9993
10004
|
multi: true
|
|
9994
10005
|
}
|
|
9995
10006
|
], template: "<div class=\"matcha-chip-list-wrapper\" [class.matcha-chip-list-vertical]=\"orientation === 'vertical'\">\n <ng-content></ng-content>\n</div>" }]
|
|
9996
|
-
}], propDecorators: { multiple: [{
|
|
10007
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { multiple: [{
|
|
9997
10008
|
type: Input
|
|
9998
10009
|
}], selectable: [{
|
|
9999
10010
|
type: Input
|