readytech-ui-library-v2 1.0.138 → 1.0.140
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.
@@ -21774,7 +21774,6 @@ const Mie = J({
|
|
21774
21774
|
toolbarActions: { type: Array, default: () => [] },
|
21775
21775
|
enableSelect: { type: Boolean, default: !0 },
|
21776
21776
|
itemValue: { type: String, default: "email" }
|
21777
|
-
// <-- key to uniquely identify rows
|
21778
21777
|
},
|
21779
21778
|
data() {
|
21780
21779
|
return {
|
@@ -21798,7 +21797,14 @@ const Mie = J({
|
|
21798
21797
|
},
|
21799
21798
|
methods: {
|
21800
21799
|
handleToolbarClick(e) {
|
21801
|
-
typeof e.onClick == "function"
|
21800
|
+
if (typeof e.onClick == "function") {
|
21801
|
+
const t = this.selected.length ? this.selected : this.filteredItems;
|
21802
|
+
e.onClick(t);
|
21803
|
+
} else
|
21804
|
+
console.warn("No handler function defined for toolbar action:", e);
|
21805
|
+
},
|
21806
|
+
getItemKey(e, t) {
|
21807
|
+
return e[this.itemValue] ?? t;
|
21802
21808
|
}
|
21803
21809
|
},
|
21804
21810
|
watch: {
|
@@ -21861,7 +21867,7 @@ function Uie(e, t, n, r, a, i) {
|
|
21861
21867
|
w(tz, { dense: "" }, {
|
21862
21868
|
default: ae(() => [
|
21863
21869
|
(Y(!0), Ke(me, null, Nt(i.filteredItems, (o, l) => (Y(), ce(qj, {
|
21864
|
-
key: l,
|
21870
|
+
key: i.getItemKey(o, l),
|
21865
21871
|
cols: "12"
|
21866
21872
|
}, {
|
21867
21873
|
default: ae(() => [
|
@@ -21871,10 +21877,10 @@ function Uie(e, t, n, r, a, i) {
|
|
21871
21877
|
}, {
|
21872
21878
|
default: ae(() => [
|
21873
21879
|
(Y(!0), Ke(me, null, Nt(n.headers, (u) => (Y(), Ke("div", {
|
21874
|
-
key: u.key
|
21880
|
+
key: u.key || u.value
|
21875
21881
|
}, [
|
21876
21882
|
kn("strong", null, Re(u.title) + ":", 1),
|
21877
|
-
kn("div", null, Re(o[u.key]), 1)
|
21883
|
+
kn("div", null, Re(o[u.key || u.value]), 1)
|
21878
21884
|
]))), 128))
|
21879
21885
|
]),
|
21880
21886
|
_: 2
|
@@ -21896,15 +21902,16 @@ function Uie(e, t, n, r, a, i) {
|
|
21896
21902
|
"items-per-page-options": n.itemsPerPageOptions,
|
21897
21903
|
loading: n.loading,
|
21898
21904
|
"hide-default-footer": !n.paginationEnabled,
|
21899
|
-
class: "elevation-1",
|
21900
21905
|
"show-select": n.enableSelect,
|
21901
|
-
|
21902
|
-
"onUpdate:
|
21906
|
+
modelValue: a.selected,
|
21907
|
+
"onUpdate:modelValue": t[1] || (t[1] = (o) => a.selected = o),
|
21903
21908
|
"item-value": n.itemValue,
|
21904
21909
|
"sort-by": n.sortBy,
|
21905
21910
|
"sort-desc": n.sortDesc,
|
21906
21911
|
"multi-sort": n.multiSort,
|
21907
|
-
density: n.density
|
21912
|
+
density: n.density,
|
21913
|
+
class: "elevation-1",
|
21914
|
+
"onUpdate:selected": t[2] || (t[2] = (o) => a.selected = o)
|
21908
21915
|
}), nX({ _: 2 }, [
|
21909
21916
|
Nt(e.$slots, (o, l) => ({
|
21910
21917
|
name: l,
|
@@ -21912,13 +21919,13 @@ function Uie(e, t, n, r, a, i) {
|
|
21912
21919
|
bn(e.$slots, l, h3(g3(u)), void 0, !0)
|
21913
21920
|
])
|
21914
21921
|
}))
|
21915
|
-
]), 1040, ["headers", "items", "search", "items-per-page", "items-per-page-options", "loading", "hide-default-footer", "show-select", "
|
21922
|
+
]), 1040, ["headers", "items", "search", "items-per-page", "items-per-page-options", "loading", "hide-default-footer", "show-select", "modelValue", "item-value", "sort-by", "sort-desc", "multi-sort", "density"])
|
21916
21923
|
]))
|
21917
21924
|
]),
|
21918
21925
|
_: 3
|
21919
21926
|
});
|
21920
21927
|
}
|
21921
|
-
const Wie = /* @__PURE__ */ je($ie, [["render", Uie], ["__scopeId", "data-v-
|
21928
|
+
const Wie = /* @__PURE__ */ je($ie, [["render", Uie], ["__scopeId", "data-v-2abca9d4"]]), i_ = Symbol.for("vuetify:v-tabs"), Gie = J({
|
21922
21929
|
fixed: Boolean,
|
21923
21930
|
sliderColor: String,
|
21924
21931
|
hideSlider: Boolean,
|