@sankhyalabs/sankhyablocks 9.1.0-dev.8 → 9.1.0-ms.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 (106) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-6a4108c9.js → ClientSideExporterProvider-b7943abc.js} +4 -4
  2. package/dist/cjs/{ConfigStorage-34aa43d8.js → ConfigStorage-48ba265b.js} +2 -2
  3. package/dist/cjs/{DataFetcher-e23a263b.js → DataFetcher-1afdb18e.js} +1 -6
  4. package/dist/cjs/{ISave-e0be2362.js → ISave-c76e2c51.js} +1 -1
  5. package/dist/cjs/{SnkFormConfigManager-61bf3266.js → SnkFormConfigManager-aa4631bd.js} +2 -2
  6. package/dist/cjs/{auth-fetcher-8670a38f.js → auth-fetcher-1687ac0a.js} +1 -1
  7. package/dist/cjs/{dataunit-fetcher-c34a8217.js → dataunit-fetcher-c2aef198.js} +1 -1
  8. package/dist/cjs/{form-config-fetcher-d8b78403.js → form-config-fetcher-40d3f752.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/snk-actions-button_8.cjs.entry.js +7 -8
  13. package/dist/cjs/snk-application.cjs.entry.js +6 -6
  14. package/dist/cjs/snk-attach.cjs.entry.js +16 -33
  15. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  16. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
  17. package/dist/cjs/{snk-data-unit-a4f9287b.js → snk-data-unit-87c56d62.js} +1 -1
  18. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  19. package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
  20. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  21. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  22. package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
  23. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  24. package/dist/cjs/{snk-guides-viewer-29298823.js → snk-guides-viewer-fedf7ba8.js} +5 -5
  25. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  26. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  27. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  28. package/dist/cjs/snk-simple-crud.cjs.entry.js +14 -14
  29. package/dist/collection/components/snk-attach/snk-attach.js +11 -45
  30. package/dist/collection/components/snk-grid-config/snk-grid-config.js +1 -1
  31. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +1 -20
  32. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +8 -8
  33. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -6
  34. package/dist/components/DataFetcher.js +1 -6
  35. package/dist/components/snk-attach2.js +11 -29
  36. package/dist/components/snk-grid-config2.js +1 -1
  37. package/dist/components/snk-select-box2.js +2 -4
  38. package/dist/components/snk-simple-crud2.js +7 -7
  39. package/dist/esm/{ClientSideExporterProvider-09dee1a3.js → ClientSideExporterProvider-b468acad.js} +4 -4
  40. package/dist/esm/{ConfigStorage-89154c4e.js → ConfigStorage-79b9e180.js} +2 -2
  41. package/dist/esm/{DataFetcher-db08cad0.js → DataFetcher-88e56266.js} +1 -6
  42. package/dist/esm/{ISave-da565824.js → ISave-5efafc97.js} +1 -1
  43. package/dist/esm/{SnkFormConfigManager-d64d62d6.js → SnkFormConfigManager-b4b93298.js} +2 -2
  44. package/dist/esm/{auth-fetcher-43c8d76b.js → auth-fetcher-3510520e.js} +1 -1
  45. package/dist/esm/{dataunit-fetcher-1b78797a.js → dataunit-fetcher-613a6fb9.js} +1 -1
  46. package/dist/esm/{form-config-fetcher-e623539b.js → form-config-fetcher-fa208a6c.js} +1 -1
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/pesquisa-grid_2.entry.js +4 -4
  49. package/dist/esm/sankhyablocks.js +1 -1
  50. package/dist/esm/snk-actions-button_8.entry.js +7 -8
  51. package/dist/esm/snk-application.entry.js +6 -6
  52. package/dist/esm/snk-attach.entry.js +16 -33
  53. package/dist/esm/snk-crud.entry.js +5 -5
  54. package/dist/esm/snk-data-exporter.entry.js +5 -5
  55. package/dist/esm/{snk-data-unit-330db397.js → snk-data-unit-8da2d175.js} +1 -1
  56. package/dist/esm/snk-data-unit.entry.js +3 -3
  57. package/dist/esm/snk-detail-view.entry.js +7 -7
  58. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  59. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  60. package/dist/esm/snk-form_2.entry.js +4 -4
  61. package/dist/esm/snk-grid.entry.js +6 -6
  62. package/dist/esm/{snk-guides-viewer-9335318d.js → snk-guides-viewer-0fc793de.js} +5 -5
  63. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  64. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  65. package/dist/esm/snk-pesquisa.entry.js +4 -4
  66. package/dist/esm/snk-simple-crud.entry.js +14 -14
  67. package/dist/sankhyablocks/{p-1c69a957.entry.js → p-134414d0.entry.js} +1 -1
  68. package/dist/sankhyablocks/p-536dc236.entry.js +1 -0
  69. package/dist/sankhyablocks/{p-60d3abf6.entry.js → p-59d84130.entry.js} +1 -1
  70. package/dist/sankhyablocks/{p-5b31b239.entry.js → p-5b963f03.entry.js} +1 -1
  71. package/dist/sankhyablocks/{p-b21d32f6.js → p-601b252b.js} +1 -1
  72. package/dist/sankhyablocks/{p-8758404f.js → p-6416975c.js} +1 -1
  73. package/dist/sankhyablocks/{p-3b1d73f9.js → p-6d2c841d.js} +1 -1
  74. package/dist/sankhyablocks/{p-c9657baa.js → p-6dd38d7b.js} +1 -1
  75. package/dist/sankhyablocks/{p-e25412da.js → p-73285a8a.js} +1 -1
  76. package/dist/sankhyablocks/{p-fa591f6f.js → p-7bb04271.js} +1 -1
  77. package/dist/sankhyablocks/{p-fc87708a.js → p-848c0ece.js} +1 -1
  78. package/dist/sankhyablocks/{p-9a6fbf3d.entry.js → p-8691b78e.entry.js} +1 -1
  79. package/dist/sankhyablocks/{p-37b4f642.js → p-8f8367d5.js} +1 -1
  80. package/dist/sankhyablocks/{p-31193a60.entry.js → p-9751c42f.entry.js} +1 -1
  81. package/dist/sankhyablocks/{p-a2c6944d.entry.js → p-a414a26c.entry.js} +1 -1
  82. package/dist/sankhyablocks/{p-2d58f98e.entry.js → p-a5bb2f93.entry.js} +1 -1
  83. package/dist/sankhyablocks/{p-412e06e9.js → p-a6513fcb.js} +1 -1
  84. package/dist/sankhyablocks/{p-b2946adb.entry.js → p-c926cf6b.entry.js} +1 -1
  85. package/dist/sankhyablocks/{p-1079e61b.entry.js → p-cb4bcf34.entry.js} +1 -1
  86. package/dist/sankhyablocks/p-d0d8de69.entry.js +1 -0
  87. package/dist/sankhyablocks/{p-f442c8f6.entry.js → p-e0313142.entry.js} +1 -1
  88. package/dist/sankhyablocks/p-ef2022ac.entry.js +1 -0
  89. package/dist/sankhyablocks/{p-4119fd8b.entry.js → p-efb76b5f.entry.js} +1 -1
  90. package/dist/sankhyablocks/{p-7c9815ea.entry.js → p-f21325f1.entry.js} +1 -1
  91. package/dist/sankhyablocks/p-fac65ae7.entry.js +1 -0
  92. package/dist/sankhyablocks/{p-cd1a5b6a.js → p-fbba7e3d.js} +1 -1
  93. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  94. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  95. package/dist/types/components/snk-attach/snk-attach.d.ts +0 -5
  96. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +0 -4
  97. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
  98. package/dist/types/components.d.ts +0 -16
  99. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +0 -1
  100. package/package.json +1 -1
  101. package/dist/sankhyablocks/p-02480593.entry.js +0 -1
  102. package/dist/sankhyablocks/p-5126b34e.entry.js +0 -1
  103. package/dist/sankhyablocks/p-e56eb36b.entry.js +0 -1
  104. package/dist/sankhyablocks/p-fd571197.entry.js +0 -1
  105. /package/dist/collection/components/snk-simple-crud/{snk-simple-crud.constants.js → regular-buttons.js} +0 -0
  106. /package/dist/types/components/snk-simple-crud/{snk-simple-crud.constants.d.ts → regular-buttons.d.ts} +0 -0
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-e23a263b.js');
8
- const ISave = require('./ISave-e0be2362.js');
7
+ const DataFetcher = require('./DataFetcher-1afdb18e.js');
8
+ const ISave = require('./ISave-c76e2c51.js');
9
9
  require('./index-e3e39724.js');
10
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
10
+ const dataunitFetcher = require('./dataunit-fetcher-c2aef198.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
12
- require('./form-config-fetcher-d8b78403.js');
12
+ require('./form-config-fetcher-40d3f752.js');
13
13
  const constants = require('./constants-6d82e405.js');
14
- const authFetcher = require('./auth-fetcher-8670a38f.js');
14
+ const authFetcher = require('./auth-fetcher-1687ac0a.js');
15
15
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -625,8 +625,6 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
625
625
 
626
626
  const RESOURCE_ID = 'AnexoSistema';
627
627
  const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
628
- const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
629
- const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
630
628
  const SnkAttach = class {
631
629
  constructor(hostRef) {
632
630
  index.registerInstance(this, hostRef);
@@ -655,7 +653,6 @@ const SnkAttach = class {
655
653
  this.back.emit();
656
654
  });
657
655
  };
658
- this.gridLegacyConfigName = undefined;
659
656
  this.fetcherType = undefined;
660
657
  this.fetcher = undefined;
661
658
  this.dataUnit = undefined;
@@ -767,11 +764,9 @@ const SnkAttach = class {
767
764
  var _a, _b;
768
765
  this._currentDataUnit = new dataunitFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
769
766
  this._currentFetcher = this.getAnexoSistemaFetcherInstance();
770
- let gridValidateForm;
771
767
  if (!this._currentDataUnit.metadata) {
772
768
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
773
- this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
774
- gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
769
+ this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
775
770
  }
776
771
  this.initDataUnitLoaders();
777
772
  this._currentDataUnit.addFilterProvider({
@@ -781,21 +776,19 @@ const SnkAttach = class {
781
776
  interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
782
777
  });
783
778
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
784
- this.disableEditFieldsNotInForm(gridValidateForm);
779
+ this.disableEditFieldsNotInForm();
785
780
  }
786
781
  async loadAttach() {
787
782
  var _a, _b;
788
783
  this._currentFetcher = new AttachFetcher();
789
784
  this._currentDataUnit = new core.DataUnit(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
790
785
  this._currentDataUnit.pageSize = 150;
791
- let gridValidateForm;
792
786
  this.initDataUnitLoaders();
793
787
  this._currentDataUnit.addInterceptor({
794
788
  interceptAction: (action) => {
795
789
  var _a;
796
790
  if (action.type === core.Action.METADATA_LOADED) {
797
- this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
798
- gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
791
+ this.crudConfig = Object.assign({}, attachCrudConfig);
799
792
  (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
800
793
  }
801
794
  return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
@@ -803,10 +796,9 @@ const SnkAttach = class {
803
796
  });
804
797
  if (!this._currentDataUnit.metadata) {
805
798
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
806
- this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
807
- gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
799
+ this.crudConfig = Object.assign({}, attachCrudConfig);
808
800
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
809
- this.disableEditFieldsNotInForm(gridValidateForm);
801
+ this.disableEditFieldsNotInForm();
810
802
  }
811
803
  }
812
804
  initDataUnitLoaders() {
@@ -825,16 +817,12 @@ const SnkAttach = class {
825
817
  });
826
818
  }
827
819
  }
828
- disableEditFieldsNotInForm(gridValidateForm) {
829
- var _a, _b, _c, _d, _e;
830
- const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
831
- if (!!this.getGridLegacyConfigName()) {
832
- this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
833
- }
834
- gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
835
- var _a, _b;
820
+ disableEditFieldsNotInForm() {
821
+ var _a;
822
+ (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid.columns.forEach(column => {
823
+ var _a;
836
824
  const fieldName = column.name;
837
- if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
825
+ if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
838
826
  this._currentDataUnit.disableField(fieldName);
839
827
  }
840
828
  });
@@ -884,16 +872,11 @@ const SnkAttach = class {
884
872
  await this._currentDataUnit.loadMetadata();
885
873
  }
886
874
  ;
887
- getGridLegacyConfigName() {
888
- if (this.gridLegacyConfigName)
889
- return this.gridLegacyConfigName;
890
- return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
891
- }
892
875
  render() {
893
876
  var _a, _b;
894
877
  if (!this._currentDataUnit)
895
878
  return null;
896
- return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
879
+ return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
897
880
  }
898
881
  static get watchers() { return {
899
882
  "registerKey": ["registerKeyWatcher"]
@@ -5,16 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
8
- require('./DataFetcher-e23a263b.js');
9
- require('./ISave-e0be2362.js');
8
+ require('./DataFetcher-1afdb18e.js');
9
+ require('./ISave-c76e2c51.js');
10
10
  const index$1 = require('./index-e3e39724.js');
11
11
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
12
12
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
13
- require('./dataunit-fetcher-c34a8217.js');
13
+ require('./dataunit-fetcher-c2aef198.js');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
15
- require('./form-config-fetcher-d8b78403.js');
15
+ require('./form-config-fetcher-40d3f752.js');
16
16
  const constants = require('./constants-6d82e405.js');
17
- const authFetcher = require('./auth-fetcher-8670a38f.js');
17
+ const authFetcher = require('./auth-fetcher-1687ac0a.js');
18
18
  require('./index-0ad2baeb.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
20
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -8,14 +8,14 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
9
9
  const index = require('./index-e3e39724.js');
10
10
  const constants = require('./constants-6d82e405.js');
11
- const DataFetcher = require('./DataFetcher-e23a263b.js');
12
- const snkDataUnit = require('./snk-data-unit-a4f9287b.js');
13
- require('./ISave-e0be2362.js');
11
+ const DataFetcher = require('./DataFetcher-1afdb18e.js');
12
+ const snkDataUnit = require('./snk-data-unit-87c56d62.js');
13
+ require('./ISave-c76e2c51.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-c34a8217.js');
16
+ require('./dataunit-fetcher-c2aef198.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-d8b78403.js');
18
+ require('./form-config-fetcher-40d3f752.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
20
  require('./SnkMessageBuilder-221cc88d.js');
21
21
  require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
@@ -4,7 +4,7 @@ const index = require('./index-1cf293c1.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
6
  const SnkMessageBuilder = require('./SnkMessageBuilder-221cc88d.js');
7
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
7
+ const dataunitFetcher = require('./dataunit-fetcher-c2aef198.js');
8
8
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
9
9
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
10
10
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-a4f9287b.js');
5
+ const snkDataUnit = require('./snk-data-unit-87c56d62.js');
6
6
  require('./index-1cf293c1.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
9
  require('./SnkMessageBuilder-221cc88d.js');
10
- require('./dataunit-fetcher-c34a8217.js');
11
- require('./DataFetcher-e23a263b.js');
10
+ require('./dataunit-fetcher-c2aef198.js');
11
+ require('./DataFetcher-1afdb18e.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- require('./DataFetcher-e23a263b.js');
10
- require('./ISave-e0be2362.js');
9
+ require('./DataFetcher-1afdb18e.js');
10
+ require('./ISave-c76e2c51.js');
11
11
  const index$1 = require('./index-e3e39724.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-c34a8217.js');
14
+ require('./dataunit-fetcher-c2aef198.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-d8b78403.js');
16
+ require('./form-config-fetcher-40d3f752.js');
17
17
  const constants = require('./constants-6d82e405.js');
18
18
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
19
- const snkGuidesViewer = require('./snk-guides-viewer-29298823.js');
19
+ const snkGuidesViewer = require('./snk-guides-viewer-fedf7ba8.js');
20
20
  const SnkMessageBuilder = require('./SnkMessageBuilder-221cc88d.js');
21
21
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
22
- require('./ConfigStorage-34aa43d8.js');
22
+ require('./ConfigStorage-48ba265b.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
8
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
8
+ const ConfigStorage = require('./ConfigStorage-48ba265b.js');
9
9
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
11
11
  const index = require('./index-62760a9c.js');
@@ -15,8 +15,8 @@ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js')
15
15
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
16
16
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
17
17
  const defaultFilters = require('./default-filters-a09bf82b.js');
18
- require('./form-config-fetcher-d8b78403.js');
19
- require('./DataFetcher-e23a263b.js');
18
+ require('./form-config-fetcher-40d3f752.js');
19
+ require('./DataFetcher-1afdb18e.js');
20
20
  require('./PrintUtils-bcaeb82f.js');
21
21
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
22
22
 
@@ -6,10 +6,10 @@ const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
9
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
9
+ const ConfigStorage = require('./ConfigStorage-48ba265b.js');
10
10
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
11
- require('./form-config-fetcher-d8b78403.js');
12
- require('./DataFetcher-e23a263b.js');
11
+ require('./form-config-fetcher-40d3f752.js');
12
+ require('./DataFetcher-1afdb18e.js');
13
13
  require('./PrintUtils-bcaeb82f.js');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
15
 
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
8
8
  const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
9
9
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
10
10
  const FormConfigHelper = require('./FormConfigHelper-c664dbae.js');
11
11
  const constants = require('./constants-6d82e405.js');
12
12
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
13
- const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
14
- require('./ConfigStorage-34aa43d8.js');
13
+ const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
14
+ require('./ConfigStorage-48ba265b.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./DataFetcher-e23a263b.js');
16
+ require('./DataFetcher-1afdb18e.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
19
 
@@ -5,19 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
8
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
8
+ const ConfigStorage = require('./ConfigStorage-48ba265b.js');
9
9
  const index$1 = require('./index-e3e39724.js');
10
10
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
11
11
  const index$2 = require('./index-0ad2baeb.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-6a4108c9.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-b7943abc.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
- require('./DataFetcher-e23a263b.js');
15
- require('./ISave-e0be2362.js');
14
+ require('./DataFetcher-1afdb18e.js');
15
+ require('./ISave-c76e2c51.js');
16
16
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
17
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
18
- require('./dataunit-fetcher-c34a8217.js');
18
+ require('./dataunit-fetcher-c2aef198.js');
19
19
  require('./filter-item-type.enum-a7ffdaa6.js');
20
- require('./form-config-fetcher-d8b78403.js');
20
+ require('./form-config-fetcher-40d3f752.js');
21
21
  require('./constants-6d82e405.js');
22
22
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
23
23
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
@@ -2,19 +2,19 @@
2
2
 
3
3
  const index = require('./index-1cf293c1.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
5
+ const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
8
8
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
9
9
  const constants = require('./constants-6d82e405.js');
10
- require('./DataFetcher-e23a263b.js');
11
- require('./ISave-e0be2362.js');
10
+ require('./DataFetcher-1afdb18e.js');
11
+ require('./ISave-c76e2c51.js');
12
12
  const index$1 = require('./index-e3e39724.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./dataunit-fetcher-c34a8217.js');
15
+ require('./dataunit-fetcher-c2aef198.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./form-config-fetcher-d8b78403.js');
17
+ require('./form-config-fetcher-40d3f752.js');
18
18
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
19
19
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
20
20
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-29298823.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-fedf7ba8.js');
6
6
  require('./index-1cf293c1.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-61bf3266.js');
9
- require('./ConfigStorage-34aa43d8.js');
10
- require('./form-config-fetcher-d8b78403.js');
11
- require('./DataFetcher-e23a263b.js');
8
+ require('./SnkFormConfigManager-aa4631bd.js');
9
+ require('./ConfigStorage-48ba265b.js');
10
+ require('./form-config-fetcher-40d3f752.js');
11
+ require('./DataFetcher-1afdb18e.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
@@ -18,9 +18,9 @@ require('./taskbar-processor-2fba34a8.js');
18
18
  require('./taskbar-elements-3b74cd21.js');
19
19
  require('./index-e3e39724.js');
20
20
  require('./index-0ad2baeb.js');
21
- require('./ISave-e0be2362.js');
21
+ require('./ISave-c76e2c51.js');
22
22
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
23
- require('./dataunit-fetcher-c34a8217.js');
23
+ require('./dataunit-fetcher-c2aef198.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
26
26
  require('./ResourceIDUtils-5ff86aa7.js');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
8
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
8
+ const ConfigStorage = require('./ConfigStorage-48ba265b.js');
9
9
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
10
10
  const index$1 = require('./index-62760a9c.js');
11
11
  const index$2 = require('./index-0ad2baeb.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
- require('./form-config-fetcher-d8b78403.js');
14
- require('./DataFetcher-e23a263b.js');
13
+ require('./form-config-fetcher-40d3f752.js');
14
+ require('./DataFetcher-1afdb18e.js');
15
15
  require('./PrintUtils-bcaeb82f.js');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
17
 
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const ISave = require('./ISave-e0be2362.js');
8
- require('./DataFetcher-e23a263b.js');
7
+ const ISave = require('./ISave-c76e2c51.js');
8
+ require('./DataFetcher-1afdb18e.js');
9
9
  require('./index-e3e39724.js');
10
10
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
11
11
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-c34a8217.js');
12
+ require('./dataunit-fetcher-c2aef198.js');
13
13
  require('./filter-item-type.enum-a7ffdaa6.js');
14
- require('./form-config-fetcher-d8b78403.js');
14
+ require('./form-config-fetcher-40d3f752.js');
15
15
  require('./constants-6d82e405.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -7,18 +7,18 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-6d82e405.js');
9
9
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
10
- require('./DataFetcher-e23a263b.js');
11
- require('./ISave-e0be2362.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-6a4108c9.js');
10
+ require('./DataFetcher-1afdb18e.js');
11
+ require('./ISave-c76e2c51.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-b7943abc.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
16
+ const dataunitFetcher = require('./dataunit-fetcher-c2aef198.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
18
+ const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
19
19
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
20
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
21
- const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
20
+ const ConfigStorage = require('./ConfigStorage-48ba265b.js');
21
+ const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
22
22
  const index$2 = require('./index-0ad2baeb.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -110,15 +110,15 @@ const SnkSimpleCrud = class {
110
110
  newCustomRenders.set(fieldName, customRender);
111
111
  this._customRenders = newCustomRenders;
112
112
  }
113
- async handleResourceIDChanged(newValue, oldValue) {
113
+ handleResourceIDChanged(newValue, oldValue) {
114
114
  if (core.StringUtils.isEmpty(newValue)) {
115
115
  return;
116
116
  }
117
117
  if (newValue === oldValue) {
118
118
  return;
119
119
  }
120
- await this.loadFormConfig(true);
121
- await this.loadGridConfig(true);
120
+ this.loadFormConfig(true);
121
+ this.loadGridConfig(true);
122
122
  }
123
123
  /**
124
124
  * Registra um formatador de valores para uma coluna da grid.
@@ -174,7 +174,7 @@ const SnkSimpleCrud = class {
174
174
  .concat(extraButtons));
175
175
  }
176
176
  addConfigButton(buttons) {
177
- if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
177
+ if (this.configName === undefined) {
178
178
  return buttons;
179
179
  }
180
180
  return buttons.concat(taskbarElements.TaskbarElement.CONFIGURATOR);
@@ -285,7 +285,7 @@ const SnkSimpleCrud = class {
285
285
  if (!this._formConfigAlreadyLoaded) {
286
286
  return;
287
287
  }
288
- await this.loadFormConfig(true);
288
+ this.loadFormConfig(true);
289
289
  }
290
290
  openConfig(viewMode) {
291
291
  this._snkConfigurator.close();
@@ -370,8 +370,8 @@ const SnkSimpleCrud = class {
370
370
  return;
371
371
  }
372
372
  await this.addGridLegacyConfigName();
373
- await this.loadGridConfig();
374
- await this.loadFormConfig();
373
+ this.loadGridConfig();
374
+ this.loadFormConfig();
375
375
  }
376
376
  componentDidRender() {
377
377
  this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
@@ -7,8 +7,6 @@ import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
7
7
  import { SaveErrorsEnum } from '../../lib/http/data-fetcher/fetchers/AttachFetcher/interfaces';
8
8
  const RESOURCE_ID = 'AnexoSistema';
9
9
  const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
10
- const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
11
- const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
12
10
  export class SnkAttach {
13
11
  constructor() {
14
12
  this.handleTaskbarClick = async ({ detail: taskbar }) => {
@@ -35,7 +33,6 @@ export class SnkAttach {
35
33
  this.back.emit();
36
34
  });
37
35
  };
38
- this.gridLegacyConfigName = undefined;
39
36
  this.fetcherType = undefined;
40
37
  this.fetcher = undefined;
41
38
  this.dataUnit = undefined;
@@ -147,11 +144,9 @@ export class SnkAttach {
147
144
  var _a, _b;
148
145
  this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
149
146
  this._currentFetcher = this.getAnexoSistemaFetcherInstance();
150
- let gridValidateForm;
151
147
  if (!this._currentDataUnit.metadata) {
152
148
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
153
- this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
154
- gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
149
+ this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
155
150
  }
156
151
  this.initDataUnitLoaders();
157
152
  this._currentDataUnit.addFilterProvider({
@@ -161,21 +156,19 @@ export class SnkAttach {
161
156
  interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
162
157
  });
163
158
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
164
- this.disableEditFieldsNotInForm(gridValidateForm);
159
+ this.disableEditFieldsNotInForm();
165
160
  }
166
161
  async loadAttach() {
167
162
  var _a, _b;
168
163
  this._currentFetcher = new AttachFetcher();
169
164
  this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
170
165
  this._currentDataUnit.pageSize = 150;
171
- let gridValidateForm;
172
166
  this.initDataUnitLoaders();
173
167
  this._currentDataUnit.addInterceptor({
174
168
  interceptAction: (action) => {
175
169
  var _a;
176
170
  if (action.type === Action.METADATA_LOADED) {
177
- this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
178
- gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
171
+ this.crudConfig = Object.assign({}, attachCrudConfig);
179
172
  (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
180
173
  }
181
174
  return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
@@ -183,10 +176,9 @@ export class SnkAttach {
183
176
  });
184
177
  if (!this._currentDataUnit.metadata) {
185
178
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
186
- this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
187
- gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
179
+ this.crudConfig = Object.assign({}, attachCrudConfig);
188
180
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
189
- this.disableEditFieldsNotInForm(gridValidateForm);
181
+ this.disableEditFieldsNotInForm();
190
182
  }
191
183
  }
192
184
  initDataUnitLoaders() {
@@ -205,16 +197,12 @@ export class SnkAttach {
205
197
  });
206
198
  }
207
199
  }
208
- disableEditFieldsNotInForm(gridValidateForm) {
209
- var _a, _b, _c, _d, _e;
210
- const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
211
- if (!!this.getGridLegacyConfigName()) {
212
- this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
213
- }
214
- gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
215
- var _a, _b;
200
+ disableEditFieldsNotInForm() {
201
+ var _a;
202
+ (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid.columns.forEach(column => {
203
+ var _a;
216
204
  const fieldName = column.name;
217
- if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
205
+ if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
218
206
  this._currentDataUnit.disableField(fieldName);
219
207
  }
220
208
  });
@@ -264,16 +252,11 @@ export class SnkAttach {
264
252
  await this._currentDataUnit.loadMetadata();
265
253
  }
266
254
  ;
267
- getGridLegacyConfigName() {
268
- if (this.gridLegacyConfigName)
269
- return this.gridLegacyConfigName;
270
- return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
271
- }
272
255
  render() {
273
256
  var _a, _b;
274
257
  if (!this._currentDataUnit)
275
258
  return null;
276
- return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
259
+ return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
277
260
  }
278
261
  static get is() { return "snk-attach"; }
279
262
  static get encapsulation() { return "scoped"; }
@@ -289,23 +272,6 @@ export class SnkAttach {
289
272
  }
290
273
  static get properties() {
291
274
  return {
292
- "gridLegacyConfigName": {
293
- "type": "string",
294
- "mutable": false,
295
- "complexType": {
296
- "original": "string",
297
- "resolved": "string",
298
- "references": {}
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [],
304
- "text": "Chave da configura\u00E7\u00E3o legado da grid."
305
- },
306
- "attribute": "grid-legacy-config-name",
307
- "reflect": false
308
- },
309
275
  "fetcherType": {
310
276
  "type": "string",
311
277
  "mutable": false,