ngx-tethys 18.1.0 → 18.2.0-next.0

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/alert/styles/mixin.scss +1 -1
  3. package/anchor/style/anchor.scss +4 -2
  4. package/avatar/styles/avatar.scss +1 -1
  5. package/back-top/styles/back-top.scss +3 -3
  6. package/button/styles/button-group.scss +9 -9
  7. package/button/styles/button.scss +2 -6
  8. package/button/styles/mixin.scss +6 -53
  9. package/calendar/styles/calendar.scss +3 -11
  10. package/card/styles/card.scss +3 -3
  11. package/carousel/styles/carousel.scss +10 -10
  12. package/cascader/styles/cascader.scss +3 -2
  13. package/collapse/styles/collapse.scss +4 -2
  14. package/color-picker/styles/alpha.scss +1 -1
  15. package/color-picker/styles/color-picker-panel.scss +1 -1
  16. package/color-picker/styles/hue.scss +1 -1
  17. package/color-picker/styles/saturation.scss +1 -1
  18. package/comment/styles/mixin.scss +1 -1
  19. package/core/index.d.ts +1 -0
  20. package/core/overlay/abstract-overlay.config.d.ts +5 -0
  21. package/core/theme/index.d.ts +2 -0
  22. package/core/theme/store.d.ts +11 -0
  23. package/core/theme/theme.d.ts +5 -0
  24. package/date-picker/styles/calendar.scss +1 -1
  25. package/date-picker/styles/decade-panel.scss +1 -1
  26. package/date-picker/styles/picker.scss +1 -1
  27. package/date-picker/styles/range-picker.scss +3 -3
  28. package/date-picker/styles/year-panel.scss +2 -2
  29. package/dialog/styles/dialog.scss +6 -6
  30. package/drag-drop/drag-content.directive.d.ts +1 -0
  31. package/drag-drop/drag-drop.service.d.ts +1 -0
  32. package/drag-drop/drag-handle.directive.d.ts +1 -0
  33. package/drag-drop/drag.directive.d.ts +1 -0
  34. package/drag-drop/drop-container.directive.d.ts +2 -5
  35. package/drag-drop/module.d.ts +4 -0
  36. package/dropdown/styles/dropdown.scss +3 -3
  37. package/empty/styles/empty.scss +22 -2
  38. package/esm2022/carousel/carousel.component.mjs +3 -3
  39. package/esm2022/core/index.mjs +2 -1
  40. package/esm2022/core/overlay/abstract-overlay.config.mjs +1 -1
  41. package/esm2022/core/overlay/abstract-overlay.service.mjs +2 -2
  42. package/esm2022/core/theme/index.mjs +3 -0
  43. package/esm2022/core/theme/store.mjs +42 -0
  44. package/esm2022/core/theme/theme.mjs +2 -0
  45. package/esm2022/dialog/dialog-container.component.mjs +2 -2
  46. package/esm2022/drag-drop/drag-content.directive.mjs +2 -1
  47. package/esm2022/drag-drop/drag-drop.service.mjs +2 -1
  48. package/esm2022/drag-drop/drag-handle.directive.mjs +2 -1
  49. package/esm2022/drag-drop/drag.directive.mjs +2 -1
  50. package/esm2022/drag-drop/drop-container.directive.mjs +2 -1
  51. package/esm2022/drag-drop/module.mjs +9 -2
  52. package/esm2022/empty/svgs.mjs +103 -8
  53. package/esm2022/guider/guider-hint/guider-hint.component.mjs +3 -3
  54. package/esm2022/notify/notify.component.mjs +3 -3
  55. package/esm2022/result/result.component.mjs +3 -3
  56. package/esm2022/table/table-skeleton.component.mjs +3 -3
  57. package/esm2022/version.mjs +2 -2
  58. package/esm2022/watermark/config.mjs +2 -2
  59. package/esm2022/watermark/watermark.directive.mjs +18 -10
  60. package/fesm2022/ngx-tethys-carousel.mjs +2 -2
  61. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  62. package/fesm2022/ngx-tethys-core.mjs +43 -3
  63. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  64. package/fesm2022/ngx-tethys-dialog.mjs +1 -1
  65. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  66. package/fesm2022/ngx-tethys-drag-drop.mjs +13 -2
  67. package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
  68. package/fesm2022/ngx-tethys-empty.mjs +102 -7
  69. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  70. package/fesm2022/ngx-tethys-guider.mjs +2 -2
  71. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  72. package/fesm2022/ngx-tethys-notify.mjs +2 -2
  73. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  74. package/fesm2022/ngx-tethys-result.mjs +2 -2
  75. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  76. package/fesm2022/ngx-tethys-table.mjs +2 -2
  77. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  78. package/fesm2022/ngx-tethys-watermark.mjs +18 -10
  79. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  80. package/fesm2022/ngx-tethys.mjs +1 -1
  81. package/fesm2022/ngx-tethys.mjs.map +1 -1
  82. package/form/styles/form-check.scss +1 -1
  83. package/form/styles/forms.scss +2 -3
  84. package/form/styles/mixin.scss +6 -5
  85. package/guider/styles/guider-tip.scss +2 -1
  86. package/icon/examples/all/all.component.scss +3 -1
  87. package/image/styles/image.scss +15 -11
  88. package/input/styles/input-group.scss +1 -1
  89. package/input/styles/input.scss +2 -2
  90. package/layout/examples/sidebar/sidebar.component.scss +1 -1
  91. package/layout/styles/layout.scss +3 -3
  92. package/menu/examples/theme/theme.component.scss +0 -8
  93. package/menu/styles/theme.scss +4 -4
  94. package/message/styles/message.scss +1 -1
  95. package/nav/examples/basic/basic.component.scss +1 -1
  96. package/nav/examples/extra/extra.component.scss +1 -1
  97. package/nav/examples/fill/fill.component.scss +1 -1
  98. package/nav/examples/lite/lite.component.scss +1 -1
  99. package/nav/examples/pills/pills.component.scss +1 -1
  100. package/nav/examples/responsive/responsive.component.scss +1 -1
  101. package/nav/examples/size/size.component.scss +1 -1
  102. package/nav/examples/tabs/tabs.component.scss +1 -1
  103. package/nav/examples/type/type.component.scss +1 -1
  104. package/nav/examples/vertical/vertical.component.scss +1 -1
  105. package/notify/styles/notify.scss +4 -4
  106. package/package.json +1 -1
  107. package/pagination/styles/pagination.scss +2 -2
  108. package/popover/styles.scss +3 -3
  109. package/property/styles/properties.scss +1 -1
  110. package/resizable/examples/line/line.component.scss +3 -1
  111. package/resizable/examples/style.scss +7 -5
  112. package/result/styles/result.scss +25 -1
  113. package/schematics/version.d.ts +1 -1
  114. package/schematics/version.js +1 -1
  115. package/segment/styles/mixin.scss +2 -3
  116. package/segment/styles/segment.scss +1 -1
  117. package/select/styles/select.scss +1 -1
  118. package/shared/option/styles/option.mixin.scss +1 -1
  119. package/shared/select/styles/select.mixin.scss +2 -2
  120. package/slide/examples/drawer-container/drawer-container.component.scss +1 -1
  121. package/slide/examples/layout/layout.component.scss +4 -2
  122. package/slide/styles/slide.scss +3 -2
  123. package/slider/slider.scss +2 -2
  124. package/stepper/examples/basic/basic.component.scss +3 -1
  125. package/stepper/examples/icon/icon.component.scss +3 -1
  126. package/stepper/styles/stepper.scss +7 -3
  127. package/styles/bootstrap/_variables.scss +14 -876
  128. package/styles/bootstrap/utilities/_background.scss +27 -5
  129. package/styles/bootstrap/utilities/_text.scss +29 -31
  130. package/styles/index.scss +2 -1
  131. package/styles/mixins/background-variant.scss +2 -10
  132. package/styles/mixins/utilities.scss +2 -11
  133. package/styles/modules/cdk/drag-drop.scss +6 -8
  134. package/styles/modules/close.scss +1 -1
  135. package/styles/modules/reboot.scss +1 -1
  136. package/styles/modules/tables.scss +1 -1
  137. package/styles/modules/utils.scss +0 -17
  138. package/styles/theme/dark.scss +70 -0
  139. package/styles/theme/default.scss +70 -0
  140. package/styles/theme/index.scss +2 -0
  141. package/styles/variables.scss +114 -76
  142. package/switch/styles/mixin.scss +0 -13
  143. package/table/styles/table.scss +7 -19
  144. package/tabs/styles/tabs.scss +1 -1
  145. package/tag/styles/mixin.scss +7 -42
  146. package/tag/styles/tag.scss +2 -2
  147. package/time-picker/styles/time-panel.scss +1 -1
  148. package/timeline/styles/timeline.scss +2 -2
  149. package/tooltip/styles.scss +4 -4
  150. package/transfer/styles/transfer.scss +2 -2
  151. package/tree/styles/tree.scss +3 -5
  152. package/watermark/config.d.ts +1 -1
  153. package/watermark/watermark.directive.d.ts +23 -2
  154. package/carousel/styles/index.scss +0 -1
  155. package/carousel/styles/variables.scss +0 -5
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-tethys-guider.mjs","sources":["../../../src/guider/guider-manager.ts","../../../src/guider/utils.ts","../../../src/guider/guider-step-ref.ts","../../../src/guider/guider.class.ts","../../../src/guider/guider-ref.ts","../../../src/guider/guider.service.ts","../../../src/guider/guider.directive.ts","../../../src/guider/guider-hint/guider-hint.component.ts","../../../src/guider/guider-hint/guider-hint.component.html","../../../src/guider/guider.module.ts","../../../src/guider/ngx-tethys-guider.ts"],"sourcesContent":["import { ThyGuiderRef } from './guider-ref';\nimport { Injectable } from '@angular/core';\n\n/**\n * @public\n * @order 60\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyGuiderManager {\n private targetListMap = {};\n\n private thyGuiderRef: ThyGuiderRef;\n\n private activeStepKey: string;\n\n constructor() {}\n\n public updateActive(key: string, guiderRef: ThyGuiderRef) {\n this.activeStepKey = key;\n this.thyGuiderRef = guiderRef;\n }\n\n public addStepTarget(key: string, el: HTMLElement) {\n this.targetListMap[key] = el;\n }\n\n public removeStepTarget(key: string) {\n delete this.targetListMap[key];\n }\n\n public getActiveTarget(key: string): HTMLElement {\n return this.targetListMap[key];\n }\n\n public getActive(): { key: string; guiderRef: ThyGuiderRef } {\n return {\n key: this.activeStepKey,\n guiderRef: this.thyGuiderRef\n };\n }\n}\n","import { SafeAny } from 'ngx-tethys/types';\nimport { isArray, isNumber, isObject } from 'ngx-tethys/util';\n\nexport function isPositionDataType(target: any): target is { x: number; y: number } {\n if (isObject(target) && !isArray(target)) {\n if (isNumber((target as SafeAny).x) && isNumber((target as SafeAny).y)) {\n return true;\n }\n }\n return false;\n}\n","import { Overlay } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Renderer2, RendererFactory2 } from '@angular/core';\nimport { ThyPopover, ThyPopoverConfig, ThyPopoverRef } from 'ngx-tethys/popover';\nimport { coerceArray, isArray, isNull, isString, isUndefinedOrNull } from 'ngx-tethys/util';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { ThyGuiderManager } from './guider-manager';\nimport { ThyGuiderRef } from './guider-ref';\nimport { ThyGuiderStep } from './guider.class';\nimport { isPositionDataType } from './utils';\n\nconst pointContainerSize = 28;\n\n/**\n * @public\n * @order 50\n */\nexport class ThyGuiderStepRef {\n private renderer: Renderer2;\n\n private lastPointerContainer: any;\n\n private lastTargetElement: Element;\n\n private targetElementObserver: Subscription;\n\n private lastTipContainer: any;\n\n private guiderRef: ThyGuiderRef;\n\n private lastPopoverRef: ThyPopoverRef<any>;\n\n constructor(\n public step: ThyGuiderStep,\n public stepIndex: number,\n private readonly rendererFactory: RendererFactory2,\n private popover: ThyPopover,\n private guiderManager: ThyGuiderManager,\n private overlay: Overlay,\n @Inject(DOCUMENT) private document: Document\n ) {\n this.renderer = this.rendererFactory.createRenderer(null, null);\n }\n\n public show(guiderRef: ThyGuiderRef) {\n this.guiderRef = guiderRef;\n this.createPoint(this.step, guiderRef);\n }\n\n public dispose() {\n this.removeLastPointContainer();\n this.removeTip();\n }\n\n private getTargetElement(step: ThyGuiderStep) {\n let targetElement: HTMLElement;\n\n if (step.target && !isPositionDataType(step.target)) {\n const target = [...coerceArray(step.target)];\n\n while (target.length && isUndefinedOrNull(targetElement)) {\n targetElement = this.document.querySelector(target.shift());\n }\n } else {\n targetElement = this.guiderManager.getActiveTarget(step.key);\n }\n return targetElement;\n }\n\n private createPoint(step: ThyGuiderStep, guiderRef: ThyGuiderRef) {\n // target 为空并且 guiderManager 中的 targetMap 也没有此step 的 key,或者 target 直接为 坐标数组\n // 则执行无 target 的显示\n if (!this.isTipHasTarget(step)) {\n this.createTip(this.step);\n return;\n }\n\n const targetElement = this.getTargetElement(step);\n\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && isNull(targetElement)) {\n throw new Error(`there is no target called ${coerceArray(step.target).join(' or ')}`);\n }\n this.targetElementObserver = fromEvent(targetElement, 'click').subscribe(() => {\n guiderRef.targetClicked().next(step);\n });\n const positionValue = targetElement?.style?.position;\n if (!positionValue || positionValue === 'static') {\n this.renderer.setStyle(targetElement, 'position', 'relative');\n }\n this.setStyleForPointContainer(step, targetElement);\n }\n\n private setStyleForPointContainer(step: ThyGuiderStep, targetElement: Element) {\n const pointPosition = this.getPointPosition(step, targetElement);\n const pointContainer = this.setPointPosition(pointPosition);\n\n this.renderPoint(targetElement, pointContainer);\n }\n\n private getPointPosition(step: ThyGuiderStep, targetElement: Element): [number, number] {\n const targetElementClientRect = targetElement.getBoundingClientRect();\n const { width: targetElementWidth, height: targetElementHeight } = targetElementClientRect;\n const pointOffset = step.pointOffset;\n // 只通过 pointOffset 控制 point 的位置,默认在 target 的右下角,\n // offset 的基点也为默认位置\n return [targetElementWidth + pointOffset[0], targetElementHeight + pointOffset[1]];\n }\n\n private setPointPosition(pointPosition: [number, number]) {\n const currentPointContainer = this.renderer.createElement('div');\n\n this.renderer.addClass(currentPointContainer, 'thy-guider-highlight-container');\n if (this.guiderRef.config.pointClass) {\n this.addPointClass(currentPointContainer, this.guiderRef.config.pointClass);\n }\n this.renderer.setStyle(currentPointContainer, 'position', 'absolute');\n this.renderer.setStyle(currentPointContainer, 'left', pointPosition[0] + 'px');\n this.renderer.setStyle(currentPointContainer, 'top', pointPosition[1] + 'px');\n this.renderer.setStyle(currentPointContainer, 'transform', 'translate(-100%,-100%)');\n\n return currentPointContainer;\n }\n\n private addPointClass(el: any, pointClass: string | string[]) {\n if (isString(pointClass)) {\n this.renderer.addClass(el, pointClass);\n }\n if (isArray(pointClass)) {\n pointClass.forEach(classItem => {\n this.renderer.addClass(el, classItem);\n });\n }\n }\n\n private renderPoint(targetElement: Element, pointContainer: any) {\n this.renderer.appendChild(targetElement, pointContainer);\n this.lastPointerContainer = pointContainer;\n this.lastTargetElement = targetElement;\n this.createTip(this.step);\n }\n\n private removeLastPointContainer() {\n if (this.lastPointerContainer) {\n this.renderer.removeChild(this.document.body, this.lastPointerContainer);\n this.lastPointerContainer = undefined;\n }\n }\n\n private createTip(step: ThyGuiderStep) {\n if (this.isTipHasTarget(step)) {\n this.tipWithTarget(step);\n } else {\n this.tipWithoutTarget(step);\n }\n }\n\n private tipWithoutTarget(step: ThyGuiderStep) {\n const position = this.getTipPosition(step);\n this.lastPopoverRef = this.popover.open(this.guiderRef.config.hintComponent, {\n origin: null,\n originPosition: position,\n originActiveClass: '',\n panelClass: this.guiderRef.config.hintClass || '',\n backdropClosable: false,\n hasBackdrop: false,\n manualClosure: true,\n initialState: {\n guiderRef: this.guiderRef,\n stepRef: this\n },\n scrollStrategy: this.overlay.scrollStrategies.block()\n });\n }\n\n private getTipPosition(step: ThyGuiderStep): { x: number; y: number } {\n if (isPositionDataType(step.target)) {\n return step.target;\n }\n return this.guiderRef.config.defaultPosition;\n }\n\n private createTipContainer() {\n const tipContainer = this.renderer.createElement('div');\n this.renderer.addClass(tipContainer, 'thy-guider-content-container');\n this.renderer.setStyle(tipContainer, 'position', 'absolute');\n this.renderer.setStyle(tipContainer, 'top', '0px');\n this.renderer.setStyle(tipContainer, 'right', '0px');\n this.renderer.setStyle(tipContainer, 'bottom', '0px');\n this.renderer.setStyle(tipContainer, 'left', '0px');\n return tipContainer;\n }\n\n private tipWithTarget(step: ThyGuiderStep) {\n const targetElement = this.getTargetElement(step);\n const hintContainer = this.createTipContainer();\n\n this.renderer.appendChild(targetElement, hintContainer);\n this.lastTipContainer = hintContainer;\n\n const popoverConfig = {\n origin: hintContainer,\n placement: step.hintPlacement,\n panelClass: this.guiderRef.config.hintClass || '',\n backdropClosable: false,\n hasBackdrop: false,\n manualClosure: true,\n initialState: {\n guiderRef: this.guiderRef,\n stepRef: this\n },\n scrollStrategy: this.overlay.scrollStrategies.block()\n } as ThyPopoverConfig<any>;\n\n const pointPosition = this.getPointPosition(step, targetElement);\n const hintOffset = this.getTipOffset(step, pointPosition, targetElement);\n if (hintOffset) {\n popoverConfig.offset = hintOffset;\n }\n this.lastPopoverRef = this.popover.open(this.guiderRef.config.hintComponent, popoverConfig);\n }\n\n private getTipOffset(step: ThyGuiderStep, pointPosition: [number, number], targetElement: Element): number {\n const hintPlacement = step.hintPlacement;\n const targetElementClientRect = targetElement.getBoundingClientRect();\n const { width: targetElementWidth, height: targetElementHeight } = targetElementClientRect;\n let hintOffset: number = step.hintOffset || 0;\n const pointXAxisOffset = pointPosition[0];\n const pointYAxisOffset = pointPosition[1];\n\n if (hintPlacement.startsWith('top')) {\n if (pointYAxisOffset < pointContainerSize) {\n hintOffset = hintOffset + Math.abs(pointYAxisOffset) + pointContainerSize;\n }\n } else if (hintPlacement.startsWith('bottom')) {\n if (pointYAxisOffset > targetElementHeight) {\n hintOffset = hintOffset + (pointYAxisOffset - targetElementHeight) + 10; // 10 为空隙量\n }\n } else if (hintPlacement.startsWith('left')) {\n if (pointXAxisOffset < 0) {\n hintOffset = hintOffset + Math.abs(pointXAxisOffset) + pointContainerSize;\n }\n } else if (hintPlacement.startsWith('right')) {\n if (pointXAxisOffset > targetElementWidth) {\n hintOffset = hintOffset + (pointXAxisOffset - targetElementWidth) + 10; // 10 为空隙量\n }\n }\n return hintOffset;\n }\n\n private removeTip() {\n if (this.lastPopoverRef) {\n this.lastPopoverRef.close();\n this.lastPopoverRef = undefined;\n }\n if (this.lastTipContainer) {\n this.renderer.removeChild(this.document.body, this.lastTipContainer);\n this.lastTipContainer = undefined;\n }\n if (this.lastTargetElement && this.targetElementObserver) {\n this.targetElementObserver.unsubscribe();\n this.lastTargetElement = undefined;\n this.targetElementObserver = undefined;\n }\n }\n\n private isTipHasTarget(step: ThyGuiderStep): boolean {\n if (step.target) {\n return !isPositionDataType(step.target);\n } else {\n return !!this.guiderManager.getActiveTarget(step.key);\n }\n }\n}\n","import { Type } from '@angular/core';\nimport { ThyPlacement } from 'ngx-tethys/core';\n\n/**\n * @public\n * @order 30\n */\nexport interface ThyGuiderStep<TData = any> {\n /**\n * 步骤的唯一标识符\n */\n key: string;\n\n /**\n * 步骤的目标DOM selectors,如果为 [number,number] 类型则是相对浏览器视窗的位置\n * @type string | string[] | { x: number; y: number }\n */\n target?: string | string[] | { x: number; y: number };\n\n /**\n * 新手引导内容组件的值\n */\n data: TData;\n\n /**\n * 步骤对应的路由\n */\n route?: string;\n\n /**\n * 当前步骤内容组件基于 target 元素的方位\n */\n hintPlacement?: ThyPlacement;\n\n /**\n * 当前步骤内容组件基于位置的偏移量(与 popover 中 offset 相同作用)\n */\n hintOffset?: number;\n\n /**\n * 当前步骤高亮圆圈基于默认位置的偏移量\n */\n pointOffset?: [number, number];\n}\n\n/**\n * 新手引导服务的配置项\n * @public\n * @order 20\n */\nexport class ThyGuiderConfig {\n /**\n * 新手引导内容组件\n */\n hintComponent?: Type<unknown>;\n\n /**\n * 新手引导步骤信息\n * @type ThyGuiderStep[]\n */\n steps: ThyGuiderStep[];\n\n /**\n * 新手引导内容组件基于 target 元素的方位\n */\n hintPlacement?: ThyPlacement;\n\n /**\n * 新手引导内容组件默认位置(基于浏览器视窗,优先级小于 hintPlacement\n */\n defaultPosition?: { x: number; y: number };\n\n /**\n * 新手引导高亮圆圈基于默认位置的偏移量\n */\n pointOffset?: [number, number];\n\n /**\n * 新手引导内容组件基于位置的偏移量(与 popover 中 offset 相同作用)\n */\n hintOffset?: number;\n\n /**\n * 新手引导弹窗的自定义类\n * @type string | string[]\n */\n hintClass?: string | string[];\n\n /**\n * 新手引导point的自定义类\n * @type string | string[]\n */\n pointClass?: string | string[];\n}\n\nexport const defaultGuiderPositionConfig = {\n hintComponent: null as Type<unknown>,\n hintPlacement: 'rightBottom',\n defaultPosition: { x: 0, y: 0 },\n pointOffset: [0, 0],\n hintOffset: 4\n};\n","import { Router } from '@angular/router';\nimport { helpers } from 'ngx-tethys/util';\nimport { DOCUMENT } from '@angular/common';\nimport { ThyPopover } from 'ngx-tethys/popover';\nimport { ThyGuiderManager } from './guider-manager';\nimport { ThyGuiderStepRef } from './guider-step-ref';\nimport { Observable, ReplaySubject, Subject } from 'rxjs';\nimport { ThyGuiderConfig, ThyGuiderStep } from './guider.class';\nimport { Inject, NgZone, RendererFactory2 } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\n\nexport class ThyGuiderRef {\n public steps: ThyGuiderStep[];\n\n private stepChange$: ReplaySubject<ThyGuiderStep> = new ReplaySubject<ThyGuiderStep>();\n\n private guiderEnded$ = new Subject();\n\n private closed$ = new Subject<ThyGuiderStep>();\n\n private targetClicked$ = new Subject<ThyGuiderStep>();\n\n private currentStep: ThyGuiderStep;\n\n private currentStepIndex: number;\n\n private stepsRef: ThyGuiderStepRef[];\n\n constructor(\n public config: ThyGuiderConfig,\n private rendererFactory: RendererFactory2,\n private popover: ThyPopover,\n private router: Router,\n private guiderManager: ThyGuiderManager,\n private ngZone: NgZone,\n private overlay: Overlay,\n @Inject(DOCUMENT) private document: any\n ) {\n this.stepsRef = config.steps.map((step, index) => {\n return new ThyGuiderStepRef(step, index, this.rendererFactory, this.popover, this.guiderManager, this.overlay, this.document);\n });\n this.steps = config.steps;\n }\n\n public stepChange(): Observable<ThyGuiderStep> {\n return this.stepChange$.asObservable();\n }\n\n public ended() {\n return this.guiderEnded$;\n }\n\n public closed() {\n return this.closed$;\n }\n\n public targetClicked() {\n return this.targetClicked$;\n }\n\n public start(startWith?: number) {\n this.to(startWith);\n\n return this.stepChange();\n }\n\n public next() {\n if (this.currentStepIndex + 1 > this.steps.length) {\n return;\n }\n this.to(this.currentStepIndex + 1);\n }\n\n public previous() {\n if (this.currentStepIndex - 1 < 0) {\n return;\n }\n\n this.to(this.currentStepIndex - 1);\n }\n\n public active(indexOrKey: number | string): void {\n if (helpers.isNumber(indexOrKey)) {\n this.to(indexOrKey as number);\n return;\n }\n if (helpers.isString(indexOrKey)) {\n const index = this.steps.findIndex(step => step.key === (indexOrKey as string));\n this.to(index);\n return;\n }\n }\n\n private to(index: number): void {\n this.removeExistedStep();\n\n if (!helpers.isNumber(index) || index >= this.steps.length || index < 0 || Number.isNaN(index)) {\n index = 0;\n }\n this.currentStep = this.steps[index];\n this.currentStepIndex = index;\n\n // update guiderManager\n this.guiderManager.updateActive(this.currentStep.key, this);\n if (this.currentStep.route && this.currentStep.route !== this.router.url) {\n this.ngZone.run(() => {\n this.router.navigateByUrl(this.currentStep.route);\n });\n return;\n }\n setTimeout(() => {\n this.drawStep();\n this.notifyStepClicked();\n }, 0);\n }\n\n public close() {\n this.removeManagerActiveKey();\n this.stepsRef[this.currentStepIndex]?.dispose();\n this.closed$.next(this.currentStep);\n }\n\n public end() {\n this.close();\n this.guiderEnded$.next(this.currentStep);\n this.notifyGuiderIsFinished();\n }\n\n private removeManagerActiveKey() {\n const activeKey = this.guiderManager.getActive().key;\n if (activeKey && this.steps.some(step => step.key === activeKey)) {\n this.guiderManager.updateActive('', undefined);\n }\n }\n\n private notifyStepClicked() {\n this.stepChange$.next(this.currentStep);\n }\n\n private drawStep() {\n this.removeExistedStep();\n this.stepsRef[this.currentStepIndex].show(this);\n }\n\n private notifyGuiderIsFinished() {\n this.stepChange$.complete();\n // this.targetClicked().unsubscribe();\n this.currentStepIndex = 0;\n }\n\n private removeExistedStep() {\n this.stepsRef[this.currentStepIndex]?.dispose();\n }\n}\n","import { Router } from '@angular/router';\nimport { helpers } from 'ngx-tethys/util';\nimport { DOCUMENT } from '@angular/common';\nimport { ThyGuiderRef } from './guider-ref';\nimport { NgZone, inject } from '@angular/core';\nimport { ThyPopover } from 'ngx-tethys/popover';\nimport { ThyGuiderManager } from './guider-manager';\nimport { Injectable, RendererFactory2 } from '@angular/core';\nimport { ThyGuiderStep, ThyGuiderConfig, defaultGuiderPositionConfig } from './guider.class';\nimport { Overlay } from '@angular/cdk/overlay';\n\n/**\n * 新手引导服务\n * @public\n * @order 10\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyGuider {\n private readonly rendererFactory = inject(RendererFactory2);\n private popover = inject(ThyPopover);\n private router = inject(Router);\n private guiderManager = inject(ThyGuiderManager);\n private ngZone = inject(NgZone);\n private overlay = inject(Overlay);\n private document = inject(DOCUMENT);\n\n private guiderRef: ThyGuiderRef;\n\n private guiderRefs: ThyGuiderRef[] = [];\n\n public create(config: ThyGuiderConfig): ThyGuiderRef {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!config || !config?.steps || !helpers.isArray(config?.steps)) {\n throw new Error(`'config.steps' must be an array of length greater than 0`);\n }\n }\n const normalizeConfig = this.normalizeConfig(config);\n this.guiderRef = new ThyGuiderRef(\n normalizeConfig,\n this.rendererFactory,\n this.popover,\n this.router,\n this.guiderManager,\n this.ngZone,\n this.overlay,\n this.document\n );\n this.guiderRef.closed().subscribe(() => {\n const index = this.guiderRefs.findIndex(guiderRef => guiderRef === this.guiderRef);\n this.guiderRefs.splice(index, 1);\n });\n this.guiderRefs.push(this.guiderRef);\n return this.guiderRef;\n }\n\n private normalizeConfig(config: ThyGuiderConfig): ThyGuiderConfig {\n const normalizeConfig = Object.assign({}, defaultGuiderPositionConfig, config);\n normalizeConfig.steps = normalizeConfig.steps.map(step => {\n return this.normalizeStep(step, normalizeConfig);\n });\n return normalizeConfig;\n }\n\n private normalizeStep(step: ThyGuiderStep, config: ThyGuiderConfig): ThyGuiderStep {\n const tempStep = Object.assign(\n {\n hintPlacement: config.hintPlacement,\n hintOffset: config.hintOffset,\n pointOffset: config.pointOffset\n },\n step\n );\n\n return tempStep;\n }\n\n close() {\n if (this.guiderRefs.length > 0) {\n const lasGuiderRef = this.guiderRefs[this.guiderRefs.length - 1];\n if (lasGuiderRef) {\n lasGuiderRef.close();\n this.guiderRefs.pop();\n }\n }\n }\n}\n","import { ThyGuiderManager } from './guider-manager';\nimport { AfterViewInit, Directive, ElementRef, Input, OnDestroy, OnInit, NgZone, inject } from '@angular/core';\nimport { take } from 'rxjs/operators';\n\n/**\n * 标记新手引导的步骤的target,使用指令方式的新手引导支持多路由跳转\n * @name thyGuiderTarget\n * @order 40\n */\n@Directive({\n selector: '[thyGuiderTarget]',\n exportAs: 'thyGuiderTarget',\n standalone: true\n})\nexport class ThyGuiderTargetDirective implements OnInit, OnDestroy, AfterViewInit {\n private guiderManager = inject(ThyGuiderManager);\n private el = inject(ElementRef);\n private ngZone = inject(NgZone);\n\n /**\n * 标记当前元素对应的新手引导中 step 的 key\n */\n @Input('thyGuiderTarget')\n target: string;\n\n ngOnInit() {\n this.guiderManager.addStepTarget(this.target, this.el.nativeElement);\n this.ngZone.onStable.pipe(take(1)).subscribe(() => {\n const { key, guiderRef } = this.guiderManager.getActive();\n if (key === this.target) {\n const index = guiderRef.steps.findIndex(step => step.key === this.target);\n this.ngZone.run(() => {\n guiderRef.active(index);\n });\n }\n });\n }\n\n ngAfterViewInit() {}\n\n ngOnDestroy() {\n const { guiderRef } = this.guiderManager.getActive();\n if (guiderRef) {\n guiderRef.close();\n }\n this.guiderManager.removeStepTarget(this.target);\n }\n}\n","import { HostBinding, Component, OnInit, TemplateRef } from '@angular/core';\nimport { ThyGuiderRef } from '../guider-ref';\nimport { helpers } from 'ngx-tethys/util';\nimport { defaultGuiderPositionConfig, ThyGuiderStep } from '../guider.class';\nimport { ThyGuiderStepRef } from '../guider-step-ref';\nimport { NgTemplateOutlet, NgClass } from '@angular/common';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-guider-hint',\n templateUrl: 'guider-hint.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, NgClass]\n})\nexport class ThyGuiderHint implements OnInit {\n @HostBinding('class.thy-guider-tip-container') guiderHint = true;\n\n public guiderRef: ThyGuiderRef;\n\n public stepRef: ThyGuiderStepRef;\n\n public descriptionString: string;\n\n public descriptionTemplateRef: TemplateRef<any>;\n\n public currentStepIndex: number;\n\n constructor() {}\n\n ngOnInit() {\n this.setDescription(this.stepRef.step.data.description);\n }\n\n private setDescription(value: string | TemplateRef<any>) {\n if (helpers.isString(value)) {\n this.descriptionString = value as string;\n } else {\n this.descriptionTemplateRef = value as TemplateRef<any>;\n }\n }\n\n public jump() {\n this.guiderRef.end();\n }\n\n public prev() {\n this.guiderRef.previous();\n }\n\n public next() {\n this.guiderRef.next();\n }\n\n public end() {\n this.guiderRef.end();\n }\n\n public trackByFn(index: number, step: ThyGuiderStep) {\n return step.key || index;\n }\n}\n\ndefaultGuiderPositionConfig.hintComponent = ThyGuiderHint;\n","<div class=\"thy-guider-tip-top\">\n <img [src]=\"stepRef.step.data.image\" [alt]=\"stepRef.step.data.title\" />\n <a href=\"javascript:;\" class=\"thy-guider-tip-top-btn\" (click)=\"jump()\">跳过</a>\n</div>\n<div class=\"thy-guider-tip-content bg-white\">\n <div class=\"thy-guider-tip-content-title\">{{ stepRef.step.data.title }}</div>\n <div class=\"thy-guider-tip-content-description\">\n @if (descriptionTemplateRef) {\n <ng-template [ngTemplateOutlet]=\"descriptionTemplateRef\"></ng-template>\n } @else {\n {{ descriptionString }}\n }\n </div>\n <div class=\"thy-guider-tip-step\">\n <div class=\"thy-guider-tip-step-pagination\">\n @for (step of guiderRef.steps; track trackByFn(i, step); let i = $index) {\n <span\n class=\"pagination-item\"\n [ngClass]=\"{ active: i === stepRef.stepIndex }\"\n ></span>\n }\n </div>\n <div class=\"thy-guider-tip-step-btn\">\n @if (stepRef.stepIndex !== 0) {\n <a href=\"javascript:;\" (click)=\"prev()\" class=\"thy-guider-tip-step-pre\">上一步</a>\n }\n @if (stepRef.stepIndex !== guiderRef.steps.length - 1) {\n <a href=\"javascript:;\" (click)=\"next()\" class=\"thy-guider-tip-step-next\">下一步</a>\n } @else {\n <a href=\"javascript:;\" (click)=\"end()\" class=\"thy-guider-tip-step-next\">完成</a>\n }\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ThyGuider } from './guider.service';\nimport { CommonModule } from '@angular/common';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyButtonModule } from 'ngx-tethys/button';\nimport { ThyPopoverModule } from 'ngx-tethys/popover';\nimport { ThyGuiderTargetDirective } from './guider.directive';\nimport { ThyGuiderHint } from './guider-hint/guider-hint.component';\n\n@NgModule({\n imports: [CommonModule, ThySharedModule, ThyIconModule, ThyButtonModule, ThyPopoverModule, ThyGuiderHint, ThyGuiderTargetDirective],\n exports: [ThyGuiderHint, ThyGuiderTargetDirective],\n providers: [ThyGuider]\n})\nexport class ThyGuiderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA;;;AAGG;MAIU,gBAAgB,CAAA;AAOzB,IAAA,WAAA,GAAA;QANQ,IAAa,CAAA,aAAA,GAAG,EAAE,CAAC;KAMX;IAET,YAAY,CAAC,GAAW,EAAE,SAAuB,EAAA;AACpD,QAAA,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;KACjC;IAEM,aAAa,CAAC,GAAW,EAAE,EAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;KAChC;AAEM,IAAA,gBAAgB,CAAC,GAAW,EAAA;AAC/B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;KAClC;AAEM,IAAA,eAAe,CAAC,GAAW,EAAA;AAC9B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;KAClC;IAEM,SAAS,GAAA;QACZ,OAAO;YACH,GAAG,EAAE,IAAI,CAAC,aAAa;YACvB,SAAS,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC;KACL;8GA/BQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFb,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAET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I,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,wBAAwB,CAAC;oBAClD,SAAS,EAAE,CAAC,SAAS,CAAC;AACzB,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-tethys-guider.mjs","sources":["../../../src/guider/guider-manager.ts","../../../src/guider/utils.ts","../../../src/guider/guider-step-ref.ts","../../../src/guider/guider.class.ts","../../../src/guider/guider-ref.ts","../../../src/guider/guider.service.ts","../../../src/guider/guider.directive.ts","../../../src/guider/guider-hint/guider-hint.component.ts","../../../src/guider/guider-hint/guider-hint.component.html","../../../src/guider/guider.module.ts","../../../src/guider/ngx-tethys-guider.ts"],"sourcesContent":["import { ThyGuiderRef } from './guider-ref';\nimport { Injectable } from '@angular/core';\n\n/**\n * @public\n * @order 60\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyGuiderManager {\n private targetListMap = {};\n\n private thyGuiderRef: ThyGuiderRef;\n\n private activeStepKey: string;\n\n constructor() {}\n\n public updateActive(key: string, guiderRef: ThyGuiderRef) {\n this.activeStepKey = key;\n this.thyGuiderRef = guiderRef;\n }\n\n public addStepTarget(key: string, el: HTMLElement) {\n this.targetListMap[key] = el;\n }\n\n public removeStepTarget(key: string) {\n delete this.targetListMap[key];\n }\n\n public getActiveTarget(key: string): HTMLElement {\n return this.targetListMap[key];\n }\n\n public getActive(): { key: string; guiderRef: ThyGuiderRef } {\n return {\n key: this.activeStepKey,\n guiderRef: this.thyGuiderRef\n };\n }\n}\n","import { SafeAny } from 'ngx-tethys/types';\nimport { isArray, isNumber, isObject } from 'ngx-tethys/util';\n\nexport function isPositionDataType(target: any): target is { x: number; y: number } {\n if (isObject(target) && !isArray(target)) {\n if (isNumber((target as SafeAny).x) && isNumber((target as SafeAny).y)) {\n return true;\n }\n }\n return false;\n}\n","import { Overlay } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Renderer2, RendererFactory2 } from '@angular/core';\nimport { ThyPopover, ThyPopoverConfig, ThyPopoverRef } from 'ngx-tethys/popover';\nimport { coerceArray, isArray, isNull, isString, isUndefinedOrNull } from 'ngx-tethys/util';\nimport { fromEvent, Subscription } from 'rxjs';\nimport { ThyGuiderManager } from './guider-manager';\nimport { ThyGuiderRef } from './guider-ref';\nimport { ThyGuiderStep } from './guider.class';\nimport { isPositionDataType } from './utils';\n\nconst pointContainerSize = 28;\n\n/**\n * @public\n * @order 50\n */\nexport class ThyGuiderStepRef {\n private renderer: Renderer2;\n\n private lastPointerContainer: any;\n\n private lastTargetElement: Element;\n\n private targetElementObserver: Subscription;\n\n private lastTipContainer: any;\n\n private guiderRef: ThyGuiderRef;\n\n private lastPopoverRef: ThyPopoverRef<any>;\n\n constructor(\n public step: ThyGuiderStep,\n public stepIndex: number,\n private readonly rendererFactory: RendererFactory2,\n private popover: ThyPopover,\n private guiderManager: ThyGuiderManager,\n private overlay: Overlay,\n @Inject(DOCUMENT) private document: Document\n ) {\n this.renderer = this.rendererFactory.createRenderer(null, null);\n }\n\n public show(guiderRef: ThyGuiderRef) {\n this.guiderRef = guiderRef;\n this.createPoint(this.step, guiderRef);\n }\n\n public dispose() {\n this.removeLastPointContainer();\n this.removeTip();\n }\n\n private getTargetElement(step: ThyGuiderStep) {\n let targetElement: HTMLElement;\n\n if (step.target && !isPositionDataType(step.target)) {\n const target = [...coerceArray(step.target)];\n\n while (target.length && isUndefinedOrNull(targetElement)) {\n targetElement = this.document.querySelector(target.shift());\n }\n } else {\n targetElement = this.guiderManager.getActiveTarget(step.key);\n }\n return targetElement;\n }\n\n private createPoint(step: ThyGuiderStep, guiderRef: ThyGuiderRef) {\n // target 为空并且 guiderManager 中的 targetMap 也没有此step 的 key,或者 target 直接为 坐标数组\n // 则执行无 target 的显示\n if (!this.isTipHasTarget(step)) {\n this.createTip(this.step);\n return;\n }\n\n const targetElement = this.getTargetElement(step);\n\n if ((typeof ngDevMode === 'undefined' || ngDevMode) && isNull(targetElement)) {\n throw new Error(`there is no target called ${coerceArray(step.target).join(' or ')}`);\n }\n this.targetElementObserver = fromEvent(targetElement, 'click').subscribe(() => {\n guiderRef.targetClicked().next(step);\n });\n const positionValue = targetElement?.style?.position;\n if (!positionValue || positionValue === 'static') {\n this.renderer.setStyle(targetElement, 'position', 'relative');\n }\n this.setStyleForPointContainer(step, targetElement);\n }\n\n private setStyleForPointContainer(step: ThyGuiderStep, targetElement: Element) {\n const pointPosition = this.getPointPosition(step, targetElement);\n const pointContainer = this.setPointPosition(pointPosition);\n\n this.renderPoint(targetElement, pointContainer);\n }\n\n private getPointPosition(step: ThyGuiderStep, targetElement: Element): [number, number] {\n const targetElementClientRect = targetElement.getBoundingClientRect();\n const { width: targetElementWidth, height: targetElementHeight } = targetElementClientRect;\n const pointOffset = step.pointOffset;\n // 只通过 pointOffset 控制 point 的位置,默认在 target 的右下角,\n // offset 的基点也为默认位置\n return [targetElementWidth + pointOffset[0], targetElementHeight + pointOffset[1]];\n }\n\n private setPointPosition(pointPosition: [number, number]) {\n const currentPointContainer = this.renderer.createElement('div');\n\n this.renderer.addClass(currentPointContainer, 'thy-guider-highlight-container');\n if (this.guiderRef.config.pointClass) {\n this.addPointClass(currentPointContainer, this.guiderRef.config.pointClass);\n }\n this.renderer.setStyle(currentPointContainer, 'position', 'absolute');\n this.renderer.setStyle(currentPointContainer, 'left', pointPosition[0] + 'px');\n this.renderer.setStyle(currentPointContainer, 'top', pointPosition[1] + 'px');\n this.renderer.setStyle(currentPointContainer, 'transform', 'translate(-100%,-100%)');\n\n return currentPointContainer;\n }\n\n private addPointClass(el: any, pointClass: string | string[]) {\n if (isString(pointClass)) {\n this.renderer.addClass(el, pointClass);\n }\n if (isArray(pointClass)) {\n pointClass.forEach(classItem => {\n this.renderer.addClass(el, classItem);\n });\n }\n }\n\n private renderPoint(targetElement: Element, pointContainer: any) {\n this.renderer.appendChild(targetElement, pointContainer);\n this.lastPointerContainer = pointContainer;\n this.lastTargetElement = targetElement;\n this.createTip(this.step);\n }\n\n private removeLastPointContainer() {\n if (this.lastPointerContainer) {\n this.renderer.removeChild(this.document.body, this.lastPointerContainer);\n this.lastPointerContainer = undefined;\n }\n }\n\n private createTip(step: ThyGuiderStep) {\n if (this.isTipHasTarget(step)) {\n this.tipWithTarget(step);\n } else {\n this.tipWithoutTarget(step);\n }\n }\n\n private tipWithoutTarget(step: ThyGuiderStep) {\n const position = this.getTipPosition(step);\n this.lastPopoverRef = this.popover.open(this.guiderRef.config.hintComponent, {\n origin: null,\n originPosition: position,\n originActiveClass: '',\n panelClass: this.guiderRef.config.hintClass || '',\n backdropClosable: false,\n hasBackdrop: false,\n manualClosure: true,\n initialState: {\n guiderRef: this.guiderRef,\n stepRef: this\n },\n scrollStrategy: this.overlay.scrollStrategies.block()\n });\n }\n\n private getTipPosition(step: ThyGuiderStep): { x: number; y: number } {\n if (isPositionDataType(step.target)) {\n return step.target;\n }\n return this.guiderRef.config.defaultPosition;\n }\n\n private createTipContainer() {\n const tipContainer = this.renderer.createElement('div');\n this.renderer.addClass(tipContainer, 'thy-guider-content-container');\n this.renderer.setStyle(tipContainer, 'position', 'absolute');\n this.renderer.setStyle(tipContainer, 'top', '0px');\n this.renderer.setStyle(tipContainer, 'right', '0px');\n this.renderer.setStyle(tipContainer, 'bottom', '0px');\n this.renderer.setStyle(tipContainer, 'left', '0px');\n return tipContainer;\n }\n\n private tipWithTarget(step: ThyGuiderStep) {\n const targetElement = this.getTargetElement(step);\n const hintContainer = this.createTipContainer();\n\n this.renderer.appendChild(targetElement, hintContainer);\n this.lastTipContainer = hintContainer;\n\n const popoverConfig = {\n origin: hintContainer,\n placement: step.hintPlacement,\n panelClass: this.guiderRef.config.hintClass || '',\n backdropClosable: false,\n hasBackdrop: false,\n manualClosure: true,\n initialState: {\n guiderRef: this.guiderRef,\n stepRef: this\n },\n scrollStrategy: this.overlay.scrollStrategies.block()\n } as ThyPopoverConfig<any>;\n\n const pointPosition = this.getPointPosition(step, targetElement);\n const hintOffset = this.getTipOffset(step, pointPosition, targetElement);\n if (hintOffset) {\n popoverConfig.offset = hintOffset;\n }\n this.lastPopoverRef = this.popover.open(this.guiderRef.config.hintComponent, popoverConfig);\n }\n\n private getTipOffset(step: ThyGuiderStep, pointPosition: [number, number], targetElement: Element): number {\n const hintPlacement = step.hintPlacement;\n const targetElementClientRect = targetElement.getBoundingClientRect();\n const { width: targetElementWidth, height: targetElementHeight } = targetElementClientRect;\n let hintOffset: number = step.hintOffset || 0;\n const pointXAxisOffset = pointPosition[0];\n const pointYAxisOffset = pointPosition[1];\n\n if (hintPlacement.startsWith('top')) {\n if (pointYAxisOffset < pointContainerSize) {\n hintOffset = hintOffset + Math.abs(pointYAxisOffset) + pointContainerSize;\n }\n } else if (hintPlacement.startsWith('bottom')) {\n if (pointYAxisOffset > targetElementHeight) {\n hintOffset = hintOffset + (pointYAxisOffset - targetElementHeight) + 10; // 10 为空隙量\n }\n } else if (hintPlacement.startsWith('left')) {\n if (pointXAxisOffset < 0) {\n hintOffset = hintOffset + Math.abs(pointXAxisOffset) + pointContainerSize;\n }\n } else if (hintPlacement.startsWith('right')) {\n if (pointXAxisOffset > targetElementWidth) {\n hintOffset = hintOffset + (pointXAxisOffset - targetElementWidth) + 10; // 10 为空隙量\n }\n }\n return hintOffset;\n }\n\n private removeTip() {\n if (this.lastPopoverRef) {\n this.lastPopoverRef.close();\n this.lastPopoverRef = undefined;\n }\n if (this.lastTipContainer) {\n this.renderer.removeChild(this.document.body, this.lastTipContainer);\n this.lastTipContainer = undefined;\n }\n if (this.lastTargetElement && this.targetElementObserver) {\n this.targetElementObserver.unsubscribe();\n this.lastTargetElement = undefined;\n this.targetElementObserver = undefined;\n }\n }\n\n private isTipHasTarget(step: ThyGuiderStep): boolean {\n if (step.target) {\n return !isPositionDataType(step.target);\n } else {\n return !!this.guiderManager.getActiveTarget(step.key);\n }\n }\n}\n","import { Type } from '@angular/core';\nimport { ThyPlacement } from 'ngx-tethys/core';\n\n/**\n * @public\n * @order 30\n */\nexport interface ThyGuiderStep<TData = any> {\n /**\n * 步骤的唯一标识符\n */\n key: string;\n\n /**\n * 步骤的目标DOM selectors,如果为 [number,number] 类型则是相对浏览器视窗的位置\n * @type string | string[] | { x: number; y: number }\n */\n target?: string | string[] | { x: number; y: number };\n\n /**\n * 新手引导内容组件的值\n */\n data: TData;\n\n /**\n * 步骤对应的路由\n */\n route?: string;\n\n /**\n * 当前步骤内容组件基于 target 元素的方位\n */\n hintPlacement?: ThyPlacement;\n\n /**\n * 当前步骤内容组件基于位置的偏移量(与 popover 中 offset 相同作用)\n */\n hintOffset?: number;\n\n /**\n * 当前步骤高亮圆圈基于默认位置的偏移量\n */\n pointOffset?: [number, number];\n}\n\n/**\n * 新手引导服务的配置项\n * @public\n * @order 20\n */\nexport class ThyGuiderConfig {\n /**\n * 新手引导内容组件\n */\n hintComponent?: Type<unknown>;\n\n /**\n * 新手引导步骤信息\n * @type ThyGuiderStep[]\n */\n steps: ThyGuiderStep[];\n\n /**\n * 新手引导内容组件基于 target 元素的方位\n */\n hintPlacement?: ThyPlacement;\n\n /**\n * 新手引导内容组件默认位置(基于浏览器视窗,优先级小于 hintPlacement\n */\n defaultPosition?: { x: number; y: number };\n\n /**\n * 新手引导高亮圆圈基于默认位置的偏移量\n */\n pointOffset?: [number, number];\n\n /**\n * 新手引导内容组件基于位置的偏移量(与 popover 中 offset 相同作用)\n */\n hintOffset?: number;\n\n /**\n * 新手引导弹窗的自定义类\n * @type string | string[]\n */\n hintClass?: string | string[];\n\n /**\n * 新手引导point的自定义类\n * @type string | string[]\n */\n pointClass?: string | string[];\n}\n\nexport const defaultGuiderPositionConfig = {\n hintComponent: null as Type<unknown>,\n hintPlacement: 'rightBottom',\n defaultPosition: { x: 0, y: 0 },\n pointOffset: [0, 0],\n hintOffset: 4\n};\n","import { Router } from '@angular/router';\nimport { helpers } from 'ngx-tethys/util';\nimport { DOCUMENT } from '@angular/common';\nimport { ThyPopover } from 'ngx-tethys/popover';\nimport { ThyGuiderManager } from './guider-manager';\nimport { ThyGuiderStepRef } from './guider-step-ref';\nimport { Observable, ReplaySubject, Subject } from 'rxjs';\nimport { ThyGuiderConfig, ThyGuiderStep } from './guider.class';\nimport { Inject, NgZone, RendererFactory2 } from '@angular/core';\nimport { Overlay } from '@angular/cdk/overlay';\n\nexport class ThyGuiderRef {\n public steps: ThyGuiderStep[];\n\n private stepChange$: ReplaySubject<ThyGuiderStep> = new ReplaySubject<ThyGuiderStep>();\n\n private guiderEnded$ = new Subject();\n\n private closed$ = new Subject<ThyGuiderStep>();\n\n private targetClicked$ = new Subject<ThyGuiderStep>();\n\n private currentStep: ThyGuiderStep;\n\n private currentStepIndex: number;\n\n private stepsRef: ThyGuiderStepRef[];\n\n constructor(\n public config: ThyGuiderConfig,\n private rendererFactory: RendererFactory2,\n private popover: ThyPopover,\n private router: Router,\n private guiderManager: ThyGuiderManager,\n private ngZone: NgZone,\n private overlay: Overlay,\n @Inject(DOCUMENT) private document: any\n ) {\n this.stepsRef = config.steps.map((step, index) => {\n return new ThyGuiderStepRef(step, index, this.rendererFactory, this.popover, this.guiderManager, this.overlay, this.document);\n });\n this.steps = config.steps;\n }\n\n public stepChange(): Observable<ThyGuiderStep> {\n return this.stepChange$.asObservable();\n }\n\n public ended() {\n return this.guiderEnded$;\n }\n\n public closed() {\n return this.closed$;\n }\n\n public targetClicked() {\n return this.targetClicked$;\n }\n\n public start(startWith?: number) {\n this.to(startWith);\n\n return this.stepChange();\n }\n\n public next() {\n if (this.currentStepIndex + 1 > this.steps.length) {\n return;\n }\n this.to(this.currentStepIndex + 1);\n }\n\n public previous() {\n if (this.currentStepIndex - 1 < 0) {\n return;\n }\n\n this.to(this.currentStepIndex - 1);\n }\n\n public active(indexOrKey: number | string): void {\n if (helpers.isNumber(indexOrKey)) {\n this.to(indexOrKey as number);\n return;\n }\n if (helpers.isString(indexOrKey)) {\n const index = this.steps.findIndex(step => step.key === (indexOrKey as string));\n this.to(index);\n return;\n }\n }\n\n private to(index: number): void {\n this.removeExistedStep();\n\n if (!helpers.isNumber(index) || index >= this.steps.length || index < 0 || Number.isNaN(index)) {\n index = 0;\n }\n this.currentStep = this.steps[index];\n this.currentStepIndex = index;\n\n // update guiderManager\n this.guiderManager.updateActive(this.currentStep.key, this);\n if (this.currentStep.route && this.currentStep.route !== this.router.url) {\n this.ngZone.run(() => {\n this.router.navigateByUrl(this.currentStep.route);\n });\n return;\n }\n setTimeout(() => {\n this.drawStep();\n this.notifyStepClicked();\n }, 0);\n }\n\n public close() {\n this.removeManagerActiveKey();\n this.stepsRef[this.currentStepIndex]?.dispose();\n this.closed$.next(this.currentStep);\n }\n\n public end() {\n this.close();\n this.guiderEnded$.next(this.currentStep);\n this.notifyGuiderIsFinished();\n }\n\n private removeManagerActiveKey() {\n const activeKey = this.guiderManager.getActive().key;\n if (activeKey && this.steps.some(step => step.key === activeKey)) {\n this.guiderManager.updateActive('', undefined);\n }\n }\n\n private notifyStepClicked() {\n this.stepChange$.next(this.currentStep);\n }\n\n private drawStep() {\n this.removeExistedStep();\n this.stepsRef[this.currentStepIndex].show(this);\n }\n\n private notifyGuiderIsFinished() {\n this.stepChange$.complete();\n // this.targetClicked().unsubscribe();\n this.currentStepIndex = 0;\n }\n\n private removeExistedStep() {\n this.stepsRef[this.currentStepIndex]?.dispose();\n }\n}\n","import { Router } from '@angular/router';\nimport { helpers } from 'ngx-tethys/util';\nimport { DOCUMENT } from '@angular/common';\nimport { ThyGuiderRef } from './guider-ref';\nimport { NgZone, inject } from '@angular/core';\nimport { ThyPopover } from 'ngx-tethys/popover';\nimport { ThyGuiderManager } from './guider-manager';\nimport { Injectable, RendererFactory2 } from '@angular/core';\nimport { ThyGuiderStep, ThyGuiderConfig, defaultGuiderPositionConfig } from './guider.class';\nimport { Overlay } from '@angular/cdk/overlay';\n\n/**\n * 新手引导服务\n * @public\n * @order 10\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyGuider {\n private readonly rendererFactory = inject(RendererFactory2);\n private popover = inject(ThyPopover);\n private router = inject(Router);\n private guiderManager = inject(ThyGuiderManager);\n private ngZone = inject(NgZone);\n private overlay = inject(Overlay);\n private document = inject(DOCUMENT);\n\n private guiderRef: ThyGuiderRef;\n\n private guiderRefs: ThyGuiderRef[] = [];\n\n public create(config: ThyGuiderConfig): ThyGuiderRef {\n if (typeof ngDevMode === 'undefined' || ngDevMode) {\n if (!config || !config?.steps || !helpers.isArray(config?.steps)) {\n throw new Error(`'config.steps' must be an array of length greater than 0`);\n }\n }\n const normalizeConfig = this.normalizeConfig(config);\n this.guiderRef = new ThyGuiderRef(\n normalizeConfig,\n this.rendererFactory,\n this.popover,\n this.router,\n this.guiderManager,\n this.ngZone,\n this.overlay,\n this.document\n );\n this.guiderRef.closed().subscribe(() => {\n const index = this.guiderRefs.findIndex(guiderRef => guiderRef === this.guiderRef);\n this.guiderRefs.splice(index, 1);\n });\n this.guiderRefs.push(this.guiderRef);\n return this.guiderRef;\n }\n\n private normalizeConfig(config: ThyGuiderConfig): ThyGuiderConfig {\n const normalizeConfig = Object.assign({}, defaultGuiderPositionConfig, config);\n normalizeConfig.steps = normalizeConfig.steps.map(step => {\n return this.normalizeStep(step, normalizeConfig);\n });\n return normalizeConfig;\n }\n\n private normalizeStep(step: ThyGuiderStep, config: ThyGuiderConfig): ThyGuiderStep {\n const tempStep = Object.assign(\n {\n hintPlacement: config.hintPlacement,\n hintOffset: config.hintOffset,\n pointOffset: config.pointOffset\n },\n step\n );\n\n return tempStep;\n }\n\n close() {\n if (this.guiderRefs.length > 0) {\n const lasGuiderRef = this.guiderRefs[this.guiderRefs.length - 1];\n if (lasGuiderRef) {\n lasGuiderRef.close();\n this.guiderRefs.pop();\n }\n }\n }\n}\n","import { ThyGuiderManager } from './guider-manager';\nimport { AfterViewInit, Directive, ElementRef, Input, OnDestroy, OnInit, NgZone, inject } from '@angular/core';\nimport { take } from 'rxjs/operators';\n\n/**\n * 标记新手引导的步骤的target,使用指令方式的新手引导支持多路由跳转\n * @name thyGuiderTarget\n * @order 40\n */\n@Directive({\n selector: '[thyGuiderTarget]',\n exportAs: 'thyGuiderTarget',\n standalone: true\n})\nexport class ThyGuiderTargetDirective implements OnInit, OnDestroy, AfterViewInit {\n private guiderManager = inject(ThyGuiderManager);\n private el = inject(ElementRef);\n private ngZone = inject(NgZone);\n\n /**\n * 标记当前元素对应的新手引导中 step 的 key\n */\n @Input('thyGuiderTarget')\n target: string;\n\n ngOnInit() {\n this.guiderManager.addStepTarget(this.target, this.el.nativeElement);\n this.ngZone.onStable.pipe(take(1)).subscribe(() => {\n const { key, guiderRef } = this.guiderManager.getActive();\n if (key === this.target) {\n const index = guiderRef.steps.findIndex(step => step.key === this.target);\n this.ngZone.run(() => {\n guiderRef.active(index);\n });\n }\n });\n }\n\n ngAfterViewInit() {}\n\n ngOnDestroy() {\n const { guiderRef } = this.guiderManager.getActive();\n if (guiderRef) {\n guiderRef.close();\n }\n this.guiderManager.removeStepTarget(this.target);\n }\n}\n","import { HostBinding, Component, OnInit, TemplateRef } from '@angular/core';\nimport { ThyGuiderRef } from '../guider-ref';\nimport { helpers } from 'ngx-tethys/util';\nimport { defaultGuiderPositionConfig, ThyGuiderStep } from '../guider.class';\nimport { ThyGuiderStepRef } from '../guider-step-ref';\nimport { NgTemplateOutlet, NgClass } from '@angular/common';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-guider-hint',\n templateUrl: 'guider-hint.component.html',\n standalone: true,\n imports: [NgTemplateOutlet, NgClass]\n})\nexport class ThyGuiderHint implements OnInit {\n @HostBinding('class.thy-guider-tip-container') guiderHint = true;\n\n public guiderRef: ThyGuiderRef;\n\n public stepRef: ThyGuiderStepRef;\n\n public descriptionString: string;\n\n public descriptionTemplateRef: TemplateRef<any>;\n\n public currentStepIndex: number;\n\n constructor() {}\n\n ngOnInit() {\n this.setDescription(this.stepRef.step.data.description);\n }\n\n private setDescription(value: string | TemplateRef<any>) {\n if (helpers.isString(value)) {\n this.descriptionString = value as string;\n } else {\n this.descriptionTemplateRef = value as TemplateRef<any>;\n }\n }\n\n public jump() {\n this.guiderRef.end();\n }\n\n public prev() {\n this.guiderRef.previous();\n }\n\n public next() {\n this.guiderRef.next();\n }\n\n public end() {\n this.guiderRef.end();\n }\n\n public trackByFn(index: number, step: ThyGuiderStep) {\n return step.key || index;\n }\n}\n\ndefaultGuiderPositionConfig.hintComponent = ThyGuiderHint;\n","<div class=\"thy-guider-tip-top\">\n <img [src]=\"stepRef.step.data.image\" [alt]=\"stepRef.step.data.title\" />\n <a href=\"javascript:;\" class=\"thy-guider-tip-top-btn\" (click)=\"jump()\">跳过</a>\n</div>\n<div class=\"thy-guider-tip-content\">\n <div class=\"thy-guider-tip-content-title\">{{ stepRef.step.data.title }}</div>\n <div class=\"thy-guider-tip-content-description\">\n @if (descriptionTemplateRef) {\n <ng-template [ngTemplateOutlet]=\"descriptionTemplateRef\"></ng-template>\n } @else {\n {{ descriptionString }}\n }\n </div>\n <div class=\"thy-guider-tip-step\">\n <div class=\"thy-guider-tip-step-pagination\">\n @for (step of guiderRef.steps; track trackByFn(i, step); let i = $index) {\n <span class=\"pagination-item\" [ngClass]=\"{ active: i === stepRef.stepIndex }\"></span>\n }\n </div>\n <div class=\"thy-guider-tip-step-btn\">\n @if (stepRef.stepIndex !== 0) {\n <a href=\"javascript:;\" (click)=\"prev()\" class=\"thy-guider-tip-step-pre\">上一步</a>\n }\n @if (stepRef.stepIndex !== guiderRef.steps.length - 1) {\n <a href=\"javascript:;\" (click)=\"next()\" class=\"thy-guider-tip-step-next\">下一步</a>\n } @else {\n <a href=\"javascript:;\" (click)=\"end()\" class=\"thy-guider-tip-step-next\">完成</a>\n }\n </div>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { ThyGuider } from './guider.service';\nimport { CommonModule } from '@angular/common';\nimport { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThySharedModule } from 'ngx-tethys/shared';\nimport { ThyButtonModule } from 'ngx-tethys/button';\nimport { ThyPopoverModule } from 'ngx-tethys/popover';\nimport { ThyGuiderTargetDirective } from './guider.directive';\nimport { ThyGuiderHint } from './guider-hint/guider-hint.component';\n\n@NgModule({\n imports: [CommonModule, ThySharedModule, ThyIconModule, ThyButtonModule, ThyPopoverModule, ThyGuiderHint, ThyGuiderTargetDirective],\n exports: [ThyGuiderHint, ThyGuiderTargetDirective],\n providers: [ThyGuider]\n})\nexport class ThyGuiderModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA;;;AAGG;MAIU,gBAAgB,CAAA;AAOzB,IAAA,WAAA,GAAA;QANQ,IAAa,CAAA,aAAA,GAAG,EAAE,CAAC;KAMX;IAET,YAAY,CAAC,GAAW,EAAE,SAAuB,EAAA;AACpD,QAAA,IAAI,CAAC,aAAa,GAAG,GAAG,CAAC;AACzB,QAAA,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;KACjC;IAEM,aAAa,CAAC,GAAW,EAAE,EAAe,EAAA;AAC7C,QAAA,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;KAChC;AAEM,IAAA,gBAAgB,CAAC,GAAW,EAAA;AAC/B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;KAClC;AAEM,IAAA,eAAe,CAAC,GAAW,EAAA;AAC9B,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;KAClC;IAEM,SAAS,GAAA;QACZ,OAAO;YACH,GAAG,EAAE,IAAI,CAAC,aAAa;YACvB,SAAS,EAAE,IAAI,CAAC,YAAY;SAC/B,CAAC;KACL;8GA/BQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA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AC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,wBAAwB,CAAC;AACnI,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,wBAAwB,CAAC;oBAClD,SAAS,EAAE,CAAC,SAAS,CAAC;AACzB,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
@@ -91,7 +91,7 @@ class ThyNotify extends ThyAbstractMessageComponent {
91
91
  }
92
92
  }
93
93
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ThyNotify, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
94
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyNotify, isStandalone: true, selector: "thy-notify", inputs: { thyConfig: "thyConfig" }, host: { properties: { "@flyInOut": "this.animationState", "class": "this.className" } }, usesInheritance: true, ngImport: i0, template: "@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div\n class=\"thy-notify-content\"\n [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\"\n (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ThyViewOutletDirective, selector: "[thyViewOutlet]", inputs: ["thyViewOutlet", "thyViewOutletContext"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
94
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ThyNotify, isStandalone: true, selector: "thy-notify", inputs: { thyConfig: "thyConfig" }, host: { properties: { "@flyInOut": "this.animationState", "class": "this.className" } }, usesInheritance: true, ngImport: i0, template: "@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div class=\"thy-notify-content\" [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\" (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n", dependencies: [{ kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ThyViewOutletDirective, selector: "[thyViewOutlet]", inputs: ["thyViewOutlet", "thyViewOutletContext"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [
95
95
  trigger('flyInOut', [
96
96
  state('flyInOutRight', style({ transform: 'translateX(0)', opacity: 1, height: '*' })),
97
97
  transition('void => flyInOutRight', [
@@ -127,7 +127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
127
127
  transition('flyInOutLeft => componentHide', [animate(ANIMATION_OUT_DURATION, style(HIDE_STYLE))]),
128
128
  state('componentHide', style(HIDE_STYLE))
129
129
  ])
130
- ], standalone: true, imports: [ThyIcon, NgClass, ThyViewOutletDirective, NgTemplateOutlet], template: "@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div\n class=\"thy-notify-content\"\n [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\"\n (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n" }]
130
+ ], standalone: true, imports: [ThyIcon, NgClass, ThyViewOutletDirective, NgTemplateOutlet], template: "@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div class=\"thy-notify-content\" [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\" (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n" }]
131
131
  }], ctorParameters: () => [], propDecorators: { animationState: [{
132
132
  type: HostBinding,
133
133
  args: ['@flyInOut']
@@ -1 +1 @@
1
- {"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\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\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 } from '@angular/core';\nimport { ThyAbstractMessageQueue } from 'ngx-tethys/message';\nimport { map, shareReplay } from 'rxjs/operators';\nimport { ThyNotifyRef } from './notify-ref';\nimport { ThyGlobalNotifyConfig, 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$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'topLeft')),\n shareReplay()\n );\n\n topRightQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'topRight')),\n shareReplay()\n );\n\n bottomLeftQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'bottomLeft')),\n shareReplay()\n );\n\n bottomRightQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'bottomRight')),\n shareReplay()\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, Input, HostBinding, NgZone, OnInit, inject } 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';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-notify',\n templateUrl: './notify.component.html',\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 standalone: true,\n imports: [ThyIcon, NgClass, ThyViewOutletDirective, NgTemplateOutlet]\n})\nexport class ThyNotify extends ThyAbstractMessageComponent<ThyNotifyConfig> implements OnInit {\n @HostBinding('@flyInOut') animationState: string;\n\n @HostBinding('class') className = '';\n\n config: ThyNotifyConfig;\n\n extendContentClass = false;\n\n isShowDetail = false;\n\n contentIsString = false;\n\n placement: ThyNotifyPlacement;\n\n @Input()\n set thyConfig(value: ThyNotifyConfig) {\n this.config = value;\n const type = value.type;\n this.placement = value.placement || 'topRight';\n if (this.placement === 'topLeft' || this.placement === 'bottomLeft') {\n this.animationState = 'flyInOutLeft';\n } else {\n this.animationState = 'flyInOutRight';\n }\n this.className = `thy-notify thy-notify-${type}`;\n }\n\n constructor() {\n const notifyQueue = inject(ThyNotifyQueue);\n super(notifyQueue);\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.contentIsString = isString(this.config.content);\n }\n\n extendContent() {\n this.extendContentClass = true;\n }\n\n showDetailToggle() {\n this.isShowDetail = !this.isShowDetail;\n }\n\n triggerDetail() {\n if (helpers.isFunction((this.config.detail as ThyNotifyDetail).action)) {\n (this.config.detail as ThyNotifyDetail).action();\n }\n if ((this.config.detail as ThyNotifyDetail).content) {\n this.showDetailToggle();\n }\n }\n}\n","@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div\n class=\"thy-notify-content\"\n [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\"\n (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n","import { Component, ElementRef, HostBinding, inject } from '@angular/core';\nimport { ThyAbstractMessageContainerComponent } from 'ngx-tethys/message';\nimport { ThyNotifyQueue } from './notify-queue.service';\nimport { ThyGlobalNotifyConfig, THY_NOTIFY_DEFAULT_CONFIG, THY_NOTIFY_DEFAULT_CONFIG_VALUE } from './notify.config';\nimport { ThyNotify } from './notify.component';\nimport { AsyncPipe } from '@angular/common';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-notify-container',\n templateUrl: './notify-container.component.html',\n standalone: true,\n imports: [ThyNotify, AsyncPipe]\n})\nexport class ThyNotifyContainer extends ThyAbstractMessageContainerComponent {\n notifyQueue = inject(ThyNotifyQueue);\n\n @HostBinding('class') className = 'thy-notify-container';\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","<div class=\"thy-notify-bottomRight\" [style.bottom.px]=\"offset\" [style.right.px]=\"offset\">\n @for (item of notifyQueue.bottomRightQueues$ | async; track $index) {\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$ | async; track $index) {\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$ | async; track $index) {\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$ | async; track $index) {\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, 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';\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\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 || '成功',\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 || '提示',\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 || '警告',\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 || '警告',\n content: content || config?.content\n });\n }\n\n private formatOptions(config: ThyNotifyConfig) {\n if (isString(config.detail)) {\n config = { ...config, detail: { link: '[详情]', 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":";;;;;;;;;;;;MAgEa,yBAAyB,GAAG,IAAI,cAAc,CAAwB,2BAA2B,EAAE;AAEnG,MAAA,+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,CAAC;EACb;AAEW,MAAA,kCAAkC,GAAG;AAC9C,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,QAAQ,EAAE,+BAA+B;;;ACtE7C;;AAEG;AAIG,MAAO,cAAe,SAAQ,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;AACjB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,KAAK,IAAI,IAAI;AACrC,YAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,OAAO;AACtC,SAAA,CAAC,CAAC;KACN;AAEO,IAAA,aAAa,CAAC,MAAuB,EAAA;AACzC,QAAA,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;AACzB,YAAA,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAgB,EAAE,EAAE,CAAC;SACtF;AACD,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;KAC7G;8GAxFQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,cAFb,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAET,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAH5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;;;ACfD;;AAEG;;;;"}
1
+ {"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\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\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 } from '@angular/core';\nimport { ThyAbstractMessageQueue } from 'ngx-tethys/message';\nimport { map, shareReplay } from 'rxjs/operators';\nimport { ThyNotifyRef } from './notify-ref';\nimport { ThyGlobalNotifyConfig, 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$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'topLeft')),\n shareReplay()\n );\n\n topRightQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'topRight')),\n shareReplay()\n );\n\n bottomLeftQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'bottomLeft')),\n shareReplay()\n );\n\n bottomRightQueues$ = this.queues$.pipe(\n map(queues => queues.filter(item => item.config.placement === 'bottomRight')),\n shareReplay()\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, Input, HostBinding, NgZone, OnInit, inject } 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';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-notify',\n templateUrl: './notify.component.html',\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 standalone: true,\n imports: [ThyIcon, NgClass, ThyViewOutletDirective, NgTemplateOutlet]\n})\nexport class ThyNotify extends ThyAbstractMessageComponent<ThyNotifyConfig> implements OnInit {\n @HostBinding('@flyInOut') animationState: string;\n\n @HostBinding('class') className = '';\n\n config: ThyNotifyConfig;\n\n extendContentClass = false;\n\n isShowDetail = false;\n\n contentIsString = false;\n\n placement: ThyNotifyPlacement;\n\n @Input()\n set thyConfig(value: ThyNotifyConfig) {\n this.config = value;\n const type = value.type;\n this.placement = value.placement || 'topRight';\n if (this.placement === 'topLeft' || this.placement === 'bottomLeft') {\n this.animationState = 'flyInOutLeft';\n } else {\n this.animationState = 'flyInOutRight';\n }\n this.className = `thy-notify thy-notify-${type}`;\n }\n\n constructor() {\n const notifyQueue = inject(ThyNotifyQueue);\n super(notifyQueue);\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.contentIsString = isString(this.config.content);\n }\n\n extendContent() {\n this.extendContentClass = true;\n }\n\n showDetailToggle() {\n this.isShowDetail = !this.isShowDetail;\n }\n\n triggerDetail() {\n if (helpers.isFunction((this.config.detail as ThyNotifyDetail).action)) {\n (this.config.detail as ThyNotifyDetail).action();\n }\n if ((this.config.detail as ThyNotifyDetail).content) {\n this.showDetailToggle();\n }\n }\n}\n","@if (config?.html) {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-main\">\n <template [ngTemplateOutlet]=\"config?.html\"></template>\n </div>\n} @else {\n <a href=\"javascript:;\" class=\"thy-notify-close\" (click)=\"close()\">\n <thy-icon thyIconName=\"close\"></thy-icon>\n </a>\n <div class=\"thy-notify-icon-container\">\n <thy-icon [thyIconName]=\"iconName\"></thy-icon>\n </div>\n <div class=\"thy-notify-main\">\n <div class=\"thy-notify-title\">{{ config?.title }}</div>\n @if (config?.detail || config?.content) {\n <div class=\"thy-notify-content\" [ngClass]=\"{ 'thy-notify-content--extend': extendContentClass === true }\" (click)=\"extendContent()\">\n @if (config.content) {\n @if (contentIsString) {\n {{ config.content }}\n } @else {\n <ng-container *thyViewOutlet=\"config.content; context: config.contentInitialState || {}\"></ng-container>\n }\n }\n @if (config?.detail) {\n <a href=\"javascript:;\" class=\"link-secondary\" (click)=\"triggerDetail()\">{{ (config?.detail)['link'] }}</a>\n }\n </div>\n }\n @if (isShowDetail) {\n <div class=\"thy-notify-detail\">{{ (config?.detail)['content'] }}</div>\n }\n </div>\n}\n","import { Component, ElementRef, HostBinding, inject } from '@angular/core';\nimport { ThyAbstractMessageContainerComponent } from 'ngx-tethys/message';\nimport { ThyNotifyQueue } from './notify-queue.service';\nimport { ThyGlobalNotifyConfig, THY_NOTIFY_DEFAULT_CONFIG, THY_NOTIFY_DEFAULT_CONFIG_VALUE } from './notify.config';\nimport { ThyNotify } from './notify.component';\nimport { AsyncPipe } from '@angular/common';\n\n/**\n * @private\n */\n@Component({\n selector: 'thy-notify-container',\n templateUrl: './notify-container.component.html',\n standalone: true,\n imports: [ThyNotify, AsyncPipe]\n})\nexport class ThyNotifyContainer extends ThyAbstractMessageContainerComponent {\n notifyQueue = inject(ThyNotifyQueue);\n\n @HostBinding('class') className = 'thy-notify-container';\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","<div class=\"thy-notify-bottomRight\" [style.bottom.px]=\"offset\" [style.right.px]=\"offset\">\n @for (item of notifyQueue.bottomRightQueues$ | async; track $index) {\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$ | async; track $index) {\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$ | async; track $index) {\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$ | async; track $index) {\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, 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';\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\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 || '成功',\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 || '提示',\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 || '警告',\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 || '警告',\n content: content || config?.content\n });\n }\n\n private formatOptions(config: ThyNotifyConfig) {\n if (isString(config.detail)) {\n config = { ...config, detail: { link: '[详情]', 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":";;;;;;;;;;;;MAgEa,yBAAyB,GAAG,IAAI,cAAc,CAAwB,2BAA2B,EAAE;AAEnG,MAAA,+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,CAAC;EACb;AAEW,MAAA,kCAAkC,GAAG;AAC9C,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,QAAQ,EAAE,+BAA+B;;;ACtE7C;;AAEG;AAIG,MAAO,cAAe,SAAQ,uBAAqC,CAAA;AAqBrE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,aAAa,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAExD,QAAA,KAAK,CAAC;AACF,YAAA,GAAG,+BAA+B;AAClC,YAAA,GAAG,aAAa;AACnB,SAAA,CAAC,CAAC;AA1BP,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC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