@ironsource/shared-ui 2.1.12-rc.51 → 2.1.12-rc.53
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/{ColumnConfigurator.vue_vue_type_style_index_0_scoped_c13770d4_lang.css → ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css} +1 -1
- package/components/columnConfigurator/ColumnConfigurator.vue.js +3 -3
- package/components/columnConfigurator/ColumnConfigurator.vue2.js +19 -19
- package/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.column-configurator[data-v-
|
|
1
|
+
.column-configurator[data-v-702ad52e]{width:100%;padding:1rem .75rem .75rem;background:var(--background-paper);border:1px solid var(--common-divider);border-radius:var(--border-radius-md);overflow-y:auto}.section-header[data-v-702ad52e]{display:flex;align-items:center;justify-content:space-between}.column-section[data-v-702ad52e]{margin-bottom:1.125rem}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ColumnConfigurator.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../ColumnConfigurator.
|
|
4
|
-
const s = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-702ad52e"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../ColumnConfigurator.
|
|
1
|
+
import "../../ColumnConfigurator.vue_vue_type_style_index_0_scoped_702ad52e_lang.css"; import { defineComponent as E, ref as g, computed as f, watch as I, openBlock as p, createElementBlock as v, mergeProps as O, unref as s, Fragment as w, renderList as T, createVNode as u, isRef as U, withCtx as h, createElementVNode as x } from "vue";
|
|
2
2
|
import N from "./SectionHeaderText.vue.js";
|
|
3
3
|
import R from "../sortableList/SortableSelectableList.vue.js";
|
|
4
4
|
import k from "../columnPicker/RemoveButton.vue.js";
|
|
@@ -30,50 +30,50 @@ const M = { class: "section-header" }, Q = /* @__PURE__ */ E({
|
|
|
30
30
|
I(
|
|
31
31
|
[() => i.selection, () => i.columnsConfig],
|
|
32
32
|
() => {
|
|
33
|
-
a.value = i.columnsConfig.reduce((t,
|
|
33
|
+
a.value = i.columnsConfig.reduce((t, o) => (t[o.sectionId] = (i.selection ?? []).map((e) => P(o, e)).filter((e) => e), t), {});
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
immediate: !0
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
|
-
const S = (t,
|
|
40
|
-
const e =
|
|
41
|
-
a.value[t] = e, e.forEach((
|
|
42
|
-
|
|
39
|
+
const S = (t, o) => {
|
|
40
|
+
const e = o;
|
|
41
|
+
a.value[t] = e, e.forEach((l) => {
|
|
42
|
+
l.children?.length > 0 && (d.value = {
|
|
43
43
|
...d.value,
|
|
44
|
-
[
|
|
44
|
+
[l.id]: l.children[0].id
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}, $ = f(
|
|
48
48
|
() => Object.values(a.value).reduce(
|
|
49
|
-
(t,
|
|
49
|
+
(t, o) => t.concat(o.map(({ id: e }) => e)),
|
|
50
50
|
[]
|
|
51
51
|
)
|
|
52
52
|
);
|
|
53
|
-
I($, (t
|
|
54
|
-
JSON.stringify(t) !== JSON.stringify(
|
|
53
|
+
I($, (t) => {
|
|
54
|
+
JSON.stringify(t) !== JSON.stringify(i.selection) && m("update:selection", t);
|
|
55
55
|
});
|
|
56
56
|
const b = (t) => {
|
|
57
57
|
m(
|
|
58
58
|
"update:selection",
|
|
59
|
-
i.selection.filter((
|
|
59
|
+
i.selection.filter((o) => o !== t)
|
|
60
60
|
), r.value === t && (r.value = null), d.value = A(d.value, [String(t)]);
|
|
61
61
|
}, y = V(
|
|
62
62
|
i.testId,
|
|
63
63
|
c
|
|
64
64
|
);
|
|
65
|
-
return (t,
|
|
65
|
+
return (t, o) => (p(), v("div", O({ class: "column-configurator" }, s(y)[s(c).WRAPPER]), [
|
|
66
66
|
(p(!0), v(w, null, T(n.columnsConfig, (e) => (p(), v("div", {
|
|
67
67
|
key: e.sectionId,
|
|
68
68
|
class: "column-section"
|
|
69
69
|
}, [
|
|
70
70
|
u(R, {
|
|
71
71
|
items: a.value[e.sectionId],
|
|
72
|
-
"onUpdate:items": (
|
|
72
|
+
"onUpdate:items": (l) => a.value[e.sectionId] = l,
|
|
73
73
|
"open-id": r.value,
|
|
74
|
-
"onUpdate:open-id":
|
|
74
|
+
"onUpdate:open-id": o[0] || (o[0] = (l) => r.value = l),
|
|
75
75
|
"selected-child-per-item": s(d),
|
|
76
|
-
"onUpdate:selected-child-per-item":
|
|
76
|
+
"onUpdate:selected-child-per-item": o[1] || (o[1] = (l) => U(d) ? d.value = l : null),
|
|
77
77
|
"always-visible-count": n.alwaysVisibleCount,
|
|
78
78
|
"is-loading": n.loading,
|
|
79
79
|
variant: "compact",
|
|
@@ -92,14 +92,14 @@ const M = { class: "section-header" }, Q = /* @__PURE__ */ E({
|
|
|
92
92
|
selected: a.value[e.sectionId],
|
|
93
93
|
section: e,
|
|
94
94
|
"test-id": n.testId,
|
|
95
|
-
"onUpdate:selected": (
|
|
95
|
+
"onUpdate:selected": (l) => S(e.sectionId, l)
|
|
96
96
|
}, null, 8, ["selected", "section", "test-id", "onUpdate:selected"])
|
|
97
97
|
])
|
|
98
98
|
]),
|
|
99
|
-
menu: h(({ item:
|
|
99
|
+
menu: h(({ item: l }) => [
|
|
100
100
|
u(k, {
|
|
101
|
-
"test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${
|
|
102
|
-
onClick: (j) => b(
|
|
101
|
+
"test-id": `${n.testId}-${s(c).REMOVE_BUTTON}-${l.id}`,
|
|
102
|
+
onClick: (j) => b(l.id)
|
|
103
103
|
}, null, 8, ["test-id", "onClick"])
|
|
104
104
|
]),
|
|
105
105
|
_: 2
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './AppIcon.vue_vue_type_style_index_0_scoped_56ba337c_lang.css';
|
|
2
2
|
import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
|
|
3
3
|
import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
|
|
4
4
|
import { MenuItemTypes as ao } from "./components/menuItem/index.js";
|