@acorex/cdk 19.8.0-next.1 → 19.8.0-next.3
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 +9 -9
- package/fesm2022/acorex-cdk-virtual-scroll.mjs.map +1 -1
- package/package.json +1 -1
- package/virtual-scroll/lib/virtual-scroll.module.d.ts +1 -1
- package/virtual-scroll/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.directive.d.ts +3 -3
|
@@ -19,9 +19,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class AXVirtualScrollingContainerDirective {
|
|
23
23
|
constructor() {
|
|
24
|
-
this.height = input();
|
|
24
|
+
this.height = input.required();
|
|
25
25
|
/** @ignore */
|
|
26
26
|
this.observer = new IntersectionObserver(this.callBack.bind(this));
|
|
27
27
|
this.ScrollEnd = output();
|
|
@@ -79,13 +79,13 @@ class AXVirtualScrollingContianerDirective {
|
|
|
79
79
|
get __hostClass() {
|
|
80
80
|
return `${this.height()}`;
|
|
81
81
|
}
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
83
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.0.3", type:
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
83
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.0.3", type: AXVirtualScrollingContainerDirective, isStandalone: false, selector: "[axVirtualScrollingContainer]", inputs: { height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { ScrollEnd: "ScrollEnd" }, host: { properties: { "style.height": "this.__hostClass" } }, queries: [{ propertyName: "children", predicate: AXVirtualScrollingItemDirective, isSignal: true }], ngImport: i0 }); }
|
|
84
84
|
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type:
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollingContainerDirective, decorators: [{
|
|
86
86
|
type: Directive,
|
|
87
87
|
args: [{
|
|
88
|
-
selector: '[
|
|
88
|
+
selector: '[axVirtualScrollingContainer]',
|
|
89
89
|
standalone: false,
|
|
90
90
|
}]
|
|
91
91
|
}], propDecorators: { __hostClass: [{
|
|
@@ -93,11 +93,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
93
93
|
args: ['style.height']
|
|
94
94
|
}] } });
|
|
95
95
|
|
|
96
|
-
const COMPONENT = [
|
|
96
|
+
const COMPONENT = [AXVirtualScrollingContainerDirective, AXVirtualScrollingItemDirective];
|
|
97
97
|
const MODULES = [];
|
|
98
98
|
class AXVirtualScrollModule {
|
|
99
99
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
100
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, declarations: [
|
|
100
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, declarations: [AXVirtualScrollingContainerDirective, AXVirtualScrollingItemDirective], exports: [AXVirtualScrollingContainerDirective, AXVirtualScrollingItemDirective] }); }
|
|
101
101
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, imports: [MODULES] }); }
|
|
102
102
|
}
|
|
103
103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXVirtualScrollModule, decorators: [{
|
|
@@ -114,5 +114,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
114
114
|
* Generated bundle index. Do not edit.
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
-
export { AXVirtualScrollModule,
|
|
117
|
+
export { AXVirtualScrollModule, AXVirtualScrollingContainerDirective, AXVirtualScrollingItemDirective };
|
|
118
118
|
//# sourceMappingURL=acorex-cdk-virtual-scroll.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-cdk-virtual-scroll.mjs","sources":["../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-item/virtual-scrolling-item.directive.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.directive.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scroll.module.ts","../../../../libs/cdk/virtual-scroll/src/acorex-cdk-virtual-scroll.ts"],"sourcesContent":["import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[axVirtualScrollingItem]',\n standalone: false,\n})\nexport class AXVirtualScrollingItemDirective {\n private elementRef: ElementRef<HTMLElement> = inject(ElementRef);\n\n public get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n}\n","import {\n afterNextRender,\n computed,\n contentChildren,\n Directive,\n effect,\n ElementRef,\n HostBinding,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXVirtualScrollingItemDirective } from '../virtual-scrolling-item/virtual-scrolling-item.directive';\n\n@Directive({\n selector: '[
|
|
1
|
+
{"version":3,"file":"acorex-cdk-virtual-scroll.mjs","sources":["../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-item/virtual-scrolling-item.directive.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.directive.ts","../../../../libs/cdk/virtual-scroll/src/lib/virtual-scroll.module.ts","../../../../libs/cdk/virtual-scroll/src/acorex-cdk-virtual-scroll.ts"],"sourcesContent":["import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[axVirtualScrollingItem]',\n standalone: false,\n})\nexport class AXVirtualScrollingItemDirective {\n private elementRef: ElementRef<HTMLElement> = inject(ElementRef);\n\n public get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n}\n","import {\n afterNextRender,\n computed,\n contentChildren,\n Directive,\n effect,\n ElementRef,\n HostBinding,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { AXVirtualScrollingItemDirective } from '../virtual-scrolling-item/virtual-scrolling-item.directive';\n\n@Directive({\n selector: '[axVirtualScrollingContainer]',\n standalone: false,\n})\nexport class AXVirtualScrollingContainerDirective {\n height = input.required();\n\n /** @ignore */\n protected observer = new IntersectionObserver(this.callBack.bind(this));\n\n ScrollEnd = output();\n\n /** @ignore */\n loading = false;\n\n container = inject(ElementRef);\n\n /** @ignore */\n protected children = contentChildren(AXVirtualScrollingItemDirective);\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 #init = afterNextRender(() => {\n (this.container.nativeElement as HTMLElement).style.overflowY = 'auto';\n (this.container.nativeElement as HTMLElement).style.display = 'block';\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","import { NgModule } from '@angular/core';\nimport { AXVirtualScrollingContainerDirective } from './virtual-scrolling-contianer/virtual-scrolling-contianer.directive';\nimport { AXVirtualScrollingItemDirective } from './virtual-scrolling-item/virtual-scrolling-item.directive';\n\nconst COMPONENT = [AXVirtualScrollingContainerDirective, AXVirtualScrollingItemDirective];\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":";;;MAMa,+BAA+B,CAAA;AAJ5C,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,UAAU,GAA4B,MAAM,CAAC,UAAU,CAAC;AAKjE;AAHC,IAAA,IAAW,aAAa,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa;;8GAJ3B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA/B,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAJ3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,KAAK;AAClB,iBAAA;;;MCcY,oCAAoC,C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rolling-contianer/virtual-scrolling-contianer.d
|
|
|
3
3
|
import * as i2 from "./virtual-scrolling-item/virtual-scrolling-item.directive";
|
|
4
4
|
export declare class AXVirtualScrollModule {
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXVirtualScrollModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXVirtualScrollModule, [typeof i1.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXVirtualScrollModule, [typeof i1.AXVirtualScrollingContainerDirective, typeof i2.AXVirtualScrollingItemDirective], never, [typeof i1.AXVirtualScrollingContainerDirective, typeof i2.AXVirtualScrollingItemDirective]>;
|
|
7
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXVirtualScrollModule>;
|
|
8
8
|
}
|
package/virtual-scroll/lib/virtual-scrolling-contianer/virtual-scrolling-contianer.directive.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { AXVirtualScrollingItemDirective } from '../virtual-scrolling-item/virtual-scrolling-item.directive';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class AXVirtualScrollingContainerDirective {
|
|
5
5
|
#private;
|
|
6
6
|
height: import("@angular/core").InputSignal<unknown>;
|
|
7
7
|
/** @ignore */
|
|
@@ -21,6 +21,6 @@ export declare class AXVirtualScrollingContianerDirective {
|
|
|
21
21
|
/** @ignore */
|
|
22
22
|
protected callBack(entries: IntersectionObserverEntry[]): void;
|
|
23
23
|
get __hostClass(): string;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
25
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXVirtualScrollingContainerDirective, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXVirtualScrollingContainerDirective, "[axVirtualScrollingContainer]", never, { "height": { "alias": "height"; "required": true; "isSignal": true; }; }, { "ScrollEnd": "ScrollEnd"; }, ["children"], never, false, never>;
|
|
26
26
|
}
|