@smarterplan/ngx-smarterplan-locations 0.2.44 → 0.2.45

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 (152) hide show
  1. package/esm2020/lib/components/carousel/carousel.component.mjs +28 -0
  2. package/esm2020/lib/components/chevron/chevron.component.mjs +18 -0
  3. package/esm2020/lib/components/detail-location/detail-location.component.mjs +168 -0
  4. package/esm2020/lib/components/form-location/form-location.component.mjs +237 -0
  5. package/esm2020/lib/components/images/images.component.mjs +107 -0
  6. package/esm2020/lib/components/locations/locations.component.mjs +145 -0
  7. package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +66 -0
  8. package/esm2020/lib/components/locations/map/map.component.mjs +91 -0
  9. package/esm2020/lib/components/plan-legend/plan-legend.component.mjs +47 -0
  10. package/esm2020/lib/components/plans/calibration/calibration.component.mjs +468 -0
  11. package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +324 -0
  12. package/esm2020/lib/components/plans/plans.component.mjs +225 -0
  13. package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +41 -0
  14. package/esm2020/lib/components/visits/visits.component.mjs +283 -0
  15. package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +230 -0
  16. package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +315 -0
  17. package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +77 -0
  18. package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +502 -0
  19. package/esm2020/lib/components/zones/zones.component.mjs +268 -0
  20. package/esm2020/lib/helper.service.mjs +134 -0
  21. package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +49 -0
  22. package/esm2020/lib/ngx-smarterplan-locations.module.mjs +125 -0
  23. package/esm2020/lib/ngx-smarterplan-locations.service.mjs +14 -0
  24. package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +27 -0
  25. package/esm2020/lib/radio-button/radio-button.component.mjs +26 -0
  26. package/esm2020/public-api.mjs +9 -0
  27. package/esm2020/smarterplan-ngx-smarterplan-locations.mjs +5 -0
  28. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +3991 -0
  29. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
  30. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +3828 -0
  31. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
  32. package/lib/components/carousel/carousel.component.d.ts +12 -0
  33. package/lib/components/chevron/chevron.component.d.ts +9 -0
  34. package/lib/components/detail-location/detail-location.component.d.ts +55 -0
  35. package/lib/components/form-location/form-location.component.d.ts +45 -0
  36. package/lib/components/images/images.component.d.ts +33 -0
  37. package/lib/components/locations/locations.component.d.ts +51 -0
  38. package/lib/components/locations/map/map-popup/map-popup.component.d.ts +22 -0
  39. package/lib/components/locations/map/map.component.d.ts +22 -0
  40. package/lib/components/plan-legend/plan-legend.component.d.ts +14 -0
  41. package/lib/components/plans/calibration/calibration.component.d.ts +140 -0
  42. package/lib/components/plans/edit-plan/edit-plan.component.d.ts +55 -0
  43. package/lib/components/plans/plans.component.d.ts +63 -0
  44. package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -0
  45. package/lib/components/visits/visits.component.d.ts +62 -0
  46. package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +63 -0
  47. package/lib/components/zones/add-zone/add-zone.component.d.ts +69 -0
  48. package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -0
  49. package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +107 -0
  50. package/lib/components/zones/zones.component.d.ts +73 -0
  51. package/lib/helper.service.d.ts +53 -0
  52. package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -0
  53. package/lib/ngx-smarterplan-locations.module.d.ts +36 -0
  54. package/lib/ngx-smarterplan-locations.service.d.ts +6 -0
  55. package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -0
  56. package/lib/radio-button/radio-button.component.d.ts +12 -0
  57. package/package.json +22 -5
  58. package/{src/public-api.ts → public-api.d.ts} +4 -11
  59. package/smarterplan-ngx-smarterplan-locations.d.ts +5 -0
  60. package/.browserslistrc +0 -16
  61. package/karma.conf.js +0 -44
  62. package/ng-package.json +0 -7
  63. package/src/lib/components/carousel/carousel.component.html +0 -13
  64. package/src/lib/components/carousel/carousel.component.scss +0 -0
  65. package/src/lib/components/carousel/carousel.component.spec.ts +0 -25
  66. package/src/lib/components/carousel/carousel.component.ts +0 -31
  67. package/src/lib/components/chevron/chevron.component.html +0 -5
  68. package/src/lib/components/chevron/chevron.component.scss +0 -16
  69. package/src/lib/components/chevron/chevron.component.spec.ts +0 -25
  70. package/src/lib/components/chevron/chevron.component.ts +0 -17
  71. package/src/lib/components/detail-location/detail-location.component.html +0 -108
  72. package/src/lib/components/detail-location/detail-location.component.scss +0 -0
  73. package/src/lib/components/detail-location/detail-location.component.spec.ts +0 -25
  74. package/src/lib/components/detail-location/detail-location.component.ts +0 -215
  75. package/src/lib/components/form-location/form-location.component.html +0 -160
  76. package/src/lib/components/form-location/form-location.component.scss +0 -62
  77. package/src/lib/components/form-location/form-location.component.spec.ts +0 -25
  78. package/src/lib/components/form-location/form-location.component.ts +0 -274
  79. package/src/lib/components/images/images.component.html +0 -27
  80. package/src/lib/components/images/images.component.scss +0 -0
  81. package/src/lib/components/images/images.component.spec.ts +0 -25
  82. package/src/lib/components/images/images.component.ts +0 -133
  83. package/src/lib/components/locations/locations.component.html +0 -63
  84. package/src/lib/components/locations/locations.component.scss +0 -121
  85. package/src/lib/components/locations/locations.component.spec.ts +0 -25
  86. package/src/lib/components/locations/locations.component.ts +0 -186
  87. package/src/lib/components/locations/map/map-popup/map-popup.component.html +0 -11
  88. package/src/lib/components/locations/map/map-popup/map-popup.component.scss +0 -51
  89. package/src/lib/components/locations/map/map-popup/map-popup.component.spec.ts +0 -25
  90. package/src/lib/components/locations/map/map-popup/map-popup.component.ts +0 -79
  91. package/src/lib/components/locations/map/map.component.html +0 -2
  92. package/src/lib/components/locations/map/map.component.scss +0 -0
  93. package/src/lib/components/locations/map/map.component.spec.ts +0 -25
  94. package/src/lib/components/locations/map/map.component.ts +0 -111
  95. package/src/lib/components/plan-legend/plan-legend.component.html +0 -9
  96. package/src/lib/components/plan-legend/plan-legend.component.scss +0 -38
  97. package/src/lib/components/plan-legend/plan-legend.component.spec.ts +0 -25
  98. package/src/lib/components/plan-legend/plan-legend.component.ts +0 -50
  99. package/src/lib/components/plans/calibration/calibration.component.html +0 -98
  100. package/src/lib/components/plans/calibration/calibration.component.scss +0 -136
  101. package/src/lib/components/plans/calibration/calibration.component.spec.ts +0 -25
  102. package/src/lib/components/plans/calibration/calibration.component.ts +0 -603
  103. package/src/lib/components/plans/edit-plan/edit-plan.component.html +0 -77
  104. package/src/lib/components/plans/edit-plan/edit-plan.component.scss +0 -9
  105. package/src/lib/components/plans/edit-plan/edit-plan.component.spec.ts +0 -25
  106. package/src/lib/components/plans/edit-plan/edit-plan.component.ts +0 -421
  107. package/src/lib/components/plans/plans.component.html +0 -102
  108. package/src/lib/components/plans/plans.component.scss +0 -24
  109. package/src/lib/components/plans/plans.component.spec.ts +0 -25
  110. package/src/lib/components/plans/plans.component.ts +0 -305
  111. package/src/lib/components/tab-navigation/tab-navigation.component.html +0 -7
  112. package/src/lib/components/tab-navigation/tab-navigation.component.scss +0 -27
  113. package/src/lib/components/tab-navigation/tab-navigation.component.spec.ts +0 -25
  114. package/src/lib/components/tab-navigation/tab-navigation.component.ts +0 -35
  115. package/src/lib/components/visits/visits.component.html +0 -134
  116. package/src/lib/components/visits/visits.component.scss +0 -24
  117. package/src/lib/components/visits/visits.component.spec.ts +0 -25
  118. package/src/lib/components/visits/visits.component.ts +0 -357
  119. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.html +0 -73
  120. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.scss +0 -14
  121. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.spec.ts +0 -25
  122. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.ts +0 -269
  123. package/src/lib/components/zones/add-zone/add-zone.component.html +0 -153
  124. package/src/lib/components/zones/add-zone/add-zone.component.scss +0 -44
  125. package/src/lib/components/zones/add-zone/add-zone.component.spec.ts +0 -25
  126. package/src/lib/components/zones/add-zone/add-zone.component.ts +0 -377
  127. package/src/lib/components/zones/add-zone/selection/selection.component.html +0 -3
  128. package/src/lib/components/zones/add-zone/selection/selection.component.scss +0 -16
  129. package/src/lib/components/zones/add-zone/selection/selection.component.spec.ts +0 -25
  130. package/src/lib/components/zones/add-zone/selection/selection.component.ts +0 -95
  131. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.html +0 -73
  132. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.scss +0 -23
  133. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.spec.ts +0 -25
  134. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.ts +0 -595
  135. package/src/lib/components/zones/zones.component.html +0 -181
  136. package/src/lib/components/zones/zones.component.scss +0 -36
  137. package/src/lib/components/zones/zones.component.spec.ts +0 -25
  138. package/src/lib/components/zones/zones.component.ts +0 -339
  139. package/src/lib/helper.service.ts +0 -161
  140. package/src/lib/ngx-smarterplan-location-routing.module.ts +0 -41
  141. package/src/lib/ngx-smarterplan-locations.module.ts +0 -74
  142. package/src/lib/ngx-smarterplan-locations.service.spec.ts +0 -16
  143. package/src/lib/ngx-smarterplan-locations.service.ts +0 -9
  144. package/src/lib/pipes/count-audio-sweeps.pipe.ts +0 -21
  145. package/src/lib/radio-button/radio-button.component.html +0 -9
  146. package/src/lib/radio-button/radio-button.component.scss +0 -152
  147. package/src/lib/radio-button/radio-button.component.spec.ts +0 -25
  148. package/src/lib/radio-button/radio-button.component.ts +0 -26
  149. package/src/test.ts +0 -27
  150. package/tsconfig.lib.json +0 -15
  151. package/tsconfig.lib.prod.json +0 -10
  152. package/tsconfig.spec.json +0 -17
@@ -0,0 +1,12 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CarouselComponent implements OnInit {
4
+ images: any;
5
+ currentScan: EventEmitter<number>;
6
+ dataEvent: string;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ onSlide(event: any): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "lib-carousel", never, { "images": "images"; }, { "currentScan": "currentScan"; }, never, never>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ChevronComponent implements OnInit {
4
+ conditionShowing: boolean;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChevronComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChevronComponent, "lib-chevron", never, { "conditionShowing": "conditionShowing"; }, {}, never, never>;
9
+ }
@@ -0,0 +1,55 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { MenuItem, SpaceService, BaseUserService, NavigatorService, Space } from '@smarterplan/ngx-smarterplan-core';
6
+ import { Subject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ export declare class DetailLocationComponent implements OnInit {
9
+ private route;
10
+ private spaceService;
11
+ private router;
12
+ private userService;
13
+ private translate;
14
+ private navigatorService;
15
+ space: Space;
16
+ editForm: FormGroup;
17
+ isEditing: boolean;
18
+ imageToUpload: File;
19
+ id: string;
20
+ menuItems: MenuItem[];
21
+ isValidatingDpe: boolean;
22
+ selectedDpeResult: any;
23
+ gettingData: boolean;
24
+ parsedMetadata: {
25
+ geo_adresse: string;
26
+ secteur_activite: string;
27
+ annee_construction: string;
28
+ classe_consommation_energie: string;
29
+ classe_estimation_ges: string;
30
+ selected: boolean;
31
+ }[];
32
+ guestLink: string;
33
+ canArchive: boolean;
34
+ destroy$: Subject<unknown>;
35
+ constructor(route: ActivatedRoute, spaceService: SpaceService, router: Router, userService: BaseUserService, translate: TranslateService, navigatorService: NavigatorService);
36
+ ngOnInit(): void;
37
+ setup(): Promise<void>;
38
+ ngOnDestroy(): void;
39
+ setupMenuItems(): void;
40
+ onEdit(): void;
41
+ onReturn(): void;
42
+ reset(): void;
43
+ onArchive(): Promise<void>;
44
+ onFormChange(event: Space): void;
45
+ onDpeValidate(): void;
46
+ onSelectChange(selectedResult: any): void;
47
+ onSaveResult(): Promise<void>;
48
+ onCancel(): void;
49
+ onErase(): Promise<void>;
50
+ onGetDpeData(): Promise<void>;
51
+ setGuestLink(): void;
52
+ setCanArchive(): Promise<void>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<DetailLocationComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailLocationComponent, "lib-detail-location", never, {}, {}, never, never>;
55
+ }
@@ -0,0 +1,45 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
3
+ import { Space, LevelStatus, SpaceService, PropertyService, BaseUserService, MissionService, Layer, LayerService } from '@smarterplan/ngx-smarterplan-core';
4
+ import { ValidatorsService } from "@smarterplan/ngx-smarterplan-core";
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormLocationComponent implements OnInit {
7
+ private spaceService;
8
+ private propertyService;
9
+ private userService;
10
+ private fb;
11
+ private missionService;
12
+ private layerService;
13
+ validatorsService: ValidatorsService;
14
+ form: FormGroup;
15
+ imageInputContainer: ElementRef;
16
+ imageInput: ElementRef;
17
+ imageBasePreview: ElementRef;
18
+ location: Space;
19
+ imageToUpload: any;
20
+ isSubmitted: boolean;
21
+ levels: Array<LevelStatus>;
22
+ addMissionForNewSpace: boolean;
23
+ imageInputText: string;
24
+ currentImage: string;
25
+ imageToBeDeleted: boolean;
26
+ errorForm: boolean;
27
+ onChange: EventEmitter<Space>;
28
+ constructor(spaceService: SpaceService, propertyService: PropertyService, userService: BaseUserService, fb: FormBuilder, missionService: MissionService, layerService: LayerService, validatorsService: ValidatorsService);
29
+ ngOnInit(): void;
30
+ initForm(): void;
31
+ initEditForm(): void;
32
+ handleImageInput(target: EventTarget): void;
33
+ uploadImage(spaceID: string): Promise<void>;
34
+ clearImageFile(): void;
35
+ getLayerByName(name: string): Promise<Layer>;
36
+ onSubmit(): Promise<void>;
37
+ onCancel(): void;
38
+ get name(): AbstractControl;
39
+ changeCommaToDot(): void;
40
+ handleInputImageText(): void;
41
+ isFormError(control: any): boolean;
42
+ onFormChange(): void;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormLocationComponent, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormLocationComponent, "lib-form-location", never, { "location": "location"; }, { "onChange": "onChange"; }, never, never>;
45
+ }
@@ -0,0 +1,33 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { Space, Visit, MenuItem, SpaceService, VisitService, NodeService, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
4
+ import { Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ImagesComponent implements OnInit {
7
+ private route;
8
+ private spaceService;
9
+ private visitService;
10
+ private nodeService;
11
+ private navigatorService;
12
+ private router;
13
+ images: Array<any>;
14
+ spaceID: string;
15
+ currentSpace: Space;
16
+ currentVisit: Visit;
17
+ currentImages: Array<any>;
18
+ loading: boolean;
19
+ currentScanID: string;
20
+ menuItems: MenuItem[];
21
+ destroy$: Subject<unknown>;
22
+ constructor(route: ActivatedRoute, spaceService: SpaceService, visitService: VisitService, nodeService: NodeService, navigatorService: NavigatorService, router: Router);
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ setupMenuItems(): void;
26
+ onGoBack(): void;
27
+ loadImages(): Promise<void>;
28
+ setVisit(visit: any): void;
29
+ setCurrentScan(id: any): void;
30
+ onInventoryClick(): Promise<void>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImagesComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImagesComponent, "lib-images", never, {}, {}, never, never>;
33
+ }
@@ -0,0 +1,51 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { Router } from '@angular/router';
4
+ import { LevelStatus, Space, SpaceService, BaseUserService, ViewerService, NavigationService, NavigatorService, Visit, MenuItem, SearchObjectType } from '@smarterplan/ngx-smarterplan-core';
5
+ import { Subscription } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class LocationsComponent implements OnInit {
8
+ private spaceService;
9
+ private router;
10
+ private userService;
11
+ private viewerService;
12
+ private navigationService;
13
+ private navigatorService;
14
+ createForm: FormGroup;
15
+ levels: Array<LevelStatus>;
16
+ imageToUpload: File;
17
+ isAdding: boolean;
18
+ filteredLocations: Space[];
19
+ isManager: boolean;
20
+ isMuseumUser: boolean;
21
+ locations: Space[];
22
+ menuItems: MenuItem[];
23
+ userSubcription: Subscription;
24
+ locationIDSubscription: Subscription;
25
+ /** Last filtered Locations, used when we go back on all locations from the search bar location */
26
+ lastFiltredLocations: Space[];
27
+ constructor(spaceService: SpaceService, router: Router, userService: BaseUserService, viewerService: ViewerService, navigationService: NavigationService, navigatorService: NavigatorService);
28
+ ngOnInit(): Promise<void>;
29
+ findSpaceById(id: string): Space;
30
+ /**
31
+ * Update when we change the selected location in filter (search bar)
32
+ * @param id for a location, if null display all last filtred location
33
+ */
34
+ changeSelectedLocation(id?: string): void;
35
+ refresh(): void;
36
+ ngOnDestroy(): void;
37
+ setupMenuItems(): void;
38
+ updateUserRights(): void;
39
+ isManagerForSpace(spaceID: string): boolean;
40
+ resetList(): Promise<void>;
41
+ onAddLocation(): void;
42
+ handleImageInput(files: FileList): void;
43
+ onFormChange(event: any): void;
44
+ onVisitClick(loc: Space, visit: Visit): Promise<void>;
45
+ applyResultsSearchBar(results: Space[]): void;
46
+ getSearchType(): SearchObjectType;
47
+ getStringNoSpace(data: any): string;
48
+ onDetailViewClick(spaceID: string): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocationsComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<LocationsComponent, "lib-locations", never, {}, {}, never, never>;
51
+ }
@@ -0,0 +1,22 @@
1
+ import { NgZone, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { Marker } from 'leaflet';
4
+ import { Space, Visit } from '@smarterplan/ngx-smarterplan-core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MapPopupComponent implements OnInit {
7
+ private router;
8
+ private ngZone;
9
+ space: Space;
10
+ marker: Marker;
11
+ popuparea: HTMLElement;
12
+ isOnPopup: boolean;
13
+ isMuseumUser: boolean;
14
+ constructor(router: Router, ngZone: NgZone);
15
+ ngOnInit(): void;
16
+ openPopup(): void;
17
+ closePopup(): void;
18
+ onClickVisitFirst(): void;
19
+ onVisitClick(visit: Visit): Promise<void>;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapPopupComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapPopupComponent, "lib-map-popup", never, {}, {}, never, never>;
22
+ }
@@ -0,0 +1,22 @@
1
+ import { ComponentFactoryResolver, Injector, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Space } from '@smarterplan/ngx-smarterplan-core';
3
+ import { Map, Marker } from "leaflet";
4
+ import * as i0 from "@angular/core";
5
+ export declare class MapComponent implements OnChanges {
6
+ private componentFactoryResolver;
7
+ private injector;
8
+ constructor(componentFactoryResolver: ComponentFactoryResolver, injector: Injector);
9
+ spaces: Space[];
10
+ options: {
11
+ layers: import("leaflet").TileLayer[];
12
+ zoom: number;
13
+ center: import("leaflet").LatLng;
14
+ };
15
+ layers: any[];
16
+ map: any;
17
+ ngOnChanges(changes: SimpleChanges): void;
18
+ onMapReady(map: Map): void;
19
+ createPopupComponent(space: Space, marker: Marker): any;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "lib-map", never, { "spaces": "spaces"; }, {}, never, never>;
22
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TranslateService } from "@ngx-translate/core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class PlanLegendComponent implements OnInit {
5
+ private translate;
6
+ isAudioZone?: boolean;
7
+ buttonsToRender: any[];
8
+ colorToText: {};
9
+ constructor(translate: TranslateService);
10
+ ngOnInit(): Promise<void>;
11
+ render(): Promise<void>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlanLegendComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlanLegendComponent, "lib-plan-legend", never, { "isAudioZone": "isAudioZone"; }, {}, never, never>;
14
+ }
@@ -0,0 +1,140 @@
1
+ import { ElementRef, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { Zone, MenuItem, Plan, Space, Navigation, PlanService, ZoneService, SpaceService, NavigationService, MatterportImportService } from '@smarterplan/ngx-smarterplan-core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CalibrationComponent implements OnInit {
7
+ private matterportImportService;
8
+ private planService;
9
+ private route;
10
+ private router;
11
+ private zoneService;
12
+ private spaceService;
13
+ private navigationService;
14
+ private translate;
15
+ /** Item to display for the navbar */
16
+ menuItems: MenuItem[];
17
+ /** Canvas (Plan) */
18
+ canvas: any;
19
+ /** CanvasDiv (Div that contain the canvas + matterport iframe) */
20
+ canvasDiv: ElementRef;
21
+ /** Size of the canvas & matterport iframe */
22
+ canvasSize: {
23
+ w: number;
24
+ h: number;
25
+ };
26
+ /** Zoom ratio of the canvas/plan */
27
+ canvasZoom: number;
28
+ /** Opacity for matterport iframe */
29
+ opacity: number;
30
+ /** Current rotation for matterport, [0-360], matterport rotation is bind to input range */
31
+ rotation: number;
32
+ /** Previous rotation, use to calculate the deltaRotation to rotate, when user change rotation value using range input */
33
+ prevRotation: number;
34
+ /** Current Camera Pose */
35
+ cameraPose: any;
36
+ /** True when the user is currently rotating with the input range, the matterport rotation events will be ignored */
37
+ isRotatingRange: boolean;
38
+ /** Rotating queue event to send to matterport */
39
+ rotatingQueueEvent: number[];
40
+ /** True when Vertical symmetry is enabled */
41
+ reflectV: boolean;
42
+ /** True when Horizontal symmetry is enabled */
43
+ reflectH: boolean;
44
+ chosenPlan: Plan;
45
+ spaceID: string;
46
+ currentSpace: Space;
47
+ currentZone: Zone;
48
+ chosenPlanIsPdf: boolean;
49
+ /** First Point in visit, used to determine the calibration */
50
+ firstMarkVisit: {
51
+ x: number;
52
+ y: number;
53
+ };
54
+ /** Second Point in visit, used to determine the calibration */
55
+ secondMarkVisit: {
56
+ x: number;
57
+ y: number;
58
+ };
59
+ /** Equivalent of 'firstMarkVisit' in canvas */
60
+ firstMarkPlan: {
61
+ x: number;
62
+ y: number;
63
+ };
64
+ /** Equivalent of 'secondMarkVisit' in canvas */
65
+ secondMarkPlan: {
66
+ x: number;
67
+ y: number;
68
+ };
69
+ /** Calibration result, (offsetX, offsetY, x, y) */
70
+ calibrage: any;
71
+ /** Is in preview mode (see scan result) */
72
+ preview: boolean;
73
+ /** Matterport is loading */
74
+ loading: boolean;
75
+ panzoom: any;
76
+ currentNavigations: Navigation[];
77
+ positions: {
78
+ navID: string;
79
+ planID: string;
80
+ x: number;
81
+ y: number;
82
+ }[];
83
+ floors: any[];
84
+ currentFloor: any;
85
+ zoomCanBeChanged: boolean;
86
+ constructor(matterportImportService: MatterportImportService, planService: PlanService, route: ActivatedRoute, router: Router, zoneService: ZoneService, spaceService: SpaceService, navigationService: NavigationService, translate: TranslateService);
87
+ ngOnDestroy(): void;
88
+ ngOnInit(): Promise<void>;
89
+ /** **********************************************************************************************
90
+ * MENU NAV BAR
91
+ *********************************************************************************************** */
92
+ setupMenuItems(): void;
93
+ /** **********************************************************************************************
94
+ * CANVAS
95
+ *********************************************************************************************** */
96
+ /** Display the plan */
97
+ configureCanvas(): Promise<void>;
98
+ /** Update size of the canvas/matterport */
99
+ resizeView(size: any): void;
100
+ /** Draw something on the canvas */
101
+ drawImage(url: string, x?: number, y?: number, icone?: boolean): void;
102
+ /** Get the size for the canvas, based on the plan size, keeping the ratio */
103
+ getSizeForCanvas(w: any, h: any): {
104
+ w: any;
105
+ h: any;
106
+ };
107
+ /** [TODO] Convert a PDF to a Canvas */
108
+ pdfToCanvas(): Promise<void>;
109
+ /** User click to user Symmetry Vertical */
110
+ onReflectV(): void;
111
+ /** User click to user Symmetry Horizontal */
112
+ onReflectH(): void;
113
+ /** **********************************************************************************************
114
+ * MATTERPORT
115
+ *********************************************************************************************** */
116
+ /** Launch matterport */
117
+ launchViewer(): Promise<void>;
118
+ /** When the <input> range, for rotation, change */
119
+ onRotationChange(): Promise<void>;
120
+ /** Process the rotating event queue, send event one by one to matterport */
121
+ processRotatingQueueEvent(): Promise<void>;
122
+ /** **********************************************************************************************
123
+ * USER ACTIONS
124
+ *********************************************************************************************** */
125
+ /** Preview calibration */
126
+ onPreview(): Promise<void>;
127
+ calibrate(): Promise<void>;
128
+ /** Place sweeps */
129
+ onPlaceSweeps(): Promise<void>;
130
+ /** Save calibration */
131
+ onSave(): Promise<void>;
132
+ /** Reset the canvas */
133
+ onReset(): void;
134
+ /** Cancel, leave */
135
+ onCancel(): void;
136
+ onFloorClick(floor: any): Promise<void>;
137
+ onActivateZoomChange(): void;
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalibrationComponent, never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalibrationComponent, "lib-calibration", never, {}, {}, never, never>;
140
+ }
@@ -0,0 +1,55 @@
1
+ import { NgZone, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { Zone, Plan, Space, MenuItem, PlanService, ZoneService, VisitService, SpaceService } from '@smarterplan/ngx-smarterplan-core';
6
+ import * as i0 from "@angular/core";
7
+ export declare class EditPlanComponent implements OnInit {
8
+ private planService;
9
+ private route;
10
+ private router;
11
+ private modalService;
12
+ private zoneService;
13
+ private visitService;
14
+ private spaceService;
15
+ private translate;
16
+ private ngZone;
17
+ dialog: any;
18
+ dialogZone: any;
19
+ loadingModal: any;
20
+ spaceID: string;
21
+ chosenPlan: Plan;
22
+ editedPlan: Plan;
23
+ loading: boolean;
24
+ svgEditor: any;
25
+ svgEditorIframe: any;
26
+ navigations: string[];
27
+ zones: Zone[];
28
+ isNewZone: boolean;
29
+ newZoneData: any;
30
+ editorUrl: any;
31
+ editedZone: Zone;
32
+ images360: any;
33
+ /**
34
+ * Options for svgEditor
35
+ */
36
+ private config;
37
+ currentSpace: Space;
38
+ menuItems: MenuItem[];
39
+ constructor(planService: PlanService, route: ActivatedRoute, router: Router, modalService: NgbModal, zoneService: ZoneService, visitService: VisitService, spaceService: SpaceService, translate: TranslateService, ngZone: NgZone);
40
+ ngOnInit(): Promise<void>;
41
+ setupMenuItems(): void;
42
+ switchAction(event: any): Promise<void>;
43
+ resetNavigations(): Promise<void>;
44
+ onLoad(svgEditor: any): Promise<void>;
45
+ onSave(redirect: boolean): Promise<void>;
46
+ updateSvg(): Promise<void>;
47
+ newSvg(): Promise<void>;
48
+ onCancel(): Promise<void>;
49
+ loadSvg(): Promise<void>;
50
+ loadPdf(): Promise<void>;
51
+ onLoadImg(img: any): Promise<void>;
52
+ onNewZone(event: any): void;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditPlanComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditPlanComponent, "lib-edit-plan", never, {}, {}, never, never>;
55
+ }
@@ -0,0 +1,63 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup, FormBuilder } from '@angular/forms';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { Zone, Space, Plan, MenuItem, SpaceService, PlanService, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
6
+ import { Subject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ export declare class PlansComponent implements OnInit {
9
+ private route;
10
+ private router;
11
+ private spaceService;
12
+ private planService;
13
+ private fb;
14
+ private translate;
15
+ private navigatorService;
16
+ spaceID: string;
17
+ currentSpace: Space;
18
+ plans: Plan[];
19
+ indexDetails: number;
20
+ loading: boolean;
21
+ uploadingPlan: boolean;
22
+ planForm: FormGroup;
23
+ isCurrentPlanForZone: boolean;
24
+ canvas: any;
25
+ scale: number;
26
+ panzoom: any;
27
+ currentZone: Zone;
28
+ fileToUpload: File;
29
+ chosenPlanIsPdf: boolean;
30
+ zones: Zone[];
31
+ menuItems: MenuItem[];
32
+ destroy$: Subject<unknown>;
33
+ constructor(route: ActivatedRoute, router: Router, spaceService: SpaceService, planService: PlanService, fb: FormBuilder, translate: TranslateService, navigatorService: NavigatorService);
34
+ ngOnInit(): void;
35
+ ngOnDestroy(): void;
36
+ setupMenuItems(): void;
37
+ onGoBack(): void;
38
+ onPlanClick(plan?: Plan): Promise<void>;
39
+ configureCanvas(): Promise<void>;
40
+ drawImage(url: string, x?: number, y?: number): void;
41
+ getPlans(): Promise<void>;
42
+ getChoosenPlan(): Plan;
43
+ removeImage(): void;
44
+ /**
45
+ *
46
+ */
47
+ onCalibrateClick(): void;
48
+ /**
49
+ *
50
+ */
51
+ onEditClick(): void;
52
+ onUploadClick(): void;
53
+ addPlan(target: EventTarget): void;
54
+ addPlanFromCache(file: File, plan: Plan): void;
55
+ onSavePlan(): Promise<void>;
56
+ onCancelUpload(): void;
57
+ onCurrentPlanClick(): Promise<void>;
58
+ onDownloadClick(): Promise<void>;
59
+ onDownloadAsPng(): Promise<void>;
60
+ onRemoveClick(): Promise<void>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlansComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<PlansComponent, "lib-plans", never, {}, {}, never, never>;
63
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import { MenuItem } from '@smarterplan/ngx-smarterplan-core';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TabNavigationComponent {
6
+ private router;
7
+ onGoBack: EventEmitter<void>;
8
+ menuItems: MenuItem[];
9
+ constructor(router: Router);
10
+ onClick(url: string, parameter: any, index: number): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabNavigationComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabNavigationComponent, "lib-tab-navigation", never, { "menuItems": "menuItems"; }, { "onGoBack": "onGoBack"; }, never, never>;
13
+ }
@@ -0,0 +1,62 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup, FormBuilder, 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: FormGroup;
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
+ menuItems: MenuItem[];
37
+ errorForm: boolean;
38
+ isProcessing: boolean;
39
+ destroy$: Subject<unknown>;
40
+ constructor(fb: FormBuilder, matterportImportService: MatterportImportService, captureService: CaptureService, nodeService: NodeService, spaceService: SpaceService, route: ActivatedRoute, modalService: NgbModal, visitService: VisitService, validatorsService: ValidatorsService, translate: TranslateService, navigatorService: NavigatorService, router: Router);
41
+ ngOnInit(): Promise<void>;
42
+ ngOnDestroy(): void;
43
+ setupMenuItems(): void;
44
+ onGoBack(): void;
45
+ resetVisits(): Promise<void>;
46
+ initVisitForm(input?: Visit): void;
47
+ onToggleDetail(index: any): void;
48
+ onAddVisit(): void;
49
+ onEdit(visit: any): void;
50
+ onSubmitVisit(): Promise<void>;
51
+ get model3D(): AbstractControl;
52
+ get name(): AbstractControl;
53
+ onCancel(): void;
54
+ onDelete(visit: Visit, needPermission?: boolean): Promise<void>;
55
+ private getDismissReason;
56
+ launchImport(model3D: any, surface: any, node: any, imagesOnly?: boolean): Promise<boolean>;
57
+ private cancelImport;
58
+ onImport(visit: Visit): void;
59
+ isFormError(control: any): boolean;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisitsComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<VisitsComponent, "lib-visits", never, {}, {}, never, never>;
62
+ }
@@ -0,0 +1,63 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormGroup, FormBuilder } 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: FormGroup;
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: FormBuilder, 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>;
63
+ }