@smarterplan/ngx-smarterplan-locations 0.2.44 → 0.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/esm2020/lib/components/carousel/carousel.component.mjs +28 -0
  2. package/esm2020/lib/components/chevron/chevron.component.mjs +18 -0
  3. package/esm2020/lib/components/detail-location/detail-location.component.mjs +168 -0
  4. package/esm2020/lib/components/form-location/form-location.component.mjs +237 -0
  5. package/esm2020/lib/components/images/images.component.mjs +107 -0
  6. package/esm2020/lib/components/locations/locations.component.mjs +145 -0
  7. package/esm2020/lib/components/locations/map/map-popup/map-popup.component.mjs +66 -0
  8. package/esm2020/lib/components/locations/map/map.component.mjs +91 -0
  9. package/esm2020/lib/components/plan-legend/plan-legend.component.mjs +47 -0
  10. package/esm2020/lib/components/plans/calibration/calibration.component.mjs +468 -0
  11. package/esm2020/lib/components/plans/edit-plan/edit-plan.component.mjs +324 -0
  12. package/esm2020/lib/components/plans/plans.component.mjs +225 -0
  13. package/esm2020/lib/components/tab-navigation/tab-navigation.component.mjs +41 -0
  14. package/esm2020/lib/components/visits/visits.component.mjs +283 -0
  15. package/esm2020/lib/components/zones/add-audio-zone/add-audio-zone.component.mjs +230 -0
  16. package/esm2020/lib/components/zones/add-zone/add-zone.component.mjs +315 -0
  17. package/esm2020/lib/components/zones/add-zone/selection/selection.component.mjs +77 -0
  18. package/esm2020/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.mjs +502 -0
  19. package/esm2020/lib/components/zones/zones.component.mjs +268 -0
  20. package/esm2020/lib/helper.service.mjs +134 -0
  21. package/esm2020/lib/ngx-smarterplan-location-routing.module.mjs +49 -0
  22. package/esm2020/lib/ngx-smarterplan-locations.module.mjs +125 -0
  23. package/esm2020/lib/ngx-smarterplan-locations.service.mjs +14 -0
  24. package/esm2020/lib/pipes/count-audio-sweeps.pipe.mjs +27 -0
  25. package/esm2020/lib/radio-button/radio-button.component.mjs +26 -0
  26. package/esm2020/public-api.mjs +9 -0
  27. package/esm2020/smarterplan-ngx-smarterplan-locations.mjs +5 -0
  28. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs +3991 -0
  29. package/fesm2015/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
  30. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs +3828 -0
  31. package/fesm2020/smarterplan-ngx-smarterplan-locations.mjs.map +1 -0
  32. package/lib/components/carousel/carousel.component.d.ts +12 -0
  33. package/lib/components/chevron/chevron.component.d.ts +9 -0
  34. package/lib/components/detail-location/detail-location.component.d.ts +55 -0
  35. package/lib/components/form-location/form-location.component.d.ts +45 -0
  36. package/lib/components/images/images.component.d.ts +33 -0
  37. package/lib/components/locations/locations.component.d.ts +51 -0
  38. package/lib/components/locations/map/map-popup/map-popup.component.d.ts +22 -0
  39. package/lib/components/locations/map/map.component.d.ts +22 -0
  40. package/lib/components/plan-legend/plan-legend.component.d.ts +14 -0
  41. package/lib/components/plans/calibration/calibration.component.d.ts +140 -0
  42. package/lib/components/plans/edit-plan/edit-plan.component.d.ts +55 -0
  43. package/lib/components/plans/plans.component.d.ts +63 -0
  44. package/lib/components/tab-navigation/tab-navigation.component.d.ts +13 -0
  45. package/lib/components/visits/visits.component.d.ts +62 -0
  46. package/lib/components/zones/add-audio-zone/add-audio-zone.component.d.ts +63 -0
  47. package/lib/components/zones/add-zone/add-zone.component.d.ts +69 -0
  48. package/lib/components/zones/add-zone/selection/selection.component.d.ts +44 -0
  49. package/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.d.ts +107 -0
  50. package/lib/components/zones/zones.component.d.ts +73 -0
  51. package/lib/helper.service.d.ts +53 -0
  52. package/lib/ngx-smarterplan-location-routing.module.d.ts +7 -0
  53. package/lib/ngx-smarterplan-locations.module.d.ts +36 -0
  54. package/lib/ngx-smarterplan-locations.service.d.ts +6 -0
  55. package/lib/pipes/count-audio-sweeps.pipe.d.ts +10 -0
  56. package/lib/radio-button/radio-button.component.d.ts +12 -0
  57. package/package.json +22 -5
  58. package/{src/public-api.ts → public-api.d.ts} +4 -11
  59. package/smarterplan-ngx-smarterplan-locations.d.ts +5 -0
  60. package/.browserslistrc +0 -16
  61. package/karma.conf.js +0 -44
  62. package/ng-package.json +0 -7
  63. package/src/lib/components/carousel/carousel.component.html +0 -13
  64. package/src/lib/components/carousel/carousel.component.scss +0 -0
  65. package/src/lib/components/carousel/carousel.component.spec.ts +0 -25
  66. package/src/lib/components/carousel/carousel.component.ts +0 -31
  67. package/src/lib/components/chevron/chevron.component.html +0 -5
  68. package/src/lib/components/chevron/chevron.component.scss +0 -16
  69. package/src/lib/components/chevron/chevron.component.spec.ts +0 -25
  70. package/src/lib/components/chevron/chevron.component.ts +0 -17
  71. package/src/lib/components/detail-location/detail-location.component.html +0 -108
  72. package/src/lib/components/detail-location/detail-location.component.scss +0 -0
  73. package/src/lib/components/detail-location/detail-location.component.spec.ts +0 -25
  74. package/src/lib/components/detail-location/detail-location.component.ts +0 -215
  75. package/src/lib/components/form-location/form-location.component.html +0 -160
  76. package/src/lib/components/form-location/form-location.component.scss +0 -62
  77. package/src/lib/components/form-location/form-location.component.spec.ts +0 -25
  78. package/src/lib/components/form-location/form-location.component.ts +0 -274
  79. package/src/lib/components/images/images.component.html +0 -27
  80. package/src/lib/components/images/images.component.scss +0 -0
  81. package/src/lib/components/images/images.component.spec.ts +0 -25
  82. package/src/lib/components/images/images.component.ts +0 -133
  83. package/src/lib/components/locations/locations.component.html +0 -63
  84. package/src/lib/components/locations/locations.component.scss +0 -121
  85. package/src/lib/components/locations/locations.component.spec.ts +0 -25
  86. package/src/lib/components/locations/locations.component.ts +0 -186
  87. package/src/lib/components/locations/map/map-popup/map-popup.component.html +0 -11
  88. package/src/lib/components/locations/map/map-popup/map-popup.component.scss +0 -51
  89. package/src/lib/components/locations/map/map-popup/map-popup.component.spec.ts +0 -25
  90. package/src/lib/components/locations/map/map-popup/map-popup.component.ts +0 -79
  91. package/src/lib/components/locations/map/map.component.html +0 -2
  92. package/src/lib/components/locations/map/map.component.scss +0 -0
  93. package/src/lib/components/locations/map/map.component.spec.ts +0 -25
  94. package/src/lib/components/locations/map/map.component.ts +0 -111
  95. package/src/lib/components/plan-legend/plan-legend.component.html +0 -9
  96. package/src/lib/components/plan-legend/plan-legend.component.scss +0 -38
  97. package/src/lib/components/plan-legend/plan-legend.component.spec.ts +0 -25
  98. package/src/lib/components/plan-legend/plan-legend.component.ts +0 -50
  99. package/src/lib/components/plans/calibration/calibration.component.html +0 -98
  100. package/src/lib/components/plans/calibration/calibration.component.scss +0 -136
  101. package/src/lib/components/plans/calibration/calibration.component.spec.ts +0 -25
  102. package/src/lib/components/plans/calibration/calibration.component.ts +0 -603
  103. package/src/lib/components/plans/edit-plan/edit-plan.component.html +0 -77
  104. package/src/lib/components/plans/edit-plan/edit-plan.component.scss +0 -9
  105. package/src/lib/components/plans/edit-plan/edit-plan.component.spec.ts +0 -25
  106. package/src/lib/components/plans/edit-plan/edit-plan.component.ts +0 -421
  107. package/src/lib/components/plans/plans.component.html +0 -102
  108. package/src/lib/components/plans/plans.component.scss +0 -24
  109. package/src/lib/components/plans/plans.component.spec.ts +0 -25
  110. package/src/lib/components/plans/plans.component.ts +0 -305
  111. package/src/lib/components/tab-navigation/tab-navigation.component.html +0 -7
  112. package/src/lib/components/tab-navigation/tab-navigation.component.scss +0 -27
  113. package/src/lib/components/tab-navigation/tab-navigation.component.spec.ts +0 -25
  114. package/src/lib/components/tab-navigation/tab-navigation.component.ts +0 -35
  115. package/src/lib/components/visits/visits.component.html +0 -134
  116. package/src/lib/components/visits/visits.component.scss +0 -24
  117. package/src/lib/components/visits/visits.component.spec.ts +0 -25
  118. package/src/lib/components/visits/visits.component.ts +0 -357
  119. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.html +0 -73
  120. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.scss +0 -14
  121. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.spec.ts +0 -25
  122. package/src/lib/components/zones/add-audio-zone/add-audio-zone.component.ts +0 -269
  123. package/src/lib/components/zones/add-zone/add-zone.component.html +0 -153
  124. package/src/lib/components/zones/add-zone/add-zone.component.scss +0 -44
  125. package/src/lib/components/zones/add-zone/add-zone.component.spec.ts +0 -25
  126. package/src/lib/components/zones/add-zone/add-zone.component.ts +0 -377
  127. package/src/lib/components/zones/add-zone/selection/selection.component.html +0 -3
  128. package/src/lib/components/zones/add-zone/selection/selection.component.scss +0 -16
  129. package/src/lib/components/zones/add-zone/selection/selection.component.spec.ts +0 -25
  130. package/src/lib/components/zones/add-zone/selection/selection.component.ts +0 -95
  131. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.html +0 -73
  132. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.scss +0 -23
  133. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.spec.ts +0 -25
  134. package/src/lib/components/zones/add-zone/sweep-plan-selection/sweep-plan-selection.component.ts +0 -595
  135. package/src/lib/components/zones/zones.component.html +0 -181
  136. package/src/lib/components/zones/zones.component.scss +0 -36
  137. package/src/lib/components/zones/zones.component.spec.ts +0 -25
  138. package/src/lib/components/zones/zones.component.ts +0 -339
  139. package/src/lib/helper.service.ts +0 -161
  140. package/src/lib/ngx-smarterplan-location-routing.module.ts +0 -41
  141. package/src/lib/ngx-smarterplan-locations.module.ts +0 -74
  142. package/src/lib/ngx-smarterplan-locations.service.spec.ts +0 -16
  143. package/src/lib/ngx-smarterplan-locations.service.ts +0 -9
  144. package/src/lib/pipes/count-audio-sweeps.pipe.ts +0 -21
  145. package/src/lib/radio-button/radio-button.component.html +0 -9
  146. package/src/lib/radio-button/radio-button.component.scss +0 -152
  147. package/src/lib/radio-button/radio-button.component.spec.ts +0 -25
  148. package/src/lib/radio-button/radio-button.component.ts +0 -26
  149. package/src/test.ts +0 -27
  150. package/tsconfig.lib.json +0 -15
  151. package/tsconfig.lib.prod.json +0 -10
  152. package/tsconfig.spec.json +0 -17
@@ -1,98 +0,0 @@
1
- <div class="row mt-3">
2
- <div class="col">
3
- <div class="m-3">
4
- <lib-tab-navigation [menuItems]='menuItems'></lib-tab-navigation>
5
- </div>
6
- </div>
7
- </div>
8
-
9
- <div id="rowCanvas">
10
- <div #canvasDiv id="canvasDiv">
11
-
12
- <div id="viewer-frame" [style.pointer-events]="zoomCanBeChanged?'auto':'none'">
13
- <!-- <div class="blur"></div> -->
14
- </div>
15
- <canvas id="canvas" [ngStyle]="{'opacity': (preview||loading) ? '1' : 'calc(' + opacity + '/ 100)'}"></canvas>
16
- </div>
17
-
18
- <div class="calibration-tools container-fluid" *ngIf="!(preview || loading)">
19
- <h1>{{'Calibration tool' | translate}}</h1>
20
- <div class="tool">
21
- <div class="row ms-0 me-0 legend">
22
- <div class="legend-bar-indicator" [ngStyle]="{'opacity': 'calc(' + (-(opacity-100)+10) + '/ 100)'}">
23
- {{'Less' | translate}}</div>
24
- <div class="legend-title">{{'Plan Opacity' | translate }}</div>
25
- <div class="legend-bar-indicator" [ngStyle]="{'opacity': 'calc(' + (opacity+10) + '/ 100)'}">{{'More' |
26
- translate}}</div>
27
- </div>
28
- <div class="row ms-0 me-0 ">
29
- <input [disabled]="false" [ngModelOptions]="{standalone: true}" [(ngModel)]="opacity" type="range"
30
- class="form-range" min="0" max="100" value="50" id="opacity">
31
- </div>
32
- </div>
33
- <div class="tool">
34
- <div class="row ms-0 me-0 ">
35
- <div class="label-legend">{{'Change Visit Floor' | translate}}</div>
36
- <div ngbDropdown class="d-inline-block ms-3">
37
- <button class="btn btn-label-file rounded-pill" id="dropdownBasic1" ngbDropdownToggle>
38
- {{currentFloor ? currentFloor.id : ('Floor' | translate) }}</button>
39
- <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
40
- <button ngbDropdownItem *ngFor="let floor of floors" (click)="onFloorClick(floor)">
41
- {{ floor.name.length > 0 ? floor.name : ('Floor ' + floor.id) }}
42
- </button>
43
- </div>
44
- </div>
45
- </div>
46
-
47
- </div>
48
- <div class="tool">
49
- <div class="row ms-0 me-0 ">
50
- <div class="tool-checkbox-container">
51
- <div class="tool-checkbox-subcontainer">
52
- <div class="label-legend me-3">{{'Pan/Zoom Visit' | translate}} {{zoomCanBeChanged ? "ON" :
53
- "OFF"}}
54
- </div>
55
- <input type="checkbox" (change)="onActivateZoomChange()" style="margin-top: 5px;">
56
- </div>
57
- <div class="card border-warning mb-3 mt-3" *ngIf="zoomCanBeChanged">
58
- <div class="card-body text-warning">
59
- <h5 class="card-title">{{"calibration.wait-message" | translate}}</h5>
60
- </div>
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
-
66
- <div class="action">
67
- <button type="button" class="btn btn-outline-primary rounded-pill" (click)="onPreview()"
68
- [disabled]="zoomCanBeChanged">{{'Preview' | translate}}</button>
69
- <button type="button" class="btn btn-outline-primary rounded-pill" (click)="onCancel()">{{'Cancel' |
70
- translate}}</button>
71
-
72
- </div>
73
-
74
- </div>
75
- <div class="calibration-tools container-fluid" *ngIf="preview">
76
- <h1>{{'Validation' | translate}}</h1>
77
- <div class="action">
78
- <button type="button" class="btn btn-outline-primary rounded-pill" (click)="onSave()">{{'Validate' |
79
- translate}}</button>
80
- <button type="button" class="btn btn-outline-primary rounded-pill" (click)="onReset()">{{'Reset' |
81
- translate}}</button>
82
- <button type="button" class="btn btn-outline-primary rounded-pill" (click)="onCancel()">{{'Cancel' |
83
- translate}}</button>
84
-
85
- </div>
86
- </div>
87
-
88
-
89
- <div class="calibration-tools container-fluid" *ngIf="loading">
90
- <h3>{{"Waiting for Matterport" | translate}}...</h3>
91
- <div class="d-flex justify-content-center">
92
- <div class="spinner-border" role="status">
93
- <span class="visually-hidden">Loading...</span>
94
- </div>
95
- </div>
96
-
97
- </div>
98
- </div>
@@ -1,136 +0,0 @@
1
- .button-visit {
2
- display: none;
3
- height: 30px;
4
- width: 30px;
5
- position: absolute;
6
- background: url("https://api.iconify.design/mdi:map-marker-check.svg?color=red&height=30")
7
- no-repeat scroll 0 0 transparent;
8
- border: none;
9
- }
10
-
11
- #button-visit-left {
12
- left: 350px;
13
- top: 550px;
14
- }
15
-
16
- #button-visit-right {
17
- left: 500px;
18
- top: 600px;
19
- }
20
-
21
- #rowCanvas {
22
- display: flex;
23
- }
24
-
25
- #canvasDiv {
26
- height: 100%;
27
- width: 100%;
28
- position: relative;
29
- }
30
-
31
- #canvas {
32
- width: 100%;
33
- height: 100%;
34
- opacity: 0.5;
35
- }
36
-
37
- #viewer-frame {
38
- top: 0;
39
- position: absolute;
40
- width: 100%;
41
- height: 100%;
42
- // pointer-events: none;
43
- }
44
-
45
- .calibration-tools {
46
- margin-left: 20px;
47
- width: 400px;
48
- background-color: white;
49
- z-index: 11;
50
- border: 1px solid var(--smarterplan-primary);
51
- padding: 7px;
52
- }
53
-
54
- .form-range {
55
- width: 100%;
56
- }
57
-
58
- .tool {
59
- margin-top: 20px;
60
- .legend {
61
- justify-content: space-between;
62
- position: relative;
63
- margin-bottom: 5px;
64
- }
65
- .legend-title {
66
- font-size: 1.2rem;
67
- color: var(--smarterplan-primary);
68
- margin: auto;
69
- width: 100%;
70
- font-weight: bold;
71
- display: flex;
72
- justify-content: center;
73
- }
74
- .legend-bar-indicator {
75
- width: 15% !important;
76
- }
77
- .label-legend {
78
- color: var(--smarterplan-primary);
79
- font-size: 1.1rem;
80
- max-width: 55%;
81
- }
82
- .tool-checkbox-container {
83
- display: flex;
84
- flex-direction: column;
85
- .tool-checkbox-subcontainer {
86
- display: flex;
87
- }
88
- }
89
- }
90
-
91
- .blur {
92
- width: 150px;
93
- height: 52px;
94
- position: absolute;
95
- background-color: #1e2023;
96
- bottom: 0;
97
- }
98
-
99
- .symmetry {
100
- padding: 5px;
101
- border: solid 2px;
102
- border-radius: 10px;
103
- color: var(--smarterplan-primary);
104
- margin: 25px 10px;
105
- cursor: pointer;
106
- }
107
-
108
- .symmetry:hover {
109
- color: var(--smarterplan-primary);
110
- }
111
-
112
- .symmetry-row {
113
- justify-content: center;
114
- }
115
-
116
- .action {
117
- margin-top: 30px;
118
- display: flex;
119
- justify-content: space-evenly;
120
- }
121
-
122
- h1 {
123
- color: var(--smarterplan-primary);
124
- text-align: center;
125
- margin-bottom: 20px;
126
- }
127
-
128
- h3 {
129
- color: var(--smarterplan-primary);
130
- text-align: center;
131
- margin-bottom: 10px;
132
- }
133
-
134
- .btn-outline-primary.disabled {
135
- background-color: var(--smarterplan-orange) !important;
136
- }
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { CalibrationComponent } from './calibration.component';
4
-
5
- describe('CalibrationComponent', () => {
6
- let component: CalibrationComponent;
7
- let fixture: ComponentFixture<CalibrationComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ CalibrationComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(CalibrationComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });