@masterkeymaterial/ui 0.2.27 → 0.2.29
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.
|
@@ -6922,7 +6922,7 @@ class MkGrid {
|
|
|
6922
6922
|
};
|
|
6923
6923
|
}, ...(ngDevMode ? [{ debugName: "cfg" }] : /* istanbul ignore next */ []));
|
|
6924
6924
|
startSelected = computed(() => {
|
|
6925
|
-
const startSelected = this.
|
|
6925
|
+
const startSelected = this.config().startSelected;
|
|
6926
6926
|
if (startSelected) {
|
|
6927
6927
|
return startSelected.map(s => s?.toString() ?? '');
|
|
6928
6928
|
}
|
|
@@ -6935,7 +6935,7 @@ class MkGrid {
|
|
|
6935
6935
|
}, ...(ngDevMode ? [{ debugName: "performance" }] : /* istanbul ignore next */ []));
|
|
6936
6936
|
constructor() {
|
|
6937
6937
|
effect(() => {
|
|
6938
|
-
this.iniciarSelectedRows(this.lista());
|
|
6938
|
+
this.iniciarSelectedRows(this.lista(), this.startSelected());
|
|
6939
6939
|
});
|
|
6940
6940
|
effect(() => {
|
|
6941
6941
|
const totalItens = this.listaOrdenada().length;
|
|
@@ -7009,8 +7009,7 @@ class MkGrid {
|
|
|
7009
7009
|
this.observerResize();
|
|
7010
7010
|
}, 0);
|
|
7011
7011
|
}
|
|
7012
|
-
iniciarSelectedRows(lista) {
|
|
7013
|
-
let listaSelecionados = this.startSelected();
|
|
7012
|
+
iniciarSelectedRows(lista, listaSelecionados) {
|
|
7014
7013
|
if (!listaSelecionados || !lista) {
|
|
7015
7014
|
this.clearSelections();
|
|
7016
7015
|
return;
|