@smarterplan/ngx-smarterplan-locations 0.3.4 → 0.4.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.
Files changed (82) hide show
  1. package/esm2022/lib/components/carousel/carousel.component.mjs +30 -0
  2. package/esm2022/lib/components/chevron/chevron.component.mjs +18 -0
  3. package/esm2022/lib/components/detail-location/detail-location.component.mjs +183 -0
  4. package/{esm2020 → esm2022}/lib/components/form-location/form-location.component.mjs +254 -237
  5. package/esm2022/lib/components/images/images.component.mjs +120 -0
  6. package/esm2022/lib/components/locations/locations.component.mjs +157 -0
  7. package/esm2022/lib/components/locations/map/map-popup/map-popup.component.mjs +72 -0
  8. package/esm2022/lib/components/locations/map/map.component.mjs +92 -0
  9. package/esm2022/lib/components/plan-legend/plan-legend.component.mjs +49 -0
  10. package/esm2022/lib/components/plans/calibration/calibration.component.mjs +494 -0
  11. package/esm2022/lib/components/plans/edit-plan/edit-plan.component.mjs +350 -0
  12. package/{esm2020 → esm2022}/lib/components/plans/plans.component.mjs +243 -225
  13. package/esm2022/lib/components/tab-navigation/tab-navigation.component.mjs +43 -0
  14. package/esm2022/lib/components/visits/visits.component.mjs +294 -0
  15. package/esm2022/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +250 -0
  16. package/esm2022/lib/components/zones/add-zone/add-zone.component.mjs +333 -0
  17. package/esm2022/lib/components/zones/add-zone/selection/selection.component.mjs +81 -0
  18. package/esm2022/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +518 -0
  19. package/esm2022/lib/components/zones/zones.component.mjs +291 -0
  20. package/{esm2020 → esm2022}/lib/helper.service.mjs +133 -133
  21. package/esm2022/lib/ngx-smarterplan-location-routing.module.mjs +50 -0
  22. package/esm2022/lib/ngx-smarterplan-locations.module.mjs +124 -0
  23. package/esm2022/lib/ngx-smarterplan-locations.service.mjs +15 -0
  24. package/esm2022/lib/pipes/count-audio-sweeps.pipe.mjs +29 -0
  25. package/esm2022/lib/radio-button/radio-button.component.mjs +28 -0
  26. package/{esm2020 → esm2022}/public-api.mjs +8 -8
  27. package/{esm2020 → esm2022}/smarterplan-ngx-smarterplan-locations.mjs +4 -4
  28. package/{fesm2020 → fesm2022}/smarterplan-ngx-smarterplan-locations.mjs +3959 -3738
  29. package/fesm2022/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
  30. package/index.d.ts +5 -5
  31. package/lib/components/carousel/carousel.component.d.ts +12 -12
  32. package/lib/components/chevron/chevron.component.d.ts +9 -9
  33. package/lib/components/detail-location/detail-location.component.d.ts +55 -55
  34. package/lib/components/form-location/form-location.component.d.ts +45 -45
  35. package/lib/components/images/images.component.d.ts +33 -33
  36. package/lib/components/locations/locations.component.d.ts +51 -51
  37. package/lib/components/locations/map/map-popup/map-popup.component.d.ts +22 -22
  38. package/lib/components/locations/map/map.component.d.ts +21 -22
  39. package/lib/components/plan-legend/plan-legend.component.d.ts +14 -14
  40. package/lib/components/plans/calibration/calibration.component.d.ts +140 -140
  41. package/lib/components/plans/edit-plan/edit-plan.component.d.ts +55 -55
  42. package/lib/components/plans/plans.component.d.ts +63 -63
  43. package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -13
  44. package/lib/components/visits/visits.component.d.ts +63 -63
  45. package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +63 -63
  46. package/lib/components/zones/add-zone/add-zone.component.d.ts +69 -69
  47. package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -44
  48. package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +107 -107
  49. package/lib/components/zones/zones.component.d.ts +73 -73
  50. package/lib/helper.service.d.ts +53 -53
  51. package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -7
  52. package/lib/ngx-smarterplan-locations.module.d.ts +36 -36
  53. package/lib/ngx-smarterplan-locations.service.d.ts +6 -6
  54. package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -10
  55. package/lib/radio-button/radio-button.component.d.ts +12 -12
  56. package/package.json +13 -19
  57. package/public-api.d.ts +4 -4
  58. package/esm2020/lib/components/carousel/carousel.component.mjs +0 -28
  59. package/esm2020/lib/components/chevron/chevron.component.mjs +0 -18
  60. package/esm2020/lib/components/detail-location/detail-location.component.mjs +0 -168
  61. package/esm2020/lib/components/images/images.component.mjs +0 -107
  62. package/esm2020/lib/components/locations/locations.component.mjs +0 -145
  63. package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +0 -66
  64. package/esm2020/lib/components/locations/map/map.component.mjs +0 -91
  65. package/esm2020/lib/components/plan-legend/plan-legend.component.mjs +0 -47
  66. package/esm2020/lib/components/plans/calibration/calibration.component.mjs +0 -468
  67. package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +0 -324
  68. package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +0 -41
  69. package/esm2020/lib/components/visits/visits.component.mjs +0 -275
  70. package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +0 -230
  71. package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +0 -315
  72. package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +0 -77
  73. package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +0 -502
  74. package/esm2020/lib/components/zones/zones.component.mjs +0 -268
  75. package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +0 -49
  76. package/esm2020/lib/ngx-smarterplan-locations.module.mjs +0 -123
  77. package/esm2020/lib/ngx-smarterplan-locations.service.mjs +0 -14
  78. package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +0 -27
  79. package/esm2020/lib/radio-button/radio-button.component.mjs +0 -26
  80. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +0 -3983
  81. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +0 -1
  82. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +0 -1
@@ -1,63 +1,63 @@
1
- import { OnInit } from '@angular/core';
2
- import { UntypedFormGroup, UntypedFormBuilder, AbstractControl } from '@angular/forms';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
5
- import { Visit, MenuItem, MatterportImportService, CaptureService, NodeService, SpaceService, VisitService, ValidatorsService, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
6
- import { TranslateService } from '@ngx-translate/core';
7
- import { Subject } from 'rxjs';
8
- import * as i0 from "@angular/core";
9
- export declare class VisitsComponent implements OnInit {
10
- private fb;
11
- private matterportImportService;
12
- private captureService;
13
- private nodeService;
14
- private spaceService;
15
- private route;
16
- private modalService;
17
- private visitService;
18
- validatorsService: ValidatorsService;
19
- private translate;
20
- private navigatorService;
21
- private router;
22
- spaceId: string;
23
- visitIndexDetails: number;
24
- visitForm: UntypedFormGroup;
25
- isEditing: boolean;
26
- visitSubmitted: boolean;
27
- captureDate: number;
28
- currentSpace: any;
29
- visits: Visit[];
30
- closeResult: string;
31
- private content;
32
- modalReference: any;
33
- canCancelImport: boolean;
34
- imagesProcessed: number;
35
- totalImages: number;
36
- imagesUploaded: number;
37
- menuItems: MenuItem[];
38
- errorForm: boolean;
39
- isProcessing: boolean;
40
- destroy$: Subject<unknown>;
41
- constructor(fb: UntypedFormBuilder, matterportImportService: MatterportImportService, captureService: CaptureService, nodeService: NodeService, spaceService: SpaceService, route: ActivatedRoute, modalService: NgbModal, visitService: VisitService, validatorsService: ValidatorsService, translate: TranslateService, navigatorService: NavigatorService, router: Router);
42
- ngOnInit(): Promise<void>;
43
- ngOnDestroy(): void;
44
- setupMenuItems(): void;
45
- onGoBack(): void;
46
- resetVisits(): Promise<void>;
47
- initVisitForm(input?: Visit): void;
48
- onToggleDetail(index: any): Promise<void>;
49
- onAddVisit(): void;
50
- onEdit(visit: any): void;
51
- onSubmitVisit(): Promise<void>;
52
- get model3D(): AbstractControl;
53
- get name(): AbstractControl;
54
- onCancel(): void;
55
- onDelete(visit: Visit, needPermission?: boolean): Promise<void>;
56
- private getDismissReason;
57
- launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean, overrideExisting?: boolean): Promise<void>;
58
- private cancelImport;
59
- onImportImages(visit: Visit, overrideExisting: any): void;
60
- isFormError(control: any): boolean;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<VisitsComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<VisitsComponent, "lib-visits", never, {}, {}, never, never, false, never>;
63
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { UntypedFormGroup, UntypedFormBuilder, AbstractControl } from '@angular/forms';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
5
+ import { Visit, MenuItem, MatterportImportService, CaptureService, NodeService, SpaceService, VisitService, ValidatorsService, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
6
+ import { TranslateService } from '@ngx-translate/core';
7
+ import { Subject } from 'rxjs';
8
+ import * as i0 from "@angular/core";
9
+ export declare class VisitsComponent implements OnInit {
10
+ private fb;
11
+ private matterportImportService;
12
+ private captureService;
13
+ private nodeService;
14
+ private spaceService;
15
+ private route;
16
+ private modalService;
17
+ private visitService;
18
+ validatorsService: ValidatorsService;
19
+ private translate;
20
+ private navigatorService;
21
+ private router;
22
+ spaceId: string;
23
+ visitIndexDetails: number;
24
+ visitForm: UntypedFormGroup;
25
+ isEditing: boolean;
26
+ visitSubmitted: boolean;
27
+ captureDate: number;
28
+ currentSpace: any;
29
+ visits: Visit[];
30
+ closeResult: string;
31
+ private content;
32
+ modalReference: any;
33
+ canCancelImport: boolean;
34
+ imagesProcessed: number;
35
+ totalImages: number;
36
+ imagesUploaded: number;
37
+ menuItems: MenuItem[];
38
+ errorForm: boolean;
39
+ isProcessing: boolean;
40
+ destroy$: Subject<unknown>;
41
+ constructor(fb: UntypedFormBuilder, matterportImportService: MatterportImportService, captureService: CaptureService, nodeService: NodeService, spaceService: SpaceService, route: ActivatedRoute, modalService: NgbModal, visitService: VisitService, validatorsService: ValidatorsService, translate: TranslateService, navigatorService: NavigatorService, router: Router);
42
+ ngOnInit(): Promise<void>;
43
+ ngOnDestroy(): void;
44
+ setupMenuItems(): void;
45
+ onGoBack(): void;
46
+ resetVisits(): Promise<void>;
47
+ initVisitForm(input?: Visit): void;
48
+ onToggleDetail(index: any): Promise<void>;
49
+ onAddVisit(): void;
50
+ onEdit(visit: any): void;
51
+ onSubmitVisit(): Promise<void>;
52
+ get model3D(): AbstractControl;
53
+ get name(): AbstractControl;
54
+ onCancel(): void;
55
+ onDelete(visit: Visit, needPermission?: boolean): Promise<void>;
56
+ private getDismissReason;
57
+ launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean, overrideExisting?: boolean): Promise<void>;
58
+ private cancelImport;
59
+ onImportImages(visit: Visit, overrideExisting: any): void;
60
+ isFormError(control: any): boolean;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisitsComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisitsComponent, "lib-visits", never, {}, {}, never, never, false, never>;
63
+ }
@@ -1,63 +1,63 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { ZoneService, LayerService, BaseUserService, NavigationService, Layer, Zone, CommentService, Comment } from '@smarterplan/ngx-smarterplan-core';
5
- import * as i0 from "@angular/core";
6
- export declare class AddAudioZoneComponent implements OnInit {
7
- private fb;
8
- private zoneService;
9
- private layerService;
10
- private userService;
11
- private navigationService;
12
- private commentService;
13
- private translate;
14
- spaceID: string;
15
- updatedZone: EventEmitter<any>;
16
- defaultZone: Zone;
17
- zones: Zone[];
18
- parentZone: Zone;
19
- isSubmitted: boolean;
20
- fromPlan: boolean;
21
- chosenScansOnPlan: string[];
22
- currentOrgId: string;
23
- audioLayer: Layer;
24
- commentForm: UntypedFormGroup;
25
- fileToUpload: File;
26
- audiosForSpace: Comment[];
27
- isAddingAudio: boolean;
28
- chosenAudio: Comment;
29
- audioZones: Zone[];
30
- currentAudioZone: Zone;
31
- scansModified: boolean;
32
- occupiedSweeps: string[];
33
- unavailableSweeps: string[];
34
- working: boolean;
35
- audioUploaded: boolean;
36
- constructor(fb: UntypedFormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService, commentService: CommentService, translate: TranslateService);
37
- ngOnInit(): void;
38
- setup(): Promise<void>;
39
- onSubmit(): Promise<void>;
40
- setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
41
- onCancel(): void;
42
- togglePlan(): void;
43
- onSelectedSweepsFromPlan(result: {
44
- "sweeps": string[];
45
- "startSweepID": string;
46
- }): void;
47
- handleFileInput(event: Event): void;
48
- onUploadAudio(): Promise<void>;
49
- getAudios(): Promise<void>;
50
- onCancelAudioUpload(): void;
51
- onChooseAudio(audio: Comment): void;
52
- /**
53
- * Removes newly selected sweeps for current zone (they are in chosenScansOnPlan) from other audio zones.
54
- * Rule: one sweep = one audio.
55
- */
56
- removeTakenSweepsFromOtherZones(): Promise<void>;
57
- /**
58
- * Delete audio as Comment, all its audio Zones and file from S3 (using lambda function)
59
- */
60
- onDeleteAudio(): Promise<void>;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<AddAudioZoneComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<AddAudioZoneComponent, "lib-add-audio-zone", never, { "spaceID": "spaceID"; "defaultZone": "defaultZone"; "zones": "zones"; "parentZone": "parentZone"; "currentAudioZone": "currentAudioZone"; }, { "updatedZone": "updatedZone"; }, never, never, false, never>;
63
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { ZoneService, LayerService, BaseUserService, NavigationService, Layer, Zone, CommentService, Comment } from '@smarterplan/ngx-smarterplan-core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AddAudioZoneComponent implements OnInit {
7
+ private fb;
8
+ private zoneService;
9
+ private layerService;
10
+ private userService;
11
+ private navigationService;
12
+ private commentService;
13
+ private translate;
14
+ spaceID: string;
15
+ updatedZone: EventEmitter<any>;
16
+ defaultZone: Zone;
17
+ zones: Zone[];
18
+ parentZone: Zone;
19
+ isSubmitted: boolean;
20
+ fromPlan: boolean;
21
+ chosenScansOnPlan: string[];
22
+ currentOrgId: string;
23
+ audioLayer: Layer;
24
+ commentForm: UntypedFormGroup;
25
+ fileToUpload: File;
26
+ audiosForSpace: Comment[];
27
+ isAddingAudio: boolean;
28
+ chosenAudio: Comment;
29
+ audioZones: Zone[];
30
+ currentAudioZone: Zone;
31
+ scansModified: boolean;
32
+ occupiedSweeps: string[];
33
+ unavailableSweeps: string[];
34
+ working: boolean;
35
+ audioUploaded: boolean;
36
+ constructor(fb: UntypedFormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService, commentService: CommentService, translate: TranslateService);
37
+ ngOnInit(): void;
38
+ setup(): Promise<void>;
39
+ onSubmit(): Promise<void>;
40
+ setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
41
+ onCancel(): void;
42
+ togglePlan(): void;
43
+ onSelectedSweepsFromPlan(result: {
44
+ "sweeps": string[];
45
+ "startSweepID": string;
46
+ }): void;
47
+ handleFileInput(event: Event): void;
48
+ onUploadAudio(): Promise<void>;
49
+ getAudios(): Promise<void>;
50
+ onCancelAudioUpload(): void;
51
+ onChooseAudio(audio: Comment): void;
52
+ /**
53
+ * Removes newly selected sweeps for current zone (they are in chosenScansOnPlan) from other audio zones.
54
+ * Rule: one sweep = one audio.
55
+ */
56
+ removeTakenSweepsFromOtherZones(): Promise<void>;
57
+ /**
58
+ * Delete audio as Comment, all its audio Zones and file from S3 (using lambda function)
59
+ */
60
+ onDeleteAudio(): Promise<void>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddAudioZoneComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddAudioZoneComponent, "lib-add-audio-zone", never, { "spaceID": { "alias": "spaceID"; "required": false; }; "defaultZone": { "alias": "defaultZone"; "required": false; }; "zones": { "alias": "zones"; "required": false; }; "parentZone": { "alias": "parentZone"; "required": false; }; "currentAudioZone": { "alias": "currentAudioZone"; "required": false; }; }, { "updatedZone": "updatedZone"; }, never, never, false, never>;
63
+ }
@@ -1,69 +1,69 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ValidatorFn } from '@angular/forms';
3
- import { Zone, Plan, Layer, ZoneService, LayerService, BaseUserService, NavigationService } from '@smarterplan/ngx-smarterplan-core';
4
- import * as i0 from "@angular/core";
5
- export declare class AddZoneComponent implements OnInit {
6
- private fb;
7
- private zoneService;
8
- private layerService;
9
- private userService;
10
- private navigationService;
11
- zoneEdit: Zone;
12
- spaceID: string;
13
- images360: {
14
- path: string;
15
- filename: string;
16
- }[];
17
- navigationIDs: string[];
18
- zones: Zone[];
19
- newZoneDataFromEditor: any;
20
- updatedZone: EventEmitter<any>;
21
- chosenPlan: Plan;
22
- isMuseumVisit: boolean;
23
- defaultZone: Zone;
24
- parentZones: Zone[];
25
- carouselIsVisible: boolean;
26
- zoneForm: UntypedFormGroup;
27
- isSubmitted: boolean;
28
- currentScanShowing: number;
29
- chosenScans: number[];
30
- layers: Layer[];
31
- fromPlan: boolean;
32
- chosenScansOnPlan: string[];
33
- currentOrgId: string;
34
- zoneInitialNavCount: number;
35
- zoneIsMatterportFloor: boolean;
36
- multipleFloors: boolean;
37
- constructor(fb: UntypedFormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService);
38
- ngOnInit(): Promise<void>;
39
- updateLayers(): Promise<void>;
40
- initZoneForm(): Promise<void>;
41
- onSubmitZone(): Promise<void>;
42
- onCancel(): void;
43
- get name(): AbstractControl;
44
- get newLayer(): AbstractControl;
45
- toggleCarousel(): void;
46
- togglePlan(): void;
47
- onAddScan(): void;
48
- onRemoveScanImage(scan: any): void;
49
- onRemoveScanPlan(scan: any): void;
50
- setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
51
- createLayer(name: string): Promise<Layer>;
52
- loadNavigations(): Promise<any>;
53
- /**
54
- * Adds all sweeps of the space
55
- */
56
- onAddAll(): void;
57
- getDefaultZone(): Zone;
58
- /**
59
- * Multiple floors
60
- */
61
- onChangeMultipleFloors(): void;
62
- onSelectedSweepsFromPlan(result: {
63
- sweeps: string[];
64
- startSweepID: string;
65
- }): void;
66
- layerNameValidator(): ValidatorFn;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<AddZoneComponent, never>;
68
- 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, false, never>;
69
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { UntypedFormGroup, UntypedFormBuilder, AbstractControl, ValidatorFn } from '@angular/forms';
3
+ import { Zone, Plan, Layer, ZoneService, LayerService, BaseUserService, NavigationService } from '@smarterplan/ngx-smarterplan-core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class AddZoneComponent implements OnInit {
6
+ private fb;
7
+ private zoneService;
8
+ private layerService;
9
+ private userService;
10
+ private navigationService;
11
+ zoneEdit: Zone;
12
+ spaceID: string;
13
+ images360: {
14
+ path: string;
15
+ filename: string;
16
+ }[];
17
+ navigationIDs: string[];
18
+ zones: Zone[];
19
+ newZoneDataFromEditor: any;
20
+ updatedZone: EventEmitter<any>;
21
+ chosenPlan: Plan;
22
+ isMuseumVisit: boolean;
23
+ defaultZone: Zone;
24
+ parentZones: Zone[];
25
+ carouselIsVisible: boolean;
26
+ zoneForm: UntypedFormGroup;
27
+ isSubmitted: boolean;
28
+ currentScanShowing: number;
29
+ chosenScans: number[];
30
+ layers: Layer[];
31
+ fromPlan: boolean;
32
+ chosenScansOnPlan: string[];
33
+ currentOrgId: string;
34
+ zoneInitialNavCount: number;
35
+ zoneIsMatterportFloor: boolean;
36
+ multipleFloors: boolean;
37
+ constructor(fb: UntypedFormBuilder, zoneService: ZoneService, layerService: LayerService, userService: BaseUserService, navigationService: NavigationService);
38
+ ngOnInit(): Promise<void>;
39
+ updateLayers(): Promise<void>;
40
+ initZoneForm(): Promise<void>;
41
+ onSubmitZone(): Promise<void>;
42
+ onCancel(): void;
43
+ get name(): AbstractControl;
44
+ get newLayer(): AbstractControl;
45
+ toggleCarousel(): void;
46
+ togglePlan(): void;
47
+ onAddScan(): void;
48
+ onRemoveScanImage(scan: any): void;
49
+ onRemoveScanPlan(scan: any): void;
50
+ setSweepsAndNodeForZoneInput(zoneInput: Zone): Promise<void>;
51
+ createLayer(name: string): Promise<Layer>;
52
+ loadNavigations(): Promise<any>;
53
+ /**
54
+ * Adds all sweeps of the space
55
+ */
56
+ onAddAll(): void;
57
+ getDefaultZone(): Zone;
58
+ /**
59
+ * Multiple floors
60
+ */
61
+ onChangeMultipleFloors(): void;
62
+ onSelectedSweepsFromPlan(result: {
63
+ sweeps: string[];
64
+ startSweepID: string;
65
+ }): void;
66
+ layerNameValidator(): ValidatorFn;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddZoneComponent, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddZoneComponent, "lib-add-zone", never, { "zoneEdit": { "alias": "zoneEdit"; "required": false; }; "spaceID": { "alias": "spaceID"; "required": false; }; "images360": { "alias": "images360"; "required": false; }; "navigationIDs": { "alias": "navigationIDs"; "required": false; }; "zones": { "alias": "zones"; "required": false; }; "newZoneDataFromEditor": { "alias": "newZoneDataFromEditor"; "required": false; }; "chosenPlan": { "alias": "chosenPlan"; "required": false; }; "isMuseumVisit": { "alias": "isMuseumVisit"; "required": false; }; "defaultZone": { "alias": "defaultZone"; "required": false; }; }, { "updatedZone": "updatedZone"; }, never, never, false, never>;
69
+ }
@@ -1,44 +1,44 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { Rectangle } from '../../../../helper.service';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectionComponent implements OnInit {
5
- constructor();
6
- /**Emit a new selection */
7
- onSelectionChanged: EventEmitter<Rectangle>;
8
- /**Zone wich you can use a selection inside, must have the class ".selectZone" */
9
- selectionableZone: HTMLElement;
10
- /**HtmlElement use to display the selected zone (blue) */
11
- selectionElement: HTMLElement;
12
- isMousedown: boolean;
13
- selection: {
14
- startX: number;
15
- startY: number;
16
- endX: number;
17
- endY: number;
18
- };
19
- selectionRectangle: Rectangle;
20
- ngOnInit(): void;
21
- /**
22
- * Update the current selection
23
- * Will update the selectionRectangle and Selection HTML element
24
- * @param shouldEmit if true an event will be emitted through onSelectionChanged (true by default)
25
- */
26
- updateSelectionElement(shouldEmit?: boolean): void;
27
- /**
28
- * Trigger when mouse is press down on selectionableZone
29
- * @param event
30
- */
31
- mousedown(event: MouseEvent): void;
32
- /**
33
- * Trigger when mouse is release on selectionableZone
34
- * @param event
35
- */
36
- mouseup(event: MouseEvent): void;
37
- /**
38
- * Trigger when mouse is moving on selectionableZone
39
- * @param event
40
- */
41
- mousemove(event: MouseEvent): void;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectionComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectionComponent, "lib-selection", never, {}, { "onSelectionChanged": "onSelectionChanged"; }, never, ["*"], false, never>;
44
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Rectangle } from '../../../../helper.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectionComponent implements OnInit {
5
+ constructor();
6
+ /**Emit a new selection */
7
+ onSelectionChanged: EventEmitter<Rectangle>;
8
+ /**Zone wich you can use a selection inside, must have the class ".selectZone" */
9
+ selectionableZone: HTMLElement;
10
+ /**HtmlElement use to display the selected zone (blue) */
11
+ selectionElement: HTMLElement;
12
+ isMousedown: boolean;
13
+ selection: {
14
+ startX: number;
15
+ startY: number;
16
+ endX: number;
17
+ endY: number;
18
+ };
19
+ selectionRectangle: Rectangle;
20
+ ngOnInit(): void;
21
+ /**
22
+ * Update the current selection
23
+ * Will update the selectionRectangle and Selection HTML element
24
+ * @param shouldEmit if true an event will be emitted through onSelectionChanged (true by default)
25
+ */
26
+ updateSelectionElement(shouldEmit?: boolean): void;
27
+ /**
28
+ * Trigger when mouse is press down on selectionableZone
29
+ * @param event
30
+ */
31
+ mousedown(event: MouseEvent): void;
32
+ /**
33
+ * Trigger when mouse is release on selectionableZone
34
+ * @param event
35
+ */
36
+ mouseup(event: MouseEvent): void;
37
+ /**
38
+ * Trigger when mouse is moving on selectionableZone
39
+ * @param event
40
+ */
41
+ mousemove(event: MouseEvent): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectionComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectionComponent, "lib-selection", never, {}, { "onSelectionChanged": "onSelectionChanged"; }, never, ["*"], false, never>;
44
+ }