@smarterplan/ngx-smarterplan-locations 0.2.17 → 0.2.18

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.
@@ -40,7 +40,10 @@ export declare class AddAudioZoneComponent implements OnInit {
40
40
  setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
41
41
  onCancel(): void;
42
42
  togglePlan(): void;
43
- onSelectedSweepsFromPlan(sweeps: string[]): void;
43
+ onSelectedSweepsFromPlan(result: {
44
+ "sweeps": string[];
45
+ "startSweepID": string;
46
+ }): void;
44
47
  handleFileInput(event: Event): void;
45
48
  onUploadAudio(): Promise<void>;
46
49
  getAudios(): Promise<void>;
@@ -30,7 +30,6 @@ export declare class AddZoneComponent implements OnInit {
30
30
  layers: Layer[];
31
31
  fromPlan: boolean;
32
32
  chosenScansOnPlan: string[];
33
- navIDsZoneEdit: string[];
34
33
  currentOrgId: string;
35
34
  zoneInitialNavCount: number;
36
35
  zoneIsMatterportFloor: boolean;
@@ -59,7 +58,10 @@ export declare class AddZoneComponent implements OnInit {
59
58
  * Multiple floors
60
59
  */
61
60
  onChangeMultipleFloors(): void;
62
- onSelectedSweepsFromPlan(sweeps: string[]): void;
61
+ onSelectedSweepsFromPlan(result: {
62
+ sweeps: string[];
63
+ startSweepID: string;
64
+ }): void;
63
65
  static ɵfac: i0.ɵɵFactoryDeclaration<AddZoneComponent, never>;
64
66
  static ɵcmp: i0.ɵɵComponentDeclaration<AddZoneComponent, "lib-add-zone", never, { "zoneEdit": "zoneEdit"; "spaceID": "spaceID"; "images360": "images360"; "navigationIDs": "navigationIDs"; "zones": "zones"; "newZoneDataFromEditor": "newZoneDataFromEditor"; "chosenPlan": "chosenPlan"; "isMuseumVisit": "isMuseumVisit"; "defaultZone": "defaultZone"; }, { "updatedZone": "updatedZone"; }, never, never>;
65
67
  }
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { Navigation, NavigationService, Plan, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
2
+ import { Navigation, NavigationService, Plan, Zone, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
3
3
  import { PanZoom } from 'panzoom';
4
4
  import { Rectangle } from '../../../../helper.service';
5
5
  import * as i0 from "@angular/core";
@@ -15,6 +15,8 @@ export declare class SweepPlanSelectionComponent implements OnInit {
15
15
  navIDsZoneEdit: string[];
16
16
  occupiedSweeps: string[];
17
17
  unavailableSweeps: string[];
18
+ editingAudioZone: boolean;
19
+ inputZone: Zone;
18
20
  chosenPlan: Plan;
19
21
  /** panZoom element for adding scans */
20
22
  panZoom: PanZoom;
@@ -24,10 +26,16 @@ export declare class SweepPlanSelectionComponent implements OnInit {
24
26
  buttonElements: HTMLButtonElement[];
25
27
  /** Scan buttons that are in the current selection */
26
28
  buttonsInSelection: HTMLButtonElement[];
27
- sweepsSelected: EventEmitter<string[]>;
29
+ sweepsSelected: EventEmitter<{
30
+ sweeps: string[];
31
+ startSweepID: string;
32
+ }>;
33
+ isSettingStartSweep: boolean;
34
+ startSweepID: string;
28
35
  constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService);
29
36
  ngOnInit(): void;
30
37
  ngOnChanges(): void;
38
+ setSweepsOfInputZone(): void;
31
39
  getPlans(): Promise<void>;
32
40
  onPlanClick(plan: Plan): Promise<void>;
33
41
  addScanPoints(): Promise<void>;
@@ -84,5 +92,5 @@ export declare class SweepPlanSelectionComponent implements OnInit {
84
92
  onSaveSelection(): void;
85
93
  onCancel(): void;
86
94
  static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "navIDsZoneEdit": "navIDsZoneEdit"; "occupiedSweeps": "occupiedSweeps"; "unavailableSweeps": "unavailableSweeps"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
95
+ static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "occupiedSweeps": "occupiedSweeps"; "unavailableSweeps": "unavailableSweeps"; "editingAudioZone": "editingAudioZone"; "inputZone": "inputZone"; }, { "sweepsSelected": "sweepsSelected"; }, never, never>;
88
96
  }
@@ -4,6 +4,13 @@ export declare type Rectangle = {
4
4
  width: number;
5
5
  height: number;
6
6
  };
7
+ export declare enum SweepState {
8
+ ADDED = 0,
9
+ REMOVED = 1,
10
+ DISABLED = 2,
11
+ OCCUPIED = 3,
12
+ STARTPOINT = 4
13
+ }
7
14
  export declare function isInPolygon(p: {
8
15
  x: any;
9
16
  y: any;
@@ -31,7 +38,7 @@ export declare function buttonIsInSelection(button: HTMLButtonElement, selection
31
38
  * @param isAdded boolean, if the sweep added to the zone
32
39
  * @param isOccupied boolean, if the sweep added to any other zone (but not current)
33
40
  */
34
- export declare function styleButton(button: HTMLButtonElement, isAdded?: boolean, isOccupied?: boolean, disabled?: boolean): void;
41
+ export declare function styleButton(button: HTMLButtonElement, state: SweepState): void;
35
42
  /**
36
43
  * Check if sweep (button) is chosen; it is reprsented by image style "mdi:adjust"
37
44
  * @param button HTMLElement
@@ -17,17 +17,18 @@ import * as i15 from "./components/zones/add-zone/selection/selection.component"
17
17
  import * as i16 from "./components/carousel/carousel.component";
18
18
  import * as i17 from "./components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component";
19
19
  import * as i18 from "./components/zones/add-audio-zone/add-audio-zone.component";
20
- import * as i19 from "ng2-pdf-viewer";
21
- import * as i20 from "ngx-clipboard";
22
- import * as i21 from "@ng-bootstrap/ng-bootstrap";
23
- import * as i22 from "@angular/common";
24
- import * as i23 from "@ngx-translate/core";
25
- import * as i24 from "@asymmetrik/ngx-leaflet";
26
- import * as i25 from "@angular/forms";
27
- import * as i26 from "@smarterplan/ngx-smarterplan-core";
28
- import * as i27 from "./ngx-smarterplan-location-routing.module";
20
+ import * as i19 from "./radio-button/radio-button.component";
21
+ import * as i20 from "ng2-pdf-viewer";
22
+ import * as i21 from "ngx-clipboard";
23
+ import * as i22 from "@ng-bootstrap/ng-bootstrap";
24
+ import * as i23 from "@angular/common";
25
+ import * as i24 from "@ngx-translate/core";
26
+ import * as i25 from "@asymmetrik/ngx-leaflet";
27
+ import * as i26 from "@angular/forms";
28
+ import * as i27 from "@smarterplan/ngx-smarterplan-core";
29
+ import * as i28 from "./ngx-smarterplan-location-routing.module";
29
30
  export declare class NgxSmarterplanLocationsModule {
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsModule, never>;
31
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmarterplanLocationsModule, [typeof i1.LocationsComponent, typeof i2.DetailLocationComponent, typeof i3.CalibrationComponent, typeof i4.PlansComponent, typeof i5.VisitsComponent, typeof i6.ZonesComponent, typeof i7.ImagesComponent, typeof i8.EditPlanComponent, typeof i9.TabNavigationComponent, typeof i10.MapComponent, typeof i11.MapPopupComponent, typeof i12.FormLocationComponent, typeof i13.ChevronComponent, typeof i14.AddZoneComponent, typeof i15.SelectionComponent, typeof i16.CarouselComponent, typeof i17.SweepPlanSelectionComponent, typeof i18.AddAudioZoneComponent], [typeof i19.PdfViewerModule, typeof i20.ClipboardModule, typeof i21.NgbModule, typeof i21.NgbAlertModule, typeof i22.CommonModule, typeof i23.TranslateModule, typeof i24.LeafletModule, typeof i25.FormsModule, typeof i25.ReactiveFormsModule, typeof i26.NgxSmarterplanCoreModule, typeof i27.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmarterplanLocationsModule, [typeof i1.LocationsComponent, typeof i2.DetailLocationComponent, typeof i3.CalibrationComponent, typeof i4.PlansComponent, typeof i5.VisitsComponent, typeof i6.ZonesComponent, typeof i7.ImagesComponent, typeof i8.EditPlanComponent, typeof i9.TabNavigationComponent, typeof i10.MapComponent, typeof i11.MapPopupComponent, typeof i12.FormLocationComponent, typeof i13.ChevronComponent, typeof i14.AddZoneComponent, typeof i15.SelectionComponent, typeof i16.CarouselComponent, typeof i17.SweepPlanSelectionComponent, typeof i18.AddAudioZoneComponent, typeof i19.RadioButtonComponent], [typeof i20.PdfViewerModule, typeof i21.ClipboardModule, typeof i22.NgbModule, typeof i22.NgbAlertModule, typeof i23.CommonModule, typeof i24.TranslateModule, typeof i25.LeafletModule, typeof i26.FormsModule, typeof i26.ReactiveFormsModule, typeof i27.NgxSmarterplanCoreModule, typeof i28.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
32
33
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmarterplanLocationsModule>;
33
34
  }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RadioButtonComponent implements OnInit {
4
+ label: string;
5
+ isCheckedEvent: EventEmitter<boolean>;
6
+ isChecked: boolean;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ onChecked(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "lib-radio-button", never, { "label": "label"; }, { "isCheckedEvent": "isCheckedEvent"; }, never, never>;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-locations",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.0",
6
6
  "@angular/core": "^13.2.0",
@@ -9,7 +9,7 @@
9
9
  "@ngx-translate/core": "^14.0.0",
10
10
  "leaflet": "^1.8.0",
11
11
  "ngx-clipboard": "^15.1.0",
12
- "@smarterplan/ngx-smarterplan-core": "^1.0.1",
12
+ "@smarterplan/ngx-smarterplan-core": "^1.0.5",
13
13
  "panzoom": "^9.4.2",
14
14
  "ng2-pdf-viewer": "^9.0.0"
15
15
  },