@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,107 +1,107 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import { Navigation, NavigationService, Plan, Zone, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
4
- import { PanZoom } from 'panzoom';
5
- import { Rectangle } from '../../../../helper.service';
6
- import * as i0 from "@angular/core";
7
- export declare class SweepPlanSelectionComponent implements OnInit {
8
- private zoneService;
9
- private navigationService;
10
- private planService;
11
- private translate;
12
- plans: Plan[];
13
- spaceID: string;
14
- chosenScansOnPlan: string[];
15
- /** if comming from Edit Plan SVG Zone creation */
16
- newZoneData: any;
17
- navIDsZoneEdit: string[];
18
- occupiedSweeps: string[];
19
- unavailableSweeps: string[];
20
- editingAudioZone: boolean;
21
- inputZone: Zone;
22
- multipleFloors: boolean;
23
- chosenPlan: Plan;
24
- /** panZoom element for adding scans */
25
- panZoom: PanZoom;
26
- /** divPlan (use By panZoom) */
27
- divPlan: HTMLElement;
28
- /** all scan buttons Element */
29
- buttonElements: HTMLButtonElement[];
30
- /** Scan buttons that are in the current selection */
31
- buttonsInSelection: HTMLButtonElement[];
32
- sweepsSelected: EventEmitter<{
33
- sweeps: string[];
34
- startSweepID: string;
35
- }>;
36
- isSettingStartSweep: boolean;
37
- startSweepID: string;
38
- chosenSweepsPerFloor: Map<string, string[]>;
39
- inputSweepsPerFloor: Map<string, string[]>;
40
- selectionChanged: boolean;
41
- constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService, translate: TranslateService);
42
- ngOnInit(): Promise<void>;
43
- ngOnChanges(): void;
44
- setSweepsOfInputZone(): void;
45
- getPlans(): Promise<void>;
46
- onPlanClick(plan: Plan): Promise<void>;
47
- addScanPoints(): Promise<void>;
48
- /** Function if we are coming for svg editor workflow */
49
- setScanByDraw(navigations: any[]): Promise<void>;
50
- setScanInRect(img: any, coeffX: number, coeffY: number, element: {
51
- angle: any;
52
- cx: any;
53
- cy: any;
54
- x: number;
55
- width: any;
56
- y: number;
57
- height: any;
58
- }, navigations: any[]): Promise<void>;
59
- setScanInCircle(img: any, coeffX: number, coeffY: number, element: {
60
- angle: any;
61
- cx: number;
62
- cy: number;
63
- rx: number;
64
- ry: number;
65
- }, navigations: Navigation[]): Promise<void>;
66
- setScanInPolygon(img: any, coeffX: number, coeffY: number, element: {
67
- segList: any;
68
- }, navigations: any[]): Promise<void>;
69
- clearDivPlan(): void;
70
- /**
71
- * Trigger each by the selectionComponent when selection change
72
- * Update the current selected scan buttons
73
- * @param selection new selection
74
- */
75
- onSelectionChanged(selection: Rectangle): void;
76
- /**
77
- * Trigger when the user click to add the selected scans
78
- */
79
- onSelectionAdd(): void;
80
- /**
81
- * Trigger when the user click to remove the selected scans
82
- */
83
- onSelectionRemove(): void;
84
- /**
85
- * Trigger when the user click to select all scans
86
- */
87
- onSelectAll(): void;
88
- /**
89
- * Trigger when the user change the size of the scan points
90
- * @param event
91
- */
92
- onChangeScanSize(event: any): void;
93
- /**
94
- * When a button representing a scan is clicked
95
- * @param button
96
- */
97
- onButtonScanClicked(button: HTMLElement): void;
98
- onSaveSelection(): void;
99
- onCancel(): void;
100
- /**
101
- * Adds current selection of sweeps for current floor (plan) for multifloor zone.
102
- * It has to be saved anyway with onSaveSelection!
103
- */
104
- onValidateForFloor(): void;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
106
- static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": "spaceID"; "chosenScansOnPlan": "chosenScansOnPlan"; "newZoneData": "newZoneData"; "occupiedSweeps": "occupiedSweeps"; "unavailableSweeps": "unavailableSweeps"; "editingAudioZone": "editingAudioZone"; "inputZone": "inputZone"; "multipleFloors": "multipleFloors"; }, { "sweepsSelected": "sweepsSelected"; }, never, never, false, never>;
107
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { Navigation, NavigationService, Plan, Zone, ZoneService, PlanService } from '@smarterplan/ngx-smarterplan-core';
4
+ import { PanZoom } from 'panzoom';
5
+ import { Rectangle } from '../../../../helper.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SweepPlanSelectionComponent implements OnInit {
8
+ private zoneService;
9
+ private navigationService;
10
+ private planService;
11
+ private translate;
12
+ plans: Plan[];
13
+ spaceID: string;
14
+ chosenScansOnPlan: string[];
15
+ /** if comming from Edit Plan SVG Zone creation */
16
+ newZoneData: any;
17
+ navIDsZoneEdit: string[];
18
+ occupiedSweeps: string[];
19
+ unavailableSweeps: string[];
20
+ editingAudioZone: boolean;
21
+ inputZone: Zone;
22
+ multipleFloors: boolean;
23
+ chosenPlan: Plan;
24
+ /** panZoom element for adding scans */
25
+ panZoom: PanZoom;
26
+ /** divPlan (use By panZoom) */
27
+ divPlan: HTMLElement;
28
+ /** all scan buttons Element */
29
+ buttonElements: HTMLButtonElement[];
30
+ /** Scan buttons that are in the current selection */
31
+ buttonsInSelection: HTMLButtonElement[];
32
+ sweepsSelected: EventEmitter<{
33
+ sweeps: string[];
34
+ startSweepID: string;
35
+ }>;
36
+ isSettingStartSweep: boolean;
37
+ startSweepID: string;
38
+ chosenSweepsPerFloor: Map<string, string[]>;
39
+ inputSweepsPerFloor: Map<string, string[]>;
40
+ selectionChanged: boolean;
41
+ constructor(zoneService: ZoneService, navigationService: NavigationService, planService: PlanService, translate: TranslateService);
42
+ ngOnInit(): Promise<void>;
43
+ ngOnChanges(): void;
44
+ setSweepsOfInputZone(): void;
45
+ getPlans(): Promise<void>;
46
+ onPlanClick(plan: Plan): Promise<void>;
47
+ addScanPoints(): Promise<void>;
48
+ /** Function if we are coming for svg editor workflow */
49
+ setScanByDraw(navigations: any[]): Promise<void>;
50
+ setScanInRect(img: any, coeffX: number, coeffY: number, element: {
51
+ angle: any;
52
+ cx: any;
53
+ cy: any;
54
+ x: number;
55
+ width: any;
56
+ y: number;
57
+ height: any;
58
+ }, navigations: any[]): Promise<void>;
59
+ setScanInCircle(img: any, coeffX: number, coeffY: number, element: {
60
+ angle: any;
61
+ cx: number;
62
+ cy: number;
63
+ rx: number;
64
+ ry: number;
65
+ }, navigations: Navigation[]): Promise<void>;
66
+ setScanInPolygon(img: any, coeffX: number, coeffY: number, element: {
67
+ segList: any;
68
+ }, navigations: any[]): Promise<void>;
69
+ clearDivPlan(): void;
70
+ /**
71
+ * Trigger each by the selectionComponent when selection change
72
+ * Update the current selected scan buttons
73
+ * @param selection new selection
74
+ */
75
+ onSelectionChanged(selection: Rectangle): void;
76
+ /**
77
+ * Trigger when the user click to add the selected scans
78
+ */
79
+ onSelectionAdd(): void;
80
+ /**
81
+ * Trigger when the user click to remove the selected scans
82
+ */
83
+ onSelectionRemove(): void;
84
+ /**
85
+ * Trigger when the user click to select all scans
86
+ */
87
+ onSelectAll(): void;
88
+ /**
89
+ * Trigger when the user change the size of the scan points
90
+ * @param event
91
+ */
92
+ onChangeScanSize(event: any): void;
93
+ /**
94
+ * When a button representing a scan is clicked
95
+ * @param button
96
+ */
97
+ onButtonScanClicked(button: HTMLElement): void;
98
+ onSaveSelection(): void;
99
+ onCancel(): void;
100
+ /**
101
+ * Adds current selection of sweeps for current floor (plan) for multifloor zone.
102
+ * It has to be saved anyway with onSaveSelection!
103
+ */
104
+ onValidateForFloor(): void;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<SweepPlanSelectionComponent, never>;
106
+ static ɵcmp: i0.ɵɵComponentDeclaration<SweepPlanSelectionComponent, "lib-sweep-plan-selection", never, { "spaceID": { "alias": "spaceID"; "required": false; }; "chosenScansOnPlan": { "alias": "chosenScansOnPlan"; "required": false; }; "newZoneData": { "alias": "newZoneData"; "required": false; }; "occupiedSweeps": { "alias": "occupiedSweeps"; "required": false; }; "unavailableSweeps": { "alias": "unavailableSweeps"; "required": false; }; "editingAudioZone": { "alias": "editingAudioZone"; "required": false; }; "inputZone": { "alias": "inputZone"; "required": false; }; "multipleFloors": { "alias": "multipleFloors"; "required": false; }; }, { "sweepsSelected": "sweepsSelected"; }, never, never, false, never>;
107
+ }
@@ -1,73 +1,73 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { MenuItem, ZoneService, SpaceService, VisitService, NavigationService, BaseUserService, PlanService, Navigation, Plan, Space, Zone, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
5
- import { Subject } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- export declare class ZonesComponent implements OnInit {
8
- private route;
9
- private zoneService;
10
- private spaceService;
11
- private visitService;
12
- private navigationService;
13
- private userService;
14
- private planService;
15
- private translate;
16
- private navigatorService;
17
- private router;
18
- lotIndexDetails: number;
19
- currentSpace: Space;
20
- updatedZone: EventEmitter<boolean>;
21
- plans: Plan[];
22
- zoneForEdit: Zone;
23
- isEditingZone: boolean;
24
- captureDate: number;
25
- spaceID: string;
26
- navigations: string[];
27
- images360: any[];
28
- carouselIsVisible: boolean;
29
- planIsVisible: boolean;
30
- currentPlan: Plan;
31
- currentZone: Zone;
32
- loadingPlan: boolean;
33
- menuItems: MenuItem[];
34
- isMuseumVisit: boolean;
35
- isMuseumModule: boolean;
36
- allZones: Zone[];
37
- floorZones: Zone[];
38
- zonesMap: Map<string, Zone[]>;
39
- floorDetails: number;
40
- defaultZone: Zone;
41
- defaultShowing: boolean;
42
- isAddingAudioTrack: boolean;
43
- parentZoneForAudio: Zone;
44
- destroy$: Subject<unknown>;
45
- constructor(route: ActivatedRoute, zoneService: ZoneService, spaceService: SpaceService, visitService: VisitService, navigationService: NavigationService, userService: BaseUserService, planService: PlanService, translate: TranslateService, navigatorService: NavigatorService, router: Router);
46
- ngOnInit(): Promise<void>;
47
- ngOnDestroy(): void;
48
- setupMenuItems(): void;
49
- onGoBack(): void;
50
- ngOnChanges(): void;
51
- resetZones(): Promise<void>;
52
- resetNavigations(): void;
53
- onPlansLoaded(): Promise<void>;
54
- /**
55
- * onToggleDetail folds/unfolds details for a zone
56
- * @param index
57
- * @param zone
58
- */
59
- onToggleDetail(index: number, zone: Zone): Promise<void>;
60
- onToggleDetailFloor(index: number, floor: Zone): void;
61
- onToggleDefaultZone(): void;
62
- preparePlan(): Promise<void>;
63
- toggleCarousel(): void;
64
- onEdit(zone: Zone): void;
65
- onAddLot(): void;
66
- onAddMuseumZone(): void;
67
- onAddAudioZone(parentZone: Zone): void;
68
- onDelete(zone: Zone): Promise<void>;
69
- editCompleted(event: any): void;
70
- showScanPointsOnPlan(navigations: Navigation[]): Promise<void>;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<ZonesComponent, never>;
72
- static ɵcmp: i0.ɵɵComponentDeclaration<ZonesComponent, "lib-zones", never, {}, { "updatedZone": "updatedZone"; }, never, never, false, never>;
73
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { MenuItem, ZoneService, SpaceService, VisitService, NavigationService, BaseUserService, PlanService, Navigation, Plan, Space, Zone, NavigatorService } from '@smarterplan/ngx-smarterplan-core';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ZonesComponent implements OnInit {
8
+ private route;
9
+ private zoneService;
10
+ private spaceService;
11
+ private visitService;
12
+ private navigationService;
13
+ private userService;
14
+ private planService;
15
+ private translate;
16
+ private navigatorService;
17
+ private router;
18
+ lotIndexDetails: number;
19
+ currentSpace: Space;
20
+ updatedZone: EventEmitter<boolean>;
21
+ plans: Plan[];
22
+ zoneForEdit: Zone;
23
+ isEditingZone: boolean;
24
+ captureDate: number;
25
+ spaceID: string;
26
+ navigations: string[];
27
+ images360: any[];
28
+ carouselIsVisible: boolean;
29
+ planIsVisible: boolean;
30
+ currentPlan: Plan;
31
+ currentZone: Zone;
32
+ loadingPlan: boolean;
33
+ menuItems: MenuItem[];
34
+ isMuseumVisit: boolean;
35
+ isMuseumModule: boolean;
36
+ allZones: Zone[];
37
+ floorZones: Zone[];
38
+ zonesMap: Map<string, Zone[]>;
39
+ floorDetails: number;
40
+ defaultZone: Zone;
41
+ defaultShowing: boolean;
42
+ isAddingAudioTrack: boolean;
43
+ parentZoneForAudio: Zone;
44
+ destroy$: Subject<unknown>;
45
+ constructor(route: ActivatedRoute, zoneService: ZoneService, spaceService: SpaceService, visitService: VisitService, navigationService: NavigationService, userService: BaseUserService, planService: PlanService, translate: TranslateService, navigatorService: NavigatorService, router: Router);
46
+ ngOnInit(): Promise<void>;
47
+ ngOnDestroy(): void;
48
+ setupMenuItems(): void;
49
+ onGoBack(): void;
50
+ ngOnChanges(): void;
51
+ resetZones(): Promise<void>;
52
+ resetNavigations(): void;
53
+ onPlansLoaded(): Promise<void>;
54
+ /**
55
+ * onToggleDetail folds/unfolds details for a zone
56
+ * @param index
57
+ * @param zone
58
+ */
59
+ onToggleDetail(index: number, zone: Zone): Promise<void>;
60
+ onToggleDetailFloor(index: number, floor: Zone): void;
61
+ onToggleDefaultZone(): void;
62
+ preparePlan(): Promise<void>;
63
+ toggleCarousel(): void;
64
+ onEdit(zone: Zone): void;
65
+ onAddLot(): void;
66
+ onAddMuseumZone(): void;
67
+ onAddAudioZone(parentZone: Zone): void;
68
+ onDelete(zone: Zone): Promise<void>;
69
+ editCompleted(event: any): void;
70
+ showScanPointsOnPlan(navigations: Navigation[]): Promise<void>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZonesComponent, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZonesComponent, "lib-zones", never, {}, { "updatedZone": "updatedZone"; }, never, never, false, never>;
73
+ }
@@ -1,53 +1,53 @@
1
- export type Rectangle = {
2
- top: number;
3
- left: number;
4
- width: number;
5
- height: number;
6
- };
7
- export declare enum SweepState {
8
- ADDED = 0,
9
- REMOVED = 1,
10
- DISABLED = 2,
11
- OCCUPIED = 3,
12
- STARTPOINT = 4
13
- }
14
- export declare function isInPolygon(p: {
15
- x: any;
16
- y: any;
17
- }, polygon: string | any[]): boolean;
18
- export declare function rotate(point: {
19
- x: any;
20
- y: any;
21
- }, center: {
22
- x: any;
23
- y: any;
24
- }, angle: number): {
25
- x: number;
26
- y: number;
27
- };
28
- /**
29
- * Check if an HtmlElement is inside a selection
30
- * @param button HTMLElement
31
- * @param selection
32
- * @returns true if the element is inside the selection, false otherwise
33
- */
34
- export declare function buttonIsInSelection(button: HTMLButtonElement, selection: Rectangle): boolean;
35
- /**
36
- * Styles the button that represents a sweep on the plan: green-added to zone, red -not added, gray - disabled, orange - occupied
37
- * @param button HTMLButtonElement, button on the plan,
38
- * @param isAdded boolean, if the sweep added to the zone
39
- * @param isOccupied boolean, if the sweep added to any other zone (but not current)
40
- */
41
- export declare function styleButton(button: HTMLButtonElement, state: SweepState): void;
42
- /**
43
- * Check if sweep (button) is chosen; it is reprsented by image style "mdi:adjust"
44
- * @param button HTMLElement
45
- * @returns boolean, if button was selected
46
- */
47
- export declare function buttonIsChosen(button: HTMLElement): boolean;
48
- /**
49
- * Visually change the state of a scan button, a selected button is blue
50
- * @param button HTMLElement
51
- * @param selected if true the button will be blue, otherwise it will red or green
52
- */
53
- export declare function setVisuallySelected(button: HTMLElement, selected: boolean): void;
1
+ export type Rectangle = {
2
+ top: number;
3
+ left: number;
4
+ width: number;
5
+ height: number;
6
+ };
7
+ export declare enum SweepState {
8
+ ADDED = 0,
9
+ REMOVED = 1,
10
+ DISABLED = 2,
11
+ OCCUPIED = 3,
12
+ STARTPOINT = 4
13
+ }
14
+ export declare function isInPolygon(p: {
15
+ x: any;
16
+ y: any;
17
+ }, polygon: string | any[]): boolean;
18
+ export declare function rotate(point: {
19
+ x: any;
20
+ y: any;
21
+ }, center: {
22
+ x: any;
23
+ y: any;
24
+ }, angle: number): {
25
+ x: number;
26
+ y: number;
27
+ };
28
+ /**
29
+ * Check if an HtmlElement is inside a selection
30
+ * @param button HTMLElement
31
+ * @param selection
32
+ * @returns true if the element is inside the selection, false otherwise
33
+ */
34
+ export declare function buttonIsInSelection(button: HTMLButtonElement, selection: Rectangle): boolean;
35
+ /**
36
+ * Styles the button that represents a sweep on the plan: green-added to zone, red -not added, gray - disabled, orange - occupied
37
+ * @param button HTMLButtonElement, button on the plan,
38
+ * @param isAdded boolean, if the sweep added to the zone
39
+ * @param isOccupied boolean, if the sweep added to any other zone (but not current)
40
+ */
41
+ export declare function styleButton(button: HTMLButtonElement, state: SweepState): void;
42
+ /**
43
+ * Check if sweep (button) is chosen; it is reprsented by image style "mdi:adjust"
44
+ * @param button HTMLElement
45
+ * @returns boolean, if button was selected
46
+ */
47
+ export declare function buttonIsChosen(button: HTMLElement): boolean;
48
+ /**
49
+ * Visually change the state of a scan button, a selected button is blue
50
+ * @param button HTMLElement
51
+ * @param selected if true the button will be blue, otherwise it will red or green
52
+ */
53
+ export declare function setVisuallySelected(button: HTMLElement, selected: boolean): void;
@@ -1,7 +1,7 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/router";
3
- export declare class LocationsRoutingModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<LocationsRoutingModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<LocationsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<LocationsRoutingModule>;
7
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/router";
3
+ export declare class LocationsRoutingModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocationsRoutingModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LocationsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<LocationsRoutingModule>;
7
+ }
@@ -1,36 +1,36 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/locations/locations.component";
3
- import * as i2 from "./components/detail-location/detail-location.component";
4
- import * as i3 from "./components/plans/calibration/calibration.component";
5
- import * as i4 from "./components/plans/plans.component";
6
- import * as i5 from "./components/visits/visits.component";
7
- import * as i6 from "./components/zones/zones.component";
8
- import * as i7 from "./components/images/images.component";
9
- import * as i8 from "./components/plans/edit-plan/edit-plan.component";
10
- import * as i9 from "./components/tab-navigation/tab-navigation.component";
11
- import * as i10 from "./components/locations/map/map.component";
12
- import * as i11 from "./components/locations/map/map-popup/map-popup.component";
13
- import * as i12 from "./components/form-location/form-location.component";
14
- import * as i13 from "./components/chevron/chevron.component";
15
- import * as i14 from "./components/zones/add-zone/add-zone.component";
16
- import * as i15 from "./components/zones/add-zone/selection/selection.component";
17
- import * as i16 from "./components/carousel/carousel.component";
18
- import * as i17 from "./components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component";
19
- import * as i18 from "./components/zones/add-audio-zone/add-audio-zone.component";
20
- import * as i19 from "./radio-button/radio-button.component";
21
- import * as i20 from "./components/plan-legend/plan-legend.component";
22
- import * as i21 from "./pipes/count-audio-sweeps.pipe";
23
- import * as i22 from "ng2-pdf-viewer";
24
- import * as i23 from "@angular/cdk/clipboard";
25
- import * as i24 from "@ng-bootstrap/ng-bootstrap";
26
- import * as i25 from "@angular/common";
27
- import * as i26 from "@ngx-translate/core";
28
- import * as i27 from "@asymmetrik/ngx-leaflet";
29
- import * as i28 from "@angular/forms";
30
- import * as i29 from "@smarterplan/ngx-smarterplan-core";
31
- import * as i30 from "./ngx-smarterplan-location-routing.module";
32
- export declare class NgxSmarterplanLocationsModule {
33
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmarterplanLocationsModule, [typeof i1.LocationsComponent, typeof i2.DetailLocationComponent, typeof i3.CalibrationComponent, typeof i4.PlansComponent, typeof i5.VisitsComponent, typeof i6.ZonesComponent, typeof i7.ImagesComponent, typeof i8.EditPlanComponent, typeof i9.TabNavigationComponent, typeof i10.MapComponent, typeof i11.MapPopupComponent, typeof i12.FormLocationComponent, typeof i13.ChevronComponent, typeof i14.AddZoneComponent, typeof i15.SelectionComponent, typeof i16.CarouselComponent, typeof i17.SweepPlanSelectionComponent, typeof i18.AddAudioZoneComponent, typeof i19.RadioButtonComponent, typeof i20.PlanLegendComponent, typeof i21.CountAudioSweepsPipe], [typeof i22.PdfViewerModule, typeof i23.ClipboardModule, typeof i24.NgbModule, typeof i24.NgbAlertModule, typeof i25.CommonModule, typeof i26.TranslateModule, typeof i27.LeafletModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgxSmarterplanCoreModule, typeof i30.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
35
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmarterplanLocationsModule>;
36
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/locations/locations.component";
3
+ import * as i2 from "./components/detail-location/detail-location.component";
4
+ import * as i3 from "./components/plans/calibration/calibration.component";
5
+ import * as i4 from "./components/plans/plans.component";
6
+ import * as i5 from "./components/visits/visits.component";
7
+ import * as i6 from "./components/zones/zones.component";
8
+ import * as i7 from "./components/images/images.component";
9
+ import * as i8 from "./components/plans/edit-plan/edit-plan.component";
10
+ import * as i9 from "./components/tab-navigation/tab-navigation.component";
11
+ import * as i10 from "./components/locations/map/map.component";
12
+ import * as i11 from "./components/locations/map/map-popup/map-popup.component";
13
+ import * as i12 from "./components/form-location/form-location.component";
14
+ import * as i13 from "./components/chevron/chevron.component";
15
+ import * as i14 from "./components/zones/add-zone/add-zone.component";
16
+ import * as i15 from "./components/zones/add-zone/selection/selection.component";
17
+ import * as i16 from "./components/carousel/carousel.component";
18
+ import * as i17 from "./components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component";
19
+ import * as i18 from "./components/zones/add-audio-zone/add-audio-zone.component";
20
+ import * as i19 from "./radio-button/radio-button.component";
21
+ import * as i20 from "./components/plan-legend/plan-legend.component";
22
+ import * as i21 from "./pipes/count-audio-sweeps.pipe";
23
+ import * as i22 from "ng2-pdf-viewer";
24
+ import * as i23 from "@angular/cdk/clipboard";
25
+ import * as i24 from "@ng-bootstrap/ng-bootstrap";
26
+ import * as i25 from "@angular/common";
27
+ import * as i26 from "@ngx-translate/core";
28
+ import * as i27 from "@asymmetrik/ngx-leaflet";
29
+ import * as i28 from "@angular/forms";
30
+ import * as i29 from "@smarterplan/ngx-smarterplan-core";
31
+ import * as i30 from "./ngx-smarterplan-location-routing.module";
32
+ export declare class NgxSmarterplanLocationsModule {
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsModule, never>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSmarterplanLocationsModule, [typeof i1.LocationsComponent, typeof i2.DetailLocationComponent, typeof i3.CalibrationComponent, typeof i4.PlansComponent, typeof i5.VisitsComponent, typeof i6.ZonesComponent, typeof i7.ImagesComponent, typeof i8.EditPlanComponent, typeof i9.TabNavigationComponent, typeof i10.MapComponent, typeof i11.MapPopupComponent, typeof i12.FormLocationComponent, typeof i13.ChevronComponent, typeof i14.AddZoneComponent, typeof i15.SelectionComponent, typeof i16.CarouselComponent, typeof i17.SweepPlanSelectionComponent, typeof i18.AddAudioZoneComponent, typeof i19.RadioButtonComponent, typeof i20.PlanLegendComponent, typeof i21.CountAudioSweepsPipe], [typeof i22.PdfViewerModule, typeof i23.ClipboardModule, typeof i24.NgbModule, typeof i24.NgbAlertModule, typeof i25.CommonModule, typeof i26.TranslateModule, typeof i27.LeafletModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.NgxSmarterplanCoreModule, typeof i30.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
35
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmarterplanLocationsModule>;
36
+ }
@@ -1,6 +1,6 @@
1
- import * as i0 from "@angular/core";
2
- export declare class NgxSmarterplanLocationsService {
3
- constructor();
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsService, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<NgxSmarterplanLocationsService>;
6
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class NgxSmarterplanLocationsService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxSmarterplanLocationsService>;
6
+ }
@@ -1,10 +1,10 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { Zone, ZoneService } from '@smarterplan/ngx-smarterplan-core';
3
- import * as i0 from "@angular/core";
4
- export declare class CountAudioSweepsPipe implements PipeTransform {
5
- private zoneService;
6
- constructor(zoneService: ZoneService);
7
- transform(zone: Zone): Promise<number>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<CountAudioSweepsPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<CountAudioSweepsPipe, "countAudioSweeps", false>;
10
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import { Zone, ZoneService } from '@smarterplan/ngx-smarterplan-core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CountAudioSweepsPipe implements PipeTransform {
5
+ private zoneService;
6
+ constructor(zoneService: ZoneService);
7
+ transform(zone: Zone): Promise<number>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CountAudioSweepsPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<CountAudioSweepsPipe, "countAudioSweeps", false>;
10
+ }
@@ -1,12 +1,12 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class RadioButtonComponent implements OnInit {
4
- label: string;
5
- isCheckedEvent: EventEmitter<boolean>;
6
- isChecked: boolean;
7
- constructor();
8
- ngOnInit(): void;
9
- onChecked(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "lib-radio-button", never, { "label": "label"; }, { "isCheckedEvent": "isCheckedEvent"; }, never, never, false, never>;
12
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class RadioButtonComponent implements OnInit {
4
+ label: string;
5
+ isCheckedEvent: EventEmitter<boolean>;
6
+ isChecked: boolean;
7
+ constructor();
8
+ ngOnInit(): void;
9
+ onChecked(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "lib-radio-button", never, { "label": { "alias": "label"; "required": false; }; }, { "isCheckedEvent": "isCheckedEvent"; }, never, never, false, never>;
12
+ }