project-booster-vue 9.11.0 → 9.13.1
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/package.json +6 -6
- package/src/components/mozaic/notifications/MNotification.stories.mdx +16 -1
- package/src/components/mozaic/notifications/MNotification.vue +8 -2
- package/src/components/mozaic/notifications/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-mozaic-components-m-notification-/360/237/247/254-showcase-is-big-1-snap.png +0 -0
- package/src/components/mozaic/notifications/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-mozaic-components-m-notification-/360/237/247/254-showcase-type-1-snap.png +0 -0
- package/src/components/projects/project-hub/PbProjectHub-Collaborator.stories.mdx +7 -1
- package/src/components/projects/project-hub/PbProjectHub.vue +8 -8
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-appointment-showcase-with-appointment-in-the-past-1-snap.png +0 -0
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-appointment-showcase-with-cancelled-appointment-1-snap.png +0 -0
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-appointment-showcase-with-cancelled-appointment-in-the-past-1-snap.png +0 -0
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-appointment-showcase-with-store-appointment-1-snap.png +0 -0
- package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-appointment-showcase-with-visio-appointment-1-snap.png +0 -0
- package/src/services/api/appointmentQualificationsApi.ts +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "project-booster-vue",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -119,12 +119,12 @@
|
|
|
119
119
|
"@typescript-eslint/parser": "4.18.0",
|
|
120
120
|
"@vue/babel-preset-app": "4.5.13",
|
|
121
121
|
"@vue/compat": "3.2.6",
|
|
122
|
-
"@vue/cli": "5.0.
|
|
123
|
-
"@vue/cli-plugin-babel": "5.0.
|
|
124
|
-
"@vue/cli-plugin-eslint": "5.0.
|
|
125
|
-
"@vue/cli-plugin-typescript": "
|
|
122
|
+
"@vue/cli": "5.0.4",
|
|
123
|
+
"@vue/cli-plugin-babel": "5.0.4",
|
|
124
|
+
"@vue/cli-plugin-eslint": "5.0.4",
|
|
125
|
+
"@vue/cli-plugin-typescript": "5.0.4",
|
|
126
126
|
"@vue/cli-plugin-unit-jest": "4.5.16",
|
|
127
|
-
"@vue/cli-service": "5.0.
|
|
127
|
+
"@vue/cli-service": "5.0.4",
|
|
128
128
|
"@vue/compiler-sfc": "3.2.31",
|
|
129
129
|
"@vue/eslint-config-prettier": "6.0.0",
|
|
130
130
|
"@vue/eslint-config-standard": "6.0.0",
|
|
@@ -184,7 +184,22 @@ export const TemplateSandbox = (args, { argTypes }) => ({
|
|
|
184
184
|
<m-notification title="success" type="success" />
|
|
185
185
|
<m-notification title="warning" type="warning" />
|
|
186
186
|
<m-notification title="danger" type="danger" />
|
|
187
|
-
|
|
187
|
+
</div>
|
|
188
|
+
`,
|
|
189
|
+
}}
|
|
190
|
+
</Story>
|
|
191
|
+
</Canvas>
|
|
192
|
+
|
|
193
|
+
## **isBig** prop
|
|
194
|
+
|
|
195
|
+
<Canvas>
|
|
196
|
+
<Story name="Showcase - Is big" parameters={{ controls: { disable: true } }}>
|
|
197
|
+
{{
|
|
198
|
+
components: { MNotification },
|
|
199
|
+
template: `
|
|
200
|
+
<div style="display: flex;flex-direction: column;gap: 1rem;">
|
|
201
|
+
<m-notification title="Normal" text="Some text" type="information" link-label="The lnk label" link-href="#"/>
|
|
202
|
+
<m-notification title="Big" text="Some text" type="information" link-label="The lnk label" link-href="#" is-big />
|
|
188
203
|
</div>
|
|
189
204
|
`,
|
|
190
205
|
}}
|
|
@@ -252,10 +252,16 @@ $responsive-breakpoint: 'm';
|
|
|
252
252
|
|
|
253
253
|
.mc-notification__message {
|
|
254
254
|
@include set-font-scale('06', 's');
|
|
255
|
+
|
|
256
|
+
margin-top: $mu100;
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
.mc-notification__link
|
|
258
|
-
|
|
259
|
+
.mc-notification__link {
|
|
260
|
+
margin-top: $mu100;
|
|
261
|
+
|
|
262
|
+
.mc-link__label {
|
|
263
|
+
@include set-font-scale('06', 's');
|
|
264
|
+
}
|
|
259
265
|
}
|
|
260
266
|
}
|
|
261
267
|
|
|
@@ -220,7 +220,7 @@ The `PbProjectHub` component to access your project.
|
|
|
220
220
|
rest.patch('/api/media/:mediaId', getMediumByIdResolver),
|
|
221
221
|
rest.delete('/api/media/:mediaId', successResolver),
|
|
222
222
|
rest.patch('/api/media/:mediaId', notContentResolver),
|
|
223
|
-
rest.get('/api/inhabitant-projects/:projectId/documents
|
|
223
|
+
rest.get('/api/inhabitant-projects/:projectId/documents', getDocumentsByInhabitantProjectIdResolver),
|
|
224
224
|
rest.get('/api/inhabitant-projects/:projectId/documents/:documentId', getDocumentByIdResolver),
|
|
225
225
|
rest.delete('/api/inhabitant-projects/:projectId/documents/:documentId', successResolver),
|
|
226
226
|
rest.get(
|
|
@@ -237,6 +237,10 @@ The `PbProjectHub` component to access your project.
|
|
|
237
237
|
>
|
|
238
238
|
{{
|
|
239
239
|
components: { PbProjectHub },
|
|
240
|
+
mounted() {
|
|
241
|
+
this.$store.dispatch('media/updateContext', { type: 'MEDIA' });
|
|
242
|
+
this.$store.dispatch('documents/updateContext', { type: 'DOCUMENTS' });
|
|
243
|
+
},
|
|
240
244
|
template: ` <div style="margin: 0 auto;min-height: 100vh;width: 100%;max-width: 1024px;">
|
|
241
245
|
<router-view v-slot="{ Component }">
|
|
242
246
|
<keep-alive include="PbProjectHub">
|
|
@@ -301,6 +305,8 @@ The `PbProjectHub` component to access your project.
|
|
|
301
305
|
{{
|
|
302
306
|
components: { PbProjectHub },
|
|
303
307
|
mounted() {
|
|
308
|
+
this.$store.dispatch('media/updateContext', { type: 'MEDIA' });
|
|
309
|
+
this.$store.dispatch('documents/updateContext', { type: 'DOCUMENTS' });
|
|
304
310
|
this.$router.push({
|
|
305
311
|
name: 'ProjectHub',
|
|
306
312
|
params: { projectId: 'EMPTY' },
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<div class="pb-project-hub__section-title-container">
|
|
85
85
|
<div class="pb-project-hub__section-title">{{ titleDocument }}</div>
|
|
86
86
|
<pb-media-upload
|
|
87
|
-
v-if="displayedDocuments && displayedDocuments.length > 0"
|
|
87
|
+
v-if="!readOnly && displayedDocuments && displayedDocuments.length > 0"
|
|
88
88
|
storeModuleName="documents"
|
|
89
89
|
:payload="DOCUMENT_UPLOAD_PAYLOAD"
|
|
90
90
|
acceptedFileTypes="image jpeg, image png, image heif, image heic, image/heif-sequence, image/heic-sequence, application
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
</m-flexy>
|
|
131
131
|
<m-link
|
|
132
132
|
class="pb-project-hub__section-content-link"
|
|
133
|
-
label="Gérer
|
|
133
|
+
label="Gérer les documents"
|
|
134
134
|
@click="$router.push({ name: 'PbDocuments' })"
|
|
135
135
|
/>
|
|
136
136
|
</m-container>
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
'pb-project-hub__section--hidden': !(
|
|
259
259
|
(isLoadingConfigurations || configurations.length > 0 || !!configurationsLoadError) &&
|
|
260
260
|
!isLoadingTools &&
|
|
261
|
-
tools &&
|
|
261
|
+
(tools || readOnly) &&
|
|
262
262
|
configurators.length !== 0
|
|
263
263
|
),
|
|
264
264
|
}"
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
<div class="pb-project-hub__section-title-container">
|
|
395
395
|
<div class="pb-project-hub__section-title">{{ titlePhotoInspiration }}</div>
|
|
396
396
|
<pb-media-upload
|
|
397
|
-
v-if="displayedInspirations && displayedInspirations.length > 0"
|
|
397
|
+
v-if="!readOnly && displayedInspirations && displayedInspirations.length > 0"
|
|
398
398
|
storeModuleName="documents"
|
|
399
399
|
:payload="MEDIA_UPLOAD_PAYLOAD"
|
|
400
400
|
@media-uploaded="handleMediaUploaded"
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
</m-flexy>
|
|
443
443
|
<m-link
|
|
444
444
|
class="pb-project-hub__section-content-link"
|
|
445
|
-
label="Gérer
|
|
445
|
+
label="Gérer les inspirations"
|
|
446
446
|
@click="$router.push({ name: 'PbInspirations' })"
|
|
447
447
|
/>
|
|
448
448
|
</m-container>
|
|
@@ -1129,7 +1129,7 @@ export default defineComponent({
|
|
|
1129
1129
|
})} à ${appointmentDate.toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' })}`;
|
|
1130
1130
|
const appointmentTypeLabel = (<Record<string, string>>{
|
|
1131
1131
|
KITCHEN_IN_STORE: 'en magasin',
|
|
1132
|
-
KITCHEN_REMOTE: '
|
|
1132
|
+
KITCHEN_REMOTE: 'à distance',
|
|
1133
1133
|
})[this.appointment.appointmentType];
|
|
1134
1134
|
return `${prefix} le ${appointmenDateLabel} ${appointmentTypeLabel}`;
|
|
1135
1135
|
},
|
|
@@ -1140,8 +1140,8 @@ export default defineComponent({
|
|
|
1140
1140
|
: this.appointment.isPast
|
|
1141
1141
|
? 'Date du rendez-vous passée.'
|
|
1142
1142
|
: this.appointment.appointmentType === 'KITCHEN_IN_STORE'
|
|
1143
|
-
? 'N’oubliez pas !'
|
|
1144
|
-
: "Retrouvez le lien d'accès à la visio-conférence dans le mail qui vous
|
|
1143
|
+
? 'Si vous le souhaitez vous pourrez annuler le rendez-vous dans le mail qui vous a été envoyé.<br/>N’oubliez pas !'
|
|
1144
|
+
: "Retrouvez le lien d'accès à la visio-conférence dans le mail qui vous a été envoyé.<br/>Si vous le souhaitez vous pourrez annuler le rendez-vous dans ce mail.<br/>N’oubliez pas !";
|
|
1145
1145
|
},
|
|
1146
1146
|
|
|
1147
1147
|
appointmentNotificationLinkLabel() {
|
|
@@ -25,9 +25,10 @@ const getAppointmentQualification = async (
|
|
|
25
25
|
groupId: string,
|
|
26
26
|
appointmentId: string,
|
|
27
27
|
) => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
let url = `/appointment-qualifications?range=${start}-${end}&groupId=${groupId}&appointmentId=${appointmentId}`;
|
|
29
|
+
if (inhabitantProjectId) {
|
|
30
|
+
url += `&inhabitantProjectId=${inhabitantProjectId}`;
|
|
31
|
+
}
|
|
31
32
|
const response = await clientApi.get(url);
|
|
32
33
|
|
|
33
34
|
return response.data;
|