@acorex/components 16.19.48 → 16.19.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-components.mjs +631 -231
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/auto-complete/auto-complete.component.d.ts +77 -0
- package/lib/auto-complete/auto-complete.module.d.ts +14 -0
- package/lib/base/element.class.d.ts +2 -2
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +4 -1
- package/lib/date-picker/date-picker.component.d.ts +2 -1
- package/lib/popup/popup.component.d.ts +1 -0
- package/lib/popup/popup.service.d.ts +1 -0
- package/lib/tree-view/tree-view.component.d.ts +4 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export * from './lib/menu/menu2.component';
|
|
|
64
64
|
export * from './lib/menu/menu.module';
|
|
65
65
|
export * from './lib/side-menu/side-menu.component';
|
|
66
66
|
export * from './lib/side-menu/side-menu.module';
|
|
67
|
+
export * from './lib/auto-complete/auto-complete.component';
|
|
68
|
+
export * from './lib/auto-complete/auto-complete.module';
|
|
67
69
|
export * from './lib/number-box/number-box.component';
|
|
68
70
|
export * from './lib/number-box/number-box.module';
|
|
69
71
|
export * from './lib/page/content.component';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { AXBaseComponent, AXElementSize } from '../base/element.class';
|
|
3
|
+
import { AXHtmlEvent, AXValueEvent } from '../base/events.class';
|
|
4
|
+
import { AXDataSourceComponent } from '../data-source/datasource.component';
|
|
5
|
+
import { AXDropdownComponent } from '../dropdown/dropdown.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AXAutoCompleteComponent extends AXBaseComponent implements AfterViewInit, OnDestroy {
|
|
8
|
+
#private;
|
|
9
|
+
private el;
|
|
10
|
+
constructor(el: ElementRef);
|
|
11
|
+
listContainer: ElementRef<HTMLDivElement>;
|
|
12
|
+
private searchText$;
|
|
13
|
+
private searchTextSubscription;
|
|
14
|
+
private text;
|
|
15
|
+
protected resolvedItems: import("@angular/core").WritableSignal<unknown[]>;
|
|
16
|
+
private totalCount;
|
|
17
|
+
private localShowDropdownWhenClick;
|
|
18
|
+
private clickTimer;
|
|
19
|
+
dropdown: AXDropdownComponent;
|
|
20
|
+
isDropdownOpen: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
showDropdownWhenClick: import("@angular/core").InputSignal<boolean>;
|
|
22
|
+
value: import("@angular/core").WritableSignal<string>;
|
|
23
|
+
disabled: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
remoteOperation: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
readonly: import("@angular/core").InputSignal<boolean>;
|
|
26
|
+
allowClear: import("@angular/core").InputSignal<boolean>;
|
|
27
|
+
showDropDownButton: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
onDemandTranslate: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
rtl: import("@angular/core").InputSignal<any>;
|
|
30
|
+
dropdownWidth: import("@angular/core").InputSignal<string>;
|
|
31
|
+
size: import("@angular/core").InputSignal<AXElementSize>;
|
|
32
|
+
multiLine: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
fitParent: import("@angular/core").InputSignal<boolean>;
|
|
34
|
+
selectedItems: import("@angular/core").ModelSignal<any>;
|
|
35
|
+
onValueChanged: import("@angular/core").OutputEmitterRef<AXValueEvent<any>>;
|
|
36
|
+
onItemClick: import("@angular/core").OutputEmitterRef<AXValueEvent<any>>;
|
|
37
|
+
onFocus: import("@angular/core").OutputEmitterRef<AXHtmlEvent<Event>>;
|
|
38
|
+
onBlur: import("@angular/core").OutputEmitterRef<AXHtmlEvent<Event>>;
|
|
39
|
+
mode: import("@angular/core").InputSignal<"single" | "multiple">;
|
|
40
|
+
textAlign: import("@angular/core").InputSignal<"right" | "left">;
|
|
41
|
+
textField: import("@angular/core").InputSignal<string>;
|
|
42
|
+
valueField: import("@angular/core").InputSignal<string>;
|
|
43
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
44
|
+
showCheckBox: import("@angular/core").InputSignal<boolean>;
|
|
45
|
+
showLoading: import("@angular/core").WritableSignal<boolean>;
|
|
46
|
+
currentfocusedIndex: import("@angular/core").WritableSignal<number>;
|
|
47
|
+
disabledField: import("@angular/core").InputSignal<string>;
|
|
48
|
+
allowNull: import("@angular/core").InputSignal<boolean>;
|
|
49
|
+
bufferSize: import("@angular/core").WritableSignal<number>;
|
|
50
|
+
isDbClick: import("@angular/core").WritableSignal<boolean>;
|
|
51
|
+
disabledCallback: (e: {
|
|
52
|
+
item: any;
|
|
53
|
+
index: number;
|
|
54
|
+
}) => boolean;
|
|
55
|
+
private _contentDataSource;
|
|
56
|
+
private _dataSource;
|
|
57
|
+
get dataSource(): AXDataSourceComponent;
|
|
58
|
+
set dataSource(v: AXDataSourceComponent);
|
|
59
|
+
ngAfterViewInit(): void;
|
|
60
|
+
ngOnDestroy(): void;
|
|
61
|
+
scrolled(e: Event): void;
|
|
62
|
+
protected handleClick(): void;
|
|
63
|
+
protected textChange(e: any): void;
|
|
64
|
+
protected isItemSelected(item: any): boolean;
|
|
65
|
+
protected isItemDisabled(item: any): boolean;
|
|
66
|
+
private fetch;
|
|
67
|
+
private translateSearch;
|
|
68
|
+
protected handleItemClick(e: MouseEvent, item: unknown): void;
|
|
69
|
+
protected handleItemDbClick(e: MouseEvent, item: unknown): void;
|
|
70
|
+
private handleSelectedItemsChange;
|
|
71
|
+
protected handleKeyPress(e: KeyboardEvent): void;
|
|
72
|
+
private scrollToFocusedItem;
|
|
73
|
+
protected handleFocus(e: any): void;
|
|
74
|
+
protected handleBlur(e: any): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXAutoCompleteComponent, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXAutoCompleteComponent, "ax-auto-complete", never, { "showDropdownWhenClick": { "alias": "showDropdownWhenClick"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "remoteOperation": { "alias": "remoteOperation"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "showDropDownButton": { "alias": "showDropDownButton"; "required": false; "isSignal": true; }; "onDemandTranslate": { "alias": "onDemandTranslate"; "required": false; "isSignal": true; }; "rtl": { "alias": "rtl"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiLine": { "alias": "multiLine"; "required": false; "isSignal": true; }; "fitParent": { "alias": "fitParent"; "required": false; "isSignal": true; }; "selectedItems": { "alias": "selectedItems"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "textAlign": { "alias": "textAlign"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "showCheckBox": { "alias": "showCheckBox"; "required": false; "isSignal": true; }; "disabledField": { "alias": "disabledField"; "required": false; "isSignal": true; }; "allowNull": { "alias": "allowNull"; "required": false; "isSignal": true; }; "disabledCallback": { "alias": "disabledCallback"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "selectedItems": "selectedItemsChange"; "onValueChanged": "onValueChanged"; "onItemClick": "onItemClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, ["_contentDataSource"], ["[start]", "[end]"], false, never>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./auto-complete.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../dropdown/dropdown.module";
|
|
5
|
+
import * as i4 from "../textbox/textbox.module";
|
|
6
|
+
import * as i5 from "@acorex/core";
|
|
7
|
+
import * as i6 from "../checkbox/checkbox.module";
|
|
8
|
+
import * as i7 from "../loading/loading.module";
|
|
9
|
+
import * as i8 from "../searchbox/searchbox.module";
|
|
10
|
+
export declare class AXAutoCompleteModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXAutoCompleteModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXAutoCompleteModule, [typeof i1.AXAutoCompleteComponent], [typeof i2.CommonModule, typeof i3.AXDropdownModule, typeof i4.AXTextBoxModule, typeof i5.AXTranslatorModule, typeof i5.AXScrollModule, typeof i6.AXCheckBoxModule, typeof i7.AXLoadingModule, typeof i8.AXSearchBoxModule], [typeof i1.AXAutoCompleteComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXAutoCompleteModule>;
|
|
14
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AXValidation } from '../validation/validation.component';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
3
2
|
import { AXValidationRuleResult } from '../validation/validation.class';
|
|
3
|
+
import { AXValidation } from '../validation/validation.component';
|
|
4
4
|
import { AXHtmlEvent, AXValueEvent } from './events.class';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export type AXElementSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -17,8 +17,10 @@ export interface AXCalendarWeekend {
|
|
|
17
17
|
indexDay: number;
|
|
18
18
|
}
|
|
19
19
|
export declare class AXCalendarBoxComponent implements AXBaseSizableComponent {
|
|
20
|
+
#private;
|
|
20
21
|
private cdr;
|
|
21
22
|
private ref;
|
|
23
|
+
selectedDates: import("@angular/core").InputSignal<AXDateTime[]>;
|
|
22
24
|
weekdays: string[];
|
|
23
25
|
private d;
|
|
24
26
|
numRotate: number;
|
|
@@ -80,6 +82,7 @@ export declare class AXCalendarBoxComponent implements AXBaseSizableComponent {
|
|
|
80
82
|
setFocus(date: AXDateTime): void;
|
|
81
83
|
setToday(): void;
|
|
82
84
|
trackByFn(index: any, item: any): any;
|
|
85
|
+
updateSelectedDates(): void;
|
|
83
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXCalendarBoxComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXCalendarBoxComponent, "ax-calendar-box", never, { "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectableHoliday": { "alias": "selectableHoliday"; "required": false; }; "dayStyle": { "alias": "dayStyle"; "required": false; }; "dayMinMaxResoan": { "alias": "dayMinMaxResoan"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "view": { "alias": "view"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onValueChanged": "onValueChanged"; "onClick": "onClick"; "valueChange": "valueChange"; }, never, never, false, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXCalendarBoxComponent, "ax-calendar-box", never, { "selectedDates": { "alias": "selectedDates"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "selectableHoliday": { "alias": "selectableHoliday"; "required": false; }; "dayStyle": { "alias": "dayStyle"; "required": false; }; "dayMinMaxResoan": { "alias": "dayMinMaxResoan"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "view": { "alias": "view"; "required": false; }; "depth": { "alias": "depth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onValueChanged": "onValueChanged"; "onClick": "onClick"; "valueChange": "valueChange"; }, never, never, false, never>;
|
|
85
88
|
}
|
|
@@ -17,6 +17,7 @@ export declare class AXDatePickerComponent extends AXValidatableComponent implem
|
|
|
17
17
|
dropdown: AXDropdownComponent;
|
|
18
18
|
calendarRef: AXCalendarBoxComponent;
|
|
19
19
|
input: AXTextBoxComponent;
|
|
20
|
+
selectedDates: import("@angular/core").InputSignal<AXDateTime[]>;
|
|
20
21
|
dayStyle: any[];
|
|
21
22
|
dayMinMaxResoan: string;
|
|
22
23
|
yyyyMMdd: string;
|
|
@@ -98,5 +99,5 @@ export declare class AXDatePickerComponent extends AXValidatableComponent implem
|
|
|
98
99
|
navigate(value: number | AXDateTime): void;
|
|
99
100
|
ngOnDestroy(): void;
|
|
100
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXDatePickerComponent, never>;
|
|
101
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXDatePickerComponent, "ax-date-picker", never, { "dayStyle": { "alias": "dayStyle"; "required": false; }; "dayMinMaxResoan": { "alias": "dayMinMaxResoan"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "showToday": { "alias": "showToday"; "required": false; }; "selectableHoliday": { "alias": "selectableHoliday"; "required": false; }; "dateType": { "alias": "dateType"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "openByClick": { "alias": "openByClick"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "typeChange": "typeChange"; "onValueChanged": "onValueChanged"; "valueChange": "valueChange"; }, ["_contentValidation"], ["[start]", "[end]"], false, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXDatePickerComponent, "ax-date-picker", never, { "selectedDates": { "alias": "selectedDates"; "required": false; "isSignal": true; }; "dayStyle": { "alias": "dayStyle"; "required": false; }; "dayMinMaxResoan": { "alias": "dayMinMaxResoan"; "required": false; }; "validation": { "alias": "validation"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; "showToday": { "alias": "showToday"; "required": false; }; "selectableHoliday": { "alias": "selectableHoliday"; "required": false; }; "dateType": { "alias": "dateType"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "openByClick": { "alias": "openByClick"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "typeChange": "typeChange"; "onValueChanged": "onValueChanged"; "valueChange": "valueChange"; }, ["_contentValidation"], ["[start]", "[end]"], false, never>;
|
|
102
103
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, ElementRef, TemplateRef } from '@angular/core';
|
|
2
|
-
import { AXHtmlEvent, AXValueEvent } from '../base/events.class';
|
|
3
|
-
import { AXBaseComponent } from '../base/element.class';
|
|
4
|
-
import { AXContextMenuItemClickEvent, AXContextMenuPromiseFunction, AXContextMenuFunction } from '../context-menu/context-menu.directive';
|
|
5
1
|
import { AXMenuItem } from '@acorex/core';
|
|
2
|
+
import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
+
import { AXBaseComponent } from '../base/element.class';
|
|
4
|
+
import { AXHtmlEvent, AXValueEvent } from '../base/events.class';
|
|
5
|
+
import { AXContextMenuFunction, AXContextMenuItemClickEvent, AXContextMenuPromiseFunction } from '../context-menu/context-menu.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class AXTreeViewNode {
|
|
8
8
|
children: AXTreeViewNode[];
|