@wolkabout/commons 0.0.56 → 0.0.57

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.57",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "21.2.0",
6
6
  "@angular/common": "21.2.0",
@@ -90,6 +90,7 @@ interface Authority {
90
90
  contextName: string;
91
91
  mainContext: boolean;
92
92
  active: boolean;
93
+ favorite: boolean;
93
94
  accessToken: string;
94
95
  roleNames: string[];
95
96
  permissions: string[];
@@ -163,7 +164,9 @@ declare class AuthenticationService {
163
164
  private _authenticationTokens;
164
165
  constructor();
165
166
  setAuthentication(authentication: Authentication): void;
167
+ setAuthorityFavorite(contextId: number, favorite: boolean): void;
166
168
  updateUserName(firstName: string, lastName: string): void;
169
+ private sortAuthorities;
167
170
  private initiateAuthenticatedState;
168
171
  selectAuthority(authority: Authority): void;
169
172
  logout(): void;
@@ -361,12 +364,6 @@ declare class MessageTooltipDirective implements OnDestroy {
361
364
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MessageTooltipDirective, "[appMessageTooltip]", never, { "tooltipTemplate": { "alias": "appMessageTooltip"; "required": false; }; }, {}, never, never, true, never>;
362
365
  }
363
366
 
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
367
  declare class OverflowClassDirective implements AfterViewInit, AfterViewChecked {
371
368
  private el;
372
369
  overflowClass: string | null;
@@ -593,10 +590,12 @@ declare class AutocompleteComponent<ItemType> implements ControlValueAccessor, O
593
590
  dataFunction: (query: string) => Observable<ItemType[] | null>;
594
591
  displayFunction: (item: ItemType) => string;
595
592
  outlineBackground: boolean;
593
+ hideRequiredMarker: boolean;
596
594
  dropdownTemplate?: TemplateRef<unknown>;
597
595
  autocompleteTrigger?: MatAutocompleteTrigger;
598
596
  protected readonly Object: ObjectConstructor;
599
597
  disabled: boolean;
598
+ hasValue: _angular_core.WritableSignal<boolean>;
600
599
  formControl: FormControl<string | ItemType>;
601
600
  data$: Observable<ItemType[] | null>;
602
601
  loading$: Observable<boolean>;
@@ -614,7 +613,7 @@ declare class AutocompleteComponent<ItemType> implements ControlValueAccessor, O
614
613
  private scrollEvent;
615
614
  ngOnDestroy(): void;
616
615
  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>;
616
+ 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
617
  }
619
618
 
620
619
  declare class AutocompleteChipsComponent<ItemType> implements OnInit, ControlValueAccessor, OnDestroy {
@@ -1058,7 +1057,7 @@ declare class NestedListViewComponent<ItemType> {
1058
1057
  children: _angular_core.WritableSignal<NestedListItem<ItemType>[]>;
1059
1058
  filteredChildren: _angular_core.Signal<NestedListItem<ItemType>[]>;
1060
1059
  itemSelected: _angular_core.OutputEmitterRef<ItemType | null>;
1061
- itemTemplate: _angular_core.InputSignal<TemplateRef<any> | null>;
1060
+ itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1062
1061
  constructor(destroyRef: DestroyRef, dialog: MatDialog);
1063
1062
  private initiateState;
1064
1063
  selectBreadcrumb(item: NestedListItem<ItemType>): void;
@@ -1069,7 +1068,7 @@ declare class NestedListViewComponent<ItemType> {
1069
1068
  isAsyncIcon(item: NestedListItem<ItemType>): LoadedIcon | null;
1070
1069
  isSvgIcon(item: NestedListItem<ItemType>): SvgIcon | null;
1071
1070
  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>;
1071
+ 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
1072
  }
1074
1073
 
1075
1074
  declare class PdfViewerComponent {
@@ -1164,7 +1163,7 @@ declare class StandardListViewComponent<ItemType> {
1164
1163
  items: _angular_core.WritableSignal<StandardListItem<ItemType>[]>;
1165
1164
  filteredItems: _angular_core.Signal<StandardListItem<ItemType>[]>;
1166
1165
  itemSelected: _angular_core.OutputEmitterRef<ItemType | null>;
1167
- content: _angular_core.Signal<NgTemplateContentDirective | undefined>;
1166
+ itemTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
1168
1167
  constructor(destroyRef: DestroyRef);
1169
1168
  selectItem(item: StandardListItem<ItemType>): void;
1170
1169
  selectEmpty(): void;
@@ -1172,7 +1171,7 @@ declare class StandardListViewComponent<ItemType> {
1172
1171
  isSvgIcon(item: StandardListItem<ItemType>): SvgIcon | null;
1173
1172
  loadMore(): void;
1174
1173
  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>;
1174
+ 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
1175
  }
1177
1176
 
1178
1177
  declare const LAST_ACTIVE_TAB_KEY = "WOLK_LAST_ACTIVE_TAB";
@@ -1538,5 +1537,5 @@ declare class ValueInputVectorComponent implements ControlValueAccessor, Validat
1538
1537
  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
1538
  }
1540
1539
 
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 };
1540
+ 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, 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
1541
  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 };