project-booster-vue 9.29.0 → 9.30.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
|
@@ -547,6 +547,7 @@ $text-neutral: (
|
|
|
547
547
|
border-color: $color-success-500;
|
|
548
548
|
border-radius: 0.25rem 0 0 0.25rem;
|
|
549
549
|
color: $color-success-500;
|
|
550
|
+
margin: 0 !important;
|
|
550
551
|
padding: 0.375rem;
|
|
551
552
|
}
|
|
552
553
|
|
|
@@ -555,6 +556,7 @@ $text-neutral: (
|
|
|
555
556
|
border-color: $color-success-500;
|
|
556
557
|
border-radius: 0 0.25rem 0.25rem 0;
|
|
557
558
|
color: $color-success-500;
|
|
559
|
+
margin: 0 !important;
|
|
558
560
|
padding: 0.375rem;
|
|
559
561
|
}
|
|
560
562
|
</style>
|
|
@@ -1298,6 +1298,26 @@ $answers-apparition-duration: '0.5s';
|
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
+
&__padding-bottom {
|
|
1302
|
+
height: $mu800;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
&__help {
|
|
1306
|
+
margin-bottom: $mu250;
|
|
1307
|
+
&__link,
|
|
1308
|
+
&__text {
|
|
1309
|
+
margin: 0;
|
|
1310
|
+
@include set-font-scale('05', 'l');
|
|
1311
|
+
@include set-font-face('regular');
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
</style>
|
|
1316
|
+
|
|
1317
|
+
<style lang="scss">
|
|
1318
|
+
@import 'pb-variables';
|
|
1319
|
+
|
|
1320
|
+
.pb-question {
|
|
1301
1321
|
&__dialog-help {
|
|
1302
1322
|
&__title {
|
|
1303
1323
|
padding: $mu250 $mu250 0 $mu250;
|
|
@@ -1316,19 +1336,5 @@ $answers-apparition-duration: '0.5s';
|
|
|
1316
1336
|
padding: $mu100 $mu250 $mu250 $mu250;
|
|
1317
1337
|
}
|
|
1318
1338
|
}
|
|
1319
|
-
|
|
1320
|
-
&__padding-bottom {
|
|
1321
|
-
height: $mu800;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
&__help {
|
|
1325
|
-
margin-bottom: $mu250;
|
|
1326
|
-
&__link,
|
|
1327
|
-
&__text {
|
|
1328
|
-
margin: 0;
|
|
1329
|
-
@include set-font-scale('05', 'l');
|
|
1330
|
-
@include set-font-face('regular');
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
1339
|
}
|
|
1334
1340
|
</style>
|
|
@@ -449,12 +449,15 @@ $responsive-breakpoint: 'm';
|
|
|
449
449
|
|
|
450
450
|
&__dialog {
|
|
451
451
|
&__title {
|
|
452
|
-
|
|
452
|
+
h2 {
|
|
453
|
+
@include set-font-face('semi-bold');
|
|
454
|
+
@include set-font-scale('07', 's');
|
|
455
|
+
padding: $mu250 $mu250 0 $mu250;
|
|
456
|
+
}
|
|
453
457
|
}
|
|
454
458
|
|
|
455
459
|
&__body {
|
|
456
460
|
padding: 0 $mu250;
|
|
457
|
-
@include set-font-scale('05', 'l');
|
|
458
461
|
}
|
|
459
462
|
|
|
460
463
|
&__footer {
|
|
@@ -472,3 +475,12 @@ $responsive-breakpoint: 'm';
|
|
|
472
475
|
}
|
|
473
476
|
}
|
|
474
477
|
</style>
|
|
478
|
+
|
|
479
|
+
<style lang="scss">
|
|
480
|
+
@import 'pb-variables';
|
|
481
|
+
|
|
482
|
+
.pb-space-input__dialog__body p {
|
|
483
|
+
@include set-font-scale('05', 'm');
|
|
484
|
+
margin: $mu100 0;
|
|
485
|
+
}
|
|
486
|
+
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
2
|
+
import objectPath from 'object-path';
|
|
2
3
|
|
|
3
4
|
const Condition = (
|
|
4
5
|
condition: string,
|
|
@@ -17,6 +18,10 @@ const Condition = (
|
|
|
17
18
|
}) > -1
|
|
18
19
|
);
|
|
19
20
|
};
|
|
21
|
+
const isAnswerValue = (questionCode: string, path: string, value: any) => {
|
|
22
|
+
const questionAnswers = answers.get(questionCode)!;
|
|
23
|
+
return questionAnswers ? objectPath.get(questionAnswers[0], path) === value : false;
|
|
24
|
+
};
|
|
20
25
|
const hasAnswers = (questionCode: string) => {
|
|
21
26
|
const questionAnswers = answers.get(questionCode)!;
|
|
22
27
|
return questionAnswers.length > 0;
|
|
@@ -24,11 +29,12 @@ const Condition = (
|
|
|
24
29
|
const isValid: boolean = new Function(
|
|
25
30
|
'isAnswerMatching',
|
|
26
31
|
'isAnswerContaining',
|
|
32
|
+
'isAnswerValue',
|
|
27
33
|
'hasAnswers',
|
|
28
34
|
'answers',
|
|
29
35
|
'runtimeOptions',
|
|
30
36
|
`return ${condition}`,
|
|
31
|
-
).call(this, isAnswerMatching, isAnswerContaining, hasAnswers, answers, runtimeOptions);
|
|
37
|
+
).call(this, isAnswerMatching, isAnswerContaining, isAnswerValue, hasAnswers, answers, runtimeOptions);
|
|
32
38
|
return { isValid };
|
|
33
39
|
};
|
|
34
40
|
|