@wolkabout/commons 0.0.33 → 0.0.35

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/index.d.ts CHANGED
@@ -82,69 +82,7 @@ declare enum DataType {
82
82
  LINK = "LINK"
83
83
  }
84
84
 
85
- declare enum Permission {
86
- ACCESS_MODULE_PLATFORM_MANAGEMENT_FEATURE_APPLICATION = "ACCESS.MODULE_PLATFORM_MANAGEMENT.FEATURE_APPLICATION",
87
- ACCESS_MODULE_PLATFORM_MANAGEMENT_FEATURE_PLATFORM_CONFIGURATION = "ACCESS.MODULE_PLATFORM_MANAGEMENT.FEATURE_PLATFORM_CONFIGURATION",
88
- ACCESS_MODULE_PLATFORM_MANAGEMENT_FEATURE_TENANT_MANAGEMENT = "ACCESS.MODULE_PLATFORM_MANAGEMENT.FEATURE_TENANT_MANAGEMENT",
89
- ACCESS_MODULE_USER_MANAGEMENT_FEATURE_APPLICATION = "ACCESS.MODULE_USER_MANAGEMENT.FEATURE_APPLICATION",
90
- ACCESS_MODULE_USER_MANAGEMENT_FEATURE_USER_MANAGEMENT = "ACCESS.MODULE_USER_MANAGEMENT.FEATURE_USER_MANAGEMENT",
91
- ACCESS_MODULE_USER_MANAGEMENT_FEATURE_USER_GROUPS_MANAGEMENT = "ACCESS.MODULE_USER_MANAGEMENT.FEATURE_USER_GROUPS_MANAGEMENT",
92
- ACCESS_MODULE_USER_MANAGEMENT_FEATURE_GLOBAL_ROLES_MANAGEMENT = "ACCESS.MODULE_USER_MANAGEMENT.FEATURE_GLOBAL_ROLES_MANAGEMENT",
93
- ACCESS_MODULE_USER_MANAGEMENT_FEATURE_INVENTORY_ROLES_MANAGEMENT = "ACCESS.MODULE_USER_MANAGEMENT.FEATURE_INVENTORY_ROLES_MANAGEMENT",
94
- ACCESS_MODULE_TENANT_MANAGEMENT_FEATURE_APPLICATION = "ACCESS.MODULE_TENANT_MANAGEMENT.FEATURE_APPLICATION",
95
- ACCESS_MODULE_TENANT_MANAGEMENT_FEATURE_READING_TYPES_MANAGEMENT = "ACCESS.MODULE_TENANT_MANAGEMENT.FEATURE_READING_TYPES_MANAGEMENT",
96
- ACCESS_MODULE_TENANT_MANAGEMENT_FEATURE_INTEGRATIONS = "ACCESS.MODULE_TENANT_MANAGEMENT.FEATURE_INTEGRATIONS",
97
- ACCESS_MODULE_TENANT_MANAGEMENT_FEATURE_ACCESS_KEYS = "ACCESS.MODULE_TENANT_MANAGEMENT.FEATURE_ACCESS_KEYS",
98
- ACCESS_MODULE_TENANT_MANAGEMENT_FEATURE_AUDIT_LOG = "ACCESS.MODULE_TENANT_MANAGEMENT.FEATURE_AUDIT_LOG",
99
- ACCESS_MODULE_DEVICES_AND_EDGE_FEATURE_APPLICATION = "ACCESS.MODULE_DEVICES_AND_EDGE.FEATURE_APPLICATION",
100
- ACCESS_MODULE_DEVICES_AND_EDGE_FEATURE_DEVICES = "ACCESS.MODULE_DEVICES_AND_EDGE.FEATURE_DEVICES",
101
- ACCESS_MODULE_DEVICES_AND_EDGE_FEATURE_TYPES = "ACCESS.MODULE_DEVICES_AND_EDGE.FEATURE_TYPES",
102
- ACCESS_MODULE_DEVICES_AND_EDGE_FEATURE_GROUPS = "ACCESS.MODULE_DEVICES_AND_EDGE.FEATURE_GROUPS",
103
- ACCESS_MODULE_DATA_MANAGEMENT_FEATURE_APPLICATION = "ACCESS.MODULE_DATA_MANAGEMENT.FEATURE_APPLICATION",
104
- ACCESS_MODULE_DATA_MANAGEMENT_FEATURE_DATA_MANAGEMENT = "ACCESS.MODULE_DATA_MANAGEMENT.FEATURE_DATA_MANAGEMENT",
105
- ACCESS_MODULE_DATA_MANAGEMENT_FEATURE_TYPES = "ACCESS.MODULE_DATA_MANAGEMENT.FEATURE_TYPES",
106
- ACCESS_MODULE_RULE_ENGINE_FEATURE_APPLICATION = "ACCESS.MODULE_RULE_ENGINE.FEATURE_APPLICATION",
107
- ACCESS_MODULE_DASHBOARDS_FEATURE_APPLICATION = "ACCESS.MODULE_DASHBOARDS.FEATURE_APPLICATION",
108
- ACCESS_MODULE_MESSAGES_FEATURE_APPLICATION = "ACCESS.MODULE_MESSAGES.FEATURE_APPLICATION",
109
- ACCESS_MODULE_MESSAGES_FEATURE_MESSAGE_TEMPLATES = "ACCESS.MODULE_MESSAGES.FEATURE_MESSAGE_TEMPLATES",
110
- ACCESS_MODULE_MESSAGES_FEATURE_MESSAGES = "ACCESS.MODULE_MESSAGES.FEATURE_MESSAGES",
111
- PLATFORM_MANAGEMENT_SETTINGS_VIEW = "PLATFORM_MANAGEMENT.SETTINGS.VIEW",
112
- PLATFORM_MANAGEMENT_SETTINGS_MANAGE = "PLATFORM_MANAGEMENT.SETTINGS.MANAGE",
113
- PLATFORM_MANAGEMENT_TENANTS_VIEW = "PLATFORM_MANAGEMENT.TENANTS.VIEW",
114
- PLATFORM_MANAGEMENT_TENANTS_MANAGE = "PLATFORM_MANAGEMENT.TENANTS.MANAGE",
115
- USER_MANAGEMENT_USERS_VIEW = "USER_MANAGEMENT.USERS.VIEW",
116
- USER_MANAGEMENT_USERS_MANAGE = "USER_MANAGEMENT.USERS.MANAGE",
117
- USER_MANAGEMENT_USER_GROUPS_VIEW = "USER_MANAGEMENT.USER_GROUPS.VIEW",
118
- USER_MANAGEMENT_USER_GROUPS_MANAGE = "USER_MANAGEMENT.USER_GROUPS.MANAGE",
119
- USER_MANAGEMENT_GLOBAL_ROLES_MANAGE = "USER_MANAGEMENT.GLOBAL_ROLES.MANAGE",
120
- USER_MANAGEMENT_INVENTORY_ROLES_MANAGE = "USER_MANAGEMENT.INVENTORY_ROLES.MANAGE",
121
- TENANT_CONFIGURATION_READING_TYPE_MANAGEMENT_MANAGE = "TENANT_CONFIGURATION.READING_TYPE_MANAGEMENT.MANAGE",
122
- TENANT_CONFIGURATION_INTEGRATIONS_VIEW = "TENANT_CONFIGURATION.INTEGRATIONS.VIEW",
123
- TENANT_CONFIGURATION_INTEGRATIONS_MANAGE = "TENANT_CONFIGURATION.INTEGRATIONS.MANAGE",
124
- TENANT_CONFIGURATION_ACCESS_KEYS_VIEW = "TENANT_CONFIGURATION.ACCESS_KEYS.VIEW",
125
- TENANT_CONFIGURATION_ACCESS_KEYS_MANAGE = "TENANT_CONFIGURATION.ACCESS_KEYS.MANAGE",
126
- TENANT_CONFIGURATION_SETTINGS_MANAGE = "TENANT_CONFIGURATION.SETTINGS.MANAGE",
127
- DEVICE_MANAGEMENT_DEVICE_GROUPS_VIEW = "DEVICE_MANAGEMENT.DEVICE_GROUPS.VIEW",
128
- DEVICE_MANAGEMENT_DEVICE_GROUPS_MANAGE = "DEVICE_MANAGEMENT.DEVICE_GROUPS.MANAGE",
129
- DEVICE_MANAGEMENT_DEVICE_GROUPS_ACCESS_VIEW = "DEVICE_MANAGEMENT.DEVICE_GROUPS.ACCESS_VIEW",
130
- DEVICE_MANAGEMENT_DEVICE_GROUPS_ACCESS_MANAGE = "DEVICE_MANAGEMENT.DEVICE_GROUPS.ACCESS_MANAGE",
131
- DATA_MANAGEMENT_DATA_VIEW = "DATA_MANAGEMENT.DATA.VIEW",
132
- DATA_MANAGEMENT_DATA_MANAGE = "DATA_MANAGEMENT.DATA.MANAGE",
133
- DATA_MANAGEMENT_DATA_ACCESS_VIEW = "DATA_MANAGEMENT.DATA.ACCESS_VIEW",
134
- DATA_MANAGEMENT_DATA_ACCESS_MANAGE = "DATA_MANAGEMENT.DATA.ACCESS_MANAGE",
135
- DATA_MANAGEMENT_DATA_DASHBOARDS_VIEW = "DATA_MANAGEMENT.DATA.DASHBOARDS_VIEW",
136
- DATA_MANAGEMENT_DATA_DASHBOARDS_MANAGE = "DATA_MANAGEMENT.DATA.DASHBOARDS_MANAGE",
137
- DATA_MANAGEMENT_SEMANTIC_TYPES_VIEW = "DATA_MANAGEMENT.SEMANTIC_TYPES.VIEW",
138
- DATA_MANAGEMENT_SEMANTIC_TYPES_MANAGE = "DATA_MANAGEMENT.SEMANTIC_TYPES.MANAGE",
139
- DATA_MANAGEMENT_SEMANTIC_TYPES_ACCESS_VIEW = "DATA_MANAGEMENT.SEMANTIC_TYPES.ACCESS_VIEW",
140
- DATA_MANAGEMENT_SEMANTIC_TYPES_ACCESS_MANAGE = "DATA_MANAGEMENT.SEMANTIC_TYPES.ACCESS_MANAGE",
141
- RULE_ENGINE_RULE_VIEW = "RULE_ENGINE.RULE.VIEW",
142
- RULE_ENGINE_RULE_MANAGE = "RULE_ENGINE.RULE.MANAGE",
143
- MESSAGES_TEMPLATES_VIEW = "MESSAGES.TEMPLATES.VIEW",
144
- MESSAGES_TEMPLATES_MANAGE = "MESSAGES.TEMPLATES.MANAGE"
145
- }
146
-
147
- declare const createGlobalPermissionsGuard: (availableRoutesGetter: () => Routes, fallbackRoute: string[], parentRoutes?: string[]) => (permissions: Permission | Permission[]) => CanActivateFn;
85
+ declare const createGlobalPermissionsGuard: (availableRoutesGetter: () => Routes, fallbackRoute: string[], parentRoutes?: string[]) => (permissions: string | string[]) => CanActivateFn;
148
86
 
149
87
  declare class AssetManager {
150
88
  /**
@@ -810,18 +748,17 @@ declare class DateTimeFormFieldComponent implements OnDestroy, ControlValueAcces
810
748
 
811
749
  declare class DragDropFileUploadComponent implements ControlValueAccessor, Validator, AfterViewInit, OnDestroy {
812
750
  controlDir: NgControl;
813
- private notificationService;
814
751
  dragDropZone: ElementRef<HTMLDivElement>;
815
752
  fileInput: ElementRef<HTMLInputElement>;
816
753
  accept: string;
817
- multiple?: boolean;
754
+ multiple: boolean;
818
755
  prompt: string;
819
- highlight: boolean;
820
- disabled: boolean;
756
+ highlight: _angular_core.WritableSignal<boolean>;
757
+ disabled: _angular_core.WritableSignal<boolean>;
821
758
  files$: BehaviorSubject<File[] | null>;
822
759
  TRUNCATE_NAME_LIMIT: number;
823
760
  private destroy$;
824
- constructor(controlDir: NgControl, notificationService: NotificationService);
761
+ constructor(controlDir: NgControl);
825
762
  onTouched: (ev?: any) => void;
826
763
  onValidatorChange: () => void;
827
764
  onChange: (value: any) => void;
@@ -840,9 +777,10 @@ declare class DragDropFileUploadComponent implements ControlValueAccessor, Valid
840
777
  onFileAdded({ target }: {
841
778
  target: any;
842
779
  }): void;
780
+ private handleFiles;
843
781
  deleteFile(event: MouseEvent, index: number): void;
844
782
  ngOnDestroy(): void;
845
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DragDropFileUploadComponent, [{ optional: true; self: true; }, null]>;
783
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DragDropFileUploadComponent, [{ optional: true; self: true; }]>;
846
784
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DragDropFileUploadComponent, "application-drag-drop-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; }, {}, never, never, true, never>;
847
785
  }
848
786
 
@@ -1051,6 +989,7 @@ declare class NestedListViewComponent<ItemType> {
1051
989
  defaultSearchAction: _angular_core.Signal<SearchAction | undefined>;
1052
990
  otherSearchActions: _angular_core.Signal<SearchAction[]>;
1053
991
  width: _angular_core.Signal<"w-full" | "basis-1/4" | "basis-1/2">;
992
+ selectionConfirmationAction: _angular_core.InputSignal<() => Observable<boolean>>;
1054
993
  loadingBreadcrumbs: _angular_core.WritableSignal<boolean>;
1055
994
  loadingChildren: _angular_core.WritableSignal<boolean>;
1056
995
  selectedItem: _angular_core.WritableSignal<NestedListItem<ItemType> | null>;
@@ -1078,7 +1017,7 @@ declare class NestedListViewComponent<ItemType> {
1078
1017
  isSvgIcon(item: NestedListItem<ItemType>): SvgIcon | null;
1079
1018
  formControlAction(params?: any): void;
1080
1019
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NestedListViewComponent<any>, never>;
1081
- 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; }; "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>;
1020
+ 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"; }, never, ["[app-no-items-message]", "[app-actions]", "[app-details]"], true, never>;
1082
1021
  }
1083
1022
 
1084
1023
  declare class PdfViewerComponent {
@@ -1537,5 +1476,5 @@ declare class ValueInputVectorComponent implements ControlValueAccessor, Validat
1537
1476
  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
1477
  }
1539
1478
 
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, NgTemplateContentDirective, NotificationService, OverflowClassDirective, PdfViewerComponent, PeriodErrorStateMatcher, Permission, PermissionsService, RELATIVE_TIME_PERIODS, RelativeTimePeriod, RequiresAllGlobalOrAssetPermissionsDirective, RequiresAllPermissionDirective, RequiresGlobalOrAsserPermissionDirective, RequiresPermissionDirective, ScrollIntoViewDirective, 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, createGlobalPermissionsGuard, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, 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 };
1479
+ 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, 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, createGlobalPermissionsGuard, daysAway, determineMagnitude, determineMinMaxValues, endOfPeriod, equalsByValue, fileSizeValidator, flatMap, flatten, format, formatDuration, generateRandomString, 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
1480
  export type { Authentication, AuthenticationClient, Authority, Color, ConfirmationData, DateRangeValues, ExternalFeature, Feature, ImportError, LoadedIcon, MapItem, MasterDetailDisplayRatio, NestedListItem, RelativeTimePeriodWithCustom, SearchAction, SortDirection$1 as SortDirection, StandardListItem, SvgIcon, Tab, Theme, TimeSeries, TimeSeriesData, TreeNode, User, ValueInputValidationConditions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wolkabout/commons",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.11",
6
6
  "@angular/common": "^20.3.9",