@acorex/components 19.11.0-next.1 → 19.11.0-next.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.
- package/dropdown-button/lib/dropdown-button.component.d.ts +1 -0
- package/fesm2022/acorex-components-action-sheet.mjs +11 -11
- package/fesm2022/acorex-components-alert.mjs +8 -8
- package/fesm2022/acorex-components-audio-wave.mjs +8 -8
- package/fesm2022/acorex-components-avatar.mjs +11 -11
- package/fesm2022/acorex-components-badge.mjs +8 -8
- package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
- package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
- package/fesm2022/acorex-components-button-group.mjs +11 -11
- package/fesm2022/acorex-components-button.mjs +15 -15
- package/fesm2022/acorex-components-calendar.mjs +15 -15
- package/fesm2022/acorex-components-check-box.mjs +11 -11
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +8 -8
- package/fesm2022/acorex-components-circular-progress.mjs +8 -8
- package/fesm2022/acorex-components-collapse.mjs +12 -12
- package/fesm2022/acorex-components-color-box.mjs +9 -9
- package/fesm2022/acorex-components-color-palette.mjs +26 -26
- package/fesm2022/acorex-components-comment.mjs +29 -29
- package/fesm2022/acorex-components-common.mjs +89 -89
- package/fesm2022/acorex-components-conversation.mjs +52 -52
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +47 -47
- package/fesm2022/acorex-components-data-pager.mjs +32 -32
- package/fesm2022/acorex-components-data-table.mjs +41 -41
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +9 -9
- package/fesm2022/acorex-components-datetime-input.mjs +9 -9
- package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
- package/fesm2022/acorex-components-decorators.mjs +26 -26
- package/fesm2022/acorex-components-dialog.mjs +12 -12
- package/fesm2022/acorex-components-drawer.mjs +14 -14
- package/fesm2022/acorex-components-dropdown-button.mjs +16 -10
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +14 -14
- package/fesm2022/acorex-components-file-explorer.mjs +27 -27
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +17 -17
- package/fesm2022/acorex-components-grid-layout-builder.mjs +92 -156
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +23 -23
- package/fesm2022/acorex-components-image.mjs +8 -8
- package/fesm2022/acorex-components-json-viewer.mjs +8 -8
- package/fesm2022/acorex-components-kbd.mjs +11 -11
- package/fesm2022/acorex-components-label.mjs +8 -8
- package/fesm2022/acorex-components-list.mjs +9 -9
- package/fesm2022/acorex-components-loading-dialog.mjs +11 -11
- package/fesm2022/acorex-components-loading.mjs +17 -17
- package/fesm2022/acorex-components-map.mjs +13739 -39
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +53 -39
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +17 -17
- package/fesm2022/acorex-components-navbar.mjs +8 -8
- package/fesm2022/acorex-components-notification.mjs +11 -11
- package/fesm2022/acorex-components-number-box.mjs +9 -9
- package/fesm2022/acorex-components-otp.mjs +9 -9
- package/fesm2022/acorex-components-page.mjs +11 -11
- package/fesm2022/acorex-components-paint.mjs +20 -20
- package/fesm2022/acorex-components-password-box.mjs +12 -12
- package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
- package/fesm2022/acorex-components-phone-box.mjs +9 -9
- package/fesm2022/acorex-components-picker.mjs +14 -14
- package/fesm2022/acorex-components-popover.mjs +8 -8
- package/fesm2022/acorex-components-popup.mjs +11 -11
- package/fesm2022/acorex-components-progress-bar.mjs +8 -8
- package/fesm2022/acorex-components-qrcode.mjs +8 -8
- package/fesm2022/acorex-components-query-builder.mjs +8 -8
- package/fesm2022/acorex-components-radio.mjs +9 -9
- package/fesm2022/acorex-components-rail-navigation.mjs +14 -14
- package/fesm2022/acorex-components-range-slider.mjs +8 -8
- package/fesm2022/acorex-components-rate-picker.mjs +8 -8
- package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
- package/fesm2022/acorex-components-result.mjs +8 -8
- package/fesm2022/acorex-components-routing-progress.mjs +8 -8
- package/fesm2022/acorex-components-scheduler.mjs +14 -14
- package/fesm2022/acorex-components-scss.mjs +4 -4
- package/fesm2022/acorex-components-search-box.mjs +10 -10
- package/fesm2022/acorex-components-select-box.mjs +9 -9
- package/fesm2022/acorex-components-selection-list.mjs +9 -9
- package/fesm2022/acorex-components-side-menu.mjs +15 -15
- package/fesm2022/acorex-components-skeleton.mjs +8 -8
- package/fesm2022/acorex-components-slider.mjs +9 -9
- package/fesm2022/acorex-components-sliding-item.mjs +14 -14
- package/fesm2022/acorex-components-step-wizard.mjs +14 -14
- package/fesm2022/acorex-components-switch.mjs +11 -11
- package/fesm2022/acorex-components-tabs.mjs +14 -14
- package/fesm2022/acorex-components-tag.mjs +8 -8
- package/fesm2022/acorex-components-text-area.mjs +9 -9
- package/fesm2022/acorex-components-text-box.mjs +14 -14
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +12 -12
- package/fesm2022/acorex-components-toast.mjs +11 -11
- package/fesm2022/acorex-components-toolbar.mjs +8 -8
- package/fesm2022/acorex-components-tooltip.mjs +11 -11
- package/fesm2022/acorex-components-tree-view.mjs +31 -27
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +32 -27
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +8 -8
- package/fesm2022/acorex-components-wysiwyg.mjs +32 -32
- package/grid-layout-builder/lib/grid-layout-container.component.d.ts +12 -56
- package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +19 -47
- package/map/index.d.ts +2 -0
- package/map/lib/map.component.d.ts +23 -4
- package/map/lib/map.service.d.ts +27 -1
- package/map/lib/map.utility.d.ts +2 -0
- package/map/lib/map.world-map.d.ts +28 -0
- package/package.json +1 -1
- package/tree-view/lib/tree-view-item.component.d.ts +3 -2
- package/tree-view/lib/tree-view.component.d.ts +6 -7
@@ -1,5 +1,4 @@
|
|
1
|
-
import { OnDestroy
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
1
|
+
import { OnDestroy } from '@angular/core';
|
3
2
|
import { AXGridLayout, AXGridLayoutDroppedEvent, AXGridLayoutElementEvent, AXGridLayoutEventEvent, AXGridLayoutNode, AXGridLayoutNodesEvent, AXGridLayoutOptions, AXGridLayoutWidget, AXGridLayoutWidgetCompElement, AXGridLayoutWidgetElement, AXSaveCallback } from './types';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
/**
|
@@ -9,41 +8,9 @@ import * as i0 from "@angular/core";
|
|
9
8
|
*
|
10
9
|
* This component uses Angular's reactive signals, outputs, and lifecycle hooks to manage grid state and interactions.
|
11
10
|
*/
|
12
|
-
export declare class AXGridLayoutContainerComponent implements
|
13
|
-
private
|
14
|
-
/**
|
15
|
-
* Content children elements of type `AXGridLayoutWidgetComponent` that are dynamically managed within the grid.
|
16
|
-
*/
|
17
|
-
private compItems;
|
18
|
-
private dirItems;
|
19
|
-
/**
|
20
|
-
* Input that holds options for configuring the GridStack grid layout.
|
21
|
-
*/
|
11
|
+
export declare class AXGridLayoutContainerComponent implements OnDestroy {
|
12
|
+
#private;
|
22
13
|
options: import("@angular/core").InputSignal<import("gridstack").GridStackOptions>;
|
23
|
-
/**
|
24
|
-
* A computed signal that merges the provided `options` with the grid's existing configuration (if any).
|
25
|
-
*/
|
26
|
-
private calcOptions;
|
27
|
-
/**
|
28
|
-
* A reference to the native element of the container component.
|
29
|
-
*/
|
30
|
-
private readonly elementRef;
|
31
|
-
/**
|
32
|
-
* Angular's NgZone for running code outside Angular's change detection.
|
33
|
-
*/
|
34
|
-
private ngZone;
|
35
|
-
/**
|
36
|
-
* A writable signal representing the current state of the grid.
|
37
|
-
*/
|
38
|
-
private grid;
|
39
|
-
/**
|
40
|
-
* Flag indicating whether the grid has been loaded with content.
|
41
|
-
*/
|
42
|
-
private loaded?;
|
43
|
-
/**
|
44
|
-
* A reference to the native element representing the grid container.
|
45
|
-
*/
|
46
|
-
private el;
|
47
14
|
/**
|
48
15
|
* Output event emitted when a widget is added to the grid.
|
49
16
|
*/
|
@@ -100,27 +67,17 @@ export declare class AXGridLayoutContainerComponent implements OnInit, OnDestroy
|
|
100
67
|
* Model that tracks whether the grid container is empty.
|
101
68
|
*/
|
102
69
|
protected isEmpty: import("@angular/core").ModelSignal<boolean>;
|
103
|
-
|
104
|
-
|
105
|
-
|
70
|
+
private serializedData?;
|
71
|
+
private compItems;
|
72
|
+
private dirItems;
|
73
|
+
private calcOptions;
|
74
|
+
private readonly elementRef;
|
75
|
+
private ngZone;
|
76
|
+
private grid;
|
77
|
+
private el;
|
78
|
+
private domSanitizer;
|
106
79
|
constructor();
|
107
|
-
/**
|
108
|
-
* Angular lifecycle hook that initializes the grid once the component is created.
|
109
|
-
* It sets up GridStack and loads any initial layout configuration.
|
110
|
-
*/
|
111
|
-
ngOnInit(): Promise<void>;
|
112
|
-
/**
|
113
|
-
* Angular lifecycle hook that cleans up resources when the component is destroyed.
|
114
|
-
* It removes event listeners and destroys the GridStack instance.
|
115
|
-
*/
|
116
80
|
ngOnDestroy(): void;
|
117
|
-
/**
|
118
|
-
* Effect that reacts to changes in the grid layout and updates the DOM accordingly.
|
119
|
-
*/
|
120
|
-
private gridChange;
|
121
|
-
/**
|
122
|
-
* Effect that reacts to changes in child widgets and updates the grid layout.
|
123
|
-
*/
|
124
81
|
private childChange;
|
125
82
|
/**
|
126
83
|
* Updates the grid layout with the current set of widgets, clearing previous options.
|
@@ -216,7 +173,6 @@ export declare class AXGridLayoutContainerComponent implements OnInit, OnDestroy
|
|
216
173
|
* @param doAnimate - If `true`, the grid will animate.
|
217
174
|
*/
|
218
175
|
setAnimation(doAnimate: boolean): void;
|
219
|
-
domSanitizer: DomSanitizer;
|
220
176
|
/**
|
221
177
|
* Saves the current grid layout configuration.
|
222
178
|
*
|
@@ -14,82 +14,54 @@ import * as i0 from "@angular/core";
|
|
14
14
|
* </ax-grid-layout-widget>
|
15
15
|
*/
|
16
16
|
export declare class AXGridLayoutWidgetComponent {
|
17
|
-
/**
|
18
|
-
* A reference to the native element of this widget component. It is used for interaction
|
19
|
-
* with the underlying DOM element and for updating the widget properties via GridStack.
|
20
|
-
*/
|
17
|
+
/** Reference to the native element of this widget component. */
|
21
18
|
private readonly elementRef;
|
22
|
-
/**
|
23
|
-
* The native element of the widget component.
|
24
|
-
*/
|
19
|
+
/** The native element of the widget component. */
|
25
20
|
el: AXGridLayoutWidgetCompElement;
|
26
|
-
/**
|
27
|
-
* The current options of the widget. These options are used to define the layout,
|
28
|
-
* content, and behavior of the widget within the grid.
|
29
|
-
*
|
30
|
-
* @internal
|
31
|
-
*/
|
21
|
+
/** Internal storage for widget options. */
|
32
22
|
private _options?;
|
33
23
|
/**
|
34
24
|
* Input property that represents the widget's configuration options.
|
35
25
|
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
* @param {AXGridLayoutNode} val The configuration object for the widget.
|
40
|
-
* @returns {AXGridLayoutWidgetCompElement} The element associated with the widget.
|
26
|
+
* @param {AXGridLayoutNode} val - The configuration object for the widget.
|
27
|
+
* @returns {AXGridLayoutWidgetCompElement} - The element associated with the widget.
|
41
28
|
*/
|
42
29
|
options: import("@angular/core").InputSignalWithTransform<import("gridstack").GridStackNode, import("gridstack").GridStackNode>;
|
43
|
-
/**
|
44
|
-
* Clears the widget's options.
|
45
|
-
*
|
46
|
-
* This method removes any existing options set for the widget and resets it
|
47
|
-
* to its default state.
|
48
|
-
*/
|
49
|
-
clearOptions(): void;
|
50
|
-
/**
|
51
|
-
* Constructor that initializes the widget component and sets the reference to
|
52
|
-
* the grid widget component in the element's properties.
|
53
|
-
*/
|
54
30
|
constructor();
|
55
|
-
/**
|
56
|
-
|
57
|
-
|
58
|
-
* This method interacts with GridStack to remove the widget from the layout.
|
59
|
-
* Once removed, the widget will no longer be part of the grid.
|
60
|
-
*/
|
31
|
+
/** Clears the widget's options. */
|
32
|
+
clearOptions(): void;
|
33
|
+
/** Removes this widget from the grid. */
|
61
34
|
removeWidget(): void;
|
62
35
|
/**
|
63
36
|
* Sets whether the widget can be locked (i.e., not resizable).
|
64
37
|
*
|
65
|
-
* @param {boolean} state Whether the widget should be locked or not.
|
66
|
-
* @remarks
|
67
|
-
* If the widget is locked, it cannot be resized.
|
38
|
+
* @param {boolean} state - Whether the widget should be locked or not.
|
68
39
|
*/
|
69
|
-
|
40
|
+
setLockable(state: boolean): void;
|
70
41
|
/**
|
71
42
|
* Sets whether the widget can be resized.
|
72
43
|
*
|
73
|
-
* @param {boolean} state Whether the widget should be resizable or not.
|
74
|
-
* @remarks
|
75
|
-
* If the widget is resizable, the user can change its size by dragging.
|
44
|
+
* @param {boolean} state - Whether the widget should be resizable or not.
|
76
45
|
*/
|
77
46
|
setResizable(state: boolean): void;
|
78
47
|
/**
|
79
48
|
* Updates the options of the widget.
|
80
49
|
*
|
81
|
-
* @param {AXGridLayoutWidget} options The new options to apply to the widget.
|
50
|
+
* @param {AXGridLayoutWidget} options - The new options to apply to the widget.
|
82
51
|
*/
|
83
52
|
setOptions(options: AXGridLayoutWidget): void;
|
84
53
|
/**
|
85
54
|
* Retrieves the current options of the widget.
|
86
55
|
*
|
87
|
-
* @returns {AXGridLayoutNode} The current configuration options of the widget.
|
88
|
-
* @remarks
|
89
|
-
* This method provides access to the widget's layout and configuration.
|
90
|
-
* If no specific options are set, it returns the default options.
|
56
|
+
* @returns {AXGridLayoutNode} - The current configuration options of the widget.
|
91
57
|
*/
|
92
58
|
getOptions(): AXGridLayoutNode;
|
59
|
+
/**
|
60
|
+
* Helper method to update widget options.
|
61
|
+
*
|
62
|
+
* @param {Partial<AXGridLayoutWidget>} options - The options to update.
|
63
|
+
*/
|
64
|
+
private updateWidgetOptions;
|
93
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutWidgetComponent, never>;
|
94
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutWidgetComponent, "ax-grid-layout-widget", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
95
67
|
}
|
package/map/index.d.ts
CHANGED
@@ -17,17 +17,17 @@ export declare class AXMapComponent implements OnDestroy {
|
|
17
17
|
* @description
|
18
18
|
* Zoom level of the map.
|
19
19
|
*/
|
20
|
-
zoomLevel: import("@angular/core").
|
20
|
+
zoomLevel: import("@angular/core").ModelSignal<number>;
|
21
21
|
/**
|
22
22
|
* @description
|
23
23
|
* Latitude of the map center.
|
24
24
|
*/
|
25
|
-
latitude: import("@angular/core").
|
25
|
+
latitude: import("@angular/core").ModelSignal<number>;
|
26
26
|
/**
|
27
27
|
* @description
|
28
28
|
* Longitude of the map center.
|
29
29
|
*/
|
30
|
-
longitude: import("@angular/core").
|
30
|
+
longitude: import("@angular/core").ModelSignal<number>;
|
31
31
|
/**
|
32
32
|
* @description
|
33
33
|
* Maximum number of markers allowed on the map.
|
@@ -52,6 +52,18 @@ export declare class AXMapComponent implements OnDestroy {
|
|
52
52
|
* @default false
|
53
53
|
*/
|
54
54
|
hasLocator: import("@angular/core").InputSignal<boolean>;
|
55
|
+
/**
|
56
|
+
* @description
|
57
|
+
* whener map should contain all draw items.
|
58
|
+
* @default false
|
59
|
+
*/
|
60
|
+
fitToDraw: import("@angular/core").InputSignal<boolean>;
|
61
|
+
/**
|
62
|
+
* @description
|
63
|
+
* whener map draw has to limit in area.
|
64
|
+
* @default undefined
|
65
|
+
*/
|
66
|
+
limitDraw: import("@angular/core").InputSignal<AXMapPolygon[]>;
|
55
67
|
/**
|
56
68
|
* @description
|
57
69
|
* Position of the marker control on the map.
|
@@ -101,6 +113,11 @@ export declare class AXMapComponent implements OnDestroy {
|
|
101
113
|
* Event triggered when a location is found via the location control.
|
102
114
|
*/
|
103
115
|
onLocationFound: import("@angular/core").OutputEmitterRef<AXMapMarker>;
|
116
|
+
/**
|
117
|
+
* @description
|
118
|
+
* Event triggered map is loaded.
|
119
|
+
*/
|
120
|
+
onMapReady: import("@angular/core").OutputEmitterRef<void>;
|
104
121
|
private mapContainer;
|
105
122
|
private leafletService;
|
106
123
|
private rendered;
|
@@ -142,6 +159,8 @@ export declare class AXMapComponent implements OnDestroy {
|
|
142
159
|
* Adjusts the map view to fit all markers and polygons currently on the map.
|
143
160
|
*/
|
144
161
|
fitBoundsToDrawItems(): void;
|
162
|
+
setLimitDraw(data: AXMapPolygon[]): void;
|
163
|
+
removeLimitDraw(): void;
|
145
164
|
/**
|
146
165
|
* @description
|
147
166
|
* Flies the map to a specific location with optional zoom, marker placement, and animation duration.
|
@@ -164,5 +183,5 @@ export declare class AXMapComponent implements OnDestroy {
|
|
164
183
|
*/
|
165
184
|
ngOnDestroy(): void;
|
166
185
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMapComponent, never>;
|
167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; }, { "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; }, never, never, true, never>;
|
186
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXMapComponent, "ax-map", never, { "zoomLevel": { "alias": "zoomLevel"; "required": false; "isSignal": true; }; "latitude": { "alias": "latitude"; "required": false; "isSignal": true; }; "longitude": { "alias": "longitude"; "required": false; "isSignal": true; }; "maxMarker": { "alias": "maxMarker"; "required": false; "isSignal": true; }; "maxPolygon": { "alias": "maxPolygon"; "required": false; "isSignal": true; }; "hasDraw": { "alias": "hasDraw"; "required": false; "isSignal": true; }; "hasLocator": { "alias": "hasLocator"; "required": false; "isSignal": true; }; "fitToDraw": { "alias": "fitToDraw"; "required": false; "isSignal": true; }; "limitDraw": { "alias": "limitDraw"; "required": false; "isSignal": true; }; "markerPlace": { "alias": "markerPlace"; "required": false; "isSignal": true; }; "locatePlace": { "alias": "locatePlace"; "required": false; "isSignal": true; }; "markers": { "alias": "markers"; "required": false; "isSignal": true; }; "polygons": { "alias": "polygons"; "required": false; "isSignal": true; }; }, { "zoomLevel": "zoomLevelChange"; "latitude": "latitudeChange"; "longitude": "longitudeChange"; "onMarkerAdded": "onMarkerAdded"; "onMarkerChanged": "onMarkerChanged"; "onPolygonAdded": "onPolygonAdded"; "onPolygonChanged": "onPolygonChanged"; "onLocationFound": "onLocationFound"; "onMapReady": "onMapReady"; }, never, never, true, never>;
|
168
187
|
}
|
package/map/lib/map.service.d.ts
CHANGED
@@ -16,6 +16,20 @@ export declare class AXLeafletService {
|
|
16
16
|
private drawControl?;
|
17
17
|
private locateControl?;
|
18
18
|
private drawnItems;
|
19
|
+
private boundary;
|
20
|
+
private boundaryLayer;
|
21
|
+
/**
|
22
|
+
* Emits when the zoom level of the map changes.
|
23
|
+
*/
|
24
|
+
onZoomChanged: EventEmitter<number>;
|
25
|
+
/**
|
26
|
+
* Emits when the longitude of the map center changes.
|
27
|
+
*/
|
28
|
+
onLongitudeChanged: EventEmitter<number>;
|
29
|
+
/**
|
30
|
+
* Emits when the latitude of the map center changes.
|
31
|
+
*/
|
32
|
+
onLatitudeChanged: EventEmitter<number>;
|
19
33
|
/**
|
20
34
|
* Emits when marker data changes.
|
21
35
|
*/
|
@@ -47,6 +61,8 @@ export declare class AXLeafletService {
|
|
47
61
|
* @param zoom The initial zoom level. Defaults to 13.
|
48
62
|
*/
|
49
63
|
initMap(mapElement: HTMLElement, location: AXMapLatLng, zoom?: number): Promise<void>;
|
64
|
+
private handleZoomChange;
|
65
|
+
private handleCenterChange;
|
50
66
|
/**
|
51
67
|
* Gets the Leaflet map instance.
|
52
68
|
* @returns The Leaflet map instance, or undefined if not initialized.
|
@@ -81,7 +97,7 @@ export declare class AXLeafletService {
|
|
81
97
|
*/
|
82
98
|
addMarker(locations: AXMapMarker | AXMapMarker[]): void;
|
83
99
|
/**
|
84
|
-
* Adds a polygon or polygons to the map.
|
100
|
+
* Adds a polygon or polygons to the map, respecting the boundary if set.
|
85
101
|
* @param polygons The polygon or polygons to add.
|
86
102
|
* @param clickCallback Optional callback function to be executed on polygon click.
|
87
103
|
*/
|
@@ -137,6 +153,16 @@ export declare class AXLeafletService {
|
|
137
153
|
* Adjusts the map view to fit all markers and polygons currently on the map.
|
138
154
|
*/
|
139
155
|
fitBoundsToDrawItems(): void;
|
156
|
+
/**
|
157
|
+
* Sets a boundary for restricting markers and polygons.
|
158
|
+
* @param boundaryPolygon The polygon defining the boundary area.
|
159
|
+
*/
|
160
|
+
setBoundary(boundaryPolygons: AXMapPolygon[]): void;
|
161
|
+
isPointInPolygon(point: AXMapLatLng, polygon: AXMapPolygon): boolean;
|
162
|
+
/**
|
163
|
+
* Removes the boundary, allowing unrestricted drawing.
|
164
|
+
*/
|
165
|
+
removeBoundary(): void;
|
140
166
|
/**
|
141
167
|
* Destroys the map instance and removes all event listeners.
|
142
168
|
*/
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export declare const AX_WORLD_GEO_JSON: {
|
2
|
+
type: string;
|
3
|
+
features: ({
|
4
|
+
type: string;
|
5
|
+
id: string;
|
6
|
+
properties: {
|
7
|
+
name: string;
|
8
|
+
};
|
9
|
+
geometry: {
|
10
|
+
type: string;
|
11
|
+
coordinates: number[][][];
|
12
|
+
};
|
13
|
+
} | {
|
14
|
+
type: string;
|
15
|
+
id: string;
|
16
|
+
properties: {
|
17
|
+
name: string;
|
18
|
+
};
|
19
|
+
geometry: {
|
20
|
+
type: string;
|
21
|
+
coordinates: number[][][][];
|
22
|
+
};
|
23
|
+
})[];
|
24
|
+
};
|
25
|
+
export declare const AX_WORLD_COUNTRIES: {
|
26
|
+
id: string;
|
27
|
+
text: string;
|
28
|
+
}[];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { NXComponent } from '@acorex/components/common';
|
2
2
|
import { AXPlatform } from '@acorex/core/platform';
|
3
|
-
import { AXTreeItemClickBaseEvent, AXTreeViewSchema } from './tree-view.class';
|
3
|
+
import { AXTreeItemClickBaseEvent, AXTreeViewSchema, OperationMethod } from './tree-view.class';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class AXTreeViewItemComponent extends NXComponent {
|
6
6
|
constructor();
|
@@ -17,6 +17,7 @@ export declare class AXTreeViewItemComponent extends NXComponent {
|
|
17
17
|
expand: string;
|
18
18
|
unExpand: string;
|
19
19
|
}>;
|
20
|
+
executorChanges: import("@angular/core").InputSignal<OperationMethod>;
|
20
21
|
protected platformService: AXPlatform;
|
21
22
|
expandBehavior: import("@angular/core").InputSignal<"click" | "dbClick" | "both">;
|
22
23
|
protected arrowIcon: import("@angular/core").Signal<string>;
|
@@ -24,5 +25,5 @@ export declare class AXTreeViewItemComponent extends NXComponent {
|
|
24
25
|
protected handleTextClick(item: AXTreeViewSchema): void;
|
25
26
|
protected handleTextDbClick(item: AXTreeViewSchema): void;
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTreeViewItemComponent, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTreeViewItemComponent, "ax-tree-view-item", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "expandIconField": { "alias": "expandIconField"; "required": false; "isSignal": true; }; "expandBehavior": { "alias": "expandBehavior"; "required": false; "isSignal": true; }; }, { "onNodeExpand": "onNodeExpand"; "onNodeClick": "onNodeClick"; "isExpanded": "isExpandedChange"; "isActive": "isActiveChange"; "onNodeDbClick": "onNodeDbClick"; }, never, ["ax-check-box", "ax-prefix", "ax-text", "ax-suffix", "*"], true, never>;
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXTreeViewItemComponent, "ax-tree-view-item", never, { "item": { "alias": "item"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "expandIconField": { "alias": "expandIconField"; "required": false; "isSignal": true; }; "executorChanges": { "alias": "executorChanges"; "required": false; "isSignal": true; }; "expandBehavior": { "alias": "expandBehavior"; "required": false; "isSignal": true; }; }, { "onNodeExpand": "onNodeExpand"; "onNodeClick": "onNodeClick"; "isExpanded": "isExpandedChange"; "isActive": "isActiveChange"; "onNodeDbClick": "onNodeDbClick"; }, never, ["ax-check-box", "ax-prefix", "ax-text", "ax-suffix", "*"], true, never>;
|
28
29
|
}
|
@@ -3,25 +3,24 @@ import { AXTreeItemClickBaseEvent, AXTreeViewSchema, ExpandBehaviorType, Operati
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AXTreeViewComponent extends NXComponent {
|
5
5
|
#private;
|
6
|
-
private cdr;
|
7
6
|
private itemsSignal;
|
8
7
|
private itemsPromise;
|
9
8
|
items: import("@angular/core").InputSignal<AXTreeViewSchema[] | ((selectedItemId?: string | number) => AXTreeViewSchema[] | Promise<AXTreeViewSchema[]>)>;
|
10
9
|
protected get resolvedItems(): AXTreeViewSchema[];
|
11
|
-
|
10
|
+
showCheckbox: import("@angular/core").InputSignal<boolean>;
|
12
11
|
selectionMode: import("@angular/core").InputSignal<"single" | "multiple">;
|
13
12
|
selectionBehavior: import("@angular/core").InputSignal<SelectionBehaviorType>;
|
14
|
-
|
13
|
+
focusNodeEnabled: import("@angular/core").InputSignal<boolean>;
|
15
14
|
valueField: import("@angular/core").InputSignal<string>;
|
16
15
|
textField: import("@angular/core").InputSignal<string>;
|
17
16
|
visibleField: import("@angular/core").InputSignal<string>;
|
18
17
|
disableField: import("@angular/core").InputSignal<string>;
|
19
18
|
hasChildField: import("@angular/core").InputSignal<string>;
|
20
19
|
iconField: import("@angular/core").InputSignal<string>;
|
21
|
-
|
22
|
-
onItemClick: import("@angular/core").OutputEmitterRef<AXTreeItemClickBaseEvent>;
|
20
|
+
onSelectionChanged: import("@angular/core").OutputEmitterRef<AXTreeItemClickBaseEvent>;
|
23
21
|
onNodeClick: import("@angular/core").OutputEmitterRef<AXTreeItemClickBaseEvent>;
|
24
|
-
|
22
|
+
onCollapsedChanged: import("@angular/core").OutputEmitterRef<AXTreeItemClickBaseEvent>;
|
23
|
+
executorChanges: import("@angular/core").WritableSignal<OperationMethod>;
|
25
24
|
expandBehavior: import("@angular/core").InputSignal<ExpandBehaviorType>;
|
26
25
|
protected handleNodeSelectionClick(event: AXValueChangedEvent, item: AXTreeViewSchema): void;
|
27
26
|
/**
|
@@ -77,5 +76,5 @@ export declare class AXTreeViewComponent extends NXComponent {
|
|
77
76
|
private setNodeLoading;
|
78
77
|
executeOnTreeNode(node: AXTreeViewSchema, operation: OperationMethod, value: boolean): void;
|
79
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXTreeViewComponent, never>;
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTreeViewComponent, "ax-tree-view", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXTreeViewComponent, "ax-tree-view", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; "isSignal": true; }; "focusNodeEnabled": { "alias": "focusNodeEnabled"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "visibleField": { "alias": "visibleField"; "required": false; "isSignal": true; }; "disableField": { "alias": "disableField"; "required": false; "isSignal": true; }; "hasChildField": { "alias": "hasChildField"; "required": false; "isSignal": true; }; "iconField": { "alias": "iconField"; "required": false; "isSignal": true; }; "expandBehavior": { "alias": "expandBehavior"; "required": false; "isSignal": true; }; }, { "onSelectionChanged": "onSelectionChanged"; "onNodeClick": "onNodeClick"; "onCollapsedChanged": "onCollapsedChanged"; }, never, never, true, never>;
|
81
80
|
}
|