@smarterplan/ngx-smarterplan-core 1.2.39 → 1.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.
- package/README.md +24 -24
- package/esm2020/lib/components/csv-export/csv-export.component.mjs +59 -59
- package/esm2020/lib/components/loader/loader.component.mjs +23 -23
- package/esm2020/lib/components/menu-bar/avatar/avatar.component.mjs +80 -80
- package/esm2020/lib/components/menu-bar/menu-bar.component.mjs +99 -99
- package/esm2020/lib/components/menu-bar/navigation-bar/navigation-bar.component.mjs +384 -384
- package/esm2020/lib/components/menu-bar/range-date-picker/range-date-picker.component.mjs +147 -147
- package/esm2020/lib/components/modal-switch-visit/modal-switch-visit.component.mjs +40 -40
- package/esm2020/lib/components/search-bar/search-bar.component.mjs +63 -63
- package/esm2020/lib/components/support-modal/support-modal.component.mjs +66 -66
- package/esm2020/lib/config.mjs +4 -4
- package/esm2020/lib/helpers.service.mjs +470 -470
- package/esm2020/lib/matterport-extensions/hsl-loader/HlsLoader.mjs +69 -69
- package/esm2020/lib/matterport-extensions/nest-thermostat/CanvasImage.mjs +51 -51
- package/esm2020/lib/matterport-extensions/nest-thermostat/CanvasRenderer.mjs +61 -61
- package/esm2020/lib/matterport-extensions/nest-thermostat/NestThermostat.mjs +158 -158
- package/esm2020/lib/matterport-extensions/nest-thermostat/PlaneRenderer.mjs +85 -85
- package/esm2020/lib/matterport-extensions/scene-component/SceneComponent.mjs +128 -128
- package/esm2020/lib/matterport-extensions/security-camera/SecurityCamera.mjs +249 -249
- package/esm2020/lib/matterport-extensions/tv-player/TvPlayer.mjs +98 -98
- package/esm2020/lib/matterport-extensions/video-renderer/VideoRenderer.mjs +64 -64
- package/esm2020/lib/matterport-extensions/view-frustum-mesh/ViewFrustumMesh.mjs +221 -221
- package/esm2020/lib/mattertagData.mjs +165 -165
- package/esm2020/lib/ngx-smarterplan-core.module.mjs +122 -122
- package/esm2020/lib/ngx-smarterplan-core.service.mjs +14 -14
- package/esm2020/lib/pipes/duration-to-string.pipe.mjs +66 -66
- package/esm2020/lib/pipes/format-date-number-to-digits.pipe.mjs +30 -30
- package/esm2020/lib/pipes/hashtag-from-id.pipe.mjs +26 -26
- package/esm2020/lib/pipes/safe-url.pipe.mjs +20 -20
- package/esm2020/lib/pipes/time-date-to-local-string.pipe.mjs +104 -104
- package/esm2020/lib/pipes/username-from-id.pipe.mjs +29 -29
- package/esm2020/lib/services/amplify-cache.service.mjs +72 -72
- package/esm2020/lib/services/base-tab.service.mjs +24 -24
- package/esm2020/lib/services/baseVisibility.service.mjs +18 -18
- package/esm2020/lib/services/content.service.mjs +135 -135
- package/esm2020/lib/services/filter.service.mjs +599 -599
- package/esm2020/lib/services/intervention.service.mjs +236 -236
- package/esm2020/lib/services/locale.service.mjs +45 -45
- package/esm2020/lib/services/matterport-import.service.mjs +340 -340
- package/esm2020/lib/services/matterport.service.mjs +1587 -1587
- package/esm2020/lib/services/models/affectation.service.mjs +60 -60
- package/esm2020/lib/services/models/base-object.service.mjs +70 -70
- package/esm2020/lib/services/models/capture.service.mjs +34 -34
- package/esm2020/lib/services/models/comment.service.mjs +98 -98
- package/esm2020/lib/services/models/domain.service.mjs +78 -78
- package/esm2020/lib/services/models/equipment.service.mjs +683 -683
- package/esm2020/lib/services/models/event.service.mjs +128 -128
- package/esm2020/lib/services/models/feature.service.mjs +380 -364
- package/esm2020/lib/services/models/hashtag.service.mjs +38 -38
- package/esm2020/lib/services/models/layer.service.mjs +33 -33
- package/esm2020/lib/services/models/measurement.service.mjs +199 -199
- package/esm2020/lib/services/models/mission.service.mjs +206 -206
- package/esm2020/lib/services/models/navigation.service.mjs +92 -92
- package/esm2020/lib/services/models/node.service.mjs +31 -31
- package/esm2020/lib/services/models/object3D.service.mjs +364 -364
- package/esm2020/lib/services/models/operation.service.mjs +59 -59
- package/esm2020/lib/services/models/organisation.service.mjs +73 -73
- package/esm2020/lib/services/models/plan.service.mjs +799 -799
- package/esm2020/lib/services/models/poi.service.mjs +103 -103
- package/esm2020/lib/services/models/profile.service.mjs +58 -58
- package/esm2020/lib/services/models/property.service.mjs +44 -44
- package/esm2020/lib/services/models/space.service.mjs +204 -204
- package/esm2020/lib/services/models/template.service.mjs +41 -41
- package/esm2020/lib/services/models/ticket.service.mjs +526 -526
- package/esm2020/lib/services/models/visit.service.mjs +130 -130
- package/esm2020/lib/services/models/zone.service.mjs +225 -225
- package/esm2020/lib/services/navigator.service.mjs +212 -212
- package/esm2020/lib/services/s3.service.mjs +137 -137
- package/esm2020/lib/services/search.service.mjs +124 -124
- package/esm2020/lib/services/support.service.mjs +42 -42
- package/esm2020/lib/services/tag.service.mjs +111 -111
- package/esm2020/lib/services/user.service.mjs +501 -501
- package/esm2020/lib/services/validators.service.mjs +50 -50
- package/esm2020/lib/services/viewer.service.mjs +389 -389
- package/esm2020/lib/services/zone-drawer.service.mjs +76 -76
- package/esm2020/lib/services/zoneChange.service.mjs +30 -30
- package/esm2020/lib/types.service.mjs +311 -310
- package/esm2020/lib/validators/email.directive.mjs +7 -7
- package/esm2020/lib/validators/no-empty.directive.mjs +12 -12
- package/esm2020/lib/validators/number.directive.mjs +12 -12
- package/esm2020/lib/validators/text.directive.mjs +12 -12
- package/esm2020/public-api.mjs +72 -72
- package/esm2020/smarterplan-ngx-smarterplan-core.mjs +4 -4
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +13009 -12992
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +12258 -12241
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/lib/components/csv-export/csv-export.component.d.ts +18 -18
- package/lib/components/loader/loader.component.d.ts +10 -10
- package/lib/components/menu-bar/avatar/avatar.component.d.ts +21 -21
- package/lib/components/menu-bar/menu-bar.component.d.ts +38 -38
- package/lib/components/menu-bar/navigation-bar/navigation-bar.component.d.ts +73 -73
- package/lib/components/menu-bar/range-date-picker/range-date-picker.component.d.ts +35 -35
- package/lib/components/modal-switch-visit/modal-switch-visit.component.d.ts +22 -22
- package/lib/components/search-bar/search-bar.component.d.ts +16 -16
- package/lib/components/support-modal/support-modal.component.d.ts +26 -26
- package/lib/config.d.ts +22 -22
- package/lib/helpers.service.d.ts +79 -79
- package/lib/matterport-extensions/hsl-loader/HlsLoader.d.ts +26 -26
- package/lib/matterport-extensions/nest-thermostat/CanvasImage.d.ts +31 -31
- package/lib/matterport-extensions/nest-thermostat/CanvasRenderer.d.ts +37 -37
- package/lib/matterport-extensions/nest-thermostat/NestThermostat.d.ts +42 -42
- package/lib/matterport-extensions/nest-thermostat/PlaneRenderer.d.ts +46 -46
- package/lib/matterport-extensions/scene-component/SceneComponent.d.ts +388 -388
- package/lib/matterport-extensions/security-camera/SecurityCamera.d.ts +47 -47
- package/lib/matterport-extensions/tv-player/TvPlayer.d.ts +26 -26
- package/lib/matterport-extensions/video-renderer/VideoRenderer.d.ts +26 -26
- package/lib/matterport-extensions/view-frustum-mesh/ViewFrustumMesh.d.ts +43 -43
- package/lib/mattertagData.d.ts +70 -70
- package/lib/ngx-smarterplan-core.module.d.ts +29 -29
- package/lib/ngx-smarterplan-core.service.d.ts +6 -6
- package/lib/pipes/duration-to-string.pipe.d.ts +12 -12
- package/lib/pipes/format-date-number-to-digits.pipe.d.ts +10 -10
- package/lib/pipes/hashtag-from-id.pipe.d.ts +10 -10
- package/lib/pipes/safe-url.pipe.d.ts +10 -10
- package/lib/pipes/time-date-to-local-string.pipe.d.ts +16 -16
- package/lib/pipes/username-from-id.pipe.d.ts +11 -11
- package/lib/services/amplify-cache.service.d.ts +37 -37
- package/lib/services/base-tab.service.d.ts +10 -10
- package/lib/services/baseVisibility.service.d.ts +9 -9
- package/lib/services/content.service.d.ts +28 -28
- package/lib/services/filter.service.d.ts +60 -60
- package/lib/services/intervention.service.d.ts +25 -25
- package/lib/services/locale.service.d.ts +23 -23
- package/lib/services/matterport-import.service.d.ts +53 -53
- package/lib/services/matterport.service.d.ts +336 -336
- package/lib/services/models/affectation.service.d.ts +14 -14
- package/lib/services/models/base-object.service.d.ts +20 -20
- package/lib/services/models/capture.service.d.ts +13 -13
- package/lib/services/models/comment.service.d.ts +26 -26
- package/lib/services/models/domain.service.d.ts +19 -19
- package/lib/services/models/equipment.service.d.ts +93 -93
- package/lib/services/models/event.service.d.ts +43 -43
- package/lib/services/models/feature.service.d.ts +75 -74
- package/lib/services/models/hashtag.service.d.ts +13 -13
- package/lib/services/models/layer.service.d.ts +11 -11
- package/lib/services/models/measurement.service.d.ts +51 -51
- package/lib/services/models/mission.service.d.ts +39 -39
- package/lib/services/models/navigation.service.d.ts +29 -29
- package/lib/services/models/node.service.d.ts +12 -12
- package/lib/services/models/object3D.service.d.ts +57 -57
- package/lib/services/models/operation.service.d.ts +15 -15
- package/lib/services/models/organisation.service.d.ts +19 -19
- package/lib/services/models/plan.service.d.ts +133 -133
- package/lib/services/models/poi.service.d.ts +25 -25
- package/lib/services/models/profile.service.d.ts +16 -16
- package/lib/services/models/property.service.d.ts +13 -13
- package/lib/services/models/space.service.d.ts +46 -46
- package/lib/services/models/template.service.d.ts +15 -15
- package/lib/services/models/ticket.service.d.ts +93 -93
- package/lib/services/models/visit.service.d.ts +24 -24
- package/lib/services/models/zone.service.d.ts +50 -50
- package/lib/services/navigator.service.d.ts +61 -61
- package/lib/services/s3.service.d.ts +14 -14
- package/lib/services/search.service.d.ts +20 -20
- package/lib/services/support.service.d.ts +17 -17
- package/lib/services/tag.service.d.ts +29 -29
- package/lib/services/user.service.d.ts +118 -118
- package/lib/services/validators.service.d.ts +18 -18
- package/lib/services/viewer.service.d.ts +110 -110
- package/lib/services/zone-drawer.service.d.ts +7 -7
- package/lib/services/zoneChange.service.d.ts +17 -17
- package/lib/types.service.d.ts +842 -840
- package/lib/validators/email.directive.d.ts +2 -2
- package/lib/validators/no-empty.directive.d.ts +2 -2
- package/lib/validators/number.directive.d.ts +2 -2
- package/lib/validators/text.directive.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +64 -64
- package/smarterplan-ngx-smarterplan-core.d.ts +5 -5
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Plan, PoiType, Zone } from '../../types.service';
|
|
4
|
-
import { BaseVisibilityService } from '../baseVisibility.service';
|
|
5
|
-
import { MatterportService } from '../matterport.service';
|
|
6
|
-
import { ViewerService } from '../viewer.service';
|
|
7
|
-
import { ZoneService } from './zone.service';
|
|
8
|
-
import { NavigationService } from './navigation.service';
|
|
9
|
-
import { BaseTagService } from '../tag.service';
|
|
10
|
-
import { Config } from '../../config';
|
|
11
|
-
import { ContentService } from '../content.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class PlanService {
|
|
14
|
-
private zoneService;
|
|
15
|
-
private navigationService;
|
|
16
|
-
private viewerService;
|
|
17
|
-
private router;
|
|
18
|
-
private matterportService;
|
|
19
|
-
private visibilityService;
|
|
20
|
-
private contentService;
|
|
21
|
-
chosenPlan: Plan;
|
|
22
|
-
currentPlan: Plan;
|
|
23
|
-
currentSweep: string;
|
|
24
|
-
planFileCache: File;
|
|
25
|
-
planCanvas: any;
|
|
26
|
-
planDiv: HTMLElement | SVGElement;
|
|
27
|
-
planDivContent: HTMLElement;
|
|
28
|
-
panzoom: any;
|
|
29
|
-
isReady: boolean;
|
|
30
|
-
userPositionBtn: HTMLButtonElement;
|
|
31
|
-
coeffPlanX: number;
|
|
32
|
-
coeffPlanY: number;
|
|
33
|
-
calibrationPlan: any;
|
|
34
|
-
detailTagDiv: HTMLElement;
|
|
35
|
-
detailTagDivIsHover: boolean;
|
|
36
|
-
btnTagIsHover: boolean;
|
|
37
|
-
resizePlanSubscription: Subject<boolean>;
|
|
38
|
-
imgPlan: HTMLImageElement;
|
|
39
|
-
lastTouchTime: number;
|
|
40
|
-
delayDblTouch: number;
|
|
41
|
-
lastRotation: number;
|
|
42
|
-
htmlContentToInject: {
|
|
43
|
-
title: string;
|
|
44
|
-
content: string;
|
|
45
|
-
elementID: string;
|
|
46
|
-
y: number;
|
|
47
|
-
x: number;
|
|
48
|
-
tagIcon: string;
|
|
49
|
-
url: string;
|
|
50
|
-
}[];
|
|
51
|
-
cache: {
|
|
52
|
-
equipIDs: string[];
|
|
53
|
-
ticketIDs: string[];
|
|
54
|
-
measurementsIDs: string[];
|
|
55
|
-
featureIDs: string[];
|
|
56
|
-
zoneID: string;
|
|
57
|
-
plan: Plan;
|
|
58
|
-
htmlContent: {
|
|
59
|
-
title: string;
|
|
60
|
-
content: string;
|
|
61
|
-
elementID: string;
|
|
62
|
-
y: number;
|
|
63
|
-
x: number;
|
|
64
|
-
tagIcon: string;
|
|
65
|
-
url: string;
|
|
66
|
-
}[];
|
|
67
|
-
};
|
|
68
|
-
focusMouseTagDiv: boolean;
|
|
69
|
-
API: any;
|
|
70
|
-
constructor(apiInjected: any, zoneService: ZoneService, navigationService: NavigationService, viewerService: ViewerService, router: Router, matterportService: MatterportService, visibilityService: BaseVisibilityService, contentService: ContentService);
|
|
71
|
-
createPlan(planInput: Plan): Promise<Plan>;
|
|
72
|
-
deletePlan(plan: Plan): Promise<Plan>;
|
|
73
|
-
getPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
74
|
-
getPlansForZone(zoneID: string): Promise<Plan[]>;
|
|
75
|
-
getSingedPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
76
|
-
getPlansWithZonesForSpace(spaceID: string): Promise<Plan[]>;
|
|
77
|
-
setChosenPlan(chosenPlan: Plan): void;
|
|
78
|
-
getChosenPlan(): Plan;
|
|
79
|
-
setPlanFileCache(planFileCache: File): Promise<void>;
|
|
80
|
-
getPlanFileCache(): File;
|
|
81
|
-
createPlanWithAnnexe(plan: Plan, file: File): Promise<Plan>;
|
|
82
|
-
updatePlan(plan: any): Promise<Plan>;
|
|
83
|
-
updatePlanFile(): Promise<string>;
|
|
84
|
-
setAllPlansForZoneNotCurrent(zoneID: string, currentPlanID: string): Promise<void>;
|
|
85
|
-
configurePlan(currentPlan: Plan, divId?: string, divContentId?: string): Promise<boolean>;
|
|
86
|
-
clearPlanImage(): void;
|
|
87
|
-
drawPdf(currentPlan: Plan): Promise<void>;
|
|
88
|
-
drawElement(element: any, tagType: PoiType, currentPlan: Plan, tagService: BaseTagService, config: Config, sizeButton?: number): Promise<void>;
|
|
89
|
-
drawUserPosition(currentSweep?: string, sizeButton?: number): Promise<void>;
|
|
90
|
-
/**
|
|
91
|
-
* Center the view of the plan on coordinates
|
|
92
|
-
* @param coordinate Coordinate on the plan
|
|
93
|
-
*/
|
|
94
|
-
moveOnPoint(coordinate: any): void;
|
|
95
|
-
/**
|
|
96
|
-
* Apply a rotation to the plan
|
|
97
|
-
* Buttons will remain in the correct rotation
|
|
98
|
-
* @param rotation
|
|
99
|
-
*/
|
|
100
|
-
updateRotation(rotation: any): void;
|
|
101
|
-
removeCurrentPosition(): void;
|
|
102
|
-
styleButton(button: HTMLButtonElement, url: string, sizeButton?: number): void;
|
|
103
|
-
addListenersToButton(button: HTMLButtonElement, url: string, tagService?: BaseTagService, element?: any): void;
|
|
104
|
-
clearBtn(idList: any[]): void;
|
|
105
|
-
clearAllButtons(): void;
|
|
106
|
-
updateAllButtonsStyle(properties: Array<string>, values: Array<string>): void;
|
|
107
|
-
onPlanRemove(): void;
|
|
108
|
-
resizePlan(isRemoving: boolean): Promise<void>;
|
|
109
|
-
handleTouch(event: any): void;
|
|
110
|
-
onDblClickPlan(event: any): Promise<void>;
|
|
111
|
-
/**
|
|
112
|
-
* Configures plan from cache (previous plan).
|
|
113
|
-
*/
|
|
114
|
-
uploadPlanFromCache(): Promise<void>;
|
|
115
|
-
/**
|
|
116
|
-
* Puts buttons (tags) from cache according to passed element IDs (for filter if any)
|
|
117
|
-
* @param elementIDs elements (tickets, equipments, etc) to be shown on plan
|
|
118
|
-
*/
|
|
119
|
-
uploadTagsFromCache(sizeButton?: number): void;
|
|
120
|
-
getCalibratedPlanForZone(zone: Zone): Promise<Plan>;
|
|
121
|
-
transformPosition3DForNewCalibration(position: {
|
|
122
|
-
x: number;
|
|
123
|
-
y: number;
|
|
124
|
-
z: number;
|
|
125
|
-
}): {
|
|
126
|
-
x: number;
|
|
127
|
-
y: number;
|
|
128
|
-
coeffX: number;
|
|
129
|
-
coeffY: number;
|
|
130
|
-
};
|
|
131
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlanService, never>;
|
|
132
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PlanService>;
|
|
133
|
-
}
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { Plan, PoiType, Zone } from '../../types.service';
|
|
4
|
+
import { BaseVisibilityService } from '../baseVisibility.service';
|
|
5
|
+
import { MatterportService } from '../matterport.service';
|
|
6
|
+
import { ViewerService } from '../viewer.service';
|
|
7
|
+
import { ZoneService } from './zone.service';
|
|
8
|
+
import { NavigationService } from './navigation.service';
|
|
9
|
+
import { BaseTagService } from '../tag.service';
|
|
10
|
+
import { Config } from '../../config';
|
|
11
|
+
import { ContentService } from '../content.service';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class PlanService {
|
|
14
|
+
private zoneService;
|
|
15
|
+
private navigationService;
|
|
16
|
+
private viewerService;
|
|
17
|
+
private router;
|
|
18
|
+
private matterportService;
|
|
19
|
+
private visibilityService;
|
|
20
|
+
private contentService;
|
|
21
|
+
chosenPlan: Plan;
|
|
22
|
+
currentPlan: Plan;
|
|
23
|
+
currentSweep: string;
|
|
24
|
+
planFileCache: File;
|
|
25
|
+
planCanvas: any;
|
|
26
|
+
planDiv: HTMLElement | SVGElement;
|
|
27
|
+
planDivContent: HTMLElement;
|
|
28
|
+
panzoom: any;
|
|
29
|
+
isReady: boolean;
|
|
30
|
+
userPositionBtn: HTMLButtonElement;
|
|
31
|
+
coeffPlanX: number;
|
|
32
|
+
coeffPlanY: number;
|
|
33
|
+
calibrationPlan: any;
|
|
34
|
+
detailTagDiv: HTMLElement;
|
|
35
|
+
detailTagDivIsHover: boolean;
|
|
36
|
+
btnTagIsHover: boolean;
|
|
37
|
+
resizePlanSubscription: Subject<boolean>;
|
|
38
|
+
imgPlan: HTMLImageElement;
|
|
39
|
+
lastTouchTime: number;
|
|
40
|
+
delayDblTouch: number;
|
|
41
|
+
lastRotation: number;
|
|
42
|
+
htmlContentToInject: {
|
|
43
|
+
title: string;
|
|
44
|
+
content: string;
|
|
45
|
+
elementID: string;
|
|
46
|
+
y: number;
|
|
47
|
+
x: number;
|
|
48
|
+
tagIcon: string;
|
|
49
|
+
url: string;
|
|
50
|
+
}[];
|
|
51
|
+
cache: {
|
|
52
|
+
equipIDs: string[];
|
|
53
|
+
ticketIDs: string[];
|
|
54
|
+
measurementsIDs: string[];
|
|
55
|
+
featureIDs: string[];
|
|
56
|
+
zoneID: string;
|
|
57
|
+
plan: Plan;
|
|
58
|
+
htmlContent: {
|
|
59
|
+
title: string;
|
|
60
|
+
content: string;
|
|
61
|
+
elementID: string;
|
|
62
|
+
y: number;
|
|
63
|
+
x: number;
|
|
64
|
+
tagIcon: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
focusMouseTagDiv: boolean;
|
|
69
|
+
API: any;
|
|
70
|
+
constructor(apiInjected: any, zoneService: ZoneService, navigationService: NavigationService, viewerService: ViewerService, router: Router, matterportService: MatterportService, visibilityService: BaseVisibilityService, contentService: ContentService);
|
|
71
|
+
createPlan(planInput: Plan): Promise<Plan>;
|
|
72
|
+
deletePlan(plan: Plan): Promise<Plan>;
|
|
73
|
+
getPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
74
|
+
getPlansForZone(zoneID: string): Promise<Plan[]>;
|
|
75
|
+
getSingedPlansForSpace(spaceID: string): Promise<Plan[]>;
|
|
76
|
+
getPlansWithZonesForSpace(spaceID: string): Promise<Plan[]>;
|
|
77
|
+
setChosenPlan(chosenPlan: Plan): void;
|
|
78
|
+
getChosenPlan(): Plan;
|
|
79
|
+
setPlanFileCache(planFileCache: File): Promise<void>;
|
|
80
|
+
getPlanFileCache(): File;
|
|
81
|
+
createPlanWithAnnexe(plan: Plan, file: File): Promise<Plan>;
|
|
82
|
+
updatePlan(plan: any): Promise<Plan>;
|
|
83
|
+
updatePlanFile(): Promise<string>;
|
|
84
|
+
setAllPlansForZoneNotCurrent(zoneID: string, currentPlanID: string): Promise<void>;
|
|
85
|
+
configurePlan(currentPlan: Plan, divId?: string, divContentId?: string): Promise<boolean>;
|
|
86
|
+
clearPlanImage(): void;
|
|
87
|
+
drawPdf(currentPlan: Plan): Promise<void>;
|
|
88
|
+
drawElement(element: any, tagType: PoiType, currentPlan: Plan, tagService: BaseTagService, config: Config, sizeButton?: number): Promise<void>;
|
|
89
|
+
drawUserPosition(currentSweep?: string, sizeButton?: number): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Center the view of the plan on coordinates
|
|
92
|
+
* @param coordinate Coordinate on the plan
|
|
93
|
+
*/
|
|
94
|
+
moveOnPoint(coordinate: any): void;
|
|
95
|
+
/**
|
|
96
|
+
* Apply a rotation to the plan
|
|
97
|
+
* Buttons will remain in the correct rotation
|
|
98
|
+
* @param rotation
|
|
99
|
+
*/
|
|
100
|
+
updateRotation(rotation: any): void;
|
|
101
|
+
removeCurrentPosition(): void;
|
|
102
|
+
styleButton(button: HTMLButtonElement, url: string, sizeButton?: number): void;
|
|
103
|
+
addListenersToButton(button: HTMLButtonElement, url: string, tagService?: BaseTagService, element?: any): void;
|
|
104
|
+
clearBtn(idList: any[]): void;
|
|
105
|
+
clearAllButtons(): void;
|
|
106
|
+
updateAllButtonsStyle(properties: Array<string>, values: Array<string>): void;
|
|
107
|
+
onPlanRemove(): void;
|
|
108
|
+
resizePlan(isRemoving: boolean): Promise<void>;
|
|
109
|
+
handleTouch(event: any): void;
|
|
110
|
+
onDblClickPlan(event: any): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Configures plan from cache (previous plan).
|
|
113
|
+
*/
|
|
114
|
+
uploadPlanFromCache(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Puts buttons (tags) from cache according to passed element IDs (for filter if any)
|
|
117
|
+
* @param elementIDs elements (tickets, equipments, etc) to be shown on plan
|
|
118
|
+
*/
|
|
119
|
+
uploadTagsFromCache(sizeButton?: number): void;
|
|
120
|
+
getCalibratedPlanForZone(zone: Zone): Promise<Plan>;
|
|
121
|
+
transformPosition3DForNewCalibration(position: {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
z: number;
|
|
125
|
+
}): {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
coeffX: number;
|
|
129
|
+
coeffY: number;
|
|
130
|
+
};
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlanService, never>;
|
|
132
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlanService>;
|
|
133
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { POI, PoiType, Zone } from '../../types.service';
|
|
2
|
-
import { ZoneChangeService } from '../zoneChange.service';
|
|
3
|
-
import { BaseUserService } from '../user.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PoiService {
|
|
6
|
-
private userService;
|
|
7
|
-
private zoneChangeService;
|
|
8
|
-
API: any;
|
|
9
|
-
awsKinesisAnalytics: any;
|
|
10
|
-
selectedFloor: Zone;
|
|
11
|
-
currentSpaceID: string;
|
|
12
|
-
zoneIDFilter: string;
|
|
13
|
-
private destroy$;
|
|
14
|
-
constructor(apiInjected: any, awsKinesisAnalyticsInjected: any, userService: BaseUserService, zoneChangeService: ZoneChangeService);
|
|
15
|
-
getPoiByElementId(elementId: string): Promise<POI | null>;
|
|
16
|
-
getPoisByType(type: PoiType): Promise<[POI] | any>;
|
|
17
|
-
createPOIForSpaceID(poi: POI): Promise<POI>;
|
|
18
|
-
poiIsVirtual(poi: POI): boolean;
|
|
19
|
-
updatePoi(poi: {}): Promise<POI>;
|
|
20
|
-
deletePoi(poiID: string): Promise<POI>;
|
|
21
|
-
getPoisByMatterportSweepByType(sweep: string, type: PoiType): Promise<POI[]>;
|
|
22
|
-
unsubscribe(): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoiService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoiService>;
|
|
25
|
-
}
|
|
1
|
+
import { POI, PoiType, Zone } from '../../types.service';
|
|
2
|
+
import { ZoneChangeService } from '../zoneChange.service';
|
|
3
|
+
import { BaseUserService } from '../user.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PoiService {
|
|
6
|
+
private userService;
|
|
7
|
+
private zoneChangeService;
|
|
8
|
+
API: any;
|
|
9
|
+
awsKinesisAnalytics: any;
|
|
10
|
+
selectedFloor: Zone;
|
|
11
|
+
currentSpaceID: string;
|
|
12
|
+
zoneIDFilter: string;
|
|
13
|
+
private destroy$;
|
|
14
|
+
constructor(apiInjected: any, awsKinesisAnalyticsInjected: any, userService: BaseUserService, zoneChangeService: ZoneChangeService);
|
|
15
|
+
getPoiByElementId(elementId: string): Promise<POI | null>;
|
|
16
|
+
getPoisByType(type: PoiType): Promise<[POI] | any>;
|
|
17
|
+
createPOIForSpaceID(poi: POI): Promise<POI>;
|
|
18
|
+
poiIsVirtual(poi: POI): boolean;
|
|
19
|
+
updatePoi(poi: {}): Promise<POI>;
|
|
20
|
+
deletePoi(poiID: string): Promise<POI>;
|
|
21
|
+
getPoisByMatterportSweepByType(sweep: string, type: PoiType): Promise<POI[]>;
|
|
22
|
+
unsubscribe(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoiService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoiService>;
|
|
25
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Profile } from "../../types.service";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ProfileService {
|
|
4
|
-
API: any;
|
|
5
|
-
constructor(apiInjected: any);
|
|
6
|
-
createProfile(profile: Profile): Promise<Profile>;
|
|
7
|
-
getProfile(id: string): Promise<Profile>;
|
|
8
|
-
listCurrentProfiles(): Promise<Profile[]>;
|
|
9
|
-
updateProfile(profile: any): Promise<Profile>;
|
|
10
|
-
deleteProfile(id: string): Promise<Profile>;
|
|
11
|
-
getProfileFromAWSID(userID: string): Promise<Profile>;
|
|
12
|
-
getUsersForMail(mail: string): Promise<Profile[]>;
|
|
13
|
-
getProfilesForStatus(status: string): Promise<Profile[]>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
16
|
-
}
|
|
1
|
+
import { Profile } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProfileService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
createProfile(profile: Profile): Promise<Profile>;
|
|
7
|
+
getProfile(id: string): Promise<Profile>;
|
|
8
|
+
listCurrentProfiles(): Promise<Profile[]>;
|
|
9
|
+
updateProfile(profile: any): Promise<Profile>;
|
|
10
|
+
deleteProfile(id: string): Promise<Profile>;
|
|
11
|
+
getProfileFromAWSID(userID: string): Promise<Profile>;
|
|
12
|
+
getUsersForMail(mail: string): Promise<Profile[]>;
|
|
13
|
+
getProfilesForStatus(status: string): Promise<Profile[]>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
16
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Property } from "../../types.service";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class PropertyService {
|
|
4
|
-
API: any;
|
|
5
|
-
constructor(apiInjected: any);
|
|
6
|
-
createProperty(property: Property): Promise<Property>;
|
|
7
|
-
deleteProperty(propertyID: string): Promise<Property>;
|
|
8
|
-
getPropertiesForOrganisation(orgID: string): Promise<Property[]>;
|
|
9
|
-
listProperties(): Promise<Property[]>;
|
|
10
|
-
listPropertiesForSpace(spaceID: string): Promise<Property[]>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
|
|
13
|
-
}
|
|
1
|
+
import { Property } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PropertyService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
createProperty(property: Property): Promise<Property>;
|
|
7
|
+
deleteProperty(propertyID: string): Promise<Property>;
|
|
8
|
+
getPropertiesForOrganisation(orgID: string): Promise<Property[]>;
|
|
9
|
+
listProperties(): Promise<Property[]>;
|
|
10
|
+
listPropertiesForSpace(spaceID: string): Promise<Property[]>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
|
|
13
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import { Space, Layer } from "../../types.service";
|
|
3
|
-
import { BaseUserService } from "../user.service";
|
|
4
|
-
import { CaptureService } from "./capture.service";
|
|
5
|
-
import { EquipmentService } from "./equipment.service";
|
|
6
|
-
import { FeatureService } from "./feature.service";
|
|
7
|
-
import { MeasurementService } from "./measurement.service";
|
|
8
|
-
import { MissionService } from "./mission.service";
|
|
9
|
-
import { PropertyService } from "./property.service";
|
|
10
|
-
import { TicketsService } from "./ticket.service";
|
|
11
|
-
import { VisitService } from "./visit.service";
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class SpaceService {
|
|
14
|
-
private visitService;
|
|
15
|
-
private userService;
|
|
16
|
-
private propertyService;
|
|
17
|
-
private captureService;
|
|
18
|
-
private missionService;
|
|
19
|
-
private ticketService;
|
|
20
|
-
private equipService;
|
|
21
|
-
private featureService;
|
|
22
|
-
private measurementService;
|
|
23
|
-
locationsForUser: Space[];
|
|
24
|
-
locationUpdated: Subject<Space[]>;
|
|
25
|
-
API: any;
|
|
26
|
-
constructor(visitService: VisitService, userService: BaseUserService, propertyService: PropertyService, captureService: CaptureService, missionService: MissionService, ticketService: TicketsService, equipService: EquipmentService, featureService: FeatureService, measurementService: MeasurementService, apiInjected: any);
|
|
27
|
-
listSpaces(): Promise<Space[]>;
|
|
28
|
-
getLocationsForCurrentUser(): Promise<Space[]>;
|
|
29
|
-
signUrlForSpace(loc: Space): Promise<void>;
|
|
30
|
-
getAllowedSpacesForOrg(orgID: string, userOrgID: string): Promise<Space[]>;
|
|
31
|
-
getSpacesForOrg(orgID: string): Promise<Space[]>;
|
|
32
|
-
createSpace(values: Space, layer?: Layer): Promise<any>;
|
|
33
|
-
updateSpace(input: any): Promise<Space>;
|
|
34
|
-
getSpace(id: string): Promise<Space>;
|
|
35
|
-
getModel3DForSpace(spaceID: string): Promise<string>;
|
|
36
|
-
getAllowedModel3DForSpace(spaceID: string): Promise<string>;
|
|
37
|
-
softDeleteSpace(spaceID: string): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* If current user can archive a space (only if his organisation is owning the property (PropertyType.PROPERTY))
|
|
40
|
-
* @param spaceID
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
canArchiveSpace(spaceID: string): Promise<boolean>;
|
|
44
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpaceService, never>;
|
|
45
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SpaceService>;
|
|
46
|
-
}
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { Space, Layer } from "../../types.service";
|
|
3
|
+
import { BaseUserService } from "../user.service";
|
|
4
|
+
import { CaptureService } from "./capture.service";
|
|
5
|
+
import { EquipmentService } from "./equipment.service";
|
|
6
|
+
import { FeatureService } from "./feature.service";
|
|
7
|
+
import { MeasurementService } from "./measurement.service";
|
|
8
|
+
import { MissionService } from "./mission.service";
|
|
9
|
+
import { PropertyService } from "./property.service";
|
|
10
|
+
import { TicketsService } from "./ticket.service";
|
|
11
|
+
import { VisitService } from "./visit.service";
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
export declare class SpaceService {
|
|
14
|
+
private visitService;
|
|
15
|
+
private userService;
|
|
16
|
+
private propertyService;
|
|
17
|
+
private captureService;
|
|
18
|
+
private missionService;
|
|
19
|
+
private ticketService;
|
|
20
|
+
private equipService;
|
|
21
|
+
private featureService;
|
|
22
|
+
private measurementService;
|
|
23
|
+
locationsForUser: Space[];
|
|
24
|
+
locationUpdated: Subject<Space[]>;
|
|
25
|
+
API: any;
|
|
26
|
+
constructor(visitService: VisitService, userService: BaseUserService, propertyService: PropertyService, captureService: CaptureService, missionService: MissionService, ticketService: TicketsService, equipService: EquipmentService, featureService: FeatureService, measurementService: MeasurementService, apiInjected: any);
|
|
27
|
+
listSpaces(): Promise<Space[]>;
|
|
28
|
+
getLocationsForCurrentUser(): Promise<Space[]>;
|
|
29
|
+
signUrlForSpace(loc: Space): Promise<void>;
|
|
30
|
+
getAllowedSpacesForOrg(orgID: string, userOrgID: string): Promise<Space[]>;
|
|
31
|
+
getSpacesForOrg(orgID: string): Promise<Space[]>;
|
|
32
|
+
createSpace(values: Space, layer?: Layer): Promise<any>;
|
|
33
|
+
updateSpace(input: any): Promise<Space>;
|
|
34
|
+
getSpace(id: string): Promise<Space>;
|
|
35
|
+
getModel3DForSpace(spaceID: string): Promise<string>;
|
|
36
|
+
getAllowedModel3DForSpace(spaceID: string): Promise<string>;
|
|
37
|
+
softDeleteSpace(spaceID: string): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* If current user can archive a space (only if his organisation is owning the property (PropertyType.PROPERTY))
|
|
40
|
+
* @param spaceID
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
canArchiveSpace(spaceID: string): Promise<boolean>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpaceService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpaceService>;
|
|
46
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { VisitTemplate } from "../../types.service";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TemplateService {
|
|
4
|
-
API: any;
|
|
5
|
-
constructor(apiInjected: any);
|
|
6
|
-
create(template: VisitTemplate): Promise<VisitTemplate>;
|
|
7
|
-
update(template: any): Promise<VisitTemplate>;
|
|
8
|
-
detele(templateID: string): Promise<VisitTemplate>;
|
|
9
|
-
softDelete(templateID: string): Promise<VisitTemplate>;
|
|
10
|
-
get(templateID: string): Promise<VisitTemplate>;
|
|
11
|
-
getTemplatesBySpace(spaceID: string): Promise<VisitTemplate[]>;
|
|
12
|
-
getTemplatesByZone(zoneID: string): Promise<VisitTemplate[]>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
|
|
15
|
-
}
|
|
1
|
+
import { VisitTemplate } from "../../types.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TemplateService {
|
|
4
|
+
API: any;
|
|
5
|
+
constructor(apiInjected: any);
|
|
6
|
+
create(template: VisitTemplate): Promise<VisitTemplate>;
|
|
7
|
+
update(template: any): Promise<VisitTemplate>;
|
|
8
|
+
detele(templateID: string): Promise<VisitTemplate>;
|
|
9
|
+
softDelete(templateID: string): Promise<VisitTemplate>;
|
|
10
|
+
get(templateID: string): Promise<VisitTemplate>;
|
|
11
|
+
getTemplatesBySpace(spaceID: string): Promise<VisitTemplate[]>;
|
|
12
|
+
getTemplatesByZone(zoneID: string): Promise<VisitTemplate[]>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TemplateService>;
|
|
15
|
+
}
|