project-booster-vue 8.93.0 → 8.93.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "8.93.0",
3
+ "version": "8.93.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "test:unit": "vue-cli-service test:unit --forceExit --detectOpenHandles",
@@ -334,8 +334,6 @@ $responsive-breakpoint: 'm';
334
334
  }
335
335
 
336
336
  & :deep(.m-dialog__footer) {
337
- z-index: 1;
338
-
339
337
  @include set-box-shadow('m');
340
338
  }
341
339
 
@@ -513,8 +513,6 @@ $responsive-breakpoint: 'l';
513
513
  }
514
514
 
515
515
  :deep(.m-dialog__footer) {
516
- z-index: 1;
517
-
518
516
  @include set-box-shadow('m');
519
517
  }
520
518
 
@@ -279,7 +279,6 @@ $responsive-breakpoint: 'm';
279
279
 
280
280
  &__header {
281
281
  background-color: white;
282
-
283
282
  box-sizing: border-box;
284
283
  position: relative;
285
284
  width: 100%;
@@ -271,8 +271,6 @@ $responsive-breakpoint: 'm';
271
271
  }
272
272
 
273
273
  & :deep(.m-dialog__footer) {
274
- z-index: 1;
275
-
276
274
  @include set-box-shadow('m');
277
275
  }
278
276
 
@@ -114,6 +114,8 @@ $responsive-breakpoint-l: 'l';
114
114
  }
115
115
 
116
116
  :deep(.pb-items-list) {
117
+ width: 100%;
118
+
117
119
  :deep(.pb-items-list__item) {
118
120
  border: none !important;
119
121
 
@@ -541,8 +541,6 @@ $responsive-breakpoint: 'l';
541
541
  }
542
542
 
543
543
  :deep(.m-dialog__footer) {
544
- z-index: 1;
545
-
546
544
  @include set-box-shadow('m');
547
545
  }
548
546
 
@@ -384,19 +384,15 @@ export default {
384
384
 
385
385
  dirty.value = tempDirty;
386
386
  };
387
- const saveTask = async (validate, valid) => {
388
- await validate();
389
-
390
- if (valid) {
391
- updateOptionValues();
392
- /**
393
- * Emitted to save a task
394
- * @event save-task
395
- * @type {Event}
396
- */
397
- context.emit('save-task', props.task);
398
- dirty.value = false;
399
- }
387
+ const saveTask = async () => {
388
+ updateOptionValues();
389
+ /**
390
+ * Emitted to save a task
391
+ * @event save-task
392
+ * @type {Event}
393
+ */
394
+ context.emit('save-task', props.task);
395
+ dirty.value = false;
400
396
  };
401
397
  const updateOptionValues = () => {
402
398
  if (props.task?.viewModel?.sections) {
@@ -484,7 +480,9 @@ export default {
484
480
  return yup.object(options);
485
481
  });
486
482
  const { handleSubmit, errors, submitCount } = useForm({ validationSchema });
487
- const handleFormSubmit = handleSubmit((values) => {});
483
+ const handleFormSubmit = handleSubmit((values) => {
484
+ saveTask();
485
+ });
488
486
  const getErrorsCount = computed(() => {
489
487
  let errorsCount = 0;
490
488
 
@@ -1,3 +1,4 @@
1
+ import { useStore } from 'vuex';
1
2
  import { nestedAppDecorator } from '../../../../.storybook/nested-app-decorator';
2
3
  import { Meta, Canvas, Story, ArgsTable, Source } from '@storybook/addon-docs';
3
4
  import PbTasksPreview from './PbTasksPreview';
@@ -40,18 +41,18 @@ The `PbTasksPreview` component display all the task for a planner.
40
41
 
41
42
  # `PbTasksPreview` - Component props
42
43
 
43
- export const TemplateSandbox = (args, { argTypes }) => {
44
- return {
45
- props: Object.keys(argTypes),
46
- components: { PbTasksPreview },
47
- created() {
48
- setTimeout(() => {
49
- this.$store.dispatch('togglePlannerProjectPlannerInitialized');
50
- }, 2000);
51
- },
52
- template: `<pb-tasks-preview :tasks="tasks" :tasks-number="tasksNumber" style="margin: 0 auto;max-width: 1024px; padding: 0 1rem;" />`,
53
- };
54
- };
44
+ export const TemplateSandbox = (args, { argTypes }) => ({
45
+ props: Object.keys(argTypes),
46
+ components: { PbTasksPreview },
47
+ setup() {
48
+ const store = useStore();
49
+ setTimeout(() => {
50
+ store.dispatch('togglePlannerProjectPlannerInitialized');
51
+ }, 2000);
52
+ return { args };
53
+ },
54
+ template: `<pb-tasks-preview :tasks="args.tasks" :tasks-number="args.tasksNumber" style="margin: 0 auto;max-width: 1024px; padding: 0 1rem;" />`,
55
+ });
55
56
 
56
57
  <Canvas>
57
58
  <Story name="101 Sandbox" inline={false} args={{ tasks: TASKS.slice() }} height="512px">