readytech-ui-library-v2 1.0.115 → 1.0.117
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.
@@ -21816,71 +21816,29 @@ const Mie = J({
|
|
21816
21816
|
}), $ie = {
|
21817
21817
|
name: "RtTable",
|
21818
21818
|
props: {
|
21819
|
-
title: {
|
21820
|
-
|
21821
|
-
|
21822
|
-
},
|
21823
|
-
|
21824
|
-
|
21825
|
-
|
21826
|
-
},
|
21827
|
-
|
21828
|
-
|
21829
|
-
|
21830
|
-
},
|
21831
|
-
|
21832
|
-
|
21833
|
-
|
21834
|
-
},
|
21835
|
-
|
21836
|
-
|
21837
|
-
default: !0
|
21838
|
-
},
|
21839
|
-
itemsPerPage: {
|
21840
|
-
type: Number,
|
21841
|
-
default: 10
|
21842
|
-
},
|
21843
|
-
itemsPerPageOptions: {
|
21844
|
-
type: Array,
|
21845
|
-
default: () => [5, 10, 25, 50, 100]
|
21846
|
-
},
|
21847
|
-
searchLabel: {
|
21848
|
-
type: String,
|
21849
|
-
default: "Search across all fields"
|
21850
|
-
},
|
21851
|
-
sortBy: {
|
21852
|
-
type: [String, Array],
|
21853
|
-
default: () => []
|
21854
|
-
},
|
21855
|
-
sortDesc: {
|
21856
|
-
type: [Boolean, Array],
|
21857
|
-
default: () => []
|
21858
|
-
},
|
21859
|
-
multiSort: {
|
21860
|
-
type: Boolean,
|
21861
|
-
default: !1
|
21862
|
-
},
|
21863
|
-
density: {
|
21864
|
-
type: String,
|
21865
|
-
default: "default"
|
21866
|
-
// options: "default", "comfortable", "compact"
|
21867
|
-
},
|
21868
|
-
tableProps: {
|
21869
|
-
type: Object,
|
21870
|
-
default: () => ({})
|
21871
|
-
},
|
21872
|
-
paginationEnabled: {
|
21873
|
-
type: Boolean,
|
21874
|
-
default: !0
|
21875
|
-
},
|
21876
|
-
toolbarActions: {
|
21877
|
-
type: Array,
|
21878
|
-
default: () => []
|
21879
|
-
}
|
21819
|
+
title: { type: String, default: "Data Table" },
|
21820
|
+
headers: { type: Array, required: !0 },
|
21821
|
+
items: { type: Array, required: !0 },
|
21822
|
+
loading: { type: Boolean, default: !1 },
|
21823
|
+
enableSearch: { type: Boolean, default: !0 },
|
21824
|
+
itemsPerPage: { type: Number, default: 10 },
|
21825
|
+
itemsPerPageOptions: { type: Array, default: () => [5, 10, 25, 50, 100] },
|
21826
|
+
searchLabel: { type: String, default: "Search across all fields" },
|
21827
|
+
sortBy: { type: [String, Array], default: () => [] },
|
21828
|
+
sortDesc: { type: [Boolean, Array], default: () => [] },
|
21829
|
+
multiSort: { type: Boolean, default: !1 },
|
21830
|
+
density: { type: String, default: "default" },
|
21831
|
+
tableProps: { type: Object, default: () => ({}) },
|
21832
|
+
paginationEnabled: { type: Boolean, default: !0 },
|
21833
|
+
toolbarActions: { type: Array, default: () => [] },
|
21834
|
+
enableSelect: { type: Boolean, default: !0 },
|
21835
|
+
itemValue: { type: String, default: "email" }
|
21836
|
+
// <-- key to uniquely identify rows
|
21880
21837
|
},
|
21881
21838
|
data() {
|
21882
21839
|
return {
|
21883
|
-
search: ""
|
21840
|
+
search: "",
|
21841
|
+
selected: []
|
21884
21842
|
};
|
21885
21843
|
},
|
21886
21844
|
computed: {
|
@@ -21899,7 +21857,12 @@ const Mie = J({
|
|
21899
21857
|
},
|
21900
21858
|
methods: {
|
21901
21859
|
handleToolbarClick(e) {
|
21902
|
-
typeof e.onClick == "function" ? e.onClick(this.filteredItems) : console.warn("No handler function defined for
|
21860
|
+
typeof e.onClick == "function" ? e.onClick(this.selected.length ? this.selected : this.filteredItems) : console.warn("No handler function defined for toolbar action:", e);
|
21861
|
+
}
|
21862
|
+
},
|
21863
|
+
watch: {
|
21864
|
+
selected(e) {
|
21865
|
+
this.$emit("update:selected", e);
|
21903
21866
|
}
|
21904
21867
|
}
|
21905
21868
|
}, Hie = {
|
@@ -21909,10 +21872,7 @@ const Mie = J({
|
|
21909
21872
|
function Uie(e, t, n, r, a, i) {
|
21910
21873
|
return Y(), ce(no, null, {
|
21911
21874
|
default: re(() => [
|
21912
|
-
w(I0, {
|
21913
|
-
flat: "",
|
21914
|
-
class: ""
|
21915
|
-
}, {
|
21875
|
+
w(I0, { flat: "" }, {
|
21916
21876
|
default: re(() => [
|
21917
21877
|
w(_m, { class: "text-h6" }, {
|
21918
21878
|
default: re(() => [
|
@@ -21967,7 +21927,7 @@ function Uie(e, t, n, r, a, i) {
|
|
21967
21927
|
}, {
|
21968
21928
|
default: re(() => [
|
21969
21929
|
(Y(!0), Ke(me, null, Nt(n.headers, (u) => (Y(), Ke("div", {
|
21970
|
-
key: u.
|
21930
|
+
key: u.key
|
21971
21931
|
}, [
|
21972
21932
|
kn("strong", null, Ie(u.title) + ":", 1),
|
21973
21933
|
kn("div", null, Ie(o[u.key]), 1)
|
@@ -21993,7 +21953,10 @@ function Uie(e, t, n, r, a, i) {
|
|
21993
21953
|
loading: n.loading,
|
21994
21954
|
"hide-default-footer": !n.paginationEnabled,
|
21995
21955
|
class: "elevation-1",
|
21996
|
-
"show-select":
|
21956
|
+
"show-select": n.enableSelect,
|
21957
|
+
selected: a.selected,
|
21958
|
+
"onUpdate:selected": t[1] || (t[1] = (o) => a.selected = o),
|
21959
|
+
"item-value": n.itemValue,
|
21997
21960
|
"sort-by": n.sortBy,
|
21998
21961
|
"sort-desc": n.sortDesc,
|
21999
21962
|
"multi-sort": n.multiSort,
|
@@ -22005,13 +21968,13 @@ function Uie(e, t, n, r, a, i) {
|
|
22005
21968
|
bn(e.$slots, l, g_(m_(u)), void 0, !0)
|
22006
21969
|
])
|
22007
21970
|
}))
|
22008
|
-
]), 1040, ["headers", "items", "search", "items-per-page", "items-per-page-options", "loading", "hide-default-footer", "sort-by", "sort-desc", "multi-sort", "density"])
|
21971
|
+
]), 1040, ["headers", "items", "search", "items-per-page", "items-per-page-options", "loading", "hide-default-footer", "show-select", "selected", "item-value", "sort-by", "sort-desc", "multi-sort", "density"])
|
22009
21972
|
]))
|
22010
21973
|
]),
|
22011
21974
|
_: 3
|
22012
21975
|
});
|
22013
21976
|
}
|
22014
|
-
const Wie = /* @__PURE__ */ je($ie, [["render", Uie], ["__scopeId", "data-v-
|
21977
|
+
const Wie = /* @__PURE__ */ je($ie, [["render", Uie], ["__scopeId", "data-v-121ede9f"]]), o3 = Symbol.for("vuetify:v-tabs"), Gie = J({
|
22015
21978
|
fixed: Boolean,
|
22016
21979
|
sliderColor: String,
|
22017
21980
|
hideSlider: Boolean,
|