@mediusinc/mng-commons 5.2.0 → 5.3.0-rc.1
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/core/components/pages/error/error.page.component.d.ts +3 -0
- package/core/components/pages/not-found/not-found.page.component.d.ts +3 -0
- package/core/descriptors/model.descriptor.d.ts +3 -0
- package/core/enum/enum-helpers.d.ts +5 -0
- package/core/helpers/route.d.ts +3 -4
- package/core/index.d.ts +1 -1
- package/core/models/menu.model.d.ts +14 -2
- package/core/services/{local-storage-config.service.d.ts → commons-storage.service.d.ts} +4 -3
- package/core/services/commons.service.d.ts +24 -0
- package/core/services/tokens/module-config.token.d.ts +23 -2
- package/esm2022/core/components/pages/error/error.page.component.mjs +4 -1
- package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +4 -1
- package/esm2022/core/data-list/data-list-params-helpers.mjs +7 -4
- package/esm2022/core/descriptors/model.descriptor.mjs +1 -1
- package/esm2022/core/enum/enum-helpers.mjs +10 -1
- package/esm2022/core/helpers/route.mjs +1 -1
- package/esm2022/core/index.mjs +2 -2
- package/esm2022/core/models/menu.model.mjs +1 -1
- package/esm2022/core/pipes/enum.pipe.mjs +16 -5
- package/esm2022/core/provide.mjs +3 -3
- package/esm2022/core/router/route-builder.mjs +8 -1
- package/esm2022/core/security/permission.guard.mjs +2 -2
- package/esm2022/core/security/permission.service.mjs +2 -2
- package/esm2022/core/services/commons-storage.service.mjs +31 -0
- package/esm2022/core/services/commons.service.mjs +25 -1
- package/esm2022/core/services/tokens/module-config.token.mjs +1 -1
- package/esm2022/form/components/autocomplete/autocomplete.component.mjs +5 -15
- package/esm2022/model/descriptors/model.descriptor.mjs +10 -5
- package/esm2022/table/api/descriptors/column.descriptor.mjs +1 -1
- package/esm2022/table/api/models/table.model.mjs +2 -3
- package/esm2022/table/components/table/table.component.mjs +14 -42
- package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +18 -4
- package/esm2022/tableview/api/action/descriptors/action.descriptor.mjs +12 -13
- package/esm2022/tableview/api/action/helpers/data-provider-executors.mjs +2 -2
- package/esm2022/tableview/api/editor/descriptors/editor.descriptor.mjs +16 -24
- package/esm2022/tableview/api/editor/descriptors/field-action.descriptor.mjs +4 -8
- package/esm2022/tableview/api/editor/descriptors/field-base.descriptor.mjs +5 -12
- package/esm2022/tableview/api/editor/descriptors/field-group.descriptor.mjs +13 -19
- package/esm2022/tableview/api/editor/descriptors/field-lookup.descriptor.mjs +7 -7
- package/esm2022/tableview/api/editor/descriptors/field-many.descriptor.mjs +7 -7
- package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +8 -4
- package/esm2022/tableview/api/editor/models/field.model.mjs +4 -3
- package/esm2022/tableview/api/editor/models/formly-field.model.mjs +1 -1
- package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +3 -3
- package/esm2022/tableview/api/tableview/helpers/tableview-default-actions.mjs +3 -3
- package/esm2022/tableview/editor/components/editor/form-editor.component.mjs +2 -2
- package/esm2022/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.mjs +12 -5
- package/esm2022/tableview/editor/components/formly/fields/formly-field-input/formly-field-input.component.mjs +6 -4
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +8 -7
- package/esm2022/tableview/editor/components/formly/fields/formly-field-table-dialog-multiselect/formly-field-table-dialog-multiselect.component.mjs +4 -3
- package/esm2022/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.mjs +13 -4
- package/esm2022/tableview/editor/components/formly/fields/formly-field-type.abstract.component.mjs +7 -1
- package/esm2022/tableview/editor/components/formly/pipes/formly-field-label.pipe.mjs +19 -0
- package/esm2022/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.mjs +33 -17
- package/esm2022/tableview/editor/helpers/editor-field.mjs +39 -0
- package/esm2022/tableview/editor/helpers/editor-formly.mjs +21 -15
- package/esm2022/tableview/editor/helpers/formly-config.mjs +13 -17
- package/esm2022/tableview/index.mjs +2 -1
- package/fesm2022/mediusinc-mng-commons-core.mjs +78 -17
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +4 -14
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-model.mjs +9 -4
- package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +1 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table.mjs +13 -41
- package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +72 -92
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +171 -69
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/form/components/autocomplete/autocomplete.component.d.ts +1 -2
- package/i18n/en.json +21 -0
- package/i18n/sl.json +21 -0
- package/model/descriptors/model.descriptor.d.ts +4 -2
- package/package.json +1 -1
- package/table/api/descriptors/column.descriptor.d.ts +2 -5
- package/table/api/models/table.model.d.ts +1 -2
- package/table/components/table/table.component.d.ts +4 -12
- package/tableview/action/components/editor/injector-context/action-editor-injector-context.component.d.ts +2 -0
- package/tableview/api/action/descriptors/action.descriptor.d.ts +3 -4
- package/tableview/api/editor/descriptors/editor.descriptor.d.ts +8 -8
- package/tableview/api/editor/descriptors/field-action.descriptor.d.ts +3 -4
- package/tableview/api/editor/descriptors/field-base.descriptor.d.ts +11 -13
- package/tableview/api/editor/descriptors/field-group.descriptor.d.ts +14 -17
- package/tableview/api/editor/descriptors/field-lookup.descriptor.d.ts +5 -5
- package/tableview/api/editor/descriptors/field-many.descriptor.d.ts +4 -4
- package/tableview/api/editor/descriptors/field.descriptor.d.ts +4 -3
- package/tableview/api/editor/models/field.model.d.ts +3 -2
- package/tableview/api/editor/models/formly-field.model.d.ts +2 -0
- package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +8 -8
- package/tableview/editor/components/formly/fields/formly-field-fieldset/formly-field-fieldset.component.d.ts +5 -2
- package/tableview/editor/components/formly/fields/formly-field-tabs/formly-field-tabs.component.d.ts +5 -1
- package/tableview/editor/components/formly/fields/formly-field-type.abstract.component.d.ts +2 -1
- package/tableview/editor/components/formly/pipes/formly-field-label.pipe.d.ts +8 -0
- package/tableview/editor/components/formly/wrappers/formly-field-wrapper/formly-field-wrapper.component.d.ts +7 -3
- package/tableview/editor/helpers/editor-field.d.ts +2 -0
- package/tableview/editor/helpers/editor-formly.d.ts +4 -4
- package/tableview/index.d.ts +1 -0
- package/version-info.json +6 -6
- package/esm2022/core/services/local-storage-config.service.mjs +0 -29
|
@@ -420,7 +420,13 @@ class CommonsService {
|
|
|
420
420
|
});
|
|
421
421
|
this.breadcrumbs = signal([]);
|
|
422
422
|
// visual
|
|
423
|
+
/**
|
|
424
|
+
* @deprecated Use layout colorScheme instead.
|
|
425
|
+
*/
|
|
423
426
|
this.colorScheme = signal(this.moduleConfig?.app?.colorScheme ?? 'light');
|
|
427
|
+
/**
|
|
428
|
+
* @deprecated Use layout colorScheme instead.
|
|
429
|
+
*/
|
|
424
430
|
this.colorSchemeIsLight = computed(() => this.colorScheme() === 'light');
|
|
425
431
|
// user
|
|
426
432
|
this.user = signal(undefined);
|
|
@@ -428,11 +434,29 @@ class CommonsService {
|
|
|
428
434
|
// APP section
|
|
429
435
|
this.appName = signal(this.moduleConfig?.app?.name ?? 'app.name');
|
|
430
436
|
this.appOwner = signal(this.moduleConfig?.app?.owner ?? 'app.owner');
|
|
437
|
+
/**
|
|
438
|
+
* @deprecated Use layout app logo instead.
|
|
439
|
+
*/
|
|
431
440
|
this.appLogoLight = signal(this.moduleConfig?.app?.logoPathLight ? this.moduleConfig.app.logoPathLight : this.moduleConfig?.app?.logoPath ?? 'assets/layout/images/logo.png');
|
|
441
|
+
/**
|
|
442
|
+
* @deprecated Use layout app logo instead.
|
|
443
|
+
*/
|
|
432
444
|
this.appLogoDark = signal(this.moduleConfig?.app?.logoPathDark ? this.moduleConfig.app.logoPathDark : this.moduleConfig?.app?.logoPath ?? 'assets/layout/images/logo.png');
|
|
445
|
+
/**
|
|
446
|
+
* @deprecated Use layout app logo instead.
|
|
447
|
+
*/
|
|
433
448
|
this.appLogo = computed(() => (this.colorSchemeIsLight() ? this.appLogoLight() : this.appLogoDark()));
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated Use layout app logo instead.
|
|
451
|
+
*/
|
|
434
452
|
this.appLogoNameLight = signal(this.moduleConfig?.app?.logoNamePathLight ? this.moduleConfig.app.logoNamePathLight : this.moduleConfig?.app?.logoNamePath ?? 'assets/layout/images/logo-appname.png');
|
|
453
|
+
/**
|
|
454
|
+
* @deprecated Use layout app logo instead.
|
|
455
|
+
*/
|
|
435
456
|
this.appLogoNameDark = signal(this.moduleConfig?.app?.logoNamePathDark ? this.moduleConfig.app.logoNamePathDark : this.moduleConfig?.app?.logoNamePath ?? 'assets/layout/images/logo-appname.png');
|
|
457
|
+
/**
|
|
458
|
+
* @deprecated Use layout app logo instead.
|
|
459
|
+
*/
|
|
436
460
|
this.appLogoName = computed(() => (this.colorSchemeIsLight() ? this.appLogoNameLight() : this.appLogoNameDark()));
|
|
437
461
|
this.appLocales = signal(this.moduleConfig?.app?.locales ?? ['en']);
|
|
438
462
|
this._appLocale = signal(this.initAppLocale());
|
|
@@ -676,6 +700,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
676
700
|
type: Injectable
|
|
677
701
|
}], ctorParameters: () => [] });
|
|
678
702
|
|
|
703
|
+
/**
|
|
704
|
+
* @deprecated Use ErrorPageComponent from layout instead.
|
|
705
|
+
*/
|
|
679
706
|
class ErrorPageComponent {
|
|
680
707
|
constructor(commons) {
|
|
681
708
|
this.commons = commons;
|
|
@@ -688,6 +715,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
688
715
|
args: [{ standalone: true, selector: 'mng-error-page', imports: [ButtonModule, TranslateModule, RouterLink], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"'exception-body min-h-screen ' + (commons.colorSchemeIsLight() ? 'layout-light' : 'layout-dark')\">\n <div class=\"exception-container min-h-screen flex align-items-center justify-content-center flex-column bg-auto md:bg-contain bg-no-repeat\">\n <div class=\"exception-panel text-center flex align-items-center justify-content-center flex-column\">\n <h1 class=\"text-red-400 mb-0\">{{ 'pages.notFound.title' | translate }}</h1>\n <h3 class=\"text-red-300\">{{ 'pages.notFound.subtitle' | translate }}</h3>\n <button type=\"button\" pButton [label]=\"'general.returnHome' | translate\" [routerLink]=\"['/']\"></button>\n </div>\n <div class=\"exception-footer align-items-center flex\">\n <img [src]=\"commons.appLogo()\" class=\"exception-logo\" alt=\"App logo\" />\n <img [src]=\"commons.appLogoName()\" class=\"exception-appname ml-3\" alt=\"App name\" />\n </div>\n </div>\n</div>\n", styles: [".exception-body{background:var(--surface-ground)}.exception-body .exception-container{background:var(--exception-pages-image);background-repeat:no-repeat;background-size:contain;box-sizing:border-box}.exception-body .exception-container .exception-panel{box-sizing:border-box;flex-grow:1;margin-top:3rem;margin-bottom:3rem}.exception-body .exception-container .exception-panel h1{font-size:140px;font-weight:900;text-shadow:0 0 50px rgba(252,97,97,.2)}.exception-body .exception-container .exception-panel h3{font-size:80px;font-weight:900;margin-top:-90px;margin-bottom:50px}.exception-body .exception-container .exception-panel button{margin-top:50px}.exception-body .exception-container .exception-footer{margin-bottom:2rem}.exception-body .exception-container .exception-footer .exception-logo{width:34px}.exception-body .exception-container .exception-footer .exception-appname{width:72px}\n"] }]
|
|
689
716
|
}], ctorParameters: () => [{ type: CommonsService }] });
|
|
690
717
|
|
|
718
|
+
/**
|
|
719
|
+
* @deprecated Use ErrorPageComponent from layout instead.
|
|
720
|
+
*/
|
|
691
721
|
class NotFoundPageComponent {
|
|
692
722
|
constructor(commons) {
|
|
693
723
|
this.commons = commons;
|
|
@@ -897,7 +927,10 @@ function dataListParamsToUrlQuery(params, defaults = {
|
|
|
897
927
|
(defaultFilter.caseSensitive ?? false) === (paramFilter.caseSensitive ?? false)) {
|
|
898
928
|
return;
|
|
899
929
|
}
|
|
900
|
-
if (paramFilter.value == null &&
|
|
930
|
+
if (paramFilter.value == null &&
|
|
931
|
+
defaultFilter?.value == null &&
|
|
932
|
+
paramFilter.matchMode !== FilterMatchMode.Exists &&
|
|
933
|
+
paramFilter.matchMode !== FilterMatchMode.DoesNotExist) {
|
|
901
934
|
return;
|
|
902
935
|
}
|
|
903
936
|
urlParams[k] = dataListParamsFiltersToUrlQuery(params, k, true);
|
|
@@ -982,14 +1015,14 @@ function dataListParamsFiltersToUrlQuery(params, key, allowNull = false) {
|
|
|
982
1015
|
*/
|
|
983
1016
|
function dataListParamsFilterToUrlQuery(paramFilter, allowNull = false) {
|
|
984
1017
|
const filterValueAsArray = Array.isArray(paramFilter?.value) ? paramFilter.value.filter(v => v !== undefined && (allowNull || v !== null)) : undefined;
|
|
1018
|
+
const matchMode = paramFilter?.matchMode ?? FilterMatchMode.Equals;
|
|
985
1019
|
if (paramFilter === undefined ||
|
|
986
|
-
(!allowNull && paramFilter.value == null) ||
|
|
1020
|
+
(!allowNull && matchMode !== 'exists' && matchMode !== 'doesNotExist' && paramFilter.value == null) ||
|
|
987
1021
|
(typeof paramFilter.value === 'string' && paramFilter.value.length === 0) ||
|
|
988
1022
|
(Array.isArray(filterValueAsArray) && filterValueAsArray.length === 0)) {
|
|
989
1023
|
// no need to include filters for empty values
|
|
990
1024
|
return undefined;
|
|
991
1025
|
}
|
|
992
|
-
const matchMode = paramFilter.matchMode ?? FilterMatchMode.Equals;
|
|
993
1026
|
if (matchMode === FilterMatchMode.Between && !(Array.isArray(filterValueAsArray) && filterValueAsArray.length === 2)) {
|
|
994
1027
|
throw new CommonsInternalError(`Filter match mode between requires exactly 2 values: ${paramFilter.value}`);
|
|
995
1028
|
}
|
|
@@ -1376,6 +1409,15 @@ function getEnumConstantNamesFromObject(enumObj) {
|
|
|
1376
1409
|
// in number enum, the numbers are also represented in objects and should be filtered out
|
|
1377
1410
|
return Object.keys(enumObj).filter(v => isNaN(+v));
|
|
1378
1411
|
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Returns array of values for constants in enum.
|
|
1414
|
+
* @param enumType Enum object.
|
|
1415
|
+
*/
|
|
1416
|
+
function getEnumConstantValues(enumType) {
|
|
1417
|
+
return Object.keys(enumType)
|
|
1418
|
+
.filter(v => isNaN(+v))
|
|
1419
|
+
.map(v => enumType[v]);
|
|
1420
|
+
}
|
|
1379
1421
|
/**
|
|
1380
1422
|
* Returns array of string values for constants in enum.
|
|
1381
1423
|
* @param enumType Enum object.
|
|
@@ -2284,14 +2326,25 @@ function findReflectEnumName(enumType) {
|
|
|
2284
2326
|
|
|
2285
2327
|
class EnumPipe {
|
|
2286
2328
|
transform(value, enumDesc, i18nPath) {
|
|
2287
|
-
if (
|
|
2329
|
+
if (value == null || (typeof value !== 'number' && typeof value !== 'string') || !enumDesc) {
|
|
2288
2330
|
return value;
|
|
2289
2331
|
}
|
|
2290
|
-
const
|
|
2332
|
+
const enumValue = enumDesc.nameAsValue ? value : getEnumConstantNameFromObject(enumDesc.type, value);
|
|
2333
|
+
if (enumValue == null) {
|
|
2334
|
+
// no constant name found (probably not enum), return value
|
|
2335
|
+
return value;
|
|
2336
|
+
}
|
|
2337
|
+
if (enumDesc.nameAsValue) {
|
|
2338
|
+
// check if value exists in enum if nameAsValue is used
|
|
2339
|
+
const enumValueCheck = getEnumConstantValues(enumDesc.type).find(v => v === enumValue);
|
|
2340
|
+
if (enumValueCheck == null) {
|
|
2341
|
+
return value;
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2291
2344
|
if (typeof i18nPath === 'undefined' && enumDesc) {
|
|
2292
2345
|
i18nPath = enumDesc.i18nBaseKey ?? findReflectEnumName(enumDesc.type);
|
|
2293
2346
|
}
|
|
2294
|
-
return i18nPath ? `${i18nPath}.${
|
|
2347
|
+
return i18nPath ? `${i18nPath}.${enumValue}` : enumValue;
|
|
2295
2348
|
}
|
|
2296
2349
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2297
2350
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.0.5", ngImport: i0, type: EnumPipe, isStandalone: true, name: "mngEnum" }); }
|
|
@@ -2788,7 +2841,7 @@ class PermissionService {
|
|
|
2788
2841
|
canActivateRouteService(permission, route) {
|
|
2789
2842
|
const serviceInstance = this.injector.get(permission.service);
|
|
2790
2843
|
if (!serviceInstance) {
|
|
2791
|
-
this.logger.debug(`WARNING: Service instance could not be
|
|
2844
|
+
this.logger.debug(`WARNING: Service instance could not be retrieved for type ${permission.service}`);
|
|
2792
2845
|
return of(false);
|
|
2793
2846
|
}
|
|
2794
2847
|
return serviceInstance.canActivateRoute(route);
|
|
@@ -2856,7 +2909,7 @@ const permissionGuard = (route) => {
|
|
|
2856
2909
|
const permission = inject(PermissionService);
|
|
2857
2910
|
const data = route.data;
|
|
2858
2911
|
if (data.permissions) {
|
|
2859
|
-
return permission.canActivateRoute(data.permissions).pipe(first());
|
|
2912
|
+
return permission.canActivateRoute(data.permissions, route).pipe(first());
|
|
2860
2913
|
}
|
|
2861
2914
|
else {
|
|
2862
2915
|
return of(true);
|
|
@@ -3178,6 +3231,13 @@ class RouteBuilder {
|
|
|
3178
3231
|
if (finalChild.routerLink) {
|
|
3179
3232
|
finalChild.routerLink = removeRouteEmptyPathSegments(finalChild.routerLink);
|
|
3180
3233
|
}
|
|
3234
|
+
// Propagate permissions to children
|
|
3235
|
+
if (!finalChild.permissions && this.routeData.permissions) {
|
|
3236
|
+
finalChild.permissions = this.routeData.permissions;
|
|
3237
|
+
}
|
|
3238
|
+
if (!finalChild.permissions && this.permissions) {
|
|
3239
|
+
finalChild.permissions = this.permissions;
|
|
3240
|
+
}
|
|
3181
3241
|
return finalChild;
|
|
3182
3242
|
};
|
|
3183
3243
|
this.menuItemChildren.forEach(child => menuItemChildren.push(processMenuItemChild(child)));
|
|
@@ -3823,30 +3883,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
3823
3883
|
type: Injectable
|
|
3824
3884
|
}] });
|
|
3825
3885
|
|
|
3826
|
-
class
|
|
3886
|
+
class CommonsStorageService {
|
|
3827
3887
|
constructor() {
|
|
3888
|
+
this.localStorage = inject(BROWSER_STORAGE_IT);
|
|
3828
3889
|
this._configKey = 'CommonsUserPrefs';
|
|
3829
3890
|
}
|
|
3830
3891
|
buildLocalStorageKey(type, key) {
|
|
3831
3892
|
return `${this._configKey}_${type}_${key}`;
|
|
3832
3893
|
}
|
|
3833
3894
|
getItem(type, key) {
|
|
3834
|
-
const localstorageData = localStorage.getItem(this.buildLocalStorageKey(type, key));
|
|
3895
|
+
const localstorageData = this.localStorage.getItem(this.buildLocalStorageKey(type, key));
|
|
3835
3896
|
if (localstorageData) {
|
|
3836
3897
|
return JSON.parse(localstorageData);
|
|
3837
3898
|
}
|
|
3838
3899
|
return undefined;
|
|
3839
3900
|
}
|
|
3840
3901
|
setItem(type, key, value) {
|
|
3841
|
-
localStorage.setItem(this.buildLocalStorageKey(type, key), JSON.stringify(value));
|
|
3902
|
+
this.localStorage.setItem(this.buildLocalStorageKey(type, key), JSON.stringify(value));
|
|
3842
3903
|
}
|
|
3843
3904
|
removeItem(type, key) {
|
|
3844
|
-
localStorage.removeItem(this.buildLocalStorageKey(type, key));
|
|
3905
|
+
this.localStorage.removeItem(this.buildLocalStorageKey(type, key));
|
|
3845
3906
|
}
|
|
3846
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type:
|
|
3847
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type:
|
|
3907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3908
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService }); }
|
|
3848
3909
|
}
|
|
3849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type:
|
|
3910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService, decorators: [{
|
|
3850
3911
|
type: Injectable
|
|
3851
3912
|
}] });
|
|
3852
3913
|
|
|
@@ -3898,7 +3959,7 @@ function provideCommons(config, ...features) {
|
|
|
3898
3959
|
CommonsService,
|
|
3899
3960
|
CommonsRouterService,
|
|
3900
3961
|
PermissionService,
|
|
3901
|
-
|
|
3962
|
+
CommonsStorageService,
|
|
3902
3963
|
{
|
|
3903
3964
|
provide: COMMONS_MODULE_CONFIG_IT,
|
|
3904
3965
|
useValue: config
|
|
@@ -3947,5 +4008,5 @@ function provideCommons(config, ...features) {
|
|
|
3947
4008
|
* Generated bundle index. Do not edit.
|
|
3948
4009
|
*/
|
|
3949
4010
|
|
|
3950
|
-
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, ComponentDirective, DataProvider, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, ErrorPageComponent, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS,
|
|
4011
|
+
export { ACommonsErrorBase, APermissions, BROWSER_STORAGE_IT, BooleanPipe, COMMONS_INITIALIZER_IT, COMMONS_MODULE_CONFIG_IT, ClassMapPipe, CommonsConfigurationService, CommonsErrorHandler, CommonsFeatureTypeEnum, CommonsHttpError, CommonsInitEventEnum, CommonsInitService, CommonsInternalError, CommonsRouterService, CommonsService, CommonsStorageService, ComponentDirective, DataProvider, DataProviderInst, EnumName, EnumPipe, EnumerateAsyncPipe, EnumeratePipe, ErrorPageComponent, FilterMatchMode, GetterPipe, I18nPropertyPipe, JsonPathPipe, LOG_PUBLISHERS, LogLevelEnum, LogPublisherConsoleService, LoggerService, NotFoundPageComponent, NotificationWrapperComponent, ParametrizePipe, PermissionService, PermissionTypeEnum, Permissions, RouteBuilder, RoutesBuilder, StyleLevelEnum, StyleSizeEnum, Styles, TemplateDirective, TemplatePipe, TypeName, TypeRegistry, adjustRouteMenuLazyChildrenRouterLinks, angularDateFormatHasSeconds, angularDateFormatHasTime, appendRoutePathToBasePath, boolean$Attribute, booleanOrUndefinedAttribute, commonsActionErrorContextToString, commonsErrorToString, commonsInitializerProvider, copyDataListParams, createLazyChildrenRoute, createLazyRoute, createRoute, createRouteRedirect, createRoutes, dataListParamsFilterToUrlQuery, dataListParamsFilterValueToUrlString, dataListParamsFiltersToUrlQuery, dataListParamsSortToUrlQuery, dataListParamsToUrlQuery, dataProviderBase, dataProviderFromClass, dataProviderWithService, dateToIsoString, defineReflectEnumName, defineReflectTypeName, doesUrlMatchRouterLink, errorCauseToString, errorToString, escapeHtml, escapeHtmlAny, findReflectEnumName, findReflectTypeName, findTemplateByName, flattenObjectKeys, fromAngularDateFormatToPrime, fromEnumConstantsAsValueArray, fromEnumValuesAsValueArray, fromSubscribeError, fromTableLoadToDataListParams, fromUrlQueryToDataListParams, getEnumConstantName, getEnumConstantNameFromObject, getEnumConstantNames, getEnumConstantNamesFromObject, getEnumConstantValues, getEnumConstantValuesAsNumber, getEnumConstantValuesAsString, getEnumerationI18nBaseKey, getErrorLogLevel, getErrorName, getHttpErrorResponse, getHttpErrorResponseStatus, getHttpErrorResponseStatusText, getI18n, getI18nAsync, getI18nErrorParams, getI18nForError, getI18nTypeGroupKey, getI18nTypeKeyBasePath, getI18nTypeName, getI18nTypeNameAsync, getI18nTypeParams, getI18nTypeParamsAsync, getI18nTypePropertyKey, getI18nTypeTabKey, getObjectGetters, getObjectProperties, getObjectPropertyByPath, httpErrorResponseToString, isHttpErrorResponse, isPermitted, isRbacPermitted, itemIdToDefined, itemIdToNumber, itemIdToString, mapToDataList, mergeDataListParamsWithDefaults, number$Attribute, objectDeepCopy, objectDeepMerge, permissionGuard, populateI18nParams, populateI18nTypeParams, provideCommons, reflectEnumNameKey, reflectTypeNameExists, reflectTypeNameKey, removeRouteEmptyPathSegments, selectEnumerationI18n, selectI18n, stringify, throwError, toEnumerationI18nEnumerate, toObservable, toastMessage, valueToDefined };
|
|
3951
4012
|
//# sourceMappingURL=mediusinc-mng-commons-core.mjs.map
|