@wolkabout/commons 0.0.56 → 0.0.58

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": "@wolkabout/commons",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "21.2.0",
6
6
  "@angular/common": "21.2.0",
@@ -13,6 +13,7 @@ import * as i7 from '@angular/material/sidenav';
13
13
  import * as i8 from '@angular/material/tabs';
14
14
  import * as i9 from '@angular/material/table';
15
15
  import * as i10 from '@angular/material/icon';
16
+ import { MatIconRegistry } from '@angular/material/icon';
16
17
  import * as i11 from '@angular/material/card';
17
18
  import * as i12 from '@angular/material/select';
18
19
  import { MatSelectChange } from '@angular/material/select';
@@ -47,13 +48,13 @@ import { Observable, BehaviorSubject, Subject } from 'rxjs';
47
48
  import { MatSnackBar } from '@angular/material/snack-bar';
48
49
  import * as ngx_echarts from 'ngx-echarts';
49
50
  import { ThemeOption } from 'ngx-echarts';
51
+ import * as _angular_platform_browser from '@angular/platform-browser';
52
+ import { DomSanitizer, SafeUrl, SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
50
53
  import { Overlay } from '@angular/cdk/overlay';
51
54
  import { EChartsOption } from 'echarts';
52
55
  import { DateTime } from 'luxon';
53
56
  import { GoogleMap } from '@angular/google-maps';
54
57
  import { MarkerClusterer } from '@googlemaps/markerclusterer';
55
- import * as _angular_platform_browser from '@angular/platform-browser';
56
- import { DomSanitizer, SafeUrl, SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
57
58
 
58
59
  declare const angularComponents: (typeof MatButtonModule)[];
59
60
  declare const shared: (typeof MatButtonModule | typeof RouterLink | typeof RouterOutlet | typeof RouterLinkActive)[];
@@ -90,6 +91,7 @@ interface Authority {
90
91
  contextName: string;
91
92
  mainContext: boolean;
92
93
  active: boolean;
94
+ favorite: boolean;
93
95
  accessToken: string;
94
96
  roleNames: string[];
95
97
  permissions: string[];
@@ -163,7 +165,9 @@ declare class AuthenticationService {
163
165
  private _authenticationTokens;
164
166
  constructor();
165
167
  setAuthentication(authentication: Authentication): void;
168
+ setAuthorityFavorite(contextId: number, favorite: boolean): void;
166
169
  updateUserName(firstName: string, lastName: string): void;
170
+ private sortAuthorities;
167
171
  private initiateAuthenticatedState;
168
172
  selectAuthority(authority: Authority): void;
169
173
  logout(): void;
@@ -317,6 +321,14 @@ declare class ThemeService {
317
321
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
318
322
  }
319
323
 
324
+ declare class IconRegistryService {
325
+ matIconRegistry: MatIconRegistry;
326
+ domSanitizer: DomSanitizer;
327
+ registerIcon(name: string, path: string): void;
328
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconRegistryService, never>;
329
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<IconRegistryService>;
330
+ }
331
+
320
332
  declare class LoadingIndicatorDirective {
321
333
  private element;
322
334
  set appLoadingShimmer(isLoading: boolean | unknown);
@@ -361,12 +373,6 @@ declare class MessageTooltipDirective implements OnDestroy {
361
373
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MessageTooltipDirective, "[appMessageTooltip]", never, { "tooltipTemplate": { "alias": "appMessageTooltip"; "required": false; }; }, {}, never, never, true, never>;
362
374
  }
363
375
 
364
- declare class NgTemplateContentDirective {
365
- template: TemplateRef<any>;
366
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgTemplateContentDirective, never>;
367
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgTemplateContentDirective, "[appNgTemplateContent]", never, {}, {}, never, never, true, never>;
368
- }
369
-
370
376
  declare class OverflowClassDirective implements AfterViewInit, AfterViewChecked {
371
377
  private el;
372
378
  overflowClass: string | null;
@@ -593,10 +599,12 @@ declare class AutocompleteComponent<ItemType> implements ControlValueAccessor, O
593
599
  dataFunction: (query: string) => Observable<ItemType[] | null>;
594
600
  displayFunction: (item: ItemType) => string;
595
601
  outlineBackground: boolean;
602
+ hideRequiredMarker: boolean;
596
603
  dropdownTemplate?: TemplateRef<unknown>;
597
604
  autocompleteTrigger?: MatAutocompleteTrigger;
598
605
  protected readonly Object: ObjectConstructor;
599
606
  disabled: boolean;
607
+ hasValue: _angular_core.WritableSignal<boolean>;
600
608
  formControl: FormControl<string | ItemType>;
601
609
  data$: Observable<ItemType[] | null>;
602
610
  loading$: Observable<boolean>;
@@ -614,7 +622,7 @@ declare class AutocompleteComponent<ItemType> implements ControlValueAccessor, O
614
622
  private scrollEvent;
615
623
  ngOnDestroy(): void;
616
624
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutocompleteComponent<any>, [{ optional: true; self: true; }]>;
617
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutocompleteComponent<any>, "app-autocomplete", never, { "name": { "alias": "name"; "required": false; }; "dataFunction": { "alias": "dataFunction"; "required": false; }; "displayFunction": { "alias": "displayFunction"; "required": false; }; "outlineBackground": { "alias": "outlineBackground"; "required": false; }; }, {}, ["dropdownTemplate"], never, true, never>;
625
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AutocompleteComponent<any>, "app-autocomplete", never, { "name": { "alias": "name"; "required": false; }; "dataFunction": { "alias": "dataFunction"; "required": false; }; "displayFunction": { "alias": "displayFunction"; "required": false; }; "outlineBackground": { "alias": "outlineBackground"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; }, {}, ["dropdownTemplate"], never, true, never>;
618
626
  }
619
627
 
620
628
  declare class AutocompleteChipsComponent<ItemType> implements OnInit, ControlValueAccessor, OnDestroy {
@@ -905,6 +913,14 @@ declare class LabeledValueComponent {
905
913
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabeledValueComponent, "app-labeled-value", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
906
914
  }
907
915
 
916
+ declare class IconComponent {
917
+ icon: _angular_core.InputSignal<string | SvgIcon | LoadedIcon>;
918
+ isAsyncIcon(): LoadedIcon | null;
919
+ isSvgIcon(): SvgIcon | null;
920
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
921
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "app-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
922
+ }
923
+
908
924
  declare class LoadedIconComponent {
909
925
  private sanitizer;
910
926
  iconRequest: _angular_core.InputSignal<Observable<Blob | null>>;
@@ -1058,7 +1074,7 @@ declare class NestedListViewComponent<ItemType> {
1058
1074
  children: _angular_core.WritableSignal<NestedListItem<ItemType>[]>;
1059
1075
  filteredChildren: _angular_core.Signal<NestedListItem<ItemType>[]>;
1060
1076
  itemSelected: _angular_core.OutputEmitterRef<ItemType | null>;
1061
- itemTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
1077
+ itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1062
1078
  constructor(destroyRef: DestroyRef, dialog: MatDialog);
1063
1079
  private initiateState;
1064
1080
  selectBreadcrumb(item: NestedListItem<ItemType>): void;
@@ -1069,7 +1085,7 @@ declare class NestedListViewComponent<ItemType> {
1069
1085
  isAsyncIcon(item: NestedListItem<ItemType>): LoadedIcon | null;
1070
1086
  isSvgIcon(item: NestedListItem<ItemType>): SvgIcon | null;
1071
1087
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NestedListViewComponent<any>, never>;
1072
- 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; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "disableThresholdId": { "alias": "disableThresholdId"; "required": false; "isSignal": true; }; "hideDetails": { "alias": "hideDetails"; "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; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; }, { "dragging": "dragging"; "itemSelected": "itemSelected"; }, never, ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
1088
+ 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; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "disableThresholdId": { "alias": "disableThresholdId"; "required": false; "isSignal": true; }; "hideDetails": { "alias": "hideDetails"; "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"; }, ["itemTemplate"], ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
1073
1089
  }
1074
1090
 
1075
1091
  declare class PdfViewerComponent {
@@ -1085,6 +1101,7 @@ interface StandardListItem<ItemType> {
1085
1101
  id: string;
1086
1102
  name: string;
1087
1103
  icon: string | LoadedIcon | SvgIcon;
1104
+ rightIcon?: string | LoadedIcon | SvgIcon;
1088
1105
  data: ItemType;
1089
1106
  }
1090
1107
  declare abstract class StandardListDataSource<ItemType> {
@@ -1164,15 +1181,13 @@ declare class StandardListViewComponent<ItemType> {
1164
1181
  items: _angular_core.WritableSignal<StandardListItem<ItemType>[]>;
1165
1182
  filteredItems: _angular_core.Signal<StandardListItem<ItemType>[]>;
1166
1183
  itemSelected: _angular_core.OutputEmitterRef<ItemType | null>;
1167
- content: _angular_core.Signal<NgTemplateContentDirective | undefined>;
1184
+ itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1168
1185
  constructor(destroyRef: DestroyRef);
1169
1186
  selectItem(item: StandardListItem<ItemType>): void;
1170
1187
  selectEmpty(): void;
1171
- isAsyncIcon(item: StandardListItem<ItemType>): LoadedIcon | null;
1172
- isSvgIcon(item: StandardListItem<ItemType>): SvgIcon | null;
1173
1188
  loadMore(): void;
1174
1189
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StandardListViewComponent<any>, never>;
1175
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StandardListViewComponent<any>, "app-standard-list-view", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "dataControl": { "alias": "dataControl"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "isColoredInput": { "alias": "isColoredInput"; "required": false; "isSignal": true; }; "hideSearch": { "alias": "hideSearch"; "required": false; "isSignal": true; }; "hideDetails": { "alias": "hideDetails"; "required": false; "isSignal": true; }; "hidePadding": { "alias": "hidePadding"; "required": false; "isSignal": true; }; }, { "itemSelected": "itemSelected"; }, ["content"], ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
1190
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StandardListViewComponent<any>, "app-standard-list-view", never, { "dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "dataControl": { "alias": "dataControl"; "required": true; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "isColoredInput": { "alias": "isColoredInput"; "required": false; "isSignal": true; }; "hideSearch": { "alias": "hideSearch"; "required": false; "isSignal": true; }; "hideDetails": { "alias": "hideDetails"; "required": false; "isSignal": true; }; "hidePadding": { "alias": "hidePadding"; "required": false; "isSignal": true; }; }, { "itemSelected": "itemSelected"; }, ["itemTemplate"], ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
1176
1191
  }
1177
1192
 
1178
1193
  declare const LAST_ACTIVE_TAB_KEY = "WOLK_LAST_ACTIVE_TAB";
@@ -1538,5 +1553,5 @@ declare class ValueInputVectorComponent implements ControlValueAccessor, Validat
1538
1553
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ValueInputVectorComponent, "app-value-input-vector", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "showErrorInTooltip": { "alias": "showErrorInTooltip"; "required": false; "isSignal": true; }; "validators": { "alias": "validators"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1539
1554
  }
1540
1555
 
1541
- export { AUTHENTICATION_CLIENT, AssetManager, AuthenticationService, AutocompleteChipsComponent, AutocompleteComponent, BasicTimeSeriesGraphComponent, COLORS, CUSTOM_PERIOD, CardLabeledValueComponent, ConfirmationDialogComponent, DEFAULT_LOCALE, DEFAULT_TIMEZONES, DEFAULT_TIME_ZONE, DataType, DateRangeInputComponent, DateTimeFormFieldComponent, DragDropFileUploadComponent, DurationPipe, FeatureRegistry, GoogleMapComponent, ImageDisplayComponent, ImagePreviewComponent, LAST_ACTIVE_TAB_KEY, LOCALES, LabeledValueComponent, LoadedIconComponent, LoadingIndicatorDirective, LocalSortTableComponent, Locale, LocalizedNumberPipe, LocalizedNumericInputDirective, MILLISECONDS_IN_DAY, MapsLoaderService, MasterDetailsViewComponent, MessageTooltipDirective, MissingTranslationHelper, NestedListDataControl, NestedListDataSource, NestedListViewComponent, NgTemplateContentDirective, 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, angularComponents, arrayToObject, chartThemeDark, chartThemeLight, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, globalPermissionGuard, groupBy, hoursAway, isContextAccessible, lookUpPathPart, lookUpQueryParam, parseDateRangeInputPeriod, parseTimeInput, saveFile, scale, shared, startOfMonth, startOfPeriod, startOfTheDay, startOfWeek, startOfYear, toDate, toEndOfMonth, toEndOfYear, toJsDate, toOffset, toStartOfMonth, toStartOfTheDay, toStartOfWeek, toStartOfYear, toTime, uniqueBy, uniqueFrom, validateAssetName, validateTypeAssetName };
1556
+ export { AUTHENTICATION_CLIENT, AssetManager, AuthenticationService, AutocompleteChipsComponent, AutocompleteComponent, BasicTimeSeriesGraphComponent, COLORS, CUSTOM_PERIOD, CardLabeledValueComponent, ConfirmationDialogComponent, DEFAULT_LOCALE, DEFAULT_TIMEZONES, DEFAULT_TIME_ZONE, DataType, DateRangeInputComponent, DateTimeFormFieldComponent, DragDropFileUploadComponent, DurationPipe, FeatureRegistry, 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, angularComponents, arrayToObject, chartThemeDark, chartThemeLight, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, globalPermissionGuard, groupBy, hoursAway, isContextAccessible, lookUpPathPart, lookUpQueryParam, parseDateRangeInputPeriod, parseTimeInput, saveFile, scale, shared, startOfMonth, startOfPeriod, startOfTheDay, startOfWeek, startOfYear, toDate, toEndOfMonth, toEndOfYear, toJsDate, toOffset, toStartOfMonth, toStartOfTheDay, toStartOfWeek, toStartOfYear, toTime, uniqueBy, uniqueFrom, validateAssetName, validateTypeAssetName };
1542
1557
  export type { Authentication, AuthenticationClient, Authority, Color, ConfirmationData, DateRangeValues, ExternalFeature, Feature, ImportError, LoadedIcon, MapItem, MasterDetailDisplayRatio, NestedListItem, PartialUpdate, RelativeTimePeriodWithCustom, SearchAction, SortDirection$1 as SortDirection, StandardListItem, SvgIcon, Tab, Theme, TimeSeries, TimeSeriesData, TreeNode, User, ValueInputValidationConditions };