@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,140 +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, false, never>;
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, false, never>;
140
+ }
@@ -1,55 +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, false, never>;
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, false, never>;
55
+ }
@@ -1,63 +1,63 @@
1
- import { OnInit } from '@angular/core';
2
- import { UntypedFormGroup, UntypedFormBuilder } 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: UntypedFormGroup;
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: UntypedFormBuilder, 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, false, never>;
63
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { UntypedFormGroup, UntypedFormBuilder } 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: UntypedFormGroup;
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: UntypedFormBuilder, 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, false, never>;
63
+ }
@@ -1,13 +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, false, never>;
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": { "alias": "menuItems"; "required": false; }; }, { "onGoBack": "onGoBack"; }, never, never, false, never>;
13
+ }