@acorex/components 19.15.0-next.3 → 19.15.0-next.5

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.
@@ -1,5 +1,4 @@
1
1
  import { OnDestroy } from '@angular/core';
2
- import { Subscription } from 'rxjs';
3
2
  import { AXMapControlPlace, AXMapData, AXMapMarker, AXMapPolygon } from './map.type';
4
3
  import * as i0 from "@angular/core";
5
4
  /**
@@ -54,13 +53,13 @@ export declare class AXMapComponent implements OnDestroy {
54
53
  hasLocator: import("@angular/core").InputSignal<boolean>;
55
54
  /**
56
55
  * @description
57
- * whener map should contain all draw items.
56
+ * Whether map should contain all draw items.
58
57
  * @default false
59
58
  */
60
59
  fitToDraw: import("@angular/core").InputSignal<boolean>;
61
60
  /**
62
61
  * @description
63
- * whener map draw has to limit in area.
62
+ * Whether map draw has to limit in area.
64
63
  * @default undefined
65
64
  */
66
65
  limitDraw: import("@angular/core").InputSignal<AXMapPolygon[]>;
@@ -121,12 +120,26 @@ export declare class AXMapComponent implements OnDestroy {
121
120
  private mapContainer;
122
121
  private leafletService;
123
122
  private rendered;
123
+ private onLatitudeChangedSubscription?;
124
+ private onLongitudeChangedSubscription?;
125
+ private onZoomChangedSubscription?;
126
+ private onLocationFoundSubscription?;
127
+ private onMarkerChangedSubscription?;
128
+ private onMarkerAddedSubscription?;
129
+ private onPolygonChangedSubscription?;
130
+ private onPolygonAddedSubscription?;
124
131
  /**
125
132
  * @description
126
133
  * Adds a marker to the specified location on the map.
127
134
  * @param location - The location where the marker should be placed.
128
135
  */
129
136
  addMarker(location: AXMapMarker | AXMapMarker[]): void;
137
+ /**
138
+ * @description
139
+ * Adds a polygon to the specified location on the map.
140
+ * @param location - The location where the polygon should be placed.
141
+ * @param clickCallback - Optional callback for polygon click events.
142
+ */
130
143
  addPolygon(location: AXMapPolygon | AXMapPolygon[], clickCallback?: (event: L.LeafletMouseEvent) => void): void;
131
144
  /**
132
145
  * @description
@@ -159,7 +172,16 @@ export declare class AXMapComponent implements OnDestroy {
159
172
  * Adjusts the map view to fit all markers and polygons currently on the map.
160
173
  */
161
174
  fitBoundsToDrawItems(): void;
175
+ /**
176
+ * @description
177
+ * Sets the boundary limit for drawing
178
+ * @param data - The polygon data defining the boundary
179
+ */
162
180
  setLimitDraw(data: AXMapPolygon[]): void;
181
+ /**
182
+ * @description
183
+ * Removes the boundary limit for drawing
184
+ */
163
185
  removeLimitDraw(): void;
164
186
  /**
165
187
  * @description
@@ -171,15 +193,20 @@ export declare class AXMapComponent implements OnDestroy {
171
193
  * @param duration - Optional duration for the fly animation.
172
194
  */
173
195
  flyTo(location: AXMapMarker, zoom?: number, setMarker?: boolean, duration?: number): void;
174
- onLocationFoundSubscription?: Subscription;
175
- onMarkerChangedSubscription?: Subscription;
176
- onMarkerAddedSubscription?: Subscription;
177
- onPolygonChangedSubscription?: Subscription;
178
- onPolygonAddedSubscription?: Subscription;
179
- unsubscribeFromEvents(): void;
180
196
  /**
181
- * @description
182
- * Cleanup function that destroys the map when the component is destroyed.
197
+ * Setup map event listeners
198
+ */
199
+ private setupMapEvents;
200
+ /**
201
+ * Setup draw event subscriptions
202
+ */
203
+ private setupDrawEventSubscriptions;
204
+ /**
205
+ * Unsubscribe from draw events
206
+ */
207
+ private unsubscribeFromDrawEvents;
208
+ /**
209
+ * Cleanup function that destroys the map and unsubscribes from all subscriptions.
183
210
  */
184
211
  ngOnDestroy(): void;
185
212
  static ɵfac: i0.ɵɵFactoryDeclaration<AXMapComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/components",
3
- "version": "19.15.0-next.3",
3
+ "version": "19.15.0-next.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.0.0",
6
6
  "@angular/core": ">=19.0.0",
@@ -29,11 +29,7 @@ export declare class AXTimeDurationComponent extends AXTimeDurationComponent_bas
29
29
  protected onInput(event: any): void;
30
30
  protected internalValueChanged(value: number): Promise<void>;
31
31
  private replacePersianLabels;
32
- private prevMillisecond;
33
32
  private maskToMilliseconds;
34
- private getNextLargerUnit;
35
- private convertToLargerUnit;
36
- private unitToMilliseconds;
37
33
  private updateMask;
38
34
  static ɵfac: i0.ɵɵFactoryDeclaration<AXTimeDurationComponent, never>;
39
35
  static ɵcmp: i0.ɵɵComponentDeclaration<AXTimeDurationComponent, "ax-time-duration", never, { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "look": { "alias": "look"; "required": false; }; "valueStart": { "alias": "valueStart"; "required": false; "isSignal": true; }; "valueEnd": { "alias": "valueEnd"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, never, ["ax-validation-rule"], true, never>;