@acorex/cdk 22.1.0-next.30 → 22.1.0-next.32

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.
Files changed (57) hide show
  1. package/fesm2022/acorex-cdk-accordion.mjs +19 -19
  2. package/fesm2022/acorex-cdk-carousel.mjs +25 -7
  3. package/fesm2022/acorex-cdk-carousel.mjs.map +1 -1
  4. package/fesm2022/acorex-cdk-clipboard.mjs +6 -6
  5. package/fesm2022/acorex-cdk-common.mjs +169 -93
  6. package/fesm2022/acorex-cdk-common.mjs.map +1 -1
  7. package/fesm2022/acorex-cdk-dom.mjs +3 -3
  8. package/fesm2022/acorex-cdk-drag-drop.mjs +210 -68
  9. package/fesm2022/acorex-cdk-drag-drop.mjs.map +1 -1
  10. package/fesm2022/acorex-cdk-drawer.mjs +10 -10
  11. package/fesm2022/acorex-cdk-focus-trap.mjs +3 -3
  12. package/fesm2022/acorex-cdk-full-screen.mjs +26 -147
  13. package/fesm2022/acorex-cdk-full-screen.mjs.map +1 -1
  14. package/fesm2022/acorex-cdk-gesture.mjs +202 -0
  15. package/fesm2022/acorex-cdk-gesture.mjs.map +1 -0
  16. package/fesm2022/acorex-cdk-highlight.mjs +108 -0
  17. package/fesm2022/acorex-cdk-highlight.mjs.map +1 -0
  18. package/fesm2022/acorex-cdk-horizontal-scroll.mjs +150 -125
  19. package/fesm2022/acorex-cdk-horizontal-scroll.mjs.map +1 -1
  20. package/fesm2022/acorex-cdk-input-mask.mjs +3 -3
  21. package/fesm2022/acorex-cdk-list-navigation.mjs +10 -10
  22. package/fesm2022/acorex-cdk-outline.mjs +277 -74
  23. package/fesm2022/acorex-cdk-outline.mjs.map +1 -1
  24. package/fesm2022/acorex-cdk-overlay.mjs +192 -18
  25. package/fesm2022/acorex-cdk-overlay.mjs.map +1 -1
  26. package/fesm2022/acorex-cdk-pan-view.mjs +3 -3
  27. package/fesm2022/acorex-cdk-resizable.mjs +3 -3
  28. package/fesm2022/acorex-cdk-selection.mjs +10 -10
  29. package/fesm2022/acorex-cdk-shimmer.mjs +220 -0
  30. package/fesm2022/acorex-cdk-shimmer.mjs.map +1 -0
  31. package/fesm2022/acorex-cdk-sliding-item.mjs +72 -62
  32. package/fesm2022/acorex-cdk-sliding-item.mjs.map +1 -1
  33. package/fesm2022/acorex-cdk-sticky.mjs +3 -3
  34. package/fesm2022/acorex-cdk-uploader.mjs +9 -9
  35. package/fesm2022/acorex-cdk-virtual-scroll.mjs +10 -10
  36. package/fesm2022/acorex-cdk-z-index.mjs +3 -3
  37. package/gesture/README.md +3 -0
  38. package/horizontal-scroll/README.md +1 -1
  39. package/package.json +16 -7
  40. package/shimmer/README.md +11 -0
  41. package/sliding-item/README.md +4 -2
  42. package/types/acorex-cdk-carousel.d.ts +2 -0
  43. package/types/acorex-cdk-clipboard.d.ts +1 -1
  44. package/types/acorex-cdk-common.d.ts +36 -19
  45. package/types/acorex-cdk-drag-drop.d.ts +31 -4
  46. package/types/acorex-cdk-full-screen.d.ts +18 -43
  47. package/types/acorex-cdk-gesture.d.ts +132 -0
  48. package/types/acorex-cdk-highlight.d.ts +54 -0
  49. package/types/acorex-cdk-horizontal-scroll.d.ts +39 -28
  50. package/types/acorex-cdk-outline.d.ts +20 -0
  51. package/types/acorex-cdk-overlay.d.ts +47 -4
  52. package/types/acorex-cdk-shimmer.d.ts +68 -0
  53. package/types/acorex-cdk-sliding-item.d.ts +22 -4
  54. package/types/acorex-cdk-uploader.d.ts +1 -1
  55. package/fesm2022/acorex-cdk-double-click.mjs +0 -178
  56. package/fesm2022/acorex-cdk-double-click.mjs.map +0 -1
  57. package/types/acorex-cdk-double-click.d.ts +0 -66
@@ -1,188 +1,224 @@
1
1
  import { isPlatformBrowser } from '@angular/common';
2
+ import * as i1 from '@acorex/cdk/gesture';
3
+ import { AXGestureDirective } from '@acorex/cdk/gesture';
4
+ import { AXHtmlUtil } from '@acorex/core/utils';
2
5
  import * as i0 from '@angular/core';
3
- import { inject, ElementRef, PLATFORM_ID, NgZone, input, afterNextRender, Directive } from '@angular/core';
6
+ import { inject, ElementRef, PLATFORM_ID, NgZone, DestroyRef, input, linkedSignal, effect, afterNextRender, Directive } from '@angular/core';
4
7
 
5
8
  /**
6
- * Converts vertical mouse-wheel scrolling and pointer drag/swipe into horizontal scrolling on the host element.
7
- * Applies only when the host can scroll horizontally. Pointer events cover mouse, touch, and pen.
9
+ * Converts vertical mouse-wheel scrolling and pan gestures into scrolling on the host element.
10
+ * Supports horizontal and vertical orientations. Pan is provided by the hosted AXGestureDirective.
8
11
  *
9
12
  * Usage:
10
13
  * <div axHorizontalScroll [speed]="150" class="overflow-x-auto">
11
14
  * ...
12
15
  * </div>
16
+ *
17
+ * Do not put `axGesture` on the same element; this directive already hosts it.
13
18
  */
14
19
  class AXHorizontalScrollDirective {
20
+ touchAction() {
21
+ if (this.disabled())
22
+ return null;
23
+ return this.isHorizontal() ? 'pan-y' : 'pan-x';
24
+ }
15
25
  constructor() {
16
26
  this.elementRef = inject((ElementRef));
17
27
  this.platformId = inject(PLATFORM_ID);
18
28
  this.zone = inject(NgZone);
29
+ this.gesture = inject(AXGestureDirective);
30
+ this.destroyRef = inject(DestroyRef);
19
31
  /**
20
- * Disables wheel-to-horizontal conversion and pointer drag when true.
32
+ * Disables wheel-to-horizontal conversion and pan scrolling when true.
21
33
  */
22
34
  this.disabled = input(false, /* @ts-ignore */
23
35
  ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
24
36
  /**
25
- * Horizontal scroll animation duration in milliseconds.
37
+ * Scroll axis. Horizontal converts wheel + pan; vertical uses pan only.
38
+ * @defaultValue 'horizontal'
39
+ */
40
+ this.orientation = input('horizontal', /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
42
+ /** Internal orientation state; can be overridden programmatically by host components. */
43
+ this.scrollOrientation = linkedSignal(() => this.orientation(), /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "scrollOrientation" }] : /* istanbul ignore next */ []));
45
+ /**
46
+ * Scroll animation duration in milliseconds.
26
47
  * Lower values scroll faster; `0` applies the scroll instantly.
27
48
  */
28
49
  this.speed = input(200, /* @ts-ignore */
29
50
  ...(ngDevMode ? [{ debugName: "speed" }] : /* istanbul ignore next */ []));
30
51
  this.animationFrameId = null;
31
- this.targetScrollLeft = null;
52
+ this.targetScrollPosition = null;
32
53
  this.scrollPosition = 0;
33
54
  this.lastFrameTime = 0;
34
- this.pointerId = null;
35
- this.pointerStartX = 0;
36
- this.pointerStartY = 0;
37
- this.pointerStartScrollLeft = 0;
38
- this.pointerAxis = 'undecided';
39
- this.lastPointerX = 0;
40
- this.lastPointerTime = 0;
41
- this.pointerVelocityX = 0;
55
+ this.isPanning = false;
56
+ this.ignorePan = false;
57
+ this.panStartScrollPosition = 0;
42
58
  this.suppressClickListener = null;
43
59
  this.suppressClickTimer = null;
44
- this.axisLockThreshold = 6;
60
+ this._isRtl = false;
45
61
  this.interactiveSelector = 'input, textarea, select, option, [contenteditable]:not([contenteditable="false"])';
46
62
  this.wheelListener = (event) => this.handleWheel(event);
47
- this.pointerDownListener = (event) => this.handlePointerDown(event);
48
- this.pointerMoveListener = (event) => this.handlePointerMove(event);
49
- this.pointerUpListener = (event) => this.handlePointerUp(event);
63
+ this.#orientationEffect = effect(() => {
64
+ this.gesture.gestureDirection.set(this.scrollOrientation());
65
+ }, /* @ts-ignore */
66
+ ...(ngDevMode ? [{ debugName: "#orientationEffect" }] : /* istanbul ignore next */ []));
50
67
  this.#init = afterNextRender(() => {
51
68
  if (!isPlatformBrowser(this.platformId))
52
69
  return;
70
+ this._isRtl = AXHtmlUtil.isRtl(this.nativeElement);
53
71
  this.zone.runOutsideAngular(() => {
54
72
  this.nativeElement.addEventListener('wheel', this.wheelListener, { passive: false });
55
- this.nativeElement.addEventListener('pointerdown', this.pointerDownListener);
56
- this.nativeElement.addEventListener('pointermove', this.pointerMoveListener, { passive: false });
57
- this.nativeElement.addEventListener('pointerup', this.pointerUpListener);
58
- this.nativeElement.addEventListener('pointercancel', this.pointerUpListener);
59
- this.nativeElement.addEventListener('lostpointercapture', this.pointerUpListener);
60
73
  });
61
74
  });
75
+ const subscriptions = [
76
+ this.gesture.panstart.subscribe((event) => this.handlePanStart(event)),
77
+ this.gesture.panmove.subscribe((event) => this.handlePanMove(event)),
78
+ this.gesture.panend.subscribe((event) => this.handlePanEnd(event)),
79
+ ];
80
+ this.destroyRef.onDestroy(() => {
81
+ for (const subscription of subscriptions) {
82
+ subscription.unsubscribe();
83
+ }
84
+ });
62
85
  }
86
+ #orientationEffect;
63
87
  #init;
64
88
  ngOnDestroy() {
65
89
  if (!isPlatformBrowser(this.platformId))
66
90
  return;
67
91
  this.stopAnimation();
68
- this.releasePointer();
92
+ this.clearPanStyles();
69
93
  this.clearClickSuppression();
70
94
  this.nativeElement.removeEventListener('wheel', this.wheelListener);
71
- this.nativeElement.removeEventListener('pointerdown', this.pointerDownListener);
72
- this.nativeElement.removeEventListener('pointermove', this.pointerMoveListener);
73
- this.nativeElement.removeEventListener('pointerup', this.pointerUpListener);
74
- this.nativeElement.removeEventListener('pointercancel', this.pointerUpListener);
75
- this.nativeElement.removeEventListener('lostpointercapture', this.pointerUpListener);
76
95
  }
77
96
  get nativeElement() {
78
97
  return this.elementRef.nativeElement;
79
98
  }
99
+ isHorizontal() {
100
+ return this.scrollOrientation() === 'horizontal';
101
+ }
102
+ get rtlSign() {
103
+ return this.isHorizontal() && this._isRtl ? -1 : 1;
104
+ }
105
+ refreshRtlState() {
106
+ if (isPlatformBrowser(this.platformId)) {
107
+ this._isRtl = AXHtmlUtil.isRtl(this.nativeElement);
108
+ }
109
+ }
110
+ getCurrentScrollPosition() {
111
+ if (this.isHorizontal()) {
112
+ return this.nativeElement.scrollLeft * this.rtlSign;
113
+ }
114
+ return this.nativeElement.scrollTop;
115
+ }
116
+ getMaxScrollPosition() {
117
+ const element = this.nativeElement;
118
+ return this.isHorizontal()
119
+ ? element.scrollWidth - element.clientWidth
120
+ : element.scrollHeight - element.clientHeight;
121
+ }
122
+ canScroll() {
123
+ const element = this.nativeElement;
124
+ return this.isHorizontal()
125
+ ? element.scrollWidth > element.clientWidth
126
+ : element.scrollHeight > element.clientHeight;
127
+ }
128
+ applyScrollPosition(position) {
129
+ this.scrollPosition = position;
130
+ if (this.isHorizontal()) {
131
+ this.nativeElement.scrollLeft = position * this.rtlSign;
132
+ }
133
+ else {
134
+ this.nativeElement.scrollTop = position;
135
+ }
136
+ }
137
+ isDragInProgress() {
138
+ const host = this.nativeElement;
139
+ if (host.classList.contains('ax-drop-list-sorting-active')) {
140
+ return true;
141
+ }
142
+ return host.querySelector('.ax-dragging') !== null;
143
+ }
80
144
  handleWheel(event) {
81
- if (this.disabled() || this.pointerId !== null || !this.canScrollHorizontally())
145
+ if (this.disabled() || this.isPanning || !this.isHorizontal() || !this.canScroll())
82
146
  return;
83
147
  if (event.shiftKey || Math.abs(event.deltaX) > Math.abs(event.deltaY))
84
148
  return;
85
149
  if (event.deltaY === 0)
86
150
  return;
87
- const maxScrollLeft = this.getMaxScrollLeft();
151
+ this.refreshRtlState();
152
+ const maxScroll = this.getMaxScrollPosition();
153
+ const step = event.deltaY * this.rtlSign;
88
154
  this.syncScrollState();
89
- const currentPosition = this.targetScrollLeft ?? this.scrollPosition;
90
- const atStart = currentPosition <= 0 && event.deltaY < 0;
91
- const atEnd = currentPosition >= maxScrollLeft && event.deltaY > 0;
155
+ const currentPosition = this.targetScrollPosition ?? this.scrollPosition;
156
+ const atStart = currentPosition <= 0 && step < 0;
157
+ const atEnd = currentPosition >= maxScroll && step > 0;
92
158
  if (atStart || atEnd)
93
159
  return;
94
160
  event.preventDefault();
95
- const nextTarget = Math.max(0, Math.min(maxScrollLeft, currentPosition + event.deltaY));
96
- this.targetScrollLeft = nextTarget;
161
+ const nextTarget = Math.max(0, Math.min(maxScroll, currentPosition + step));
162
+ this.targetScrollPosition = nextTarget;
97
163
  if (this.speed() <= 0) {
98
164
  this.applyScrollPosition(nextTarget);
99
- this.targetScrollLeft = null;
165
+ this.targetScrollPosition = null;
100
166
  return;
101
167
  }
102
168
  this.startAnimation();
103
169
  }
104
- handlePointerDown(event) {
105
- if (this.disabled() || !event.isPrimary || !this.canScrollHorizontally())
170
+ handlePanStart(event) {
171
+ if (this.disabled() || !this.canScroll() || this.isDragInProgress()) {
172
+ this.ignorePan = true;
106
173
  return;
107
- if (event.pointerType === 'mouse' && event.button !== 0)
108
- return;
109
- if (event.target instanceof Element && event.target.closest(this.interactiveSelector))
174
+ }
175
+ if (event.target instanceof Element && event.target.closest(this.interactiveSelector)) {
176
+ this.ignorePan = true;
110
177
  return;
178
+ }
179
+ this.refreshRtlState();
180
+ this.ignorePan = false;
181
+ this.isPanning = true;
111
182
  this.stopAnimation();
112
- this.targetScrollLeft = null;
113
- this.scrollPosition = this.nativeElement.scrollLeft;
114
- this.pointerId = event.pointerId;
115
- this.pointerStartX = event.clientX;
116
- this.pointerStartY = event.clientY;
117
- this.pointerStartScrollLeft = this.scrollPosition;
118
- this.pointerAxis = 'undecided';
119
- this.lastPointerX = event.clientX;
120
- this.lastPointerTime = performance.now();
121
- this.pointerVelocityX = 0;
122
- }
123
- handlePointerMove(event) {
124
- if (this.pointerId !== event.pointerId || this.disabled())
125
- return;
126
- const deltaX = event.clientX - this.pointerStartX;
127
- const deltaY = event.clientY - this.pointerStartY;
128
- if (this.pointerAxis === 'undecided') {
129
- if (Math.hypot(deltaX, deltaY) < this.axisLockThreshold)
130
- return;
131
- this.pointerAxis = Math.abs(deltaX) > Math.abs(deltaY) ? 'horizontal' : 'vertical';
132
- if (this.pointerAxis === 'vertical') {
133
- this.releasePointer();
134
- return;
135
- }
136
- this.nativeElement.setPointerCapture(event.pointerId);
137
- this.nativeElement.style.userSelect = 'none';
138
- if (event.pointerType === 'mouse') {
139
- this.nativeElement.style.cursor = 'grabbing';
140
- }
183
+ this.targetScrollPosition = null;
184
+ this.scrollPosition = this.getCurrentScrollPosition();
185
+ this.panStartScrollPosition = this.scrollPosition;
186
+ this.nativeElement.style.userSelect = 'none';
187
+ if (event.pointerType === 'mouse') {
188
+ this.nativeElement.style.cursor = 'grabbing';
141
189
  }
142
- if (this.pointerAxis !== 'horizontal')
190
+ }
191
+ handlePanMove(event) {
192
+ if (this.ignorePan || this.disabled() || !this.isPanning || this.isDragInProgress())
143
193
  return;
144
194
  event.preventDefault();
145
- const now = performance.now();
146
- const elapsed = now - this.lastPointerTime;
147
- if (elapsed > 0) {
148
- this.pointerVelocityX = (event.clientX - this.lastPointerX) / elapsed;
149
- }
150
- this.lastPointerX = event.clientX;
151
- this.lastPointerTime = now;
152
- const next = Math.max(0, Math.min(this.getMaxScrollLeft(), this.pointerStartScrollLeft - deltaX));
195
+ const delta = this.isHorizontal() ? event.deltaX : event.deltaY;
196
+ const next = Math.max(0, Math.min(this.getMaxScrollPosition(), this.panStartScrollPosition - delta * this.rtlSign));
153
197
  this.applyScrollPosition(next);
154
198
  }
155
- handlePointerUp(event) {
156
- if (this.pointerId !== event.pointerId)
199
+ handlePanEnd(event) {
200
+ if (this.ignorePan) {
201
+ this.ignorePan = false;
202
+ this.isPanning = false;
157
203
  return;
158
- const wasHorizontalDrag = this.pointerAxis === 'horizontal';
159
- const velocityX = this.pointerVelocityX;
160
- const lastMoveAge = performance.now() - this.lastPointerTime;
161
- this.releasePointer();
162
- if (!wasHorizontalDrag)
204
+ }
205
+ this.isPanning = false;
206
+ this.clearPanStyles();
207
+ if (this.disabled())
163
208
  return;
164
209
  this.suppressClick();
165
- if (this.speed() <= 0 || lastMoveAge > 80)
210
+ if (this.speed() <= 0)
166
211
  return;
167
- const distance = -velocityX * this.speed();
212
+ const velocity = this.isHorizontal() ? event.velocityX : event.velocityY;
213
+ const distance = -velocity * this.speed() * this.rtlSign;
168
214
  if (Math.abs(distance) < 8)
169
215
  return;
170
- this.targetScrollLeft = Math.max(0, Math.min(this.getMaxScrollLeft(), this.scrollPosition + distance));
216
+ this.targetScrollPosition = Math.max(0, Math.min(this.getMaxScrollPosition(), this.scrollPosition + distance));
171
217
  this.startAnimation();
172
218
  }
173
- releasePointer() {
174
- if (this.pointerId === null)
175
- return;
176
- const pointerId = this.pointerId;
177
- this.pointerId = null;
178
- this.pointerAxis = 'undecided';
179
- this.pointerVelocityX = 0;
180
- const element = this.nativeElement;
181
- if (element.hasPointerCapture(pointerId)) {
182
- element.releasePointerCapture(pointerId);
183
- }
184
- element.style.userSelect = '';
185
- element.style.cursor = '';
219
+ clearPanStyles() {
220
+ this.nativeElement.style.userSelect = '';
221
+ this.nativeElement.style.cursor = '';
186
222
  }
187
223
  suppressClick() {
188
224
  this.clearClickSuppression();
@@ -206,17 +242,17 @@ class AXHorizontalScrollDirective {
206
242
  this.suppressClickListener = null;
207
243
  }
208
244
  syncScrollState() {
209
- if (this.targetScrollLeft !== null)
245
+ if (this.targetScrollPosition !== null)
210
246
  return;
211
- this.scrollPosition = this.nativeElement.scrollLeft;
212
- this.targetScrollLeft = this.scrollPosition;
247
+ this.scrollPosition = this.getCurrentScrollPosition();
248
+ this.targetScrollPosition = this.scrollPosition;
213
249
  }
214
250
  startAnimation() {
215
251
  if (this.animationFrameId !== null)
216
252
  return;
217
253
  this.lastFrameTime = performance.now();
218
254
  const step = (currentTime) => {
219
- const target = this.targetScrollLeft;
255
+ const target = this.targetScrollPosition;
220
256
  if (target === null) {
221
257
  this.stopAnimation();
222
258
  return;
@@ -228,7 +264,7 @@ class AXHorizontalScrollDirective {
228
264
  this.applyScrollPosition(this.scrollPosition);
229
265
  if (Math.abs(target - this.scrollPosition) < 0.5) {
230
266
  this.applyScrollPosition(target);
231
- this.targetScrollLeft = null;
267
+ this.targetScrollPosition = null;
232
268
  this.stopAnimation();
233
269
  return;
234
270
  }
@@ -236,36 +272,25 @@ class AXHorizontalScrollDirective {
236
272
  };
237
273
  this.animationFrameId = requestAnimationFrame(step);
238
274
  }
239
- applyScrollPosition(position) {
240
- this.scrollPosition = position;
241
- this.nativeElement.scrollLeft = position;
242
- }
243
275
  stopAnimation() {
244
276
  if (this.animationFrameId === null)
245
277
  return;
246
278
  cancelAnimationFrame(this.animationFrameId);
247
279
  this.animationFrameId = null;
248
280
  }
249
- canScrollHorizontally() {
250
- const element = this.nativeElement;
251
- return element.scrollWidth > element.clientWidth;
252
- }
253
- getMaxScrollLeft() {
254
- const element = this.nativeElement;
255
- return element.scrollWidth - element.clientWidth;
256
- }
257
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXHorizontalScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
258
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: AXHorizontalScrollDirective, isStandalone: true, selector: "[axHorizontalScroll]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, speed: { classPropertyName: "speed", publicName: "speed", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.touch-action": "disabled() ? null : \"pan-y\"" } }, ngImport: i0 }); }
281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXHorizontalScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
282
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: AXHorizontalScrollDirective, isStandalone: true, selector: "[axHorizontalScroll]", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, speed: { classPropertyName: "speed", publicName: "speed", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.touch-action": "touchAction()" } }, hostDirectives: [{ directive: i1.AXGestureDirective }], ngImport: i0 }); }
259
283
  }
260
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXHorizontalScrollDirective, decorators: [{
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXHorizontalScrollDirective, decorators: [{
261
285
  type: Directive,
262
286
  args: [{
263
287
  selector: '[axHorizontalScroll]',
288
+ hostDirectives: [AXGestureDirective],
264
289
  host: {
265
- '[style.touch-action]': 'disabled() ? null : "pan-y"',
290
+ '[style.touch-action]': 'touchAction()',
266
291
  },
267
292
  }]
268
- }], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], speed: [{ type: i0.Input, args: [{ isSignal: true, alias: "speed", required: false }] }] } });
293
+ }], ctorParameters: () => [], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], speed: [{ type: i0.Input, args: [{ isSignal: true, alias: "speed", required: false }] }] } });
269
294
 
270
295
  /**
271
296
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-cdk-horizontal-scroll.mjs","sources":["../../../../packages/cdk/horizontal-scroll/src/lib/horizontal-scroll.directive.ts","../../../../packages/cdk/horizontal-scroll/src/acorex-cdk-horizontal-scroll.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { afterNextRender, Directive, ElementRef, inject, input, NgZone, OnDestroy, PLATFORM_ID } from '@angular/core';\n\n/**\n * Converts vertical mouse-wheel scrolling and pointer drag/swipe into horizontal scrolling on the host element.\n * Applies only when the host can scroll horizontally. Pointer events cover mouse, touch, and pen.\n *\n * Usage:\n * <div axHorizontalScroll [speed]=\"150\" class=\"overflow-x-auto\">\n * ...\n * </div>\n */\n@Directive({\n selector: '[axHorizontalScroll]',\n host: {\n '[style.touch-action]': 'disabled() ? null : \"pan-y\"',\n },\n})\nexport class AXHorizontalScrollDirective implements OnDestroy {\n private elementRef = inject(ElementRef<HTMLElement>);\n private platformId = inject(PLATFORM_ID);\n private zone = inject(NgZone);\n\n /**\n * Disables wheel-to-horizontal conversion and pointer drag when true.\n */\n disabled = input(false);\n\n /**\n * Horizontal scroll animation duration in milliseconds.\n * Lower values scroll faster; `0` applies the scroll instantly.\n */\n speed = input(200);\n\n private animationFrameId: number | null = null;\n private targetScrollLeft: number | null = null;\n private scrollPosition = 0;\n private lastFrameTime = 0;\n\n private pointerId: number | null = null;\n private pointerStartX = 0;\n private pointerStartY = 0;\n private pointerStartScrollLeft = 0;\n private pointerAxis: 'undecided' | 'horizontal' | 'vertical' = 'undecided';\n private lastPointerX = 0;\n private lastPointerTime = 0;\n private pointerVelocityX = 0;\n private suppressClickListener: ((event: Event) => void) | null = null;\n private suppressClickTimer: ReturnType<typeof setTimeout> | null = null;\n\n private readonly axisLockThreshold = 6;\n private readonly interactiveSelector =\n 'input, textarea, select, option, [contenteditable]:not([contenteditable=\"false\"])';\n\n private readonly wheelListener = (event: WheelEvent) => this.handleWheel(event);\n private readonly pointerDownListener = (event: PointerEvent) => this.handlePointerDown(event);\n private readonly pointerMoveListener = (event: PointerEvent) => this.handlePointerMove(event);\n private readonly pointerUpListener = (event: PointerEvent) => this.handlePointerUp(event);\n\n #init = afterNextRender(() => {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this.zone.runOutsideAngular(() => {\n this.nativeElement.addEventListener('wheel', this.wheelListener, { passive: false });\n this.nativeElement.addEventListener('pointerdown', this.pointerDownListener);\n this.nativeElement.addEventListener('pointermove', this.pointerMoveListener, { passive: false });\n this.nativeElement.addEventListener('pointerup', this.pointerUpListener);\n this.nativeElement.addEventListener('pointercancel', this.pointerUpListener);\n this.nativeElement.addEventListener('lostpointercapture', this.pointerUpListener);\n });\n });\n\n ngOnDestroy(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this.stopAnimation();\n this.releasePointer();\n this.clearClickSuppression();\n this.nativeElement.removeEventListener('wheel', this.wheelListener);\n this.nativeElement.removeEventListener('pointerdown', this.pointerDownListener);\n this.nativeElement.removeEventListener('pointermove', this.pointerMoveListener);\n this.nativeElement.removeEventListener('pointerup', this.pointerUpListener);\n this.nativeElement.removeEventListener('pointercancel', this.pointerUpListener);\n this.nativeElement.removeEventListener('lostpointercapture', this.pointerUpListener);\n }\n\n private get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n private handleWheel(event: WheelEvent): void {\n if (this.disabled() || this.pointerId !== null || !this.canScrollHorizontally()) return;\n if (event.shiftKey || Math.abs(event.deltaX) > Math.abs(event.deltaY)) return;\n if (event.deltaY === 0) return;\n\n const maxScrollLeft = this.getMaxScrollLeft();\n\n this.syncScrollState();\n\n const currentPosition = this.targetScrollLeft ?? this.scrollPosition;\n const atStart = currentPosition <= 0 && event.deltaY < 0;\n const atEnd = currentPosition >= maxScrollLeft && event.deltaY > 0;\n\n if (atStart || atEnd) return;\n\n event.preventDefault();\n\n const nextTarget = Math.max(0, Math.min(maxScrollLeft, currentPosition + event.deltaY));\n this.targetScrollLeft = nextTarget;\n\n if (this.speed() <= 0) {\n this.applyScrollPosition(nextTarget);\n this.targetScrollLeft = null;\n return;\n }\n\n this.startAnimation();\n }\n\n private handlePointerDown(event: PointerEvent): void {\n if (this.disabled() || !event.isPrimary || !this.canScrollHorizontally()) return;\n if (event.pointerType === 'mouse' && event.button !== 0) return;\n if (event.target instanceof Element && event.target.closest(this.interactiveSelector)) return;\n\n this.stopAnimation();\n this.targetScrollLeft = null;\n this.scrollPosition = this.nativeElement.scrollLeft;\n\n this.pointerId = event.pointerId;\n this.pointerStartX = event.clientX;\n this.pointerStartY = event.clientY;\n this.pointerStartScrollLeft = this.scrollPosition;\n this.pointerAxis = 'undecided';\n this.lastPointerX = event.clientX;\n this.lastPointerTime = performance.now();\n this.pointerVelocityX = 0;\n }\n\n private handlePointerMove(event: PointerEvent): void {\n if (this.pointerId !== event.pointerId || this.disabled()) return;\n\n const deltaX = event.clientX - this.pointerStartX;\n const deltaY = event.clientY - this.pointerStartY;\n\n if (this.pointerAxis === 'undecided') {\n if (Math.hypot(deltaX, deltaY) < this.axisLockThreshold) return;\n\n this.pointerAxis = Math.abs(deltaX) > Math.abs(deltaY) ? 'horizontal' : 'vertical';\n\n if (this.pointerAxis === 'vertical') {\n this.releasePointer();\n return;\n }\n\n this.nativeElement.setPointerCapture(event.pointerId);\n this.nativeElement.style.userSelect = 'none';\n if (event.pointerType === 'mouse') {\n this.nativeElement.style.cursor = 'grabbing';\n }\n }\n\n if (this.pointerAxis !== 'horizontal') return;\n\n event.preventDefault();\n\n const now = performance.now();\n const elapsed = now - this.lastPointerTime;\n if (elapsed > 0) {\n this.pointerVelocityX = (event.clientX - this.lastPointerX) / elapsed;\n }\n this.lastPointerX = event.clientX;\n this.lastPointerTime = now;\n\n const next = Math.max(0, Math.min(this.getMaxScrollLeft(), this.pointerStartScrollLeft - deltaX));\n this.applyScrollPosition(next);\n }\n\n private handlePointerUp(event: PointerEvent): void {\n if (this.pointerId !== event.pointerId) return;\n\n const wasHorizontalDrag = this.pointerAxis === 'horizontal';\n const velocityX = this.pointerVelocityX;\n const lastMoveAge = performance.now() - this.lastPointerTime;\n\n this.releasePointer();\n\n if (!wasHorizontalDrag) return;\n\n this.suppressClick();\n\n if (this.speed() <= 0 || lastMoveAge > 80) return;\n\n const distance = -velocityX * this.speed();\n if (Math.abs(distance) < 8) return;\n\n this.targetScrollLeft = Math.max(0, Math.min(this.getMaxScrollLeft(), this.scrollPosition + distance));\n this.startAnimation();\n }\n\n private releasePointer(): void {\n if (this.pointerId === null) return;\n\n const pointerId = this.pointerId;\n this.pointerId = null;\n this.pointerAxis = 'undecided';\n this.pointerVelocityX = 0;\n\n const element = this.nativeElement;\n if (element.hasPointerCapture(pointerId)) {\n element.releasePointerCapture(pointerId);\n }\n\n element.style.userSelect = '';\n element.style.cursor = '';\n }\n\n private suppressClick(): void {\n this.clearClickSuppression();\n\n const preventClick = (event: Event): void => {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.clearClickSuppression();\n };\n\n this.suppressClickListener = preventClick;\n this.nativeElement.addEventListener('click', preventClick, true);\n this.suppressClickTimer = setTimeout(() => this.clearClickSuppression(), 400);\n }\n\n private clearClickSuppression(): void {\n if (this.suppressClickTimer !== null) {\n clearTimeout(this.suppressClickTimer);\n this.suppressClickTimer = null;\n }\n\n if (!this.suppressClickListener) return;\n\n this.nativeElement.removeEventListener('click', this.suppressClickListener, true);\n this.suppressClickListener = null;\n }\n\n private syncScrollState(): void {\n if (this.targetScrollLeft !== null) return;\n\n this.scrollPosition = this.nativeElement.scrollLeft;\n this.targetScrollLeft = this.scrollPosition;\n }\n\n private startAnimation(): void {\n if (this.animationFrameId !== null) return;\n\n this.lastFrameTime = performance.now();\n\n const step = (currentTime: number): void => {\n const target = this.targetScrollLeft;\n\n if (target === null) {\n this.stopAnimation();\n return;\n }\n\n const deltaTime = Math.max(currentTime - this.lastFrameTime, 1);\n this.lastFrameTime = currentTime;\n\n const factor = 1 - Math.exp(-deltaTime / this.speed());\n this.scrollPosition += (target - this.scrollPosition) * factor;\n this.applyScrollPosition(this.scrollPosition);\n\n if (Math.abs(target - this.scrollPosition) < 0.5) {\n this.applyScrollPosition(target);\n this.targetScrollLeft = null;\n this.stopAnimation();\n return;\n }\n\n this.animationFrameId = requestAnimationFrame(step);\n };\n\n this.animationFrameId = requestAnimationFrame(step);\n }\n\n private applyScrollPosition(position: number): void {\n this.scrollPosition = position;\n this.nativeElement.scrollLeft = position;\n }\n\n private stopAnimation(): void {\n if (this.animationFrameId === null) return;\n\n cancelAnimationFrame(this.animationFrameId);\n this.animationFrameId = null;\n }\n\n private canScrollHorizontally(): boolean {\n const element = this.nativeElement;\n return element.scrollWidth > element.clientWidth;\n }\n\n private getMaxScrollLeft(): number {\n const element = this.nativeElement;\n return element.scrollWidth - element.clientWidth;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;AAQG;MAOU,2BAA2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AAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,+BAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,6BAA6B;AACtD,qBAAA;AACF,iBAAA;;;ACjBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-cdk-horizontal-scroll.mjs","sources":["../../../../packages/cdk/horizontal-scroll/src/lib/horizontal-scroll.directive.ts","../../../../packages/cdk/horizontal-scroll/src/acorex-cdk-horizontal-scroll.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport { AXGestureDirective, AXGestureEvent } from '@acorex/cdk/gesture';\nimport { AXHtmlUtil } from '@acorex/core/utils';\nimport {\n afterNextRender,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n linkedSignal,\n NgZone,\n OnDestroy,\n PLATFORM_ID,\n} from '@angular/core';\n\n/**\n * Converts vertical mouse-wheel scrolling and pan gestures into scrolling on the host element.\n * Supports horizontal and vertical orientations. Pan is provided by the hosted AXGestureDirective.\n *\n * Usage:\n * <div axHorizontalScroll [speed]=\"150\" class=\"overflow-x-auto\">\n * ...\n * </div>\n *\n * Do not put `axGesture` on the same element; this directive already hosts it.\n */\n@Directive({\n selector: '[axHorizontalScroll]',\n hostDirectives: [AXGestureDirective],\n host: {\n '[style.touch-action]': 'touchAction()',\n },\n})\nexport class AXHorizontalScrollDirective implements OnDestroy {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly zone = inject(NgZone);\n private readonly gesture = inject(AXGestureDirective);\n private readonly destroyRef = inject(DestroyRef);\n\n /**\n * Disables wheel-to-horizontal conversion and pan scrolling when true.\n */\n disabled = input(false);\n\n /**\n * Scroll axis. Horizontal converts wheel + pan; vertical uses pan only.\n * @defaultValue 'horizontal'\n */\n orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n /** Internal orientation state; can be overridden programmatically by host components. */\n readonly scrollOrientation = linkedSignal(() => this.orientation());\n\n /**\n * Scroll animation duration in milliseconds.\n * Lower values scroll faster; `0` applies the scroll instantly.\n */\n speed = input(200);\n\n private animationFrameId: number | null = null;\n private targetScrollPosition: number | null = null;\n private scrollPosition = 0;\n private lastFrameTime = 0;\n\n private isPanning = false;\n private ignorePan = false;\n private panStartScrollPosition = 0;\n private suppressClickListener: ((event: Event) => void) | null = null;\n private suppressClickTimer: ReturnType<typeof setTimeout> | null = null;\n private _isRtl = false;\n\n private readonly interactiveSelector =\n 'input, textarea, select, option, [contenteditable]:not([contenteditable=\"false\"])';\n\n private readonly wheelListener = (event: WheelEvent) => this.handleWheel(event);\n\n protected touchAction(): string | null {\n if (this.disabled()) return null;\n return this.isHorizontal() ? 'pan-y' : 'pan-x';\n }\n\n constructor() {\n const subscriptions = [\n this.gesture.panstart.subscribe((event) => this.handlePanStart(event)),\n this.gesture.panmove.subscribe((event) => this.handlePanMove(event)),\n this.gesture.panend.subscribe((event) => this.handlePanEnd(event)),\n ];\n this.destroyRef.onDestroy(() => {\n for (const subscription of subscriptions) {\n subscription.unsubscribe();\n }\n });\n }\n\n #orientationEffect = effect(() => {\n this.gesture.gestureDirection.set(this.scrollOrientation());\n });\n\n #init = afterNextRender(() => {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this._isRtl = AXHtmlUtil.isRtl(this.nativeElement);\n\n this.zone.runOutsideAngular(() => {\n this.nativeElement.addEventListener('wheel', this.wheelListener, { passive: false });\n });\n });\n\n ngOnDestroy(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this.stopAnimation();\n this.clearPanStyles();\n this.clearClickSuppression();\n this.nativeElement.removeEventListener('wheel', this.wheelListener);\n }\n\n private get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n private isHorizontal(): boolean {\n return this.scrollOrientation() === 'horizontal';\n }\n\n private get rtlSign(): number {\n return this.isHorizontal() && this._isRtl ? -1 : 1;\n }\n\n private refreshRtlState(): void {\n if (isPlatformBrowser(this.platformId)) {\n this._isRtl = AXHtmlUtil.isRtl(this.nativeElement);\n }\n }\n\n private getCurrentScrollPosition(): number {\n if (this.isHorizontal()) {\n return this.nativeElement.scrollLeft * this.rtlSign;\n }\n return this.nativeElement.scrollTop;\n }\n\n private getMaxScrollPosition(): number {\n const element = this.nativeElement;\n return this.isHorizontal()\n ? element.scrollWidth - element.clientWidth\n : element.scrollHeight - element.clientHeight;\n }\n\n private canScroll(): boolean {\n const element = this.nativeElement;\n return this.isHorizontal()\n ? element.scrollWidth > element.clientWidth\n : element.scrollHeight > element.clientHeight;\n }\n\n private applyScrollPosition(position: number): void {\n this.scrollPosition = position;\n if (this.isHorizontal()) {\n this.nativeElement.scrollLeft = position * this.rtlSign;\n } else {\n this.nativeElement.scrollTop = position;\n }\n }\n\n private isDragInProgress(): boolean {\n const host = this.nativeElement;\n if (host.classList.contains('ax-drop-list-sorting-active')) {\n return true;\n }\n return host.querySelector('.ax-dragging') !== null;\n }\n\n private handleWheel(event: WheelEvent): void {\n if (this.disabled() || this.isPanning || !this.isHorizontal() || !this.canScroll()) return;\n if (event.shiftKey || Math.abs(event.deltaX) > Math.abs(event.deltaY)) return;\n if (event.deltaY === 0) return;\n\n this.refreshRtlState();\n\n const maxScroll = this.getMaxScrollPosition();\n const step = event.deltaY * this.rtlSign;\n\n this.syncScrollState();\n\n const currentPosition = this.targetScrollPosition ?? this.scrollPosition;\n const atStart = currentPosition <= 0 && step < 0;\n const atEnd = currentPosition >= maxScroll && step > 0;\n\n if (atStart || atEnd) return;\n\n event.preventDefault();\n\n const nextTarget = Math.max(0, Math.min(maxScroll, currentPosition + step));\n this.targetScrollPosition = nextTarget;\n\n if (this.speed() <= 0) {\n this.applyScrollPosition(nextTarget);\n this.targetScrollPosition = null;\n return;\n }\n\n this.startAnimation();\n }\n\n private handlePanStart(event: AXGestureEvent): void {\n if (this.disabled() || !this.canScroll() || this.isDragInProgress()) {\n this.ignorePan = true;\n return;\n }\n if (event.target instanceof Element && event.target.closest(this.interactiveSelector)) {\n this.ignorePan = true;\n return;\n }\n\n this.refreshRtlState();\n this.ignorePan = false;\n this.isPanning = true;\n this.stopAnimation();\n this.targetScrollPosition = null;\n this.scrollPosition = this.getCurrentScrollPosition();\n this.panStartScrollPosition = this.scrollPosition;\n this.nativeElement.style.userSelect = 'none';\n if (event.pointerType === 'mouse') {\n this.nativeElement.style.cursor = 'grabbing';\n }\n }\n\n private handlePanMove(event: AXGestureEvent): void {\n if (this.ignorePan || this.disabled() || !this.isPanning || this.isDragInProgress()) return;\n\n event.preventDefault();\n const delta = this.isHorizontal() ? event.deltaX : event.deltaY;\n const next = Math.max(\n 0,\n Math.min(this.getMaxScrollPosition(), this.panStartScrollPosition - delta * this.rtlSign),\n );\n this.applyScrollPosition(next);\n }\n\n private handlePanEnd(event: AXGestureEvent): void {\n if (this.ignorePan) {\n this.ignorePan = false;\n this.isPanning = false;\n return;\n }\n\n this.isPanning = false;\n this.clearPanStyles();\n\n if (this.disabled()) return;\n\n this.suppressClick();\n\n if (this.speed() <= 0) return;\n\n const velocity = this.isHorizontal() ? event.velocityX : event.velocityY;\n const distance = -velocity * this.speed() * this.rtlSign;\n if (Math.abs(distance) < 8) return;\n\n this.targetScrollPosition = Math.max(\n 0,\n Math.min(this.getMaxScrollPosition(), this.scrollPosition + distance),\n );\n this.startAnimation();\n }\n\n private clearPanStyles(): void {\n this.nativeElement.style.userSelect = '';\n this.nativeElement.style.cursor = '';\n }\n\n private suppressClick(): void {\n this.clearClickSuppression();\n\n const preventClick = (event: Event): void => {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.clearClickSuppression();\n };\n\n this.suppressClickListener = preventClick;\n this.nativeElement.addEventListener('click', preventClick, true);\n this.suppressClickTimer = setTimeout(() => this.clearClickSuppression(), 400);\n }\n\n private clearClickSuppression(): void {\n if (this.suppressClickTimer !== null) {\n clearTimeout(this.suppressClickTimer);\n this.suppressClickTimer = null;\n }\n\n if (!this.suppressClickListener) return;\n\n this.nativeElement.removeEventListener('click', this.suppressClickListener, true);\n this.suppressClickListener = null;\n }\n\n private syncScrollState(): void {\n if (this.targetScrollPosition !== null) return;\n\n this.scrollPosition = this.getCurrentScrollPosition();\n this.targetScrollPosition = this.scrollPosition;\n }\n\n private startAnimation(): void {\n if (this.animationFrameId !== null) return;\n\n this.lastFrameTime = performance.now();\n\n const step = (currentTime: number): void => {\n const target = this.targetScrollPosition;\n\n if (target === null) {\n this.stopAnimation();\n return;\n }\n\n const deltaTime = Math.max(currentTime - this.lastFrameTime, 1);\n this.lastFrameTime = currentTime;\n\n const factor = 1 - Math.exp(-deltaTime / this.speed());\n this.scrollPosition += (target - this.scrollPosition) * factor;\n this.applyScrollPosition(this.scrollPosition);\n\n if (Math.abs(target - this.scrollPosition) < 0.5) {\n this.applyScrollPosition(target);\n this.targetScrollPosition = null;\n this.stopAnimation();\n return;\n }\n\n this.animationFrameId = requestAnimationFrame(step);\n };\n\n this.animationFrameId = requestAnimationFrame(step);\n }\n\n private stopAnimation(): void {\n if (this.animationFrameId === null) return;\n\n cancelAnimationFrame(this.animationFrameId);\n this.animationFrameId = null;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAiBA;;;;;;;;;;AAUG;MAQU,2BAA2B,CAAA;IA4C5B,WAAW,GAAA;QACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;AAAE,YAAA,OAAO,IAAI;AAChC,QAAA,OAAO,IAAI,CAAC,YAAY,EAAE,GA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A2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;oBAChC,cAAc,EAAE,CAAC,kBAAkB,CAAC;AACpC,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,eAAe;AACxC,qBAAA;AACF,iBAAA;;;AClCD;;AAEG;;;;"}
@@ -292,10 +292,10 @@ class AXInputMaskDirective {
292
292
  }
293
293
  return this.rangeValueLimit(finalValue);
294
294
  }
295
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXInputMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
296
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: AXInputMaskDirective, isStandalone: true, selector: "[axInputMask]", inputs: { maskMode: { classPropertyName: "maskMode", publicName: "maskMode", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, eager: { classPropertyName: "eager", publicName: "eager", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, decimal: { classPropertyName: "decimal", publicName: "decimal", isSignal: true, isRequired: false, transformFunction: null }, maskPattern: { classPropertyName: "maskPattern", publicName: "maskPattern", isSignal: true, isRequired: false, transformFunction: null }, customTokens: { classPropertyName: "customTokens", publicName: "customTokens", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onMaskChanged: "onMaskChanged" }, exportAs: ["axInputMask"], ngImport: i0 }); }
295
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXInputMaskDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
296
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: AXInputMaskDirective, isStandalone: true, selector: "[axInputMask]", inputs: { maskMode: { classPropertyName: "maskMode", publicName: "maskMode", isSignal: true, isRequired: false, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, eager: { classPropertyName: "eager", publicName: "eager", isSignal: true, isRequired: false, transformFunction: null }, minValue: { classPropertyName: "minValue", publicName: "minValue", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, decimal: { classPropertyName: "decimal", publicName: "decimal", isSignal: true, isRequired: false, transformFunction: null }, maskPattern: { classPropertyName: "maskPattern", publicName: "maskPattern", isSignal: true, isRequired: false, transformFunction: null }, customTokens: { classPropertyName: "customTokens", publicName: "customTokens", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onMaskChanged: "onMaskChanged" }, exportAs: ["axInputMask"], ngImport: i0 }); }
297
297
  }
298
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXInputMaskDirective, decorators: [{
298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXInputMaskDirective, decorators: [{
299
299
  type: Directive,
300
300
  args: [{
301
301
  selector: '[axInputMask]',
@@ -100,10 +100,10 @@ class AXListNavigationDirective {
100
100
  });
101
101
  e.itemElem.nativeElement.scrollIntoView(this.scrollOption);
102
102
  }
103
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
104
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.8", type: AXListNavigationDirective, isStandalone: true, selector: "[axListNavigation]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onNavigationChanged: "onNavigationChanged", onKeypress: "onKeypress" }, queries: [{ propertyName: "childElem", predicate: AXListNavigationItemDirective, descendants: true, isSignal: true }], exportAs: ["axListNavigation"], ngImport: i0 }); }
103
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
104
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.6", type: AXListNavigationDirective, isStandalone: true, selector: "[axListNavigation]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onNavigationChanged: "onNavigationChanged", onKeypress: "onKeypress" }, queries: [{ propertyName: "childElem", predicate: AXListNavigationItemDirective, descendants: true, isSignal: true }], exportAs: ["axListNavigation"], ngImport: i0 }); }
105
105
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationDirective, decorators: [{
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationDirective, decorators: [{
107
107
  type: Directive,
108
108
  args: [{
109
109
  selector: '[axListNavigation]',
@@ -141,10 +141,10 @@ class AXListNavigationItemDirective {
141
141
  });
142
142
  }
143
143
  #init;
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
145
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: AXListNavigationItemDirective, isStandalone: true, selector: "[axListNavigationItem]", outputs: { onKeypress: "onKeypress" }, exportAs: ["axListNavigationItem"], ngImport: i0 }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
145
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.6", type: AXListNavigationItemDirective, isStandalone: true, selector: "[axListNavigationItem]", outputs: { onKeypress: "onKeypress" }, exportAs: ["axListNavigationItem"], ngImport: i0 }); }
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationItemDirective, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationItemDirective, decorators: [{
148
148
  type: Directive,
149
149
  args: [{
150
150
  selector: '[axListNavigationItem]',
@@ -155,11 +155,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
155
155
  const COMPONENT = [AXListNavigationDirective, AXListNavigationItemDirective];
156
156
  const MODULES = [CommonModule];
157
157
  class AXListNavigationModule {
158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
159
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationModule, imports: [CommonModule, AXListNavigationDirective, AXListNavigationItemDirective], exports: [AXListNavigationDirective, AXListNavigationItemDirective] }); }
160
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationModule, imports: [MODULES] }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
159
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationModule, imports: [CommonModule, AXListNavigationDirective, AXListNavigationItemDirective], exports: [AXListNavigationDirective, AXListNavigationItemDirective] }); }
160
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationModule, imports: [MODULES] }); }
161
161
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXListNavigationModule, decorators: [{
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXListNavigationModule, decorators: [{
163
163
  type: NgModule,
164
164
  args: [{
165
165
  imports: [...MODULES, ...COMPONENT],