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

1 line
22 KiB
Plaintext
Raw Normal View History

2024-07-16 15:23:22 +00:00
{"version":3,"file":"primeng-splitbutton.mjs","sources":["../../src/app/components/splitbutton/splitbutton.ts","../../src/app/components/splitbutton/primeng-splitbutton.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ContentChildren, ElementRef, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewChild, ViewEncapsulation, booleanAttribute, numberAttribute, signal } from '@angular/core';\nimport { MenuItem, PrimeTemplate } from 'primeng/api';\nimport { ButtonModule } from 'primeng/button';\nimport { ChevronDownIcon } from 'primeng/icons/chevrondown';\nimport { TieredMenu, TieredMenuModule } from 'primeng/tieredmenu';\nimport { UniqueComponentId } from 'primeng/utils';\nimport { AutoFocusModule } from 'primeng/autofocus';\n\nimport { ButtonProps, MenuButtonProps } from './splitbutton.interface';\n\ntype SplitButtonIconPosition = 'left' | 'right';\n/**\n * SplitButton groups a set of commands in an overlay with a default command.\n * @group Components\n */\n@Component({\n selector: 'p-splitButton',\n template: `\n <div #container [ngClass]=\"containerClass\" [class]=\"styleClass\" [ngStyle]=\"style\">\n <ng-container *ngIf=\"contentTemplate; else defaultButton\">\n <button\n class=\"p-splitbutton-defaultbutton\"\n type=\"button\"\n pButton\n [severity]=\"severity\"\n [text]=\"text\"\n [outlined]=\"outlined\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n (click)=\"onDefaultButtonClick($event)\"\n [disabled]=\"disabled\"\n [attr.tabindex]=\"tabindex\"\n [ariaLabel]=\"buttonProps?.['ariaLabel'] || label\"\n pAutoFocus\n [autofocus]=\"autofocus\"\n >\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\n </button>\n </ng-container>\n <ng-template #defaultButton>\n <button\n #defaultbtn\n class=\"p-splitbutton-defaultbutton\"\n type=\"button\"\n pButton\n [severity]=\"severity\"\n [text]=\"text\"\n [outlined]=\"outlined\"\n [size]=\"size\"\n [icon]=\"icon\"\n [iconPos]=\"iconPos\"\n [label]=\"label\"\n (click)=\"onDefaultButtonClick($event)\"\n [disabled]=\"buttonDisabled\"\n [attr.tabindex]=\"tabindex\"\n [ariaLabel]=\"buttonProps?.['ariaLabel']\"\n pAutoFocus\n [autofocus]=\"autofocus\"\n ></button>\n </ng-template>\n <button\n type=\"button\"\n pButton\n [size]=\"size\"\n [severity]=\"severity\"\n [text]=\"text\"\n [outlined]=\"outlined\"\n class=\"p-splitbutton-menubutton p-button-icon-only\"\n (click)=\"onDropdownButtonClick($event)\"\n (keydown)=\"onDropdownButtonKeydown($event)\"\n [disabled]=\"menuButtonDisabled\"\n [ariaLabel]=\"menuButtonProps?.['ariaLabel'] || expandAriaLabel\"\n [attr.aria-haspopup]=\"menuButtonProps?.['ariaHasPopup'] || true\"\n [attr.aria-expanded]=\"menuButtonProps?.['ariaExpanded'] || isExpanded()\"\n [attr.aria-controls]=\"menuButtonProps?.['ariaControls'] || ariaId\"\n >\n <ChevronDownIcon *ngIf=\"!dropdownIconTemplate\" />\n <ng-template *ngTemplateOutlet=\"dropdownIconTemplate\"></ng-template>\n </button>\n <p-tieredMenu\n [id]=\"ariaId\"