@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,253 @@
|
|
|
1
|
+
import { InIcons as p } from "./InIcons.js";
|
|
2
|
+
import { InButtonV2 as l } from "./InButtonV2.js";
|
|
3
|
+
import { p as c } from "./chunks/helpers.CgHNyjAJ.js";
|
|
4
|
+
import { n as w } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const h = "_in-toasts-wrapper_v01428_UZIa9", u = "_in-toasts-wrapper__text_v01428_XA8CL", C = "_in-toasts-wrapper_light_v01428_5JM1b", f = "_in-toasts-wrapper_light__text_v01428_FXaTw", g = "_in-toasts-wrapper_light__icon_v01428_3aqfU", d = "_in-toasts-wrapper_success_v01428_lf-wK", v = "_in-toasts-wrapper_success__text_v01428_eOu-5", y = "_in-toasts-wrapper_success__icon_v01428_vlqZj", T = "_in-toasts-wrapper_warning_v01428_N3C1i", x = "_in-toasts-wrapper_warning__text_v01428_r3gKP", m = "_in-toasts-wrapper_warning__icon_v01428_htryF", k = "_in-toasts-wrapper_alert_v01428_mfBk-", B = "_in-toasts-wrapper_alert__text_v01428_tVOIt", I = "_in-toasts-wrapper_alert__icon_v01428_joh7E", W = "_in-toasts-wrapper_dark_v01428_fpk2m", $ = "_in-toasts-wrapper_dark__text_v01428_boW0R", b = "_in-toasts-wrapper_dark__icon_v01428_gjlv9", L = "_in-toasts-wrapper_opened_v01428_J9kK7", M = "_in-toasts-wrapper_opened_left-spacing_v01428_kSATB", S = {
|
|
7
|
+
"in-toasts-wrapper": "_in-toasts-wrapper_v01428_UZIa9",
|
|
8
|
+
inToastsWrapper: h,
|
|
9
|
+
"in-toasts-wrapper__text": "_in-toasts-wrapper__text_v01428_XA8CL",
|
|
10
|
+
inToastsWrapperText: u,
|
|
11
|
+
"in-toasts-wrapper_light": "_in-toasts-wrapper_light_v01428_5JM1b",
|
|
12
|
+
inToastsWrapperLight: C,
|
|
13
|
+
"in-toasts-wrapper_light__text": "_in-toasts-wrapper_light__text_v01428_FXaTw",
|
|
14
|
+
inToastsWrapperLightText: f,
|
|
15
|
+
"in-toasts-wrapper_light__icon": "_in-toasts-wrapper_light__icon_v01428_3aqfU",
|
|
16
|
+
inToastsWrapperLightIcon: g,
|
|
17
|
+
"in-toasts-wrapper_success": "_in-toasts-wrapper_success_v01428_lf-wK",
|
|
18
|
+
inToastsWrapperSuccess: d,
|
|
19
|
+
"in-toasts-wrapper_success__text": "_in-toasts-wrapper_success__text_v01428_eOu-5",
|
|
20
|
+
inToastsWrapperSuccessText: v,
|
|
21
|
+
"in-toasts-wrapper_success__icon": "_in-toasts-wrapper_success__icon_v01428_vlqZj",
|
|
22
|
+
inToastsWrapperSuccessIcon: y,
|
|
23
|
+
"in-toasts-wrapper_warning": "_in-toasts-wrapper_warning_v01428_N3C1i",
|
|
24
|
+
inToastsWrapperWarning: T,
|
|
25
|
+
"in-toasts-wrapper_warning__text": "_in-toasts-wrapper_warning__text_v01428_r3gKP",
|
|
26
|
+
inToastsWrapperWarningText: x,
|
|
27
|
+
"in-toasts-wrapper_warning__icon": "_in-toasts-wrapper_warning__icon_v01428_htryF",
|
|
28
|
+
inToastsWrapperWarningIcon: m,
|
|
29
|
+
"in-toasts-wrapper_alert": "_in-toasts-wrapper_alert_v01428_mfBk-",
|
|
30
|
+
inToastsWrapperAlert: k,
|
|
31
|
+
"in-toasts-wrapper_alert__text": "_in-toasts-wrapper_alert__text_v01428_tVOIt",
|
|
32
|
+
inToastsWrapperAlertText: B,
|
|
33
|
+
"in-toasts-wrapper_alert__icon": "_in-toasts-wrapper_alert__icon_v01428_joh7E",
|
|
34
|
+
inToastsWrapperAlertIcon: I,
|
|
35
|
+
"in-toasts-wrapper_dark": "_in-toasts-wrapper_dark_v01428_fpk2m",
|
|
36
|
+
inToastsWrapperDark: W,
|
|
37
|
+
"in-toasts-wrapper_dark__text": "_in-toasts-wrapper_dark__text_v01428_boW0R",
|
|
38
|
+
inToastsWrapperDarkText: $,
|
|
39
|
+
"in-toasts-wrapper_dark__icon": "_in-toasts-wrapper_dark__icon_v01428_gjlv9",
|
|
40
|
+
inToastsWrapperDarkIcon: b,
|
|
41
|
+
"in-toasts-wrapper_opened": "_in-toasts-wrapper_opened_v01428_J9kK7",
|
|
42
|
+
inToastsWrapperOpened: L,
|
|
43
|
+
"in-toasts-wrapper_opened_left-spacing": "_in-toasts-wrapper_opened_left-spacing_v01428_kSATB",
|
|
44
|
+
inToastsWrapperOpenedLeftSpacing: M
|
|
45
|
+
}, A = {
|
|
46
|
+
components: {
|
|
47
|
+
InIcons: p,
|
|
48
|
+
InButtonV2: l
|
|
49
|
+
},
|
|
50
|
+
props: {
|
|
51
|
+
/**
|
|
52
|
+
* @property {string} id
|
|
53
|
+
*/
|
|
54
|
+
id: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ""
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @property {string} text
|
|
60
|
+
*/
|
|
61
|
+
text: {
|
|
62
|
+
type: String,
|
|
63
|
+
default: ""
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* @property {string} type
|
|
67
|
+
*/
|
|
68
|
+
type: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "light"
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* @property {string} icon
|
|
74
|
+
*/
|
|
75
|
+
icon: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: ""
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* @property {boolean} status
|
|
81
|
+
*/
|
|
82
|
+
status: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* @property {boolean} withIcon
|
|
88
|
+
*/
|
|
89
|
+
withIcon: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !0
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* @property {boolean} withoutLeftMargin
|
|
95
|
+
*/
|
|
96
|
+
withoutLeftMargin: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* @property {array} actionButtonsConfig
|
|
102
|
+
*/
|
|
103
|
+
actionButtonsConfig: {
|
|
104
|
+
type: Array,
|
|
105
|
+
default: () => []
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* @property {boolean} preventXss
|
|
109
|
+
*/
|
|
110
|
+
preventXss: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: !1
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
data() {
|
|
116
|
+
return {
|
|
117
|
+
idClone: this.id,
|
|
118
|
+
textClone: this.text,
|
|
119
|
+
typeClone: this.type,
|
|
120
|
+
iconClone: this.icon,
|
|
121
|
+
withIconClone: this.withIcon,
|
|
122
|
+
withoutLeftMarginClone: this.withoutLeftMargin,
|
|
123
|
+
actionButtonsConfigClone: this.actionButtonsConfig,
|
|
124
|
+
showToast: !1,
|
|
125
|
+
timeout: null
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
computed: {
|
|
129
|
+
/**
|
|
130
|
+
* @return {string}
|
|
131
|
+
*/
|
|
132
|
+
iconName() {
|
|
133
|
+
return this.typeClone === "success" ? "filled-check-circle" : this.typeClone === "alert" ? "filled-error-box" : this.typeClone === "warning" ? "filled-caution-triangle" : "filled-info-circle";
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* @return {boolean}
|
|
137
|
+
*/
|
|
138
|
+
enableActionButtons() {
|
|
139
|
+
return this.actionButtonsConfigClone.length > 0;
|
|
140
|
+
},
|
|
141
|
+
/**
|
|
142
|
+
* @return {string}
|
|
143
|
+
*/
|
|
144
|
+
actionButtonsBackgroundClass() {
|
|
145
|
+
return this.typeClone === "success" ? "b-c-28" : this.typeClone === "warning" ? "b-c-30" : this.typeClone === "alert" ? "b-c-26" : this.typeClone === "dark" ? "b-c-2" : this.typeClone === "light" ? "b-c-36" : "";
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
* @return {string}
|
|
149
|
+
*/
|
|
150
|
+
actionButtonStatus() {
|
|
151
|
+
return this.typeClone === "light" ? "dark" : "white";
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* @return {string}
|
|
155
|
+
*/
|
|
156
|
+
secureTextClone() {
|
|
157
|
+
return this.preventXss ? c(this.textClone) : this.textClone;
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* @return {string}
|
|
161
|
+
*/
|
|
162
|
+
buttonType() {
|
|
163
|
+
return this.typeClone === "light" ? "secondary" : "inverse";
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
watch: {
|
|
167
|
+
status() {
|
|
168
|
+
this.status && (this.showToast = !this.showToast, this.timeout = setTimeout(() => {
|
|
169
|
+
this.showToast = !1;
|
|
170
|
+
}, 6e3));
|
|
171
|
+
},
|
|
172
|
+
id() {
|
|
173
|
+
this.idClone = this.id;
|
|
174
|
+
},
|
|
175
|
+
text() {
|
|
176
|
+
this.textClone = this.text;
|
|
177
|
+
},
|
|
178
|
+
type() {
|
|
179
|
+
this.typeClone = this.type;
|
|
180
|
+
},
|
|
181
|
+
icon() {
|
|
182
|
+
this.iconClone = this.icon;
|
|
183
|
+
},
|
|
184
|
+
withIcon() {
|
|
185
|
+
this.withIconClone = this.withIcon;
|
|
186
|
+
},
|
|
187
|
+
withoutLeftMargin() {
|
|
188
|
+
this.withoutLeftMarginClone = this.withoutLeftMargin;
|
|
189
|
+
},
|
|
190
|
+
actionButtonsConfig() {
|
|
191
|
+
this.actionButtonsConfigClone = this.actionButtonsConfig;
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
mounted() {
|
|
195
|
+
document.body.appendChild(this.$el), this.status && (this.showToast = !this.showToast);
|
|
196
|
+
},
|
|
197
|
+
methods: {
|
|
198
|
+
show(t = "", s = "success", a = "", e = !1, n = !0, i = "toast", r = !1, _ = []) {
|
|
199
|
+
this.idClone = i, this.textClone = t, this.typeClone = s, this.iconClone = a, this.withIconClone = n, this.withoutLeftMarginClone = r, this.actionButtonsConfigClone = _, this.showToast = !0, this.timeout = setTimeout(() => {
|
|
200
|
+
this.showToast = !1;
|
|
201
|
+
}, 6e3);
|
|
202
|
+
},
|
|
203
|
+
remove() {
|
|
204
|
+
this.showToast = !1, clearTimeout(this.timeout);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
var j = function() {
|
|
209
|
+
var t = this, s = t._self._c;
|
|
210
|
+
return s("div", { staticClass: "in-toasts-wrapper m-4 mb-5 qa-toasts", class: [
|
|
211
|
+
t.$style["in-toasts-wrapper"],
|
|
212
|
+
{
|
|
213
|
+
[`in-toasts-wrapper_${t.typeClone}`]: t.showToast,
|
|
214
|
+
[t.$style[`in-toasts-wrapper_${t.typeClone}`]]: t.showToast,
|
|
215
|
+
"in-toasts-wrapper_opened": t.showToast,
|
|
216
|
+
[t.$style["in-toasts-wrapper_opened"]]: t.showToast,
|
|
217
|
+
"in-toasts-wrapper_opened_left-spacing": t.showToast && !t.withoutLeftMarginClone,
|
|
218
|
+
[t.$style["in-toasts-wrapper_opened_left-spacing"]]: t.showToast && !t.withoutLeftMarginClone
|
|
219
|
+
}
|
|
220
|
+
], attrs: { id: t.idClone } }, [s("div", { staticClass: "d-f" }, [t.withIconClone ? s("in-icons", { staticClass: "fl-l mr-3", class: [
|
|
221
|
+
`in-toasts-wrapper_${t.typeClone}__icon`,
|
|
222
|
+
t.$style[`in-toasts-wrapper_${t.typeClone}__icon`]
|
|
223
|
+
], attrs: { name: t.icon || t.iconName } }) : t._e(), s("p", { staticClass: "m-0 d-i-b in-toasts-wrapper__text", class: [
|
|
224
|
+
t.$style["in-toasts-wrapper__text"],
|
|
225
|
+
`in-toasts-wrapper_${t.typeClone}__text`,
|
|
226
|
+
t.$style[`in-toasts-wrapper_${t.typeClone}__text`]
|
|
227
|
+
], domProps: { innerHTML: t._s(t.secureTextClone) } }), s("a", { staticClass: "in-toasts-wrapper__close ml-3 cur-p d-i-b", on: { click: t.remove } }, [s("in-icons", { staticClass: "fl-r", class: [
|
|
228
|
+
`in-toasts-wrapper_${t.typeClone}__icon`,
|
|
229
|
+
t.$style[`in-toasts-wrapper_${t.typeClone}__icon`]
|
|
230
|
+
], attrs: { name: "line-close-netural" } })], 1)], 1), t.enableActionButtons ? s("div", { staticClass: "d-f mt-2", class: { "ml-6": t.withIcon } }, t._l(t.actionButtonsConfigClone, function(a, e) {
|
|
231
|
+
return s("div", { key: `action-button-${e}`, staticClass: "mr-2 px-2 py-1 bor-r-1", class: t.actionButtonsBackgroundClass }, [s("in-button-v2", { attrs: { id: `action-button-${e}`, "label-text": a.text, styling: "text", type: t.buttonType }, on: { click: function(n) {
|
|
232
|
+
return t.$emit(`actionButtonClick${e}`);
|
|
233
|
+
} } })], 1);
|
|
234
|
+
}), 0) : t._e()]);
|
|
235
|
+
}, O = [];
|
|
236
|
+
const o = {
|
|
237
|
+
$style: S
|
|
238
|
+
};
|
|
239
|
+
function X(t) {
|
|
240
|
+
for (var s in o)
|
|
241
|
+
this[s] = o[s];
|
|
242
|
+
}
|
|
243
|
+
var K = /* @__PURE__ */ w(
|
|
244
|
+
A,
|
|
245
|
+
j,
|
|
246
|
+
O,
|
|
247
|
+
!1,
|
|
248
|
+
X
|
|
249
|
+
);
|
|
250
|
+
const U = K.exports;
|
|
251
|
+
export {
|
|
252
|
+
U as InToasts
|
|
253
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { InIcons as l } from "./InIcons.js";
|
|
2
|
+
import { InSkeleton as n } from "./InSkeleton.js";
|
|
3
|
+
import { n as i } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
const a = "_in-toggle-wrapper_v01428_sSIG8", o = "_in-toggle-wrapper__input_v01428_mz2U1", p = "_in-toggle-wrapper_checked_v01428_8WDPD", s = "_in-toggle-wrapper_disable_v01428_8Mygl", g = {
|
|
6
|
+
"in-toggle-wrapper": "_in-toggle-wrapper_v01428_sSIG8",
|
|
7
|
+
inToggleWrapper: a,
|
|
8
|
+
"in-toggle-wrapper__input": "_in-toggle-wrapper__input_v01428_mz2U1",
|
|
9
|
+
inToggleWrapperInput: o,
|
|
10
|
+
"in-toggle-wrapper_checked": "_in-toggle-wrapper_checked_v01428_8WDPD",
|
|
11
|
+
inToggleWrapperChecked: p,
|
|
12
|
+
"in-toggle-wrapper_disable": "_in-toggle-wrapper_disable_v01428_8Mygl",
|
|
13
|
+
inToggleWrapperDisable: s
|
|
14
|
+
}, c = "line-check-netural", _ = "line-close-netural", d = {
|
|
15
|
+
components: {
|
|
16
|
+
InIcons: l,
|
|
17
|
+
InSkeleton: n
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
/**
|
|
21
|
+
* @property {string} id
|
|
22
|
+
*/
|
|
23
|
+
id: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !0
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* @property {string} name
|
|
29
|
+
*/
|
|
30
|
+
name: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: !0
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* @property {number|boolean} checked
|
|
36
|
+
*/
|
|
37
|
+
checked: {
|
|
38
|
+
type: Number | Boolean,
|
|
39
|
+
default: !1,
|
|
40
|
+
required: !0
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @property {boolean} disable
|
|
44
|
+
*/
|
|
45
|
+
disable: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* @property {boolean} skeletonStatus
|
|
51
|
+
*/
|
|
52
|
+
skeletonStatus: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: !1
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* @property {number} skeletonSizing
|
|
58
|
+
*/
|
|
59
|
+
skeletonSizing: {
|
|
60
|
+
type: Object,
|
|
61
|
+
default: () => ({
|
|
62
|
+
width: 0,
|
|
63
|
+
number: 0
|
|
64
|
+
})
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
computed: {
|
|
68
|
+
iconName() {
|
|
69
|
+
return this.checked ? c : _;
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
onClick() {
|
|
74
|
+
this.$emit("click", !this.checked);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var u = function() {
|
|
79
|
+
var e = this, t = e._self._c;
|
|
80
|
+
return t("fieldset", { staticClass: "in-form-item in-toggle-wrapper qa-toggle", class: [
|
|
81
|
+
e.$style["in-toggle-wrapper"],
|
|
82
|
+
{
|
|
83
|
+
[e.$style["in-toggle-wrapper_disable"]]: e.disable,
|
|
84
|
+
"in-toggle-wrapper_disable": e.disable,
|
|
85
|
+
[e.$style["in-toggle-wrapper_checked"]]: e.checked,
|
|
86
|
+
"in-toggle-wrapper_checked": e.checked
|
|
87
|
+
}
|
|
88
|
+
] }, [e.skeletonStatus ? e._e() : t("input", { staticClass: "in-toggle-wrapper__input", class: e.$style["in-toggle-wrapper__input"], attrs: { id: e.id, name: e.name, type: "checkbox", disabled: e.disable }, domProps: { checked: e.checked }, on: { click: e.onClick } }), e.skeletonStatus ? e._e() : t("label", { staticClass: "d-b in-toggle-wrapper__label", class: e.$style["in-toggle-wrapper__label"], attrs: { for: e.id } }, [t("in-icons", { attrs: { name: e.iconName, size: "28" } })], 1), e.skeletonStatus ? t("in-skeleton", { attrs: { sizing: e.skeletonSizing, name: "InToggle" } }) : e._e()], 1);
|
|
89
|
+
}, k = [];
|
|
90
|
+
const r = {
|
|
91
|
+
$style: g
|
|
92
|
+
};
|
|
93
|
+
function m(e) {
|
|
94
|
+
for (var t in r)
|
|
95
|
+
this[t] = r[t];
|
|
96
|
+
}
|
|
97
|
+
var h = /* @__PURE__ */ i(
|
|
98
|
+
d,
|
|
99
|
+
u,
|
|
100
|
+
k,
|
|
101
|
+
!1,
|
|
102
|
+
m
|
|
103
|
+
);
|
|
104
|
+
const v = h.exports;
|
|
105
|
+
export {
|
|
106
|
+
v as InToggle
|
|
107
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { InIcons as i } from "./InIcons.js";
|
|
2
|
+
import { InBox as r } from "./InBox.js";
|
|
3
|
+
import { p as e } from "./chunks/helpers.CgHNyjAJ.js";
|
|
4
|
+
import { n as _ } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
const n = "_in-tooltip-wrapper_v01428_XsWju", a = "_in-tooltip-wrapper__box_v01428_pHRNS", l = "_in-tooltip-wrapper__box-content_v01428_qwunL", s = "_in-tooltip-wrapper__icon_v01428_rwmKB", x = "_in-tooltip-wrapper__box_bottom-center_v01428_viNJI", w = "_in-tooltip-wrapper__box_bottom-end_v01428_MCboc", b = "_in-tooltip-wrapper__box_top-start_v01428_Bd5zx", c = "_in-tooltip-wrapper__box_top-center_v01428_y5fRB", d = "_in-tooltip-wrapper__box_top-end_v01428_iaiqR", m = "_in-tooltip-wrapper__box_dark_v01428_B7p3y", v = {
|
|
7
|
+
"in-tooltip-wrapper": "_in-tooltip-wrapper_v01428_XsWju",
|
|
8
|
+
inTooltipWrapper: n,
|
|
9
|
+
"in-tooltip-wrapper__box": "_in-tooltip-wrapper__box_v01428_pHRNS",
|
|
10
|
+
inTooltipWrapperBox: a,
|
|
11
|
+
"in-tooltip-wrapper__box-content": "_in-tooltip-wrapper__box-content_v01428_qwunL",
|
|
12
|
+
inTooltipWrapperBoxContent: l,
|
|
13
|
+
"in-tooltip-wrapper__icon": "_in-tooltip-wrapper__icon_v01428_rwmKB",
|
|
14
|
+
inTooltipWrapperIcon: s,
|
|
15
|
+
"in-tooltip-wrapper__box_bottom-center": "_in-tooltip-wrapper__box_bottom-center_v01428_viNJI",
|
|
16
|
+
inTooltipWrapperBoxBottomCenter: x,
|
|
17
|
+
"in-tooltip-wrapper__box_bottom-end": "_in-tooltip-wrapper__box_bottom-end_v01428_MCboc",
|
|
18
|
+
inTooltipWrapperBoxBottomEnd: w,
|
|
19
|
+
"in-tooltip-wrapper__box_top-start": "_in-tooltip-wrapper__box_top-start_v01428_Bd5zx",
|
|
20
|
+
inTooltipWrapperBoxTopStart: b,
|
|
21
|
+
"in-tooltip-wrapper__box_top-center": "_in-tooltip-wrapper__box_top-center_v01428_y5fRB",
|
|
22
|
+
inTooltipWrapperBoxTopCenter: c,
|
|
23
|
+
"in-tooltip-wrapper__box_top-end": "_in-tooltip-wrapper__box_top-end_v01428_iaiqR",
|
|
24
|
+
inTooltipWrapperBoxTopEnd: d,
|
|
25
|
+
"in-tooltip-wrapper__box_dark": "_in-tooltip-wrapper__box_dark_v01428_B7p3y",
|
|
26
|
+
inTooltipWrapperBoxDark: m
|
|
27
|
+
}, u = {
|
|
28
|
+
components: {
|
|
29
|
+
InIcons: i,
|
|
30
|
+
InBox: r
|
|
31
|
+
},
|
|
32
|
+
props: {
|
|
33
|
+
/**
|
|
34
|
+
* @property {string|function} text
|
|
35
|
+
*/
|
|
36
|
+
text: {
|
|
37
|
+
type: [String, Function],
|
|
38
|
+
required: !0
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* @property {string} position
|
|
42
|
+
*/
|
|
43
|
+
position: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "top"
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @property {string} align
|
|
49
|
+
*/
|
|
50
|
+
align: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "end"
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @property {boolean} themeDark
|
|
56
|
+
*/
|
|
57
|
+
themeDark: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @property {boolean} withIcon
|
|
63
|
+
*/
|
|
64
|
+
withIcon: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: !0
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* @property {boolean} disable
|
|
70
|
+
*/
|
|
71
|
+
disable: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: !1
|
|
74
|
+
},
|
|
75
|
+
preventXss: { type: Boolean, default: !1 },
|
|
76
|
+
renderHtml: { type: Boolean, default: !0 }
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
/**
|
|
80
|
+
* @return {string}
|
|
81
|
+
*/
|
|
82
|
+
trianglePosition() {
|
|
83
|
+
return this.position === "top" ? "bottom" : "top";
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* @return {string}
|
|
87
|
+
*/
|
|
88
|
+
topClass() {
|
|
89
|
+
return this.withIcon ? "mt-1" : "mt-2";
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
methods: {
|
|
93
|
+
/**
|
|
94
|
+
* @return {string|string|Function}
|
|
95
|
+
*/
|
|
96
|
+
sanitizedText() {
|
|
97
|
+
return typeof this.text == "function" ? this.text : this.preventXss ? e(this.text) : this.text;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
var B = function() {
|
|
102
|
+
var t = this, o = t._self._c;
|
|
103
|
+
return o("div", { staticClass: "in-tooltip-wrapper d-i-b qa-tooltip", class: t.$style["in-tooltip-wrapper"] }, [t.withIcon ? o("in-icons", { staticClass: "in-tooltip-wrapper__icon", class: t.$style["in-tooltip-wrapper__icon"], attrs: { name: "line-tooltip" } }) : o("div", { staticClass: "in-tooltip-wrapper__icon", class: t.$style["in-tooltip-wrapper__icon"] }, [t._t("element")], 2), o("div", { staticClass: "in-tooltip-wrapper__box", class: [
|
|
104
|
+
t.$style["in-tooltip-wrapper__box"],
|
|
105
|
+
t.$style[`in-tooltip-wrapper__box_${t.position}-${t.align}`],
|
|
106
|
+
`in-tooltip-wrapper__box_${t.position}-${t.align}`
|
|
107
|
+
] }, [o("in-box", { staticClass: "px-3 py-2 s-2 in-tooltip-wrapper__box-content", class: [
|
|
108
|
+
t.$style["in-tooltip-wrapper__box-content"],
|
|
109
|
+
t.topClass,
|
|
110
|
+
{
|
|
111
|
+
"in-tooltip-wrapper__box_dark": t.themeDark,
|
|
112
|
+
[t.$style["in-tooltip-wrapper__box_dark"]]: t.themeDark,
|
|
113
|
+
"d-n": t.disable
|
|
114
|
+
}
|
|
115
|
+
], attrs: { "border-triangle": !0, "border-triangle-position": t.trianglePosition, "border-triangle-align": t.align } }, [t.renderHtml ? o("div", { domProps: { innerHTML: t._s(t.sanitizedText()) } }) : o("div", [t._v(" " + t._s(t.sanitizedText()) + " ")]), t._t("customText")], 2)], 1)], 1);
|
|
116
|
+
}, f = [];
|
|
117
|
+
const p = {
|
|
118
|
+
$style: v
|
|
119
|
+
};
|
|
120
|
+
function y(t) {
|
|
121
|
+
for (var o in p)
|
|
122
|
+
this[o] = p[o];
|
|
123
|
+
}
|
|
124
|
+
var T = /* @__PURE__ */ _(
|
|
125
|
+
u,
|
|
126
|
+
B,
|
|
127
|
+
f,
|
|
128
|
+
!1,
|
|
129
|
+
y
|
|
130
|
+
);
|
|
131
|
+
const C = T.exports;
|
|
132
|
+
export {
|
|
133
|
+
C as InTooltip
|
|
134
|
+
};
|