@ng-doc/ui-kit 17.5.5 → 17.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/cdk/combobox-host/combobox-host.component.mjs +4 -4
- package/esm2022/classes/base-input/base-input.mjs +3 -3
- package/esm2022/classes/overlay-ref/overlay-ref.mjs +1 -1
- package/esm2022/components/blockquote/blockquote.component.mjs +3 -3
- package/esm2022/components/button/button.component.mjs +3 -3
- package/esm2022/components/button-icon/button-icon.component.mjs +3 -3
- package/esm2022/components/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/components/clear-control/clear-control.component.mjs +4 -4
- package/esm2022/components/combobox/combobox.component.mjs +3 -3
- package/esm2022/components/data-list/data-list.component.mjs +3 -3
- package/esm2022/components/data-list-group/data-list-group.component.mjs +4 -4
- package/esm2022/components/dialog-outlet/dialog-outlet.component.mjs +4 -4
- package/esm2022/components/dot/dot.component.mjs +3 -3
- package/esm2022/components/dropdown/dropdown.component.mjs +4 -4
- package/esm2022/components/expander/expander.component.mjs +3 -3
- package/esm2022/components/floated-border/floated-border.component.mjs +3 -3
- package/esm2022/components/floated-content/floated-content.component.mjs +4 -4
- package/esm2022/components/focus-control/focus-control.component.mjs +4 -4
- package/esm2022/components/icon/icon.component.mjs +3 -3
- package/esm2022/components/input-wrapper/input-wrapper.component.mjs +6 -6
- package/esm2022/components/label/label.component.mjs +3 -3
- package/esm2022/components/line/line.component.mjs +3 -3
- package/esm2022/components/list/list.component.mjs +4 -4
- package/esm2022/components/option/option.component.mjs +3 -3
- package/esm2022/components/option-group/option-group.component.mjs +6 -6
- package/esm2022/components/overlay-container/overlay-container.component.mjs +4 -4
- package/esm2022/components/overlay-pointer/overlay-pointer.component.mjs +3 -3
- package/esm2022/components/pane/pane.component.mjs +10 -10
- package/esm2022/components/selection/selection-host.directive.mjs +4 -4
- package/esm2022/components/selection/selection-origin.directive.mjs +4 -4
- package/esm2022/components/selection/selection.component.mjs +4 -4
- package/esm2022/components/sidenav/sidenav.component.mjs +3 -3
- package/esm2022/components/smooth-resize/smooth-resize.component.mjs +3 -3
- package/esm2022/components/spinner/spinner.component.mjs +3 -3
- package/esm2022/components/tab-group/tab/tab.component.mjs +3 -3
- package/esm2022/components/tab-group/tab-group.component.mjs +3 -3
- package/esm2022/components/tag/tag.component.mjs +3 -3
- package/esm2022/components/text/text-left.directive.mjs +3 -3
- package/esm2022/components/text/text-right.directive.mjs +3 -3
- package/esm2022/components/text/text.component.mjs +3 -3
- package/esm2022/components/toggle/toggle.component.mjs +4 -4
- package/esm2022/components/wrapper/wrapper.component.mjs +3 -3
- package/esm2022/decorators/pure.mjs +1 -1
- package/esm2022/directives/autofocus/autofocus.directive.mjs +4 -4
- package/esm2022/directives/checked-change/checked-change.directive.mjs +3 -3
- package/esm2022/directives/data/data.directive.mjs +3 -3
- package/esm2022/directives/dropdown-handler/dropdown-handler.directive.mjs +4 -4
- package/esm2022/directives/dropdown-origin/dropdown-origin.directive.mjs +3 -3
- package/esm2022/directives/event-switcher/event-switcher.directive.mjs +4 -4
- package/esm2022/directives/focus-catcher/focus-catcher.directive.mjs +3 -3
- package/esm2022/directives/focusable/focusable.directive.mjs +3 -3
- package/esm2022/directives/hotkey/hotkey.directive.mjs +4 -4
- package/esm2022/directives/input-number/input-number.directive.mjs +3 -3
- package/esm2022/directives/input-string/input-string.directive.mjs +3 -3
- package/esm2022/directives/let/let.directive.mjs +3 -3
- package/esm2022/directives/media-query/media-query.directive.mjs +4 -4
- package/esm2022/directives/rotator/rotator.directive.mjs +4 -4
- package/esm2022/directives/tooltip/tooltip.directive.mjs +4 -4
- package/esm2022/helpers/merge-overlay-configs.mjs +1 -1
- package/esm2022/interceptors/cache.interceptor.mjs +4 -4
- package/esm2022/pipes/as-array/as-array.pipe.mjs +3 -3
- package/esm2022/pipes/bind/bind.pipe.mjs +3 -3
- package/esm2022/pipes/execute/execute.pipe.mjs +3 -3
- package/esm2022/pipes/highlighter/highlighter.pipe.mjs +3 -3
- package/esm2022/services/dialog/dialog.service.mjs +3 -3
- package/esm2022/services/notify/notify.service.mjs +3 -3
- package/esm2022/services/overlay/overlay.service.mjs +4 -4
- package/esm2022/services/overlay-strategy/overlay-strategy.mjs +4 -4
- package/esm2022/services/scroll/scroll.service.mjs +3 -3
- package/esm2022/utils/focus-utils.mjs +1 -1
- package/esm2022/utils/overlay-utils.mjs +1 -1
- package/esm2022/utils/position-utils.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-classes-base-input.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-classes-overlay-ref.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-button-icon.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-button.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-checkbox.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-combobox.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-data-list-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-data-list.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dot.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-expander.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-floated-border.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-floated-content.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-focus-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-icon.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +5 -5
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-label.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-line.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-list.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-components-option.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-overlay-container.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-overlay-pointer.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs +9 -9
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs +9 -9
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-spinner.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +6 -6
- package/fesm2022/ng-doc-ui-kit-components-tag.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-text.mjs +9 -9
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-wrapper.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-decorators.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-autofocus.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-data.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-handler.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-dropdown-origin.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-focusable.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-let.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-media-query.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-rotator.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-helpers.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-interceptors.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-pipes-as-array.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-bind.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-execute.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-dialog.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-overlay-strategy.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-services-overlay.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-scroll.mjs +3 -3
- package/fesm2022/ng-doc-ui-kit-utils.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-directives-tooltip.mjs","sources":["../../../../libs/ui-kit/directives/tooltip/tooltip.directive.ts","../../../../libs/ui-kit/directives/tooltip/ng-doc-ui-kit-directives-tooltip.ts"],"sourcesContent":["import {\n\tAfterViewInit,\n\tChangeDetectorRef,\n\tDirective,\n\tElementRef,\n\tEventEmitter,\n\tInput,\n\tNgZone,\n\tOnDestroy,\n\tOutput,\n\tViewContainerRef,\n} from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { tooltipCloseAnimation, tooltipOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneDetach, ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services';\nimport { NgDocOverlayStrategy } from '@ng-doc/ui-kit/services/overlay-strategy';\nimport { BaseElement, NgDocContent, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { EMPTY, fromEvent, merge, timer } from 'rxjs';\nimport { filter, switchMap, takeUntil } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocTooltip]',\n\texportAs: 'ngDocTooltip',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocTooltipDirective implements AfterViewInit, OnDestroy {\n\t@Input('ngDocTooltip')\n\tcontent: NgDocContent = '';\n\n\t@Input()\n\tdelay: number = 1000;\n\n\t@Input()\n\tdisplayOrigin?: BaseElement<HTMLElement>;\n\n\t@Input()\n\tpointerOrigin?: BaseElement<HTMLElement>;\n\n\t@Input()\n\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[] = [\n\t\t'top-center',\n\t\t'bottom-center',\n\t\t'right-center',\n\t\t'left-center',\n\t];\n\n\t@Input()\n\tcanOpen: boolean = true;\n\n\t@Input()\n\tpanelClass: string | string[] = '';\n\n\t@Input()\n\tminHeight: number | string = '';\n\n\t@Input()\n\tmaxHeight: number | string = '';\n\n\t@Input()\n\theight: number | string = '';\n\n\t@Input()\n\tminWidth: number | string = '';\n\n\t@Input()\n\tmaxWidth: number | string = '';\n\n\t@Input()\n\twidth: number | string = '';\n\n\t@Output()\n\tbeforeOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tbeforeClose: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterClose: EventEmitter<void> = new EventEmitter<void>();\n\n\toverlayRef: NgDocOverlayRef | null = null;\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly changeDetectorRef: ChangeDetectorRef,\n\t\tprivate readonly viewContainerRef: ViewContainerRef,\n\t\tprivate readonly overlayService: NgDocOverlayService,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly scrollStrategy: NgDocOverlayStrategy,\n\t) {}\n\n\tngAfterViewInit(): void {\n\t\t// Opens tooltip with delay\n\t\tfromEvent(this.pointerOriginElement, 'mouseenter')\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.canOpen && !this.isOpened),\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\ttimer(this.delay).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseleave'))),\n\t\t\t\t),\n\t\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe(() => this.show());\n\n\t\t// Closes tooltip when mouseleave was fired, and cancel closing if mouseenter was happened\n\t\tmerge(\n\t\t\tfromEvent(this.pointerOriginElement, 'mouseleave'),\n\t\t\tthis.beforeOpen.pipe(\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\tisPresent(this.overlayRef)\n\t\t\t\t\t\t? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseleave')\n\t\t\t\t\t\t: EMPTY,\n\t\t\t\t),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.isOpened),\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\ttimer(50).pipe(\n\t\t\t\t\t\ttakeUntil(fromEvent(this.pointerOriginElement, 'mouseenter')),\n\t\t\t\t\t\ttakeUntil(\n\t\t\t\t\t\t\tisPresent(this.overlayRef)\n\t\t\t\t\t\t\t\t? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseenter')\n\t\t\t\t\t\t\t\t: EMPTY,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\t)\n\t\t\t.subscribe(() => this.hide());\n\t}\n\n\tshow(): void {\n\t\tif (!this.isOpened) {\n\t\t\tthis.overlayRef = this.overlayService.open(this.content, {\n\t\t\t\torigin: this.displayOriginElement,\n\t\t\t\toverlayContainer: NgDocOverlayContainerComponent,\n\t\t\t\tpositionStrategy: this.overlayService.connectedPositionStrategy(\n\t\t\t\t\tthis.displayOriginElement,\n\t\t\t\t\tthis.getPositions(this.positions),\n\t\t\t\t),\n\t\t\t\tviewContainerRef: this.viewContainerRef,\n\t\t\t\twithPointer: true,\n\t\t\t\tcontactBorder: true,\n\t\t\t\tpanelClass: ['ng-doc-tooltip', ...asArray(this.panelClass)],\n\t\t\t\theight: this.height,\n\t\t\t\twidth: this.width,\n\t\t\t\tminHeight: this.minHeight,\n\t\t\t\tminWidth: this.minWidth,\n\t\t\t\tmaxHeight: this.maxHeight,\n\t\t\t\tmaxWidth: this.maxWidth,\n\t\t\t\tscrollStrategy: this.scrollStrategy,\n\t\t\t\tdisposeOnRouteNavigation: true,\n\t\t\t\topenAnimation: tooltipOpenAnimation,\n\t\t\t\tcloseAnimation: tooltipCloseAnimation,\n\t\t\t});\n\t\t\tthis.beforeOpen.emit();\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.afterOpen()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterOpen.emit());\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.beforeClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.beforeClose.emit());\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.afterClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterClose.emit());\n\n\t\t\tthis.overlayRef?.beforeClose().subscribe(() => this.hide());\n\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\thide(): void {\n\t\tif (this.isOpened) {\n\t\t\tthis.overlayRef?.close();\n\t\t\tthis.overlayRef = null;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\tget isOpened(): boolean {\n\t\treturn !!this.overlayRef;\n\t}\n\n\tngOnDestroy(): void {\n\t\tif (this.overlayRef) {\n\t\t\tthis.overlayRef.overlayRef.dispose();\n\t\t}\n\t}\n\n\tprivate get pointerOriginElement(): HTMLElement {\n\t\treturn isPresent(this.pointerOrigin)\n\t\t\t? toElement(this.pointerOrigin)\n\t\t\t: toElement(this.elementRef);\n\t}\n\n\tprivate get displayOriginElement(): HTMLElement {\n\t\treturn isPresent(this.displayOrigin)\n\t\t\t? toElement(this.displayOrigin)\n\t\t\t: toElement(this.elementRef);\n\t}\n\n\tprivate getPositions(\n\t\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t): NgDocOverlayPosition[] {\n\t\treturn NgDocOverlayUtils.getConnectedPosition(\n\t\t\t!!positions && asArray(positions).length\n\t\t\t\t? positions\n\t\t\t\t: ['bottom-center', 'top-center', 'right-center', 'left-center'],\n\t\t\tthis.displayOriginElement,\n\t\t\t0,\n\t\t\ttrue,\n\t\t);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAiCa,IAAA,qBAAqB,GAA3B,MAAM,qBAAqB,CAAA;IA2DjC,WACkB,CAAA,UAAmC,EACnC,iBAAoC,EACpC,gBAAkC,EAClC,cAAmC,EACnC,MAAc,EACd,cAAoC,EAAA;QALpC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QACpC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAc,CAAA,cAAA,GAAd,cAAc,CAAqB;QACnC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAc,CAAA,cAAA,GAAd,cAAc,CAAsB;QA/DtD,IAAO,CAAA,OAAA,GAAiB,EAA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mBAAmB;QAC3B,MAAM;QACE,oBAAoB,CAAA,CAAA;AAjE1C,CAAA,EAAA,qBAAqB,CAuMjC,CAAA;2FAvMY,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;wOAIA,OAAO,EAAA,CAAA;sBADN,KAAK;uBAAC,cAAc,CAAA;gBAIrB,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,aAAa,EAAA,CAAA;sBADZ,KAAK;gBAIN,aAAa,EAAA,CAAA;sBADZ,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,KAAK;gBASN,OAAO,EAAA,CAAA;sBADN,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,KAAK;gBAIN,MAAM,EAAA,CAAA;sBADL,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAIN,KAAK,EAAA,CAAA;sBADJ,KAAK;gBAIN,UAAU,EAAA,CAAA;sBADT,MAAM;gBAIP,SAAS,EAAA,CAAA;sBADR,MAAM;gBAIP,WAAW,EAAA,CAAA;sBADV,MAAM;gBAIP,UAAU,EAAA,CAAA;sBADT,MAAM;;;ACvFR;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-directives-tooltip.mjs","sources":["../../../../libs/ui-kit/directives/tooltip/tooltip.directive.ts","../../../../libs/ui-kit/directives/tooltip/ng-doc-ui-kit-directives-tooltip.ts"],"sourcesContent":["import {\n\tAfterViewInit,\n\tChangeDetectorRef,\n\tDirective,\n\tElementRef,\n\tEventEmitter,\n\tInput,\n\tNgZone,\n\tOnDestroy,\n\tOutput,\n\tViewContainerRef,\n} from '@angular/core';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { tooltipCloseAnimation, tooltipOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes/overlay-ref';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { ngDocZoneDetach, ngDocZoneOptimize } from '@ng-doc/ui-kit/observables';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services';\nimport { NgDocOverlayStrategy } from '@ng-doc/ui-kit/services/overlay-strategy';\nimport { BaseElement, NgDocContent, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';\nimport { EMPTY, fromEvent, merge, timer } from 'rxjs';\nimport { filter, switchMap, takeUntil } from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocTooltip]',\n\texportAs: 'ngDocTooltip',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocTooltipDirective implements AfterViewInit, OnDestroy {\n\t@Input('ngDocTooltip')\n\tcontent: NgDocContent = '';\n\n\t@Input()\n\tdelay: number = 1000;\n\n\t@Input()\n\tdisplayOrigin?: BaseElement<HTMLElement>;\n\n\t@Input()\n\tpointerOrigin?: BaseElement<HTMLElement>;\n\n\t@Input()\n\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[] = [\n\t\t'top-center',\n\t\t'bottom-center',\n\t\t'right-center',\n\t\t'left-center',\n\t];\n\n\t@Input()\n\tcanOpen: boolean = true;\n\n\t@Input()\n\tpanelClass: string | string[] = '';\n\n\t@Input()\n\tminHeight: number | string = '';\n\n\t@Input()\n\tmaxHeight: number | string = '';\n\n\t@Input()\n\theight: number | string = '';\n\n\t@Input()\n\tminWidth: number | string = '';\n\n\t@Input()\n\tmaxWidth: number | string = '';\n\n\t@Input()\n\twidth: number | string = '';\n\n\t@Output()\n\tbeforeOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterOpen: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tbeforeClose: EventEmitter<void> = new EventEmitter<void>();\n\n\t@Output()\n\tafterClose: EventEmitter<void> = new EventEmitter<void>();\n\n\toverlayRef: NgDocOverlayRef | null = null;\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly changeDetectorRef: ChangeDetectorRef,\n\t\tprivate readonly viewContainerRef: ViewContainerRef,\n\t\tprivate readonly overlayService: NgDocOverlayService,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly scrollStrategy: NgDocOverlayStrategy,\n\t) {}\n\n\tngAfterViewInit(): void {\n\t\t// Opens tooltip with delay\n\t\tfromEvent(this.pointerOriginElement, 'mouseenter')\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.canOpen && !this.isOpened),\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\ttimer(this.delay).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseleave'))),\n\t\t\t\t),\n\t\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe(() => this.show());\n\n\t\t// Closes tooltip when mouseleave was fired, and cancel closing if mouseenter was happened\n\t\tmerge(\n\t\t\tfromEvent(this.pointerOriginElement, 'mouseleave'),\n\t\t\tthis.beforeOpen.pipe(\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\tisPresent(this.overlayRef)\n\t\t\t\t\t\t? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseleave')\n\t\t\t\t\t\t: EMPTY,\n\t\t\t\t),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\tfilter(() => this.isOpened),\n\t\t\t\tswitchMap(() =>\n\t\t\t\t\ttimer(50).pipe(\n\t\t\t\t\t\ttakeUntil(fromEvent(this.pointerOriginElement, 'mouseenter')),\n\t\t\t\t\t\ttakeUntil(\n\t\t\t\t\t\t\tisPresent(this.overlayRef)\n\t\t\t\t\t\t\t\t? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseenter')\n\t\t\t\t\t\t\t\t: EMPTY,\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t\tngDocZoneOptimize(this.ngZone),\n\t\t\t)\n\t\t\t.subscribe(() => this.hide());\n\t}\n\n\tshow(): void {\n\t\tif (!this.isOpened) {\n\t\t\tthis.overlayRef = this.overlayService.open(this.content, {\n\t\t\t\torigin: this.displayOriginElement,\n\t\t\t\toverlayContainer: NgDocOverlayContainerComponent,\n\t\t\t\tpositionStrategy: this.overlayService.connectedPositionStrategy(\n\t\t\t\t\tthis.displayOriginElement,\n\t\t\t\t\tthis.getPositions(this.positions),\n\t\t\t\t),\n\t\t\t\tviewContainerRef: this.viewContainerRef,\n\t\t\t\twithPointer: true,\n\t\t\t\tcontactBorder: true,\n\t\t\t\tpanelClass: ['ng-doc-tooltip', ...asArray(this.panelClass)],\n\t\t\t\theight: this.height,\n\t\t\t\twidth: this.width,\n\t\t\t\tminHeight: this.minHeight,\n\t\t\t\tminWidth: this.minWidth,\n\t\t\t\tmaxHeight: this.maxHeight,\n\t\t\t\tmaxWidth: this.maxWidth,\n\t\t\t\tscrollStrategy: this.scrollStrategy,\n\t\t\t\tdisposeOnRouteNavigation: true,\n\t\t\t\topenAnimation: tooltipOpenAnimation,\n\t\t\t\tcloseAnimation: tooltipCloseAnimation,\n\t\t\t});\n\t\t\tthis.beforeOpen.emit();\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.afterOpen()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterOpen.emit());\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.beforeClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.beforeClose.emit());\n\n\t\t\tthis.overlayRef\n\t\t\t\t?.afterClose()\n\t\t\t\t.pipe(ngDocZoneDetach(this.ngZone))\n\t\t\t\t.subscribe(() => this.afterClose.emit());\n\n\t\t\tthis.overlayRef?.beforeClose().subscribe(() => this.hide());\n\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\thide(): void {\n\t\tif (this.isOpened) {\n\t\t\tthis.overlayRef?.close();\n\t\t\tthis.overlayRef = null;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\tget isOpened(): boolean {\n\t\treturn !!this.overlayRef;\n\t}\n\n\tngOnDestroy(): void {\n\t\tif (this.overlayRef) {\n\t\t\tthis.overlayRef.overlayRef.dispose();\n\t\t}\n\t}\n\n\tprivate get pointerOriginElement(): HTMLElement {\n\t\treturn isPresent(this.pointerOrigin)\n\t\t\t? toElement(this.pointerOrigin)\n\t\t\t: toElement(this.elementRef);\n\t}\n\n\tprivate get displayOriginElement(): HTMLElement {\n\t\treturn isPresent(this.displayOrigin)\n\t\t\t? toElement(this.displayOrigin)\n\t\t\t: toElement(this.elementRef);\n\t}\n\n\tprivate getPositions(\n\t\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t): NgDocOverlayPosition[] {\n\t\treturn NgDocOverlayUtils.getConnectedPosition(\n\t\t\t!!positions && asArray(positions).length\n\t\t\t\t? positions\n\t\t\t\t: ['bottom-center', 'top-center', 'right-center', 'left-center'],\n\t\t\tthis.displayOriginElement,\n\t\t\t0,\n\t\t\ttrue,\n\t\t);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAiCa,IAAA,qBAAqB,GAA3B,MAAM,qBAAqB,CAAA;IA2DjC,WACkB,CAAA,UAAmC,E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,CAAA;sBADR,MAAM;gBAIP,WAAW,EAAA,CAAA;sBADV,MAAM;gBAIP,UAAU,EAAA,CAAA;sBADT,MAAM;;;ACvFR;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-helpers.mjs","sources":["../../../../libs/ui-kit/helpers/merge-overlay-configs.ts","../../../../libs/ui-kit/helpers/to-element.ts","../../../../libs/ui-kit/helpers/ng-doc-ui-kit-helpers.ts"],"sourcesContent":["/**\n * @param defaultConfig\n * @param currentConfig\n * @param hostConfig\n */\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { NgDocOverlayProperties } from '@ng-doc/ui-kit/interfaces';\n\n/**\n *\n * @param defaultConfig\n * @param currentConfig\n * @param hostConfig\n */\nexport function mergeOverlayConfigs(\n\tdefaultConfig: NgDocOverlayProperties,\n\tcurrentConfig: NgDocOverlayProperties,\n\thostConfig: NgDocOverlayProperties = {},\n): NgDocOverlayProperties {\n\tconst configKeys: Iterable<keyof NgDocOverlayProperties> & Array<keyof NgDocOverlayProperties> =\n\t\tObject.keys({\n\t\t\t...defaultConfig,\n\t\t\t...currentConfig,\n\t\t}) as Iterable<keyof NgDocOverlayProperties> & Array<keyof NgDocOverlayProperties>;\n\tconst newConfig: NgDocOverlayProperties = {};\n\n\tfor (const key of configKeys) {\n\t\tnewConfig[key] = (\n\t\t\tdefaultConfig[key] !== currentConfig[key] && isPresent(currentConfig[key])\n\t\t\t\t? currentConfig[key]\n\t\t\t\t: (hostConfig && hostConfig[key]) ?? defaultConfig[key]\n\t\t) as never;\n\t}\n\n\treturn newConfig;\n}\n","import {ElementRef} from '@angular/core';\nimport {BaseElement} from '@ng-doc/ui-kit/types';\n\n/**\n * @param element\n */\nexport function toElement<T extends Element>(element: BaseElement<T>): T {\n\treturn element instanceof ElementRef ? element.nativeElement : element;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;AAIG;AAIH;;;;;AAKG;AACG,SAAU,mBAAmB,CAClC,aAAqC,EACrC,aAAqC,EACrC,aAAqC,EAAE,EAAA;AAEvC,IAAA,MAAM,UAAU,GACf,MAAM,CAAC,IAAI,CAAC;AACX,QAAA,GAAG,aAAa;AAChB,QAAA,GAAG,aAAa;AAChB,KAAA,CAAiF,CAAC;IACpF,MAAM,SAAS,GAA2B,EAAE,CAAC;AAE7C,IAAA,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;QAC7B,SAAS,CAAC,GAAG,CAAC,IACb,aAAa,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACzE,cAAE,aAAa,CAAC,GAAG,CAAC;AACpB,cAAE,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,CAC/C,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-helpers.mjs","sources":["../../../../libs/ui-kit/helpers/merge-overlay-configs.ts","../../../../libs/ui-kit/helpers/to-element.ts","../../../../libs/ui-kit/helpers/ng-doc-ui-kit-helpers.ts"],"sourcesContent":["/**\n * @param defaultConfig\n * @param currentConfig\n * @param hostConfig\n */\nimport { isPresent } from '@ng-doc/core/helpers/is-present';\nimport { NgDocOverlayProperties } from '@ng-doc/ui-kit/interfaces';\n\n/**\n *\n * @param defaultConfig\n * @param currentConfig\n * @param hostConfig\n */\nexport function mergeOverlayConfigs(\n\tdefaultConfig: NgDocOverlayProperties,\n\tcurrentConfig: NgDocOverlayProperties,\n\thostConfig: NgDocOverlayProperties = {},\n): NgDocOverlayProperties {\n\tconst configKeys: Iterable<keyof NgDocOverlayProperties> & Array<keyof NgDocOverlayProperties> =\n\t\tObject.keys({\n\t\t\t...defaultConfig,\n\t\t\t...currentConfig,\n\t\t}) as Iterable<keyof NgDocOverlayProperties> & Array<keyof NgDocOverlayProperties>;\n\tconst newConfig: NgDocOverlayProperties = {};\n\n\tfor (const key of configKeys) {\n\t\tnewConfig[key] = (\n\t\t\tdefaultConfig[key] !== currentConfig[key] && isPresent(currentConfig[key])\n\t\t\t\t? currentConfig[key]\n\t\t\t\t: (hostConfig && hostConfig[key]) ?? defaultConfig[key]\n\t\t) as never;\n\t}\n\n\treturn newConfig;\n}\n","import {ElementRef} from '@angular/core';\nimport {BaseElement} from '@ng-doc/ui-kit/types';\n\n/**\n * @param element\n */\nexport function toElement<T extends Element>(element: BaseElement<T>): T {\n\treturn element instanceof ElementRef ? element.nativeElement : element;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;;;AAIG;AAIH;;;;;AAKG;AACG,SAAU,mBAAmB,CAClC,aAAqC,EACrC,aAAqC,EACrC,aAAqC,EAAE,EAAA;AAEvC,IAAA,MAAM,UAAU,GACf,MAAM,CAAC,IAAI,CAAC;AACX,QAAA,GAAG,aAAa;AAChB,QAAA,GAAG,aAAa;AAChB,KAAA,CAAiF,CAAC;IACpF,MAAM,SAAS,GAA2B,EAAE,CAAC;AAE7C,IAAA,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;QAC7B,SAAS,CAAC,GAAG,CAAC,IACb,aAAa,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACzE,cAAE,aAAa,CAAC,GAAG,CAAC;AACpB,cAAE,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,CAC/C,CAAC;KACX;AAED,IAAA,OAAO,SAAS,CAAC;AAClB;;AChCA;;AAEG;AACG,SAAU,SAAS,CAAoB,OAAuB,EAAA;AACnE,IAAA,OAAO,OAAO,YAAY,UAAU,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC;AACxE;;ACRA;;AAEG;;;;"}
|
|
@@ -38,10 +38,10 @@ class NgDocCacheInterceptor {
|
|
|
38
38
|
this.cache.set(request.url, newHandler);
|
|
39
39
|
return newHandler;
|
|
40
40
|
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
42
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocCacheInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
42
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocCacheInterceptor }); }
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocCacheInterceptor, decorators: [{
|
|
45
45
|
type: Injectable
|
|
46
46
|
}] });
|
|
47
47
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-interceptors.mjs","sources":["../../../../libs/ui-kit/interceptors/cache.interceptor.ts","../../../../libs/ui-kit/interceptors/ng-doc-ui-kit-interceptors.ts"],"sourcesContent":["import {\n\tHttpEvent,\n\tHttpHandler,\n\tHttpInterceptor,\n\tHttpRequest,\n\tHttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { shareReplay, tap } from 'rxjs/operators';\n\n@Injectable()\nexport class NgDocCacheInterceptor implements HttpInterceptor {\n\tstatic readonly TOKEN: string = Math.random().toString(36).slice(-8);\n\tprivate cache: Map<string, Observable<HttpEvent<unknown>>> = new Map<\n\t\tstring,\n\t\tObservable<HttpEvent<unknown>>\n\t>();\n\n\tintercept<T>(request: HttpRequest<T>, next: HttpHandler): Observable<HttpEvent<T>> {\n\t\t// Only GET requests can be cached\n\t\tif (request.method !== 'GET') {\n\t\t\treturn next.handle(request);\n\t\t}\n\n\t\t// Do not cache request when the token is not provided\n\t\tif (!request.params.has(NgDocCacheInterceptor.TOKEN)) {\n\t\t\treturn next.handle(request);\n\t\t}\n\n\t\t// Return cached response\n\t\tconst cachedRequest: Observable<HttpEvent<T>> | undefined = this.cache.get(\n\t\t\trequest.url,\n\t\t) as Observable<HttpEvent<T>>;\n\n\t\tif (cachedRequest) {\n\t\t\treturn cachedRequest;\n\t\t}\n\n\t\t// Clone the request, delete the TOKEN from the params\n\t\tconst newRequest: HttpRequest<T> = request.clone({\n\t\t\tparams: request.params.delete(NgDocCacheInterceptor.TOKEN),\n\t\t});\n\n\t\t// Create a new request handler\n\t\tconst newHandler: Observable<HttpEvent<T>> = next.handle(newRequest).pipe(\n\t\t\ttap({\n\t\t\t\terror: (event: HttpEvent<Error>) => {\n\t\t\t\t\tif (event instanceof HttpResponse) {\n\t\t\t\t\t\tthis.cache.delete(event.url || '');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t}),\n\t\t\tshareReplay(1),\n\t\t);\n\n\t\t// Cache the request and return the new handler\n\t\tthis.cache.set(request.url, newHandler);\n\n\t\treturn newHandler;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAYa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAGS,QAAA,IAAA,CAAA,KAAK,GAAgD,IAAI,GAAG,EAGjE,CAAC;AA4CJ,KAAA;AAhDgB,IAAA,SAAA,IAAA,CAAA,KAAK,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAA;IAMrE,SAAS,CAAI,OAAuB,EAAE,IAAiB,EAAA;;AAEtD,QAAA,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;AAC7B,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-interceptors.mjs","sources":["../../../../libs/ui-kit/interceptors/cache.interceptor.ts","../../../../libs/ui-kit/interceptors/ng-doc-ui-kit-interceptors.ts"],"sourcesContent":["import {\n\tHttpEvent,\n\tHttpHandler,\n\tHttpInterceptor,\n\tHttpRequest,\n\tHttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { shareReplay, tap } from 'rxjs/operators';\n\n@Injectable()\nexport class NgDocCacheInterceptor implements HttpInterceptor {\n\tstatic readonly TOKEN: string = Math.random().toString(36).slice(-8);\n\tprivate cache: Map<string, Observable<HttpEvent<unknown>>> = new Map<\n\t\tstring,\n\t\tObservable<HttpEvent<unknown>>\n\t>();\n\n\tintercept<T>(request: HttpRequest<T>, next: HttpHandler): Observable<HttpEvent<T>> {\n\t\t// Only GET requests can be cached\n\t\tif (request.method !== 'GET') {\n\t\t\treturn next.handle(request);\n\t\t}\n\n\t\t// Do not cache request when the token is not provided\n\t\tif (!request.params.has(NgDocCacheInterceptor.TOKEN)) {\n\t\t\treturn next.handle(request);\n\t\t}\n\n\t\t// Return cached response\n\t\tconst cachedRequest: Observable<HttpEvent<T>> | undefined = this.cache.get(\n\t\t\trequest.url,\n\t\t) as Observable<HttpEvent<T>>;\n\n\t\tif (cachedRequest) {\n\t\t\treturn cachedRequest;\n\t\t}\n\n\t\t// Clone the request, delete the TOKEN from the params\n\t\tconst newRequest: HttpRequest<T> = request.clone({\n\t\t\tparams: request.params.delete(NgDocCacheInterceptor.TOKEN),\n\t\t});\n\n\t\t// Create a new request handler\n\t\tconst newHandler: Observable<HttpEvent<T>> = next.handle(newRequest).pipe(\n\t\t\ttap({\n\t\t\t\terror: (event: HttpEvent<Error>) => {\n\t\t\t\t\tif (event instanceof HttpResponse) {\n\t\t\t\t\t\tthis.cache.delete(event.url || '');\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t}),\n\t\t\tshareReplay(1),\n\t\t);\n\n\t\t// Cache the request and return the new handler\n\t\tthis.cache.set(request.url, newHandler);\n\n\t\treturn newHandler;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAYa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAGS,QAAA,IAAA,CAAA,KAAK,GAAgD,IAAI,GAAG,EAGjE,CAAC;AA4CJ,KAAA;AAhDgB,IAAA,SAAA,IAAA,CAAA,KAAK,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAA;IAMrE,SAAS,CAAI,OAAuB,EAAE,IAAiB,EAAA;;AAEtD,QAAA,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;AAC7B,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SAC5B;;AAGD,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE;AACrD,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SAC5B;;AAGD,QAAA,MAAM,aAAa,GAAyC,IAAI,CAAC,KAAK,CAAC,GAAG,CACzE,OAAO,CAAC,GAAG,CACiB,CAAC;QAE9B,IAAI,aAAa,EAAE;AAClB,YAAA,OAAO,aAAa,CAAC;SACrB;;AAGD,QAAA,MAAM,UAAU,GAAmB,OAAO,CAAC,KAAK,CAAC;YAChD,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;AAC1D,SAAA,CAAC,CAAC;;AAGH,QAAA,MAAM,UAAU,GAA6B,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CACxE,GAAG,CAAC;AACH,YAAA,KAAK,EAAE,CAAC,KAAuB,KAAI;AAClC,gBAAA,IAAI,KAAK,YAAY,YAAY,EAAE;oBAClC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;iBACnC;aACD;AACD,SAAA,CAAC,EACF,WAAW,CAAC,CAAC,CAAC,CACd,CAAC;;QAGF,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAExC,QAAA,OAAO,UAAU,CAAC;KAClB;8GAhDW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;kHAArB,qBAAqB,EAAA,CAAA,CAAA,EAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;;;ACXX;;AAEG;;;;"}
|
|
@@ -6,10 +6,10 @@ class NgDocAsArrayPipe {
|
|
|
6
6
|
transform(value) {
|
|
7
7
|
return asArray(value);
|
|
8
8
|
}
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
10
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocAsArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
10
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: NgDocAsArrayPipe, isStandalone: true, name: "asArray" }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocAsArrayPipe, decorators: [{
|
|
13
13
|
type: Pipe,
|
|
14
14
|
args: [{
|
|
15
15
|
name: 'asArray',
|
|
@@ -5,10 +5,10 @@ class NgDocBindPipe {
|
|
|
5
5
|
transform(fn, _this) {
|
|
6
6
|
return fn.bind(_this);
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocBindPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: NgDocBindPipe, isStandalone: true, name: "bind" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocBindPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'bind',
|
|
@@ -5,10 +5,10 @@ class NgDocExecutePipe {
|
|
|
5
5
|
transform(fn, ...args) {
|
|
6
6
|
return fn(...args);
|
|
7
7
|
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
9
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocExecutePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
9
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: NgDocExecutePipe, isStandalone: true, name: "execute" }); }
|
|
10
10
|
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocExecutePipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
14
|
name: 'execute',
|
|
@@ -12,10 +12,10 @@ class NgDocHighlighterPipe {
|
|
|
12
12
|
});
|
|
13
13
|
return input;
|
|
14
14
|
}
|
|
15
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
16
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocHighlighterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
16
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: NgDocHighlighterPipe, isStandalone: true, name: "ngDocHighlighterPipe" }); }
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocHighlighterPipe, decorators: [{
|
|
19
19
|
type: Pipe,
|
|
20
20
|
args: [{
|
|
21
21
|
name: 'ngDocHighlighterPipe',
|
|
@@ -20,10 +20,10 @@ class NgDocDialogService {
|
|
|
20
20
|
panelClass: ['ng-doc-dialog', ...asArray(config?.panelClass)],
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
24
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
24
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocDialogService, providedIn: 'root' }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocDialogService, decorators: [{
|
|
27
27
|
type: Injectable,
|
|
28
28
|
args: [{
|
|
29
29
|
providedIn: 'root',
|
|
@@ -32,14 +32,14 @@ let NgDocNotifyService = class NgDocNotifyService {
|
|
|
32
32
|
closeAnimation: notificationCloseAnimation,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
36
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocNotifyService, deps: [{ token: i1.NgDocOverlayService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocNotifyService, providedIn: 'root' }); }
|
|
37
37
|
};
|
|
38
38
|
NgDocNotifyService = __decorate([
|
|
39
39
|
UntilDestroy(),
|
|
40
40
|
__metadata("design:paramtypes", [NgDocOverlayService])
|
|
41
41
|
], NgDocNotifyService);
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocNotifyService, decorators: [{
|
|
43
43
|
type: Injectable,
|
|
44
44
|
args: [{
|
|
45
45
|
providedIn: 'root',
|
|
@@ -40,10 +40,10 @@ class NgDocOverlayStrategy {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayStrategy, deps: [{ token: DOCUMENT }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
44
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayStrategy, providedIn: 'root' }); }
|
|
45
45
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayStrategy, decorators: [{
|
|
47
47
|
type: Injectable,
|
|
48
48
|
args: [{ providedIn: 'root' }]
|
|
49
49
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-services-overlay-strategy.mjs","sources":["../../../../libs/ui-kit/services/overlay-strategy/overlay-strategy.ts","../../../../libs/ui-kit/services/overlay-strategy/ng-doc-ui-kit-services-overlay-strategy.ts"],"sourcesContent":["import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone } from '@angular/core';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { fromEvent, Subject } from 'rxjs';\nimport { filter, map, takeUntil, throttleTime } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayStrategy implements ScrollStrategy {\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate destroy$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private documentRef: Document,\n\t\tprivate ngZone: NgZone,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.overlayRef = overlayRef;\n\t}\n\n\tenable(): void {\n\t\tfromEvent(this.documentRef, 'scroll', { capture: true })\n\t\t\t.pipe(\n\t\t\t\tngDocZoneDetach(this.ngZone),\n\t\t\t\tthrottleTime(10),\n\t\t\t\tmap((scrollEvent: Event) =>\n\t\t\t\t\tscrollEvent.target instanceof Document\n\t\t\t\t\t\t? scrollEvent.target.scrollingElement\n\t\t\t\t\t\t: scrollEvent.target,\n\t\t\t\t),\n\t\t\t\tfilter((target: EventTarget | null) =>\n\t\t\t\t\ttarget instanceof Node ? target.contains(this.origin) || !this.origin : false,\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroy$),\n\t\t\t)\n\t\t\t.subscribe(() => this.detach());\n\t}\n\n\tprivate get origin(): HTMLElement | null {\n\t\tconst config: NgDocOverlayConfig | undefined =\n\t\t\tthis.overlayRef?.getConfig() as NgDocOverlayConfig;\n\t\treturn config?.viewContainerRef\n\t\t\t? (toElement(config.viewContainerRef.element) as HTMLElement)\n\t\t\t: null;\n\t}\n\n\tdisable(): void {\n\t\tthis.destroy$.next();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tif (this.overlayRef?.hasAttached()) {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.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AM,CAAC,gBAAgB,CAAC,OAAO,CAAiB;cAC3D,IAAI,CAAC;KACR;IAED,OAAO,GAAA;AACN,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACrB;IAED,MAAM,GAAA;QACL,IAAI,CAAC,OAAO,EAAE,CAAC;AACf,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE;AACnC,YAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAK;AACpB,gBAAA,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;AAC3B,aAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-services-overlay-strategy.mjs","sources":["../../../../libs/ui-kit/services/overlay-strategy/overlay-strategy.ts","../../../../libs/ui-kit/services/overlay-strategy/ng-doc-ui-kit-services-overlay-strategy.ts"],"sourcesContent":["import { OverlayRef, ScrollStrategy } from '@angular/cdk/overlay';\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable, NgZone } from '@angular/core';\nimport { toElement } from '@ng-doc/ui-kit/helpers';\nimport { NgDocOverlayConfig } from '@ng-doc/ui-kit/interfaces';\nimport { ngDocZoneDetach } from '@ng-doc/ui-kit/observables';\nimport { fromEvent, Subject } from 'rxjs';\nimport { filter, map, takeUntil, throttleTime } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayStrategy implements ScrollStrategy {\n\tprivate overlayRef: OverlayRef | null = null;\n\tprivate destroy$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT) private documentRef: Document,\n\t\tprivate ngZone: NgZone,\n\t) {}\n\n\tattach(overlayRef: OverlayRef): void {\n\t\tthis.overlayRef = overlayRef;\n\t}\n\n\tenable(): void {\n\t\tfromEvent(this.documentRef, 'scroll', { capture: true })\n\t\t\t.pipe(\n\t\t\t\tngDocZoneDetach(this.ngZone),\n\t\t\t\tthrottleTime(10),\n\t\t\t\tmap((scrollEvent: Event) =>\n\t\t\t\t\tscrollEvent.target instanceof Document\n\t\t\t\t\t\t? scrollEvent.target.scrollingElement\n\t\t\t\t\t\t: scrollEvent.target,\n\t\t\t\t),\n\t\t\t\tfilter((target: EventTarget | null) =>\n\t\t\t\t\ttarget instanceof Node ? target.contains(this.origin) || !this.origin : false,\n\t\t\t\t),\n\t\t\t\ttakeUntil(this.destroy$),\n\t\t\t)\n\t\t\t.subscribe(() => this.detach());\n\t}\n\n\tprivate get origin(): HTMLElement | null {\n\t\tconst config: NgDocOverlayConfig | undefined =\n\t\t\tthis.overlayRef?.getConfig() as NgDocOverlayConfig;\n\t\treturn config?.viewContainerRef\n\t\t\t? (toElement(config.viewContainerRef.element) as HTMLElement)\n\t\t\t: null;\n\t}\n\n\tdisable(): void {\n\t\tthis.destroy$.next();\n\t}\n\n\tdetach(): void {\n\t\tthis.disable();\n\t\tif (this.overlayRef?.hasAttached()) {\n\t\t\tthis.ngZone.run(() => {\n\t\t\t\tthis.overlayRef?.detach();\n\t\t\t});\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAUa,oBAAoB,CAAA;IAIhC,WAC2B,CAAA,WAAqB,EACvC,MAAc,EAAA;QADI,IAAW,CAAA,WAAA,GAAX,WAAW,CAAU;QACvC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QALf,IAAU,CAAA,UAAA,GAAsB,IAAI,CAAC;AACrC,QAAA,IAAA,CAAA,QAAQ,GAAkB,IAAI,OAAO,EAAQ,CAAC;KAKlD;AAEJ,IAAA,MAAM,CAAC,UAAsB,EAAA;AAC5B,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAC7B;IAED,MAAM,GAAA;AACL,QAAA,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aACtD,IAAI,CACJ,eAAe,CAAC,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CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AALL,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,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BAM/B,MAAM;2BAAC,QAAQ,CAAA;;;ACflB;;AAEG;;;;"}
|
|
@@ -67,10 +67,10 @@ class NgDocOverlayService {
|
|
|
67
67
|
parent: injector || this.injector,
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayService, deps: [{ token: i1.Overlay }, { token: i0.NgZone }, { token: i0.Injector }, { token: i2.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
71
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayService, providedIn: 'root' }); }
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocOverlayService, decorators: [{
|
|
74
74
|
type: Injectable,
|
|
75
75
|
args: [{ providedIn: 'root' }]
|
|
76
76
|
}], ctorParameters: () => [{ type: i1.Overlay }, { type: i0.NgZone }, { type: i0.Injector }, { type: i2.Router, decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-services-overlay.mjs","sources":["../../../../libs/ui-kit/services/overlay/overlay.service.ts","../../../../libs/ui-kit/services/overlay/ng-doc-ui-kit-services-overlay.ts"],"sourcesContent":["import {\n\tFlexibleConnectedPositionStrategy,\n\tGlobalPositionStrategy,\n\tOverlay,\n\tOverlayRef,\n\tScrollStrategyOptions,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n\tComponentRef,\n\tInjectable,\n\tInjector,\n\tNgZone,\n\tOptional,\n\tStaticProvider,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';\nimport { NgDocOverlayConfig, NgDocOverlayContainer } from '@ng-doc/ui-kit/interfaces';\nimport { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { PolymorpheusComponent } from '@tinkoff/ng-polymorpheus';\nimport { take } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayService {\n\tconstructor(\n\t\tprivate overlay: Overlay,\n\t\tprivate ngZone: NgZone,\n\t\tprivate injector: Injector,\n\t\t@Optional()\n\t\tprivate router?: Router,\n\t) {}\n\n\topen<R>(\n\t\tcontent: NgDocContent,\n\t\tconfig: NgDocOverlayConfig,\n\t\tproviders: StaticProvider[] = [],\n\t): NgDocOverlayRef<R> {\n\t\tconst overlayRef: OverlayRef = this.createOverlay(config);\n\t\treturn this.attachTooltipContainer(content, overlayRef, config, providers);\n\t}\n\n\tprivate attachTooltipContainer<R>(\n\t\tcontent: NgDocContent,\n\t\toverlay: OverlayRef,\n\t\tconfig: NgDocOverlayConfig,\n\t\tproviders: StaticProvider[],\n\t): NgDocOverlayRef<R> {\n\t\tconst containerPortal: ComponentPortal<NgDocOverlayContainer> = new ComponentPortal(\n\t\t\tconfig.overlayContainer,\n\t\t\tconfig.viewContainerRef,\n\t\t\tconfig.viewContainerRef?.injector,\n\t\t);\n\t\tconst containerRef: ComponentRef<NgDocOverlayContainer> = overlay.attach(containerPortal);\n\t\tconst overlayRef: NgDocOverlayRef<R> = new NgDocOverlayRef<R>(\n\t\t\toverlay,\n\t\t\tconfig,\n\t\t\tcontainerRef.instance,\n\t\t\tthis.ngZone,\n\t\t\tthis.router,\n\t\t);\n\n\t\tif (content instanceof PolymorpheusComponent) {\n\t\t\tcontent = new PolymorpheusComponent(\n\t\t\t\tcontent.component,\n\t\t\t\tthis.createInjector(overlayRef, providers, config.viewContainerRef?.injector),\n\t\t\t);\n\t\t}\n\n\t\tcontainerRef.instance.config = config;\n\t\tcontainerRef.instance.content = content;\n\t\tcontainerRef.instance.markForCheck();\n\n\t\treturn overlayRef;\n\t}\n\n\tprivate createOverlay(config: NgDocOverlayConfig): OverlayRef {\n\t\tconst overlayRef: OverlayRef = this.overlay.create(config);\n\t\toverlayRef\n\t\t\t.detachments()\n\t\t\t.pipe(take(1))\n\t\t\t.subscribe(() => {\n\t\t\t\toverlayRef.hasAttached() && overlayRef.detach();\n\t\t\t});\n\t\treturn overlayRef;\n\t}\n\n\tconnectedPositionStrategy(\n\t\torigin: NgDocOverlayOrigin,\n\t\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t): FlexibleConnectedPositionStrategy {\n\t\treturn this.overlay\n\t\t\t.position()\n\t\t\t.flexibleConnectedTo(origin)\n\t\t\t.withPositions(NgDocOverlayUtils.toConnectedPositions(asArray(positions)))\n\t\t\t.withPush(true);\n\t}\n\n\tglobalPositionStrategy(): GlobalPositionStrategy {\n\t\treturn this.overlay.position().global();\n\t}\n\n\tscrollStrategy(): ScrollStrategyOptions {\n\t\treturn this.overlay.scrollStrategies;\n\t}\n\n\tprivate createInjector<R>(\n\t\toverlayRef: NgDocOverlayRef<R>,\n\t\tproviders: StaticProvider[],\n\t\tinjector?: Injector,\n\t): Injector {\n\t\treturn Injector.create({\n\t\t\tproviders: [\n\t\t\t\t...providers,\n\t\t\t\t{\n\t\t\t\t\tprovide: NgDocOverlayRef,\n\t\t\t\t\tuseValue: overlayRef,\n\t\t\t\t},\n\t\t\t],\n\t\t\tparent: injector || this.injector,\n\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MA0Ba,mBAAmB,CAAA;AAC/B,IAAA,WAAA,CACS,OAAgB,EAChB,MAAc,EACd,QAAkB,EAElB,MAAe,EAAA;QAJf,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;QAChB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAElB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;KACpB;AAEJ,IAAA,IAAI,CACH,OAAqB,EACrB,MAA0B,EAC1B,YAA8B,EAAE,EAAA;QAEhC,MAAM,UAAU,GAAe,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC1D,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KAC3E;AAEO,IAAA,sBAAsB,CAC7B,OAAqB,EACrB,OAAmB,EACnB,MAA0B,EAC1B,SAA2B,EAAA;AAE3B,QAAA,MAAM,eAAe,GAA2C,IAAI,eAAe,CAClF,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CACjC,CAAC;QACF,MAAM,YAAY,GAAwC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAC1F,MAAM,UAAU,GAAuB,IAAI,eAAe,CACzD,OAAO,EACP,MAAM,EACN,YAAY,CAAC,QAAQ,EACrB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CACX,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-services-overlay.mjs","sources":["../../../../libs/ui-kit/services/overlay/overlay.service.ts","../../../../libs/ui-kit/services/overlay/ng-doc-ui-kit-services-overlay.ts"],"sourcesContent":["import {\n\tFlexibleConnectedPositionStrategy,\n\tGlobalPositionStrategy,\n\tOverlay,\n\tOverlayRef,\n\tScrollStrategyOptions,\n} from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n\tComponentRef,\n\tInjectable,\n\tInjector,\n\tNgZone,\n\tOptional,\n\tStaticProvider,\n} from '@angular/core';\nimport { Router } from '@angular/router';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';\nimport { NgDocOverlayConfig, NgDocOverlayContainer } from '@ng-doc/ui-kit/interfaces';\nimport { NgDocContent, NgDocOverlayOrigin, NgDocOverlayPosition } from '@ng-doc/ui-kit/types';\nimport { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';\nimport { PolymorpheusComponent } from '@tinkoff/ng-polymorpheus';\nimport { take } from 'rxjs/operators';\n\n@Injectable({ providedIn: 'root' })\nexport class NgDocOverlayService {\n\tconstructor(\n\t\tprivate overlay: Overlay,\n\t\tprivate ngZone: NgZone,\n\t\tprivate injector: Injector,\n\t\t@Optional()\n\t\tprivate router?: Router,\n\t) {}\n\n\topen<R>(\n\t\tcontent: NgDocContent,\n\t\tconfig: NgDocOverlayConfig,\n\t\tproviders: StaticProvider[] = [],\n\t): NgDocOverlayRef<R> {\n\t\tconst overlayRef: OverlayRef = this.createOverlay(config);\n\t\treturn this.attachTooltipContainer(content, overlayRef, config, providers);\n\t}\n\n\tprivate attachTooltipContainer<R>(\n\t\tcontent: NgDocContent,\n\t\toverlay: OverlayRef,\n\t\tconfig: NgDocOverlayConfig,\n\t\tproviders: StaticProvider[],\n\t): NgDocOverlayRef<R> {\n\t\tconst containerPortal: ComponentPortal<NgDocOverlayContainer> = new ComponentPortal(\n\t\t\tconfig.overlayContainer,\n\t\t\tconfig.viewContainerRef,\n\t\t\tconfig.viewContainerRef?.injector,\n\t\t);\n\t\tconst containerRef: ComponentRef<NgDocOverlayContainer> = overlay.attach(containerPortal);\n\t\tconst overlayRef: NgDocOverlayRef<R> = new NgDocOverlayRef<R>(\n\t\t\toverlay,\n\t\t\tconfig,\n\t\t\tcontainerRef.instance,\n\t\t\tthis.ngZone,\n\t\t\tthis.router,\n\t\t);\n\n\t\tif (content instanceof PolymorpheusComponent) {\n\t\t\tcontent = new PolymorpheusComponent(\n\t\t\t\tcontent.component,\n\t\t\t\tthis.createInjector(overlayRef, providers, config.viewContainerRef?.injector),\n\t\t\t);\n\t\t}\n\n\t\tcontainerRef.instance.config = config;\n\t\tcontainerRef.instance.content = content;\n\t\tcontainerRef.instance.markForCheck();\n\n\t\treturn overlayRef;\n\t}\n\n\tprivate createOverlay(config: NgDocOverlayConfig): OverlayRef {\n\t\tconst overlayRef: OverlayRef = this.overlay.create(config);\n\t\toverlayRef\n\t\t\t.detachments()\n\t\t\t.pipe(take(1))\n\t\t\t.subscribe(() => {\n\t\t\t\toverlayRef.hasAttached() && overlayRef.detach();\n\t\t\t});\n\t\treturn overlayRef;\n\t}\n\n\tconnectedPositionStrategy(\n\t\torigin: NgDocOverlayOrigin,\n\t\tpositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t): FlexibleConnectedPositionStrategy {\n\t\treturn this.overlay\n\t\t\t.position()\n\t\t\t.flexibleConnectedTo(origin)\n\t\t\t.withPositions(NgDocOverlayUtils.toConnectedPositions(asArray(positions)))\n\t\t\t.withPush(true);\n\t}\n\n\tglobalPositionStrategy(): GlobalPositionStrategy {\n\t\treturn this.overlay.position().global();\n\t}\n\n\tscrollStrategy(): ScrollStrategyOptions {\n\t\treturn this.overlay.scrollStrategies;\n\t}\n\n\tprivate createInjector<R>(\n\t\toverlayRef: NgDocOverlayRef<R>,\n\t\tproviders: StaticProvider[],\n\t\tinjector?: Injector,\n\t): Injector {\n\t\treturn Injector.create({\n\t\t\tproviders: [\n\t\t\t\t...providers,\n\t\t\t\t{\n\t\t\t\t\tprovide: NgDocOverlayRef,\n\t\t\t\t\tuseValue: overlayRef,\n\t\t\t\t},\n\t\t\t],\n\t\t\tparent: injector || this.injector,\n\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MA0Ba,mBAAmB,CAAA;AAC/B,IAAA,WAAA,CACS,OAAgB,EAChB,MAAc,EACd,QAAkB,EAElB,MAAe,EAAA;QAJf,IAAO,CAAA,OAAA,GAAP,OAAO,CAAS;QAChB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAElB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAS;KACpB;AAEJ,IAAA,IAAI,CACH,OAAqB,EACrB,MAA0B,EAC1B,YAA8B,EAAE,EAAA;QAEhC,MAAM,UAAU,GAAe,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC1D,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KAC3E;AAEO,IAAA,sBAAsB,CAC7B,OAAqB,EACrB,OAAmB,EACnB,MAA0B,EAC1B,SAA2B,EAAA;AAE3B,QAAA,MAAM,eAAe,GAA2C,IAAI,eAAe,CAClF,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,gBAAgB,EACvB,MAAM,CAAC,gBAAgB,EAAE,QAAQ,CACjC,CAAC;QACF,MAAM,YAAY,GAAwC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;QAC1F,MAAM,UAAU,GAAuB,IAAI,eAAe,CACzD,OA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areFactory({ minVersion: "12.0.0", version: "17.
|
|
26
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocScrollService, deps: [{ token: DOCUMENT }, { token: i1.ViewportRuler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
26
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocScrollService, providedIn: 'root' }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: NgDocScrollService, decorators: [{
|
|
29
29
|
type: Injectable,
|
|
30
30
|
args: [{
|
|
31
31
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-utils.mjs","sources":["../../../../libs/ui-kit/utils/focus-utils.ts","../../../../libs/ui-kit/utils/overlay-utils.ts","../../../../libs/ui-kit/utils/position-utils.ts","../../../../libs/ui-kit/utils/ng-doc-ui-kit-utils.ts"],"sourcesContent":["export class NgDocFocusUtils {\n\tstatic isNativeKeyboardFocusable(element: Element): boolean {\n\t\tif (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (\n\t\t\t(element instanceof HTMLElement && element.isContentEditable) ||\n\t\t\telement.getAttribute('tabIndex') === '0'\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\n\t\tswitch (element.tagName) {\n\t\t\tcase 'BUTTON':\n\t\t\tcase 'SELECT':\n\t\t\tcase 'TEXTAREA':\n\t\t\t\treturn true;\n\t\t\tcase 'VIDEO':\n\t\t\tcase 'AUDIO':\n\t\t\t\treturn element.hasAttribute('controls');\n\t\t\tcase 'INPUT':\n\t\t\t\treturn element.getAttribute('type') !== 'hidden';\n\t\t\tcase 'A':\n\t\t\tcase 'LINK':\n\t\t\t\treturn element.hasAttribute('href');\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic getClosestKeyboardFocusable(\n\t\tinitial: HTMLElement,\n\t\troot: Node,\n\t\tforward: boolean = true,\n\t): HTMLElement | null {\n\t\tif (!root.ownerDocument) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n\t\tconst svgNodeFilter: NodeFilter = ((node: Node) =>\n\t\t\t'ownerSVGElement' in node ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT) as never;\n\n\t\tconst treeWalker: TreeWalker = root.ownerDocument.createTreeWalker(\n\t\t\troot,\n\t\t\tNodeFilter.SHOW_ELEMENT,\n\t\t\tsvgNodeFilter,\n\t\t);\n\n\t\ttreeWalker.currentNode = initial;\n\n\t\twhile (forward ? treeWalker.nextNode() : treeWalker.previousNode()) {\n\t\t\tif (treeWalker.currentNode instanceof HTMLElement) {\n\t\t\t\tinitial = treeWalker.currentNode;\n\t\t\t}\n\n\t\t\tif (NgDocFocusUtils.isNativeKeyboardFocusable(initial)) {\n\t\t\t\treturn initial;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic focusClosestElement(initial: HTMLElement, root: Node, forward: boolean = true): void {\n\t\tconst focusable: HTMLElement | null = NgDocFocusUtils.getClosestKeyboardFocusable(\n\t\t\tinitial,\n\t\t\troot,\n\t\t\tforward,\n\t\t);\n\t\tif (focusable) {\n\t\t\tfocusable.focus();\n\t\t}\n\t}\n}\n","import { ConnectedPosition, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport {\n\tNgDocHorizontalAlign,\n\tNgDocOverlayPosition,\n\tNgDocOverlayRelativePosition,\n\tNgDocVerticalAlign,\n} from '@ng-doc/ui-kit/types';\n\nexport const NG_DOC_ARROW_MARGIN: number = 32;\n\nconst POSITION_DESCRIPTION: Record<string, ConnectedPosition> = {\n\t'top-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'top',\n\t\toverlayX: 'center',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'bottom-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'center',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-top': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-center': {\n\t\toriginX: 'start',\n\t\toriginY: 'center',\n\t\toverlayX: 'end',\n\t\toverlayY: 'center',\n\t},\n\t'left-bottom': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'right-top': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'right-center': {\n\t\toriginX: 'end',\n\t\toriginY: 'center',\n\t\toverlayX: 'start',\n\t\toverlayY: 'center',\n\t},\n\t'right-bottom': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n};\n\nexport class NgDocOverlayUtils {\n\tstatic getConnectedPosition(\n\t\tdropdownPositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t\torigin: HTMLElement,\n\t\toffset: number = 0,\n\t\twithPointer: boolean = false,\n\t): ConnectedPosition[] {\n\t\treturn asArray(dropdownPositions).map((position: NgDocOverlayPosition) => {\n\t\t\tconst connectedPosition: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(position);\n\t\t\tconst marginMultiplier: number = NgDocOverlayUtils.getMarginMultiplier(connectedPosition);\n\t\t\tconst marginX: number = !NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconst marginY: number = NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconnectedPosition.offsetX = connectedPosition.offsetX || 0;\n\t\t\tconnectedPosition.offsetY = connectedPosition.offsetY || 0;\n\t\t\tconnectedPosition.offsetX +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetX(origin, connectedPosition) : 0) + marginX;\n\t\t\tconnectedPosition.offsetY +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetY(origin, connectedPosition) : 0) + marginY;\n\t\t\treturn connectedPosition;\n\t\t});\n\t}\n\n\tstatic toConnectedPosition(position: NgDocOverlayPosition): ConnectedPosition {\n\t\treturn typeof position === 'string' ? { ...POSITION_DESCRIPTION[position] } : { ...position };\n\t}\n\n\tstatic toConnectedPositions(positions: NgDocOverlayPosition[]): ConnectedPosition[] {\n\t\treturn positions.map(NgDocOverlayUtils.toConnectedPosition);\n\t}\n\n\tstatic getOffsetX(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst width: number =\n\t\t\t(position.originX === 'center' && position.overlayX !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByX(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetWidth;\n\t\treturn (\n\t\t\t(isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - width, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic getOffsetY(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst height: number =\n\t\t\t(position.originY === 'center' && position.overlayY !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByY(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetHeight;\n\t\treturn (\n\t\t\t(!isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - height, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic overlayIsOutByX(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originX === 'start' && position.overlayX === 'end') ||\n\t\t\t(position.originX === 'end' && position.overlayX === 'start')\n\t\t);\n\t}\n\n\tstatic overlayIsOutByY(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originY === 'top' && position.overlayY === 'bottom') ||\n\t\t\t(position.originY === 'bottom' && position.overlayY === 'top')\n\t\t);\n\t}\n\n\tstatic getOffsetMultiplier(position: ConnectedPosition): number {\n\t\treturn (NgDocOverlayUtils.isVerticalPosition(position) && position.overlayX === 'end') ||\n\t\t\t(!NgDocOverlayUtils.isVerticalPosition(position) && position.overlayY === 'bottom')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic getMarginMultiplier(position: ConnectedPosition): number {\n\t\treturn ['right', 'bottom'].includes(NgDocOverlayUtils.getRelativePosition(position) || '')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic isVerticalPosition(position: ConnectedPosition): boolean {\n\t\treturn ['bottom', 'top'].includes(NgDocOverlayUtils.getRelativePosition(position) || '');\n\t}\n\n\tstatic isCenterPosition(position: ConnectedPosition): boolean {\n\t\treturn position.overlayX === 'center' || position.overlayY === 'center';\n\t}\n\n\tstatic getPositionAlign(\n\t\tposition: ConnectedPosition,\n\t): NgDocHorizontalAlign | NgDocVerticalAlign | null {\n\t\tif (NgDocOverlayUtils.isVerticalPosition(position)) {\n\t\t\treturn position.overlayX === 'start' ? 'left' : position.overlayX === 'end' ? 'right' : null;\n\t\t} else {\n\t\t\treturn position.originY === 'top' ? 'top' : position.originY === 'bottom' ? 'bottom' : null;\n\t\t}\n\t}\n\n\tstatic getRelativePosition(pos: NgDocOverlayPosition): NgDocOverlayRelativePosition | null {\n\t\tconst position: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(pos);\n\t\tif (position.originY === 'bottom' && position.overlayY === 'top') {\n\t\t\treturn 'bottom';\n\t\t}\n\t\tif (position.originY === 'top' && position.overlayY === 'bottom') {\n\t\t\treturn 'top';\n\t\t}\n\t\tif (position.originX === 'start' && position.overlayX === 'end') {\n\t\t\treturn 'left';\n\t\t}\n\t\tif (position.originX === 'end' && position.overlayX === 'start') {\n\t\t\treturn 'right';\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic getOverlayPosition(positionPair: ConnectionPositionPair): NgDocOverlayPosition {\n\t\tconst existsPosition: NgDocOverlayPosition = Object.keys(POSITION_DESCRIPTION).find(\n\t\t\t(key: string) => {\n\t\t\t\tconst positionDescription: ConnectedPosition = POSITION_DESCRIPTION[key];\n\t\t\t\treturn (\n\t\t\t\t\tpositionPair.originX === positionDescription.originX &&\n\t\t\t\t\tpositionPair.originY === positionDescription.originY &&\n\t\t\t\t\tpositionPair.overlayX === positionDescription.overlayX &&\n\t\t\t\t\tpositionPair.overlayY === positionDescription.overlayY\n\t\t\t\t);\n\t\t\t},\n\t\t) as NgDocOverlayPosition;\n\t\treturn existsPosition ? existsPosition : positionPair;\n\t}\n}\n","import { Point } from '@angular/cdk/drag-drop';\n\nexport class NgDocPositionUtils {\n\t/**\n\t * Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect,\n\t * it also takes into account the change in the position of the element through transform\n\t * @param element\n\t */\n\tstatic getElementPosition(element: HTMLElement | null): Point {\n\t\tlet xPos: number = 0;\n\t\tlet yPos: number = 0;\n\n\t\twhile (element) {\n\t\t\tif (element === document.body) {\n\t\t\t\tconst documentElement: HTMLElement = document.documentElement;\n\t\t\t\txPos +=\n\t\t\t\t\tdocumentElement.offsetLeft - documentElement.scrollLeft + documentElement.clientLeft;\n\t\t\t\tyPos += documentElement.offsetTop - documentElement.scrollTop + documentElement.clientTop;\n\t\t\t\telement = null;\n\t\t\t} else {\n\t\t\t\tconst elementMatrix: DOMMatrix = new DOMMatrix(element.style.transform);\n\t\t\t\txPos += element.offsetLeft - element.scrollLeft + element.clientLeft + elementMatrix.m41;\n\t\t\t\tyPos += element.offsetTop - element.scrollTop + element.clientTop + elementMatrix.m42;\n\t\t\t\telement = NgDocPositionUtils.getOffsetParent(element) as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn { x: xPos, y: yPos };\n\t}\n\n\t/**\n\t * An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it\n\t * returns an offsetParent for elements with position: fixed\n\t * @param element\n\t */\n\tstatic getOffsetParent(element: HTMLElement): HTMLElement | null {\n\t\tconst computerStyles: CSSStyleDeclaration = getComputedStyle(element);\n\t\tif (computerStyles.position === 'fixed' || computerStyles.display === 'none') {\n\t\t\treturn null;\n\t\t}\n\t\treturn element.offsetParent as HTMLElement;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAAa,eAAe,CAAA;IAC3B,OAAO,yBAAyB,CAAC,OAAgB,EAAA;AAChD,QAAA,IAAI,OAAO,C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AG,eAAe,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,CAAC;gBAC1F,OAAO,GAAG,IAAI,CAAC;AACf,aAAA;AAAM,iBAAA;gBACN,MAAM,aAAa,GAAc,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACxE,gBAAA,IAAI,IAAI,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC;AACzF,gBAAA,IAAI,IAAI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC;AACtF,gBAAA,OAAO,GAAG,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAgB,CAAC;AACrE,aAAA;AACD,SAAA;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;KAC5B;AAED;;;;AAIG;IACH,OAAO,eAAe,CAAC,OAAoB,EAAA;AAC1C,QAAA,MAAM,cAAc,GAAwB,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACtE,IAAI,cAAc,CAAC,QAAQ,KAAK,OAAO,IAAI,cAAc,CAAC,OAAO,KAAK,MAAM,EAAE;AAC7E,YAAA,OAAO,IAAI,CAAC;AACZ,SAAA;QACD,OAAO,OAAO,CAAC,YAA2B,CAAC;KAC3C;AACD;;ACzCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-utils.mjs","sources":["../../../../libs/ui-kit/utils/focus-utils.ts","../../../../libs/ui-kit/utils/overlay-utils.ts","../../../../libs/ui-kit/utils/position-utils.ts","../../../../libs/ui-kit/utils/ng-doc-ui-kit-utils.ts"],"sourcesContent":["export class NgDocFocusUtils {\n\tstatic isNativeKeyboardFocusable(element: Element): boolean {\n\t\tif (element.hasAttribute('disabled') || element.getAttribute('tabIndex') === '-1') {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (\n\t\t\t(element instanceof HTMLElement && element.isContentEditable) ||\n\t\t\telement.getAttribute('tabIndex') === '0'\n\t\t) {\n\t\t\treturn true;\n\t\t}\n\n\t\tswitch (element.tagName) {\n\t\t\tcase 'BUTTON':\n\t\t\tcase 'SELECT':\n\t\t\tcase 'TEXTAREA':\n\t\t\t\treturn true;\n\t\t\tcase 'VIDEO':\n\t\t\tcase 'AUDIO':\n\t\t\t\treturn element.hasAttribute('controls');\n\t\t\tcase 'INPUT':\n\t\t\t\treturn element.getAttribute('type') !== 'hidden';\n\t\t\tcase 'A':\n\t\t\tcase 'LINK':\n\t\t\t\treturn element.hasAttribute('href');\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic getClosestKeyboardFocusable(\n\t\tinitial: HTMLElement,\n\t\troot: Node,\n\t\tforward: boolean = true,\n\t): HTMLElement | null {\n\t\tif (!root.ownerDocument) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n\t\tconst svgNodeFilter: NodeFilter = ((node: Node) =>\n\t\t\t'ownerSVGElement' in node ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT) as never;\n\n\t\tconst treeWalker: TreeWalker = root.ownerDocument.createTreeWalker(\n\t\t\troot,\n\t\t\tNodeFilter.SHOW_ELEMENT,\n\t\t\tsvgNodeFilter,\n\t\t);\n\n\t\ttreeWalker.currentNode = initial;\n\n\t\twhile (forward ? treeWalker.nextNode() : treeWalker.previousNode()) {\n\t\t\tif (treeWalker.currentNode instanceof HTMLElement) {\n\t\t\t\tinitial = treeWalker.currentNode;\n\t\t\t}\n\n\t\t\tif (NgDocFocusUtils.isNativeKeyboardFocusable(initial)) {\n\t\t\t\treturn initial;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic focusClosestElement(initial: HTMLElement, root: Node, forward: boolean = true): void {\n\t\tconst focusable: HTMLElement | null = NgDocFocusUtils.getClosestKeyboardFocusable(\n\t\t\tinitial,\n\t\t\troot,\n\t\t\tforward,\n\t\t);\n\t\tif (focusable) {\n\t\t\tfocusable.focus();\n\t\t}\n\t}\n}\n","import { ConnectedPosition, ConnectionPositionPair } from '@angular/cdk/overlay';\nimport { asArray } from '@ng-doc/core/helpers/as-array';\nimport {\n\tNgDocHorizontalAlign,\n\tNgDocOverlayPosition,\n\tNgDocOverlayRelativePosition,\n\tNgDocVerticalAlign,\n} from '@ng-doc/ui-kit/types';\n\nexport const NG_DOC_ARROW_MARGIN: number = 32;\n\nconst POSITION_DESCRIPTION: Record<string, ConnectedPosition> = {\n\t'top-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'top',\n\t\toverlayX: 'center',\n\t\toverlayY: 'bottom',\n\t},\n\t'top-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'bottom-left': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-center': {\n\t\toriginX: 'center',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'center',\n\t\toverlayY: 'top',\n\t},\n\t'bottom-right': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-top': {\n\t\toriginX: 'start',\n\t\toriginY: 'top',\n\t\toverlayX: 'end',\n\t\toverlayY: 'top',\n\t},\n\t'left-center': {\n\t\toriginX: 'start',\n\t\toriginY: 'center',\n\t\toverlayX: 'end',\n\t\toverlayY: 'center',\n\t},\n\t'left-bottom': {\n\t\toriginX: 'start',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'end',\n\t\toverlayY: 'bottom',\n\t},\n\t'right-top': {\n\t\toriginX: 'end',\n\t\toriginY: 'top',\n\t\toverlayX: 'start',\n\t\toverlayY: 'top',\n\t},\n\t'right-center': {\n\t\toriginX: 'end',\n\t\toriginY: 'center',\n\t\toverlayX: 'start',\n\t\toverlayY: 'center',\n\t},\n\t'right-bottom': {\n\t\toriginX: 'end',\n\t\toriginY: 'bottom',\n\t\toverlayX: 'start',\n\t\toverlayY: 'bottom',\n\t},\n};\n\nexport class NgDocOverlayUtils {\n\tstatic getConnectedPosition(\n\t\tdropdownPositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n\t\torigin: HTMLElement,\n\t\toffset: number = 0,\n\t\twithPointer: boolean = false,\n\t): ConnectedPosition[] {\n\t\treturn asArray(dropdownPositions).map((position: NgDocOverlayPosition) => {\n\t\t\tconst connectedPosition: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(position);\n\t\t\tconst marginMultiplier: number = NgDocOverlayUtils.getMarginMultiplier(connectedPosition);\n\t\t\tconst marginX: number = !NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconst marginY: number = NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n\t\t\t\t? offset * marginMultiplier\n\t\t\t\t: 0;\n\t\t\tconnectedPosition.offsetX = connectedPosition.offsetX || 0;\n\t\t\tconnectedPosition.offsetY = connectedPosition.offsetY || 0;\n\t\t\tconnectedPosition.offsetX +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetX(origin, connectedPosition) : 0) + marginX;\n\t\t\tconnectedPosition.offsetY +=\n\t\t\t\t(withPointer ? NgDocOverlayUtils.getOffsetY(origin, connectedPosition) : 0) + marginY;\n\t\t\treturn connectedPosition;\n\t\t});\n\t}\n\n\tstatic toConnectedPosition(position: NgDocOverlayPosition): ConnectedPosition {\n\t\treturn typeof position === 'string' ? { ...POSITION_DESCRIPTION[position] } : { ...position };\n\t}\n\n\tstatic toConnectedPositions(positions: NgDocOverlayPosition[]): ConnectedPosition[] {\n\t\treturn positions.map(NgDocOverlayUtils.toConnectedPosition);\n\t}\n\n\tstatic getOffsetX(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst width: number =\n\t\t\t(position.originX === 'center' && position.overlayX !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByX(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetWidth;\n\t\treturn (\n\t\t\t(isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - width, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic getOffsetY(origin: HTMLElement, position: ConnectedPosition): number {\n\t\tconst isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n\t\tconst offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n\t\tconst isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n\t\tconst height: number =\n\t\t\t(position.originY === 'center' && position.overlayY !== 'center') ||\n\t\t\tNgDocOverlayUtils.overlayIsOutByY(position)\n\t\t\t\t? NG_DOC_ARROW_MARGIN - 24\n\t\t\t\t: origin.offsetHeight;\n\t\treturn (\n\t\t\t(!isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - height, 0) : 0) * offsetMultiplier\n\t\t);\n\t}\n\n\tstatic overlayIsOutByX(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originX === 'start' && position.overlayX === 'end') ||\n\t\t\t(position.originX === 'end' && position.overlayX === 'start')\n\t\t);\n\t}\n\n\tstatic overlayIsOutByY(position: ConnectedPosition): boolean {\n\t\treturn (\n\t\t\t(position.originY === 'top' && position.overlayY === 'bottom') ||\n\t\t\t(position.originY === 'bottom' && position.overlayY === 'top')\n\t\t);\n\t}\n\n\tstatic getOffsetMultiplier(position: ConnectedPosition): number {\n\t\treturn (NgDocOverlayUtils.isVerticalPosition(position) && position.overlayX === 'end') ||\n\t\t\t(!NgDocOverlayUtils.isVerticalPosition(position) && position.overlayY === 'bottom')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic getMarginMultiplier(position: ConnectedPosition): number {\n\t\treturn ['right', 'bottom'].includes(NgDocOverlayUtils.getRelativePosition(position) || '')\n\t\t\t? 1\n\t\t\t: -1;\n\t}\n\n\tstatic isVerticalPosition(position: ConnectedPosition): boolean {\n\t\treturn ['bottom', 'top'].includes(NgDocOverlayUtils.getRelativePosition(position) || '');\n\t}\n\n\tstatic isCenterPosition(position: ConnectedPosition): boolean {\n\t\treturn position.overlayX === 'center' || position.overlayY === 'center';\n\t}\n\n\tstatic getPositionAlign(\n\t\tposition: ConnectedPosition,\n\t): NgDocHorizontalAlign | NgDocVerticalAlign | null {\n\t\tif (NgDocOverlayUtils.isVerticalPosition(position)) {\n\t\t\treturn position.overlayX === 'start' ? 'left' : position.overlayX === 'end' ? 'right' : null;\n\t\t} else {\n\t\t\treturn position.originY === 'top' ? 'top' : position.originY === 'bottom' ? 'bottom' : null;\n\t\t}\n\t}\n\n\tstatic getRelativePosition(pos: NgDocOverlayPosition): NgDocOverlayRelativePosition | null {\n\t\tconst position: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(pos);\n\t\tif (position.originY === 'bottom' && position.overlayY === 'top') {\n\t\t\treturn 'bottom';\n\t\t}\n\t\tif (position.originY === 'top' && position.overlayY === 'bottom') {\n\t\t\treturn 'top';\n\t\t}\n\t\tif (position.originX === 'start' && position.overlayX === 'end') {\n\t\t\treturn 'left';\n\t\t}\n\t\tif (position.originX === 'end' && position.overlayX === 'start') {\n\t\t\treturn 'right';\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic getOverlayPosition(positionPair: ConnectionPositionPair): NgDocOverlayPosition {\n\t\tconst existsPosition: NgDocOverlayPosition = Object.keys(POSITION_DESCRIPTION).find(\n\t\t\t(key: string) => {\n\t\t\t\tconst positionDescription: ConnectedPosition = POSITION_DESCRIPTION[key];\n\t\t\t\treturn (\n\t\t\t\t\tpositionPair.originX === positionDescription.originX &&\n\t\t\t\t\tpositionPair.originY === positionDescription.originY &&\n\t\t\t\t\tpositionPair.overlayX === positionDescription.overlayX &&\n\t\t\t\t\tpositionPair.overlayY === positionDescription.overlayY\n\t\t\t\t);\n\t\t\t},\n\t\t) as NgDocOverlayPosition;\n\t\treturn existsPosition ? existsPosition : positionPair;\n\t}\n}\n","import { Point } from '@angular/cdk/drag-drop';\n\nexport class NgDocPositionUtils {\n\t/**\n\t * Getting the position of the element relative to the viewPort, this function is faster than BoundingClientRect,\n\t * it also takes into account the change in the position of the element through transform\n\t * @param element\n\t */\n\tstatic getElementPosition(element: HTMLElement | null): Point {\n\t\tlet xPos: number = 0;\n\t\tlet yPos: number = 0;\n\n\t\twhile (element) {\n\t\t\tif (element === document.body) {\n\t\t\t\tconst documentElement: HTMLElement = document.documentElement;\n\t\t\t\txPos +=\n\t\t\t\t\tdocumentElement.offsetLeft - documentElement.scrollLeft + documentElement.clientLeft;\n\t\t\t\tyPos += documentElement.offsetTop - documentElement.scrollTop + documentElement.clientTop;\n\t\t\t\telement = null;\n\t\t\t} else {\n\t\t\t\tconst elementMatrix: DOMMatrix = new DOMMatrix(element.style.transform);\n\t\t\t\txPos += element.offsetLeft - element.scrollLeft + element.clientLeft + elementMatrix.m41;\n\t\t\t\tyPos += element.offsetTop - element.scrollTop + element.clientTop + elementMatrix.m42;\n\t\t\t\telement = NgDocPositionUtils.getOffsetParent(element) as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn { x: xPos, y: yPos };\n\t}\n\n\t/**\n\t * An implementation of the element.offsetParent function, this implementation closes a bug in Firefox when it\n\t * returns an offsetParent for elements with position: fixed\n\t * @param element\n\t */\n\tstatic getOffsetParent(element: HTMLElement): HTMLElement | null {\n\t\tconst computerStyles: CSSStyleDeclaration = getComputedStyle(element);\n\t\tif (computerStyles.position === 'fixed' || computerStyles.display === 'none') {\n\t\t\treturn null;\n\t\t}\n\t\treturn element.offsetParent as HTMLElement;\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;MAAa,eAAe,CAAA;IAC3B,OAAO,yBAAyB,CAAC,OAAgB,EAAA;AAChD,QAAA,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;AAClF,YAAA,OAAO,KAAK,CAAC;SACb;QAED,IACC,CAAC,OAAO,YAAY,WAAW,IAAI,OAAO,CAAC,iBAAiB;YAC5D,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,GAAG,EACvC;AACD,YAAA,OAAO,IAAI,CAAC;SACZ;AAED,QAAA,QAAQ,OAAO,CAAC,OAAO;AACtB,YAAA,KAAK,QAAQ,CAAC;AACd,YAAA,KAAK,QAAQ,CAAC;AACd,YAAA,KAAK,UAAU;AACd,gBAAA,OAAO,IAAI,CAAC;AACb,YAAA,KAAK,OAAO,CAAC;AACb,YAAA,KAAK,OAAO;AACX,gBAAA,OAAO,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;AACzC,YAAA,KAAK,OAAO;gBACX,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC;AAClD,YAAA,KAAK,GAAG,CAAC;AACT,YAAA,KAAK,MAAM;AACV,gBAAA,OAAO,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AACrC,YAAA;AACC,gBAAA,OAAO,KAAK,CAAC;SACd;KACD;IAED,OAAO,2BAA2B,CACjC,OAAoB,EACpB,IAAU,EACV,UAAmB,IAAI,EAAA;AAEvB,QAAA,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;AACxB,YAAA,OAAO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
|
3
|
+
"version": "17.5.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=17.0.0",
|
|
6
6
|
"@angular/core": ">=17.0.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"tslib": "^2.6.2",
|
|
15
|
-
"@ng-doc/core": "17.5.
|
|
15
|
+
"@ng-doc/core": "17.5.6"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|