@zambon-dev/ui 1.11.1 → 1.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zambon-dev/ui",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "description": "Angular 22 component library and application shell: form controls, a virtual-scroll data grid, modals, ribbon, sidebar, tabbed navigation, view base classes and authentication layouts, themed with Tailwind CSS 4 tokens.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1025,7 +1025,15 @@ export declare abstract class GridDataset extends BaseDataset {
1025
1025
  get parentEntityId(): any;
1026
1026
  set parentEntityId(value: any);
1027
1027
  constructor();
1028
- addNewRow(row: any): void;
1028
+ /**
1029
+ * Adds a row after the loaded ones, without a reload.
1030
+ *
1031
+ * @param addedToSource Leave it `true` when the API already holds the row among the rows the grid
1032
+ * has loaded, such as a saved order an API lists newest first. The next block then starts one
1033
+ * row later, so the row is not loaded twice. Pass `false` for a row only the grid holds, such as
1034
+ * a new row still to be saved, so no row is skipped.
1035
+ */
1036
+ addNewRow(row: any, addedToSource?: boolean): void;
1029
1037
  /** The key of the currently focused row, or null. Read by DataGridRowComponent's host binding. */
1030
1038
  get focusedRowKey(): string | null;
1031
1039
  clearFocusedRow(): void;
@@ -1036,7 +1044,14 @@ export declare abstract class GridDataset extends BaseDataset {
1036
1044
  isKeyExists(key: string): boolean;
1037
1045
  loadRows(): void;
1038
1046
  refresh(): void;
1039
- removeKeys(keys: string[]): void;
1047
+ /**
1048
+ * Removes loaded rows by their keys, without a reload.
1049
+ *
1050
+ * @param deletedFromSource Pass `true` when the API has already deleted the rows. Its later rows
1051
+ * then move up, so the next block starts that many rows earlier and none is skipped. Leave it
1052
+ * `false` when the rows only leave the grid, such as a removal still to be saved.
1053
+ */
1054
+ removeKeys(keys: string[], deletedFromSource?: boolean): void;
1040
1055
  setFilters(filters?: {
1041
1056
  [key: string]: string;
1042
1057
  }): void;
@@ -1134,7 +1149,7 @@ export declare abstract class DataGridDataset extends GridDataset {
1134
1149
  getSelectedRowsData(): any[];
1135
1150
  isKeySelected(key: any): boolean;
1136
1151
  refresh(): void;
1137
- removeKeys(keys: string[]): void;
1152
+ removeKeys(keys: string[], deletedFromSource?: boolean): void;
1138
1153
  selectRow(key: string): void;
1139
1154
  selectRowID(id: any): void;
1140
1155
  selectRows(keys: string[]): void;