@exhaustive-ui/core 22.0.0-rc.2 → 22.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/exhaustive-ui-core-accordion.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +12 -14
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-avatargroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +3 -34
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-baseinput.mjs +27 -7
- package/fesm2022/exhaustive-ui-core-baseinput.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +13 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +10 -34
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +5 -0
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +25 -11
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-config.mjs +1 -8
- package/fesm2022/exhaustive-ui-core-config.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +16 -3
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +2 -14
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +38 -4
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +12 -7
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dom.mjs +9 -2
- package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +6 -6
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +19 -19
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +11 -0
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +12 -0
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +7 -0
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +5 -5
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +6 -32
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +3 -9
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +54 -27
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +9 -11
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +8 -3
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -14
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +53 -20
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +4 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +11 -5
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +8 -2
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-message.mjs +5 -10
- package/fesm2022/exhaustive-ui-core-message.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +3 -0
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +10 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +77 -38
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +14 -19
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +3 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlay.mjs +28 -0
- package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +12 -2
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +61 -13
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +37 -26
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +11 -25
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs +8 -4
- package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +91 -10
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +36 -4
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +3 -8
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +6 -0
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-stepper.mjs +7 -11
- package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +227 -32
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs +16 -1
- package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +60 -16
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toast.mjs +6 -2
- package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +2 -9
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +9 -17
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +99 -28
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +75 -19
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-utils.mjs +15 -0
- package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/config-input-style-to-variant/migration.js +70 -0
- package/schematics/migrations/remove-dead-inputs/migration.js +46 -7
- package/schematics/migrations/removed-exports/migration.js +73 -0
- package/schematics/migrations/renamed-inputs/migration.js +54 -3
- package/schematics/migrations/renamed-outputs/migration.js +89 -0
- package/schematics/migrations/renamed-templates/migration.js +59 -0
- package/schematics/migrations/styleclass-to-class/migration.js +5 -0
- package/schematics/migrations.json +23 -3
- package/schematics/utils/config-signal.js +115 -0
- package/schematics/utils/removed-exports.js +172 -0
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +20 -9
- package/schematics/utils/renamed-outputs.js +154 -0
- package/schematics/utils/renamed-templates.js +142 -0
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-api.d.ts +0 -10
- package/types/exhaustive-ui-core-autocomplete.d.ts +4 -9
- package/types/exhaustive-ui-core-avatargroup.d.ts +1 -6
- package/types/exhaustive-ui-core-badge.d.ts +1 -14
- package/types/exhaustive-ui-core-basecomponent.d.ts +3 -0
- package/types/exhaustive-ui-core-baseinput.d.ts +3 -3
- package/types/exhaustive-ui-core-button.d.ts +4 -25
- package/types/exhaustive-ui-core-cascadeselect.d.ts +5 -2
- package/types/exhaustive-ui-core-config.d.ts +0 -8
- package/types/exhaustive-ui-core-confirmpopup.d.ts +1 -6
- package/types/exhaustive-ui-core-contextmenu.d.ts +3 -0
- package/types/exhaustive-ui-core-dataview.d.ts +1 -11
- package/types/exhaustive-ui-core-datepicker.d.ts +1 -0
- package/types/exhaustive-ui-core-dialog.d.ts +1 -1
- package/types/exhaustive-ui-core-drawer.d.ts +2 -2
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +3 -12
- package/types/exhaustive-ui-core-editor.d.ts +5 -0
- package/types/exhaustive-ui-core-fileupload.d.ts +3 -0
- package/types/exhaustive-ui-core-galleria.d.ts +12 -0
- package/types/exhaustive-ui-core-image.d.ts +1 -0
- package/types/exhaustive-ui-core-imagecompare.d.ts +2 -2
- package/types/exhaustive-ui-core-inplace.d.ts +3 -11
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +1 -6
- package/types/exhaustive-ui-core-inputmask.d.ts +2 -2
- package/types/exhaustive-ui-core-inputtext.d.ts +3 -10
- package/types/exhaustive-ui-core-listbox.d.ts +12 -6
- package/types/exhaustive-ui-core-megamenu.d.ts +3 -0
- package/types/exhaustive-ui-core-menu.d.ts +6 -11
- package/types/exhaustive-ui-core-menubar.d.ts +5 -11
- package/types/exhaustive-ui-core-message.d.ts +1 -8
- package/types/exhaustive-ui-core-metergroup.d.ts +3 -0
- package/types/exhaustive-ui-core-multiselect.d.ts +13 -10
- package/types/exhaustive-ui-core-orderlist.d.ts +2 -12
- package/types/exhaustive-ui-core-organizationchart.d.ts +3 -1
- package/types/exhaustive-ui-core-overlay.d.ts +8 -0
- package/types/exhaustive-ui-core-panel.d.ts +2 -0
- package/types/exhaustive-ui-core-panelmenu.d.ts +9 -0
- package/types/exhaustive-ui-core-password.d.ts +19 -14
- package/types/exhaustive-ui-core-picklist.d.ts +1 -16
- package/types/exhaustive-ui-core-radiobutton.d.ts +4 -1
- package/types/exhaustive-ui-core-scroller.d.ts +10 -0
- package/types/exhaustive-ui-core-select.d.ts +11 -27
- package/types/exhaustive-ui-core-selectbutton.d.ts +1 -6
- package/types/exhaustive-ui-core-stepper.d.ts +3 -11
- package/types/exhaustive-ui-core-table.d.ts +32 -4
- package/types/exhaustive-ui-core-tieredmenu.d.ts +8 -0
- package/types/exhaustive-ui-core-toast.d.ts +3 -0
- package/types/exhaustive-ui-core-toggleswitch.d.ts +1 -7
- package/types/exhaustive-ui-core-tooltip.d.ts +3 -10
- package/types/exhaustive-ui-core-tree.d.ts +17 -1
- package/types/exhaustive-ui-core-treetable.d.ts +24 -5
- package/types/exhaustive-ui-core-types-multiselect.d.ts +0 -6
- package/types/exhaustive-ui-core-types-table.d.ts +1 -1
- package/types/exhaustive-ui-core-types-tree.d.ts +5 -0
- package/types/exhaustive-ui-core-utils.d.ts +15 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-panel.mjs","sources":["../../src/panel/style/panelstyle.ts","../../src/panel/panel.ts","../../src/panel/public_api.ts","../../src/panel/exhaustive-ui-core-panel.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/panel';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-panel p-component',\n {\n 'p-panel-toggleable': instance.toggleable(),\n 'p-panel-expanded': !instance.collapsed() && instance.toggleable(),\n 'p-panel-collapsed': instance.collapsed() && instance.toggleable()\n }\n ],\n header: 'p-panel-header',\n title: 'p-panel-title',\n headerActions: ({ instance }) => [\n 'p-panel-header-actions',\n {\n 'p-panel-icons-start': instance.iconPos() === 'start',\n 'p-panel-icons-end': instance.iconPos() === 'end',\n 'p-panel-icons-center': instance.iconPos() === 'center'\n }\n ],\n pcToggleButton: 'p-panel-toggle-button',\n contentContainer: 'p-panel-content-container',\n contentWrapper: 'p-panel-content-wrapper',\n content: 'p-panel-content',\n footer: 'p-panel-footer'\n};\n@Injectable()\nexport class PanelStyle extends BaseStyle {\n name = 'panel';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Panel is a container with the optional content toggle feature.\n *\n * [Live Demo](https://exhaustive-ui.com/panel/)\n *\n * @module panelstyle\n *\n */\nexport enum PanelClasses {\n /**\n * Class name of the root element\n */\n root = 'p-panel',\n /**\n * Class name of the header element\n */\n header = 'p-panel-header',\n /**\n * Class name of the title element\n */\n title = 'p-panel-title',\n /**\n * Class name of the header actions element\n */\n headerActions = 'p-panel-header-actions',\n /**\n * Class name of the toggle button element\n */\n pcToggleButton = 'p-panel-toggle-button',\n /**\n * Class name of the content container element\n */\n contentContainer = 'p-panel-content-container',\n /**\n * Class name of the content wrapper element\n */\n contentWrapper = 'p-panel-content-wrapper',\n /**\n * Class name of the content element\n */\n content = 'p-panel-content',\n /**\n * Class name of the footer element\n */\n footer = 'p-panel-footer'\n}\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, model, NgModule, TemplateRef, ViewEncapsulation, contentChild, viewChild, contentChildren, output } from '@angular/core';\nimport { MotionEvent, MotionOptions } from '@exhaustive-ui/motion';\nimport { uuid } from '@exhaustive-ui/utils';\nimport { BlockableUI, Footer, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MinusIcon, PlusIcon } from '@exhaustive-ui/core/icons';\nimport { MotionModule } from '@exhaustive-ui/core/motion';\nimport type { PanelAfterToggleEvent, PanelBeforeToggleEvent, PanelHeaderIconsTemplateContext, PanelPassThrough } from '@exhaustive-ui/core/types/panel';\nimport { PanelStyle } from './style/panelstyle';\n\n/**\n * Panel is a container with the optional content toggle feature.\n * @group Components\n */\n@Component({\n selector: 'p-panel',\n imports: [CommonModule, PlusIcon, MinusIcon, ButtonModule, SharedModule, BindModule, MotionModule],\n template: `\n @if (showHeader()) {\n <div [pBind]=\"ptm('header')\" [class]=\"cx('header')\" (click)=\"onHeaderClick($event)\" [attr.id]=\"id() + '-titlebar'\" [attr.data-p]=\"dataP()\">\n @if (_header()) {\n <span [pBind]=\"ptm('title')\" [class]=\"cx('title')\" [attr.id]=\"id() + '_header'\">{{ _header() }}</span>\n }\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate()\"></ng-container>\n <div [pBind]=\"ptm('headerActions')\" [class]=\"cx('headerActions')\">\n <ng-template *ngTemplateOutlet=\"iconsTemplate() || _iconsTemplate()\"></ng-template>\n @if (toggleable()) {\n <p-button\n [attr.id]=\"id() + '_header'\"\n severity=\"secondary\"\n [text]=\"true\"\n [rounded]=\"true\"\n type=\"button\"\n [styleClass]=\"cx('pcToggleButton')\"\n [ariaLabel]=\"buttonAriaLabel()\"\n [ariaControls]=\"id() + '_content'\"\n [ariaExpanded]=\"!collapsed()\"\n (click)=\"onIconClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n [buttonProps]=\"toggleButtonProps()\"\n [pt]=\"ptm('pcToggleButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (!headerIconsTemplate() && !_headerIconsTemplate() && !toggleButtonProps()?.icon) {\n @if (!collapsed()) {\n <svg data-p-icon=\"minus\" [pBind]=\"ptm('pcToggleButton.icon')\" />\n }\n @if (collapsed()) {\n <svg data-p-icon=\"plus\" [pBind]=\"ptm('pcToggleButton.icon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"headerIconsTemplate() || _headerIconsTemplate(); context: { $implicit: collapsed() }\"></ng-template>\n </ng-template>\n </p-button>\n }\n </div>\n </div>\n }\n <div\n [pBind]=\"ptm('contentContainer')\"\n [pMotion]=\"!toggleable() || (toggleable() && !collapsed())\"\n pMotionName=\"p-collapsible\"\n [pMotionOptions]=\"computedMotionOptions()\"\n [class]=\"cx('contentContainer')\"\n [id]=\"id() + '_content'\"\n role=\"region\"\n [attr.aria-labelledby]=\"id() + '_header'\"\n [attr.aria-hidden]=\"collapsed()\"\n [attr.tabindex]=\"collapsed() ? '-1' : undefined\"\n (pMotionOnAfterEnter)=\"onToggleDone($event)\"\n >\n <div [pBind]=\"ptm('contentWrapper')\" [class]=\"cx('contentWrapper')\">\n <div [pBind]=\"ptm('content')\" [class]=\"cx('content')\" #contentWrapper>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate()\"></ng-container>\n </div>\n\n @if (footerFacet() || footerTemplate() || _footerTemplate()) {\n <div [pBind]=\"ptm('footer')\" [class]=\"cx('footer')\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate()\"></ng-container>\n </div>\n }\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [PanelStyle, { provide: PARENT_INSTANCE, useExisting: Panel }],\n host: {\n '[id]': 'id()',\n '[class]': \"cx('root')\",\n '[attr.data-p]': 'dataP()'\n },\n hostDirectives: [Bind]\n})\nexport class Panel extends BaseComponent<PanelPassThrough> implements BlockableUI {\n componentName = 'Panel';\n\n _componentStyle = inject(PanelStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n\n /**\n * Id of the component.\n */\n readonly id = input<string | undefined>(uuid('pn_id_'));\n /**\n * Defines if content of panel can be expanded and collapsed.\n * @group Props\n */\n readonly toggleable = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n\n /**\n * Header text of the panel.\n * @group Props\n */\n readonly _header = input<string | undefined>(undefined, { alias: 'header' });\n\n /**\n * Defines the initial state of panel content, supports one or two-way binding as well.\n * Emits `collapsedChange` with the new value when the collapsed state changes.\n * @group Props\n */\n readonly collapsed = model<boolean | undefined>();\n\n /**\n * Position of the icons.\n * @group Props\n */\n readonly iconPos = input<'start' | 'end' | 'center'>('end');\n\n /**\n * Specifies if header of panel cannot be displayed.\n * @group Props\n */\n readonly showHeader = input<boolean, unknown>(true, { transform: booleanAttribute });\n\n /**\n * Specifies the toggler element to toggle the panel content.\n * @group Props\n */\n readonly toggler = input<'icon' | 'header'>('icon');\n\n /**\n * Used to pass all properties of the ButtonProps to the Button component.\n * @group Props\n */\n readonly toggleButtonProps = input<any>();\n\n /**\n * The motion options.\n * @group Props\n */\n motionOptions = input<MotionOptions | undefined>(undefined);\n\n computedMotionOptions = computed<MotionOptions>(() => {\n return {\n ...this.ptm('motion'),\n ...this.motionOptions()\n };\n });\n\n /**\n * Callback to invoke before panel toggle.\n * @param {PanelBeforeToggleEvent} event - Custom panel toggle event\n * @group Emits\n */\n readonly onBeforeToggle = output<PanelBeforeToggleEvent>();\n\n /**\n * Callback to invoke after panel toggle.\n * @param {PanelAfterToggleEvent} event - Custom panel toggle event\n * @group Emits\n */\n readonly onAfterToggle = output<PanelAfterToggleEvent>();\n\n readonly footerFacet = contentChild(Footer);\n /**\n * Defines template option for header.\n * @group Templates\n */\n readonly headerTemplate = contentChild<TemplateRef<void>>('header', { descendants: false });\n /**\n * Defines template option for icons.\n * @example\n * ```html\n * <ng-template #icons> </ng-template>\n * ```\n * @group Templates\n */\n readonly iconsTemplate = contentChild<TemplateRef<void>>('icons', { descendants: false });\n\n /**\n * Defines template option for content.\n * @example\n * ```html\n * <ng-template #content> </ng-template>\n * ```\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<void>>('content', { descendants: false });\n\n /**\n * Defines template option for footer.\n * @example\n * ```html\n * <ng-template #footer> </ng-template>\n * ```\n * @group Templates\n */\n readonly footerTemplate = contentChild<TemplateRef<void>>('footer', { descendants: false });\n\n /**\n * Defines template option for headerIcon.\n * @param {PanelHeaderIconsTemplateContext} context - context of the template.\n * @example\n * ```html\n * <ng-template #headericons let-collapsed> </ng-template>\n * ```\n * @see {@link PanelHeaderIconsTemplateContext}\n * @group Templates\n */\n readonly headerIconsTemplate = contentChild<TemplateRef<PanelHeaderIconsTemplateContext>>('headericons', { descendants: false });\n\n readonly _headerTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'header')\n .at(-1)?.template\n );\n\n readonly _iconsTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'icons')\n .at(-1)?.template\n );\n\n readonly _contentTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => !['header', 'footer', 'icons', 'headericons'].includes(item.getType()))\n .at(-1)?.template\n );\n\n readonly _footerTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'footer')\n .at(-1)?.template\n );\n\n readonly _headerIconsTemplate = computed<TemplateRef<PanelHeaderIconsTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'headericons')\n .at(-1)?.template\n );\n\n readonly contentWrapperViewChild = viewChild.required<ElementRef>('contentWrapper');\n\n readonly buttonAriaLabel = computed(() => this._header());\n\n onHeaderClick(event: MouseEvent) {\n if (this.toggler() === 'header') {\n this.toggle(event);\n }\n }\n\n onIconClick(event: MouseEvent) {\n if (this.toggler() === 'icon') {\n this.toggle(event);\n }\n }\n\n toggle(event: MouseEvent) {\n this.onBeforeToggle.emit({ originalEvent: event, collapsed: this.collapsed() });\n\n if (this.collapsed()) this.expand();\n else this.collapse();\n\n event.preventDefault();\n }\n\n expand() {\n this.collapsed.set(false);\n this.updateTabIndex();\n }\n\n collapse() {\n this.collapsed.set(true);\n this.updateTabIndex();\n }\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement;\n }\n\n updateTabIndex() {\n const focusableElements = this.contentWrapperViewChild().nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]');\n focusableElements.forEach((element: HTMLElement) => {\n if (this.collapsed()) {\n element.setAttribute('tabindex', '-1');\n } else {\n element.removeAttribute('tabindex');\n }\n });\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (event.code === 'Enter' || event.code === 'Space') {\n this.toggle(event as any);\n event.preventDefault();\n }\n }\n\n onToggleDone(event: MotionEvent) {\n this.onAfterToggle.emit({ originalEvent: event as any, collapsed: this.collapsed() });\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly dataP = computed(() =>\n this.cn({\n toggleable: this.toggleable()\n })\n );\n}\n\n@NgModule({\n imports: [Panel, SharedModule, BindModule],\n exports: [Panel, SharedModule, BindModule]\n})\nexport class PanelModule {}\n","// Backwards compatibility\nexport * from '@exhaustive-ui/core/types/panel';\nexport * from './panel';\nexport * from './style/panelstyle';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,qBAAqB;AACrB,QAAA;AACI,YAAA,oBAAoB,EAAE,QAAQ,CAAC,UAAU,EAAE;YAC3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A,EAAA,CAqC7D,gBAAgB,6FA6D7C,aAAa,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MAazC,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAX,WAAW,EAAA,OAAA,EAAA,CAnPX,KAAK,EAgPG,YAAY,EAAE,UAAU,CAAA,EAAA,OAAA,EAAA,CAhPhC,KAAK,EAiPG,YAAY,EAAE,UAAU,CAAA,EAAA,CAAA;wGAEhC,WAAW,EAAA,OAAA,EAAA,CAHV,KAAK,EAAE,YAAY,EAAE,UAAU,EACxB,YAAY,EAAE,UAAU,CAAA,EAAA,CAAA;;2FAEhC,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU,CAAC;AAC1C,oBAAA,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,UAAU;AAC5C,iBAAA;;;ACvVD;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-panel.mjs","sources":["../../src/panel/style/panelstyle.ts","../../src/panel/panel.ts","../../src/panel/public_api.ts","../../src/panel/exhaustive-ui-core-panel.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/panel';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-panel p-component',\n {\n 'p-panel-toggleable': instance.toggleable(),\n 'p-panel-expanded': !instance.collapsed() && instance.toggleable(),\n 'p-panel-collapsed': instance.collapsed() && instance.toggleable()\n }\n ],\n header: 'p-panel-header',\n title: 'p-panel-title',\n headerActions: ({ instance }) => [\n 'p-panel-header-actions',\n {\n 'p-panel-icons-start': instance.iconPos() === 'start',\n 'p-panel-icons-end': instance.iconPos() === 'end',\n 'p-panel-icons-center': instance.iconPos() === 'center'\n }\n ],\n pcToggleButton: 'p-panel-toggle-button',\n contentContainer: 'p-panel-content-container',\n contentWrapper: 'p-panel-content-wrapper',\n content: 'p-panel-content',\n footer: 'p-panel-footer'\n};\n@Injectable()\nexport class PanelStyle extends BaseStyle {\n name = 'panel';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Panel is a container with the optional content toggle feature.\n *\n * [Live Demo](https://exhaustive-ui.com/panel/)\n *\n * @module panelstyle\n *\n */\nexport enum PanelClasses {\n /**\n * Class name of the root element\n */\n root = 'p-panel',\n /**\n * Class name of the header element\n */\n header = 'p-panel-header',\n /**\n * Class name of the title element\n */\n title = 'p-panel-title',\n /**\n * Class name of the header actions element\n */\n headerActions = 'p-panel-header-actions',\n /**\n * Class name of the toggle button element\n */\n pcToggleButton = 'p-panel-toggle-button',\n /**\n * Class name of the content container element\n */\n contentContainer = 'p-panel-content-container',\n /**\n * Class name of the content wrapper element\n */\n contentWrapper = 'p-panel-content-wrapper',\n /**\n * Class name of the content element\n */\n content = 'p-panel-content',\n /**\n * Class name of the footer element\n */\n footer = 'p-panel-footer'\n}\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, model, NgModule, TemplateRef, ViewEncapsulation, contentChild, viewChild, contentChildren, output } from '@angular/core';\nimport { MotionEvent, MotionOptions } from '@exhaustive-ui/motion';\nimport { uuid } from '@exhaustive-ui/utils';\nimport { BlockableUI, Footer, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MinusIcon, PlusIcon } from '@exhaustive-ui/core/icons';\nimport { MotionModule } from '@exhaustive-ui/core/motion';\nimport type { PanelAfterToggleEvent, PanelBeforeToggleEvent, PanelHeaderIconsTemplateContext, PanelPassThrough } from '@exhaustive-ui/core/types/panel';\nimport { PanelStyle } from './style/panelstyle';\n\n/**\n * Panel is a container with the optional content toggle feature.\n * @group Components\n */\n@Component({\n selector: 'p-panel',\n imports: [CommonModule, PlusIcon, MinusIcon, ButtonModule, SharedModule, BindModule, MotionModule],\n template: `\n @if (showHeader()) {\n <div [pBind]=\"ptm('header')\" [class]=\"cx('header')\" (click)=\"onHeaderClick($event)\" [attr.id]=\"id() + '-titlebar'\" [attr.data-p]=\"dataP()\">\n @if (_header()) {\n <span [pBind]=\"ptm('title')\" [class]=\"cx('title')\" [attr.id]=\"id() + '_header'\">{{ _header() }}</span>\n }\n <ng-content select=\"p-header\"></ng-content>\n <ng-container *ngTemplateOutlet=\"headerTemplate() || _headerTemplate()\"></ng-container>\n <div [pBind]=\"ptm('headerActions')\" [class]=\"cx('headerActions')\">\n <ng-template *ngTemplateOutlet=\"iconsTemplate() || _iconsTemplate()\"></ng-template>\n @if (toggleable()) {\n <p-button\n [attr.id]=\"id() + '_header'\"\n severity=\"secondary\"\n [text]=\"true\"\n [rounded]=\"true\"\n type=\"button\"\n [styleClass]=\"cx('pcToggleButton')\"\n [ariaLabel]=\"buttonAriaLabel()\"\n [ariaControls]=\"id() + '_content'\"\n [ariaExpanded]=\"!collapsed()\"\n (click)=\"onIconClick($event)\"\n (keydown)=\"onKeyDown($event)\"\n [buttonProps]=\"toggleButtonProps()\"\n [pt]=\"ptm('pcToggleButton')\"\n [unstyled]=\"unstyled()\"\n >\n <ng-template #icon>\n @if (!headerIconsTemplate() && !_headerIconsTemplate() && !toggleButtonProps()?.icon) {\n @if (!collapsed()) {\n <svg data-p-icon=\"minus\" [pBind]=\"ptm('pcToggleButton.icon')\" />\n }\n @if (collapsed()) {\n <svg data-p-icon=\"plus\" [pBind]=\"ptm('pcToggleButton.icon')\" />\n }\n }\n <ng-template *ngTemplateOutlet=\"headerIconsTemplate() || _headerIconsTemplate(); context: { $implicit: collapsed() }\"></ng-template>\n </ng-template>\n </p-button>\n }\n </div>\n </div>\n }\n <div\n [pBind]=\"ptm('contentContainer')\"\n [pMotion]=\"!toggleable() || (toggleable() && !collapsed())\"\n pMotionName=\"p-collapsible\"\n [pMotionOptions]=\"computedMotionOptions()\"\n [class]=\"cx('contentContainer')\"\n [id]=\"id() + '_content'\"\n role=\"region\"\n [attr.aria-labelledby]=\"id() + '_header'\"\n [attr.aria-hidden]=\"collapsed()\"\n [attr.tabindex]=\"collapsed() ? '-1' : undefined\"\n (pMotionOnAfterEnter)=\"onToggleDone($event)\"\n >\n <div [pBind]=\"ptm('contentWrapper')\" [class]=\"cx('contentWrapper')\">\n <div [pBind]=\"ptm('content')\" [class]=\"cx('content')\" #contentWrapper>\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate() || _contentTemplate()\"></ng-container>\n </div>\n\n @if (footerFacet() || footerTemplate() || _footerTemplate()) {\n <div [pBind]=\"ptm('footer')\" [class]=\"cx('footer')\">\n <ng-content select=\"p-footer\"></ng-content>\n <ng-container *ngTemplateOutlet=\"footerTemplate() || _footerTemplate()\"></ng-container>\n </div>\n }\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [PanelStyle, { provide: PARENT_INSTANCE, useExisting: Panel }],\n host: {\n '[id]': 'id()',\n '[class]': \"cx('root')\",\n '[attr.data-p]': 'dataP()'\n },\n hostDirectives: [Bind]\n})\nexport class Panel extends BaseComponent<PanelPassThrough> implements BlockableUI {\n componentName = 'Panel';\n\n _componentStyle = inject(PanelStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n\n /**\n * Id of the component.\n */\n readonly id = input<string | undefined>(uuid('pn_id_'));\n /**\n * Defines if content of panel can be expanded and collapsed.\n * @group Props\n */\n readonly toggleable = input<boolean | undefined, unknown>(undefined, { transform: booleanAttribute });\n\n /**\n * Header text of the panel.\n * @group Props\n */\n readonly _header = input<string | undefined>(undefined, { alias: 'header' });\n\n /**\n * Defines the initial state of panel content, supports one or two-way binding as well.\n * Emits `collapsedChange` with the new value when the collapsed state changes.\n * @group Props\n */\n readonly collapsed = model<boolean | undefined>();\n\n /**\n * Position of the icons.\n * @group Props\n */\n readonly iconPos = input<'start' | 'end' | 'center'>('end');\n\n /**\n * Specifies if header of panel cannot be displayed.\n * @group Props\n */\n readonly showHeader = input<boolean, unknown>(true, { transform: booleanAttribute });\n\n /**\n * Specifies the toggler element to toggle the panel content.\n * @group Props\n */\n readonly toggler = input<'icon' | 'header'>('icon');\n\n /**\n * Used to pass all properties of the ButtonProps to the Button component.\n * @group Props\n */\n readonly toggleButtonProps = input<any>();\n\n /**\n * The motion options.\n * @group Props\n */\n motionOptions = input<MotionOptions | undefined>(undefined);\n\n computedMotionOptions = computed<MotionOptions>(() => {\n return {\n ...this.ptm('motion'),\n ...this.motionOptions()\n };\n });\n\n /**\n * Callback to invoke before panel toggle.\n * @param {PanelBeforeToggleEvent} event - Custom panel toggle event\n * @group Emits\n */\n readonly onBeforeToggle = output<PanelBeforeToggleEvent>();\n\n /**\n * Callback to invoke after panel toggle.\n * @param {PanelAfterToggleEvent} event - Custom panel toggle event\n * @group Emits\n */\n readonly onAfterToggle = output<PanelAfterToggleEvent>();\n\n readonly footerFacet = contentChild(Footer);\n /**\n * Defines template option for header.\n * @group Templates\n */\n readonly headerTemplate = contentChild<TemplateRef<void>>('header', { descendants: false });\n /**\n * Defines template option for icons.\n * @example\n * ```html\n * <ng-template #icons> </ng-template>\n * ```\n * @group Templates\n */\n readonly iconsTemplate = contentChild<TemplateRef<void>>('icons', { descendants: false });\n\n /**\n * Defines template option for content.\n * @example\n * ```html\n * <ng-template #content> </ng-template>\n * ```\n * @group Templates\n */\n readonly contentTemplate = contentChild<TemplateRef<void>>('content', { descendants: false });\n\n /**\n * Defines template option for footer.\n * @example\n * ```html\n * <ng-template #footer> </ng-template>\n * ```\n * @group Templates\n */\n readonly footerTemplate = contentChild<TemplateRef<void>>('footer', { descendants: false });\n\n /**\n * Defines template option for headerIcon.\n * @param {PanelHeaderIconsTemplateContext} context - context of the template.\n * @example\n * ```html\n * <ng-template #headericons let-collapsed> </ng-template>\n * ```\n * @see {@link PanelHeaderIconsTemplateContext}\n * @group Templates\n */\n readonly headerIconsTemplate = contentChild<TemplateRef<PanelHeaderIconsTemplateContext>>('headericons', { descendants: false });\n\n readonly _headerTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'header')\n .at(-1)?.template\n );\n\n readonly _iconsTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'icons')\n .at(-1)?.template\n );\n\n readonly _contentTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => !['header', 'footer', 'icons', 'headericons'].includes(item.getType()))\n .at(-1)?.template\n );\n\n readonly _footerTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'footer')\n .at(-1)?.template\n );\n\n readonly _headerIconsTemplate = computed<TemplateRef<PanelHeaderIconsTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'headericons')\n .at(-1)?.template\n );\n\n readonly contentWrapperViewChild = viewChild.required<ElementRef>('contentWrapper');\n\n readonly buttonAriaLabel = computed(() => this._header());\n\n onHeaderClick(event: MouseEvent) {\n if (this.toggler() === 'header') {\n this.toggle(event);\n }\n }\n\n onIconClick(event: MouseEvent) {\n if (this.toggler() === 'icon') {\n this.toggle(event);\n }\n }\n\n toggle(event: MouseEvent) {\n this.onBeforeToggle.emit({ originalEvent: event, collapsed: this.collapsed() });\n\n if (this.collapsed()) this.expand();\n else this.collapse();\n\n event.preventDefault();\n }\n\n expand() {\n this.collapsed.set(false);\n this.updateTabIndex();\n }\n\n collapse() {\n this.collapsed.set(true);\n this.updateTabIndex();\n }\n\n getBlockableElement(): HTMLElement {\n return this.el.nativeElement;\n }\n\n /** Tabindex attributes the content had before collapsing, restored on expand. */\n private savedTabIndexes = new WeakMap<Element, string | null>();\n\n updateTabIndex() {\n const focusableElements = this.contentWrapperViewChild().nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]');\n focusableElements.forEach((element: HTMLElement) => {\n if (this.collapsed()) {\n if (!this.savedTabIndexes.has(element)) {\n this.savedTabIndexes.set(element, element.getAttribute('tabindex'));\n }\n element.setAttribute('tabindex', '-1');\n } else if (this.savedTabIndexes.has(element)) {\n const tabIndex = this.savedTabIndexes.get(element);\n this.savedTabIndexes.delete(element);\n if (tabIndex === null) element.removeAttribute('tabindex');\n else element.setAttribute('tabindex', tabIndex as string);\n }\n });\n }\n\n onKeyDown(event: KeyboardEvent) {\n if (event.code === 'Enter' || event.code === 'Space') {\n this.toggle(event as any);\n event.preventDefault();\n }\n }\n\n onToggleDone(event: MotionEvent) {\n this.onAfterToggle.emit({ originalEvent: event as any, collapsed: this.collapsed() });\n }\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly dataP = computed(() =>\n this.cn({\n toggleable: this.toggleable()\n })\n );\n}\n\n@NgModule({\n imports: [Panel, SharedModule, BindModule],\n exports: [Panel, SharedModule, BindModule]\n})\nexport class PanelModule {}\n","// Backwards compatibility\nexport * from '@exhaustive-ui/core/types/panel';\nexport * from './panel';\nexport * from './style/panelstyle';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,qBAAqB;AACrB,QAAA;AACI,YAAA,oBAAoB,EAAE,QAAQ,CAAC,UAAU,EAAE;YAC3C,kBAAkB,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,QAAQ,C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+13,7 @@ import { Bind, BindModule } from '@exhaustive-ui/core/bind';
|
|
|
13
13
|
import { ChevronDownIcon, ChevronRightIcon } from '@exhaustive-ui/core/icons';
|
|
14
14
|
import * as i5 from '@exhaustive-ui/core/motion';
|
|
15
15
|
import { MotionModule } from '@exhaustive-ui/core/motion';
|
|
16
|
+
import { Ripple } from '@exhaustive-ui/core/ripple';
|
|
16
17
|
import * as i4 from '@exhaustive-ui/core/tooltip';
|
|
17
18
|
import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
18
19
|
import { style as style$1 } from '@exhaustive-ui/styles/panelmenu';
|
|
@@ -29,6 +30,18 @@ const style = /*css*/ `
|
|
|
29
30
|
outline: 0 none;
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
/* keeps the ripple ink inside the header */
|
|
34
|
+
.p-panelmenu-header-link {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* the ul[pPanelMenuList] wrapper of the root list has no theme class: drop the browser list spacing */
|
|
39
|
+
.p-panelmenu-content > ul {
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
list-style: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
.p-panelmenu .p-menuitem-separator {
|
|
33
46
|
border-block-start: 1px solid dt('content.border.color');
|
|
34
47
|
}
|
|
@@ -161,6 +174,9 @@ var PanelMenuClasses;
|
|
|
161
174
|
|
|
162
175
|
const PANELMENU_INSTANCE = new InjectionToken('PANELMENU_INSTANCE');
|
|
163
176
|
const PANELMENUSUB_INSTANCE = new InjectionToken('PANELMENUSUB_INSTANCE');
|
|
177
|
+
/**
|
|
178
|
+
* @internal Rendering detail of PanelMenu, not part of the public API: it may change or stop being exported in a minor version.
|
|
179
|
+
*/
|
|
164
180
|
class PanelMenuSub extends BaseComponent {
|
|
165
181
|
hostName = 'PanelMenu';
|
|
166
182
|
panelId = input(undefined, /* @ts-ignore */
|
|
@@ -260,14 +276,18 @@ class PanelMenuSub extends BaseComponent {
|
|
|
260
276
|
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
261
277
|
[class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
262
278
|
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
263
|
-
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
264
|
-
[pTooltipUnstyled]="unstyled()"
|
|
265
279
|
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
266
280
|
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
267
281
|
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
268
|
-
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
269
282
|
>
|
|
270
|
-
<div
|
|
283
|
+
<div
|
|
284
|
+
[class]="cx('itemContent')"
|
|
285
|
+
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
286
|
+
[pTooltipUnstyled]="unstyled()"
|
|
287
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
288
|
+
[pBind]="getPTOptions(processedItem, index, 'itemContent')"
|
|
289
|
+
(click)="onItemClick($event, processedItem)"
|
|
290
|
+
>
|
|
271
291
|
@if (!itemTemplate()) {
|
|
272
292
|
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
273
293
|
<a
|
|
@@ -279,6 +299,7 @@ class PanelMenuSub extends BaseComponent {
|
|
|
279
299
|
[target]="getItemProp(processedItem, 'target')"
|
|
280
300
|
[attr.tabindex]="!!parentExpanded() ? '0' : '-1'"
|
|
281
301
|
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
302
|
+
pRipple
|
|
282
303
|
>
|
|
283
304
|
@if (isItemGroup(processedItem)) {
|
|
284
305
|
@if (!panelMenu.submenuIconTemplate() && !panelMenu._submenuIconTemplate()) {
|
|
@@ -344,6 +365,7 @@ class PanelMenuSub extends BaseComponent {
|
|
|
344
365
|
[state]="getItemProp(processedItem, 'state')"
|
|
345
366
|
[attr.tabindex]="!!parentExpanded() ? '0' : '-1'"
|
|
346
367
|
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
368
|
+
pRipple
|
|
347
369
|
>
|
|
348
370
|
@if (isItemGroup(processedItem)) {
|
|
349
371
|
@if (!panelMenu.submenuIconTemplate() && !panelMenu._submenuIconTemplate()) {
|
|
@@ -418,14 +440,14 @@ class PanelMenuSub extends BaseComponent {
|
|
|
418
440
|
</li>
|
|
419
441
|
}
|
|
420
442
|
}
|
|
421
|
-
`, isInline: true, dependencies: [{ kind: "component", type: PanelMenuSub, selector: "ul[pPanelMenuSub]", inputs: ["panelId", "focusedItemId", "items", "itemTemplate", "level", "activeItemPath", "root", "parentExpanded", "motionOptions"], outputs: ["itemToggle", "menuFocus", "menuBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "
|
|
443
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PanelMenuSub, selector: "ul[pPanelMenuSub]", inputs: ["panelId", "focusedItemId", "items", "itemTemplate", "level", "activeItemPath", "root", "parentExpanded", "motionOptions"], outputs: ["itemToggle", "menuFocus", "menuBlur"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
422
444
|
}
|
|
423
445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PanelMenuSub, decorators: [{
|
|
424
446
|
type: Component,
|
|
425
447
|
args: [{
|
|
426
448
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
427
449
|
selector: 'ul[pPanelMenuSub]',
|
|
428
|
-
imports: [CommonModule, RouterModule, TooltipModule, ChevronDownIcon, ChevronRightIcon, SharedModule, BindModule, MotionModule],
|
|
450
|
+
imports: [CommonModule, RouterModule, Ripple, TooltipModule, ChevronDownIcon, ChevronRightIcon, SharedModule, BindModule, MotionModule],
|
|
429
451
|
template: `
|
|
430
452
|
@for (processedItem of items(); track processedItem.key; let index = $index) {
|
|
431
453
|
@if (processedItem.separator) {
|
|
@@ -442,14 +464,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
442
464
|
[attr.aria-posinset]="getAriaPosInset(index)"
|
|
443
465
|
[class]="cn(cx('item', { processedItem }), getItemProp(processedItem, 'styleClass'))"
|
|
444
466
|
[ngStyle]="getItemProp(processedItem, 'style')"
|
|
445
|
-
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
446
|
-
[pTooltipUnstyled]="unstyled()"
|
|
447
467
|
[pBind]="getPTOptions(processedItem, index, 'item')"
|
|
448
468
|
[attr.data-p-disabled]="isItemDisabled(processedItem)"
|
|
449
469
|
[attr.data-p-focused]="isItemFocused(processedItem)"
|
|
450
|
-
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
451
470
|
>
|
|
452
|
-
<div
|
|
471
|
+
<div
|
|
472
|
+
[class]="cx('itemContent')"
|
|
473
|
+
[pTooltip]="getItemProp(processedItem, 'tooltip')"
|
|
474
|
+
[pTooltipUnstyled]="unstyled()"
|
|
475
|
+
[tooltipOptions]="getItemProp(processedItem, 'tooltipOptions')"
|
|
476
|
+
[pBind]="getPTOptions(processedItem, index, 'itemContent')"
|
|
477
|
+
(click)="onItemClick($event, processedItem)"
|
|
478
|
+
>
|
|
453
479
|
@if (!itemTemplate()) {
|
|
454
480
|
@if (!getItemProp(processedItem, 'routerLink')) {
|
|
455
481
|
<a
|
|
@@ -461,6 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
461
487
|
[target]="getItemProp(processedItem, 'target')"
|
|
462
488
|
[attr.tabindex]="!!parentExpanded() ? '0' : '-1'"
|
|
463
489
|
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
490
|
+
pRipple
|
|
464
491
|
>
|
|
465
492
|
@if (isItemGroup(processedItem)) {
|
|
466
493
|
@if (!panelMenu.submenuIconTemplate() && !panelMenu._submenuIconTemplate()) {
|
|
@@ -526,6 +553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
526
553
|
[state]="getItemProp(processedItem, 'state')"
|
|
527
554
|
[attr.tabindex]="!!parentExpanded() ? '0' : '-1'"
|
|
528
555
|
[pBind]="getPTOptions(processedItem, index, 'itemLink')"
|
|
556
|
+
pRipple
|
|
529
557
|
>
|
|
530
558
|
@if (isItemGroup(processedItem)) {
|
|
531
559
|
@if (!panelMenu.submenuIconTemplate() && !panelMenu._submenuIconTemplate()) {
|
|
@@ -615,6 +643,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
615
643
|
hostDirectives: [Bind]
|
|
616
644
|
}]
|
|
617
645
|
}], ctorParameters: () => [], propDecorators: { panelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelId", required: false }] }], focusedItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedItemId", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], activeItemPath: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemPath", required: true }] }], root: [{ type: i0.Input, args: [{ isSignal: true, alias: "root", required: false }] }], parentExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentExpanded", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], itemToggle: [{ type: i0.Output, args: ["itemToggle"] }], menuFocus: [{ type: i0.Output, args: ["menuFocus"] }], menuBlur: [{ type: i0.Output, args: ["menuBlur"] }] } });
|
|
646
|
+
/**
|
|
647
|
+
* @internal Rendering detail of PanelMenu, not part of the public API: it may change or stop being exported in a minor version.
|
|
648
|
+
*/
|
|
618
649
|
class PanelMenuList extends BaseComponent {
|
|
619
650
|
hostName = 'PanelMenu';
|
|
620
651
|
panelId = input(undefined, /* @ts-ignore */
|
|
@@ -639,6 +670,8 @@ class PanelMenuList extends BaseComponent {
|
|
|
639
670
|
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
640
671
|
focusedItem = signal(null, /* @ts-ignore */
|
|
641
672
|
...(ngDevMode ? [{ debugName: "focusedItem" }] : /* istanbul ignore next */ []));
|
|
673
|
+
/** Target of the mouse press in progress, used to focus the pressed item instead of the first one. */
|
|
674
|
+
pointerTarget = null;
|
|
642
675
|
activeItemPath = signal([], /* @ts-ignore */
|
|
643
676
|
...(ngDevMode ? [{ debugName: "activeItemPath" }] : /* istanbul ignore next */ []));
|
|
644
677
|
processedItems = linkedSignal(() => this.createProcessedItems(this.items() || []), /* @ts-ignore */
|
|
@@ -757,10 +790,17 @@ class PanelMenuList extends BaseComponent {
|
|
|
757
790
|
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
758
791
|
}
|
|
759
792
|
}
|
|
793
|
+
onMouseDown(event) {
|
|
794
|
+
this.pointerTarget = event.target;
|
|
795
|
+
}
|
|
760
796
|
onFocus(event) {
|
|
761
797
|
if (!this.focused()) {
|
|
762
798
|
this.focused.set(true);
|
|
763
|
-
const
|
|
799
|
+
const pointerTarget = this.pointerTarget;
|
|
800
|
+
this.pointerTarget = null;
|
|
801
|
+
// A press on an item that holds no focusable element (custom item template) focuses the list itself:
|
|
802
|
+
// the pressed item gets the focus, not the first one.
|
|
803
|
+
const focusedItem = this.focusedItem() || (pointerTarget ? this.findItemByEventTarget(pointerTarget) : this.isElementInPanel(event, event.relatedTarget) ? this.findItemByEventTarget(event.target) || this.findFirstItem() : this.findLastItem());
|
|
764
804
|
if (event.relatedTarget !== null)
|
|
765
805
|
this.focusedItem.set(focusedItem);
|
|
766
806
|
}
|
|
@@ -965,6 +1005,8 @@ class PanelMenuList extends BaseComponent {
|
|
|
965
1005
|
[parentExpanded]="parentExpanded()"
|
|
966
1006
|
(itemToggle)="onItemToggle($event)"
|
|
967
1007
|
(keydown)="onKeyDown($event)"
|
|
1008
|
+
(mousedown)="onMouseDown($event)"
|
|
1009
|
+
(mouseup)="pointerTarget = null"
|
|
968
1010
|
(menuFocus)="onFocus($event)"
|
|
969
1011
|
(menuBlur)="onBlur($event)"
|
|
970
1012
|
[pt]="pt()"
|
|
@@ -992,6 +1034,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
992
1034
|
[parentExpanded]="parentExpanded()"
|
|
993
1035
|
(itemToggle)="onItemToggle($event)"
|
|
994
1036
|
(keydown)="onKeyDown($event)"
|
|
1037
|
+
(mousedown)="onMouseDown($event)"
|
|
1038
|
+
(mouseup)="pointerTarget = null"
|
|
995
1039
|
(menuFocus)="onFocus($event)"
|
|
996
1040
|
(menuBlur)="onBlur($event)"
|
|
997
1041
|
[pt]="pt()"
|
|
@@ -1280,6 +1324,7 @@ class PanelMenu extends BaseComponent {
|
|
|
1280
1324
|
[class]="cn(cx('headerLink'), getItemProp(item, 'linkClass'))"
|
|
1281
1325
|
[ngStyle]="getItemProp(item, 'linkStyle')"
|
|
1282
1326
|
[pBind]="getPTOptions('headerLink', item, i)"
|
|
1327
|
+
pRipple
|
|
1283
1328
|
>
|
|
1284
1329
|
@if (isItemGroup(item)) {
|
|
1285
1330
|
@if (!headerIconTemplate() && !_headerIconTemplate()) {
|
|
@@ -1331,6 +1376,7 @@ class PanelMenu extends BaseComponent {
|
|
|
1331
1376
|
[replaceUrl]="getItemProp(item, 'replaceUrl')"
|
|
1332
1377
|
[state]="getItemProp(item, 'state')"
|
|
1333
1378
|
[pBind]="getPTOptions('headerLink', item, i)"
|
|
1379
|
+
pRipple
|
|
1334
1380
|
>
|
|
1335
1381
|
@if (isItemGroup(item)) {
|
|
1336
1382
|
@if (!headerIconTemplate() && !_headerIconTemplate()) {
|
|
@@ -1388,13 +1434,13 @@ class PanelMenu extends BaseComponent {
|
|
|
1388
1434
|
</div>
|
|
1389
1435
|
}
|
|
1390
1436
|
}
|
|
1391
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: PanelMenuList, selector: "ul[pPanelMenuList]", inputs: ["panelId", "items", "itemTemplate", "parentExpanded", "root", "motionOptions"], outputs: ["itemToggle", "headerFocus"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "
|
|
1437
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: PanelMenuList, selector: "ul[pPanelMenuList]", inputs: ["panelId", "items", "itemTemplate", "parentExpanded", "root", "motionOptions"], outputs: ["itemToggle", "headerFocus"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i4.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "ngmodule", type: MotionModule }, { kind: "directive", type: i5.MotionDirective, selector: "[pMotion]", inputs: ["pMotion", "pMotionName", "pMotionType", "pMotionSafe", "pMotionDisabled", "pMotionAppear", "pMotionEnter", "pMotionLeave", "pMotionDuration", "pMotionHideStrategy", "pMotionEnterFromClass", "pMotionEnterToClass", "pMotionEnterActiveClass", "pMotionLeaveFromClass", "pMotionLeaveToClass", "pMotionLeaveActiveClass", "pMotionOptions"], outputs: ["pMotionOnBeforeEnter", "pMotionOnEnter", "pMotionOnAfterEnter", "pMotionOnEnterCancelled", "pMotionOnBeforeLeave", "pMotionOnLeave", "pMotionOnAfterLeave", "pMotionOnLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1392
1438
|
}
|
|
1393
1439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: PanelMenu, decorators: [{
|
|
1394
1440
|
type: Component,
|
|
1395
1441
|
args: [{
|
|
1396
1442
|
selector: 'p-panelMenu, p-panelmenu, p-panel-menu',
|
|
1397
|
-
imports: [CommonModule, PanelMenuList, RouterModule, TooltipModule, ChevronDownIcon, ChevronRightIcon, SharedModule, BindModule, MotionModule],
|
|
1443
|
+
imports: [CommonModule, PanelMenuList, RouterModule, Ripple, TooltipModule, ChevronDownIcon, ChevronRightIcon, SharedModule, BindModule, MotionModule],
|
|
1398
1444
|
template: `
|
|
1399
1445
|
@for (item of model(); track $index; let f = $first; let l = $last; let i = $index) {
|
|
1400
1446
|
@if (isItemVisible(item)) {
|
|
@@ -1430,6 +1476,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1430
1476
|
[class]="cn(cx('headerLink'), getItemProp(item, 'linkClass'))"
|
|
1431
1477
|
[ngStyle]="getItemProp(item, 'linkStyle')"
|
|
1432
1478
|
[pBind]="getPTOptions('headerLink', item, i)"
|
|
1479
|
+
pRipple
|
|
1433
1480
|
>
|
|
1434
1481
|
@if (isItemGroup(item)) {
|
|
1435
1482
|
@if (!headerIconTemplate() && !_headerIconTemplate()) {
|
|
@@ -1481,6 +1528,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1481
1528
|
[replaceUrl]="getItemProp(item, 'replaceUrl')"
|
|
1482
1529
|
[state]="getItemProp(item, 'state')"
|
|
1483
1530
|
[pBind]="getPTOptions('headerLink', item, i)"
|
|
1531
|
+
pRipple
|
|
1484
1532
|
>
|
|
1485
1533
|
@if (isItemGroup(item)) {
|
|
1486
1534
|
@if (!headerIconTemplate() && !_headerIconTemplate()) {
|