@acorex/components 22.0.0-next.17 → 22.0.0-next.19
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/combo-box/README.md +3 -0
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +2 -2
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +646 -0
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -0
- package/fesm2022/acorex-components-cron-job.mjs +12 -12
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +2 -2
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +4 -3
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +6 -6
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +6 -2
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +2 -2
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +2 -2
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +16 -16
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +2 -2
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +176 -451
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +0 -4
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/package.json +7 -3
- package/select-box/README.md +2 -0
- package/types/acorex-components-combo-box.d.ts +197 -0
- package/types/acorex-components-phone-box.d.ts +2 -2
- package/types/acorex-components-query-builder.d.ts +10 -9
- package/types/acorex-components-select-box.d.ts +36 -147
- package/types/acorex-components-selection-list.d.ts +1 -2
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy, TemplateRef
|
|
2
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as polytype from 'polytype';
|
|
4
4
|
import * as i2 from '@acorex/cdk/common';
|
|
5
|
-
import { MXSelectionValueComponent, MXLookComponent,
|
|
5
|
+
import { MXSelectionValueComponent, MXLookComponent, MXSelectionBridgeService, AXEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
6
6
|
import * as i12 from '@acorex/components/dropdown';
|
|
7
7
|
import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent } from '@acorex/components/dropdown';
|
|
8
|
-
import * as i13 from '@acorex/components/list';
|
|
9
|
-
import { AXListComponent } from '@acorex/components/list';
|
|
10
8
|
import { AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
9
|
import * as i1 from '@angular/common';
|
|
13
10
|
import * as i3 from '@angular/forms';
|
|
14
11
|
import * as i4 from '@acorex/components/check-box';
|
|
@@ -19,35 +16,26 @@ import * as i8 from '@acorex/components/popover';
|
|
|
19
16
|
import * as i9 from '@acorex/components/loading';
|
|
20
17
|
import * as i10 from '@angular/cdk/a11y';
|
|
21
18
|
import * as i11 from '@acorex/components/text-box';
|
|
19
|
+
import * as i13 from '@acorex/components/selection-list';
|
|
22
20
|
|
|
23
21
|
declare const AXSelectBoxComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXDropdownBoxBaseComponent, typeof MXSelectionValueComponent, typeof MXLookComponent]>;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* Simple dropdown select for a static items array.
|
|
24
|
+
* For AXDataSource / lazy-load support, use ComboBox.
|
|
27
25
|
*/
|
|
28
26
|
declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements OnDestroy {
|
|
29
27
|
#private;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly showItemTooltip: _angular_core.InputSignal<boolean>;
|
|
42
|
-
private host;
|
|
43
|
-
/** Height of each list item in pixels, or 'auto' to let list measure. */
|
|
44
|
-
itemHeight: _angular_core.InputSignal<number | "auto">;
|
|
45
|
-
/** Maximum number of visible items before scrolling. */
|
|
46
|
-
maxVisibleItems: _angular_core.InputSignal<number>;
|
|
47
|
-
/** @ignore */
|
|
48
|
-
private hotKeyService;
|
|
49
|
-
/** @ignore */
|
|
50
|
-
protected isLoading: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
/** Static items shown in the dropdown. */
|
|
29
|
+
readonly items: _angular_core.InputSignal<any[]>;
|
|
30
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
31
|
+
readonly minRecordsForSearch: _angular_core.InputSignal<number>;
|
|
32
|
+
readonly caption: _angular_core.InputSignal<string>;
|
|
33
|
+
readonly itemTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
34
|
+
readonly selectedTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
35
|
+
readonly emptyTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
36
|
+
readonly maxVisibleItems: _angular_core.InputSignal<number>;
|
|
37
|
+
readonly dropdownWidth: _angular_core.InputSignal<string>;
|
|
38
|
+
readonly searchBoxAutoFocus: _angular_core.InputSignal<boolean>;
|
|
51
39
|
/** @ignore */
|
|
52
40
|
protected searchValue: _angular_core.WritableSignal<string>;
|
|
53
41
|
/** @ignore */
|
|
@@ -57,141 +45,42 @@ declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements
|
|
|
57
45
|
/** @ignore */
|
|
58
46
|
protected _dropdownHeight: _angular_core.WritableSignal<string>;
|
|
59
47
|
/** @ignore */
|
|
60
|
-
protected
|
|
61
|
-
|
|
62
|
-
private _originalDataSource;
|
|
63
|
-
/** @ignore */
|
|
64
|
-
private onChangedSubscription;
|
|
65
|
-
/** @ignore */
|
|
66
|
-
private onLoadingChangedSubscription;
|
|
67
|
-
/**
|
|
68
|
-
* Gets the data source for the component, which can be either an `AXDataSource` or an array of items.
|
|
69
|
-
* @returns {AXDataSource<any> | any[]}
|
|
70
|
-
*/
|
|
71
|
-
get dataSource(): AXDataSource<any> | any[];
|
|
72
|
-
/**
|
|
73
|
-
* Sets the data source, either as an `AXDataSource` or an array.
|
|
74
|
-
* @param {AXDataSource<any> | any[]} v
|
|
75
|
-
*/
|
|
76
|
-
set dataSource(v: AXDataSource<any> | any[]);
|
|
77
|
-
/**
|
|
78
|
-
* The placeholder text displayed when the component is empty.
|
|
79
|
-
* @param {string} placeholder
|
|
80
|
-
*/
|
|
81
|
-
placeholder: string;
|
|
82
|
-
/**
|
|
83
|
-
* The minRecordsForSearch defines the minimum number of records required to display the search box.
|
|
84
|
-
* @param {number} minRecordsForSearch
|
|
85
|
-
*/
|
|
86
|
-
minRecordsForSearch: number;
|
|
87
|
-
/**
|
|
88
|
-
* The caption text to be displayed in the component.
|
|
89
|
-
* @param {string} caption
|
|
90
|
-
*/
|
|
91
|
-
caption: string;
|
|
92
|
-
/**
|
|
93
|
-
* The template used to customize the rendering of items.
|
|
94
|
-
* @param {TemplateRef<any>} itemTemplate
|
|
95
|
-
*/
|
|
96
|
-
itemTemplate: TemplateRef<any>;
|
|
97
|
-
/**
|
|
98
|
-
* The template used to customize the rendering of selected items.
|
|
99
|
-
* @param {TemplateRef<any>} selectedTemplate
|
|
100
|
-
*/
|
|
101
|
-
selectedTemplate: TemplateRef<any>;
|
|
102
|
-
/**
|
|
103
|
-
* The template used to display when there are no items.
|
|
104
|
-
* @param {TemplateRef<any>} emptyTemplate
|
|
105
|
-
*/
|
|
106
|
-
emptyTemplate: TemplateRef<any>;
|
|
107
|
-
/**
|
|
108
|
-
* The template used to display while loading.
|
|
109
|
-
* @param {TemplateRef<any>} loadingTemplate
|
|
110
|
-
*/
|
|
111
|
-
loadingTemplate: TemplateRef<any>;
|
|
112
|
-
/**
|
|
113
|
-
* The width of the dropdown in pixels.
|
|
114
|
-
* @defaultValue null
|
|
115
|
-
*/
|
|
116
|
-
dropdownWidth: _angular_core.InputSignal<string>;
|
|
117
|
-
/** @ignore */
|
|
118
|
-
panel: ElementRef<HTMLDivElement>;
|
|
119
|
-
/** @ignore */
|
|
120
|
-
list: AXListComponent;
|
|
121
|
-
/** @ignore */
|
|
122
|
-
searchBox: AXSearchBoxComponent;
|
|
123
|
-
searchBoxAutoFocus: _angular_core.InputSignal<boolean>;
|
|
124
|
-
/** @ignore */
|
|
125
|
-
protected dropdown: AXDropdownBoxComponent;
|
|
126
|
-
/**
|
|
127
|
-
* Service for managing selection data, injected via `AX_SELECTION_DATA_TOKEN`.
|
|
128
|
-
*/
|
|
129
|
-
selectionService: MXSelectionBridgeService;
|
|
130
|
-
searchEvent: Observable<any>;
|
|
131
|
-
/** @ignore */
|
|
48
|
+
protected visibleItems: _angular_core.WritableSignal<any[]>;
|
|
49
|
+
private hotKeyService;
|
|
132
50
|
private _unsubscriber;
|
|
133
|
-
|
|
51
|
+
selectionService: MXSelectionBridgeService;
|
|
52
|
+
private readonly panel;
|
|
53
|
+
private readonly selectionList;
|
|
54
|
+
protected readonly searchBox: _angular_core.Signal<AXSearchBoxComponent>;
|
|
55
|
+
private readonly dropdownRef;
|
|
56
|
+
/** Required by MXDropdownBoxBaseComponent. */
|
|
57
|
+
protected get dropdown(): AXDropdownBoxComponent;
|
|
134
58
|
protected ngOnInit(): void;
|
|
135
|
-
/**
|
|
136
|
-
* Proactively fetches item data if the component has a value but no corresponding item data.
|
|
137
|
-
* This prevents showing "loading..." when the component has a value.
|
|
138
|
-
*/
|
|
139
|
-
private fetchItemDataIfNeeded;
|
|
140
|
-
/** @ignore */
|
|
141
59
|
ngOnDestroy(): void;
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
60
|
+
/** Finds an item by value key in the full items array. */
|
|
61
|
+
getItemByKey(key: any): any;
|
|
62
|
+
/** Filters visible items by textField contains. */
|
|
63
|
+
search(term: string): void;
|
|
64
|
+
/** Resets selection and closes the dropdown. */
|
|
65
|
+
refresh(): void;
|
|
66
|
+
internalValueChanged(value: any): void;
|
|
147
67
|
/** @ignore */
|
|
148
68
|
protected _handleOnOpenedEvent(e: AXEvent): void;
|
|
149
69
|
/** @ignore */
|
|
150
70
|
protected _handleOnClosedEvent(e: AXEvent): void;
|
|
151
71
|
/** @ignore */
|
|
152
|
-
protected
|
|
153
|
-
/** @ignore */
|
|
154
|
-
protected _handleBadgeRemove(e: MouseEvent, item: any): void;
|
|
72
|
+
protected _handleBadgeRemove(e: MouseEvent, item: unknown): void;
|
|
155
73
|
/** @ignore */
|
|
156
74
|
protected _handleValueChanged(e: AXValueChangedEvent): void;
|
|
157
75
|
/** @ignore */
|
|
158
|
-
protected
|
|
159
|
-
/** @ignore */
|
|
160
|
-
protected _handleItemSelected(e: AXItemSelectedEvent): void;
|
|
161
|
-
private resetSearchAfterSelection;
|
|
162
|
-
/** @ignore */
|
|
163
|
-
private setDropdownSize;
|
|
164
|
-
/**
|
|
165
|
-
* Shrinks list height to the visible overlay area so virtual scroll ends on fully
|
|
166
|
-
* visible rows instead of inside an overflow:hidden clipped region.
|
|
167
|
-
* @ignore
|
|
168
|
-
*/
|
|
169
|
-
private _fitListHeightToAvailableSpace;
|
|
170
|
-
private updateDropdownPosition;
|
|
171
|
-
private updateDropdownSize;
|
|
172
|
-
private _fitDropdownToContent;
|
|
173
|
-
internalValueChanged(value: any): void;
|
|
174
|
-
/** @ignore */
|
|
175
|
-
_handleKeydown(e: KeyboardEvent): void;
|
|
176
|
-
/** @ignore */
|
|
177
|
-
private selectItemByNav;
|
|
178
|
-
/**
|
|
179
|
-
* Filters the data source based on the provided search term.
|
|
180
|
-
* @param {string} term
|
|
181
|
-
*/
|
|
182
|
-
search(term: string): void;
|
|
183
|
-
/**
|
|
184
|
-
* Refreshes the component by resetting state, clearing selection cache, refreshing the list, and closing the component.
|
|
185
|
-
*/
|
|
186
|
-
refresh(): void;
|
|
187
|
-
hostClickListener(): void;
|
|
76
|
+
protected _handleKeydown(e: KeyboardEvent): void;
|
|
188
77
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXSelectBoxComponent, never>;
|
|
189
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "
|
|
78
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minRecordsForSearch": { "alias": "minRecordsForSearch"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "selectedTemplate": { "alias": "selectedTemplate"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "maxVisibleItems": { "alias": "maxVisibleItems"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchBoxAutoFocus": { "alias": "searchBoxAutoFocus"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onItemSelected": "onItemSelected"; "onItemClick": "onItemClick"; }, ["searchBox"], ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-search-box", "ax-footer", "ax-validation-rule"], true, never>;
|
|
190
79
|
}
|
|
191
80
|
|
|
192
81
|
declare class AXSelectBoxModule {
|
|
193
82
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXSelectBoxModule, never>;
|
|
194
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXSelectBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXCheckBoxModule, typeof i5.AXBadgeModule, typeof i6.AXDecoratorModule, typeof i7.AXTranslationModule, typeof i8.AXPopoverModule, typeof i9.AXLoadingModule, typeof i10.A11yModule, typeof i11.AXTextBoxModule, typeof i12.AXDropdownModule, typeof i13.
|
|
83
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXSelectBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXCheckBoxModule, typeof i5.AXBadgeModule, typeof i6.AXDecoratorModule, typeof i7.AXTranslationModule, typeof i8.AXPopoverModule, typeof i9.AXLoadingModule, typeof i10.A11yModule, typeof i11.AXTextBoxModule, typeof i12.AXDropdownModule, typeof i13.AXSelectionListModule, typeof AXSelectBoxComponent], [typeof AXSelectBoxComponent]>;
|
|
195
84
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXSelectBoxModule>;
|
|
196
85
|
}
|
|
197
86
|
|
|
@@ -6,7 +6,6 @@ import * as i2 from '@angular/forms';
|
|
|
6
6
|
import * as i3 from '@acorex/components/check-box';
|
|
7
7
|
import * as i4 from '@acorex/components/radio';
|
|
8
8
|
import * as i5 from '@acorex/components/label';
|
|
9
|
-
import * as i6 from '@acorex/components/form';
|
|
10
9
|
|
|
11
10
|
type AXSelectionListLook = 'solid' | 'divided' | 'card';
|
|
12
11
|
/**
|
|
@@ -85,7 +84,7 @@ declare class AXSelectionListComponent extends MXSelectionValueComponent {
|
|
|
85
84
|
|
|
86
85
|
declare class AXSelectionListModule {
|
|
87
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSelectionListModule, never>;
|
|
88
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXSelectionListModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.AXCheckBoxModule, typeof i4.AXRadioModule, typeof i5.AXLabelModule, typeof
|
|
87
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXSelectionListModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.AXCheckBoxModule, typeof i4.AXRadioModule, typeof i5.AXLabelModule, typeof AXSelectionListComponent], [typeof AXSelectionListComponent]>;
|
|
89
88
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXSelectionListModule>;
|
|
90
89
|
}
|
|
91
90
|
|