@devgateway/dvz-ui-react 1.9.12 → 1.9.14

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.
@@ -1,20 +1,20 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import T from "react";
3
- import { connect as D } from "react-redux";
1
+ import { jsx as T } from "react/jsx-runtime";
2
+ import D from "react";
3
+ import { connect as C } from "react-redux";
4
4
  import { injectIntl as F } from "react-intl";
5
5
  import { DataContext as I } from "./DataContext.js";
6
- import { getData as C, setData as y } from "../reducers/data.js";
6
+ import { getData as v, setData as y } from "../reducers/data.js";
7
7
  import "semantic-ui-react";
8
- class S extends T.Component {
8
+ class L extends D.Component {
9
9
  constructor() {
10
10
  super(), this.state = {
11
11
  showLoading: !1
12
12
  }, this.checkLoadingTime = this.checkLoadingTime.bind(this), this.loadingTimeout = null, this.fallbackTimeout = null, this.initialFilterTimeout = null;
13
13
  }
14
14
  componentDidMount() {
15
- const { app: t, csv: i, store: a, params: e, source: l, group: n, editing: s, waitForFilters: r = !1 } = this.props;
16
- console.log("Group & Store ", a, this.props.mySelf), t === "csv" ? this.props.onSetData({ app: t, csv: i, store: a, params: e, group: n }) : (this.setState({ showLoading: !1 }), (!r || s) && (console.log("📥 [D3 Map DataProvider] Initial data load triggered", { app: t, editing: s, waitForFilters: r }), this.loadData({ app: t, source: l, store: a, params: e, group: n })), !s && r && (this.fallbackTimeout = setTimeout(() => {
17
- !this.props.data && !this.props.loading && (console.warn("⚠️ [D3 Map DataProvider] Fallback loading triggered"), this.loadData({ app: t, source: l, store: a, params: e, group: n }));
15
+ const { app: t, csv: i, store: e, params: a, source: l, group: n, editing: s, waitForFilters: r = !1 } = this.props;
16
+ t === "csv" ? this.props.onSetData({ app: t, csv: i, store: e, params: a, group: n }) : (this.setState({ showLoading: !1 }), (!r || s) && (console.log("📥 [D3 Map DataProvider] Initial data load triggered", { app: t, editing: s, waitForFilters: r }), this.loadData({ app: t, source: l, store: e, params: a, group: n, includeColumns: extraTooltipColumns })), !s && r && (this.fallbackTimeout = setTimeout(() => {
17
+ !this.props.data && !this.props.loading && (console.warn("⚠️ [D3 Map DataProvider] Fallback loading triggered"), this.loadData({ app: t, source: l, store: e, params: a, group: n, includeColumns: extraTooltipColumns }));
18
18
  }, 2e3)));
19
19
  }
20
20
  componentWillUnmount() {
@@ -23,30 +23,31 @@ class S extends T.Component {
23
23
  componentDidUpdate(t) {
24
24
  const {
25
25
  app: i,
26
- filters: a,
27
- apply: e,
26
+ filters: e,
27
+ apply: a,
28
28
  source: l,
29
29
  store: n,
30
30
  params: s,
31
31
  csv: r,
32
32
  group: d,
33
- autoApply: g,
34
- lastInitialFilterChange: c,
35
- lastUserFilterChange: h,
36
- waitForFilters: p
33
+ autoApply: p,
34
+ lastInitialFilterChange: m,
35
+ lastUserFilterChange: u,
36
+ waitForFilters: g,
37
+ editing: f
37
38
  } = this.props;
38
- if (e != null && e !== t.apply) {
39
+ if (console.log("Current props in d3MapDataProvider", this.props), a != null && a !== t.apply) {
39
40
  console.log("🔄 [DataProvider] Manual reload (apply button)"), this.loadData({ app: i, source: l, store: n, params: s, group: d });
40
41
  return;
41
42
  }
42
- if (g !== !1 && (a !== t.filters || JSON.stringify(s) !== JSON.stringify(t.params) || i !== t.app || JSON.stringify(t.source) !== JSON.stringify(l) || r !== t.csv))
43
+ if (p !== !1 && (e !== t.filters || JSON.stringify(s) !== JSON.stringify(t.params) || i !== t.app || JSON.stringify(t.source) !== JSON.stringify(l) || r !== t.csv))
43
44
  if (i === "csv")
44
45
  this.props.onSetData({ app: i, csv: r, store: n, params: s, group: d });
45
46
  else {
46
- const m = c !== t.lastInitialFilterChange, u = h !== t.lastUserFilterChange;
47
- m && p ? (console.log("ℹ️ [DataProvider] Initial filters changing, debouncing..."), this.initialFilterTimeout && clearTimeout(this.initialFilterTimeout), this.initialFilterTimeout = setTimeout(() => {
47
+ const c = m !== t.lastInitialFilterChange, h = u !== t.lastUserFilterChange;
48
+ c && g ? (console.log("ℹ️ [DataProvider] Initial filters changing, debouncing..."), this.initialFilterTimeout && clearTimeout(this.initialFilterTimeout), this.initialFilterTimeout = setTimeout(() => {
48
49
  console.log("✅ [DataProvider] Initial filters settled, loading data"), this.loadData({ app: i, source: l, store: n, params: s, group: d });
49
- }, 500)) : u && (console.log("ℹ️ [DataProvider] User filters changed, loading data"), this.loadData({ app: i, source: l, store: n, params: s, group: d }));
50
+ }, 500)) : h ? (console.log("ℹ️ [DataProvider] User filters changed, loading data"), this.loadData({ app: i, source: l, store: n, params: s, group: d })) : !c && !h && (!g || f) && (console.log("[DataProvider] Props changed, loading data"), this.loadData({ app: i, source: l, store: n, params: s, group: d }));
50
51
  }
51
52
  }
52
53
  loadData(t) {
@@ -58,26 +59,26 @@ class S extends T.Component {
58
59
  }
59
60
  render() {
60
61
  const { data: t } = this.props;
61
- return /* @__PURE__ */ f(I.Provider, { value: t, children: this.props.children });
62
+ return console.log("[DataProvider] Rendering with data:", this.props), /* @__PURE__ */ T(I.Provider, { value: t, children: this.props.children });
62
63
  }
63
64
  }
64
- const L = (o, t) => {
65
- const { store: i, group: a, app: e } = t;
65
+ const S = (o, t) => {
66
+ const { store: i, group: e, app: a } = t;
66
67
  return {
67
- lastUserFilterChange: o.getIn(["data", "filters-settings", e, a, "lastUserFilterChange"]),
68
- lastInitialFilterChange: o.getIn(["data", "filters-settings", e, a, "lastInitialFilterChange"]),
68
+ lastUserFilterChange: o.getIn(["data", "filters-settings", a, e, "lastUserFilterChange"]),
69
+ lastInitialFilterChange: o.getIn(["data", "filters-settings", a, e, "lastInitialFilterChange"]),
69
70
  data: o.getIn(["data", ...i, "data"]),
70
- filters: o.getIn(["data", "filters", e, a]),
71
- autoApply: o.getIn(["data", "filters-settings", e, a, "autoApply"]),
72
- apply: o.getIn(["data", "filters-settings", e, a, "apply"]),
71
+ filters: o.getIn(["data", "filters", a, e]),
72
+ autoApply: o.getIn(["data", "filters-settings", a, e, "autoApply"]),
73
+ apply: o.getIn(["data", "filters-settings", a, e, "apply"]),
73
74
  error: o.getIn(["data", ...i, "error"]),
74
75
  loading: o.getIn(["data", ...i, "loading"]),
75
76
  time: o.getIn(["data", ...i, "time"])
76
77
  };
77
78
  }, k = {
78
79
  onSetData: y,
79
- onLoadData: C
80
- }, M = D(L, k)(F(S));
80
+ onLoadData: v
81
+ }, N = C(S, k)(F(L));
81
82
  export {
82
- M as default
83
+ N as default
83
84
  };
@@ -6,12 +6,12 @@ import fe from "../data/CategoriesProvider.js";
6
6
  import { connect as Q } from "react-redux";
7
7
  import { setFilter as he, setInitialFilters as me } from "../reducers/data.js";
8
8
  import { injectIntl as pe } from "react-intl";
9
- const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VALUE_INPUT", Ce = "LOWEST_VALUE", Te = "HIGHEST_VALUE", N = (t) => t instanceof Boolean ? t : t == "true", Se = (t, o) => t ? t.sort((a, c) => a.position - c.position).map((a) => {
10
- const c = o && a.labels && a.labels[o.toUpperCase()] ? a.labels[o.toUpperCase()] : a.value;
9
+ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VALUE_INPUT", Ce = "LOWEST_VALUE", Te = "HIGHEST_VALUE", N = (t) => t instanceof Boolean ? t : t == "true", Se = (t, o) => t ? t.sort((a, u) => a.position - u.position).map((a) => {
10
+ const u = o && a.labels && a.labels[o.toUpperCase()] ? a.labels[o.toUpperCase()] : a.value;
11
11
  return {
12
12
  key: a.id,
13
13
  value: a.id,
14
- text: c,
14
+ text: u,
15
15
  icon: a.value.toLocaleLowerCase(),
16
16
  position: a.position ? a.position : a.value
17
17
  };
@@ -24,20 +24,20 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
24
24
  throw new Error("error parsing value:" + o);
25
25
  }
26
26
  }, X = (t, o) => {
27
- const { app: a, group: c, param: i } = o;
27
+ const { app: a, group: u, param: i } = o;
28
28
  return {
29
- current: t.getIn(["data", "filters", a, c, i])
29
+ current: t.getIn(["data", "filters", a, u, i])
30
30
  };
31
31
  }, Z = {
32
32
  onInit: me,
33
33
  onChange: he
34
34
  }, ee = (t) => {
35
- const { isRange: o, options: a, alphabeticalSort: c, ascOrder: i } = t;
36
- N(c) ? a.sort(function(f, u) {
37
- const r = f.text ? f.text.toLowerCase() : "", g = u.text ? u.text.toLowerCase() : "";
35
+ const { isRange: o, options: a, alphabeticalSort: u, ascOrder: i } = t;
36
+ N(u) ? a.sort(function(f, c) {
37
+ const r = f.text ? f.text.toLowerCase() : "", g = c.text ? c.text.toLowerCase() : "";
38
38
  return N(i) ? r < g ? -1 : r > g ? 1 : 0 : r < g ? 1 : r > g ? -1 : 0;
39
- }) : a.sort(function(f, u) {
40
- return N(i) ? f.position - u.position : u.position - f.position;
39
+ }) : a.sort(function(f, c) {
40
+ return N(i) ? f.position - c.position : c.position - f.position;
41
41
  });
42
42
  const d = { ...t };
43
43
  return o ? /* @__PURE__ */ l(Ne, { ...d }) : /* @__PURE__ */ l(Ee, { ...d });
@@ -48,94 +48,94 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
48
48
  const {
49
49
  allLabel: o,
50
50
  noneLabel: a,
51
- placeholder: c,
51
+ placeholder: u,
52
52
  options: i,
53
53
  app: d,
54
54
  group: f,
55
- param: u,
55
+ param: c,
56
56
  current: r,
57
57
  onChange: g,
58
58
  onInit: s,
59
59
  useSingleColumn: A,
60
60
  enableTextSearch: x,
61
61
  filterType: C,
62
- defaultValues: v,
62
+ defaultValues: T,
63
63
  showNoDataOption: F,
64
- defaultValueCriteria: p,
64
+ defaultValueCriteria: h,
65
65
  allNoneSameBehaviour: E,
66
66
  closeOnSelect: b,
67
67
  hiddenFilters: w,
68
- autoApply: O,
69
- childFilter: U,
70
- childFilterParam: V,
68
+ autoApply: U,
69
+ childFilter: y,
70
+ childFilterParam: $,
71
71
  params: W,
72
72
  uniqueStorage: G,
73
- dvzProxyDatasetId: y,
74
- defaultTopNEnabled: $,
75
- defaultTopNCount: k
73
+ dvzProxyDatasetId: k,
74
+ defaultTopNEnabled: D,
75
+ defaultTopNCount: O
76
76
  } = t, [te, q] = Y(""), B = (e) => {
77
77
  let n = [];
78
- C != R && !b && r && r.indexOf(e) > -1 ? n = r.filter((h) => h !== e) : C != R && r && !b ? n = [...r, e] : n = [e], g({ app: d, group: f, param: u, value: n, autoApply: O, childFilter: U, childFilterParam: V, params: W, uniqueStorage: G, dvzProxyDatasetId: y }), b && T.current && T.current.close();
78
+ C != R && !b && r && r.indexOf(e) > -1 ? n = r.filter((m) => m !== e) : C != R && r && !b ? n = [...r, e] : n = [e], g({ app: d, group: f, param: c, value: n, autoApply: U, childFilter: y, childFilterParam: $, params: W, uniqueStorage: G, dvzProxyDatasetId: k }), b && S.current && S.current.close();
79
79
  }, J = (e) => {
80
- const n = i.filter((h) => x && S && S.trim().length > 0 && h.text ? h.text.toLowerCase().includes(S.toLowerCase()) : !0);
80
+ const n = i.filter((m) => x && v && v.trim().length > 0 && m.text ? m.text.toLowerCase().includes(v.toLowerCase()) : !0);
81
81
  g({
82
82
  app: d,
83
83
  group: f,
84
- param: u,
85
- value: n.map((h) => h.value),
86
- autoApply: O,
87
- childFilter: U
88
- }), b && T.current && T.current.close();
84
+ param: c,
85
+ value: n.map((m) => m.value),
86
+ autoApply: U,
87
+ childFilter: y
88
+ }), b && S.current && S.current.close();
89
89
  }, H = () => {
90
- const e = i.filter((n) => x && S && S.trim().length > 0 && n.text ? n.text.toLowerCase().includes(S.toLowerCase()) : !0);
90
+ const e = i.filter((n) => x && v && v.trim().length > 0 && n.text ? n.text.toLowerCase().includes(v.toLowerCase()) : !0);
91
91
  g({
92
92
  app: d,
93
93
  group: f,
94
- param: u,
94
+ param: c,
95
95
  value: E ? e.map((n) => n.value) : [],
96
- autoApply: O
97
- }), b && T.current && T.current.close();
98
- }, D = (e) => {
96
+ autoApply: U
97
+ }), b && S.current && S.current.close();
98
+ }, P = (e) => {
99
99
  M(e);
100
100
  };
101
101
  ie(() => {
102
- if (!r) {
103
- const e = i.map((n) => n.value);
104
- if (C == re || C == "")
105
- if ($) {
106
- const n = k && k > 0 ? k : 0, h = i.slice(0, n).map((m) => m.value);
107
- s({ app: d, group: f, param: u, value: h });
108
- } else {
109
- const n = v ? v.split(",").map((m) => m.trim()).filter((m) => m.length > 0) : [], h = n.length > 0 ? i.filter((m) => n.indexOf(String(m.value)) > -1).map((m) => m.value) : e;
110
- s({ app: d, group: f, param: u, value: h });
111
- }
112
- else if (d == "csv") {
113
- let n = [];
114
- p === xe ? n = v ? v.split(",") : [] : p == Ce ? n = e.length > 0 ? [e[0]] : [] : p == Te && (n = e.length > 0 ? [e[e.length - 1]] : []), s({ app: d, group: f, param: u, value: n });
115
- } else if ($) {
116
- const n = i.slice(0, 1).map((h) => h.value);
117
- s({ app: d, group: f, param: u, value: n });
102
+ if (r || i.length === 0)
103
+ return;
104
+ const e = i.map((n) => n.value);
105
+ if (C == re || C == "")
106
+ if (D) {
107
+ const n = O && O > 0 ? O : 0, m = i.slice(0, n).map((p) => p.value);
108
+ s({ app: d, group: f, param: c, value: m });
118
109
  } else {
119
- const n = v ? v.split(",").map((m) => m.trim()).filter((m) => m.length > 0) : [], h = n.length > 0 ? i.filter((m) => n.indexOf(String(m.value)) > -1).map((m) => m.value).slice(0, 1) : e.length > 0 ? [e[0]] : [];
120
- s({ app: d, group: f, param: u, value: h });
110
+ const n = T ? T.split(",").map((p) => p.trim()).filter((p) => p.length > 0) : [], m = n.length > 0 ? i.filter((p) => n.indexOf(String(p.value)) > -1).map((p) => p.value) : e;
111
+ s({ app: d, group: f, param: c, value: m });
121
112
  }
113
+ else if (d == "csv") {
114
+ let n = [];
115
+ h === xe ? n = T ? T.split(",") : [] : h == Ce ? n = e.length > 0 ? [e[0]] : [] : h == Te && (n = e.length > 0 ? [e[e.length - 1]] : []), s({ app: d, group: f, param: c, value: n });
116
+ } else if (D) {
117
+ const n = i.slice(0, 1).map((m) => m.value);
118
+ s({ app: d, group: f, param: c, value: n });
119
+ } else {
120
+ const n = T ? T.split(",").map((p) => p.trim()).filter((p) => p.length > 0) : [], m = n.length > 0 ? i.filter((p) => n.indexOf(String(p.value)) > -1).map((p) => p.value).slice(0, 1) : e.length > 0 ? [e[0]] : [];
121
+ s({ app: d, group: f, param: c, value: m });
122
122
  }
123
- }, []);
124
- const P = () => {
123
+ }, [d, O, D, h, T, C, f, s, i, c, r]);
124
+ const V = () => {
125
125
  if (C == R) {
126
126
  const e = r && r[0] ? i.filter((n) => n.value == r[0])[0] : null;
127
- return `${c} ${e ? e.text : ""}`;
127
+ return `${u} ${e ? e.text : ""}`;
128
128
  } else
129
- return `${c} (${r ? r.filter((e) => e == Number.MIN_SAFE_INTEGER ? !1 : w && w.length > 0 ? w.indexOf(e) == -1 : !0).length : 0}/${i.filter((e) => w && w.length > 0 ? w.indexOf(e.id) == -1 : !0).length}) `;
130
- }, T = oe(null), [S, M] = Y("");
129
+ return `${u} (${r ? r.filter((e) => e == Number.MIN_SAFE_INTEGER ? !1 : w && w.length > 0 ? w.indexOf(e) == -1 : !0).length : 0}/${i.filter((e) => w && w.length > 0 ? w.indexOf(e.id) == -1 : !0).length}) `;
130
+ }, S = oe(null), [v, M] = Y("");
131
131
  return (
132
132
  // @ts-ignore
133
133
  /* @__PURE__ */ l(
134
134
  I,
135
135
  {
136
- ref: T,
136
+ ref: S,
137
137
  fluid: !0,
138
- text: P(),
138
+ text: V(),
139
139
  scrolling: !1,
140
140
  button: !0,
141
141
  icon: "angle down ignore",
@@ -158,9 +158,9 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
158
158
  "input",
159
159
  {
160
160
  className: "filter-search",
161
- value: S,
161
+ value: v,
162
162
  onChange: (e) => {
163
- D(e.target.value);
163
+ P(e.target.value);
164
164
  }
165
165
  }
166
166
  ),
@@ -171,7 +171,7 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
171
171
  link: !0,
172
172
  className: "clear-icon ignore",
173
173
  onClick: (e) => {
174
- D("");
174
+ P("");
175
175
  }
176
176
  }
177
177
  )
@@ -180,7 +180,7 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
180
180
  ] })
181
181
  ] }),
182
182
  /* @__PURE__ */ l("br", {}),
183
- /* @__PURE__ */ l(_, { className: A ? "dropdown-single-column" : "", children: i.filter((e) => x && S && S.trim().length > 0 && e.text ? e.text.toLowerCase().includes(S.toLowerCase()) : !0).map(({ value: e, text: n }, h) => /* @__PURE__ */ L(
183
+ /* @__PURE__ */ l(_, { className: A ? "dropdown-single-column" : "", children: i.filter((e) => x && v && v.trim().length > 0 && e.text ? e.text.toLowerCase().includes(v.toLowerCase()) : !0).map(({ value: e, text: n }, m) => /* @__PURE__ */ L(
184
184
  I.Item,
185
185
  {
186
186
  className: A ? "dropdown-item-single-column" : "",
@@ -189,7 +189,7 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
189
189
  K,
190
190
  {
191
191
  checked: !!(r && r.indexOf(e) > -1),
192
- onChange: (m) => B(e),
192
+ onChange: (p) => B(e),
193
193
  label: n
194
194
  }
195
195
  ),
@@ -197,13 +197,13 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
197
197
  de,
198
198
  {
199
199
  checked: !!(r && r.indexOf(e) > -1 && !(i.length == r.length && E)),
200
- onChange: (m) => B(e),
200
+ onChange: (p) => B(e),
201
201
  label: n
202
202
  }
203
203
  )
204
204
  ]
205
205
  },
206
- h
206
+ m
207
207
  )) })
208
208
  ] })
209
209
  }
@@ -217,28 +217,28 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
217
217
  placeholder: t,
218
218
  startLabel: o,
219
219
  endLabel: a,
220
- options: c,
220
+ options: u,
221
221
  onChange: i,
222
222
  app: d,
223
223
  group: f,
224
- param: u,
224
+ param: c,
225
225
  current: r,
226
226
  autoApply: g
227
227
  }) => {
228
- const [s, A] = Y(c[0].position), [x, C] = Y(c[c.length - 1].position);
228
+ const [s, A] = Y(u[0].position), [x, C] = Y(u[u.length - 1].position);
229
229
  ie(() => {
230
- const F = c.filter(
231
- (p) => (p.position > s || p.position === s) && (p.position < x || p.position === x)
232
- ).map((p) => p.value);
233
- i({ app: d, group: f, param: u, value: F, autoApply: g });
230
+ const F = u.filter(
231
+ (h) => (h.position > s || h.position === s) && (h.position < x || h.position === x)
232
+ ).map((h) => h.value);
233
+ i({ app: d, group: f, param: c, value: F, autoApply: g });
234
234
  }, [s, x]);
235
- const v = oe(null);
235
+ const T = oe(null);
236
236
  return /* @__PURE__ */ l(
237
237
  I,
238
238
  {
239
- ref: v,
239
+ ref: T,
240
240
  fluid: !0,
241
- text: `${t} (${r ? r.filter((F) => F != Number.MIN_SAFE_INTEGER).length : 0}/${c.length})`,
241
+ text: `${t} (${r ? r.filter((F) => F != Number.MIN_SAFE_INTEGER).length : 0}/${u.length})`,
242
242
  scrolling: !1,
243
243
  button: !0,
244
244
  multiple: !0,
@@ -251,26 +251,26 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
251
251
  " ",
252
252
  /* @__PURE__ */ l(j, { basic: !0, children: o })
253
253
  ] }) }),
254
- /* @__PURE__ */ l(_, { children: c.map(({ value: F, text: p, position: E }) => /* @__PURE__ */ l(I.Item, { children: /* @__PURE__ */ l(
254
+ /* @__PURE__ */ l(_, { children: u.map(({ value: F, text: h, position: E }) => /* @__PURE__ */ l(I.Item, { children: /* @__PURE__ */ l(
255
255
  K,
256
256
  {
257
257
  disabled: E > x,
258
258
  checked: s === E,
259
259
  onChange: (b) => A(E),
260
- label: p
260
+ label: h
261
261
  }
262
262
  ) })) }),
263
263
  /* @__PURE__ */ l(z, { children: /* @__PURE__ */ L(I.Item, { children: [
264
264
  " ",
265
265
  /* @__PURE__ */ l(j, { basic: !0, children: a })
266
266
  ] }) }),
267
- /* @__PURE__ */ l(_, { children: c.map(({ value: F, text: p, position: E }) => /* @__PURE__ */ l(I.Item, { children: /* @__PURE__ */ l(
267
+ /* @__PURE__ */ l(_, { children: u.map(({ value: F, text: h, position: E }) => /* @__PURE__ */ l(I.Item, { children: /* @__PURE__ */ l(
268
268
  K,
269
269
  {
270
270
  disabled: E < s,
271
271
  checked: x === E,
272
272
  onChange: (b) => C(E),
273
- label: p
273
+ label: h
274
274
  }
275
275
  ) })) })
276
276
  ] })
@@ -278,7 +278,7 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
278
278
  );
279
279
  }
280
280
  ), Ie = (t) => {
281
- const { data: o, type: a, showNoDataOption: c } = t, i = o.filter((s) => s.type === a)[0], d = i ? i.items.filter((s) => !c && s.code == ge ? !1 : t.hiddenFilters && t.hiddenFilters.length > 0 ? t.hiddenFilters.indexOf(s.id) == -1 : !0) : [], f = d ? Se(d, t.locale) : [], u = o.find((s) => s.type === "FilterDefinition"), r = u ? u.items.find((s) => s.fieldType == a) : null, g = r ? r.value : "Filter";
281
+ const { data: o, type: a, showNoDataOption: u } = t, i = o.filter((s) => s.type === a)[0], d = i ? i.items.filter((s) => !u && s.code == ge ? !1 : t.hiddenFilters && t.hiddenFilters.length > 0 ? t.hiddenFilters.indexOf(s.id) == -1 : !0) : [], f = d ? Se(d, t.locale) : [], c = o.find((s) => s.type === "FilterDefinition"), r = c ? c.items.find((s) => s.fieldType == a) : null, g = r ? r.value : "Filter";
282
282
  return /* @__PURE__ */ l(_, { fluid: !0, className: "filter filter-component", children: /* @__PURE__ */ l(
283
283
  ee,
284
284
  {
@@ -310,61 +310,61 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
310
310
  }), be = (t) => {
311
311
  const { csvValue: o } = t;
312
312
  let a = 0;
313
- const c = o.split(",").map((i) => ({
313
+ const u = o.split(",").map((i) => ({
314
314
  key: i,
315
315
  value: i,
316
316
  text: i,
317
317
  icon: i.toLocaleLowerCase(),
318
318
  position: a++
319
319
  }));
320
- return /* @__PURE__ */ l(_, { fluid: !0, className: "filter filter-component", children: /* @__PURE__ */ l(ee, { options: c, ...t, children: " " }) });
320
+ return /* @__PURE__ */ l(_, { fluid: !0, className: "filter filter-component", children: /* @__PURE__ */ l(ee, { options: u, ...t, children: " " }) });
321
321
  }, Le = (t) => /* @__PURE__ */ l(we, { ...t }), we = ({
322
322
  unique: t,
323
323
  "data-group": o,
324
324
  "data-app": a,
325
- "data-child-filter": c,
325
+ "data-child-filter": u,
326
326
  "data-child-filter-param": i,
327
327
  "data-parent-filter": d,
328
328
  "data-parent-filter-param": f,
329
- "data-dvz-proxy-dataset-id": u,
329
+ "data-dvz-proxy-dataset-id": c,
330
330
  "data-param": r,
331
331
  "data-icon": g,
332
332
  "data-type": s,
333
333
  "data-place-holder": A,
334
334
  "data-is-range": x = "false",
335
335
  "data-all-label": C,
336
- "data-none-label": v,
336
+ "data-none-label": T,
337
337
  "data-start-label": F,
338
- "data-end-label": p,
338
+ "data-end-label": h,
339
339
  "data-csv-value": E,
340
340
  "data-filters": b = "[]",
341
341
  "data-use-single-column": w = "false",
342
- "data-enable-text-search": O = "false",
343
- "data-filter-type": U,
344
- "data-default-values": V,
342
+ "data-enable-text-search": U = "false",
343
+ "data-filter-type": y,
344
+ "data-default-values": $,
345
345
  "data-show-no-data-option": W = "true",
346
346
  "data-default-value-criteria": G = "DEFAULT_VALUE_INPUT",
347
- "data-hidden-filters": y = "[]",
348
- "data-all-none-same-behaviour": $ = "false",
349
- "data-close-on-select": k = "false",
347
+ "data-hidden-filters": k = "[]",
348
+ "data-all-none-same-behaviour": D = "false",
349
+ "data-close-on-select": O = "false",
350
350
  "data-alphabetical-sort": te = "true",
351
351
  "data-asc-order": q = "true",
352
352
  "data-auto-apply": B = "true",
353
353
  "data-default-top-n-enabled": J = "false",
354
354
  "data-default-top-n-count": H = "0",
355
- intl: D
355
+ intl: P
356
356
  }) => {
357
- const P = {}, T = b ? ae(b) : {};
358
- T && T.forEach && T.forEach((n) => {
359
- n.value != null && n.value.filter((h) => h != null && h.toString().trim() != "").length > 0 && (P[n.param] = n.value);
360
- }), u && (P.dvzProxyDatasetId = u);
361
- const S = y ? ae(y) : null, M = S !== null ? S : y ? y.split(",").filter(Boolean) : [];
357
+ const V = {}, S = b ? ae(b) : {};
358
+ S && S.forEach && S.forEach((n) => {
359
+ n.value != null && n.value.filter((m) => m != null && m.toString().trim() != "").length > 0 && (V[n.param] = n.value);
360
+ }), c && (V.dvzProxyDatasetId = c);
361
+ const v = k ? ae(k) : null, M = v !== null ? v : k ? k.split(",").filter(Boolean) : [];
362
362
  let e;
363
- return U == null || U == "" ? e = x === "true" ? "range" : "multi-select" : e = U, a === "csv" ? /* @__PURE__ */ l(
363
+ return y == null || y == "" ? e = x === "true" ? "range" : "multi-select" : e = y, a === "csv" ? /* @__PURE__ */ l(
364
364
  be,
365
365
  {
366
366
  allLabel: C,
367
- noneLabel: v,
367
+ noneLabel: T,
368
368
  isRange: x === "true",
369
369
  csvValue: E,
370
370
  app: a,
@@ -372,40 +372,40 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
372
372
  icon: g,
373
373
  placeholder: A,
374
374
  startLabel: F,
375
- endLabel: p,
375
+ endLabel: h,
376
376
  param: r,
377
377
  ascOrder: q,
378
378
  useSingleColumn: w === "true",
379
- enableTextSearch: O === "true",
379
+ enableTextSearch: U === "true",
380
380
  filterType: e,
381
- defaultValues: V,
381
+ defaultValues: $,
382
382
  defaultValueCriteria: G,
383
- allNoneSameBehaviour: $ === "true",
384
- closeOnSelect: k === "true",
385
- locale: D.locale
383
+ allNoneSameBehaviour: D === "true",
384
+ closeOnSelect: O === "true",
385
+ locale: P.locale
386
386
  }
387
387
  ) : a ? /* @__PURE__ */ l(
388
388
  fe,
389
389
  {
390
- dvzProxyDatasetId: u,
390
+ dvzProxyDatasetId: c,
391
391
  type: s,
392
392
  autoApply: N(B),
393
393
  parentType: d,
394
- params: P,
394
+ params: V,
395
395
  param: r,
396
396
  parentParam: f,
397
397
  app: a,
398
398
  group: o,
399
- uniqueStorage: T.length > 0 ? t : null,
399
+ uniqueStorage: S.length > 0 ? t : null,
400
400
  hiddenFilters: M || [],
401
401
  children: /* @__PURE__ */ l(ne, { children: /* @__PURE__ */ L(_, { fluid: !0, children: [
402
402
  s === "Boolean" && /* @__PURE__ */ l(
403
403
  Fe,
404
404
  {
405
405
  startLabel: F,
406
- endLabel: p,
406
+ endLabel: h,
407
407
  allLabel: C,
408
- noneLabel: v,
408
+ noneLabel: T,
409
409
  isRange: N(x),
410
410
  app: a,
411
411
  group: o,
@@ -413,21 +413,21 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
413
413
  placeholder: A,
414
414
  param: r,
415
415
  filterType: e,
416
- defaultValues: V,
417
- locale: D.locale
416
+ defaultValues: $,
417
+ locale: P.locale
418
418
  }
419
419
  ),
420
420
  s !== "Boolean" && /* @__PURE__ */ l(ne, { type: s, children: /* @__PURE__ */ l(
421
421
  Ie,
422
422
  {
423
- params: P,
424
- childFilter: c,
423
+ params: V,
424
+ childFilter: u,
425
425
  parentFilter: d,
426
426
  childFilterParam: i,
427
427
  startLabel: F,
428
- endLabel: p,
428
+ endLabel: h,
429
429
  allLabel: C,
430
- noneLabel: v,
430
+ noneLabel: T,
431
431
  isRange: N(x),
432
432
  app: a,
433
433
  group: o,
@@ -437,20 +437,20 @@ const re = "multi-select", R = "single-select", ge = "NO_DATA", xe = "DEFAULT_VA
437
437
  alphabeticalSort: te,
438
438
  ascOrder: q,
439
439
  useSingleColumn: N(w),
440
- enableTextSearch: N(O),
440
+ enableTextSearch: N(U),
441
441
  showNoDataOption: N(W),
442
442
  filterType: e,
443
- defaultValues: V,
443
+ defaultValues: $,
444
444
  defaultValueCriteria: G,
445
445
  defaultTopNEnabled: N(J),
446
446
  defaultTopNCount: H ? parseInt(H) : 0,
447
447
  hiddenFilters: M || [],
448
- allNoneSameBehaviour: $ == "true",
448
+ allNoneSameBehaviour: D == "true",
449
449
  autoApply: N(B),
450
- closeOnSelect: N(k),
451
- locale: D.locale,
452
- uniqueStorage: T.length > 0 ? t : null,
453
- dvzProxyDatasetId: u
450
+ closeOnSelect: N(O),
451
+ locale: P.locale,
452
+ uniqueStorage: S.length > 0 ? t : null,
453
+ dvzProxyDatasetId: c
454
454
  }
455
455
  ) })
456
456
  ] }) })