@acorex/cdk 20.2.0-next.0 → 20.2.0-next.10
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/carousel/index.d.ts +1 -0
- package/common/index.d.ts +144 -27
- package/drag-drop/index.d.ts +1 -0
- package/fesm2022/acorex-cdk-carousel.mjs +8 -2
- package/fesm2022/acorex-cdk-carousel.mjs.map +1 -1
- package/fesm2022/acorex-cdk-common.mjs +266 -116
- package/fesm2022/acorex-cdk-common.mjs.map +1 -1
- package/fesm2022/acorex-cdk-drag-drop.mjs +6 -3
- package/fesm2022/acorex-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/acorex-cdk-drawer.mjs +0 -2
- package/fesm2022/acorex-cdk-drawer.mjs.map +1 -1
- package/fesm2022/acorex-cdk-selection.mjs.map +1 -1
- package/package.json +1 -1
- package/selection/index.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, signal, Directive, NgZone, Renderer2, ChangeDetectorRef, input, output, contentChildren, DOCUMENT,
|
|
2
|
+
import { inject, ElementRef, signal, Directive, NgZone, Renderer2, ChangeDetectorRef, PLATFORM_ID, input, output, contentChildren, DOCUMENT, ViewContainerRef, contentChild, linkedSignal, computed, effect, RendererStyleFlags2, NgModule } from '@angular/core';
|
|
3
3
|
import { isPlatformBrowser } from '@angular/common';
|
|
4
4
|
import { clamp } from 'lodash-es';
|
|
5
5
|
import { NXComponent } from '@acorex/cdk/common';
|
|
@@ -35,6 +35,7 @@ class AXDropListDirective extends NXComponent {
|
|
|
35
35
|
this._zone = inject(NgZone);
|
|
36
36
|
this._renderer = inject(Renderer2);
|
|
37
37
|
this._cdr = inject(ChangeDetectorRef);
|
|
38
|
+
this._platformId = inject(PLATFORM_ID);
|
|
38
39
|
this._hostEl = inject(ElementRef);
|
|
39
40
|
// --- Public API: Inputs and Outputs ---
|
|
40
41
|
/** Whether sorting within this list is disabled. */
|
|
@@ -64,8 +65,10 @@ class AXDropListDirective extends NXComponent {
|
|
|
64
65
|
this._orientation = this.dropListOrientation;
|
|
65
66
|
}
|
|
66
67
|
ngOnInit() {
|
|
67
|
-
this.
|
|
68
|
-
|
|
68
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
69
|
+
this.element.dataset['axDropList'] = 'true';
|
|
70
|
+
this.element.classList.add('ax-drop-list-sorting-transition');
|
|
71
|
+
}
|
|
69
72
|
}
|
|
70
73
|
ngAfterContentInit() {
|
|
71
74
|
this._cdr.detectChanges();
|