@zambon-dev/ui 1.11.1 → 1.12.2
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/CHANGELOG.md +52 -1
- package/fesm2022/zambon-dev-ui-library.mjs +33 -19
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +3 -1
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +2 -1
- package/types/zambon-dev-ui-library.d.ts +22 -3
- package/types/zambon-dev-ui-shared.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zambon-dev/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.2",
|
|
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",
|
|
@@ -48,7 +48,8 @@ const THEME_SCRIPT = ` <script>
|
|
|
48
48
|
`;
|
|
49
49
|
const DOCS_URL = 'https://ricardozambon.github.io/ZLibraries/guides/getting-started';
|
|
50
50
|
const NEXT_STEPS = `
|
|
51
|
-
@zambon-dev/ui is set up.
|
|
51
|
+
@zambon-dev/ui is set up. Once its packages are installed, library components such as lib-button
|
|
52
|
+
render.
|
|
52
53
|
|
|
53
54
|
The full application shell (MainLayoutComponent and the sign-in screen) needs values only your
|
|
54
55
|
application knows, so add these to the application config yourself:
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -1076,6 +1091,10 @@ export declare abstract class DataGridDataset extends GridDataset {
|
|
|
1076
1091
|
private readonly hiddenFields;
|
|
1077
1092
|
/** The width in pixels of each column the user resized, keyed by `field`. */
|
|
1078
1093
|
private readonly columnWidths;
|
|
1094
|
+
/**
|
|
1095
|
+
* The keys of the selected rows, as a copy. Keep it as long as you need: later selection changes
|
|
1096
|
+
* do not reach it, and changing it does not change the selection. Setting it keeps a copy too.
|
|
1097
|
+
*/
|
|
1079
1098
|
get selectedRowKeys(): string[];
|
|
1080
1099
|
set selectedRowKeys(value: string[]);
|
|
1081
1100
|
/**
|
|
@@ -1134,7 +1153,7 @@ export declare abstract class DataGridDataset extends GridDataset {
|
|
|
1134
1153
|
getSelectedRowsData(): any[];
|
|
1135
1154
|
isKeySelected(key: any): boolean;
|
|
1136
1155
|
refresh(): void;
|
|
1137
|
-
removeKeys(keys: string[]): void;
|
|
1156
|
+
removeKeys(keys: string[], deletedFromSource?: boolean): void;
|
|
1138
1157
|
selectRow(key: string): void;
|
|
1139
1158
|
selectRowID(id: any): void;
|
|
1140
1159
|
selectRows(keys: string[]): void;
|
|
@@ -966,11 +966,13 @@ export declare class EnumLabelPipe implements PipeTransform {
|
|
|
966
966
|
}
|
|
967
967
|
/**
|
|
968
968
|
* Reads a date the API sent in UTC without a timezone marker and returns it as the right instant.
|
|
969
|
-
* Values that already carry `Z` or an offset are kept as they are
|
|
970
|
-
* `
|
|
969
|
+
* Values that already carry `Z` or an offset are kept as they are. A date with no time, such as
|
|
970
|
+
* `2026-12-05`, is a calendar day and comes back as the start of that day in local time. Empty or
|
|
971
|
+
* invalid values give `null`. Chain it before `date`, e.g. `{{ value | utcDate | date }}`.
|
|
971
972
|
*/
|
|
972
973
|
export declare class UtcDatePipe implements PipeTransform {
|
|
973
974
|
private static readonly timeZoneMarker;
|
|
975
|
+
private static readonly dateOnly;
|
|
974
976
|
transform(value?: Date | string): Date | null;
|
|
975
977
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtcDatePipe, never>;
|
|
976
978
|
static ɵpipe: i0.ɵɵPipeDeclaration<UtcDatePipe, "utcDate", true>;
|