@wolkabout/commons 0.0.57 → 0.0.59

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.57",
3
+ "version": "0.0.59",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "21.2.0",
6
6
  "@angular/common": "21.2.0",
@@ -1,9 +1,6 @@
1
- import * as i32 from '@angular/router';
2
- import { RouterLink, RouterOutlet, RouterLinkActive, CanActivateFn, QueryParamsHandling, Router, ActivatedRoute } from '@angular/router';
3
- import * as i1 from '@angular/material/button';
4
- import { MatButtonModule } from '@angular/material/button';
5
1
  import * as _angular_core from '@angular/core';
6
2
  import { InjectionToken, ElementRef, OnDestroy, TemplateRef, ViewContainerRef, Renderer2, AfterViewInit, AfterViewChecked, OnChanges, PipeTransform, OnInit, DestroyRef, Signal, WritableSignal } from '@angular/core';
3
+ import * as i1 from '@angular/material/button';
7
4
  import * as i2 from '@angular/material/checkbox';
8
5
  import * as i3 from '@angular/material/toolbar';
9
6
  import * as i4 from '@angular/material/menu';
@@ -13,6 +10,7 @@ import * as i7 from '@angular/material/sidenav';
13
10
  import * as i8 from '@angular/material/tabs';
14
11
  import * as i9 from '@angular/material/table';
15
12
  import * as i10 from '@angular/material/icon';
13
+ import { MatIconRegistry } from '@angular/material/icon';
16
14
  import * as i11 from '@angular/material/card';
17
15
  import * as i12 from '@angular/material/select';
18
16
  import { MatSelectChange } from '@angular/material/select';
@@ -41,22 +39,22 @@ import { TranslateService, MissingTranslationHandler, MissingTranslationHandlerP
41
39
  import * as i30 from '@angular/forms';
42
40
  import { ControlValueAccessor, AbstractControl, ValidationErrors, NgControl, FormControl, Validator, FormGroup, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms';
43
41
  import * as i31 from '@angular/common';
42
+ import * as i32 from '@angular/router';
43
+ import { CanActivateFn, QueryParamsHandling, Router, ActivatedRoute } from '@angular/router';
44
44
  import * as i33 from '@angular/cdk/drag-drop';
45
45
  import * as rxjs from 'rxjs';
46
46
  import { Observable, BehaviorSubject, Subject } from 'rxjs';
47
47
  import { MatSnackBar } from '@angular/material/snack-bar';
48
48
  import * as ngx_echarts from 'ngx-echarts';
49
49
  import { ThemeOption } from 'ngx-echarts';
50
+ import * as _angular_platform_browser from '@angular/platform-browser';
51
+ import { DomSanitizer, SafeUrl, SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
50
52
  import { Overlay } from '@angular/cdk/overlay';
51
53
  import { EChartsOption } from 'echarts';
52
54
  import { DateTime } from 'luxon';
53
55
  import { GoogleMap } from '@angular/google-maps';
54
56
  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
57
 
58
- declare const angularComponents: (typeof MatButtonModule)[];
59
- declare const shared: (typeof MatButtonModule | typeof RouterLink | typeof RouterOutlet | typeof RouterLinkActive)[];
60
58
  declare class SharedModule {
61
59
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SharedModule, never>;
62
60
  static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.MatButtonModule, typeof i2.MatCheckboxModule, typeof i3.MatToolbarModule, typeof i4.MatMenuModule, typeof i5.MatFormFieldModule, typeof i6.MatTooltipModule, typeof i7.MatSidenavModule, typeof i8.MatTabsModule, typeof i9.MatTableModule, typeof i10.MatIconModule, typeof i11.MatCardModule, typeof i12.MatSelectModule, typeof i13.MatDialogModule, typeof i14.MatSortModule, typeof i15.MatRadioModule, typeof i16.MatRippleModule, typeof i17.MatDividerModule, typeof i18.MatInputModule, typeof i19.MatProgressBarModule, typeof i20.MatProgressSpinnerModule, typeof i21.MatTreeModule, typeof i22.MatExpansionModule, typeof i23.MatDatepickerModule, typeof i24.MatAutocompleteModule, typeof i25.MatChipsModule, typeof i26.MatGridListModule, typeof i27.MatPaginatorModule, typeof i28.MatSliderModule, typeof i29.TranslateModule, typeof i30.ReactiveFormsModule, typeof i31.CommonModule, typeof i32.RouterLink, typeof i32.RouterOutlet, typeof i32.RouterLinkActive, typeof i33.DragDropModule], [typeof i1.MatButtonModule, typeof i2.MatCheckboxModule, typeof i3.MatToolbarModule, typeof i4.MatMenuModule, typeof i5.MatFormFieldModule, typeof i6.MatTooltipModule, typeof i7.MatSidenavModule, typeof i8.MatTabsModule, typeof i9.MatTableModule, typeof i10.MatIconModule, typeof i11.MatCardModule, typeof i12.MatSelectModule, typeof i13.MatDialogModule, typeof i14.MatSortModule, typeof i15.MatRadioModule, typeof i16.MatRippleModule, typeof i17.MatDividerModule, typeof i18.MatInputModule, typeof i19.MatProgressBarModule, typeof i20.MatProgressSpinnerModule, typeof i21.MatTreeModule, typeof i22.MatExpansionModule, typeof i23.MatDatepickerModule, typeof i24.MatAutocompleteModule, typeof i25.MatChipsModule, typeof i26.MatGridListModule, typeof i27.MatPaginatorModule, typeof i28.MatSliderModule, typeof i29.TranslateModule, typeof i30.ReactiveFormsModule, typeof i31.CommonModule, typeof i32.RouterLink, typeof i32.RouterOutlet, typeof i32.RouterLinkActive, typeof i33.DragDropModule]>;
@@ -320,6 +318,14 @@ declare class ThemeService {
320
318
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ThemeService>;
321
319
  }
322
320
 
321
+ declare class IconRegistryService {
322
+ matIconRegistry: MatIconRegistry;
323
+ domSanitizer: DomSanitizer;
324
+ registerIcon(name: string, path: string): void;
325
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconRegistryService, never>;
326
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<IconRegistryService>;
327
+ }
328
+
323
329
  declare class LoadingIndicatorDirective {
324
330
  private element;
325
331
  set appLoadingShimmer(isLoading: boolean | unknown);
@@ -904,6 +910,14 @@ declare class LabeledValueComponent {
904
910
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabeledValueComponent, "app-labeled-value", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
905
911
  }
906
912
 
913
+ declare class IconComponent {
914
+ icon: _angular_core.InputSignal<string | number | LoadedIcon | SvgIcon>;
915
+ isAsyncIcon(): LoadedIcon | null;
916
+ isSvgIcon(): SvgIcon | null;
917
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconComponent, never>;
918
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IconComponent, "app-icon", never, { "icon": { "alias": "icon"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
919
+ }
920
+
907
921
  declare class LoadedIconComponent {
908
922
  private sanitizer;
909
923
  iconRequest: _angular_core.InputSignal<Observable<Blob | null>>;
@@ -1084,6 +1098,7 @@ interface StandardListItem<ItemType> {
1084
1098
  id: string;
1085
1099
  name: string;
1086
1100
  icon: string | LoadedIcon | SvgIcon;
1101
+ rightIcon?: string | LoadedIcon | SvgIcon;
1087
1102
  data: ItemType;
1088
1103
  }
1089
1104
  declare abstract class StandardListDataSource<ItemType> {
@@ -1146,11 +1161,17 @@ declare class StandardListDataControl<ItemType> {
1146
1161
  get itemRemoved$(): Observable<string>;
1147
1162
  }
1148
1163
 
1164
+ interface StyleOverride {
1165
+ card?: Record<string, boolean>;
1166
+ leftIcon?: Record<string, boolean>;
1167
+ rightIcon?: Record<string, boolean>;
1168
+ }
1149
1169
  declare class StandardListViewComponent<ItemType> {
1150
1170
  dataSource: _angular_core.InputSignal<StandardListDataSource<ItemType>>;
1151
1171
  dataControl: _angular_core.InputSignal<StandardListDataControl<ItemType>>;
1152
1172
  position: _angular_core.InputSignal<"inner" | "outer">;
1153
1173
  isColoredInput: _angular_core.InputSignal<boolean>;
1174
+ styleOverrides: _angular_core.InputSignal<StyleOverride>;
1154
1175
  loadingData: _angular_core.WritableSignal<boolean>;
1155
1176
  loadingPage: _angular_core.WritableSignal<boolean>;
1156
1177
  selectedItem: _angular_core.WritableSignal<StandardListItem<ItemType> | null>;
@@ -1167,11 +1188,9 @@ declare class StandardListViewComponent<ItemType> {
1167
1188
  constructor(destroyRef: DestroyRef);
1168
1189
  selectItem(item: StandardListItem<ItemType>): void;
1169
1190
  selectEmpty(): void;
1170
- isAsyncIcon(item: StandardListItem<ItemType>): LoadedIcon | null;
1171
- isSvgIcon(item: StandardListItem<ItemType>): SvgIcon | null;
1172
1191
  loadMore(): void;
1173
1192
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StandardListViewComponent<any>, 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>;
1193
+ 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; }; "styleOverrides": { "alias": "styleOverrides"; "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>;
1175
1194
  }
1176
1195
 
1177
1196
  declare const LAST_ACTIVE_TAB_KEY = "WOLK_LAST_ACTIVE_TAB";
@@ -1537,5 +1556,5 @@ declare class ValueInputVectorComponent implements ControlValueAccessor, Validat
1537
1556
  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>;
1538
1557
  }
1539
1558
 
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 };
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 };
1559
+ 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, 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, toDate, toEndOfMonth, toEndOfYear, toJsDate, toOffset, toStartOfMonth, toStartOfTheDay, toStartOfWeek, toStartOfYear, toTime, uniqueBy, uniqueFrom, validateAssetName, validateTypeAssetName };
1560
+ export type { Authentication, AuthenticationClient, Authority, Color, ConfirmationData, DateRangeValues, ExternalFeature, Feature, ImportError, LoadedIcon, MapItem, MasterDetailDisplayRatio, NestedListItem, PartialUpdate, RelativeTimePeriodWithCustom, SearchAction, SortDirection$1 as SortDirection, StandardListItem, StyleOverride, SvgIcon, Tab, Theme, TimeSeries, TimeSeriesData, TreeNode, User, ValueInputValidationConditions };