@wolkabout/commons 0.1.3 → 0.1.5
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
|
@@ -339,6 +339,19 @@ declare class FullscreenService {
|
|
|
339
339
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FullscreenService>;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
declare class NavigationPersistenceService {
|
|
343
|
+
private readonly registeredKeys;
|
|
344
|
+
private readonly STORAGE_SUFFIX;
|
|
345
|
+
constructor();
|
|
346
|
+
save(key: string, value: string): void;
|
|
347
|
+
restore(key: string): string | null;
|
|
348
|
+
remove(key: string): void;
|
|
349
|
+
clearMultiple(keys: string[]): void;
|
|
350
|
+
clearAll(): void;
|
|
351
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationPersistenceService, never>;
|
|
352
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NavigationPersistenceService>;
|
|
353
|
+
}
|
|
354
|
+
|
|
342
355
|
declare class LoadingIndicatorDirective {
|
|
343
356
|
private element;
|
|
344
357
|
set appLoadingShimmer(isLoading: boolean | unknown);
|
|
@@ -1020,11 +1033,15 @@ declare abstract class NestedListDataSource<ItemType> {
|
|
|
1020
1033
|
}
|
|
1021
1034
|
|
|
1022
1035
|
declare class NestedListDataControl<ItemType> {
|
|
1036
|
+
private readonly navigationPersistence;
|
|
1023
1037
|
private _changeSelection$;
|
|
1024
1038
|
private _itemUpdated$;
|
|
1025
1039
|
private _childAdded;
|
|
1026
1040
|
private _itemRemoved$;
|
|
1041
|
+
storageKey?: string;
|
|
1042
|
+
constructor(storageKey?: string);
|
|
1027
1043
|
readonly selectItem: (id: string) => void;
|
|
1044
|
+
readonly deselectItem: () => void;
|
|
1028
1045
|
readonly updateItem: (item: ItemType) => void;
|
|
1029
1046
|
readonly addItem: (item: ItemType) => void;
|
|
1030
1047
|
readonly removeItem: (id: string) => void;
|
|
@@ -1044,6 +1061,10 @@ declare class NestedListDataControl<ItemType> {
|
|
|
1044
1061
|
* Internal event hook. Do not use outside the Nested List Component
|
|
1045
1062
|
*/
|
|
1046
1063
|
get itemRemoved$(): Observable<string>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Internal event hook. Do not use outside the Nested List Component
|
|
1066
|
+
*/
|
|
1067
|
+
persist(id: string | null): void;
|
|
1047
1068
|
}
|
|
1048
1069
|
|
|
1049
1070
|
interface SearchAction {
|
|
@@ -1139,12 +1160,16 @@ interface PartialUpdate<ItemType> {
|
|
|
1139
1160
|
update: (oldItem: ItemType) => ItemType;
|
|
1140
1161
|
}
|
|
1141
1162
|
declare class StandardListDataControl<ItemType> {
|
|
1163
|
+
private readonly navigationPersistence;
|
|
1142
1164
|
private _changeSelection$;
|
|
1143
1165
|
private _itemUpdated$;
|
|
1144
1166
|
private _itemPartiallyUpdated$;
|
|
1145
1167
|
private _itemAdded$;
|
|
1146
1168
|
private _itemRemoved$;
|
|
1169
|
+
storageKey?: string;
|
|
1170
|
+
constructor(storageKey?: string);
|
|
1147
1171
|
readonly selectItem: (id: string) => void;
|
|
1172
|
+
readonly deselectItem: () => void;
|
|
1148
1173
|
readonly updateItem: (item: ItemType) => void;
|
|
1149
1174
|
readonly updateItemPartially: (id: string, update: (oldItem: ItemType) => ItemType) => void;
|
|
1150
1175
|
readonly addItem: (item: ItemType) => void;
|
|
@@ -1169,6 +1194,10 @@ declare class StandardListDataControl<ItemType> {
|
|
|
1169
1194
|
* Internal event hook. Do not use outside the Standard List Component
|
|
1170
1195
|
*/
|
|
1171
1196
|
get itemRemoved$(): Observable<string>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Internal event hook. Do not use outside the Standard List Component
|
|
1199
|
+
*/
|
|
1200
|
+
persist(id: string | null): void;
|
|
1172
1201
|
}
|
|
1173
1202
|
|
|
1174
1203
|
declare class StandardListViewComponent<ItemType> {
|
|
@@ -1201,11 +1230,12 @@ declare const LAST_ACTIVE_TAB_KEY = "WOLK_LAST_ACTIVE_TAB";
|
|
|
1201
1230
|
declare class TabulatedChipViewComponent {
|
|
1202
1231
|
private router;
|
|
1203
1232
|
private route;
|
|
1233
|
+
private navigationPersistenceService;
|
|
1204
1234
|
tabs: _angular_core.InputSignal<Tab[]>;
|
|
1205
1235
|
queryParamHandling: _angular_core.InputSignal<QueryParamsHandling>;
|
|
1206
1236
|
saveLastActiveTab: _angular_core.InputSignal<boolean>;
|
|
1207
1237
|
navBarLayoutClasses: _angular_core.InputSignal<string>;
|
|
1208
|
-
constructor(router: Router, route: ActivatedRoute);
|
|
1238
|
+
constructor(router: Router, route: ActivatedRoute, navigationPersistenceService: NavigationPersistenceService);
|
|
1209
1239
|
isActive(route: string): boolean;
|
|
1210
1240
|
navigate(route: string): void;
|
|
1211
1241
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabulatedChipViewComponent, never>;
|
|
@@ -1215,12 +1245,15 @@ declare class TabulatedChipViewComponent {
|
|
|
1215
1245
|
declare class TabulatedViewComponent {
|
|
1216
1246
|
private router;
|
|
1217
1247
|
private route;
|
|
1248
|
+
private navigationPersistenceService;
|
|
1218
1249
|
tabs: Tab[];
|
|
1219
|
-
|
|
1250
|
+
queryParamHandling: QueryParamsHandling;
|
|
1251
|
+
saveLastActiveTab: boolean;
|
|
1252
|
+
constructor(router: Router, route: ActivatedRoute, navigationPersistenceService: NavigationPersistenceService);
|
|
1220
1253
|
isActive(route: string): boolean;
|
|
1221
1254
|
navigate(route: string): void;
|
|
1222
1255
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabulatedViewComponent, never>;
|
|
1223
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabulatedViewComponent, "app-tabulated-view", never, { "tabs": { "alias": "tabs"; "required": true; }; }, {}, never, never, true, never>;
|
|
1256
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabulatedViewComponent, "app-tabulated-view", never, { "tabs": { "alias": "tabs"; "required": true; }; "queryParamHandling": { "alias": "queryParamHandling"; "required": false; }; "saveLastActiveTab": { "alias": "saveLastActiveTab"; "required": false; }; }, {}, never, never, true, never>;
|
|
1224
1257
|
}
|
|
1225
1258
|
|
|
1226
1259
|
interface TreeNode<Type> {
|
|
@@ -1603,5 +1636,5 @@ declare class DoubleDrawerLayoutComponent {
|
|
|
1603
1636
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DoubleDrawerLayoutComponent, "app-double-drawer-layout", never, { "leftDrawerConfig": { "alias": "leftDrawerConfig"; "required": true; "isSignal": true; }; "rightDrawerConfig": { "alias": "rightDrawerConfig"; "required": false; "isSignal": true; }; "backdropConfig": { "alias": "backdropConfig"; "required": true; "isSignal": true; }; "dialogConfig": { "alias": "dialogConfig"; "required": false; "isSignal": true; }; "enableFullScreen": { "alias": "enableFullScreen"; "required": false; "isSignal": true; }; }, { "leftDrawerToggled": "leftDrawerToggled"; "rightDrawerToggled": "rightDrawerToggled"; }, never, ["[left-drawer]", "[details]", "[right-drawer]"], true, never>;
|
|
1604
1637
|
}
|
|
1605
1638
|
|
|
1606
|
-
export { AUTHENTICATION_CLIENT, AssetManager, AuthenticationService, AutocompleteChipsComponent, AutocompleteComponent, BasicTimeSeriesGraphComponent, COLORS, CUSTOM_PERIOD, CardLabeledValueComponent, ConfirmationDialogComponent, DEFAULT_LOCALE, DEFAULT_TIMEZONES, DEFAULT_TIME_ZONE, DataType, DateRangeInputComponent, DateTimeFormFieldComponent, DoubleDrawerLayoutComponent, DragDropFileUploadComponent, DurationPipe, FeatureRegistry, FullscreenService, GoogleMapComponent, IconComponent, IconRegistryService, ImageDisplayComponent, ImagePreviewComponent, LAST_ACTIVE_TAB_KEY, LOCALES, LabeledValueComponent, LoadedIconComponent, LoadingIndicatorDirective, LocalSortTableComponent, Locale, LocalizedNumberPipe, LocalizedNumericInputDirective, MILLISECONDS_IN_DAY, MapsLoaderService, MasterDetailsViewComponent, MessageTooltipDirective, MissingTranslationHelper, NestedListDataControl, NestedListDataSource, NestedListViewComponent, NotificationService, OverflowClassDirective, PdfViewerComponent, PeriodErrorStateMatcher, PermissionsService, RELATIVE_TIME_PERIODS, RelativeTimePeriod, RequiresAllGlobalOrAssetPermissionsDirective, RequiresAllPermissionDirective, RequiresGlobalOrAsserPermissionDirective, RequiresPermissionDirective, ScrollIntoViewDirective, SharedModule, SimpleDatePipe, SimpleDateTimePipe, SimpleTimePipe, SortPipe, StandardListDataControl, StandardListDataSource, StandardListViewComponent, TIMEZONES, TabulatedChipViewComponent, TabulatedViewComponent, TenantPropertiesService, ThemeService, TreeComponent, TreeNodeComponent, USERS_TIME_ZONE, ValueDisplayComponent, ValueInputBooleanComponent, ValueInputColorComponent, ValueInputComponent, ValueInputDateComponent, ValueInputDurationComponent, ValueInputEnumComponent, ValueInputHexadecimalComponent, ValueInputLinkComponent, ValueInputLocationComponent, ValueInputNumericComponent, ValueInputStringComponent, ValueInputVectorComponent, arrayToObject, chartThemeDark, chartThemeLight, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, globalPermissionGuard, groupBy, hoursAway, isContextAccessible, lookUpPathPart, lookUpQueryParam, parseDateRangeInputPeriod, parseTimeInput, saveFile, scale, startOfMonth, startOfPeriod, startOfTheDay, startOfWeek, startOfYear, tenantHostUrlValidator, toDate, toEndOfMonth, toEndOfYear, toJsDate, toOffset, toStartOfMonth, toStartOfTheDay, toStartOfWeek, toStartOfYear, toTime, uniqueBy, uniqueFrom, validateAssetName, validateTypeAssetName };
|
|
1639
|
+
export { AUTHENTICATION_CLIENT, AssetManager, AuthenticationService, AutocompleteChipsComponent, AutocompleteComponent, BasicTimeSeriesGraphComponent, COLORS, CUSTOM_PERIOD, CardLabeledValueComponent, ConfirmationDialogComponent, DEFAULT_LOCALE, DEFAULT_TIMEZONES, DEFAULT_TIME_ZONE, DataType, DateRangeInputComponent, DateTimeFormFieldComponent, DoubleDrawerLayoutComponent, DragDropFileUploadComponent, DurationPipe, FeatureRegistry, FullscreenService, GoogleMapComponent, IconComponent, IconRegistryService, ImageDisplayComponent, ImagePreviewComponent, LAST_ACTIVE_TAB_KEY, LOCALES, LabeledValueComponent, LoadedIconComponent, LoadingIndicatorDirective, LocalSortTableComponent, Locale, LocalizedNumberPipe, LocalizedNumericInputDirective, MILLISECONDS_IN_DAY, MapsLoaderService, MasterDetailsViewComponent, MessageTooltipDirective, MissingTranslationHelper, NavigationPersistenceService, NestedListDataControl, NestedListDataSource, NestedListViewComponent, NotificationService, OverflowClassDirective, PdfViewerComponent, PeriodErrorStateMatcher, PermissionsService, RELATIVE_TIME_PERIODS, RelativeTimePeriod, RequiresAllGlobalOrAssetPermissionsDirective, RequiresAllPermissionDirective, RequiresGlobalOrAsserPermissionDirective, RequiresPermissionDirective, ScrollIntoViewDirective, SharedModule, SimpleDatePipe, SimpleDateTimePipe, SimpleTimePipe, SortPipe, StandardListDataControl, StandardListDataSource, StandardListViewComponent, TIMEZONES, TabulatedChipViewComponent, TabulatedViewComponent, TenantPropertiesService, ThemeService, TreeComponent, TreeNodeComponent, USERS_TIME_ZONE, ValueDisplayComponent, ValueInputBooleanComponent, ValueInputColorComponent, ValueInputComponent, ValueInputDateComponent, ValueInputDurationComponent, ValueInputEnumComponent, ValueInputHexadecimalComponent, ValueInputLinkComponent, ValueInputLocationComponent, ValueInputNumericComponent, ValueInputStringComponent, ValueInputVectorComponent, arrayToObject, chartThemeDark, chartThemeLight, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, globalPermissionGuard, groupBy, hoursAway, isContextAccessible, lookUpPathPart, lookUpQueryParam, parseDateRangeInputPeriod, parseTimeInput, saveFile, scale, startOfMonth, startOfPeriod, startOfTheDay, startOfWeek, startOfYear, tenantHostUrlValidator, toDate, toEndOfMonth, toEndOfYear, toJsDate, toOffset, toStartOfMonth, toStartOfTheDay, toStartOfWeek, toStartOfYear, toTime, uniqueBy, uniqueFrom, validateAssetName, validateTypeAssetName };
|
|
1607
1640
|
export type { Authentication, AuthenticationClient, Authority, Color, ConfirmationData, DateRangeValues, ExternalFeature, Feature, ImportError, LayoutBackdropConfig, LayoutDialogConfig, LayoutDrawerConfig, LoadedIcon, MapItem, MasterDetailDisplayRatio, NestedListItem, PartialUpdate, RelativeTimePeriodWithCustom, SearchAction, SortDirection$1 as SortDirection, StandardListItem, SvgIcon, Tab, Theme, TimeSeries, TimeSeriesData, TreeNode, User, ValueInputValidationConditions };
|