@masterkeymaterial/ui 0.2.26 → 0.2.28

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.
@@ -6921,6 +6921,13 @@ class MkGrid {
6921
6921
  actionsLineConfig: { ...GRID_CONFIG_DEFAULTS.actionsLineConfig, ...c.actionsLineConfig },
6922
6922
  };
6923
6923
  }, ...(ngDevMode ? [{ debugName: "cfg" }] : /* istanbul ignore next */ []));
6924
+ startSelected = computed(() => {
6925
+ const startSelected = this.cfg().startSelected;
6926
+ if (startSelected) {
6927
+ return startSelected.map(s => s?.toString() ?? '');
6928
+ }
6929
+ return [];
6930
+ }, ...(ngDevMode ? [{ debugName: "startSelected" }] : /* istanbul ignore next */ []));
6924
6931
  performance = computed(() => {
6925
6932
  return this.cfg().timeRequest
6926
6933
  ? `${this.cfg().timeRequest}ms`
@@ -6928,7 +6935,7 @@ class MkGrid {
6928
6935
  }, ...(ngDevMode ? [{ debugName: "performance" }] : /* istanbul ignore next */ []));
6929
6936
  constructor() {
6930
6937
  effect(() => {
6931
- this.iniciarSelectedRows(this.lista());
6938
+ this.iniciarSelectedRows(this.lista(), this.startSelected());
6932
6939
  });
6933
6940
  effect(() => {
6934
6941
  const totalItens = this.listaOrdenada().length;
@@ -7002,8 +7009,7 @@ class MkGrid {
7002
7009
  this.observerResize();
7003
7010
  }, 0);
7004
7011
  }
7005
- iniciarSelectedRows(lista) {
7006
- let listaSelecionados = this.cfg().startSelected;
7012
+ iniciarSelectedRows(lista, listaSelecionados) {
7007
7013
  if (!listaSelecionados || !lista) {
7008
7014
  this.clearSelections();
7009
7015
  return;