@sankhyalabs/sankhyablocks 8.15.0-rc.7 → 8.15.0-rc.8

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 (45) hide show
  1. package/dist/cjs/{pesquisa-fetcher-c416a6b7.js → pesquisa-fetcher-8bbee432.js} +1 -8
  2. package/dist/cjs/snk-actions-button_2.cjs.entry.js +1 -1
  3. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  4. package/dist/cjs/snk-attach.cjs.entry.js +1 -1
  5. package/dist/cjs/snk-crud.cjs.entry.js +1 -1
  6. package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
  7. package/dist/cjs/snk-form-config.cjs.entry.js +39 -25
  8. package/dist/cjs/{snk-guides-viewer-bd69fce4.js → snk-guides-viewer-100c3098.js} +1 -1
  9. package/dist/cjs/snk-guides-viewer.cjs.entry.js +2 -2
  10. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -1
  11. package/dist/cjs/snk-simple-crud.cjs.entry.js +1 -1
  12. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -1
  13. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +39 -25
  14. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +1 -8
  15. package/dist/components/dataunit-fetcher.js +1 -8
  16. package/dist/components/snk-form-config2.js +39 -25
  17. package/dist/components/snk-personalized-filter-editor.js +3 -1
  18. package/dist/esm/{pesquisa-fetcher-ab16a2e8.js → pesquisa-fetcher-5a8cae10.js} +1 -8
  19. package/dist/esm/snk-actions-button_2.entry.js +1 -1
  20. package/dist/esm/snk-application.entry.js +1 -1
  21. package/dist/esm/snk-attach.entry.js +1 -1
  22. package/dist/esm/snk-crud.entry.js +1 -1
  23. package/dist/esm/snk-detail-view.entry.js +2 -2
  24. package/dist/esm/snk-form-config.entry.js +39 -25
  25. package/dist/esm/{snk-guides-viewer-fde82cc1.js → snk-guides-viewer-36a01f1c.js} +1 -1
  26. package/dist/esm/snk-guides-viewer.entry.js +2 -2
  27. package/dist/esm/snk-personalized-filter-editor.entry.js +3 -1
  28. package/dist/esm/snk-simple-crud.entry.js +1 -1
  29. package/dist/sankhyablocks/p-2ae395fe.entry.js +1 -0
  30. package/dist/sankhyablocks/p-3e91d5ea.entry.js +1 -0
  31. package/dist/sankhyablocks/{p-b7004423.entry.js → p-453c01a8.entry.js} +1 -1
  32. package/dist/sankhyablocks/{p-c6247955.js → p-5e681b7b.js} +1 -1
  33. package/dist/sankhyablocks/p-b11aa1e0.entry.js +1 -0
  34. package/dist/sankhyablocks/{p-fd0a8d68.entry.js → p-bf658a8a.entry.js} +2 -2
  35. package/dist/sankhyablocks/{p-57212bb5.js → p-c143a240.js} +1 -1
  36. package/dist/sankhyablocks/{p-d4802f81.entry.js → p-d0844d18.entry.js} +1 -1
  37. package/dist/sankhyablocks/{p-91b7f78a.entry.js → p-d7cda92f.entry.js} +1 -1
  38. package/dist/sankhyablocks/{p-5f5b58b6.entry.js → p-d7d85fa9.entry.js} +1 -1
  39. package/dist/sankhyablocks/{p-fb842329.entry.js → p-ee619e29.entry.js} +1 -1
  40. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  41. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +1 -0
  42. package/package.json +1 -1
  43. package/dist/sankhyablocks/p-0b0b36ac.entry.js +0 -1
  44. package/dist/sankhyablocks/p-84bb8f47.entry.js +0 -1
  45. package/dist/sankhyablocks/p-c758265f.entry.js +0 -1
@@ -853,14 +853,7 @@ class PesquisaFetcher {
853
853
  };
854
854
  }
855
855
  const options = searchOptions != undefined
856
- ? {
857
- "pkFieldName": searchOptions.codeFieldName,
858
- "label": searchOptions.descriptionFieldName,
859
- "fieldName": searchOptions.codeFieldName,
860
- "useDescriptionOptions": false,
861
- "enableRowsCounter": true
862
- }
863
- : undefined;
856
+ ? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
864
857
  const reqBody = {
865
858
  "serviceName": serviceName,
866
859
  "requestBody": {
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataFetcher = require('./DataFetcher-99f0f6ed.js');
8
8
  const ParamType = require('./ParamType-90b440a0.js');
9
- require('./pesquisa-fetcher-c416a6b7.js');
9
+ require('./pesquisa-fetcher-8bbee432.js');
10
10
  require('./index-0922807b.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -8,7 +8,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const ConfigStorage = require('./ConfigStorage-d4c99a5e.js');
9
9
  const DataFetcher = require('./DataFetcher-99f0f6ed.js');
10
10
  const authFetcher = require('./auth-fetcher-5161d082.js');
11
- const pesquisaFetcher = require('./pesquisa-fetcher-c416a6b7.js');
11
+ const pesquisaFetcher = require('./pesquisa-fetcher-8bbee432.js');
12
12
  const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
13
13
  require('./form-config-fetcher-9f1a13ca.js');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const DataFetcher = require('./DataFetcher-99f0f6ed.js');
8
- const pesquisaFetcher = require('./pesquisa-fetcher-c416a6b7.js');
8
+ const pesquisaFetcher = require('./pesquisa-fetcher-8bbee432.js');
9
9
  require('./index-0922807b.js');
10
10
  const ISave = require('./ISave-e91b70a7.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-1e4fb2e0.js');
8
8
  require('./DataFetcher-99f0f6ed.js');
9
- require('./pesquisa-fetcher-c416a6b7.js');
9
+ require('./pesquisa-fetcher-8bbee432.js');
10
10
  const index$1 = require('./index-0922807b.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
7
7
  const SnkFormConfigManager = require('./SnkFormConfigManager-3621bfc4.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
9
  require('./DataFetcher-99f0f6ed.js');
10
- require('./pesquisa-fetcher-c416a6b7.js');
10
+ require('./pesquisa-fetcher-8bbee432.js');
11
11
  const index$1 = require('./index-0922807b.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -17,7 +17,7 @@ require('./filter-item-type.enum-a7ffdaa6.js');
17
17
  require('./form-config-fetcher-9f1a13ca.js');
18
18
  const taskbarElements = require('./taskbar-elements-1e4fb2e0.js');
19
19
  const constants = require('./constants-35ddd366.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-bd69fce4.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-100c3098.js');
21
21
  const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
22
22
  require('./ConfigStorage-d4c99a5e.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
@@ -38,6 +38,7 @@ const SnkFormConfig = class {
38
38
  this._formFieldsStyle = "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding-right--small ez-padding-bottom--medium sc-snk-form-config";
39
39
  this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
40
40
  this._fieldFloatingStyle = "form-config__field-config--dragged";
41
+ this._sortableTimer = 100;
41
42
  this._formConfigOptions = [];
42
43
  this._fieldConfigSelected = undefined;
43
44
  this._layoutFormConfig = undefined;
@@ -52,20 +53,27 @@ const SnkFormConfig = class {
52
53
  this.messagesBuilder = undefined;
53
54
  }
54
55
  observeConfigManager() {
55
- this.loadConfig();
56
+ this.loadConfig(this._sortableTimer);
56
57
  }
57
- loadFields() {
58
+ loadFields(updateTimer = 0) {
58
59
  this._layoutFormConfig = [];
59
- this.buildFields();
60
+ if (updateTimer > 0) {
61
+ setTimeout(() => {
62
+ this.buildFields();
63
+ }, updateTimer);
64
+ }
65
+ else {
66
+ this.buildFields();
67
+ }
60
68
  }
61
69
  buildFields() {
62
70
  this.buildFormConfig();
63
71
  this.buildAvailableFields();
64
72
  }
65
- loadFormConfig() {
73
+ loadFormConfig(updateTimer) {
66
74
  var _a;
67
75
  this._formConfig = this.getConfig();
68
- this.loadFields();
76
+ this.loadFields(updateTimer);
69
77
  this.controlFieldConfig();
70
78
  if (((_a = this._filterFieldsAvailable) === null || _a === void 0 ? void 0 : _a.value) != undefined) {
71
79
  this._filterFieldsAvailable.value = "";
@@ -108,12 +116,12 @@ const SnkFormConfig = class {
108
116
  }
109
117
  }
110
118
  resetChangeConfig() {
111
- this.loadFormConfig();
119
+ this.loadFormConfig(this._sortableTimer);
112
120
  this.clearTempGroups();
113
121
  }
114
122
  resetChangeOptionConfig() {
115
123
  this._formConfigChanged = false;
116
- this.loadConfig();
124
+ this.loadConfig(this._sortableTimer);
117
125
  this.clearTempGroups();
118
126
  }
119
127
  getTabsToSave() {
@@ -328,7 +336,9 @@ const SnkFormConfig = class {
328
336
  && oldContainer.id === newContainer.id) {
329
337
  evt.cancel();
330
338
  this._fieldsAvailable = [];
331
- this.buildAvailableFields();
339
+ setTimeout(() => {
340
+ this.buildAvailableFields();
341
+ }, this._sortableTimer);
332
342
  return true;
333
343
  }
334
344
  return false;
@@ -371,7 +381,11 @@ const SnkFormConfig = class {
371
381
  if (isNewGroup) {
372
382
  this.clearTempGroups(true);
373
383
  }
374
- this.updateFieldsToSave();
384
+ const sortableTimer = oldContainer.dataset.groupName !== newContainer.dataset.groupName
385
+ || (newContainer.id === CONTAINER_ID.withoutGroup && oldContainer.id === CONTAINER_ID.fieldsAvailable)
386
+ ? this._sortableTimer
387
+ : 0;
388
+ this.updateFieldsToSave(sortableTimer);
375
389
  }, this._renderTimer);
376
390
  return true;
377
391
  }
@@ -401,12 +415,12 @@ const SnkFormConfig = class {
401
415
  return;
402
416
  }
403
417
  }
404
- updateFieldsToSave() {
418
+ updateFieldsToSave(updateTimer = 0) {
405
419
  const fields = this.getFieldsToSave();
406
420
  if ((fields === null || fields === void 0 ? void 0 : fields.length) > 0) {
407
421
  this._formConfig.fields = fields;
408
422
  }
409
- this.loadFields();
423
+ this.loadFields(updateTimer);
410
424
  this._formConfigChanged = true;
411
425
  }
412
426
  controlSortableField() {
@@ -436,7 +450,7 @@ const SnkFormConfig = class {
436
450
  controlStopDraggingGroup(evt) {
437
451
  if (evt.data.newIndex !== evt.data.oldIndex) {
438
452
  setTimeout(() => {
439
- this.updateFieldsToSave();
453
+ this.updateFieldsToSave(this._sortableTimer);
440
454
  }, this._renderTimer);
441
455
  }
442
456
  }
@@ -509,7 +523,7 @@ const SnkFormConfig = class {
509
523
  });
510
524
  if (tabs.length > 0) {
511
525
  this._formConfig.tabs = tabs;
512
- this.loadFields();
526
+ this.loadFields(this._sortableTimer);
513
527
  this.controlFieldConfig();
514
528
  this._formConfigChanged = true;
515
529
  }
@@ -533,13 +547,13 @@ const SnkFormConfig = class {
533
547
  if (config != undefined) {
534
548
  this._formConfig = config;
535
549
  this._tabSelected = 1;
536
- this.loadFields();
550
+ this.loadFields(this._sortableTimer);
537
551
  this.controlFieldConfig();
538
552
  this.clearTempGroups();
539
553
  }
540
554
  }
541
- loadConfig() {
542
- this.loadFormConfig();
555
+ loadConfig(updateTimer = 0) {
556
+ this.loadFormConfig(updateTimer);
543
557
  this.loadUserConfig();
544
558
  }
545
559
  addNewGroup() {
@@ -580,7 +594,7 @@ const SnkFormConfig = class {
580
594
  });
581
595
  }
582
596
  else {
583
- this.updateFieldsToSave();
597
+ this.updateFieldsToSave(this._sortableTimer);
584
598
  }
585
599
  }
586
600
  checkGroupExists(newLabel, indexGroup, isTempGroup = false) {
@@ -626,7 +640,7 @@ const SnkFormConfig = class {
626
640
  field.group = newLabel;
627
641
  }
628
642
  });
629
- this.loadFields();
643
+ this.loadFields(this._sortableTimer);
630
644
  this.controlFieldConfig();
631
645
  this._formConfigChanged = true;
632
646
  }
@@ -840,14 +854,14 @@ const SnkFormConfig = class {
840
854
  this._formConfigChanged = true;
841
855
  this.resetSortables();
842
856
  }
843
- controlRemoveFieldConfig(fieldConfig) {
857
+ controlRemoveFieldConfig(fieldConfig, updateTimer) {
844
858
  var _a;
845
859
  this._formConfigChanged = false;
846
860
  if (fieldConfig == undefined) {
847
861
  return;
848
862
  }
849
863
  this._formConfig.fields = (_a = this._formConfig.fields) === null || _a === void 0 ? void 0 : _a.filter((field) => field.name !== fieldConfig.name);
850
- this.loadFields();
864
+ this.loadFields(updateTimer);
851
865
  this.controlFieldConfig();
852
866
  this._formConfigChanged = true;
853
867
  this.resetSortables();
@@ -856,14 +870,14 @@ const SnkFormConfig = class {
856
870
  this.controlSortableField();
857
871
  this.controlSortableGroup();
858
872
  }
859
- handleFieldConfigChange(evt) {
873
+ handleFieldConfigChange(evt, updateTimer = 0) {
860
874
  const { field: fieldConfig, type: actionType } = evt.detail;
861
875
  if (actionType === constants.ACTION_CONFIG.configuration) {
862
876
  this.controlFieldConfig(fieldConfig);
863
877
  return;
864
878
  }
865
879
  if (actionType === constants.ACTION_CONFIG.remove) {
866
- this.controlRemoveFieldConfig(fieldConfig);
880
+ this.controlRemoveFieldConfig(fieldConfig, updateTimer);
867
881
  return;
868
882
  }
869
883
  if (actionType === constants.ACTION_CONFIG.add) {
@@ -884,7 +898,7 @@ const SnkFormConfig = class {
884
898
  tab.label = newLabel;
885
899
  }
886
900
  });
887
- this.loadFields();
901
+ this.loadFields(this._sortableTimer);
888
902
  this.controlFieldConfig();
889
903
  this._formConfigChanged = true;
890
904
  }
@@ -904,7 +918,7 @@ const SnkFormConfig = class {
904
918
  this._formConfig.tabs = (_a = this._formConfig.tabs) === null || _a === void 0 ? void 0 : _a.filter((tab) => {
905
919
  return tab.label !== tabSelected.detail.label;
906
920
  });
907
- this.loadFields();
921
+ this.loadFields(this._sortableTimer);
908
922
  this.controlFieldConfig();
909
923
  this._formConfigChanged = true;
910
924
  }
@@ -917,7 +931,7 @@ const SnkFormConfig = class {
917
931
  tab.visible = !tab.visible;
918
932
  }
919
933
  });
920
- this.loadFields();
934
+ this.loadFields(this._sortableTimer);
921
935
  this.controlFieldConfig();
922
936
  this._formConfigChanged = true;
923
937
  }
@@ -8,7 +8,7 @@ const fieldSearch = require('./field-search-f56aa7d6.js');
8
8
  const taskbarElements = require('./taskbar-elements-1e4fb2e0.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  require('./DataFetcher-99f0f6ed.js');
11
- require('./pesquisa-fetcher-c416a6b7.js');
11
+ require('./pesquisa-fetcher-8bbee432.js');
12
12
  const index$1 = require('./index-0922807b.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-bd69fce4.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-100c3098.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('./SnkFormConfigManager-3621bfc4.js');
@@ -18,7 +18,7 @@ require('./taskbar-elements-1e4fb2e0.js');
18
18
  require('./index-0922807b.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./constants-35ddd366.js');
21
- require('./pesquisa-fetcher-c416a6b7.js');
21
+ require('./pesquisa-fetcher-8bbee432.js');
22
22
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
23
23
  require('./PreloadManager-84466da6.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -67,8 +67,10 @@ const SnkFilterPersonalized = class {
67
67
  return this.presentationMode === presentationMode.EPresentationMode.MODAL;
68
68
  }
69
69
  doSearch(mode, argument, param) {
70
+ const context = Object.assign({}, param.searchContext);
71
+ context.searchOptions = Object.assign(Object.assign({}, context.searchOptions), { showInactives: "true" });
70
72
  return new Promise((resolve, reject) => {
71
- this._application.executePreparedSearch(mode, argument, param.searchContext)
73
+ this._application.executePreparedSearch(mode, argument, context)
72
74
  .then(result => {
73
75
  resolve(result);
74
76
  }).catch(reason => {
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
7
7
  const constants = require('./constants-35ddd366.js');
8
8
  const taskbarElements = require('./taskbar-elements-1e4fb2e0.js');
9
9
  require('./DataFetcher-99f0f6ed.js');
10
- const pesquisaFetcher = require('./pesquisa-fetcher-c416a6b7.js');
10
+ const pesquisaFetcher = require('./pesquisa-fetcher-8bbee432.js');
11
11
  const index$1 = require('./index-0922807b.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -55,8 +55,10 @@ export class SnkFilterPersonalized {
55
55
  return this.presentationMode === EPresentationMode.MODAL;
56
56
  }
57
57
  doSearch(mode, argument, param) {
58
+ const context = Object.assign({}, param.searchContext);
59
+ context.searchOptions = Object.assign(Object.assign({}, context.searchOptions), { showInactives: "true" });
58
60
  return new Promise((resolve, reject) => {
59
- this._application.executePreparedSearch(mode, argument, param.searchContext)
61
+ this._application.executePreparedSearch(mode, argument, context)
60
62
  .then(result => {
61
63
  resolve(result);
62
64
  }).catch(reason => {
@@ -25,6 +25,7 @@ export class SnkFormConfig {
25
25
  this._formFieldsStyle = "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding-right--small ez-padding-bottom--medium sc-snk-form-config";
26
26
  this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
27
27
  this._fieldFloatingStyle = "form-config__field-config--dragged";
28
+ this._sortableTimer = 100;
28
29
  this._formConfigOptions = [];
29
30
  this._fieldConfigSelected = undefined;
30
31
  this._layoutFormConfig = undefined;
@@ -39,20 +40,27 @@ export class SnkFormConfig {
39
40
  this.messagesBuilder = undefined;
40
41
  }
41
42
  observeConfigManager() {
42
- this.loadConfig();
43
+ this.loadConfig(this._sortableTimer);
43
44
  }
44
- loadFields() {
45
+ loadFields(updateTimer = 0) {
45
46
  this._layoutFormConfig = [];
46
- this.buildFields();
47
+ if (updateTimer > 0) {
48
+ setTimeout(() => {
49
+ this.buildFields();
50
+ }, updateTimer);
51
+ }
52
+ else {
53
+ this.buildFields();
54
+ }
47
55
  }
48
56
  buildFields() {
49
57
  this.buildFormConfig();
50
58
  this.buildAvailableFields();
51
59
  }
52
- loadFormConfig() {
60
+ loadFormConfig(updateTimer) {
53
61
  var _a;
54
62
  this._formConfig = this.getConfig();
55
- this.loadFields();
63
+ this.loadFields(updateTimer);
56
64
  this.controlFieldConfig();
57
65
  if (((_a = this._filterFieldsAvailable) === null || _a === void 0 ? void 0 : _a.value) != undefined) {
58
66
  this._filterFieldsAvailable.value = "";
@@ -95,12 +103,12 @@ export class SnkFormConfig {
95
103
  }
96
104
  }
97
105
  resetChangeConfig() {
98
- this.loadFormConfig();
106
+ this.loadFormConfig(this._sortableTimer);
99
107
  this.clearTempGroups();
100
108
  }
101
109
  resetChangeOptionConfig() {
102
110
  this._formConfigChanged = false;
103
- this.loadConfig();
111
+ this.loadConfig(this._sortableTimer);
104
112
  this.clearTempGroups();
105
113
  }
106
114
  getTabsToSave() {
@@ -318,7 +326,9 @@ export class SnkFormConfig {
318
326
  && oldContainer.id === newContainer.id) {
319
327
  evt.cancel();
320
328
  this._fieldsAvailable = [];
321
- this.buildAvailableFields();
329
+ setTimeout(() => {
330
+ this.buildAvailableFields();
331
+ }, this._sortableTimer);
322
332
  return true;
323
333
  }
324
334
  return false;
@@ -361,7 +371,11 @@ export class SnkFormConfig {
361
371
  if (isNewGroup) {
362
372
  this.clearTempGroups(true);
363
373
  }
364
- this.updateFieldsToSave();
374
+ const sortableTimer = oldContainer.dataset.groupName !== newContainer.dataset.groupName
375
+ || (newContainer.id === CONTAINER_ID.withoutGroup && oldContainer.id === CONTAINER_ID.fieldsAvailable)
376
+ ? this._sortableTimer
377
+ : 0;
378
+ this.updateFieldsToSave(sortableTimer);
365
379
  }, this._renderTimer);
366
380
  return true;
367
381
  }
@@ -391,12 +405,12 @@ export class SnkFormConfig {
391
405
  return;
392
406
  }
393
407
  }
394
- updateFieldsToSave() {
408
+ updateFieldsToSave(updateTimer = 0) {
395
409
  const fields = this.getFieldsToSave();
396
410
  if ((fields === null || fields === void 0 ? void 0 : fields.length) > 0) {
397
411
  this._formConfig.fields = fields;
398
412
  }
399
- this.loadFields();
413
+ this.loadFields(updateTimer);
400
414
  this._formConfigChanged = true;
401
415
  }
402
416
  controlSortableField() {
@@ -426,7 +440,7 @@ export class SnkFormConfig {
426
440
  controlStopDraggingGroup(evt) {
427
441
  if (evt.data.newIndex !== evt.data.oldIndex) {
428
442
  setTimeout(() => {
429
- this.updateFieldsToSave();
443
+ this.updateFieldsToSave(this._sortableTimer);
430
444
  }, this._renderTimer);
431
445
  }
432
446
  }
@@ -499,7 +513,7 @@ export class SnkFormConfig {
499
513
  });
500
514
  if (tabs.length > 0) {
501
515
  this._formConfig.tabs = tabs;
502
- this.loadFields();
516
+ this.loadFields(this._sortableTimer);
503
517
  this.controlFieldConfig();
504
518
  this._formConfigChanged = true;
505
519
  }
@@ -523,13 +537,13 @@ export class SnkFormConfig {
523
537
  if (config != undefined) {
524
538
  this._formConfig = config;
525
539
  this._tabSelected = 1;
526
- this.loadFields();
540
+ this.loadFields(this._sortableTimer);
527
541
  this.controlFieldConfig();
528
542
  this.clearTempGroups();
529
543
  }
530
544
  }
531
- loadConfig() {
532
- this.loadFormConfig();
545
+ loadConfig(updateTimer = 0) {
546
+ this.loadFormConfig(updateTimer);
533
547
  this.loadUserConfig();
534
548
  }
535
549
  addNewGroup() {
@@ -570,7 +584,7 @@ export class SnkFormConfig {
570
584
  });
571
585
  }
572
586
  else {
573
- this.updateFieldsToSave();
587
+ this.updateFieldsToSave(this._sortableTimer);
574
588
  }
575
589
  }
576
590
  checkGroupExists(newLabel, indexGroup, isTempGroup = false) {
@@ -616,7 +630,7 @@ export class SnkFormConfig {
616
630
  field.group = newLabel;
617
631
  }
618
632
  });
619
- this.loadFields();
633
+ this.loadFields(this._sortableTimer);
620
634
  this.controlFieldConfig();
621
635
  this._formConfigChanged = true;
622
636
  }
@@ -830,14 +844,14 @@ export class SnkFormConfig {
830
844
  this._formConfigChanged = true;
831
845
  this.resetSortables();
832
846
  }
833
- controlRemoveFieldConfig(fieldConfig) {
847
+ controlRemoveFieldConfig(fieldConfig, updateTimer) {
834
848
  var _a;
835
849
  this._formConfigChanged = false;
836
850
  if (fieldConfig == undefined) {
837
851
  return;
838
852
  }
839
853
  this._formConfig.fields = (_a = this._formConfig.fields) === null || _a === void 0 ? void 0 : _a.filter((field) => field.name !== fieldConfig.name);
840
- this.loadFields();
854
+ this.loadFields(updateTimer);
841
855
  this.controlFieldConfig();
842
856
  this._formConfigChanged = true;
843
857
  this.resetSortables();
@@ -846,14 +860,14 @@ export class SnkFormConfig {
846
860
  this.controlSortableField();
847
861
  this.controlSortableGroup();
848
862
  }
849
- handleFieldConfigChange(evt) {
863
+ handleFieldConfigChange(evt, updateTimer = 0) {
850
864
  const { field: fieldConfig, type: actionType } = evt.detail;
851
865
  if (actionType === ACTION_CONFIG.configuration) {
852
866
  this.controlFieldConfig(fieldConfig);
853
867
  return;
854
868
  }
855
869
  if (actionType === ACTION_CONFIG.remove) {
856
- this.controlRemoveFieldConfig(fieldConfig);
870
+ this.controlRemoveFieldConfig(fieldConfig, updateTimer);
857
871
  return;
858
872
  }
859
873
  if (actionType === ACTION_CONFIG.add) {
@@ -874,7 +888,7 @@ export class SnkFormConfig {
874
888
  tab.label = newLabel;
875
889
  }
876
890
  });
877
- this.loadFields();
891
+ this.loadFields(this._sortableTimer);
878
892
  this.controlFieldConfig();
879
893
  this._formConfigChanged = true;
880
894
  }
@@ -894,7 +908,7 @@ export class SnkFormConfig {
894
908
  this._formConfig.tabs = (_a = this._formConfig.tabs) === null || _a === void 0 ? void 0 : _a.filter((tab) => {
895
909
  return tab.label !== tabSelected.detail.label;
896
910
  });
897
- this.loadFields();
911
+ this.loadFields(this._sortableTimer);
898
912
  this.controlFieldConfig();
899
913
  this._formConfigChanged = true;
900
914
  }
@@ -907,7 +921,7 @@ export class SnkFormConfig {
907
921
  tab.visible = !tab.visible;
908
922
  }
909
923
  });
910
- this.loadFields();
924
+ this.loadFields(this._sortableTimer);
911
925
  this.controlFieldConfig();
912
926
  this._formConfigChanged = true;
913
927
  }
@@ -86,14 +86,7 @@ export class PesquisaFetcher {
86
86
  };
87
87
  }
88
88
  const options = searchOptions != undefined
89
- ? {
90
- "pkFieldName": searchOptions.codeFieldName,
91
- "label": searchOptions.descriptionFieldName,
92
- "fieldName": searchOptions.codeFieldName,
93
- "useDescriptionOptions": false,
94
- "enableRowsCounter": true
95
- }
96
- : undefined;
89
+ ? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
97
90
  const reqBody = {
98
91
  "serviceName": serviceName,
99
92
  "requestBody": {
@@ -90,14 +90,7 @@ class PesquisaFetcher {
90
90
  };
91
91
  }
92
92
  const options = searchOptions != undefined
93
- ? {
94
- "pkFieldName": searchOptions.codeFieldName,
95
- "label": searchOptions.descriptionFieldName,
96
- "fieldName": searchOptions.codeFieldName,
97
- "useDescriptionOptions": false,
98
- "enableRowsCounter": true
99
- }
100
- : undefined;
93
+ ? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
101
94
  const reqBody = {
102
95
  "serviceName": serviceName,
103
96
  "requestBody": {