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

1 line
6.3 KiB
Plaintext
Raw Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-toolbar.mjs","sources":["../../src/app/components/toolbar/toolbar.ts","../../src/app/components/toolbar/primeng-toolbar.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { BlockableUI, PrimeTemplate } from 'primeng/api';\n/**\n * Toolbar is a grouping component for buttons and other content.\n * @group Components\n */\n@Component({\n selector: 'p-toolbar',\n template: `\n <div [ngClass]=\"'p-toolbar p-component'\" [attr.aria-labelledby]=\"ariaLabelledBy\" [ngStyle]=\"style\" [class]=\"styleClass\" role=\"toolbar\" [attr.data-pc-name]=\"'toolbar'\">\n <ng-content></ng-content>\n <div class=\"p-toolbar-group-left p-toolbar-group-start\" *ngIf=\"startTemplate\" [attr.data-pc-section]=\"'start'\">\n <ng-container *ngTemplateOutlet=\"startTemplate\"></ng-container>\n </div>\n <div class=\"p-toolbar-group-center\" *ngIf=\"centerTemplate\" [attr.data-pc-section]=\"'center'\">\n <ng-container *ngTemplateOutlet=\"centerTemplate\"></ng-container>\n </div>\n <div class=\"p-toolbar-group-right p-toolbar-group-end\" *ngIf=\"endTemplate\" [attr.data-pc-section]=\"'end'\">\n <ng-container *ngTemplateOutlet=\"endTemplate\"></ng-container>\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./toolbar.css'],\n host: {\n class: 'p-element'\n }\n})\nexport class Toolbar implements AfterContentInit, BlockableUI {\n /**\n * Inline style of the component.\n * @group Props\n */\n @Input() style: { [klass: string]: any } | null | undefined;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Defines a string value that labels an interactive element.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n\n @ContentChildren(PrimeTemplate) templates: QueryList<PrimeTemplate> | undefined;\n\n startTemplate: TemplateRef<any> | undefined;\n\n endTemplate: TemplateRef<any> | undefined;\n\n centerTemplate: TemplateRef<any> | undefined;\n\n constructor(private el: ElementRef) {}\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement.children[0];\n }\n\n ngAfterContentInit() {\n (this.templates as QueryList<PrimeTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'start':\n case 'left':\n this.startTemplate = item.template;\n break;\n\n case 'end':\n case 'right':\n this.endTemplate = item.template;\n break;\n\n case 'center':\n this.centerTemplate = item.template;\n break;\n }\n });\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Toolbar],\n declarations: [Toolbar]\n})\nexport class ToolbarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAGA;;;AAGG;MAwBU,OAAO,CAAA;AAyBI,IAAA,EAAA,CAAA;AAxBpB;;;AAGG;AACM,IAAA,KAAK,CAA8C;AAC5D;;;AAGG;AACM,IAAA,UAAU,CAAqB;AACxC;;;AAGG;AACM,IAAA,cAAc,CAAqB;AAEZ,IAAA,SAAS,CAAuC;AAEhF,IAAA,aAAa,CAA+B;AAE5C,IAAA,WAAW,CAA+B;AAE1C,IAAA,cAAc,CAA+B;AAE7C,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;KAAI;IAEtC,mBAAmB,GAAA;QACf,OAAO,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;KAC5C;IAED,kBAAkB,GAAA;QACb,IAAI,CAAC,SAAsC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1D,YAAA,QAAQ,IAAI,CAAC,OAAO,EAAE;AAClB,gBAAA,KAAK,OAAO,CAAC;AACb,gBAAA,KAAK,MAAM;AACP,oBAAA,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC;oBACnC,MAAM;AAEV,gBAAA,KAAK,KAAK,CAAC;