@ironsource/shared-ui 2.1.11-test.46 → 2.1.11-test.47

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.
@@ -0,0 +1 @@
1
+ .child-options[data-v-46aae9ba]{padding-left:1rem}.tree-search[data-v-46aae9ba]{width:100%}
@@ -1,7 +1,7 @@
1
1
  import o from "./TreeDropdown.vue2.js";
2
2
  /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_876db07f_lang.css"; //*');
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-876db07f"]]);
3
+ // import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css"; //*');
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-46aae9ba"]]);
5
5
  export {
6
- s as default
6
+ r as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_876db07f_lang.css"; import { defineComponent as le, provide as ne, ref as c, computed as C, onMounted as te, watch as k, openBlock as m, createElementBlock as I, Fragment as z, createVNode as g, unref as d, withCtx as h, mergeProps as B, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, withDirectives as ae, renderList as se, createBlock as re, vShow as ce, createCommentVNode as $, toDisplayString as ue } from "vue";
1
+ import "../../../TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css"; import { defineComponent as le, provide as ne, ref as c, computed as C, onMounted as te, watch as k, openBlock as m, createElementBlock as I, Fragment as z, createVNode as g, unref as d, withCtx as h, mergeProps as B, createSlots as oe, renderSlot as ie, createElementVNode as M, withModifiers as S, createTextVNode as de, withDirectives as ae, renderList as se, createBlock as re, vShow as ce, createCommentVNode as $, toDisplayString as ue } from "vue";
2
2
  import pe from "./DropdownV4.vue.js";
3
3
  import ye from "./DefaultDropdownTrigger.vue.js";
4
4
  import "./IconButtonDropdownTrigger.vue.js";
@@ -49,11 +49,11 @@ const me = {
49
49
  setup(t, { emit: T }) {
50
50
  const l = t;
51
51
  ne("isTreeDropdown", !0);
52
- const K = c([]), u = c([]), x = c({}), O = c(!1), i = c([...l.selected]), p = c(""), N = c(!0), U = C(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
52
+ const K = c([]), u = c([]), O = c({}), x = c(!1), i = c([...l.selected]), p = c(""), N = c(!0), U = C(() => u.value.reduce((e, o) => (o[l.optionChildrenKey] && o[l.optionChildrenKey].length && o[l.optionChildrenKey].forEach(() => {
53
53
  e = e + 1;
54
54
  }), o[l.optionChildrenKey] || (e = e + 1), e), 0)), q = () => {
55
55
  l.options.forEach((e) => {
56
- e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (x.value[e[l.optionUniqueIdKey]] = [
56
+ e[l.optionChildrenKey] && e[l.optionChildrenKey].length && (O.value[e[l.optionUniqueIdKey]] = [
57
57
  ...e[l.optionChildrenKey]
58
58
  ]);
59
59
  }), K.value = [...l.options], u.value = [...l.options];
@@ -93,7 +93,7 @@ const me = {
93
93
  }), o;
94
94
  };
95
95
  te(() => {
96
- O.value || (q(), O.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
96
+ x.value || (q(), x.value = !0, l.preExpandedOptions && l.preExpandedOptions.forEach((e) => {
97
97
  a.value[e] = 1;
98
98
  }));
99
99
  }), k(
@@ -104,7 +104,7 @@ const me = {
104
104
  ), k(
105
105
  () => l.selected,
106
106
  () => {
107
- l.isOpen || (i.value = [...l.selected]);
107
+ console.log("isOpen", l.isOpen), !l.isOpen && (i.value = [...l.selected]);
108
108
  }
109
109
  );
110
110
  const y = C(() => i.value.length < U.value ? !1 : i.value.length === U.value), Q = C(() => !y.value && i.value.length > 0), L = c(y.value);
@@ -120,7 +120,7 @@ const me = {
120
120
  function W(e, o) {
121
121
  const n = e.toLowerCase(), s = [];
122
122
  return o.value.forEach((r) => {
123
- const w = r[l.optionNameKey].toLowerCase().includes(n), V = x.value[r[l.optionUniqueIdKey]]?.filter(
123
+ const w = r[l.optionNameKey].toLowerCase().includes(n), V = O.value[r[l.optionUniqueIdKey]]?.filter(
124
124
  (ee) => ee[l.optionNameKey].toLowerCase().includes(n)
125
125
  ) || [];
126
126
  (w || V.length > 0) && (r[l.optionChildrenKey] = V, s.push(r));
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
1
+ import './FilterDropdown.vue_vue_type_style_index_0_scoped_b42d8b45_lang.css';
2
2
  import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as po } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.11-test.46",
3
+ "version": "2.1.11-test.47",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .child-options[data-v-876db07f]{padding-left:1rem}.tree-search[data-v-876db07f]{width:100%}