@acorex/cdk 19.0.1 → 19.1.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.
- package/fesm2022/acorex-cdk-virtual-scroll.mjs +108 -0
- package/fesm2022/acorex-cdk-virtual-scroll.mjs.map +1 -0
- package/package.json +5 -1
- package/virtual-scroll/README.md +3 -0
- package/virtual-scroll/index.d.ts +3 -0
- package/virtual-scroll/lib/virtual-scroll.module.d.ts +8 -0
- package/virtual-scroll/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.component.d.ts +27 -0
- package/virtual-scroll/lib/virtual-scrolling-item/virtual-scrolling-item.component.d.ts +7 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, Component, ChangeDetectionStrategy, ViewEncapsulation, input, output, viewChild, contentChildren, signal, computed, effect, HostBinding, NgModule } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class AXVirtualScrollingItemComponent {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.elementRef = inject(ElementRef);
|
|
7
|
+
}
|
|
8
|
+
get nativeElement() {
|
|
9
|
+
return this.elementRef.nativeElement;
|
|
10
|
+
}
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXVirtualScrollingItemComponent, isStandalone: false, selector: "ax-virtual-scrolling-item", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingItemComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{ selector: 'ax-virtual-scrolling-item', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ng-content></ng-content>\n" }]
|
|
17
|
+
}] });
|
|
18
|
+
|
|
19
|
+
class AXVirtualScrollingContianerComponent {
|
|
20
|
+
constructor() {
|
|
21
|
+
this.height = input();
|
|
22
|
+
/** @ignore */
|
|
23
|
+
this.observer = new IntersectionObserver(this.callBack.bind(this));
|
|
24
|
+
this.ScrollEnd = output();
|
|
25
|
+
/** @ignore */
|
|
26
|
+
this.loading = false;
|
|
27
|
+
/** @ignore */
|
|
28
|
+
this.container = viewChild('c');
|
|
29
|
+
/** @ignore */
|
|
30
|
+
this.children = contentChildren(AXVirtualScrollingItemComponent);
|
|
31
|
+
/** @ignore */
|
|
32
|
+
this.firstCall = signal(false);
|
|
33
|
+
/** @ignore */
|
|
34
|
+
this.lastChildElem = computed(() => {
|
|
35
|
+
return this.children()[0]?.nativeElement;
|
|
36
|
+
});
|
|
37
|
+
/** @ignore */
|
|
38
|
+
this.firstChildElem = computed(() => {
|
|
39
|
+
return this.children()[this.children().length - 1]?.nativeElement;
|
|
40
|
+
});
|
|
41
|
+
/** @ignore */
|
|
42
|
+
this.#eff2 = effect(() => {
|
|
43
|
+
if (this.lastChildElem()) {
|
|
44
|
+
this.observer.observe(this.lastChildElem());
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
/** @ignore */
|
|
48
|
+
this.#eff3 = effect(() => {
|
|
49
|
+
if (this.firstChildElem() && !this.loading) {
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
this.container().nativeElement.scrollTo({
|
|
52
|
+
top: this.container().nativeElement.scrollHeight,
|
|
53
|
+
behavior: 'instant',
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/** @ignore */
|
|
60
|
+
#eff2;
|
|
61
|
+
/** @ignore */
|
|
62
|
+
#eff3;
|
|
63
|
+
/** @ignore */
|
|
64
|
+
callBack(entries) {
|
|
65
|
+
if (entries[0].isIntersecting && this.firstCall()) {
|
|
66
|
+
this.ScrollEnd.emit();
|
|
67
|
+
this.loading = true;
|
|
68
|
+
}
|
|
69
|
+
this.loading = false;
|
|
70
|
+
this.firstCall.set(true);
|
|
71
|
+
}
|
|
72
|
+
get __hostClass() {
|
|
73
|
+
return `${this.height()}`;
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingContianerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXVirtualScrollingContianerComponent, isStandalone: false, selector: "ax-virtual-scrolling-contianer", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ScrollEnd: "ScrollEnd" }, host: { properties: { "style.height": "this.__hostClass" } }, queries: [{ propertyName: "children", predicate: AXVirtualScrollingItemComponent, isSignal: true }], viewQueries: [{ propertyName: "container", first: true, predicate: ["c"], descendants: true, isSignal: true }], ngImport: i0, template: "<div #c class=\"ax-scroll-container\">\n <ng-content></ng-content>\n</div>\n", styles: ["ax-virtual-scrolling-contianer{display:block}ax-virtual-scrolling-contianer .ax-scroll-container{height:100%;overflow-y:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingContianerComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'ax-virtual-scrolling-contianer', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<div #c class=\"ax-scroll-container\">\n <ng-content></ng-content>\n</div>\n", styles: ["ax-virtual-scrolling-contianer{display:block}ax-virtual-scrolling-contianer .ax-scroll-container{height:100%;overflow-y:auto}\n"] }]
|
|
81
|
+
}], propDecorators: { __hostClass: [{
|
|
82
|
+
type: HostBinding,
|
|
83
|
+
args: ['style.height']
|
|
84
|
+
}] } });
|
|
85
|
+
|
|
86
|
+
const COMPONENT = [AXVirtualScrollingContianerComponent, AXVirtualScrollingItemComponent];
|
|
87
|
+
const MODULES = [];
|
|
88
|
+
class AXVirtualScrollModule {
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
90
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, declarations: [AXVirtualScrollingContianerComponent, AXVirtualScrollingItemComponent], exports: [AXVirtualScrollingContianerComponent, AXVirtualScrollingItemComponent] }); }
|
|
91
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, imports: [MODULES] }); }
|
|
92
|
+
}
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, decorators: [{
|
|
94
|
+
type: NgModule,
|
|
95
|
+
args: [{
|
|
96
|
+
declarations: [...COMPONENT],
|
|
97
|
+
imports: [...MODULES],
|
|
98
|
+
exports: [...COMPONENT],
|
|
99
|
+
providers: [],
|
|
100
|
+
}]
|
|
101
|
+
}] });
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Generated bundle index. Do not edit.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
export { AXVirtualScrollModule, AXVirtualScrollingContianerComponent, AXVirtualScrollingItemComponent };
|
|
108
|
+
//# sourceMappingURL=acorex-cdk-virtual-scroll.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-cdk-virtual-scroll.mjs","sources":["../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-item/virtual-scrolling-item.component.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-item/virtual-scrolling-item.component.html","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.component.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.component.html","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scroll.module.ts","../../../../libs/cdk/virtual-scroll/src/acorex-cdk-virtual-scroll.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, inject, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ax-virtual-scrolling-item',\n templateUrl: './virtual-scrolling-item.component.html',\n styleUrls: ['./virtual-scrolling-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXVirtualScrollingItemComponent {\n private elementRef: ElementRef<HTMLElement> = inject(ElementRef);\n\n public get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n}\n","<ng-content></ng-content>\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n effect,\n ElementRef,\n HostBinding,\n input,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXVirtualScrollingItemComponent } from '../virtual-scrolling-item/virtual-scrolling-item.component';\n\n@Component({\n selector: 'ax-virtual-scrolling-contianer',\n templateUrl: './virtual-scrolling-contianer.component.html',\n styleUrls: ['./virtual-scrolling-contianer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXVirtualScrollingContianerComponent {\n height = input();\n\n /** @ignore */\n protected observer = new IntersectionObserver(this.callBack.bind(this));\n\n ScrollEnd = output();\n\n /** @ignore */\n loading = false;\n\n /** @ignore */\n protected container = viewChild<ElementRef<HTMLDivElement>>('c');\n\n /** @ignore */\n protected children = contentChildren(AXVirtualScrollingItemComponent);\n\n /** @ignore */\n protected firstCall = signal(false);\n\n /** @ignore */\n protected lastChildElem = computed<Element | null>(() => {\n return this.children()[0]?.nativeElement;\n });\n\n /** @ignore */\n protected firstChildElem = computed<Element | null>(() => {\n return this.children()[this.children().length - 1]?.nativeElement;\n });\n\n /** @ignore */\n #eff2 = effect(() => {\n if (this.lastChildElem()) {\n this.observer.observe(this.lastChildElem());\n }\n });\n\n /** @ignore */\n #eff3 = effect(() => {\n if (this.firstChildElem() && !this.loading) {\n setTimeout(() => {\n this.container().nativeElement.scrollTo({\n top: this.container().nativeElement.scrollHeight,\n behavior: 'instant',\n });\n });\n }\n });\n\n /** @ignore */\n protected callBack(entries: IntersectionObserverEntry[]) {\n if (entries[0].isIntersecting && this.firstCall()) {\n this.ScrollEnd.emit();\n this.loading = true;\n }\n this.loading = false;\n this.firstCall.set(true);\n }\n\n @HostBinding('style.height')\n get __hostClass(): string {\n return `${this.height()}`;\n }\n}\n","<div #c class=\"ax-scroll-container\">\n <ng-content></ng-content>\n</div>\n","import { NgModule } from '@angular/core';\nimport { AXVirtualScrollingContianerComponent } from './virtual-scrolling-contianer/virtual-scrolling-contianer.component';\nimport { AXVirtualScrollingItemComponent } from './virtual-scrolling-item/virtual-scrolling-item.component';\n\nconst COMPONENT = [AXVirtualScrollingContianerComponent, AXVirtualScrollingItemComponent];\n\nconst MODULES = [];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXVirtualScrollModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAUa,+BAA+B,CAAA;AAR5C,IAAA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/cdk",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.1.0-next.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=19.0.0",
|
|
6
6
|
"@angular/core": ">=19.0.0",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"types": "./qrcode/index.d.ts",
|
|
27
27
|
"default": "./fesm2022/acorex-cdk-qrcode.mjs"
|
|
28
28
|
},
|
|
29
|
+
"./virtual-scroll": {
|
|
30
|
+
"types": "./virtual-scroll/index.d.ts",
|
|
31
|
+
"default": "./fesm2022/acorex-cdk-virtual-scroll.mjs"
|
|
32
|
+
},
|
|
29
33
|
"./wysiwyg": {
|
|
30
34
|
"types": "./wysiwyg/index.d.ts",
|
|
31
35
|
"default": "./fesm2022/acorex-cdk-wysiwyg.mjs"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./virtual-scrolling-contianer/virtual-scrolling-contianer.component";
|
|
3
|
+
import * as i2 from "./virtual-scrolling-item/virtual-scrolling-item.component";
|
|
4
|
+
export declare class AXVirtualScrollModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVirtualScrollModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXVirtualScrollModule, [typeof i1.AXVirtualScrollingContianerComponent, typeof i2.AXVirtualScrollingItemComponent], never, [typeof i1.AXVirtualScrollingContianerComponent, typeof i2.AXVirtualScrollingItemComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXVirtualScrollModule>;
|
|
8
|
+
}
|
package/virtual-scroll/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.component.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AXVirtualScrollingItemComponent } from '../virtual-scrolling-item/virtual-scrolling-item.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AXVirtualScrollingContianerComponent {
|
|
5
|
+
#private;
|
|
6
|
+
height: import("@angular/core").InputSignal<unknown>;
|
|
7
|
+
/** @ignore */
|
|
8
|
+
protected observer: IntersectionObserver;
|
|
9
|
+
ScrollEnd: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
/** @ignore */
|
|
11
|
+
loading: boolean;
|
|
12
|
+
/** @ignore */
|
|
13
|
+
protected container: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
14
|
+
/** @ignore */
|
|
15
|
+
protected children: import("@angular/core").Signal<readonly AXVirtualScrollingItemComponent[]>;
|
|
16
|
+
/** @ignore */
|
|
17
|
+
protected firstCall: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
/** @ignore */
|
|
19
|
+
protected lastChildElem: import("@angular/core").Signal<Element>;
|
|
20
|
+
/** @ignore */
|
|
21
|
+
protected firstChildElem: import("@angular/core").Signal<Element>;
|
|
22
|
+
/** @ignore */
|
|
23
|
+
protected callBack(entries: IntersectionObserverEntry[]): void;
|
|
24
|
+
get __hostClass(): string;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVirtualScrollingContianerComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXVirtualScrollingContianerComponent, "ax-virtual-scrolling-contianer", never, { "height": { "alias": "height"; "required": false; "isSignal": true; }; }, { "ScrollEnd": "ScrollEnd"; }, ["children"], ["*"], false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class AXVirtualScrollingItemComponent {
|
|
3
|
+
private elementRef;
|
|
4
|
+
get nativeElement(): HTMLElement;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVirtualScrollingItemComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXVirtualScrollingItemComponent, "ax-virtual-scrolling-item", never, {}, {}, never, ["*"], false, never>;
|
|
7
|
+
}
|