@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.
Files changed (88) hide show
  1. package/README.md +1 -0
  2. package/dist/@types/config/schemas.js +12 -6
  3. package/dist/components/Guido.vue.js +6 -6
  4. package/dist/components/Guido.vue2.js +63 -61
  5. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +18 -0
  6. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +67 -0
  7. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue.js +20 -0
  8. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue2.js +55 -0
  9. package/dist/composables/useCustomInterfaceAppearance.js +19 -16
  10. package/dist/composables/useRecommendation.js +43 -35
  11. package/dist/composables/useStripo.js +30 -29
  12. package/dist/config/migrator/itemsBlockMigrator.js +1 -1
  13. package/dist/config/migrator/recommendationMigrator.js +6 -4
  14. package/dist/enums/date.js +4 -3
  15. package/dist/enums/extensions/recommendationBlock.js +25 -23
  16. package/dist/enums/recommendation.js +17 -17
  17. package/dist/extensions/Blocks/Items/enums/productEnums.js +45 -45
  18. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +13 -11
  19. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +37 -26
  20. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +115 -87
  21. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +132 -0
  22. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +198 -51
  23. package/dist/extensions/Blocks/Recommendation/utils/productIds.js +6 -0
  24. package/dist/extensions/Blocks/common-control.js +22 -19
  25. package/dist/guido.css +1 -1
  26. package/dist/node_modules/@useinsider/design-system-organisms/dist/index-Dc9AygoZ.js +526 -0
  27. package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +9345 -0
  28. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +174 -0
  29. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +381 -0
  30. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +236 -0
  31. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +70 -0
  32. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +350 -0
  33. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +371 -0
  34. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +152 -0
  35. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +141 -0
  36. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +1047 -0
  37. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +96050 -0
  38. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +2042 -0
  39. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +166 -0
  40. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +1098 -0
  41. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +55 -0
  42. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +265 -0
  43. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +184 -0
  44. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +50 -0
  45. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +453 -0
  46. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +145 -0
  47. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +176 -0
  48. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +266 -0
  49. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +114 -0
  50. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +200 -0
  51. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +451 -0
  52. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +49 -0
  53. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +119 -0
  54. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +4309 -0
  55. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +129 -0
  56. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +503 -0
  57. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +253 -0
  58. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +107 -0
  59. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +134 -0
  60. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +464 -0
  61. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +28 -0
  62. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +23 -0
  63. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +29 -0
  64. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +109 -0
  65. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +2339 -0
  66. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +16 -0
  67. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +17 -0
  68. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +188 -0
  69. package/dist/services/recommendationApi.js +77 -28
  70. package/dist/src/@types/config/schemas.d.ts +12 -0
  71. package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +3 -0
  72. package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBox.vue.d.ts +24 -0
  73. package/dist/src/composables/useConfig.d.ts +2 -0
  74. package/dist/src/composables/useRecommendation.d.ts +1 -0
  75. package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
  76. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +12 -3
  77. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +37 -0
  78. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +210 -10
  79. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +6 -0
  80. package/dist/src/extensions/Blocks/Recommendation/utils/productIds.d.ts +6 -0
  81. package/dist/src/extensions/Blocks/common-control.d.ts +4 -1
  82. package/dist/src/mock/api/recommendation-strategies.d.ts +43 -0
  83. package/dist/src/services/recommendationApi.d.ts +4 -1
  84. package/dist/src/stores/config.d.ts +18 -0
  85. package/dist/static/styles/components/recommendation-strategy.css.js +171 -0
  86. package/dist/utils/dateUtil.js +23 -10
  87. package/dist/utils/templatePreparation.js +37 -34
  88. package/package.json +2 -1
@@ -0,0 +1,166 @@
1
+ import { ref as d, watch as C, computed as i } from "vue";
2
+ import { InButtonV2 as b } from "./InButtonV2.js";
3
+ import { h as S, i as l } from "./chunks/helpers.CgHNyjAJ.js";
4
+ import { c as g } from "./chunks/clickOutside.qP9M0QCm.js";
5
+ import { n as $ } from "./chunks/_plugin-vue2_normalizer.WQT2Fc8L.js";
6
+ /* empty css */
7
+ const k = "_in-drawer__container_v01428_4Qg2K", D = "_in-drawer__overlay_v01428_x7TIe", x = "_in-drawer__wrapper_v01428_Sp4xG", G = "_in-drawer__wrapper--open_v01428_YYicR", T = "_in-drawer__content_v01428_lASiO", W = "_in-drawer__content-full-width_v01428_uLxOF", F = "_in-drawer__footer_v01428_EU50w", V = "_in-drawer__footer-with-buttons_v01428_HRdXc", H = "_in-drawer__footer-buttons-with-slot_v01428_VkjB8", j = "_in-drawer__button-group_v01428_YCVfb", z = "_in-drawer__title-area_v01428_Dovph", M = "_in-drawer__header-main_v01428_UyW7H", R = "_in-drawer__title_v01428_UzW-C", U = "_in-drawer__description_v01428_x-OO2", Y = "_in-drawer__header-right_v01428_Ta9pS", I = "_in-drawer__header_v01428_i-Hp0", L = "_in-drawer__wrapper--small_v01428_xC0do", E = "_in-drawer__wrapper--medium_v01428_aSmOC", P = "_in-drawer__wrapper--large_v01428_-ZdZ6", Z = {
8
+ "in-drawer__container": "_in-drawer__container_v01428_4Qg2K",
9
+ inDrawerContainer: k,
10
+ "in-drawer__overlay": "_in-drawer__overlay_v01428_x7TIe",
11
+ inDrawerOverlay: D,
12
+ "in-drawer__wrapper": "_in-drawer__wrapper_v01428_Sp4xG",
13
+ inDrawerWrapper: x,
14
+ "in-drawer__wrapper--open": "_in-drawer__wrapper--open_v01428_YYicR",
15
+ inDrawerWrapperOpen: G,
16
+ "in-drawer__content": "_in-drawer__content_v01428_lASiO",
17
+ inDrawerContent: T,
18
+ "in-drawer__content-full-width": "_in-drawer__content-full-width_v01428_uLxOF",
19
+ inDrawerContentFullWidth: W,
20
+ "in-drawer__footer": "_in-drawer__footer_v01428_EU50w",
21
+ inDrawerFooter: F,
22
+ "in-drawer__footer-with-buttons": "_in-drawer__footer-with-buttons_v01428_HRdXc",
23
+ inDrawerFooterWithButtons: V,
24
+ "in-drawer__footer-buttons-with-slot": "_in-drawer__footer-buttons-with-slot_v01428_VkjB8",
25
+ inDrawerFooterButtonsWithSlot: H,
26
+ "in-drawer__button-group": "_in-drawer__button-group_v01428_YCVfb",
27
+ inDrawerButtonGroup: j,
28
+ "in-drawer__title-area": "_in-drawer__title-area_v01428_Dovph",
29
+ inDrawerTitleArea: z,
30
+ "in-drawer__header-main": "_in-drawer__header-main_v01428_UyW7H",
31
+ inDrawerHeaderMain: M,
32
+ "in-drawer__title": "_in-drawer__title_v01428_UzW-C",
33
+ inDrawerTitle: R,
34
+ "in-drawer__description": "_in-drawer__description_v01428_x-OO2",
35
+ inDrawerDescription: U,
36
+ "in-drawer__header-right": "_in-drawer__header-right_v01428_Ta9pS",
37
+ inDrawerHeaderRight: Y,
38
+ "in-drawer__header": "_in-drawer__header_v01428_i-Hp0",
39
+ inDrawerHeader: I,
40
+ "in-drawer__wrapper--small": "_in-drawer__wrapper--small_v01428_xC0do",
41
+ inDrawerWrapperSmall: L,
42
+ "in-drawer__wrapper--medium": "_in-drawer__wrapper--medium_v01428_aSmOC",
43
+ inDrawerWrapperMedium: E,
44
+ "in-drawer__wrapper--large": "_in-drawer__wrapper--large_v01428_-ZdZ6",
45
+ inDrawerWrapperLarge: P
46
+ }, n = {
47
+ default: "default",
48
+ danger: "danger",
49
+ warning: "warning"
50
+ }, A = {
51
+ small: "small",
52
+ medium: "medium",
53
+ large: "large"
54
+ }, q = 300, K = {
55
+ components: { InButtonV2: b },
56
+ directives: { clickOutside: g },
57
+ props: {
58
+ closeButtonStatus: { type: Boolean, default: !0 },
59
+ closeOnOutsideClick: { type: Boolean, default: !0 },
60
+ fullWidthContentStatus: { type: Boolean, default: !1 },
61
+ descriptionStatus: { type: Boolean, default: !0 },
62
+ descriptionText: { type: String, default: "" },
63
+ footerStatus: { type: Boolean, default: !0 },
64
+ id: { type: String, default: "" },
65
+ overlayStatus: { type: Boolean, default: !0 },
66
+ size: { type: String, required: !0, validator: (t) => Object.values(A).includes(t) },
67
+ state: { type: String, default: "default", validator: (t) => Object.values(n).includes(t) },
68
+ status: { type: Boolean, default: !0 },
69
+ titleText: { type: String, required: !0 },
70
+ footerButtonGroupOptions: { type: Object, default: () => ({}) }
71
+ },
72
+ setup(t, { emit: e }) {
73
+ const a = d(t.status), _ = d(""), o = (r = !1) => {
74
+ if (r) {
75
+ document.body.style.overflow = "";
76
+ return;
77
+ }
78
+ document.body.style.overflow = a.value ? "hidden" : "";
79
+ };
80
+ C(
81
+ () => t.status,
82
+ (r) => {
83
+ r ? (a.value = !0, o(), setTimeout(() => {
84
+ _.value = "in-drawer__wrapper--open";
85
+ }, 5)) : _.value = "", r || (o(!0), setTimeout(() => {
86
+ a.value = !1;
87
+ }, q));
88
+ },
89
+ { immediate: !0 }
90
+ );
91
+ const s = () => {
92
+ e("onCloseEvent"), o(!0);
93
+ }, w = () => {
94
+ t.closeOnOutsideClick && s();
95
+ }, c = (r) => {
96
+ e(`${r}ButtonEvent`);
97
+ }, p = i(() => Object.values(t.footerButtonGroupOptions).length > 0), v = i(() => {
98
+ const { primaryButton: r } = S(t.footerButtonGroupOptions), B = r.type || n.primary, O = n[t.state] || n.primary;
99
+ return r.type = t.state === n.default ? B : O, r;
100
+ }), f = () => {
101
+ t.overlayStatus || !t.closeOnOutsideClick || s();
102
+ }, y = i(() => !l(t.footerButtonGroupOptions.cancelOrBackButton)), h = i(() => !l(t.footerButtonGroupOptions.primaryButton)), m = i(() => !l(t.footerButtonGroupOptions.secondaryButton));
103
+ return {
104
+ onButtonClick: c,
105
+ closeModal: s,
106
+ closeFromOverlay: w,
107
+ checkClickOutside: f,
108
+ handleOverflow: o,
109
+ hasFooterButtonGroupOptions: p,
110
+ isCancelOrBackButtonVisible: y,
111
+ isPrimaryButtonVisible: h,
112
+ isSecondaryButtonVisible: m,
113
+ primaryButtonOptions: v,
114
+ statusClone: a,
115
+ animationClass: _
116
+ };
117
+ }
118
+ };
119
+ var Q = function() {
120
+ var t = this, e = t._self._c;
121
+ return t.statusClone ? e("div", { staticClass: "in-drawer__container", class: t.$style["in-drawer__container"] }, [t.overlayStatus ? e("div", { staticClass: "in-drawer__overlay", class: t.$style["in-drawer__overlay"], on: { click: t.closeFromOverlay } }) : t._e(), e("div", { directives: [{ name: "click-outside", rawName: "v-click-outside", value: t.checkClickOutside, expression: "checkClickOutside" }], staticClass: "in-drawer__wrapper", class: [
122
+ t.$style["in-drawer__wrapper"],
123
+ `in-drawer__wrapper--${t.size}`,
124
+ t.$style[`in-drawer__wrapper--${t.size}`],
125
+ t.animationClass,
126
+ t.$style[t.animationClass]
127
+ ] }, [e("div", { staticClass: "in-drawer__header", class: t.$style["in-drawer__header"] }, [e("div", { staticClass: "in-drawer__header-main", class: t.$style["in-drawer__header-main"] }, [e("div", { staticClass: "in-drawer__header-left" }, [e("div", { staticClass: "in-drawer__title-area", class: t.$style["in-drawer__title-area"] }, [e("div", { staticClass: "in-drawer__title", class: t.$style["in-drawer__title"], attrs: { title: t.titleText }, domProps: { innerHTML: t._s(t.titleText) } }), t._t("headerTitleSlot")], 2), t.descriptionStatus ? e("div", { staticClass: "in-drawer__description", class: t.$style["in-drawer__description"], domProps: { innerHTML: t._s(t.descriptionText) } }) : t._e()]), e("div", { staticClass: "in-drawer__header-right", class: t.$style["in-drawer__header-right"] }, [t._t("headerRightSlot"), t.closeButtonStatus ? e("in-button-v2", { staticClass: "in-drawer__close-icon", attrs: { id: `close-button-${t.id}`, "left-icon": "line-close-netural", "label-text-status": !1, size: "small", type: "secondary", styling: "ghost" }, on: { click: t.closeModal } }) : t._e()], 2)]), e("div", { staticClass: "in-drawer__bottom-slot" }, [t._t("headerBottomSlot")], 2)]), e("div", { staticClass: "in-drawer__content", class: [
128
+ t.$style["in-drawer__content"],
129
+ {
130
+ "in-drawer__content-full-width": t.fullWidthContentStatus,
131
+ [t.$style["in-drawer__content-full-width"]]: t.fullWidthContentStatus
132
+ }
133
+ ] }, [t._t("contentSlot")], 2), t.footerStatus ? e("div", { staticClass: "in-drawer__footer", class: [
134
+ t.$style["in-drawer__footer"],
135
+ {
136
+ "in-drawer__footer-with-buttons": t.hasFooterButtonGroupOptions,
137
+ [t.$style["in-drawer__footer-with-buttons"]]: t.hasFooterButtonGroupOptions,
138
+ "in-drawer__footer-buttons-with-slot": t.hasFooterButtonGroupOptions && t.$slots.footerSlot,
139
+ [t.$style["in-drawer__footer-buttons-with-slot"]]: t.hasFooterButtonGroupOptions && t.$slots.footerSlot
140
+ }
141
+ ] }, [t.$slots.footerSlot ? e("div", [t._t("footerSlot")], 2) : t._e(), t.hasFooterButtonGroupOptions ? e("div", { staticClass: "in-drawer__button-group", class: t.$style["in-drawer__button-group"] }, [t.isCancelOrBackButtonVisible ? e("in-button-v2", t._b({ attrs: { id: `button-footer-cancel-${t.id}` }, on: { click: function(a) {
142
+ return t.onButtonClick("cancelOrBack");
143
+ } } }, "in-button-v2", t.footerButtonGroupOptions.cancelOrBackButton, !1)) : t._e(), t.isSecondaryButtonVisible ? e("in-button-v2", t._b({ attrs: { id: `button-footer-secondary-${t.id}` }, on: { click: function(a) {
144
+ return t.onButtonClick("secondary");
145
+ } } }, "in-button-v2", t.footerButtonGroupOptions.secondaryButton, !1)) : t._e(), t.isPrimaryButtonVisible ? e("in-button-v2", t._b({ attrs: { id: `button-footer-primary-${t.id}` }, on: { click: function(a) {
146
+ return t.onButtonClick("primary");
147
+ } } }, "in-button-v2", t.primaryButtonOptions, !1)) : t._e()], 1) : t._e()]) : t._e()])]) : t._e();
148
+ }, X = [];
149
+ const u = {
150
+ $style: Z
151
+ };
152
+ function N(t) {
153
+ for (var e in u)
154
+ this[e] = u[e];
155
+ }
156
+ var J = /* @__PURE__ */ $(
157
+ K,
158
+ Q,
159
+ X,
160
+ !1,
161
+ N
162
+ );
163
+ const ot = J.exports;
164
+ export {
165
+ ot as InDrawer
166
+ };