project-booster-vue 10.9.2 → 10.10.0
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/pedagogy/PbPedagogy.vue +43 -3
- package/src/components/question/city-search/PbCitySearch.vue +21 -1
- package/src/components/question/incremental-amount-input/PbIncrementalAmountInput.vue +19 -1
- package/src/components/question/name-input/PbNameInput.vue +21 -1
- package/src/components/warning-message/PbWarningMessage.vue +22 -1
package/package.json
CHANGED
|
@@ -25,8 +25,18 @@
|
|
|
25
25
|
<div v-if="error && error.message" class="pb-pedagogy__error">{{ error.message }}</div>
|
|
26
26
|
<m-button
|
|
27
27
|
:label="payload.viewModel.showFormLead.buttonLabel"
|
|
28
|
-
class="pb-pedagogy__form-lead__button mc-button--full"
|
|
28
|
+
class="pb-pedagogy__form-lead__button mc-button--full js-cdl"
|
|
29
29
|
@click="saveFormLead(payload.viewModel.showFormLead)"
|
|
30
|
+
data-cdl-click-type="cdl_event"
|
|
31
|
+
:data-cdl-click-data="
|
|
32
|
+
formatEvent(
|
|
33
|
+
{
|
|
34
|
+
button_name: payload.viewModel.showFormLead.buttonLabel,
|
|
35
|
+
button_location: stepLocation || '',
|
|
36
|
+
},
|
|
37
|
+
EventTypeEnum.BUTTON,
|
|
38
|
+
)
|
|
39
|
+
"
|
|
30
40
|
/>
|
|
31
41
|
</form>
|
|
32
42
|
<m-flex
|
|
@@ -41,15 +51,35 @@
|
|
|
41
51
|
v-if="payload.viewModel.downloadButton"
|
|
42
52
|
:theme="payload.viewModel.downloadButton.theme"
|
|
43
53
|
:label="payload.viewModel.downloadButton.label"
|
|
44
|
-
class="pb-pedagogy__content-upload-button mc-button--full"
|
|
54
|
+
class="pb-pedagogy__content-upload-button mc-button--full js-cdl"
|
|
45
55
|
@click="handleButtonLinkClicked"
|
|
56
|
+
data-cdl-click-type="cdl_event"
|
|
57
|
+
:data-cdl-click-data="
|
|
58
|
+
formatEvent(
|
|
59
|
+
{
|
|
60
|
+
button_name: payload.viewModel.downloadButton.label,
|
|
61
|
+
button_location: stepLocation || '',
|
|
62
|
+
},
|
|
63
|
+
EventTypeEnum.BUTTON,
|
|
64
|
+
)
|
|
65
|
+
"
|
|
46
66
|
/>
|
|
47
67
|
<m-button
|
|
48
68
|
v-for="action in payload.callToActions"
|
|
49
69
|
:theme="action.bordered ? 'bordered' : 'solid'"
|
|
50
70
|
:label="action.label"
|
|
51
|
-
class="pb-pedagogy__content-action-button mc-button--full"
|
|
71
|
+
class="pb-pedagogy__content-action-button mc-button--full js-cdl"
|
|
52
72
|
@click="handleValidateClicked(action)"
|
|
73
|
+
data-cdl-click-type="cdl_event"
|
|
74
|
+
:data-cdl-click-data="
|
|
75
|
+
formatEvent(
|
|
76
|
+
{
|
|
77
|
+
button_name: action.label,
|
|
78
|
+
button_location: stepLocation || '',
|
|
79
|
+
},
|
|
80
|
+
EventTypeEnum.BUTTON,
|
|
81
|
+
)
|
|
82
|
+
"
|
|
53
83
|
/>
|
|
54
84
|
</m-flex>
|
|
55
85
|
<m-flex
|
|
@@ -74,6 +104,7 @@ import MFlex from '../mozaic/flex/MFlex.vue';
|
|
|
74
104
|
import MIcon from '../mozaic/icon/MIcon.vue';
|
|
75
105
|
import PbCardsList from '../cards/PbCardsList.vue';
|
|
76
106
|
import { mapGetters } from 'vuex';
|
|
107
|
+
import { EventTypeEnum, formatEvent } from '../rework/services/event';
|
|
77
108
|
|
|
78
109
|
interface PedagogyCardViewmodel {
|
|
79
110
|
url: string;
|
|
@@ -101,11 +132,19 @@ export default defineComponent({
|
|
|
101
132
|
type: Object,
|
|
102
133
|
default: () => null,
|
|
103
134
|
},
|
|
135
|
+
/**
|
|
136
|
+
* Define the location of the step in the scenario.
|
|
137
|
+
*/
|
|
138
|
+
stepLocation: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: '',
|
|
141
|
+
},
|
|
104
142
|
},
|
|
105
143
|
data: () => ({
|
|
106
144
|
value: [],
|
|
107
145
|
emailToSaved: '',
|
|
108
146
|
error: {},
|
|
147
|
+
EventTypeEnum,
|
|
109
148
|
}),
|
|
110
149
|
computed: {
|
|
111
150
|
...mapGetters('appointmentQualification', {
|
|
@@ -129,6 +168,7 @@ export default defineComponent({
|
|
|
129
168
|
});
|
|
130
169
|
},
|
|
131
170
|
methods: {
|
|
171
|
+
formatEvent,
|
|
132
172
|
handleButtonLinkClicked() {
|
|
133
173
|
this.$store.dispatch('sendEventToBus', {
|
|
134
174
|
code: 'APPOINTMENT-QUALIFICATION-DOWNLOAD-GUID',
|
|
@@ -91,12 +91,22 @@
|
|
|
91
91
|
<m-flex class="pb-city-search__buttons-container" direction="column">
|
|
92
92
|
<m-button
|
|
93
93
|
:disabled="!selectedCity"
|
|
94
|
-
class="pb-city-search__button"
|
|
94
|
+
class="pb-city-search__button js-cdl"
|
|
95
95
|
:label="computedPayload.viewModel.actionLabel"
|
|
96
96
|
width="full"
|
|
97
97
|
size="l"
|
|
98
98
|
@click="handleFormValidation"
|
|
99
99
|
:data-cerberus="sanitizeCerberusAttribut('PB-CITY-SEARCH', 'VALIDATE')"
|
|
100
|
+
data-cdl-click-type="cdl_event"
|
|
101
|
+
:data-cdl-click-data="
|
|
102
|
+
formatEvent(
|
|
103
|
+
{
|
|
104
|
+
button_name: computedPayload.viewModel.actionLabel,
|
|
105
|
+
button_location: stepLocation || '',
|
|
106
|
+
},
|
|
107
|
+
EventTypeEnum.BUTTON,
|
|
108
|
+
)
|
|
109
|
+
"
|
|
100
110
|
/>
|
|
101
111
|
</m-flex>
|
|
102
112
|
</div>
|
|
@@ -119,6 +129,7 @@ import { DebouncedFunc } from 'lodash-es';
|
|
|
119
129
|
import { decorate } from '@/services/decorate';
|
|
120
130
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
121
131
|
import { sanitizeCerberusAttribut } from '@/services/sanitize';
|
|
132
|
+
import { EventTypeEnum, formatEvent } from '../../rework/services/event';
|
|
122
133
|
|
|
123
134
|
const BACK_ICON =
|
|
124
135
|
'https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Arrow_Arrow--Left_16px.svg';
|
|
@@ -171,6 +182,13 @@ export default defineComponent({
|
|
|
171
182
|
type: Object as PropType<Map<string, ScenarioStepAnswer[]>>,
|
|
172
183
|
default: () => new Map<string, ScenarioStepAnswer[]>(),
|
|
173
184
|
},
|
|
185
|
+
/**
|
|
186
|
+
* Define the location of the step in the scenario.
|
|
187
|
+
*/
|
|
188
|
+
stepLocation: {
|
|
189
|
+
type: String,
|
|
190
|
+
default: '',
|
|
191
|
+
},
|
|
174
192
|
},
|
|
175
193
|
|
|
176
194
|
data: () => ({
|
|
@@ -194,6 +212,7 @@ export default defineComponent({
|
|
|
194
212
|
loadingCityInfo: false,
|
|
195
213
|
headerHeight: 0,
|
|
196
214
|
debouncedGetSuggestions: undefined as DebouncedFunc<() => Promise<void>> | undefined,
|
|
215
|
+
EventTypeEnum,
|
|
197
216
|
}),
|
|
198
217
|
|
|
199
218
|
computed: {
|
|
@@ -257,6 +276,7 @@ export default defineComponent({
|
|
|
257
276
|
},
|
|
258
277
|
|
|
259
278
|
methods: {
|
|
279
|
+
formatEvent,
|
|
260
280
|
async initializeGoogleMapsApis() {
|
|
261
281
|
await initGoogleMapsApi();
|
|
262
282
|
|
|
@@ -51,12 +51,22 @@
|
|
|
51
51
|
|
|
52
52
|
<m-flex class="pb-incremental-amount-input__buttons-container" direction="column" align-items="center">
|
|
53
53
|
<m-button
|
|
54
|
-
class="pb-incremental-amount-input__button"
|
|
54
|
+
class="pb-incremental-amount-input__button js-cdl"
|
|
55
55
|
:label="computedPayload.viewModel.actionLabel"
|
|
56
56
|
width="full"
|
|
57
57
|
size="l"
|
|
58
58
|
type="submit"
|
|
59
59
|
:data-cerberus="sanitizeCerberusAttribut('PB-INCREMENTAL-AMOUNT', 'INPUT')"
|
|
60
|
+
data-cdl-click-type="cdl_event"
|
|
61
|
+
:data-cdl-click-data="
|
|
62
|
+
formatEvent(
|
|
63
|
+
{
|
|
64
|
+
button_name: computedPayload.viewModel.actionLabel,
|
|
65
|
+
button_location: stepLocation || '',
|
|
66
|
+
},
|
|
67
|
+
EventTypeEnum.BUTTON,
|
|
68
|
+
)
|
|
69
|
+
"
|
|
60
70
|
/>
|
|
61
71
|
</m-flex>
|
|
62
72
|
</form>
|
|
@@ -78,6 +88,7 @@ import { decorate } from '@/services/decorate';
|
|
|
78
88
|
import MQuantitySelector from '../../mozaic/quantityselector/MQuantitySelector.vue';
|
|
79
89
|
import { IncrementalAmountPayload } from '@/components/question/incremental-amount-input/IncrementalAmount';
|
|
80
90
|
import { sanitizeCerberusAttribut } from '@/services/sanitize';
|
|
91
|
+
import { EventTypeEnum, formatEvent } from '../../rework/services/event';
|
|
81
92
|
|
|
82
93
|
const BACK_ICON =
|
|
83
94
|
'https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Arrow_Arrow--Left_16px.svg';
|
|
@@ -165,6 +176,13 @@ export default defineComponent({
|
|
|
165
176
|
type: Number,
|
|
166
177
|
default: 1,
|
|
167
178
|
},
|
|
179
|
+
/**
|
|
180
|
+
* Define the location of the step in the scenario.
|
|
181
|
+
*/
|
|
182
|
+
stepLocation: {
|
|
183
|
+
type: String,
|
|
184
|
+
default: '',
|
|
185
|
+
},
|
|
168
186
|
},
|
|
169
187
|
setup(props, { emit }) {
|
|
170
188
|
const componentId = uuidv4();
|
|
@@ -33,12 +33,22 @@
|
|
|
33
33
|
</m-flex>
|
|
34
34
|
<m-flex class="pb-name-input__buttons-container" direction="column">
|
|
35
35
|
<m-button
|
|
36
|
-
class="pb-name-input__button"
|
|
36
|
+
class="pb-name-input__button js-cdl"
|
|
37
37
|
:label="computedPayload.viewModel.actionLabel"
|
|
38
38
|
width="full"
|
|
39
39
|
size="l"
|
|
40
40
|
@click="handleFormSubmit"
|
|
41
41
|
:data-cerberus="sanitizeCerberusAttribut('PB-NAME-INPUT', 'BUTTON')"
|
|
42
|
+
data-cdl-click-type="cdl_event"
|
|
43
|
+
:data-cdl-click-data="
|
|
44
|
+
formatEvent(
|
|
45
|
+
{
|
|
46
|
+
button_name: computedPayload.viewModel.actionLabel,
|
|
47
|
+
button_location: stepLocation || '',
|
|
48
|
+
},
|
|
49
|
+
EventTypeEnum.BUTTON,
|
|
50
|
+
)
|
|
51
|
+
"
|
|
42
52
|
/>
|
|
43
53
|
</m-flex>
|
|
44
54
|
</m-flex>
|
|
@@ -64,6 +74,7 @@ import { NameInputPayload } from '@/components/question/name-input/NameInput';
|
|
|
64
74
|
import { ScenarioStepAnswer } from '@/types/pb/Scenario';
|
|
65
75
|
import { decorate } from '@/services/decorate';
|
|
66
76
|
import { sanitizeCerberusAttribut } from '@/services/sanitize';
|
|
77
|
+
import { EventTypeEnum, formatEvent } from '../../rework/services/event';
|
|
67
78
|
|
|
68
79
|
const BACK_ICON =
|
|
69
80
|
'https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Arrow_Arrow--Left_16px.svg';
|
|
@@ -163,6 +174,13 @@ export default defineComponent({
|
|
|
163
174
|
type: Object as PropType<Map<string, ScenarioStepAnswer[]>>,
|
|
164
175
|
default: () => new Map<string, ScenarioStepAnswer[]>(),
|
|
165
176
|
},
|
|
177
|
+
/**
|
|
178
|
+
* Define the location of the step in the scenario.
|
|
179
|
+
*/
|
|
180
|
+
stepLocation: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: '',
|
|
183
|
+
},
|
|
166
184
|
},
|
|
167
185
|
|
|
168
186
|
setup(props, { emit }) {
|
|
@@ -234,6 +252,8 @@ export default defineComponent({
|
|
|
234
252
|
computedPayload,
|
|
235
253
|
handleFormSubmit,
|
|
236
254
|
sanitizeCerberusAttribut,
|
|
255
|
+
formatEvent,
|
|
256
|
+
EventTypeEnum,
|
|
237
257
|
};
|
|
238
258
|
},
|
|
239
259
|
});
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
>
|
|
59
59
|
<m-button
|
|
60
60
|
:theme="action.bordered ? 'bordered' : 'solid'"
|
|
61
|
-
class="pb-warning-message__container--button__ok mc-button--full"
|
|
61
|
+
class="pb-warning-message__container--button__ok mc-button--full js-cdl"
|
|
62
62
|
:type="action.type"
|
|
63
63
|
:label="action.label"
|
|
64
64
|
icon-position="right"
|
|
@@ -68,6 +68,16 @@
|
|
|
68
68
|
:key="action.label"
|
|
69
69
|
@click="callAction(action.action)"
|
|
70
70
|
:data-cerberus="sanitizeCerberusAttribut('PB-WARNING-BUTTON', action.action.code)"
|
|
71
|
+
data-cdl-click-type="cdl_event"
|
|
72
|
+
:data-cdl-click-data="
|
|
73
|
+
formatEvent(
|
|
74
|
+
{
|
|
75
|
+
button_name: action.label,
|
|
76
|
+
button_location: stepLocation || '',
|
|
77
|
+
},
|
|
78
|
+
EventTypeEnum.BUTTON,
|
|
79
|
+
)
|
|
80
|
+
"
|
|
71
81
|
/>
|
|
72
82
|
</m-flex>
|
|
73
83
|
</div>
|
|
@@ -111,6 +121,8 @@ import { WarningMessagePayloadAction } from '@/types/pb/WarningMessage';
|
|
|
111
121
|
import { DialogContent } from './dialogContent';
|
|
112
122
|
import { string } from 'yup';
|
|
113
123
|
import { sanitizeCerberusAttribut } from '@/services/sanitize';
|
|
124
|
+
import { EventTypeEnum, formatEvent } from '../rework/services/event';
|
|
125
|
+
|
|
114
126
|
const BACK_ICON =
|
|
115
127
|
'https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Navigation_Arrow_Arrow--Left_16px.svg';
|
|
116
128
|
const WARNING_ICON =
|
|
@@ -169,8 +181,16 @@ export default defineComponent({
|
|
|
169
181
|
type: string,
|
|
170
182
|
default: () => WARNING_ICON,
|
|
171
183
|
},
|
|
184
|
+
/**
|
|
185
|
+
* Define the location of the step in the scenario.
|
|
186
|
+
*/
|
|
187
|
+
stepLocation: {
|
|
188
|
+
type: String,
|
|
189
|
+
default: '',
|
|
190
|
+
},
|
|
172
191
|
},
|
|
173
192
|
methods: {
|
|
193
|
+
formatEvent,
|
|
174
194
|
injectIcon() {
|
|
175
195
|
this.$nextTick(() => {
|
|
176
196
|
const element = document.querySelector('#pb-warning-message-icon');
|
|
@@ -236,6 +256,7 @@ export default defineComponent({
|
|
|
236
256
|
handleHelpDialog,
|
|
237
257
|
dialogHelpContent,
|
|
238
258
|
sanitizeCerberusAttribut,
|
|
259
|
+
EventTypeEnum,
|
|
239
260
|
};
|
|
240
261
|
},
|
|
241
262
|
});
|