@mediusinc/mng-commons 5.3.0-rc.0 → 5.3.0-rc.2

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.
Files changed (101) hide show
  1. package/core/components/pages/error/error.page.component.d.ts +3 -0
  2. package/core/components/pages/not-found/not-found.page.component.d.ts +3 -0
  3. package/core/data-list/filter-metadata.model.d.ts +20 -0
  4. package/core/enum/enum-helpers.d.ts +5 -0
  5. package/core/helpers/number.d.ts +5 -0
  6. package/core/helpers/type-helpers.d.ts +1 -0
  7. package/core/index.d.ts +3 -1
  8. package/core/provide.d.ts +3 -2
  9. package/core/services/{local-storage-config.service.d.ts → commons-storage.service.d.ts} +4 -3
  10. package/core/services/commons.service.d.ts +24 -0
  11. package/core/services/tokens/module-config.token.d.ts +30 -8
  12. package/esm2022/core/components/pages/error/error.page.component.mjs +4 -1
  13. package/esm2022/core/components/pages/not-found/not-found.page.component.mjs +4 -1
  14. package/esm2022/core/data-list/data-list-params-helpers.mjs +3 -1
  15. package/esm2022/core/data-list/filter-metadata.model.mjs +2 -0
  16. package/esm2022/core/enum/enum-helpers.mjs +10 -1
  17. package/esm2022/core/helpers/date.mjs +2 -2
  18. package/esm2022/core/helpers/number.mjs +19 -0
  19. package/esm2022/core/helpers/type-helpers.mjs +1 -1
  20. package/esm2022/core/index.mjs +4 -2
  21. package/esm2022/core/pipes/boolean.pipe.mjs +7 -1
  22. package/esm2022/core/pipes/enum.pipe.mjs +16 -5
  23. package/esm2022/core/provide.mjs +6 -5
  24. package/esm2022/core/router/route-builder.mjs +8 -1
  25. package/esm2022/core/security/permission.guard.mjs +2 -2
  26. package/esm2022/core/security/permission.service.mjs +2 -2
  27. package/esm2022/core/services/commons-storage.service.mjs +31 -0
  28. package/esm2022/core/services/commons.service.mjs +25 -1
  29. package/esm2022/core/services/tokens/module-config.token.mjs +1 -1
  30. package/esm2022/filter/descriptors/filter-lookup.descriptor.mjs +2 -3
  31. package/esm2022/filter/descriptors/filter.descriptor.mjs +76 -31
  32. package/esm2022/filter/models/filter.model.mjs +6 -1
  33. package/esm2022/form/components/date-range/date-range.component.mjs +45 -14
  34. package/esm2022/form/components/dropdown/dropdown.component.mjs +77 -93
  35. package/esm2022/form/components/number-range/number-range.component.mjs +29 -12
  36. package/esm2022/table/api/descriptors/column.descriptor.mjs +2 -1
  37. package/esm2022/table/api/descriptors/table.descriptor.mjs +11 -20
  38. package/esm2022/table/api/models/table-columns.model.mjs +1 -1
  39. package/esm2022/table/api/models/table.model.mjs +1 -1
  40. package/esm2022/table/components/column-filter/column-filter.component.mjs +396 -0
  41. package/esm2022/table/components/filter/filter-active-tag/filter-active-tag.component.mjs +52 -0
  42. package/esm2022/table/components/filter/filter-form/filter-form.component.mjs +197 -0
  43. package/esm2022/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.mjs +135 -0
  44. package/esm2022/table/components/table/table.component.mjs +39 -30
  45. package/esm2022/table/helpers/filters.mjs +297 -0
  46. package/esm2022/table/index.mjs +13 -2
  47. package/esm2022/table/models/filter.model.mjs +2 -0
  48. package/esm2022/table/pipes/filter-value.pipe.mjs +77 -0
  49. package/esm2022/table/provide.mjs +19 -0
  50. package/esm2022/table/services/data-list.service.mjs +1 -1
  51. package/esm2022/table/services/table-feature-config.token.mjs +3 -0
  52. package/esm2022/tableview/action/components/editor/injector-context/action-editor-injector-context.component.mjs +2 -2
  53. package/esm2022/tableview/action/components/localization/data-language-dropdown.component.mjs +2 -2
  54. package/esm2022/tableview/api/editor/descriptors/field.descriptor.mjs +1 -1
  55. package/esm2022/tableview/api/editor/models/editor-fields.model.mjs +1 -1
  56. package/esm2022/tableview/api/tableview/descriptors/tableview.descriptor.mjs +11 -13
  57. package/esm2022/tableview/editor/components/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +2 -2
  58. package/esm2022/tableview/tableview/components/tableview/tableview.component.mjs +3 -4
  59. package/fesm2022/mediusinc-mng-commons-core.mjs +103 -17
  60. package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
  61. package/fesm2022/mediusinc-mng-commons-filter.mjs +81 -32
  62. package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
  63. package/fesm2022/mediusinc-mng-commons-form.mjs +149 -117
  64. package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
  65. package/fesm2022/mediusinc-mng-commons-table-api.mjs +11 -19
  66. package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
  67. package/fesm2022/mediusinc-mng-commons-table.mjs +836 -363
  68. package/fesm2022/mediusinc-mng-commons-table.mjs.map +1 -1
  69. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +10 -12
  70. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
  71. package/fesm2022/mediusinc-mng-commons-tableview.mjs +5 -5
  72. package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
  73. package/filter/descriptors/filter.descriptor.d.ts +60 -16
  74. package/filter/models/filter.model.d.ts +4 -0
  75. package/form/components/date-range/date-range.component.d.ts +9 -3
  76. package/form/components/dropdown/dropdown.component.d.ts +6 -7
  77. package/form/components/number-range/number-range.component.d.ts +8 -4
  78. package/i18n/en.json +40 -0
  79. package/i18n/sl.json +40 -0
  80. package/package.json +7 -7
  81. package/table/api/descriptors/table.descriptor.d.ts +7 -7
  82. package/table/api/models/table-columns.model.d.ts +3 -3
  83. package/table/api/models/table.model.d.ts +0 -12
  84. package/table/components/{column-filter-full/column-filter-full.component.d.ts → column-filter/column-filter.component.d.ts} +23 -38
  85. package/table/components/filter/filter-active-tag/filter-active-tag.component.d.ts +20 -0
  86. package/table/components/filter/filter-form/filter-form.component.d.ts +53 -0
  87. package/table/components/filter/filter-overlay-with-tag/filter-overlay-with-tag.component.d.ts +35 -0
  88. package/table/components/table/table.component.d.ts +11 -8
  89. package/table/helpers/filters.d.ts +31 -0
  90. package/table/index.d.ts +10 -1
  91. package/table/models/filter.model.d.ts +24 -0
  92. package/table/pipes/filter-value.pipe.d.ts +19 -0
  93. package/table/provide.d.ts +8 -0
  94. package/table/services/data-list.service.d.ts +3 -2
  95. package/table/services/table-feature-config.token.d.ts +6 -0
  96. package/tableview/api/editor/descriptors/field.descriptor.d.ts +3 -3
  97. package/tableview/api/editor/models/editor-fields.model.d.ts +4 -4
  98. package/tableview/api/tableview/descriptors/tableview.descriptor.d.ts +8 -6
  99. package/version-info.json +5 -5
  100. package/esm2022/core/services/local-storage-config.service.mjs +0 -29
  101. package/esm2022/table/components/column-filter-full/column-filter-full.component.mjs +0 -655
@@ -178,7 +178,7 @@ function dateToIsoString(value, type = 'date-time', dateTimeOpts = {}) {
178
178
  ':' +
179
179
  padNumber(value.getSeconds());
180
180
  if (!dateTimeOpts.noMillis) {
181
- base += '.' + padNumber(value.getMilliseconds());
181
+ base += '.' + padNumber(value.getMilliseconds(), 3);
182
182
  }
183
183
  if (!dateTimeOpts.noTimezone) {
184
184
  const tzo = -value.getTimezoneOffset(), dif = tzo >= 0 ? '+' : '-';
@@ -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;
@@ -835,10 +865,12 @@ function fromTableLoadToDataListParams(event) {
835
865
  if (Array.isArray(eventFilter)) {
836
866
  filter.value = eventFilter[0].value;
837
867
  filter.matchMode = eventFilter[0].matchMode;
868
+ filter.caseSensitive = eventFilter[0].caseSensitive;
838
869
  }
839
870
  else if (eventFilter !== undefined) {
840
871
  filter.value = eventFilter.value;
841
872
  filter.matchMode = eventFilter.matchMode;
873
+ filter.caseSensitive = eventFilter.caseSensitive;
842
874
  }
843
875
  return { ...acc, [key]: filter };
844
876
  }, {});
@@ -1379,6 +1411,15 @@ function getEnumConstantNamesFromObject(enumObj) {
1379
1411
  // in number enum, the numbers are also represented in objects and should be filtered out
1380
1412
  return Object.keys(enumObj).filter(v => isNaN(+v));
1381
1413
  }
1414
+ /**
1415
+ * Returns array of values for constants in enum.
1416
+ * @param enumType Enum object.
1417
+ */
1418
+ function getEnumConstantValues(enumType) {
1419
+ return Object.keys(enumType)
1420
+ .filter(v => isNaN(+v))
1421
+ .map(v => enumType[v]);
1422
+ }
1382
1423
  /**
1383
1424
  * Returns array of string values for constants in enum.
1384
1425
  * @param enumType Enum object.
@@ -1988,6 +2029,25 @@ function toastMessage(messageService, title, message, severity = 'success', icon
1988
2029
  return notification;
1989
2030
  }
1990
2031
 
2032
+ function fromAngularNumberFormatToFractions(format) {
2033
+ const hasDot = format.indexOf('.') >= 0;
2034
+ const hasDash = format.indexOf('-') >= 0;
2035
+ const [intPart, decPart] = format.split('.');
2036
+ let int = hasDot || (!hasDot && !hasDash) ? +intPart : 1;
2037
+ if (!int || isNaN(int))
2038
+ int = 1;
2039
+ let [fractionsMin, fractionsMax] = !hasDot && !hasDash ? [0, 0] : (hasDot ? decPart : intPart).split('-').map(f => +f);
2040
+ if (isNaN(fractionsMin))
2041
+ fractionsMin = 0;
2042
+ if (fractionsMax == null || isNaN(fractionsMax))
2043
+ fractionsMax = fractionsMin;
2044
+ return {
2045
+ integer: int,
2046
+ fractionsMin: fractionsMin,
2047
+ fractionsMax: fractionsMax
2048
+ };
2049
+ }
2050
+
1991
2051
  function removeRouteEmptyPathSegments(path) {
1992
2052
  const filteredPath = path.filter(ps => typeof ps === 'string' && ps.length > 0);
1993
2053
  return filteredPath.length > 0 ? filteredPath : [''];
@@ -2180,6 +2240,12 @@ class LogPublisherConsoleService {
2180
2240
 
2181
2241
  class BooleanPipe {
2182
2242
  transform(value, yes, no, icon = false) {
2243
+ if (typeof value === 'string') {
2244
+ value = value.toLowerCase() === 'true';
2245
+ }
2246
+ else if (typeof value === 'number') {
2247
+ value = value === 1;
2248
+ }
2183
2249
  if (typeof value === 'boolean') {
2184
2250
  if (icon) {
2185
2251
  return value ? yes ?? 'pi pi-check' : no ?? 'pi pi-times';
@@ -2287,14 +2353,25 @@ function findReflectEnumName(enumType) {
2287
2353
 
2288
2354
  class EnumPipe {
2289
2355
  transform(value, enumDesc, i18nPath) {
2290
- if (!value || (typeof value !== 'number' && typeof value !== 'string')) {
2356
+ if (value == null || (typeof value !== 'number' && typeof value !== 'string') || !enumDesc) {
2291
2357
  return value;
2292
2358
  }
2293
- const enumConstantName = !enumDesc || enumDesc.nameAsValue ? value : getEnumConstantNameFromObject(enumDesc.type, value) ?? value;
2359
+ const enumValue = enumDesc.nameAsValue ? value : getEnumConstantNameFromObject(enumDesc.type, value);
2360
+ if (enumValue == null) {
2361
+ // no constant name found (probably not enum), return value
2362
+ return value;
2363
+ }
2364
+ if (enumDesc.nameAsValue) {
2365
+ // check if value exists in enum if nameAsValue is used
2366
+ const enumValueCheck = getEnumConstantValues(enumDesc.type).find(v => v === enumValue);
2367
+ if (enumValueCheck == null) {
2368
+ return value;
2369
+ }
2370
+ }
2294
2371
  if (typeof i18nPath === 'undefined' && enumDesc) {
2295
2372
  i18nPath = enumDesc.i18nBaseKey ?? findReflectEnumName(enumDesc.type);
2296
2373
  }
2297
- return i18nPath ? `${i18nPath}.${enumConstantName}` : enumConstantName;
2374
+ return i18nPath ? `${i18nPath}.${enumValue}` : enumValue;
2298
2375
  }
2299
2376
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2300
2377
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.0.5", ngImport: i0, type: EnumPipe, isStandalone: true, name: "mngEnum" }); }
@@ -2791,7 +2868,7 @@ class PermissionService {
2791
2868
  canActivateRouteService(permission, route) {
2792
2869
  const serviceInstance = this.injector.get(permission.service);
2793
2870
  if (!serviceInstance) {
2794
- this.logger.debug(`WARNING: Service instance could not be retreived for type ${permission.service}`);
2871
+ this.logger.debug(`WARNING: Service instance could not be retrieved for type ${permission.service}`);
2795
2872
  return of(false);
2796
2873
  }
2797
2874
  return serviceInstance.canActivateRoute(route);
@@ -2859,7 +2936,7 @@ const permissionGuard = (route) => {
2859
2936
  const permission = inject(PermissionService);
2860
2937
  const data = route.data;
2861
2938
  if (data.permissions) {
2862
- return permission.canActivateRoute(data.permissions).pipe(first());
2939
+ return permission.canActivateRoute(data.permissions, route).pipe(first());
2863
2940
  }
2864
2941
  else {
2865
2942
  return of(true);
@@ -3181,6 +3258,13 @@ class RouteBuilder {
3181
3258
  if (finalChild.routerLink) {
3182
3259
  finalChild.routerLink = removeRouteEmptyPathSegments(finalChild.routerLink);
3183
3260
  }
3261
+ // Propagate permissions to children
3262
+ if (!finalChild.permissions && this.routeData.permissions) {
3263
+ finalChild.permissions = this.routeData.permissions;
3264
+ }
3265
+ if (!finalChild.permissions && this.permissions) {
3266
+ finalChild.permissions = this.permissions;
3267
+ }
3184
3268
  return finalChild;
3185
3269
  };
3186
3270
  this.menuItemChildren.forEach(child => menuItemChildren.push(processMenuItemChild(child)));
@@ -3826,30 +3910,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
3826
3910
  type: Injectable
3827
3911
  }] });
3828
3912
 
3829
- class LocalStorageService {
3913
+ class CommonsStorageService {
3830
3914
  constructor() {
3915
+ this.localStorage = inject(BROWSER_STORAGE_IT);
3831
3916
  this._configKey = 'CommonsUserPrefs';
3832
3917
  }
3833
3918
  buildLocalStorageKey(type, key) {
3834
3919
  return `${this._configKey}_${type}_${key}`;
3835
3920
  }
3836
3921
  getItem(type, key) {
3837
- const localstorageData = localStorage.getItem(this.buildLocalStorageKey(type, key));
3922
+ const localstorageData = this.localStorage.getItem(this.buildLocalStorageKey(type, key));
3838
3923
  if (localstorageData) {
3839
3924
  return JSON.parse(localstorageData);
3840
3925
  }
3841
3926
  return undefined;
3842
3927
  }
3843
3928
  setItem(type, key, value) {
3844
- localStorage.setItem(this.buildLocalStorageKey(type, key), JSON.stringify(value));
3929
+ this.localStorage.setItem(this.buildLocalStorageKey(type, key), JSON.stringify(value));
3845
3930
  }
3846
3931
  removeItem(type, key) {
3847
- localStorage.removeItem(this.buildLocalStorageKey(type, key));
3932
+ this.localStorage.removeItem(this.buildLocalStorageKey(type, key));
3848
3933
  }
3849
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: LocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3850
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: LocalStorageService }); }
3934
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3935
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService }); }
3851
3936
  }
3852
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: LocalStorageService, decorators: [{
3937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CommonsStorageService, decorators: [{
3853
3938
  type: Injectable
3854
3939
  }] });
3855
3940
 
@@ -3887,8 +3972,9 @@ class Styles {
3887
3972
  var CommonsFeatureTypeEnum;
3888
3973
  (function (CommonsFeatureTypeEnum) {
3889
3974
  CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["Layout"] = 0] = "Layout";
3890
- CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["Tableview"] = 1] = "Tableview";
3891
- CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["DataApiAsClassV1"] = 2] = "DataApiAsClassV1";
3975
+ CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["Table"] = 1] = "Table";
3976
+ CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["Tableview"] = 2] = "Tableview";
3977
+ CommonsFeatureTypeEnum[CommonsFeatureTypeEnum["DataApiAsClassV1"] = 3] = "DataApiAsClassV1";
3892
3978
  })(CommonsFeatureTypeEnum || (CommonsFeatureTypeEnum = {}));
3893
3979
  function provideCommons(config, ...features) {
3894
3980
  const providers = [
@@ -3901,7 +3987,7 @@ function provideCommons(config, ...features) {
3901
3987
  CommonsService,
3902
3988
  CommonsRouterService,
3903
3989
  PermissionService,
3904
- LocalStorageService,
3990
+ CommonsStorageService,
3905
3991
  {
3906
3992
  provide: COMMONS_MODULE_CONFIG_IT,
3907
3993
  useValue: config
@@ -3950,5 +4036,5 @@ function provideCommons(config, ...features) {
3950
4036
  * Generated bundle index. Do not edit.
3951
4037
  */
3952
4038
 
3953
- 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, LocalStorageService, 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, 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 };
4039
+ 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, fromAngularNumberFormatToFractions, 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 };
3954
4040
  //# sourceMappingURL=mediusinc-mng-commons-core.mjs.map