@smarterplan/ngx-smarterplan-locations 0.2.20 → 0.2.21

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 (59) hide show
  1. package/esm2020/lib/components/carousel/carousel.component.mjs +27 -27
  2. package/esm2020/lib/components/chevron/chevron.component.mjs +17 -17
  3. package/esm2020/lib/components/detail-location/detail-location.component.mjs +154 -154
  4. package/esm2020/lib/components/form-location/form-location.component.mjs +237 -237
  5. package/esm2020/lib/components/images/images.component.mjs +90 -90
  6. package/esm2020/lib/components/locations/locations.component.mjs +141 -141
  7. package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +65 -65
  8. package/esm2020/lib/components/locations/map/map.component.mjs +90 -90
  9. package/esm2020/lib/components/plans/calibration/calibration.component.mjs +468 -468
  10. package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +324 -324
  11. package/esm2020/lib/components/plans/plans.component.mjs +210 -210
  12. package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +41 -41
  13. package/esm2020/lib/components/visits/visits.component.mjs +235 -235
  14. package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +230 -230
  15. package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +294 -294
  16. package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +76 -76
  17. package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +413 -414
  18. package/esm2020/lib/components/zones/zones.component.mjs +232 -232
  19. package/esm2020/lib/helper.service.mjs +134 -134
  20. package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +49 -49
  21. package/esm2020/lib/ngx-smarterplan-locations.module.mjs +122 -122
  22. package/esm2020/lib/ngx-smarterplan-locations.service.mjs +13 -13
  23. package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +27 -0
  24. package/esm2020/lib/radio-button/radio-button.component.mjs +26 -26
  25. package/esm2020/public-api.mjs +8 -8
  26. package/esm2020/smarterplan-ngx-smarterplan-locations.mjs +4 -4
  27. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +3627 -3648
  28. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
  29. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +3475 -3494
  30. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -1
  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 +51 -51
  34. package/lib/components/form-location/form-location.component.d.ts +45 -45
  35. package/lib/components/images/images.component.d.ts +28 -28
  36. package/lib/components/locations/locations.component.d.ts +50 -50
  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 +22 -22
  39. package/lib/components/plans/calibration/calibration.component.d.ts +140 -140
  40. package/lib/components/plans/edit-plan/edit-plan.component.d.ts +55 -55
  41. package/lib/components/plans/plans.component.d.ts +59 -59
  42. package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -13
  43. package/lib/components/visits/visits.component.d.ts +51 -51
  44. package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +63 -63
  45. package/lib/components/zones/add-zone/add-zone.component.d.ts +67 -67
  46. package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -44
  47. package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +96 -96
  48. package/lib/components/zones/zones.component.d.ts +67 -67
  49. package/lib/helper.service.d.ts +53 -53
  50. package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -7
  51. package/lib/ngx-smarterplan-locations.module.d.ts +35 -35
  52. package/lib/ngx-smarterplan-locations.service.d.ts +6 -6
  53. package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -0
  54. package/lib/radio-button/radio-button.component.d.ts +12 -12
  55. package/package.json +2 -2
  56. package/public-api.d.ts +4 -4
  57. package/smarterplan-ngx-smarterplan-locations.d.ts +5 -5
  58. package/esm2020/lib/components/plan-legend/plan-legend.component.mjs +0 -47
  59. package/lib/components/plan-legend/plan-legend.component.d.ts +0 -14
@@ -1,67 +1,67 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { ActivatedRoute } from '@angular/router';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import { MenuItem, ZoneService, SpaceService, VisitService, NavigationService, BaseUserService, PlanService, Navigation, Plan, Space, Zone } from '@smarterplan/ngx-smarterplan-core';
5
- import * as i0 from "@angular/core";
6
- export declare class ZonesComponent implements OnInit {
7
- private route;
8
- private zoneService;
9
- private spaceService;
10
- private visitService;
11
- private navigationService;
12
- private userService;
13
- private planService;
14
- private translate;
15
- lotIndexDetails: number;
16
- currentSpace: Space;
17
- updatedZone: EventEmitter<boolean>;
18
- plans: Plan[];
19
- zoneForEdit: Zone;
20
- isEditingZone: boolean;
21
- captureDate: number;
22
- spaceID: string;
23
- navigations: string[];
24
- images360: any[];
25
- carouselIsVisible: boolean;
26
- planIsVisible: boolean;
27
- currentPlan: Plan;
28
- currentZone: Zone;
29
- loadingPlan: boolean;
30
- menuItems: MenuItem[];
31
- isMuseumVisit: boolean;
32
- isMuseumModule: boolean;
33
- allZones: Zone[];
34
- floorZones: Zone[];
35
- zonesMap: Map<string, Zone[]>;
36
- floorDetails: number;
37
- defaultZone: Zone;
38
- defaultShowing: boolean;
39
- isAddingAudioTrack: boolean;
40
- parentZoneForAudio: Zone;
41
- constructor(route: ActivatedRoute, zoneService: ZoneService, spaceService: SpaceService, visitService: VisitService, navigationService: NavigationService, userService: BaseUserService, planService: PlanService, translate: TranslateService);
42
- ngOnInit(): Promise<void>;
43
- setupMenuItems(): void;
44
- onGoBack(): void;
45
- ngOnChanges(): void;
46
- resetZones(): Promise<void>;
47
- resetNavigations(): void;
48
- onPlansLoaded(): Promise<void>;
49
- /**
50
- * onToggleDetail folds/unfolds details for a zone
51
- * @param i index of the lot to be toggled
52
- */
53
- onToggleDetail(index: number, zone: Zone): Promise<void>;
54
- onToggleDetailFloor(index: number, floor: Zone): void;
55
- onToggleDefaultZone(): void;
56
- preparePlan(): Promise<void>;
57
- toggleCarousel(): void;
58
- onEdit(zone: Zone): void;
59
- onAddLot(): void;
60
- onAddMuseumZone(): void;
61
- onAddAudioZone(parentZone: Zone): void;
62
- onDelete(zone: Zone): Promise<void>;
63
- editCompleted(event: any): void;
64
- showScanPointsOnPlan(navigations: Navigation[]): Promise<void>;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<ZonesComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<ZonesComponent, "lib-zones", never, {}, { "updatedZone": "updatedZone"; }, never, never>;
67
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ActivatedRoute } from '@angular/router';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { MenuItem, ZoneService, SpaceService, VisitService, NavigationService, BaseUserService, PlanService, Navigation, Plan, Space, Zone } from '@smarterplan/ngx-smarterplan-core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ZonesComponent implements OnInit {
7
+ private route;
8
+ private zoneService;
9
+ private spaceService;
10
+ private visitService;
11
+ private navigationService;
12
+ private userService;
13
+ private planService;
14
+ private translate;
15
+ lotIndexDetails: number;
16
+ currentSpace: Space;
17
+ updatedZone: EventEmitter<boolean>;
18
+ plans: Plan[];
19
+ zoneForEdit: Zone;
20
+ isEditingZone: boolean;
21
+ captureDate: number;
22
+ spaceID: string;
23
+ navigations: string[];
24
+ images360: any[];
25
+ carouselIsVisible: boolean;
26
+ planIsVisible: boolean;
27
+ currentPlan: Plan;
28
+ currentZone: Zone;
29
+ loadingPlan: boolean;
30
+ menuItems: MenuItem[];
31
+ isMuseumVisit: boolean;
32
+ isMuseumModule: boolean;
33
+ allZones: Zone[];
34
+ floorZones: Zone[];
35
+ zonesMap: Map<string, Zone[]>;
36
+ floorDetails: number;
37
+ defaultZone: Zone;
38
+ defaultShowing: boolean;
39
+ isAddingAudioTrack: boolean;
40
+ parentZoneForAudio: Zone;
41
+ constructor(route: ActivatedRoute, zoneService: ZoneService, spaceService: SpaceService, visitService: VisitService, navigationService: NavigationService, userService: BaseUserService, planService: PlanService, translate: TranslateService);
42
+ ngOnInit(): Promise<void>;
43
+ setupMenuItems(): void;
44
+ onGoBack(): void;
45
+ ngOnChanges(): void;
46
+ resetZones(): Promise<void>;
47
+ resetNavigations(): void;
48
+ onPlansLoaded(): Promise<void>;
49
+ /**
50
+ * onToggleDetail folds/unfolds details for a zone
51
+ * @param i index of the lot to be toggled
52
+ */
53
+ onToggleDetail(index: number, zone: Zone): Promise<void>;
54
+ onToggleDetailFloor(index: number, floor: Zone): void;
55
+ onToggleDefaultZone(): void;
56
+ preparePlan(): Promise<void>;
57
+ toggleCarousel(): void;
58
+ onEdit(zone: Zone): void;
59
+ onAddLot(): void;
60
+ onAddMuseumZone(): void;
61
+ onAddAudioZone(parentZone: Zone): void;
62
+ onDelete(zone: Zone): Promise<void>;
63
+ editCompleted(event: any): void;
64
+ showScanPointsOnPlan(navigations: Navigation[]): Promise<void>;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZonesComponent, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<ZonesComponent, "lib-zones", never, {}, { "updatedZone": "updatedZone"; }, never, never>;
67
+ }
@@ -1,53 +1,53 @@
1
- export declare 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 declare 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,35 +1,35 @@
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 "ng2-pdf-viewer";
23
- import * as i22 from "ngx-clipboard";
24
- import * as i23 from "@ng-bootstrap/ng-bootstrap";
25
- import * as i24 from "@angular/common";
26
- import * as i25 from "@ngx-translate/core";
27
- import * as i26 from "@asymmetrik/ngx-leaflet";
28
- import * as i27 from "@angular/forms";
29
- import * as i28 from "@smarterplan/ngx-smarterplan-core";
30
- import * as i29 from "./ngx-smarterplan-location-routing.module";
31
- export declare class NgxSmarterplanLocationsModule {
32
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsModule, never>;
33
- 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.PdfViewerModule, typeof i22.ClipboardModule, typeof i23.NgbModule, typeof i23.NgbAlertModule, typeof i24.CommonModule, typeof i25.TranslateModule, typeof i26.LeafletModule, typeof i27.FormsModule, typeof i27.ReactiveFormsModule, typeof i28.NgxSmarterplanCoreModule, typeof i29.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
34
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmarterplanLocationsModule>;
35
- }
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 "./pipes/count-audio-sweeps.pipe";
22
+ import * as i21 from "ng2-pdf-viewer";
23
+ import * as i22 from "ngx-clipboard";
24
+ import * as i23 from "@ng-bootstrap/ng-bootstrap";
25
+ import * as i24 from "@angular/common";
26
+ import * as i25 from "@ngx-translate/core";
27
+ import * as i26 from "@asymmetrik/ngx-leaflet";
28
+ import * as i27 from "@angular/forms";
29
+ import * as i28 from "@smarterplan/ngx-smarterplan-core";
30
+ import * as i29 from "./ngx-smarterplan-location-routing.module";
31
+ export declare class NgxSmarterplanLocationsModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmarterplanLocationsModule, never>;
33
+ 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.CountAudioSweepsPipe], [typeof i21.PdfViewerModule, typeof i22.ClipboardModule, typeof i23.NgbModule, typeof i23.NgbAlertModule, typeof i24.CommonModule, typeof i25.TranslateModule, typeof i26.LeafletModule, typeof i27.FormsModule, typeof i27.ReactiveFormsModule, typeof i28.NgxSmarterplanCoreModule, typeof i29.LocationsRoutingModule], [typeof i10.MapComponent, typeof i9.TabNavigationComponent]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxSmarterplanLocationsModule>;
35
+ }
@@ -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
+ }
@@ -0,0 +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">;
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>;
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>;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterplan/ngx-smarterplan-locations",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.2.0",
6
6
  "@angular/core": "^13.2.0",
@@ -9,7 +9,7 @@
9
9
  "@ngx-translate/core": "^14.0.0",
10
10
  "leaflet": "^1.8.0",
11
11
  "ngx-clipboard": "^15.1.0",
12
- "@smarterplan/ngx-smarterplan-core": "^1.0.5",
12
+ "@smarterplan/ngx-smarterplan-core": "^1.0.13",
13
13
  "panzoom": "^9.4.2",
14
14
  "ng2-pdf-viewer": "^9.0.0"
15
15
  },
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './lib/ngx-smarterplan-locations.service';
2
- export * from './lib/ngx-smarterplan-locations.module';
3
- export * from './lib/components/locations/map/map.component';
4
- export * from './lib/components/tab-navigation/tab-navigation.component';
1
+ export * from './lib/ngx-smarterplan-locations.service';
2
+ export * from './lib/ngx-smarterplan-locations.module';
3
+ export * from './lib/components/locations/map/map.component';
4
+ export * from './lib/components/tab-navigation/tab-navigation.component';
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@smarterplan/ngx-smarterplan-locations" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@smarterplan/ngx-smarterplan-locations" />
5
+ export * from './public-api';
@@ -1,47 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@ngx-translate/core";
4
- import * as i2 from "@angular/common";
5
- export class PlanLegendComponent {
6
- constructor(translate) {
7
- this.translate = translate;
8
- this.isAudioZone = false;
9
- this.buttonsToRender = [];
10
- this.colorToText = {};
11
- }
12
- async ngOnInit() {
13
- this.render();
14
- }
15
- async render() {
16
- this.buttonsToRender = [
17
- {
18
- url: `url("https://api.iconify.design/mdi:adjust.svg?color=green&height=17&width=17")`,
19
- text: this.translate.instant("legend.green")
20
- },
21
- {
22
- url: `url("https://api.iconify.design/mdi:close-circle-outline.svg?color=red&height=17&width=17")`,
23
- text: this.translate.instant("legend.red")
24
- }
25
- ];
26
- if (this.isAudioZone) {
27
- let audioPoints = [{
28
- url: `url("https://api.iconify.design/mdi:close-circle-outline.svg?color=black&height=17&width=17")`,
29
- text: this.translate.instant("legend.black")
30
- },
31
- {
32
- url: `url("https://api.iconify.design/mdi:adjust.svg?color=orange&height=17&width=17")`,
33
- text: this.translate.instant("legend.orange")
34
- }];
35
- this.buttonsToRender = this.buttonsToRender.concat(audioPoints);
36
- }
37
- }
38
- }
39
- PlanLegendComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PlanLegendComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
40
- PlanLegendComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: PlanLegendComponent, selector: "lib-plan-legend", inputs: { isAudioZone: "isAudioZone" }, ngImport: i0, template: "<div class=\"mt-3 ms-3\" class=\"legendContainer\">\n <h5>{{\"legend.title\" | translate}}</h5>\n <div class=\"legendBox\">\n <div class=\"legendRow\" *ngFor=\"let elemnt of buttonsToRender\">\n <button class=\"legendIcon\" [ngStyle] = \"{'background-image': elemnt.url}\"></button>\n <span>{{elemnt.text}}</span>\n </div>\n </div>\n</div>\n", styles: [".legendContainer{padding:1rem;border:solid var(--smarterplan-primary) 2px;border-radius:6px;width:100%;margin-bottom:.5rem;z-index:1000000;position:relative;background:#FFF}.legendContainer .legendBox{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.legendContainer .legendBox .legendRow{display:flex;flex-direction:row;align-items:center}.legendContainer .legendBox .legendRow .legendIcon{width:2.5rem;height:2.5rem;background-repeat:no-repeat;background-size:cover;border:none;background-color:transparent;margin-right:.5rem;cursor:auto}.legendContainer .legendBox .legendRow span{margin-right:1rem;cursor:auto}.legendContainer .legendBox .legendRow h5{cursor:auto}\n"], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "translate": i1.TranslatePipe } });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PlanLegendComponent, decorators: [{
42
- type: Component,
43
- args: [{ selector: 'lib-plan-legend', template: "<div class=\"mt-3 ms-3\" class=\"legendContainer\">\n <h5>{{\"legend.title\" | translate}}</h5>\n <div class=\"legendBox\">\n <div class=\"legendRow\" *ngFor=\"let elemnt of buttonsToRender\">\n <button class=\"legendIcon\" [ngStyle] = \"{'background-image': elemnt.url}\"></button>\n <span>{{elemnt.text}}</span>\n </div>\n </div>\n</div>\n", styles: [".legendContainer{padding:1rem;border:solid var(--smarterplan-primary) 2px;border-radius:6px;width:100%;margin-bottom:.5rem;z-index:1000000;position:relative;background:#FFF}.legendContainer .legendBox{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.legendContainer .legendBox .legendRow{display:flex;flex-direction:row;align-items:center}.legendContainer .legendBox .legendRow .legendIcon{width:2.5rem;height:2.5rem;background-repeat:no-repeat;background-size:cover;border:none;background-color:transparent;margin-right:.5rem;cursor:auto}.legendContainer .legendBox .legendRow span{margin-right:1rem;cursor:auto}.legendContainer .legendBox .legendRow h5{cursor:auto}\n"] }]
44
- }], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { isAudioZone: [{
45
- type: Input
46
- }] } });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhbi1sZWdlbmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtYXJ0ZXJwbGFuLWxvY2F0aW9ucy9zcmMvbGliL2NvbXBvbmVudHMvcGxhbi1sZWdlbmQvcGxhbi1sZWdlbmQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtYXJ0ZXJwbGFuLWxvY2F0aW9ucy9zcmMvbGliL2Nvb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ChcImxlZ2VuZC5vcmFuZ2VcIilcbiAgICAgICAgfV1cbiAgICAgICAgdGhpcy5idXR0b25zVG9SZW5kZXIgPSB0aGlzLmJ1dHRvbnNUb1JlbmRlci5jb25jYXQoYXVkaW9Qb2ludHMpXG4gICAgfVxuICB9XG5cbiAgLy9zdHlsZUJ1dHRvbihlbGVtZW50LCBTd2VlcFN0YXRlLkRJU0FCTEVEKTtcblxufVxuIiwiPGRpdiBjbGFzcz1cIm10LTMgbXMtM1wiIGNsYXNzPVwibGVnZW5kQ29udGFpbmVyXCI+XG4gICAgPGg1Pnt7XCJsZWdlbmQudGl0bGVcIiB8IHRyYW5zbGF0ZX19PC9oNT5cbiAgICA8ZGl2IGNsYXNzPVwibGVnZW5kQm94XCI+XG4gICAgICAgIDxkaXYgY2xhc3M9XCJsZWdlbmRSb3dcIiAqbmdGb3I9XCJsZXQgZWxlbW50IG9mIGJ1dHRvbnNUb1JlbmRlclwiPlxuICAgICAgICAgICAgPGJ1dHRvbiBjbGFzcz1cImxlZ2VuZEljb25cIiBbbmdTdHlsZV0gPSBcInsnYmFja2dyb3VuZC1pbWFnZSc6IGVsZW1udC51cmx9XCI+PC9idXR0b24+XG4gICAgICAgICAgICA8c3Bhbj57e2VsZW1udC50ZXh0fX08L3NwYW4+XG4gICAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -1,14 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { TranslateService } from "@ngx-translate/core";
3
- import * as i0 from "@angular/core";
4
- export declare class PlanLegendComponent implements OnInit {
5
- private translate;
6
- isAudioZone?: boolean;
7
- buttonsToRender: any[];
8
- colorToText: {};
9
- constructor(translate: TranslateService);
10
- ngOnInit(): Promise<void>;
11
- render(): Promise<void>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PlanLegendComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<PlanLegendComponent, "lib-plan-legend", never, { "isAudioZone": "isAudioZone"; }, {}, never, never>;
14
- }