@smarterplan/ngx-smarterplan-locations 0.2.0 → 0.2.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/esm2020/lib/components/visits/visits.component.mjs +21 -13
- package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +22 -4
- package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +3 -3
- package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +28 -12
- package/esm2020/lib/components/zones/zones.component.mjs +4 -4
- package/esm2020/lib/helper.service.mjs +11 -5
- package/esm2020/lib/ngx-smarterplan-locations.module.mjs +1 -1
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +85 -35
- package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +82 -34
- package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
- package/lib/components/visits/visits.component.d.ts +2 -2
- package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +6 -0
- package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +3 -1
- package/lib/helper.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -41,9 +41,9 @@ export declare class VisitsComponent implements OnInit {
|
|
|
41
41
|
get model3D(): AbstractControl;
|
|
42
42
|
get name(): AbstractControl;
|
|
43
43
|
onCancel(): void;
|
|
44
|
-
onDelete(visit: Visit
|
|
44
|
+
onDelete(visit: Visit): Promise<void>;
|
|
45
45
|
private getDismissReason;
|
|
46
|
-
launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<
|
|
46
|
+
launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<boolean>;
|
|
47
47
|
private cancelImport;
|
|
48
48
|
onImport(visit: Visit): void;
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<VisitsComponent, never>;
|
|
@@ -28,6 +28,7 @@ export declare class AddAudioZoneComponent implements OnInit {
|
|
|
28
28
|
audioZones: Zone[];
|
|
29
29
|
currentAudioZone: Zone;
|
|
30
30
|
scansModified: boolean;
|
|
31
|
+
occupiedSweeps: string[];
|
|
31
32
|
constructor(fb: FormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService, commentService: CommentService, translate: TranslateService);
|
|
32
33
|
ngOnInit(): void;
|
|
33
34
|
setup(): Promise<void>;
|
|
@@ -41,6 +42,11 @@ export declare class AddAudioZoneComponent implements OnInit {
|
|
|
41
42
|
getAudios(): Promise<void>;
|
|
42
43
|
onCancelAudioUpload(): void;
|
|
43
44
|
onChooseAudio(audio: Comment): void;
|
|
45
|
+
/**
|
|
46
|
+
* Removes newly selected sweeps for current zone (they are in chosenScansOnPlan) from other audio zones.
|
|
47
|
+
* Rule: one sweep = one audio.
|
|
48
|
+
*/
|
|
49
|
+
removeTakenSweepsFromOtherZones(): Promise<void>;
|
|
44
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddAudioZoneComponent, never>;
|
|
45
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<AddAudioZoneComponent, "lib-add-audio-zone", never, { "spaceID": "spaceID"; "defaultZone": "defaultZone"; "zones": "zones"; "currentAudioZone": "currentAudioZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
|
|
46
52
|
}
|
package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class SweepPlanSelectionComponent implements OnInit {
|
|
|
13
13
|
/** if comming from Edit Plan SVG Zone creation */
|
|
14
14
|
newZoneData: any;
|
|
15
15
|
navIDsZoneEdit: string[];
|
|
16
|
+
occupiedSweeps: string[];
|
|
16
17
|
chosenPlan: Plan;
|
|
17
18
|
/** panZoom element for adding scans */
|
|
18
19
|
panZoom: PanZoom;
|
|
@@ -25,6 +26,7 @@ export declare class SweepPlanSelectionComponent implements OnInit {
|
|
|
25
26
|
sweepsSelected: EventEmitter<string[]>;
|
|
26
27
|
constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService);
|
|
27
28
|
ngOnInit(): void;
|
|
29
|
+
ngOnChanges(): void;
|
|
28
30
|
getPlans(): Promise<void>;
|
|
29
31
|
onPlanClick(plan: Plan): Promise<void>;
|
|
30
32
|
addScanPoints(): Promise<void>;
|
|
@@ -81,5 +83,5 @@ export declare class SweepPlanSelectionComponent implements OnInit {
|
|
|
81
83
|
onSaveSelection(): void;
|
|
82
84
|
onCancel(): void;
|
|
83
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "navIDsZoneEdit": "navIDsZoneEdit"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
|
|
86
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "navIDsZoneEdit": "navIDsZoneEdit"; "occupiedSweeps": "occupiedSweeps"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
|
|
85
87
|
}
|
package/lib/helper.service.d.ts
CHANGED
|
@@ -29,8 +29,9 @@ export declare function buttonIsInSelection(button: HTMLButtonElement, selection
|
|
|
29
29
|
* Styles the button that represents a sweep on the plan: green-added to zone, red -not added
|
|
30
30
|
* @param button HTMLButtonElement, button on the plan,
|
|
31
31
|
* @param isAdded boolean, if the sweep added to the zone
|
|
32
|
+
* @param isOccupied boolean, if the sweep added to any other zone (but not current)
|
|
32
33
|
*/
|
|
33
|
-
export declare function styleButton(button: HTMLButtonElement, isAdded?: boolean): void;
|
|
34
|
+
export declare function styleButton(button: HTMLButtonElement, isAdded?: boolean, isOccupied?: boolean): void;
|
|
34
35
|
/**
|
|
35
36
|
* Check if sweep (button) is chosen; it is reprsented by image style "mdi:adjust"
|
|
36
37
|
* @param button HTMLElement
|