@ironsource/shared-ui 2.1.11-rc.43 → 2.1.11-rc.45

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
+ .filters-panel[data-v-383011d3]{display:flex;flex-wrap:wrap;gap:var(--spacing-50);align-items:center}.filters-panel[data-v-383011d3] .dropdown{padding:0}
@@ -1,7 +1,7 @@
1
1
  import e from "./FiltersPanelV4.vue2.js";
2
2
  /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css"; //*');
4
- const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-111b200a"]]);
3
+ // import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css"; //*');
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-383011d3"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_111b200a_lang.css"; import { defineComponent as d, openBlock as t, createElementBlock as s, Fragment as a, renderList as i, renderSlot as l, normalizeProps as c, guardReactiveProps as u } from "vue";
1
+ import "../../../FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css"; import { defineComponent as d, openBlock as t, createElementBlock as s, Fragment as a, renderList as i, renderSlot as l, normalizeProps as c, guardReactiveProps as u } from "vue";
2
2
  const p = { class: "filters-panel" }, m = ["data-testid"], v = /* @__PURE__ */ d({
3
3
  __name: "FiltersPanelV4",
4
4
  props: {
@@ -1,50 +1,55 @@
1
- import { ref as t, provide as d } from "vue";
2
- import { useTableContext as f } from "../../table/common/TableContext.js";
3
- import { EditableContext as C } from "./EditableContext.js";
4
- import { onClickOutside as m } from "@vueuse/core";
5
- const k = (e) => {
6
- const l = t(!1), n = t(e.cell), o = t(e.saveOnClickOutside), i = t(null), r = f("Editable"), a = t(null), v = () => {
7
- if (e.cell === n.value) {
1
+ import { ref as n, provide as f, watch as d } from "vue";
2
+ import { useTableContext as C } from "../../table/common/TableContext.js";
3
+ import { EditableContext as m } from "./EditableContext.js";
4
+ import { onClickOutside as x } from "@vueuse/core";
5
+ const E = (e) => {
6
+ const l = n(!1), t = n(e.cell), i = n(e.saveOnClickOutside), o = n(null), r = C("Editable"), a = n(null), v = () => {
7
+ if (e.cell === t.value) {
8
8
  l.value = !1;
9
9
  return;
10
10
  }
11
- const u = e.validateFunction?.(n.value);
11
+ const u = e.validateFunction?.(t.value);
12
12
  a.value = u, !u && (r.onClose({
13
13
  rowIndex: e.rowIndex,
14
14
  cellIndex: e.cellIndex,
15
- value: n.value
15
+ value: t.value
16
16
  }), l.value = !1);
17
17
  };
18
- d(C, {
18
+ f(m, {
19
19
  focusable: !0,
20
- value: n,
20
+ value: t,
21
21
  error: a,
22
22
  confirmable: !0,
23
- saveOnClickOutside: o.value,
23
+ saveOnClickOutside: i.value,
24
24
  onChange(u) {
25
- n.value = u, a.value = e.validateFunction?.(n.value);
25
+ t.value = u, a.value = e.validateFunction?.(t.value);
26
26
  },
27
27
  onClose: v
28
28
  });
29
29
  const c = () => {
30
30
  l.value || e.isLoading || (l.value = !l.value);
31
31
  }, s = () => {
32
- n.value = e.cell, a.value = null;
32
+ t.value = e.cell, a.value = null;
33
33
  };
34
- return m(i, () => {
34
+ return x(o, () => {
35
35
  if (l.value) {
36
- if (o.value) {
36
+ if (i.value) {
37
37
  v();
38
38
  return;
39
39
  }
40
40
  l.value = !1, s(), r.onClose();
41
41
  }
42
- }), {
42
+ }), d(
43
+ () => e.cell,
44
+ () => {
45
+ l.value || (t.value = e.cell);
46
+ }
47
+ ), {
43
48
  onEdit: c,
44
- target: i,
49
+ target: o,
45
50
  isEditing: l
46
51
  };
47
52
  };
48
53
  export {
49
- k as editableCommon
54
+ E as editableCommon
50
55
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './IncludeExclude.vue_vue_type_style_index_0_scoped_cc2adbf5_lang.css';
1
+ import './IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_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-rc.43",
3
+ "version": "2.1.11-rc.45",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .filters-panel[data-v-111b200a]{display:flex;flex-wrap:wrap;gap:var(--spacing-50)}.filters-panel[data-v-111b200a] .dropdown{padding:0}