@sysvale/cuida 3.128.3 → 3.129.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/dist/@sysvale/cuida.es.js +19 -7
- package/dist/@sysvale/cuida.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -29243,6 +29243,10 @@ const i2 = /* @__PURE__ */ pe(LW, [["render", EW], ["__scopeId", "data-v-e742ddf
|
|
|
29243
29243
|
type: Array,
|
|
29244
29244
|
default: () => []
|
|
29245
29245
|
},
|
|
29246
|
+
trackBy: {
|
|
29247
|
+
type: String,
|
|
29248
|
+
required: !0
|
|
29249
|
+
},
|
|
29246
29250
|
loadingCustomFields: {
|
|
29247
29251
|
type: Boolean,
|
|
29248
29252
|
default: !1
|
|
@@ -29300,7 +29304,7 @@ const i2 = /* @__PURE__ */ pe(LW, [["render", EW], ["__scopeId", "data-v-e742ddf
|
|
|
29300
29304
|
if (!O || O.id === "custom") return;
|
|
29301
29305
|
const D = (L = (C = i.presetsOptions) == null ? void 0 : C.find(({ label: P }) => P === O.value)) == null ? void 0 : L.columns;
|
|
29302
29306
|
D && r.value.forEach((P) => {
|
|
29303
|
-
P.visible = D.includes(P.
|
|
29307
|
+
P.visible = D.includes(P[i.trackBy]);
|
|
29304
29308
|
});
|
|
29305
29309
|
}), Ie(() => r.value, () => {
|
|
29306
29310
|
S();
|
|
@@ -29320,13 +29324,13 @@ const i2 = /* @__PURE__ */ pe(LW, [["render", EW], ["__scopeId", "data-v-e742ddf
|
|
|
29320
29324
|
}
|
|
29321
29325
|
function x() {
|
|
29322
29326
|
a.value.forEach((O) => {
|
|
29323
|
-
const D = r.value.find((C) => C.
|
|
29327
|
+
const D = r.value.find((C) => C[i.trackBy] === O[i.trackBy]);
|
|
29324
29328
|
D && (O.visible = D.visible);
|
|
29325
29329
|
});
|
|
29326
29330
|
}
|
|
29327
29331
|
function S() {
|
|
29328
29332
|
x();
|
|
29329
|
-
const O = a.value.filter(({ visible: C }) => C === !0).map((C) => C.
|
|
29333
|
+
const O = a.value.filter(({ visible: C }) => C === !0).map((C) => C[i.trackBy]), D = i.presetsOptions.find(({ columns: C }) => Ht.isEqual(C, O));
|
|
29330
29334
|
if (!D) {
|
|
29331
29335
|
o.value = { id: "custom", value: "Personalizado" };
|
|
29332
29336
|
return;
|
|
@@ -29448,7 +29452,7 @@ const i2 = /* @__PURE__ */ pe(LW, [["render", EW], ["__scopeId", "data-v-e742ddf
|
|
|
29448
29452
|
]);
|
|
29449
29453
|
};
|
|
29450
29454
|
}
|
|
29451
|
-
}, CY = /* @__PURE__ */ pe(SY, [["__scopeId", "data-v-
|
|
29455
|
+
}, CY = /* @__PURE__ */ pe(SY, [["__scopeId", "data-v-bde801e5"]]), MY = [
|
|
29452
29456
|
"teal",
|
|
29453
29457
|
"green",
|
|
29454
29458
|
"blue",
|
|
@@ -29598,6 +29602,13 @@ const r7 = /* @__PURE__ */ pe(OY, [["render", IY], ["__scopeId", "data-v-7f26ca9
|
|
|
29598
29602
|
default: () => []
|
|
29599
29603
|
},
|
|
29600
29604
|
/**
|
|
29605
|
+
* Define o campo que será usado como chave na lista de customFieldsList.
|
|
29606
|
+
*/
|
|
29607
|
+
customFieldsTrackBy: {
|
|
29608
|
+
type: String,
|
|
29609
|
+
default: "id"
|
|
29610
|
+
},
|
|
29611
|
+
/**
|
|
29601
29612
|
* Ativa o feedback de loading no sidesheet de personalizar tabela.
|
|
29602
29613
|
*/
|
|
29603
29614
|
loadingCustomFields: {
|
|
@@ -29667,7 +29678,7 @@ const r7 = /* @__PURE__ */ pe(OY, [["render", IY], ["__scopeId", "data-v-7f26ca9
|
|
|
29667
29678
|
emits: ["update-fields-list", "customize-click", "search"],
|
|
29668
29679
|
setup(e, { emit: t }) {
|
|
29669
29680
|
st((he) => ({
|
|
29670
|
-
|
|
29681
|
+
"9ff6a902": fe.value
|
|
29671
29682
|
}));
|
|
29672
29683
|
const n = Ur("header-item"), i = Ur("empty"), s = H1(), a = e, r = t, o = ne(!1), u = ne(0), d = ne(Array(s.fields.length).fill(0)), h = ne(0), p = ne(!1), g = ne(""), m = ne(null), b = ne(Ht.cloneDeep(a.customFieldsList)), w = ne("Personalizado"), x = Hs(), S = Hs(), O = Hs();
|
|
29673
29684
|
let D = !1, C = 0, L = !1, P, W;
|
|
@@ -29845,6 +29856,7 @@ const r7 = /* @__PURE__ */ pe(OY, [["render", IY], ["__scopeId", "data-v-7f26ca9
|
|
|
29845
29856
|
"selection-variant": e.selectionVariant,
|
|
29846
29857
|
"presets-options": e.presetsOptions,
|
|
29847
29858
|
"loading-custom-fields": e.loadingCustomFields,
|
|
29859
|
+
"track-by": e.customFieldsTrackBy,
|
|
29848
29860
|
"min-fields": e.minVisibleFields,
|
|
29849
29861
|
"max-fields": q.value,
|
|
29850
29862
|
onUpdateFieldsList: ye[2] || (ye[2] = (Fe) => r("update-fields-list", Fe)),
|
|
@@ -29852,10 +29864,10 @@ const r7 = /* @__PURE__ */ pe(OY, [["render", IY], ["__scopeId", "data-v-7f26ca9
|
|
|
29852
29864
|
onCancel: $e,
|
|
29853
29865
|
onOk: De,
|
|
29854
29866
|
onUpdatePreset: Te
|
|
29855
|
-
}, null, 8, ["modelValue", "custom-fields-list", "custom-fields-searchable", "selection-variant", "presets-options", "loading-custom-fields", "min-fields", "max-fields"])
|
|
29867
|
+
}, null, 8, ["modelValue", "custom-fields-list", "custom-fields-searchable", "selection-variant", "presets-options", "loading-custom-fields", "track-by", "min-fields", "max-fields"])
|
|
29856
29868
|
]));
|
|
29857
29869
|
}
|
|
29858
|
-
}, UY = /* @__PURE__ */ pe(jY, [["__scopeId", "data-v-
|
|
29870
|
+
}, UY = /* @__PURE__ */ pe(jY, [["__scopeId", "data-v-c1979fed"]]), qY = {
|
|
29859
29871
|
__name: "Grid",
|
|
29860
29872
|
props: {
|
|
29861
29873
|
cols: {
|