@wolkabout/commons 0.0.38 → 0.0.40
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/README.md +17 -17
- package/fesm2022/wolkabout-commons.mjs +246 -118
- package/fesm2022/wolkabout-commons.mjs.map +1 -1
- package/package.json +1 -1
- package/types/wolkabout-commons.d.ts +56 -18
package/package.json
CHANGED
|
@@ -1,21 +1,54 @@
|
|
|
1
|
+
import * as i32 from '@angular/router';
|
|
1
2
|
import { RouterLink, RouterOutlet, RouterLinkActive, Routes, CanActivateFn, QueryParamsHandling, Router, ActivatedRoute } from '@angular/router';
|
|
3
|
+
import * as i1 from '@angular/material/button';
|
|
2
4
|
import { MatButtonModule } from '@angular/material/button';
|
|
3
|
-
import * as rxjs from 'rxjs';
|
|
4
|
-
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
5
5
|
import * as _angular_core from '@angular/core';
|
|
6
6
|
import { InjectionToken, ElementRef, OnDestroy, TemplateRef, ViewContainerRef, Renderer2, AfterViewInit, AfterViewChecked, OnChanges, PipeTransform, OnInit, DestroyRef, Signal, WritableSignal } from '@angular/core';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import * as i2 from '@angular/material/checkbox';
|
|
8
|
+
import * as i3 from '@angular/material/toolbar';
|
|
9
|
+
import * as i4 from '@angular/material/menu';
|
|
10
|
+
import * as i5 from '@angular/material/form-field';
|
|
11
|
+
import * as i6 from '@angular/material/tooltip';
|
|
12
|
+
import * as i7 from '@angular/material/sidenav';
|
|
13
|
+
import * as i8 from '@angular/material/tabs';
|
|
14
|
+
import * as i9 from '@angular/material/table';
|
|
15
|
+
import * as i10 from '@angular/material/icon';
|
|
16
|
+
import * as i11 from '@angular/material/card';
|
|
17
|
+
import * as i12 from '@angular/material/select';
|
|
18
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
19
|
+
import * as i13 from '@angular/material/dialog';
|
|
20
|
+
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
21
|
+
import * as i14 from '@angular/material/sort';
|
|
22
|
+
import * as i15 from '@angular/material/radio';
|
|
23
|
+
import * as i16 from '@angular/material/core';
|
|
9
24
|
import { DateAdapter, ErrorStateMatcher } from '@angular/material/core';
|
|
25
|
+
import * as i17 from '@angular/material/divider';
|
|
26
|
+
import * as i18 from '@angular/material/input';
|
|
27
|
+
import * as i19 from '@angular/material/progress-bar';
|
|
28
|
+
import * as i20 from '@angular/material/progress-spinner';
|
|
29
|
+
import * as i21 from '@angular/material/tree';
|
|
30
|
+
import * as i22 from '@angular/material/expansion';
|
|
31
|
+
import * as i23 from '@angular/material/datepicker';
|
|
32
|
+
import { MatDateRangePicker } from '@angular/material/datepicker';
|
|
33
|
+
import * as i24 from '@angular/material/autocomplete';
|
|
34
|
+
import { MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
35
|
+
import * as i25 from '@angular/material/chips';
|
|
36
|
+
import * as i26 from '@angular/material/grid-list';
|
|
37
|
+
import * as i27 from '@angular/material/paginator';
|
|
38
|
+
import * as i28 from '@angular/material/slider';
|
|
39
|
+
import * as i29 from '@ngx-translate/core';
|
|
40
|
+
import { TranslateService, MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
|
|
41
|
+
import * as i30 from '@angular/forms';
|
|
42
|
+
import { ControlValueAccessor, AbstractControl, ValidationErrors, NgControl, FormControl, Validator, FormGroup, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms';
|
|
43
|
+
import * as i31 from '@angular/common';
|
|
44
|
+
import * as i33 from '@angular/cdk/drag-drop';
|
|
45
|
+
import * as rxjs from 'rxjs';
|
|
46
|
+
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
47
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
10
48
|
import * as ngx_echarts from 'ngx-echarts';
|
|
11
49
|
import { ThemeOption } from 'ngx-echarts';
|
|
12
|
-
import { ControlValueAccessor, AbstractControl, ValidationErrors, NgControl, FormControl, Validator, FormGroup, FormGroupDirective, NgForm, ValidatorFn } from '@angular/forms';
|
|
13
50
|
import { Overlay } from '@angular/cdk/overlay';
|
|
14
|
-
import { MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
15
51
|
import { EChartsOption } from 'echarts';
|
|
16
|
-
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
17
|
-
import { MatDateRangePicker } from '@angular/material/datepicker';
|
|
18
|
-
import { MatSelectChange } from '@angular/material/select';
|
|
19
52
|
import { DateTime } from 'luxon';
|
|
20
53
|
import { GoogleMap } from '@angular/google-maps';
|
|
21
54
|
import { MarkerClusterer } from '@googlemaps/markerclusterer';
|
|
@@ -24,6 +57,11 @@ import { DomSanitizer, SafeUrl, SafeHtml, SafeResourceUrl } from '@angular/platf
|
|
|
24
57
|
|
|
25
58
|
declare const angularComponents: (typeof MatButtonModule)[];
|
|
26
59
|
declare const shared: (typeof MatButtonModule | typeof RouterLink | typeof RouterOutlet | typeof RouterLinkActive)[];
|
|
60
|
+
declare class SharedModule {
|
|
61
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
62
|
+
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]>;
|
|
63
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SharedModule>;
|
|
64
|
+
}
|
|
27
65
|
|
|
28
66
|
interface SvgIcon {
|
|
29
67
|
id: string;
|
|
@@ -134,7 +172,6 @@ interface Feature {
|
|
|
134
172
|
app: string;
|
|
135
173
|
name: string;
|
|
136
174
|
icon: SvgIcon;
|
|
137
|
-
order: number;
|
|
138
175
|
entryRoute: string;
|
|
139
176
|
translations: string[];
|
|
140
177
|
permission?: string | string[];
|
|
@@ -149,18 +186,19 @@ interface ExternalFeature {
|
|
|
149
186
|
}
|
|
150
187
|
declare class FeatureRegistry {
|
|
151
188
|
private readonly injector;
|
|
152
|
-
private readonly
|
|
189
|
+
private readonly loadedFeatures;
|
|
153
190
|
private readonly _features$;
|
|
154
|
-
private expectedFeatures;
|
|
155
191
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
|
|
192
|
+
* Call when deploying a standalone app or when there are no external modules to load.
|
|
193
|
+
* Immediately emits the currently registered features.
|
|
194
|
+
*/
|
|
195
|
+
noExternalModules(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Call when deploying a host application.
|
|
198
|
+
* Emits the registered features once all external modules loaded (successfully or unsuccessfully).
|
|
159
199
|
*/
|
|
160
|
-
setExpectedFeatures(expectedFeatures: number): void;
|
|
161
200
|
loadExternalFeatures(features: ExternalFeature[]): void;
|
|
162
201
|
registerFeature(feature: Feature): void;
|
|
163
|
-
finalizeLoading(): void;
|
|
164
202
|
get features$(): Observable<Feature[]>;
|
|
165
203
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureRegistry, never>;
|
|
166
204
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FeatureRegistry>;
|
|
@@ -1476,5 +1514,5 @@ declare class ValueInputVectorComponent implements ControlValueAccessor, Validat
|
|
|
1476
1514
|
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>;
|
|
1477
1515
|
}
|
|
1478
1516
|
|
|
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 };
|
|
1517
|
+
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, 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 };
|
|
1480
1518
|
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 };
|