@mediusinc/mng-commons 7.4.0 → 8.0.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 (48) hide show
  1. package/README.md +74 -62
  2. package/fesm2022/mediusinc-mng-commons-core.mjs +159 -302
  3. package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
  4. package/fesm2022/mediusinc-mng-commons-filter.mjs +3 -9
  5. package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
  6. package/fesm2022/mediusinc-mng-commons-form-api.mjs +4 -4
  7. package/fesm2022/mediusinc-mng-commons-form-api.mjs.map +1 -1
  8. package/fesm2022/mediusinc-mng-commons-form.mjs +285 -203
  9. package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
  10. package/fesm2022/mediusinc-mng-commons-model.mjs +2 -5
  11. package/fesm2022/mediusinc-mng-commons-model.mjs.map +1 -1
  12. package/fesm2022/mediusinc-mng-commons-table-api.mjs +1 -0
  13. package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
  14. package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-BS5xvoDR.mjs → mediusinc-mng-commons-table-column-toggle.component-BHIzrUZz.mjs} +14 -12
  15. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BHIzrUZz.mjs.map +1 -0
  16. package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-BPgwJRZk.mjs} +558 -522
  17. package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BPgwJRZk.mjs.map +1 -0
  18. package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
  19. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +10 -75
  20. package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
  21. package/fesm2022/mediusinc-mng-commons-tableview.mjs +460 -326
  22. package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
  23. package/fesm2022/mediusinc-mng-commons.mjs.map +1 -1
  24. package/i18n/en.json +1 -1
  25. package/i18n/sl.json +2 -2
  26. package/package.json +11 -24
  27. package/types/mediusinc-mng-commons-core.d.ts +55 -115
  28. package/types/mediusinc-mng-commons-filter.d.ts +4 -8
  29. package/types/mediusinc-mng-commons-form-api.d.ts +7 -7
  30. package/types/mediusinc-mng-commons-form.d.ts +11 -11
  31. package/types/mediusinc-mng-commons-table-api.d.ts +2 -2
  32. package/types/mediusinc-mng-commons-table.d.ts +21 -25
  33. package/types/mediusinc-mng-commons-tableview-api.d.ts +9 -51
  34. package/types/mediusinc-mng-commons-tableview.d.ts +9 -15
  35. package/fesm2022/mediusinc-mng-commons-model-class.mjs +0 -97
  36. package/fesm2022/mediusinc-mng-commons-model-class.mjs.map +0 -1
  37. package/fesm2022/mediusinc-mng-commons-table-api-class.mjs +0 -204
  38. package/fesm2022/mediusinc-mng-commons-table-api-class.mjs.map +0 -1
  39. package/fesm2022/mediusinc-mng-commons-table-column-toggle.component-BS5xvoDR.mjs.map +0 -1
  40. package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs.map +0 -1
  41. package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs +0 -374
  42. package/fesm2022/mediusinc-mng-commons-tableview-api-class.mjs.map +0 -1
  43. package/model/class/README.md +0 -8
  44. package/table/api/class/README.md +0 -10
  45. package/tableview/api/class/README.md +0 -13
  46. package/types/mediusinc-mng-commons-model-class.d.ts +0 -25
  47. package/types/mediusinc-mng-commons-table-api-class.d.ts +0 -77
  48. package/types/mediusinc-mng-commons-tableview-api-class.d.ts +0 -141
@@ -1,2 +1,2 @@
1
- export { B as ADataListMetaService, A as ADataListService, D as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterService, y as FilterValuePipe, L as LocaleDefaultRowClassPipe, c as TableColumnValueComponent, h as TableComponent, C as TableDataService, d as TableFilterActiveTagComponent, z as TableFilterClassPipe, b as TableFilterComponent, e as TableFilterFormComponent, f as TableHeaderWithFiltersComponent, g as TableHeaderWithFiltersTemplateDirective, i as TableTemplateDirective, s as createFilterDescriptorsFromGeneric, p as filterAdjustDisplayValueOnMatchModeChange, o as filterApplySerializationConfigToCmp, n as filterAreDatesEqual, j as filterGenerateMatchModeOptions, q as filterGetDateConfig, k as filterGetDefaultMatchMode, r as filterGetNumberConfig, l as filterSetStateOnChange, m as filterSetStateOnDisplayChange, x as generateTableLayoutPrefsKey, t as isFilterValueBlank, G as provideTableChild, v as tableCreateFilterState, w as tableCreateSortState, u as tableNotificationError, E as withTable } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs';
1
+ export { A as ADataListMetaService, b as ADataListService, C as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterService, c as FilterValuePipe, L as LocaleDefaultRowClassPipe, d as TableColumnValueComponent, e as TableComponent, f as TableDataService, g as TableFilterActiveTagComponent, h as TableFilterClassPipe, i as TableFilterComponent, j as TableFilterFormComponent, k as TableHeaderWithFiltersComponent, l as TableHeaderWithFiltersTemplateDirective, m as TableTemplateDirective, n as createFilterDescriptorsFromGeneric, o as filterAdjustDisplayValueOnMatchModeChange, p as filterApplySerializationConfigToCmp, q as filterAreDatesEqual, r as filterGenerateMatchModeOptions, s as filterGetDateConfig, t as filterGetDefaultMatchMode, u as filterGetNumberConfig, v as filterSetStateOnChange, w as filterSetStateOnDisplayChange, x as generateTableLayoutPrefsKey, y as isFilterValueBlank, z as provideTableChild, B as tableCreateFilterState, D as tableCreateSortState, E as tableNotificationError, G as withTable } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-BPgwJRZk.mjs';
2
2
  //# sourceMappingURL=mediusinc-mng-commons-table.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { of, Subject, isObservable, throwError, map, tap } from 'rxjs';
2
- import { CommonsInternalError, DataProviderInst, LoggerService, findReflectTypeName, StyleSizeEnum, ACommonsErrorBase, toObservable, objectDeepCopy, fromEnumValuesAsValueArray, fromEnumConstantsAsValueArray, getEnumConstantName, GetterPipe, I18nPropertyPipe, copyDataListParams } from '@mediusinc/mng-commons/core';
2
+ import { CommonsInternalError, DataProviderInst, LoggerService, ACommonsErrorBase, toObservable, objectDeepCopy, fromEnumValuesAsValueArray, fromEnumConstantsAsValueArray, getEnumConstantName, GetterPipe, I18nPropertyPipe, StyleSizeEnum, copyDataListParams } from '@mediusinc/mng-commons/core';
3
3
  import * as i0 from '@angular/core';
4
4
  import { InjectionToken, Input, Directive, inject, Injector } from '@angular/core';
5
5
  import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
@@ -191,6 +191,7 @@ class ActionDescriptorInst {
191
191
  * Creates confirmation action with default style based on action descriptor
192
192
  */
193
193
  withRunConfirmation(opts = true) {
194
+ // eslint-disable-next-line sonarjs/no-nested-conditional
194
195
  this._runConfirmation = opts === true ? {} : opts === false ? undefined : opts;
195
196
  return this;
196
197
  }
@@ -257,13 +258,6 @@ class ActionDescriptorInst {
257
258
  return this;
258
259
  }
259
260
  withI18nBase(base) {
260
- if (typeof base !== 'string') {
261
- const typeName = findReflectTypeName(base);
262
- if (!typeName) {
263
- throw new CommonsInternalError(`Could not find define i18nBaseKey for ${base} on action ${this.actionNameLong}`);
264
- }
265
- base = typeName;
266
- }
267
261
  this.setI18nModelActionBaseKey(base);
268
262
  return this;
269
263
  }
@@ -504,24 +498,6 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
504
498
  get editorDescriptor() {
505
499
  return this._editorDescriptor;
506
500
  }
507
- /**
508
- * @deprecated Use dialogConfig instead.
509
- */
510
- get dialogSize() {
511
- return this._dialogOpts.size;
512
- }
513
- /**
514
- * @deprecated Use dialogConfig instead.
515
- */
516
- get dialogClassName() {
517
- return this._dialogOpts.className;
518
- }
519
- /**
520
- * @deprecated Use dialogConfig instead.
521
- */
522
- get dialogIsMaximizable() {
523
- return this._dialogOpts.maximizable;
524
- }
525
501
  get dialogConfig() {
526
502
  return this._dialogOpts;
527
503
  }
@@ -572,27 +548,6 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
572
548
  this._editorTitleParams = params;
573
549
  return this;
574
550
  }
575
- /**
576
- * @deprecated Use withDialogConfig instead.
577
- */
578
- withDialogSize(size = StyleSizeEnum.Normal) {
579
- this._dialogOpts.size = size;
580
- return this;
581
- }
582
- /**
583
- * @deprecated Use withDialogConfig instead.
584
- */
585
- withDialogClassName(className) {
586
- this._dialogOpts.className = className;
587
- return this;
588
- }
589
- /**
590
- * @deprecated Use withDialogConfig instead.
591
- */
592
- withDialogMaximizable(isMaximizable = true) {
593
- this._dialogOpts.maximizable = isMaximizable;
594
- return this;
595
- }
596
551
  withDialogConfig(opts) {
597
552
  this._dialogOpts = opts;
598
553
  return this;
@@ -1454,15 +1409,6 @@ class AFieldDescriptor extends AGenericFieldDescriptor {
1454
1409
  this._labelUseModelBase = useModelBase;
1455
1410
  return this;
1456
1411
  }
1457
- /**
1458
- * Set label to empty string.
1459
- *
1460
- * @deprecated Use `withLabel('')` instead.
1461
- */
1462
- withEmptyLabel() {
1463
- this._label = '';
1464
- return this;
1465
- }
1466
1412
  withPlaceholder(placeholder) {
1467
1413
  this._placeholder = placeholder;
1468
1414
  return this;
@@ -1864,24 +1810,12 @@ class FieldLookupDescriptor extends AFieldDescriptor {
1864
1810
  get inlineSearch() {
1865
1811
  return this._inlineSearch;
1866
1812
  }
1867
- /**
1868
- * @deprecated Use `allowInput` instead.
1869
- */
1870
- get dropdownAllowInput() {
1871
- return this._allowInput;
1872
- }
1873
1813
  get allowInput() {
1874
1814
  return this._allowInput;
1875
1815
  }
1876
1816
  get autocompleteOpenOnFocus() {
1877
1817
  return this._autocompleteOpenOnFocus;
1878
1818
  }
1879
- /**
1880
- * @deprecated Use `inlineSearch` instead.
1881
- */
1882
- get autocompleteInlineSearch() {
1883
- return this._inlineSearch;
1884
- }
1885
1819
  get autocompleteAutoClear() {
1886
1820
  return this._autocompleteAutoClear;
1887
1821
  }
@@ -2330,8 +2264,8 @@ class FieldInputDescriptor extends AFieldDescriptor {
2330
2264
  get datePickerShowMilliseconds() {
2331
2265
  return this._datePickerShowMilliseconds;
2332
2266
  }
2333
- get datePickerPrimeTimePicker() {
2334
- return this._datePickerPrimeTimePicker;
2267
+ get datePickerOptimusTimePicker() {
2268
+ return this._datePickerOptimusTimePicker;
2335
2269
  }
2336
2270
  get datePickerTimeSelect() {
2337
2271
  return this._datePickerTimeSelect;
@@ -2475,6 +2409,7 @@ class FieldInputDescriptor extends AFieldDescriptor {
2475
2409
  }
2476
2410
  asRadio(options, optionsTitlePath) {
2477
2411
  this._fieldType = FieldInputTypeEnum.Radio;
2412
+ // eslint-disable-next-line sonarjs/no-nested-template-literals
2478
2413
  this._radioOptions = options.map(o => ({ value: o, title: `${optionsTitlePath ? `${optionsTitlePath}.` : ''}${o}` }));
2479
2414
  return this;
2480
2415
  }
@@ -2587,7 +2522,7 @@ class FieldInputDescriptor extends AFieldDescriptor {
2587
2522
  this._datePickerShowTime = opts?.showTime;
2588
2523
  this._datePickerShowSeconds = opts?.showSeconds;
2589
2524
  this._datePickerShowMilliseconds = opts?.showMilliseconds;
2590
- this._datePickerPrimeTimePicker = opts?.primeTimePicker;
2525
+ this._datePickerOptimusTimePicker = opts?.optimusTimePicker;
2591
2526
  this._datePickerTimeSelectInterval = opts?.timeSelectInterval;
2592
2527
  this._datePickerTimeSelect = opts?.timeSelect;
2593
2528
  return this;
@@ -2638,7 +2573,7 @@ class FieldInputDescriptor extends AFieldDescriptor {
2638
2573
  field._datePickerShowTime = this._datePickerShowTime;
2639
2574
  field._datePickerShowSeconds = this._datePickerShowSeconds;
2640
2575
  field._datePickerShowMilliseconds = this._datePickerShowMilliseconds;
2641
- field._datePickerPrimeTimePicker = this._datePickerPrimeTimePicker;
2576
+ field._datePickerOptimusTimePicker = this._datePickerOptimusTimePicker;
2642
2577
  field._datePickerTimeSelectInterval = this._datePickerTimeSelectInterval;
2643
2578
  field._datePickerTimeSelect = this._datePickerTimeSelect;
2644
2579
  field._datePickerValueUtc = this._datePickerValueUtc;
@@ -3172,10 +3107,10 @@ class AFormlyCustomFieldComponent extends FieldType {
3172
3107
  get formState() {
3173
3108
  return this._formState;
3174
3109
  }
3175
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: AFormlyCustomFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
3176
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.8", type: AFormlyCustomFieldComponent, isStandalone: true, inputs: { field: "field", _model: ["model", "_model"], _form: ["form", "_form"], _options: ["options", "_options"], _key: ["key", "_key"], _formControl: ["formControl", "_formControl"], _props: ["props", "_props"], _showError: ["showError", "_showError"], _id: ["id", "_id"], _formState: ["formState", "_formState"] }, usesInheritance: true, ngImport: i0 }); }
3110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AFormlyCustomFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
3111
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: AFormlyCustomFieldComponent, isStandalone: true, inputs: { field: "field", _model: ["model", "_model"], _form: ["form", "_form"], _options: ["options", "_options"], _key: ["key", "_key"], _formControl: ["formControl", "_formControl"], _props: ["props", "_props"], _showError: ["showError", "_showError"], _id: ["id", "_id"], _formState: ["formState", "_formState"] }, usesInheritance: true, ngImport: i0 }); }
3177
3112
  }
3178
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: AFormlyCustomFieldComponent, decorators: [{
3113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AFormlyCustomFieldComponent, decorators: [{
3179
3114
  type: Directive
3180
3115
  }], propDecorators: { field: [{
3181
3116
  type: Input,