@acorex/components 5.1.1 → 5.1.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.
@@ -0,0 +1,51 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AXItemClickEvent } from '..';
3
+ import { AXBaseComponent } from './base-components.class';
4
+ import { Constructor } from './constratctor';
5
+ export declare function _BaseMenuComponentMixin<TBase extends Constructor<AXBaseComponent>>(Base: TBase): {
6
+ new (...args: any[]): {
7
+ textField: string;
8
+ valueField: string;
9
+ "__#2@#isLoading": boolean;
10
+ "__#2@#loadedItems": any;
11
+ visible: string;
12
+ disableField: string;
13
+ hasChildField: string;
14
+ icon: string;
15
+ openMode: 'click' | 'hover';
16
+ onMenuItemClick: EventEmitter<AXItemClickEvent<any>>;
17
+ readonly loadedCount: number;
18
+ "__#2@#items": any;
19
+ items: any;
20
+ readonly displayItems: any;
21
+ readonly isLoading: boolean;
22
+ _formatData(v: any[]): any[];
23
+ _findNode(parentId: number, _children: any, source: any): void;
24
+ _fetchData(parentId?: number): void;
25
+ _onInternalInit(): void;
26
+ _getItemDisplayTextTemplte(item: any): any;
27
+ _trackLoaded(index: any, item: any): any;
28
+ id: string;
29
+ rtl: boolean;
30
+ "__#1@#elementRef": import("@angular/core").ElementRef<any>;
31
+ _cdr: import("@angular/core").ChangeDetectorRef;
32
+ _isInited: boolean;
33
+ _isRendered: boolean;
34
+ ngOnInit(): void;
35
+ ngAfterViewInit(): void;
36
+ ngOnDestroy(): void;
37
+ _getHostElement<T = HTMLElement>(): T;
38
+ _getInnerElement<T_1 = HTMLElement>(): T_1;
39
+ _onInternalViewInit(): void;
40
+ _onInternalDestroy(): void;
41
+ onInit(): void;
42
+ onRenderCssClass(): void;
43
+ onViewInit(): void;
44
+ onDestroy(): void;
45
+ _onOptionChanging(option: import("./base-components.class").AXComponentOptionChanging): any;
46
+ _onOptionChanged(option: import("./base-components.class").AXComponentOptionChanged): void;
47
+ _setOption(option: import("./base-components.class").AXComponentSetOption): void;
48
+ };
49
+ } & TBase;
50
+ export declare const BASEMENU_INPUTS: string[];
51
+ export declare const BASEMENU_OUTPUT: string[];
@@ -7,15 +7,15 @@ export declare function _DatalistComponenetMixin<TBase extends Constructor<AXBas
7
7
  textField: string;
8
8
  childrenField: string;
9
9
  pageSize: number;
10
- "__#2@#currentPage": number;
11
- "__#2@#isLoading": boolean;
12
- "__#2@#loadedItems": any[];
13
- "__#2@#flatItems": any[];
14
- "__#2@#totalItems": number;
15
- "__#2@#isLazy": boolean;
10
+ "__#3@#currentPage": number;
11
+ "__#3@#isLoading": boolean;
12
+ "__#3@#loadedItems": any[];
13
+ "__#3@#flatItems": any[];
14
+ "__#3@#totalItems": number;
15
+ "__#3@#isLazy": boolean;
16
16
  readonly totalCount: number;
17
17
  readonly loadedCount: number;
18
- "__#2@#items": AXDataListItems;
18
+ "__#3@#items": AXDataListItems;
19
19
  items: AXDataListItems;
20
20
  readonly displayItems: any[];
21
21
  readonly flatItems: any[];
@@ -25,7 +25,7 @@ export declare function _DatalistComponenetMixin<TBase extends Constructor<AXBas
25
25
  searchQuery?: string;
26
26
  }): void;
27
27
  _onDataLoaded(): void;
28
- "__#2@#generateFlatItems"(): void;
28
+ "__#3@#generateFlatItems"(): void;
29
29
  _getItemDisplayTextTemplte(item: any): any;
30
30
  _trackByFunction(item: any): any;
31
31
  refresh(): void;
@@ -3,12 +3,12 @@ import { AXBaseComponent } from "./base-components.class";
3
3
  import { Constructor } from "./constratctor";
4
4
  import { AXFocusEvent } from "../events.class";
5
5
  export declare function _InteractiveComponenetMixin<TBase extends Constructor<AXBaseComponent>>(Base: TBase): (abstract new (...args: any[]) => {
6
- "__#3@#disabled": boolean;
6
+ "__#4@#disabled": boolean;
7
7
  /**
8
8
  * If set to true, it disables the component.
9
9
  */
10
10
  disabled: boolean;
11
- "__#3@#tabIndex": number;
11
+ "__#4@#tabIndex": number;
12
12
  /**
13
13
  * Specifies the tabindex of the component.
14
14
  */
@@ -101,9 +101,9 @@ export declare const AXInteractiveComponenetMixin: {
101
101
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
102
102
  };
103
103
  } & (abstract new (...args: any[]) => {
104
- "__#3@#disabled": boolean;
104
+ "__#4@#disabled": boolean;
105
105
  disabled: boolean;
106
- "__#3@#tabIndex": number;
106
+ "__#4@#tabIndex": number;
107
107
  tabIndex: number;
108
108
  onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
109
109
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -134,9 +134,9 @@ export declare const AXInteractiveComponenetMixin: {
134
134
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
135
135
  }) & typeof AXBaseComponent;
136
136
  export declare const AXBaseClickableMixin: (abstract new (...args: any[]) => {
137
- "__#3@#disabled": boolean;
137
+ "__#4@#disabled": boolean;
138
138
  disabled: boolean;
139
- "__#3@#tabIndex": number;
139
+ "__#4@#tabIndex": number;
140
140
  tabIndex: number;
141
141
  onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
142
142
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -218,9 +218,9 @@ export declare const AXBaseButtonMixin: {
218
218
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
219
219
  };
220
220
  } & (abstract new (...args: any[]) => {
221
- "__#3@#disabled": boolean;
221
+ "__#4@#disabled": boolean;
222
222
  disabled: boolean;
223
- "__#3@#tabIndex": number;
223
+ "__#4@#tabIndex": number;
224
224
  tabIndex: number;
225
225
  onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
226
226
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -372,9 +372,9 @@ export declare const AXBaseTextBoxMixin: {
372
372
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
373
373
  };
374
374
  } & (abstract new (...args: any[]) => {
375
- "__#3@#disabled": boolean;
375
+ "__#4@#disabled": boolean;
376
376
  disabled: boolean;
377
- "__#3@#tabIndex": number;
377
+ "__#4@#tabIndex": number;
378
378
  tabIndex: number;
379
379
  onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
380
380
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -407,19 +407,19 @@ export declare const AXBaseTextBoxMixin: {
407
407
  new (...args: any[]): {
408
408
  onValueChanged: import("@angular/core").EventEmitter<import("@acorex/components").AXValueChangedEvent<any>>;
409
409
  valueChange: import("@angular/core").EventEmitter<any>;
410
- "__#4@#readonly": boolean;
410
+ "__#5@#readonly": boolean;
411
411
  readonly: boolean;
412
- "__#4@#allowNull": boolean;
412
+ "__#5@#allowNull": boolean;
413
413
  allowNull: boolean;
414
- "__#4@#name": string;
414
+ "__#5@#name": string;
415
415
  name: string;
416
- "__#4@#debounceTime": number;
416
+ "__#5@#debounceTime": number;
417
417
  debounceTime: number;
418
- "__#4@#valueSubscription": import("rxjs").Subscription;
419
- "__#4@#valueSubject": import("rxjs").Subject<unknown>;
420
- "__#4@#value": any;
418
+ "__#5@#valueSubscription": import("rxjs").Subscription;
419
+ "__#5@#valueSubject": import("rxjs").Subject<unknown>;
420
+ "__#5@#value": any;
421
421
  value: any;
422
- "__#4@#state": "error" | "clear" | "success";
422
+ "__#5@#state": "error" | "clear" | "success";
423
423
  readonly state: "error" | "clear" | "success";
424
424
  _emitOnValueChangedEvent(oldValue?: any, newValue?: any): void;
425
425
  _onInternalValueChanging(value: any): any;
@@ -511,9 +511,9 @@ export declare const AXBaseDropdownMixin: {
511
511
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
512
512
  };
513
513
  } & (abstract new (...args: any[]) => {
514
- "__#3@#disabled": boolean;
514
+ "__#4@#disabled": boolean;
515
515
  disabled: boolean;
516
- "__#3@#tabIndex": number;
516
+ "__#4@#tabIndex": number;
517
517
  tabIndex: number;
518
518
  onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
519
519
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -576,14 +576,61 @@ export declare const AXBaseDropdownMixin: {
576
576
  _onOptionChanged(option: import("./base-components.class").AXComponentOptionChanged): void;
577
577
  _setOption(option: import("./base-components.class").AXComponentSetOption): void;
578
578
  }) & typeof AXBaseComponent;
579
- export declare const AXBaseProgressMixin: {
579
+ export declare const AXBaseMenuMixin: (abstract new (...args: any[]) => {
580
+ "__#4@#disabled": boolean;
581
+ disabled: boolean;
582
+ "__#4@#tabIndex": number;
583
+ tabIndex: number;
584
+ onFocus: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
585
+ _emitOnFocusEvent(e: FocusEvent): void;
586
+ onBlur: import("@angular/core").EventEmitter<import("@acorex/components").AXFocusEvent>;
587
+ _emitOnBlurEvent(e: FocusEvent): void;
588
+ focus(): void;
589
+ hasFocus(): boolean;
590
+ id: string;
591
+ rtl: boolean;
592
+ "__#1@#elementRef": import("@angular/core").ElementRef<any>;
593
+ _cdr: import("@angular/core").ChangeDetectorRef;
594
+ _isInited: boolean;
595
+ _isRendered: boolean;
596
+ ngOnInit(): void;
597
+ ngAfterViewInit(): void;
598
+ ngOnDestroy(): void;
599
+ _getHostElement<T = HTMLElement>(): T;
600
+ _getInnerElement<T_1 = HTMLElement>(): T_1;
601
+ _onInternalInit(): void;
602
+ _onInternalViewInit(): void;
603
+ _onInternalDestroy(): void;
604
+ onInit(): void;
605
+ onRenderCssClass(): void;
606
+ onViewInit(): void;
607
+ onDestroy(): void;
608
+ _onOptionChanging(option: import("./base-components.class").AXComponentOptionChanging): any;
609
+ _onOptionChanged(option: import("./base-components.class").AXComponentOptionChanged): void;
610
+ _setOption(option: import("./base-components.class").AXComponentSetOption): void;
611
+ }) & {
580
612
  new (...args: any[]): {
581
- colorChange: import("@angular/core").EventEmitter<import("@acorex/components").AXStyleColorType>;
582
- _color: import("@acorex/components").AXStyleColorType;
583
- color: import("@acorex/components").AXStyleColorType;
584
- lookChange: import("@angular/core").EventEmitter<import("@acorex/components").AXStyleButtonLook>;
585
- _look?: import("@acorex/components").AXStyleButtonLook;
586
- look: import("@acorex/components").AXStyleButtonLook;
613
+ textField: string;
614
+ valueField: string;
615
+ "__#2@#isLoading": boolean;
616
+ "__#2@#loadedItems": any;
617
+ visible: string;
618
+ disableField: string;
619
+ hasChildField: string;
620
+ icon: string;
621
+ openMode: "click" | "hover";
622
+ onMenuItemClick: import("@angular/core").EventEmitter<import("@acorex/components").AXItemClickEvent<any>>;
623
+ readonly loadedCount: number;
624
+ "__#2@#items": any;
625
+ items: any;
626
+ readonly displayItems: any;
627
+ readonly isLoading: boolean;
628
+ _formatData(v: any[]): any[];
629
+ _findNode(parentId: number, _children: any, source: any): void;
630
+ _fetchData(parentId?: number): void;
631
+ _onInternalInit(): void;
632
+ _getItemDisplayTextTemplte(item: any): any;
633
+ _trackLoaded(index: any, item: any): any;
587
634
  id: string;
588
635
  rtl: boolean;
589
636
  "__#1@#elementRef": import("@angular/core").ElementRef<any>;
@@ -595,7 +642,6 @@ export declare const AXBaseProgressMixin: {
595
642
  ngOnDestroy(): void;
596
643
  _getHostElement<T = HTMLElement>(): T;
597
644
  _getInnerElement<T_1 = HTMLElement>(): T_1;
598
- _onInternalInit(): void;
599
645
  _onInternalViewInit(): void;
600
646
  _onInternalDestroy(): void;
601
647
  onInit(): void;
@@ -12,22 +12,22 @@ export declare function _ValueComponenetMixin<TBase extends Constructor<AXBaseCo
12
12
  */
13
13
  onValueChanged: EventEmitter<AXValueChangedEvent<any>>;
14
14
  valueChange: EventEmitter<any>;
15
- "__#4@#readonly": boolean;
15
+ "__#5@#readonly": boolean;
16
16
  /**
17
17
  * If set to true, user cannot change the value of component.
18
18
  */
19
19
  readonly: boolean;
20
- "__#4@#allowNull": boolean;
20
+ "__#5@#allowNull": boolean;
21
21
  allowNull: boolean;
22
- "__#4@#name": string;
22
+ "__#5@#name": string;
23
23
  name: string;
24
- "__#4@#debounceTime": number;
24
+ "__#5@#debounceTime": number;
25
25
  debounceTime: number;
26
- "__#4@#valueSubscription": Subscription;
27
- "__#4@#valueSubject": Subject<unknown>;
28
- "__#4@#value": any;
26
+ "__#5@#valueSubscription": Subscription;
27
+ "__#5@#valueSubject": Subject<unknown>;
28
+ "__#5@#value": any;
29
29
  value: any;
30
- "__#4@#state": 'clear' | 'success' | 'error';
30
+ "__#5@#state": 'clear' | 'success' | 'error';
31
31
  readonly state: "error" | "clear" | "success";
32
32
  _emitOnValueChangedEvent(oldValue?: any, newValue?: any): void;
33
33
  _onInternalValueChanging(value: any): any;
@@ -2,9 +2,9 @@ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
2
  import { AXBaseComponent, AXStyleColorType } from '../base';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare const AXBaseItemButtonMixin: (abstract new (...args: any[]) => {
5
- "__#3@#disabled": boolean;
5
+ "__#4@#disabled": boolean;
6
6
  disabled: boolean;
7
- "__#3@#tabIndex": number;
7
+ "__#4@#tabIndex": number;
8
8
  tabIndex: number;
9
9
  onFocus: import("@angular/core").EventEmitter<import("../base").AXFocusEvent>;
10
10
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -5,9 +5,9 @@ import { AXCalendarBaseComponent, AXCalendarNavigateEvent } from '../calendar/ca
5
5
  import { AXPopoverComponent } from '../popover/popover.component';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare const AXBaseDatePickerMixin: (abstract new (...args: any[]) => {
8
- "__#3@#disabled": boolean;
8
+ "__#4@#disabled": boolean;
9
9
  disabled: boolean;
10
- "__#3@#tabIndex": number;
10
+ "__#4@#tabIndex": number;
11
11
  tabIndex: number;
12
12
  onFocus: EventEmitter<import("../base").AXFocusEvent>;
13
13
  _emitOnFocusEvent(e: FocusEvent): void;
@@ -73,19 +73,19 @@ export declare const AXBaseDatePickerMixin: (abstract new (...args: any[]) => {
73
73
  new (...args: any[]): {
74
74
  onValueChanged: EventEmitter<import("../base").AXValueChangedEvent<any>>;
75
75
  valueChange: EventEmitter<any>;
76
- "__#4@#readonly": boolean;
76
+ "__#5@#readonly": boolean;
77
77
  readonly: boolean;
78
- "__#4@#allowNull": boolean;
78
+ "__#5@#allowNull": boolean;
79
79
  allowNull: boolean;
80
- "__#4@#name": string;
80
+ "__#5@#name": string;
81
81
  name: string;
82
- "__#4@#debounceTime": number;
82
+ "__#5@#debounceTime": number;
83
83
  debounceTime: number;
84
- "__#4@#valueSubscription": import("rxjs").Subscription;
85
- "__#4@#valueSubject": import("rxjs").Subject<unknown>;
86
- "__#4@#value": any;
84
+ "__#5@#valueSubscription": import("rxjs").Subscription;
85
+ "__#5@#valueSubject": import("rxjs").Subject<unknown>;
86
+ "__#5@#value": any;
87
87
  value: any;
88
- "__#4@#state": "error" | "clear" | "success";
88
+ "__#5@#state": "error" | "clear" | "success";
89
89
  readonly state: "error" | "clear" | "success";
90
90
  _emitOnValueChangedEvent(oldValue?: any, newValue?: any): void;
91
91
  _onInternalValueChanging(value: any): any;
@@ -137,6 +137,7 @@ export declare class AXDatePickerComponent extends AXBaseDatePickerMixin {
137
137
  constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef, _platform: AXPlatform);
138
138
  onInit(): void;
139
139
  private _updateDisplayText;
140
+ _handlePopoverOpened(e: any): void;
140
141
  _handleArrowClickEvent(e: AXClickEvent): void;
141
142
  _onValueChanged(oldValue?: any, newValue?: any): void;
142
143
  _onOptionChanged(option: AXComponentOptionChanged): void;
@@ -1,5 +1,5 @@
1
- import { ElementRef, ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { AXBaseComponentMixin, AXItemClickEvent } from '../base';
1
+ import { ElementRef, ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { AXBaseMenuMixin } from '../base';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface AXMenuItems {
5
5
  id?: string;
@@ -23,18 +23,15 @@ export interface AXMenuItems {
23
23
  *
24
24
  * @category Components
25
25
  */
26
- export declare class AXMenuComponent extends AXBaseComponentMixin {
26
+ export declare class AXMenuComponent extends AXBaseMenuMixin implements OnInit {
27
27
  private elementRef;
28
28
  private cdr;
29
- /**
30
- * @ignore
31
- */
32
29
  constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
33
- items: AXMenuItems[];
34
- onMenuItemClick: EventEmitter<AXItemClickEvent<AXMenuItems>>;
35
- onMenuClick(e: MouseEvent, item: AXMenuItems): void;
36
- notActive(items: AXMenuItems[]): void;
37
- closeChild(items: AXMenuItems[]): void;
30
+ onInit(): void;
31
+ ngAfterViewInit(): void;
32
+ onMenuClick(e: MouseEvent, item: any): void;
33
+ notActive(items: any[]): void;
34
+ closeChild(items: any[]): void;
38
35
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuComponent, "ax-menu", never, { "items": "items"; }, { "onMenuItemClick": "onMenuItemClick"; }, never, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXMenuComponent, "ax-menu", never, { "disabled": "disabled"; "tabIndex": "tabIndex"; "textField": "textField"; "valueField": "valueField"; "items": "items"; "id": "id"; "parentId": "parentId"; "icon": "icon"; "tooltip": "tooltip"; "isOpen": "isOpen"; "isActive": "isActive"; "visible": "visible"; "disableField": "disableField"; "hasChildField": "hasChildField"; "openMode": "openMode"; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, never>;
40
37
  }
@@ -2,8 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./menu.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "../icon/icon.module";
5
+ import * as i4 from "../loading/loading.module";
6
+ import * as i5 from "@acorex/core";
5
7
  export declare class AXMenuModule {
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMenuModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXMenuModule, [typeof i1.AXMenuComponent], [typeof i2.CommonModule, typeof i3.AXIconModule], [typeof i1.AXMenuComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXMenuModule, [typeof i1.AXMenuComponent], [typeof i2.CommonModule, typeof i3.AXIconModule, typeof i4.AXLoadingModule, typeof i5.AXTranslationModule], [typeof i1.AXMenuComponent]>;
8
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AXMenuModule>;
9
11
  }
@@ -29,7 +29,7 @@ export declare const AXBaseTabItemMixin: {
29
29
  };
30
30
  } & typeof AXBaseComponent;
31
31
  export declare class AXTabItemComponent extends AXBaseTabItemMixin {
32
- constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
32
+ constructor(_elementRef: ElementRef, _cdr: ChangeDetectorRef);
33
33
  text: string;
34
34
  key: string;
35
35
  template: TemplateRef<any>;
@@ -12,6 +12,7 @@ export declare class AXTabsComponent extends AXBaseComponent {
12
12
  constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
13
13
  private _isUserInteraction;
14
14
  get items(): AXTabItemComponent[];
15
+ private _selectedItem;
15
16
  get selectedIndex(): number;
16
17
  get selectedItem(): AXTabItemComponent;
17
18
  onActiveTabChanged: EventEmitter<AXTabStripChangedEvent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.2",
6
6
  "@angular/core": "^13.3.2",