@ng-doc/ui-kit 19.1.0 → 19.3.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.
- package/components/dialog-outlet/dialog-outlet.component.d.ts +2 -1
- package/components/option-group/option-group.component.d.ts +1 -0
- package/components/selection/selection.component.d.ts +1 -0
- package/components/tab-group/tab-group.component.d.ts +1 -0
- package/directives/event-switcher/event-switcher.directive.d.ts +1 -0
- package/directives/tooltip/tooltip.directive.d.ts +1 -0
- package/fesm2022/ng-doc-ui-kit-animations.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs +4 -9
- package/fesm2022/ng-doc-ui-kit-cdk-combobox-host.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs +1 -2
- package/fesm2022/ng-doc-ui-kit-components-blockquote.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs +4 -9
- package/fesm2022/ng-doc-ui-kit-components-clear-control.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs +15 -18
- package/fesm2022/ng-doc-ui-kit-components-dialog-outlet.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-dropdown.mjs +3 -13
- 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-expander.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs +3 -11
- package/fesm2022/ng-doc-ui-kit-components-input-wrapper.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-list.mjs +5 -12
- package/fesm2022/ng-doc-ui-kit-components-list.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs +6 -10
- package/fesm2022/ng-doc-ui-kit-components-option-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-option.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs +7 -14
- package/fesm2022/ng-doc-ui-kit-components-pane.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs +6 -11
- package/fesm2022/ng-doc-ui-kit-components-selection.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs +1 -3
- package/fesm2022/ng-doc-ui-kit-components-sidenav.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs +9 -11
- package/fesm2022/ng-doc-ui-kit-components-tab-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs +1 -1
- package/fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-text.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs +4 -9
- package/fesm2022/ng-doc-ui-kit-components-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-checked-change.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs +6 -10
- package/fesm2022/ng-doc-ui-kit-directives-event-switcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs +6 -15
- package/fesm2022/ng-doc-ui-kit-directives-focus-catcher.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs +6 -10
- package/fesm2022/ng-doc-ui-kit-directives-hotkey.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs +2 -8
- package/fesm2022/ng-doc-ui-kit-directives-input-number.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs +2 -8
- package/fesm2022/ng-doc-ui-kit-directives-input-string.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-directives-tooltip.mjs +7 -18
- 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.map +1 -1
- package/fesm2022/ng-doc-ui-kit-observables.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs +4 -10
- package/fesm2022/ng-doc-ui-kit-services-notify.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-types.mjs.map +1 -1
- package/fesm2022/ng-doc-ui-kit-utils.mjs.map +1 -1
- package/package.json +30 -31
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __decorate, __metadata } from 'tslib';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter,
|
|
2
|
+
import { EventEmitter, inject, DestroyRef, Directive, Input, Output } from '@angular/core';
|
|
3
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { asArray } from '@ng-doc/core/helpers/as-array';
|
|
5
5
|
import { isPresent } from '@ng-doc/core/helpers/is-present';
|
|
6
6
|
import { tooltipOpenAnimation, tooltipCloseAnimation } from '@ng-doc/ui-kit/animations';
|
|
@@ -8,15 +8,12 @@ import { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overla
|
|
|
8
8
|
import { toElement } from '@ng-doc/ui-kit/helpers';
|
|
9
9
|
import { ngDocZoneOptimize, ngDocZoneDetach } from '@ng-doc/ui-kit/observables';
|
|
10
10
|
import * as i1 from '@ng-doc/ui-kit/services';
|
|
11
|
-
import { NgDocOverlayService } from '@ng-doc/ui-kit/services';
|
|
12
11
|
import * as i2 from '@ng-doc/ui-kit/services/overlay-strategy';
|
|
13
|
-
import { NgDocOverlayStrategy } from '@ng-doc/ui-kit/services/overlay-strategy';
|
|
14
12
|
import { NgDocOverlayUtils } from '@ng-doc/ui-kit/utils';
|
|
15
|
-
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
16
13
|
import { fromEvent, timer, merge, EMPTY } from 'rxjs';
|
|
17
14
|
import { filter, switchMap, takeUntil } from 'rxjs/operators';
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
class NgDocTooltipDirective {
|
|
20
17
|
constructor(elementRef, changeDetectorRef, viewContainerRef, overlayService, ngZone, scrollStrategy) {
|
|
21
18
|
this.elementRef = elementRef;
|
|
22
19
|
this.changeDetectorRef = changeDetectorRef;
|
|
@@ -45,11 +42,12 @@ let NgDocTooltipDirective = class NgDocTooltipDirective {
|
|
|
45
42
|
this.beforeClose = new EventEmitter();
|
|
46
43
|
this.afterClose = new EventEmitter();
|
|
47
44
|
this.overlayRef = null;
|
|
45
|
+
this.destroyRef = inject(DestroyRef);
|
|
48
46
|
}
|
|
49
47
|
ngAfterViewInit() {
|
|
50
48
|
// Opens tooltip with delay
|
|
51
49
|
fromEvent(this.pointerOriginElement, 'mouseenter')
|
|
52
|
-
.pipe(filter(() => this.canOpen && !this.isOpened), switchMap(() => timer(this.delay).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseleave')))), ngDocZoneOptimize(this.ngZone),
|
|
50
|
+
.pipe(filter(() => this.canOpen && !this.isOpened), switchMap(() => timer(this.delay).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseleave')))), ngDocZoneOptimize(this.ngZone), takeUntilDestroyed(this.destroyRef))
|
|
53
51
|
.subscribe(() => this.show());
|
|
54
52
|
// Closes tooltip when mouseleave was fired, and cancel closing if mouseenter was happened
|
|
55
53
|
merge(fromEvent(this.pointerOriginElement, 'mouseleave'), this.beforeOpen.pipe(switchMap(() => isPresent(this.overlayRef)
|
|
@@ -57,7 +55,7 @@ let NgDocTooltipDirective = class NgDocTooltipDirective {
|
|
|
57
55
|
: EMPTY)))
|
|
58
56
|
.pipe(filter(() => this.isOpened), switchMap(() => timer(50).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseenter')), takeUntil(isPresent(this.overlayRef)
|
|
59
57
|
? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseenter')
|
|
60
|
-
: EMPTY))),
|
|
58
|
+
: EMPTY))), ngDocZoneOptimize(this.ngZone), takeUntilDestroyed(this.destroyRef))
|
|
61
59
|
.subscribe(() => this.hide());
|
|
62
60
|
}
|
|
63
61
|
show() {
|
|
@@ -130,16 +128,7 @@ let NgDocTooltipDirective = class NgDocTooltipDirective {
|
|
|
130
128
|
}
|
|
131
129
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i1.NgDocOverlayService }, { token: i0.NgZone }, { token: i2.NgDocOverlayStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
132
130
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.3", type: NgDocTooltipDirective, isStandalone: true, selector: "[ngDocTooltip]", inputs: { content: ["ngDocTooltip", "content"], delay: "delay", displayOrigin: "displayOrigin", pointerOrigin: "pointerOrigin", positions: "positions", canOpen: "canOpen", panelClass: "panelClass", minHeight: "minHeight", maxHeight: "maxHeight", height: "height", minWidth: "minWidth", maxWidth: "maxWidth", width: "width" }, outputs: { beforeOpen: "beforeOpen", afterOpen: "afterOpen", beforeClose: "beforeClose", afterClose: "afterClose" }, exportAs: ["ngDocTooltip"], ngImport: i0 }); }
|
|
133
|
-
}
|
|
134
|
-
NgDocTooltipDirective = __decorate([
|
|
135
|
-
UntilDestroy(),
|
|
136
|
-
__metadata("design:paramtypes", [ElementRef,
|
|
137
|
-
ChangeDetectorRef,
|
|
138
|
-
ViewContainerRef,
|
|
139
|
-
NgDocOverlayService,
|
|
140
|
-
NgZone,
|
|
141
|
-
NgDocOverlayStrategy])
|
|
142
|
-
], NgDocTooltipDirective);
|
|
131
|
+
}
|
|
143
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocTooltipDirective, decorators: [{
|
|
144
133
|
type: Directive,
|
|
145
134
|
args: [{
|
|
@@ -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;QACV,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB;QACjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAc,CAAA,cAAA,GAAd,cAAc;QACd,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAc,CAAA,cAAA,GAAd,cAAc;QA/DhC,IAAO,CAAA,OAAA,GAAiB,EAAE;QAG1B,IAAK,CAAA,KAAA,GAAW,IAAI;AASpB,QAAA,IAAA,CAAA,SAAS,GAAkD;YAC1D,YAAY;YACZ,eAAe;YACf,cAAc;YACd,aAAa;SACb;QAGD,IAAO,CAAA,OAAA,GAAY,IAAI;QAGvB,IAAU,CAAA,UAAA,GAAsB,EAAE;QAGlC,IAAS,CAAA,SAAA,GAAoB,EAAE;QAG/B,IAAS,CAAA,SAAA,GAAoB,EAAE;QAG/B,IAAM,CAAA,MAAA,GAAoB,EAAE;QAG5B,IAAQ,CAAA,QAAA,GAAoB,EAAE;QAG9B,IAAQ,CAAA,QAAA,GAAoB,EAAE;QAG9B,IAAK,CAAA,KAAA,GAAoB,EAAE;AAG3B,QAAA,IAAA,CAAA,UAAU,GAAuB,IAAI,YAAY,EAAQ;AAGzD,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAQ;AAGxD,QAAA,IAA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AAA,YAAA,EAAA,SAAA,EAAA,WAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;AAArB,qBAAqB,GAAA,UAAA,CAAA;AADjC,IAAA,YAAY,EAAE;qCA6DgB,UAAU;QACH,iBAAiB;QAClB,gBAAgB;QAClB,mBAAmB;QAC3B,MAAM;QACE,oBAAoB,CAAA;AAjE1C,CAAA,EAAA,qBAAqB,CAuMjC;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;wOAIA,OAAO,EAAA,CAAA;sBADN,KAAK;uBAAC,cAAc;gBAIrB,KAAK,EAAA,CAAA;sBADJ;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,SAAS,EAAA,CAAA;sBADR;gBASD,OAAO,EAAA,CAAA;sBADN;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,KAAK,EAAA,CAAA;sBADJ;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;;;ACvFF;;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 AfterViewInit,\n ChangeDetectorRef,\n DestroyRef,\n Directive,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n ViewContainerRef,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\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 { EMPTY, fromEvent, merge, timer } from 'rxjs';\nimport { filter, switchMap, takeUntil } from 'rxjs/operators';\n\n@Directive({\n selector: '[ngDocTooltip]',\n exportAs: 'ngDocTooltip',\n standalone: true,\n})\nexport class NgDocTooltipDirective implements AfterViewInit, OnDestroy {\n @Input('ngDocTooltip')\n content: NgDocContent = '';\n\n @Input()\n delay: number = 1000;\n\n @Input()\n displayOrigin?: BaseElement<HTMLElement>;\n\n @Input()\n pointerOrigin?: BaseElement<HTMLElement>;\n\n @Input()\n positions: NgDocOverlayPosition | NgDocOverlayPosition[] = [\n 'top-center',\n 'bottom-center',\n 'right-center',\n 'left-center',\n ];\n\n @Input()\n canOpen: boolean = true;\n\n @Input()\n panelClass: string | string[] = '';\n\n @Input()\n minHeight: number | string = '';\n\n @Input()\n maxHeight: number | string = '';\n\n @Input()\n height: number | string = '';\n\n @Input()\n minWidth: number | string = '';\n\n @Input()\n maxWidth: number | string = '';\n\n @Input()\n width: number | string = '';\n\n @Output()\n beforeOpen: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n afterOpen: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n beforeClose: EventEmitter<void> = new EventEmitter<void>();\n\n @Output()\n afterClose: EventEmitter<void> = new EventEmitter<void>();\n\n overlayRef: NgDocOverlayRef | null = null;\n\n private readonly destroyRef = inject(DestroyRef);\n\n constructor(\n private readonly elementRef: ElementRef<HTMLElement>,\n private readonly changeDetectorRef: ChangeDetectorRef,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly overlayService: NgDocOverlayService,\n private readonly ngZone: NgZone,\n private readonly scrollStrategy: NgDocOverlayStrategy,\n ) {}\n\n ngAfterViewInit(): void {\n // Opens tooltip with delay\n fromEvent(this.pointerOriginElement, 'mouseenter')\n .pipe(\n filter(() => this.canOpen && !this.isOpened),\n switchMap(() =>\n timer(this.delay).pipe(takeUntil(fromEvent(this.pointerOriginElement, 'mouseleave'))),\n ),\n ngDocZoneOptimize(this.ngZone),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.show());\n\n // Closes tooltip when mouseleave was fired, and cancel closing if mouseenter was happened\n merge(\n fromEvent(this.pointerOriginElement, 'mouseleave'),\n this.beforeOpen.pipe(\n switchMap(() =>\n isPresent(this.overlayRef)\n ? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseleave')\n : EMPTY,\n ),\n ),\n )\n .pipe(\n filter(() => this.isOpened),\n switchMap(() =>\n timer(50).pipe(\n takeUntil(fromEvent(this.pointerOriginElement, 'mouseenter')),\n takeUntil(\n isPresent(this.overlayRef)\n ? fromEvent(this.overlayRef.overlayRef.overlayElement, 'mouseenter')\n : EMPTY,\n ),\n ),\n ),\n ngDocZoneOptimize(this.ngZone),\n takeUntilDestroyed(this.destroyRef),\n )\n .subscribe(() => this.hide());\n }\n\n show(): void {\n if (!this.isOpened) {\n this.overlayRef = this.overlayService.open(this.content, {\n origin: this.displayOriginElement,\n overlayContainer: NgDocOverlayContainerComponent,\n positionStrategy: this.overlayService.connectedPositionStrategy(\n this.displayOriginElement,\n this.getPositions(this.positions),\n ),\n viewContainerRef: this.viewContainerRef,\n withPointer: true,\n contactBorder: true,\n panelClass: ['ng-doc-tooltip', ...asArray(this.panelClass)],\n height: this.height,\n width: this.width,\n minHeight: this.minHeight,\n minWidth: this.minWidth,\n maxHeight: this.maxHeight,\n maxWidth: this.maxWidth,\n scrollStrategy: this.scrollStrategy,\n disposeOnRouteNavigation: true,\n openAnimation: tooltipOpenAnimation,\n closeAnimation: tooltipCloseAnimation,\n });\n this.beforeOpen.emit();\n\n this.overlayRef\n ?.afterOpen()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.afterOpen.emit());\n\n this.overlayRef\n ?.beforeClose()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.beforeClose.emit());\n\n this.overlayRef\n ?.afterClose()\n .pipe(ngDocZoneDetach(this.ngZone))\n .subscribe(() => this.afterClose.emit());\n\n this.overlayRef?.beforeClose().subscribe(() => this.hide());\n\n this.changeDetectorRef.markForCheck();\n }\n }\n\n hide(): void {\n if (this.isOpened) {\n this.overlayRef?.close();\n this.overlayRef = null;\n this.changeDetectorRef.markForCheck();\n }\n }\n\n get isOpened(): boolean {\n return !!this.overlayRef;\n }\n\n ngOnDestroy(): void {\n if (this.overlayRef) {\n this.overlayRef.overlayRef.dispose();\n }\n }\n\n private get pointerOriginElement(): HTMLElement {\n return isPresent(this.pointerOrigin)\n ? toElement(this.pointerOrigin)\n : toElement(this.elementRef);\n }\n\n private get displayOriginElement(): HTMLElement {\n return isPresent(this.displayOrigin)\n ? toElement(this.displayOrigin)\n : toElement(this.elementRef);\n }\n\n private getPositions(\n positions: NgDocOverlayPosition | NgDocOverlayPosition[],\n ): NgDocOverlayPosition[] {\n return NgDocOverlayUtils.getConnectedPosition(\n !!positions && asArray(positions).length\n ? positions\n : ['bottom-center', 'top-center', 'right-center', 'left-center'],\n this.displayOriginElement,\n 0,\n true,\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAkCa,qBAAqB,CAAA;IA6DhC,WACmB,CAAA,UAAmC,EACnC,iBAAoC,EACpC,gBAAkC,EAClC,cAAmC,EACnC,MAAc,EACd,cAAoC,EAAA;QALpC,IAAU,CAAA,UAAA,GAAV,UAAU;QACV,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB;QACjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAc,CAAA,cAAA,GAAd,cAAc;QACd,IAAM,CAAA,MAAA,GAAN,MAAM;QACN,IAAc,CAAA,cAAA,GAAd,cAAc;QAjEjC,IAAO,CAAA,OAAA,GAAiB,EAAE;QAG1B,IAAK,CAAA,KAAA,GAAW,IAAI;AASpB,QAAA,IAAA,CAAA,SAAS,GAAkD;YACzD,YAAY;YACZ,eAAe;YACf,cAAc;YACd,aAAa;SACd;QAGD,IAAO,CAAA,OAAA,GAAY,IAAI;QAGvB,IAAU,CAAA,UAAA,GAAsB,EAAE;QAGlC,IAAS,CAAA,SAAA,GAAoB,EAAE;QAG/B,IAAS,CAAA,SAAA,GAAoB,EAAE;QAG/B,IAAM,CAAA,MAAA,GAAoB,EAAE;QAG5B,IAAQ,CAAA,QAAA,GAAoB,EAAE;QAG9B,IAAQ,CAAA,QAAA,GAAoB,EAAE;QAG9B,IAAK,CAAA,KAAA,GAAoB,EAAE;AAG3B,QAAA,IAAA,CAAA,UAAU,GAAuB,IAAI,YAAY,EAAQ;AAGzD,QAAA,IAAA,CAAA,SAAS,GAAuB,IAAI,YAAY,EAAQ;AAGxD,QAAA,IAAA,CAAA,WAAW,GAAuB,IAAI,YAAY,EAAQ;AAG1D,QAAA,IAAA,CAAA,UAAU,GAAuB,IAAI,YAAY,EA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AAA,EAAA,SAAA,EAAA,WAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;wOAGC,OAAO,EAAA,CAAA;sBADN,KAAK;uBAAC,cAAc;gBAIrB,KAAK,EAAA,CAAA;sBADJ;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,aAAa,EAAA,CAAA;sBADZ;gBAID,SAAS,EAAA,CAAA;sBADR;gBASD,OAAO,EAAA,CAAA;sBADN;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,MAAM,EAAA,CAAA;sBADL;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,QAAQ,EAAA,CAAA;sBADP;gBAID,KAAK,EAAA,CAAA;sBADJ;gBAID,UAAU,EAAA,CAAA;sBADT;gBAID,SAAS,EAAA,CAAA;sBADR;gBAID,WAAW,EAAA,CAAA;sBADV;gBAID,UAAU,EAAA,CAAA;sBADT;;;ACxFH;;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
|
|
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 return 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;IACnF,MAAM,SAAS,GAA2B,EAAE;AAE5C,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;AACxE,cAAE,aAAa,CAAC,GAAG;AACnB,cAAE,CAAC,UAAU,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,CAC/C;;AAGX,IAAA,OAAO,SAAS;AACjB;;AChCA;;AAEG;AACG,SAAU,SAAS,CAAoB,OAAuB,EAAA;AAClE,IAAA,OAAO,OAAO,YAAY,UAAU,GAAG,OAAO,CAAC,aAAa,GAAG,OAAO;AACxE;;ACRA;;AAEG;;;;"}
|
|
@@ -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
|
|
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 HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n HttpResponse,\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 static readonly TOKEN: string = Math.random().toString(36).slice(-8);\n private cache: Map<string, Observable<HttpEvent<unknown>>> = new Map<\n string,\n Observable<HttpEvent<unknown>>\n >();\n\n intercept<T>(request: HttpRequest<T>, next: HttpHandler): Observable<HttpEvent<T>> {\n // Only GET requests can be cached\n if (request.method !== 'GET') {\n return next.handle(request);\n }\n\n // Do not cache request when the token is not provided\n if (!request.params.has(NgDocCacheInterceptor.TOKEN)) {\n return next.handle(request);\n }\n\n // Return cached response\n const cachedRequest: Observable<HttpEvent<T>> | undefined = this.cache.get(\n request.url,\n ) as Observable<HttpEvent<T>>;\n\n if (cachedRequest) {\n return cachedRequest;\n }\n\n // Clone the request, delete the TOKEN from the params\n const newRequest: HttpRequest<T> = request.clone({\n params: request.params.delete(NgDocCacheInterceptor.TOKEN),\n });\n\n // Create a new request handler\n const newHandler: Observable<HttpEvent<T>> = next.handle(newRequest).pipe(\n tap({\n error: (event: HttpEvent<Error>) => {\n if (event instanceof HttpResponse) {\n this.cache.delete(event.url || '');\n }\n },\n }),\n shareReplay(1),\n );\n\n // Cache the request and return the new handler\n this.cache.set(request.url, newHandler);\n\n return newHandler;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAYa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAGU,QAAA,IAAA,CAAA,KAAK,GAAgD,IAAI,GAAG,EAGjE;AA4CJ;AAhDiB,IAAA,SAAA,IAAA,CAAA,KAAK,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAMrE,SAAS,CAAI,OAAuB,EAAE,IAAiB,EAAA;;AAErD,QAAA,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5B,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;;;AAI7B,QAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE;AACpD,YAAA,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;;;AAI7B,QAAA,MAAM,aAAa,GAAyC,IAAI,CAAC,KAAK,CAAC,GAAG,CACxE,OAAO,CAAC,GAAG,CACgB;QAE7B,IAAI,aAAa,EAAE;AACjB,YAAA,OAAO,aAAa;;;AAItB,QAAA,MAAM,UAAU,GAAmB,OAAO,CAAC,KAAK,CAAC;YAC/C,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC;AAC3D,SAAA,CAAC;;AAGF,QAAA,MAAM,UAAU,GAA6B,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CACvE,GAAG,CAAC;AACF,YAAA,KAAK,EAAE,CAAC,KAAuB,KAAI;AACjC,gBAAA,IAAI,KAAK,YAAY,YAAY,EAAE;oBACjC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,CAAC;;aAErC;AACF,SAAA,CAAC,EACF,WAAW,CAAC,CAAC,CAAC,CACf;;QAGD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC;AAEvC,QAAA,OAAO,UAAU;;8GA/CR,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAArB,qBAAqB,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC;;;ACXD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-observables.mjs","sources":["../../../../libs/ui-kit/observables/from-subscribe.ts","../../../../libs/ui-kit/observables/observable-state.ts","../../../../libs/ui-kit/observables/zone.ts","../../../../libs/ui-kit/observables/ng-doc-ui-kit-observables.ts"],"sourcesContent":["import {NgDocSubscribable} from '@ng-doc/ui-kit/types';\nimport {Observable, Subscriber, Unsubscribable} from 'rxjs';\n\n/**\n * @param subscribable\n */\nexport function fromSubscribe<T>(subscribable: NgDocSubscribable<T>): Observable<T> {\n
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-observables.mjs","sources":["../../../../libs/ui-kit/observables/from-subscribe.ts","../../../../libs/ui-kit/observables/observable-state.ts","../../../../libs/ui-kit/observables/zone.ts","../../../../libs/ui-kit/observables/ng-doc-ui-kit-observables.ts"],"sourcesContent":["import { NgDocSubscribable } from '@ng-doc/ui-kit/types';\nimport { Observable, Subscriber, Unsubscribable } from 'rxjs';\n\n/**\n * @param subscribable\n */\nexport function fromSubscribe<T>(subscribable: NgDocSubscribable<T>): Observable<T> {\n return new Observable<T>((observer: Subscriber<T>) => {\n const subscription: Unsubscribable = subscribable.subscribe(\n (next: T) => observer.next(next),\n (error: unknown) => observer.error(error),\n () => observer.complete(),\n );\n return () => subscription.unsubscribe();\n });\n}\n","import type { Observable, OperatorFunction } from 'rxjs';\nimport { of } from 'rxjs';\nimport { catchError, map, startWith, switchMap, tap } from 'rxjs/operators';\n\nexport type StatedObservable<T, E = Error> = Observable<ObservableState<T, E>>;\n\nexport interface ObservableState<T, E = Error> {\n\tresult: T | null;\n\terror: E | null;\n\tpending: boolean;\n}\n\n/**\n *\n * @param retry\n */\nexport function observableState<T, E = Error>(\n\tretry?: Observable<unknown>,\n): OperatorFunction<T, ObservableState<T, E>> {\n\treturn (source: Observable<T>) => {\n\t\tlet state: ObservableState<T, E> = {\n\t\t\tresult: null,\n\t\t\terror: null,\n\t\t\tpending: false,\n\t\t};\n\n\t\treturn (retry ? retry.pipe(startWith(null)) : of(null)).pipe(\n\t\t\tswitchMap(() =>\n\t\t\t\tsource.pipe(\n\t\t\t\t\t// Map result of observable\n\t\t\t\t\tmap((result: T) => ({ result, pending: false })),\n\t\t\t\t\t// Map error of observable\n\t\t\t\t\tcatchError((error: E) => of({ result: null, error, pending: false })),\n\t\t\t\t\t// Start from pending state and clear error\n\t\t\t\t\tstartWith({ error: null, pending: true }),\n\t\t\t\t\t// Merge the current state with new state\n\t\t\t\t\ttap(\n\t\t\t\t\t\t(updatedState: Partial<ObservableState<T, E>>) =>\n\t\t\t\t\t\t\t(state = { ...state, ...updatedState }),\n\t\t\t\t\t),\n\t\t\t\t\tmap(() => state),\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t};\n}\n","import { inject, NgZone } from '@angular/core';\nimport {\n MonoTypeOperatorFunction,\n Observable,\n Observer,\n Operator,\n pipe,\n Subscriber,\n TeardownLogic,\n} from 'rxjs';\n\nclass NgDocZoneDetachSourceOperator<T> implements Operator<T, T> {\n constructor(private readonly ngZone: NgZone) {}\n\n call(observer: Observer<T>, source: Observable<T>): TeardownLogic {\n return this.ngZone.runOutsideAngular(() => source.subscribe(observer));\n }\n}\n\n/**\n *\n * @param ngZone\n */\nfunction zoneDetachSource<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) => source.lift(new NgDocZoneDetachSourceOperator<T>(ngZone));\n}\n\n/**\n *\n * @param ngZone\n */\nfunction zoneDetach<T>(ngZone: NgZone): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) =>\n new Observable((subscriber: Subscriber<T>) =>\n source.subscribe({\n next: (value: T) => ngZone.runOutsideAngular(() => subscriber.next(value)),\n error: (error: unknown) => ngZone.runOutsideAngular(() => subscriber.error(error)),\n complete: () => ngZone.runOutsideAngular(() => subscriber.complete()),\n }),\n );\n}\n\n/**\n *\n * @param ngZone\n */\nexport function ngDocZoneAttach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T> {\n ngZone = ngZone || inject(NgZone);\n\n return (source: Observable<T>) =>\n new Observable((subscriber: Subscriber<T>) =>\n source.subscribe({\n next: (value: T) => ngZone.run(() => subscriber.next(value)),\n error: (error: unknown) => ngZone.run(() => subscriber.error(error)),\n complete: () => ngZone.run(() => subscriber.complete()),\n }),\n );\n}\n\n/**\n *\n * @param ngZone\n */\nexport function ngDocZoneDetach<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T> {\n ngZone = ngZone || inject(NgZone);\n\n return pipe(zoneDetach(ngZone), zoneDetachSource(ngZone));\n}\n\n/**\n *\n * @param ngZone\n */\nexport function ngDocZoneOptimize<T>(ngZone?: NgZone): MonoTypeOperatorFunction<T> {\n ngZone = ngZone || inject(NgZone);\n\n return pipe(zoneDetach(ngZone), zoneDetachSource(ngZone), ngDocZoneAttach(ngZone));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;AAEG;AACG,SAAU,aAAa,CAAI,YAAkC,EAAA;AACjE,IAAA,OAAO,IAAI,UAAU,CAAI,CAAC,QAAuB,KAAI;AACnD,QAAA,MAAM,YAAY,GAAmB,YAAY,CAAC,SAAS,CACzD,CAAC,IAAO,KAAK,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAChC,CAAC,KAAc,KAAK,Q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AAQ,EAAE,CAAC;AACxD,KAAA,CAAC,CACH;AACL;AAEA;;;AAGG;AACG,SAAU,eAAe,CAAI,MAAe,EAAA;AAChD,IAAA,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC;AAEjC,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC3D;AAEA;;;AAGG;AACG,SAAU,iBAAiB,CAAI,MAAe,EAAA;AAClD,IAAA,MAAM,GAAG,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC;AAEjC,IAAA,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;AACpF;;AC7EA;;AAEG;;;;"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { __decorate, __metadata } from 'tslib';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { Injectable } from '@angular/core';
|
|
3
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { notificationOpenAnimation, notificationCloseAnimation } from '@ng-doc/ui-kit/animations';
|
|
5
5
|
import { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';
|
|
6
6
|
import * as i1 from '@ng-doc/ui-kit/services/overlay';
|
|
7
|
-
import { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';
|
|
8
|
-
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
9
7
|
import { Subject, timer } from 'rxjs';
|
|
10
8
|
import { tap, switchMap } from 'rxjs/operators';
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
class NgDocNotifyService {
|
|
13
11
|
constructor(overlayService) {
|
|
14
12
|
this.overlayService = overlayService;
|
|
15
13
|
this.notify$ = new Subject();
|
|
16
14
|
this.notify$
|
|
17
|
-
.pipe(tap(() => this.overlayRef?.close()), tap((content) => this.openOverlay(content)), switchMap(() => timer(2000)),
|
|
15
|
+
.pipe(tap(() => this.overlayRef?.close()), tap((content) => this.openOverlay(content)), switchMap(() => timer(2000)), takeUntilDestroyed())
|
|
18
16
|
.subscribe(() => this.overlayRef?.close());
|
|
19
17
|
}
|
|
20
18
|
notify(content) {
|
|
@@ -34,11 +32,7 @@ let NgDocNotifyService = class NgDocNotifyService {
|
|
|
34
32
|
}
|
|
35
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocNotifyService, deps: [{ token: i1.NgDocOverlayService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
34
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocNotifyService, providedIn: 'root' }); }
|
|
37
|
-
}
|
|
38
|
-
NgDocNotifyService = __decorate([
|
|
39
|
-
UntilDestroy(),
|
|
40
|
-
__metadata("design:paramtypes", [NgDocOverlayService])
|
|
41
|
-
], NgDocNotifyService);
|
|
35
|
+
}
|
|
42
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NgDocNotifyService, decorators: [{
|
|
43
37
|
type: Injectable,
|
|
44
38
|
args: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-services-notify.mjs","sources":["../../../../libs/ui-kit/services/notify/notify.service.ts","../../../../libs/ui-kit/services/notify/ng-doc-ui-kit-services-notify.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { notificationCloseAnimation, notificationOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';\nimport { NgDocContent } from '@ng-doc/ui-kit/types';\nimport {
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-services-notify.mjs","sources":["../../../../libs/ui-kit/services/notify/notify.service.ts","../../../../libs/ui-kit/services/notify/ng-doc-ui-kit-services-notify.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { notificationCloseAnimation, notificationOpenAnimation } from '@ng-doc/ui-kit/animations';\nimport { NgDocOverlayRef } from '@ng-doc/ui-kit/classes';\nimport { NgDocOverlayContainerComponent } from '@ng-doc/ui-kit/components/overlay-container';\nimport { NgDocOverlayService } from '@ng-doc/ui-kit/services/overlay';\nimport { NgDocContent } from '@ng-doc/ui-kit/types';\nimport { Subject, timer } from 'rxjs';\nimport { switchMap, tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class NgDocNotifyService {\n private overlayRef?: NgDocOverlayRef;\n private readonly notify$: Subject<NgDocContent> = new Subject<NgDocContent>();\n\n constructor(private readonly overlayService: NgDocOverlayService) {\n this.notify$\n .pipe(\n tap(() => this.overlayRef?.close()),\n tap((content: NgDocContent) => this.openOverlay(content)),\n switchMap(() => timer(2000)),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.overlayRef?.close());\n }\n\n notify(content: NgDocContent): void {\n this.notify$.next(content);\n }\n\n private openOverlay(content: NgDocContent): void {\n this.overlayRef = this.overlayService.open(content, {\n overlayContainer: NgDocOverlayContainerComponent,\n panelClass: 'ng-doc-notify',\n positionStrategy: this.overlayService\n .globalPositionStrategy()\n .bottom('10px')\n .centerHorizontally(),\n openAnimation: notificationOpenAnimation,\n closeAnimation: notificationCloseAnimation,\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAaa,kBAAkB,CAAA;AAI7B,IAAA,WAAA,CAA6B,cAAmC,EAAA;QAAnC,IAAc,CAAA,cAAA,GAAd,cAAc;AAF1B,QAAA,IAAA,CAAA,OAAO,GAA0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AAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-ui-kit-types.mjs","sources":["../../../../libs/ui-kit/types/content.ts","../../../../libs/ui-kit/types/ng-doc-ui-kit-types.ts"],"sourcesContent":["import { Injector, TemplateRef, Type } from '@angular/core';\nimport { NG_DOC_COMPONENT_CONTEXT } from '@ng-doc/ui-kit/tokens';\nimport {\n
|
|
1
|
+
{"version":3,"file":"ng-doc-ui-kit-types.mjs","sources":["../../../../libs/ui-kit/types/content.ts","../../../../libs/ui-kit/types/ng-doc-ui-kit-types.ts"],"sourcesContent":["import { Injector, TemplateRef, Type } from '@angular/core';\nimport { NG_DOC_COMPONENT_CONTEXT } from '@ng-doc/ui-kit/tokens';\nimport {\n PolymorpheusComponent,\n PolymorpheusHandler,\n PolymorpheusTemplate,\n} from '@tinkoff/ng-polymorpheus';\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type NgDocContent<C extends object = {}> =\n | string\n | number\n | null\n | undefined\n | TemplateRef<C>\n | PolymorpheusTemplate<C>\n | PolymorpheusHandler<C>\n | NgDocComponentContent<object, C>;\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport class NgDocComponentContent<\n T extends object,\n C extends object = object,\n> extends PolymorpheusComponent<T, C> {\n constructor(\n override readonly component: Type<T>,\n readonly injectorRef?: Injector,\n ) {\n super(component);\n }\n\n override createInjector<C>(injector: Injector, useValue?: C): Injector {\n return Injector.create({\n parent: this.injectorRef || injector,\n providers: [\n {\n provide: NG_DOC_COMPONENT_CONTEXT,\n useValue,\n },\n ],\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAmBA;AACM,MAAO,qBAGX,SAAQ,qBAA2B,CAAA;IACnC,WACoB,CAAA,SAAkB,EAC3B,WAAsB,EAAA;QAE/B,KAAK,CAAC,SAAS,CAAC;QAHE,IAAS,CAAA,SAAA,GAAT,SAAS;QAClB,IAAW,CAAA,WAAA,GAAX,WAAW;;IAKb,cAAc,CAAI,QAAkB,EAAE,QAAY,EAAA;QACzD,OAAO,QAAQ,CAAC,MAAM,CAAC;AACrB,YAAA,MAAM,EAAE,IAAI,CAAC,WAAW,IAAI,QAAQ;AACpC,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,wBAAwB;oBACjC,QAAQ;AACT,iBAAA;AACF,aAAA;AACF,SAAA,CAAC;;AAEL;;AC1CD;;AAEG;;;;"}
|
|
@@ -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,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE;AAClF,YAAA,OAAO,KAAK;;QAGb,IACC,CAAC,OAAO,YAAY,WAAW,IAAI,OAAO,CAAC,iBAAiB;YAC5D,OAAO,CAAC,YAAY,CAAC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-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 NgDocHorizontalAlign,\n NgDocOverlayPosition,\n NgDocOverlayRelativePosition,\n NgDocVerticalAlign,\n} from '@ng-doc/ui-kit/types';\n\nexport const NG_DOC_ARROW_MARGIN: number = 32;\n\nconst POSITION_DESCRIPTION: Record<string, ConnectedPosition> = {\n 'top-left': {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n 'top-center': {\n originX: 'center',\n originY: 'top',\n overlayX: 'center',\n overlayY: 'bottom',\n },\n 'top-right': {\n originX: 'end',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n 'bottom-left': {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n 'bottom-center': {\n originX: 'center',\n originY: 'bottom',\n overlayX: 'center',\n overlayY: 'top',\n },\n 'bottom-right': {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'top',\n },\n 'left-top': {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n },\n 'left-center': {\n originX: 'start',\n originY: 'center',\n overlayX: 'end',\n overlayY: 'center',\n },\n 'left-bottom': {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'end',\n overlayY: 'bottom',\n },\n 'right-top': {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n 'right-center': {\n originX: 'end',\n originY: 'center',\n overlayX: 'start',\n overlayY: 'center',\n },\n 'right-bottom': {\n originX: 'end',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n};\n\nexport class NgDocOverlayUtils {\n static getConnectedPosition(\n dropdownPositions: NgDocOverlayPosition | NgDocOverlayPosition[],\n origin: HTMLElement,\n offset: number = 0,\n withPointer: boolean = false,\n ): ConnectedPosition[] {\n return asArray(dropdownPositions).map((position: NgDocOverlayPosition) => {\n const connectedPosition: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(position);\n const marginMultiplier: number = NgDocOverlayUtils.getMarginMultiplier(connectedPosition);\n const marginX: number = !NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n ? offset * marginMultiplier\n : 0;\n const marginY: number = NgDocOverlayUtils.isVerticalPosition(connectedPosition)\n ? offset * marginMultiplier\n : 0;\n connectedPosition.offsetX = connectedPosition.offsetX || 0;\n connectedPosition.offsetY = connectedPosition.offsetY || 0;\n connectedPosition.offsetX +=\n (withPointer ? NgDocOverlayUtils.getOffsetX(origin, connectedPosition) : 0) + marginX;\n connectedPosition.offsetY +=\n (withPointer ? NgDocOverlayUtils.getOffsetY(origin, connectedPosition) : 0) + marginY;\n return connectedPosition;\n });\n }\n\n static toConnectedPosition(position: NgDocOverlayPosition): ConnectedPosition {\n return typeof position === 'string' ? { ...POSITION_DESCRIPTION[position] } : { ...position };\n }\n\n static toConnectedPositions(positions: NgDocOverlayPosition[]): ConnectedPosition[] {\n return positions.map(NgDocOverlayUtils.toConnectedPosition);\n }\n\n static getOffsetX(origin: HTMLElement, position: ConnectedPosition): number {\n const isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n const offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n const isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n const width: number =\n (position.originX === 'center' && position.overlayX !== 'center') ||\n NgDocOverlayUtils.overlayIsOutByX(position)\n ? NG_DOC_ARROW_MARGIN - 24\n : origin.offsetWidth;\n return (\n (isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - width, 0) : 0) * offsetMultiplier\n );\n }\n\n static getOffsetY(origin: HTMLElement, position: ConnectedPosition): number {\n const isVertical: boolean = NgDocOverlayUtils.isVerticalPosition(position);\n const offsetMultiplier: number = NgDocOverlayUtils.getOffsetMultiplier(position);\n const isCenter: boolean = NgDocOverlayUtils.isCenterPosition(position);\n const height: number =\n (position.originY === 'center' && position.overlayY !== 'center') ||\n NgDocOverlayUtils.overlayIsOutByY(position)\n ? NG_DOC_ARROW_MARGIN - 24\n : origin.offsetHeight;\n return (\n (!isVertical && !isCenter ? Math.max(NG_DOC_ARROW_MARGIN - height, 0) : 0) * offsetMultiplier\n );\n }\n\n static overlayIsOutByX(position: ConnectedPosition): boolean {\n return (\n (position.originX === 'start' && position.overlayX === 'end') ||\n (position.originX === 'end' && position.overlayX === 'start')\n );\n }\n\n static overlayIsOutByY(position: ConnectedPosition): boolean {\n return (\n (position.originY === 'top' && position.overlayY === 'bottom') ||\n (position.originY === 'bottom' && position.overlayY === 'top')\n );\n }\n\n static getOffsetMultiplier(position: ConnectedPosition): number {\n return (NgDocOverlayUtils.isVerticalPosition(position) && position.overlayX === 'end') ||\n (!NgDocOverlayUtils.isVerticalPosition(position) && position.overlayY === 'bottom')\n ? 1\n : -1;\n }\n\n static getMarginMultiplier(position: ConnectedPosition): number {\n return ['right', 'bottom'].includes(NgDocOverlayUtils.getRelativePosition(position) || '')\n ? 1\n : -1;\n }\n\n static isVerticalPosition(position: ConnectedPosition): boolean {\n return ['bottom', 'top'].includes(NgDocOverlayUtils.getRelativePosition(position) || '');\n }\n\n static isCenterPosition(position: ConnectedPosition): boolean {\n return position.overlayX === 'center' || position.overlayY === 'center';\n }\n\n static getPositionAlign(\n position: ConnectedPosition,\n ): NgDocHorizontalAlign | NgDocVerticalAlign | null {\n if (NgDocOverlayUtils.isVerticalPosition(position)) {\n return position.overlayX === 'start' ? 'left' : position.overlayX === 'end' ? 'right' : null;\n } else {\n return position.originY === 'top' ? 'top' : position.originY === 'bottom' ? 'bottom' : null;\n }\n }\n\n static getRelativePosition(pos: NgDocOverlayPosition): NgDocOverlayRelativePosition | null {\n const position: ConnectedPosition = NgDocOverlayUtils.toConnectedPosition(pos);\n if (position.originY === 'bottom' && position.overlayY === 'top') {\n return 'bottom';\n }\n if (position.originY === 'top' && position.overlayY === 'bottom') {\n return 'top';\n }\n if (position.originX === 'start' && position.overlayX === 'end') {\n return 'left';\n }\n if (position.originX === 'end' && position.overlayX === 'start') {\n return 'right';\n }\n return null;\n }\n\n static getOverlayPosition(positionPair: ConnectionPositionPair): NgDocOverlayPosition {\n const existsPosition: NgDocOverlayPosition = Object.keys(POSITION_DESCRIPTION).find(\n (key: string) => {\n const positionDescription: ConnectedPosition = POSITION_DESCRIPTION[key];\n return (\n positionPair.originX === positionDescription.originX &&\n positionPair.originY === positionDescription.originY &&\n positionPair.overlayX === positionDescription.overlayX &&\n positionPair.overlayY === positionDescription.overlayY\n );\n },\n ) as NgDocOverlayPosition;\n return existsPosition ? existsPosition : positionPair;\n }\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;;QAGb,IACC,CAAC,OAAO,YAAY,WAAW,IAAI,OAAO,CAAC,iBAAiB;YAC5D,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,GAAG,EACvC;AACD,YAAA,OAAO,IAAI;;AAGZ,QAAA,QAAQ,OAAO,CAAC,OAAO;AACtB,YAAA,KAAK,QAAQ;AACb,YAAA,KAAK,QAAQ;AACb,YAAA,KAAK,UAAU;AACd,gBAAA,OAAO,IAAI;AACZ,YAAA,KAAK,OAAO;AACZ,YAAA,KAAK,OAAO;AACX,gBAAA,OAAO,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC;AACxC,Y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G,eAAe,CAAC,UAAU,GAAG,eAAe,CAAC,UAAU;AACrF,gBAAA,IAAI,IAAI,eAAe,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS,GAAG,eAAe,CAAC,SAAS;gBACzF,OAAO,GAAG,IAAI;;iBACR;gBACN,MAAM,aAAa,GAAc,IAAI,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC;AACvE,gBAAA,IAAI,IAAI,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG;AACxF,gBAAA,IAAI,IAAI,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG;AACrF,gBAAA,OAAO,GAAG,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAgB;;;QAGtE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE;;AAG5B;;;;AAIG;IACH,OAAO,eAAe,CAAC,OAAoB,EAAA;AAC1C,QAAA,MAAM,cAAc,GAAwB,gBAAgB,CAAC,OAAO,CAAC;AACrE,QAAA,IAAI,cAAc,CAAC,QAAQ,KAAK,OAAO,IAAI,cAAc,CAAC,OAAO,KAAK,MAAM,EAAE;AAC7E,YAAA,OAAO,IAAI;;QAEZ,OAAO,OAAO,CAAC,YAA2B;;AAE3C;;ACzCD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/ui-kit",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=19.0.0 < 20.0.0",
|
|
6
6
|
"@angular/core": ">=19.0.0 < 20.0.0",
|
|
7
7
|
"@angular/cdk": ">=19.0.0 < 20.0.0",
|
|
8
|
-
"@ngneat/until-destroy": "^10.0.0",
|
|
9
8
|
"di-controls": "2.1.0",
|
|
10
9
|
"@tinkoff/ng-polymorpheus": "4.3.0",
|
|
11
10
|
"rxjs": "^7.0.0"
|
|
12
11
|
},
|
|
13
12
|
"dependencies": {
|
|
14
13
|
"tslib": "^2.6.2",
|
|
15
|
-
"@ng-doc/core": "19.
|
|
14
|
+
"@ng-doc/core": "19.3.0"
|
|
16
15
|
},
|
|
17
16
|
"publishConfig": {
|
|
18
17
|
"access": "public"
|
|
@@ -51,14 +50,14 @@
|
|
|
51
50
|
"types": "./decorators/index.d.ts",
|
|
52
51
|
"default": "./fesm2022/ng-doc-ui-kit-decorators.mjs"
|
|
53
52
|
},
|
|
54
|
-
"./directives": {
|
|
55
|
-
"types": "./directives/index.d.ts",
|
|
56
|
-
"default": "./fesm2022/ng-doc-ui-kit-directives.mjs"
|
|
57
|
-
},
|
|
58
53
|
"./helpers": {
|
|
59
54
|
"types": "./helpers/index.d.ts",
|
|
60
55
|
"default": "./fesm2022/ng-doc-ui-kit-helpers.mjs"
|
|
61
56
|
},
|
|
57
|
+
"./directives": {
|
|
58
|
+
"types": "./directives/index.d.ts",
|
|
59
|
+
"default": "./fesm2022/ng-doc-ui-kit-directives.mjs"
|
|
60
|
+
},
|
|
62
61
|
"./interceptors": {
|
|
63
62
|
"types": "./interceptors/index.d.ts",
|
|
64
63
|
"default": "./fesm2022/ng-doc-ui-kit-interceptors.mjs"
|
|
@@ -147,17 +146,17 @@
|
|
|
147
146
|
"types": "./components/checkbox/index.d.ts",
|
|
148
147
|
"default": "./fesm2022/ng-doc-ui-kit-components-checkbox.mjs"
|
|
149
148
|
},
|
|
150
|
-
"./components/
|
|
151
|
-
"types": "./components/
|
|
152
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-
|
|
149
|
+
"./components/data-list": {
|
|
150
|
+
"types": "./components/data-list/index.d.ts",
|
|
151
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-data-list.mjs"
|
|
153
152
|
},
|
|
154
153
|
"./components/combobox": {
|
|
155
154
|
"types": "./components/combobox/index.d.ts",
|
|
156
155
|
"default": "./fesm2022/ng-doc-ui-kit-components-combobox.mjs"
|
|
157
156
|
},
|
|
158
|
-
"./components/
|
|
159
|
-
"types": "./components/
|
|
160
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-
|
|
157
|
+
"./components/clear-control": {
|
|
158
|
+
"types": "./components/clear-control/index.d.ts",
|
|
159
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-clear-control.mjs"
|
|
161
160
|
},
|
|
162
161
|
"./components/data-list-group": {
|
|
163
162
|
"types": "./components/data-list-group/index.d.ts",
|
|
@@ -235,38 +234,38 @@
|
|
|
235
234
|
"types": "./components/overlay-pointer/index.d.ts",
|
|
236
235
|
"default": "./fesm2022/ng-doc-ui-kit-components-overlay-pointer.mjs"
|
|
237
236
|
},
|
|
238
|
-
"./components/
|
|
239
|
-
"types": "./components/
|
|
240
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-
|
|
237
|
+
"./components/sidenav": {
|
|
238
|
+
"types": "./components/sidenav/index.d.ts",
|
|
239
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-sidenav.mjs"
|
|
241
240
|
},
|
|
242
241
|
"./components/selection": {
|
|
243
242
|
"types": "./components/selection/index.d.ts",
|
|
244
243
|
"default": "./fesm2022/ng-doc-ui-kit-components-selection.mjs"
|
|
245
244
|
},
|
|
246
|
-
"./components/
|
|
247
|
-
"types": "./components/
|
|
248
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-
|
|
249
|
-
},
|
|
250
|
-
"./components/smooth-resize": {
|
|
251
|
-
"types": "./components/smooth-resize/index.d.ts",
|
|
252
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs"
|
|
245
|
+
"./components/pane": {
|
|
246
|
+
"types": "./components/pane/index.d.ts",
|
|
247
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-pane.mjs"
|
|
253
248
|
},
|
|
254
249
|
"./components/spinner": {
|
|
255
250
|
"types": "./components/spinner/index.d.ts",
|
|
256
251
|
"default": "./fesm2022/ng-doc-ui-kit-components-spinner.mjs"
|
|
257
252
|
},
|
|
253
|
+
"./components/smooth-resize": {
|
|
254
|
+
"types": "./components/smooth-resize/index.d.ts",
|
|
255
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-smooth-resize.mjs"
|
|
256
|
+
},
|
|
258
257
|
"./components/tab-group": {
|
|
259
258
|
"types": "./components/tab-group/index.d.ts",
|
|
260
259
|
"default": "./fesm2022/ng-doc-ui-kit-components-tab-group.mjs"
|
|
261
260
|
},
|
|
262
|
-
"./components/tab-routes-group": {
|
|
263
|
-
"types": "./components/tab-routes-group/index.d.ts",
|
|
264
|
-
"default": "./fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs"
|
|
265
|
-
},
|
|
266
261
|
"./components/tag": {
|
|
267
262
|
"types": "./components/tag/index.d.ts",
|
|
268
263
|
"default": "./fesm2022/ng-doc-ui-kit-components-tag.mjs"
|
|
269
264
|
},
|
|
265
|
+
"./components/tab-routes-group": {
|
|
266
|
+
"types": "./components/tab-routes-group/index.d.ts",
|
|
267
|
+
"default": "./fesm2022/ng-doc-ui-kit-components-tab-routes-group.mjs"
|
|
268
|
+
},
|
|
270
269
|
"./components/text": {
|
|
271
270
|
"types": "./components/text/index.d.ts",
|
|
272
271
|
"default": "./fesm2022/ng-doc-ui-kit-components-text.mjs"
|
|
@@ -355,14 +354,14 @@
|
|
|
355
354
|
"types": "./pipes/highlighter/index.d.ts",
|
|
356
355
|
"default": "./fesm2022/ng-doc-ui-kit-pipes-highlighter.mjs"
|
|
357
356
|
},
|
|
358
|
-
"./providers/ng-doc-ui-kit-config": {
|
|
359
|
-
"types": "./providers/ng-doc-ui-kit-config/index.d.ts",
|
|
360
|
-
"default": "./fesm2022/ng-doc-ui-kit-providers-ng-doc-ui-kit-config.mjs"
|
|
361
|
-
},
|
|
362
357
|
"./services/dialog": {
|
|
363
358
|
"types": "./services/dialog/index.d.ts",
|
|
364
359
|
"default": "./fesm2022/ng-doc-ui-kit-services-dialog.mjs"
|
|
365
360
|
},
|
|
361
|
+
"./providers/ng-doc-ui-kit-config": {
|
|
362
|
+
"types": "./providers/ng-doc-ui-kit-config/index.d.ts",
|
|
363
|
+
"default": "./fesm2022/ng-doc-ui-kit-providers-ng-doc-ui-kit-config.mjs"
|
|
364
|
+
},
|
|
366
365
|
"./services/notify": {
|
|
367
366
|
"types": "./services/notify/index.d.ts",
|
|
368
367
|
"default": "./fesm2022/ng-doc-ui-kit-services-notify.mjs"
|