UNPKG

@angular/material

Version:
1 lines 2.46 kB
{"version":3,"file":"_internal-form-field-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/core/internal-form-field/internal-form-field.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ChangeDetectionStrategy, Component, Input, ViewEncapsulation} from '@angular/core';\n\n/**\n * Internal shared component used as a container in form field controls.\n * Not to be confused with `mat-form-field` which MDC calls a \"text field\".\n * @docs-private\n */\n@Component({\n // Use a `div` selector to match the old markup closer.\n selector: 'div[mat-internal-form-field]',\n template: '<ng-content></ng-content>',\n styleUrl: 'internal-form-field.css',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'mdc-form-field mat-internal-form-field',\n '[class.mdc-form-field--align-end]': 'labelPosition === \"before\"',\n },\n})\nexport class _MatInternalFormField {\n /** Position of the label relative to the content. */\n @Input({required: true}) labelPosition: 'before' | 'after';\n}\n"],"names":["_MatInternalFormField","labelPosition","deps","target","i0","ɵɵFactoryTarget","Component","ɵcmp","ɵɵngDeclareComponent","minVersion","version","type","isInline","styles","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","decorators","template","host","Input","required"],"mappings":";;;MA2BaA,qBAAqB,CAAA;EAEPC,aAAa;;;;;UAF3BD,qBAAqB;AAAAE,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;AAArB,EAAA,OAAAC,IAAA,GAAAH,EAAA,CAAAI,oBAAA,CAAA;AAAAC,IAAAA,UAAA,EAAA,QAAA;AAAAC,IAAAA,OAAA,EAAA,QAAA;AAAAC,IAAAA,IAAA,EAAAX,qBAAqB;;;;;;;;;;;;;cATtB,2BAA2B;AAAAY,IAAAA,QAAA,EAAA,IAAA;IAAAC,MAAA,EAAA,CAAA,mmBAAA,CAAA;AAAAC,IAAAA,eAAA,EAAAV,EAAA,CAAAW,uBAAA,CAAAC,MAAA;AAAAC,IAAAA,aAAA,EAAAb,EAAA,CAAAc,iBAAA,CAAAC;AAAA,GAAA,CAAA;;;;;;QAS1BnB,qBAAqB;AAAAoB,EAAAA,UAAA,EAAA,CAAA;UAZjCd,SAAS;;gBAEE,8BAA8B;AAAAe,MAAAA,QAAA,EAC9B,2BAA2B;MAAAJ,aAAA,EAEtBC,iBAAiB,CAACC,IAAI;MACpBL,eAAA,EAAAC,uBAAuB,CAACC,MAAM;AACzCM,MAAAA,IAAA,EAAA;AACJ,QAAA,OAAO,EAAE,wCAAwC;AACjD,QAAA,mCAAmC,EAAE;OACtC;MAAAT,MAAA,EAAA,CAAA,mmBAAA;KAAA;;;;YAIAU,KAAK;aAAC;AAACC,QAAAA,QAAQ,EAAE;OAAK;;;;;;;"}