@acorex/components 20.1.34 → 20.1.36
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/accordion/index.d.ts +6 -5
- package/command/index.d.ts +13 -3
- package/comment/index.d.ts +6 -0
- package/data-table/index.d.ts +58 -2
- package/dialog/index.d.ts +29 -4
- package/drawer-2/index.d.ts +15 -0
- package/dropdown-button/index.d.ts +7 -2
- package/fesm2022/acorex-components-accordion.mjs +65 -58
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +52 -8
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +7 -1
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +58 -2
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +34 -9
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-2.mjs +15 -0
- package/fesm2022/acorex-components-drawer-2.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +7 -2
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +10 -0
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +115 -5
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +12 -1
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs} +12 -11
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BdrQgtUV.mjs.map → acorex-components-modal-acorex-components-modal-DTUAOsgv.mjs.map} +1 -1
- package/fesm2022/{acorex-components-modal-modal-content.component-DTrjX50k.mjs → acorex-components-modal-modal-content.component-Co2yaRpp.mjs} +20 -19
- package/fesm2022/acorex-components-modal-modal-content.component-Co2yaRpp.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +31 -4
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +947 -84
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/form/index.d.ts +10 -0
- package/grid-layout-builder/index.d.ts +115 -4
- package/menu/index.d.ts +12 -0
- package/modal/index.d.ts +3 -2
- package/package.json +1 -1
- package/scheduler/index.d.ts +363 -244
- package/fesm2022/acorex-components-modal-modal-content.component-DTrjX50k.mjs.map +0 -1
@@ -113,27 +113,35 @@ declare class AXGridLayoutWidgetComponent {
|
|
113
113
|
options: _angular_core.InputSignal<AXGridLayoutNode>;
|
114
114
|
/**
|
115
115
|
* Locks or unlocks the widget (prevents dragging and resizing).
|
116
|
-
*
|
116
|
+
*
|
117
|
+
* @param state - If true, the widget will be locked.
|
118
|
+
* @returns void - No return value. The widget lock state is updated.
|
117
119
|
*/
|
118
120
|
setLockable(state: boolean): void;
|
119
121
|
/**
|
120
122
|
* Enables or disables resizing of the widget.
|
121
|
-
*
|
123
|
+
*
|
124
|
+
* @param state - If true, resizing will be enabled.
|
125
|
+
* @returns void - No return value. The widget resize state is updated.
|
122
126
|
*/
|
123
127
|
setResizable(state: boolean): void;
|
124
128
|
/**
|
125
129
|
* Updates the widget options.
|
130
|
+
*
|
126
131
|
* @param options - The new options for the widget.
|
132
|
+
* @returns void - No return value. The widget options are updated.
|
127
133
|
*/
|
128
134
|
setOptions(options: AXGridLayoutWidget): void;
|
129
135
|
/**
|
130
136
|
* Returns the current options of the widget.
|
131
|
-
*
|
137
|
+
*
|
138
|
+
* @returns AXGridLayoutNode - The current widget options.
|
132
139
|
*/
|
133
140
|
getOptions(): AXGridLayoutNode;
|
134
141
|
/**
|
135
142
|
* Returns the native DOM element of the widget.
|
136
|
-
*
|
143
|
+
*
|
144
|
+
* @returns AXGridLayoutWidgetElement - The native element.
|
137
145
|
*/
|
138
146
|
get element(): AXGridLayoutWidgetElement;
|
139
147
|
/**
|
@@ -167,21 +175,124 @@ declare class AXGridLayoutContainerComponent extends NXComponent implements OnDe
|
|
167
175
|
private hookEvents;
|
168
176
|
private unhookEvents;
|
169
177
|
private _dispatchChangeEvent;
|
178
|
+
/**
|
179
|
+
* Adds a widget to the grid layout.
|
180
|
+
*
|
181
|
+
* @param w - Widget configuration object.
|
182
|
+
* @param withAutoArrange - Whether to compact the grid before adding the widget.
|
183
|
+
* @returns AXGridLayoutWidgetElement | undefined - The created widget element or undefined if failed.
|
184
|
+
*/
|
170
185
|
addWidget(w: AXGridLayoutWidget, withAutoArrange?: boolean): AXGridLayoutWidgetElement | undefined;
|
186
|
+
/**
|
187
|
+
* Compacts the grid layout.
|
188
|
+
*
|
189
|
+
* @param layout - Layout type for compacting ('list' or 'compact').
|
190
|
+
* @param doSort - Whether to sort items while compacting.
|
191
|
+
* @returns void - No return value. The grid layout is compacted.
|
192
|
+
*/
|
171
193
|
compact(layout?: 'list' | 'compact', doSort?: boolean): void;
|
194
|
+
/**
|
195
|
+
* Sets the cell height of the grid.
|
196
|
+
*
|
197
|
+
* @param val - New cell height value.
|
198
|
+
* @param update - Whether to update the grid immediately.
|
199
|
+
* @returns void - No return value. The cell height is updated.
|
200
|
+
*/
|
172
201
|
setCellHeight(val: number, update?: boolean): void;
|
202
|
+
/**
|
203
|
+
* Sets the number of columns in the grid.
|
204
|
+
*
|
205
|
+
* @param column - Number of columns.
|
206
|
+
* @param layout - Layout type for the change ('list', 'compact', 'moveScale', 'move', 'scale', or 'none').
|
207
|
+
* @returns void - No return value. The column count is updated.
|
208
|
+
*/
|
173
209
|
setColumn(column: number, layout?: 'list' | 'compact' | 'moveScale' | 'move' | 'scale' | 'none'): void;
|
210
|
+
/**
|
211
|
+
* Destroys the grid instance.
|
212
|
+
*
|
213
|
+
* @param removeDOM - Whether to remove DOM elements.
|
214
|
+
* @returns void - No return value. The grid instance is destroyed.
|
215
|
+
*/
|
174
216
|
destroy(removeDOM?: boolean): void;
|
217
|
+
/**
|
218
|
+
* Enables or disables moving of widgets.
|
219
|
+
*
|
220
|
+
* @param state - Whether to enable moving.
|
221
|
+
* @param recurse - Whether to apply to all child widgets.
|
222
|
+
* @returns void - No return value. The move state is updated.
|
223
|
+
*/
|
175
224
|
setMovable(state: boolean, recurse?: boolean): void;
|
225
|
+
/**
|
226
|
+
* Enables or disables resizing of widgets.
|
227
|
+
*
|
228
|
+
* @param state - Whether to enable resizing.
|
229
|
+
* @param recurse - Whether to apply to all child widgets.
|
230
|
+
* @returns void - No return value. The resize state is updated.
|
231
|
+
*/
|
176
232
|
setResizable(state: boolean, recurse?: boolean): void;
|
233
|
+
/**
|
234
|
+
* Sets the float property of the grid.
|
235
|
+
*
|
236
|
+
* @param val - Whether to enable floating widgets.
|
237
|
+
* @returns void - No return value. The float state is updated.
|
238
|
+
*/
|
177
239
|
setFloat(val: boolean): void;
|
240
|
+
/**
|
241
|
+
* Sets the margin between grid items.
|
242
|
+
*
|
243
|
+
* @param value - Margin value (number in pixels or string with units).
|
244
|
+
* @returns void - No return value. The margin is updated.
|
245
|
+
*/
|
178
246
|
setMargin(value: number | string): void;
|
247
|
+
/**
|
248
|
+
* Removes a specific widget from the grid.
|
249
|
+
*
|
250
|
+
* @param el - The widget element to remove.
|
251
|
+
* @param removeDOM - Whether to remove the DOM element.
|
252
|
+
* @param triggerEvent - Whether to trigger removal events.
|
253
|
+
* @returns void - No return value. The widget is removed.
|
254
|
+
*/
|
179
255
|
removeWidget(el: AXGridLayoutWidgetElement, removeDOM?: boolean, triggerEvent?: boolean): void;
|
256
|
+
/**
|
257
|
+
* Removes all widgets from the grid.
|
258
|
+
*
|
259
|
+
* @param removeDOM - Whether to remove DOM elements.
|
260
|
+
* @returns void - No return value. All widgets are removed.
|
261
|
+
*/
|
180
262
|
removeAll(removeDOM?: boolean): void;
|
263
|
+
/**
|
264
|
+
* Sets the animation state for the grid.
|
265
|
+
*
|
266
|
+
* @param doAnimate - Whether to enable animations.
|
267
|
+
* @returns void - No return value. The animation state is updated.
|
268
|
+
*/
|
181
269
|
setAnimation(doAnimate: boolean): void;
|
270
|
+
/**
|
271
|
+
* Sets up draggable functionality for external elements.
|
272
|
+
*
|
273
|
+
* @param dragIn - CSS selector string or array of HTML elements to make draggable.
|
274
|
+
* @param widgets - Optional widget configuration for dragged items.
|
275
|
+
* @returns Promise<void> - Promise that resolves when drag setup is complete.
|
276
|
+
*/
|
182
277
|
setupDraggable(dragIn?: string | HTMLElement[], widgets?: AXGridLayoutWidget): Promise<void>;
|
278
|
+
/**
|
279
|
+
* Gets the current grid options.
|
280
|
+
*
|
281
|
+
* @returns AXGridLayoutOptions - Current grid configuration options.
|
282
|
+
*/
|
183
283
|
getOptions(): AXGridLayoutOptions;
|
284
|
+
/**
|
285
|
+
* Gets all child widgets in the grid.
|
286
|
+
*
|
287
|
+
* @returns AXGridLayoutNode[] - Array of all child widget nodes.
|
288
|
+
*/
|
184
289
|
getChildren(): AXGridLayoutNode[];
|
290
|
+
/**
|
291
|
+
* Finds an empty space in the grid for a widget.
|
292
|
+
*
|
293
|
+
* @param input - Dimensions of the widget with height and width.
|
294
|
+
* @returns { x: number; y: number } - Object containing x and y coordinates of empty space.
|
295
|
+
*/
|
185
296
|
findEmptySpace(input: Required<Pick<AXGridLayoutPosition, 'height' | 'width'>>): Pick<AXGridLayoutPosition, 'x' | 'y'>;
|
186
297
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXGridLayoutContainerComponent, never>;
|
187
298
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXGridLayoutContainerComponent, "ax-grid-layout-container", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "isEmpty": { "alias": "isEmpty"; "required": false; "isSignal": true; }; }, { "onAdded": "onAdded"; "onRemoved": "onRemoved"; "onWidgetChange": "onWidgetChange"; "onChange": "onChange"; "onRender": "onRender"; "isEmpty": "isEmptyChange"; }, ["gridstackItems"], ["*"], true, never>;
|
package/menu/index.d.ts
CHANGED
@@ -68,8 +68,20 @@ declare class AXContextMenuComponent extends NXComponent {
|
|
68
68
|
/** @ignore */
|
69
69
|
constructor();
|
70
70
|
ngOnDestroy(): void;
|
71
|
+
/**
|
72
|
+
* Refreshes the context menu by rebinding event listeners to target elements.
|
73
|
+
*/
|
71
74
|
refresh(): void;
|
75
|
+
/**
|
76
|
+
* Shows the context menu at a specific point.
|
77
|
+
* @param point - The coordinates where the menu should appear
|
78
|
+
* @param targetElement - Optional target element for the context menu
|
79
|
+
* @param event - Optional opening event with menu items
|
80
|
+
*/
|
72
81
|
showAt(point: AXPoint, targetElement?: HTMLElement, event?: AXContextMenuOpeningEvent): void;
|
82
|
+
/**
|
83
|
+
* Closes the context menu and removes the backdrop.
|
84
|
+
*/
|
73
85
|
close(): void;
|
74
86
|
private backdropElement;
|
75
87
|
private originalNextSibling;
|
package/modal/index.d.ts
CHANGED
@@ -25,6 +25,7 @@ interface AXModalOptions extends AXOverlayOptions {
|
|
25
25
|
header?: boolean;
|
26
26
|
footer?: boolean;
|
27
27
|
panelClass?: string;
|
28
|
+
closeOnEscape?: boolean;
|
28
29
|
}
|
29
30
|
interface AXModalRef<TResult = any> {
|
30
31
|
minimize: () => void;
|
@@ -35,13 +36,13 @@ interface AXModalRef<TResult = any> {
|
|
35
36
|
onClose: Subject<TResult>;
|
36
37
|
}
|
37
38
|
declare abstract class AXModalComponentBase {
|
38
|
-
|
39
|
+
__modal__: i0.InputSignal<AXModalRef<any>>;
|
39
40
|
close(data?: any): void;
|
40
41
|
minimize(): void;
|
41
42
|
restore(): void;
|
42
43
|
maximize(): void;
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXModalComponentBase, never>;
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AXModalComponentBase, never, never, { "__modal__": { "alias": "__modal__"; "required": false; }; }, {}, never, never, true, never>;
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXModalComponentBase, never, never, { "__modal__": { "alias": "__modal__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
45
46
|
}
|
46
47
|
|
47
48
|
declare class AXModalComponent extends NXComponent {
|