@useinsider/guido 3.16.0 → 3.17.0-beta.3e9d6e7
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/README.md +1 -0
- package/dist/@types/config/schemas.js +12 -6
- package/dist/components/Guido.vue.js +6 -6
- package/dist/components/Guido.vue2.js +63 -61
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +18 -0
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +67 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue.js +20 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue2.js +55 -0
- package/dist/composables/useCustomInterfaceAppearance.js +19 -16
- package/dist/composables/useRecommendation.js +43 -35
- package/dist/composables/useStripo.js +30 -29
- package/dist/config/migrator/itemsBlockMigrator.js +1 -1
- package/dist/config/migrator/recommendationMigrator.js +6 -4
- package/dist/enums/date.js +4 -3
- package/dist/enums/extensions/recommendationBlock.js +25 -23
- package/dist/enums/recommendation.js +17 -17
- package/dist/extensions/Blocks/Items/enums/productEnums.js +45 -45
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +13 -11
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +37 -26
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +115 -87
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +132 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +198 -51
- package/dist/extensions/Blocks/Recommendation/utils/productIds.js +6 -0
- package/dist/extensions/Blocks/common-control.js +22 -19
- package/dist/guido.css +1 -1
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index-Dc9AygoZ.js +526 -0
- package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +9345 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +174 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +381 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +236 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +70 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +350 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +371 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +152 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +141 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +1047 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +96050 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +2042 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +166 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +1098 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +55 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +265 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +184 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +50 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +453 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +145 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +176 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +266 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +114 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +200 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +451 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +49 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +119 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +4309 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +129 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +503 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +253 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +107 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +134 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +464 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +28 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +23 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +29 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +109 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +2339 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +16 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +17 -0
- package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +188 -0
- package/dist/services/recommendationApi.js +77 -28
- package/dist/src/@types/config/schemas.d.ts +12 -0
- package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +3 -0
- package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBox.vue.d.ts +24 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +12 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +37 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +210 -10
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +6 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +4 -1
- package/dist/src/mock/api/recommendation-strategies.d.ts +43 -0
- package/dist/src/services/recommendationApi.d.ts +4 -1
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +171 -0
- package/dist/utils/dateUtil.js +23 -10
- package/dist/utils/templatePreparation.js +37 -34
- package/package.json +2 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { InBox as i } from "./InBox.js";
|
|
2
|
+
import { InButtonV2 as l } from "./InButtonV2.js";
|
|
3
|
+
import { InIcons as r } from "./InIcons.js";
|
|
4
|
+
import { p as a } from "./chunks/helpers.CgHNyjAJ.js";
|
|
5
|
+
import { n as s } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
const p = "_in-modal-wrapper_v01428_PYfmZ", _ = "_in-modal-wrapper_opened_v01428_fFJ48", d = "_in-modal-wrapper__open-translation_v01428_tae4R", c = "_in-modal-wrapper__overlay_v01428_sTbmw", m = "_in-modal-wrapper_without-overlay_v01428_kCHGz", u = "_in-modal-wrapper__title_v01428_88o4y", h = "_in-modal-wrapper__icon_v01428_jmqE0", y = "_in-modal-wrapper__information-content_v01428_-DiV-", w = "_in-modal-wrapper__dynamic-content_v01428_qflnE", f = "_in-modal-wrapper__onboard-content_v01428_EJaaV", C = "_in-modal-wrapper__buttons_v01428_LT6mQ", v = "_in-modal-wrapper__information-content_small_v01428_V020B", b = "_in-modal-wrapper__information-content_medium_v01428_YZsAk", g = "_in-modal-wrapper__information-content_large_v01428_eixLO", B = "_in-modal-wrapper__dynamic-content_small_v01428_ssqE9", M = "_in-modal-wrapper__dynamic-content_medium_v01428_pEn8W", T = "_in-modal-wrapper__dynamic-content_large_v01428_PvXf-", x = "_in-modal-wrapper__onboard-content_small_v01428_UTZbl", $ = "_in-modal-wrapper__onboard-content_medium_v01428_FQ8m-", O = "_in-modal-wrapper__onboard-content_large_v01428_jcxHA", k = "_in-modal-wrapper__slot_v01428_Bl-zo", S = "_in-modal-wrapper__full-height_v01428_V3nX-", D = "_in-modal-information_v01428_gvEHm", W = {
|
|
8
|
+
"in-modal-wrapper": "_in-modal-wrapper_v01428_PYfmZ",
|
|
9
|
+
inModalWrapper: p,
|
|
10
|
+
"in-modal-wrapper_opened": "_in-modal-wrapper_opened_v01428_fFJ48",
|
|
11
|
+
inModalWrapperOpened: _,
|
|
12
|
+
"in-modal-wrapper__open-translation": "_in-modal-wrapper__open-translation_v01428_tae4R",
|
|
13
|
+
inModalWrapperOpenTranslation: d,
|
|
14
|
+
"in-modal-wrapper__overlay": "_in-modal-wrapper__overlay_v01428_sTbmw",
|
|
15
|
+
inModalWrapperOverlay: c,
|
|
16
|
+
"in-modal-wrapper_without-overlay": "_in-modal-wrapper_without-overlay_v01428_kCHGz",
|
|
17
|
+
inModalWrapperWithoutOverlay: m,
|
|
18
|
+
"in-modal-wrapper__title": "_in-modal-wrapper__title_v01428_88o4y",
|
|
19
|
+
inModalWrapperTitle: u,
|
|
20
|
+
"in-modal-wrapper__icon": "_in-modal-wrapper__icon_v01428_jmqE0",
|
|
21
|
+
inModalWrapperIcon: h,
|
|
22
|
+
"in-modal-wrapper__information-content": "_in-modal-wrapper__information-content_v01428_-DiV-",
|
|
23
|
+
inModalWrapperInformationContent: y,
|
|
24
|
+
"in-modal-wrapper__dynamic-content": "_in-modal-wrapper__dynamic-content_v01428_qflnE",
|
|
25
|
+
inModalWrapperDynamicContent: w,
|
|
26
|
+
"in-modal-wrapper__onboard-content": "_in-modal-wrapper__onboard-content_v01428_EJaaV",
|
|
27
|
+
inModalWrapperOnboardContent: f,
|
|
28
|
+
"in-modal-wrapper__buttons": "_in-modal-wrapper__buttons_v01428_LT6mQ",
|
|
29
|
+
inModalWrapperButtons: C,
|
|
30
|
+
"in-modal-wrapper__information-content_small": "_in-modal-wrapper__information-content_small_v01428_V020B",
|
|
31
|
+
inModalWrapperInformationContentSmall: v,
|
|
32
|
+
"in-modal-wrapper__information-content_medium": "_in-modal-wrapper__information-content_medium_v01428_YZsAk",
|
|
33
|
+
inModalWrapperInformationContentMedium: b,
|
|
34
|
+
"in-modal-wrapper__information-content_large": "_in-modal-wrapper__information-content_large_v01428_eixLO",
|
|
35
|
+
inModalWrapperInformationContentLarge: g,
|
|
36
|
+
"in-modal-wrapper__dynamic-content_small": "_in-modal-wrapper__dynamic-content_small_v01428_ssqE9",
|
|
37
|
+
inModalWrapperDynamicContentSmall: B,
|
|
38
|
+
"in-modal-wrapper__dynamic-content_medium": "_in-modal-wrapper__dynamic-content_medium_v01428_pEn8W",
|
|
39
|
+
inModalWrapperDynamicContentMedium: M,
|
|
40
|
+
"in-modal-wrapper__dynamic-content_large": "_in-modal-wrapper__dynamic-content_large_v01428_PvXf-",
|
|
41
|
+
inModalWrapperDynamicContentLarge: T,
|
|
42
|
+
"in-modal-wrapper__onboard-content_small": "_in-modal-wrapper__onboard-content_small_v01428_UTZbl",
|
|
43
|
+
inModalWrapperOnboardContentSmall: x,
|
|
44
|
+
"in-modal-wrapper__onboard-content_medium": "_in-modal-wrapper__onboard-content_medium_v01428_FQ8m-",
|
|
45
|
+
inModalWrapperOnboardContentMedium: $,
|
|
46
|
+
"in-modal-wrapper__onboard-content_large": "_in-modal-wrapper__onboard-content_large_v01428_jcxHA",
|
|
47
|
+
inModalWrapperOnboardContentLarge: O,
|
|
48
|
+
"in-modal-wrapper__slot": "_in-modal-wrapper__slot_v01428_Bl-zo",
|
|
49
|
+
inModalWrapperSlot: k,
|
|
50
|
+
"in-modal-wrapper__full-height": "_in-modal-wrapper__full-height_v01428_V3nX-",
|
|
51
|
+
inModalWrapperFullHeight: S,
|
|
52
|
+
"in-modal-information": "_in-modal-information_v01428_gvEHm",
|
|
53
|
+
inModalInformation: D
|
|
54
|
+
}, I = "information", z = "onboard", n = "primary", E = "secondary", L = [
|
|
55
|
+
["primary|default", "solid|primary"],
|
|
56
|
+
["primary|alert", "solid|danger"],
|
|
57
|
+
["primary|warning", "solid|warning"],
|
|
58
|
+
["secondary|default", "ghost|primary"],
|
|
59
|
+
["secondary|alert", "ghost|danger"],
|
|
60
|
+
["secondary|warning", "ghost|warning"]
|
|
61
|
+
], V = {
|
|
62
|
+
components: {
|
|
63
|
+
InBox: i,
|
|
64
|
+
InButtonV2: l,
|
|
65
|
+
InIcons: r
|
|
66
|
+
},
|
|
67
|
+
props: {
|
|
68
|
+
/**
|
|
69
|
+
* @property {string} id
|
|
70
|
+
*/
|
|
71
|
+
id: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: ""
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* @property {boolean} status
|
|
77
|
+
*/
|
|
78
|
+
status: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* @property {string} type
|
|
84
|
+
*/
|
|
85
|
+
type: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: "information"
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* @property {string} title
|
|
91
|
+
*/
|
|
92
|
+
title: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: ""
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* @property {string} size
|
|
98
|
+
*/
|
|
99
|
+
size: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "small"
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* @property {string} informationModalDescription
|
|
105
|
+
*/
|
|
106
|
+
informationModalDescription: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: ""
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* @property {string} modalStatus
|
|
112
|
+
*/
|
|
113
|
+
modalStatus: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "default"
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* @property {string} acceptButtonType
|
|
119
|
+
*/
|
|
120
|
+
acceptButtonType: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: n,
|
|
123
|
+
validator(t) {
|
|
124
|
+
return [n, E].includes(t);
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* @property {string} acceptButtonText
|
|
129
|
+
*/
|
|
130
|
+
acceptButtonText: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: ""
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* @property {boolean} acceptButtonDisable
|
|
136
|
+
*/
|
|
137
|
+
acceptButtonDisable: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: !1
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* @property {string} cancelButtonText
|
|
143
|
+
*/
|
|
144
|
+
cancelButtonText: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: ""
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
* @property {boolean} visibleButtons
|
|
150
|
+
*/
|
|
151
|
+
visibleButtons: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: !0
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* @property {string} withSpacing
|
|
157
|
+
*/
|
|
158
|
+
withSpacing: {
|
|
159
|
+
type: String,
|
|
160
|
+
default: "px-5"
|
|
161
|
+
},
|
|
162
|
+
/**
|
|
163
|
+
* @property {boolean} closeButtons
|
|
164
|
+
*/
|
|
165
|
+
closeButtons: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: !0
|
|
168
|
+
},
|
|
169
|
+
/**
|
|
170
|
+
* @property {string} modalDescription
|
|
171
|
+
*/
|
|
172
|
+
modalDescription: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: ""
|
|
175
|
+
},
|
|
176
|
+
/**
|
|
177
|
+
* @property {boolean} withPage
|
|
178
|
+
*/
|
|
179
|
+
withPage: {
|
|
180
|
+
type: Boolean,
|
|
181
|
+
default: !1
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
* @property {string} backButtonText
|
|
185
|
+
*/
|
|
186
|
+
backButtonText: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: ""
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* @property {boolean} closeOnOverlayClick
|
|
192
|
+
*/
|
|
193
|
+
closeOnOverlayClick: {
|
|
194
|
+
type: Boolean,
|
|
195
|
+
default: !0
|
|
196
|
+
},
|
|
197
|
+
/**
|
|
198
|
+
* @property {boolean} hasOverlay
|
|
199
|
+
*/
|
|
200
|
+
hasOverlay: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !0
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* @property {boolean} isModalAcceptButtonLoading
|
|
206
|
+
*/
|
|
207
|
+
isModalAcceptButtonLoading: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
default: !1
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
* @property {boolean} withBackOption
|
|
213
|
+
*/
|
|
214
|
+
withBackOption: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
default: !1
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* @property {boolean} preventXss
|
|
220
|
+
*/
|
|
221
|
+
preventXss: {
|
|
222
|
+
type: Boolean,
|
|
223
|
+
default: !1
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
data() {
|
|
227
|
+
return {
|
|
228
|
+
statusClone: this.status,
|
|
229
|
+
idClone: this.id,
|
|
230
|
+
typeClone: this.type,
|
|
231
|
+
modalStatusClone: this.modalStatus,
|
|
232
|
+
acceptButtonTypeClone: this.acceptButtonType,
|
|
233
|
+
titleClone: this.title,
|
|
234
|
+
sizeClone: this.size,
|
|
235
|
+
modalDescriptionClone: this.modalDescription,
|
|
236
|
+
informationModalDescriptionClone: this.informationModalDescription,
|
|
237
|
+
cancelButtonTextClone: this.cancelButtonText,
|
|
238
|
+
acceptButtonTextClone: this.acceptButtonText,
|
|
239
|
+
closeCallback: () => {
|
|
240
|
+
this.$emit("closeModal");
|
|
241
|
+
},
|
|
242
|
+
acceptCallback: () => {
|
|
243
|
+
this.$emit("acceptButton");
|
|
244
|
+
},
|
|
245
|
+
showContent: !1
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
computed: {
|
|
249
|
+
/**
|
|
250
|
+
* @return {boolean}
|
|
251
|
+
*/
|
|
252
|
+
isTypeInformation() {
|
|
253
|
+
return this.typeClone === I;
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* @return {boolean}
|
|
257
|
+
*/
|
|
258
|
+
isTypeOnboard() {
|
|
259
|
+
return this.typeClone === z;
|
|
260
|
+
},
|
|
261
|
+
/**
|
|
262
|
+
* @return {string}
|
|
263
|
+
*/
|
|
264
|
+
descriptionClass() {
|
|
265
|
+
return this.isTypeInformation ? "f-s-4 l-h-2" : "";
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* @return {string}
|
|
269
|
+
*/
|
|
270
|
+
buttonSpacing() {
|
|
271
|
+
return this.isTypeInformation ? "pt-3 pb-5" : "py-3";
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* @return {boolean}
|
|
275
|
+
*/
|
|
276
|
+
hasModalDescription() {
|
|
277
|
+
return this.modalDescription !== "";
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* @return {string}
|
|
281
|
+
*/
|
|
282
|
+
heightClass() {
|
|
283
|
+
return this.visibleButtons ? "in-modal-wrapper__slot" : "in-modal-wrapper__full-height";
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* @return {string}
|
|
287
|
+
*/
|
|
288
|
+
heightModuleClass() {
|
|
289
|
+
return this.visibleButtons ? this.$style["in-modal-wrapper__slot"] : this.$style["in-modal-wrapper__full-height"];
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* @return {string}
|
|
293
|
+
*/
|
|
294
|
+
contentClass() {
|
|
295
|
+
let t = `in-modal-wrapper__${this.typeClone}-content in-modal-wrapper__${this.typeClone}-content_${this.sizeClone}`;
|
|
296
|
+
return this.showContent && (t += " in-modal-wrapper__open-translation"), t;
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* @return {array}
|
|
300
|
+
*/
|
|
301
|
+
contentModuleClass() {
|
|
302
|
+
const t = [
|
|
303
|
+
this.$style[`in-modal-wrapper__${this.typeClone}-content`],
|
|
304
|
+
this.$style[`in-modal-wrapper__${this.typeClone}-content_${this.sizeClone}`]
|
|
305
|
+
];
|
|
306
|
+
return this.showContent && t.push(this.$style["in-modal-wrapper__open-translation"]), t;
|
|
307
|
+
},
|
|
308
|
+
/**
|
|
309
|
+
* @return {object}
|
|
310
|
+
*/
|
|
311
|
+
buttonStyling() {
|
|
312
|
+
const t = L.find((e) => e[0] === `${this.acceptButtonTypeClone}|${this.modalStatusClone}`)[1].split("|");
|
|
313
|
+
return {
|
|
314
|
+
styling: t[0],
|
|
315
|
+
type: t[1]
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
watch: {
|
|
320
|
+
status() {
|
|
321
|
+
this.statusClone = this.status, this.handleOverflow(), setTimeout(() => {
|
|
322
|
+
this.showContent = this.status;
|
|
323
|
+
}, 50);
|
|
324
|
+
},
|
|
325
|
+
id() {
|
|
326
|
+
this.idClone = this.id;
|
|
327
|
+
},
|
|
328
|
+
type() {
|
|
329
|
+
this.typeClone = this.type, setTimeout(() => {
|
|
330
|
+
this.showContent = this.status;
|
|
331
|
+
}, 50);
|
|
332
|
+
},
|
|
333
|
+
size() {
|
|
334
|
+
this.sizeClone = this.size;
|
|
335
|
+
},
|
|
336
|
+
modalStatus() {
|
|
337
|
+
this.modalStatusClone = this.modalStatus;
|
|
338
|
+
},
|
|
339
|
+
acceptButtonType() {
|
|
340
|
+
this.acceptButtonTypeClone = this.acceptButtonType;
|
|
341
|
+
},
|
|
342
|
+
title() {
|
|
343
|
+
this.titleClone = this.title;
|
|
344
|
+
},
|
|
345
|
+
modalDescription() {
|
|
346
|
+
this.modalDescriptionClone = this.preventXss ? a(this.modalDescription) : this.modalDescription;
|
|
347
|
+
},
|
|
348
|
+
informationModalDescription() {
|
|
349
|
+
this.informationModalDescriptionClone = this.preventXss ? a(this.informationModalDescription) : this.informationModalDescription;
|
|
350
|
+
},
|
|
351
|
+
cancelButtonText() {
|
|
352
|
+
this.cancelButtonTextClone = this.cancelButtonText;
|
|
353
|
+
},
|
|
354
|
+
acceptButtonText() {
|
|
355
|
+
this.acceptButtonTextClone = this.acceptButtonText;
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
mounted() {
|
|
359
|
+
this.handleOverflow();
|
|
360
|
+
},
|
|
361
|
+
created() {
|
|
362
|
+
setTimeout(() => {
|
|
363
|
+
this.showContent = this.status;
|
|
364
|
+
}, 50);
|
|
365
|
+
},
|
|
366
|
+
destroyed() {
|
|
367
|
+
this.handleOverflow();
|
|
368
|
+
},
|
|
369
|
+
methods: {
|
|
370
|
+
/**
|
|
371
|
+
* @param settings {object}
|
|
372
|
+
*/
|
|
373
|
+
show(t) {
|
|
374
|
+
this.statusClone = !0, this.idClone = t.id || "modal", this.typeClone = t.type || "information", this.titleClone = t.title || "information", this.sizeClone = t.size || "small", this.modalStatusClone = t.modalStatus || "default", this.acceptButtonTypeClone = t.acceptButtonType || n, this.informationModalDescriptionClone = t.informationModalDescription || "", this.cancelButtonTextClone = t.cancelButtonText || "Cancel", this.acceptButtonTextClone = t.acceptButtonText || "Button", this.closeCallback = t.closeCallback || this.closeCallback, this.acceptCallback = t.acceptCallback || this.acceptCallback, this.handleOverflow();
|
|
375
|
+
},
|
|
376
|
+
triggerAcceptButton() {
|
|
377
|
+
this.acceptCallback(), this.handleOverflow();
|
|
378
|
+
},
|
|
379
|
+
closeModal() {
|
|
380
|
+
this.closeCallback(), this.handleOverflow();
|
|
381
|
+
},
|
|
382
|
+
back() {
|
|
383
|
+
this.$emit("back");
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* @return {void}
|
|
387
|
+
*/
|
|
388
|
+
handleOverflow() {
|
|
389
|
+
if (this.statusClone) {
|
|
390
|
+
document.body.style.overflow = "hidden";
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
document.body.style.overflow = "";
|
|
394
|
+
},
|
|
395
|
+
/**
|
|
396
|
+
* @return {void}
|
|
397
|
+
*/
|
|
398
|
+
closeFromOverlay() {
|
|
399
|
+
this.closeOnOverlayClick && this.closeModal();
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* @return {void}
|
|
403
|
+
*/
|
|
404
|
+
closeModalClick() {
|
|
405
|
+
if (this.withBackOption) {
|
|
406
|
+
this.$emit("back");
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
this.$emit("closeModal");
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
var H = function() {
|
|
414
|
+
var t = this, e = t._self._c;
|
|
415
|
+
return t.statusClone ? e("div", { staticClass: "in-modal-wrapper qa-modal", class: [
|
|
416
|
+
t.$style["in-modal-wrapper"],
|
|
417
|
+
{
|
|
418
|
+
"in-modal-information": t.isTypeInformation || t.isTypeOnboard,
|
|
419
|
+
[t.$style["in-modal-information"]]: t.isTypeInformation || t.isTypeOnboard
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"in-modal-wrapper_opened": t.statusClone,
|
|
423
|
+
[t.$style["in-modal-wrapper_opened"]]: t.statusClone
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"in-modal-wrapper_without-overlay": !t.hasOverlay,
|
|
427
|
+
[t.$style["in-modal-wrapper_without-overlay"]]: !t.hasOverlay
|
|
428
|
+
}
|
|
429
|
+
], attrs: { id: t.idClone } }, [t.hasOverlay ? e("div", { staticClass: "in-modal-wrapper__overlay", class: t.$style["in-modal-wrapper__overlay"], on: { click: t.closeFromOverlay } }) : t._e(), t.isTypeOnboard ? e("in-box", { staticClass: "bor-w-0", class: [
|
|
430
|
+
`in-modal-wrapper__${t.typeClone}-content`,
|
|
431
|
+
t.$style[`in-modal-wrapper__${t.typeClone}-content`],
|
|
432
|
+
`in-modal-wrapper__${t.typeClone}-content_${t.sizeClone}`,
|
|
433
|
+
t.$style[`in-modal-wrapper__${t.typeClone}-content_${t.sizeClone}`]
|
|
434
|
+
] }, [t._t("onboard")], 2) : e("in-box", { staticClass: "fl-r", class: [{ "bor-r-0": !t.isTypeInformation }, t.contentClass, t.contentModuleClass] }, [e("div", { staticClass: "pt-5" }, [e("div", { staticClass: "in-modal-wrapper__title px-5", class: t.$style["in-modal-wrapper__title"] }, [e("div", [e("p", { staticClass: "w-b-b-w" }, [t._v(" " + t._s(t.titleClone) + " ")])]), t._t("secondaryIcon"), t.closeButtons ? e("a", { staticClass: "in-modal-wrapper__icon qa-close ml-2", class: t.$style["in-modal-wrapper__icon"], on: { click: t.closeModal } }, [e("in-icons", { attrs: { name: "line-close-netural" } })], 1) : t._e()], 2), e("div", [t.hasModalDescription ? e("p", { staticClass: "f-s-2 l-h-2 t-c-2 mt-2 px-5", class: t.descriptionClass, domProps: { innerHTML: t._s(t.modalDescriptionClone) } }) : t._e(), t.isTypeInformation ? e("p", { staticClass: "px-5 m-0 mt-5", domProps: { innerHTML: t._s(t.informationModalDescriptionClone) } }) : t._e(), t._t("secondaryLine")], 2), t.isTypeInformation ? t._e() : e("div", { staticClass: "pb-2 mt-5", class: [t.withSpacing, t.heightClass, t.heightModuleClass] }, [t._t("default")], 2), t.visibleButtons ? e("div", { staticClass: "in-modal-wrapper__buttons w-1 b-c-4 px-5 clearfix", class: [t.$style["in-modal-wrapper__buttons"], t.buttonSpacing] }, [t.closeButtons && !t.withPage ? e("in-button-v2", { staticClass: "mt-2", attrs: { id: "cancel", "label-text": t.cancelButtonTextClone, styling: "text", type: "secondary" }, on: { click: t.closeModalClick } }) : t._e(), t.closeButtons && t.withPage ? e("in-button-v2", { staticClass: "mt-2", attrs: { id: "back", "label-text": t.backButtonText, styling: "text", type: "secondary" }, on: { click: t.back } }) : t._e(), e("in-button-v2", { staticClass: "fl-r", attrs: { id: "accept", "disabled-status": t.acceptButtonDisable, styling: t.buttonStyling.styling, type: t.buttonStyling.type, "loading-status": t.isModalAcceptButtonLoading, "label-text": t.acceptButtonTextClone }, on: { click: t.triggerAcceptButton } }), e("div", { staticClass: "fl-r mr-3" }, [t._t("secondaryButton")], 2)], 1) : t._e()])])], 1) : t._e();
|
|
435
|
+
}, P = [];
|
|
436
|
+
const o = {
|
|
437
|
+
$style: W
|
|
438
|
+
};
|
|
439
|
+
function q(t) {
|
|
440
|
+
for (var e in o)
|
|
441
|
+
this[e] = o[e];
|
|
442
|
+
}
|
|
443
|
+
var A = /* @__PURE__ */ s(
|
|
444
|
+
V,
|
|
445
|
+
H,
|
|
446
|
+
P,
|
|
447
|
+
!1,
|
|
448
|
+
q
|
|
449
|
+
);
|
|
450
|
+
const Y = A.exports;
|
|
451
|
+
export {
|
|
452
|
+
Y as InModals
|
|
453
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { InButtonV2 as n } from "./InButtonV2.js";
|
|
2
|
+
import { p as a, k as s } from "./chunks/helpers.CgHNyjAJ.js";
|
|
3
|
+
import { n as e } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const l = "_in-no-data_v01428_EIOPS", p = "_in-no-data__title_v01428_U3708", r = "_in-no-data__description_v01428_DVWE3", _ = "_in-no-data__button_v01428_GD1hl", d = {
|
|
6
|
+
"in-no-data": "_in-no-data_v01428_EIOPS",
|
|
7
|
+
inNoData: l,
|
|
8
|
+
"in-no-data__title": "_in-no-data__title_v01428_U3708",
|
|
9
|
+
inNoDataTitle: p,
|
|
10
|
+
"in-no-data__description": "_in-no-data__description_v01428_DVWE3",
|
|
11
|
+
inNoDataDescription: r,
|
|
12
|
+
"in-no-data__button": "_in-no-data__button_v01428_GD1hl",
|
|
13
|
+
inNoDataButton: _
|
|
14
|
+
}, c = {
|
|
15
|
+
components: {
|
|
16
|
+
InButtonV2: n
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
/**
|
|
20
|
+
* @property {string} title
|
|
21
|
+
*/
|
|
22
|
+
title: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ""
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* @property {string} description
|
|
28
|
+
*/
|
|
29
|
+
description: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @property {boolean} visibleIcon
|
|
35
|
+
*/
|
|
36
|
+
visibleIcon: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* @property {string} icon
|
|
42
|
+
*/
|
|
43
|
+
icon: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "no-data"
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @property {string} buttonStatus
|
|
49
|
+
*/
|
|
50
|
+
buttonStatus: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @property {string} buttonText
|
|
56
|
+
*/
|
|
57
|
+
buttonText: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: ""
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @property {string} backgroundColorClass
|
|
63
|
+
*/
|
|
64
|
+
backgroundColorClass: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: "b-c-4"
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* @property {string} titleColorClass
|
|
70
|
+
*/
|
|
71
|
+
titleColorClass: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "t-c-1"
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* @property {string} descriptionColorClass
|
|
77
|
+
*/
|
|
78
|
+
descriptionColorClass: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: "t-c-2"
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* @property {string} iconClass
|
|
84
|
+
*/
|
|
85
|
+
iconClass: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: "mb-3"
|
|
88
|
+
},
|
|
89
|
+
parseAsHtml: { type: Boolean, default: !1 },
|
|
90
|
+
preventXss: { type: Boolean, default: !1 },
|
|
91
|
+
buttonType: { type: String, default: "primary" },
|
|
92
|
+
isButtonDisabled: { type: Boolean, default: !1 },
|
|
93
|
+
buttonTooltip: { type: String, default: "" },
|
|
94
|
+
buttonTooltipPosition: { type: String, default: "top center" },
|
|
95
|
+
buttonProps: { type: Object, default: () => ({}) }
|
|
96
|
+
},
|
|
97
|
+
computed: {
|
|
98
|
+
buttonOptions() {
|
|
99
|
+
return {
|
|
100
|
+
id: "in-device-template-wrapper__button",
|
|
101
|
+
type: this.buttonType,
|
|
102
|
+
styling: this.buttonStyling || "solid",
|
|
103
|
+
tooltipOptions: {
|
|
104
|
+
id: `in-no-data__button-tooltip-${this._uid}`,
|
|
105
|
+
dynamicPosition: !this.buttonTooltipPosition,
|
|
106
|
+
staticPosition: this.buttonTooltipPosition
|
|
107
|
+
},
|
|
108
|
+
status: this.buttonTooltip,
|
|
109
|
+
tooltipStatus: this.buttonTooltip,
|
|
110
|
+
tooltipText: this.buttonTooltip,
|
|
111
|
+
labelText: this.buttonText,
|
|
112
|
+
disabledStatus: this.isButtonDisabled,
|
|
113
|
+
...this.buttonProps
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
getImageURL: s,
|
|
119
|
+
preventXSS: a
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
var u = function() {
|
|
123
|
+
var t = this, i = t._self._c;
|
|
124
|
+
return i("div", { staticClass: "in-no-data t-a-c a-i-c t-0", class: [t.$style["in-no-data"], t.backgroundColorClass] }, [i("div", { staticClass: "w-1" }, [t.visibleIcon ? i("img", { staticClass: "in-device-template-wrapper__icon", class: t.iconClass, attrs: { width: "240", height: "240", src: t.getImageURL(`img/speacial/${t.icon}.svg`) } }) : t._e(), i("p", { staticClass: "in-no-data__title f-s-3 l-h-2 t-a-c in-device-template-wrapper__title", class: [t.titleColorClass, t.$style["in-no-data__title"]] }, [t._v(" " + t._s(t.title) + " ")]), t.parseAsHtml ? i("p", { staticClass: "in-no-data__description", class: [t.descriptionColorClass, t.$style["in-no-data__description"]], domProps: { innerHTML: t._s(t.preventXss ? t.preventXSS(t.description) : t.description) } }) : i("p", { staticClass: "in-no-data__description f-s-2 mt-2 l-h-2 t-a-c max-w-23-s m-auto", class: [t.descriptionColorClass, t.$style["in-no-data__description"]] }, [t._v(" " + t._s(t.description) + " ")]), t.buttonStatus ? [i("in-button-v2", t._b({ staticClass: "in-no-data__button", class: t.$style["in-no-data__button"], on: { click: function(v) {
|
|
125
|
+
return t.$emit("click");
|
|
126
|
+
} } }, "in-button-v2", t.buttonOptions, !1))] : t._e()], 2)]);
|
|
127
|
+
}, b = [];
|
|
128
|
+
const o = {
|
|
129
|
+
$style: d
|
|
130
|
+
};
|
|
131
|
+
function f(t) {
|
|
132
|
+
for (var i in o)
|
|
133
|
+
this[i] = o[i];
|
|
134
|
+
}
|
|
135
|
+
var y = /* @__PURE__ */ e(
|
|
136
|
+
c,
|
|
137
|
+
u,
|
|
138
|
+
b,
|
|
139
|
+
!1,
|
|
140
|
+
f
|
|
141
|
+
);
|
|
142
|
+
const S = y.exports;
|
|
143
|
+
export {
|
|
144
|
+
S as InNoData
|
|
145
|
+
};
|