@logora/debate 0.3.81 → 0.3.82
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/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-VuCq918p.css +1 -0
- package/dist/components/list/paginated_list/PaginatedList.js +61 -57
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +64 -59
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +16 -14
- package/package.json +1 -1
- package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._listHeader_7x11f_3{display:flex;justify-content:space-between;align-items:center;position:relative;flex-wrap:wrap;gap:var(--space-unit, 1em)}@container (max-width: 575.98px){._listHeader_7x11f_3{flex-direction:column;align-items:flex-start}._listHeader_7x11f_3._listHeaderOneItem_7x11f_16{flex-direction:row;align-items:center;flex-wrap:nowrap!important}}._listTitle_7x11f_23{font-size:var(--font-size-extra-large, 22px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._listSubtitle_7x11f_30{color:var(--text-secondary, #5F5F5F);font-weight:var(--font-weight-normal, 400);font-size:var(--font-size-normal, 16px)}._rightBar_7x11f_36{display:flex;gap:var(--space-unit, 1em);flex-wrap:wrap}@container (max-width: 575.98px){._rightBar_7x11f_36{width:100%;justify-content:space-between}._rightBar_7x11f_36._rightBarOneItem_7x11f_46{justify-content:flex-end}}._rightBar_7x11f_36{flex:1 1 auto;justify-content:flex-end;align-items:center;flex-direction:row}._search_7x11f_57{flex:1;max-width:35%}@container (max-width: 575.98px){._search_7x11f_57{max-width:80%}}._tagList_7x11f_67{display:flex;flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))}@container (max-width: 575.98px){._tagList_7x11f_67{gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}}._tagItem_7x11f_82{display:flex!important;color:var(--text-secondary, #5F5F5F);cursor:pointer;white-space:nowrap}._select_7x11f_89{max-width:300px}@container (max-width: 575.98px){._select_7x11f_89{max-width:300px}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as $, jsx as c, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import { useLocation as
|
|
1
|
+
import { jsxs as $, jsx as c, Fragment as Le } from "react/jsx-runtime";
|
|
2
|
+
import Qe from "@rooks/use-previous";
|
|
3
|
+
import $e from "classnames";
|
|
4
|
+
import Pe, { useState as m, useEffect as h } from "react";
|
|
5
|
+
import { useIntl as Ue } from "react-intl";
|
|
6
|
+
import { useLocation as We } from "react-router";
|
|
7
7
|
import a from "./PaginatedList.module.scss.js";
|
|
8
|
-
import { ActionBar as
|
|
9
|
-
import { useList as
|
|
10
|
-
import { useDataProvider as
|
|
11
|
-
import { useResponsive as
|
|
12
|
-
import { useData as
|
|
8
|
+
import { ActionBar as ze } from "./action_bar/ActionBar.js";
|
|
9
|
+
import { useList as Ge } from "../list_provider/useList.js";
|
|
10
|
+
import { useDataProvider as Ve } from "../../data/data_provider/useDataProvider.js";
|
|
11
|
+
import { useResponsive as Xe } from "../../hooks/use_responsive/useResponsive.js";
|
|
12
|
+
import { useData as Ye } from "../../data/data_provider/useData.js";
|
|
13
13
|
import { uniqueBy as x } from "../../util/unique_by/uniqueBy.js";
|
|
14
|
-
import { Pagination as
|
|
15
|
-
import { StandardErrorBoundary as
|
|
16
|
-
const
|
|
14
|
+
import { Pagination as Ze } from "../pagination/Pagination.js";
|
|
15
|
+
import { StandardErrorBoundary as He } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
|
|
16
|
+
const ft = ({
|
|
17
17
|
query: w,
|
|
18
18
|
sortOptions: i,
|
|
19
19
|
sort: N,
|
|
@@ -39,27 +39,29 @@ const dt = ({
|
|
|
39
39
|
loadingComponent: W,
|
|
40
40
|
searchBar: ce = !1,
|
|
41
41
|
title: ue,
|
|
42
|
+
subtitle: Ee,
|
|
43
|
+
showSubtitle: ge = !1,
|
|
42
44
|
emptyListComponent: z,
|
|
43
45
|
emptyText: G,
|
|
44
46
|
display: V,
|
|
45
47
|
elementsPerLine: X,
|
|
46
|
-
indexLayout:
|
|
47
|
-
gap:
|
|
48
|
-
withPagination:
|
|
48
|
+
indexLayout: he = !1,
|
|
49
|
+
gap: pe = "1em",
|
|
50
|
+
withPagination: ve = !0,
|
|
49
51
|
numberElements: Y,
|
|
50
|
-
countless:
|
|
51
|
-
onElementClick:
|
|
52
|
-
withUrlParams:
|
|
52
|
+
countless: Se,
|
|
53
|
+
onElementClick: ye,
|
|
54
|
+
withUrlParams: we = !1,
|
|
53
55
|
onLoadNewPage: Z
|
|
54
56
|
}) => {
|
|
55
|
-
const J =
|
|
57
|
+
const J = Ue(), t = Ge(), H = Ve(), I = We(), { isMobile: K, isTablet: Ne, isDesktop: j } = Xe(), [b, u] = m(!1), [Me, Re] = m(!1), [k, S] = Ye(n, []), [O, be] = m(
|
|
56
58
|
k?.length || 0
|
|
57
|
-
), [E, B] = m(M || 1), [y, L] = m(w || null), [C, q] = m(null), [
|
|
59
|
+
), [E, B] = m(M || 1), [y, L] = m(w || null), [C, q] = m(null), [ke, ee] = m(null), d = new URLSearchParams(
|
|
58
60
|
typeof window < "u" ? window.location.search : I.search
|
|
59
|
-
),
|
|
61
|
+
), Ce = () => i && i[0].type === "sort" && i[0].value || N || "", Fe = () => {
|
|
60
62
|
let e = {};
|
|
61
63
|
return i && i[0].type === "filter" && (e[i[0].name] = i[0].value), o && (e = Object.assign({}, e, o)), e;
|
|
62
|
-
}, [F, T] = m(
|
|
64
|
+
}, [F, T] = m(Ce()), [Q, _] = m(Fe()), te = Qe(o);
|
|
63
65
|
M && M !== E && B(M), w !== void 0 && w !== y && L(w), N !== void 0 && N !== F && T(N), te && JSON.stringify(o) !== JSON.stringify(te) && JSON.stringify(o) !== JSON.stringify(Q) && _(o), h(() => {
|
|
64
66
|
if (d.get("tagId") && q(Number.parseInt(d.get("tagId"))), d.get("search") && L(d.get("search")), d.get("sort")) {
|
|
65
67
|
T(d.get("sort"));
|
|
@@ -92,29 +94,29 @@ const dt = ({
|
|
|
92
94
|
E > 1 && (u(!0), se(E));
|
|
93
95
|
}, [E]), h(() => {
|
|
94
96
|
if (t.addElements && n in t.addElements && t.addElements[n].length > 0) {
|
|
95
|
-
|
|
97
|
+
xe(t.addElements[n]);
|
|
96
98
|
const e = t.addElements;
|
|
97
99
|
delete e[n], t.setAddElements(e);
|
|
98
100
|
}
|
|
99
101
|
}, [t.addElements]), h(() => {
|
|
100
102
|
if (t.updateElements && n in t.updateElements && (console.log("[PaginatedList] update received for listId:", n, t.updateElements[n]), t.updateElements[n].length > 0)) {
|
|
101
|
-
|
|
103
|
+
Ae(t.updateElements[n]);
|
|
102
104
|
const e = t.updateElements;
|
|
103
105
|
delete e[n], t.setUpdateElements(e);
|
|
104
106
|
}
|
|
105
107
|
}, [t.updateElements]), h(() => {
|
|
106
108
|
if (t.removeElements && n in t.removeElements && t.removeElements[n].length > 0) {
|
|
107
|
-
|
|
109
|
+
De(t.removeElements[n]);
|
|
108
110
|
const e = t.removeElements;
|
|
109
111
|
delete e[n], t.setRemoveElements(e);
|
|
110
112
|
}
|
|
111
113
|
}, [t.removeElements]);
|
|
112
|
-
const
|
|
114
|
+
const Te = (e) => {
|
|
113
115
|
e.type === "filter" ? (T(""), _({
|
|
114
116
|
...o,
|
|
115
117
|
[e.name]: e.value
|
|
116
118
|
})) : (T(e.value), _(o ? { ...o } : {}));
|
|
117
|
-
},
|
|
119
|
+
}, _e = () => {
|
|
118
120
|
typeof Z == "function" && Z() !== null || B(E + 1);
|
|
119
121
|
}, se = (e) => {
|
|
120
122
|
const s = ae ? H.getListWithToken : H.getList;
|
|
@@ -124,27 +126,27 @@ const dt = ({
|
|
|
124
126
|
[le]: p,
|
|
125
127
|
...F && !y && { [oe]: F },
|
|
126
128
|
...y && { [me]: y },
|
|
127
|
-
...
|
|
129
|
+
...Se === !0 && { countless: !0 },
|
|
128
130
|
...Q,
|
|
129
131
|
...C && { [de]: C }
|
|
130
132
|
};
|
|
131
133
|
s(A, r).then((l) => {
|
|
132
134
|
const f = l.headers;
|
|
133
|
-
f && D in f && (
|
|
135
|
+
f && D in f && (be(
|
|
134
136
|
Number.parseInt(f[D || "total"], 10)
|
|
135
137
|
), P && P(f[D || "total"]));
|
|
136
138
|
let g = l?.data?.data;
|
|
137
|
-
R && R(g), U && (g = g.filter(U)), t.addElements && n in t.addElements && t.addElements[n].length > 0 && (g = [...t.addElements[n], g]),
|
|
139
|
+
R && R(g), U && (g = g.filter(U)), t.addElements && n in t.addElements && t.addElements[n].length > 0 && (g = [...t.addElements[n], g]), Je(g), u(!1);
|
|
138
140
|
}).catch((l) => {
|
|
139
|
-
console.error(l), l?.response?.status !== 404 &&
|
|
141
|
+
console.error(l), l?.response?.status !== 404 && Re(!0), u(!1);
|
|
140
142
|
});
|
|
141
143
|
} else
|
|
142
144
|
u(!1);
|
|
143
|
-
},
|
|
145
|
+
}, xe = (e) => {
|
|
144
146
|
S(
|
|
145
147
|
(s) => x([...e, ...s], v || "id")
|
|
146
148
|
), R && R(e);
|
|
147
|
-
},
|
|
149
|
+
}, Ae = (e) => {
|
|
148
150
|
S((s) => {
|
|
149
151
|
let r = s;
|
|
150
152
|
return e.forEach(
|
|
@@ -153,29 +155,29 @@ const dt = ({
|
|
|
153
155
|
)
|
|
154
156
|
), x(r, v || "id");
|
|
155
157
|
});
|
|
156
|
-
},
|
|
158
|
+
}, De = (e) => {
|
|
157
159
|
const s = e.map((l) => l.id), r = k.filter(
|
|
158
160
|
(l) => s.indexOf(l.id) === -1
|
|
159
161
|
);
|
|
160
162
|
S(x(r, v || "id"));
|
|
161
|
-
},
|
|
163
|
+
}, Je = (e) => {
|
|
162
164
|
S(
|
|
163
165
|
(s) => x([...s, ...e], v || "id")
|
|
164
166
|
);
|
|
165
|
-
},
|
|
167
|
+
}, je = (e, s) => e !== void 0 ? /* @__PURE__ */ c(
|
|
166
168
|
"li",
|
|
167
169
|
{
|
|
168
170
|
className: a.paginatedListItem,
|
|
169
171
|
"data-testid": "list-item",
|
|
170
|
-
onClick:
|
|
171
|
-
children: /* @__PURE__ */ c(
|
|
172
|
+
onClick: ye,
|
|
173
|
+
children: /* @__PURE__ */ c(He, { hideMessage: !0, children: Pe.cloneElement(re, {
|
|
172
174
|
index: s,
|
|
173
175
|
[fe]: e
|
|
174
176
|
}) })
|
|
175
177
|
},
|
|
176
178
|
`${e[v || "id"]}_${e.updated_at || e.content}`
|
|
177
|
-
) : null,
|
|
178
|
-
if (
|
|
179
|
+
) : null, Be = (e) => W ? /* @__PURE__ */ c("li", { className: a.paginatedListItem, children: W }, e) : null;
|
|
180
|
+
if (Me)
|
|
179
181
|
throw new Error(
|
|
180
182
|
J.formatMessage({
|
|
181
183
|
id: "error.list",
|
|
@@ -184,47 +186,49 @@ const dt = ({
|
|
|
184
186
|
);
|
|
185
187
|
return /* @__PURE__ */ $("div", { className: a.listContainer, children: [
|
|
186
188
|
/* @__PURE__ */ c(
|
|
187
|
-
|
|
189
|
+
ze,
|
|
188
190
|
{
|
|
189
191
|
title: ue,
|
|
192
|
+
subtitle: Ee,
|
|
193
|
+
showSubtitle: ge,
|
|
190
194
|
sortOptions: i,
|
|
191
|
-
defaultSelectOption:
|
|
195
|
+
defaultSelectOption: ke,
|
|
192
196
|
searchBar: ce,
|
|
193
197
|
tagList: ne,
|
|
194
198
|
activeTagId: C,
|
|
195
199
|
onSearch: (e) => L(e),
|
|
196
|
-
onSortChange:
|
|
200
|
+
onSortChange: Te,
|
|
197
201
|
onTagChange: (e) => q(e),
|
|
198
|
-
withUrlParams:
|
|
202
|
+
withUrlParams: we
|
|
199
203
|
}
|
|
200
204
|
),
|
|
201
205
|
!b && k.length === 0 ? z ? /* @__PURE__ */ c("div", { className: a.emptyListElement, children: z }) : /* @__PURE__ */ c("div", { className: a.emptyList, children: G || J.formatMessage({
|
|
202
206
|
id: "info.emptyList",
|
|
203
207
|
defaultMessage: "No items for now."
|
|
204
|
-
}) }) : /* @__PURE__ */ $(
|
|
208
|
+
}) }) : /* @__PURE__ */ $(Le, { children: [
|
|
205
209
|
/* @__PURE__ */ $(
|
|
206
210
|
"ul",
|
|
207
211
|
{
|
|
208
|
-
className:
|
|
212
|
+
className: $e(a.paginatedList, {
|
|
209
213
|
[a.paginatedListIsTablet]: !K && !j,
|
|
210
214
|
[a.centeredList]: V === "column",
|
|
211
215
|
[a.column]: V === "column",
|
|
212
216
|
[a.twoElementsPerLine]: X === 2,
|
|
213
217
|
[a.oneElementPerLine]: X === 1,
|
|
214
|
-
[a.indexLayoutList]:
|
|
218
|
+
[a.indexLayoutList]: he,
|
|
215
219
|
[a.listIsDesktop]: j,
|
|
216
|
-
[a.listIsTablet]:
|
|
220
|
+
[a.listIsTablet]: Ne && !j,
|
|
217
221
|
[a.listIsMobile]: K
|
|
218
222
|
}),
|
|
219
|
-
style: { gap:
|
|
223
|
+
style: { gap: pe },
|
|
220
224
|
children: [
|
|
221
|
-
k.map(
|
|
222
|
-
b ? Array(p).fill().map((e, s) => s).map(
|
|
225
|
+
k.map(je),
|
|
226
|
+
b ? Array(p).fill().map((e, s) => s).map(Be) : null
|
|
223
227
|
]
|
|
224
228
|
}
|
|
225
229
|
),
|
|
226
|
-
!b &&
|
|
227
|
-
|
|
230
|
+
!b && ve !== !1 && /* @__PURE__ */ c(
|
|
231
|
+
Ze,
|
|
228
232
|
{
|
|
229
233
|
buttonText: J.formatMessage({
|
|
230
234
|
id: "action.see_more",
|
|
@@ -233,7 +237,7 @@ const dt = ({
|
|
|
233
237
|
currentPage: E,
|
|
234
238
|
perPage: p,
|
|
235
239
|
totalElements: Y || O,
|
|
236
|
-
onLoad:
|
|
240
|
+
onLoad: _e,
|
|
237
241
|
isLoading: b,
|
|
238
242
|
hideLoader: !0,
|
|
239
243
|
"data-tid": "list_read_more"
|
|
@@ -243,5 +247,5 @@ const dt = ({
|
|
|
243
247
|
] });
|
|
244
248
|
};
|
|
245
249
|
export {
|
|
246
|
-
|
|
250
|
+
ft as PaginatedList
|
|
247
251
|
};
|
|
@@ -1,98 +1,103 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import { useLocation as
|
|
1
|
+
import { jsx as i, Fragment as h, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import u from "classnames";
|
|
3
|
+
import { useState as j } from "react";
|
|
4
|
+
import { useIntl as H } from "react-intl";
|
|
5
|
+
import { useLocation as R } from "react-router";
|
|
6
6
|
import l from "./ActionBar.module.scss.js";
|
|
7
|
-
import { useResponsive as
|
|
8
|
-
import { SearchInput as
|
|
9
|
-
import { Select as
|
|
10
|
-
import { Tag as
|
|
11
|
-
import { Icon as
|
|
12
|
-
const
|
|
13
|
-
title:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
import { useResponsive as T } from "../../../hooks/use_responsive/useResponsive.js";
|
|
8
|
+
import { SearchInput as _ } from "../../../input/search_input/SearchInput.js";
|
|
9
|
+
import { Select as z } from "../../../input/select/Select.js";
|
|
10
|
+
import { Tag as D } from "../../../tag/tag/Tag.js";
|
|
11
|
+
import { Icon as F } from "../../../icons/icon/Icon.js";
|
|
12
|
+
const Z = ({
|
|
13
|
+
title: c,
|
|
14
|
+
subtitle: f,
|
|
15
|
+
showSubtitle: p = !1,
|
|
16
|
+
sortOptions: a,
|
|
17
|
+
defaultSelectOption: v,
|
|
18
|
+
searchBar: n = !1,
|
|
19
|
+
tagList: r,
|
|
20
|
+
activeTagId: d,
|
|
21
|
+
withUrlParams: m = !1,
|
|
22
|
+
onSearch: S,
|
|
23
|
+
onSortChange: g,
|
|
24
|
+
onTagChange: I
|
|
23
25
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
typeof window < "u" ? window.location.search :
|
|
26
|
-
),
|
|
27
|
-
if (
|
|
28
|
-
for (const
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
const N = H(), x = R(), { isMobile: L } = T(), [y, A] = j(!1), s = new URLSearchParams(
|
|
27
|
+
typeof window < "u" ? window.location.search : x.search
|
|
28
|
+
), b = (e) => {
|
|
29
|
+
if (m) {
|
|
30
|
+
for (const o of s.keys())
|
|
31
|
+
a.map((M) => {
|
|
32
|
+
M.name === o && s.delete(o);
|
|
31
33
|
});
|
|
32
|
-
|
|
34
|
+
s.delete("sort"), s.set(
|
|
33
35
|
e.type === "filter" ? e.name : "sort",
|
|
34
36
|
e.value
|
|
35
37
|
);
|
|
36
38
|
}
|
|
37
|
-
|
|
38
|
-
}, A = (e) => {
|
|
39
|
-
d && (e.id === r ? o.delete("tagId") : o.set("tagId", e.id)), S(e.id === r ? null : e.id);
|
|
40
|
-
}, b = (e) => {
|
|
41
|
-
d && (e ? o.set("search", e) : o.delete("search")), p(e), x(e !== "");
|
|
39
|
+
g(e);
|
|
42
40
|
}, w = (e) => {
|
|
43
|
-
|
|
41
|
+
m && (e.id === d ? s.delete("tagId") : s.set("tagId", e.id)), I(e.id === d ? null : e.id);
|
|
42
|
+
}, k = (e) => {
|
|
43
|
+
m && (e ? s.set("search", e) : s.delete("search")), S(e), A(e !== "");
|
|
44
|
+
}, C = (e) => {
|
|
45
|
+
const o = d === e.id;
|
|
44
46
|
return /* @__PURE__ */ i(
|
|
45
47
|
"div",
|
|
46
48
|
{
|
|
47
49
|
className: l.tagItem,
|
|
48
|
-
onClick: () =>
|
|
50
|
+
onClick: () => w(e),
|
|
49
51
|
children: /* @__PURE__ */ i(
|
|
50
|
-
|
|
52
|
+
D,
|
|
51
53
|
{
|
|
52
54
|
text: e.display_name,
|
|
53
|
-
active:
|
|
54
|
-
rightIcon:
|
|
55
|
+
active: o,
|
|
56
|
+
rightIcon: o && /* @__PURE__ */ i(F, { name: "close", height: 10, width: 10 })
|
|
55
57
|
}
|
|
56
58
|
)
|
|
57
59
|
},
|
|
58
60
|
e.id
|
|
59
61
|
);
|
|
60
62
|
};
|
|
61
|
-
return /* @__PURE__ */ i(
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
+
return /* @__PURE__ */ i(h, { children: (c || a || n) && /* @__PURE__ */ t(h, { children: [
|
|
64
|
+
/* @__PURE__ */ t(
|
|
63
65
|
"div",
|
|
64
66
|
{
|
|
65
|
-
className:
|
|
66
|
-
[l.listHeaderOneItem]: !
|
|
67
|
+
className: u(l.listHeader, {
|
|
68
|
+
[l.listHeaderOneItem]: !n || !a
|
|
67
69
|
}),
|
|
68
70
|
children: [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
/* @__PURE__ */ t("div", { children: [
|
|
72
|
+
c && /* @__PURE__ */ i("div", { className: l.listTitle, children: c }),
|
|
73
|
+
p && f && /* @__PURE__ */ i("div", { className: l.listSubtitle, children: f })
|
|
74
|
+
] }),
|
|
75
|
+
(a || n) && /* @__PURE__ */ t(
|
|
71
76
|
"div",
|
|
72
77
|
{
|
|
73
|
-
className:
|
|
74
|
-
[l.rightBarOneItem]: !
|
|
78
|
+
className: u(l.rightBar, {
|
|
79
|
+
[l.rightBarOneItem]: !n || !a
|
|
75
80
|
}),
|
|
76
81
|
children: [
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
n ? /* @__PURE__ */ i("div", { className: l.search, children: /* @__PURE__ */ i(
|
|
83
|
+
_,
|
|
79
84
|
{
|
|
80
|
-
onSearchSubmit:
|
|
81
|
-
placeholder:
|
|
85
|
+
onSearchSubmit: k,
|
|
86
|
+
placeholder: N.formatMessage({
|
|
82
87
|
id: "info.search_mobile",
|
|
83
88
|
defaultMessage: "Search"
|
|
84
89
|
}),
|
|
85
90
|
reducedByDefault: !1
|
|
86
91
|
}
|
|
87
92
|
) }) : null,
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
a ? /* @__PURE__ */ i(
|
|
94
|
+
z,
|
|
90
95
|
{
|
|
91
|
-
onChange:
|
|
92
|
-
options:
|
|
93
|
-
defaultOption:
|
|
96
|
+
onChange: b,
|
|
97
|
+
options: a,
|
|
98
|
+
defaultOption: v,
|
|
94
99
|
horizontalPosition: "right",
|
|
95
|
-
disabled:
|
|
100
|
+
disabled: y,
|
|
96
101
|
className: l.select
|
|
97
102
|
}
|
|
98
103
|
) : null
|
|
@@ -102,9 +107,9 @@ const X = ({
|
|
|
102
107
|
]
|
|
103
108
|
}
|
|
104
109
|
),
|
|
105
|
-
|
|
110
|
+
r && r.length > 0 && /* @__PURE__ */ i("div", { className: l.tagList, children: r.map(C) })
|
|
106
111
|
] }) });
|
|
107
112
|
};
|
|
108
113
|
export {
|
|
109
|
-
|
|
114
|
+
Z as ActionBar
|
|
110
115
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-
|
|
1
|
+
import '../../../../assets/components/list/paginated_list/action_bar/ActionBar.module-VuCq918p.css';const t = "_listHeader_7x11f_3", e = "_listHeaderOneItem_7x11f_16", s = "_listTitle_7x11f_23", _ = "_listSubtitle_7x11f_30", i = "_rightBar_7x11f_36", a = "_rightBarOneItem_7x11f_46", l = "_search_7x11f_57", r = "_tagList_7x11f_67", c = "_tagItem_7x11f_82", n = "_select_7x11f_89", g = {
|
|
2
2
|
listHeader: t,
|
|
3
3
|
listHeaderOneItem: e,
|
|
4
|
-
listTitle:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
listTitle: s,
|
|
5
|
+
listSubtitle: _,
|
|
6
|
+
rightBar: i,
|
|
7
|
+
rightBarOneItem: a,
|
|
8
|
+
search: l,
|
|
8
9
|
tagList: r,
|
|
9
|
-
tagItem:
|
|
10
|
-
select:
|
|
10
|
+
tagItem: c,
|
|
11
|
+
select: n
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
g as default,
|
|
14
15
|
t as listHeader,
|
|
15
16
|
e as listHeaderOneItem,
|
|
16
|
-
|
|
17
|
-
s as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
l as
|
|
21
|
-
|
|
17
|
+
_ as listSubtitle,
|
|
18
|
+
s as listTitle,
|
|
19
|
+
i as rightBar,
|
|
20
|
+
a as rightBarOneItem,
|
|
21
|
+
l as search,
|
|
22
|
+
n as select,
|
|
23
|
+
c as tagItem,
|
|
22
24
|
r as tagList
|
|
23
25
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._listHeader_fbaxc_3{display:flex;justify-content:space-between;align-items:center;position:relative;flex-wrap:wrap;gap:var(--space-unit, 1em)}@container (max-width: 575.98px){._listHeader_fbaxc_3{flex-direction:column;align-items:flex-start}._listHeader_fbaxc_3._listHeaderOneItem_fbaxc_16{flex-direction:row;align-items:center;flex-wrap:nowrap!important}}._listTitle_fbaxc_23{font-size:var(--font-size-extra-large, 22px);line-height:var(--line-height-tight, 1.08em);font-weight:var(--font-weight-bold, 700);font-family:var(--title-font-family, var(--font-family, "Montserrat"))}._rightBar_fbaxc_30{display:flex;gap:var(--space-unit, 1em);flex-wrap:wrap}@container (max-width: 575.98px){._rightBar_fbaxc_30{width:100%;justify-content:space-between}._rightBar_fbaxc_30._rightBarOneItem_fbaxc_40{justify-content:flex-end}}._rightBar_fbaxc_30{flex:1 1 auto;justify-content:flex-end;align-items:center;flex-direction:row}._search_fbaxc_51{flex:1;max-width:35%}@container (max-width: 575.98px){._search_fbaxc_51{max-width:80%}}._tagList_fbaxc_61{display:flex;flex-direction:row;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;gap:var(--spacer-md, calc(var(--space-unit, 1em) * .75));padding-bottom:var(--spacer-md, calc(var(--space-unit, 1em) * .75))}@container (max-width: 575.98px){._tagList_fbaxc_61{gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}}._tagItem_fbaxc_76{display:flex!important;color:var(--text-secondary, #5F5F5F);cursor:pointer;white-space:nowrap}._select_fbaxc_83{max-width:300px}@container (max-width: 575.98px){._select_fbaxc_83{max-width:300px}}
|