{"version":3,"file":"ngx-tethys-notify.mjs","sources":["../../../src/notify/notify.config.ts","../../../src/notify/notify-queue.service.ts","../../../src/notify/notify.component.ts","../../../src/notify/notify.component.html","../../../src/notify/notify-container.component.ts","../../../src/notify/notify-container.component.html","../../../src/notify/module.ts","../../../src/notify/notify-ref.ts","../../../src/notify/notify.service.ts","../../../src/notify/ngx-tethys-notify.ts"],"sourcesContent":["import { ElementRef, InjectionToken } from '@angular/core';\nimport { ComponentTypeOrTemplateRef } from 'ngx-tethys/core';\nimport { ThyMessageBaseConfig } from 'ngx-tethys/message';\n\nexport type ThyNotifyPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';\nexport type ThyNotifyType = 'blank' | 'success' | 'error' | 'warning' | 'info';\n\nexport interface ThyGlobalNotifyConfig {\n    placement?: ThyNotifyPlacement;\n\n    pauseOnHover?: boolean;\n\n    duration?: number;\n\n    maxStack?: number;\n\n    offset?: string;\n}\n\nexport interface ThyNotifyDetail {\n    link?: string;\n    content?: string;\n    action?: (event?: Event) => void;\n}\n\nexport interface ThyNotifyAction {\n    text: string;\n    icon?: string;\n    onClick: () => void;\n}\n\n/**\n * 打开notify通知的配置\n * @public\n * @order 10\n */\nexport interface ThyNotifyConfig extends ThyMessageBaseConfig {\n    /**\n     * 通知弹出位置\n     */\n    placement?: ThyNotifyPlacement;\n\n    /**\n     * 弹出通知的类型\n     */\n    type?: ThyNotifyType;\n\n    /**\n     * 标题\n     */\n    title?: string;\n\n    /**\n     * 提示内容\n     */\n    content?: string | ComponentTypeOrTemplateRef<any>;\n\n    contentInitialState?: any;\n\n    /**\n     * 提示内容的详情，是对内容的详情描述，也可以是能够操作的链接，link是链接名，content是详情描述，action是点击的方法\n     */\n    detail?: string | ThyNotifyDetail;\n\n    /**\n     * 自定义传入html模板\n     */\n    html?: ElementRef;\n\n    /**\n     * 通知操作按钮，text为按钮文本，icon为按钮图标，onClick为点击事件\n     */\n    actions?: ThyNotifyAction[];\n}\n\nexport const THY_NOTIFY_DEFAULT_CONFIG = new InjectionToken<ThyGlobalNotifyConfig>('thy-notify-default-config');\n\nexport const THY_NOTIFY_DEFAULT_CONFIG_VALUE: ThyGlobalNotifyConfig = {\n    placement: 'topRight',\n    offset: '20',\n    duration: 4500,\n    pauseOnHover: true,\n    maxStack: 8\n};\n\nexport const THY_NOTIFY_DEFAULT_CONFIG_PROVIDER = {\n    provide: THY_NOTIFY_DEFAULT_CONFIG,\n    useValue: THY_NOTIFY_DEFAULT_CONFIG_VALUE\n};\n","import { Injectable, inject, computed } from '@angular/core';\nimport { ThyAbstractMessageQueue } from 'ngx-tethys/message';\nimport { ThyNotifyRef } from './notify-ref';\nimport { THY_NOTIFY_DEFAULT_CONFIG, THY_NOTIFY_DEFAULT_CONFIG_VALUE } from './notify.config';\n\n/**\n * @internal\n */\n@Injectable({\n    providedIn: 'root'\n})\nexport class ThyNotifyQueue extends ThyAbstractMessageQueue<ThyNotifyRef> {\n    topLeftQueues = computed(() => {\n        return this.queues().filter(item => item.config.placement === 'topLeft');\n    });\n\n    topRightQueues = computed(() => {\n        return this.queues().filter(item => item.config.placement === 'topRight');\n    });\n\n    bottomLeftQueues = computed(() => {\n        return this.queues().filter(item => item.config.placement === 'bottomLeft');\n    });\n\n    bottomRightQueues = computed(() => {\n        return this.queues().filter(item => item.config.placement === 'bottomRight');\n    });\n\n    constructor() {\n        const defaultConfig = inject(THY_NOTIFY_DEFAULT_CONFIG);\n\n        super({\n            ...THY_NOTIFY_DEFAULT_CONFIG_VALUE,\n            ...defaultConfig\n        });\n    }\n}\n","import { Component, HostBinding, effect, signal, computed, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { trigger, state, style, animate, transition } from '@angular/animations';\nimport { helpers, isString } from 'ngx-tethys/util';\nimport { ThyNotifyConfig, ThyNotifyDetail, ThyNotifyPlacement } from './notify.config';\nimport { ANIMATION_IN_DURATION, ANIMATION_OUT_DURATION, HIDE_STYLE, ThyAbstractMessageComponent } from 'ngx-tethys/message';\nimport { ThyNotifyQueue } from './notify-queue.service';\nimport { ThyViewOutletDirective } from 'ngx-tethys/shared';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ThyAction } from 'ngx-tethys/action';\n\n/**\n * @private\n */\n@Component({\n    selector: 'thy-notify',\n    templateUrl: './notify.component.html',\n    host: {\n        '[class]': \"'thy-notify thy-notify-' + config()?.type\"\n    },\n    animations: [\n        trigger('flyInOut', [\n            state('flyInOutRight', style({ transform: 'translateX(0)', opacity: 1, height: '*' })),\n            transition('void => flyInOutRight', [\n                style({ transform: 'translateX(100%)', opacity: 0, height: '*' }),\n                animate(ANIMATION_IN_DURATION)\n            ]),\n            transition('flyInOutRight => componentHide', [animate(ANIMATION_OUT_DURATION, style(HIDE_STYLE))]),\n            state('flyInOutLeft', style({ transform: 'translateX(0)', opacity: 1, height: '*' })),\n            transition('void => flyInOutLeft', [\n                style({ transform: 'translateX(-100%)', opacity: 0, height: '*' }),\n                animate(ANIMATION_IN_DURATION)\n            ]),\n            transition('flyInOutLeft => componentHide', [animate(ANIMATION_OUT_DURATION, style(HIDE_STYLE))]),\n            state('componentHide', style(HIDE_STYLE))\n        ])\n    ],\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [ThyIcon, NgClass, ThyViewOutletDirective, NgTemplateOutlet, ThyAction]\n})\nexport class ThyNotify extends ThyAbstractMessageComponent<ThyNotifyConfig> {\n    @HostBinding('@flyInOut') animationState?: string;\n\n    extendContentClass = signal(false);\n\n    isShowDetail = signal(false);\n\n    readonly contentIsString = computed(() => isString(this.config()?.content));\n\n    protected queue = inject(ThyNotifyQueue);\n\n    private placement = computed<ThyNotifyPlacement>(() => {\n        const config = this.config();\n        return config?.placement || 'topRight';\n    });\n\n    readonly actions = computed(() => this.config()?.actions || []);\n\n    constructor() {\n        super();\n        effect(() => {\n            const placement = this.placement();\n            if (placement === 'topLeft' || placement === 'bottomLeft') {\n                this.animationState = 'flyInOutLeft';\n            } else {\n                this.animationState = 'flyInOutRight';\n            }\n        });\n    }\n\n    extendContent() {\n        this.extendContentClass.set(true);\n    }\n\n    showDetailToggle() {\n        this.isShowDetail.set(!this.isShowDetail());\n    }\n\n    triggerDetail() {\n        const config = this.config();\n        if (helpers.isFunction((config?.detail as ThyNotifyDetail).action)) {\n            (config!.detail as ThyNotifyDetail)!.action!();\n        }\n        if ((config?.detail as ThyNotifyDetail).content) {\n            this.showDetailToggle();\n        }\n    }\n}\n","@let notifyConfig = config();\n\n@if (notifyConfig?.html) {\n  <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n    <thy-icon thyName=\"close\"></thy-icon>\n  </a>\n  <div class=\"thy-notify-main\">\n    <template [ngTemplateOutlet]=\"$safeNavigationMigration(notifyConfig?.html)\"></template>\n  </div>\n} @else {\n  <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n    <thy-icon thyName=\"close\"></thy-icon>\n  </a>\n  <div class=\"thy-notify-icon-container\">\n    <thy-icon [thyName]=\"iconName\"></thy-icon>\n  </div>\n  <div class=\"thy-notify-main\">\n    <div class=\"thy-notify-title\">{{ notifyConfig?.title }}</div>\n    @if (notifyConfig?.detail || notifyConfig?.content) {\n      <div class=\"thy-notify-content\" [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass() }\" (click)=\"extendContent()\">\n        @if (notifyConfig?.content) {\n          @if (contentIsString()) {\n            {{ notifyConfig?.content }}\n          } @else {\n            <ng-container\n              *thyViewOutlet=\"\n                $safeNavigationMigration(notifyConfig?.content);\n                context: notifyConfig?.contentInitialState || {}\n              \"></ng-container>\n          }\n        }\n        @if (notifyConfig?.detail && !actions()?.length) {\n          <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (notifyConfig?.detail)['link'] }}</a>\n        }\n      </div>\n    }\n    @if (isShowDetail()) {\n      <div class=\"thy-notify-detail\">{{ (notifyConfig?.detail)['content'] }}</div>\n    }\n\n    @if (actions()?.length > 0) {\n      <div class=\"thy-notify-actions ml-n2\">\n        @for (action of actions(); track $index) {\n          <a\n            href=\"javascript:;\"\n            thyAction\n            thyAppearance=\"lite\"\n            [thyIcon]=\"$safeNavigationMigration(action?.icon)\"\n            (click)=\"action?.onClick()\">\n            {{ action?.text }}\n          </a>\n        }\n      </div>\n    }\n  </div>\n}\n","import { Component, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ThyAbstractMessageContainerComponent } from 'ngx-tethys/message';\nimport { ThyNotifyQueue } from './notify-queue.service';\nimport { THY_NOTIFY_DEFAULT_CONFIG, THY_NOTIFY_DEFAULT_CONFIG_VALUE } from './notify.config';\nimport { ThyNotify } from './notify.component';\n\n/**\n * @private\n */\n@Component({\n    selector: 'thy-notify-container',\n    templateUrl: './notify-container.component.html',\n    imports: [ThyNotify],\n    changeDetection: ChangeDetectionStrategy.Eager,\n    host: {\n        class: 'thy-notify-container'\n    }\n})\nexport class ThyNotifyContainer extends ThyAbstractMessageContainerComponent {\n    notifyQueue = inject(ThyNotifyQueue);\n\n    public defaultConfig = (() => {\n        const defaultConfig = inject(THY_NOTIFY_DEFAULT_CONFIG);\n        return {\n            ...THY_NOTIFY_DEFAULT_CONFIG_VALUE,\n            ...defaultConfig\n        };\n    })();\n}\n","<div class=\"thy-notify-bottomRight\" [style.bottom.px]=\"offset\" [style.right.px]=\"offset\">\n  @for (item of notifyQueue.bottomRightQueues(); track item.id) {\n    <thy-notify [thyConfig]=\"item.config\"></thy-notify>\n  }\n</div>\n<div class=\"thy-notify-bottomLeft\" [style.bottom.px]=\"offset\" [style.left.px]=\"offset\">\n  @for (item of notifyQueue.bottomLeftQueues(); track item.id) {\n    <thy-notify [thyConfig]=\"item.config\"></thy-notify>\n  }\n</div>\n<div class=\"thy-notify-topLeft\" [style.top.px]=\"offset\" [style.left.px]=\"offset\">\n  @for (item of notifyQueue.topLeftQueues(); track item.id) {\n    <thy-notify [thyConfig]=\"item.config\"></thy-notify>\n  }\n</div>\n<div class=\"thy-notify-topRight\" [style.top.px]=\"offset\" [style.right.px]=\"offset\">\n  @for (item of notifyQueue.topRightQueues(); track item.id) {\n    <thy-notify [thyConfig]=\"item.config\"></thy-notify>\n  }\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyNotify } from './notify.component';\nimport { ThyNotifyContainer } from './notify-container.component';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { THY_NOTIFY_DEFAULT_CONFIG_PROVIDER } from './notify.config';\nimport { ThySharedModule } from 'ngx-tethys/shared';\n\n@NgModule({\n    imports: [CommonModule, ThySharedModule, OverlayModule, PortalModule, ThyIconModule, ThyNotifyContainer, ThyNotify],\n    exports: [ThyNotifyContainer, ThyNotify],\n    providers: [THY_NOTIFY_DEFAULT_CONFIG_PROVIDER]\n})\nexport class ThyNotifyModule {}\n","import { ThyAbstractMessageRef } from 'ngx-tethys/message';\nimport { ThyNotifyConfig } from './notify.config';\n\nexport class ThyNotifyRef extends ThyAbstractMessageRef<ThyNotifyConfig> {}\n","import { isString } from 'ngx-tethys/util';\nimport { Injectable, Injector, Signal, inject } from '@angular/core';\nimport { ThyGlobalNotifyConfig, ThyNotifyConfig, THY_NOTIFY_DEFAULT_CONFIG, THY_NOTIFY_DEFAULT_CONFIG_VALUE } from './notify.config';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ThyNotifyRef } from './notify-ref';\nimport { ThyNotifyContainer } from './notify-container.component';\nimport { ThyNotifyQueue } from './notify-queue.service';\nimport { ThyAbstractMessageService } from 'ngx-tethys/message';\nimport { ComponentTypeOrTemplateRef } from 'ngx-tethys/core';\nimport { injectLocale, ThyNotifyLocale } from 'ngx-tethys/i18n';\n\n/**\n * @order 20\n */\n@Injectable({\n    providedIn: 'root'\n})\nexport class ThyNotifyService extends ThyAbstractMessageService<ThyNotifyContainer> {\n    private notifyQueue: ThyNotifyQueue;\n    protected config = inject(THY_NOTIFY_DEFAULT_CONFIG);\n    public locale: Signal<ThyNotifyLocale> = injectLocale('notify');\n\n    private _lastNotifyId = 0;\n\n    private defaultConfig: ThyGlobalNotifyConfig;\n\n    constructor() {\n        const overlay = inject(Overlay);\n        const injector = inject(Injector);\n        const notifyQueue = inject(ThyNotifyQueue);\n\n        super(overlay, injector, notifyQueue);\n        this.notifyQueue = notifyQueue;\n        const config = this.config;\n\n        this.defaultConfig = {\n            ...THY_NOTIFY_DEFAULT_CONFIG_VALUE,\n            ...config\n        };\n    }\n\n    /**\n     * 打开自定义配置的 Notify\n     */\n    public show(config: ThyNotifyConfig): ThyNotifyRef {\n        this.container = this.createContainer(ThyNotifyContainer);\n\n        const notifyConfig = this.formatOptions(config);\n        const notifyRef = new ThyNotifyRef(notifyConfig, this.overlayRef, this.notifyQueue);\n        this.notifyQueue.add(notifyRef);\n        return notifyRef;\n    }\n\n    /**\n     * 打开类型为\"success\"的 Notify\n     */\n    public success(title?: string, content?: string | ComponentTypeOrTemplateRef<any>, config?: ThyNotifyConfig) {\n        return this.show({\n            ...(config || {}),\n            type: 'success',\n            title: title || config?.title || this.locale().success,\n            content: content || config?.content\n        });\n    }\n\n    /**\n     * 打开类型为\"info\"的 Notify\n     */\n    public info(title?: string, content?: string | ComponentTypeOrTemplateRef<any>, config?: ThyNotifyConfig) {\n        return this.show({\n            ...(config || {}),\n            type: 'info',\n            title: title || config?.title || this.locale().info,\n            content: content || config?.content\n        });\n    }\n\n    /**\n     * 打开类型为\"warning\"的 Notify\n     */\n    public warning(title?: string, content?: string | ComponentTypeOrTemplateRef<any>, config?: ThyNotifyConfig) {\n        return this.show({\n            ...(config || {}),\n            type: 'warning',\n            title: title || config?.title || this.locale().warning,\n            content: content || config?.content\n        });\n    }\n\n    /**\n     * 打开类型为\"error\"的 Notify\n     */\n    public error(title?: string, content?: string | ComponentTypeOrTemplateRef<any>, config?: ThyNotifyConfig) {\n        return this.show({\n            ...(config || {}),\n            type: 'error',\n            title: title || config?.title || this.locale().error,\n            content: content || config?.content\n        });\n    }\n\n    private formatOptions(config: ThyNotifyConfig) {\n        if (isString(config.detail)) {\n            config = { ...config, detail: { link: `[${this.locale().detail}]`, content: config.detail as string } };\n        }\n        return Object.assign({ type: 'blank' }, { id: String(this._lastNotifyId++) }, this.defaultConfig, config);\n    }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MA2Ea,yBAAyB,GAAG,IAAI,cAAc,CAAwB,2BAA2B;AAEvG,MAAM,+BAA+B,GAA0B;AAClE,IAAA,SAAS,EAAE,UAAU;AACrB,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,YAAY,EAAE,IAAI;AAClB,IAAA,QAAQ,EAAE;;AAGP,MAAM,kCAAkC,GAAG;AAC9C,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,QAAQ,EAAE;;;AClFd;;AAEG;AAIG,MAAO,cAAe,SAAQ,uBAAqC,CAAA;AAiBrE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,aAAa,GAAG,MAAM,CAAC,yBAAyB,CAAC;AAEvD,QAAA,KAAK,CAAC;AACF,YAAA,GAAG,+BAA+B;AAClC,YAAA,GAAG;AACN,SAAA,CAAC;AAtBN,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAK;AAC1B,YAAA,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC;QAC5E,CAAC;0FAAC;AAEF,QAAA,IAAA,CAAA,cAAc,GAAG,QAAQ,CAAC,MAAK;AAC3B,YAAA,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,KAAK,UAAU,CAAC;QAC7E,CAAC;2FAAC;AAEF,QAAA,IA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