@angular/material
Version:
Angular Material
1 lines • 3.63 kB
Source Map (JSON)
{"version":3,"file":"_pseudo-checkbox-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/core/selection/pseudo-checkbox/pseudo-checkbox.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 {Component, ViewEncapsulation, Input} from '@angular/core';\nimport {_animationsDisabled} from '../../animation/animation';\n\n/**\n * Possible states for a pseudo checkbox.\n * @docs-private\n */\nexport type MatPseudoCheckboxState = 'unchecked' | 'checked' | 'indeterminate';\n\n/**\n * Component that shows a simplified checkbox without including any kind of \"real\" checkbox.\n * Meant to be used when the checkbox is purely decorative and a large number of them will be\n * included, such as for the options in a multi-select. Uses no SVGs or complex animations.\n * Note that theming is meant to be handled by the parent element, e.g.\n * `mat-primary .mat-pseudo-checkbox`.\n *\n * Note that this component will be completely invisible to screen-reader users. This is *not*\n * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly\n * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail\n * of more complex components that appropriately handle selected / checked state.\n * @docs-private\n */\n@Component({\n encapsulation: ViewEncapsulation.None,\n selector: 'mat-pseudo-checkbox',\n styleUrl: 'pseudo-checkbox.css',\n template: '',\n host: {\n 'class': 'mat-pseudo-checkbox',\n '[class.mat-pseudo-checkbox-indeterminate]': 'state === \"indeterminate\"',\n '[class.mat-pseudo-checkbox-checked]': 'state === \"checked\"',\n '[class.mat-pseudo-checkbox-disabled]': 'disabled',\n '[class.mat-pseudo-checkbox-minimal]': 'appearance === \"minimal\"',\n '[class.mat-pseudo-checkbox-full]': 'appearance === \"full\"',\n '[class._mat-animation-noopable]': '_animationsDisabled',\n },\n})\nexport class MatPseudoCheckbox {\n _animationsDisabled = _animationsDisabled();\n\n /** Display state of the checkbox. */\n @Input() state: MatPseudoCheckboxState = 'unchecked';\n\n /** Whether the checkbox is disabled. */\n @Input() disabled: boolean = false;\n\n /**\n * Appearance of the pseudo checkbox. Default appearance of 'full' renders a checkmark/mixedmark\n * indicator inside a square box. 'minimal' appearance only renders the checkmark/mixedmark.\n */\n @Input() appearance: 'minimal' | 'full' = 'full';\n}\n"],"names":[],"mappings":";;;;MA6Ca,iBAAiB,CAAA;EAC5B,mBAAmB,GAAG,mBAAmB,EAAE;AAGlC,EAAA,KAAK,GAA2B,WAAW;AAG3C,EAAA,QAAQ,GAAY,KAAK;AAMzB,EAAA,UAAU,GAAuB,MAAM;;;;;UAbrC,iBAAiB;AAAA,IAAA,IAAA,EAAA,EAAA;AAAA,IAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA;AAAA,GAAA,CAAA;AAAjB,EAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA;AAAA,IAAA,UAAA,EAAA,QAAA;AAAA,IAAA,OAAA,EAAA,QAAA;AAAA,IAAA,IAAA,EAAA,iBAAiB;;;;;;;;;;;;;;;;;;;;cAXlB,EAAE;AAAA,IAAA,QAAA,EAAA,IAAA;IAAA,MAAA,EAAA,CAAA,8sHAAA,CAAA;AAAA,IAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA;AAAA,GAAA,CAAA;;;;;;QAWD,iBAAiB;AAAA,EAAA,UAAA,EAAA,CAAA;UAf7B,SAAS;AACO,IAAA,IAAA,EAAA,CAAA;MAAA,aAAA,EAAA,iBAAiB,CAAC,IAAI;AAAA,MAAA,QAAA,EAC3B,qBAAqB;AAAA,MAAA,QAAA,EAErB,EAAE;AAAA,MAAA,IAAA,EACN;AACJ,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,2CAA2C,EAAE,2BAA2B;AACxE,QAAA,qCAAqC,EAAE,qBAAqB;AAC5D,QAAA,sCAAsC,EAAE,UAAU;AAClD,QAAA,qCAAqC,EAAE,0BAA0B;AACjE,QAAA,kCAAkC,EAAE,uBAAuB;AAC3D,QAAA,iCAAiC,EAAE;OACpC;MAAA,MAAA,EAAA,CAAA,8sHAAA;KAAA;;;;YAMA;;;YAGA;;;YAMA;;;;;;;"}