bms-shared-components 1.1.103 → 1.1.104
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.
|
@@ -117254,12 +117254,14 @@ const _hoisted_1$D = { class: "picker-row" }, _hoisted_2$v = ["disabled"], _hois
|
|
|
117254
117254
|
}), zn = computed(() => {
|
|
117255
117255
|
let _o = M.columns.filter((Go) => !er.value[Go.Index]);
|
|
117256
117256
|
return Ut.value.length > 0 && (_o = Ut.value.map((Go) => _o.find((du, Ml) => Ml === Go.originalIndex))), _o;
|
|
117257
|
-
}), nr = computed(() => M.contextActions.filter((_o) => typeof _o.IsVisible == "function" ? _o.IsVisible(pn.value) : !0))
|
|
117257
|
+
}), nr = computed(() => M.contextActions.filter((_o) => typeof _o.IsVisible == "function" ? _o.IsVisible(pn.value) : !0));
|
|
117258
|
+
ref([]);
|
|
117259
|
+
const hr = computed(() => {
|
|
117258
117260
|
if (M.customPagination)
|
|
117259
117261
|
return M.data;
|
|
117260
117262
|
const _o = (bn.value - 1) * parseInt(Xt.value);
|
|
117261
117263
|
return An.value.slice(_o, _o + parseInt(Xt.value));
|
|
117262
|
-
}), Vn = computed(() => M.customPagination ? Math.ceil(M.recordTotal / parseInt(Xt.value)) : Math.ceil(An.value.length / parseInt(Xt.value))), tr = computed(() => Vn.value > 5 ? bn.value <= 3 ? [1, 2, 3, 4, 5, "...", Vn.value] : bn.value >= Vn.value - 2 ? [1, "...", Vn.value - 4, Vn.value - 3, Vn.value - 2, Vn.value - 1, Vn.value] : [
|
|
117264
|
+
}), Vn = computed(() => M.loading ? 0 : M.customPagination ? Math.ceil(M.recordTotal / parseInt(Xt.value)) : Math.ceil(An.value.length / parseInt(Xt.value))), tr = computed(() => Vn.value > 5 ? bn.value <= 3 ? [1, 2, 3, 4, 5, "...", Vn.value] : bn.value >= Vn.value - 2 ? [1, "...", Vn.value - 4, Vn.value - 3, Vn.value - 2, Vn.value - 1, Vn.value] : [
|
|
117263
117265
|
1,
|
|
117264
117266
|
"...",
|
|
117265
117267
|
bn.value - 2,
|
|
@@ -117269,7 +117271,7 @@ const _hoisted_1$D = { class: "picker-row" }, _hoisted_2$v = ["disabled"], _hois
|
|
|
117269
117271
|
bn.value + 2,
|
|
117270
117272
|
"...",
|
|
117271
117273
|
Vn.value
|
|
117272
|
-
] : Array.from({ length: Vn.value }, (_o, Go) => Go + 1)), on = computed(() => M.customPagination ? M.recordTotal : An.value.length);
|
|
117274
|
+
] : Array.from({ length: Vn.value }, (_o, Go) => Go + 1)), on = computed(() => M.loading ? 0 : M.customPagination ? M.recordTotal : An.value.length);
|
|
117273
117275
|
watch(
|
|
117274
117276
|
() => M.data,
|
|
117275
117277
|
() => {
|
|
@@ -117363,6 +117365,10 @@ const _hoisted_1$D = { class: "picker-row" }, _hoisted_2$v = ["disabled"], _hois
|
|
|
117363
117365
|
Go.includes(_o) ? Go = Go.filter((du) => du !== _o) : Go.push(_o), Nt.value[Mn.value] = Go, Go.length === 0 && delete Nt.value[Mn.value];
|
|
117364
117366
|
}
|
|
117365
117367
|
function Pr() {
|
|
117368
|
+
if (M.loading) {
|
|
117369
|
+
Rt.value = {};
|
|
117370
|
+
return;
|
|
117371
|
+
}
|
|
117366
117372
|
Rt.value = {}, zn.value.forEach((_o, Go) => {
|
|
117367
117373
|
Rt.value[Go] = [], M.data.forEach((du) => {
|
|
117368
117374
|
let Ml = Rt.value[Go] || [];
|
|
@@ -117658,7 +117664,7 @@ const _hoisted_1$D = { class: "picker-row" }, _hoisted_2$v = ["disabled"], _hois
|
|
|
117658
117664
|
])
|
|
117659
117665
|
], 2),
|
|
117660
117666
|
createElementVNode("tbody", null, [
|
|
117661
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(hr.value, (Ml, Ed) => (openBlock(), createElementBlock("tr", {
|
|
117667
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(M.loading ? [] : hr.value, (Ml, Ed) => (openBlock(), createElementBlock("tr", {
|
|
117662
117668
|
class: normalizeClass({
|
|
117663
117669
|
"even:bg-slate-50": M.striped
|
|
117664
117670
|
}),
|
|
@@ -117866,7 +117872,7 @@ const _hoisted_1$D = { class: "picker-row" }, _hoisted_2$v = ["disabled"], _hois
|
|
|
117866
117872
|
], 12, _hoisted_1$C);
|
|
117867
117873
|
};
|
|
117868
117874
|
}
|
|
117869
|
-
}, ReSimpleTable = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-
|
|
117875
|
+
}, ReSimpleTable = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-5c57cb6f"]]), _sfc_main$O = {
|
|
117870
117876
|
__name: "TheDateInput",
|
|
117871
117877
|
props: {
|
|
117872
117878
|
modelValue: {
|