Icard/angular-clarity-master(work.../node_modules/primeng/fesm2022/primeng-baseicon.mjs.map

1 line
2.9 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
{"version":3,"file":"primeng-baseicon.mjs","sources":["../../src/app/components/baseicon/baseicon.ts","../../src/app/components/baseicon/primeng-baseicon.ts"],"sourcesContent":["import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation, ElementRef, HostBinding, booleanAttribute } from '@angular/core';\nimport { ObjectUtils } from 'primeng/utils';\n\n@Component({\n template: ` <ng-content></ng-content> `,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'p-element p-icon-wrapper'\n }\n})\nexport class BaseIcon {\n @Input() label: string;\n\n @Input({ transform: booleanAttribute }) spin: boolean = false;\n\n @Input() styleClass: string;\n\n role: string;\n\n ariaLabel: string;\n\n ariaHidden: boolean;\n\n ngOnInit() {\n this.getAttributes();\n }\n\n getAttributes() {\n const isLabelEmpty = ObjectUtils.isEmpty(this.label);\n this.role = !isLabelEmpty ? 'img' : undefined;\n this.ariaLabel = !isLabelEmpty ? this.label : undefined;\n this.ariaHidden = isLabelEmpty;\n }\n\n getClassNames() {\n return `p-icon ${this.styleClass ? this.styleClass + ' ' : ''}${this.spin ? 'p-icon-spin' : ''}`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MAYa,QAAQ,CAAA;AACR,IAAA,KAAK,CAAS;IAEiB,IAAI,GAAY,KAAK,CAAC;AAErD,IAAA,UAAU,CAAS;AAE5B,IAAA,IAAI,CAAS;AAEb,IAAA,SAAS,CAAS;AAElB,IAAA,UAAU,CAAU;IAEpB,QAAQ,GAAA;QACJ,IAAI,CAAC,aAAa,EAAE,CAAC;KACxB;IAED,aAAa,GAAA;QACT,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACrD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