@acorex/cdk 19.6.1 → 19.7.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,162 @@
1
+ import { AXUnsubscriber } from '@acorex/core/utils';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, NgZone, ElementRef, input, signal, afterNextRender, Directive, NgModule } from '@angular/core';
4
+ import { Router, NavigationEnd } from '@angular/router';
5
+ import { BehaviorSubject, fromEvent, map } from 'rxjs';
6
+ import { CommonModule } from '@angular/common';
7
+
8
+ class AXOutlineContainerDirective {
9
+ constructor() {
10
+ this.router = inject(Router);
11
+ this.zone = inject(NgZone);
12
+ this.el = inject((ElementRef));
13
+ this.unsubscriber = inject(AXUnsubscriber);
14
+ this.target = input();
15
+ this.smoothScroll = input(true);
16
+ this.activationOffset = input(16);
17
+ this.activateLastAtBottom = input(true);
18
+ this.scrollTop = signal(0);
19
+ this.outlineItems = signal([]);
20
+ this.outlineItems$ = new BehaviorSubject([]);
21
+ this.#anr = afterNextRender(() => {
22
+ if (this.smoothScroll) {
23
+ this.el.nativeElement.style.scrollBehavior = 'smooth';
24
+ }
25
+ this.setOutlineItems();
26
+ this.router.events.pipe(this.unsubscriber.takeUntilDestroy).subscribe((e) => {
27
+ if (e instanceof NavigationEnd) {
28
+ this.setOutlineItems();
29
+ }
30
+ });
31
+ this.zone.runOutsideAngular(() => {
32
+ fromEvent(this.el.nativeElement, 'scroll')
33
+ .pipe(this.unsubscriber.takeUntilDestroy, map(() => this.el.nativeElement.scrollTop))
34
+ .subscribe((scrollTop) => {
35
+ this.scrollTop.set(scrollTop);
36
+ this.scrollChanged(scrollTop);
37
+ });
38
+ });
39
+ });
40
+ }
41
+ #anr;
42
+ scrollChanged(scrollTop) {
43
+ this.outlineItems.update((prevItems) => {
44
+ if (prevItems.length === 0)
45
+ return prevItems;
46
+ const scrollHeight = this.el.nativeElement.scrollHeight;
47
+ const clientHeight = this.el.nativeElement.clientHeight;
48
+ const isAtBottom = scrollTop + clientHeight >= scrollHeight - 1;
49
+ if (isAtBottom && this.activateLastAtBottom()) {
50
+ return prevItems.map((item, index) => ({
51
+ ...item,
52
+ active: index === prevItems.length - 1,
53
+ }));
54
+ }
55
+ let activeIndex = -1;
56
+ for (let i = 0; i < prevItems.length; i++) {
57
+ const item = prevItems[i];
58
+ if (scrollTop >= item.scrollY - this.activationOffset()) {
59
+ activeIndex = i;
60
+ }
61
+ }
62
+ return prevItems.map((item, index) => ({
63
+ ...item,
64
+ active: index === activeIndex,
65
+ }));
66
+ });
67
+ this.outlineItems$.next(this.outlineItems());
68
+ }
69
+ setOutlineItems() {
70
+ setTimeout(() => {
71
+ const targets = this.target() ? [...this.el.nativeElement.querySelectorAll(this.target())] : [];
72
+ targets.push(...this.el.nativeElement.querySelectorAll('[data-ax-outline-item="true"]'));
73
+ const uniqueTargets = new Set(targets);
74
+ const outlineItems = Array.from(uniqueTargets)
75
+ .map((el) => {
76
+ const existingId = el.id;
77
+ let newId;
78
+ if (!existingId) {
79
+ const textContent = el.textContent.trim();
80
+ if (textContent) {
81
+ newId = `${textContent.replace(/\s+/g, '-')}`;
82
+ }
83
+ else {
84
+ newId = `${Math.random().toString(36).slice(2, 7)}`;
85
+ }
86
+ el.id = newId;
87
+ }
88
+ return { el, active: false, scrollY: el.offsetTop };
89
+ })
90
+ .sort((a, b) => a.scrollY - b.scrollY);
91
+ this.outlineItems.set(outlineItems);
92
+ this.scrollChanged(this.scrollTop());
93
+ });
94
+ }
95
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
96
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: AXOutlineContainerDirective, isStandalone: false, selector: "[axOutlineContainer]", inputs: { target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, smoothScroll: { classPropertyName: "smoothScroll", publicName: "smoothScroll", isSignal: true, isRequired: false, transformFunction: null }, activationOffset: { classPropertyName: "activationOffset", publicName: "activationOffset", isSignal: true, isRequired: false, transformFunction: null }, activateLastAtBottom: { classPropertyName: "activateLastAtBottom", publicName: "activateLastAtBottom", isSignal: true, isRequired: false, transformFunction: null } }, providers: [AXUnsubscriber], exportAs: ["axOutlineContainer"], ngImport: i0 }); }
97
+ }
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineContainerDirective, decorators: [{
99
+ type: Directive,
100
+ args: [{
101
+ selector: '[axOutlineContainer]',
102
+ standalone: false,
103
+ exportAs: 'axOutlineContainer',
104
+ providers: [AXUnsubscriber],
105
+ }]
106
+ }] });
107
+
108
+ class AXOutlineItemDirective {
109
+ constructor() {
110
+ this.el = inject(ElementRef);
111
+ this.id = input();
112
+ this.#anr = afterNextRender(() => {
113
+ this.el.nativeElement.dataset['axOutlineItem'] = 'true';
114
+ let newId;
115
+ if (!this.id()) {
116
+ const textContent = this.el.nativeElement.textContent.trim();
117
+ if (textContent) {
118
+ newId = `${textContent.replace(/\s+/g, '-')}`;
119
+ }
120
+ else {
121
+ newId = `${Math.random().toString(36).slice(2, 7)}`;
122
+ }
123
+ this.el.nativeElement.id = newId;
124
+ }
125
+ });
126
+ }
127
+ #anr;
128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
129
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: AXOutlineItemDirective, isStandalone: false, selector: "[axOutlineItem]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["axOutlineItem"], ngImport: i0 }); }
130
+ }
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineItemDirective, decorators: [{
132
+ type: Directive,
133
+ args: [{
134
+ selector: '[axOutlineItem]',
135
+ exportAs: 'axOutlineItem',
136
+ standalone: false,
137
+ }]
138
+ }] });
139
+
140
+ const COMPONENT = [AXOutlineContainerDirective, AXOutlineItemDirective];
141
+ const MODULES = [CommonModule];
142
+ class AXOutlineModule {
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
144
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineModule, declarations: [AXOutlineContainerDirective, AXOutlineItemDirective], imports: [CommonModule], exports: [AXOutlineContainerDirective, AXOutlineItemDirective] }); }
145
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineModule, imports: [MODULES] }); }
146
+ }
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXOutlineModule, decorators: [{
148
+ type: NgModule,
149
+ args: [{
150
+ declarations: [...COMPONENT],
151
+ imports: [...MODULES],
152
+ exports: [...COMPONENT],
153
+ providers: [],
154
+ }]
155
+ }] });
156
+
157
+ /**
158
+ * Generated bundle index. Do not edit.
159
+ */
160
+
161
+ export { AXOutlineContainerDirective, AXOutlineItemDirective, AXOutlineModule };
162
+ //# sourceMappingURL=acorex-cdk-outline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-cdk-outline.mjs","sources":["../../../../libs/cdk/outline/src/lib/outline-container.directive.ts","../../../../libs/cdk/outline/src/lib/outline-item.directive.ts","../../../../libs/cdk/outline/src/lib/outline.module.ts","../../../../libs/cdk/outline/src/acorex-cdk-outline.ts"],"sourcesContent":["import { AXUnsubscriber } from '@acorex/core/utils';\nimport { afterNextRender, Directive, ElementRef, inject, input, NgZone, signal } from '@angular/core';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { BehaviorSubject, fromEvent, map } from 'rxjs';\n\nexport type outlineItemType = { el: HTMLElement; active: boolean; scrollY: number };\n\n@Directive({\n selector: '[axOutlineContainer]',\n standalone: false,\n exportAs: 'axOutlineContainer',\n providers: [AXUnsubscriber],\n})\nexport class AXOutlineContainerDirective {\n router = inject(Router);\n private zone = inject(NgZone);\n private el = inject(ElementRef<HTMLElement>);\n private unsubscriber = inject(AXUnsubscriber);\n\n target = input<string>();\n smoothScroll = input(true);\n activationOffset = input(16);\n activateLastAtBottom = input(true);\n\n private scrollTop = signal(0);\n private outlineItems = signal<outlineItemType[]>([]);\n\n outlineItems$ = new BehaviorSubject<outlineItemType[]>([]);\n\n #anr = afterNextRender(() => {\n if (this.smoothScroll) {\n (this.el.nativeElement as HTMLElement).style.scrollBehavior = 'smooth';\n }\n this.setOutlineItems();\n this.router.events.pipe(this.unsubscriber.takeUntilDestroy).subscribe((e) => {\n if (e instanceof NavigationEnd) {\n this.setOutlineItems();\n }\n });\n this.zone.runOutsideAngular(() => {\n fromEvent(this.el.nativeElement, 'scroll')\n .pipe(\n this.unsubscriber.takeUntilDestroy,\n map(() => this.el.nativeElement.scrollTop),\n )\n .subscribe((scrollTop) => {\n this.scrollTop.set(scrollTop);\n this.scrollChanged(scrollTop);\n });\n });\n });\n\n private scrollChanged(scrollTop: number) {\n this.outlineItems.update((prevItems) => {\n if (prevItems.length === 0) return prevItems;\n\n const scrollHeight = this.el.nativeElement.scrollHeight;\n const clientHeight = this.el.nativeElement.clientHeight;\n const isAtBottom = scrollTop + clientHeight >= scrollHeight - 1;\n\n if (isAtBottom && this.activateLastAtBottom()) {\n return prevItems.map((item, index) => ({\n ...item,\n active: index === prevItems.length - 1,\n }));\n }\n\n let activeIndex = -1;\n for (let i = 0; i < prevItems.length; i++) {\n const item = prevItems[i];\n if (scrollTop >= item.scrollY - this.activationOffset()) {\n activeIndex = i;\n }\n }\n return prevItems.map((item, index) => ({\n ...item,\n active: index === activeIndex,\n }));\n });\n this.outlineItems$.next(this.outlineItems());\n }\n\n private setOutlineItems() {\n setTimeout(() => {\n const targets = this.target() ? [...this.el.nativeElement.querySelectorAll(this.target())] : [];\n targets.push(...this.el.nativeElement.querySelectorAll('[data-ax-outline-item=\"true\"]'));\n const uniqueTargets = new Set(targets);\n const outlineItems = Array.from(uniqueTargets)\n .map((el) => {\n const existingId = el.id;\n let newId;\n if (!existingId) {\n const textContent = el.textContent.trim();\n if (textContent) {\n newId = `${textContent.replace(/\\s+/g, '-')}`;\n } else {\n newId = `${Math.random().toString(36).slice(2, 7)}`;\n }\n el.id = newId;\n }\n return { el, active: false, scrollY: el.offsetTop };\n })\n .sort((a, b) => a.scrollY - b.scrollY);\n this.outlineItems.set(outlineItems);\n this.scrollChanged(this.scrollTop());\n });\n }\n}\n","import { afterNextRender, Directive, ElementRef, inject, input } from '@angular/core';\n\n@Directive({\n selector: '[axOutlineItem]',\n exportAs: 'axOutlineItem',\n standalone: false,\n})\nexport class AXOutlineItemDirective {\n private el = inject(ElementRef);\n id = input<string>();\n #anr = afterNextRender(() => {\n (this.el.nativeElement as HTMLElement).dataset['axOutlineItem'] = 'true';\n\n let newId;\n if (!this.id()) {\n const textContent = this.el.nativeElement.textContent.trim();\n if (textContent) {\n newId = `${textContent.replace(/\\s+/g, '-')}`;\n } else {\n newId = `${Math.random().toString(36).slice(2, 7)}`;\n }\n this.el.nativeElement.id = newId;\n }\n });\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXOutlineContainerDirective } from './outline-container.directive';\nimport { AXOutlineItemDirective } from './outline-item.directive';\n\nconst COMPONENT = [AXOutlineContainerDirective, AXOutlineItemDirective];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXOutlineModule {}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AAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACbD;;AAEG;;;;"}
@@ -0,0 +1,175 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, NgZone, Renderer2, ElementRef, signal, input, model, output, computed, effect, afterNextRender, Directive, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ class AXPanViewDirective {
6
+ constructor() {
7
+ this.zone = inject(NgZone);
8
+ this.render = inject(Renderer2);
9
+ this.el = inject((ElementRef));
10
+ this.prevX = signal(0);
11
+ this.prevY = signal(0);
12
+ this.pointerDown = signal(false);
13
+ this.wrapper = signal(null);
14
+ this.zoomStep = input(7);
15
+ this.minZoom = input(25);
16
+ this.maxZoom = input(400);
17
+ this.disablePan = input(false);
18
+ this.disableZoom = input(false);
19
+ this.wrapperClasses = input('');
20
+ this.panX = model(0);
21
+ this.panY = model(0);
22
+ this.zoom = model(100);
23
+ this.zoomChange = output();
24
+ this.positionChange = output();
25
+ this.nativeEl = computed(() => this.el.nativeElement);
26
+ this.zoomValue = computed(() => {
27
+ const zoomLevel = Math.max(this.minZoom(), Math.min(this.maxZoom(), this.zoom()));
28
+ return zoomLevel / 100;
29
+ });
30
+ this.#zoomChange = effect(() => {
31
+ const zoomLevel = Math.max(this.minZoom(), Math.min(this.maxZoom(), this.zoom()));
32
+ this.zoomChange.emit(zoomLevel);
33
+ this.nativeEl().style.scale = this.zoomValue().toString();
34
+ });
35
+ this.#positionChange = effect(() => {
36
+ this.nativeEl().style.transform = `translate(${this.panX()}px, ${this.panY()}px)`;
37
+ this.positionChange.emit({ x: this.panX(), y: this.panY() });
38
+ });
39
+ this.#anr = afterNextRender(() => {
40
+ // Create Wrapper
41
+ this.createWrapper();
42
+ // Wheel Event
43
+ this.render.listen(this.wrapper(), 'wheel', (e) => {
44
+ e.preventDefault();
45
+ if (e.ctrlKey) {
46
+ this.handleZoomChange(e);
47
+ return;
48
+ }
49
+ else if (e.shiftKey) {
50
+ if (this.disablePan())
51
+ return;
52
+ this.panX.update((prev) => prev - e.deltaY / 3);
53
+ }
54
+ else {
55
+ if (this.disablePan())
56
+ return;
57
+ this.panY.update((prev) => prev - e.deltaY / 3);
58
+ }
59
+ });
60
+ // Pointer Down Event
61
+ this.zone.runOutsideAngular(() => {
62
+ this.render.listen(this.wrapper(), 'pointerdown', (e) => {
63
+ this.handlePointerDown(e);
64
+ });
65
+ // Pointer Move Event
66
+ this.render.listen(this.wrapper(), 'pointermove', (e) => {
67
+ this.handlePointerMove(e);
68
+ });
69
+ // Pointer Up/Leave Event
70
+ this.render.listen(this.wrapper(), 'pointerup', (e) => {
71
+ this.handlePointerUp(e);
72
+ });
73
+ this.render.listen(this.wrapper(), 'pointerleave', (e) => {
74
+ this.handlePointerUp(e);
75
+ });
76
+ });
77
+ });
78
+ }
79
+ #zoomChange;
80
+ #positionChange;
81
+ #anr;
82
+ handleZoomChange(e) {
83
+ if (this.disableZoom())
84
+ return;
85
+ if (e.deltaY > 0) {
86
+ this.zoom.update((prev) => Math.min(this.maxZoom(), prev - this.zoomStep()));
87
+ return;
88
+ }
89
+ this.zoom.update((prev) => Math.max(this.minZoom(), prev + this.zoomStep()));
90
+ }
91
+ createWrapper() {
92
+ this.wrapper.set(this.render.createElement('div'));
93
+ this.render.addClass(this.wrapper(), 'ax-pan-view-wrapper');
94
+ this.render.addClass(this.wrapper(), this.wrapperClasses());
95
+ const parent = this.nativeEl().parentNode;
96
+ this.render.appendChild(this.wrapper(), this.nativeEl());
97
+ this.render.insertBefore(parent, this.wrapper(), this.nativeEl().nextSibling);
98
+ this.render.setStyle(this.wrapper(), 'width', '100%');
99
+ this.render.setStyle(this.wrapper(), 'height', '100%');
100
+ this.render.setStyle(this.wrapper(), 'overflow', 'hidden');
101
+ this.render.setStyle(this.wrapper(), 'position', 'relative');
102
+ this.render.setStyle(this.nativeEl(), 'top', '0');
103
+ this.render.setStyle(this.nativeEl(), 'left', '0');
104
+ this.render.setStyle(this.nativeEl(), 'width', '100%');
105
+ this.render.setStyle(this.nativeEl(), 'position', 'absolute');
106
+ }
107
+ handlePointerDown(e) {
108
+ if (this.disablePan())
109
+ return;
110
+ if ((e.pointerType === 'mouse' && e.buttons === 4) || e.pointerType !== 'mouse') {
111
+ e.preventDefault();
112
+ this.pointerDown.set(true);
113
+ this.wrapper().style.cursor = 'grabbing';
114
+ // Update previous position for next move
115
+ const currentX = e.clientX;
116
+ const currentY = e.clientY;
117
+ this.prevX.set(currentX);
118
+ this.prevY.set(currentY);
119
+ }
120
+ }
121
+ handlePointerMove(e) {
122
+ if (this.pointerDown() && !this.disablePan()) {
123
+ e.preventDefault();
124
+ const currentX = e.clientX;
125
+ const currentY = e.clientY;
126
+ const deltaX = currentX - this.prevX();
127
+ const deltaY = currentY - this.prevY();
128
+ this.panX.update((prev) => prev + deltaX / this.zoomValue());
129
+ this.panY.update((prev) => prev + deltaY / this.zoomValue());
130
+ this.prevX.set(currentX);
131
+ this.prevY.set(currentY);
132
+ }
133
+ }
134
+ handlePointerUp(e) {
135
+ if (this.pointerDown() && !this.disablePan()) {
136
+ e.preventDefault();
137
+ this.pointerDown.set(false);
138
+ this.wrapper().style.cursor = 'auto';
139
+ }
140
+ }
141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
142
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.0.3", type: AXPanViewDirective, isStandalone: false, selector: "[axPanView]", inputs: { zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, disablePan: { classPropertyName: "disablePan", publicName: "disablePan", isSignal: true, isRequired: false, transformFunction: null }, disableZoom: { classPropertyName: "disableZoom", publicName: "disableZoom", isSignal: true, isRequired: false, transformFunction: null }, wrapperClasses: { classPropertyName: "wrapperClasses", publicName: "wrapperClasses", isSignal: true, isRequired: false, transformFunction: null }, panX: { classPropertyName: "panX", publicName: "panX", isSignal: true, isRequired: false, transformFunction: null }, panY: { classPropertyName: "panY", publicName: "panY", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { panX: "panXChange", panY: "panYChange", zoom: "zoomChange", zoomChange: "zoomChange", positionChange: "positionChange" }, exportAs: ["axPanView"], ngImport: i0 }); }
143
+ }
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewDirective, decorators: [{
145
+ type: Directive,
146
+ args: [{
147
+ selector: '[axPanView]',
148
+ exportAs: 'axPanView',
149
+ standalone: false,
150
+ }]
151
+ }] });
152
+
153
+ const COMPONENT = [AXPanViewDirective];
154
+ const MODULES = [CommonModule];
155
+ class AXPanViewModule {
156
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
157
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewModule, declarations: [AXPanViewDirective], imports: [CommonModule], exports: [AXPanViewDirective] }); }
158
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewModule, imports: [MODULES] }); }
159
+ }
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPanViewModule, decorators: [{
161
+ type: NgModule,
162
+ args: [{
163
+ declarations: [...COMPONENT],
164
+ imports: [...MODULES],
165
+ exports: [...COMPONENT],
166
+ providers: [],
167
+ }]
168
+ }] });
169
+
170
+ /**
171
+ * Generated bundle index. Do not edit.
172
+ */
173
+
174
+ export { AXPanViewDirective, AXPanViewModule };
175
+ //# sourceMappingURL=acorex-cdk-pan-view.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-cdk-pan-view.mjs","sources":["../../../../libs/cdk/pan-view/src/lib/pan-view.directive.ts","../../../../libs/cdk/pan-view/src/lib/pan-view.module.ts","../../../../libs/cdk/pan-view/src/acorex-cdk-pan-view.ts"],"sourcesContent":["import {\n afterNextRender,\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n model,\n NgZone,\n output,\n Renderer2,\n signal,\n} from '@angular/core';\n\n@Directive({\n selector: '[axPanView]',\n exportAs: 'axPanView',\n standalone: false,\n})\nexport class AXPanViewDirective {\n private zone = inject(NgZone);\n private render = inject(Renderer2);\n private el = inject(ElementRef<HTMLElement>);\n\n private prevX = signal(0);\n private prevY = signal(0);\n private pointerDown = signal(false);\n private wrapper = signal<HTMLDivElement | null>(null);\n\n zoomStep = input(7);\n minZoom = input(25);\n maxZoom = input(400);\n disablePan = input(false);\n disableZoom = input(false);\n wrapperClasses = input('');\n\n panX = model(0);\n panY = model(0);\n zoom = model(100);\n\n zoomChange = output<number>();\n positionChange = output<{ x: number; y: number }>();\n\n private nativeEl = computed(() => this.el.nativeElement as HTMLElement);\n private zoomValue = computed(() => {\n const zoomLevel = Math.max(this.minZoom(), Math.min(this.maxZoom(), this.zoom()));\n return zoomLevel / 100;\n });\n\n #zoomChange = effect(() => {\n const zoomLevel = Math.max(this.minZoom(), Math.min(this.maxZoom(), this.zoom()));\n this.zoomChange.emit(zoomLevel);\n this.nativeEl().style.scale = this.zoomValue().toString();\n });\n #positionChange = effect(() => {\n this.nativeEl().style.transform = `translate(${this.panX()}px, ${this.panY()}px)`;\n this.positionChange.emit({ x: this.panX(), y: this.panY() });\n });\n #anr = afterNextRender(() => {\n // Create Wrapper\n this.createWrapper();\n // Wheel Event\n this.render.listen(this.wrapper(), 'wheel', (e: WheelEvent) => {\n e.preventDefault();\n if (e.ctrlKey) {\n this.handleZoomChange(e);\n return;\n } else if (e.shiftKey) {\n if (this.disablePan()) return;\n this.panX.update((prev) => prev - e.deltaY / 3);\n } else {\n if (this.disablePan()) return;\n this.panY.update((prev) => prev - e.deltaY / 3);\n }\n });\n // Pointer Down Event\n this.zone.runOutsideAngular(() => {\n this.render.listen(this.wrapper(), 'pointerdown', (e: PointerEvent) => {\n this.handlePointerDown(e);\n });\n // Pointer Move Event\n this.render.listen(this.wrapper(), 'pointermove', (e: PointerEvent) => {\n this.handlePointerMove(e);\n });\n // Pointer Up/Leave Event\n this.render.listen(this.wrapper(), 'pointerup', (e: PointerEvent) => {\n this.handlePointerUp(e);\n });\n this.render.listen(this.wrapper(), 'pointerleave', (e: PointerEvent) => {\n this.handlePointerUp(e);\n });\n });\n });\n\n private handleZoomChange(e: WheelEvent) {\n if (this.disableZoom()) return;\n if (e.deltaY > 0) {\n this.zoom.update((prev) => Math.min(this.maxZoom(), prev - this.zoomStep()));\n return;\n }\n this.zoom.update((prev) => Math.max(this.minZoom(), prev + this.zoomStep()));\n }\n\n private createWrapper() {\n this.wrapper.set(this.render.createElement('div'));\n this.render.addClass(this.wrapper(), 'ax-pan-view-wrapper');\n this.render.addClass(this.wrapper(), this.wrapperClasses());\n\n const parent = this.nativeEl().parentNode;\n this.render.appendChild(this.wrapper(), this.nativeEl());\n this.render.insertBefore(parent, this.wrapper(), this.nativeEl().nextSibling);\n\n this.render.setStyle(this.wrapper(), 'width', '100%');\n this.render.setStyle(this.wrapper(), 'height', '100%');\n this.render.setStyle(this.wrapper(), 'overflow', 'hidden');\n this.render.setStyle(this.wrapper(), 'position', 'relative');\n\n this.render.setStyle(this.nativeEl(), 'top', '0');\n this.render.setStyle(this.nativeEl(), 'left', '0');\n this.render.setStyle(this.nativeEl(), 'width', '100%');\n this.render.setStyle(this.nativeEl(), 'position', 'absolute');\n }\n\n private handlePointerDown(e: PointerEvent) {\n if (this.disablePan()) return;\n if ((e.pointerType === 'mouse' && e.buttons === 4) || e.pointerType !== 'mouse') {\n e.preventDefault();\n this.pointerDown.set(true);\n this.wrapper().style.cursor = 'grabbing';\n\n // Update previous position for next move\n const currentX = e.clientX;\n const currentY = e.clientY;\n this.prevX.set(currentX);\n this.prevY.set(currentY);\n }\n }\n\n private handlePointerMove(e: PointerEvent) {\n if (this.pointerDown() && !this.disablePan()) {\n e.preventDefault();\n const currentX = e.clientX;\n const currentY = e.clientY;\n const deltaX = currentX - this.prevX();\n const deltaY = currentY - this.prevY();\n this.panX.update((prev) => prev + deltaX / this.zoomValue());\n this.panY.update((prev) => prev + deltaY / this.zoomValue());\n this.prevX.set(currentX);\n this.prevY.set(currentY);\n }\n }\n\n private handlePointerUp(e: PointerEvent) {\n if (this.pointerDown() && !this.disablePan()) {\n e.preventDefault();\n this.pointerDown.set(false);\n this.wrapper().style.cursor = 'auto';\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXPanViewDirective } from './pan-view.directive';\n\nconst COMPONENT = [AXPanViewDirective];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXPanViewModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoBa,kBAAkB,CAAA;AAL/B,IAAA,WAAA,GAAA;AAMU,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC;AAC1B,QAA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;2FAIT,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -0,0 +1,3 @@
1
+ # @acorex/cdk/outline
2
+
3
+ Secondary entry point of `@acorex/cdk`. It can be used by importing from `@acorex/cdk/outline`.
@@ -0,0 +1,3 @@
1
+ export * from './lib/outline-container.directive';
2
+ export * from './lib/outline-item.directive';
3
+ export * from './lib/outline.module';
@@ -0,0 +1,26 @@
1
+ import { Router } from '@angular/router';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export type outlineItemType = {
5
+ el: HTMLElement;
6
+ active: boolean;
7
+ scrollY: number;
8
+ };
9
+ export declare class AXOutlineContainerDirective {
10
+ #private;
11
+ router: Router;
12
+ private zone;
13
+ private el;
14
+ private unsubscriber;
15
+ target: import("@angular/core").InputSignal<string>;
16
+ smoothScroll: import("@angular/core").InputSignal<boolean>;
17
+ activationOffset: import("@angular/core").InputSignal<number>;
18
+ activateLastAtBottom: import("@angular/core").InputSignal<boolean>;
19
+ private scrollTop;
20
+ private outlineItems;
21
+ outlineItems$: BehaviorSubject<outlineItemType[]>;
22
+ private scrollChanged;
23
+ private setOutlineItems;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXOutlineContainerDirective, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXOutlineContainerDirective, "[axOutlineContainer]", ["axOutlineContainer"], { "target": { "alias": "target"; "required": false; "isSignal": true; }; "smoothScroll": { "alias": "smoothScroll"; "required": false; "isSignal": true; }; "activationOffset": { "alias": "activationOffset"; "required": false; "isSignal": true; }; "activateLastAtBottom": { "alias": "activateLastAtBottom"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
26
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXOutlineItemDirective {
3
+ #private;
4
+ private el;
5
+ id: import("@angular/core").InputSignal<string>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXOutlineItemDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXOutlineItemDirective, "[axOutlineItem]", ["axOutlineItem"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./outline-container.directive";
3
+ import * as i2 from "./outline-item.directive";
4
+ import * as i3 from "@angular/common";
5
+ export declare class AXOutlineModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXOutlineModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXOutlineModule, [typeof i1.AXOutlineContainerDirective, typeof i2.AXOutlineItemDirective], [typeof i3.CommonModule], [typeof i1.AXOutlineContainerDirective, typeof i2.AXOutlineItemDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXOutlineModule>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/cdk",
3
- "version": "19.6.1",
3
+ "version": "19.7.0-next.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -31,6 +31,14 @@
31
31
  "types": "./collapse/index.d.ts",
32
32
  "default": "./fesm2022/acorex-cdk-collapse.mjs"
33
33
  },
34
+ "./outline": {
35
+ "types": "./outline/index.d.ts",
36
+ "default": "./fesm2022/acorex-cdk-outline.mjs"
37
+ },
38
+ "./pan-view": {
39
+ "types": "./pan-view/index.d.ts",
40
+ "default": "./fesm2022/acorex-cdk-pan-view.mjs"
41
+ },
34
42
  "./qrcode": {
35
43
  "types": "./qrcode/index.d.ts",
36
44
  "default": "./fesm2022/acorex-cdk-qrcode.mjs"
@@ -0,0 +1,3 @@
1
+ # @acorex/cdk/pan-view
2
+
3
+ Secondary entry point of `@acorex/cdk`. It can be used by importing from `@acorex/cdk/pan-view`.
@@ -0,0 +1,2 @@
1
+ export * from './lib/pan-view.directive';
2
+ export * from './lib/pan-view.module';
@@ -0,0 +1,34 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXPanViewDirective {
3
+ #private;
4
+ private zone;
5
+ private render;
6
+ private el;
7
+ private prevX;
8
+ private prevY;
9
+ private pointerDown;
10
+ private wrapper;
11
+ zoomStep: import("@angular/core").InputSignal<number>;
12
+ minZoom: import("@angular/core").InputSignal<number>;
13
+ maxZoom: import("@angular/core").InputSignal<number>;
14
+ disablePan: import("@angular/core").InputSignal<boolean>;
15
+ disableZoom: import("@angular/core").InputSignal<boolean>;
16
+ wrapperClasses: import("@angular/core").InputSignal<string>;
17
+ panX: import("@angular/core").ModelSignal<number>;
18
+ panY: import("@angular/core").ModelSignal<number>;
19
+ zoom: import("@angular/core").ModelSignal<number>;
20
+ zoomChange: import("@angular/core").OutputEmitterRef<number>;
21
+ positionChange: import("@angular/core").OutputEmitterRef<{
22
+ x: number;
23
+ y: number;
24
+ }>;
25
+ private nativeEl;
26
+ private zoomValue;
27
+ private handleZoomChange;
28
+ private createWrapper;
29
+ private handlePointerDown;
30
+ private handlePointerMove;
31
+ private handlePointerUp;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPanViewDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXPanViewDirective, "[axPanView]", ["axPanView"], { "zoomStep": { "alias": "zoomStep"; "required": false; "isSignal": true; }; "minZoom": { "alias": "minZoom"; "required": false; "isSignal": true; }; "maxZoom": { "alias": "maxZoom"; "required": false; "isSignal": true; }; "disablePan": { "alias": "disablePan"; "required": false; "isSignal": true; }; "disableZoom": { "alias": "disableZoom"; "required": false; "isSignal": true; }; "wrapperClasses": { "alias": "wrapperClasses"; "required": false; "isSignal": true; }; "panX": { "alias": "panX"; "required": false; "isSignal": true; }; "panY": { "alias": "panY"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; }, { "panX": "panXChange"; "panY": "panYChange"; "zoom": "zoomChange"; "zoomChange": "zoomChange"; "positionChange": "positionChange"; }, never, never, false, never>;
34
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./pan-view.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class AXPanViewModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPanViewModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPanViewModule, [typeof i1.AXPanViewDirective], [typeof i2.CommonModule], [typeof i1.AXPanViewDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXPanViewModule>;
8
+ }