@wolkabout/commons 0.1.5 → 0.1.7
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
|
@@ -1005,6 +1005,7 @@ interface NestedListItem<ItemType> {
|
|
|
1005
1005
|
idPath: string;
|
|
1006
1006
|
type?: string;
|
|
1007
1007
|
icon: string | LoadedIcon | SvgIcon;
|
|
1008
|
+
rightNumber?: number;
|
|
1008
1009
|
isRoot: boolean;
|
|
1009
1010
|
data: ItemType;
|
|
1010
1011
|
}
|
|
@@ -1021,6 +1022,10 @@ declare abstract class NestedListDataSource<ItemType> {
|
|
|
1021
1022
|
* Loads children for the currently selected item.
|
|
1022
1023
|
*/
|
|
1023
1024
|
abstract loadChildren(item: NestedListItem<ItemType>): Observable<ItemType[]>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Loads all the scopes of associated items.
|
|
1027
|
+
*/
|
|
1028
|
+
loadAssociatedItemsScopes(): Observable<string[]>;
|
|
1024
1029
|
/**
|
|
1025
1030
|
* Sets the id of the item that should be loaded first.
|
|
1026
1031
|
*/
|
|
@@ -1028,7 +1033,7 @@ declare abstract class NestedListDataSource<ItemType> {
|
|
|
1028
1033
|
/**
|
|
1029
1034
|
* Generalized the item and prepares it for display.
|
|
1030
1035
|
*/
|
|
1031
|
-
abstract prepareItem(item: ItemType, isRoot?: boolean): NestedListItem<ItemType>;
|
|
1036
|
+
abstract prepareItem(item: ItemType, isRoot?: boolean, countsMap?: Map<string, number>): NestedListItem<ItemType>;
|
|
1032
1037
|
sortingFunction(item1: NestedListItem<ItemType>, item2: NestedListItem<ItemType>): number;
|
|
1033
1038
|
}
|
|
1034
1039
|
|
|
@@ -1038,6 +1043,9 @@ declare class NestedListDataControl<ItemType> {
|
|
|
1038
1043
|
private _itemUpdated$;
|
|
1039
1044
|
private _childAdded;
|
|
1040
1045
|
private _itemRemoved$;
|
|
1046
|
+
private _associatedItemAdded$;
|
|
1047
|
+
private _associatedItemRemoved$;
|
|
1048
|
+
private _associatedItemScopeChanged$;
|
|
1041
1049
|
storageKey?: string;
|
|
1042
1050
|
constructor(storageKey?: string);
|
|
1043
1051
|
readonly selectItem: (id: string) => void;
|
|
@@ -1045,6 +1053,9 @@ declare class NestedListDataControl<ItemType> {
|
|
|
1045
1053
|
readonly updateItem: (item: ItemType) => void;
|
|
1046
1054
|
readonly addItem: (item: ItemType) => void;
|
|
1047
1055
|
readonly removeItem: (id: string) => void;
|
|
1056
|
+
readonly associatedItemAdded: (scopeGuid: string) => void;
|
|
1057
|
+
readonly associatedItemRemoved: (scopeGuid: string) => void;
|
|
1058
|
+
readonly associatedItemScopeChanged: (fromGuid: string, toGuid: string) => void;
|
|
1048
1059
|
/**
|
|
1049
1060
|
* Internal event hook. Do not use outside the Nested List Component
|
|
1050
1061
|
*/
|
|
@@ -1061,6 +1072,21 @@ declare class NestedListDataControl<ItemType> {
|
|
|
1061
1072
|
* Internal event hook. Do not use outside the Nested List Component
|
|
1062
1073
|
*/
|
|
1063
1074
|
get itemRemoved$(): Observable<string>;
|
|
1075
|
+
/**
|
|
1076
|
+
* Internal event hook. Do not use outside the Nested List Component
|
|
1077
|
+
*/
|
|
1078
|
+
get associatedItemAdded$(): Observable<string>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Internal event hook. Do not use outside the Nested List Component
|
|
1081
|
+
*/
|
|
1082
|
+
get associatedItemRemoved$(): Observable<string>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Internal event hook. Do not use outside the Nested List Component
|
|
1085
|
+
*/
|
|
1086
|
+
get associatedItemScopeChanged$(): Observable<{
|
|
1087
|
+
from: string;
|
|
1088
|
+
to: string;
|
|
1089
|
+
}>;
|
|
1064
1090
|
/**
|
|
1065
1091
|
* Internal event hook. Do not use outside the Nested List Component
|
|
1066
1092
|
*/
|
|
@@ -1104,7 +1130,8 @@ declare class NestedListViewComponent<ItemType> {
|
|
|
1104
1130
|
children: _angular_core.WritableSignal<NestedListItem<ItemType>[]>;
|
|
1105
1131
|
filteredChildren: _angular_core.Signal<NestedListItem<ItemType>[]>;
|
|
1106
1132
|
itemSelected: _angular_core.OutputEmitterRef<ItemType | null>;
|
|
1107
|
-
|
|
1133
|
+
private countsMap;
|
|
1134
|
+
private readonly currentScopes;
|
|
1108
1135
|
constructor(destroyRef: DestroyRef);
|
|
1109
1136
|
private initiateState;
|
|
1110
1137
|
selectBreadcrumb(item: NestedListItem<ItemType>): void;
|
|
@@ -1112,8 +1139,11 @@ declare class NestedListViewComponent<ItemType> {
|
|
|
1112
1139
|
dragStart(event: DragEvent, item: ItemType): void;
|
|
1113
1140
|
resetNavigation(): void;
|
|
1114
1141
|
shouldDisableBreadcrumbClick(item: NestedListItem<ItemType>): boolean | "" | null | undefined;
|
|
1142
|
+
private buildCountsMap;
|
|
1143
|
+
private adjustCount;
|
|
1144
|
+
private refreshCount;
|
|
1115
1145
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NestedListViewComponent<any>, never>;
|
|
1116
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NestedListViewComponent<any>, "app-nested-list-view", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "dataControl": { "alias": "dataControl"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "disableThresholdId": { "alias": "disableThresholdId"; "required": false; "isSignal": true; }; "isColoredInput": { "alias": "isColoredInput"; "required": false; "isSignal": true; }; "searchActions": { "alias": "searchActions"; "required": false; "isSignal": true; }; "selectionConfirmationAction": { "alias": "selectionConfirmationAction"; "required": false; "isSignal": true; }; "hideSearch": { "alias": "hideSearch"; "required": false; "isSignal": true; }; "rootButtonText": { "alias": "rootButtonText"; "required": false; "isSignal": true; }; "enableDrag": { "alias": "enableDrag"; "required": false; "isSignal": true; }; }, { "dragging": "dragging"; "itemSelected": "itemSelected"; },
|
|
1146
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NestedListViewComponent<any>, "app-nested-list-view", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "dataControl": { "alias": "dataControl"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "disableThresholdId": { "alias": "disableThresholdId"; "required": false; "isSignal": true; }; "isColoredInput": { "alias": "isColoredInput"; "required": false; "isSignal": true; }; "searchActions": { "alias": "searchActions"; "required": false; "isSignal": true; }; "selectionConfirmationAction": { "alias": "selectionConfirmationAction"; "required": false; "isSignal": true; }; "hideSearch": { "alias": "hideSearch"; "required": false; "isSignal": true; }; "rootButtonText": { "alias": "rootButtonText"; "required": false; "isSignal": true; }; "enableDrag": { "alias": "enableDrag"; "required": false; "isSignal": true; }; }, { "dragging": "dragging"; "itemSelected": "itemSelected"; }, never, ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
|
|
1117
1147
|
}
|
|
1118
1148
|
|
|
1119
1149
|
declare class PdfViewerComponent {
|