@leaflink/stash 52.0.2 → 53.0.0
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/README.md +50 -49
- package/dist/Accordion.js +16 -16
- package/dist/Accordion.js.map +1 -1
- package/dist/AccordionGroup.js +7 -7
- package/dist/AccordionGroup.js.map +1 -1
- package/dist/ActionsDropdown.js +16 -16
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/AddressSelect.js.map +1 -1
- package/dist/AddressSelect.vue.d.ts +1 -1
- package/dist/Alert.js +34 -34
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js +31 -31
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppSidebar.js +19 -19
- package/dist/AppSidebar.js.map +1 -1
- package/dist/AppTopbar.js +32 -32
- package/dist/AppTopbar.js.map +1 -1
- package/dist/Avatar.js +18 -18
- package/dist/Avatar.js.map +1 -1
- package/dist/Backdrop.js +5 -5
- package/dist/Backdrop.js.map +1 -1
- package/dist/Badge.js +38 -38
- package/dist/Badge.js.map +1 -1
- package/dist/Box.js +1 -1
- package/dist/{Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js → Box.vue_vue_type_script_setup_true_lang-dFFZN40_.js} +6 -6
- package/dist/{Box.vue_vue_type_script_setup_true_lang-rFnvwLVY.js.map → Box.vue_vue_type_script_setup_true_lang-dFFZN40_.js.map} +1 -1
- package/dist/Button.js +21 -21
- package/dist/Button.js.map +1 -1
- package/dist/ButtonGroup.js +26 -26
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/Card.js +14 -14
- package/dist/Card.js.map +1 -1
- package/dist/CardContent.js +1 -1
- package/dist/CardContent.js.map +1 -1
- package/dist/CardFooter.js +1 -1
- package/dist/CardFooter.js.map +1 -1
- package/dist/CardHeader.js +4 -4
- package/dist/CardHeader.js.map +1 -1
- package/dist/CardMedia.js +20 -20
- package/dist/CardMedia.js.map +1 -1
- package/dist/Carousel.js +88 -93
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js +30 -30
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.vue.d.ts +0 -3
- package/dist/Chip.js +33 -33
- package/dist/Chip.js.map +1 -1
- package/dist/ConfirmationCodeInput.js +72 -72
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js +27 -27
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js +47 -48
- package/dist/Copy.js.map +1 -1
- package/dist/CurrencyInput.js +1 -1
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CurrencyInput.vue.d.ts +5 -5
- package/dist/DataView.js +23 -23
- package/dist/DataView.js.map +1 -1
- package/dist/DataViewFilters.js +26 -26
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js +22 -22
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewToolbar.js +52 -52
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DatePicker.js +10 -10
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionList.js +2 -2
- package/dist/DescriptionList.js.map +1 -1
- package/dist/DescriptionListDetail.js +2 -2
- package/dist/DescriptionListDetail.js.map +1 -1
- package/dist/DescriptionListGroup.js +9 -9
- package/dist/DescriptionListGroup.js.map +1 -1
- package/dist/DescriptionListTerm.js +8 -8
- package/dist/DescriptionListTerm.js.map +1 -1
- package/dist/Dialog.js +47 -47
- package/dist/Dialog.js.map +1 -1
- package/dist/Divider.js +6 -6
- package/dist/Divider.js.map +1 -1
- package/dist/Dropdown.js +20 -20
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js +26 -26
- package/dist/EmptyState.js.map +1 -1
- package/dist/Field.js +1 -1
- package/dist/{Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js → Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js} +17 -17
- package/dist/Field.vue_vue_type_script_setup_true_lang-dAGKfjf5.js.map +1 -0
- package/dist/FileUpload.js +47 -49
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js +20 -20
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterDrawerItem.js +13 -13
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDropdown.js +27 -27
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterSelect.js +33 -33
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +29 -29
- package/dist/Filters.js.map +1 -1
- package/dist/Filters.vue.d.ts +2 -8
- package/dist/HttpError.js +29 -29
- package/dist/HttpError.js.map +1 -1
- package/dist/HttpError.vue.d.ts +0 -3
- package/dist/Icon.js +12 -12
- package/dist/Icon.js.map +1 -1
- package/dist/IconLabel.js +19 -19
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/Illustration.js +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js → Illustration.vue_vue_type_script_setup_true_lang-C1bPkWZZ.js} +4 -4
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BrqEF8xe.js.map → Illustration.vue_vue_type_script_setup_true_lang-C1bPkWZZ.js.map} +1 -1
- package/dist/Image.js +2 -2
- package/dist/Image.vue.d.ts +0 -3
- package/dist/{Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js → Image.vue_vue_type_script_setup_true_lang-CAj0FH9h.js} +11 -11
- package/dist/Image.vue_vue_type_script_setup_true_lang-CAj0FH9h.js.map +1 -0
- package/dist/InlineEdit.js +8 -8
- package/dist/InlineEdit.js.map +1 -1
- package/dist/Input.js +29 -29
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js +87 -84
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +2 -2
- package/dist/IntegrationIcon.js +11 -11
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/Label.js +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-CNquF3AP.js → Label.vue_vue_type_script_setup_true_lang-xwY3X-iV.js} +16 -16
- package/dist/{Label.vue_vue_type_script_setup_true_lang-CNquF3AP.js.map → Label.vue_vue_type_script_setup_true_lang-xwY3X-iV.js.map} +1 -1
- package/dist/ListItem.js +14 -14
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItem.vue.d.ts +0 -6
- package/dist/ListItemCell.js +9 -9
- package/dist/ListItemCell.js.map +1 -1
- package/dist/ListView.js +138 -141
- package/dist/ListView.js.map +1 -1
- package/dist/ListView.vue.d.ts +2 -26
- package/dist/Loading.js +8 -8
- package/dist/Loading.js.map +1 -1
- package/dist/Logo.js +1 -1
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js → Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js} +3 -3
- package/dist/{Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js.map → Logo.vue_vue_type_script_setup_true_lang-DghNC_k6.js.map} +1 -1
- package/dist/Menu.js +5 -5
- package/dist/Menu.js.map +1 -1
- package/dist/MenuItem.js +12 -12
- package/dist/MenuItem.js.map +1 -1
- package/dist/Metric.js +24 -24
- package/dist/Metric.js.map +1 -1
- package/dist/Modal.js +60 -60
- package/dist/Modal.js.map +1 -1
- package/dist/Modals.js +1 -1
- package/dist/Modals.js.map +1 -1
- package/dist/Module.js +6 -6
- package/dist/Module.js.map +1 -1
- package/dist/ModuleContent.js +16 -16
- package/dist/ModuleContent.js.map +1 -1
- package/dist/ModuleFooter.js +13 -13
- package/dist/ModuleFooter.js.map +1 -1
- package/dist/ModuleHeader.js +29 -29
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/MoreActions.js +81 -84
- package/dist/MoreActions.js.map +1 -1
- package/dist/ObfuscateText.js +4 -4
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/PageContent.js +13 -13
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeader.js +28 -28
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageNavigation.js +1 -1
- package/dist/Paginate.js +45 -45
- package/dist/Paginate.js.map +1 -1
- package/dist/QuickAction.js +18 -18
- package/dist/QuickAction.js.map +1 -1
- package/dist/Radio.js +17 -17
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +158 -154
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioNew.js +80 -80
- package/dist/RadioNew.js.map +1 -1
- package/dist/RadioNew.vue.d.ts +0 -3
- package/dist/RangeInput.js +2 -2
- package/dist/RangeInput.js.map +1 -1
- package/dist/SearchBar.js +9 -9
- package/dist/SearchBar.js.map +1 -1
- package/dist/SectionHeader.js +14 -14
- package/dist/SectionHeader.js.map +1 -1
- package/dist/Select.js +369 -366
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +26 -27
- package/dist/SelectStatus.js.map +1 -1
- package/dist/Skeleton.js +20 -20
- package/dist/Skeleton.js.map +1 -1
- package/dist/Step.js +37 -40
- package/dist/Step.js.map +1 -1
- package/dist/Stepper.js +17 -17
- package/dist/Stepper.js.map +1 -1
- package/dist/Switch.js +57 -57
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js +17 -19
- package/dist/Tab.js.map +1 -1
- package/dist/TabPanel.js +1 -1
- package/dist/TabPanel.js.map +1 -1
- package/dist/Table.js +22 -22
- package/dist/Table.js.map +1 -1
- package/dist/TableCell.js +32 -32
- package/dist/TableCell.js.map +1 -1
- package/dist/TableHeaderCell.js +35 -35
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderRow.js +10 -10
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableRow.js +51 -51
- package/dist/TableRow.js.map +1 -1
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-B3Irnlcd.js → Tabs.vue_vue_type_script_setup_true_lang-BVTCcK6M.js} +33 -33
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-BVTCcK6M.js.map +1 -0
- package/dist/TextEditor.js +8 -8
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js +15 -15
- package/dist/Textarea.js.map +1 -1
- package/dist/Thumbnail.js +41 -41
- package/dist/Thumbnail.js.map +1 -1
- package/dist/ThumbnailEmpty.js +3 -3
- package/dist/ThumbnailEmpty.js.map +1 -1
- package/dist/ThumbnailGroup.js +22 -22
- package/dist/ThumbnailGroup.js.map +1 -1
- package/dist/Timeline.js +3 -3
- package/dist/Timeline.js.map +1 -1
- package/dist/TimelineItem.js +22 -22
- package/dist/TimelineItem.js.map +1 -1
- package/dist/Toast.js +29 -29
- package/dist/Toast.js.map +1 -1
- package/dist/Toast.vue.d.ts +3 -0
- package/dist/Toasts.js +11 -11
- package/dist/Toasts.js.map +1 -1
- package/dist/Tooltip.js +2 -81
- package/dist/Tooltip.js.map +1 -1
- package/dist/Tooltip.vue.d.ts +1 -1
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-mzBLSXy3.js +84 -0
- package/dist/Tooltip.vue_vue_type_script_setup_true_lang-mzBLSXy3.js.map +1 -0
- package/dist/components.css +2 -2
- package/dist/constants.d.ts +9 -9
- package/dist/constants.js +17 -17
- package/dist/constants.js.map +1 -1
- package/dist/directives/tooltip.js +2 -2
- package/dist/directives/tooltip.js.map +1 -1
- package/dist/{index-C14LhAwV.js → index-DBV9Uz0C.js} +3 -3
- package/dist/{index-C14LhAwV.js.map → index-DBV9Uz0C.js.map} +1 -1
- package/dist/tailwind-base.js.d.ts +12 -0
- package/dist/tailwind-base.js.map +1 -1
- package/dist/useSortable.js +1 -1
- package/dist/utils/helpers.js +15 -15
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +15 -15
- package/styles/backwards-compat.css +373 -2851
- package/styles/main.css +8 -0
- package/styles/sofia-font.css +23 -27
- package/styles/theme.css +1033 -0
- package/dist/Field.vue_vue_type_script_setup_true_lang-DI6z3AE9.js.map +0 -1
- package/dist/Image.vue_vue_type_script_setup_true_lang-D5u4av0_.js.map +0 -1
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-B3Irnlcd.js.map +0 -1
- package/dist/tailwind-base.d.ts +0 -333
- package/styles/base.css +0 -902
- package/tailwind-base.ts +0 -455
package/dist/ListView.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import W from "lodash-es/cloneDeep";
|
|
2
|
-
import { resolveComponent as d, createElementBlock as o, openBlock as r, normalizeClass as a, createElementVNode as u, createCommentVNode as n, createVNode as S, toDisplayString as
|
|
2
|
+
import { resolveComponent as d, createElementBlock as o, openBlock as r, normalizeClass as a, createElementVNode as u, createCommentVNode as n, createVNode as S, toDisplayString as k, createBlock as h, withCtx as m, createTextVNode as T, renderSlot as f, TransitionGroup as F, resolveDirective as O, withDirectives as E, withKeys as q, normalizeStyle as Y, Fragment as J, renderList as Q, mergeProps as X, resolveDynamicComponent as Z, computed as $ } from "vue";
|
|
3
3
|
import ee from "./useSearch.js";
|
|
4
4
|
import { CSS_VARS as L, LLLV_CHANGE_TRIGGERS as b } from "./constants.js";
|
|
5
5
|
import V from "./directives/sticky.js";
|
|
6
|
-
import { t as
|
|
6
|
+
import { t as p } from "./locale.js";
|
|
7
7
|
import { persistentStorage as A } from "./storage.js";
|
|
8
8
|
import { getCssVar as D, sortItems as te, filterItems as se } from "./utils/helpers.js";
|
|
9
9
|
import le from "./Badge.js";
|
|
10
|
-
import
|
|
10
|
+
import x from "./Button.js";
|
|
11
11
|
import R from "./Checkbox.js";
|
|
12
12
|
import ie from "./Dropdown.js";
|
|
13
13
|
import { _ as N } from "./Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js";
|
|
@@ -15,17 +15,17 @@ import re from "./Filters.js";
|
|
|
15
15
|
import B from "./Icon.js";
|
|
16
16
|
import ae from "./Input.js";
|
|
17
17
|
import ne from "./Paginate.js";
|
|
18
|
-
import { _ as
|
|
18
|
+
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
19
|
import oe from "./EmptyState.js";
|
|
20
20
|
import ce from "./Loading.js";
|
|
21
|
-
const de = "
|
|
22
|
-
"select-bar": "_select-
|
|
21
|
+
const de = "_checkbox_11ksu_13", he = "_actions_11ksu_17", ue = {
|
|
22
|
+
"select-bar": "_select-bar_11ksu_5",
|
|
23
23
|
checkbox: de,
|
|
24
24
|
actions: he
|
|
25
25
|
}, me = {
|
|
26
26
|
name: "bulk-actions",
|
|
27
27
|
components: {
|
|
28
|
-
"ll-button":
|
|
28
|
+
"ll-button": x,
|
|
29
29
|
"ll-checkbox": R
|
|
30
30
|
},
|
|
31
31
|
props: {
|
|
@@ -46,27 +46,27 @@ const de = "_checkbox_hsxyw_10", he = "_actions_hsxyw_14", ue = {
|
|
|
46
46
|
emits: ["change:select-current", "change:select-all", "change:clear-selected"],
|
|
47
47
|
data: function() {
|
|
48
48
|
return {
|
|
49
|
-
selectAllText:
|
|
49
|
+
selectAllText: p("ll.listView.selectAll")
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
52
|
computed: {
|
|
53
53
|
clearSelectedText() {
|
|
54
|
-
return this.allowSelectAll ?
|
|
54
|
+
return this.allowSelectAll ? p("ll.listView.deselectAllCount", { count: this.totalCount }) : p("ll.listView.clearSelection");
|
|
55
55
|
},
|
|
56
56
|
showSelectAll() {
|
|
57
57
|
return [this.totalSelectedCount !== this.totalCount, this.allowSelectAll].every(Boolean);
|
|
58
58
|
},
|
|
59
59
|
numberOfTotalSelectedText() {
|
|
60
|
-
return
|
|
60
|
+
return p("ll.listView.numberOfTotalSelected", {
|
|
61
61
|
num: this.totalSelectedCount,
|
|
62
62
|
total: this.totalCount
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
65
|
selectAllCountText() {
|
|
66
|
-
return
|
|
66
|
+
return p("ll.listView.selectAllCount", { count: this.totalCount });
|
|
67
67
|
},
|
|
68
68
|
numItemsSelectedText() {
|
|
69
|
-
return
|
|
69
|
+
return p("ll.listView.numItemsSelected", {
|
|
70
70
|
totalSelectedCount: this.totalSelectedCount,
|
|
71
71
|
totalCount: this.totalCount
|
|
72
72
|
});
|
|
@@ -85,42 +85,42 @@ const de = "_checkbox_hsxyw_10", he = "_actions_hsxyw_14", ue = {
|
|
|
85
85
|
}
|
|
86
86
|
}, ge = {
|
|
87
87
|
key: 0,
|
|
88
|
-
class: "
|
|
88
|
+
class: "flex flex-1 items-center justify-between"
|
|
89
89
|
}, fe = {
|
|
90
90
|
key: 0,
|
|
91
|
-
class: "
|
|
91
|
+
class: "text-xs"
|
|
92
92
|
}, Se = {
|
|
93
93
|
key: 1,
|
|
94
|
-
class: "
|
|
94
|
+
class: "ml-1.5 lg:hidden"
|
|
95
95
|
};
|
|
96
|
-
function
|
|
96
|
+
function ye(e, l, s, _, i, t) {
|
|
97
97
|
const c = d("ll-checkbox"), g = d("ll-button");
|
|
98
98
|
return r(), o("div", {
|
|
99
|
-
class: a(["lg:
|
|
99
|
+
class: a(["lg:flex", [
|
|
100
100
|
e.$style["select-bar"],
|
|
101
101
|
{
|
|
102
|
-
"lg:
|
|
102
|
+
"lg:hidden": s.hideBulkActionOptions
|
|
103
103
|
},
|
|
104
|
-
"
|
|
104
|
+
"p-3"
|
|
105
105
|
]])
|
|
106
106
|
}, [
|
|
107
107
|
u("div", {
|
|
108
|
-
class: a(["
|
|
109
|
-
"
|
|
108
|
+
class: a(["flex items-center", {
|
|
109
|
+
"justify-between": !s.hideBulkActionOptions
|
|
110
110
|
}])
|
|
111
111
|
}, [
|
|
112
112
|
S(c, {
|
|
113
113
|
"data-test": "checkbox|bulk-actions",
|
|
114
|
-
class: a([e.$style.checkbox, "
|
|
114
|
+
class: a([e.$style.checkbox, "m-0 lg:hidden"]),
|
|
115
115
|
checked: s.isSomePageChecked && !!s.totalCount,
|
|
116
116
|
indeterminate: s.isSomePageChecked && !s.isAllPageChecked,
|
|
117
117
|
label: s.totalSelectedCount ? "" : e.selectAllText,
|
|
118
118
|
"onUpdate:checked": t.onSelectPage
|
|
119
119
|
}, null, 8, ["class", "checked", "indeterminate", "label", "onUpdate:checked"]),
|
|
120
120
|
s.totalSelectedCount && !s.hideBulkActionOptions ? (r(), o("div", ge, [
|
|
121
|
-
s.hideNumberOfTotalSelected ? n("", !0) : (r(), o("div", fe,
|
|
121
|
+
s.hideNumberOfTotalSelected ? n("", !0) : (r(), o("div", fe, k(t.numberOfTotalSelectedText), 1)),
|
|
122
122
|
u("div", {
|
|
123
|
-
class: a({ "
|
|
123
|
+
class: a({ "ml-3": !s.hideNumberOfTotalSelected })
|
|
124
124
|
}, [
|
|
125
125
|
t.showSelectAll ? (r(), h(g, {
|
|
126
126
|
key: 0,
|
|
@@ -128,7 +128,7 @@ function we(e, l, s, p, i, t) {
|
|
|
128
128
|
onClick: t.selectAll
|
|
129
129
|
}, {
|
|
130
130
|
default: m(() => [
|
|
131
|
-
T(
|
|
131
|
+
T(k(t.selectAllCountText), 1)
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["onClick"])) : (r(), h(g, {
|
|
@@ -137,13 +137,13 @@ function we(e, l, s, p, i, t) {
|
|
|
137
137
|
onClick: t.clearSelected
|
|
138
138
|
}, {
|
|
139
139
|
default: m(() => [
|
|
140
|
-
T(
|
|
140
|
+
T(k(t.clearSelectedText), 1)
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}, 8, ["onClick"]))
|
|
144
144
|
], 2)
|
|
145
145
|
])) : s.hideBulkActionOptions && s.totalSelectedCount ? (r(), o("div", Se, [
|
|
146
|
-
u("h4", null,
|
|
146
|
+
u("h4", null, k(t.numItemsSelectedText), 1)
|
|
147
147
|
])) : n("", !0)
|
|
148
148
|
], 2),
|
|
149
149
|
s.totalSelectedCount && !s.hideBulkActionOptions ? (r(), o("div", {
|
|
@@ -154,9 +154,9 @@ function we(e, l, s, p, i, t) {
|
|
|
154
154
|
], 2)) : n("", !0)
|
|
155
155
|
], 2);
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const pe = {
|
|
158
158
|
$style: ue
|
|
159
|
-
},
|
|
159
|
+
}, _e = /* @__PURE__ */ C(me, [["render", ye], ["__cssModules", pe]]), ke = {
|
|
160
160
|
name: "loading-manager",
|
|
161
161
|
components: {
|
|
162
162
|
EmptyState: oe,
|
|
@@ -174,11 +174,11 @@ const ye = {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
function be(e, l, s,
|
|
177
|
+
function be(e, l, s, _, i, t) {
|
|
178
178
|
const c = d("Loading"), g = d("EmptyState");
|
|
179
179
|
return s.loading ? (r(), h(c, {
|
|
180
180
|
key: 0,
|
|
181
|
-
class: "
|
|
181
|
+
class: "bg-white"
|
|
182
182
|
})) : s.results.length ? (r(), h(F, {
|
|
183
183
|
key: 1,
|
|
184
184
|
name: "slide-y",
|
|
@@ -190,22 +190,22 @@ function be(e, l, s, p, i, t) {
|
|
|
190
190
|
_: 3
|
|
191
191
|
})) : (r(), h(g, {
|
|
192
192
|
key: 2,
|
|
193
|
-
class: "
|
|
193
|
+
class: "max-w-full bg-white",
|
|
194
194
|
text: s.emptyStateText
|
|
195
195
|
}, null, 8, ["text"]));
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
"main-header": "_main-
|
|
199
|
-
"expanded-content-header": "_expanded-content-
|
|
200
|
-
"expanded-content-header-grid": "_expanded-content-header-
|
|
201
|
-
"expansion-toggle-button": "_expansion-toggle-
|
|
202
|
-
"list-group": "_list-
|
|
203
|
-
"expanded-content-list-items-wrapper": "_expanded-content-list-items-
|
|
197
|
+
const Ce = /* @__PURE__ */ C(ke, [["render", be]]), we = {
|
|
198
|
+
"main-header": "_main-header_ayput_5",
|
|
199
|
+
"expanded-content-header": "_expanded-content-header_ayput_21",
|
|
200
|
+
"expanded-content-header-grid": "_expanded-content-header-grid_ayput_44",
|
|
201
|
+
"expansion-toggle-button": "_expansion-toggle-button_ayput_62",
|
|
202
|
+
"list-group": "_list-group_ayput_66",
|
|
203
|
+
"expanded-content-list-items-wrapper": "_expanded-content-list-items-wrapper_ayput_73"
|
|
204
204
|
}, Te = {
|
|
205
205
|
name: "list-group",
|
|
206
206
|
components: {
|
|
207
207
|
Expand: N,
|
|
208
|
-
"ll-button":
|
|
208
|
+
"ll-button": x,
|
|
209
209
|
Icon: B
|
|
210
210
|
},
|
|
211
211
|
directives: {
|
|
@@ -255,9 +255,9 @@ const ke = /* @__PURE__ */ k(_e, [["render", be]]), Ce = {
|
|
|
255
255
|
this.$refs.actionsContainer.contains(e.target) || this.toggleExpand();
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
},
|
|
259
|
-
function Be(e, l, s,
|
|
260
|
-
const c = d("Icon"), g = d("ll-button"),
|
|
258
|
+
}, ve = { class: "flex-auto" }, Ie = { ref: "actionsContainer" }, xe = { class: "relative w-full lg:shadow" };
|
|
259
|
+
function Be(e, l, s, _, i, t) {
|
|
260
|
+
const c = d("Icon"), g = d("ll-button"), v = d("Expand"), I = O("sticky");
|
|
261
261
|
return r(), o("div", {
|
|
262
262
|
class: a([
|
|
263
263
|
e.$style["list-group"],
|
|
@@ -268,46 +268,46 @@ function Be(e, l, s, p, i, t) {
|
|
|
268
268
|
])
|
|
269
269
|
}, [
|
|
270
270
|
u("header", {
|
|
271
|
-
class: a(["
|
|
272
|
-
onClick: l[0] || (l[0] = (...
|
|
271
|
+
class: a(["flex items-center", [e.$style["main-header"], { "cursor-pointer": s.isCollapsible }]]),
|
|
272
|
+
onClick: l[0] || (l[0] = (...w) => t.onHeaderClick && t.onHeaderClick(...w))
|
|
273
273
|
}, [
|
|
274
274
|
s.isCollapsible ? (r(), h(g, {
|
|
275
275
|
key: 0,
|
|
276
|
-
class: a(["
|
|
276
|
+
class: a(["mr-1.5 text-ice-900", e.$style["expansion-toggle-button"]]),
|
|
277
277
|
icon: ""
|
|
278
278
|
}, {
|
|
279
279
|
default: m(() => [
|
|
280
280
|
S(c, {
|
|
281
|
-
class: a([i.isExpanded ? "
|
|
281
|
+
class: a([i.isExpanded ? "rotate-270" : "rotate-180"]),
|
|
282
282
|
name: "chevron-left"
|
|
283
283
|
}, null, 8, ["class"])
|
|
284
284
|
]),
|
|
285
285
|
_: 1
|
|
286
286
|
}, 8, ["class"])) : n("", !0),
|
|
287
|
-
u("div",
|
|
287
|
+
u("div", ve, [
|
|
288
288
|
f(e.$slots, "title")
|
|
289
289
|
]),
|
|
290
|
-
u("div",
|
|
290
|
+
u("div", Ie, [
|
|
291
291
|
f(e.$slots, "actions")
|
|
292
292
|
], 512)
|
|
293
293
|
], 2),
|
|
294
|
-
S(
|
|
294
|
+
S(v, {
|
|
295
295
|
"is-expanded": i.isExpanded,
|
|
296
|
-
onAfterExpand: l[1] || (l[1] = (
|
|
296
|
+
onAfterExpand: l[1] || (l[1] = (w) => i.isDoneExpanding = !0)
|
|
297
297
|
}, {
|
|
298
298
|
default: m(() => [
|
|
299
|
-
u("div",
|
|
299
|
+
u("div", xe, [
|
|
300
300
|
e.$slots["expanded-content-list-header"] ? E((r(), o("header", {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: a(e.$style["expanded-content-header"])
|
|
303
303
|
}, [
|
|
304
304
|
u("div", {
|
|
305
|
-
class: a(["
|
|
305
|
+
class: a(["ll-grid flex-1", e.$style["expanded-content-header-grid"]])
|
|
306
306
|
}, [
|
|
307
307
|
f(e.$slots, "expanded-content-list-header")
|
|
308
308
|
], 2)
|
|
309
309
|
], 2)), [
|
|
310
|
-
[
|
|
310
|
+
[I, i.isExpanded && i.isDoneExpanding ? t.headerOffset : 0]
|
|
311
311
|
]) : n("", !0),
|
|
312
312
|
u("div", {
|
|
313
313
|
class: a(e.$style["expanded-content-list-items-wrapper"])
|
|
@@ -329,10 +329,10 @@ function Be(e, l, s, p, i, t) {
|
|
|
329
329
|
], 2);
|
|
330
330
|
}
|
|
331
331
|
const Ae = {
|
|
332
|
-
$style:
|
|
333
|
-
}, mt = /* @__PURE__ */
|
|
334
|
-
"caret-up": "_caret-
|
|
335
|
-
"caret-down": "_caret-
|
|
332
|
+
$style: we
|
|
333
|
+
}, mt = /* @__PURE__ */ C(Te, [["render", Be], ["__cssModules", Ae]]), Pe = "_caret_curmh_3", Fe = {
|
|
334
|
+
"caret-up": "_caret-up_curmh_3",
|
|
335
|
+
"caret-down": "_caret-down_curmh_7",
|
|
336
336
|
caret: Pe
|
|
337
337
|
}, Oe = {
|
|
338
338
|
name: "list-header",
|
|
@@ -399,26 +399,26 @@ const Ae = {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
|
-
function Ee(e, l, s,
|
|
402
|
+
function Ee(e, l, s, _, i, t) {
|
|
403
403
|
const c = d("ll-icon");
|
|
404
404
|
return r(), o("div", {
|
|
405
|
-
class: a(["
|
|
405
|
+
class: a(["cursor-pointer", { "bg-blue-100": t.isSorted }]),
|
|
406
406
|
onClick: l[0] || (l[0] = (...g) => t.sort && t.sort(...g))
|
|
407
407
|
}, [
|
|
408
408
|
f(e.$slots, "default"),
|
|
409
409
|
u("div", {
|
|
410
|
-
class: a(["
|
|
410
|
+
class: a(["relative h-4 w-3 text-ice-700", { "is-active-sort": t.isSorted }])
|
|
411
411
|
}, [
|
|
412
412
|
t.showCaretUp ? (r(), h(c, {
|
|
413
413
|
key: 0,
|
|
414
414
|
name: "caret-up",
|
|
415
|
-
class: a(["
|
|
415
|
+
class: a(["absolute", [e.$style.caret, e.$style["caret-up"]]]),
|
|
416
416
|
size: "dense"
|
|
417
417
|
}, null, 8, ["class"])) : n("", !0),
|
|
418
418
|
t.showCaretDown ? (r(), h(c, {
|
|
419
419
|
key: 1,
|
|
420
420
|
name: "caret-down",
|
|
421
|
-
class: a(["
|
|
421
|
+
class: a(["absolute", [e.$style.caret, e.$style["caret-down"]]]),
|
|
422
422
|
size: "dense"
|
|
423
423
|
}, null, 8, ["class"])) : n("", !0)
|
|
424
424
|
], 2)
|
|
@@ -426,25 +426,25 @@ function Ee(e, l, s, p, i, t) {
|
|
|
426
426
|
}
|
|
427
427
|
const Le = {
|
|
428
428
|
$style: Fe
|
|
429
|
-
}, gt = /* @__PURE__ */
|
|
430
|
-
"list-items": "_list-
|
|
431
|
-
"legacy-box": "_legacy-
|
|
429
|
+
}, gt = /* @__PURE__ */ C(Oe, [["render", Ee], ["__cssModules", Le]]), Ve = "_header_1ivmk_28", De = "_separator_1ivmk_1", Re = "_dropdown_1ivmk_202", Ne = {
|
|
430
|
+
"list-items": "_list-items_1ivmk_5",
|
|
431
|
+
"legacy-box": "_legacy-box_1ivmk_19",
|
|
432
432
|
header: Ve,
|
|
433
|
-
"header-grid-container": "_header-grid-
|
|
434
|
-
"header-grid": "_header-
|
|
435
|
-
"search-input": "_search-
|
|
436
|
-
"clear-button": "_clear-
|
|
437
|
-
"search-button": "_search-
|
|
438
|
-
"total-sort": "_total-
|
|
439
|
-
"filter-toggle-btn": "_filter-toggle-
|
|
440
|
-
"filter-toggle-btn-with-hint-text": "_filter-toggle-btn-with-hint-
|
|
441
|
-
"filters-expand": "_filters-
|
|
442
|
-
"filters-wrapper": "_filters-
|
|
433
|
+
"header-grid-container": "_header-grid-container_1ivmk_78",
|
|
434
|
+
"header-grid": "_header-grid_1ivmk_78",
|
|
435
|
+
"search-input": "_search-input_1ivmk_112",
|
|
436
|
+
"clear-button": "_clear-button_1ivmk_123",
|
|
437
|
+
"search-button": "_search-button_1ivmk_137",
|
|
438
|
+
"total-sort": "_total-sort_1ivmk_154",
|
|
439
|
+
"filter-toggle-btn": "_filter-toggle-btn_1ivmk_161",
|
|
440
|
+
"filter-toggle-btn-with-hint-text": "_filter-toggle-btn-with-hint-text_1ivmk_165",
|
|
441
|
+
"filters-expand": "_filters-expand_1ivmk_180",
|
|
442
|
+
"filters-wrapper": "_filters-wrapper_1ivmk_181",
|
|
443
443
|
separator: De,
|
|
444
|
-
"filters-half-width": "_filters-half-
|
|
444
|
+
"filters-half-width": "_filters-half-width_1ivmk_194",
|
|
445
445
|
dropdown: Re,
|
|
446
|
-
"sort-option": "_sort-
|
|
447
|
-
"select-all": "_select-
|
|
446
|
+
"sort-option": "_sort-option_1ivmk_206",
|
|
447
|
+
"select-all": "_select-all_1ivmk_210"
|
|
448
448
|
}, P = {
|
|
449
449
|
isSearchable: !0,
|
|
450
450
|
placeholder: "Search",
|
|
@@ -452,12 +452,12 @@ const Le = {
|
|
|
452
452
|
}, ze = {
|
|
453
453
|
name: "ll-list-view",
|
|
454
454
|
components: {
|
|
455
|
-
BulkActions:
|
|
455
|
+
BulkActions: _e,
|
|
456
456
|
Filters: re,
|
|
457
457
|
Paginate: ne,
|
|
458
|
-
LoadingManager:
|
|
458
|
+
LoadingManager: Ce,
|
|
459
459
|
Badge: le,
|
|
460
|
-
Button:
|
|
460
|
+
Button: x,
|
|
461
461
|
Icon: B,
|
|
462
462
|
Dropdown: ie,
|
|
463
463
|
Expand: N,
|
|
@@ -555,7 +555,7 @@ const Le = {
|
|
|
555
555
|
// Provide an optional custom 'Sort by' label
|
|
556
556
|
sortLabel: {
|
|
557
557
|
type: String,
|
|
558
|
-
default: () =>
|
|
558
|
+
default: () => p("ll.listView.sortBy")
|
|
559
559
|
},
|
|
560
560
|
sortOnLoad: Boolean,
|
|
561
561
|
sorts: {
|
|
@@ -659,12 +659,12 @@ const Le = {
|
|
|
659
659
|
previousPage: null,
|
|
660
660
|
sortOptionsWidth: 0,
|
|
661
661
|
filters: {},
|
|
662
|
-
filterText:
|
|
662
|
+
filterText: p("ll.filter"),
|
|
663
663
|
searchFor: () => {
|
|
664
664
|
},
|
|
665
665
|
// initialized in the watch handler for internalItems
|
|
666
666
|
searchTerm: this.initialSearchTerm,
|
|
667
|
-
searchText:
|
|
667
|
+
searchText: p("ll.search"),
|
|
668
668
|
sortTerm: "",
|
|
669
669
|
isLoadingSearchSchemaAction: !1,
|
|
670
670
|
isShowingFilters: !!((e = this.filterSchema) != null && e.length && (this.showFiltersOnLoad || A.get("show-filters"))),
|
|
@@ -722,8 +722,8 @@ const Le = {
|
|
|
722
722
|
if (this.isServerSide)
|
|
723
723
|
e = this.results;
|
|
724
724
|
else {
|
|
725
|
-
const { endIndex: l, totalCount: s, results:
|
|
726
|
-
e =
|
|
725
|
+
const { endIndex: l, totalCount: s, results: _, startIndex: i } = this;
|
|
726
|
+
e = _.slice(i, Math.min(l, s));
|
|
727
727
|
}
|
|
728
728
|
return this.$emit("updateResults", e), e;
|
|
729
729
|
},
|
|
@@ -733,7 +733,7 @@ const Le = {
|
|
|
733
733
|
*/
|
|
734
734
|
total() {
|
|
735
735
|
const e = this.pageSize * (this.currentPage - 1), l = this.paginated.length ? `${e + 1} - ${e + this.paginated.length}` : 0;
|
|
736
|
-
return this.isLoading ?
|
|
736
|
+
return this.isLoading ? p("ll.listView.calculating") : p("ll.listView.totalResults", { num: String(l), total: String(this.totalCount) });
|
|
737
737
|
},
|
|
738
738
|
/**
|
|
739
739
|
* Determines if both #list-header and #list-items slots are used.
|
|
@@ -768,8 +768,8 @@ const Le = {
|
|
|
768
768
|
},
|
|
769
769
|
numberOfFilters() {
|
|
770
770
|
return Object.keys(this.filters).reduce((e, l) => {
|
|
771
|
-
const s = this.filters[l].filterBy,
|
|
772
|
-
return t || c ? e :
|
|
771
|
+
const s = this.filters[l].filterBy, _ = 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] === "";
|
|
772
|
+
return t || c ? e : _ || typeof s[0] == "string" ? e + (s[0] || !i ? 1 : 0) : e + (s.length || 0);
|
|
773
773
|
}, 0);
|
|
774
774
|
},
|
|
775
775
|
isSelectBarVisible() {
|
|
@@ -883,9 +883,9 @@ const Le = {
|
|
|
883
883
|
return this.sortTerm ? te(e, this.sorts[this.sortTerm]) : e;
|
|
884
884
|
},
|
|
885
885
|
change({ trigger: e = "" } = {}) {
|
|
886
|
-
const { currentPage: l, filters: s, isFiltered:
|
|
886
|
+
const { currentPage: l, filters: s, isFiltered: _, pageSize: i, searchTerm: t, sortTerm: c } = this, g = {
|
|
887
887
|
filters: s,
|
|
888
|
-
isFiltered:
|
|
888
|
+
isFiltered: _,
|
|
889
889
|
page: {
|
|
890
890
|
number: l,
|
|
891
891
|
previousNumber: this.previousPage,
|
|
@@ -1020,41 +1020,41 @@ const Le = {
|
|
|
1020
1020
|
return e.reduce((l, s) => this.isItemDisabled(s) ? l : [...l, s], []);
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1023
|
+
}, He = { class: "ll-grid grid-cols-4 md:grid-cols-8 lg:grid-cols-12" }, je = ["disabled"], Me = { class: "button-grid col-span-1 items-end justify-end md:col-span-6 lg:col-span-3" }, Ge = {
|
|
1024
1024
|
key: 0,
|
|
1025
|
-
class: "
|
|
1025
|
+
class: "text-xs"
|
|
1026
1026
|
};
|
|
1027
|
-
function Ue(e, l, s,
|
|
1028
|
-
const c = d("Icon"), g = d("Button"),
|
|
1027
|
+
function Ue(e, l, s, _, i, t) {
|
|
1028
|
+
const c = d("Icon"), g = d("Button"), v = d("Input"), I = d("Badge"), w = d("Filters"), z = d("Expand"), H = d("Dropdown"), j = d("Checkbox"), M = d("BulkActions"), G = d("Paginate"), U = O("sticky");
|
|
1029
1029
|
return r(), o("div", null, [
|
|
1030
1030
|
t.showPrimaryControls || t.showSecondaryControls ? (r(), o("div", {
|
|
1031
1031
|
key: 0,
|
|
1032
1032
|
ref: "scrollTarget",
|
|
1033
|
-
class: a(["
|
|
1033
|
+
class: a(["mb-6", { "ll-grid": t.showPrimaryControls && t.showSecondaryControls }])
|
|
1034
1034
|
}, [
|
|
1035
1035
|
t.showPrimaryControls ? (r(), o("div", {
|
|
1036
1036
|
key: 0,
|
|
1037
|
-
class: a(["controls", [e.$style["legacy-box"], { "
|
|
1037
|
+
class: a(["controls", [e.$style["legacy-box"], { "col-span-12 lg:col-span-6": t.showSecondaryControls }]]),
|
|
1038
1038
|
"data-test": "filters|controls"
|
|
1039
1039
|
}, [
|
|
1040
|
-
u("div",
|
|
1041
|
-
t.internalSearchSchema.isSearchable ? (r(), h(
|
|
1040
|
+
u("div", He, [
|
|
1041
|
+
t.internalSearchSchema.isSearchable ? (r(), h(v, {
|
|
1042
1042
|
key: 0,
|
|
1043
1043
|
ref: "search-input",
|
|
1044
1044
|
modelValue: i.searchTerm,
|
|
1045
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
1046
|
-
class: a(["
|
|
1045
|
+
"onUpdate:modelValue": l[1] || (l[1] = (y) => i.searchTerm = y),
|
|
1046
|
+
class: a(["col-span-3 md:col-span-6 lg:col-span-4", [
|
|
1047
1047
|
e.$style["search-input"],
|
|
1048
1048
|
{
|
|
1049
|
-
"lg:
|
|
1050
|
-
"
|
|
1049
|
+
"lg:col-span-8": t.showSecondaryControls,
|
|
1050
|
+
"col-span-4 md:col-span-8 lg:col-span-6": !s.filterSchema.length
|
|
1051
1051
|
}
|
|
1052
1052
|
]]),
|
|
1053
1053
|
"data-test": "input|search-input",
|
|
1054
1054
|
"hint-text": t.internalSearchSchema.hintText,
|
|
1055
1055
|
label: i.searchText,
|
|
1056
1056
|
placeholder: t.internalSearchSchema.placeholder,
|
|
1057
|
-
onKeyup: l[2] || (l[2] = q((
|
|
1057
|
+
onKeyup: l[2] || (l[2] = q((y) => !t.isLoading && t.onSearch(), ["enter"])),
|
|
1058
1058
|
onChange: t.onSearchTermChange
|
|
1059
1059
|
}, {
|
|
1060
1060
|
append: m(() => [
|
|
@@ -1063,10 +1063,10 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1063
1063
|
"data-test": "button|clear-search",
|
|
1064
1064
|
class: a(e.$style["clear-button"]),
|
|
1065
1065
|
disabled: t.isLoading,
|
|
1066
|
-
onClick: l[0] || (l[0] = (...
|
|
1066
|
+
onClick: l[0] || (l[0] = (...y) => t.clearSearchTerm && t.clearSearchTerm(...y))
|
|
1067
1067
|
}, [
|
|
1068
1068
|
S(c, { name: "close" })
|
|
1069
|
-
], 10,
|
|
1069
|
+
], 10, je)) : n("", !0),
|
|
1070
1070
|
S(g, {
|
|
1071
1071
|
"data-test": "button|search-button",
|
|
1072
1072
|
disabled: t.isLoading,
|
|
@@ -1075,7 +1075,7 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1075
1075
|
}, {
|
|
1076
1076
|
default: m(() => [
|
|
1077
1077
|
S(c, {
|
|
1078
|
-
class: a({ "
|
|
1078
|
+
class: a({ "animate-spin text-teal-500": i.isFiltering }),
|
|
1079
1079
|
name: i.isFiltering ? "working" : "search"
|
|
1080
1080
|
}, null, 8, ["class", "name"])
|
|
1081
1081
|
]),
|
|
@@ -1086,19 +1086,19 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1086
1086
|
}, 8, ["modelValue", "class", "hint-text", "label", "placeholder", "onChange"])) : n("", !0),
|
|
1087
1087
|
s.filterSchema.length ? (r(), o("div", {
|
|
1088
1088
|
key: 1,
|
|
1089
|
-
class: a(["
|
|
1089
|
+
class: a(["col-span-1 flex items-end md:col-span-2 lg:col-span-1", [
|
|
1090
1090
|
e.$style["filter-toggle-btn"],
|
|
1091
1091
|
{ [e.$style["filter-toggle-btn-with-hint-text"]]: !!t.internalSearchSchema.hintText }
|
|
1092
1092
|
]])
|
|
1093
1093
|
}, [
|
|
1094
|
-
S(
|
|
1095
|
-
class: "
|
|
1094
|
+
S(I, {
|
|
1095
|
+
class: "w-full lg:w-auto",
|
|
1096
1096
|
content: t.numberOfFilters
|
|
1097
1097
|
}, {
|
|
1098
1098
|
default: m(() => [
|
|
1099
1099
|
S(g, {
|
|
1100
1100
|
secondary: "",
|
|
1101
|
-
class: "
|
|
1101
|
+
class: "relative w-full min-w-auto",
|
|
1102
1102
|
color: "blue",
|
|
1103
1103
|
"data-test": "button|toggle-filters",
|
|
1104
1104
|
disabled: i.isFiltering,
|
|
@@ -1108,15 +1108,12 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1108
1108
|
i.isFiltering ? (r(), h(c, {
|
|
1109
1109
|
key: 0,
|
|
1110
1110
|
name: "working",
|
|
1111
|
-
class: a([
|
|
1112
|
-
{ "tw-animate-spin": i.isFiltering },
|
|
1113
|
-
i.isShowingFilters ? "tw-text-teal-500" : "tw-text-ice-700"
|
|
1114
|
-
])
|
|
1111
|
+
class: a([{ "animate-spin": i.isFiltering }, i.isShowingFilters ? "text-teal-500" : "text-ice-700"])
|
|
1115
1112
|
}, null, 8, ["class"])) : (r(), h(c, {
|
|
1116
1113
|
key: 1,
|
|
1117
1114
|
name: "filter-line"
|
|
1118
1115
|
})),
|
|
1119
|
-
T(" " +
|
|
1116
|
+
T(" " + k(i.filterText), 1)
|
|
1120
1117
|
]),
|
|
1121
1118
|
_: 1
|
|
1122
1119
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1135,9 +1132,9 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1135
1132
|
}, {
|
|
1136
1133
|
default: m(() => [
|
|
1137
1134
|
u("div", {
|
|
1138
|
-
class: a(["
|
|
1135
|
+
class: a(["relative pt-12", e.$style["filters-wrapper"]])
|
|
1139
1136
|
}, [
|
|
1140
|
-
S(
|
|
1137
|
+
S(w, {
|
|
1141
1138
|
ref: "llFilters",
|
|
1142
1139
|
class: a({ [e.$style["filters-half-width"]]: t.showPrimaryControls && t.showSecondaryControls }),
|
|
1143
1140
|
"disable-apply": t.isLoading,
|
|
@@ -1145,7 +1142,7 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1145
1142
|
"disable-persistency": s.disablePersistency,
|
|
1146
1143
|
schema: s.filterSchema,
|
|
1147
1144
|
"validation-schema": s.validationSchema,
|
|
1148
|
-
onChange: l[3] || (l[3] = (
|
|
1145
|
+
onChange: l[3] || (l[3] = (y) => i.filters = y),
|
|
1149
1146
|
onReset: t.reset,
|
|
1150
1147
|
onSubmit: t.onFilter
|
|
1151
1148
|
}, null, 8, ["class", "disable-apply", "disable-clear", "disable-persistency", "schema", "validation-schema", "onReset", "onSubmit"])
|
|
@@ -1156,7 +1153,7 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1156
1153
|
], 2)) : n("", !0),
|
|
1157
1154
|
t.showSecondaryControls ? (r(), o("div", {
|
|
1158
1155
|
key: 1,
|
|
1159
|
-
class: a(["secondary-controls", [e.$style["legacy-box"], { "
|
|
1156
|
+
class: a(["secondary-controls", [e.$style["legacy-box"], { "col-span-12 mt-0 lg:col-span-6": t.showPrimaryControls }]])
|
|
1160
1157
|
}, [
|
|
1161
1158
|
f(e.$slots, "secondary-controls")
|
|
1162
1159
|
], 2)) : n("", !0)
|
|
@@ -1164,10 +1161,10 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1164
1161
|
f(e.$slots, "eyebrow"),
|
|
1165
1162
|
t.shouldShowTotal || Object.keys(s.sorts).length ? (r(), o("div", {
|
|
1166
1163
|
key: 1,
|
|
1167
|
-
class: a(["
|
|
1164
|
+
class: a(["mb-1.5", t.shouldShowTotal ? e.$style["total-sort"] : "text-right"])
|
|
1168
1165
|
}, [
|
|
1169
|
-
t.shouldShowTotal ? (r(), o("div", Ge,
|
|
1170
|
-
Object.keys(s.sorts).length ? (r(), h(
|
|
1166
|
+
t.shouldShowTotal ? (r(), o("div", Ge, k(t.total), 1)) : n("", !0),
|
|
1167
|
+
Object.keys(s.sorts).length ? (r(), h(H, {
|
|
1171
1168
|
key: 1,
|
|
1172
1169
|
class: a(e.$style.dropdown),
|
|
1173
1170
|
label: `${s.sortLabel} ${i.sortTerm}`,
|
|
@@ -1179,21 +1176,21 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1179
1176
|
class: "dropdown__list",
|
|
1180
1177
|
style: Y({ minWidth: i.sortOptionsWidth })
|
|
1181
1178
|
}, [
|
|
1182
|
-
(r(!0), o(J, null, Q(Object.keys(s.sorts), (
|
|
1179
|
+
(r(!0), o(J, null, Q(Object.keys(s.sorts), (y, K) => (r(), o("li", {
|
|
1183
1180
|
key: K,
|
|
1184
|
-
class: a([{ "
|
|
1181
|
+
class: a([{ "bg-blue-100 text-ice-700": y === i.sortTerm }, "dropdown__item rounded"])
|
|
1185
1182
|
}, [
|
|
1186
1183
|
S(g, {
|
|
1187
1184
|
inline: "",
|
|
1188
|
-
class: a(["
|
|
1189
|
-
onClick: (We) => t.onSort(
|
|
1185
|
+
class: a(["items-center", e.$style["sort-option"]]),
|
|
1186
|
+
onClick: (We) => t.onSort(y)
|
|
1190
1187
|
}, {
|
|
1191
1188
|
default: m(() => [
|
|
1192
|
-
T(
|
|
1193
|
-
|
|
1189
|
+
T(k(y) + " ", 1),
|
|
1190
|
+
y === i.sortTerm ? (r(), h(c, {
|
|
1194
1191
|
key: 0,
|
|
1195
1192
|
name: "check",
|
|
1196
|
-
class: "
|
|
1193
|
+
class: "ml-auto text-blue-500"
|
|
1197
1194
|
})) : n("", !0)
|
|
1198
1195
|
]),
|
|
1199
1196
|
_: 2
|
|
@@ -1213,22 +1210,22 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1213
1210
|
class: a([[
|
|
1214
1211
|
e.$style.header,
|
|
1215
1212
|
{
|
|
1216
|
-
"
|
|
1213
|
+
"m-0": !s.isSelectable
|
|
1217
1214
|
}
|
|
1218
|
-
], "
|
|
1215
|
+
], "rounded"])
|
|
1219
1216
|
}, [
|
|
1220
1217
|
u("div", {
|
|
1221
|
-
class: a([e.$style["header-grid-container"], "
|
|
1218
|
+
class: a([e.$style["header-grid-container"], "border-b border-ice-200 px-3"])
|
|
1222
1219
|
}, [
|
|
1223
|
-
s.isSelectable ? (r(), h(
|
|
1220
|
+
s.isSelectable ? (r(), h(j, {
|
|
1224
1221
|
key: 0,
|
|
1225
|
-
class: a(["
|
|
1222
|
+
class: a(["ml-3", e.$style["select-all"]]),
|
|
1226
1223
|
checked: t.isSomePageChecked,
|
|
1227
1224
|
indeterminate: t.isSomePageChecked && !t.isAllPageChecked,
|
|
1228
1225
|
"onUpdate:checked": t.onSelectPage
|
|
1229
1226
|
}, null, 8, ["checked", "class", "indeterminate", "onUpdate:checked"])) : n("", !0),
|
|
1230
1227
|
u("div", {
|
|
1231
|
-
class: a(["
|
|
1228
|
+
class: a(["ll-grid flex-1", e.$style["header-grid"]])
|
|
1232
1229
|
}, [
|
|
1233
1230
|
f(e.$slots, "list-header")
|
|
1234
1231
|
], 2)
|
|
@@ -1242,7 +1239,7 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1242
1239
|
hideBulkActionOptions: s.hideBulkActionOptions,
|
|
1243
1240
|
hideNumberOfTotalSelected: s.hideNumberOfTotalSelected
|
|
1244
1241
|
}, {
|
|
1245
|
-
class: !t.isSelectBarVisible && "lg:
|
|
1242
|
+
class: !t.isSelectBarVisible && "lg:hidden",
|
|
1246
1243
|
"onChange:clearSelected": t.clearSelected,
|
|
1247
1244
|
"onChange:selectCurrent": t.onSelectPage,
|
|
1248
1245
|
"onChange:selectAll": t.selectAll
|
|
@@ -1295,12 +1292,12 @@ function Ue(e, l, s, p, i, t) {
|
|
|
1295
1292
|
}
|
|
1296
1293
|
const Ke = {
|
|
1297
1294
|
$style: Ne
|
|
1298
|
-
}, ft = /* @__PURE__ */
|
|
1295
|
+
}, ft = /* @__PURE__ */ C(ze, [["render", Ue], ["__cssModules", Ke]]);
|
|
1299
1296
|
export {
|
|
1300
|
-
|
|
1297
|
+
_e as BulkActions,
|
|
1301
1298
|
mt as ListGroup,
|
|
1302
1299
|
gt as ListHeader,
|
|
1303
|
-
|
|
1300
|
+
Ce as LoadingManager,
|
|
1304
1301
|
ft as default
|
|
1305
1302
|
};
|
|
1306
1303
|
//# sourceMappingURL=ListView.js.map
|