@@ -19,11 +19,11 @@ class SelectCustomTriggerExample {
19
19
this . toppingList = [ 'Extra cheese' , 'Mushroom' , 'Onion' , 'Pepperoni' , 'Sausage' , 'Tomato' ] ;
20
20
}
21
21
static { this . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "19.0.0-next.3" , ngImport : i0 , type : SelectCustomTriggerExample , deps : [ ] , target : i0 . ɵɵFactoryTarget . Component } ) ; }
22
- static { this . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "19.0.0-next.3" , type : SelectCustomTriggerExample , isStandalone : true , selector : "select-custom-trigger-example" , ngImport : i0 , template : "<mat-form-field>\n <mat-label>Toppings</mat-label>\n <mat-select [formControl]=\"toppings\" multiple>\n <mat-select-trigger>\n {{toppings.value?.[0] || ''}}\n @if ((toppings.value?.length || 0) > 1) {\n <span class=\"example-additional-selection\">\n (+{{(toppings.value?.length || 0) - 1}} {{toppings.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n @for (topping of toppingList; track topping) {\n <mat-option [value]=\"topping\">{{topping}}</mat-option>\n}\n </mat-select>\n</mat-form-field>\n" , styles : [ ".example-additional-selection {\n opacity: 0.75;\n font-size: 0.75em;\n}\n" ] , dependencies : [ { kind : "ngmodule" , type : MatFormFieldModule } , { kind : "component" , type : i1 . MatFormField , selector : "mat-form-field" , inputs : [ "hideRequiredMarker" , "color" , "floatLabel" , "appearance" , "subscriptSizing" , "hintLabel" ] , exportAs : [ "matFormField" ] } , { kind : "directive" , type : i1 . MatLabel , selector : "mat-label" } , { kind : "ngmodule" , type : MatSelectModule } , { kind : "component" , type : i2 . MatSelect , selector : "mat-select" , inputs : [ "aria-describedby" , "panelClass" , "disabled" , "disableRipple" , "tabIndex" , "hideSingleSelectionIndicator" , "placeholder" , "required" , "multiple" , "disableOptionCentering" , "compareWith" , "value" , "aria-label" , "aria-labelledby" , "errorStateMatcher" , "typeaheadDebounceInterval" , "sortComparator" , "id" , "panelWidth" ] , outputs : [ "openedChange" , "opened" , "closed" , "selectionChange" , "valueChange" ] , exportAs : [ "matSelect" ] } , { kind : "directive" , type : i2 . MatSelectTrigger , selector : "mat-select-trigger" } , { kind : "component" , type : i3 . MatOption , selector : "mat-option" , inputs : [ "value" , "id" , "disabled" ] , outputs : [ "onSelectionChange" ] , exportAs : [ "matOption" ] } , { kind : "ngmodule" , type : FormsModule } , { kind : "directive" , type : i4 . NgControlStatus , selector : "[formControlName],[ngModel],[formControl]" } , { kind : "ngmodule" , type : ReactiveFormsModule } , { kind : "directive" , type : i4 . FormControlDirective , selector : "[formControl]" , inputs : [ "formControl" , "disabled" , "ngModel" ] , outputs : [ "ngModelChange" ] , exportAs : [ "ngForm" ] } ] } ) ; }
22
+ static { this . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "17.0.0" , version : "19.0.0-next.3" , type : SelectCustomTriggerExample , isStandalone : true , selector : "select-custom-trigger-example" , ngImport : i0 , template : "<mat-form-field>\n <mat-label>Toppings</mat-label>\n <mat-select [formControl]=\"toppings\" multiple>\n <mat-select-trigger>\n {{toppings.value?.[0] || ''}}\n @if ((toppings.value?.length || 0) > 1) {\n <span class=\"example-additional-selection\">\n (+{{(toppings.value?.length || 0) - 1}} {{toppings.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n @for (topping of toppingList; track topping) {\n <mat-option [value]=\"topping\">{{topping}}</mat-option>\n}\n </mat-select>\n</mat-form-field>\n" , styles : [ ".example-additional-selection {\n opacity: 0.75;\n font-size: 0.75em;\n line-height: 1;\n}\n" ] , dependencies : [ { kind : "ngmodule" , type : MatFormFieldModule } , { kind : "component" , type : i1 . MatFormField , selector : "mat-form-field" , inputs : [ "hideRequiredMarker" , "color" , "floatLabel" , "appearance" , "subscriptSizing" , "hintLabel" ] , exportAs : [ "matFormField" ] } , { kind : "directive" , type : i1 . MatLabel , selector : "mat-label" } , { kind : "ngmodule" , type : MatSelectModule } , { kind : "component" , type : i2 . MatSelect , selector : "mat-select" , inputs : [ "aria-describedby" , "panelClass" , "disabled" , "disableRipple" , "tabIndex" , "hideSingleSelectionIndicator" , "placeholder" , "required" , "multiple" , "disableOptionCentering" , "compareWith" , "value" , "aria-label" , "aria-labelledby" , "errorStateMatcher" , "typeaheadDebounceInterval" , "sortComparator" , "id" , "panelWidth" ] , outputs : [ "openedChange" , "opened" , "closed" , "selectionChange" , "valueChange" ] , exportAs : [ "matSelect" ] } , { kind : "directive" , type : i2 . MatSelectTrigger , selector : "mat-select-trigger" } , { kind : "component" , type : i3 . MatOption , selector : "mat-option" , inputs : [ "value" , "id" , "disabled" ] , outputs : [ "onSelectionChange" ] , exportAs : [ "matOption" ] } , { kind : "ngmodule" , type : FormsModule } , { kind : "directive" , type : i4 . NgControlStatus , selector : "[formControlName],[ngModel],[formControl]" } , { kind : "ngmodule" , type : ReactiveFormsModule } , { kind : "directive" , type : i4 . FormControlDirective , selector : "[formControl]" , inputs : [ "formControl" , "disabled" , "ngModel" ] , outputs : [ "ngModelChange" ] , exportAs : [ "ngForm" ] } ] } ) ; }
23
23
}
24
24
i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "19.0.0-next.3" , ngImport : i0 , type : SelectCustomTriggerExample , decorators : [ {
25
25
type : Component ,
26
- args : [ { selector : 'select-custom-trigger-example' , standalone : true , imports : [ MatFormFieldModule , MatSelectModule , FormsModule , ReactiveFormsModule ] , template : "<mat-form-field>\n <mat-label>Toppings</mat-label>\n <mat-select [formControl]=\"toppings\" multiple>\n <mat-select-trigger>\n {{toppings.value?.[0] || ''}}\n @if ((toppings.value?.length || 0) > 1) {\n <span class=\"example-additional-selection\">\n (+{{(toppings.value?.length || 0) - 1}} {{toppings.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n @for (topping of toppingList; track topping) {\n <mat-option [value]=\"topping\">{{topping}}</mat-option>\n}\n </mat-select>\n</mat-form-field>\n" , styles : [ ".example-additional-selection {\n opacity: 0.75;\n font-size: 0.75em;\n}\n" ] } ]
26
+ args : [ { selector : 'select-custom-trigger-example' , standalone : true , imports : [ MatFormFieldModule , MatSelectModule , FormsModule , ReactiveFormsModule ] , template : "<mat-form-field>\n <mat-label>Toppings</mat-label>\n <mat-select [formControl]=\"toppings\" multiple>\n <mat-select-trigger>\n {{toppings.value?.[0] || ''}}\n @if ((toppings.value?.length || 0) > 1) {\n <span class=\"example-additional-selection\">\n (+{{(toppings.value?.length || 0) - 1}} {{toppings.value?.length === 2 ? 'other' : 'others'}})\n </span>\n }\n </mat-select-trigger>\n @for (topping of toppingList; track topping) {\n <mat-option [value]=\"topping\">{{topping}}</mat-option>\n}\n </mat-select>\n</mat-form-field>\n" , styles : [ ".example-additional-selection {\n opacity: 0.75;\n font-size: 0.75em;\n line-height: 1;\n }\n" ] } ]
27
27
} ] } ) ;
28
28
29
29
/** @title Disabled select */
0 commit comments