@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-message.mjs","sources":["../../src/message/style/messagestyle.ts","../../src/message/message.ts","../../src/message/exhaustive-ui-core-message.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/message';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => ['p-message p-component p-message-' + instance.severity(), instance.variant() && 'p-message-' + instance.variant(), { 'p-message-sm': instance.size() === 'small', 'p-message-lg': instance.size() === 'large' }],\n contentWrapper: 'p-message-content-wrapper',\n content: 'p-message-content',\n icon: 'p-message-icon',\n text: 'p-message-text',\n closeButton: 'p-message-close-button',\n closeIcon: 'p-message-close-icon'\n};\n\n@Injectable()\nexport class MessageStyle extends BaseStyle {\n name = 'message';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Message groups a collection of contents in tabs.\n *\n * [Live Demo](https://exhaustive-ui.com/message/)\n *\n * @module messagestyle\n *\n */\n\nexport enum MessageClasses {\n /**\n * Class name of the root element\n */\n root = 'p-message',\n /**\n * Class name of the content element\n */\n content = 'p-message-content',\n /**\n * Class name of the icon element\n */\n icon = 'p-message-icon',\n /**\n * Class name of the text element\n */\n text = 'p-message-text',\n /**\n * Class name of the close button element\n */\n closeButton = 'p-message-close-button',\n /**\n * Class name of the close icon element\n */\n closeIcon = 'p-message-close-icon'\n}\n\nexport interface MessageStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, InjectionToken, input, NgModule, signal, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { MotionOptions } from '@exhaustive-ui/motion';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { MotionModule } from '@exhaustive-ui/core/motion';\nimport { Ripple } from '@exhaustive-ui/core/ripple';\nimport { MessageContainerTemplateContext, MessagePassThrough, MessageSeverity } from '@exhaustive-ui/core/types/message';\nimport { MessageStyle } from './style/messagestyle';\n\nconst MESSAGE_INSTANCE = new InjectionToken<Message>('MESSAGE_INSTANCE');\n\n/**\n * Message groups a collection of contents in tabs.\n * @group Components\n */\n@Component({\n selector: 'p-message',\n imports: [CommonModule, Ripple, SharedModule, Bind, MotionModule],\n template: `\n <div [pBind]=\"ptm('contentWrapper')\" [class]=\"cx('contentWrapper')\" [attr.data-p]=\"dataP()\">\n <div [pBind]=\"ptm('content')\" [class]=\"cx('content')\" [attr.data-p]=\"dataP()\">\n @if (iconTemplate() || _iconTemplate()) {\n <ng-container *ngTemplateOutlet=\"iconTemplate() || _iconTemplate()\"></ng-container>\n }\n @if (icon()) {\n <i [pBind]=\"ptm('icon')\" [class]=\"cn(cx('icon'), icon())\" [attr.data-p]=\"dataP()\"></i>\n }\n\n @if (containerTemplate() || _containerTemplate()) {\n <ng-container *ngTemplateOutlet=\"containerTemplate() || _containerTemplate(); context: { closeCallback: closeCallback }\"></ng-container>\n } @else {\n @if (!escape()) {\n <div>\n @if (!escape()) {\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [innerHTML]=\"text()\" [attr.data-p]=\"dataP()\"></span>\n }\n </div>\n } @else {\n @if (escape() && text()) {\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [attr.data-p]=\"dataP()\">{{ text() }}</span>\n }\n }\n\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [attr.data-p]=\"dataP()\">\n <ng-content></ng-content>\n </span>\n }\n @if (closable()) {\n <button [pBind]=\"ptm('closeButton')\" pRipple type=\"button\" [class]=\"cx('closeButton')\" (click)=\"close($event)\" [attr.aria-label]=\"closeAriaLabel()\" [attr.data-p]=\"dataP()\">\n @if (closeIcon()) {\n <i [pBind]=\"ptm('closeIcon')\" [class]=\"cn(cx('closeIcon'), closeIcon())\" [ngClass]=\"closeIcon()\" [attr.data-p]=\"dataP()\"></i>\n }\n @if (closeIconTemplate() || _closeIconTemplate()) {\n <ng-container *ngTemplateOutlet=\"closeIconTemplate() || _closeIconTemplate()\"></ng-container>\n }\n @if (!closeIconTemplate() && !_closeIconTemplate() && !closeIcon()) {\n <svg [pBind]=\"ptm('closeIcon')\" data-p-icon=\"times\" [class]=\"cx('closeIcon')\" [attr.data-p]=\"dataP()\" />\n }\n </button>\n }\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [MessageStyle, { provide: MESSAGE_INSTANCE, useExisting: Message }, { provide: PARENT_INSTANCE, useExisting: Message }],\n hostDirectives: [Bind],\n host: {\n '[attr.data-p]': 'dataP()',\n role: 'alert',\n 'aria-live': 'polite',\n '[class]': 'cx(\"root\")',\n '[animate.enter]': '\"p-message-enter-active\"',\n '[animate.leave]': '\"p-message-leave-active\"',\n '[class.p-message-leave-active]': '!visible()'\n }\n})\nexport class Message extends BaseComponent<MessagePassThrough> {\n componentName = 'Message';\n\n _componentStyle = inject(MessageStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n $pcMessage: Message | undefined = inject(MESSAGE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n constructor() {\n super();\n\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n\n /**\n * Severity level of the message.\n * @defaultValue 'info'\n * @group Props\n */\n severity = input<MessageSeverity | undefined | null>('info');\n /**\n * Text content.\n * @deprecated since v20.0.0. Use content projection instead '<p-message>Content</p-message>'.\n * @group Props\n */\n text = input<string | undefined>();\n /**\n * Whether displaying messages would be escaped or not.\n * @deprecated since v20.0.0. Use content projection instead '<p-message>Content</p-message>'.\n * @group Props\n */\n escape = input(true, { transform: booleanAttribute });\n /**\n * Inline style of the component.\n * @group Props\n */\n style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Whether the message can be closed manually using the close icon.\n * @group Props\n * @defaultValue false\n */\n closable = input(false, { transform: booleanAttribute });\n /**\n * Icon to display in the message.\n * @group Props\n * @defaultValue undefined\n */\n icon = input<string | undefined>();\n /**\n * Icon to display in the message close button.\n * @group Props\n * @defaultValue undefined\n */\n closeIcon = input<string | undefined>();\n /**\n * Delay in milliseconds to close the message automatically.\n * @defaultValue undefined\n */\n life = input<number | undefined>();\n /**\n * Defines the size of the component.\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = input<'outlined' | 'text' | 'simple' | undefined>();\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 * Emits when the message is closed.\n * @param {{ originalEvent: Event }} event - The event object containing the original event.\n * @group Emits\n */\n readonly onClose = output<{\n originalEvent: Event;\n }>();\n\n closeAriaLabel() {\n return this.config.translation.aria ? this.config.translation.aria.close : undefined;\n }\n\n visible = signal<boolean>(true);\n\n /**\n * Custom template of the message container.\n * @param {MessageContainerTemplateContext} context - container context.\n * @see {@link MessageContainerTemplateContext}\n * @group Templates\n */\n readonly containerTemplate = contentChild<TemplateRef<MessageContainerTemplateContext>>('container', { descendants: false });\n\n /**\n * Custom template of the message icon.\n * @group Templates\n */\n readonly iconTemplate = contentChild<TemplateRef<void>>('icon', { descendants: false });\n\n /**\n * Custom template of the close icon.\n * @group Templates\n */\n readonly closeIconTemplate = contentChild<TemplateRef<void>>('closeicon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n _containerTemplate = computed<TemplateRef<MessageContainerTemplateContext> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'container')\n .at(-1)?.template\n );\n\n _iconTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'icon')\n .at(-1)?.template\n );\n\n _closeIconTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'closeicon')\n .at(-1)?.template\n );\n\n closeCallback = (event: Event) => {\n this.close(event);\n };\n\n onInit() {\n if (this.life()) {\n setTimeout(() => {\n this.visible.set(false);\n }, this.life());\n }\n }\n\n /**\n * Closes the message.\n * @param {Event} event - Browser event.\n * @group Method\n */\n public close(event: Event) {\n this.visible.set(false);\n this.onClose.emit({ originalEvent: event });\n }\n\n dataP = computed(() =>\n this.cn({\n outlined: this.variant() === 'outlined',\n simple: this.variant() === 'simple',\n [this.severity() as string]: this.severity(),\n [this.size() as string]: this.size()\n })\n );\n}\n\n@NgModule({\n imports: [Message, SharedModule],\n exports: [Message, SharedModule]\n})\nexport class MessageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;IACZ,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,kCAAkC,GAAG,QAAQ,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,YAAY,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE,CAAC;AACzO,IAAA,cAAc,EAAE,2BAA2B;AAC3C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,WAAW,EAAE,wBAAwB;AACrC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB;;AASD;;;;;;;;AAQG;IAES;AAAZ,CAAA,UAAY,cAA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3D,aAAa,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA2DzC,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YAjLb,OAAO,EA8KG,YAAY,CAAA,EAAA,OAAA,EAAA,CA9KtB,OAAO,EA+KG,YAAY,CAAA,EAAA,CAAA;AAEtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;AC/PD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-message.mjs","sources":["../../src/message/style/messagestyle.ts","../../src/message/message.ts","../../src/message/exhaustive-ui-core-message.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/message';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => ['p-message p-component p-message-' + instance.severity(), instance.variant() && 'p-message-' + instance.variant(), { 'p-message-sm': instance.size() === 'small', 'p-message-lg': instance.size() === 'large' }],\n contentWrapper: 'p-message-content-wrapper',\n content: 'p-message-content',\n icon: 'p-message-icon',\n text: 'p-message-text',\n closeButton: 'p-message-close-button',\n closeIcon: 'p-message-close-icon'\n};\n\n@Injectable()\nexport class MessageStyle extends BaseStyle {\n name = 'message';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Message groups a collection of contents in tabs.\n *\n * [Live Demo](https://exhaustive-ui.com/message/)\n *\n * @module messagestyle\n *\n */\n\nexport enum MessageClasses {\n /**\n * Class name of the root element\n */\n root = 'p-message',\n /**\n * Class name of the content element\n */\n content = 'p-message-content',\n /**\n * Class name of the icon element\n */\n icon = 'p-message-icon',\n /**\n * Class name of the text element\n */\n text = 'p-message-text',\n /**\n * Class name of the close button element\n */\n closeButton = 'p-message-close-button',\n /**\n * Class name of the close icon element\n */\n closeIcon = 'p-message-close-icon'\n}\n\nexport interface MessageStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, InjectionToken, input, NgModule, signal, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { MotionOptions } from '@exhaustive-ui/motion';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { TimesIcon } from '@exhaustive-ui/core/icons';\nimport { MotionModule } from '@exhaustive-ui/core/motion';\nimport { Ripple } from '@exhaustive-ui/core/ripple';\nimport { MessageContainerTemplateContext, MessagePassThrough, MessageSeverity } from '@exhaustive-ui/core/types/message';\nimport { MessageStyle } from './style/messagestyle';\n\nconst MESSAGE_INSTANCE = new InjectionToken<Message>('MESSAGE_INSTANCE');\n\n/**\n * Message groups a collection of contents in tabs.\n * @group Components\n */\n@Component({\n selector: 'p-message',\n imports: [CommonModule, TimesIcon, Ripple, SharedModule, Bind, MotionModule],\n template: `\n <div [pBind]=\"ptm('contentWrapper')\" [class]=\"cx('contentWrapper')\" [attr.data-p]=\"dataP()\">\n <div [pBind]=\"ptm('content')\" [class]=\"cx('content')\" [attr.data-p]=\"dataP()\">\n @if (iconTemplate() || _iconTemplate()) {\n <ng-container *ngTemplateOutlet=\"iconTemplate() || _iconTemplate()\"></ng-container>\n }\n @if (icon()) {\n <i [pBind]=\"ptm('icon')\" [class]=\"cn(cx('icon'), icon())\" [attr.data-p]=\"dataP()\"></i>\n }\n\n @if (containerTemplate() || _containerTemplate()) {\n <ng-container *ngTemplateOutlet=\"containerTemplate() || _containerTemplate(); context: { closeCallback: closeCallback }\"></ng-container>\n } @else {\n @if (!escape()) {\n <div>\n @if (!escape()) {\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [innerHTML]=\"text()\" [attr.data-p]=\"dataP()\"></span>\n }\n </div>\n } @else {\n @if (escape() && text()) {\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [attr.data-p]=\"dataP()\">{{ text() }}</span>\n }\n }\n\n <span [pBind]=\"ptm('text')\" [ngClass]=\"cx('text')\" [attr.data-p]=\"dataP()\">\n <ng-content></ng-content>\n </span>\n }\n @if (closable()) {\n <button [pBind]=\"ptm('closeButton')\" pRipple type=\"button\" [class]=\"cx('closeButton')\" (click)=\"close($event)\" [attr.aria-label]=\"closeAriaLabel()\" [attr.data-p]=\"dataP()\">\n @if (closeIcon()) {\n <i [pBind]=\"ptm('closeIcon')\" [class]=\"cn(cx('closeIcon'), closeIcon())\" [ngClass]=\"closeIcon()\" [attr.data-p]=\"dataP()\"></i>\n }\n @if (closeIconTemplate() || _closeIconTemplate()) {\n <ng-container *ngTemplateOutlet=\"closeIconTemplate() || _closeIconTemplate()\"></ng-container>\n }\n @if (!closeIconTemplate() && !_closeIconTemplate() && !closeIcon()) {\n <svg [pBind]=\"ptm('closeIcon')\" data-p-icon=\"times\" [class]=\"cx('closeIcon')\" [attr.data-p]=\"dataP()\" />\n }\n </button>\n }\n </div>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [MessageStyle, { provide: MESSAGE_INSTANCE, useExisting: Message }, { provide: PARENT_INSTANCE, useExisting: Message }],\n hostDirectives: [Bind],\n host: {\n '[attr.data-p]': 'dataP()',\n role: 'alert',\n 'aria-live': 'polite',\n '[class]': 'cx(\"root\")',\n '[animate.enter]': '\"p-message-enter-active\"',\n '[animate.leave]': '\"p-message-leave-active\"',\n '[class.p-message-leave-active]': '!visible()'\n }\n})\nexport class Message extends BaseComponent<MessagePassThrough> {\n componentName = 'Message';\n\n _componentStyle = inject(MessageStyle);\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n $pcMessage: Message | undefined = inject(MESSAGE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n constructor() {\n super();\n\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n\n /**\n * Severity level of the message.\n * @defaultValue 'info'\n * @group Props\n */\n severity = input<MessageSeverity | undefined | null>('info');\n /**\n * Text content.\n * @deprecated since v20.0.0. Use content projection instead '<p-message>Content</p-message>'.\n * @group Props\n */\n text = input<string | undefined>();\n /**\n * Whether displaying messages would be escaped or not.\n * @deprecated since v20.0.0. Use content projection instead '<p-message>Content</p-message>'.\n * @group Props\n */\n escape = input(true, { transform: booleanAttribute });\n /**\n * Whether the message can be closed manually using the close icon.\n * @group Props\n * @defaultValue false\n */\n closable = input(false, { transform: booleanAttribute });\n /**\n * Icon to display in the message.\n * @group Props\n * @defaultValue undefined\n */\n icon = input<string | undefined>();\n /**\n * Icon to display in the message close button.\n * @group Props\n * @defaultValue undefined\n */\n closeIcon = input<string | undefined>();\n /**\n * Delay in milliseconds to close the message automatically.\n * @defaultValue undefined\n */\n life = input<number | undefined>();\n /**\n * Defines the size of the component.\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Specifies the input variant of the component.\n * @group Props\n */\n variant = input<'outlined' | 'text' | 'simple' | undefined>();\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 * Emits when the message is closed.\n * @param {{ originalEvent: Event }} event - The event object containing the original event.\n * @group Emits\n */\n readonly onClose = output<{\n originalEvent: Event;\n }>();\n\n closeAriaLabel() {\n return this.config.translation.aria ? this.config.translation.aria.close : undefined;\n }\n\n visible = signal<boolean>(true);\n\n /**\n * Custom template of the message container.\n * @param {MessageContainerTemplateContext} context - container context.\n * @see {@link MessageContainerTemplateContext}\n * @group Templates\n */\n readonly containerTemplate = contentChild<TemplateRef<MessageContainerTemplateContext>>('container', { descendants: false });\n\n /**\n * Custom template of the message icon.\n * @group Templates\n */\n readonly iconTemplate = contentChild<TemplateRef<void>>('icon', { descendants: false });\n\n /**\n * Custom template of the close icon.\n * @group Templates\n */\n readonly closeIconTemplate = contentChild<TemplateRef<void>>('closeicon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n _containerTemplate = computed<TemplateRef<MessageContainerTemplateContext> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'container')\n .at(-1)?.template\n );\n\n _iconTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'icon')\n .at(-1)?.template\n );\n\n _closeIconTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n ?.filter((item) => item.getType() === 'closeicon')\n .at(-1)?.template\n );\n\n closeCallback = (event: Event) => {\n this.close(event);\n };\n\n onInit() {\n if (this.life()) {\n setTimeout(() => {\n this.visible.set(false);\n }, this.life());\n }\n }\n\n /**\n * Closes the message.\n * @param {Event} event - Browser event.\n * @group Method\n */\n public close(event: Event) {\n this.visible.set(false);\n this.onClose.emit({ originalEvent: event });\n }\n\n dataP = computed(() =>\n this.cn({\n outlined: this.variant() === 'outlined',\n simple: this.variant() === 'simple',\n [this.severity() as string]: this.severity(),\n [this.size() as string]: this.size()\n })\n );\n}\n\n@NgModule({\n imports: [Message, SharedModule],\n exports: [Message, SharedModule]\n})\nexport class MessageModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;IACZ,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,kCAAkC,GAAG,QAAQ,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,YAAY,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,OAAO,EAAE,CAAC;AACzO,IAAA,cAAc,EAAE,2BAA2B;AAC3C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,WAAW,EAAE,wBAAwB;AACrC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,YAAa,SAAQ,SAAS,CAAA;IACvC,IAAI,GAAG,SAAS;IAEhB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAZ,YAAY,EAAA,CAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB;;AASD;;;;;;;;AAQG;IAES;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB;;AAEG;AACH,IAAA,cAAA,CAAA,MAAA,CAAA,GAAA,WAAkB;AAClB;;AAEG;AACH,IAAA,cAAA,CAAA,SAAA,CAAA,GAAA,mBAA6B;AAC7B;;AAEG;AACH,IAAA,cAAA,CAAA,MAAA,CA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AA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAE3D,aAAa,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;MA2DzC,aAAa,CAAA;uGAAb,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAb,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YA5Kb,OAAO,EAyKG,YAAY,CAAA,EAAA,OAAA,EAAA,CAzKtB,OAAO,EA0KG,YAAY,CAAA,EAAA,CAAA;AAEtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAAA,OAAA,EAAA,CAHZ,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;AC3PD;;AAEG;;;;"}
|
|
@@ -88,6 +88,9 @@ var MeterGroupClasses;
|
|
|
88
88
|
MeterGroupClasses["labelText"] = "p-metergroup-label-text";
|
|
89
89
|
})(MeterGroupClasses || (MeterGroupClasses = {}));
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* @internal Rendering detail of MeterGroup, not part of the public API: it may change or stop being exported in a minor version.
|
|
93
|
+
*/
|
|
91
94
|
class MeterGroupLabel extends BaseComponent {
|
|
92
95
|
value = input([], /* @ts-ignore */
|
|
93
96
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-metergroup.mjs","sources":["../../src/metergroup/style/metergroupstyle.ts","../../src/metergroup/metergroup.ts","../../src/metergroup/exhaustive-ui-core-metergroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/metergroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-metergroup p-component',\n {\n 'p-metergroup-horizontal': instance.orientation() === 'horizontal',\n 'p-metergroup-vertical': instance.orientation() === 'vertical'\n }\n ],\n meters: 'p-metergroup-meters',\n meter: 'p-metergroup-meter',\n labelList: ({ instance }) => [\n 'p-metergroup-label-list',\n {\n 'p-metergroup-label-list-vertical': instance.labelOrientation() === 'vertical',\n 'p-metergroup-label-list-horizontal': instance.labelOrientation() === 'horizontal'\n }\n ],\n label: 'p-metergroup-label',\n labelIcon: 'p-metergroup-label-icon',\n labelMarker: 'p-metergroup-label-marker',\n labelText: 'p-metergroup-label-text'\n};\n\n@Injectable()\nexport class MeterGroupStyle extends BaseStyle {\n name = 'metergroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * MeterGroup is a group of process status indicators.\n *\n * [Live Demo](https://exhaustive-ui.com/metergroup)\n *\n * @module metergroupstyle\n *\n */\nexport enum MeterGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-metergroup',\n /**\n * Class name of the meters element\n */\n meters = 'p-metergroup-meters',\n /**\n * Class name of the meter element\n */\n meter = 'p-metergroup-meter',\n /**\n * Class name of the label list element\n */\n labelList = 'p-metergroup-label-list',\n /**\n * Class name of the label element\n */\n label = 'p-metergroup-label',\n /**\n * Class name of the label icon element\n */\n labelIcon = 'p-metergroup-label-icon',\n /**\n * Class name of the label marker element\n */\n labelMarker = 'p-metergroup-label-marker',\n /**\n * Class name of the label text element\n */\n labelText = 'p-metergroup-label-text'\n}\n\nexport interface MeterGroupStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterNextRender, ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren } from '@angular/core';\nimport { getOuterHeight } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { MeterGroupIconTemplateContext, MeterGroupLabelTemplateContext, MeterGroupMeterTemplateContext, MeterGroupPassThrough, MeterItem } from '@exhaustive-ui/core/types/metergroup';\nimport { MeterGroupStyle } from './style/metergroupstyle';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-meterGroupLabel, p-metergrouplabel',\n imports: [CommonModule, SharedModule, Bind],\n template: `\n <ol [class]=\"cx('labelList')\" [pBind]=\"ptm('labelList')\" [attr.data-p]=\"dataP()\">\n @for (labelItem of value(); track parentInstance.trackByFn(index); let index = $index) {\n <li [class]=\"cx('label')\" [pBind]=\"ptm('label')\">\n @if (!iconTemplate()) {\n @if (labelItem.icon) {\n <i [class]=\"labelItem.icon\" [ngClass]=\"cx('labelIcon')\" [pBind]=\"ptm('labelIcon')\" [ngStyle]=\"{ color: labelItem.color }\"></i>\n }\n @if (!labelItem.icon) {\n <span [class]=\"cx('labelMarker')\" [pBind]=\"ptm('labelMarker')\" [ngStyle]=\"{ backgroundColor: labelItem.color }\"></span>\n }\n }\n <ng-container *ngTemplateOutlet=\"iconTemplate(); context: { $implicit: labelItem, icon: labelItem.icon }\"></ng-container>\n <span [class]=\"cx('labelText')\" [pBind]=\"ptm('labelText')\">{{ labelItem.label }} ({{ parentInstance.percentValue(labelItem.value) }})</span>\n </li>\n }\n </ol>\n `\n})\nexport class MeterGroupLabel extends BaseComponent<MeterGroupPassThrough> {\n readonly value = input<any[]>([]);\n\n readonly labelPosition = input<'start' | 'end'>('end');\n\n readonly labelOrientation = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly min = input<number>();\n\n readonly max = input<number>();\n\n readonly iconTemplate = input<TemplateRef<MeterGroupIconTemplateContext> | undefined>();\n\n parentInstance: MeterGroup = inject(forwardRef(() => MeterGroup));\n\n _componentStyle = inject(MeterGroupStyle);\n\n readonly dataP = computed(() =>\n this.cn({\n [this.labelOrientation()]: this.labelOrientation()\n })\n );\n}\n/**\n * MeterGroup displays scalar measurements within a known range.\n * @group Components\n */\n@Component({\n selector: 'p-meterGroup, p-metergroup, p-meter-group',\n imports: [CommonModule, MeterGroupLabel, SharedModule, Bind],\n template: `\n @if (labelPosition() === 'start') {\n @if (!labelTemplate() && !_labelTemplate()) {\n <p-meterGroupLabel [value]=\"value()\" [labelPosition]=\"labelPosition()\" [labelOrientation]=\"labelOrientation()\" [min]=\"min()\" [max]=\"max()\" [iconTemplate]=\"iconTemplate() || _iconTemplate()\" [pt]=\"pt()\" [unstyled]=\"unstyled()\" />\n }\n <ng-container *ngTemplateOutlet=\"labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n }\n <ng-container *ngTemplateOutlet=\"startTemplate() || _startTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n <div [class]=\"cx('meters')\" [pBind]=\"ptm('meters')\" [attr.data-p]=\"dataP()\">\n @for (meterItem of value(); track trackByFn(index); let index = $index) {\n <ng-container\n *ngTemplateOutlet=\"\n meterTemplate() || _meterTemplate();\n context: {\n $implicit: meterItem,\n index: index,\n orientation: orientation(),\n class: cx('meter'),\n size: percentValue(meterItem.value),\n totalPercent: totalPercent(),\n dataP: dataP()\n }\n \"\n >\n </ng-container>\n @if (!meterTemplate() && !_meterTemplate() && meterItem.value > 0) {\n <span [class]=\"cx('meter')\" [attr.data-p]=\"dataP()\" [pBind]=\"ptm('meter')\" [ngStyle]=\"meterStyle(meterItem)\"></span>\n }\n }\n </div>\n <ng-container *ngTemplateOutlet=\"endTemplate() || _endTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n @if (labelPosition() === 'end') {\n @if (!labelTemplate() && !_labelTemplate()) {\n <p-meterGroupLabel [value]=\"value()\" [labelPosition]=\"labelPosition()\" [labelOrientation]=\"labelOrientation()\" [min]=\"min()\" [max]=\"max()\" [iconTemplate]=\"iconTemplate() || _iconTemplate()\" [pt]=\"pt()\" [unstyled]=\"unstyled()\" />\n }\n <ng-container *ngTemplateOutlet=\"labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [MeterGroupStyle, { provide: PARENT_INSTANCE, useExisting: MeterGroup }],\n host: {\n '[attr.aria-valuemin]': 'min()',\n '[attr.role]': '\"meter\"',\n '[attr.aria-valuemax]': 'max()',\n '[attr.aria-valuenow]': 'totalPercent()',\n '[attr.data-p]': 'dataP()',\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class MeterGroup extends BaseComponent<MeterGroupPassThrough> {\n componentName = 'MeterGroup';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterNextRender(() => {\n const _container = this.el.nativeElement;\n const height = getOuterHeight(_container);\n this.vertical() && (_container.style.height = height + 'px');\n });\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n /**\n * Current value of the metergroup.\n * @group Props\n */\n readonly value = input<MeterItem[] | undefined>();\n /**\n * Mininum boundary value.\n * @group Props\n */\n readonly min = input<number>(0);\n /**\n * Maximum boundary value.\n * @group Props\n */\n readonly max = input<number>(100);\n /**\n * Specifies the layout of the component, valid values are 'horizontal' and 'vertical'.\n * @group Props\n */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n /**\n * Specifies the label position of the component, valid values are 'start' and 'end'.\n * @group Props\n */\n readonly labelPosition = input<'start' | 'end'>('end');\n /**\n * Specifies the label orientation of the component, valid values are 'horizontal' and 'vertical'.\n * @group Props\n */\n readonly labelOrientation = input<'horizontal' | 'vertical' | undefined>('horizontal');\n\n readonly vertical = computed(() => this.orientation() === 'vertical');\n\n /**\n * Custom label template.\n * @param {MeterGroupLabelTemplateContext} context - label context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly labelTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('label', { descendants: false });\n\n /**\n * Custom meter template.\n * @param {MeterGroupMeterTemplateContext} context - meter context.\n * @see {@link MeterGroupMeterTemplateContext}\n * @group Templates\n */\n readonly meterTemplate = contentChild<TemplateRef<MeterGroupMeterTemplateContext>>('meter', { descendants: false });\n\n /**\n * Custom end template.\n * @param {MeterGroupLabelTemplateContext} context - end context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly endTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('end', { descendants: false });\n\n /**\n * Custom start template.\n * @param {MeterGroupLabelTemplateContext} context - start context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly startTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('start', { descendants: false });\n\n /**\n * Custom icon template.\n * @param {MeterGroupIconTemplateContext} context - icon context.\n * @see {@link MeterGroupIconTemplateContext}\n * @group Templates\n */\n readonly iconTemplate = contentChild<TemplateRef<MeterGroupIconTemplateContext>>('icon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _labelTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'label')\n .at(-1)?.template\n );\n\n readonly _meterTemplate = computed<TemplateRef<MeterGroupMeterTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'meter')\n .at(-1)?.template\n );\n\n readonly _endTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'end')\n .at(-1)?.template\n );\n\n readonly _startTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'start')\n .at(-1)?.template\n );\n\n readonly _iconTemplate = computed<TemplateRef<MeterGroupIconTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'icon')\n .at(-1)?.template\n );\n\n _componentStyle = inject(MeterGroupStyle);\n\n percent(meter = 0, round = true) {\n if (this.max() === this.min()) {\n return 100; // When min = max, any value should be 100%\n }\n const percentOfItem = Math.max(0, Math.min(100, ((meter - this.min()) / (this.max() - this.min())) * 100));\n\n return round ? Math.round(percentOfItem) : percentOfItem;\n }\n\n percentValue(meter: number) {\n return this.percent(meter) + '%';\n }\n\n meterStyle(val: MeterItem) {\n return {\n backgroundColor: val.color,\n width: this.orientation() === 'horizontal' && this.percent(val.value || 0, false) + '%',\n height: this.orientation() === 'vertical' && this.percent(val.value || 0, false) + '%'\n };\n }\n\n readonly totalPercent = computed(() => {\n const value = this.value();\n if (!value) {\n return 0;\n }\n return this.percent(value.reduce((total, val) => total + (val.value || 0), 0));\n });\n\n readonly percentages = computed(() => {\n const value = this.value();\n if (!value) {\n return [];\n }\n\n let sum = 0;\n const sumsArray: number[] = [];\n\n value.forEach((item) => {\n sum += item.value || 0;\n sumsArray.push(sum);\n });\n\n return sumsArray;\n });\n\n trackByFn(index: number): number {\n return index;\n }\n\n readonly dataP = computed(() =>\n this.cn({\n [this.orientation()]: this.orientation()\n })\n );\n}\n\n@NgModule({\n imports: [MeterGroup, SharedModule],\n exports: [MeterGroup, SharedModule]\n})\nexport class MeterGroupModule {}\n","/**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C,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AC3SD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-metergroup.mjs","sources":["../../src/metergroup/style/metergroupstyle.ts","../../src/metergroup/metergroup.ts","../../src/metergroup/exhaustive-ui-core-metergroup.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/metergroup';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: ({ instance }) => [\n 'p-metergroup p-component',\n {\n 'p-metergroup-horizontal': instance.orientation() === 'horizontal',\n 'p-metergroup-vertical': instance.orientation() === 'vertical'\n }\n ],\n meters: 'p-metergroup-meters',\n meter: 'p-metergroup-meter',\n labelList: ({ instance }) => [\n 'p-metergroup-label-list',\n {\n 'p-metergroup-label-list-vertical': instance.labelOrientation() === 'vertical',\n 'p-metergroup-label-list-horizontal': instance.labelOrientation() === 'horizontal'\n }\n ],\n label: 'p-metergroup-label',\n labelIcon: 'p-metergroup-label-icon',\n labelMarker: 'p-metergroup-label-marker',\n labelText: 'p-metergroup-label-text'\n};\n\n@Injectable()\nexport class MeterGroupStyle extends BaseStyle {\n name = 'metergroup';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * MeterGroup is a group of process status indicators.\n *\n * [Live Demo](https://exhaustive-ui.com/metergroup)\n *\n * @module metergroupstyle\n *\n */\nexport enum MeterGroupClasses {\n /**\n * Class name of the root element\n */\n root = 'p-metergroup',\n /**\n * Class name of the meters element\n */\n meters = 'p-metergroup-meters',\n /**\n * Class name of the meter element\n */\n meter = 'p-metergroup-meter',\n /**\n * Class name of the label list element\n */\n labelList = 'p-metergroup-label-list',\n /**\n * Class name of the label element\n */\n label = 'p-metergroup-label',\n /**\n * Class name of the label icon element\n */\n labelIcon = 'p-metergroup-label-icon',\n /**\n * Class name of the label marker element\n */\n labelMarker = 'p-metergroup-label-marker',\n /**\n * Class name of the label text element\n */\n labelText = 'p-metergroup-label-text'\n}\n\nexport interface MeterGroupStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterNextRender, ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren } from '@angular/core';\nimport { getOuterHeight } from '@exhaustive-ui/utils';\nimport { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { MeterGroupIconTemplateContext, MeterGroupLabelTemplateContext, MeterGroupMeterTemplateContext, MeterGroupPassThrough, MeterItem } from '@exhaustive-ui/core/types/metergroup';\nimport { MeterGroupStyle } from './style/metergroupstyle';\n\n/**\n * @internal Rendering detail of MeterGroup, not part of the public API: it may change or stop being exported in a minor version.\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-meterGroupLabel, p-metergrouplabel',\n imports: [CommonModule, SharedModule, Bind],\n template: `\n <ol [class]=\"cx('labelList')\" [pBind]=\"ptm('labelList')\" [attr.data-p]=\"dataP()\">\n @for (labelItem of value(); track parentInstance.trackByFn(index); let index = $index) {\n <li [class]=\"cx('label')\" [pBind]=\"ptm('label')\">\n @if (!iconTemplate()) {\n @if (labelItem.icon) {\n <i [class]=\"labelItem.icon\" [ngClass]=\"cx('labelIcon')\" [pBind]=\"ptm('labelIcon')\" [ngStyle]=\"{ color: labelItem.color }\"></i>\n }\n @if (!labelItem.icon) {\n <span [class]=\"cx('labelMarker')\" [pBind]=\"ptm('labelMarker')\" [ngStyle]=\"{ backgroundColor: labelItem.color }\"></span>\n }\n }\n <ng-container *ngTemplateOutlet=\"iconTemplate(); context: { $implicit: labelItem, icon: labelItem.icon }\"></ng-container>\n <span [class]=\"cx('labelText')\" [pBind]=\"ptm('labelText')\">{{ labelItem.label }} ({{ parentInstance.percentValue(labelItem.value) }})</span>\n </li>\n }\n </ol>\n `\n})\nexport class MeterGroupLabel extends BaseComponent<MeterGroupPassThrough> {\n readonly value = input<any[]>([]);\n\n readonly labelPosition = input<'start' | 'end'>('end');\n\n readonly labelOrientation = input<'horizontal' | 'vertical'>('horizontal');\n\n readonly min = input<number>();\n\n readonly max = input<number>();\n\n readonly iconTemplate = input<TemplateRef<MeterGroupIconTemplateContext> | undefined>();\n\n parentInstance: MeterGroup = inject(forwardRef(() => MeterGroup));\n\n _componentStyle = inject(MeterGroupStyle);\n\n readonly dataP = computed(() =>\n this.cn({\n [this.labelOrientation()]: this.labelOrientation()\n })\n );\n}\n/**\n * MeterGroup displays scalar measurements within a known range.\n * @group Components\n */\n@Component({\n selector: 'p-meterGroup, p-metergroup, p-meter-group',\n imports: [CommonModule, MeterGroupLabel, SharedModule, Bind],\n template: `\n @if (labelPosition() === 'start') {\n @if (!labelTemplate() && !_labelTemplate()) {\n <p-meterGroupLabel [value]=\"value()\" [labelPosition]=\"labelPosition()\" [labelOrientation]=\"labelOrientation()\" [min]=\"min()\" [max]=\"max()\" [iconTemplate]=\"iconTemplate() || _iconTemplate()\" [pt]=\"pt()\" [unstyled]=\"unstyled()\" />\n }\n <ng-container *ngTemplateOutlet=\"labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n }\n <ng-container *ngTemplateOutlet=\"startTemplate() || _startTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n <div [class]=\"cx('meters')\" [pBind]=\"ptm('meters')\" [attr.data-p]=\"dataP()\">\n @for (meterItem of value(); track trackByFn(index); let index = $index) {\n <ng-container\n *ngTemplateOutlet=\"\n meterTemplate() || _meterTemplate();\n context: {\n $implicit: meterItem,\n index: index,\n orientation: orientation(),\n class: cx('meter'),\n size: percentValue(meterItem.value),\n totalPercent: totalPercent(),\n dataP: dataP()\n }\n \"\n >\n </ng-container>\n @if (!meterTemplate() && !_meterTemplate() && meterItem.value > 0) {\n <span [class]=\"cx('meter')\" [attr.data-p]=\"dataP()\" [pBind]=\"ptm('meter')\" [ngStyle]=\"meterStyle(meterItem)\"></span>\n }\n }\n </div>\n <ng-container *ngTemplateOutlet=\"endTemplate() || _endTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n @if (labelPosition() === 'end') {\n @if (!labelTemplate() && !_labelTemplate()) {\n <p-meterGroupLabel [value]=\"value()\" [labelPosition]=\"labelPosition()\" [labelOrientation]=\"labelOrientation()\" [min]=\"min()\" [max]=\"max()\" [iconTemplate]=\"iconTemplate() || _iconTemplate()\" [pt]=\"pt()\" [unstyled]=\"unstyled()\" />\n }\n <ng-container *ngTemplateOutlet=\"labelTemplate() || _labelTemplate(); context: { $implicit: value(), totalPercent: totalPercent(), percentages: percentages() }\"></ng-container>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [MeterGroupStyle, { provide: PARENT_INSTANCE, useExisting: MeterGroup }],\n host: {\n '[attr.aria-valuemin]': 'min()',\n '[attr.role]': '\"meter\"',\n '[attr.aria-valuemax]': 'max()',\n '[attr.aria-valuenow]': 'totalPercent()',\n '[attr.data-p]': 'dataP()',\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class MeterGroup extends BaseComponent<MeterGroupPassThrough> {\n componentName = 'MeterGroup';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterNextRender(() => {\n const _container = this.el.nativeElement;\n const height = getOuterHeight(_container);\n this.vertical() && (_container.style.height = height + 'px');\n });\n this.bindHostAttrs(this.bindDirectiveInstance, () => this.ptms(['host', 'root']));\n }\n /**\n * Current value of the metergroup.\n * @group Props\n */\n readonly value = input<MeterItem[] | undefined>();\n /**\n * Mininum boundary value.\n * @group Props\n */\n readonly min = input<number>(0);\n /**\n * Maximum boundary value.\n * @group Props\n */\n readonly max = input<number>(100);\n /**\n * Specifies the layout of the component, valid values are 'horizontal' and 'vertical'.\n * @group Props\n */\n readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n /**\n * Specifies the label position of the component, valid values are 'start' and 'end'.\n * @group Props\n */\n readonly labelPosition = input<'start' | 'end'>('end');\n /**\n * Specifies the label orientation of the component, valid values are 'horizontal' and 'vertical'.\n * @group Props\n */\n readonly labelOrientation = input<'horizontal' | 'vertical' | undefined>('horizontal');\n\n readonly vertical = computed(() => this.orientation() === 'vertical');\n\n /**\n * Custom label template.\n * @param {MeterGroupLabelTemplateContext} context - label context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly labelTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('label', { descendants: false });\n\n /**\n * Custom meter template.\n * @param {MeterGroupMeterTemplateContext} context - meter context.\n * @see {@link MeterGroupMeterTemplateContext}\n * @group Templates\n */\n readonly meterTemplate = contentChild<TemplateRef<MeterGroupMeterTemplateContext>>('meter', { descendants: false });\n\n /**\n * Custom end template.\n * @param {MeterGroupLabelTemplateContext} context - end context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly endTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('end', { descendants: false });\n\n /**\n * Custom start template.\n * @param {MeterGroupLabelTemplateContext} context - start context.\n * @see {@link MeterGroupLabelTemplateContext}\n * @group Templates\n */\n readonly startTemplate = contentChild<TemplateRef<MeterGroupLabelTemplateContext>>('start', { descendants: false });\n\n /**\n * Custom icon template.\n * @param {MeterGroupIconTemplateContext} context - icon context.\n * @see {@link MeterGroupIconTemplateContext}\n * @group Templates\n */\n readonly iconTemplate = contentChild<TemplateRef<MeterGroupIconTemplateContext>>('icon', { descendants: false });\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _labelTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'label')\n .at(-1)?.template\n );\n\n readonly _meterTemplate = computed<TemplateRef<MeterGroupMeterTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'meter')\n .at(-1)?.template\n );\n\n readonly _endTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'end')\n .at(-1)?.template\n );\n\n readonly _startTemplate = computed<TemplateRef<MeterGroupLabelTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'start')\n .at(-1)?.template\n );\n\n readonly _iconTemplate = computed<TemplateRef<MeterGroupIconTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'icon')\n .at(-1)?.template\n );\n\n _componentStyle = inject(MeterGroupStyle);\n\n percent(meter = 0, round = true) {\n if (this.max() === this.min()) {\n return 100; // When min = max, any value should be 100%\n }\n const percentOfItem = Math.max(0, Math.min(100, ((meter - this.min()) / (this.max() - this.min())) * 100));\n\n return round ? Math.round(percentOfItem) : percentOfItem;\n }\n\n percentValue(meter: number) {\n return this.percent(meter) + '%';\n }\n\n meterStyle(val: MeterItem) {\n return {\n backgroundColor: val.color,\n width: this.orientation() === 'horizontal' && this.percent(val.value || 0, false) + '%',\n height: this.orientation() === 'vertical' && this.percent(val.value || 0, false) + '%'\n };\n }\n\n readonly totalPercent = computed(() => {\n const value = this.value();\n if (!value) {\n return 0;\n }\n return this.percent(value.reduce((total, val) => total + (val.value || 0), 0));\n });\n\n readonly percentages = computed(() => {\n const value = this.value();\n if (!value) {\n return [];\n }\n\n let sum = 0;\n const sumsArray: number[] = [];\n\n value.forEach((item) => {\n sum += item.value || 0;\n sumsArray.push(sum);\n });\n\n return sumsArray;\n });\n\n trackByFn(index: number): number {\n return index;\n }\n\n readonly dataP = computed(() =>\n this.cn({\n [this.orientation()]: this.orientation()\n })\n );\n}\n\n@NgModule({\n imports: [MeterGroup, SharedModule],\n exports: [MeterGroup, SharedModule]\n})\nexport class MeterGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport *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AAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AC9SD;;AAEG;;;;"}
|
|
@@ -351,15 +351,24 @@ class Motion extends BaseComponent {
|
|
|
351
351
|
const shouldAppear = this.isInitialMount && this.visible() && this.appear();
|
|
352
352
|
const hideStrategy = this.hideStrategy();
|
|
353
353
|
if (this.visible()) {
|
|
354
|
+
const initialMount = this.isInitialMount;
|
|
354
355
|
await nextFrame();
|
|
356
|
+
// closed again while waiting for the frame: the leave run of this effect takes over
|
|
357
|
+
if (!untracked(this.visible)) {
|
|
358
|
+
this.isInitialMount = false;
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
355
361
|
resetStyles(this.$el, hideStrategy);
|
|
356
|
-
if (shouldAppear || !
|
|
362
|
+
if (shouldAppear || !initialMount) {
|
|
357
363
|
this.applyMotionDuration('enter');
|
|
358
364
|
this.motion?.enter();
|
|
359
365
|
}
|
|
360
366
|
}
|
|
361
367
|
else if (!this.isInitialMount) {
|
|
362
368
|
await nextFrame();
|
|
369
|
+
// reopened while waiting for the frame: the enter run of this effect takes over
|
|
370
|
+
if (untracked(this.visible))
|
|
371
|
+
return;
|
|
363
372
|
this.applyMotionDuration('leave');
|
|
364
373
|
this.motion?.leave()?.then(async () => {
|
|
365
374
|
if (this.$el && !this.cancelled && !this.visible()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-motion.mjs","sources":["../../src/motion/motion.utils.ts","../../src/motion/style/motion.style.ts","../../src/motion/motion.component.ts","../../src/motion/motion.directive.ts","../../src/motion/motion.module.ts","../../src/motion/exhaustive-ui-core-motion.ts"],"sourcesContent":["const originalStyles = new WeakMap<HTMLElement, { display?: string; visibility?: string; maxHeight?: string; overflow?: string }>();\n\nexport function applyHiddenStyles(element: HTMLElement, strategy: 'display' | 'visibility') {\n if (!element) return;\n\n if (!originalStyles.has(element)) {\n originalStyles.set(element, {\n display: element.style.display,\n visibility: element.style.visibility,\n maxHeight: element.style.maxHeight,\n overflow: element.style.overflow\n });\n }\n\n switch (strategy) {\n case 'display':\n element.style.display = 'none';\n break;\n case 'visibility':\n element.style.visibility = 'hidden';\n element.style.maxHeight = '0';\n element.style.overflow = 'hidden';\n break;\n }\n}\n\nexport function resetStyles(element: HTMLElement, strategy: 'display' | 'visibility') {\n if (!element) return;\n\n const original = originalStyles.get(element) ?? element.style;\n\n switch (strategy) {\n case 'display':\n element.style.display = original?.display || '';\n break;\n case 'visibility':\n element.style.visibility = original?.visibility || '';\n element.style.maxHeight = original?.maxHeight || '';\n element.style.overflow = original?.overflow || '';\n break;\n }\n\n originalStyles.delete(element);\n}\n","import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n .p-motion {\n display: block;\n }\n`;\n\nconst classes = {\n root: 'p-motion'\n};\n\n@Injectable()\nexport class MotionStyle extends BaseStyle {\n name = 'motion';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Motion and MotionDirective provide an easy way to add motion effects to Angular applications.\n *\n * [Live Demo](https://exhaustive-ui.com/motion)\n *\n * @module motionstyle\n *\n */\nexport enum MotionClasses {\n /**\n * Class name of the root element\n */\n root = 'p-motion'\n}\n\nexport interface MotionStyle extends BaseStyle {}\n","import { ChangeDetectionStrategy, afterRenderEffect, Component, computed, effect, inject, InjectionToken, input, output, signal, untracked } from '@angular/core';\nimport { type ClassNameOptions, createMotion, resolveDuration, type MotionEvent, type MotionInstance, type MotionOptions, type MotionPhase } from '@exhaustive-ui/motion';\nimport { nextFrame } from '@exhaustive-ui/utils';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport type { MotionPassThrough } from '@exhaustive-ui/core/types/motion';\nimport { applyHiddenStyles, resetStyles } from './motion.utils';\nimport { MotionStyle } from './style/motion.style';\n\nconst MOTION_INSTANCE = new InjectionToken<Motion>('MOTION_INSTANCE');\n\n/**\n * Motion component is a container to apply motion effects to its content.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-motion',\n standalone: true,\n imports: [BindModule],\n template: `\n @if (rendered()) {\n <ng-content />\n }\n `,\n providers: [MotionStyle, { provide: MOTION_INSTANCE, useExisting: Motion }, { provide: PARENT_INSTANCE, useExisting: Motion }],\n host: {\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class Motion extends BaseComponent<MotionPassThrough> {\n $pcMotion: Motion | undefined = inject(MOTION_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n const options = this.options() as any;\n const optionsAttrs = options?.root || {};\n this.bindDirectiveInstance.setAttrs({ ...this.ptms(['host', 'root']), ...optionsAttrs });\n }\n\n _componentStyle = inject(MotionStyle);\n\n /******************** Inputs ********************/\n\n /**\n * Whether the element is visible or not.\n * @group Props\n */\n visible = input<boolean>(false);\n /**\n * Whether to mount the element on enter.\n * @group Props\n */\n mountOnEnter = input<boolean>(true);\n /**\n * Whether to unmount the element on leave.\n * @group Props\n */\n unmountOnLeave = input<boolean>(true);\n /**\n * The name of the motion. It can be a predefined motion name or a custom one.\n * phases:\n * [name]-enter\n * [name]-enter-active\n * [name]-enter-to\n * [name]-leave\n * [name]-leave-active\n * [name]-leave-to\n * @group Props\n */\n name = input<MotionOptions['name']>(undefined);\n /**\n * The type of the motion, valid values 'transition' and 'animation'.\n * @group Props\n */\n type = input<MotionOptions['type']>(undefined);\n /**\n * Whether the motion is safe.\n * @group Props\n */\n safe = input<MotionOptions['safe']>(undefined);\n /**\n * Whether the motion is disabled.\n * @group Props\n */\n disabled = input<MotionOptions['disabled']>(false);\n /**\n * Whether the motion should appear.\n * @group Props\n */\n appear = input<MotionOptions['appear']>(false);\n /**\n * Whether the motion should enter.\n * @group Props\n */\n enter = input<MotionOptions['enter']>(true);\n /**\n * Whether the motion should leave.\n * @group Props\n */\n leave = input<MotionOptions['leave']>(true);\n /**\n * The duration of the motion.\n * @group Props\n */\n duration = input<MotionOptions['duration']>(undefined);\n /**\n * The hide strategy of the motion, valid values 'display' and 'visibility'.\n * @group Props\n */\n hideStrategy = input<'display' | 'visibility'>('display');\n /**\n * The enter from class of the motion.\n * @group Props\n */\n enterFromClass = input<ClassNameOptions['from']>(undefined);\n /**\n * The enter to class of the motion.\n * @group Props\n */\n enterToClass = input<ClassNameOptions['to']>(undefined);\n /**\n * The enter active class of the motion.\n * @group Props\n */\n enterActiveClass = input<ClassNameOptions['active']>(undefined);\n /**\n * The leave from class of the motion.\n * @group Props\n */\n leaveFromClass = input<ClassNameOptions['from']>(undefined);\n /**\n * The leave to class of the motion.\n * @group Props\n */\n leaveToClass = input<ClassNameOptions['to']>(undefined);\n /**\n * The leave active class of the motion.\n * @group Props\n */\n leaveActiveClass = input<ClassNameOptions['active']>(undefined);\n\n /******************** All Inputs ********************/\n\n /**\n * The motion options.\n * @group Props\n */\n options = input<MotionOptions>({});\n\n /******************** Outputs ********************/\n\n /**\n * Callback fired before the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeEnter = output<MotionEvent>();\n /**\n * Callback fired when the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnter = output<MotionEvent>();\n /**\n * Callback fired after the enter transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterEnter = output<MotionEvent>();\n /**\n * Callback fired when the enter transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnterCancelled = output<MotionEvent>();\n /**\n * Callback fired before the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeLeave = output<MotionEvent>();\n /**\n * Callback fired when the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeave = output<MotionEvent>();\n /**\n * Callback fired after the leave transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterLeave = output<MotionEvent>();\n /**\n * Callback fired when the leave transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeaveCancelled = output<MotionEvent>();\n\n /******************** Computed ********************/\n\n private motionOptions = computed<MotionOptions>(() => {\n const options = this.options();\n\n return {\n name: options.name ?? this.name(),\n type: options.type ?? this.type(),\n safe: options.safe ?? this.safe(),\n disabled: options.disabled ?? this.disabled(),\n appear: false,\n enter: options.enter ?? this.enter(),\n leave: options.leave ?? this.leave(),\n duration: options.duration ?? this.duration(),\n enterClass: {\n from: options.enterClass?.from ?? (!options.name ? this.enterFromClass() : undefined),\n to: options.enterClass?.to ?? (!options.name ? this.enterToClass() : undefined),\n active: options.enterClass?.active ?? (!options.name ? this.enterActiveClass() : undefined)\n },\n leaveClass: {\n from: options.leaveClass?.from ?? (!options.name ? this.leaveFromClass() : undefined),\n to: options.leaveClass?.to ?? (!options.name ? this.leaveToClass() : undefined),\n active: options.leaveClass?.active ?? (!options.name ? this.leaveActiveClass() : undefined)\n },\n onBeforeEnter: options.onBeforeEnter ?? this.handleBeforeEnter,\n onEnter: options.onEnter ?? this.handleEnter,\n onAfterEnter: options.onAfterEnter ?? this.handleAfterEnter,\n onEnterCancelled: options.onEnterCancelled ?? this.handleEnterCancelled,\n onBeforeLeave: options.onBeforeLeave ?? this.handleBeforeLeave,\n onLeave: options.onLeave ?? this.handleLeave,\n onAfterLeave: options.onAfterLeave ?? this.handleAfterLeave,\n onLeaveCancelled: options.onLeaveCancelled ?? this.handleLeaveCancelled\n };\n });\n\n private motion: MotionInstance | undefined;\n private isInitialMount = true;\n private cancelled = false;\n private destroyed = false;\n\n rendered = signal(false);\n\n private readonly handleBeforeEnter = (event: MotionEvent) => !this.destroyed && this.onBeforeEnter.emit(event);\n private readonly handleEnter = (event: MotionEvent) => !this.destroyed && this.onEnter.emit(event);\n private readonly handleAfterEnter = (event: MotionEvent) => !this.destroyed && this.onAfterEnter.emit(event);\n private readonly handleEnterCancelled = (event: MotionEvent) => !this.destroyed && this.onEnterCancelled.emit(event);\n private readonly handleBeforeLeave = (event: MotionEvent) => !this.destroyed && this.onBeforeLeave.emit(event);\n private readonly handleLeave = (event: MotionEvent) => !this.destroyed && this.onLeave.emit(event);\n private readonly handleAfterLeave = (event: MotionEvent) => !this.destroyed && this.onAfterLeave.emit(event);\n private readonly handleLeaveCancelled = (event: MotionEvent) => !this.destroyed && this.onLeaveCancelled.emit(event);\n\n constructor() {\n super();\n\n effect(() => {\n const hideStrategy = this.hideStrategy();\n\n if (this.isInitialMount) {\n applyHiddenStyles(this.$el, hideStrategy);\n this.rendered.set((this.visible() && this.mountOnEnter()) || !this.mountOnEnter());\n } else if (this.visible() && !this.rendered()) {\n applyHiddenStyles(this.$el, hideStrategy);\n this.rendered.set(true);\n }\n });\n\n effect(() => {\n if (!this.motion) {\n this.motion = createMotion(this.$el, this.motionOptions());\n } else {\n // @todo: Update motion options method to update options dynamically\n //this.motion.update(this.$el, this.motionOptions());\n }\n });\n\n afterRenderEffect(async () => {\n if (!this.$el) return;\n\n const shouldAppear = this.isInitialMount && this.visible() && this.appear();\n const hideStrategy = this.hideStrategy();\n\n if (this.visible()) {\n await nextFrame();\n resetStyles(this.$el, hideStrategy);\n\n if (shouldAppear || !this.isInitialMount) {\n this.applyMotionDuration('enter');\n this.motion?.enter();\n }\n } else if (!this.isInitialMount) {\n await nextFrame();\n this.applyMotionDuration('leave');\n this.motion?.leave()?.then(async () => {\n if (this.$el && !this.cancelled && !this.visible()) {\n applyHiddenStyles(this.$el, hideStrategy);\n\n if (this.unmountOnLeave()) {\n await nextFrame();\n if (!this.cancelled) {\n this.rendered.set(false);\n }\n }\n }\n });\n }\n\n this.isInitialMount = false;\n });\n }\n\n private applyMotionDuration(phase: MotionPhase): void {\n const options = untracked(this.motionOptions);\n const ms = resolveDuration(options.duration, phase);\n\n if (ms == null || !this.$el) return;\n\n const el = this.$el as HTMLElement;\n const durationValue = `${ms}ms`;\n\n if (options.type === 'transition') {\n el.style.transitionDuration = durationValue;\n } else {\n el.style.animationDuration = durationValue;\n }\n }\n\n onDestroy(): void {\n this.destroyed = true;\n this.cancelled = true;\n\n this.motion?.cancel();\n this.motion = undefined;\n\n resetStyles(this.$el, this.hideStrategy());\n\n this.$el?.remove();\n\n this.isInitialMount = true;\n }\n}\n","import { afterRenderEffect, computed, Directive, effect, inject, InjectionToken, input, output, untracked } from '@angular/core';\nimport { createMotion, resolveDuration, type ClassNameOptions, type MotionEvent, type MotionInstance, type MotionOptions, type MotionPhase } from '@exhaustive-ui/motion';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { applyHiddenStyles, resetStyles } from './motion.utils';\nimport { MotionStyle } from './style/motion.style';\n\nconst MOTION_DIRECTIVE_INSTANCE = new InjectionToken<MotionDirective>('MOTION_DIRECTIVE_INSTANCE');\n\n/**\n * Motion Directive is directive to apply motion effects to elements.\n * @group Components\n */\n@Directive({\n selector: '[pMotion]',\n standalone: true,\n providers: [MotionStyle, { provide: MOTION_DIRECTIVE_INSTANCE, useExisting: MotionDirective }, { provide: PARENT_INSTANCE, useExisting: MotionDirective }]\n})\nexport class MotionDirective extends BaseComponent {\n $pcMotionDirective: MotionDirective | undefined = inject(MOTION_DIRECTIVE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n /******************** Inputs ********************/\n\n /**\n * Whether the element is visible or not.\n * @group Props\n */\n visible = input<boolean>(false, { alias: 'pMotion' });\n /**\n * The name of the motion. It can be a predefined motion name or a custom one.\n * phases:\n * [name]-enter\n * [name]-enter-active\n * [name]-enter-to\n * [name]-leave\n * [name]-leave-active\n * [name]-leave-to\n * @group Props\n */\n name = input<MotionOptions['name']>(undefined, { alias: 'pMotionName' });\n /**\n * The type of the motion, valid values 'transition' and 'animation'.\n * @group Props\n */\n type = input<MotionOptions['type']>(undefined, { alias: 'pMotionType' });\n /**\n * Whether the motion is safe.\n * @group Props\n */\n safe = input<MotionOptions['safe']>(undefined, { alias: 'pMotionSafe' });\n /**\n * Whether the motion is disabled.\n * @group Props\n */\n disabled = input<MotionOptions['disabled']>(false, { alias: 'pMotionDisabled' });\n /**\n * Whether the motion should appear.\n * @group Props\n */\n appear = input<MotionOptions['appear']>(false, { alias: 'pMotionAppear' });\n /**\n * Whether the motion should enter.\n * @group Props\n */\n enter = input<MotionOptions['enter']>(true, { alias: 'pMotionEnter' });\n /**\n * Whether the motion should leave.\n * @group Props\n */\n leave = input<MotionOptions['leave']>(true, { alias: 'pMotionLeave' });\n /**\n * The duration of the motion.\n * @group Props\n */\n duration = input<MotionOptions['duration']>(undefined, { alias: 'pMotionDuration' });\n /**\n * The hide strategy of the motion, valid values 'display' and 'visibility'.\n * @group Props\n */\n hideStrategy = input<'display' | 'visibility'>('display', { alias: 'pMotionHideStrategy' });\n /**\n * The enter from class of the motion.\n * @group Props\n */\n enterFromClass = input<ClassNameOptions['from']>(undefined, { alias: 'pMotionEnterFromClass' });\n /**\n * The enter to class of the motion.\n * @group Props\n */\n enterToClass = input<ClassNameOptions['to']>(undefined, { alias: 'pMotionEnterToClass' });\n /**\n * The enter active class of the motion.\n * @group Props\n */\n enterActiveClass = input<ClassNameOptions['active']>(undefined, { alias: 'pMotionEnterActiveClass' });\n /**\n * The leave from class of the motion.\n * @group Props\n */\n leaveFromClass = input<ClassNameOptions['from']>(undefined, { alias: 'pMotionLeaveFromClass' });\n /**\n * The leave to class of the motion.\n * @group Props\n */\n leaveToClass = input<ClassNameOptions['to']>(undefined, { alias: 'pMotionLeaveToClass' });\n /**\n * The leave active class of the motion.\n * @group Props\n */\n leaveActiveClass = input<ClassNameOptions['active']>(undefined, { alias: 'pMotionLeaveActiveClass' });\n\n /******************** All Inputs ********************/\n\n /**\n * The motion options.\n * @group Props\n */\n options = input<MotionOptions>({}, { alias: 'pMotionOptions' });\n\n /******************** Outputs ********************/\n\n /**\n * Callback fired before the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeEnter = output<MotionEvent>({ alias: 'pMotionOnBeforeEnter' });\n /**\n * Callback fired when the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnter = output<MotionEvent>({ alias: 'pMotionOnEnter' });\n /**\n * Callback fired after the enter transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterEnter = output<MotionEvent>({ alias: 'pMotionOnAfterEnter' });\n /**\n * Callback fired when the enter transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnterCancelled = output<MotionEvent>({ alias: 'pMotionOnEnterCancelled' });\n /**\n * Callback fired before the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeLeave = output<MotionEvent>({ alias: 'pMotionOnBeforeLeave' });\n /**\n * Callback fired when the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeave = output<MotionEvent>({ alias: 'pMotionOnLeave' });\n /**\n * Callback fired after the leave transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterLeave = output<MotionEvent>({ alias: 'pMotionOnAfterLeave' });\n /**\n * Callback fired when the leave transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeaveCancelled = output<MotionEvent>({ alias: 'pMotionOnLeaveCancelled' });\n\n /******************** Computed ********************/\n\n private motionOptions = computed<MotionOptions>(() => {\n const options = this.options() ?? {};\n\n return {\n name: options.name ?? this.name(),\n type: options.type ?? this.type(),\n safe: options.safe ?? this.safe(),\n disabled: options.disabled ?? this.disabled(),\n appear: false,\n enter: options.enter ?? this.enter(),\n leave: options.leave ?? this.leave(),\n duration: options.duration ?? this.duration(),\n enterClass: {\n from: options.enterClass?.from ?? (!options.name ? this.enterFromClass() : undefined),\n to: options.enterClass?.to ?? (!options.name ? this.enterToClass() : undefined),\n active: options.enterClass?.active ?? (!options.name ? this.enterActiveClass() : undefined)\n },\n leaveClass: {\n from: options.leaveClass?.from ?? (!options.name ? this.leaveFromClass() : undefined),\n to: options.leaveClass?.to ?? (!options.name ? this.leaveToClass() : undefined),\n active: options.leaveClass?.active ?? (!options.name ? this.leaveActiveClass() : undefined)\n },\n onBeforeEnter: options.onBeforeEnter ?? this.handleBeforeEnter,\n onEnter: options.onEnter ?? this.handleEnter,\n onAfterEnter: options.onAfterEnter ?? this.handleAfterEnter,\n onEnterCancelled: options.onEnterCancelled ?? this.handleEnterCancelled,\n onBeforeLeave: options.onBeforeLeave ?? this.handleBeforeLeave,\n onLeave: options.onLeave ?? this.handleLeave,\n onAfterLeave: options.onAfterLeave ?? this.handleAfterLeave,\n onLeaveCancelled: options.onLeaveCancelled ?? this.handleLeaveCancelled\n };\n });\n\n private motion: MotionInstance | undefined;\n private isInitialMount = true;\n private cancelled = false;\n private destroyed = false;\n\n private readonly handleBeforeEnter = (event: MotionEvent) => !this.destroyed && this.onBeforeEnter.emit(event);\n private readonly handleEnter = (event: MotionEvent) => !this.destroyed && this.onEnter.emit(event);\n private readonly handleAfterEnter = (event: MotionEvent) => !this.destroyed && this.onAfterEnter.emit(event);\n private readonly handleEnterCancelled = (event: MotionEvent) => !this.destroyed && this.onEnterCancelled.emit(event);\n private readonly handleBeforeLeave = (event: MotionEvent) => !this.destroyed && this.onBeforeLeave.emit(event);\n private readonly handleLeave = (event: MotionEvent) => !this.destroyed && this.onLeave.emit(event);\n private readonly handleAfterLeave = (event: MotionEvent) => !this.destroyed && this.onAfterLeave.emit(event);\n private readonly handleLeaveCancelled = (event: MotionEvent) => !this.destroyed && this.onLeaveCancelled.emit(event);\n\n constructor() {\n super();\n\n effect(() => {\n if (!this.motion) {\n this.motion = createMotion(this.$el, this.motionOptions());\n } else {\n // @todo: Update motion options method to update options dynamically\n //this.motion.update(this.$el, this.motionOptions());\n }\n });\n\n afterRenderEffect(() => {\n if (!this.$el) return;\n\n const shouldAppear = this.isInitialMount && this.visible() && this.appear();\n const hideStrategy = this.hideStrategy();\n\n if (this.visible()) {\n resetStyles(this.$el, hideStrategy);\n\n if (shouldAppear || !this.isInitialMount) {\n this.applyMotionDuration('enter');\n this.motion?.enter();\n }\n } else if (!this.isInitialMount) {\n this.applyMotionDuration('leave');\n this.motion?.leave()?.then(() => {\n if (this.$el && !this.cancelled && !this.visible()) {\n applyHiddenStyles(this.$el, hideStrategy);\n }\n });\n } else {\n applyHiddenStyles(this.$el, hideStrategy);\n }\n\n this.isInitialMount = false;\n });\n }\n\n private applyMotionDuration(phase: MotionPhase): void {\n const options = untracked(this.motionOptions);\n const ms = resolveDuration(options.duration, phase);\n\n if (ms == null || !this.$el) return;\n\n const el = this.$el as HTMLElement;\n const durationValue = `${ms}ms`;\n\n if (options.type === 'transition') {\n el.style.transitionDuration = durationValue;\n } else {\n el.style.animationDuration = durationValue;\n }\n }\n\n onDestroy(): void {\n this.destroyed = true;\n this.cancelled = true;\n\n this.motion?.cancel();\n this.motion = undefined;\n\n resetStyles(this.$el, this.hideStrategy());\n\n this.$el?.remove();\n\n this.isInitialMount = true;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Motion } from './motion.component';\nimport { MotionDirective } from './motion.directive';\n\nexport * from './motion.component';\nexport * from './motion.directive';\n\n@NgModule({\n imports: [Motion, MotionDirective],\n exports: [Motion, MotionDirective]\n})\nexport class MotionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAAA,MAAM,cAAc,GAAG,IAAI,OAAO,EAAiG;AAE7H,SAAU,iBAAiB,CAAC,OAAoB,EAAE,QAAkC,EAAA;AACtF,IAAA,IAAI,CAAC,OAAO;QAAE;IAEd,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;AAC9B,QAAA,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE;AACxB,YAAA,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;AAC9B,YAAA,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;AACpC,YAAA,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS;AAClC,YAAA,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC;AAC3B,SAAA,CAAC;IACN;IAEA,QAAQ,QAAQ;AACZ,QAAA,KAAK,SAAS;AACV,YAAA,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM;YAC9B;AACJ,QAAA,KAAK,YAAY;AACb,YAAA,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ;AACnC,YAAA,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG;AAC7B,YAAA,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ;YACjC;;AAEZ;AAEM,SAAU,WAAW,CAAC,OAAoB,EAAE,QAAkC,EAAA;AAChF,IAAA,IAAI,CAAC,OAAO;QAAE;AAEd,IAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,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,QAAQ,EAAE,WAAW;AACrB,oBAAA,UAAU,EAAE,IAAI;oBAChB,SAAS,EAAE,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,iBAAiB,EAAE,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAA,eAAiB,EAAE;AAC5J,iBAAA;;;MCLY,YAAY,CAAA;uGAAZ,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAZ,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHX,MAAM,EAAE,eAAe,CAAA,EAAA,OAAA,EAAA,CACvB,MAAM,EAAE,eAAe,CAAA,EAAA,CAAA;AAExB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,YAHX,MAAM,CAAA,EAAA,CAAA;;2FAGP,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC;AAClC,oBAAA,OAAO,EAAE,CAAC,MAAM,EAAE,eAAe;AACpC,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-motion.mjs","sources":["../../src/motion/motion.utils.ts","../../src/motion/style/motion.style.ts","../../src/motion/motion.component.ts","../../src/motion/motion.directive.ts","../../src/motion/motion.module.ts","../../src/motion/exhaustive-ui-core-motion.ts"],"sourcesContent":["const originalStyles = new WeakMap<HTMLElement, { display?: string; visibility?: string; maxHeight?: string; overflow?: string }>();\n\nexport function applyHiddenStyles(element: HTMLElement, strategy: 'display' | 'visibility') {\n if (!element) return;\n\n if (!originalStyles.has(element)) {\n originalStyles.set(element, {\n display: element.style.display,\n visibility: element.style.visibility,\n maxHeight: element.style.maxHeight,\n overflow: element.style.overflow\n });\n }\n\n switch (strategy) {\n case 'display':\n element.style.display = 'none';\n break;\n case 'visibility':\n element.style.visibility = 'hidden';\n element.style.maxHeight = '0';\n element.style.overflow = 'hidden';\n break;\n }\n}\n\nexport function resetStyles(element: HTMLElement, strategy: 'display' | 'visibility') {\n if (!element) return;\n\n const original = originalStyles.get(element) ?? element.style;\n\n switch (strategy) {\n case 'display':\n element.style.display = original?.display || '';\n break;\n case 'visibility':\n element.style.visibility = original?.visibility || '';\n element.style.maxHeight = original?.maxHeight || '';\n element.style.overflow = original?.overflow || '';\n break;\n }\n\n originalStyles.delete(element);\n}\n","import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst style = /*css*/ `\n .p-motion {\n display: block;\n }\n`;\n\nconst classes = {\n root: 'p-motion'\n};\n\n@Injectable()\nexport class MotionStyle extends BaseStyle {\n name = 'motion';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Motion and MotionDirective provide an easy way to add motion effects to Angular applications.\n *\n * [Live Demo](https://exhaustive-ui.com/motion)\n *\n * @module motionstyle\n *\n */\nexport enum MotionClasses {\n /**\n * Class name of the root element\n */\n root = 'p-motion'\n}\n\nexport interface MotionStyle extends BaseStyle {}\n","import { ChangeDetectionStrategy, afterRenderEffect, Component, computed, effect, inject, InjectionToken, input, output, signal, untracked } from '@angular/core';\nimport { type ClassNameOptions, createMotion, resolveDuration, type MotionEvent, type MotionInstance, type MotionOptions, type MotionPhase } from '@exhaustive-ui/motion';\nimport { nextFrame } from '@exhaustive-ui/utils';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport type { MotionPassThrough } from '@exhaustive-ui/core/types/motion';\nimport { applyHiddenStyles, resetStyles } from './motion.utils';\nimport { MotionStyle } from './style/motion.style';\n\nconst MOTION_INSTANCE = new InjectionToken<Motion>('MOTION_INSTANCE');\n\n/**\n * Motion component is a container to apply motion effects to its content.\n * @group Components\n */\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'p-motion',\n standalone: true,\n imports: [BindModule],\n template: `\n @if (rendered()) {\n <ng-content />\n }\n `,\n providers: [MotionStyle, { provide: MOTION_INSTANCE, useExisting: Motion }, { provide: PARENT_INSTANCE, useExisting: Motion }],\n host: {\n '[class]': \"cx('root')\"\n },\n hostDirectives: [Bind]\n})\nexport class Motion extends BaseComponent<MotionPassThrough> {\n $pcMotion: Motion | undefined = inject(MOTION_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n const options = this.options() as any;\n const optionsAttrs = options?.root || {};\n this.bindDirectiveInstance.setAttrs({ ...this.ptms(['host', 'root']), ...optionsAttrs });\n }\n\n _componentStyle = inject(MotionStyle);\n\n /******************** Inputs ********************/\n\n /**\n * Whether the element is visible or not.\n * @group Props\n */\n visible = input<boolean>(false);\n /**\n * Whether to mount the element on enter.\n * @group Props\n */\n mountOnEnter = input<boolean>(true);\n /**\n * Whether to unmount the element on leave.\n * @group Props\n */\n unmountOnLeave = input<boolean>(true);\n /**\n * The name of the motion. It can be a predefined motion name or a custom one.\n * phases:\n * [name]-enter\n * [name]-enter-active\n * [name]-enter-to\n * [name]-leave\n * [name]-leave-active\n * [name]-leave-to\n * @group Props\n */\n name = input<MotionOptions['name']>(undefined);\n /**\n * The type of the motion, valid values 'transition' and 'animation'.\n * @group Props\n */\n type = input<MotionOptions['type']>(undefined);\n /**\n * Whether the motion is safe.\n * @group Props\n */\n safe = input<MotionOptions['safe']>(undefined);\n /**\n * Whether the motion is disabled.\n * @group Props\n */\n disabled = input<MotionOptions['disabled']>(false);\n /**\n * Whether the motion should appear.\n * @group Props\n */\n appear = input<MotionOptions['appear']>(false);\n /**\n * Whether the motion should enter.\n * @group Props\n */\n enter = input<MotionOptions['enter']>(true);\n /**\n * Whether the motion should leave.\n * @group Props\n */\n leave = input<MotionOptions['leave']>(true);\n /**\n * The duration of the motion.\n * @group Props\n */\n duration = input<MotionOptions['duration']>(undefined);\n /**\n * The hide strategy of the motion, valid values 'display' and 'visibility'.\n * @group Props\n */\n hideStrategy = input<'display' | 'visibility'>('display');\n /**\n * The enter from class of the motion.\n * @group Props\n */\n enterFromClass = input<ClassNameOptions['from']>(undefined);\n /**\n * The enter to class of the motion.\n * @group Props\n */\n enterToClass = input<ClassNameOptions['to']>(undefined);\n /**\n * The enter active class of the motion.\n * @group Props\n */\n enterActiveClass = input<ClassNameOptions['active']>(undefined);\n /**\n * The leave from class of the motion.\n * @group Props\n */\n leaveFromClass = input<ClassNameOptions['from']>(undefined);\n /**\n * The leave to class of the motion.\n * @group Props\n */\n leaveToClass = input<ClassNameOptions['to']>(undefined);\n /**\n * The leave active class of the motion.\n * @group Props\n */\n leaveActiveClass = input<ClassNameOptions['active']>(undefined);\n\n /******************** All Inputs ********************/\n\n /**\n * The motion options.\n * @group Props\n */\n options = input<MotionOptions>({});\n\n /******************** Outputs ********************/\n\n /**\n * Callback fired before the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeEnter = output<MotionEvent>();\n /**\n * Callback fired when the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnter = output<MotionEvent>();\n /**\n * Callback fired after the enter transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterEnter = output<MotionEvent>();\n /**\n * Callback fired when the enter transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnterCancelled = output<MotionEvent>();\n /**\n * Callback fired before the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeLeave = output<MotionEvent>();\n /**\n * Callback fired when the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeave = output<MotionEvent>();\n /**\n * Callback fired after the leave transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterLeave = output<MotionEvent>();\n /**\n * Callback fired when the leave transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeaveCancelled = output<MotionEvent>();\n\n /******************** Computed ********************/\n\n private motionOptions = computed<MotionOptions>(() => {\n const options = this.options();\n\n return {\n name: options.name ?? this.name(),\n type: options.type ?? this.type(),\n safe: options.safe ?? this.safe(),\n disabled: options.disabled ?? this.disabled(),\n appear: false,\n enter: options.enter ?? this.enter(),\n leave: options.leave ?? this.leave(),\n duration: options.duration ?? this.duration(),\n enterClass: {\n from: options.enterClass?.from ?? (!options.name ? this.enterFromClass() : undefined),\n to: options.enterClass?.to ?? (!options.name ? this.enterToClass() : undefined),\n active: options.enterClass?.active ?? (!options.name ? this.enterActiveClass() : undefined)\n },\n leaveClass: {\n from: options.leaveClass?.from ?? (!options.name ? this.leaveFromClass() : undefined),\n to: options.leaveClass?.to ?? (!options.name ? this.leaveToClass() : undefined),\n active: options.leaveClass?.active ?? (!options.name ? this.leaveActiveClass() : undefined)\n },\n onBeforeEnter: options.onBeforeEnter ?? this.handleBeforeEnter,\n onEnter: options.onEnter ?? this.handleEnter,\n onAfterEnter: options.onAfterEnter ?? this.handleAfterEnter,\n onEnterCancelled: options.onEnterCancelled ?? this.handleEnterCancelled,\n onBeforeLeave: options.onBeforeLeave ?? this.handleBeforeLeave,\n onLeave: options.onLeave ?? this.handleLeave,\n onAfterLeave: options.onAfterLeave ?? this.handleAfterLeave,\n onLeaveCancelled: options.onLeaveCancelled ?? this.handleLeaveCancelled\n };\n });\n\n private motion: MotionInstance | undefined;\n private isInitialMount = true;\n private cancelled = false;\n private destroyed = false;\n\n rendered = signal(false);\n\n private readonly handleBeforeEnter = (event: MotionEvent) => !this.destroyed && this.onBeforeEnter.emit(event);\n private readonly handleEnter = (event: MotionEvent) => !this.destroyed && this.onEnter.emit(event);\n private readonly handleAfterEnter = (event: MotionEvent) => !this.destroyed && this.onAfterEnter.emit(event);\n private readonly handleEnterCancelled = (event: MotionEvent) => !this.destroyed && this.onEnterCancelled.emit(event);\n private readonly handleBeforeLeave = (event: MotionEvent) => !this.destroyed && this.onBeforeLeave.emit(event);\n private readonly handleLeave = (event: MotionEvent) => !this.destroyed && this.onLeave.emit(event);\n private readonly handleAfterLeave = (event: MotionEvent) => !this.destroyed && this.onAfterLeave.emit(event);\n private readonly handleLeaveCancelled = (event: MotionEvent) => !this.destroyed && this.onLeaveCancelled.emit(event);\n\n constructor() {\n super();\n\n effect(() => {\n const hideStrategy = this.hideStrategy();\n\n if (this.isInitialMount) {\n applyHiddenStyles(this.$el, hideStrategy);\n this.rendered.set((this.visible() && this.mountOnEnter()) || !this.mountOnEnter());\n } else if (this.visible() && !this.rendered()) {\n applyHiddenStyles(this.$el, hideStrategy);\n this.rendered.set(true);\n }\n });\n\n effect(() => {\n if (!this.motion) {\n this.motion = createMotion(this.$el, this.motionOptions());\n } else {\n // @todo: Update motion options method to update options dynamically\n //this.motion.update(this.$el, this.motionOptions());\n }\n });\n\n afterRenderEffect(async () => {\n if (!this.$el) return;\n\n const shouldAppear = this.isInitialMount && this.visible() && this.appear();\n const hideStrategy = this.hideStrategy();\n\n if (this.visible()) {\n const initialMount = this.isInitialMount;\n await nextFrame();\n // closed again while waiting for the frame: the leave run of this effect takes over\n if (!untracked(this.visible)) {\n this.isInitialMount = false;\n return;\n }\n resetStyles(this.$el, hideStrategy);\n\n if (shouldAppear || !initialMount) {\n this.applyMotionDuration('enter');\n this.motion?.enter();\n }\n } else if (!this.isInitialMount) {\n await nextFrame();\n // reopened while waiting for the frame: the enter run of this effect takes over\n if (untracked(this.visible)) return;\n this.applyMotionDuration('leave');\n this.motion?.leave()?.then(async () => {\n if (this.$el && !this.cancelled && !this.visible()) {\n applyHiddenStyles(this.$el, hideStrategy);\n\n if (this.unmountOnLeave()) {\n await nextFrame();\n if (!this.cancelled) {\n this.rendered.set(false);\n }\n }\n }\n });\n }\n\n this.isInitialMount = false;\n });\n }\n\n private applyMotionDuration(phase: MotionPhase): void {\n const options = untracked(this.motionOptions);\n const ms = resolveDuration(options.duration, phase);\n\n if (ms == null || !this.$el) return;\n\n const el = this.$el as HTMLElement;\n const durationValue = `${ms}ms`;\n\n if (options.type === 'transition') {\n el.style.transitionDuration = durationValue;\n } else {\n el.style.animationDuration = durationValue;\n }\n }\n\n onDestroy(): void {\n this.destroyed = true;\n this.cancelled = true;\n\n this.motion?.cancel();\n this.motion = undefined;\n\n resetStyles(this.$el, this.hideStrategy());\n\n this.$el?.remove();\n\n this.isInitialMount = true;\n }\n}\n","import { afterRenderEffect, computed, Directive, effect, inject, InjectionToken, input, output, untracked } from '@angular/core';\nimport { createMotion, resolveDuration, type ClassNameOptions, type MotionEvent, type MotionInstance, type MotionOptions, type MotionPhase } from '@exhaustive-ui/motion';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { applyHiddenStyles, resetStyles } from './motion.utils';\nimport { MotionStyle } from './style/motion.style';\n\nconst MOTION_DIRECTIVE_INSTANCE = new InjectionToken<MotionDirective>('MOTION_DIRECTIVE_INSTANCE');\n\n/**\n * Motion Directive is directive to apply motion effects to elements.\n * @group Components\n */\n@Directive({\n selector: '[pMotion]',\n standalone: true,\n providers: [MotionStyle, { provide: MOTION_DIRECTIVE_INSTANCE, useExisting: MotionDirective }, { provide: PARENT_INSTANCE, useExisting: MotionDirective }]\n})\nexport class MotionDirective extends BaseComponent {\n $pcMotionDirective: MotionDirective | undefined = inject(MOTION_DIRECTIVE_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n /******************** Inputs ********************/\n\n /**\n * Whether the element is visible or not.\n * @group Props\n */\n visible = input<boolean>(false, { alias: 'pMotion' });\n /**\n * The name of the motion. It can be a predefined motion name or a custom one.\n * phases:\n * [name]-enter\n * [name]-enter-active\n * [name]-enter-to\n * [name]-leave\n * [name]-leave-active\n * [name]-leave-to\n * @group Props\n */\n name = input<MotionOptions['name']>(undefined, { alias: 'pMotionName' });\n /**\n * The type of the motion, valid values 'transition' and 'animation'.\n * @group Props\n */\n type = input<MotionOptions['type']>(undefined, { alias: 'pMotionType' });\n /**\n * Whether the motion is safe.\n * @group Props\n */\n safe = input<MotionOptions['safe']>(undefined, { alias: 'pMotionSafe' });\n /**\n * Whether the motion is disabled.\n * @group Props\n */\n disabled = input<MotionOptions['disabled']>(false, { alias: 'pMotionDisabled' });\n /**\n * Whether the motion should appear.\n * @group Props\n */\n appear = input<MotionOptions['appear']>(false, { alias: 'pMotionAppear' });\n /**\n * Whether the motion should enter.\n * @group Props\n */\n enter = input<MotionOptions['enter']>(true, { alias: 'pMotionEnter' });\n /**\n * Whether the motion should leave.\n * @group Props\n */\n leave = input<MotionOptions['leave']>(true, { alias: 'pMotionLeave' });\n /**\n * The duration of the motion.\n * @group Props\n */\n duration = input<MotionOptions['duration']>(undefined, { alias: 'pMotionDuration' });\n /**\n * The hide strategy of the motion, valid values 'display' and 'visibility'.\n * @group Props\n */\n hideStrategy = input<'display' | 'visibility'>('display', { alias: 'pMotionHideStrategy' });\n /**\n * The enter from class of the motion.\n * @group Props\n */\n enterFromClass = input<ClassNameOptions['from']>(undefined, { alias: 'pMotionEnterFromClass' });\n /**\n * The enter to class of the motion.\n * @group Props\n */\n enterToClass = input<ClassNameOptions['to']>(undefined, { alias: 'pMotionEnterToClass' });\n /**\n * The enter active class of the motion.\n * @group Props\n */\n enterActiveClass = input<ClassNameOptions['active']>(undefined, { alias: 'pMotionEnterActiveClass' });\n /**\n * The leave from class of the motion.\n * @group Props\n */\n leaveFromClass = input<ClassNameOptions['from']>(undefined, { alias: 'pMotionLeaveFromClass' });\n /**\n * The leave to class of the motion.\n * @group Props\n */\n leaveToClass = input<ClassNameOptions['to']>(undefined, { alias: 'pMotionLeaveToClass' });\n /**\n * The leave active class of the motion.\n * @group Props\n */\n leaveActiveClass = input<ClassNameOptions['active']>(undefined, { alias: 'pMotionLeaveActiveClass' });\n\n /******************** All Inputs ********************/\n\n /**\n * The motion options.\n * @group Props\n */\n options = input<MotionOptions>({}, { alias: 'pMotionOptions' });\n\n /******************** Outputs ********************/\n\n /**\n * Callback fired before the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeEnter = output<MotionEvent>({ alias: 'pMotionOnBeforeEnter' });\n /**\n * Callback fired when the enter transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnter = output<MotionEvent>({ alias: 'pMotionOnEnter' });\n /**\n * Callback fired after the enter transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterEnter = output<MotionEvent>({ alias: 'pMotionOnAfterEnter' });\n /**\n * Callback fired when the enter transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onEnterCancelled = output<MotionEvent>({ alias: 'pMotionOnEnterCancelled' });\n /**\n * Callback fired before the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onBeforeLeave = output<MotionEvent>({ alias: 'pMotionOnBeforeLeave' });\n /**\n * Callback fired when the leave transition/animation starts.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeave = output<MotionEvent>({ alias: 'pMotionOnLeave' });\n /**\n * Callback fired after the leave transition/animation ends.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onAfterLeave = output<MotionEvent>({ alias: 'pMotionOnAfterLeave' });\n /**\n * Callback fired when the leave transition/animation is cancelled.\n * @param {MotionEvent} event - The event object containing details about the motion.\n * @param {Element} event.element - The element being transitioned/animated.\n * @group Emits\n */\n onLeaveCancelled = output<MotionEvent>({ alias: 'pMotionOnLeaveCancelled' });\n\n /******************** Computed ********************/\n\n private motionOptions = computed<MotionOptions>(() => {\n const options = this.options() ?? {};\n\n return {\n name: options.name ?? this.name(),\n type: options.type ?? this.type(),\n safe: options.safe ?? this.safe(),\n disabled: options.disabled ?? this.disabled(),\n appear: false,\n enter: options.enter ?? this.enter(),\n leave: options.leave ?? this.leave(),\n duration: options.duration ?? this.duration(),\n enterClass: {\n from: options.enterClass?.from ?? (!options.name ? this.enterFromClass() : undefined),\n to: options.enterClass?.to ?? (!options.name ? this.enterToClass() : undefined),\n active: options.enterClass?.active ?? (!options.name ? this.enterActiveClass() : undefined)\n },\n leaveClass: {\n from: options.leaveClass?.from ?? (!options.name ? this.leaveFromClass() : undefined),\n to: options.leaveClass?.to ?? (!options.name ? this.leaveToClass() : undefined),\n active: options.leaveClass?.active ?? (!options.name ? this.leaveActiveClass() : undefined)\n },\n onBeforeEnter: options.onBeforeEnter ?? this.handleBeforeEnter,\n onEnter: options.onEnter ?? this.handleEnter,\n onAfterEnter: options.onAfterEnter ?? this.handleAfterEnter,\n onEnterCancelled: options.onEnterCancelled ?? this.handleEnterCancelled,\n onBeforeLeave: options.onBeforeLeave ?? this.handleBeforeLeave,\n onLeave: options.onLeave ?? this.handleLeave,\n onAfterLeave: options.onAfterLeave ?? this.handleAfterLeave,\n onLeaveCancelled: options.onLeaveCancelled ?? this.handleLeaveCancelled\n };\n });\n\n private motion: MotionInstance | undefined;\n private isInitialMount = true;\n private cancelled = false;\n private destroyed = false;\n\n private readonly handleBeforeEnter = (event: MotionEvent) => !this.destroyed && this.onBeforeEnter.emit(event);\n private readonly handleEnter = (event: MotionEvent) => !this.destroyed && this.onEnter.emit(event);\n private readonly handleAfterEnter = (event: MotionEvent) => !this.destroyed && this.onAfterEnter.emit(event);\n private readonly handleEnterCancelled = (event: MotionEvent) => !this.destroyed && this.onEnterCancelled.emit(event);\n private readonly handleBeforeLeave = (event: MotionEvent) => !this.destroyed && this.onBeforeLeave.emit(event);\n private readonly handleLeave = (event: MotionEvent) => !this.destroyed && this.onLeave.emit(event);\n private readonly handleAfterLeave = (event: MotionEvent) => !this.destroyed && this.onAfterLeave.emit(event);\n private readonly handleLeaveCancelled = (event: MotionEvent) => !this.destroyed && this.onLeaveCancelled.emit(event);\n\n constructor() {\n super();\n\n effect(() => {\n if (!this.motion) {\n this.motion = createMotion(this.$el, this.motionOptions());\n } else {\n // @todo: Update motion options method to update options dynamically\n //this.motion.update(this.$el, this.motionOptions());\n }\n });\n\n afterRenderEffect(() => {\n if (!this.$el) return;\n\n const shouldAppear = this.isInitialMount && this.visible() && this.appear();\n const hideStrategy = this.hideStrategy();\n\n if (this.visible()) {\n resetStyles(this.$el, hideStrategy);\n\n if (shouldAppear || !this.isInitialMount) {\n this.applyMotionDuration('enter');\n this.motion?.enter();\n }\n } else if (!this.isInitialMount) {\n this.applyMotionDuration('leave');\n this.motion?.leave()?.then(() => {\n if (this.$el && !this.cancelled && !this.visible()) {\n applyHiddenStyles(this.$el, hideStrategy);\n }\n });\n } else {\n applyHiddenStyles(this.$el, hideStrategy);\n }\n\n this.isInitialMount = false;\n });\n }\n\n private applyMotionDuration(phase: MotionPhase): void {\n const options = untracked(this.motionOptions);\n const ms = resolveDuration(options.duration, phase);\n\n if (ms == null || !this.$el) return;\n\n const el = this.$el as HTMLElement;\n const durationValue = `${ms}ms`;\n\n if (options.type === 'transition') {\n el.style.transitionDuration = durationValue;\n } else {\n el.style.animationDuration = durationValue;\n }\n }\n\n onDestroy(): void {\n this.destroyed = true;\n this.cancelled = true;\n\n this.motion?.cancel();\n this.motion = undefined;\n\n resetStyles(this.$el, this.hideStrategy());\n\n this.$el?.remove();\n\n this.isInitialMount = true;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Motion } from './motion.component';\nimport { MotionDirective } from './motion.directive';\n\nexport * from './motion.component';\nexport * from './motion.directive';\n\n@NgModule({\n imports: [Motion, MotionDirective],\n exports: [Motion, MotionDirective]\n})\nexport class MotionModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAAA,MAAM,cAAc,GAAG,IAAI,OAAO,EAAiG;AAE7H,SAAU,iBAAiB,CAAC,OAAoB,EAAE,QAAkC,EAAA;AACtF,IAAA,IAAI,CAAC,OAAO;QAAE;IAEd,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;AAC9B,QAAA,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE;AACxB,YAAA,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO;AAC9B,YAAA,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU;AACpC,YAAA,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS;AAClC,YAAA,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC;AAC3B,SAAA,CAAC;IACN;IAEA,QAAQ,QAAQ;AACZ,QAAA,KAAK,SAAS;AACV,YAAA,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM;YAC9B;AACJ,QAAA,KAAK,YAAY;AACb,YAAA,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,QAAQ;AACnC,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