@smarterplan/ngx-smarterplan-core 1.4.27 → 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 +5 -1
- package/esm2022/lib/services/matterport.service.mjs +30 -25
- 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 +3 -3
- 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 +430 -200
- 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/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);
|
|
@@ -5393,14 +5397,15 @@ class MatterportService {
|
|
|
5393
5397
|
console.warn('Cannot show details for tag', error);
|
|
5394
5398
|
}
|
|
5395
5399
|
};
|
|
5396
|
-
// Disable native Matterport actions
|
|
5400
|
+
// Disable native Matterport actions. A tag hidden on another floor stays closed.
|
|
5397
5401
|
const disableNativeActions = (sid) => {
|
|
5398
5402
|
if (!this.sdk || sid === this.mattertagToFollow)
|
|
5399
5403
|
return; // ignore when we are in positioning mode
|
|
5400
5404
|
try {
|
|
5401
5405
|
const tagModule = this.matterportTagService.getTagModule(this.sdk, sid);
|
|
5402
5406
|
if (tagModule?.allowAction) {
|
|
5403
|
-
|
|
5407
|
+
const enabled = this.matterportTagService.isTagEnabled(sid);
|
|
5408
|
+
tagModule.allowAction(sid, { opening: enabled, navigating: enabled, docking: false });
|
|
5404
5409
|
}
|
|
5405
5410
|
}
|
|
5406
5411
|
catch (e) {
|
|
@@ -5418,7 +5423,13 @@ class MatterportService {
|
|
|
5418
5423
|
await this.matterportTagService.ensureSharedTagLayer(this.sdk);
|
|
5419
5424
|
this.initViews();
|
|
5420
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;
|
|
5421
5430
|
this.poseCamera = pose;
|
|
5431
|
+
if (!sweepChanged)
|
|
5432
|
+
return;
|
|
5422
5433
|
this.matterportTagService.updateTagsVisibilityForContext(this.sdk, this.sweepCollection, this.navigationService.currentCameraMode, this.mattertagToFollow, this.navigationService.currentFloorSequence, this.navigationService.currentRooms);
|
|
5423
5434
|
});
|
|
5424
5435
|
setTimeout(() => {
|
|
@@ -5427,17 +5438,15 @@ class MatterportService {
|
|
|
5427
5438
|
if (this.interactionMode === ViewerInteractions.DEFAULT) {
|
|
5428
5439
|
this.navigationService.action_toolbox_inside_view(this.sdk);
|
|
5429
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.
|
|
5430
5445
|
if (this.sdk.Tag && this.sdk.Tag.data) {
|
|
5431
5446
|
this.sdk.Tag.data.subscribe({
|
|
5432
5447
|
onAdded: (sid) => {
|
|
5433
5448
|
disableNativeActions(sid);
|
|
5434
5449
|
},
|
|
5435
|
-
onUpdated: (sid) => {
|
|
5436
|
-
disableNativeActions(sid);
|
|
5437
|
-
},
|
|
5438
|
-
onCollectionUpdated: (collection) => {
|
|
5439
|
-
Object.keys(collection).forEach((sid) => disableNativeActions(sid));
|
|
5440
|
-
}
|
|
5441
5450
|
});
|
|
5442
5451
|
}
|
|
5443
5452
|
resolve(true);
|
|
@@ -5846,22 +5855,22 @@ class MatterportService {
|
|
|
5846
5855
|
);
|
|
5847
5856
|
}*/
|
|
5848
5857
|
addCustomCss() {
|
|
5849
|
-
const css = `
|
|
5850
|
-
.footer-ui,
|
|
5851
|
-
.showcase-footer,
|
|
5852
|
-
.mp-nova-btn-group,
|
|
5853
|
-
.footer-divider,
|
|
5854
|
-
.logo-link,
|
|
5855
|
-
.footer-logo,
|
|
5856
|
-
.bottom-ui,
|
|
5857
|
-
img.logo-image,
|
|
5858
|
-
img[class^="logo-image"],
|
|
5859
|
-
img[class*=" logo-image"],
|
|
5860
|
-
[data-testid="showcase-footer"] {
|
|
5861
|
-
opacity: 0 !important;
|
|
5862
|
-
visibility: hidden !important;
|
|
5863
|
-
pointer-events: none !important;
|
|
5864
|
-
}
|
|
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
|
+
}
|
|
5865
5874
|
`;
|
|
5866
5875
|
// 1st method: Via Scene SDK
|
|
5867
5876
|
if (this.sdk?.Scene?.addStyle) {
|
|
@@ -10624,8 +10633,8 @@ class ViewerService {
|
|
|
10624
10633
|
await new Promise((resolve) => setTimeout(resolve));
|
|
10625
10634
|
}
|
|
10626
10635
|
// Newly created tags have no opacity/allowAction applied yet (only set by
|
|
10627
|
-
// updateTagsVisibilityForContext, which runs on Mode/Sweep/Floor/Room
|
|
10628
|
-
//
|
|
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
|
|
10629
10638
|
// default state the SDK gave them until something else nudges a refresh.
|
|
10630
10639
|
if (this.checkMode('Matterport')) {
|
|
10631
10640
|
this.matterportService.refreshTagsVisibility();
|
|
@@ -11594,11 +11603,11 @@ class ModalSwitchVisitComponent {
|
|
|
11594
11603
|
});
|
|
11595
11604
|
}
|
|
11596
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 });
|
|
11597
|
-
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" }] });
|
|
11598
11607
|
}
|
|
11599
11608
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ModalSwitchVisitComponent, decorators: [{
|
|
11600
11609
|
type: Component,
|
|
11601
|
-
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"] }]
|
|
11602
11611
|
}], ctorParameters: () => [{ type: i1$2.NgbActiveModal }, { type: i1.Router }, { type: ViewerService }], propDecorators: { content: [{
|
|
11603
11612
|
type: Input
|
|
11604
11613
|
}], model3D: [{
|
|
@@ -12219,11 +12228,11 @@ class CsvExportComponent {
|
|
|
12219
12228
|
link.remove();
|
|
12220
12229
|
}
|
|
12221
12230
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CsvExportComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12222
|
-
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" }] });
|
|
12223
12232
|
}
|
|
12224
12233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CsvExportComponent, decorators: [{
|
|
12225
12234
|
type: Component,
|
|
12226
|
-
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"] }]
|
|
12227
12236
|
}], propDecorators: { headers: [{
|
|
12228
12237
|
type: Input
|
|
12229
12238
|
}], rowsInput: [{
|
|
@@ -12441,6 +12450,9 @@ class FilterService {
|
|
|
12441
12450
|
async filterObjectsForZone(objects, // TODO: remove any here..
|
|
12442
12451
|
zoneID = null, zone = null) {
|
|
12443
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();
|
|
12444
12456
|
await Promise.all(objects.map(async (object) => {
|
|
12445
12457
|
const pois = object.pois;
|
|
12446
12458
|
if (pois) {
|
|
@@ -12471,8 +12483,12 @@ class FilterService {
|
|
|
12471
12483
|
}
|
|
12472
12484
|
}
|
|
12473
12485
|
}
|
|
12474
|
-
if (poi && !zone && zoneID) {
|
|
12475
|
-
|
|
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));
|
|
12476
12492
|
if (zones &&
|
|
12477
12493
|
zones.some((zone_) => zone_.id === zoneID ||
|
|
12478
12494
|
zone_.parentID === zoneID)) {
|
|
@@ -15037,6 +15053,8 @@ class TicketsService extends BaseObjectService {
|
|
|
15037
15053
|
space: [],
|
|
15038
15054
|
};
|
|
15039
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);
|
|
15040
15058
|
ticketsFiltered = [];
|
|
15041
15059
|
ticketsUpdated = new Subject();
|
|
15042
15060
|
currentSpaceID;
|
|
@@ -15113,6 +15131,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15113
15131
|
if (this.dateFilter && this.dateFilter[0] != "Invalid Date" && this.dateFilter[1] != "Invalid Date") {
|
|
15114
15132
|
ticketsFiltered = this.filterService.filterObjectsForDateRange(ticketsFiltered, this.dateFilter);
|
|
15115
15133
|
}
|
|
15134
|
+
this.ticketsUnfiltered.next(ticketsFiltered);
|
|
15116
15135
|
if (this.ticketTypeFilter) {
|
|
15117
15136
|
ticketsFiltered = ticketsFiltered.filter((ticket) => this.ticketTypeFilter.includes(ticket.type));
|
|
15118
15137
|
}
|
|
@@ -15502,6 +15521,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15502
15521
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
15503
15522
|
if (!this.currentSpaceID) {
|
|
15504
15523
|
this.ticketTags.next(null);
|
|
15524
|
+
this.ticketsUnfiltered.next(null);
|
|
15505
15525
|
this.ticketsUpdated.next({ space: [], zone: null });
|
|
15506
15526
|
this.ticketTypeFilter = null;
|
|
15507
15527
|
this.zoneIDFilter = null;
|
|
@@ -15521,6 +15541,7 @@ class TicketsService extends BaseObjectService {
|
|
|
15521
15541
|
this.zoneIDFilter = null;
|
|
15522
15542
|
if (!spaceID) {
|
|
15523
15543
|
this.ticketTags.next(null);
|
|
15544
|
+
this.ticketsUnfiltered.next(null);
|
|
15524
15545
|
this.ticketsUpdated.next({ space: [], zone: null });
|
|
15525
15546
|
this.ticketTypeFilter = null;
|
|
15526
15547
|
return;
|
|
@@ -15581,6 +15602,11 @@ class EquipmentService extends BaseObjectService {
|
|
|
15581
15602
|
zonesMap: new Map(),
|
|
15582
15603
|
};
|
|
15583
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);
|
|
15584
15610
|
zoneIDFilter;
|
|
15585
15611
|
currentZone;
|
|
15586
15612
|
currentSpaceID;
|
|
@@ -15963,6 +15989,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
15963
15989
|
equip.documentationImageUrlSigned =
|
|
15964
15990
|
await getSignedImageUrlForEquipment(equip);
|
|
15965
15991
|
}));
|
|
15992
|
+
this.equipmentsUnfiltered.next(filteredEquips);
|
|
15966
15993
|
if (this.equipmentDomainFilter) {
|
|
15967
15994
|
filteredEquips = this.filterService.filterEquipmentsByDomainList(filteredEquips, this.equipmentDomainFilter);
|
|
15968
15995
|
}
|
|
@@ -15978,6 +16005,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
15978
16005
|
}); // for lateral menu
|
|
15979
16006
|
}
|
|
15980
16007
|
else {
|
|
16008
|
+
this.equipmentsUnfiltered.next([]);
|
|
15981
16009
|
if (this.zoneIDFilter) {
|
|
15982
16010
|
this.currentEquipments.zonesMap.set(this.zoneIDFilter, []);
|
|
15983
16011
|
}
|
|
@@ -16126,13 +16154,21 @@ class EquipmentService extends BaseObjectService {
|
|
|
16126
16154
|
this.currentEquipments.zonesMap.get(zone).splice(index, 1);
|
|
16127
16155
|
}
|
|
16128
16156
|
}
|
|
16157
|
+
this.updateUnfiltered((equips) => equips.filter((_equip) => _equip.id !== deletedEquipment.id));
|
|
16129
16158
|
this.equipmentsUpdated.next({
|
|
16130
16159
|
space: this.currentEquipments.space,
|
|
16131
16160
|
zone: this.currentEquipments.zonesMap.get(this.zoneIDFilter),
|
|
16132
16161
|
}); // for lateral menu
|
|
16133
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
|
+
}
|
|
16134
16169
|
updateDueToCreate(createdEquip) {
|
|
16135
16170
|
this.currentEquipments.space.unshift(createdEquip);
|
|
16171
|
+
this.updateUnfiltered((equips) => [createdEquip, ...equips]);
|
|
16136
16172
|
// initEquips only records a zone's list when it has a zone or found equipments, so the first
|
|
16137
16173
|
// equipment of a space viewed without zones (Three.js) arrives with no list to join.
|
|
16138
16174
|
if (!this.currentEquipments.zonesMap.has(this.zoneIDFilter)) {
|
|
@@ -16147,6 +16183,9 @@ class EquipmentService extends BaseObjectService {
|
|
|
16147
16183
|
}); // for lateral menu
|
|
16148
16184
|
}
|
|
16149
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)));
|
|
16150
16189
|
const equip = this.currentEquipments.space.find((_equip) => _equip.id === updatedEquip.id);
|
|
16151
16190
|
if (equip) {
|
|
16152
16191
|
const index = this.currentEquipments.space.indexOf(equip);
|
|
@@ -16191,6 +16230,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16191
16230
|
if (!zone || !this.navigatorService.currentSpaceID) {
|
|
16192
16231
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
16193
16232
|
this.equipmentsTags.next(null);
|
|
16233
|
+
this.equipmentsUnfiltered.next(null);
|
|
16194
16234
|
this.equipmentsUpdated.next({ space: [], zone: null });
|
|
16195
16235
|
this.zoneIDFilter = null;
|
|
16196
16236
|
this.currentEquipments = {
|
|
@@ -16207,6 +16247,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16207
16247
|
}
|
|
16208
16248
|
else {
|
|
16209
16249
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
16250
|
+
this.equipmentsUnfiltered.next(null);
|
|
16210
16251
|
this.initEquips();
|
|
16211
16252
|
}
|
|
16212
16253
|
}
|
|
@@ -16224,6 +16265,7 @@ class EquipmentService extends BaseObjectService {
|
|
|
16224
16265
|
space: [],
|
|
16225
16266
|
zonesMap: new Map(),
|
|
16226
16267
|
};
|
|
16268
|
+
this.equipmentsUnfiltered.next(null);
|
|
16227
16269
|
if (!spaceID) {
|
|
16228
16270
|
this.equipmentsTags.next(null);
|
|
16229
16271
|
this.equipmentsUpdated.next({ space: [], zone: null });
|
|
@@ -16445,11 +16487,11 @@ class SearchBarComponent {
|
|
|
16445
16487
|
this.searchEvent.emit(results);
|
|
16446
16488
|
}
|
|
16447
16489
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchBarComponent, deps: [{ token: SearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16448
|
-
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" }] });
|
|
16449
16491
|
}
|
|
16450
16492
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SearchBarComponent, decorators: [{
|
|
16451
16493
|
type: Component,
|
|
16452
|
-
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"] }]
|
|
16453
16495
|
}], ctorParameters: () => [{ type: SearchService }], propDecorators: { searchable: [{
|
|
16454
16496
|
type: Input
|
|
16455
16497
|
}], objectType: [{
|
|
@@ -16897,11 +16939,11 @@ class LoaderComponent {
|
|
|
16897
16939
|
document.documentElement.style.setProperty('--color', this.color);
|
|
16898
16940
|
}
|
|
16899
16941
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16900
|
-
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"] }] });
|
|
16901
16943
|
}
|
|
16902
16944
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
16903
16945
|
type: Component,
|
|
16904
|
-
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"] }]
|
|
16905
16947
|
}], ctorParameters: () => [], propDecorators: { useLogo: [{
|
|
16906
16948
|
type: Input
|
|
16907
16949
|
}], color: [{
|
|
@@ -16959,11 +17001,11 @@ class SupportModalComponent {
|
|
|
16959
17001
|
}
|
|
16960
17002
|
}
|
|
16961
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 });
|
|
16962
|
-
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" }] });
|
|
16963
17005
|
}
|
|
16964
17006
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: SupportModalComponent, decorators: [{
|
|
16965
17007
|
type: Component,
|
|
16966
|
-
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"] }]
|
|
16967
17009
|
}], ctorParameters: () => [{ type: SupportService }, { type: i1$2.NgbActiveModal }, { type: i3.UntypedFormBuilder }, { type: BaseUserService }, { type: ValidatorsService }] });
|
|
16968
17010
|
|
|
16969
17011
|
class LocaleService {
|
|
@@ -17170,6 +17212,11 @@ class FeatureService extends BaseObjectService {
|
|
|
17170
17212
|
zone: [],
|
|
17171
17213
|
};
|
|
17172
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);
|
|
17173
17220
|
featureFiltered = [];
|
|
17174
17221
|
updateDone = new Subject();
|
|
17175
17222
|
zoneIDFilter;
|
|
@@ -17198,6 +17245,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17198
17245
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
17199
17246
|
if (!this.currentSpaceID) {
|
|
17200
17247
|
this.featureTags.next(null);
|
|
17248
|
+
this.featuresUnfiltered.next(null);
|
|
17201
17249
|
this.featureUpdated.next({ space: [], zone: null });
|
|
17202
17250
|
this.zoneIDFilter = null;
|
|
17203
17251
|
}
|
|
@@ -17213,6 +17261,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17213
17261
|
this.zoneIDFilter = null;
|
|
17214
17262
|
if (!spaceID) {
|
|
17215
17263
|
this.featureTags.next(null);
|
|
17264
|
+
this.featuresUnfiltered.next(null);
|
|
17216
17265
|
this.featureUpdated.next({ space: [], zone: null });
|
|
17217
17266
|
}
|
|
17218
17267
|
else if (!this.userService.isMuseumUser(spaceID)) {
|
|
@@ -17281,6 +17330,7 @@ class FeatureService extends BaseObjectService {
|
|
|
17281
17330
|
const featureList = await this.getFeaturesForSpace(this.currentSpaceID);
|
|
17282
17331
|
this.currentHashtags = await this.hashtagService.getHashtagsForSpace(this.currentSpaceID);
|
|
17283
17332
|
// console.log(this.currentHashtags);
|
|
17333
|
+
this.featuresUnfiltered.next(featureList);
|
|
17284
17334
|
if (featureList.length > 0) {
|
|
17285
17335
|
let filteredFeatures = [...featureList];
|
|
17286
17336
|
let filteredPointInterest = filteredFeatures.filter((feature) => feature.type !== FeatureType.DESK);
|
|
@@ -17526,6 +17576,9 @@ class FeatureService extends BaseObjectService {
|
|
|
17526
17576
|
});
|
|
17527
17577
|
}
|
|
17528
17578
|
async updateDueToCreate(feature) {
|
|
17579
|
+
if (this.featuresUnfiltered.value) {
|
|
17580
|
+
this.featuresUnfiltered.next([feature, ...this.featuresUnfiltered.value]);
|
|
17581
|
+
}
|
|
17529
17582
|
this.currentFeatures.space.unshift(feature);
|
|
17530
17583
|
this.currentFeatures.zone.unshift(feature);
|
|
17531
17584
|
this.featureUpdated.next({
|
|
@@ -17534,6 +17587,9 @@ class FeatureService extends BaseObjectService {
|
|
|
17534
17587
|
}); // for lateral menu
|
|
17535
17588
|
}
|
|
17536
17589
|
async updateDueToDelete(deletedFeature) {
|
|
17590
|
+
if (this.featuresUnfiltered.value) {
|
|
17591
|
+
this.featuresUnfiltered.next(this.featuresUnfiltered.value.filter((_feature) => _feature.id !== deletedFeature.id));
|
|
17592
|
+
}
|
|
17537
17593
|
const feature = this.currentFeatures.space.find((_feature) => _feature.id === deletedFeature.id);
|
|
17538
17594
|
if (feature) {
|
|
17539
17595
|
const index = this.currentFeatures.space.indexOf(feature);
|
|
@@ -17573,6 +17629,8 @@ class MeasurementService {
|
|
|
17573
17629
|
path = 'measurements/';
|
|
17574
17630
|
currentMeasurements = { space: [], zone: [] };
|
|
17575
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);
|
|
17576
17634
|
measurementsUpdated = new Subject();
|
|
17577
17635
|
currentSpaceID;
|
|
17578
17636
|
zoneIDFilter;
|
|
@@ -17599,6 +17657,7 @@ class MeasurementService {
|
|
|
17599
17657
|
this.currentSpaceID = this.navigatorService.currentSpaceID;
|
|
17600
17658
|
if (!this.currentSpaceID) {
|
|
17601
17659
|
this.measurementsTags.next(null);
|
|
17660
|
+
this.measurementsUnfiltered.next(null);
|
|
17602
17661
|
this.measurementsUpdated.next({ space: [], zone: null });
|
|
17603
17662
|
this.measurementFilter = null;
|
|
17604
17663
|
this.zoneIDFilter = null;
|
|
@@ -17616,6 +17675,7 @@ class MeasurementService {
|
|
|
17616
17675
|
this.zoneIDFilter = null;
|
|
17617
17676
|
if (!spaceID) {
|
|
17618
17677
|
this.measurementsTags.next(null);
|
|
17678
|
+
this.measurementsUnfiltered.next(null);
|
|
17619
17679
|
this.measurementsUpdated.next({ space: [], zone: null });
|
|
17620
17680
|
this.measurementFilter = null;
|
|
17621
17681
|
return;
|
|
@@ -17643,6 +17703,7 @@ class MeasurementService {
|
|
|
17643
17703
|
if (this.dateFilter) {
|
|
17644
17704
|
measurements = this.filterService.filterMeasurementsForDateRange(measurements, this.dateFilter);
|
|
17645
17705
|
}
|
|
17706
|
+
this.measurementsUnfiltered.next(measurements);
|
|
17646
17707
|
if (this.measurementFilter) {
|
|
17647
17708
|
measurements = [];
|
|
17648
17709
|
}
|
|
@@ -17664,6 +17725,7 @@ class MeasurementService {
|
|
|
17664
17725
|
this.measurementsUpdated.next(this.currentMeasurements);
|
|
17665
17726
|
}
|
|
17666
17727
|
else {
|
|
17728
|
+
this.measurementsUnfiltered.next([]);
|
|
17667
17729
|
this.currentMeasurements.space = [];
|
|
17668
17730
|
this.currentMeasurements.zone = [];
|
|
17669
17731
|
this.measurementsUpdated.next({ space: [], zone: [] }); // for lateral menu
|
|
@@ -18404,11 +18466,11 @@ class NavigationBarComponent {
|
|
|
18404
18466
|
this.baseVisibilityService.isChangePositionVisible.next(false);
|
|
18405
18467
|
}
|
|
18406
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 });
|
|
18407
|
-
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" }] });
|
|
18408
18470
|
}
|
|
18409
18471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NavigationBarComponent, decorators: [{
|
|
18410
18472
|
type: Component,
|
|
18411
|
-
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"] }]
|
|
18412
18474
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
18413
18475
|
type: Inject,
|
|
18414
18476
|
args: ['currentAwsKinesisAnalyticsService']
|
|
@@ -18678,11 +18740,11 @@ class MenuBarComponent {
|
|
|
18678
18740
|
}
|
|
18679
18741
|
}
|
|
18680
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 });
|
|
18681
|
-
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" }] });
|
|
18682
18744
|
}
|
|
18683
18745
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MenuBarComponent, decorators: [{
|
|
18684
18746
|
type: Component,
|
|
18685
|
-
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"] }]
|
|
18686
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: [{
|
|
18687
18749
|
type: Input
|
|
18688
18750
|
}] } });
|
|
@@ -19088,8 +19150,8 @@ class InventoryService {
|
|
|
19088
19150
|
}
|
|
19089
19151
|
/** The space's inventories, the latest first. */
|
|
19090
19152
|
async getRuns(spaceID) {
|
|
19091
|
-
const query = (fields) => `query InventoriesBySpace($spaceID: ID!, $limit: Int) {
|
|
19092
|
-
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} } }
|
|
19093
19155
|
}`;
|
|
19094
19156
|
let response;
|
|
19095
19157
|
try {
|
|
@@ -19415,11 +19477,11 @@ class InventoryRunsComponent {
|
|
|
19415
19477
|
}
|
|
19416
19478
|
}
|
|
19417
19479
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryRunsComponent, deps: [{ token: InventoryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19418
|
-
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" }] });
|
|
19419
19481
|
}
|
|
19420
19482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryRunsComponent, decorators: [{
|
|
19421
19483
|
type: Component,
|
|
19422
|
-
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"] }]
|
|
19423
19485
|
}], ctorParameters: () => [{ type: InventoryService }], propDecorators: { spaceID: [{
|
|
19424
19486
|
type: Input
|
|
19425
19487
|
}], nodeIDs: [{
|
|
@@ -19475,72 +19537,72 @@ class InventoryFilesComponent {
|
|
|
19475
19537
|
}
|
|
19476
19538
|
}
|
|
19477
19539
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19478
|
-
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: `
|
|
19479
|
-
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19480
|
-
<li [class.missing]="!files.panoramas">
|
|
19481
|
-
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19482
|
-
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19483
|
-
</li>
|
|
19484
|
-
<li [class.missing]="!files.dataJson">
|
|
19485
|
-
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19486
|
-
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19487
|
-
</li>
|
|
19488
|
-
<li [class.missing]="!files.modelObj">
|
|
19489
|
-
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19490
|
-
<span class="hint" *ngIf="!files.modelObj">
|
|
19491
|
-
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19492
|
-
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19493
|
-
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19494
|
-
{{ "Send the .obj" | translate }}
|
|
19495
|
-
</label>
|
|
19496
|
-
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19497
|
-
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19498
|
-
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19499
|
-
</span>
|
|
19500
|
-
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19501
|
-
</span>
|
|
19502
|
-
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19503
|
-
</span>
|
|
19504
|
-
</li>
|
|
19505
|
-
</ul>
|
|
19506
|
-
<ng-template #unknown>
|
|
19507
|
-
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19508
|
-
</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>
|
|
19509
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" }] });
|
|
19510
19572
|
}
|
|
19511
19573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InventoryFilesComponent, decorators: [{
|
|
19512
19574
|
type: Component,
|
|
19513
|
-
args: [{ selector: "lib-inventory-files", template: `
|
|
19514
|
-
<ul class="inventory-files" *ngIf="files; else unknown">
|
|
19515
|
-
<li [class.missing]="!files.panoramas">
|
|
19516
|
-
{{ files.panoramas ? "✓" : "✗" }} {{ "Panoramas" | translate }}: {{ files.panoramas }}
|
|
19517
|
-
<span class="hint" *ngIf="!files.panoramas">{{ "Import the 360° images of the visit first." | translate }}</span>
|
|
19518
|
-
</li>
|
|
19519
|
-
<li [class.missing]="!files.dataJson">
|
|
19520
|
-
{{ files.dataJson ? "✓" : "✗" }} {{ "Panorama positions" | translate }} (data.json)
|
|
19521
|
-
<span class="hint" *ngIf="!files.dataJson">{{ "Import all the images of the visit again (Virtual Visits): the import writes it." | translate }}</span>
|
|
19522
|
-
</li>
|
|
19523
|
-
<li [class.missing]="!files.modelObj">
|
|
19524
|
-
{{ files.modelObj ? "✓" : "✗" }} {{ "3D mesh" | translate }} (model.obj)
|
|
19525
|
-
<span class="hint" *ngIf="!files.modelObj">
|
|
19526
|
-
{{ "The .obj of the visit's MatterPak, from Matterport. Its textures are not needed." | translate }}
|
|
19527
|
-
<label class="btn btn-sm btn-outline-primary rounded-pill upload" *ngIf="uploadPercent === null">
|
|
19528
|
-
<input type="file" accept=".obj" (change)="onModelObjSelected($event)">
|
|
19529
|
-
{{ "Send the .obj" | translate }}
|
|
19530
|
-
</label>
|
|
19531
|
-
<span *ngIf="uploadPercent !== null" class="sending">
|
|
19532
|
-
<span class="progress" role="progressbar" [attr.aria-valuenow]="uploadPercent" aria-valuemin="0" aria-valuemax="100">
|
|
19533
|
-
<span class="progress-bar" [style.width.%]="uploadPercent"></span>
|
|
19534
|
-
</span>
|
|
19535
|
-
{{ "Sending" | translate }} {{ uploadName }} — {{ uploadPercent }}%
|
|
19536
|
-
</span>
|
|
19537
|
-
<span class="error" *ngIf="uploadError">{{ uploadError | translate }}</span>
|
|
19538
|
-
</span>
|
|
19539
|
-
</li>
|
|
19540
|
-
</ul>
|
|
19541
|
-
<ng-template #unknown>
|
|
19542
|
-
<p class="hint">{{ "The files of the visit could not be checked." | translate }}</p>
|
|
19543
|
-
</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>
|
|
19544
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"] }]
|
|
19545
19607
|
}], propDecorators: { files: [{
|
|
19546
19608
|
type: Input
|
|
@@ -19550,6 +19612,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19550
19612
|
type: Input
|
|
19551
19613
|
}] } });
|
|
19552
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
|
+
|
|
19553
19775
|
class NgxSmarterplanCoreModule {
|
|
19554
19776
|
static forRoot(config) {
|
|
19555
19777
|
return {
|
|
@@ -19579,7 +19801,9 @@ class NgxSmarterplanCoreModule {
|
|
|
19579
19801
|
FormatDateNumberToDigitsPipe,
|
|
19580
19802
|
SplatViewerComponent,
|
|
19581
19803
|
InventoryRunsComponent,
|
|
19582
|
-
InventoryFilesComponent
|
|
19804
|
+
InventoryFilesComponent,
|
|
19805
|
+
InventoryLaunchComponent,
|
|
19806
|
+
CheckboxSliderComponent], imports: [FormsModule,
|
|
19583
19807
|
ReactiveFormsModule,
|
|
19584
19808
|
CommonModule,
|
|
19585
19809
|
RouterModule,
|
|
@@ -19597,7 +19821,9 @@ class NgxSmarterplanCoreModule {
|
|
|
19597
19821
|
AvatarComponent,
|
|
19598
19822
|
SplatViewerComponent,
|
|
19599
19823
|
InventoryRunsComponent,
|
|
19600
|
-
InventoryFilesComponent
|
|
19824
|
+
InventoryFilesComponent,
|
|
19825
|
+
InventoryLaunchComponent,
|
|
19826
|
+
CheckboxSliderComponent] });
|
|
19601
19827
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: NgxSmarterplanCoreModule, imports: [FormsModule,
|
|
19602
19828
|
ReactiveFormsModule,
|
|
19603
19829
|
CommonModule,
|
|
@@ -19628,7 +19854,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19628
19854
|
FormatDateNumberToDigitsPipe,
|
|
19629
19855
|
SplatViewerComponent,
|
|
19630
19856
|
InventoryRunsComponent,
|
|
19631
|
-
InventoryFilesComponent
|
|
19857
|
+
InventoryFilesComponent,
|
|
19858
|
+
InventoryLaunchComponent,
|
|
19859
|
+
CheckboxSliderComponent
|
|
19632
19860
|
],
|
|
19633
19861
|
imports: [
|
|
19634
19862
|
FormsModule,
|
|
@@ -19656,6 +19884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
19656
19884
|
SplatViewerComponent,
|
|
19657
19885
|
InventoryRunsComponent,
|
|
19658
19886
|
InventoryFilesComponent,
|
|
19887
|
+
InventoryLaunchComponent,
|
|
19888
|
+
CheckboxSliderComponent,
|
|
19659
19889
|
]
|
|
19660
19890
|
}]
|
|
19661
19891
|
}] });
|
|
@@ -19715,27 +19945,27 @@ class BaseTagService {
|
|
|
19715
19945
|
throw new Error('updatePoiMetadata is not implemented in the base class.');
|
|
19716
19946
|
}*/
|
|
19717
19947
|
async prepareEquipmentHtml(equip) {
|
|
19718
|
-
throw new Error(`prepareEquipmentHtml is not implemented in the base class.
|
|
19948
|
+
throw new Error(`prepareEquipmentHtml is not implemented in the base class.
|
|
19719
19949
|
Please override this method in your extended class.`);
|
|
19720
19950
|
}
|
|
19721
19951
|
async prepareTicketHtml(ticket) {
|
|
19722
|
-
throw new Error(`prepareTicketHtml is not implemented in the base class.
|
|
19952
|
+
throw new Error(`prepareTicketHtml is not implemented in the base class.
|
|
19723
19953
|
Please override this method in your extended class.`);
|
|
19724
19954
|
}
|
|
19725
19955
|
async prepareFeatureHtml(feature) {
|
|
19726
|
-
throw new Error(`prepareFeatureHtml is not implemented in the base class.
|
|
19956
|
+
throw new Error(`prepareFeatureHtml is not implemented in the base class.
|
|
19727
19957
|
Please override this method in your extended class.`);
|
|
19728
19958
|
}
|
|
19729
19959
|
async prepareMeasurementHtml(measure) {
|
|
19730
|
-
throw new Error(`prepareMeasurementHtml is not implemented in the base class.
|
|
19960
|
+
throw new Error(`prepareMeasurementHtml is not implemented in the base class.
|
|
19731
19961
|
Please override this method in your extended class.`);
|
|
19732
19962
|
}
|
|
19733
19963
|
async prepareDeskHtml(feature) {
|
|
19734
|
-
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19964
|
+
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19735
19965
|
Please override this method in your extended class.`);
|
|
19736
19966
|
}
|
|
19737
19967
|
async prepareIndicatorHtml(feature) {
|
|
19738
|
-
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19968
|
+
throw new Error(`prepareDeskHtml is not implemented in the base class.
|
|
19739
19969
|
Please override this method in your extended class.`);
|
|
19740
19970
|
}
|
|
19741
19971
|
async getSignedTagIconSource(tagIconSrc) {
|
|
@@ -19744,15 +19974,15 @@ class BaseTagService {
|
|
|
19744
19974
|
getIconTagImageForFeature(feature, poi) {
|
|
19745
19975
|
// const tagIcon = JSON.parse(poi.tagIcon);
|
|
19746
19976
|
// return tagIcon.src;
|
|
19747
|
-
throw new Error(`getIconTagImageForFeature is not implemented in the base class.
|
|
19977
|
+
throw new Error(`getIconTagImageForFeature is not implemented in the base class.
|
|
19748
19978
|
Please override this method in your extended class.`);
|
|
19749
19979
|
}
|
|
19750
19980
|
getScriptForTag(object, tagType) {
|
|
19751
|
-
throw new Error(`getScriptForTag is not implemented in the base class.
|
|
19981
|
+
throw new Error(`getScriptForTag is not implemented in the base class.
|
|
19752
19982
|
Please override this method in your extended class.`);
|
|
19753
19983
|
}
|
|
19754
19984
|
getAnnexeForCommentTypeInFeature(feature, commentType) {
|
|
19755
|
-
throw new Error(`getAnnexeForCommentTypeInFeature is not implemented in the base class.
|
|
19985
|
+
throw new Error(`getAnnexeForCommentTypeInFeature is not implemented in the base class.
|
|
19756
19986
|
Please override this method in your extended class.`);
|
|
19757
19987
|
}
|
|
19758
19988
|
getBillboardMediaToEmbed(object) {
|
|
@@ -19761,27 +19991,27 @@ class BaseTagService {
|
|
|
19761
19991
|
return { comment: null, tagDescription: '' };
|
|
19762
19992
|
}
|
|
19763
19993
|
onActionDetailClick(url) {
|
|
19764
|
-
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19994
|
+
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19765
19995
|
Please override this method in your extended class.`);
|
|
19766
19996
|
}
|
|
19767
19997
|
onActionAudioClick(audioCommentID) {
|
|
19768
|
-
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19998
|
+
throw new Error(`onActionDetailClick is not implemented in the base class.
|
|
19769
19999
|
Please override this method in your extended class.`);
|
|
19770
20000
|
}
|
|
19771
20001
|
onActionVideoClick(url) {
|
|
19772
|
-
throw new Error(`onActionVideoClick is not implemented in the base class.
|
|
20002
|
+
throw new Error(`onActionVideoClick is not implemented in the base class.
|
|
19773
20003
|
Please override this method in your extended class.`);
|
|
19774
20004
|
}
|
|
19775
20005
|
onActionImageClick(imageCommentID) {
|
|
19776
|
-
throw new Error(`onActionImageClick is not implemented in the base class.
|
|
20006
|
+
throw new Error(`onActionImageClick is not implemented in the base class.
|
|
19777
20007
|
Please override this method in your extended class.`);
|
|
19778
20008
|
}
|
|
19779
20009
|
onActionDocClick(url) {
|
|
19780
|
-
throw new Error(`onActionDocClick is not implemented in the base class.
|
|
20010
|
+
throw new Error(`onActionDocClick is not implemented in the base class.
|
|
19781
20011
|
Please override this method in your extended class.`);
|
|
19782
20012
|
}
|
|
19783
20013
|
onActionYoutubeClick(url) {
|
|
19784
|
-
throw new Error(`onActionYoutubeClick is not implemented in the base class.
|
|
20014
|
+
throw new Error(`onActionYoutubeClick is not implemented in the base class.
|
|
19785
20015
|
Please override this method in your extended class.`);
|
|
19786
20016
|
}
|
|
19787
20017
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BaseTagService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -24078,5 +24308,5 @@ function floatValidator() {
|
|
|
24078
24308
|
* Generated bundle index. Do not edit.
|
|
24079
24309
|
*/
|
|
24080
24310
|
|
|
24081
|
-
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 };
|
|
24082
24312
|
//# sourceMappingURL=smarterplan-ngx-smarterplan-core.mjs.map
|