@mediusinc/mng-commons 0.2.23 → 0.3.0

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 (31) hide show
  1. package/esm2020/lib/api/models/filter-param.model.mjs +1 -2
  2. package/esm2020/lib/api/models/mappers.mjs +2 -6
  3. package/esm2020/lib/api/models/query-mode.model.mjs +1 -2
  4. package/esm2020/lib/api/models/query-param.model.mjs +1 -2
  5. package/esm2020/lib/api/models/query-result.model.mjs +6 -34
  6. package/esm2020/lib/api/services/api.abstract.service.mjs +34 -0
  7. package/esm2020/lib/api/services/crud-api.abstract.service.mjs +15 -32
  8. package/esm2020/lib/api/services/get-all-api.abstract.service.mjs +23 -0
  9. package/esm2020/lib/api/services/index.mjs +3 -1
  10. package/esm2020/lib/components/action/editor/action-editor.component.mjs +3 -3
  11. package/esm2020/lib/components/tableview/route/tableview-route.component.mjs +22 -4
  12. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +1 -1
  13. package/esm2020/lib/config/models/mng-config.model.mjs +1 -1
  14. package/esm2020/lib/descriptors/editor.descriptor.mjs +11 -12
  15. package/esm2020/lib/descriptors/table.descriptor.mjs +4 -1
  16. package/esm2020/lib/descriptors/tableview.descriptor.mjs +5 -5
  17. package/esm2020/lib/pipes/enum.pipe.mjs +4 -1
  18. package/fesm2015/mediusinc-mng-commons.mjs +108 -82
  19. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  20. package/fesm2020/mediusinc-mng-commons.mjs +108 -82
  21. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  22. package/lib/api/models/query-result.model.d.ts +4 -17
  23. package/lib/api/services/api.abstract.service.d.ts +19 -0
  24. package/lib/api/services/crud-api.abstract.service.d.ts +3 -11
  25. package/lib/api/services/get-all-api.abstract.service.d.ts +11 -0
  26. package/lib/api/services/index.d.ts +2 -0
  27. package/lib/components/tableview/route/tableview-route.component.d.ts +4 -1
  28. package/lib/descriptors/editor.descriptor.d.ts +4 -6
  29. package/lib/descriptors/tableview.descriptor.d.ts +2 -2
  30. package/package.json +1 -1
  31. /package/{assets/templates → templates}/tableview-route.component.html +0 -0
@@ -169,7 +169,6 @@ var MediusFilterMatchType;
169
169
  MediusFilterMatchType["GreaterThan"] = "GREATER_THAN";
170
170
  })(MediusFilterMatchType || (MediusFilterMatchType = {}));
171
171
 
172
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
173
172
  class MediusFilterParam {
174
173
  static getAttributeTypeMap() {
175
174
  return MediusFilterParam.attributeTypeMap;
@@ -203,7 +202,6 @@ MediusFilterParam.attributeTypeMap = [
203
202
  }
204
203
  ];
205
204
 
206
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
207
205
  /**
208
206
  * Generated API
209
207
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -222,7 +220,6 @@ var MediusQueryMode;
222
220
  MediusQueryMode["All"] = "ALL";
223
221
  })(MediusQueryMode || (MediusQueryMode = {}));
224
222
 
225
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
226
223
  class MediusQueryParam {
227
224
  static getAttributeTypeMap() {
228
225
  return MediusQueryParam.attributeTypeMap;
@@ -291,45 +288,17 @@ MediusQueryParam.attributeTypeMap = [
291
288
  }
292
289
  ];
293
290
 
294
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
295
- class MediusQueryResultBase {
291
+ class MediusQueryResult {
292
+ static getAttributeTypeMap() {
293
+ return MediusQueryResult.attributeTypeMap;
294
+ }
296
295
  }
297
- MediusQueryResultBase.discriminator = undefined;
298
- MediusQueryResultBase.attributeTypeMap = [
296
+ MediusQueryResult.attributeTypeMap = [
299
297
  {
300
298
  name: 'allDataCount',
301
299
  baseName: 'all_data_count',
302
300
  type: 'number'
303
301
  },
304
- {
305
- name: 'selectInTwoSteps',
306
- baseName: 'selectInTwoSteps',
307
- type: 'boolean'
308
- }
309
- ];
310
- class MediusQueryResultWithObject extends MediusQueryResultBase {
311
- static getAttributeTypeMap() {
312
- return MediusQueryResultWithObject.attributeTypeMap;
313
- }
314
- }
315
- MediusQueryResultWithObject.discriminator = undefined;
316
- MediusQueryResultWithObject.attributeTypeMap = [
317
- ...MediusQueryResultBase.attributeTypeMap,
318
- {
319
- name: 'pageData',
320
- baseName: 'page_data',
321
- type: 'Array<object>'
322
- }
323
- ];
324
- class MediusQueryResult extends MediusQueryResultBase {
325
- static getAttributeTypeMap() {
326
- return MediusQueryResultWithObject.attributeTypeMap;
327
- }
328
- }
329
- MediusQueryResult.discriminator = undefined;
330
- MediusQueryResult.attributeTypeMapBase = MediusQueryResultBase.attributeTypeMap;
331
- MediusQueryResult.attributeTypeMap = [
332
- ...MediusQueryResultBase.attributeTypeMap,
333
302
  {
334
303
  name: 'pageData',
335
304
  baseName: 'page_data',
@@ -384,16 +353,13 @@ class MediusQueryParamBuilder {
384
353
  }
385
354
  }
386
355
 
387
- /* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
388
356
  const enumsMapBase = {
389
357
  FilterMatchType: MediusFilterMatchType,
390
358
  QueryMode: MediusQueryMode
391
359
  };
392
360
  const typeMapBase = {
393
361
  FilterParam: MediusFilterParam,
394
- QueryParam: MediusQueryParam,
395
- QueryResult: MediusQueryResult,
396
- QueryResultWithObject: MediusQueryResultWithObject
362
+ QueryParam: MediusQueryParam
397
363
  };
398
364
 
399
365
  class TableDataProvider extends DataProvider {
@@ -1017,13 +983,13 @@ class EditorDescriptor {
1017
983
  this.addFieldDescriptor(field);
1018
984
  return field;
1019
985
  }
1020
- addFieldManyEditor(property, type, tableviewDescriptor) {
1021
- const field = new FieldManyEditorDescriptor(this, property, type, tableviewDescriptor);
986
+ addFieldManyEditor(property, tableviewDescriptor) {
987
+ const field = new FieldManyEditorDescriptor(this, property, tableviewDescriptor);
1022
988
  this.addFieldDescriptor(field);
1023
989
  return field;
1024
990
  }
1025
- addFieldManyToManyEditor(property, type, mainTableDescriptor, lookupTableDescriptor) {
1026
- const field = new FieldManyToManyEditorDescriptor(this, property, type, mainTableDescriptor, lookupTableDescriptor);
991
+ addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor) {
992
+ const field = new FieldManyToManyEditorDescriptor(this, property, mainTableDescriptor, lookupTableDescriptor);
1027
993
  this.addFieldDescriptor(field);
1028
994
  return field;
1029
995
  }
@@ -1590,7 +1556,7 @@ class FieldLookupEnumDescriptor extends FieldLookupDescriptor {
1590
1556
  }
1591
1557
  }
1592
1558
  class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
1593
- constructor(editor, property, modelType, mainTableDescriptor, lookupTableDescriptor) {
1559
+ constructor(editor, property, mainTableDescriptor, lookupTableDescriptor) {
1594
1560
  super(editor, property);
1595
1561
  this._fieldType = FieldManyToManyEditorDescriptor.TypeEnum.DialogTableMultiselect;
1596
1562
  this._lookupTableDataProvider = null;
@@ -1598,7 +1564,6 @@ class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
1598
1564
  this._hasLookupExcludeValues = false;
1599
1565
  this._excludeFilterProperty = '';
1600
1566
  this._excludeValueProperty = '';
1601
- this._model = new ModelDescriptor(modelType);
1602
1567
  this._mainTableDescriptor = mainTableDescriptor;
1603
1568
  this._lookupTableDescriptor = lookupTableDescriptor;
1604
1569
  this._actions.push(FieldManyToManyEditorDescriptor.ActionEnum.Add, FieldManyToManyEditorDescriptor.ActionEnum.Delete);
@@ -1628,7 +1593,7 @@ class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
1628
1593
  return this._lookupTableDescriptor;
1629
1594
  }
1630
1595
  withLookup(getAll, serviceType) {
1631
- const dataProvider = new TableviewDataProvider(this._model.type);
1596
+ const dataProvider = new TableviewDataProvider(this._mainTableDescriptor.model.type);
1632
1597
  if (serviceType) {
1633
1598
  dataProvider.withServiceType(serviceType);
1634
1599
  }
@@ -1651,7 +1616,7 @@ class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
1651
1616
  return this;
1652
1617
  }
1653
1618
  copy() {
1654
- const field = new FieldManyToManyEditorDescriptor(this._editor, this._property, this._model.type, this._mainTableDescriptor.copy(), this._lookupTableDescriptor.copy());
1619
+ const field = new FieldManyToManyEditorDescriptor(this._editor, this._property, this._mainTableDescriptor.copy(), this._lookupTableDescriptor.copy());
1655
1620
  this.copyFieldsTo(field);
1656
1621
  field._fieldType = this._fieldType;
1657
1622
  field._actions = this._actions.map(a => a);
@@ -1674,12 +1639,12 @@ class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
1674
1639
  })(ActionEnum = FieldManyToManyEditorDescriptor.ActionEnum || (FieldManyToManyEditorDescriptor.ActionEnum = {}));
1675
1640
  })(FieldManyToManyEditorDescriptor || (FieldManyToManyEditorDescriptor = {}));
1676
1641
  class FieldManyEditorDescriptor extends AFieldDescriptor {
1677
- constructor(editor, property, modelType, tableviewDescriptor) {
1642
+ constructor(editor, property, tableviewDescriptor) {
1678
1643
  super(editor, property);
1679
1644
  this._fieldType = FieldManyEditorDescriptor.TypeEnum.DialogEditor;
1680
1645
  this._fieldActions = [];
1681
1646
  this._actions = [];
1682
- this._modelType = modelType;
1647
+ // this._modelType = modelType;
1683
1648
  this._tableviewDescriptor = tableviewDescriptor;
1684
1649
  this._fieldActions.push(FieldManyEditorDescriptor.ActionEnum.View, FieldManyEditorDescriptor.ActionEnum.Add, FieldManyEditorDescriptor.ActionEnum.Edit, FieldManyEditorDescriptor.ActionEnum.Delete);
1685
1650
  }
@@ -1720,7 +1685,7 @@ class FieldManyEditorDescriptor extends AFieldDescriptor {
1720
1685
  return this;
1721
1686
  }
1722
1687
  copy() {
1723
- const field = new FieldManyEditorDescriptor(this._editor, this._property, this._modelType, this._tableviewDescriptor.copy());
1688
+ const field = new FieldManyEditorDescriptor(this._editor, this._property, this._tableviewDescriptor.copy());
1724
1689
  this.copyFieldsTo(field);
1725
1690
  field._fieldType = this._fieldType;
1726
1691
  field._fieldActions = this._fieldActions.map(a => a);
@@ -2172,6 +2137,9 @@ class ColumnDescriptor {
2172
2137
  descriptor._isSortEnabled = this._isSortEnabled;
2173
2138
  descriptor._columnType = this._columnType;
2174
2139
  descriptor._filterDescriptor = this._filterDescriptor?.copy();
2140
+ descriptor._enumType = this._enumType;
2141
+ descriptor._enumTitlePath = this._enumTitlePath;
2142
+ descriptor._enumNameAsValue = this._enumNameAsValue;
2175
2143
  descriptor._booleanAsIcon = this._booleanAsIcon;
2176
2144
  descriptor._booleanYes = this._booleanYes;
2177
2145
  descriptor._booleanNo = this._booleanNo;
@@ -2516,14 +2484,14 @@ class TableviewDescriptor {
2516
2484
  this._editEditor.addFieldDescriptor(field);
2517
2485
  return field;
2518
2486
  }
2519
- addFieldManyEditor(property, type, tableviewDescriptor) {
2520
- const field = this._viewEditor.addFieldManyEditor(property, type, tableviewDescriptor);
2487
+ addFieldManyEditor(property, tableviewDescriptor) {
2488
+ const field = this._viewEditor.addFieldManyEditor(property, tableviewDescriptor);
2521
2489
  this._addEditor.addFieldDescriptor(field);
2522
2490
  this._editEditor.addFieldDescriptor(field);
2523
2491
  return field;
2524
2492
  }
2525
- addFieldManyToManyEditor(property, type, mainTableDescriptor, lookupTableDescriptor) {
2526
- const field = this._viewEditor.addFieldManyToManyEditor(property, type, mainTableDescriptor, lookupTableDescriptor);
2493
+ addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor) {
2494
+ const field = this._viewEditor.addFieldManyToManyEditor(property, mainTableDescriptor, lookupTableDescriptor);
2527
2495
  this._addEditor.addFieldDescriptor(field);
2528
2496
  this._editEditor.addFieldDescriptor(field);
2529
2497
  return field;
@@ -5159,13 +5127,13 @@ class MngActionEditorComponent {
5159
5127
  // assign run operations
5160
5128
  action.withRunNotificationSuccess(undefined, undefined, false);
5161
5129
  if (action.submitType === ActionEditorSubmitDescriptor.TypeEnum.Submit) {
5162
- action.withRunFunction(ctx => {
5130
+ action.withRunFunction(() => {
5163
5131
  this.triggerSubmit();
5164
5132
  return of(undefined);
5165
5133
  });
5166
5134
  }
5167
5135
  else {
5168
- action.withRunFunction(ctx => {
5136
+ action.withRunFunction(() => {
5169
5137
  this.cancel();
5170
5138
  return of(undefined);
5171
5139
  });
@@ -5518,6 +5486,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
5518
5486
 
5519
5487
  class MngEnumPipe {
5520
5488
  transform(value, enumObj, i18nPath, nameAsValue = false) {
5489
+ if (!value || !enumObj) {
5490
+ return value;
5491
+ }
5521
5492
  const enumConstantName = nameAsValue ? value : EnumUtil.getConstantNameFromEnumObject(enumObj, value);
5522
5493
  if (typeof i18nPath === 'undefined') {
5523
5494
  i18nPath = TypeUtil.findEnumName(enumObj);
@@ -5991,27 +5962,45 @@ class MngTableviewRouteComponent extends AMngTableviewRouteComponent {
5991
5962
  this.route = route;
5992
5963
  }
5993
5964
  createTableviewDescriptor() {
5965
+ if (this.descriptorInit) {
5966
+ return this.descriptorInit;
5967
+ }
5994
5968
  if (!this.route.snapshot.data['tableviewData'].descriptor) {
5995
5969
  throw Error('Tableview requires a descriptor.');
5996
5970
  }
5997
5971
  return this.route.snapshot.data['tableviewData'].descriptor;
5998
5972
  }
5999
5973
  createTableviewDataProvider() {
5974
+ if (this.dataProviderInit) {
5975
+ return this.dataProviderInit;
5976
+ }
6000
5977
  if (!this.route.snapshot.data['tableviewData'].dataProvider) {
6001
5978
  throw Error('Tableview requires a data provider.');
6002
5979
  }
6003
5980
  return this.route.snapshot.data['tableviewData'].dataProvider;
6004
5981
  }
6005
5982
  createActionDescriptors() {
5983
+ if (this.actionsInit) {
5984
+ return this.actionsInit;
5985
+ }
6006
5986
  return this.route.snapshot.data['tableviewData'].fieldActions ?? super.createActionDescriptors();
6007
5987
  }
6008
5988
  }
6009
5989
  MngTableviewRouteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableviewRouteComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
6010
- MngTableviewRouteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableviewRouteComponent, selector: "mng-tableview-route", usesInheritance: true, ngImport: i0, template: "<div class=\"grid\">\n <div class=\"col-12\">\n <mng-tableview [descriptor]=\"descriptor\" [dataProvider]=\"dataProvider\" [actions]=\"actions\"></mng-tableview>\n </div>\n</div>\n", components: [{ type: MngTableviewComponent, selector: "mng-tableview", inputs: ["descriptor", "dataProvider", "actions"] }] });
5990
+ MngTableviewRouteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableviewRouteComponent, selector: "mng-tableview-route", inputs: { descriptorInit: ["descriptor", "descriptorInit"], dataProviderInit: ["dataProvider", "dataProviderInit"], actionsInit: ["actions", "actionsInit"] }, usesInheritance: true, ngImport: i0, template: "<div class=\"grid\">\n <div class=\"col-12\">\n <mng-tableview [descriptor]=\"descriptor\" [dataProvider]=\"dataProvider\" [actions]=\"actions\"></mng-tableview>\n </div>\n</div>\n", components: [{ type: MngTableviewComponent, selector: "mng-tableview", inputs: ["descriptor", "dataProvider", "actions"] }] });
6011
5991
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableviewRouteComponent, decorators: [{
6012
5992
  type: Component,
6013
5993
  args: [{ selector: 'mng-tableview-route', template: "<div class=\"grid\">\n <div class=\"col-12\">\n <mng-tableview [descriptor]=\"descriptor\" [dataProvider]=\"dataProvider\" [actions]=\"actions\"></mng-tableview>\n </div>\n</div>\n" }]
6014
- }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; } });
5994
+ }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; }, propDecorators: { descriptorInit: [{
5995
+ type: Input,
5996
+ args: ['descriptor']
5997
+ }], dataProviderInit: [{
5998
+ type: Input,
5999
+ args: ['dataProvider']
6000
+ }], actionsInit: [{
6001
+ type: Input,
6002
+ args: ['actions']
6003
+ }] } });
6015
6004
 
6016
6005
  class MngFormlyFieldLookupDialogComponent extends FieldType {
6017
6006
  constructor(injector) {
@@ -7554,37 +7543,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
7554
7543
  }]
7555
7544
  }] });
7556
7545
 
7557
- class AMngCrudApiService {
7558
- constructor(type, queryResultType, http) {
7546
+ class AMngApiService {
7547
+ constructor(type, http) {
7559
7548
  this.type = type;
7560
- this.queryResultType = queryResultType;
7561
7549
  this.http = http;
7562
7550
  this.objectSerializer = ObjectSerializer.get();
7563
7551
  }
7564
- createPost(item, params) {
7565
- const url = `${this.getBasePath()}${this.getServiceBasePath()}${this.getCreatePostPath()}`;
7552
+ getUrl(...pathSegments) {
7553
+ let path = pathSegments.join('/');
7554
+ if (!path.startsWith('/')) {
7555
+ path = path.substring(1);
7556
+ }
7557
+ return `${this.getBasePath()}${this.getServiceBasePath()}${path}`;
7558
+ }
7559
+ deserialize(item) {
7560
+ return this.deserializeClass(item, this.type);
7561
+ }
7562
+ serialize(item) {
7563
+ return this.serializeClass(item, this.type);
7564
+ }
7565
+ serializeQueryParam(queryParam, type = 'QueryParam') {
7566
+ return this.objectSerializer.serialize(queryParam, type);
7567
+ }
7568
+ deserializeQueryResult(item, qrType) {
7569
+ return this.deserializeClass(item, qrType);
7570
+ }
7571
+ deserializeClass(item, type) {
7572
+ return this.objectSerializer.deserializeClass(item, type);
7573
+ }
7574
+ serializeClass(item, type) {
7575
+ return this.objectSerializer.serializeClass(item, type);
7576
+ }
7577
+ }
7578
+
7579
+ class AMngGetAllApiService extends AMngApiService {
7580
+ constructor(type, queryResultType, http) {
7581
+ super(type, http);
7582
+ this.queryResultType = queryResultType;
7583
+ }
7584
+ getAllPost(queryParamBody, params) {
7585
+ const url = this.getUrl(this.getGetAllPostPath());
7566
7586
  return this.http
7567
- .post(url, this.objectSerializer.serializeClass(item, this.type), {
7587
+ .post(url, queryParamBody ? this.serializeQueryParam(queryParamBody) : undefined, {
7568
7588
  withCredentials: true,
7569
7589
  observe: 'body',
7570
7590
  reportProgress: false,
7571
7591
  params: params
7572
7592
  })
7573
- .pipe(map(res => this.objectSerializer.deserializeClass(res, this.type)));
7593
+ .pipe(map(res => this.deserializeQueryResult(res, this.queryResultType)));
7574
7594
  }
7575
- getAllPost(queryParamBody, params) {
7576
- const url = `${this.getBasePath()}${this.getServiceBasePath()}${this.getGetAllPostPath()}`;
7595
+ getGetAllPostPath() {
7596
+ return '/get-all';
7597
+ }
7598
+ }
7599
+
7600
+ class AMngCrudApiService extends AMngGetAllApiService {
7601
+ constructor(type, queryResultType, http) {
7602
+ super(type, queryResultType, http);
7603
+ }
7604
+ createPost(item, params) {
7605
+ const url = this.getUrl(this.getCreatePostPath());
7577
7606
  return this.http
7578
- .post(url, this.objectSerializer.serialize(queryParamBody, 'QueryParam'), {
7607
+ .post(url, this.serialize(item), {
7579
7608
  withCredentials: true,
7580
7609
  observe: 'body',
7581
7610
  reportProgress: false,
7582
7611
  params: params
7583
7612
  })
7584
- .pipe(map(res => this.objectSerializer.deserializeClass(res, this.queryResultType)));
7613
+ .pipe(map(res => this.deserialize(res)));
7585
7614
  }
7586
7615
  getByIdGet(id, params) {
7587
- const url = `${this.getBasePath()}${this.getServiceBasePath()}${this.getGetByIdGetPath(id)}`;
7616
+ const url = this.getUrl(this.getGetByIdGetPath(id));
7588
7617
  return this.http
7589
7618
  .get(url, {
7590
7619
  withCredentials: true,
@@ -7592,33 +7621,30 @@ class AMngCrudApiService {
7592
7621
  reportProgress: false,
7593
7622
  params: params
7594
7623
  })
7595
- .pipe(map(res => this.objectSerializer.deserializeClass(res, this.type)));
7624
+ .pipe(map(res => this.deserialize(res)));
7596
7625
  }
7597
7626
  updatePut(id, item, params) {
7598
- const url = `${this.getBasePath()}${this.getServiceBasePath()}${this.getUpdatePutPath(id, item)}`;
7627
+ const url = this.getUrl(this.getUpdatePutPath(id, item));
7599
7628
  return this.http
7600
- .put(url, this.objectSerializer.serializeClass(item, this.type), {
7629
+ .put(url, this.serialize(item), {
7601
7630
  withCredentials: true,
7602
7631
  observe: 'body',
7603
7632
  reportProgress: false,
7604
7633
  params: params
7605
7634
  })
7606
- .pipe(map(res => this.objectSerializer.deserializeClass(res, this.type)));
7635
+ .pipe(map(res => this.deserialize(res)));
7607
7636
  }
7608
7637
  removeDelete(id, item, params) {
7609
- const url = `${this.getBasePath()}${this.getServiceBasePath()}${this.getRemoveDeletePath(id, item)}`;
7638
+ const url = this.getUrl(this.getRemoveDeletePath(id, item));
7610
7639
  return this.http
7611
7640
  .request('delete', url, {
7612
7641
  withCredentials: true,
7613
7642
  observe: 'body',
7614
7643
  reportProgress: false,
7615
- body: item ? this.objectSerializer.serializeClass(item, this.type) : undefined,
7644
+ body: item ? this.serialize(item) : undefined,
7616
7645
  params: params
7617
7646
  })
7618
- .pipe(map(res => this.objectSerializer.deserializeClass(res, this.type)));
7619
- }
7620
- getGetAllPostPath() {
7621
- return '/get-all';
7647
+ .pipe(map(res => this.deserialize(res)));
7622
7648
  }
7623
7649
  getCreatePostPath() {
7624
7650
  return '';
@@ -8096,5 +8122,5 @@ class RouteDataBuilder {
8096
8122
  * Generated bundle index. Do not edit.
8097
8123
  */
8098
8124
 
8099
- export { AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngCrudApiService, AMngTableviewRouteComponent, ActionActivationResult, ActionActivationTriggerEnum, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionError, ActionExecContext, ActionLevelEnum, ActionPositionEnum, ActionRunResult, ActionTriggerResult, ActionTypeEnum, ColumnDescriptor, DataProvider, DefaultMngErrorMapperService, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, FieldDescriptor, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor, FieldValidator, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, I18nUtil, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusQueryResultBase, MediusQueryResultWithObject, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionExecutorService, MngActionRouteComponent, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDropdownComponent, MngEnumPipe, MngErrorMapperService, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormFieldEvent, MngFormFieldEventComponentSubtype, MngFormFieldEventDialogSubtype, MngFormFieldEventTypeEnum, MngFormlyFieldAutocompleteComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldLookupDialogComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngFormlyTableWrapperComponent, MngI18nPropertyPipe, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngPropertyPathPipe, MngTableColumnFilterComponent, MngTableColumnValueComponent, MngTableComponent, MngTableviewComponent, MngTableviewRouteComponent, MngTemplateDirective, MngTopbarComponent, MngViewContainerComponentService, ModelDescriptor, ModelUtil, ObjectSerializer, RouteBuilder, RouteDataBuilder, RoutesBuilder, TableDataProvider, TableDescriptor, TableviewDataProvider, TableviewDescriptor, ToastUtil, TypeName, TypeUtil, enumNameDecoratorPropertyName, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getEmailValidationMessage, getFormlyValidationMessages, getMaxLengthValidationMessage, getMinLengthValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngCommonsInitializerProvider, mngConfigJsonAppInitializerProvider, mngConfigurationServiceProvider, mngFormlyConfigProvider, primeNgModules, typeMapBase, typeNameDecoratorPropertyName };
8125
+ export { AFieldDescriptor, AFieldGroupDescriptor, AGenericFieldDescriptor, AMngApiService, AMngCrudApiService, AMngGetAllApiService, AMngTableviewRouteComponent, ActionActivationResult, ActionActivationTriggerEnum, ActionDeleteDescriptor, ActionDescriptor, ActionEditorAddDescriptor, ActionEditorDescriptor, ActionEditorDetailsDescriptor, ActionEditorEditDescriptor, ActionEditorSubmitDescriptor, ActionError, ActionExecContext, ActionLevelEnum, ActionPositionEnum, ActionRunResult, ActionTriggerResult, ActionTypeEnum, ColumnDescriptor, DataProvider, DefaultMngErrorMapperService, EditorDataProvider, EditorDescriptor, EditorFormlyUtil, EnumName, EnumUtil, FieldDescriptor, FieldGroupDescriptor, FieldInputDescriptor, FieldLookupDescriptor, FieldLookupEnumDescriptor, FieldManyEditorDescriptor, FieldManyToManyEditorDescriptor, FieldTabGroupDescriptor, FieldValidator, FilterDescriptor, FilterLookupDescriptor, FilterLookupEnumDescriptor, I18nUtil, LookupDataProvider, MNG_AUTOCOMPLETE_VALUE_ACCESSOR, MNG_DROPDOWN_VALUE_ACCESSOR, MediusFilterMatchType, MediusFilterParam, MediusQueryMode, MediusQueryParam, MediusQueryParamBuilder, MediusQueryResult, MediusRestUtil, MngActionComponent, MngActionEditorComponent, MngActionExecutorService, MngActionRouteComponent, MngAutocompleteComponent, MngBooleanPipe, MngBreadcrumbComponent, MngCommonsModule, MngCommonsService, MngComponentDirective, MngConfigurationService, MngDropdownComponent, MngEnumPipe, MngErrorMapperService, MngFooterComponent, MngFormEditorComponent, MngFormEditorSubmitEvent, MngFormFieldEvent, MngFormFieldEventComponentSubtype, MngFormFieldEventDialogSubtype, MngFormFieldEventTypeEnum, MngFormlyFieldAutocompleteComponent, MngFormlyFieldDropdownComponent, MngFormlyFieldFieldsetComponent, MngFormlyFieldInputComponent, MngFormlyFieldLookupDialogComponent, MngFormlyFieldTableDialogFormComponent, MngFormlyFieldTableDialogMultiselectComponent, MngFormlyFieldTabsComponent, MngFormlyFieldWrapperComponent, MngFormlyTableWrapperComponent, MngI18nPropertyPipe, MngMainLayoutComponent, MngMainLayoutComponentService, MngMenuComponent, MngMenuItemComponent, MngNavigationService, MngPropertyPathPipe, MngTableColumnFilterComponent, MngTableColumnValueComponent, MngTableComponent, MngTableviewComponent, MngTableviewRouteComponent, MngTemplateDirective, MngTopbarComponent, MngViewContainerComponentService, ModelDescriptor, ModelUtil, ObjectSerializer, RouteBuilder, RouteDataBuilder, RoutesBuilder, TableDataProvider, TableDescriptor, TableviewDataProvider, TableviewDescriptor, ToastUtil, TypeName, TypeUtil, enumNameDecoratorPropertyName, enumsMapBase, formlyTypesConfig, formlyWrappersConfig, getEmailValidationMessage, getFormlyValidationMessages, getMaxLengthValidationMessage, getMinLengthValidationMessage, getRequiredValidationMessage, getTextPatternValidationMessage, mngCommonsInitializerProvider, mngConfigJsonAppInitializerProvider, mngConfigurationServiceProvider, mngFormlyConfigProvider, primeNgModules, typeMapBase, typeNameDecoratorPropertyName };
8100
8126
  //# sourceMappingURL=mediusinc-mng-commons.mjs.map