project-booster-vue 8.115.6 → 8.115.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "8.115.6",
3
+ "version": "8.115.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test:unit": "vue-cli-service test:unit --forceExit --detectOpenHandles",
@@ -62,7 +62,7 @@
62
62
  </div>
63
63
  </m-flex>
64
64
  </m-flex>
65
- <m-flex class="pb-dimensions-input__buttons-container" direction="column">
65
+ <m-flex class="pb-dimensions-input__buttons-container" direction="column" align-items="center">
66
66
  <m-button
67
67
  class="pb-dimensions-input__button"
68
68
  :label="computedPayload.viewModel.actionLabel"
@@ -70,6 +70,15 @@
70
70
  size="l"
71
71
  @click="handleFormSubmit"
72
72
  />
73
+ <m-link
74
+ v-if="payload.skippable"
75
+ class="pb-dimensions-input__link"
76
+ :label="payload.skippable.label"
77
+ width="full"
78
+ size="l"
79
+ @click="skipQuestion"
80
+ :theme="payload.skippable.theme"
81
+ />
73
82
  </m-flex>
74
83
  </m-flex>
75
84
  </form>
@@ -266,7 +275,17 @@ export default {
266
275
  ],
267
276
  });
268
277
  });
269
-
278
+ const skipQuestion = () => {
279
+ /**
280
+ * Emitted when step is completed
281
+ * @event dynamic event name according to completedEventName prop
282
+ * @type {Event}
283
+ */
284
+ emit(props.completedEventName, {
285
+ answers: props.payload?.skippable?.defaultAnswer ? [props.payload?.skippable?.defaultAnswer] : [],
286
+ nextStep: props.payload?.skippable?.nextStep,
287
+ });
288
+ };
270
289
  onMounted(() => {
271
290
  setTimeout(() => {
272
291
  pbDimensionsInputLengthInput.value.focus();
@@ -282,6 +301,7 @@ export default {
282
301
  computedPayload,
283
302
  pbDimensionsInputLengthInput,
284
303
  handleFormSubmit,
304
+ skipQuestion,
285
305
  };
286
306
  },
287
307
  };
@@ -415,5 +435,9 @@ $responsive-breakpoint: 'm';
415
435
  position: sticky;
416
436
  z-index: 1;
417
437
  }
438
+
439
+ &__link {
440
+ margin-top: $mu250;
441
+ }
418
442
  }
419
443
  </style>
@@ -56,7 +56,7 @@
56
56
  </m-flexy-col>
57
57
  </m-flex>
58
58
 
59
- <m-flex class="pb-space-input__buttons-container" direction="column">
59
+ <m-flex class="pb-space-input__buttons-container" direction="column" align-items="center">
60
60
  <m-button
61
61
  class="pb-space-input__button"
62
62
  :label="computedPayload.viewModel.actionLabel"
@@ -64,6 +64,15 @@
64
64
  size="l"
65
65
  @click="handleFormSubmit"
66
66
  />
67
+ <m-link
68
+ v-if="payload.skippable"
69
+ class="pb-space-input__link"
70
+ :label="payload.skippable.label"
71
+ :theme="payload.skippable.theme"
72
+ width="full"
73
+ size="l"
74
+ @click="skipQuestion"
75
+ />
67
76
  </m-flex>
68
77
  </m-flex>
69
78
  </form>
@@ -233,6 +242,17 @@ export default {
233
242
  ],
234
243
  });
235
244
  });
245
+ const skipQuestion = () => {
246
+ /**
247
+ * Emitted when step is completed
248
+ * @event dynamic event name according to completedEventName prop
249
+ * @type {Event}
250
+ */
251
+ emit(props.completedEventName, {
252
+ answers: props.payload?.skippable?.defaultAnswer ? [props.payload?.skippable?.defaultAnswer] : [],
253
+ nextStep: props.payload?.skippable?.nextStep,
254
+ });
255
+ };
236
256
 
237
257
  const isShowingFooter = computed(() => {
238
258
  return computedPayload.value.viewModel.footer;
@@ -254,6 +274,7 @@ export default {
254
274
  handleFormSubmit,
255
275
  isShowingFooter,
256
276
  decorateBoolean,
277
+ skipQuestion,
257
278
  };
258
279
  },
259
280
  };
@@ -382,5 +403,9 @@ $responsive-breakpoint: 'm';
382
403
  position: sticky;
383
404
  z-index: 1;
384
405
  }
406
+
407
+ &__link {
408
+ margin-top: $mu250;
409
+ }
385
410
  }
386
411
  </style>