project-booster-vue 9.17.2 → 9.17.3
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 +1 -1
- package/src/components/question/PbQuestion.vue +1 -1
- package/src/components/question/configurations-import/PbConfigurationsImport.vue +1 -1
- package/src/components/question/dimensions-input/PbDimensionsInput.vue +3 -3
- package/src/components/question/name-input/PbNameInput.vue +3 -3
- package/src/components/scenario/PbScenario-Demo-Project.stories.js +12 -75
package/package.json
CHANGED
|
@@ -682,7 +682,7 @@ export default defineComponent({
|
|
|
682
682
|
},
|
|
683
683
|
navigateTo(viewModel: ScenarioStepViewModel) {
|
|
684
684
|
if (viewModel.backLink) {
|
|
685
|
-
window.location = decorate(this.answers, this.runtimeOptions, viewModel.backLink, '');
|
|
685
|
+
(<any>window).location = decorate(this.answers, this.runtimeOptions, viewModel.backLink, '');
|
|
686
686
|
} else {
|
|
687
687
|
/**
|
|
688
688
|
* Emitted when go back link is clicked
|
|
@@ -256,7 +256,7 @@ export default defineComponent({
|
|
|
256
256
|
|
|
257
257
|
const navigateTo = (viewModel: ConfigurationsImportViewModel) => {
|
|
258
258
|
if (viewModel.backLink) {
|
|
259
|
-
window.location = decorate(props.answers, props.runtimeOptions, viewModel.backLink);
|
|
259
|
+
(<any>window).location = decorate(props.answers, props.runtimeOptions, viewModel.backLink);
|
|
260
260
|
} else {
|
|
261
261
|
/**
|
|
262
262
|
* Emitted when go back link is clicked
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script lang="ts">
|
|
89
|
-
import { defineComponent, computed, onMounted, ComputedRef, PropType } from 'vue';
|
|
89
|
+
import { defineComponent, computed, onMounted, ComputedRef, PropType, Ref } from 'vue';
|
|
90
90
|
import { v4 as uuidv4 } from 'uuid';
|
|
91
91
|
import cloneDeep from 'lodash.clonedeep';
|
|
92
92
|
import merge from 'lodash.merge';
|
|
@@ -148,8 +148,8 @@ const computeDefaultValue = (
|
|
|
148
148
|
answers: Map<string, ScenarioStepAnswer[]>,
|
|
149
149
|
computedPayload: ComputedRef<DimensionsInputPayload>,
|
|
150
150
|
) => {
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
const length: Ref<string | undefined> = ref(undefined);
|
|
152
|
+
const width: Ref<string | undefined> = ref(undefined);
|
|
153
153
|
|
|
154
154
|
if (computedPayload?.value?.value) {
|
|
155
155
|
length.value = decorate(
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
|
|
47
47
|
<script lang="ts">
|
|
48
|
-
import { defineComponent, computed, ref, onMounted, ComputedRef, PropType } from 'vue';
|
|
48
|
+
import { defineComponent, computed, ref, onMounted, ComputedRef, PropType, Ref } from 'vue';
|
|
49
49
|
import { v4 as uuidv4 } from 'uuid';
|
|
50
50
|
import { useStore } from 'vuex';
|
|
51
51
|
import { useForm } from 'vee-validate';
|
|
@@ -91,8 +91,8 @@ const computeDefaultValue = (
|
|
|
91
91
|
answers: Map<string, ScenarioStepAnswer[]>,
|
|
92
92
|
computedPayload: ComputedRef<NameInputPayload>,
|
|
93
93
|
) => {
|
|
94
|
-
let name = ref(
|
|
95
|
-
let optin = ref(
|
|
94
|
+
let name: Ref<string | undefined> = ref(undefined);
|
|
95
|
+
let optin: Ref<string | undefined> = ref(undefined);
|
|
96
96
|
|
|
97
97
|
if (computedPayload?.value?.value) {
|
|
98
98
|
name.value = decorate(
|
|
@@ -35,7 +35,7 @@ const generateStory = (jsonLocation) => () => ({
|
|
|
35
35
|
});
|
|
36
36
|
const scenarios = ref(null);
|
|
37
37
|
const hasScenario = ref(false);
|
|
38
|
-
axios.get(jsonLocation).then((result) => {
|
|
38
|
+
axios.get(jsonLocation, { headers: { 'X-gateway-apikey': 'nII0D8gvbudmDONHRJo0wbYKJAytn97x' } }).then((result) => {
|
|
39
39
|
scenarios.value = result.data.scenario ?? result.data;
|
|
40
40
|
hasScenario.value = true;
|
|
41
41
|
});
|
|
@@ -53,98 +53,35 @@ const generateStory = (jsonLocation) => () => ({
|
|
|
53
53
|
'<pb-scenario v-if="hasScenario" :scenarios="scenarios" :runtime-options="runtimeOptions" @scenario-event="handleScenarioEvent" />',
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
export const estimateNewConstructionProd = generateStory(
|
|
57
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/6e3e9d6d-a019-4c1c-8d25-002a4ebfcb46.json',
|
|
58
|
-
);
|
|
59
|
-
export const estimateDressingProd = generateStory(
|
|
60
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/10df6aa4-4ae0-41a0-93e3-dc66eb9d39c8.json',
|
|
61
|
-
);
|
|
62
|
-
export const estimateBookcaseProd = generateStory(
|
|
63
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/88d96e4c-685b-4275-8eae-f50828fe4755.json',
|
|
64
|
-
);
|
|
65
|
-
export const estimateKitchenProd = generateStory(
|
|
66
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/068160b2-b28a-46fa-8fd6-4775450fa7b4.json',
|
|
67
|
-
);
|
|
68
|
-
export const estimateInsulationProd = generateStory(
|
|
69
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/60100496-92ea-49ab-8a43-c08afa57cd60.json',
|
|
70
|
-
);
|
|
71
|
-
export const estimateTvProd = generateStory(
|
|
72
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/dc5370cf-0761-43a0-8309-ced76be08d8b.json',
|
|
73
|
-
);
|
|
74
|
-
export const estimateStorageProd = generateStory(
|
|
75
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/e39126db-03f7-4b07-975a-97b4cf603ef1.json',
|
|
76
|
-
);
|
|
77
|
-
export const estimateHeatingProd = generateStory(
|
|
78
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/eaba8264-620d-475e-830f-89166b49a667.json',
|
|
79
|
-
);
|
|
80
|
-
export const estimateBathroomProd = generateStory(
|
|
81
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/c9c4df50-cbcb-4265-b9a7-6645d3adb03b.json',
|
|
82
|
-
);
|
|
83
|
-
export const estimateFloorProd = generateStory(
|
|
84
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/LMFR_FLOOR.json',
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
export const projectDeclarationGenericProd = generateStory(
|
|
88
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-generic-generated.json',
|
|
89
|
-
);
|
|
90
|
-
export const projectDeclarationBlindProd = generateStory(
|
|
91
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-blind-generated.json',
|
|
92
|
-
);
|
|
93
|
-
export const projectDeclarationCanopyProd = generateStory(
|
|
94
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-canopy-generated.json',
|
|
95
|
-
);
|
|
96
|
-
export const projectDeclarationCoolingProd = generateStory(
|
|
97
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-cooling-generated.json',
|
|
98
|
-
);
|
|
99
|
-
export const projectDeclarationFrontDoorProd = generateStory(
|
|
100
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-front-door-generated.json',
|
|
101
|
-
);
|
|
102
|
-
export const projectDeclarationGarageDoorProd = generateStory(
|
|
103
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-garage-door-generated.json',
|
|
104
|
-
);
|
|
105
|
-
export const projectDeclarationKitchenProd = generateStory(
|
|
106
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-kitchen-generated.json',
|
|
107
|
-
);
|
|
108
|
-
export const projectDeclarationShutterProd = generateStory(
|
|
109
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-shutter-generated.json',
|
|
110
|
-
);
|
|
111
|
-
export const projectDeclarationWindowProd = generateStory(
|
|
112
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-project-declaration-forms/forms/project-declaration-window-generated.json',
|
|
113
|
-
);
|
|
114
|
-
|
|
115
|
-
export const appointmentKitchenProd = generateStory(
|
|
116
|
-
'https://storage.googleapis.com/pb-prod-adeo-disp-subproject-forms/forms/appointment-qualification-kitchen.json',
|
|
117
|
-
);
|
|
118
|
-
|
|
119
56
|
export const estimateNewConstructionPrep = generateStory(
|
|
120
|
-
'https://
|
|
57
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/6e3e9d6d-a019-4c1c-8d25-002a4ebfcb46',
|
|
121
58
|
);
|
|
122
59
|
export const estimateDressingPrep = generateStory(
|
|
123
|
-
'https://
|
|
60
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/10df6aa4-4ae0-41a0-93e3-dc66eb9d39c8',
|
|
124
61
|
);
|
|
125
62
|
export const estimateBookcasePrep = generateStory(
|
|
126
|
-
'https://
|
|
63
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/88d96e4c-685b-4275-8eae-f50828fe4755',
|
|
127
64
|
);
|
|
128
65
|
export const estimateKitchenPrep = generateStory(
|
|
129
|
-
'https://
|
|
66
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/068160b2-b28a-46fa-8fd6-4775450fa7b4',
|
|
130
67
|
);
|
|
131
68
|
export const estimateInsulationPrep = generateStory(
|
|
132
|
-
'https://
|
|
69
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/60100496-92ea-49ab-8a43-c08afa57cd60',
|
|
133
70
|
);
|
|
134
71
|
export const estimateTvPrep = generateStory(
|
|
135
|
-
'https://
|
|
72
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/dc5370cf-0761-43a0-8309-ced76be08d8b',
|
|
136
73
|
);
|
|
137
74
|
export const estimateStoragePrep = generateStory(
|
|
138
|
-
'https://
|
|
75
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/e39126db-03f7-4b07-975a-97b4cf603ef1',
|
|
139
76
|
);
|
|
140
77
|
export const estimateHeatingPrep = generateStory(
|
|
141
|
-
'https://
|
|
78
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/eaba8264-620d-475e-830f-89166b49a667',
|
|
142
79
|
);
|
|
143
80
|
export const estimateBathroomPrep = generateStory(
|
|
144
|
-
'https://
|
|
81
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/c9c4df50-cbcb-4265-b9a7-6645d3adb03b',
|
|
145
82
|
);
|
|
146
83
|
export const estimateFloorPrep = generateStory(
|
|
147
|
-
'https://
|
|
84
|
+
'https://api-prep.adeo.cloud/api-project-booster-budget-estimate/v1/scenarios/LMFR_FLOOR',
|
|
148
85
|
);
|
|
149
86
|
|
|
150
87
|
export const projectDeclarationGenericPrep = generateStory(
|
|
@@ -176,5 +113,5 @@ export const projectDeclarationWindowPrep = generateStory(
|
|
|
176
113
|
);
|
|
177
114
|
|
|
178
115
|
export const appointmentKitchenPrep = generateStory(
|
|
179
|
-
'https://storage.googleapis.com/pb-preprod-adeo-disp-
|
|
116
|
+
'https://storage.googleapis.com/pb-preprod-adeo-disp-appointment-qualification-forms/forms/appointment-qualification-kitchen.json',
|
|
180
117
|
);
|