@acorex/cdk 19.14.1 → 19.14.2

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 (66) hide show
  1. package/common/README.md +3 -0
  2. package/common/index.d.ts +33 -0
  3. package/common/lib/classes/components.class.d.ts +97 -0
  4. package/common/lib/classes/datalist.class.d.ts +37 -0
  5. package/common/lib/classes/datasource.class.d.ts +87 -0
  6. package/common/lib/classes/events.class.d.ts +96 -0
  7. package/common/lib/classes/styles.class.d.ts +12 -0
  8. package/common/lib/common.module.d.ts +10 -0
  9. package/common/lib/components/base-component.class.d.ts +42 -0
  10. package/common/lib/components/button-base-component.class.d.ts +55 -0
  11. package/common/lib/components/color-component.class.d.ts +12 -0
  12. package/common/lib/components/colorlook-component.class.d.ts +6 -0
  13. package/common/lib/components/input-base-value-component.class.d.ts +35 -0
  14. package/common/lib/components/interactive-component.class.d.ts +57 -0
  15. package/common/lib/components/look-component.class.d.ts +18 -0
  16. package/common/lib/components/selection-base.component.class.d.ts +53 -0
  17. package/common/lib/components/value-component.class.d.ts +70 -0
  18. package/common/lib/directives/auto-focus.directive.d.ts +17 -0
  19. package/common/lib/directives/copy-clipboard.directive.d.ts +40 -0
  20. package/common/lib/directives/delayed-value-changed.directive.d.ts +17 -0
  21. package/common/lib/directives/hotkey.directive.d.ts +22 -0
  22. package/common/lib/directives/infinite-scroll.directive.d.ts +25 -0
  23. package/common/lib/directives/inverted-color.directive.d.ts +12 -0
  24. package/common/lib/directives/responsive.directive.d.ts +10 -0
  25. package/common/lib/directives/ripple.directive.d.ts +18 -0
  26. package/common/lib/interfaces/component.interface.d.ts +4 -0
  27. package/common/lib/services/dom.service.d.ts +6 -0
  28. package/common/lib/services/hotkey.service.d.ts +31 -0
  29. package/common/lib/types/animation.d.ts +1 -0
  30. package/common/lib/types/base/button.type.d.ts +8 -0
  31. package/common/lib/types/base/color.type.d.ts +7 -0
  32. package/common/lib/types/base/component.types.d.ts +8 -0
  33. package/common/lib/types/base/events.types.d.ts +21 -0
  34. package/common/lib/types/base/index.d.ts +7 -0
  35. package/common/lib/types/base/interactive.type.d.ts +13 -0
  36. package/common/lib/types/base/look.type.d.ts +7 -0
  37. package/common/lib/types/base/value.type.d.ts +9 -0
  38. package/common/lib/types/direction.d.ts +4 -0
  39. package/common/lib/types/orientation.d.ts +4 -0
  40. package/common/lib/types/placement.d.ts +30 -0
  41. package/common/lib/types/range.d.ts +4 -0
  42. package/common/lib/types/selection-mode.d.ts +4 -0
  43. package/drag-drop/lib/drag.directive.d.ts +1 -0
  44. package/drag-drop/lib/drop-zone.directive.d.ts +4 -6
  45. package/drawer/lib/drawer-item.directive.d.ts +1 -1
  46. package/fesm2022/acorex-cdk-carousel.mjs +3 -3
  47. package/fesm2022/acorex-cdk-collapse.mjs +19 -19
  48. package/fesm2022/acorex-cdk-common.mjs +2087 -0
  49. package/fesm2022/acorex-cdk-common.mjs.map +1 -0
  50. package/fesm2022/acorex-cdk-dom.mjs +3 -3
  51. package/fesm2022/acorex-cdk-drag-drop.mjs +28 -26
  52. package/fesm2022/acorex-cdk-drag-drop.mjs.map +1 -1
  53. package/fesm2022/acorex-cdk-drawer.mjs +10 -10
  54. package/fesm2022/acorex-cdk-drawer.mjs.map +1 -1
  55. package/fesm2022/acorex-cdk-focus-trap.mjs +3 -3
  56. package/fesm2022/acorex-cdk-list-navigation.mjs +10 -10
  57. package/fesm2022/acorex-cdk-outline.mjs +10 -10
  58. package/fesm2022/acorex-cdk-overlay.mjs +3 -3
  59. package/fesm2022/acorex-cdk-pan-view.mjs +3 -3
  60. package/fesm2022/acorex-cdk-resizable.mjs +3 -3
  61. package/fesm2022/acorex-cdk-selection.mjs +10 -10
  62. package/fesm2022/acorex-cdk-sliding-item.mjs +7 -7
  63. package/fesm2022/acorex-cdk-sticky.mjs +3 -3
  64. package/fesm2022/acorex-cdk-virtual-scroll.mjs +10 -10
  65. package/overlay/lib/overlay.types.d.ts +1 -1
  66. package/package.json +5 -1
@@ -0,0 +1,70 @@
1
+ import { AXValidationSummary } from '@acorex/core/validation';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { ControlValueAccessor } from '@angular/forms';
4
+ import { AXFormValidationRule } from '../classes/components.class';
5
+ import { AXValueChangedEvent } from '../classes/events.class';
6
+ import { AXComponentState } from './base-component.class';
7
+ import { MXInteractiveComponent } from './interactive-component.class';
8
+ import * as i0 from "@angular/core";
9
+ export declare class MXValueComponent<T = any> extends MXInteractiveComponent implements ControlValueAccessor {
10
+ /**
11
+ * Fires each time the user press a key.
12
+ * @event
13
+ */
14
+ onValueChanged: EventEmitter<AXValueChangedEvent<any>>;
15
+ /**
16
+ * @deprecated The event should not be used, use ngModelChange instead
17
+ */
18
+ valueChange: EventEmitter<any>;
19
+ readonlyChange: EventEmitter<boolean>;
20
+ private _readonly;
21
+ /**
22
+ * If set to true, user cannot change the value of component.
23
+ */
24
+ get readonly(): boolean;
25
+ set readonly(value: boolean);
26
+ private _name;
27
+ get name(): string;
28
+ set name(value: string);
29
+ private _dirty;
30
+ get dirty(): boolean;
31
+ markAsDirty(): void;
32
+ private _isUserInteraction;
33
+ initValue: T;
34
+ defaultValue: T;
35
+ private _value;
36
+ /**
37
+ * @deprecated The property should not be used, use ngModel instead
38
+ */
39
+ get value(): T;
40
+ set value(v: T);
41
+ stateChange: EventEmitter<AXComponentState>;
42
+ private _state;
43
+ get state(): AXComponentState;
44
+ set state(value: AXComponentState);
45
+ protected emitOnValueChangedEvent(oldValue?: any, newValue?: any): void;
46
+ protected internalSetValue(value: any): T;
47
+ protected internalGetValue(value: any): T;
48
+ protected internalValueChanged(value: any): void;
49
+ protected ngOnInit(): void;
50
+ protected ngOnDestroy(): void;
51
+ protected registerValidation(): void;
52
+ protected document: Document;
53
+ protected platformID: Object;
54
+ private validationService;
55
+ validationRulesChange: EventEmitter<AXFormValidationRule[]>;
56
+ private validationRules;
57
+ get isRequired(): boolean;
58
+ addValidationRule(rule: AXFormValidationRule): void;
59
+ removeValidationRule(ruleToRemove: AXFormValidationRule): void;
60
+ validate(): Promise<AXValidationSummary>;
61
+ protected setState(state: AXComponentState, ...args: any[]): void;
62
+ protected onChangeCallback: (value: T) => void;
63
+ registerOnChange(fn: (value: T) => void): void;
64
+ writeValue(value: T): void;
65
+ commitValue(value: T, u?: boolean): void;
66
+ reset(e?: boolean): void;
67
+ resetErrors(): void;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<MXValueComponent<any>, never>;
69
+ static ɵprov: i0.ɵɵInjectableDeclaration<MXValueComponent<any>>;
70
+ }
@@ -0,0 +1,17 @@
1
+ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
+ import { AXFocusableComponent } from '../classes/components.class';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXAutoFocusDirective implements AfterViewInit {
5
+ private renderer;
6
+ private el;
7
+ _host: AXFocusableComponent;
8
+ autoFocus?: boolean;
9
+ time: number;
10
+ private document;
11
+ private platformID;
12
+ constructor(renderer: Renderer2, el: ElementRef<HTMLElement>, _host: AXFocusableComponent);
13
+ ngAfterViewInit(): void;
14
+ protected doFocus(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXAutoFocusDirective, [null, null, { optional: true; host: true; self: true; }]>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXAutoFocusDirective, "[axAutoFocus]", never, { "autoFocus": { "alias": "axAutoFocus"; "required": false; }; "time": { "alias": "axAutoFocusTime"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,40 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Directive to copy provided context to the clipboard on click,
5
+ * using Angular's input signal injection for the context.
6
+ * Emits copy status via a writable signal property.
7
+ *
8
+ * Usage:
9
+ * <button
10
+ * axCopyClipboard
11
+ * [copiedSignal]="copiedSignal"
12
+ * >Copy</button>
13
+ */
14
+ export declare class AXCopyClipboardDirective {
15
+ elementRef: ElementRef<any>;
16
+ /**
17
+ * Required string input signal for the context to copy.
18
+ * Bound via: axCopyClipboard="textSignal"
19
+ */
20
+ context: import("@angular/core").InputSignal<string>;
21
+ /**
22
+ * WritableSignal to capture copy success (true) or failure (false).
23
+ * Can be bound: [copiedSignal]="myWritableSignal"
24
+ */
25
+ copied: import("@angular/core").OutputEmitterRef<boolean>;
26
+ /**
27
+ * Trigger copy when the host element is clicked.
28
+ */
29
+ onHostHover(): Promise<void>;
30
+ /**
31
+ * Trigger copy when the host element is clicked.
32
+ */
33
+ onHostClick(): Promise<void>;
34
+ /**
35
+ * Copy the string to the clipboard.
36
+ */
37
+ private copyToClipboard;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXCopyClipboardDirective, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXCopyClipboardDirective, "[axCopyClipboard]", never, { "context": { "alias": "axCopyClipboard"; "required": true; "isSignal": true; }; }, { "copied": "copied"; }, never, never, true, never>;
40
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnDestroy } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXNgModelDelayedValueChangedDirective implements OnDestroy {
5
+ private ngModel;
6
+ axDelayedValueChanged: EventEmitter<any>;
7
+ axDelayTimeChange: EventEmitter<number>;
8
+ private _delayTime;
9
+ get delayTime(): number;
10
+ set delayTime(v: number);
11
+ private subscription;
12
+ ngOnDestroy(): void;
13
+ constructor(ngModel: NgModel);
14
+ private update;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXNgModelDelayedValueChangedDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXNgModelDelayedValueChangedDirective, "[axDelayedValueChanged]", never, { "delayTime": { "alias": "delayTime"; "required": false; }; }, { "axDelayedValueChanged": "axDelayedValueChanged"; "axDelayTimeChange": "axDelayTimeChange"; }, never, never, true, never>;
17
+ }
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { AXComponent } from '../classes/components.class';
3
+ import { AXHotkeysService } from '../services/hotkey.service';
4
+ import * as i0 from "@angular/core";
5
+ export type AXHotKeyAction = {
6
+ [key: string]: string | Function;
7
+ parmas?: any;
8
+ };
9
+ export declare class AXHotkeyDirective implements AfterViewInit {
10
+ private el;
11
+ _host: AXComponent;
12
+ private hs;
13
+ axHotkey: string | AXHotKeyAction | AXHotKeyAction[];
14
+ private _subs;
15
+ constructor(el: ElementRef<HTMLElement>, _host: AXComponent, hs: AXHotkeysService);
16
+ ngAfterViewInit(): void;
17
+ private _addDefaultAction;
18
+ private _addHotKeyAction;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHotkeyDirective, [null, { optional: true; host: true; self: true; }, null]>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXHotkeyDirective, "[axHotkey]", never, { "axHotkey": { "alias": "axHotkey"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
@@ -0,0 +1,25 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface AXScrollPosition {
4
+ scrollHeight: number;
5
+ scrollTop: number;
6
+ clientHeight: number;
7
+ }
8
+ export declare class AXInfiniteScrollerDirective implements AfterViewInit {
9
+ private elm;
10
+ private scrollEvent$;
11
+ private userScrolledDown$;
12
+ private requestOnScroll$;
13
+ scrollCallback: Function;
14
+ immediateCallback: any;
15
+ scrollPercent: number;
16
+ constructor(elm: ElementRef);
17
+ ngAfterViewInit(): void;
18
+ private registerScrollEvent;
19
+ private streamScrollEvents;
20
+ private requestCallbackOnScroll;
21
+ private isUserScrollingDown;
22
+ private isScrollExpectedPercent;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXInfiniteScrollerDirective, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXInfiniteScrollerDirective, "[axInfiniteScroller]", never, { "scrollCallback": { "alias": "scrollCallback"; "required": false; }; "immediateCallback": { "alias": "immediateCallback"; "required": false; }; "scrollPercent": { "alias": "scrollPercent"; "required": false; }; }, {}, never, never, true, never>;
25
+ }
@@ -0,0 +1,12 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { AXStyleColorType } from '../classes/styles.class';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AXInvertedColorDirective {
5
+ color: import("@angular/core").InputSignal<AXStyleColorType>;
6
+ ref: ViewContainerRef;
7
+ private platformID;
8
+ constructor();
9
+ protected invertColor(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXInvertedColorDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXInvertedColorDirective, "[axInvertedColor]", never, { "color": { "alias": "color"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,10 @@
1
+ import { ElementRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXResponsiveDirective implements OnDestroy {
4
+ private _elementRef;
5
+ private _observer;
6
+ constructor(_elementRef: ElementRef<HTMLDivElement>);
7
+ ngOnDestroy(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXResponsiveDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXResponsiveDirective, "[axResponsive]", never, {}, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,18 @@
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class AXRippleDirective implements OnDestroy {
4
+ private el;
5
+ private cdr;
6
+ enabled?: boolean;
7
+ axRippleColor: string;
8
+ ripple: HTMLSpanElement | null;
9
+ private document;
10
+ private platformID;
11
+ constructor(el: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
12
+ ngOnInit(): void;
13
+ ngOnDestroy(): void;
14
+ private onElementClick;
15
+ private createRipple;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXRippleDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXRippleDirective, "[axRipple]", never, { "enabled": { "alias": "axRipple"; "required": false; }; "axRippleColor": { "alias": "axRippleColor"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,4 @@
1
+ export interface AXExpandToggleIcons {
2
+ expanded: string;
3
+ collapsed: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AXDomService {
3
+ generateElementId(): string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDomService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXDomService>;
6
+ }
@@ -0,0 +1,31 @@
1
+ import { EventManager } from '@angular/platform-browser';
2
+ import { Observable } from 'rxjs/internal/Observable';
3
+ import * as i0 from "@angular/core";
4
+ type Options = {
5
+ /**
6
+ * element - An html element
7
+ */
8
+ element: any;
9
+ /**
10
+ * keys - string of keys like (Control.f)
11
+ */
12
+ keys: string;
13
+ };
14
+ export declare class AXHotkeysService {
15
+ private eventManager;
16
+ private document;
17
+ defaults: Partial<Options>;
18
+ constructor(eventManager: EventManager);
19
+ /**
20
+ * Add shortcut
21
+ *
22
+ *
23
+ * @param options
24
+ * @returns Observable
25
+ *
26
+ */
27
+ addShortcut(options: Partial<Options>): Observable<unknown>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXHotkeysService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXHotkeysService>;
30
+ }
31
+ export {};
@@ -0,0 +1 @@
1
+ export type AXAnimationEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'cubic' | 'cubic-in' | 'cubic-out' | 'cubic-in-out';
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare abstract class NXButtonComponent {
3
+ text: import("@angular/core").ModelSignal<string>;
4
+ toggleableChange: import("@angular/core").OutputEmitterRef<boolean>;
5
+ selectedChange: import("@angular/core").OutputEmitterRef<boolean>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXButtonComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<NXButtonComponent, "ng-component", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "text": "textChange"; "toggleableChange": "toggleableChange"; "selectedChange": "selectedChange"; }, never, never, true, never>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { AXStyleColorType } from '../../classes/styles.class';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class NXColorComponent {
4
+ color: import("@angular/core").ModelSignal<AXStyleColorType>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXColorComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<NXColorComponent, "ng-component", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "color": "colorChange"; }, never, never, true, never>;
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare abstract class NXComponent {
3
+ #private;
4
+ protected isRendered: import("@angular/core").Signal<boolean>;
5
+ get nativeElement(): HTMLElement;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXComponent, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<NXComponent>;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { NXComponent } from './component.types';
2
+ /**
3
+ * Base event class
4
+ * @category Events
5
+ */
6
+ export declare class NXEvent<T extends NXComponent = NXComponent> {
7
+ sender: T;
8
+ }
9
+ /**
10
+ * Contains native event
11
+ * @category Events
12
+ */
13
+ export declare class NXNativeEvent<T extends NXComponent = NXComponent, E extends Event = Event> extends NXEvent<T> {
14
+ nativeEvent: E;
15
+ }
16
+ /**
17
+ * Fires each time the user click the element.
18
+ * @category Events
19
+ */
20
+ export declare class NXClickEvent<T extends NXComponent = NXComponent> extends NXNativeEvent<T, MouseEvent> {
21
+ }
@@ -0,0 +1,7 @@
1
+ export * from './button.type';
2
+ export * from './color.type';
3
+ export * from './component.types';
4
+ export * from './events.types';
5
+ export * from './interactive.type';
6
+ export * from './look.type';
7
+ export * from './value.type';
@@ -0,0 +1,13 @@
1
+ import { NXComponent } from './component.types';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class NXInteractiveComponent extends NXComponent {
4
+ disabled: import("@angular/core").ModelSignal<boolean>;
5
+ tabIndex: import("@angular/core").ModelSignal<number>;
6
+ onFocus: import("@angular/core").OutputEmitterRef<void>;
7
+ onBlur: import("@angular/core").OutputEmitterRef<void>;
8
+ focus(): void;
9
+ blur(): void;
10
+ hasFocus(): boolean;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXInteractiveComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<NXInteractiveComponent, "ng-component", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; "tabIndex": "tabIndexChange"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { AXStyleLookType } from '../../classes/styles.class';
2
+ import * as i0 from "@angular/core";
3
+ export declare abstract class NXLookComponent {
4
+ look: import("@angular/core").ModelSignal<AXStyleLookType>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXLookComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<NXLookComponent, "ng-component", never, { "look": { "alias": "look"; "required": false; "isSignal": true; }; }, { "look": "lookChange"; }, never, never, true, never>;
7
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare abstract class NXValueComponent {
3
+ readonly: import("@angular/core").ModelSignal<boolean>;
4
+ name: import("@angular/core").ModelSignal<string>;
5
+ value: import("@angular/core").ModelSignal<unknown>;
6
+ onValueChanged: import("@angular/core").OutputEmitterRef<void>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NXValueComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<NXValueComponent, "ng-component", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "readonly": "readonlyChange"; "name": "nameChange"; "value": "valueChange"; "onValueChanged": "onValueChanged"; }, never, never, true, never>;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A token that specifies the direction of component.
3
+ */
4
+ export type AXDirection = 'vertical' | 'horizontal';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A token that specifies the orientation of component.
3
+ */
4
+ export type AXOrientation = 'vertical' | 'horizontal';
@@ -0,0 +1,30 @@
1
+ export type AXPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'end' | 'end-top' | 'end-bottom' | 'start' | 'start-top' | 'start-bottom';
2
+ export type AXPlacementType = AXConnectedPosition | AXConnectedPosition[] | AXPlacement | AXPlacement[];
3
+ export declare function convertToPlacement(value: AXPlacementType): AXConnectedPosition[];
4
+ export interface AXConnectedPosition {
5
+ originX: 'start' | 'center' | 'end';
6
+ originY: 'top' | 'center' | 'bottom';
7
+ overlayX: 'start' | 'center' | 'end';
8
+ overlayY: 'top' | 'center' | 'bottom';
9
+ weight?: number;
10
+ offsetX?: number;
11
+ offsetY?: number;
12
+ }
13
+ export declare const AX_PLACEMENT_TOP: AXConnectedPosition;
14
+ export declare const AX_PLACEMENT_TOP_START: AXConnectedPosition;
15
+ export declare const AX_PLACEMENT_TOP_END: AXConnectedPosition;
16
+ export declare const AX_PLACEMENT_BOTTOM: AXConnectedPosition;
17
+ export declare const AX_PLACEMENT_BOTTOM_START: AXConnectedPosition;
18
+ export declare const AX_PLACEMENT_BOTTOM_END: AXConnectedPosition;
19
+ export declare const AX_PLACEMENT_START: AXConnectedPosition;
20
+ export declare const AX_PLACEMENT_START_TOP: AXConnectedPosition;
21
+ export declare const AX_PLACEMENT_START_BOTTOM: AXConnectedPosition;
22
+ export declare const AX_PLACEMENT_END: AXConnectedPosition;
23
+ export declare const AX_PLACEMENT_END_TOP: AXConnectedPosition;
24
+ export declare const AX_PLACEMENT_END_BOTTOM: AXConnectedPosition;
25
+ export declare const AX_PLACEMENT_MAP: {
26
+ [key: string]: {
27
+ origin: AXConnectedPosition;
28
+ alts?: AXConnectedPosition[];
29
+ };
30
+ };
@@ -0,0 +1,4 @@
1
+ export interface AXRange<T> {
2
+ from: T;
3
+ end: T;
4
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A token that specifies the selection mode of component.
3
+ */
4
+ export type AXSelectionMode = 'single' | 'multiple' | 'none';
@@ -9,6 +9,7 @@ export declare class AXDragDirective implements OnInit, OnDestroy {
9
9
  private zone;
10
10
  private document;
11
11
  private renderer;
12
+ private cdr;
12
13
  private platformId;
13
14
  private el;
14
15
  private handleDirective;
@@ -1,16 +1,14 @@
1
+ import { NXComponent, NXNativeEvent } from '@acorex/cdk/common';
1
2
  import { OnInit } from '@angular/core';
2
3
  import { AXDragDirective } from './drag.directive';
3
4
  import * as i0 from "@angular/core";
4
- export type AXDropZoneDropEvent = {
5
- sender: AXDropZoneDirective;
6
- nativeEvent: PointerEvent;
5
+ export interface AXDropZoneDropEvent extends NXNativeEvent<AXDropZoneDirective, PointerEvent> {
7
6
  dropped: AXDragDirective;
8
- };
7
+ }
9
8
  export type AXDropZoneHoverEvent = AXDropZoneDropEvent & {
10
9
  state: 'enter' | 'leave';
11
10
  };
12
- export declare class AXDropZoneDirective implements OnInit {
13
- private el;
11
+ export declare class AXDropZoneDirective extends NXComponent implements OnInit {
14
12
  dropZoneGroup: import("@angular/core").InputSignal<string>;
15
13
  isHovered: import("@angular/core").WritableSignal<boolean>;
16
14
  readonly element: import("@angular/core").WritableSignal<HTMLElement>;
@@ -1,4 +1,4 @@
1
- import { AXClickEvent } from '@acorex/core/types';
1
+ import { AXClickEvent } from '@acorex/cdk/common';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class AXDrawerItemDirective {
4
4
  #private;
@@ -55,10 +55,10 @@ class AXCarouselDirective {
55
55
  });
56
56
  this.carousel.set(res);
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
59
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.10", type: AXCarouselDirective, isStandalone: true, selector: "[axCarousel]", inputs: { carouselOptions: { classPropertyName: "carouselOptions", publicName: "carouselOptions", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["axCarousel"], ngImport: i0 }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCarouselDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
59
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.11", type: AXCarouselDirective, isStandalone: true, selector: "[axCarousel]", inputs: { carouselOptions: { classPropertyName: "carouselOptions", publicName: "carouselOptions", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["axCarousel"], ngImport: i0 }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCarouselDirective, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCarouselDirective, decorators: [{
62
62
  type: Directive,
63
63
  args: [{
64
64
  selector: '[axCarousel]',
@@ -15,10 +15,10 @@ class AXCollapseCloseButtonDirective {
15
15
  });
16
16
  }
17
17
  #init;
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseCloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: AXCollapseCloseButtonDirective, isStandalone: true, selector: "[axCollapseCloseButton]", outputs: { onclick: "onclick" }, ngImport: i0 }); }
18
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseCloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
19
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.11", type: AXCollapseCloseButtonDirective, isStandalone: true, selector: "[axCollapseCloseButton]", outputs: { onclick: "onclick" }, ngImport: i0 }); }
20
20
  }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseCloseButtonDirective, decorators: [{
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseCloseButtonDirective, decorators: [{
22
22
  type: Directive,
23
23
  args: [{ selector: '[axCollapseCloseButton]' }]
24
24
  }] });
@@ -40,10 +40,10 @@ class AXCollapseItemContentlDirective {
40
40
  });
41
41
  }
42
42
  #eff;
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemContentlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: AXCollapseItemContentlDirective, isStandalone: true, selector: "[axCollapseItemContent]", exportAs: ["axCollapseItemContent"], ngImport: i0 }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemContentlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.11", type: AXCollapseItemContentlDirective, isStandalone: true, selector: "[axCollapseItemContent]", exportAs: ["axCollapseItemContent"], ngImport: i0 }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemContentlDirective, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemContentlDirective, decorators: [{
47
47
  type: Directive,
48
48
  args: [{
49
49
  selector: '[axCollapseItemContent]',
@@ -70,10 +70,10 @@ class AXCollapseItemlDirective {
70
70
  }
71
71
  #init;
72
72
  #init2;
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.10", type: AXCollapseItemlDirective, isStandalone: true, selector: "[axCollapseItem]", outputs: { onclick: "onclick" }, queries: [{ propertyName: "content", first: true, predicate: AXCollapseItemContentlDirective, descendants: true, isSignal: true }, { propertyName: "close", first: true, predicate: AXCollapseCloseButtonDirective, descendants: true, isSignal: true }], exportAs: ["axCollapseItem"], ngImport: i0 }); }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
74
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.11", type: AXCollapseItemlDirective, isStandalone: true, selector: "[axCollapseItem]", outputs: { onclick: "onclick" }, queries: [{ propertyName: "content", first: true, predicate: AXCollapseItemContentlDirective, descendants: true, isSignal: true }, { propertyName: "close", first: true, predicate: AXCollapseCloseButtonDirective, descendants: true, isSignal: true }], exportAs: ["axCollapseItem"], ngImport: i0 }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemlDirective, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemlDirective, decorators: [{
77
77
  type: Directive,
78
78
  args: [{
79
79
  selector: '[axCollapseItem]',
@@ -110,10 +110,10 @@ class AXCollapseGrouplDirective {
110
110
  }
111
111
  #eff;
112
112
  #eff2;
113
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseGrouplDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
114
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.10", type: AXCollapseGrouplDirective, isStandalone: true, selector: "[axCollapseGroup]", inputs: { accordion: { classPropertyName: "accordion", publicName: "accordion", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "content", predicate: AXCollapseItemlDirective, isSignal: true }], exportAs: ["axCollapseGroup"], ngImport: i0 }); }
113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseGrouplDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
114
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "19.2.11", type: AXCollapseGrouplDirective, isStandalone: true, selector: "[axCollapseGroup]", inputs: { accordion: { classPropertyName: "accordion", publicName: "accordion", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "content", predicate: AXCollapseItemlDirective, isSignal: true }], exportAs: ["axCollapseGroup"], ngImport: i0 }); }
115
115
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseGrouplDirective, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseGrouplDirective, decorators: [{
117
117
  type: Directive,
118
118
  args: [{
119
119
  selector: '[axCollapseGroup]',
@@ -122,10 +122,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
122
122
  }] });
123
123
 
124
124
  class AXCollapseItemHeaderlDirective {
125
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemHeaderlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
126
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: AXCollapseItemHeaderlDirective, isStandalone: true, selector: "[axCollapseItemHeader]", exportAs: ["axCollapseItemHeader"], ngImport: i0 }); }
125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemHeaderlDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
126
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.11", type: AXCollapseItemHeaderlDirective, isStandalone: true, selector: "[axCollapseItemHeader]", exportAs: ["axCollapseItemHeader"], ngImport: i0 }); }
127
127
  }
128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseItemHeaderlDirective, decorators: [{
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseItemHeaderlDirective, decorators: [{
129
129
  type: Directive,
130
130
  args: [{
131
131
  selector: '[axCollapseItemHeader]',
@@ -142,8 +142,8 @@ const COMPONENT = [
142
142
  ];
143
143
  const MODULES = [CommonModule];
144
144
  class AXCollapseModule {
145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
146
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseModule, imports: [CommonModule, AXCollapseGrouplDirective,
145
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
146
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseModule, imports: [CommonModule, AXCollapseGrouplDirective,
147
147
  AXCollapseItemContentlDirective,
148
148
  AXCollapseItemHeaderlDirective,
149
149
  AXCollapseItemlDirective,
@@ -152,9 +152,9 @@ class AXCollapseModule {
152
152
  AXCollapseItemHeaderlDirective,
153
153
  AXCollapseItemlDirective,
154
154
  AXCollapseCloseButtonDirective] }); }
155
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseModule, imports: [MODULES] }); }
155
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseModule, imports: [MODULES] }); }
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXCollapseModule, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: AXCollapseModule, decorators: [{
158
158
  type: NgModule,
159
159
  args: [{
160
160
  imports: [...MODULES, ...COMPONENT],