@leaflink/stash 44.0.0-beta.5 → 44.0.0-beta.7
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/ActionsDropdown.js +11 -11
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/Alert.js +7 -7
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js +11 -11
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/Carousel.js +258 -246
- package/dist/Carousel.js.map +1 -1
- package/dist/DataViewSortButton.js +22 -22
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DatePicker.js +2 -5
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionListTerm.js +7 -7
- package/dist/DescriptionListTerm.js.map +1 -1
- package/dist/Dialog.js.map +1 -1
- package/dist/Divider.js +8 -8
- package/dist/Divider.js.map +1 -1
- package/dist/Dropdown.js +15 -15
- package/dist/Dropdown.js.map +1 -1
- package/dist/Expand.js +1 -1
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js → Expand.vue_vue_type_script_setup_true_lang-b6a57ae9.js} +4 -4
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js.map → Expand.vue_vue_type_script_setup_true_lang-b6a57ae9.js.map} +1 -1
- package/dist/FileUpload.js +29 -29
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterSelect.js +25 -25
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +26 -26
- package/dist/Filters.js.map +1 -1
- package/dist/IconLabel.js +5 -5
- package/dist/IconLabel.js.map +1 -1
- package/dist/ListView.js +84 -84
- package/dist/ListView.js.map +1 -1
- package/dist/Modals.js +13 -13
- package/dist/Modals.js.map +1 -1
- package/dist/PageNavigation.js +3 -3
- package/dist/PageNavigation.js.map +1 -1
- package/dist/QuickAction.js +22 -19
- package/dist/QuickAction.js.map +1 -1
- package/dist/Radio.js +26 -16
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +135 -106
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioNew.js +118 -91
- package/dist/RadioNew.js.map +1 -1
- package/dist/Select.js +6 -6
- package/dist/Select.js.map +1 -1
- package/dist/Tab.js +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-4a40f015.js → Tab.vue_vue_type_script_setup_true_lang-69d1b046.js} +2 -2
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-4a40f015.js.map → Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map} +1 -1
- package/dist/Table.js +2 -2
- package/dist/{Table.keys-1ebe4ecb.js → Table.keys-75e99266.js} +11 -11
- package/dist/{Table.keys-1ebe4ecb.js.map → Table.keys-75e99266.js.map} +1 -1
- package/dist/TableCell.js +1 -1
- package/dist/TableCell.js.map +1 -1
- package/dist/TableHeaderCell.js +1 -1
- package/dist/TableHeaderRow.js +1 -1
- package/dist/TableRow.js +38 -37
- package/dist/TableRow.js.map +1 -1
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js → Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js} +25 -25
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +1 -0
- package/dist/components.css +1 -1
- package/dist/constants.d.ts +7 -7
- package/dist/constants.js +21 -21
- package/dist/constants.js.map +1 -1
- package/dist/tailwind-base.js +9 -2
- package/dist/tailwind-base.js.map +1 -1
- package/dist/utils/helpers.js +37 -37
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +2 -2
- package/tailwind-base.ts +3 -1
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js.map +0 -1
package/dist/ListView.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import W from "lodash-es/cloneDeep";
|
|
2
|
-
import { resolveComponent as d, openBlock as a, createElementBlock as o, normalizeClass as r, createElementVNode as u, createVNode as p, toDisplayString as
|
|
2
|
+
import { resolveComponent as d, openBlock as a, createElementBlock as o, normalizeClass as r, createElementVNode as u, createVNode as p, toDisplayString as _, createCommentVNode as n, createBlock as h, withCtx as m, createTextVNode as T, renderSlot as f, TransitionGroup as F, resolveDirective as O, withDirectives as E, computed as q, withKeys as Y, normalizeStyle as J, Fragment as Q, renderList as X, mergeProps as Z, resolveDynamicComponent as $ } from "vue";
|
|
3
3
|
import ee from "./useSearch.js";
|
|
4
|
-
import { CSS_VARS as
|
|
5
|
-
import
|
|
4
|
+
import { CSS_VARS as z, LLLV_CHANGE_TRIGGERS as b } from "./constants.js";
|
|
5
|
+
import L from "./sticky.js";
|
|
6
6
|
import { t as y } from "./locale.js";
|
|
7
7
|
import { persistentStorage as A } from "./storage.js";
|
|
8
|
-
import { getCssVar as
|
|
8
|
+
import { getCssVar as V, filterItems as te, sortItems as se } from "./utils/helpers.js";
|
|
9
9
|
import le from "./Badge.js";
|
|
10
10
|
import v from "./Button.js";
|
|
11
|
-
import
|
|
11
|
+
import D from "./Checkbox.js";
|
|
12
12
|
import ie from "./Dropdown.js";
|
|
13
|
-
import { _ as
|
|
13
|
+
import { _ as R } from "./Expand.vue_vue_type_script_setup_true_lang-b6a57ae9.js";
|
|
14
14
|
import re from "./Filters.js";
|
|
15
15
|
import B from "./Icon.js";
|
|
16
16
|
import ae from "./Input.js";
|
|
@@ -68,7 +68,7 @@ const de = "_checkbox_7isy5_185", he = "_actions_7isy5_189", ue = {
|
|
|
68
68
|
name: "bulk-actions",
|
|
69
69
|
components: {
|
|
70
70
|
"ll-button": v,
|
|
71
|
-
"ll-checkbox":
|
|
71
|
+
"ll-checkbox": D
|
|
72
72
|
},
|
|
73
73
|
props: {
|
|
74
74
|
allowSelectAll: Boolean,
|
|
@@ -127,15 +127,15 @@ const de = "_checkbox_7isy5_185", he = "_actions_7isy5_189", ue = {
|
|
|
127
127
|
}
|
|
128
128
|
}, ge = {
|
|
129
129
|
key: 0,
|
|
130
|
-
class: "
|
|
130
|
+
class: "tw-flex tw-flex-1 tw-items-center tw-justify-between"
|
|
131
131
|
}, fe = {
|
|
132
132
|
key: 0,
|
|
133
|
-
class: "text-
|
|
133
|
+
class: "tw-text-xs"
|
|
134
134
|
}, pe = {
|
|
135
135
|
key: 1,
|
|
136
136
|
class: "lg:hidden tw-ml-1.5"
|
|
137
137
|
};
|
|
138
|
-
function Se(e, l, s,
|
|
138
|
+
function Se(e, l, s, w, i, t) {
|
|
139
139
|
const c = d("ll-checkbox"), g = d("ll-button");
|
|
140
140
|
return a(), o("div", {
|
|
141
141
|
class: r([
|
|
@@ -147,8 +147,8 @@ function Se(e, l, s, _, i, t) {
|
|
|
147
147
|
])
|
|
148
148
|
}, [
|
|
149
149
|
u("div", {
|
|
150
|
-
class: r(["
|
|
151
|
-
"
|
|
150
|
+
class: r(["tw-flex tw-items-center", {
|
|
151
|
+
"tw-justify-between": !s.hideBulkActionOptions
|
|
152
152
|
}])
|
|
153
153
|
}, [
|
|
154
154
|
p(c, {
|
|
@@ -160,7 +160,7 @@ function Se(e, l, s, _, i, t) {
|
|
|
160
160
|
"onUpdate:checked": t.onSelectPage
|
|
161
161
|
}, null, 8, ["class", "checked", "indeterminate", "label", "onUpdate:checked"]),
|
|
162
162
|
s.totalSelectedCount && !s.hideBulkActionOptions ? (a(), o("div", ge, [
|
|
163
|
-
s.hideNumberOfTotalSelected ? n("", !0) : (a(), o("div", fe,
|
|
163
|
+
s.hideNumberOfTotalSelected ? n("", !0) : (a(), o("div", fe, _(t.numberOfTotalSelectedText), 1)),
|
|
164
164
|
u("div", {
|
|
165
165
|
class: r({ "tw-ml-3": !s.hideNumberOfTotalSelected })
|
|
166
166
|
}, [
|
|
@@ -170,7 +170,7 @@ function Se(e, l, s, _, i, t) {
|
|
|
170
170
|
onClick: t.selectAll
|
|
171
171
|
}, {
|
|
172
172
|
default: m(() => [
|
|
173
|
-
T(
|
|
173
|
+
T(_(t.selectAllCountText), 1)
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
}, 8, ["onClick"])) : (a(), h(g, {
|
|
@@ -179,13 +179,13 @@ function Se(e, l, s, _, i, t) {
|
|
|
179
179
|
onClick: t.clearSelected
|
|
180
180
|
}, {
|
|
181
181
|
default: m(() => [
|
|
182
|
-
T(
|
|
182
|
+
T(_(t.clearSelectedText), 1)
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["onClick"]))
|
|
186
186
|
], 2)
|
|
187
187
|
])) : s.hideBulkActionOptions && s.totalSelectedCount ? (a(), o("div", pe, [
|
|
188
|
-
u("h4", null,
|
|
188
|
+
u("h4", null, _(t.numItemsSelectedText), 1)
|
|
189
189
|
])) : n("", !0)
|
|
190
190
|
], 2),
|
|
191
191
|
s.totalSelectedCount && !s.hideBulkActionOptions ? (a(), o("div", {
|
|
@@ -198,9 +198,9 @@ function Se(e, l, s, _, i, t) {
|
|
|
198
198
|
}
|
|
199
199
|
const ye = {
|
|
200
200
|
$style: ue
|
|
201
|
-
},
|
|
201
|
+
}, we = /* @__PURE__ */ k(me, [["render", Se], ["__cssModules", ye]]), _e = {
|
|
202
202
|
"empty-state": "_empty-state_lwdra_176"
|
|
203
|
-
},
|
|
203
|
+
}, be = {
|
|
204
204
|
name: "loading-manager",
|
|
205
205
|
components: {
|
|
206
206
|
EmptyState: oe,
|
|
@@ -218,7 +218,7 @@ const ye = {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
|
-
function ke(e, l, s,
|
|
221
|
+
function ke(e, l, s, w, i, t) {
|
|
222
222
|
const c = d("Loading"), g = d("EmptyState");
|
|
223
223
|
return s.loading ? (a(), h(c, {
|
|
224
224
|
key: 0,
|
|
@@ -239,8 +239,8 @@ function ke(e, l, s, _, i, t) {
|
|
|
239
239
|
}, null, 8, ["class", "text"]));
|
|
240
240
|
}
|
|
241
241
|
const Ce = {
|
|
242
|
-
$style:
|
|
243
|
-
}, Te = /* @__PURE__ */ k(
|
|
242
|
+
$style: _e
|
|
243
|
+
}, Te = /* @__PURE__ */ k(be, [["render", ke], ["__cssModules", Ce]]), xe = {
|
|
244
244
|
"main-header": "_main-header_12ll3_176",
|
|
245
245
|
"expanded-content-wrapper": "_expanded-content-wrapper_12ll3_192",
|
|
246
246
|
"expanded-content-header": "_expanded-content-header_12ll3_202",
|
|
@@ -248,15 +248,15 @@ const Ce = {
|
|
|
248
248
|
"expansion-toggle-button": "_expansion-toggle-button_12ll3_240",
|
|
249
249
|
"list-group": "_list-group_12ll3_245",
|
|
250
250
|
"expanded-content-list-items-wrapper": "_expanded-content-list-items-wrapper_12ll3_250"
|
|
251
|
-
},
|
|
251
|
+
}, Ie = {
|
|
252
252
|
name: "list-group",
|
|
253
253
|
components: {
|
|
254
|
-
Expand:
|
|
254
|
+
Expand: R,
|
|
255
255
|
"ll-button": v,
|
|
256
256
|
Icon: B
|
|
257
257
|
},
|
|
258
258
|
directives: {
|
|
259
|
-
sticky:
|
|
259
|
+
sticky: L
|
|
260
260
|
},
|
|
261
261
|
props: {
|
|
262
262
|
/**
|
|
@@ -291,7 +291,7 @@ const Ce = {
|
|
|
291
291
|
},
|
|
292
292
|
computed: {
|
|
293
293
|
headerOffset() {
|
|
294
|
-
return parseFloat(
|
|
294
|
+
return parseFloat(V(z.TOP_HEADER_HEIGHT));
|
|
295
295
|
}
|
|
296
296
|
},
|
|
297
297
|
methods: {
|
|
@@ -303,8 +303,8 @@ const Ce = {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}, ve = { class: "tw-flex-auto" }, Be = { ref: "actionsContainer" };
|
|
306
|
-
function Ae(e, l, s,
|
|
307
|
-
const c = d("Icon"), g = d("ll-button"),
|
|
306
|
+
function Ae(e, l, s, w, i, t) {
|
|
307
|
+
const c = d("Icon"), g = d("ll-button"), x = d("Expand"), I = O("sticky");
|
|
308
308
|
return a(), o("div", {
|
|
309
309
|
class: r([
|
|
310
310
|
e.$style["list-group"],
|
|
@@ -315,7 +315,7 @@ function Ae(e, l, s, _, i, t) {
|
|
|
315
315
|
])
|
|
316
316
|
}, [
|
|
317
317
|
u("header", {
|
|
318
|
-
class: r(["
|
|
318
|
+
class: r(["tw-flex tw-items-center", [e.$style["main-header"], { "tw-cursor-pointer": s.isCollapsible }]]),
|
|
319
319
|
onClick: l[0] || (l[0] = (...C) => t.onHeaderClick && t.onHeaderClick(...C))
|
|
320
320
|
}, [
|
|
321
321
|
s.isCollapsible ? (a(), h(g, {
|
|
@@ -338,7 +338,7 @@ function Ae(e, l, s, _, i, t) {
|
|
|
338
338
|
f(e.$slots, "actions")
|
|
339
339
|
], 512)
|
|
340
340
|
], 2),
|
|
341
|
-
p(
|
|
341
|
+
p(x, {
|
|
342
342
|
"is-expanded": i.isExpanded,
|
|
343
343
|
onAfterExpand: l[1] || (l[1] = (C) => i.isDoneExpanding = !0)
|
|
344
344
|
}, {
|
|
@@ -356,7 +356,7 @@ function Ae(e, l, s, _, i, t) {
|
|
|
356
356
|
f(e.$slots, "expanded-content-list-header")
|
|
357
357
|
], 2)
|
|
358
358
|
], 2)), [
|
|
359
|
-
[
|
|
359
|
+
[I, i.isExpanded && i.isDoneExpanding ? t.headerOffset : 0]
|
|
360
360
|
]) : n("", !0),
|
|
361
361
|
u("div", {
|
|
362
362
|
class: r(e.$style["expanded-content-list-items-wrapper"])
|
|
@@ -378,8 +378,8 @@ function Ae(e, l, s, _, i, t) {
|
|
|
378
378
|
], 2);
|
|
379
379
|
}
|
|
380
380
|
const Pe = {
|
|
381
|
-
$style:
|
|
382
|
-
}, ss = /* @__PURE__ */ k(
|
|
381
|
+
$style: xe
|
|
382
|
+
}, ss = /* @__PURE__ */ k(Ie, [["render", Ae], ["__cssModules", Pe]]), Fe = "_caret_1147a_2", Oe = {
|
|
383
383
|
"caret-up": "_caret-up_1147a_2",
|
|
384
384
|
"caret-down": "_caret-down_1147a_6",
|
|
385
385
|
caret: Fe
|
|
@@ -448,7 +448,7 @@ const Pe = {
|
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
|
-
function
|
|
451
|
+
function ze(e, l, s, w, i, t) {
|
|
452
452
|
const c = d("ll-icon");
|
|
453
453
|
return a(), o("div", {
|
|
454
454
|
class: r(["tw-cursor-pointer", { "tw-bg-blue-100": t.isSorted }]),
|
|
@@ -473,27 +473,27 @@ function Le(e, l, s, _, i, t) {
|
|
|
473
473
|
], 2)
|
|
474
474
|
], 2);
|
|
475
475
|
}
|
|
476
|
-
const
|
|
476
|
+
const Le = {
|
|
477
477
|
$style: Oe
|
|
478
|
-
}, ls = /* @__PURE__ */ k(Ee, [["render",
|
|
479
|
-
"list-items": "_list-
|
|
480
|
-
"legacy-box": "_legacy-
|
|
481
|
-
header:
|
|
482
|
-
"header-grid-container": "_header-grid-
|
|
483
|
-
"header-grid": "_header-
|
|
484
|
-
"search-input": "_search-
|
|
485
|
-
"clear-button": "_clear-
|
|
486
|
-
"search-button": "_search-
|
|
487
|
-
"total-sort": "_total-
|
|
488
|
-
"filter-toggle-btn": "_filter-toggle-
|
|
489
|
-
"filter-toggle-btn-with-hint-text": "_filter-toggle-btn-with-hint-
|
|
490
|
-
"filters-expand": "_filters-
|
|
491
|
-
"filters-wrapper": "_filters-
|
|
492
|
-
separator:
|
|
493
|
-
"filters-half-width": "_filters-half-
|
|
494
|
-
dropdown:
|
|
495
|
-
"sort-option": "_sort-
|
|
496
|
-
"select-all": "_select-
|
|
478
|
+
}, ls = /* @__PURE__ */ k(Ee, [["render", ze], ["__cssModules", Le]]), Ve = "_header_8nzxr_196", De = "_separator_8nzxr_1", Re = "_dropdown_8nzxr_347", Ne = {
|
|
479
|
+
"list-items": "_list-items_8nzxr_176",
|
|
480
|
+
"legacy-box": "_legacy-box_8nzxr_189",
|
|
481
|
+
header: Ve,
|
|
482
|
+
"header-grid-container": "_header-grid-container_8nzxr_240",
|
|
483
|
+
"header-grid": "_header-grid_8nzxr_240",
|
|
484
|
+
"search-input": "_search-input_8nzxr_272",
|
|
485
|
+
"clear-button": "_clear-button_8nzxr_280",
|
|
486
|
+
"search-button": "_search-button_8nzxr_292",
|
|
487
|
+
"total-sort": "_total-sort_8nzxr_306",
|
|
488
|
+
"filter-toggle-btn": "_filter-toggle-btn_8nzxr_312",
|
|
489
|
+
"filter-toggle-btn-with-hint-text": "_filter-toggle-btn-with-hint-text_8nzxr_316",
|
|
490
|
+
"filters-expand": "_filters-expand_8nzxr_321",
|
|
491
|
+
"filters-wrapper": "_filters-wrapper_8nzxr_321",
|
|
492
|
+
separator: De,
|
|
493
|
+
"filters-half-width": "_filters-half-width_8nzxr_342",
|
|
494
|
+
dropdown: Re,
|
|
495
|
+
"sort-option": "_sort-option_8nzxr_351",
|
|
496
|
+
"select-all": "_select-all_8nzxr_355"
|
|
497
497
|
}, P = {
|
|
498
498
|
isSearchable: !0,
|
|
499
499
|
placeholder: "Search",
|
|
@@ -501,7 +501,7 @@ const Ve = {
|
|
|
501
501
|
}, He = {
|
|
502
502
|
name: "ll-list-view",
|
|
503
503
|
components: {
|
|
504
|
-
BulkActions:
|
|
504
|
+
BulkActions: we,
|
|
505
505
|
Filters: re,
|
|
506
506
|
Paginate: ne,
|
|
507
507
|
LoadingManager: Te,
|
|
@@ -509,12 +509,12 @@ const Ve = {
|
|
|
509
509
|
Button: v,
|
|
510
510
|
Icon: B,
|
|
511
511
|
Dropdown: ie,
|
|
512
|
-
Expand:
|
|
513
|
-
Checkbox:
|
|
512
|
+
Expand: R,
|
|
513
|
+
Checkbox: D,
|
|
514
514
|
Input: ae
|
|
515
515
|
},
|
|
516
516
|
directives: {
|
|
517
|
-
sticky:
|
|
517
|
+
sticky: L
|
|
518
518
|
},
|
|
519
519
|
inject: {
|
|
520
520
|
trackSearch: { default: () => () => {
|
|
@@ -771,8 +771,8 @@ const Ve = {
|
|
|
771
771
|
if (this.isServerSide)
|
|
772
772
|
e = this.results;
|
|
773
773
|
else {
|
|
774
|
-
const { endIndex: l, totalCount: s, results:
|
|
775
|
-
e =
|
|
774
|
+
const { endIndex: l, totalCount: s, results: w, startIndex: i } = this;
|
|
775
|
+
e = w.slice(i, Math.min(l, s));
|
|
776
776
|
}
|
|
777
777
|
return this.$emit("updateResults", e), e;
|
|
778
778
|
},
|
|
@@ -817,8 +817,8 @@ const Ve = {
|
|
|
817
817
|
},
|
|
818
818
|
numberOfFilters() {
|
|
819
819
|
return Object.keys(this.filters).reduce((e, l) => {
|
|
820
|
-
const s = this.filters[l].filterBy,
|
|
821
|
-
return t || c ? e :
|
|
820
|
+
const s = this.filters[l].filterBy, w = typeof s[0] == "boolean", i = this.filters[l].filterType === "ll-checkbox", t = !this.filters[l].filterType.length, c = this.filters[l].filterType === "ll-input-options" && s[0] === "";
|
|
821
|
+
return t || c ? e : w || typeof s[0] == "string" ? e + (s[0] || !i ? 1 : 0) : e + (s.length || 0);
|
|
822
822
|
}, 0);
|
|
823
823
|
},
|
|
824
824
|
isSelectBarVisible() {
|
|
@@ -837,7 +837,7 @@ const Ve = {
|
|
|
837
837
|
return this.selectedItems.length;
|
|
838
838
|
},
|
|
839
839
|
headerOffset() {
|
|
840
|
-
return this.disableStickyHeader ? null : this.stickyHeaderOffset ?? parseFloat(
|
|
840
|
+
return this.disableStickyHeader ? null : this.stickyHeaderOffset ?? parseFloat(V(z.TOP_HEADER_HEIGHT));
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
watch: {
|
|
@@ -932,9 +932,9 @@ const Ve = {
|
|
|
932
932
|
return this.sortTerm ? se(e, this.sorts[this.sortTerm]) : e;
|
|
933
933
|
},
|
|
934
934
|
change({ trigger: e = "" } = {}) {
|
|
935
|
-
const { currentPage: l, filters: s, isFiltered:
|
|
935
|
+
const { currentPage: l, filters: s, isFiltered: w, pageSize: i, searchTerm: t, sortTerm: c } = this, g = {
|
|
936
936
|
filters: s,
|
|
937
|
-
isFiltered:
|
|
937
|
+
isFiltered: w,
|
|
938
938
|
page: {
|
|
939
939
|
number: l,
|
|
940
940
|
previousNumber: this.previousPage,
|
|
@@ -958,7 +958,7 @@ const Ve = {
|
|
|
958
958
|
*/
|
|
959
959
|
reset() {
|
|
960
960
|
if (this.$emit("change:reset"), this.searchTerm = "", this.setPage({ pageNumber: 1 }), this.isServerSide) {
|
|
961
|
-
this.change({ trigger:
|
|
961
|
+
this.change({ trigger: b.RESET });
|
|
962
962
|
return;
|
|
963
963
|
}
|
|
964
964
|
this.processResults();
|
|
@@ -976,7 +976,7 @@ const Ve = {
|
|
|
976
976
|
* by Filters.
|
|
977
977
|
*/
|
|
978
978
|
onSearch() {
|
|
979
|
-
this.$refs.llFilters.applyFilters({ trigger:
|
|
979
|
+
this.$refs.llFilters.applyFilters({ trigger: b.SEARCH });
|
|
980
980
|
},
|
|
981
981
|
/**
|
|
982
982
|
* Event handler for when the user:
|
|
@@ -988,7 +988,7 @@ const Ve = {
|
|
|
988
988
|
* @param {string} [options.trigger] - what caused the changes
|
|
989
989
|
* @returns {Promise<void>}
|
|
990
990
|
*/
|
|
991
|
-
async onFilter({ trigger: e =
|
|
991
|
+
async onFilter({ trigger: e = b.APPLY } = {}) {
|
|
992
992
|
if (this.setPage({ pageNumber: 1 }), this.change({ trigger: e }), this.trackSearch(this.searchTerm), this.trackFilters(this.filters), this.selectedItems = [], !this.isServerSide) {
|
|
993
993
|
try {
|
|
994
994
|
this.isFiltering = !0, await this.processResults({ trigger: e });
|
|
@@ -1018,7 +1018,7 @@ const Ve = {
|
|
|
1018
1018
|
* @param {string} term The updated sort term
|
|
1019
1019
|
*/
|
|
1020
1020
|
onSort(e) {
|
|
1021
|
-
e !== this.sortTerm && (this.sortTerm = e, this.$emit("change:sort", e), this.trackSort(e), this.clearSelected(), this.setPage({ pageNumber: 1 }), this.change({ trigger:
|
|
1021
|
+
e !== this.sortTerm && (this.sortTerm = e, this.$emit("change:sort", e), this.trackSort(e), this.clearSelected(), this.setPage({ pageNumber: 1 }), this.change({ trigger: b.SORT }));
|
|
1022
1022
|
},
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Sets current page for the Paginator.
|
|
@@ -1027,7 +1027,7 @@ const Ve = {
|
|
|
1027
1027
|
* @param {boolean} data.forceChange - flag to force the change
|
|
1028
1028
|
*/
|
|
1029
1029
|
setPage({ pageNumber: e, forceChange: l = !1 } = {}) {
|
|
1030
|
-
this.previousPage = this.currentPage, this.currentPage = e, this.isServerSide || this.$emit("change:page", e), l && this.change({ trigger:
|
|
1030
|
+
this.previousPage = this.currentPage, this.currentPage = e, this.isServerSide || this.$emit("change:page", e), l && this.change({ trigger: b.PAGE });
|
|
1031
1031
|
},
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Set the scroll position to the top of the list view.
|
|
@@ -1069,12 +1069,12 @@ const Ve = {
|
|
|
1069
1069
|
return e.reduce((l, s) => this.isItemDisabled(s) ? l : [...l, s], []);
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
}, Me = { class: "ll-grid ll-grid-cols-4 md:ll-grid-cols-8 lg:ll-grid-cols-12" }, je = ["disabled"], Ge = { class: "
|
|
1072
|
+
}, Me = { class: "ll-grid ll-grid-cols-4 md:ll-grid-cols-8 lg:ll-grid-cols-12" }, je = ["disabled"], Ge = { class: "button-grid col-span-1 lg:col-span-3 tw-items-end tw-justify-end" }, Ue = {
|
|
1073
1073
|
key: 0,
|
|
1074
|
-
class: "text-
|
|
1074
|
+
class: "tw-text-xs"
|
|
1075
1075
|
};
|
|
1076
|
-
function Ke(e, l, s,
|
|
1077
|
-
const c = d("Icon"), g = d("Button"),
|
|
1076
|
+
function Ke(e, l, s, w, i, t) {
|
|
1077
|
+
const c = d("Icon"), g = d("Button"), x = d("Input"), I = d("Badge"), C = d("Filters"), N = d("Expand"), H = d("Dropdown"), M = d("Checkbox"), j = d("BulkActions"), G = d("Paginate"), U = O("sticky");
|
|
1078
1078
|
return a(), o("div", null, [
|
|
1079
1079
|
t.showPrimaryControls || t.showSecondaryControls ? (a(), o("div", {
|
|
1080
1080
|
key: 0,
|
|
@@ -1087,7 +1087,7 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1087
1087
|
"data-test": "filters|controls"
|
|
1088
1088
|
}, [
|
|
1089
1089
|
u("div", Me, [
|
|
1090
|
-
t.internalSearchSchema.isSearchable ? (a(), h(
|
|
1090
|
+
t.internalSearchSchema.isSearchable ? (a(), h(x, {
|
|
1091
1091
|
key: 0,
|
|
1092
1092
|
ref: "search-input",
|
|
1093
1093
|
modelValue: i.searchTerm,
|
|
@@ -1129,12 +1129,12 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1129
1129
|
}, 8, ["modelValue", "class", "hint-text", "label", "placeholder", "onChange"])) : n("", !0),
|
|
1130
1130
|
s.filterSchema.length ? (a(), o("div", {
|
|
1131
1131
|
key: 1,
|
|
1132
|
-
class: r(["col-span-1
|
|
1132
|
+
class: r(["col-span-1 tw-flex tw-items-end", [
|
|
1133
1133
|
e.$style["filter-toggle-btn"],
|
|
1134
1134
|
{ [e.$style["filter-toggle-btn-with-hint-text"]]: !!t.internalSearchSchema.hintText }
|
|
1135
1135
|
]])
|
|
1136
1136
|
}, [
|
|
1137
|
-
p(
|
|
1137
|
+
p(I, { content: t.numberOfFilters }, {
|
|
1138
1138
|
default: m(() => [
|
|
1139
1139
|
p(g, {
|
|
1140
1140
|
secondary: "",
|
|
@@ -1153,7 +1153,7 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1153
1153
|
key: 1,
|
|
1154
1154
|
name: "filter-line"
|
|
1155
1155
|
})),
|
|
1156
|
-
T(" " +
|
|
1156
|
+
T(" " + _(i.filterText), 1)
|
|
1157
1157
|
]),
|
|
1158
1158
|
_: 1
|
|
1159
1159
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1165,7 +1165,7 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1165
1165
|
f(e.$slots, "actions")
|
|
1166
1166
|
])
|
|
1167
1167
|
]),
|
|
1168
|
-
p(
|
|
1168
|
+
p(N, {
|
|
1169
1169
|
"data-test": "filters|content",
|
|
1170
1170
|
class: r(e.$style["filters-expand"]),
|
|
1171
1171
|
"is-expanded": i.isShowingFilters
|
|
@@ -1203,7 +1203,7 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1203
1203
|
key: 1,
|
|
1204
1204
|
class: r(["tw-mb-1.5", t.shouldShowTotal ? e.$style["total-sort"] : "tw-text-right"])
|
|
1205
1205
|
}, [
|
|
1206
|
-
t.shouldShowTotal ? (a(), o("div", Ue,
|
|
1206
|
+
t.shouldShowTotal ? (a(), o("div", Ue, _(t.total), 1)) : n("", !0),
|
|
1207
1207
|
Object.keys(s.sorts).length ? (a(), h(H, {
|
|
1208
1208
|
key: 1,
|
|
1209
1209
|
class: r(e.$style.dropdown),
|
|
@@ -1218,15 +1218,15 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1218
1218
|
}, [
|
|
1219
1219
|
(a(!0), o(Q, null, X(Object.keys(s.sorts), (S, K) => (a(), o("li", {
|
|
1220
1220
|
key: K,
|
|
1221
|
-
class: r([{ "
|
|
1221
|
+
class: r([{ "tw-bg-blue-100 tw-text-ice-700": S === i.sortTerm }, "dropdown__item tw-rounded"])
|
|
1222
1222
|
}, [
|
|
1223
1223
|
p(g, {
|
|
1224
1224
|
inline: "",
|
|
1225
|
-
class: r(["
|
|
1225
|
+
class: r(["tw-items-center", e.$style["sort-option"]]),
|
|
1226
1226
|
onClick: (qe) => t.onSort(S)
|
|
1227
1227
|
}, {
|
|
1228
1228
|
default: m(() => [
|
|
1229
|
-
T(
|
|
1229
|
+
T(_(S) + " ", 1),
|
|
1230
1230
|
S === i.sortTerm ? (a(), h(c, {
|
|
1231
1231
|
key: 0,
|
|
1232
1232
|
name: "check",
|
|
@@ -1331,10 +1331,10 @@ function Ke(e, l, s, _, i, t) {
|
|
|
1331
1331
|
]);
|
|
1332
1332
|
}
|
|
1333
1333
|
const We = {
|
|
1334
|
-
$style:
|
|
1334
|
+
$style: Ne
|
|
1335
1335
|
}, is = /* @__PURE__ */ k(He, [["render", Ke], ["__cssModules", We]]);
|
|
1336
1336
|
export {
|
|
1337
|
-
|
|
1337
|
+
we as BulkActions,
|
|
1338
1338
|
ss as ListGroup,
|
|
1339
1339
|
ls as ListHeader,
|
|
1340
1340
|
Te as LoadingManager,
|