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

1 line
28 KiB
Plaintext
Raw Permalink Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-sidebar.mjs","sources":["../../src/app/components/sidebar/sidebar.ts","../../src/app/components/sidebar/primeng-sidebar.ts"],"sourcesContent":["import { animate, animation, style, transition, trigger, useAnimation } from '@angular/animations';\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgModule,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n numberAttribute\n} from '@angular/core';\nimport { PrimeNGConfig, PrimeTemplate, SharedModule } from 'primeng/api';\nimport { DomHandler } from 'primeng/dom';\nimport { TimesIcon } from 'primeng/icons/times';\nimport { RippleModule } from 'primeng/ripple';\nimport { Nullable, VoidListener } from 'primeng/ts-helpers';\nimport { ZIndexUtils } from 'primeng/utils';\n\nconst showAnimation = animation([style({ transform: '{{transform}}', opacity: 0 }), animate('{{transition}}')]);\n\nconst hideAnimation = animation([animate('{{transition}}', style({ transform: '{{transform}}', opacity: 0 }))]);\n/**\n * Sidebar is a panel component displayed as an overlay at the edges of the screen.\n * @group Components\n */\n@Component({\n selector: 'p-sidebar',\n template: `\n <div\n #container\n [ngClass]=\"{\n 'p-sidebar': true,\n 'p-sidebar-active': visible,\n 'p-sidebar-left': position === 'left' && !fullScreen,\n 'p-sidebar-right': position === 'right' && !fullScreen,\n 'p-sidebar-top': position === 'top' && !fullScreen,\n 'p-sidebar-bottom': position === 'bottom' && !fullScreen,\n 'p-sidebar-full': fullScreen\n }\"\n *ngIf=\"visible\"\n [@panelState]=\"{ value: 'visible', params: { transform: transformOptions, transition: transitionOptions } }\"\n (@panelState.start)=\"onAnimationStart($event)\"\n (@panelState.done)=\"onAnimationEnd($event)\"\n [ngStyle]=\"style\"\n [class]=\"styleClass\"\n role=\"complementary\"\n [attr.data-pc-name]=\"'sidebar'\"\n [attr.data-pc-section]=\"'root'\"\n (keydown)=\"onKeyDown($event)\"\n >\n <ng-container *ngIf=\"headlessTemplate; else notHeadless\">\n <ng-container *ngTemplateOutlet=\"headlessTemplate\"></ng-container>\n </ng-container>\n <ng-template #notHeadless>\n <div class=\"p-sidebar-header\" [attr.data-pc-section]=\"'header'\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n <button\n type=\"button\"\n class=\"p-sidebar-close p-sidebar-icon p-link\"\n (click)=\"close($event)\"\n (keydown.enter)=\"close($event)\"\n [attr.aria-label]=\"ariaCloseLabel\"\n *ngIf=\"showCloseIcon\"\n pRipple\n [attr.data-pc-section]=\"'closebutton'\"\n [attr.data-pc-group-section]=\"'iconcontainer'\"\n >\n <TimesIcon *ngIf=\"!closeIconTemplate\" [styleClass]=\"'p-sidebar-close-icon'\" [attr.data-pc-section]=\"'closeicon'\" />\n <span *ngIf=\"closeIconTemplate\" class=\"p-sidebar-close-icon\" [attr.data-pc-section]=\"'closeicon'\">\n <ng-template *ngTemplateOutlet=\"closeIconTemplate\"></ng-template>\n </span>\n </button>\n </div>\n <div class=\"p-sidebar-content\" [attr.data-pc-section]=\"'content'\">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutl