@@ -474,7 +474,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
474
474
}
475
475
476
476
render ( ) {
477
- const { readOnly, disabled, _isEnum, _isBoolean, _isInput, _isArray, _isNillable } = this ;
477
+ const { readOnly, disabled, _isEnum, _isBoolean, _isInput, _isArray, _isNillable, name } = this ;
478
478
return html `
479
479
< style > ${ this . styles } </ style >
480
480
< div class ="content ">
@@ -486,6 +486,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
486
486
${ _isNillable ? html `< anypoint-checkbox
487
487
?disabled ="${ readOnly || disabled } "
488
488
class ="nil-option "
489
+ data-form-item-name ="${ name } "
489
490
@checked-changed ="${ this . _nillableChanged } "> Nil</ anypoint-checkbox > ` : undefined }
490
491
</ div > ` ;
491
492
}
@@ -504,6 +505,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
504
505
?disabled ="${ readOnly || disabled || _nilEnabled } "
505
506
?outlined ="${ outlined } "
506
507
?compatibility ="${ compatibility } "
508
+ data-form-item-name ="${ name } "
507
509
>
508
510
< label slot ="label "> ${ schema . inputLabel } </ label >
509
511
< anypoint-listbox
@@ -535,6 +537,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
535
537
?disabled ="${ readOnly || disabled || _nilEnabled } "
536
538
?outlined ="${ outlined } "
537
539
?compatibility ="${ compatibility } "
540
+ data-form-item-name ="${ name } "
538
541
>
539
542
< label slot ="label "> ${ schema . inputLabel } </ label >
540
543
< anypoint-listbox
@@ -602,6 +605,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
602
605
invalidMessage ="${ `${ name } is invalid. Check documentation.` } "
603
606
.infoMessage ="${ _valueWarningMessage } "
604
607
.step ="${ step } "
608
+ data-form-item-name ="${ name } "
605
609
>
606
610
< label slot ="label "> ${ schema . inputLabel } </ label >
607
611
</ anypoint-input > ` ;
@@ -641,6 +645,7 @@ export class ApiFormItemElement extends ValidatableMixin(LitElement) {
641
645
?compatibility ="${ compatibility } "
642
646
data-type ="array "
643
647
data-index ="${ index } "
648
+ data-form-item-name ="${ name } "
644
649
@input ="${ this . _arrayValueHandler } "
645
650
invalidMessage ="${ `${ name } is invalid. Check documentation.` } "
646
651
.infoMessage ="${ warningMessage } "
0 commit comments