@sankhyalabs/core 6.1.0 → 6.1.1
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/.docs/classes/Change.md +11 -11
- package/.docs/classes/DataUnit.md +96 -75
- package/.docs/classes/SelectionInfo.md +12 -12
- package/.docs/enumerations/ChangeOperation.md +4 -4
- package/.docs/enumerations/SelectionMode.md +2 -2
- package/.docs/interfaces/DUActionInterceptor.md +1 -1
- package/.docs/interfaces/PageRequest.md +3 -3
- package/.docs/interfaces/QuickFilter.md +3 -3
- package/.docs/interfaces/Record.md +4 -4
- package/.docs/interfaces/SavedRecord.md +5 -5
- package/.docs/interfaces/WaitingChange.md +3 -3
- package/.docs/type-aliases/DataUnitEventOptions.md +1 -1
- package/dist/dataunit/DataUnit.d.ts +7 -0
- package/dist/dataunit/DataUnit.js +10 -0
- package/dist/dataunit/DataUnit.js.map +1 -1
- package/package.json +1 -1
- package/reports/test-report.xml +516 -516
- package/src/dataunit/DataUnit.ts +11 -0
package/src/dataunit/DataUnit.ts
CHANGED
|
@@ -861,6 +861,17 @@ export default class DataUnit {
|
|
|
861
861
|
return children.find(child => child.name === name);
|
|
862
862
|
}
|
|
863
863
|
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* Define a propriedade records da instância da classe com um novo valor e chama o método dispatchAction para notificar os observers da aplicação sobre a mudança,
|
|
867
|
+
* mantendo a seleção definida anteriormente.
|
|
868
|
+
*
|
|
869
|
+
*/
|
|
870
|
+
public setRecordsKeepingSelection(records: Array<Record>): void {
|
|
871
|
+
const paginationInfo = this.getPaginationInfo();
|
|
872
|
+
this.dispatchAction(Action.DATA_LOADED, { records, paginationInfo, keepSelection: true }, undefined);
|
|
873
|
+
}
|
|
874
|
+
|
|
864
875
|
/**
|
|
865
876
|
*
|
|
866
877
|
* Define a propriedade records da instância da classe com um novo valor e chama o método dispatchAction para notificar os observers da aplicação sobre a mudança.
|