@smarterplan/ngx-smarterplan-core 1.4.26 → 1.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2022/lib/components/checkbox-slider/checkbox-slider.component.mjs +33 -0
- package/esm2022/lib/components/csv-export/csv-export.component.mjs +3 -3
- package/esm2022/lib/components/inventory-runs/inventory-files.component.mjs +63 -63
- package/esm2022/lib/components/inventory-runs/inventory-launch.component.mjs +141 -0
- package/esm2022/lib/components/inventory-runs/inventory-runs.component.mjs +3 -3
- package/esm2022/lib/components/loader/loader.component.mjs +3 -3
- package/esm2022/lib/components/menu-bar/avatar/avatar.component.mjs +1 -1
- package/esm2022/lib/components/menu-bar/menu-bar.component.mjs +3 -3
- package/esm2022/lib/components/menu-bar/navigation-bar/navigation-bar.component.mjs +3 -3
- package/esm2022/lib/components/modal-switch-visit/modal-switch-visit.component.mjs +3 -3
- package/esm2022/lib/components/search-bar/search-bar.component.mjs +3 -3
- package/esm2022/lib/components/splat-viewer/splat-viewer.component.mjs +1 -1
- package/esm2022/lib/components/support-modal/support-modal.component.mjs +3 -3
- package/esm2022/lib/config.mjs +1 -1
- package/esm2022/lib/helpers.service.mjs +1 -1
- package/esm2022/lib/matterport-extensions/nest-thermostat/CanvasImage.mjs +1 -1
- package/esm2022/lib/matterport-extensions/nest-thermostat/CanvasRenderer.mjs +1 -1
- package/esm2022/lib/matterport-extensions/nest-thermostat/NestThermostat.mjs +1 -1
- package/esm2022/lib/matterport-extensions/nest-thermostat/PlaneRenderer.mjs +1 -1
- package/esm2022/lib/matterport-extensions/scene-component/SceneComponent.mjs +1 -1
- package/esm2022/lib/matterport-extensions/security-camera/SecurityCamera.mjs +22 -22
- package/esm2022/lib/matterport-extensions/tv-player/TvPlayer.mjs +1 -1
- package/esm2022/lib/matterport-extensions/view-frustum-mesh/ViewFrustumMesh.mjs +22 -22
- package/esm2022/lib/mattertagData.mjs +1 -1
- package/esm2022/lib/ngx-smarterplan-core.module.mjs +14 -4
- package/esm2022/lib/ngx-smarterplan-core.service.mjs +1 -1
- package/esm2022/lib/pipes/duration-to-string.pipe.mjs +1 -1
- package/esm2022/lib/pipes/format-date-number-to-digits.pipe.mjs +1 -1
- package/esm2022/lib/pipes/hashtag-from-id.pipe.mjs +1 -1
- package/esm2022/lib/pipes/safe-url.pipe.mjs +1 -1
- package/esm2022/lib/pipes/time-date-to-local-string.pipe.mjs +1 -1
- package/esm2022/lib/pipes/username-from-id.pipe.mjs +1 -1
- package/esm2022/lib/services/amplify-cache.service.mjs +1 -1
- package/esm2022/lib/services/base-tab.service.mjs +1 -1
- package/esm2022/lib/services/baseVisibility.service.mjs +1 -1
- package/esm2022/lib/services/content.service.mjs +1 -1
- package/esm2022/lib/services/filter.service.mjs +10 -3
- package/esm2022/lib/services/intervention.service.mjs +1 -1
- package/esm2022/lib/services/locale.service.mjs +1 -1
- package/esm2022/lib/services/matterport-import.service.mjs +1 -1
- package/esm2022/lib/services/matterport-measurement.service.mjs +1 -1
- package/esm2022/lib/services/matterport-navigation.service.mjs +1 -1
- package/esm2022/lib/services/matterport-object3d.service.mjs +1 -1
- package/esm2022/lib/services/matterport-pointer.service.mjs +6 -6
- package/esm2022/lib/services/matterport-tag-copy.service.mjs +1 -1
- package/esm2022/lib/services/matterport-tag.service.mjs +9 -2
- package/esm2022/lib/services/matterport.service.mjs +30 -26
- package/esm2022/lib/services/models/affectation.service.mjs +1 -1
- package/esm2022/lib/services/models/base-object.service.mjs +1 -1
- package/esm2022/lib/services/models/capture.service.mjs +1 -1
- package/esm2022/lib/services/models/comment.service.mjs +1 -1
- package/esm2022/lib/services/models/domain.service.mjs +1 -1
- package/esm2022/lib/services/models/equipment.service.mjs +22 -1
- package/esm2022/lib/services/models/event.service.mjs +1 -1
- package/esm2022/lib/services/models/feature.service.mjs +15 -1
- package/esm2022/lib/services/models/hashtag.service.mjs +1 -1
- package/esm2022/lib/services/models/inventory.service.mjs +3 -3
- package/esm2022/lib/services/models/layer.service.mjs +1 -1
- package/esm2022/lib/services/models/measurement.service.mjs +7 -1
- package/esm2022/lib/services/models/mission.service.mjs +1 -1
- package/esm2022/lib/services/models/navigation.service.mjs +1 -1
- package/esm2022/lib/services/models/node.service.mjs +1 -1
- package/esm2022/lib/services/models/object3D.service.mjs +1 -1
- package/esm2022/lib/services/models/operation.service.mjs +1 -1
- package/esm2022/lib/services/models/organisation.service.mjs +1 -1
- package/esm2022/lib/services/models/plan.service.mjs +1 -1
- package/esm2022/lib/services/models/poi.service.mjs +27 -27
- package/esm2022/lib/services/models/profile.service.mjs +1 -1
- package/esm2022/lib/services/models/property.service.mjs +1 -1
- package/esm2022/lib/services/models/space.service.mjs +1 -1
- package/esm2022/lib/services/models/template.service.mjs +1 -1
- package/esm2022/lib/services/models/ticket.service.mjs +6 -1
- package/esm2022/lib/services/models/visit.service.mjs +1 -1
- package/esm2022/lib/services/models/zone.service.mjs +1 -1
- package/esm2022/lib/services/navigator.service.mjs +1 -1
- package/esm2022/lib/services/obj-to-glb.mjs +1 -1
- package/esm2022/lib/services/s3.service.mjs +1 -1
- package/esm2022/lib/services/search.service.mjs +1 -1
- package/esm2022/lib/services/support.service.mjs +1 -1
- package/esm2022/lib/services/sweep-locator.service.mjs +1 -1
- package/esm2022/lib/services/tag.service.mjs +16 -16
- package/esm2022/lib/services/threejs-import.service.mjs +1 -1
- package/esm2022/lib/services/threejs.service.mjs +1 -1
- package/esm2022/lib/services/user.service.mjs +1 -1
- package/esm2022/lib/services/utils/matterport-framing.util.mjs +1 -1
- package/esm2022/lib/services/utils/matterport-transform.util.mjs +1 -1
- package/esm2022/lib/services/validators.service.mjs +1 -1
- package/esm2022/lib/services/viewer.service.mjs +23 -7
- package/esm2022/lib/services/zone-drawer.service.mjs +1 -1
- package/esm2022/lib/services/zoneChange.service.mjs +1 -1
- package/esm2022/lib/tokens/matterport-sdk-key.token.mjs +1 -1
- package/esm2022/lib/types.service.mjs +1 -1
- package/esm2022/lib/validators/email.directive.mjs +1 -1
- package/esm2022/lib/validators/no-empty.directive.mjs +1 -1
- package/esm2022/lib/validators/number.directive.mjs +1 -1
- package/esm2022/lib/validators/text.directive.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/smarterplan-ngx-smarterplan-core.mjs +453 -205
- package/fesm2022/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/lib/components/checkbox-slider/checkbox-slider.component.d.ts +16 -0
- package/lib/components/inventory-runs/inventory-launch.component.d.ts +55 -0
- package/lib/ngx-smarterplan-core.module.d.ts +9 -7
- package/lib/services/matterport-tag.service.d.ts +2 -0
- package/lib/services/models/equipment.service.d.ts +7 -0
- package/lib/services/models/feature.service.d.ts +5 -0
- package/lib/services/models/measurement.service.d.ts +2 -0
- package/lib/services/models/ticket.service.d.ts +2 -0
- package/lib/services/viewer.service.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/assets/viewers/splat/convert.html +11 -11
- package/src/assets/viewers/splat/index.html +90 -90
- package/src/assets/viewers/splat/webp.wasm +0 -0
- package/src/assets/vs-app.json +67 -67
|
@@ -775,30 +775,30 @@ class SecurityCamera extends SceneComponent {
|
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
function vertexShader$1() {
|
|
778
|
-
return `
|
|
779
|
-
uniform mat4 lightMatrix;
|
|
780
|
-
|
|
781
|
-
varying vec4 vLightCoords;
|
|
782
|
-
|
|
783
|
-
void main() {
|
|
784
|
-
// create a UV region [0,1] x [0,1] to represent what the lightMatrix "sees"
|
|
785
|
-
vLightCoords = lightMatrix * modelMatrix * vec4(position, 1.0);
|
|
786
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
787
|
-
}
|
|
778
|
+
return `
|
|
779
|
+
uniform mat4 lightMatrix;
|
|
780
|
+
|
|
781
|
+
varying vec4 vLightCoords;
|
|
782
|
+
|
|
783
|
+
void main() {
|
|
784
|
+
// create a UV region [0,1] x [0,1] to represent what the lightMatrix "sees"
|
|
785
|
+
vLightCoords = lightMatrix * modelMatrix * vec4(position, 1.0);
|
|
786
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
787
|
+
}
|
|
788
788
|
`;
|
|
789
789
|
}
|
|
790
790
|
function fragmentShader$1() {
|
|
791
|
-
return `
|
|
792
|
-
uniform vec3 color;
|
|
793
|
-
|
|
794
|
-
varying vec4 vLightCoords;
|
|
795
|
-
|
|
796
|
-
void main() {
|
|
797
|
-
vec2 lightUV = vLightCoords.xy / vLightCoords.w;
|
|
798
|
-
float inView = float(max(lightUV.x, lightUV.y) <= 1.0 && min(lightUV.x, lightUV.y) >= 0.0 && vLightCoords.z > 0.0);
|
|
799
|
-
|
|
800
|
-
gl_FragColor = vec4(color, min(inView, 0.2));
|
|
801
|
-
}
|
|
791
|
+
return `
|
|
792
|
+
uniform vec3 color;
|
|
793
|
+
|
|
794
|
+
varying vec4 vLightCoords;
|
|
795
|
+
|
|
796
|
+
void main() {
|
|
797
|
+
vec2 lightUV = vLightCoords.xy / vLightCoords.w;
|
|
798
|
+
float inView = float(max(lightUV.x, lightUV.y) <= 1.0 && min(lightUV.x, lightUV.y) >= 0.0 && vLightCoords.z > 0.0);
|
|
799
|
+
|
|
800
|
+
gl_FragColor = vec4(color, min(inView, 0.2));
|
|
801
|
+
}
|
|
802
802
|
`;
|
|
803
803
|
}
|
|
804
804
|
function updateHighlightUniforms$1(projector, uniforms) {
|
|
@@ -991,30 +991,30 @@ class ViewFrustumMesh extends SceneComponent {
|
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
function vertexShader() {
|
|
994
|
-
return `
|
|
995
|
-
uniform mat4 lightMatrix;
|
|
996
|
-
|
|
997
|
-
varying vec4 vLightCoords;
|
|
998
|
-
|
|
999
|
-
void main() {
|
|
1000
|
-
// create a UV region [0,1] x [0,1] to represent what the lightMatrix "sees"
|
|
1001
|
-
vLightCoords = lightMatrix * modelMatrix * vec4(position, 1.0);
|
|
1002
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
1003
|
-
}
|
|
994
|
+
return `
|
|
995
|
+
uniform mat4 lightMatrix;
|
|
996
|
+
|
|
997
|
+
varying vec4 vLightCoords;
|
|
998
|
+
|
|
999
|
+
void main() {
|
|
1000
|
+
// create a UV region [0,1] x [0,1] to represent what the lightMatrix "sees"
|
|
1001
|
+
vLightCoords = lightMatrix * modelMatrix * vec4(position, 1.0);
|
|
1002
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
1003
|
+
}
|
|
1004
1004
|
`;
|
|
1005
1005
|
}
|
|
1006
1006
|
function fragmentShader() {
|
|
1007
|
-
return `
|
|
1008
|
-
uniform vec3 color;
|
|
1009
|
-
|
|
1010
|
-
varying vec4 vLightCoords;
|
|
1011
|
-
|
|
1012
|
-
void main() {
|
|
1013
|
-
vec2 lightUV = vLightCoords.xy / vLightCoords.w;
|
|
1014
|
-
float inView = float(max(lightUV.x, lightUV.y) <= 1.0 && min(lightUV.x, lightUV.y) >= 0.0 && vLightCoords.z > 0.0);
|
|
1015
|
-
|
|
1016
|
-
gl_FragColor = vec4(color, min(inView, 0.2));
|
|
1017
|
-
}
|
|
1007
|
+
return `
|
|
1008
|
+
uniform vec3 color;
|
|
1009
|
+
|
|
1010
|
+
varying vec4 vLightCoords;
|
|
1011
|
+
|
|
1012
|
+
void main() {
|
|
1013
|
+
vec2 lightUV = vLightCoords.xy / vLightCoords.w;
|
|
1014
|
+
float inView = float(max(lightUV.x, lightUV.y) <= 1.0 && min(lightUV.x, lightUV.y) >= 0.0 && vLightCoords.z > 0.0);
|
|
1015
|
+
|
|
1016
|
+
gl_FragColor = vec4(color, min(inView, 0.2));
|
|
1017
|
+
}
|
|
1018
1018
|
`;
|
|
1019
1019
|
}
|
|
1020
1020
|
function updateHighlightUniforms(projector, uniforms) {
|
|
@@ -2242,32 +2242,32 @@ class PoiService {
|
|
|
2242
2242
|
if (!sweeps || sweeps.length === 0) {
|
|
2243
2243
|
return [];
|
|
2244
2244
|
}
|
|
2245
|
-
const queryStatement = `
|
|
2246
|
-
query ListPOISLight($filter: ModelPOIFilterInput, $limit: Int, $nextToken: String) {
|
|
2247
|
-
listPOIS(filter: $filter, limit: $limit, nextToken: $nextToken) {
|
|
2248
|
-
items {
|
|
2249
|
-
id
|
|
2250
|
-
coordinate
|
|
2251
|
-
specific
|
|
2252
|
-
private
|
|
2253
|
-
global
|
|
2254
|
-
type
|
|
2255
|
-
elementID
|
|
2256
|
-
level
|
|
2257
|
-
role
|
|
2258
|
-
category
|
|
2259
|
-
domainID
|
|
2260
|
-
metadata
|
|
2261
|
-
tagIcon
|
|
2262
|
-
tagDescription
|
|
2263
|
-
tagImageID
|
|
2264
|
-
matterportSweepID
|
|
2265
|
-
createdAt
|
|
2266
|
-
updatedAt
|
|
2267
|
-
}
|
|
2268
|
-
nextToken
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2245
|
+
const queryStatement = `
|
|
2246
|
+
query ListPOISLight($filter: ModelPOIFilterInput, $limit: Int, $nextToken: String) {
|
|
2247
|
+
listPOIS(filter: $filter, limit: $limit, nextToken: $nextToken) {
|
|
2248
|
+
items {
|
|
2249
|
+
id
|
|
2250
|
+
coordinate
|
|
2251
|
+
specific
|
|
2252
|
+
private
|
|
2253
|
+
global
|
|
2254
|
+
type
|
|
2255
|
+
elementID
|
|
2256
|
+
level
|
|
2257
|
+
role
|
|
2258
|
+
category
|
|
2259
|
+
domainID
|
|
2260
|
+
metadata
|
|
2261
|
+
tagIcon
|
|
2262
|
+
tagDescription
|
|
2263
|
+
tagImageID
|
|
2264
|
+
matterportSweepID
|
|
2265
|
+
createdAt
|
|
2266
|
+
updatedAt
|
|
2267
|
+
}
|
|
2268
|
+
nextToken
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
2271
|
`;
|
|
2272
2272
|
const CHUNK_SIZE = 50; // safe margin for an "or" filter expression's practical size
|
|
2273
2273
|
const chunks = [];
|
|
@@ -3135,11 +3135,11 @@ class MatterportPointerService {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
updateCursorDisplay(poseMatterport) {
|
|
3137
3137
|
if (this.textDisplayCursorPositionPanel && poseMatterport) {
|
|
3138
|
-
this.textDisplayCursorPositionPanel.innerHTML = `position:
|
|
3139
|
-
${pointToString(poseMatterport.position)}\n
|
|
3140
|
-
normal:
|
|
3141
|
-
${pointToString(poseMatterport.normal)}\n
|
|
3142
|
-
floorId:
|
|
3138
|
+
this.textDisplayCursorPositionPanel.innerHTML = `position:
|
|
3139
|
+
${pointToString(poseMatterport.position)}\n
|
|
3140
|
+
normal:
|
|
3141
|
+
${pointToString(poseMatterport.normal)}\n
|
|
3142
|
+
floorId:
|
|
3143
3143
|
${poseMatterport.floorId}`;
|
|
3144
3144
|
if (this.getCursorPositionButton) {
|
|
3145
3145
|
this.getCursorPositionButton.style.display = 'none';
|
|
@@ -4382,6 +4382,10 @@ class MatterportTagService {
|
|
|
4382
4382
|
getCachedTagIcon(tagId) {
|
|
4383
4383
|
return this.tagsCurrentIcon.get(tagId);
|
|
4384
4384
|
}
|
|
4385
|
+
/** Whether a tag can be opened, as updateTagsVisibilityForContext() last left it: yes until then. */
|
|
4386
|
+
isTagEnabled(tagId) {
|
|
4387
|
+
return this.tagsCurrentEnabled.get(tagId) ?? true;
|
|
4388
|
+
}
|
|
4385
4389
|
/** Applies an icon to a tag through its own module and remembers it on success. */
|
|
4386
4390
|
async editTagIcon(sdk, tagId, iconName) {
|
|
4387
4391
|
await this.getTagModule(sdk, tagId).editIcon(tagId, iconName);
|
|
@@ -4829,7 +4833,10 @@ class MatterportTagService {
|
|
|
4829
4833
|
mattertagData.setObject(object, poiType);
|
|
4830
4834
|
}
|
|
4831
4835
|
await setTagIconAndOpacity(mattertagID, mattertagData);
|
|
4832
|
-
|
|
4836
|
+
// Without an object (a placement just validated) there is nothing to show yet.
|
|
4837
|
+
if (object) {
|
|
4838
|
+
await injectHtmlInTag(poiType, object, mattertagID);
|
|
4839
|
+
}
|
|
4833
4840
|
}
|
|
4834
4841
|
/** Registers a custom texture and applies it to a tag, optionally adjusting opacity. */
|
|
4835
4842
|
async addNewIconAndSetForTag(sdk, mattertagID, iconPath, applyOpacity, opacity) {
|
|
@@ -5390,14 +5397,15 @@ class MatterportService {
|
|
|
5390
5397
|
console.warn('Cannot show details for tag', error);
|
|
5391
5398
|
}
|
|
5392
5399
|
};
|
|
5393
|
-
// Disable native Matterport actions
|
|
5400
|
+
// Disable native Matterport actions. A tag hidden on another floor stays closed.
|
|
5394
5401
|
const disableNativeActions = (sid) => {
|
|
5395
5402
|
if (!this.sdk || sid === this.mattertagToFollow)
|
|
5396
5403
|
return; // ignore when we are in positioning mode
|
|
5397
5404
|
try {
|
|
5398
5405
|
const tagModule = this.matterportTagService.getTagModule(this.sdk, sid);
|
|
5399
5406
|
if (tagModule?.allowAction) {
|
|
5400
|
-
|
|
5407
|
+
const enabled = this.matterportTagService.isTagEnabled(sid);
|
|
5408
|
+
tagModule.allowAction(sid, { opening: enabled, navigating: enabled, docking: false });
|
|
5401
5409
|
}
|
|
5402
5410
|
}
|
|
5403
5411
|
catch (e) {
|
|
@@ -5415,7 +5423,13 @@ class MatterportService {
|
|
|
5415
5423
|
await this.matterportTagService.ensureSharedTagLayer(this.sdk);
|
|
5416
5424
|
this.initViews();
|
|
5417
5425
|
this.sdk.Camera.pose.subscribe((pose) => {
|
|
5426
|
+
// The pose changes on every frame the camera moves, while which tags show only
|
|
5427
|
+
// changes with the sweep (modes, floors and rooms have their own subscriptions):
|
|
5428
|
+
// going through every tag on each frame made models with many tags lag.
|
|
5429
|
+
const sweepChanged = pose?.sweep !== this.poseCamera?.sweep;
|
|
5418
5430
|
this.poseCamera = pose;
|
|
5431
|
+
if (!sweepChanged)
|
|
5432
|
+
return;
|
|
5419
5433
|
this.matterportTagService.updateTagsVisibilityForContext(this.sdk, this.sweepCollection, this.navigationService.currentCameraMode, this.mattertagToFollow, this.navigationService.currentFloorSequence, this.navigationService.currentRooms);
|
|
5420
5434
|
});
|
|
5421
5435
|
setTimeout(() => {
|
|
@@ -5424,17 +5438,15 @@ class MatterportService {
|
|
|
5424
5438
|
if (this.interactionMode === ViewerInteractions.DEFAULT) {
|
|
5425
5439
|
this.navigationService.action_toolbox_inside_view(this.sdk);
|
|
5426
5440
|
}
|
|
5441
|
+
// Once per tag, when it appears. Not on every update: the SDK keeps each allowAction
|
|
5442
|
+
// in the tags' layer for good (it replays them on a change of view), and sending one
|
|
5443
|
+
// for every tag whenever any tag changed piled up tens of thousands of them in models
|
|
5444
|
+
// with many tags, which lagged even once loaded.
|
|
5427
5445
|
if (this.sdk.Tag && this.sdk.Tag.data) {
|
|
5428
5446
|
this.sdk.Tag.data.subscribe({
|
|
5429
5447
|
onAdded: (sid) => {
|
|
5430
5448
|
disableNativeActions(sid);
|
|
5431
5449
|
},
|
|
5432
|
-
onUpdated: (sid) => {
|
|
5433
|
-
disableNativeActions(sid);
|
|
5434
|
-
},
|
|
5435
|
-
onCollectionUpdated: (collection) => {
|
|
5436
|
-
Object.keys(collection).forEach((sid) => disableNativeActions(sid));
|
|
5437
|
-
}
|
|
5438
5450
|
});
|
|
5439
5451
|
}
|
|
5440
5452
|
resolve(true);
|
|
@@ -5843,22 +5855,22 @@ class MatterportService {
|
|
|
5843
5855
|
);
|
|
5844
5856
|
}*/
|
|
5845
5857
|
addCustomCss() {
|
|
5846
|
-
const css = `
|
|
5847
|
-
.footer-ui,
|
|
5848
|
-
.showcase-footer,
|
|
5849
|
-
.mp-nova-btn-group,
|
|
5850
|
-
.footer-divider,
|
|
5851
|
-
.logo-link,
|
|
5852
|
-
.footer-logo,
|
|
5853
|
-
.bottom-ui,
|
|
5854
|
-
img.logo-image,
|
|
5855
|
-
img[class^="logo-image"],
|
|
5856
|
-
img[class*=" logo-image"],
|
|
5857
|
-
[data-testid="showcase-footer"] {
|
|
5858
|
-
opacity: 0 !important;
|
|
5859
|
-
visibility: hidden !important;
|
|
5860
|
-
pointer-events: none !important;
|
|
5861
|
-
}
|
|
5858
|
+
const css = `
|
|
5859
|
+
.footer-ui,
|
|
5860
|
+
.showcase-footer,
|
|
5861
|
+
.mp-nova-btn-group,
|
|
5862
|
+
.footer-divider,
|
|
5863
|
+
.logo-link,
|
|
5864
|
+
.footer-logo,
|
|
5865
|
+
.bottom-ui,
|
|
5866
|
+
img.logo-image,
|
|
5867
|
+
img[class^="logo-image"],
|
|
5868
|
+
img[class*=" logo-image"],
|
|
5869
|
+
[data-testid="showcase-footer"] {
|
|
5870
|
+
opacity: 0 !important;
|
|
5871
|
+
visibility: hidden !important;
|
|
5872
|
+
pointer-events: none !important;
|
|
5873
|
+
}
|
|
5862
5874
|
`;
|
|
5863
5875
|
// 1st method: Via Scene SDK
|
|
5864
5876
|
if (this.sdk?.Scene?.addStyle) {
|
|
@@ -5979,7 +5991,6 @@ class MatterportService {
|
|
|
5979
5991
|
mattertagData.setSweepID(this.navigationService.resolveSweepUuid(this.poseCamera.sweep));
|
|
5980
5992
|
mattertagData.setRotation(this.poseCamera.rotation);
|
|
5981
5993
|
mattertagData.setObject(element, poiType);
|
|
5982
|
-
this.mattertagToFollow = await this.addMattertagToViewer(mattertagData);
|
|
5983
5994
|
this.setInteractionMode(ViewerInteractions.POSITIONING);
|
|
5984
5995
|
await this.addCursorMattertag(mattertagData);
|
|
5985
5996
|
}
|
|
@@ -10622,16 +10633,31 @@ class ViewerService {
|
|
|
10622
10633
|
await new Promise((resolve) => setTimeout(resolve));
|
|
10623
10634
|
}
|
|
10624
10635
|
// Newly created tags have no opacity/allowAction applied yet (only set by
|
|
10625
|
-
// updateTagsVisibilityForContext, which runs on Mode/Sweep/Floor/Room
|
|
10626
|
-
//
|
|
10636
|
+
// updateTagsVisibilityForContext, which runs on Mode/Sweep/Floor/Room events and
|
|
10637
|
+
// when the camera changes sweep). If this batch loaded after those fired, the tags stay in whatever
|
|
10627
10638
|
// default state the SDK gave them until something else nudges a refresh.
|
|
10628
10639
|
if (this.checkMode('Matterport')) {
|
|
10629
10640
|
this.matterportService.refreshTagsVisibility();
|
|
10630
10641
|
}
|
|
10631
10642
|
}
|
|
10643
|
+
/** Type of a POI recorded without one, deduced from the object it belongs to. */
|
|
10644
|
+
poiTypeFromObject(object) {
|
|
10645
|
+
switch (object?.__typename) {
|
|
10646
|
+
case 'Equipment':
|
|
10647
|
+
return PoiType.EQUIPMENT;
|
|
10648
|
+
case 'Ticket':
|
|
10649
|
+
return PoiType.TICKET;
|
|
10650
|
+
case 'Comment':
|
|
10651
|
+
return PoiType.MEASURE;
|
|
10652
|
+
case 'Feature':
|
|
10653
|
+
return object.type === FeatureType.DESK ? PoiType.DESK : PoiType.DATA;
|
|
10654
|
+
default:
|
|
10655
|
+
return null;
|
|
10656
|
+
}
|
|
10657
|
+
}
|
|
10632
10658
|
async actionAddObjectFromPOI(object, poi) {
|
|
10633
10659
|
if (this.checkMode('Matterport')) {
|
|
10634
|
-
return this.matterportService.createMattertagFromPOI(poi.type, object, poi);
|
|
10660
|
+
return this.matterportService.createMattertagFromPOI(poi.type ?? this.poiTypeFromObject(object), object, poi);
|
|
10635
10661
|
}
|
|
10636
10662
|
if (this.checkMode('threejs')) {
|
|
10637
10663
|
return this.addThreeJsTagFromPOI(object, poi);
|
|
@@ -11198,8 +11224,9 @@ class ViewerService {
|
|
|
11198
11224
|
};
|
|
11199
11225
|
const updatedPoi = await this.poiService.updatePoi(poiInput);
|
|
11200
11226
|
tagData.setPoi(updatedPoi);
|
|
11201
|
-
|
|
11202
|
-
await this.matterportService.
|
|
11227
|
+
const poiType = poi.type ?? tagData.getType();
|
|
11228
|
+
await this.matterportService.setObjectAndPoiInTag(lastTag, element, poiType, updatedPoi);
|
|
11229
|
+
await this.matterportService.injectHtmlInTag(poiType, element, lastTag);
|
|
11203
11230
|
await this.matterportService.setTagIconAndOpacity(lastTag, tagData);
|
|
11204
11231
|
this.matterportService.goToTag(lastTag);
|
|
11205
11232
|
return Promise.resolve(updatedPoi);
|
|
@@ -11576,11 +11603,11 @@ class ModalSwitchVisitComponent {
|
|
|
11576
11603
|
});
|
|
11577
11604
|
}
|
|
11578
11605
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalSwitchVisitComponent, deps: [{ token: i1$2.NgbActiveModal }, { token: i1.Router }, { token: ViewerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11579
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalSwitchVisitComponent, selector: "lib-modal-switch-visit", inputs: { content: "content", model3D: "model3D", spaceID: "spaceID", dataToMove: "dataToMove" }, ngImport: i0, template: "<div class=\"modal-container\">\
|
|
11606
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: ModalSwitchVisitComponent, selector: "lib-modal-switch-visit", inputs: { content: "content", model3D: "model3D", spaceID: "spaceID", dataToMove: "dataToMove" }, ngImport: i0, template: "<div class=\"modal-container\">\n <p>{{content}}</p>\n <button class=\"btn btn-outline-primary rounded-pill\" (click)=\"switchVisit()\">{{'Yes, switch visit' | translate }}</button>\n <button class=\"btn btn-outline-primary rounded-pill\"(click)=\"activeModal.close()\">{{'No, stay here' | translate }}</button>\n</div>\n", styles: [".modal-container{margin:10px}button{margin-right:8px}\n"], dependencies: [{ kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
11580
11607
|
}
|
|
11581
11608
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalSwitchVisitComponent, decorators: [{
|
|
11582
11609
|
type: Component,
|
|
11583
|
-
args: [{ selector: 'lib-modal-switch-visit', template: "<div class=\"modal-container\">\
|
|
11610
|
+
args: [{ selector: 'lib-modal-switch-visit', template: "<div class=\"modal-container\">\n <p>{{content}}</p>\n <button class=\"btn btn-outline-primary rounded-pill\" (click)=\"switchVisit()\">{{'Yes, switch visit' | translate }}</button>\n <button class=\"btn btn-outline-primary rounded-pill\"(click)=\"activeModal.close()\">{{'No, stay here' | translate }}</button>\n</div>\n", styles: [".modal-container{margin:10px}button{margin-right:8px}\n"] }]
|
|
11584
11611
|
}], ctorParameters: () => [{ type: i1$2.NgbActiveModal }, { type: i1.Router }, { type: ViewerService }], propDecorators: { content: [{
|
|
11585
11612
|
type: Input
|
|
11586
11613
|
}], model3D: [{
|
|
@@ -12201,11 +12228,11 @@ class CsvExportComponent {
|
|
|
12201
12228
|
link.remove();
|
|
12202
12229
|
}
|
|
12203
12230
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CsvExportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12204
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CsvExportComponent, selector: "lib-csv-export", inputs: { headers: "headers", rowsInput: "rowsInput", getRows: "getRows", title: "title", buttonLabel: "buttonLabel" }, ngImport: i0, template: "<span [style.cursor]=\"'pointer'\" (click)=\"onClickDownload()\" class=\"download-csv d-flex\">\
|
|
12231
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CsvExportComponent, selector: "lib-csv-export", inputs: { headers: "headers", rowsInput: "rowsInput", getRows: "getRows", title: "title", buttonLabel: "buttonLabel" }, ngImport: i0, template: "<span [style.cursor]=\"'pointer'\" (click)=\"onClickDownload()\" class=\"download-csv d-flex\">\n <span class=\"iconify\" [icIcon]=\"fileDownloadIcon\"></span>\n {{ buttonLabel | translate}}\n</span>\n", styles: [".download-csv{color:var(--smarterplan-primary)}\n"], dependencies: [{ kind: "directive", type: i1$3.IconDirective, selector: "ic-icon,[icIcon]", inputs: ["icIcon", "icon", "color", "inline", "box", "size", "width", "height", "align", "hFlip", "vFlip", "flip", "rotate"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
12205
12232
|
}
|
|
12206
12233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CsvExportComponent, decorators: [{
|
|
12207
12234
|
type: Component,
|
|
12208
|
-
args: [{ selector: 'lib-csv-export', template: "<span [style.cursor]=\"'pointer'\" (click)=\"onClickDownload()\" class=\"download-csv d-flex\">\
|
|
12235
|
+
args: [{ selector: 'lib-csv-export', template: "<span [style.cursor]=\"'pointer'\" (click)=\"onClickDownload()\" class=\"download-csv d-flex\">\n <span class=\"iconify\" [icIcon]=\"fileDownloadIcon\"></span>\n {{ buttonLabel | translate}}\n</span>\n", styles: [".download-csv{color:var(--smarterplan-primary)}\n"] }]
|
|
12209
12236
|
}], propDecorators: { headers: [{
|
|
12210
12237
|
type: Input
|
|
12211
12238
|
}], rowsInput: [{
|
|
@@ -12423,6 +12450,9 @@ class FilterService {
|
|
|
12423
12450
|
async filterObjectsForZone(objects, // TODO: remove any here..
|
|
12424
12451
|
zoneID = null, zone = null) {
|
|
12425
12452
|
const filteredObjects = [];
|
|
12453
|
+
// Each space's zones, fetched once for all its objects: looking up the zones of each
|
|
12454
|
+
// object fetched them all again, a request per object.
|
|
12455
|
+
const zonesPerSpace = new Map();
|
|
12426
12456
|
await Promise.all(objects.map(async (object) => {
|
|
12427
12457
|
const pois = object.pois;
|
|
12428
12458
|
if (pois) {
|
|
@@ -12453,8 +12483,12 @@ class FilterService {
|
|
|
12453
12483
|
}
|
|
12454
12484
|
}
|
|
12455
12485
|
}
|
|
12456
|
-
if (poi && !zone && zoneID) {
|
|
12457
|
-
|
|
12486
|
+
if (poi && !zone && zoneID && poi.matterportSweepID) {
|
|
12487
|
+
if (!zonesPerSpace.has(object.spaceID)) {
|
|
12488
|
+
zonesPerSpace.set(object.spaceID, this.zoneService.getZonesBySpace(object.spaceID));
|
|
12489
|
+
}
|
|
12490
|
+
const zones = (await zonesPerSpace.get(object.spaceID)).filter((zone_) => zone_.sweepIDs &&
|
|
12491
|
+
zone_.sweepIDs.includes(poi.matterportSweepID));
|
|
12458
12492
|
if (zones &&
|
|
12459
12493
|
zones.some((zone_) => zone_.id === zoneID ||
|
|
12460
12494
|
zone_.parentID === zoneID)) {
|
|
@@ -15019,6 +15053,8 @@ class TicketsService extends BaseObjectService {
|
|
|
15019
15053
|
space: [],
|
|
15020
15054
|
};
|
|
15021
15055
|
ticketTags = new BehaviorSubject(null);
|
|
15056
|
+
/** The space's tickets the user sees, whatever ticketTypeFilter hides, for a filter to count them. Null until known. */
|
|
15057
|
+
ticketsUnfiltered = new BehaviorSubject(null);
|
|
15022
15058
|
ticketsFiltered = [];
|
|
15023
15059
|
ticketsUpdated = new Subject();
|
|
15024
15060
|
currentSpaceID;
|
|
@@ -15095,6 +15131,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15095
15131
|
if (this.dateFilter && this.dateFilter[0] != "Invalid Date" && this.dateFilter[1] != "Invalid Date") {
|
|
15096
15132
|
ticketsFiltered = this.filterService.filterObjectsForDateRange(ticketsFiltered, this.dateFilter);
|
|
15097
15133
|
}
|
|
15134
|
+
this.ticketsUnfiltered.next(ticketsFiltered);
|
|
15098
15135
|
if (this.ticketTypeFilter) {
|
|
15099
15136
|
ticketsFiltered = ticketsFiltered.filter((ticket) => this.ticketTypeFilter.includes(ticket.type));
|
|
15100
15137
|
}
|
|
@@ -15484,6 +15521,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15484
15521
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
15485
15522
|
if (!this.currentSpaceID) {
|
|
15486
15523
|
this.ticketTags.next(null);
|
|
15524
|
+
this.ticketsUnfiltered.next(null);
|
|
15487
15525
|
this.ticketsUpdated.next({ space: [], zone: null });
|
|
15488
15526
|
this.ticketTypeFilter = null;
|
|
15489
15527
|
this.zoneIDFilter = null;
|
|
@@ -15503,6 +15541,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15503
15541
|
this.zoneIDFilter = null;
|
|
15504
15542
|
if (!spaceID) {
|
|
15505
15543
|
this.ticketTags.next(null);
|
|
15544
|
+
this.ticketsUnfiltered.next(null);
|
|
15506
15545
|
this.ticketsUpdated.next({ space: [], zone: null });
|
|
15507
15546
|
this.ticketTypeFilter = null;
|
|
15508
15547
|
return;
|
|
@@ -15563,6 +15602,11 @@ class EquipmentService extends BaseObjectService {
|
|
|
15563
15602
|
zonesMap: new Map(),
|
|
15564
15603
|
};
|
|
15565
15604
|
equipmentsTags = new BehaviorSubject(null);
|
|
15605
|
+
/**
|
|
15606
|
+
* The space's equipment the user sees, whatever equipmentDomainFilter hides: what a domain
|
|
15607
|
+
* filter has to offer, and how many of each. Null until they are known.
|
|
15608
|
+
*/
|
|
15609
|
+
equipmentsUnfiltered = new BehaviorSubject(null);
|
|
15566
15610
|
zoneIDFilter;
|
|
15567
15611
|
currentZone;
|
|
15568
15612
|
currentSpaceID;
|
|
@@ -15945,6 +15989,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
15945
15989
|
equip.documentationImageUrlSigned =
|
|
15946
15990
|
await getSignedImageUrlForEquipment(equip);
|
|
15947
15991
|
}));
|
|
15992
|
+
this.equipmentsUnfiltered.next(filteredEquips);
|
|
15948
15993
|
if (this.equipmentDomainFilter) {
|
|
15949
15994
|
filteredEquips = this.filterService.filterEquipmentsByDomainList(filteredEquips, this.equipmentDomainFilter);
|
|
15950
15995
|
}
|
|
@@ -15960,6 +16005,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
15960
16005
|
}); // for lateral menu
|
|
15961
16006
|
}
|
|
15962
16007
|
else {
|
|
16008
|
+
this.equipmentsUnfiltered.next([]);
|
|
15963
16009
|
if (this.zoneIDFilter) {
|
|
15964
16010
|
this.currentEquipments.zonesMap.set(this.zoneIDFilter, []);
|
|
15965
16011
|
}
|
|
@@ -16108,13 +16154,21 @@ class EquipmentService extends BaseObjectService {
|
|
|
16108
16154
|
this.currentEquipments.zonesMap.get(zone).splice(index, 1);
|
|
16109
16155
|
}
|
|
16110
16156
|
}
|
|
16157
|
+
this.updateUnfiltered((equips) => equips.filter((_equip) => _equip.id !== deletedEquipment.id));
|
|
16111
16158
|
this.equipmentsUpdated.next({
|
|
16112
16159
|
space: this.currentEquipments.space,
|
|
16113
16160
|
zone: this.currentEquipments.zonesMap.get(this.zoneIDFilter),
|
|
16114
16161
|
}); // for lateral menu
|
|
16115
16162
|
}
|
|
16163
|
+
/** Keeps equipmentsUnfiltered up to date with an equipment created, changed or deleted. */
|
|
16164
|
+
updateUnfiltered(change) {
|
|
16165
|
+
if (this.equipmentsUnfiltered.value) {
|
|
16166
|
+
this.equipmentsUnfiltered.next(change(this.equipmentsUnfiltered.value));
|
|
16167
|
+
}
|
|
16168
|
+
}
|
|
16116
16169
|
updateDueToCreate(createdEquip) {
|
|
16117
16170
|
this.currentEquipments.space.unshift(createdEquip);
|
|
16171
|
+
this.updateUnfiltered((equips) => [createdEquip, ...equips]);
|
|
16118
16172
|
// initEquips only records a zone's list when it has a zone or found equipments, so the first
|
|
16119
16173
|
// equipment of a space viewed without zones (Three.js) arrives with no list to join.
|
|
16120
16174
|
if (!this.currentEquipments.zonesMap.has(this.zoneIDFilter)) {
|
|
@@ -16129,6 +16183,9 @@ class EquipmentService extends BaseObjectService {
|
|
|
16129
16183
|
}); // for lateral menu
|
|
16130
16184
|
}
|
|
16131
16185
|
updateDueToEquipUpdated(updatedEquip) {
|
|
16186
|
+
this.updateUnfiltered((equips) => this.isArchived(updatedEquip)
|
|
16187
|
+
? equips.filter((_equip) => _equip.id !== updatedEquip.id)
|
|
16188
|
+
: equips.map((_equip) => (_equip.id === updatedEquip.id ? updatedEquip : _equip)));
|
|
16132
16189
|
const equip = this.currentEquipments.space.find((_equip) => _equip.id === updatedEquip.id);
|
|
16133
16190
|
if (equip) {
|
|
16134
16191
|
const index = this.currentEquipments.space.indexOf(equip);
|
|
@@ -16173,6 +16230,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16173
16230
|
if (!zone || !this.navigatorService.currentSpaceID) {
|
|
16174
16231
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
16175
16232
|
this.equipmentsTags.next(null);
|
|
16233
|
+
this.equipmentsUnfiltered.next(null);
|
|
16176
16234
|
this.equipmentsUpdated.next({ space: [], zone: null });
|
|
16177
16235
|
this.zoneIDFilter = null;
|
|
16178
16236
|
this.currentEquipments = {
|
|
@@ -16189,6 +16247,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16189
16247
|
}
|
|
16190
16248
|
else {
|
|
16191
16249
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
16250
|
+
this.equipmentsUnfiltered.next(null);
|
|
16192
16251
|
this.initEquips();
|
|
16193
16252
|
}
|
|
16194
16253
|
}
|
|
@@ -16206,6 +16265,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16206
16265
|
space: [],
|
|
16207
16266
|
zonesMap: new Map(),
|
|
16208
16267
|
};
|
|
16268
|
+
this.equipmentsUnfiltered.next(null);
|
|
16209
16269
|
if (!spaceID) {
|
|
16210
16270
|
this.equipmentsTags.next(null);
|
|
16211
16271
|
this.equipmentsUpdated.next({ space: [], zone: null });
|
|
@@ -16427,11 +16487,11 @@ class SearchBarComponent {
|
|
|
16427
16487
|
this.searchEvent.emit(results);
|
|
16428
16488
|
}
|
|
16429
16489
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchBarComponent, deps: [{ token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16430
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SearchBarComponent, selector: "lib-search-bar", inputs: { searchable: "searchable", objectType: "objectType" }, outputs: { searchEvent: "searchEvent" }, ngImport: i0, template: "<div class=\"col-md-8 searchbar\">\
|
|
16490
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SearchBarComponent, selector: "lib-search-bar", inputs: { searchable: "searchable", objectType: "objectType" }, outputs: { searchEvent: "searchEvent" }, ngImport: i0, template: "<div class=\"col-md-8 searchbar\">\n <div class=\"row depend\">\n <div class=\"col-md-5\">\n <input id=\"searchbar\" type=\"text\" class=\"form-control\" placeholder=\"keyword\" />\n </div>\n <div class=\"col-md-5\">\n <button class=\"btn btn-outline-primary rounded-pill\" (click)=\"onSubmit()\">{{ 'Search' |\n translate}}</button>\n </div>\n </div>\n</div>", styles: [".searchbar{margin-bottom:10px}\n"], dependencies: [{ kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
16431
16491
|
}
|
|
16432
16492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
16433
16493
|
type: Component,
|
|
16434
|
-
args: [{ selector: 'lib-search-bar', template: "<div class=\"col-md-8 searchbar\">\
|
|
16494
|
+
args: [{ selector: 'lib-search-bar', template: "<div class=\"col-md-8 searchbar\">\n <div class=\"row depend\">\n <div class=\"col-md-5\">\n <input id=\"searchbar\" type=\"text\" class=\"form-control\" placeholder=\"keyword\" />\n </div>\n <div class=\"col-md-5\">\n <button class=\"btn btn-outline-primary rounded-pill\" (click)=\"onSubmit()\">{{ 'Search' |\n translate}}</button>\n </div>\n </div>\n</div>", styles: [".searchbar{margin-bottom:10px}\n"] }]
|
|
16435
16495
|
}], ctorParameters: () => [{ type: SearchService }], propDecorators: { searchable: [{
|
|
16436
16496
|
type: Input
|
|
16437
16497
|
}], objectType: [{
|
|
@@ -16879,11 +16939,11 @@ class LoaderComponent {
|
|
|
16879
16939
|
document.documentElement.style.setProperty('--color', this.color);
|
|
16880
16940
|
}
|
|
16881
16941
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16882
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoaderComponent, selector: "lib-loader", inputs: { useLogo: "useLogo", color: "color" }, ngImport: i0, template: "<div class=\"sk-fading-circle\">\
|
|
16942
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: LoaderComponent, selector: "lib-loader", inputs: { useLogo: "useLogo", color: "color" }, ngImport: i0, template: "<div class=\"sk-fading-circle\">\n <img *ngIf=\"useLogo\" src=\"../../../../assets/icons/smarterplan.svg\">\n <div class=\"sk-circle1 sk-circle\"></div>\n <div class=\"sk-circle2 sk-circle\"></div>\n <div class=\"sk-circle3 sk-circle\"></div>\n <div class=\"sk-circle4 sk-circle\"></div>\n <div class=\"sk-circle5 sk-circle\"></div>\n <div class=\"sk-circle6 sk-circle\"></div>\n <div class=\"sk-circle7 sk-circle\"></div>\n <div class=\"sk-circle8 sk-circle\"></div>\n <div class=\"sk-circle9 sk-circle\"></div>\n <div class=\"sk-circle10 sk-circle\"></div>\n <div class=\"sk-circle11 sk-circle\"></div>\n <div class=\"sk-circle12 sk-circle\"></div>\n</div>\n", styles: [".sk-fading-circle{width:88px;height:88px;position:relative}.sk-fading-circle img{width:2rem;position:absolute;left:calc(50% - 16px);top:calc(50% - 16px)}.sk-fading-circle .sk-circle{width:100%;height:100%;position:absolute;left:0;top:0}.sk-fading-circle .sk-circle:before{content:\"\";display:block;margin:0 auto;width:15%;height:15%;background-color:var(--color);border-radius:100%;-webkit-animation:sk-circleFadeDelay 1.2s infinite ease-in-out both;animation:sk-circleFadeDelay 1.2s infinite ease-in-out both}.sk-fading-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-fading-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-fading-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-fading-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-fading-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-fading-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-fading-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-fading-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-fading-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-fading-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-fading-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-fading-circle .sk-circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-fading-circle .sk-circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-fading-circle .sk-circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-fading-circle .sk-circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-fading-circle .sk-circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-fading-circle .sk-circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-fading-circle .sk-circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-fading-circle .sk-circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-fading-circle .sk-circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-fading-circle .sk-circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-fading-circle .sk-circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-circleFadeDelay{0%,39%,to{opacity:0}40%{opacity:1}}@keyframes sk-circleFadeDelay{0%,39%,to{opacity:0}40%{opacity:1}}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
16883
16943
|
}
|
|
16884
16944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
16885
16945
|
type: Component,
|
|
16886
|
-
args: [{ selector: 'lib-loader', template: "<div class=\"sk-fading-circle\">\
|
|
16946
|
+
args: [{ selector: 'lib-loader', template: "<div class=\"sk-fading-circle\">\n <img *ngIf=\"useLogo\" src=\"../../../../assets/icons/smarterplan.svg\">\n <div class=\"sk-circle1 sk-circle\"></div>\n <div class=\"sk-circle2 sk-circle\"></div>\n <div class=\"sk-circle3 sk-circle\"></div>\n <div class=\"sk-circle4 sk-circle\"></div>\n <div class=\"sk-circle5 sk-circle\"></div>\n <div class=\"sk-circle6 sk-circle\"></div>\n <div class=\"sk-circle7 sk-circle\"></div>\n <div class=\"sk-circle8 sk-circle\"></div>\n <div class=\"sk-circle9 sk-circle\"></div>\n <div class=\"sk-circle10 sk-circle\"></div>\n <div class=\"sk-circle11 sk-circle\"></div>\n <div class=\"sk-circle12 sk-circle\"></div>\n</div>\n", styles: [".sk-fading-circle{width:88px;height:88px;position:relative}.sk-fading-circle img{width:2rem;position:absolute;left:calc(50% - 16px);top:calc(50% - 16px)}.sk-fading-circle .sk-circle{width:100%;height:100%;position:absolute;left:0;top:0}.sk-fading-circle .sk-circle:before{content:\"\";display:block;margin:0 auto;width:15%;height:15%;background-color:var(--color);border-radius:100%;-webkit-animation:sk-circleFadeDelay 1.2s infinite ease-in-out both;animation:sk-circleFadeDelay 1.2s infinite ease-in-out both}.sk-fading-circle .sk-circle2{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-fading-circle .sk-circle3{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-fading-circle .sk-circle4{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-fading-circle .sk-circle5{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-fading-circle .sk-circle6{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-fading-circle .sk-circle7{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-fading-circle .sk-circle8{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-fading-circle .sk-circle9{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-fading-circle .sk-circle10{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-fading-circle .sk-circle11{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-fading-circle .sk-circle12{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-fading-circle .sk-circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-fading-circle .sk-circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-fading-circle .sk-circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-fading-circle .sk-circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-fading-circle .sk-circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-fading-circle .sk-circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-fading-circle .sk-circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-fading-circle .sk-circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-fading-circle .sk-circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-fading-circle .sk-circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-fading-circle .sk-circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-circleFadeDelay{0%,39%,to{opacity:0}40%{opacity:1}}@keyframes sk-circleFadeDelay{0%,39%,to{opacity:0}40%{opacity:1}}\n"] }]
|
|
16887
16947
|
}], ctorParameters: () => [], propDecorators: { useLogo: [{
|
|
16888
16948
|
type: Input
|
|
16889
16949
|
}], color: [{
|
|
@@ -16941,11 +17001,11 @@ class SupportModalComponent {
|
|
|
16941
17001
|
}
|
|
16942
17002
|
}
|
|
16943
17003
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SupportModalComponent, deps: [{ token: SupportService }, { token: i1$2.NgbActiveModal }, { token: i3.UntypedFormBuilder }, { token: BaseUserService }, { token: ValidatorsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16944
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SupportModalComponent, selector: "app-support-modal", ngImport: i0, template: "<div class=\"modal-header\">\
|
|
17004
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: SupportModalComponent, selector: "app-support-modal", ngImport: i0, template: "<div class=\"modal-header\">\n <h5 class=\"modal-title\" translate=\"Help\"></h5>\n</div>\n<div class=\"modal-body\">\n <div class=\"support-loader-container\">\n <lib-loader *ngIf=\"loading\"></lib-loader>\n </div>\n <form (ngSubmit)=\"onSubmit()\" [formGroup]=\"supportForm\" style=\"margin-top:1rem;\" *ngIf=\"!loading && status==='new'\">\n <div>\n <label>{{'Title' | translate}} *</label>\n <div>\n <input type=\"text\" class=\"form-control\" formControlName=\"title\" data-testid=\"new-support-title\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['title'])}\"\n maxlength=\"255\">\n </div>\n <div class=\"invalid-feedback\">\n <span data-testid=\"new-support-title-invalid\" [translate]=\"validatorsService.getError(supportForm.controls['title'])\"\n *ngIf=\" validatorsService.isControlError(supportForm.controls['title'])\"></span>\n </div>\n </div>\n <div *ngIf=\"!currentUser\">\n <label>{{'Email' | translate}} *</label>\n <div>\n <input type=\"email\" class=\"form-control\" formControlName=\"email\" data-testid=\"new-support-email\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['email'])}\"\n maxlength=\"255\">\n </div>\n <div class=\"invalid-feedback\">\n <span data-testid=\"new-support-email-invalid\" [translate]=\"validatorsService.getError(supportForm.controls['email'])\"\n *ngIf=\" validatorsService.isControlError(supportForm.controls['email'])\"></span>\n </div>\n </div>\n <div>\n <label>{{'Description' | translate}} *</label>\n <div>\n <textarea formControlName=\"description\" class=\"form-control\"\n data-testid=\"new-support-description\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['description'])}\"></textarea>\n </div>\n <div class=\"invalid-feedback\" >\n <span data-testid=\"new-support-description-invalid\" [translate]=\" validatorsService.getError(supportForm.controls['description'])\"\n *ngIf=\"validatorsService.isControlError(supportForm.controls['description'])\"></span>\n </div>\n </div>\n </form>\n\n <div *ngIf=\"status ==='send'\" translate=\"Your request has been registered\" data-testid=\"new-support-send-info\">\n </div>\n <div *ngIf=\"status ==='error'\" translate=\"An error has occurred, please renew your request\"\n data-testid=\"new-support-error-info\">\n\n </div>\n</div>\n<div class=\"modal-footer\">\n <button type=\"button\" class=\"btn rounded-pill btn-museum\" data-dismiss=\"modal\" translate=\"Close\" (click)=\"onClose()\"\n data-testid=\"new-support-close-btn\"></button>\n <button *ngIf=\"!loading && status==='new'\" type=\"button\" class=\"btn rounded-pill btn-museum\" translate=\"Submit\"\n (click)=\"onSubmit()\" [disabled]=\"!supportForm.valid\" data-testid=\"new-support-submit-btn\"></button>\n</div>", styles: [".support-loader-container{width:88px;margin:auto}.invalid-feedback{height:16px}\n"], dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["useLogo", "color"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
16945
17005
|
}
|
|
16946
17006
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SupportModalComponent, decorators: [{
|
|
16947
17007
|
type: Component,
|
|
16948
|
-
args: [{ selector: 'app-support-modal', template: "<div class=\"modal-header\">\
|
|
17008
|
+
args: [{ selector: 'app-support-modal', template: "<div class=\"modal-header\">\n <h5 class=\"modal-title\" translate=\"Help\"></h5>\n</div>\n<div class=\"modal-body\">\n <div class=\"support-loader-container\">\n <lib-loader *ngIf=\"loading\"></lib-loader>\n </div>\n <form (ngSubmit)=\"onSubmit()\" [formGroup]=\"supportForm\" style=\"margin-top:1rem;\" *ngIf=\"!loading && status==='new'\">\n <div>\n <label>{{'Title' | translate}} *</label>\n <div>\n <input type=\"text\" class=\"form-control\" formControlName=\"title\" data-testid=\"new-support-title\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['title'])}\"\n maxlength=\"255\">\n </div>\n <div class=\"invalid-feedback\">\n <span data-testid=\"new-support-title-invalid\" [translate]=\"validatorsService.getError(supportForm.controls['title'])\"\n *ngIf=\" validatorsService.isControlError(supportForm.controls['title'])\"></span>\n </div>\n </div>\n <div *ngIf=\"!currentUser\">\n <label>{{'Email' | translate}} *</label>\n <div>\n <input type=\"email\" class=\"form-control\" formControlName=\"email\" data-testid=\"new-support-email\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['email'])}\"\n maxlength=\"255\">\n </div>\n <div class=\"invalid-feedback\">\n <span data-testid=\"new-support-email-invalid\" [translate]=\"validatorsService.getError(supportForm.controls['email'])\"\n *ngIf=\" validatorsService.isControlError(supportForm.controls['email'])\"></span>\n </div>\n </div>\n <div>\n <label>{{'Description' | translate}} *</label>\n <div>\n <textarea formControlName=\"description\" class=\"form-control\"\n data-testid=\"new-support-description\"\n [ngClass]=\"{'is-invalid' : validatorsService.isControlError(supportForm.controls['description'])}\"></textarea>\n </div>\n <div class=\"invalid-feedback\" >\n <span data-testid=\"new-support-description-invalid\" [translate]=\" validatorsService.getError(supportForm.controls['description'])\"\n *ngIf=\"validatorsService.isControlError(supportForm.controls['description'])\"></span>\n </div>\n </div>\n </form>\n\n <div *ngIf=\"status ==='send'\" translate=\"Your request has been registered\" data-testid=\"new-support-send-info\">\n </div>\n <div *ngIf=\"status ==='error'\" translate=\"An error has occurred, please renew your request\"\n data-testid=\"new-support-error-info\">\n\n </div>\n</div>\n<div class=\"modal-footer\">\n <button type=\"button\" class=\"btn rounded-pill btn-museum\" data-dismiss=\"modal\" translate=\"Close\" (click)=\"onClose()\"\n data-testid=\"new-support-close-btn\"></button>\n <button *ngIf=\"!loading && status==='new'\" type=\"button\" class=\"btn rounded-pill btn-museum\" translate=\"Submit\"\n (click)=\"onSubmit()\" [disabled]=\"!supportForm.valid\" data-testid=\"new-support-submit-btn\"></button>\n</div>", styles: [".support-loader-container{width:88px;margin:auto}.invalid-feedback{height:16px}\n"] }]
|
|
16949
17009
|
}], ctorParameters: () => [{ type: SupportService }, { type: i1$2.NgbActiveModal }, { type: i3.UntypedFormBuilder }, { type: BaseUserService }, { type: ValidatorsService }] });
|
|
16950
17010
|
|
|
16951
17011
|
class LocaleService {
|
|
@@ -17152,6 +17212,11 @@ class FeatureService extends BaseObjectService {
|
|
|
17152
17212
|
zone: [],
|
|
17153
17213
|
};
|
|
17154
17214
|
featureTags = new BehaviorSubject(null);
|
|
17215
|
+
/**
|
|
17216
|
+
* The space's info points and desks the user sees, whatever featureDomainFilter and
|
|
17217
|
+
* deskDomainFilter hide, for a filter to count them. Null until they are known.
|
|
17218
|
+
*/
|
|
17219
|
+
featuresUnfiltered = new BehaviorSubject(null);
|
|
17155
17220
|
featureFiltered = [];
|
|
17156
17221
|
updateDone = new Subject();
|
|
17157
17222
|
zoneIDFilter;
|
|
@@ -17180,6 +17245,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17180
17245
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
17181
17246
|
if (!this.currentSpaceID) {
|
|
17182
17247
|
this.featureTags.next(null);
|
|
17248
|
+
this.featuresUnfiltered.next(null);
|
|
17183
17249
|
this.featureUpdated.next({ space: [], zone: null });
|
|
17184
17250
|
this.zoneIDFilter = null;
|
|
17185
17251
|
}
|
|
@@ -17195,6 +17261,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17195
17261
|
this.zoneIDFilter = null;
|
|
17196
17262
|
if (!spaceID) {
|
|
17197
17263
|
this.featureTags.next(null);
|
|
17264
|
+
this.featuresUnfiltered.next(null);
|
|
17198
17265
|
this.featureUpdated.next({ space: [], zone: null });
|
|
17199
17266
|
}
|
|
17200
17267
|
else if (!this.userService.isMuseumUser(spaceID)) {
|
|
@@ -17263,6 +17330,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17263
17330
|
const featureList = await this.getFeaturesForSpace(this.currentSpaceID);
|
|
17264
17331
|
this.currentHashtags = await this.hashtagService.getHashtagsForSpace(this.currentSpaceID);
|
|
17265
17332
|
// console.log(this.currentHashtags);
|
|
17333
|
+
this.featuresUnfiltered.next(featureList);
|
|
17266
17334
|
if (featureList.length > 0) {
|
|
17267
17335
|
let filteredFeatures = [...featureList];
|
|
17268
17336
|
let filteredPointInterest = filteredFeatures.filter((feature) => feature.type !== FeatureType.DESK);
|
|
@@ -17508,6 +17576,9 @@ class FeatureService extends BaseObjectService {
|
|
|
17508
17576
|
});
|
|
17509
17577
|
}
|
|
17510
17578
|
async updateDueToCreate(feature) {
|
|
17579
|
+
if (this.featuresUnfiltered.value) {
|
|
17580
|
+
this.featuresUnfiltered.next([feature, ...this.featuresUnfiltered.value]);
|
|
17581
|
+
}
|
|
17511
17582
|
this.currentFeatures.space.unshift(feature);
|
|
17512
17583
|
this.currentFeatures.zone.unshift(feature);
|
|
17513
17584
|
this.featureUpdated.next({
|
|
@@ -17516,6 +17587,9 @@ class FeatureService extends BaseObjectService {
|
|
|
17516
17587
|
}); // for lateral menu
|
|
17517
17588
|
}
|
|
17518
17589
|
async updateDueToDelete(deletedFeature) {
|
|
17590
|
+
if (this.featuresUnfiltered.value) {
|
|
17591
|
+
this.featuresUnfiltered.next(this.featuresUnfiltered.value.filter((_feature) => _feature.id !== deletedFeature.id));
|
|
17592
|
+
}
|
|
17519
17593
|
const feature = this.currentFeatures.space.find((_feature) => _feature.id === deletedFeature.id);
|
|
17520
17594
|
if (feature) {
|
|
17521
17595
|
const index = this.currentFeatures.space.indexOf(feature);
|
|
@@ -17555,6 +17629,8 @@ class MeasurementService {
|
|
|
17555
17629
|
path = 'measurements/';
|
|
17556
17630
|
currentMeasurements = { space: [], zone: [] };
|
|
17557
17631
|
measurementsTags = new BehaviorSubject(null);
|
|
17632
|
+
/** The space's measurements the user sees, whatever measurementFilter hides, for a filter to count them. Null until known. */
|
|
17633
|
+
measurementsUnfiltered = new BehaviorSubject(null);
|
|
17558
17634
|
measurementsUpdated = new Subject();
|
|
17559
17635
|
currentSpaceID;
|
|
17560
17636
|
zoneIDFilter;
|
|
@@ -17581,6 +17657,7 @@ class MeasurementService {
|
|
|
17581
17657
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
17582
17658
|
if (!this.currentSpaceID) {
|
|
17583
17659
|
this.measurementsTags.next(null);
|
|
17660
|
+
this.measurementsUnfiltered.next(null);
|
|
17584
17661
|
this.measurementsUpdated.next({ space: [], zone: null });
|
|
17585
17662
|
this.measurementFilter = null;
|
|
17586
17663
|
this.zoneIDFilter = null;
|
|
@@ -17598,6 +17675,7 @@ class MeasurementService {
|
|
|
17598
17675
|
this.zoneIDFilter = null;
|
|
17599
17676
|
if (!spaceID) {
|
|
17600
17677
|
this.measurementsTags.next(null);
|
|
17678
|
+
this.measurementsUnfiltered.next(null);
|
|
17601
17679
|
this.measurementsUpdated.next({ space: [], zone: null });
|
|
17602
17680
|
this.measurementFilter = null;
|
|
17603
17681
|
return;
|
|
@@ -17625,6 +17703,7 @@ class MeasurementService {
|
|
|
17625
17703
|
if (this.dateFilter) {
|
|
17626
17704
|
measurements = this.filterService.filterMeasurementsForDateRange(measurements, this.dateFilter);
|
|
17627
17705
|
}
|
|
17706
|
+
this.measurementsUnfiltered.next(measurements);
|
|
17628
17707
|
if (this.measurementFilter) {
|
|
17629
17708
|
measurements = [];
|
|
17630
17709
|
}
|
|
@@ -17646,6 +17725,7 @@ class MeasurementService {
|
|
|
17646
17725
|
this.measurementsUpdated.next(this.currentMeasurements);
|
|
17647
17726
|
}
|
|
17648
17727
|
else {
|
|
17728
|
+
this.measurementsUnfiltered.next([]);
|
|
17649
17729
|
this.currentMeasurements.space = [];
|
|
17650
17730
|
this.currentMeasurements.zone = [];
|
|
17651
17731
|
this.measurementsUpdated.next({ space: [], zone: [] }); // for lateral menu
|
|
@@ -18386,11 +18466,11 @@ class NavigationBarComponent {
|
|
|
18386
18466
|
this.baseVisibilityService.isChangePositionVisible.next(false);
|
|
18387
18467
|
}
|
|
18388
18468
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationBarComponent, deps: [{ token: 'currentAwsKinesisAnalyticsService' }, { token: i1.Router }, { token: SpaceService }, { token: BaseUserService }, { token: ZoneService }, { token: VisitService }, { token: ViewerService }, { token: NavigatorService }, { token: ZoneChangeService }, { token: BaseVisibilityService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18389
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NavigationBarComponent, selector: "lib-navigation-bar", viewQueries: [{ propertyName: "navbarSelectMenu", first: true, predicate: ["navbarSelectMenu"], descendants: true }], ngImport: i0, template: "<nav class=\"navbar navbar-expand-md navbar-dark navbar-inverse second-nav\">\
|
|
18469
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: NavigationBarComponent, selector: "lib-navigation-bar", viewQueries: [{ propertyName: "navbarSelectMenu", first: true, predicate: ["navbarSelectMenu"], descendants: true }], ngImport: i0, template: "<nav class=\"navbar navbar-expand-md navbar-dark navbar-inverse second-nav\">\n <div class=\"d-flex w-100\">\n <div #navbarSelectMenu class=\"w-100\" id=\"nav-item-container-blue\">\n <div class=\"d-flex flex-column flex-md-row p-1 mt-2\">\n <select class=\"form-control flex-fill flex-lg-fill-unset location select-menu\"\n [(ngModel)]=\"selectedLocation\" (ngModelChange)=\"onLocationClick()\">\n <option [ngValue]=\"null\" selected>{{ 'Location' | translate }}</option>\n <option *ngFor=\"let loc of locations; index as index\" [ngValue]=\"loc\"> {{ loc.name }}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu\" (change)=\"onVisitClick($event)\"\n *ngIf=\"visitsPerSpace && visitsPerSpace.length > 1\">\n <option value=\"default\" selected disabled hidden>{{'Visit' | translate}}</option>\n <option *ngFor=\"let visit of visitsPerSpace; index as index\" value=\"{{index}}\">{{ visit.name}}\n </option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset floor select-menu\" [(ngModel)]=\"selectedFloor\"\n (ngModelChange)=\"onFloorClick()\">\n <option [ngValue]=\"null\" selected>{{'Floor' | translate}}</option>\n <option *ngFor=\"let floor of floorsPerSpace\" [ngValue]=\"floor\">{{ floor.name}}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu zone\" [(ngModel)]=\"selectedZone\"\n (ngModelChange)=\"onZoneClick()\">\n <option [ngValue]=\"null\" selected>{{'Zone' | translate}}</option>\n <option *ngFor=\"let zone of zonesPerFloor\" [ngValue]=\"zone\"><span\n *ngIf=\"zone.code_ref\">{{zone.code_ref}}_</span>{{zone.name}}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu\" [(ngModel)]=\"selectedChildZone\"\n *ngIf=\"childrenZones && childrenZones.length>0\" (ngModelChange)=\"onChildZoneClick()\">\n <option [ngValue]=\"null\" selected disabled>{{'Zone' | translate}}</option>\n <option *ngFor=\"let zone of childrenZones\" [ngValue]=\"zone\">{{ zone.name}}</option>\n </select>\n <button (click)=\"goTo()\"\n class=\"btn btn-outline-primary rounded-pill mx-2 w-md-fit-content h-md-fit-content align-self-md-center btn-3d d-none d-lg-block\"\n [disabled]=\"!selectedLocation || !selectedModel3d || !canGo()\">\n <i class=\"icon-go-to-3d d-inline-block\"></i> {{'3D visit' | translate}}\n </button>\n </div>\n <div class=\"row align-items-center justify-content-center ml-0 p-1\" *ngIf=\"showLocation()\">\n <p class=\"fw-bold lh-base align-middle text-center\">\n {{ showLocation() }}\n </p>\n </div>\n <div class=\"row align-items-center justify-content-center ml-0 p-1 d-block d-lg-none\">\n <button (click)=\"goTo()\"\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center btn-3d\"\n [disabled]=\"!selectedLocation || !selectedModel3d || !canGo()\">\n <i class=\"icon-go-to-3d d-inline-block\"></i> {{'3D visit' | translate}}\n </button>\n </div>\n </div>\n </div>\n</nav>", styles: [":host{position:sticky;top:0;height:123px}.navbar{z-index:200;padding:.4rem 1rem}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0}@media (min-width: 992px){.flex-lg-fill-unset{flex:unset!important}}.form-control{width:100%;min-width:80px;max-width:18%}.location{width:auto;max-width:35%}.floor,.zone{width:auto;max-width:30%}button{color:#fff;padding:5px 10px;font-size:1.1em}.navbar-toggler{margin-right:1em}.select-menu{max-width:inherit}.btn-3d .icon-go-to-3d{width:30px;height:30px;background:url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"utf-8\"?>%0A<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"%0A%09 viewBox=\"0 0 60 60\" style=\"enable-background:new 0 0 60 60;\" xml:space=\"preserve\">%0A<style type=\"text/css\">%0A%09.st0{fill:%23565656;}%0A<\\/style>%0A<g>%0A%09<path class=\"st0\" d=\"M43.9,32.1V17.7c0-0.4-0.2-0.7-0.5-0.9l-12.8-8c-0.2-0.1-0.4-0.2-0.6-0.2c-0.2,0-0.4,0.1-0.6,0.2l-12.8,8%0A%09%09c-0.3,0.2-0.5,0.5-0.5,0.9v14.4c0,0.4,0.2,0.7,0.5,0.9l12.8,8c0.3,0.2,0.8,0.2,1.1,0l12.8-8C43.7,32.8,43.9,32.5,43.9,32.1z%0A%09%09 M28.9,38.2l-10.7-6.7v-12l10.7,6.7V38.2z M30,24.4l-10.8-6.8L30,10.9l10.8,6.8L30,24.4z M41.8,31.5l-10.7,6.7v-12l10.7-6.7V31.5z\"%0A%09%09/>%0A%09<path class=\"st0\" d=\"M56.1,29.3l-10.3-6.8v2l1.4,1v0l0.8,0.5l0,0l7,4.8c0.3,0.2,0.4,0.5,0.4,0.8c0,0.3-0.2,0.6-0.4,0.8l-6.8,4.7%0A%09%09l0,0l-0.9,0.7v0l-2.9,2v0l-13.8,9.6c-0.3,0.2-0.8,0.2-1.1,0l-14.2-9.8l-2.6-1.8v0L5,32.4c-0.3-0.2-0.4-0.5-0.4-0.8%0A%09%09c0-0.3,0.2-0.6,0.4-0.8l0,0l7.3-5l0,0l0.5-0.3v0l1.4-1v-2L3.9,29.3c-0.8,0.5-1.2,1.4-1.2,2.4c0,0.9,0.5,1.8,1.2,2.4l8.8,6.1v0%0A%09%09l4.5,3.1l11.2,7.7c1,0.7,2.3,0.7,3.3,0l13.7-9.5l1.9-1.3v0l8.8-6.1c0.8-0.5,1.2-1.4,1.2-2.4S56.9,29.8,56.1,29.3z\"/>%0A</g>%0A</svg>%0A');border:none;vertical-align:middle;fill:var(--smarterplan-primary)}.btn-3d:hover:enabled .icon-go-to-3d{background:url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"utf-8\"?>%0A<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"%0A%09 viewBox=\"0 0 60 60\" style=\"enable-background:new 0 0 60 60;\" xml:space=\"preserve\">%0A<style type=\"text/css\">%0A%09.st0{fill:%23FFFFFF;}%0A<\\/style>%0A<g>%0A%09<path class=\"st0\" d=\"M43.9,32.1V17.7c0-0.4-0.2-0.7-0.5-0.9l-12.8-8c-0.2-0.1-0.4-0.2-0.6-0.2c-0.2,0-0.4,0.1-0.6,0.2l-12.8,8%0A%09%09c-0.3,0.2-0.5,0.5-0.5,0.9v14.4c0,0.4,0.2,0.7,0.5,0.9l12.8,8c0.3,0.2,0.8,0.2,1.1,0l12.8-8C43.7,32.8,43.9,32.5,43.9,32.1z%0A%09%09 M28.9,38.2l-10.7-6.7v-12l10.7,6.7V38.2z M30,24.4l-10.8-6.8L30,10.9l10.8,6.8L30,24.4z M41.8,31.5l-10.7,6.7v-12l10.7-6.7V31.5z\"%0A%09%09/>%0A%09<path class=\"st0\" d=\"M56.1,29.3l-10.3-6.8v2l1.4,1v0l0.8,0.5l0,0l7,4.8c0.3,0.2,0.4,0.5,0.4,0.8c0,0.3-0.2,0.6-0.4,0.8l-6.8,4.7%0A%09%09l0,0l-0.9,0.7v0l-2.9,2v0l-13.8,9.6c-0.3,0.2-0.8,0.2-1.1,0l-14.2-9.8l-2.6-1.8v0L5,32.4c-0.3-0.2-0.4-0.5-0.4-0.8%0A%09%09c0-0.3,0.2-0.6,0.4-0.8l0,0l7.3-5l0,0l0.5-0.3v0l1.4-1v-2L3.9,29.3c-0.8,0.5-1.2,1.4-1.2,2.4c0,0.9,0.5,1.8,1.2,2.4l8.8,6.1v0%0A%09%09l4.5,3.1l11.2,7.7c1,0.7,2.3,0.7,3.3,0l13.7-9.5l1.9-1.3v0l8.8-6.1c0.8-0.5,1.2-1.4,1.2-2.4S56.9,29.8,56.1,29.3z\"/>%0A</g>%0A</svg>%0A')}.btn-3d[disabled]:hover .icon-go-to-3d{fill:var(--smarterplan-primary)}.outer_circle{background-color:#ebebeb;border-radius:50%;width:32px;height:32px;padding:1px}@media (max-width: 767px){.navbar{padding:.2rem .5rem}.form-control,.location,.floor,.zone{max-width:100%;margin-bottom:15px}input,select{margin-right:0;margin-bottom:15px}}\n"], dependencies: [{ kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
18390
18470
|
}
|
|
18391
18471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationBarComponent, decorators: [{
|
|
18392
18472
|
type: Component,
|
|
18393
|
-
args: [{ selector: 'lib-navigation-bar', template: "<nav class=\"navbar navbar-expand-md navbar-dark navbar-inverse second-nav\">\
|
|
18473
|
+
args: [{ selector: 'lib-navigation-bar', template: "<nav class=\"navbar navbar-expand-md navbar-dark navbar-inverse second-nav\">\n <div class=\"d-flex w-100\">\n <div #navbarSelectMenu class=\"w-100\" id=\"nav-item-container-blue\">\n <div class=\"d-flex flex-column flex-md-row p-1 mt-2\">\n <select class=\"form-control flex-fill flex-lg-fill-unset location select-menu\"\n [(ngModel)]=\"selectedLocation\" (ngModelChange)=\"onLocationClick()\">\n <option [ngValue]=\"null\" selected>{{ 'Location' | translate }}</option>\n <option *ngFor=\"let loc of locations; index as index\" [ngValue]=\"loc\"> {{ loc.name }}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu\" (change)=\"onVisitClick($event)\"\n *ngIf=\"visitsPerSpace && visitsPerSpace.length > 1\">\n <option value=\"default\" selected disabled hidden>{{'Visit' | translate}}</option>\n <option *ngFor=\"let visit of visitsPerSpace; index as index\" value=\"{{index}}\">{{ visit.name}}\n </option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset floor select-menu\" [(ngModel)]=\"selectedFloor\"\n (ngModelChange)=\"onFloorClick()\">\n <option [ngValue]=\"null\" selected>{{'Floor' | translate}}</option>\n <option *ngFor=\"let floor of floorsPerSpace\" [ngValue]=\"floor\">{{ floor.name}}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu zone\" [(ngModel)]=\"selectedZone\"\n (ngModelChange)=\"onZoneClick()\">\n <option [ngValue]=\"null\" selected>{{'Zone' | translate}}</option>\n <option *ngFor=\"let zone of zonesPerFloor\" [ngValue]=\"zone\"><span\n *ngIf=\"zone.code_ref\">{{zone.code_ref}}_</span>{{zone.name}}</option>\n </select>\n <select class=\"form-control flex-fill flex-lg-fill-unset select-menu\" [(ngModel)]=\"selectedChildZone\"\n *ngIf=\"childrenZones && childrenZones.length>0\" (ngModelChange)=\"onChildZoneClick()\">\n <option [ngValue]=\"null\" selected disabled>{{'Zone' | translate}}</option>\n <option *ngFor=\"let zone of childrenZones\" [ngValue]=\"zone\">{{ zone.name}}</option>\n </select>\n <button (click)=\"goTo()\"\n class=\"btn btn-outline-primary rounded-pill mx-2 w-md-fit-content h-md-fit-content align-self-md-center btn-3d d-none d-lg-block\"\n [disabled]=\"!selectedLocation || !selectedModel3d || !canGo()\">\n <i class=\"icon-go-to-3d d-inline-block\"></i> {{'3D visit' | translate}}\n </button>\n </div>\n <div class=\"row align-items-center justify-content-center ml-0 p-1\" *ngIf=\"showLocation()\">\n <p class=\"fw-bold lh-base align-middle text-center\">\n {{ showLocation() }}\n </p>\n </div>\n <div class=\"row align-items-center justify-content-center ml-0 p-1 d-block d-lg-none\">\n <button (click)=\"goTo()\"\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center btn-3d\"\n [disabled]=\"!selectedLocation || !selectedModel3d || !canGo()\">\n <i class=\"icon-go-to-3d d-inline-block\"></i> {{'3D visit' | translate}}\n </button>\n </div>\n </div>\n </div>\n</nav>", styles: [":host{position:sticky;top:0;height:123px}.navbar{z-index:200;padding:.4rem 1rem}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0}@media (min-width: 992px){.flex-lg-fill-unset{flex:unset!important}}.form-control{width:100%;min-width:80px;max-width:18%}.location{width:auto;max-width:35%}.floor,.zone{width:auto;max-width:30%}button{color:#fff;padding:5px 10px;font-size:1.1em}.navbar-toggler{margin-right:1em}.select-menu{max-width:inherit}.btn-3d .icon-go-to-3d{width:30px;height:30px;background:url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"utf-8\"?>%0A<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"%0A%09 viewBox=\"0 0 60 60\" style=\"enable-background:new 0 0 60 60;\" xml:space=\"preserve\">%0A<style type=\"text/css\">%0A%09.st0{fill:%23565656;}%0A<\\/style>%0A<g>%0A%09<path class=\"st0\" d=\"M43.9,32.1V17.7c0-0.4-0.2-0.7-0.5-0.9l-12.8-8c-0.2-0.1-0.4-0.2-0.6-0.2c-0.2,0-0.4,0.1-0.6,0.2l-12.8,8%0A%09%09c-0.3,0.2-0.5,0.5-0.5,0.9v14.4c0,0.4,0.2,0.7,0.5,0.9l12.8,8c0.3,0.2,0.8,0.2,1.1,0l12.8-8C43.7,32.8,43.9,32.5,43.9,32.1z%0A%09%09 M28.9,38.2l-10.7-6.7v-12l10.7,6.7V38.2z M30,24.4l-10.8-6.8L30,10.9l10.8,6.8L30,24.4z M41.8,31.5l-10.7,6.7v-12l10.7-6.7V31.5z\"%0A%09%09/>%0A%09<path class=\"st0\" d=\"M56.1,29.3l-10.3-6.8v2l1.4,1v0l0.8,0.5l0,0l7,4.8c0.3,0.2,0.4,0.5,0.4,0.8c0,0.3-0.2,0.6-0.4,0.8l-6.8,4.7%0A%09%09l0,0l-0.9,0.7v0l-2.9,2v0l-13.8,9.6c-0.3,0.2-0.8,0.2-1.1,0l-14.2-9.8l-2.6-1.8v0L5,32.4c-0.3-0.2-0.4-0.5-0.4-0.8%0A%09%09c0-0.3,0.2-0.6,0.4-0.8l0,0l7.3-5l0,0l0.5-0.3v0l1.4-1v-2L3.9,29.3c-0.8,0.5-1.2,1.4-1.2,2.4c0,0.9,0.5,1.8,1.2,2.4l8.8,6.1v0%0A%09%09l4.5,3.1l11.2,7.7c1,0.7,2.3,0.7,3.3,0l13.7-9.5l1.9-1.3v0l8.8-6.1c0.8-0.5,1.2-1.4,1.2-2.4S56.9,29.8,56.1,29.3z\"/>%0A</g>%0A</svg>%0A');border:none;vertical-align:middle;fill:var(--smarterplan-primary)}.btn-3d:hover:enabled .icon-go-to-3d{background:url('data:image/svg+xml,<?xml version=\"1.0\" encoding=\"utf-8\"?>%0A<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->%0A<svg version=\"1.1\" id=\"Calque_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"%0A%09 viewBox=\"0 0 60 60\" style=\"enable-background:new 0 0 60 60;\" xml:space=\"preserve\">%0A<style type=\"text/css\">%0A%09.st0{fill:%23FFFFFF;}%0A<\\/style>%0A<g>%0A%09<path class=\"st0\" d=\"M43.9,32.1V17.7c0-0.4-0.2-0.7-0.5-0.9l-12.8-8c-0.2-0.1-0.4-0.2-0.6-0.2c-0.2,0-0.4,0.1-0.6,0.2l-12.8,8%0A%09%09c-0.3,0.2-0.5,0.5-0.5,0.9v14.4c0,0.4,0.2,0.7,0.5,0.9l12.8,8c0.3,0.2,0.8,0.2,1.1,0l12.8-8C43.7,32.8,43.9,32.5,43.9,32.1z%0A%09%09 M28.9,38.2l-10.7-6.7v-12l10.7,6.7V38.2z M30,24.4l-10.8-6.8L30,10.9l10.8,6.8L30,24.4z M41.8,31.5l-10.7,6.7v-12l10.7-6.7V31.5z\"%0A%09%09/>%0A%09<path class=\"st0\" d=\"M56.1,29.3l-10.3-6.8v2l1.4,1v0l0.8,0.5l0,0l7,4.8c0.3,0.2,0.4,0.5,0.4,0.8c0,0.3-0.2,0.6-0.4,0.8l-6.8,4.7%0A%09%09l0,0l-0.9,0.7v0l-2.9,2v0l-13.8,9.6c-0.3,0.2-0.8,0.2-1.1,0l-14.2-9.8l-2.6-1.8v0L5,32.4c-0.3-0.2-0.4-0.5-0.4-0.8%0A%09%09c0-0.3,0.2-0.6,0.4-0.8l0,0l7.3-5l0,0l0.5-0.3v0l1.4-1v-2L3.9,29.3c-0.8,0.5-1.2,1.4-1.2,2.4c0,0.9,0.5,1.8,1.2,2.4l8.8,6.1v0%0A%09%09l4.5,3.1l11.2,7.7c1,0.7,2.3,0.7,3.3,0l13.7-9.5l1.9-1.3v0l8.8-6.1c0.8-0.5,1.2-1.4,1.2-2.4S56.9,29.8,56.1,29.3z\"/>%0A</g>%0A</svg>%0A')}.btn-3d[disabled]:hover .icon-go-to-3d{fill:var(--smarterplan-primary)}.outer_circle{background-color:#ebebeb;border-radius:50%;width:32px;height:32px;padding:1px}@media (max-width: 767px){.navbar{padding:.2rem .5rem}.form-control,.location,.floor,.zone{max-width:100%;margin-bottom:15px}input,select{margin-right:0;margin-bottom:15px}}\n"] }]
|
|
18394
18474
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
18395
18475
|
type: Inject,
|
|
18396
18476
|
args: ['currentAwsKinesisAnalyticsService']
|
|
@@ -18660,11 +18740,11 @@ class MenuBarComponent {
|
|
|
18660
18740
|
}
|
|
18661
18741
|
}
|
|
18662
18742
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MenuBarComponent, deps: [{ token: i1.Router }, { token: LocaleService }, { token: BaseUserService }, { token: NavigatorService }, { token: SupportService }, { token: BaseVisibilityService }, { token: i1$2.NgbCalendar }, { token: i1$2.NgbDateParserFormatter }, { token: FilterService }, { token: AmplifyCacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18663
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: MenuBarComponent, selector: "lib-menu-bar", inputs: { cacheName: "cacheName" }, ngImport: i0, template: "<div id=\"menu-bar\">\r\n <div *ngIf=\"!isVisitor\">\r\n <nav class=\"navbar navbar-expand-md navbar-light p-0\">\r\n <div class=\"container-fluid\" *ngIf=\"isVisible\">\r\n <div class=\"navbar-brand order-md-0\" [routerLink]=\"['/dashboard']\">\r\n <img alt=\"SmarterPlan\" src=\"../assets/images/logos/logo-immo.png\">\r\n </div>\r\n <div class=\"ms-auto nav-item dropdown profile_pic-container order-md-2\">\r\n <div class=\"profile_pic dropdown-toggle\" data-testid=\"dropdown-menu-button\" data-bs-toggle=\"dropdown\">\r\n <lib-avatar></lib-avatar>\r\n </div>\r\n <div class=\"dropdown-menu dropdown-menu-right\">\r\n <p *ngIf=\"user && mission\" class=\"p-2\">\r\n <span class=\"username\">{{ user.displayName }}</span><br />\r\n <span class=\"user-role\">{{ mission.role }}</span><br />\r\n <span class=\"org\">{{ mission.organisation ? mission.organisation.name : \"No organisation\" |\r\n translate}}</span>\r\n </p>\r\n <div class=\"dropdown-divider\"></div>\r\n <!-- <a class=\"dropdown-item\" routerLink=\"/debug\" *ngIf=\"isManager\">Debug</a> -->\r\n <a class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</a>\r\n <a class=\"dropdown-item\" routerLink=\"/dashboard\">{{'Data management' | translate}}</a>\r\n <a class=\"dropdown-item\" data-testid=\"user-management-btn\" routerLink=\"/admin\" *ngIf=\"isManager\">\r\n {{'Users management' | translate}}</a>\r\n <a class=\"dropdown-item\" routerLink=\"/profile\">\r\n {{'Profile' | translate}}</a>\r\n <div class=\"dropdown-divider\"></div>\r\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\r\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\r\n translate}}</button>\r\n </div>\r\n </div>\r\n <button class=\"navbar-toggler order-md-1\" (click)=\"navbarCollapse.toggle()\" type=\"button\"\r\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"navbar-collapse\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div class=\"navbar-collapse order-md-1\" #navbarCollapse=\"ngbCollapse\" [(ngbCollapse)]=\"isCollapsed\"\r\n [animation]=\"false\">\r\n <form\r\n class=\"form-inline m-0 mt-2 form-container d-flex justify-content-start align-items-start align-items-md-center flex-column flex-md-row flex-nowrap filters-menu-block\">\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\r\n <input class=\"form-control search-button m-1\" placeholder=\"keyword\" id=\"mainSearchBar\" type=\"text\">\r\n <button class=\"btn btn-outline-primary rounded-pill m-1 w-fit-content h-fit-content align-self-md-center\"\r\n (click)=\"onSubmit()\">{{'Search' |\r\n translate}}</button>\r\n </div>\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\r\n <div class=\"input-group date-selector m-1\">\r\n <input #dpFromDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpFromDate\"\r\n [value]=\"fromDate | formatDateNumberToDigits\"\r\n (input)=\"fromDate = validateInput(fromDate, dpFromDate.value)\">\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\r\n type=\"button\"></button>\r\n </div>\r\n </div>\r\n <input name=\"datepicker\" class=\"form-control visually-hidden\" ngbDatepicker #datepicker=\"ngbDatepicker\"\r\n [autoClose]=\"'outside'\" (dateSelect)=\"onDateSelection($event)\" [displayMonths]=\"2\" [dayTemplate]=\"t\"\r\n outsideDays=\"hidden\" [startDate]=\"fromDate || calendar.getToday()\" [container]=\"'body'\" tabindex=\"-1\">\r\n <ng-template #t let-date let-focused=\"focused\">\r\n <span class=\"custom-day\" [class.focused]=\"focused\" [class.range]=\"isRange(date)\"\r\n [class.faded]=\"isHovered(date) || isInside(date)\" (mouseenter)=\"hoveredDate = date\"\r\n (mouseleave)=\"hoveredDate = null\">\r\n {{ date.day }}\r\n </span>\r\n </ng-template>\r\n <span class=\"ms-1 p-2\">{{'to' | translate}}</span>\r\n <div class=\"input-group date-selector m-1\">\r\n <input #dpToDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpToDate\"\r\n [value]=\"toDate | formatDateNumberToDigits\" (input)=\"toDate = validateInput(toDate, dpToDate.value)\">\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\r\n type=\"button\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-1 justify-content-evenly\">\r\n <button\r\n class=\"btn btn-primary rounded-pill ms-1 w-25 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n type=\"button\" (click)=\"onApply()\" *ngIf=\"!isDateFilterApplied || dateChanged\">\r\n {{'Apply' | translate}}\r\n </button>\r\n <span\r\n class=\"appliedText ms-1 py-2 align-self-md-center pb-md-0 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n *ngIf=\"isDateFilterApplied && !dateChanged\">\r\n <span class=\"iconify\" [icIcon]=\"checkIcon\" width=\"15\" height=\"15\"></span>\r\n {{\"Applied\" | translate}}\r\n </span>\r\n <button\r\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n type=\"button\" (click)=\"onClearDates()\">{{'Clear'\r\n |\r\n translate}}</button>\r\n <div\r\n class=\"change-position-button align-self-end pb-2 align-self-md-center mx-2 pb-md-0 flex-nowrap w-25 w-md-fit-content h-md-fit-content\">\r\n <input type=\"checkbox\" class=\"btn-check\" id=\"btn-check-outlined\" autocomplete=\"off\">\r\n <label class=\"link-primary cursor-pointer text-decoration-underline\" (click)=\"onChangePositionClick()\"\r\n for=\"btn-check-outlined\">{{\r\n (isChangePositionVisible ? \"Close\" : \"Move to\") | translate }}</label>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </nav>\r\n <lib-navigation-bar *ngIf=\"isVisible && isChangePositionVisible\"></lib-navigation-bar>\r\n </div>\r\n <div *ngIf=\"isVisitor && isVisible\">\r\n <div class=\"visitor-div\">\r\n <div class=\"logo-container\" data-testid=\"dropdown-menu-button\">\r\n <img class=\"img-logo\" alt=\"SmarterPlanLogo\" src=\"../assets/images/logos/logo-reserve.png\">\r\n </div>\r\n <div class=\"avatar-container-menu\">\r\n <div class=\"profile_pic dropdown-toggle cursor-pointer\" data-bs-toggle=\"dropdown\">\r\n <lib-avatar></lib-avatar>\r\n </div>\r\n <div class=\"dropdown-menu dropdown-menu-right\">\r\n <button class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</button>\r\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\r\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\r\n translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: ["#menu-bar{position:sticky;top:0;z-index:200}.navbar{z-index:200}.navbar-brand{padding-top:5px;padding-bottom:5px;cursor:pointer}.navbar-brand img{height:70px}.profile_pic{border-radius:50%;height:45px;width:45px;margin:8px;border:.2px solid rgb(150,150,150)}.navbar-nav .profile-pic-container .dropdown-menu{position:absolute}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}.profile_pic.dropdown-toggle:after{display:none}.navbar-light{border-bottom:1px solid var(--smarterplan-primary);background-color:#fff}.navbar form{width:100%;margin:0;padding:0}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0;width:auto}button{padding:5px 10px}button:disabled,button[disabled]{color:#c04f4f}.navbar-toggler{margin-right:1em}.icon{height:40px;width:40px;color:var(--smarterplan-primary)}.search-button-container{width:auto;align-items:stretch;justify-items:start}.search-button-container .search-button{width:auto;border-radius:1rem!important}.visitor-div{background-color:var(--smarterplan-primary);height:60px;display:flex;justify-content:space-between}.profile_pic-container{margin-right:1em}.logo-container,.img-logo{height:100%}.change-position-button{margin-left:2rem}.change-position-button label,.change-position-button .btn-check:checked,.change-position-button .btn-check:focus,.change-position-button .btn-outline-primary,.change-position-button .btn{box-shadow:none!important;outline:0}.change-position-button label{border-radius:16px}.change-position-button .btn-check:checked+.btn{background-color:var(--smarterplan-primary);color:#fff!important}.filters-menu-block{width:auto}@media (min-width: 1200px){.navbar-brand img{height:100px}.profile_pic{height:60px;width:60px;margin:15px}}@media (min-width: 992px) and (max-width: 1199.98px){.navbar-brand img{height:80px}.profile_pic{height:50px;width:50px;margin:12px}}@media (min-width: 768px) and (max-width: 991.98px){.navbar-brand img{height:60px}.profile_pic{height:40px;width:40px;margin:10px}}@media (max-width: 767.98px){.navbar-brand img{height:50px}.profile_pic{height:30px;width:30px;margin:8px}.search-button-container,.filters-menu-block{width:100%}}.form-container{margin:.5rem 0}.navbar-collapse.show{display:flex;padding-bottom:.5rem}.hidden{width:0;margin:0;border:none;padding:0}.custom-day{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused{background-color:#e6e6e6}.custom-day.range,.custom-day:hover{background-color:var(--smarterplan-primary-lighter);color:#fff}.custom-day.faded{background-color:var(--smarterplan-primary-transparent)}.calendar{height:100%}.appliedText,.appliedText span{color:var(--smarterplan-primary)}@media (max-width: 767px){.form-inline{flex-direction:column}}.hidden{opacity:0}.date-selector{flex-wrap:nowrap}.date-selector input{min-width:80px;margin:0}@media (min-width: 768px){.w-md-fit-content{width:fit-content!important}.h-md-content{height:fit-content!important}}\n"], dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$2.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "directive", type: i1$2.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "contentTemplate", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "popperOptions", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { kind: "directive", type: i1$3.IconDirective, selector: "ic-icon,[icIcon]", inputs: ["icIcon", "icon", "color", "inline", "box", "size", "width", "height", "align", "hFlip", "vFlip", "flip", "rotate"] }, { kind: "component", type: AvatarComponent, selector: "lib-avatar", inputs: ["size", "userID"] }, { kind: "component", type: NavigationBarComponent, selector: "lib-navigation-bar" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: FormatDateNumberToDigitsPipe, name: "formatDateNumberToDigits" }] });
|
|
18743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: MenuBarComponent, selector: "lib-menu-bar", inputs: { cacheName: "cacheName" }, ngImport: i0, template: "<div id=\"menu-bar\">\n <div *ngIf=\"!isVisitor\">\n <nav class=\"navbar navbar-expand-md navbar-light p-0\">\n <div class=\"container-fluid\" *ngIf=\"isVisible\">\n <div class=\"navbar-brand order-md-0\" [routerLink]=\"['/dashboard']\">\n <img alt=\"SmarterPlan\" src=\"../assets/images/logos/logo-immo.png\">\n </div>\n <div class=\"ms-auto nav-item dropdown profile_pic-container order-md-2\">\n <div class=\"profile_pic dropdown-toggle\" data-testid=\"dropdown-menu-button\" data-bs-toggle=\"dropdown\">\n <lib-avatar></lib-avatar>\n </div>\n <div class=\"dropdown-menu dropdown-menu-right\">\n <p *ngIf=\"user && mission\" class=\"p-2\">\n <span class=\"username\">{{ user.displayName }}</span><br />\n <span class=\"user-role\">{{ mission.role }}</span><br />\n <span class=\"org\">{{ mission.organisation ? mission.organisation.name : \"No organisation\" |\n translate}}</span>\n </p>\n <div class=\"dropdown-divider\"></div>\n <!-- <a class=\"dropdown-item\" routerLink=\"/debug\" *ngIf=\"isManager\">Debug</a> -->\n <a class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</a>\n <a class=\"dropdown-item\" routerLink=\"/dashboard\">{{'Data management' | translate}}</a>\n <a class=\"dropdown-item\" data-testid=\"user-management-btn\" routerLink=\"/admin\" *ngIf=\"isManager\">\n {{'Users management' | translate}}</a>\n <a class=\"dropdown-item\" routerLink=\"/profile\">\n {{'Profile' | translate}}</a>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\n translate}}</button>\n </div>\n </div>\n <button class=\"navbar-toggler order-md-1\" (click)=\"navbarCollapse.toggle()\" type=\"button\"\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"navbar-collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"navbar-collapse order-md-1\" #navbarCollapse=\"ngbCollapse\" [(ngbCollapse)]=\"isCollapsed\"\n [animation]=\"false\">\n <form\n class=\"form-inline m-0 mt-2 form-container d-flex justify-content-start align-items-start align-items-md-center flex-column flex-md-row flex-nowrap filters-menu-block\">\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\n <input class=\"form-control search-button m-1\" placeholder=\"keyword\" id=\"mainSearchBar\" type=\"text\">\n <button class=\"btn btn-outline-primary rounded-pill m-1 w-fit-content h-fit-content align-self-md-center\"\n (click)=\"onSubmit()\">{{'Search' |\n translate}}</button>\n </div>\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\n <div class=\"input-group date-selector m-1\">\n <input #dpFromDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpFromDate\"\n [value]=\"fromDate | formatDateNumberToDigits\"\n (input)=\"fromDate = validateInput(fromDate, dpFromDate.value)\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\n type=\"button\"></button>\n </div>\n </div>\n <input name=\"datepicker\" class=\"form-control visually-hidden\" ngbDatepicker #datepicker=\"ngbDatepicker\"\n [autoClose]=\"'outside'\" (dateSelect)=\"onDateSelection($event)\" [displayMonths]=\"2\" [dayTemplate]=\"t\"\n outsideDays=\"hidden\" [startDate]=\"fromDate || calendar.getToday()\" [container]=\"'body'\" tabindex=\"-1\">\n <ng-template #t let-date let-focused=\"focused\">\n <span class=\"custom-day\" [class.focused]=\"focused\" [class.range]=\"isRange(date)\"\n [class.faded]=\"isHovered(date) || isInside(date)\" (mouseenter)=\"hoveredDate = date\"\n (mouseleave)=\"hoveredDate = null\">\n {{ date.day }}\n </span>\n </ng-template>\n <span class=\"ms-1 p-2\">{{'to' | translate}}</span>\n <div class=\"input-group date-selector m-1\">\n <input #dpToDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpToDate\"\n [value]=\"toDate | formatDateNumberToDigits\" (input)=\"toDate = validateInput(toDate, dpToDate.value)\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\n type=\"button\"></button>\n </div>\n </div>\n </div>\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-1 justify-content-evenly\">\n <button\n class=\"btn btn-primary rounded-pill ms-1 w-25 w-md-fit-content h-md-fit-content align-self-md-center\"\n type=\"button\" (click)=\"onApply()\" *ngIf=\"!isDateFilterApplied || dateChanged\">\n {{'Apply' | translate}}\n </button>\n <span\n class=\"appliedText ms-1 py-2 align-self-md-center pb-md-0 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\n *ngIf=\"isDateFilterApplied && !dateChanged\">\n <span class=\"iconify\" [icIcon]=\"checkIcon\" width=\"15\" height=\"15\"></span>\n {{\"Applied\" | translate}}\n </span>\n <button\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\n type=\"button\" (click)=\"onClearDates()\">{{'Clear'\n |\n translate}}</button>\n <div\n class=\"change-position-button align-self-end pb-2 align-self-md-center mx-2 pb-md-0 flex-nowrap w-25 w-md-fit-content h-md-fit-content\">\n <input type=\"checkbox\" class=\"btn-check\" id=\"btn-check-outlined\" autocomplete=\"off\">\n <label class=\"link-primary cursor-pointer text-decoration-underline\" (click)=\"onChangePositionClick()\"\n for=\"btn-check-outlined\">{{\n (isChangePositionVisible ? \"Close\" : \"Move to\") | translate }}</label>\n </div>\n </div>\n </form>\n </div>\n </div>\n </nav>\n <lib-navigation-bar *ngIf=\"isVisible && isChangePositionVisible\"></lib-navigation-bar>\n </div>\n <div *ngIf=\"isVisitor && isVisible\">\n <div class=\"visitor-div\">\n <div class=\"logo-container\" data-testid=\"dropdown-menu-button\">\n <img class=\"img-logo\" alt=\"SmarterPlanLogo\" src=\"../assets/images/logos/logo-reserve.png\">\n </div>\n <div class=\"avatar-container-menu\">\n <div class=\"profile_pic dropdown-toggle cursor-pointer\" data-bs-toggle=\"dropdown\">\n <lib-avatar></lib-avatar>\n </div>\n <div class=\"dropdown-menu dropdown-menu-right\">\n <button class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</button>\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\n translate}}</button>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: ["#menu-bar{position:sticky;top:0;z-index:200}.navbar{z-index:200}.navbar-brand{padding-top:5px;padding-bottom:5px;cursor:pointer}.navbar-brand img{height:70px}.profile_pic{border-radius:50%;height:45px;width:45px;margin:8px;border:.2px solid rgb(150,150,150)}.navbar-nav .profile-pic-container .dropdown-menu{position:absolute}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}.profile_pic.dropdown-toggle:after{display:none}.navbar-light{border-bottom:1px solid var(--smarterplan-primary);background-color:#fff}.navbar form{width:100%;margin:0;padding:0}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0;width:auto}button{padding:5px 10px}button:disabled,button[disabled]{color:#c04f4f}.navbar-toggler{margin-right:1em}.icon{height:40px;width:40px;color:var(--smarterplan-primary)}.search-button-container{width:auto;align-items:stretch;justify-items:start}.search-button-container .search-button{width:auto;border-radius:1rem!important}.visitor-div{background-color:var(--smarterplan-primary);height:60px;display:flex;justify-content:space-between}.profile_pic-container{margin-right:1em}.logo-container,.img-logo{height:100%}.change-position-button{margin-left:2rem}.change-position-button label,.change-position-button .btn-check:checked,.change-position-button .btn-check:focus,.change-position-button .btn-outline-primary,.change-position-button .btn{box-shadow:none!important;outline:0}.change-position-button label{border-radius:16px}.change-position-button .btn-check:checked+.btn{background-color:var(--smarterplan-primary);color:#fff!important}.filters-menu-block{width:auto}@media (min-width: 1200px){.navbar-brand img{height:100px}.profile_pic{height:60px;width:60px;margin:15px}}@media (min-width: 992px) and (max-width: 1199.98px){.navbar-brand img{height:80px}.profile_pic{height:50px;width:50px;margin:12px}}@media (min-width: 768px) and (max-width: 991.98px){.navbar-brand img{height:60px}.profile_pic{height:40px;width:40px;margin:10px}}@media (max-width: 767.98px){.navbar-brand img{height:50px}.profile_pic{height:30px;width:30px;margin:8px}.search-button-container,.filters-menu-block{width:100%}}.form-container{margin:.5rem 0}.navbar-collapse.show{display:flex;padding-bottom:.5rem}.hidden{width:0;margin:0;border:none;padding:0}.custom-day{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused{background-color:#e6e6e6}.custom-day.range,.custom-day:hover{background-color:var(--smarterplan-primary-lighter);color:#fff}.custom-day.faded{background-color:var(--smarterplan-primary-transparent)}.calendar{height:100%}.appliedText,.appliedText span{color:var(--smarterplan-primary)}@media (max-width: 767px){.form-inline{flex-direction:column}}.hidden{opacity:0}.date-selector{flex-wrap:nowrap}.date-selector input{min-width:80px;margin:0}@media (min-width: 768px){.w-md-fit-content{width:fit-content!important}.h-md-content{height:fit-content!important}}\n"], dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$2.NgbCollapse, selector: "[ngbCollapse]", inputs: ["animation", "ngbCollapse", "horizontal"], outputs: ["ngbCollapseChange", "shown", "hidden"], exportAs: ["ngbCollapse"] }, { kind: "directive", type: i1$2.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["autoClose", "contentTemplate", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "popperOptions", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays", "disabled"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { kind: "directive", type: i1$3.IconDirective, selector: "ic-icon,[icIcon]", inputs: ["icIcon", "icon", "color", "inline", "box", "size", "width", "height", "align", "hFlip", "vFlip", "flip", "rotate"] }, { kind: "component", type: AvatarComponent, selector: "lib-avatar", inputs: ["size", "userID"] }, { kind: "component", type: NavigationBarComponent, selector: "lib-navigation-bar" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: FormatDateNumberToDigitsPipe, name: "formatDateNumberToDigits" }] });
|
|
18664
18744
|
}
|
|
18665
18745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MenuBarComponent, decorators: [{
|
|
18666
18746
|
type: Component,
|
|
18667
|
-
args: [{ selector: 'lib-menu-bar', template: "<div id=\"menu-bar\">\r\n <div *ngIf=\"!isVisitor\">\r\n <nav class=\"navbar navbar-expand-md navbar-light p-0\">\r\n <div class=\"container-fluid\" *ngIf=\"isVisible\">\r\n <div class=\"navbar-brand order-md-0\" [routerLink]=\"['/dashboard']\">\r\n <img alt=\"SmarterPlan\" src=\"../assets/images/logos/logo-immo.png\">\r\n </div>\r\n <div class=\"ms-auto nav-item dropdown profile_pic-container order-md-2\">\r\n <div class=\"profile_pic dropdown-toggle\" data-testid=\"dropdown-menu-button\" data-bs-toggle=\"dropdown\">\r\n <lib-avatar></lib-avatar>\r\n </div>\r\n <div class=\"dropdown-menu dropdown-menu-right\">\r\n <p *ngIf=\"user && mission\" class=\"p-2\">\r\n <span class=\"username\">{{ user.displayName }}</span><br />\r\n <span class=\"user-role\">{{ mission.role }}</span><br />\r\n <span class=\"org\">{{ mission.organisation ? mission.organisation.name : \"No organisation\" |\r\n translate}}</span>\r\n </p>\r\n <div class=\"dropdown-divider\"></div>\r\n <!-- <a class=\"dropdown-item\" routerLink=\"/debug\" *ngIf=\"isManager\">Debug</a> -->\r\n <a class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</a>\r\n <a class=\"dropdown-item\" routerLink=\"/dashboard\">{{'Data management' | translate}}</a>\r\n <a class=\"dropdown-item\" data-testid=\"user-management-btn\" routerLink=\"/admin\" *ngIf=\"isManager\">\r\n {{'Users management' | translate}}</a>\r\n <a class=\"dropdown-item\" routerLink=\"/profile\">\r\n {{'Profile' | translate}}</a>\r\n <div class=\"dropdown-divider\"></div>\r\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\r\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\r\n translate}}</button>\r\n </div>\r\n </div>\r\n <button class=\"navbar-toggler order-md-1\" (click)=\"navbarCollapse.toggle()\" type=\"button\"\r\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"navbar-collapse\">\r\n <span class=\"navbar-toggler-icon\"></span>\r\n </button>\r\n <div class=\"navbar-collapse order-md-1\" #navbarCollapse=\"ngbCollapse\" [(ngbCollapse)]=\"isCollapsed\"\r\n [animation]=\"false\">\r\n <form\r\n class=\"form-inline m-0 mt-2 form-container d-flex justify-content-start align-items-start align-items-md-center flex-column flex-md-row flex-nowrap filters-menu-block\">\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\r\n <input class=\"form-control search-button m-1\" placeholder=\"keyword\" id=\"mainSearchBar\" type=\"text\">\r\n <button class=\"btn btn-outline-primary rounded-pill m-1 w-fit-content h-fit-content align-self-md-center\"\r\n (click)=\"onSubmit()\">{{'Search' |\r\n translate}}</button>\r\n </div>\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\r\n <div class=\"input-group date-selector m-1\">\r\n <input #dpFromDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpFromDate\"\r\n [value]=\"fromDate | formatDateNumberToDigits\"\r\n (input)=\"fromDate = validateInput(fromDate, dpFromDate.value)\">\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\r\n type=\"button\"></button>\r\n </div>\r\n </div>\r\n <input name=\"datepicker\" class=\"form-control visually-hidden\" ngbDatepicker #datepicker=\"ngbDatepicker\"\r\n [autoClose]=\"'outside'\" (dateSelect)=\"onDateSelection($event)\" [displayMonths]=\"2\" [dayTemplate]=\"t\"\r\n outsideDays=\"hidden\" [startDate]=\"fromDate || calendar.getToday()\" [container]=\"'body'\" tabindex=\"-1\">\r\n <ng-template #t let-date let-focused=\"focused\">\r\n <span class=\"custom-day\" [class.focused]=\"focused\" [class.range]=\"isRange(date)\"\r\n [class.faded]=\"isHovered(date) || isInside(date)\" (mouseenter)=\"hoveredDate = date\"\r\n (mouseleave)=\"hoveredDate = null\">\r\n {{ date.day }}\r\n </span>\r\n </ng-template>\r\n <span class=\"ms-1 p-2\">{{'to' | translate}}</span>\r\n <div class=\"input-group date-selector m-1\">\r\n <input #dpToDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpToDate\"\r\n [value]=\"toDate | formatDateNumberToDigits\" (input)=\"toDate = validateInput(toDate, dpToDate.value)\">\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\r\n type=\"button\"></button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-1 justify-content-evenly\">\r\n <button\r\n class=\"btn btn-primary rounded-pill ms-1 w-25 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n type=\"button\" (click)=\"onApply()\" *ngIf=\"!isDateFilterApplied || dateChanged\">\r\n {{'Apply' | translate}}\r\n </button>\r\n <span\r\n class=\"appliedText ms-1 py-2 align-self-md-center pb-md-0 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n *ngIf=\"isDateFilterApplied && !dateChanged\">\r\n <span class=\"iconify\" [icIcon]=\"checkIcon\" width=\"15\" height=\"15\"></span>\r\n {{\"Applied\" | translate}}\r\n </span>\r\n <button\r\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\r\n type=\"button\" (click)=\"onClearDates()\">{{'Clear'\r\n |\r\n translate}}</button>\r\n <div\r\n class=\"change-position-button align-self-end pb-2 align-self-md-center mx-2 pb-md-0 flex-nowrap w-25 w-md-fit-content h-md-fit-content\">\r\n <input type=\"checkbox\" class=\"btn-check\" id=\"btn-check-outlined\" autocomplete=\"off\">\r\n <label class=\"link-primary cursor-pointer text-decoration-underline\" (click)=\"onChangePositionClick()\"\r\n for=\"btn-check-outlined\">{{\r\n (isChangePositionVisible ? \"Close\" : \"Move to\") | translate }}</label>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </nav>\r\n <lib-navigation-bar *ngIf=\"isVisible && isChangePositionVisible\"></lib-navigation-bar>\r\n </div>\r\n <div *ngIf=\"isVisitor && isVisible\">\r\n <div class=\"visitor-div\">\r\n <div class=\"logo-container\" data-testid=\"dropdown-menu-button\">\r\n <img class=\"img-logo\" alt=\"SmarterPlanLogo\" src=\"../assets/images/logos/logo-reserve.png\">\r\n </div>\r\n <div class=\"avatar-container-menu\">\r\n <div class=\"profile_pic dropdown-toggle cursor-pointer\" data-bs-toggle=\"dropdown\">\r\n <lib-avatar></lib-avatar>\r\n </div>\r\n <div class=\"dropdown-menu dropdown-menu-right\">\r\n <button class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</button>\r\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\r\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\r\n translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: ["#menu-bar{position:sticky;top:0;z-index:200}.navbar{z-index:200}.navbar-brand{padding-top:5px;padding-bottom:5px;cursor:pointer}.navbar-brand img{height:70px}.profile_pic{border-radius:50%;height:45px;width:45px;margin:8px;border:.2px solid rgb(150,150,150)}.navbar-nav .profile-pic-container .dropdown-menu{position:absolute}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}.profile_pic.dropdown-toggle:after{display:none}.navbar-light{border-bottom:1px solid var(--smarterplan-primary);background-color:#fff}.navbar form{width:100%;margin:0;padding:0}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0;width:auto}button{padding:5px 10px}button:disabled,button[disabled]{color:#c04f4f}.navbar-toggler{margin-right:1em}.icon{height:40px;width:40px;color:var(--smarterplan-primary)}.search-button-container{width:auto;align-items:stretch;justify-items:start}.search-button-container .search-button{width:auto;border-radius:1rem!important}.visitor-div{background-color:var(--smarterplan-primary);height:60px;display:flex;justify-content:space-between}.profile_pic-container{margin-right:1em}.logo-container,.img-logo{height:100%}.change-position-button{margin-left:2rem}.change-position-button label,.change-position-button .btn-check:checked,.change-position-button .btn-check:focus,.change-position-button .btn-outline-primary,.change-position-button .btn{box-shadow:none!important;outline:0}.change-position-button label{border-radius:16px}.change-position-button .btn-check:checked+.btn{background-color:var(--smarterplan-primary);color:#fff!important}.filters-menu-block{width:auto}@media (min-width: 1200px){.navbar-brand img{height:100px}.profile_pic{height:60px;width:60px;margin:15px}}@media (min-width: 992px) and (max-width: 1199.98px){.navbar-brand img{height:80px}.profile_pic{height:50px;width:50px;margin:12px}}@media (min-width: 768px) and (max-width: 991.98px){.navbar-brand img{height:60px}.profile_pic{height:40px;width:40px;margin:10px}}@media (max-width: 767.98px){.navbar-brand img{height:50px}.profile_pic{height:30px;width:30px;margin:8px}.search-button-container,.filters-menu-block{width:100%}}.form-container{margin:.5rem 0}.navbar-collapse.show{display:flex;padding-bottom:.5rem}.hidden{width:0;margin:0;border:none;padding:0}.custom-day{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused{background-color:#e6e6e6}.custom-day.range,.custom-day:hover{background-color:var(--smarterplan-primary-lighter);color:#fff}.custom-day.faded{background-color:var(--smarterplan-primary-transparent)}.calendar{height:100%}.appliedText,.appliedText span{color:var(--smarterplan-primary)}@media (max-width: 767px){.form-inline{flex-direction:column}}.hidden{opacity:0}.date-selector{flex-wrap:nowrap}.date-selector input{min-width:80px;margin:0}@media (min-width: 768px){.w-md-fit-content{width:fit-content!important}.h-md-content{height:fit-content!important}}\n"] }]
|
|
18747
|
+
args: [{ selector: 'lib-menu-bar', template: "<div id=\"menu-bar\">\n <div *ngIf=\"!isVisitor\">\n <nav class=\"navbar navbar-expand-md navbar-light p-0\">\n <div class=\"container-fluid\" *ngIf=\"isVisible\">\n <div class=\"navbar-brand order-md-0\" [routerLink]=\"['/dashboard']\">\n <img alt=\"SmarterPlan\" src=\"../assets/images/logos/logo-immo.png\">\n </div>\n <div class=\"ms-auto nav-item dropdown profile_pic-container order-md-2\">\n <div class=\"profile_pic dropdown-toggle\" data-testid=\"dropdown-menu-button\" data-bs-toggle=\"dropdown\">\n <lib-avatar></lib-avatar>\n </div>\n <div class=\"dropdown-menu dropdown-menu-right\">\n <p *ngIf=\"user && mission\" class=\"p-2\">\n <span class=\"username\">{{ user.displayName }}</span><br />\n <span class=\"user-role\">{{ mission.role }}</span><br />\n <span class=\"org\">{{ mission.organisation ? mission.organisation.name : \"No organisation\" |\n translate}}</span>\n </p>\n <div class=\"dropdown-divider\"></div>\n <!-- <a class=\"dropdown-item\" routerLink=\"/debug\" *ngIf=\"isManager\">Debug</a> -->\n <a class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</a>\n <a class=\"dropdown-item\" routerLink=\"/dashboard\">{{'Data management' | translate}}</a>\n <a class=\"dropdown-item\" data-testid=\"user-management-btn\" routerLink=\"/admin\" *ngIf=\"isManager\">\n {{'Users management' | translate}}</a>\n <a class=\"dropdown-item\" routerLink=\"/profile\">\n {{'Profile' | translate}}</a>\n <div class=\"dropdown-divider\"></div>\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\n translate}}</button>\n </div>\n </div>\n <button class=\"navbar-toggler order-md-1\" (click)=\"navbarCollapse.toggle()\" type=\"button\"\n [attr.aria-expanded]=\"!isCollapsed\" aria-controls=\"navbar-collapse\">\n <span class=\"navbar-toggler-icon\"></span>\n </button>\n <div class=\"navbar-collapse order-md-1\" #navbarCollapse=\"ngbCollapse\" [(ngbCollapse)]=\"isCollapsed\"\n [animation]=\"false\">\n <form\n class=\"form-inline m-0 mt-2 form-container d-flex justify-content-start align-items-start align-items-md-center flex-column flex-md-row flex-nowrap filters-menu-block\">\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\n <input class=\"form-control search-button m-1\" placeholder=\"keyword\" id=\"mainSearchBar\" type=\"text\">\n <button class=\"btn btn-outline-primary rounded-pill m-1 w-fit-content h-fit-content align-self-md-center\"\n (click)=\"onSubmit()\">{{'Search' |\n translate}}</button>\n </div>\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-0\">\n <div class=\"input-group date-selector m-1\">\n <input #dpFromDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpFromDate\"\n [value]=\"fromDate | formatDateNumberToDigits\"\n (input)=\"fromDate = validateInput(fromDate, dpFromDate.value)\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\n type=\"button\"></button>\n </div>\n </div>\n <input name=\"datepicker\" class=\"form-control visually-hidden\" ngbDatepicker #datepicker=\"ngbDatepicker\"\n [autoClose]=\"'outside'\" (dateSelect)=\"onDateSelection($event)\" [displayMonths]=\"2\" [dayTemplate]=\"t\"\n outsideDays=\"hidden\" [startDate]=\"fromDate || calendar.getToday()\" [container]=\"'body'\" tabindex=\"-1\">\n <ng-template #t let-date let-focused=\"focused\">\n <span class=\"custom-day\" [class.focused]=\"focused\" [class.range]=\"isRange(date)\"\n [class.faded]=\"isHovered(date) || isInside(date)\" (mouseenter)=\"hoveredDate = date\"\n (mouseleave)=\"hoveredDate = null\">\n {{ date.day }}\n </span>\n </ng-template>\n <span class=\"ms-1 p-2\">{{'to' | translate}}</span>\n <div class=\"input-group date-selector m-1\">\n <input #dpToDate class=\"form-control\" placeholder=\"dd/MM/yyyy\" name=\"dpToDate\"\n [value]=\"toDate | formatDateNumberToDigits\" (input)=\"toDate = validateInput(toDate, dpToDate.value)\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary calendar\" (click)=\"datepicker.toggle()\"\n type=\"button\"></button>\n </div>\n </div>\n </div>\n <div class=\"input-group search-button-container d-flex flex-row flex-nowrap p-0 m-1 justify-content-evenly\">\n <button\n class=\"btn btn-primary rounded-pill ms-1 w-25 w-md-fit-content h-md-fit-content align-self-md-center\"\n type=\"button\" (click)=\"onApply()\" *ngIf=\"!isDateFilterApplied || dateChanged\">\n {{'Apply' | translate}}\n </button>\n <span\n class=\"appliedText ms-1 py-2 align-self-md-center pb-md-0 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\n *ngIf=\"isDateFilterApplied && !dateChanged\">\n <span class=\"iconify\" [icIcon]=\"checkIcon\" width=\"15\" height=\"15\"></span>\n {{\"Applied\" | translate}}\n </span>\n <button\n class=\"btn btn-outline-primary rounded-pill w-25 mx-2 w-md-fit-content h-md-fit-content align-self-md-center\"\n type=\"button\" (click)=\"onClearDates()\">{{'Clear'\n |\n translate}}</button>\n <div\n class=\"change-position-button align-self-end pb-2 align-self-md-center mx-2 pb-md-0 flex-nowrap w-25 w-md-fit-content h-md-fit-content\">\n <input type=\"checkbox\" class=\"btn-check\" id=\"btn-check-outlined\" autocomplete=\"off\">\n <label class=\"link-primary cursor-pointer text-decoration-underline\" (click)=\"onChangePositionClick()\"\n for=\"btn-check-outlined\">{{\n (isChangePositionVisible ? \"Close\" : \"Move to\") | translate }}</label>\n </div>\n </div>\n </form>\n </div>\n </div>\n </nav>\n <lib-navigation-bar *ngIf=\"isVisible && isChangePositionVisible\"></lib-navigation-bar>\n </div>\n <div *ngIf=\"isVisitor && isVisible\">\n <div class=\"visitor-div\">\n <div class=\"logo-container\" data-testid=\"dropdown-menu-button\">\n <img class=\"img-logo\" alt=\"SmarterPlanLogo\" src=\"../assets/images/logos/logo-reserve.png\">\n </div>\n <div class=\"avatar-container-menu\">\n <div class=\"profile_pic dropdown-toggle cursor-pointer\" data-bs-toggle=\"dropdown\">\n <lib-avatar></lib-avatar>\n </div>\n <div class=\"dropdown-menu dropdown-menu-right\">\n <button class=\"dropdown-item\" (click)=\"localeService.modal()\">{{'Language' | translate}}</button>\n <button class=\"dropdown-item\" (click)=\"openSupportForm()\">{{\"Help\" | translate}}</button>\n <button data-testid=\"logout-auth-btn\" class=\"dropdown-item\" (click)=\"signOut()\">{{\"Logout\" |\n translate}}</button>\n </div>\n </div>\n </div>\n </div>\n</div>", styles: ["#menu-bar{position:sticky;top:0;z-index:200}.navbar{z-index:200}.navbar-brand{padding-top:5px;padding-bottom:5px;cursor:pointer}.navbar-brand img{height:70px}.profile_pic{border-radius:50%;height:45px;width:45px;margin:8px;border:.2px solid rgb(150,150,150)}.navbar-nav .profile-pic-container .dropdown-menu{position:absolute}.navbar.second-nav{z-index:199;background-color:var(--smarterplan-primary)}.profile_pic.dropdown-toggle:after{display:none}.navbar-light{border-bottom:1px solid var(--smarterplan-primary);background-color:#fff}.navbar form{width:100%;margin:0;padding:0}input,select{margin-right:15px}.select{background:transparent;border:none;color:#fff;margin:6px 20px 0;width:auto}button{padding:5px 10px}button:disabled,button[disabled]{color:#c04f4f}.navbar-toggler{margin-right:1em}.icon{height:40px;width:40px;color:var(--smarterplan-primary)}.search-button-container{width:auto;align-items:stretch;justify-items:start}.search-button-container .search-button{width:auto;border-radius:1rem!important}.visitor-div{background-color:var(--smarterplan-primary);height:60px;display:flex;justify-content:space-between}.profile_pic-container{margin-right:1em}.logo-container,.img-logo{height:100%}.change-position-button{margin-left:2rem}.change-position-button label,.change-position-button .btn-check:checked,.change-position-button .btn-check:focus,.change-position-button .btn-outline-primary,.change-position-button .btn{box-shadow:none!important;outline:0}.change-position-button label{border-radius:16px}.change-position-button .btn-check:checked+.btn{background-color:var(--smarterplan-primary);color:#fff!important}.filters-menu-block{width:auto}@media (min-width: 1200px){.navbar-brand img{height:100px}.profile_pic{height:60px;width:60px;margin:15px}}@media (min-width: 992px) and (max-width: 1199.98px){.navbar-brand img{height:80px}.profile_pic{height:50px;width:50px;margin:12px}}@media (min-width: 768px) and (max-width: 991.98px){.navbar-brand img{height:60px}.profile_pic{height:40px;width:40px;margin:10px}}@media (max-width: 767.98px){.navbar-brand img{height:50px}.profile_pic{height:30px;width:30px;margin:8px}.search-button-container,.filters-menu-block{width:100%}}.form-container{margin:.5rem 0}.navbar-collapse.show{display:flex;padding-bottom:.5rem}.hidden{width:0;margin:0;border:none;padding:0}.custom-day{text-align:center;padding:.185rem .25rem;display:inline-block;height:2rem;width:2rem}.custom-day.focused{background-color:#e6e6e6}.custom-day.range,.custom-day:hover{background-color:var(--smarterplan-primary-lighter);color:#fff}.custom-day.faded{background-color:var(--smarterplan-primary-transparent)}.calendar{height:100%}.appliedText,.appliedText span{color:var(--smarterplan-primary)}@media (max-width: 767px){.form-inline{flex-direction:column}}.hidden{opacity:0}.date-selector{flex-wrap:nowrap}.date-selector input{min-width:80px;margin:0}@media (min-width: 768px){.w-md-fit-content{width:fit-content!important}.h-md-content{height:fit-content!important}}\n"] }]
|
|
18668
18748
|
}], ctorParameters: () => [{ type: i1.Router }, { type: LocaleService }, { type: BaseUserService }, { type: NavigatorService }, { type: SupportService }, { type: BaseVisibilityService }, { type: i1$2.NgbCalendar }, { type: i1$2.NgbDateParserFormatter }, { type: FilterService }, { type: AmplifyCacheService }], propDecorators: { cacheName: [{
|
|
18669
18749
|
type: Input
|
|
18670
18750
|
}] } });
|
|
@@ -19070,8 +19150,8 @@ class InventoryService {
|
|
|
19070
19150
|
}
|
|
19071
19151
|
/** The space's inventories, the latest first. */
|
|
19072
19152
|
async getRuns(spaceID) {
|
|
19073
|
-
const query = (fields) => `query InventoriesBySpace($spaceID: ID!, $limit: Int) {
|
|
19074
|
-
inventoriesBySpace(spaceID: $spaceID, limit: $limit) { items { ${fields} } }
|
|
19153
|
+
const query = (fields) => `query InventoriesBySpace($spaceID: ID!, $limit: Int) {
|
|
19154
|
+
inventoriesBySpace(spaceID: $spaceID, limit: $limit) { items { ${fields} } }
|
|
19075
19155
|
}`;
|
|
19076
19156
|
let response;
|
|
19077
19157
|
try {
|
|
@@ -19397,11 +19477,11 @@ class InventoryRunsComponent {
|
|
|
19397
19477
|
}
|
|
19398
19478
|
}
|
|
19399
19479
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryRunsComponent, deps: [{ token: InventoryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19400
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: InventoryRunsComponent, selector: "lib-inventory-runs", inputs: { spaceID: "spaceID", nodeIDs: "nodeIDs", labels: "labels" }, outputs: { runningChange: "runningChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"inventory-runs\" *ngIf=\"runs.length\">\
|
|
19480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: InventoryRunsComponent, selector: "lib-inventory-runs", inputs: { spaceID: "spaceID", nodeIDs: "nodeIDs", labels: "labels" }, outputs: { runningChange: "runningChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"inventory-runs\" *ngIf=\"runs.length\">\n <h5>{{'Last inventory' | translate}}</h5>\n <div class=\"inventory-run\" *ngFor=\"let run of runs\">\n <div class=\"inventory-run-header\">\n <span class=\"no-lowercase\">{{ labels?.[run.nodeID] ?? run.nodeID }}</span>\n <span class=\"inventory-run-date\">{{ run.createdAt | date:'short' }}</span>\n </div>\n <ng-container [ngSwitch]=\"inventoryService.state(run)\">\n <div *ngSwitchCase=\"'waiting'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Waiting for the analysis to start\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'running'\">\n <ng-container [ngSwitch]=\"run.step\">\n <div *ngSwitchCase=\"'DOWNLOADING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Downloading the files of the visit\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'PLACING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Placing the objects in 3D\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'SAVING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Saving the equipment\u2026' | translate}}\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"panoramas; context: { $implicit: run }\"></ng-container>\n <span class=\"inventory-run-detail\" *ngIf=\"minutesLeft(run) as minutes\">\n {{'About' | translate}} {{ minutes }} {{'min left' | translate}}\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"inventoryService.canCancel(run)\">\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill mt-2\"\n *ngIf=\"confirmingCancel !== run.id\" (click)=\"confirmingCancel = run.id\">\n {{'Cancel the inventory' | translate}}</button>\n <div class=\"inventory-run-confirm\" *ngIf=\"confirmingCancel === run.id\">\n <span>{{'It stops after the panorama it is on. Those analysed are kept, to resume from there.' | translate}}</span>\n <div class=\"mt-1\">\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill me-2\"\n [disabled]=\"busy === run.id\" (click)=\"onConfirmCancel(run)\">\n {{'Yes, cancel' | translate}}</button>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill\"\n [disabled]=\"busy === run.id\" (click)=\"confirmingCancel = null\">\n {{'No, go on' | translate}}</button>\n </div>\n </div>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'cancelling'\" class=\"text-warning\">\n <ng-container *ngTemplateOutlet=\"panoramas; context: { $implicit: run }\"></ng-container>\n {{'Cancelling: it stops after the panorama it is on\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'cancelled'\">\n <span class=\"text-warning\">{{'Cancelled' | translate}}.</span>\n <span class=\"inventory-run-detail\" *ngIf=\"run.imagesTotal\">\n {{'Panoramas analysed' | translate}}: {{ run.imagesDone ?? 0 }} / {{ run.imagesTotal }}\n </span>\n </div>\n <div *ngSwitchCase=\"'done'\" class=\"text-success\">\n <!-- How many, when the task says so: the image before inventory_job.py does not. -->\n <ng-container *ngIf=\"run.objectsFound != null; else doneOnly\">\n {{'Done' | translate}}: {{ run.objectsFound }} {{'equipment added' | translate}}.\n </ng-container>\n <ng-template #doneOnly>{{'Done' | translate}}.</ng-template>\n <span class=\"inventory-run-detail\">{{'Reload the page to see them in the list.' | translate}}</span>\n </div>\n <div *ngSwitchCase=\"'failed'\" class=\"text-danger\">\n {{ inventoryService.failure(run) | translate }}\n <span class=\"inventory-run-detail\" *ngIf=\"run.errorMessage\">{{ run.errorMessage }}</span>\n </div>\n <div *ngSwitchCase=\"'stale'\" class=\"text-warning\">\n {{'No news since' | translate}} {{ run.updatedAt | date:'short' }}:\n {{'the analysis has probably stopped.' | translate}}\n </div>\n </ng-container>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill mt-2\"\n *ngIf=\"inventoryService.canResume(run)\" [disabled]=\"busy === run.id\" (click)=\"onResume(run)\">\n {{'Resume from where it stopped' | translate}} ({{ run.imagesDone }} / {{ run.imagesTotal }})</button>\n </div>\n <div class=\"text-danger\" *ngIf=\"message\">{{ message | translate }}</div>\n</div>\n\n<!-- Something is being done, of which there is nothing to count. -->\n<ng-template #busyBar>\n <div class=\"progress mb-1\" role=\"progressbar\" aria-label=\"\u2026\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated\" style=\"width: 100%\"></div>\n </div>\n</ng-template>\n\n<ng-template #panoramas let-run>\n <div class=\"progress\" role=\"progressbar\" [attr.aria-valuenow]=\"inventoryService.percent(run)\"\n aria-valuemin=\"0\" aria-valuemax=\"100\">\n <div class=\"progress-bar\" [style.width.%]=\"inventoryService.percent(run)\"></div>\n </div>\n <div class=\"inventory-run-detail\">\n {{'Panoramas analysed' | translate}}: {{ run.imagesDone ?? 0 }} / {{ run.imagesTotal }}\n ({{ inventoryService.percent(run) }}%)\n </div>\n</ng-template>\n", styles: [".inventory-runs{margin-top:1em}.inventory-runs h5{color:var(--smarterplan-primary)}.inventory-runs .inventory-run{background-color:#fff;border-radius:.25rem;padding:.5rem;margin-bottom:.5rem}.inventory-runs .inventory-run .inventory-run-header{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.25rem}.inventory-runs .inventory-run .inventory-run-date,.inventory-runs .inventory-run .inventory-run-detail{font-size:.8rem;color:#6c757d}.inventory-runs .inventory-run .inventory-run-detail{display:block}.inventory-runs .inventory-run .progress-bar{background-color:var(--smarterplan-primary)}.inventory-runs .inventory-run .inventory-run-confirm{margin-top:.5rem;font-size:.85rem}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
19401
19481
|
}
|
|
19402
19482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryRunsComponent, decorators: [{
|
|
19403
19483
|
type: Component,
|
|
19404
|
-
args: [{ selector: "lib-inventory-runs", template: "<div class=\"inventory-runs\" *ngIf=\"runs.length\">\
|
|
19484
|
+
args: [{ selector: "lib-inventory-runs", template: "<div class=\"inventory-runs\" *ngIf=\"runs.length\">\n <h5>{{'Last inventory' | translate}}</h5>\n <div class=\"inventory-run\" *ngFor=\"let run of runs\">\n <div class=\"inventory-run-header\">\n <span class=\"no-lowercase\">{{ labels?.[run.nodeID] ?? run.nodeID }}</span>\n <span class=\"inventory-run-date\">{{ run.createdAt | date:'short' }}</span>\n </div>\n <ng-container [ngSwitch]=\"inventoryService.state(run)\">\n <div *ngSwitchCase=\"'waiting'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Waiting for the analysis to start\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'running'\">\n <ng-container [ngSwitch]=\"run.step\">\n <div *ngSwitchCase=\"'DOWNLOADING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Downloading the files of the visit\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'PLACING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Placing the objects in 3D\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'SAVING'\">\n <ng-container *ngTemplateOutlet=\"busyBar\"></ng-container>\n {{'Saving the equipment\u2026' | translate}}\n </div>\n <div *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"panoramas; context: { $implicit: run }\"></ng-container>\n <span class=\"inventory-run-detail\" *ngIf=\"minutesLeft(run) as minutes\">\n {{'About' | translate}} {{ minutes }} {{'min left' | translate}}\n </span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"inventoryService.canCancel(run)\">\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill mt-2\"\n *ngIf=\"confirmingCancel !== run.id\" (click)=\"confirmingCancel = run.id\">\n {{'Cancel the inventory' | translate}}</button>\n <div class=\"inventory-run-confirm\" *ngIf=\"confirmingCancel === run.id\">\n <span>{{'It stops after the panorama it is on. Those analysed are kept, to resume from there.' | translate}}</span>\n <div class=\"mt-1\">\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill me-2\"\n [disabled]=\"busy === run.id\" (click)=\"onConfirmCancel(run)\">\n {{'Yes, cancel' | translate}}</button>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill\"\n [disabled]=\"busy === run.id\" (click)=\"confirmingCancel = null\">\n {{'No, go on' | translate}}</button>\n </div>\n </div>\n </ng-container>\n </div>\n <div *ngSwitchCase=\"'cancelling'\" class=\"text-warning\">\n <ng-container *ngTemplateOutlet=\"panoramas; context: { $implicit: run }\"></ng-container>\n {{'Cancelling: it stops after the panorama it is on\u2026' | translate}}\n </div>\n <div *ngSwitchCase=\"'cancelled'\">\n <span class=\"text-warning\">{{'Cancelled' | translate}}.</span>\n <span class=\"inventory-run-detail\" *ngIf=\"run.imagesTotal\">\n {{'Panoramas analysed' | translate}}: {{ run.imagesDone ?? 0 }} / {{ run.imagesTotal }}\n </span>\n </div>\n <div *ngSwitchCase=\"'done'\" class=\"text-success\">\n <!-- How many, when the task says so: the image before inventory_job.py does not. -->\n <ng-container *ngIf=\"run.objectsFound != null; else doneOnly\">\n {{'Done' | translate}}: {{ run.objectsFound }} {{'equipment added' | translate}}.\n </ng-container>\n <ng-template #doneOnly>{{'Done' | translate}}.</ng-template>\n <span class=\"inventory-run-detail\">{{'Reload the page to see them in the list.' | translate}}</span>\n </div>\n <div *ngSwitchCase=\"'failed'\" class=\"text-danger\">\n {{ inventoryService.failure(run) | translate }}\n <span class=\"inventory-run-detail\" *ngIf=\"run.errorMessage\">{{ run.errorMessage }}</span>\n </div>\n <div *ngSwitchCase=\"'stale'\" class=\"text-warning\">\n {{'No news since' | translate}} {{ run.updatedAt | date:'short' }}:\n {{'the analysis has probably stopped.' | translate}}\n </div>\n </ng-container>\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary rounded-pill mt-2\"\n *ngIf=\"inventoryService.canResume(run)\" [disabled]=\"busy === run.id\" (click)=\"onResume(run)\">\n {{'Resume from where it stopped' | translate}} ({{ run.imagesDone }} / {{ run.imagesTotal }})</button>\n </div>\n <div class=\"text-danger\" *ngIf=\"message\">{{ message | translate }}</div>\n</div>\n\n<!-- Something is being done, of which there is nothing to count. -->\n<ng-template #busyBar>\n <div class=\"progress mb-1\" role=\"progressbar\" aria-label=\"\u2026\">\n <div class=\"progress-bar progress-bar-striped progress-bar-animated\" style=\"width: 100%\"></div>\n </div>\n</ng-template>\n\n<ng-template #panoramas let-run>\n <div class=\"progress\" role=\"progressbar\" [attr.aria-valuenow]=\"inventoryService.percent(run)\"\n aria-valuemin=\"0\" aria-valuemax=\"100\">\n <div class=\"progress-bar\" [style.width.%]=\"inventoryService.percent(run)\"></div>\n </div>\n <div class=\"inventory-run-detail\">\n {{'Panoramas analysed' | translate}}: {{ run.imagesDone ?? 0 }} / {{ run.imagesTotal }}\n ({{ inventoryService.percent(run) }}%)\n </div>\n</ng-template>\n", styles: [".inventory-runs{margin-top:1em}.inventory-runs h5{color:var(--smarterplan-primary)}.inventory-runs .inventory-run{background-color:#fff;border-radius:.25rem;padding:.5rem;margin-bottom:.5rem}.inventory-runs .inventory-run .inventory-run-header{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.25rem}.inventory-runs .inventory-run .inventory-run-date,.inventory-runs .inventory-run .inventory-run-detail{font-size:.8rem;color:#6c757d}.inventory-runs .inventory-run .inventory-run-detail{display:block}.inventory-runs .inventory-run .progress-bar{background-color:var(--smarterplan-primary)}.inventory-runs .inventory-run .inventory-run-confirm{margin-top:.5rem;font-size:.85rem}\n"] }]
|
|
19405
19485
|
}], ctorParameters: () => [{ type: InventoryService }], propDecorators: { spaceID: [{
|
|
19406
19486
|
type: Input
|
|
19407
19487
|
}], nodeIDs: [{
|
|
@@ -19457,72 +19537,72 @@ class InventoryFilesComponent {
|
|
|
19457
19537
|
}
|
|
19458
19538
|
}
|
|
19459
19539
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19460
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: InventoryFilesComponent, selector: "lib-inventory-files", inputs: { files: "files", model3D: "model3D" }, outputs: { filesChange: "filesChange" }, ngImport: i0, template: `
|
|
19461
|
-
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19462
|
-
<li [class.missing]="!files.panoramas">
|
|
19463
|
-
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19464
|
-
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19465
|
-
</li>
|
|
19466
|
-
<li [class.missing]="!files.dataJson">
|
|
19467
|
-
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19468
|
-
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19469
|
-
</li>
|
|
19470
|
-
<li [class.missing]="!files.modelObj">
|
|
19471
|
-
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19472
|
-
<span class="hint" *ngIf="!files.modelObj">
|
|
19473
|
-
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19474
|
-
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19475
|
-
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19476
|
-
{{ "Send the .obj" | translate }}
|
|
19477
|
-
</label>
|
|
19478
|
-
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19479
|
-
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19480
|
-
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19481
|
-
</span>
|
|
19482
|
-
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19483
|
-
</span>
|
|
19484
|
-
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19485
|
-
</span>
|
|
19486
|
-
</li>
|
|
19487
|
-
</ul>
|
|
19488
|
-
<ng-template #unknown>
|
|
19489
|
-
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19490
|
-
</ng-template>
|
|
19540
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: InventoryFilesComponent, selector: "lib-inventory-files", inputs: { files: "files", model3D: "model3D" }, outputs: { filesChange: "filesChange" }, ngImport: i0, template: `
|
|
19541
|
+
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19542
|
+
<li [class.missing]="!files.panoramas">
|
|
19543
|
+
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19544
|
+
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19545
|
+
</li>
|
|
19546
|
+
<li [class.missing]="!files.dataJson">
|
|
19547
|
+
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19548
|
+
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19549
|
+
</li>
|
|
19550
|
+
<li [class.missing]="!files.modelObj">
|
|
19551
|
+
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19552
|
+
<span class="hint" *ngIf="!files.modelObj">
|
|
19553
|
+
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19554
|
+
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19555
|
+
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19556
|
+
{{ "Send the .obj" | translate }}
|
|
19557
|
+
</label>
|
|
19558
|
+
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19559
|
+
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19560
|
+
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19561
|
+
</span>
|
|
19562
|
+
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19563
|
+
</span>
|
|
19564
|
+
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19565
|
+
</span>
|
|
19566
|
+
</li>
|
|
19567
|
+
</ul>
|
|
19568
|
+
<ng-template #unknown>
|
|
19569
|
+
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19570
|
+
</ng-template>
|
|
19491
19571
|
`, isInline: true, styles: [".inventory-files{list-style:none;padding-left:0;margin-bottom:.5rem}.missing{color:var(--bs-danger, #dc3545)}.hint{display:block;font-size:.8rem;color:#6c757d;margin-left:1.2rem}.upload{margin-top:.25rem}.upload input{display:none}.sending{display:block;margin-top:.25rem}.progress{display:flex;height:6px;margin-bottom:.25rem}.progress-bar{transition:none;background-color:var(--smarterplan-primary)}.error{display:block;color:var(--bs-danger, #dc3545)}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
19492
19572
|
}
|
|
19493
19573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryFilesComponent, decorators: [{
|
|
19494
19574
|
type: Component,
|
|
19495
|
-
args: [{ selector: "lib-inventory-files", template: `
|
|
19496
|
-
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19497
|
-
<li [class.missing]="!files.panoramas">
|
|
19498
|
-
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19499
|
-
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19500
|
-
</li>
|
|
19501
|
-
<li [class.missing]="!files.dataJson">
|
|
19502
|
-
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19503
|
-
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19504
|
-
</li>
|
|
19505
|
-
<li [class.missing]="!files.modelObj">
|
|
19506
|
-
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19507
|
-
<span class="hint" *ngIf="!files.modelObj">
|
|
19508
|
-
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19509
|
-
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19510
|
-
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19511
|
-
{{ "Send the .obj" | translate }}
|
|
19512
|
-
</label>
|
|
19513
|
-
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19514
|
-
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19515
|
-
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19516
|
-
</span>
|
|
19517
|
-
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19518
|
-
</span>
|
|
19519
|
-
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19520
|
-
</span>
|
|
19521
|
-
</li>
|
|
19522
|
-
</ul>
|
|
19523
|
-
<ng-template #unknown>
|
|
19524
|
-
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19525
|
-
</ng-template>
|
|
19575
|
+
args: [{ selector: "lib-inventory-files", template: `
|
|
19576
|
+
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19577
|
+
<li [class.missing]="!files.panoramas">
|
|
19578
|
+
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19579
|
+
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19580
|
+
</li>
|
|
19581
|
+
<li [class.missing]="!files.dataJson">
|
|
19582
|
+
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19583
|
+
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19584
|
+
</li>
|
|
19585
|
+
<li [class.missing]="!files.modelObj">
|
|
19586
|
+
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19587
|
+
<span class="hint" *ngIf="!files.modelObj">
|
|
19588
|
+
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19589
|
+
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19590
|
+
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19591
|
+
{{ "Send the .obj" | translate }}
|
|
19592
|
+
</label>
|
|
19593
|
+
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19594
|
+
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19595
|
+
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19596
|
+
</span>
|
|
19597
|
+
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19598
|
+
</span>
|
|
19599
|
+
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19600
|
+
</span>
|
|
19601
|
+
</li>
|
|
19602
|
+
</ul>
|
|
19603
|
+
<ng-template #unknown>
|
|
19604
|
+
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19605
|
+
</ng-template>
|
|
19526
19606
|
`, styles: [".inventory-files{list-style:none;padding-left:0;margin-bottom:.5rem}.missing{color:var(--bs-danger, #dc3545)}.hint{display:block;font-size:.8rem;color:#6c757d;margin-left:1.2rem}.upload{margin-top:.25rem}.upload input{display:none}.sending{display:block;margin-top:.25rem}.progress{display:flex;height:6px;margin-bottom:.25rem}.progress-bar{transition:none;background-color:var(--smarterplan-primary)}.error{display:block;color:var(--bs-danger, #dc3545)}\n"] }]
|
|
19527
19607
|
}], propDecorators: { files: [{
|
|
19528
19608
|
type: Input
|
|
@@ -19532,6 +19612,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19532
19612
|
type: Input
|
|
19533
19613
|
}] } });
|
|
19534
19614
|
|
|
19615
|
+
/**
|
|
19616
|
+
* A checkbox drawn as an on/off slider, with its label: [(checked)]. The app's own, from when only
|
|
19617
|
+
* its Equipments had one; here for the screens the libraries share.
|
|
19618
|
+
*/
|
|
19619
|
+
class CheckboxSliderComponent {
|
|
19620
|
+
/** A key to translate. */
|
|
19621
|
+
label;
|
|
19622
|
+
checked = false;
|
|
19623
|
+
disabled = false;
|
|
19624
|
+
checkedChange = new EventEmitter();
|
|
19625
|
+
onChange(event) {
|
|
19626
|
+
this.checked = event.target.checked;
|
|
19627
|
+
this.checkedChange.emit(this.checked);
|
|
19628
|
+
}
|
|
19629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19630
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CheckboxSliderComponent, selector: "lib-checkbox-slider", inputs: { label: "label", checked: "checked", disabled: "disabled" }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<label class=\"checkbox-slider\" [class.disabled]=\"disabled\">\n <span class=\"switch\">\n <input type=\"checkbox\" [checked]=\"checked\" [disabled]=\"disabled\" (change)=\"onChange($event)\">\n <span class=\"slider\"></span>\n </span>\n <span class=\"label\">{{ label | translate }}</span>\n</label>\n", styles: [":host{display:block}.checkbox-slider{display:flex;align-items:center;gap:1rem;margin:0;cursor:pointer}.checkbox-slider.disabled{cursor:default;opacity:.5}.switch{position:relative;display:inline-block;flex:none;width:60px;height:34px;border-radius:34px}.switch input{position:absolute;opacity:0;width:0;height:0}.switch input:checked+.slider{background-color:var(--smarterplan-primary);box-shadow:2px 2px 10px 0 var(--smarterplan-primary)}.switch input:checked+.slider:before{background:#fff;transform:translate(26px)}.switch input:focus-visible+.slider{outline:2px solid var(--smarterplan-primary);outline-offset:2px}.switch .slider{position:absolute;inset:0;border:1px solid var(--smarterplan-primary);border-radius:34px;transition:.3s}.switch .slider:before{position:absolute;content:\"\";height:26px;width:26px;left:4px;bottom:3px;background-color:var(--smarterplan-primary);box-shadow:2px 2px 10px 0 var(--smarterplan-primary);border-radius:50%;transition:.3s}\n"], dependencies: [{ kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
19631
|
+
}
|
|
19632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CheckboxSliderComponent, decorators: [{
|
|
19633
|
+
type: Component,
|
|
19634
|
+
args: [{ selector: "lib-checkbox-slider", template: "<label class=\"checkbox-slider\" [class.disabled]=\"disabled\">\n <span class=\"switch\">\n <input type=\"checkbox\" [checked]=\"checked\" [disabled]=\"disabled\" (change)=\"onChange($event)\">\n <span class=\"slider\"></span>\n </span>\n <span class=\"label\">{{ label | translate }}</span>\n</label>\n", styles: [":host{display:block}.checkbox-slider{display:flex;align-items:center;gap:1rem;margin:0;cursor:pointer}.checkbox-slider.disabled{cursor:default;opacity:.5}.switch{position:relative;display:inline-block;flex:none;width:60px;height:34px;border-radius:34px}.switch input{position:absolute;opacity:0;width:0;height:0}.switch input:checked+.slider{background-color:var(--smarterplan-primary);box-shadow:2px 2px 10px 0 var(--smarterplan-primary)}.switch input:checked+.slider:before{background:#fff;transform:translate(26px)}.switch input:focus-visible+.slider{outline:2px solid var(--smarterplan-primary);outline-offset:2px}.switch .slider{position:absolute;inset:0;border:1px solid var(--smarterplan-primary);border-radius:34px;transition:.3s}.switch .slider:before{position:absolute;content:\"\";height:26px;width:26px;left:4px;bottom:3px;background-color:var(--smarterplan-primary);box-shadow:2px 2px 10px 0 var(--smarterplan-primary);border-radius:50%;transition:.3s}\n"] }]
|
|
19635
|
+
}], propDecorators: { label: [{
|
|
19636
|
+
type: Input
|
|
19637
|
+
}], checked: [{
|
|
19638
|
+
type: Input
|
|
19639
|
+
}], disabled: [{
|
|
19640
|
+
type: Input
|
|
19641
|
+
}], checkedChange: [{
|
|
19642
|
+
type: Output
|
|
19643
|
+
}] } });
|
|
19644
|
+
|
|
19645
|
+
/**
|
|
19646
|
+
* Launches an AI inventory, of the visits given or of one panorama of the visit, saying first what
|
|
19647
|
+
* it will do: what each visit has of what the inventory needs, and how many equipment the AI added
|
|
19648
|
+
* before, when they are to be deleted. The location's Equipments and its 360° images both launch
|
|
19649
|
+
* theirs from here, so that they offer the same.
|
|
19650
|
+
*/
|
|
19651
|
+
class InventoryLaunchComponent {
|
|
19652
|
+
inventoryService;
|
|
19653
|
+
equipmentService;
|
|
19654
|
+
spaceID;
|
|
19655
|
+
visits = [];
|
|
19656
|
+
/** Only this panorama of the visit, as it is named: 110ee452_sweep.jpeg. */
|
|
19657
|
+
panorama = null;
|
|
19658
|
+
/** Whether an inventory of the location is running: no other is launched meanwhile. */
|
|
19659
|
+
running = false;
|
|
19660
|
+
cancelled = new EventEmitter();
|
|
19661
|
+
/** Said once an inventory is launched, for its progress to be looked at. */
|
|
19662
|
+
launched = new EventEmitter();
|
|
19663
|
+
models = [];
|
|
19664
|
+
model;
|
|
19665
|
+
cutoffScores = INVENTORY_CUTOFF_SCORES;
|
|
19666
|
+
cutoffScore = INVENTORY_DEFAULT_CUTOFF;
|
|
19667
|
+
/** Whether the equipment the AI added to the location before is deleted first. */
|
|
19668
|
+
deletePrevious = false;
|
|
19669
|
+
/** How many of the location's equipment the AI added, which deletePrevious deletes. */
|
|
19670
|
+
aiEquipmentCount = null;
|
|
19671
|
+
/** What each visit has of what the inventory needs, by its node; null when the bucket could not be read. */
|
|
19672
|
+
visitFiles = {};
|
|
19673
|
+
checkingFiles = false;
|
|
19674
|
+
launching = false;
|
|
19675
|
+
/** What went wrong, or why nothing was launched, as a key to translate. */
|
|
19676
|
+
message = null;
|
|
19677
|
+
constructor(inventoryService, equipmentService) {
|
|
19678
|
+
this.inventoryService = inventoryService;
|
|
19679
|
+
this.equipmentService = equipmentService;
|
|
19680
|
+
}
|
|
19681
|
+
async ngOnInit() {
|
|
19682
|
+
this.models = await this.inventoryService.getModels();
|
|
19683
|
+
if (!this.model && this.models.length === 1) {
|
|
19684
|
+
this.model = this.models[0];
|
|
19685
|
+
}
|
|
19686
|
+
}
|
|
19687
|
+
ngOnChanges(changes) {
|
|
19688
|
+
if (changes.visits) {
|
|
19689
|
+
this.checkFiles();
|
|
19690
|
+
}
|
|
19691
|
+
}
|
|
19692
|
+
async checkFiles() {
|
|
19693
|
+
const visits = this.visits ?? [];
|
|
19694
|
+
this.checkingFiles = true;
|
|
19695
|
+
try {
|
|
19696
|
+
const files = await Promise.all(visits.map((visit) => this.inventoryService.checkFiles(visit.model3D)));
|
|
19697
|
+
// Other visits may have come meanwhile, checked by their own call.
|
|
19698
|
+
if (visits === this.visits) {
|
|
19699
|
+
this.visitFiles = Object.fromEntries(visits.map((visit, index) => [visit.nodeID, files[index]]));
|
|
19700
|
+
}
|
|
19701
|
+
}
|
|
19702
|
+
finally {
|
|
19703
|
+
if (visits === this.visits) {
|
|
19704
|
+
this.checkingFiles = false;
|
|
19705
|
+
}
|
|
19706
|
+
}
|
|
19707
|
+
}
|
|
19708
|
+
/** The visits that will be analysed: those with nothing known to be missing. */
|
|
19709
|
+
get launchableVisits() {
|
|
19710
|
+
return (this.visits ?? []).filter((visit) => {
|
|
19711
|
+
const files = this.visitFiles[visit.nodeID];
|
|
19712
|
+
return !files || this.inventoryService.isComplete(files);
|
|
19713
|
+
});
|
|
19714
|
+
}
|
|
19715
|
+
get canLaunch() {
|
|
19716
|
+
return !!this.model && !this.running && !this.launching && !this.checkingFiles
|
|
19717
|
+
&& this.launchableVisits.length > 0;
|
|
19718
|
+
}
|
|
19719
|
+
async onDeletePreviousChange(deletePrevious) {
|
|
19720
|
+
this.deletePrevious = deletePrevious;
|
|
19721
|
+
if (deletePrevious && this.aiEquipmentCount === null) {
|
|
19722
|
+
this.aiEquipmentCount = (await this.aiEquipments()).length;
|
|
19723
|
+
}
|
|
19724
|
+
}
|
|
19725
|
+
async aiEquipments() {
|
|
19726
|
+
const equipments = await this.equipmentService.getEquipmentsForSpace(this.spaceID);
|
|
19727
|
+
return equipments.filter((equip) => equip.isCreatedByAI);
|
|
19728
|
+
}
|
|
19729
|
+
async onLaunchClick() {
|
|
19730
|
+
this.launching = true;
|
|
19731
|
+
this.message = null;
|
|
19732
|
+
try {
|
|
19733
|
+
if (this.deletePrevious) {
|
|
19734
|
+
const previous = await this.aiEquipments();
|
|
19735
|
+
await Promise.all(previous.map((equip) => this.equipmentService.deleteEquipment(equip)));
|
|
19736
|
+
this.aiEquipmentCount = null;
|
|
19737
|
+
}
|
|
19738
|
+
const launched = await this.inventoryService.launch(this.spaceID, this.launchableVisits.map((visit) => visit.nodeID), this.model, Number(this.cutoffScore),
|
|
19739
|
+
// Panoramas are named after their sweep's first 8 characters.
|
|
19740
|
+
this.panorama ? this.panorama.split("_")[0] : undefined);
|
|
19741
|
+
if (launched === "ALREADY_RUNNING") {
|
|
19742
|
+
this.message = "An inventory is already running for this location.";
|
|
19743
|
+
return;
|
|
19744
|
+
}
|
|
19745
|
+
this.launched.emit();
|
|
19746
|
+
}
|
|
19747
|
+
catch (error) {
|
|
19748
|
+
console.error("Inventory not launched", error);
|
|
19749
|
+
this.message = "The inventory could not be launched.";
|
|
19750
|
+
}
|
|
19751
|
+
finally {
|
|
19752
|
+
this.launching = false;
|
|
19753
|
+
}
|
|
19754
|
+
}
|
|
19755
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryLaunchComponent, deps: [{ token: InventoryService }, { token: EquipmentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19756
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: InventoryLaunchComponent, selector: "lib-inventory-launch", inputs: { spaceID: "spaceID", visits: "visits", panorama: "panorama", running: "running" }, outputs: { cancelled: "cancelled", launched: "launched" }, usesOnChanges: true, ngImport: i0, template: "<!-- What the inventory will do, before it is done: it adds equipment to the location. -->\n<p *ngIf=\"panorama\">{{ 'The AI will look for equipment in this panorama and add what it finds to the location.' | translate }}</p>\n<p *ngIf=\"!panorama\">{{ 'The AI will look for equipment in the visits of this location and add what it finds to it.' | translate }}</p>\n\n<ul class=\"inventory-launch-summary\" *ngIf=\"panorama\">\n <li>{{ 'Visit' | translate }}: <strong class=\"no-lowercase\">{{ visits?.[0]?.label }}</strong></li>\n <li>{{ 'Panorama' | translate }}: <strong class=\"no-lowercase\">{{ panorama }}</strong></li>\n</ul>\n<ul class=\"inventory-launch-summary\" *ngIf=\"!panorama && visits?.length > 0\">\n <li>{{ 'Visits to analyse' | translate }}:\n <strong>{{ checkingFiles ? '\u2026' : launchableVisits.length + ' / ' + visits.length }}</strong></li>\n</ul>\n<p class=\"text-danger\" *ngIf=\"visits?.length === 0\">\n {{ 'This location has no Matterport visit for the AI to analyse.' | translate }}</p>\n\n<lib-loader *ngIf=\"checkingFiles\"></lib-loader>\n<ng-container *ngIf=\"!checkingFiles\">\n <div *ngFor=\"let visit of visits\">\n <strong class=\"no-lowercase\" *ngIf=\"!panorama\">{{ visit.label }}</strong>\n <lib-inventory-files [(files)]=\"visitFiles[visit.nodeID]\" [model3D]=\"visit.model3D\"></lib-inventory-files>\n </div>\n</ng-container>\n\n<div class=\"inventory-launch-delete\">\n <lib-checkbox-slider label=\"Delete previous inventory ?\" [checked]=\"deletePrevious\" [disabled]=\"launching\"\n (checkedChange)=\"onDeletePreviousChange($event)\"></lib-checkbox-slider>\n <span class=\"inventory-launch-hint\" *ngIf=\"deletePrevious\">\n {{ 'Equipment added by the AI before, deleted first' | translate }}: <strong>{{ aiEquipmentCount ?? '\u2026' }}</strong>\n </span>\n</div>\n\n<div class=\"inventory-launch-settings\">\n <select class=\"no-lowercase form-select\" [(ngModel)]=\"model\">\n <option [ngValue]=\"undefined\">{{ 'Select model' | translate }}</option>\n <option *ngFor=\"let option of models\" [ngValue]=\"option\">{{ option.name | translate }}</option>\n </select>\n <select class=\"form-select\" [(ngModel)]=\"cutoffScore\" [title]=\"'Cutoff score' | translate\">\n <option *ngFor=\"let score of cutoffScores\" [ngValue]=\"score\">{{ 'Cutoff score' | translate }} {{ score }}</option>\n </select>\n</div>\n\n<div class=\"inventory-launch-buttons\">\n <button type=\"button\" class=\"btn btn-outline-secondary rounded-pill\" [disabled]=\"launching\"\n (click)=\"cancelled.emit()\">{{ 'Cancel' | translate }}</button>\n <button type=\"button\" class=\"btn btn-outline-primary rounded-pill\" [disabled]=\"!canLaunch\"\n [title]=\"running ? ('An inventory is already running for this location.' | translate) : ''\"\n (click)=\"onLaunchClick()\">{{ 'Launch inventory' | translate }}</button>\n</div>\n\n<div class=\"text-danger mt-2\" *ngIf=\"message\">{{ message | translate }}</div>\n", styles: [":host{display:block}.inventory-launch-summary{padding-left:1.2rem;margin-bottom:.5rem}.inventory-launch-delete{margin:.75rem 0}.inventory-launch-hint{display:block;margin-top:.25rem;font-size:.8rem;color:#6c757d}.inventory-launch-settings{display:flex;flex-wrap:wrap;gap:.5rem}.inventory-launch-settings select{flex:1 1 10rem}.inventory-launch-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}\n"], dependencies: [{ kind: "directive", type: i3.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i3.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoaderComponent, selector: "lib-loader", inputs: ["useLogo", "color"] }, { kind: "component", type: InventoryFilesComponent, selector: "lib-inventory-files", inputs: ["files", "model3D"], outputs: ["filesChange"] }, { kind: "component", type: CheckboxSliderComponent, selector: "lib-checkbox-slider", inputs: ["label", "checked", "disabled"], outputs: ["checkedChange"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
19757
|
+
}
|
|
19758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryLaunchComponent, decorators: [{
|
|
19759
|
+
type: Component,
|
|
19760
|
+
args: [{ selector: "lib-inventory-launch", template: "<!-- What the inventory will do, before it is done: it adds equipment to the location. -->\n<p *ngIf=\"panorama\">{{ 'The AI will look for equipment in this panorama and add what it finds to the location.' | translate }}</p>\n<p *ngIf=\"!panorama\">{{ 'The AI will look for equipment in the visits of this location and add what it finds to it.' | translate }}</p>\n\n<ul class=\"inventory-launch-summary\" *ngIf=\"panorama\">\n <li>{{ 'Visit' | translate }}: <strong class=\"no-lowercase\">{{ visits?.[0]?.label }}</strong></li>\n <li>{{ 'Panorama' | translate }}: <strong class=\"no-lowercase\">{{ panorama }}</strong></li>\n</ul>\n<ul class=\"inventory-launch-summary\" *ngIf=\"!panorama && visits?.length > 0\">\n <li>{{ 'Visits to analyse' | translate }}:\n <strong>{{ checkingFiles ? '\u2026' : launchableVisits.length + ' / ' + visits.length }}</strong></li>\n</ul>\n<p class=\"text-danger\" *ngIf=\"visits?.length === 0\">\n {{ 'This location has no Matterport visit for the AI to analyse.' | translate }}</p>\n\n<lib-loader *ngIf=\"checkingFiles\"></lib-loader>\n<ng-container *ngIf=\"!checkingFiles\">\n <div *ngFor=\"let visit of visits\">\n <strong class=\"no-lowercase\" *ngIf=\"!panorama\">{{ visit.label }}</strong>\n <lib-inventory-files [(files)]=\"visitFiles[visit.nodeID]\" [model3D]=\"visit.model3D\"></lib-inventory-files>\n </div>\n</ng-container>\n\n<div class=\"inventory-launch-delete\">\n <lib-checkbox-slider label=\"Delete previous inventory ?\" [checked]=\"deletePrevious\" [disabled]=\"launching\"\n (checkedChange)=\"onDeletePreviousChange($event)\"></lib-checkbox-slider>\n <span class=\"inventory-launch-hint\" *ngIf=\"deletePrevious\">\n {{ 'Equipment added by the AI before, deleted first' | translate }}: <strong>{{ aiEquipmentCount ?? '\u2026' }}</strong>\n </span>\n</div>\n\n<div class=\"inventory-launch-settings\">\n <select class=\"no-lowercase form-select\" [(ngModel)]=\"model\">\n <option [ngValue]=\"undefined\">{{ 'Select model' | translate }}</option>\n <option *ngFor=\"let option of models\" [ngValue]=\"option\">{{ option.name | translate }}</option>\n </select>\n <select class=\"form-select\" [(ngModel)]=\"cutoffScore\" [title]=\"'Cutoff score' | translate\">\n <option *ngFor=\"let score of cutoffScores\" [ngValue]=\"score\">{{ 'Cutoff score' | translate }} {{ score }}</option>\n </select>\n</div>\n\n<div class=\"inventory-launch-buttons\">\n <button type=\"button\" class=\"btn btn-outline-secondary rounded-pill\" [disabled]=\"launching\"\n (click)=\"cancelled.emit()\">{{ 'Cancel' | translate }}</button>\n <button type=\"button\" class=\"btn btn-outline-primary rounded-pill\" [disabled]=\"!canLaunch\"\n [title]=\"running ? ('An inventory is already running for this location.' | translate) : ''\"\n (click)=\"onLaunchClick()\">{{ 'Launch inventory' | translate }}</button>\n</div>\n\n<div class=\"text-danger mt-2\" *ngIf=\"message\">{{ message | translate }}</div>\n", styles: [":host{display:block}.inventory-launch-summary{padding-left:1.2rem;margin-bottom:.5rem}.inventory-launch-delete{margin:.75rem 0}.inventory-launch-hint{display:block;margin-top:.25rem;font-size:.8rem;color:#6c757d}.inventory-launch-settings{display:flex;flex-wrap:wrap;gap:.5rem}.inventory-launch-settings select{flex:1 1 10rem}.inventory-launch-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}\n"] }]
|
|
19761
|
+
}], ctorParameters: () => [{ type: InventoryService }, { type: EquipmentService }], propDecorators: { spaceID: [{
|
|
19762
|
+
type: Input
|
|
19763
|
+
}], visits: [{
|
|
19764
|
+
type: Input
|
|
19765
|
+
}], panorama: [{
|
|
19766
|
+
type: Input
|
|
19767
|
+
}], running: [{
|
|
19768
|
+
type: Input
|
|
19769
|
+
}], cancelled: [{
|
|
19770
|
+
type: Output
|
|
19771
|
+
}], launched: [{
|
|
19772
|
+
type: Output
|
|
19773
|
+
}] } });
|
|
19774
|
+
|
|
19535
19775
|
class NgxSmarterplanCoreModule {
|
|
19536
19776
|
static forRoot(config) {
|
|
19537
19777
|
return {
|
|
@@ -19561,7 +19801,9 @@ class NgxSmarterplanCoreModule {
|
|
|
19561
19801
|
FormatDateNumberToDigitsPipe,
|
|
19562
19802
|
SplatViewerComponent,
|
|
19563
19803
|
InventoryRunsComponent,
|
|
19564
|
-
InventoryFilesComponent
|
|
19804
|
+
InventoryFilesComponent,
|
|
19805
|
+
InventoryLaunchComponent,
|
|
19806
|
+
CheckboxSliderComponent], imports: [FormsModule,
|
|
19565
19807
|
ReactiveFormsModule,
|
|
19566
19808
|
CommonModule,
|
|
19567
19809
|
RouterModule,
|
|
@@ -19579,7 +19821,9 @@ class NgxSmarterplanCoreModule {
|
|
|
19579
19821
|
AvatarComponent,
|
|
19580
19822
|
SplatViewerComponent,
|
|
19581
19823
|
InventoryRunsComponent,
|
|
19582
|
-
InventoryFilesComponent
|
|
19824
|
+
InventoryFilesComponent,
|
|
19825
|
+
InventoryLaunchComponent,
|
|
19826
|
+
CheckboxSliderComponent] });
|
|
19583
19827
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NgxSmarterplanCoreModule, imports: [FormsModule,
|
|
19584
19828
|
ReactiveFormsModule,
|
|
19585
19829
|
CommonModule,
|
|
@@ -19610,7 +19854,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19610
19854
|
FormatDateNumberToDigitsPipe,
|
|
19611
19855
|
SplatViewerComponent,
|
|
19612
19856
|
InventoryRunsComponent,
|
|
19613
|
-
InventoryFilesComponent
|
|
19857
|
+
InventoryFilesComponent,
|
|
19858
|
+
InventoryLaunchComponent,
|
|
19859
|
+
CheckboxSliderComponent
|
|
19614
19860
|
],
|
|
19615
19861
|
imports: [
|
|
19616
19862
|
FormsModule,
|
|
@@ -19638,6 +19884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19638
19884
|
SplatViewerComponent,
|
|
19639
19885
|
InventoryRunsComponent,
|
|
19640
19886
|
InventoryFilesComponent,
|
|
19887
|
+
InventoryLaunchComponent,
|
|
19888
|
+
CheckboxSliderComponent,
|
|
19641
19889
|
]
|
|
19642
19890
|
}]
|
|
19643
19891
|
}] });
|
|
@@ -19697,27 +19945,27 @@ class BaseTagService {
|
|
|
19697
19945
|
throw new Error('updatePoiMetadata is not implemented in the base class.');
|
|
19698
19946
|
}*/
|
|
19699
19947
|
async prepareEquipmentHtml(equip) {
|
|
19700
|
-
throw new Error(`prepareEquipmentHtml is not implemented in the base class.
|
|
19948
|
+
throw new Error(`prepareEquipmentHtml is not implemented in the base class.
|
|
19701
19949
|
Please override this method in your extended class.`);
|
|
19702
19950
|
}
|
|
19703
19951
|
async prepareTicketHtml(ticket) {
|
|
19704
|
-
throw new Error(`prepareTicketHtml is not implemented in the base class.
|
|
19952
|
+
throw new Error(`prepareTicketHtml is not implemented in the base class.
|
|
19705
19953
|
Please override this method in your extended class.`);
|
|
19706
19954
|
}
|
|
19707
19955
|
async prepareFeatureHtml(feature) {
|
|
19708
|
-
throw new Error(`prepareFeatureHtml is not implemented in the base class.
|
|
19956
|
+
throw new Error(`prepareFeatureHtml is not implemented in the base class.
|
|
19709
19957
|
Please override this method in your extended class.`);
|
|
19710
19958
|
}
|
|
19711
19959
|
async prepareMeasurementHtml(measure) {
|
|
19712
|
-
throw new Error(`prepareMeasurementHtml is not implemented in the base class.
|
|
19960
|
+
throw new Error(`prepareMeasurementHtml is not implemented in the base class.
|
|
19713
19961
|
Please override this method in your extended class.`);
|
|
19714
19962
|
}
|
|
19715
19963
|
async prepareDeskHtml(feature) {
|
|
19716
|
-
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19964
|
+
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19717
19965
|
Please override this method in your extended class.`);
|
|
19718
19966
|
}
|
|
19719
19967
|
async prepareIndicatorHtml(feature) {
|
|
19720
|
-
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19968
|
+
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19721
19969
|
Please override this method in your extended class.`);
|
|
19722
19970
|
}
|
|
19723
19971
|
async getSignedTagIconSource(tagIconSrc) {
|
|
@@ -19726,15 +19974,15 @@ class BaseTagService {
|
|
|
19726
19974
|
getIconTagImageForFeature(feature, poi) {
|
|
19727
19975
|
// const tagIcon = JSON.parse(poi.tagIcon);
|
|
19728
19976
|
// return tagIcon.src;
|
|
19729
|
-
throw new Error(`getIconTagImageForFeature is not implemented in the base class.
|
|
19977
|
+
throw new Error(`getIconTagImageForFeature is not implemented in the base class.
|
|
19730
19978
|
Please override this method in your extended class.`);
|
|
19731
19979
|
}
|
|
19732
19980
|
getScriptForTag(object, tagType) {
|
|
19733
|
-
throw new Error(`getScriptForTag is not implemented in the base class.
|
|
19981
|
+
throw new Error(`getScriptForTag is not implemented in the base class.
|
|
19734
19982
|
Please override this method in your extended class.`);
|
|
19735
19983
|
}
|
|
19736
19984
|
getAnnexeForCommentTypeInFeature(feature, commentType) {
|
|
19737
|
-
throw new Error(`getAnnexeForCommentTypeInFeature is not implemented in the base class.
|
|
19985
|
+
throw new Error(`getAnnexeForCommentTypeInFeature is not implemented in the base class.
|
|
19738
19986
|
Please override this method in your extended class.`);
|
|
19739
19987
|
}
|
|
19740
19988
|
getBillboardMediaToEmbed(object) {
|
|
@@ -19743,27 +19991,27 @@ class BaseTagService {
|
|
|
19743
19991
|
return { comment: null, tagDescription: '' };
|
|
19744
19992
|
}
|
|
19745
19993
|
onActionDetailClick(url) {
|
|
19746
|
-
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19994
|
+
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19747
19995
|
Please override this method in your extended class.`);
|
|
19748
19996
|
}
|
|
19749
19997
|
onActionAudioClick(audioCommentID) {
|
|
19750
|
-
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19998
|
+
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19751
19999
|
Please override this method in your extended class.`);
|
|
19752
20000
|
}
|
|
19753
20001
|
onActionVideoClick(url) {
|
|
19754
|
-
throw new Error(`onActionVideoClick is not implemented in the base class.
|
|
20002
|
+
throw new Error(`onActionVideoClick is not implemented in the base class.
|
|
19755
20003
|
Please override this method in your extended class.`);
|
|
19756
20004
|
}
|
|
19757
20005
|
onActionImageClick(imageCommentID) {
|
|
19758
|
-
throw new Error(`onActionImageClick is not implemented in the base class.
|
|
20006
|
+
throw new Error(`onActionImageClick is not implemented in the base class.
|
|
19759
20007
|
Please override this method in your extended class.`);
|
|
19760
20008
|
}
|
|
19761
20009
|
onActionDocClick(url) {
|
|
19762
|
-
throw new Error(`onActionDocClick is not implemented in the base class.
|
|
20010
|
+
throw new Error(`onActionDocClick is not implemented in the base class.
|
|
19763
20011
|
Please override this method in your extended class.`);
|
|
19764
20012
|
}
|
|
19765
20013
|
onActionYoutubeClick(url) {
|
|
19766
|
-
throw new Error(`onActionYoutubeClick is not implemented in the base class.
|
|
20014
|
+
throw new Error(`onActionYoutubeClick is not implemented in the base class.
|
|
19767
20015
|
Please override this method in your extended class.`);
|
|
19768
20016
|
}
|
|
19769
20017
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BaseTagService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -24060,5 +24308,5 @@ function floatValidator() {
|
|
|
24060
24308
|
* Generated bundle index. Do not edit.
|
|
24061
24309
|
*/
|
|
24062
24310
|
|
|
24063
|
-
export { AffectationService, AvatarComponent, BaseLateralTabService, BaseTagService, BaseUserService, BaseVisibilityService, CameraMode, CaptureService, CaptureViewer, CommentService, CommentType, Config, ContentService, CsvExportComponent, DomainService, DomainType, DurationToStringPipe, EmailStatus, EquipmentService, EventService, EventStatus, EventType, FeatureService, FeatureType, FilterService, GAUSSIAN_SPLAT_PLY_SUFFIX, HashtagFromIdPipe, HashtagService, INVENTORY_CUTOFF_SCORES, INVENTORY_DEFAULT_CUTOFF, INVENTORY_STALE_AFTER_MS, InterventionService, InventoryFilesComponent, InventoryRunsComponent, InventoryService, InventoryStatus, LayerService, LevelStatus, LoaderComponent, Locale, LocaleService, MATTERPORT_SDK_KEY, MatterportImportService, MatterportService, MatterportTagCopyService, MatterportViewType, MattertagActionMode, MattertagData, MeasurementService, MenuBarComponent, MissionService, NavigationService, NavigatorService, NgxSmarterplanCoreModule, NgxSmarterplanCoreService, NodeService, Object3DService, OperationService, OrganisationService, PLAN_ICONS, PaymentStatus, PlanService, PoiService, PoiType, ProfileEntity, ProfileService, ProfileStatus, PropertyService, PropertyType, RoleStatus, SafeUrlPipe, SearchBarComponent, SearchObjectType, SearchService, SpModule, SpaceService, SpaceStatus, SplatViewerComponent, StatusEquipment, SupportModalComponent, SupportService, SweepLocatorService, THREEJS_MODEL_UP_OPTIONS, TagAction, TemplateService, ThreeJsImportService, ThreeJsService, TicketPriority, TicketStatus, TicketType, TicketsService, TimeDateToLocalStringPipe, TypeNote, UsernameFromIdPipe, VIEWER_BACKGROUND, ValidatorsService, ViewerInteractions, ViewerService, VisitService, ZoneChangeService, ZoneService, applyRigidTransformToDirection, applyRigidTransformToPoint, applyRigidTransformToYRotationDeg, arraysContainSameElements, checkElementById, computeRigidTransform, convertObjToGlb, convertTimestampToLocalZone, copyFileInS3, copyFileInS3ViaDownload, dateHasExpired, dateTimeToLocalString, deleteFromS3, distance, downloadBlob, downloadEquipmentDocument, downloadFile, downloadFileAsObject, durationToString, emailValidator, enumToArray, filterUniqueArrayByID, floatValidator, getBufferForFileFromS3, getCoefficientsForImage, getCurrentLang, getDistanceBetweenTwoPoints, getHighestLevelForMissions, getHighestRoleForMissions, getLevelsBelow, getLocaleLong, getLocaleShort, getMetaForImage, getRolesBelowForManager, getSignedFile, getSignedImageUrlForEquipment, getSignedImageUrlForProfile, getSignedImageUrlForSpace, getSpaceIDFromUrl, getThreeJsPoiOrigin, getVisitUrl, hasObjModel, iconData, iconToDataUrl, isEmptyObject, isGaussianSplatFile, isGaussianSplatPly, isStreamedSplatFile, listFilesInFolder, mean, noEmptyValidator, numberToDateString, openDocument, openModalForVisitSwitch, parseThreeJsPlacement, poiTypeToString, pointToString, readObj, removeAllFilesFromFolderS3, removeNullKeysFromObject, showScanPointsOnPlanInDiv, shuffleArray, solveThreeJsAlignment, sortAlphabeticallyOnName, stringLocaleToEnum, stringToLowercaseNoSpaces, styleButton, svgToDataUrl, textValidator, translateDatePeriod, uploadBase64Image, uploadBase64ImageWithRetry, uploadFileToS3, uploadFileToS3WithProgress, uploadJsonToS3, validEmail, wait, waitUntil };
|
|
24311
|
+
export { AffectationService, AvatarComponent, BaseLateralTabService, BaseTagService, BaseUserService, BaseVisibilityService, CameraMode, CaptureService, CaptureViewer, CheckboxSliderComponent, CommentService, CommentType, Config, ContentService, CsvExportComponent, DomainService, DomainType, DurationToStringPipe, EmailStatus, EquipmentService, EventService, EventStatus, EventType, FeatureService, FeatureType, FilterService, GAUSSIAN_SPLAT_PLY_SUFFIX, HashtagFromIdPipe, HashtagService, INVENTORY_CUTOFF_SCORES, INVENTORY_DEFAULT_CUTOFF, INVENTORY_STALE_AFTER_MS, InterventionService, InventoryFilesComponent, InventoryLaunchComponent, InventoryRunsComponent, InventoryService, InventoryStatus, LayerService, LevelStatus, LoaderComponent, Locale, LocaleService, MATTERPORT_SDK_KEY, MatterportImportService, MatterportService, MatterportTagCopyService, MatterportViewType, MattertagActionMode, MattertagData, MeasurementService, MenuBarComponent, MissionService, NavigationService, NavigatorService, NgxSmarterplanCoreModule, NgxSmarterplanCoreService, NodeService, Object3DService, OperationService, OrganisationService, PLAN_ICONS, PaymentStatus, PlanService, PoiService, PoiType, ProfileEntity, ProfileService, ProfileStatus, PropertyService, PropertyType, RoleStatus, SafeUrlPipe, SearchBarComponent, SearchObjectType, SearchService, SpModule, SpaceService, SpaceStatus, SplatViewerComponent, StatusEquipment, SupportModalComponent, SupportService, SweepLocatorService, THREEJS_MODEL_UP_OPTIONS, TagAction, TemplateService, ThreeJsImportService, ThreeJsService, TicketPriority, TicketStatus, TicketType, TicketsService, TimeDateToLocalStringPipe, TypeNote, UsernameFromIdPipe, VIEWER_BACKGROUND, ValidatorsService, ViewerInteractions, ViewerService, VisitService, ZoneChangeService, ZoneService, applyRigidTransformToDirection, applyRigidTransformToPoint, applyRigidTransformToYRotationDeg, arraysContainSameElements, checkElementById, computeRigidTransform, convertObjToGlb, convertTimestampToLocalZone, copyFileInS3, copyFileInS3ViaDownload, dateHasExpired, dateTimeToLocalString, deleteFromS3, distance, downloadBlob, downloadEquipmentDocument, downloadFile, downloadFileAsObject, durationToString, emailValidator, enumToArray, filterUniqueArrayByID, floatValidator, getBufferForFileFromS3, getCoefficientsForImage, getCurrentLang, getDistanceBetweenTwoPoints, getHighestLevelForMissions, getHighestRoleForMissions, getLevelsBelow, getLocaleLong, getLocaleShort, getMetaForImage, getRolesBelowForManager, getSignedFile, getSignedImageUrlForEquipment, getSignedImageUrlForProfile, getSignedImageUrlForSpace, getSpaceIDFromUrl, getThreeJsPoiOrigin, getVisitUrl, hasObjModel, iconData, iconToDataUrl, isEmptyObject, isGaussianSplatFile, isGaussianSplatPly, isStreamedSplatFile, listFilesInFolder, mean, noEmptyValidator, numberToDateString, openDocument, openModalForVisitSwitch, parseThreeJsPlacement, poiTypeToString, pointToString, readObj, removeAllFilesFromFolderS3, removeNullKeysFromObject, showScanPointsOnPlanInDiv, shuffleArray, solveThreeJsAlignment, sortAlphabeticallyOnName, stringLocaleToEnum, stringToLowercaseNoSpaces, styleButton, svgToDataUrl, textValidator, translateDatePeriod, uploadBase64Image, uploadBase64ImageWithRetry, uploadFileToS3, uploadFileToS3WithProgress, uploadJsonToS3, validEmail, wait, waitUntil };
|
|
24064
24312
|
//# sourceMappingURL=smarterplan-ngx-smarterplan-core.mjs.map
|