@sankhyalabs/sankhyablocks 8.16.0-dev.92 → 8.16.0-dev.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-2f5f350c.js → ClientSideExporterProvider-9bd6fa5a.js} +55 -20
  2. package/dist/cjs/{ConfigStorage-d024aec8.js → ConfigStorage-6b633b10.js} +2 -2
  3. package/dist/cjs/{DataFetcher-65879b2c.js → DataFetcher-875371e9.js} +1 -1
  4. package/dist/cjs/{SnkFormConfigManager-c11d8468.js → SnkFormConfigManager-d680be08.js} +2 -2
  5. package/dist/cjs/{auth-fetcher-8480751c.js → auth-fetcher-24ba4135.js} +1 -1
  6. package/dist/cjs/{dataunit-fetcher-449d51a3.js → dataunit-fetcher-b95768e8.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-90126e4c.js → form-config-fetcher-e0a512c3.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{pesquisa-fetcher-5c583c93.js → pesquisa-fetcher-30cab386.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_5.cjs.entry.js +5 -5
  13. package/dist/cjs/snk-application.cjs.entry.js +6 -6
  14. package/dist/cjs/snk-attach.cjs.entry.js +5 -5
  15. package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
  16. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  17. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  18. package/dist/cjs/{snk-data-unit-bbd384bf.js → snk-data-unit-33937ffe.js} +1 -1
  19. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  20. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -9
  21. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  22. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  24. package/dist/cjs/{snk-guides-viewer-5396062f.js → snk-guides-viewer-c588a295.js} +6 -6
  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 +7 -7
  29. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +10 -1
  30. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +25 -1
  31. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
  32. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +51 -16
  33. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
  34. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -1
  35. package/dist/components/ContinuousInsertUtils.js +51 -16
  36. package/dist/components/DataFetcher.js +1 -1
  37. package/dist/components/snk-data-exporter2.js +1 -1
  38. package/dist/components/snk-detail-view2.js +5 -3
  39. package/dist/esm/{ClientSideExporterProvider-3537805a.js → ClientSideExporterProvider-e42c5a48.js} +55 -20
  40. package/dist/esm/{ConfigStorage-373bb440.js → ConfigStorage-e5c1f4c0.js} +2 -2
  41. package/dist/esm/{DataFetcher-5221b992.js → DataFetcher-ecf5f903.js} +1 -1
  42. package/dist/esm/{SnkFormConfigManager-5022f87f.js → SnkFormConfigManager-1efd102b.js} +2 -2
  43. package/dist/esm/{auth-fetcher-e32fe8a4.js → auth-fetcher-9987c66e.js} +1 -1
  44. package/dist/esm/{dataunit-fetcher-91b094f2.js → dataunit-fetcher-ed6e65ef.js} +1 -1
  45. package/dist/esm/{form-config-fetcher-126e2471.js → form-config-fetcher-34becd23.js} +1 -1
  46. package/dist/esm/loader.js +1 -1
  47. package/dist/esm/{pesquisa-fetcher-4284f2a3.js → pesquisa-fetcher-e26c3295.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_5.entry.js +5 -5
  51. package/dist/esm/snk-application.entry.js +6 -6
  52. package/dist/esm/snk-attach.entry.js +5 -5
  53. package/dist/esm/snk-config-options_3.entry.js +4 -4
  54. package/dist/esm/snk-crud.entry.js +5 -5
  55. package/dist/esm/snk-data-exporter.entry.js +6 -6
  56. package/dist/esm/{snk-data-unit-b03bb5cf.js → snk-data-unit-6258b8ae.js} +1 -1
  57. package/dist/esm/snk-data-unit.entry.js +3 -3
  58. package/dist/esm/snk-detail-view.entry.js +10 -9
  59. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  60. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  61. package/dist/esm/snk-grid.entry.js +6 -6
  62. package/dist/esm/{snk-guides-viewer-749d027c.js → snk-guides-viewer-c38641c5.js} +6 -6
  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 +7 -7
  67. package/dist/sankhyablocks/{p-ee53b000.entry.js → p-04acdc3a.entry.js} +1 -1
  68. package/dist/sankhyablocks/p-04b96ffe.js +1 -0
  69. package/dist/sankhyablocks/{p-ca316523.entry.js → p-05fda408.entry.js} +1 -1
  70. package/dist/sankhyablocks/p-17af0b1c.entry.js +1 -0
  71. package/dist/sankhyablocks/{p-1435701f.js → p-22ddc147.js} +1 -1
  72. package/dist/sankhyablocks/{p-44efbeed.entry.js → p-2746d606.entry.js} +1 -1
  73. package/dist/sankhyablocks/{p-6234bda8.entry.js → p-27d12f8f.entry.js} +1 -1
  74. package/dist/sankhyablocks/{p-4d87cd45.entry.js → p-3bab7e9c.entry.js} +1 -1
  75. package/dist/sankhyablocks/p-3ce68be5.js +1 -0
  76. package/dist/sankhyablocks/{p-19dc71e9.js → p-3fcb90d6.js} +1 -1
  77. package/dist/sankhyablocks/{p-647f9830.entry.js → p-4b01cbad.entry.js} +1 -1
  78. package/dist/sankhyablocks/{p-d62228fb.js → p-5a7e18f4.js} +1 -1
  79. package/dist/sankhyablocks/{p-4fa79d68.entry.js → p-6b898a51.entry.js} +1 -1
  80. package/dist/sankhyablocks/{p-82ee6dc3.entry.js → p-6c43fcde.entry.js} +1 -1
  81. package/dist/sankhyablocks/{p-3653374d.js → p-7e0a0aae.js} +1 -1
  82. package/dist/sankhyablocks/{p-ad5e4f9d.entry.js → p-9523fc40.entry.js} +1 -1
  83. package/dist/sankhyablocks/p-99ab1e1d.entry.js +1 -0
  84. package/dist/sankhyablocks/p-a18de25e.js +1 -0
  85. package/dist/sankhyablocks/{p-f0b9303b.js → p-a77bdadc.js} +1 -1
  86. package/dist/sankhyablocks/{p-23b47a92.js → p-abd9681c.js} +1 -1
  87. package/dist/sankhyablocks/{p-389ba782.entry.js → p-be2e5f36.entry.js} +1 -1
  88. package/dist/sankhyablocks/{p-1cf39cfd.entry.js → p-d3b9b377.entry.js} +1 -1
  89. package/dist/sankhyablocks/{p-13391b3d.entry.js → p-d571e243.entry.js} +1 -1
  90. package/dist/sankhyablocks/{p-0ce56d43.entry.js → p-e5657d22.entry.js} +1 -1
  91. package/dist/sankhyablocks/{p-c021a3a9.entry.js → p-e66bcb5c.entry.js} +1 -1
  92. package/dist/sankhyablocks/{p-41c3bee5.js → p-ef076eea.js} +2 -2
  93. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  94. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +5 -0
  95. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +7 -0
  96. package/dist/types/components.d.ts +8 -0
  97. package/package.json +1 -1
  98. package/dist/sankhyablocks/p-3ba431c9.js +0 -1
  99. package/dist/sankhyablocks/p-4be6e0e7.entry.js +0 -1
  100. package/dist/sankhyablocks/p-5dd7f4c7.js +0 -1
  101. package/dist/sankhyablocks/p-7b87d1a8.js +0 -1
  102. package/dist/sankhyablocks/p-b2de1bcc.entry.js +0 -1
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
8
- require('./DataFetcher-65879b2c.js');
9
- require('./pesquisa-fetcher-5c583c93.js');
8
+ require('./DataFetcher-875371e9.js');
9
+ require('./pesquisa-fetcher-30cab386.js');
10
10
  const index$1 = require('./index-e3e39724.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-449d51a3.js');
14
+ require('./dataunit-fetcher-b95768e8.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-90126e4c.js');
16
+ require('./form-config-fetcher-e0a512c3.js');
17
17
  const constants = require('./constants-241934b3.js');
18
- const authFetcher = require('./auth-fetcher-8480751c.js');
18
+ const authFetcher = require('./auth-fetcher-24ba4135.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./PrintUtils-bcaeb82f.js');
21
21
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -8,15 +8,15 @@ 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-241934b3.js');
11
- const DataFetcher = require('./DataFetcher-65879b2c.js');
12
- const snkDataUnit = require('./snk-data-unit-bbd384bf.js');
13
- require('./pesquisa-fetcher-5c583c93.js');
11
+ const DataFetcher = require('./DataFetcher-875371e9.js');
12
+ const snkDataUnit = require('./snk-data-unit-33937ffe.js');
13
+ require('./pesquisa-fetcher-30cab386.js');
14
14
  require('./ISave-e91b70a7.js');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
- require('./dataunit-fetcher-449d51a3.js');
17
+ require('./dataunit-fetcher-b95768e8.js');
18
18
  require('./filter-item-type.enum-a7ffdaa6.js');
19
- require('./form-config-fetcher-90126e4c.js');
19
+ require('./form-config-fetcher-e0a512c3.js');
20
20
  require('./PrintUtils-bcaeb82f.js');
21
21
  require('./SnkMessageBuilder-bae64d0d.js');
22
22
  require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
@@ -255,7 +255,7 @@ function getFormatResponse(result) {
255
255
  return core.ObjectUtils.stringToObject(response);
256
256
  }
257
257
 
258
- const DOC_MAX_WIDTH = 760;
258
+ const DOC_MAX_WIDTH = 860;
259
259
  function getVisibleColumns(columns) {
260
260
  const visibleColumns = [];
261
261
  let totalWidth = 0;
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
6
  const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
7
- const dataunitFetcher = require('./dataunit-fetcher-449d51a3.js');
7
+ const dataunitFetcher = require('./dataunit-fetcher-b95768e8.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-bbd384bf.js');
5
+ const snkDataUnit = require('./snk-data-unit-33937ffe.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
9
  require('./SnkMessageBuilder-bae64d0d.js');
10
- require('./dataunit-fetcher-449d51a3.js');
11
- require('./DataFetcher-65879b2c.js');
10
+ require('./dataunit-fetcher-b95768e8.js');
11
+ require('./DataFetcher-875371e9.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-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- require('./DataFetcher-65879b2c.js');
10
- require('./pesquisa-fetcher-5c583c93.js');
9
+ require('./DataFetcher-875371e9.js');
10
+ require('./pesquisa-fetcher-30cab386.js');
11
11
  const index$1 = require('./index-e3e39724.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./dataunit-fetcher-449d51a3.js');
15
+ require('./dataunit-fetcher-b95768e8.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./form-config-fetcher-90126e4c.js');
17
+ require('./form-config-fetcher-e0a512c3.js');
18
18
  const constants = require('./constants-241934b3.js');
19
19
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-5396062f.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-c588a295.js');
21
21
  const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
22
- require('./ConfigStorage-d024aec8.js');
22
+ require('./ConfigStorage-6b633b10.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');
@@ -71,7 +71,7 @@ class GuideBuilder {
71
71
  }
72
72
  }
73
73
 
74
- const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px}.detail-header.sc-snk-detail-view{padding-bottom:0}";
74
+ const snkDetailViewCss = ".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 43px)}";
75
75
 
76
76
  const SnkDetailView = class {
77
77
  constructor(hostRef) {
@@ -97,6 +97,7 @@ const SnkDetailView = class {
97
97
  this.taskbarCustomContainerId = undefined;
98
98
  this.customEditors = undefined;
99
99
  this.customRenders = undefined;
100
+ this.presentationMode = index$1.PresentationMode.SECONDARY;
100
101
  }
101
102
  observeDataUnit(newDataUnit, oldDataUnit) {
102
103
  newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
@@ -316,7 +317,7 @@ const SnkDetailView = class {
316
317
  render() {
317
318
  this.updateLabel();
318
319
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
319
- return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: index$1.PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: index$1.PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
320
+ return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
320
321
  }
321
322
  static get watchers() { return {
322
323
  "dataUnit": ["observeDataUnit"],
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-f9e81701.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-d024aec8.js');
8
+ const ConfigStorage = require('./ConfigStorage-6b633b10.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-c5771aba.js');
@@ -14,8 +14,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
14
14
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
15
15
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
16
16
  const filterType_enum = require('./filter-type.enum-b14ce507.js');
17
- require('./form-config-fetcher-90126e4c.js');
18
- require('./DataFetcher-65879b2c.js');
17
+ require('./form-config-fetcher-e0a512c3.js');
18
+ require('./DataFetcher-875371e9.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
20
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
21
21
 
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.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-d024aec8.js');
9
+ const ConfigStorage = require('./ConfigStorage-6b633b10.js');
10
10
  const filterType_enum = require('./filter-type.enum-b14ce507.js');
11
- require('./form-config-fetcher-90126e4c.js');
12
- require('./DataFetcher-65879b2c.js');
11
+ require('./form-config-fetcher-e0a512c3.js');
12
+ require('./DataFetcher-875371e9.js');
13
13
  require('./PrintUtils-bcaeb82f.js');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
15
 
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
8
- const ConfigStorage = require('./ConfigStorage-d024aec8.js');
8
+ const ConfigStorage = require('./ConfigStorage-6b633b10.js');
9
9
  const index$1 = require('./index-e3e39724.js');
10
10
  const fieldSearch = require('./field-search-68e34bf4.js');
11
11
  const index$2 = require('./index-102ba62d.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-2f5f350c.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-9bd6fa5a.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
- require('./DataFetcher-65879b2c.js');
15
- require('./pesquisa-fetcher-5c583c93.js');
14
+ require('./DataFetcher-875371e9.js');
15
+ require('./pesquisa-fetcher-30cab386.js');
16
16
  require('./ISave-e91b70a7.js');
17
17
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
- require('./dataunit-fetcher-449d51a3.js');
19
+ require('./dataunit-fetcher-b95768e8.js');
20
20
  require('./filter-item-type.enum-a7ffdaa6.js');
21
- require('./form-config-fetcher-90126e4c.js');
21
+ require('./form-config-fetcher-e0a512c3.js');
22
22
  require('./constants-241934b3.js');
23
23
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -2,20 +2,20 @@
2
2
 
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
5
+ const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const fieldSearch = require('./field-search-68e34bf4.js');
8
8
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
9
9
  const constants = require('./constants-241934b3.js');
10
- require('./DataFetcher-65879b2c.js');
11
- require('./pesquisa-fetcher-5c583c93.js');
10
+ require('./DataFetcher-875371e9.js');
11
+ require('./pesquisa-fetcher-30cab386.js');
12
12
  const index$1 = require('./index-e3e39724.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-449d51a3.js');
16
+ require('./dataunit-fetcher-b95768e8.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-90126e4c.js');
18
+ require('./form-config-fetcher-e0a512c3.js');
19
19
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
20
20
 
21
21
  const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
@@ -300,7 +300,7 @@ const SnkGuidesViewer = class {
300
300
  else {
301
301
  detailBranch = this.selectedGuide;
302
302
  }
303
- content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
303
+ content = this.wrapDetail(levels, index.h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
304
304
  }
305
305
  else {
306
306
  const cardId = this.selectedGuide.id;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-5396062f.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-c588a295.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-c11d8468.js');
9
- require('./ConfigStorage-d024aec8.js');
10
- require('./form-config-fetcher-90126e4c.js');
11
- require('./DataFetcher-65879b2c.js');
8
+ require('./SnkFormConfigManager-d680be08.js');
9
+ require('./ConfigStorage-6b633b10.js');
10
+ require('./form-config-fetcher-e0a512c3.js');
11
+ require('./DataFetcher-875371e9.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,10 +18,10 @@ require('./field-search-68e34bf4.js');
18
18
  require('./taskbar-elements-7e19882d.js');
19
19
  require('./index-e3e39724.js');
20
20
  require('./index-102ba62d.js');
21
- require('./pesquisa-fetcher-5c583c93.js');
21
+ require('./pesquisa-fetcher-30cab386.js');
22
22
  require('./ISave-e91b70a7.js');
23
23
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
24
- require('./dataunit-fetcher-449d51a3.js');
24
+ require('./dataunit-fetcher-b95768e8.js');
25
25
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
26
26
  require('@sankhyalabs/core/dist/utils/SortingUtils');
27
27
  require('./ResourceIDUtils-5ff86aa7.js');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
8
- const ConfigStorage = require('./ConfigStorage-d024aec8.js');
8
+ const ConfigStorage = require('./ConfigStorage-6b633b10.js');
9
9
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
10
10
  const index$1 = require('./index-c5771aba.js');
11
11
  const index$2 = require('./index-102ba62d.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
- require('./form-config-fetcher-90126e4c.js');
14
- require('./DataFetcher-65879b2c.js');
13
+ require('./form-config-fetcher-e0a512c3.js');
14
+ require('./DataFetcher-875371e9.js');
15
15
  require('./PrintUtils-bcaeb82f.js');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
17
 
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const pesquisaFetcher = require('./pesquisa-fetcher-5c583c93.js');
8
- require('./DataFetcher-65879b2c.js');
7
+ const pesquisaFetcher = require('./pesquisa-fetcher-30cab386.js');
8
+ require('./DataFetcher-875371e9.js');
9
9
  require('./index-e3e39724.js');
10
10
  require('./ISave-e91b70a7.js');
11
11
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
12
12
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
13
- require('./dataunit-fetcher-449d51a3.js');
13
+ require('./dataunit-fetcher-b95768e8.js');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
15
- require('./form-config-fetcher-90126e4c.js');
15
+ require('./form-config-fetcher-e0a512c3.js');
16
16
  require('./constants-241934b3.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -7,19 +7,19 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-241934b3.js');
9
9
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
10
- require('./DataFetcher-65879b2c.js');
11
- require('./pesquisa-fetcher-5c583c93.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-2f5f350c.js');
10
+ require('./DataFetcher-875371e9.js');
11
+ require('./pesquisa-fetcher-30cab386.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-9bd6fa5a.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
14
  require('./ISave-e91b70a7.js');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
- const dataunitFetcher = require('./dataunit-fetcher-449d51a3.js');
17
+ const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
18
18
  require('./filter-item-type.enum-a7ffdaa6.js');
19
- const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
19
+ const formConfigFetcher = require('./form-config-fetcher-e0a512c3.js');
20
20
  const fieldSearch = require('./field-search-68e34bf4.js');
21
- const ConfigStorage = require('./ConfigStorage-d024aec8.js');
22
- const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
21
+ const ConfigStorage = require('./ConfigStorage-6b633b10.js');
22
+ const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
23
23
  const index$2 = require('./index-102ba62d.js');
24
24
  require('./PrintUtils-bcaeb82f.js');
25
25
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -19,8 +19,17 @@
19
19
  .grid-container{
20
20
  background-color: #FFF;
21
21
  min-height: 100px;
22
+ height: 100%;
22
23
  }
23
24
 
24
25
  .detail-header{
25
26
  padding-bottom: 0;
26
- }
27
+ }
28
+
29
+ snk-data-unit {
30
+ flex: 1;
31
+ }
32
+
33
+ snk-grid{
34
+ height: calc(100% - 43px);
35
+ }
@@ -28,6 +28,7 @@ export class SnkDetailView {
28
28
  this.taskbarCustomContainerId = undefined;
29
29
  this.customEditors = undefined;
30
30
  this.customRenders = undefined;
31
+ this.presentationMode = PresentationMode.SECONDARY;
31
32
  }
32
33
  observeDataUnit(newDataUnit, oldDataUnit) {
33
34
  newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
@@ -247,7 +248,7 @@ export class SnkDetailView {
247
248
  render() {
248
249
  this.updateLabel();
249
250
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
250
- return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
251
+ return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
251
252
  }
252
253
  static get is() { return "snk-detail-view"; }
253
254
  static get encapsulation() { return "scoped"; }
@@ -545,6 +546,29 @@ export class SnkDetailView {
545
546
  "tags": [],
546
547
  "text": "Render customizados da grade."
547
548
  }
549
+ },
550
+ "presentationMode": {
551
+ "type": "string",
552
+ "mutable": false,
553
+ "complexType": {
554
+ "original": "PresentationMode",
555
+ "resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
556
+ "references": {
557
+ "PresentationMode": {
558
+ "location": "import",
559
+ "path": "../../../../lib"
560
+ }
561
+ }
562
+ },
563
+ "required": false,
564
+ "optional": false,
565
+ "docs": {
566
+ "tags": [],
567
+ "text": "Altera o modo de apresenta\u00E7\u00E3o dos bot\u00F5es do snk-taskbar."
568
+ },
569
+ "attribute": "presentation-mode",
570
+ "reflect": false,
571
+ "defaultValue": "PresentationMode.SECONDARY"
548
572
  }
549
573
  };
550
574
  }
@@ -284,7 +284,7 @@ export class SnkGuidesViewer {
284
284
  else {
285
285
  detailBranch = this.selectedGuide;
286
286
  }
287
- content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
287
+ content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
288
288
  }
289
289
  else {
290
290
  const cardId = this.selectedGuide.id;
@@ -2,6 +2,9 @@ import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMeta
2
2
  import { DataType } from '@sankhyalabs/core';
3
3
  export class CommonsExporter {
4
4
  constructor(dataUnit, grid) {
5
+ this.MAX_WIDTH_COD = 60;
6
+ this.MIN_WIDTH_COD = 10;
7
+ this.DEFAULT_FONT_SIZE = 13;
5
8
  this.dataUnit = dataUnit;
6
9
  this.grid = grid;
7
10
  }
@@ -14,7 +17,7 @@ export class CommonsExporter {
14
17
  return this.columnsState;
15
18
  }
16
19
  async buildColumnsMetadata(gridColumns) {
17
- var _a, _b;
20
+ var _a, _b, _c;
18
21
  const columnsMetadata = [];
19
22
  for (const column of gridColumns) {
20
23
  /**
@@ -25,30 +28,62 @@ export class CommonsExporter {
25
28
  }
26
29
  const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
27
30
  const customFormatter = await this.grid.getCustomValueFormatter(column.name);
28
- const columnData = {
29
- label: column.label,
31
+ const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH;
32
+ const widthColumnDefault = 60;
33
+ const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
34
+ let descriptionColumn = undefined;
35
+ let columnData = {
30
36
  id: column.name,
31
- width: (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH ? 60 : column.width,
37
+ label: labelColumn,
38
+ width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
32
39
  type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
33
40
  userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
34
41
  customFormatter
35
42
  };
43
+ if (isUserInterfaceSEARCH) {
44
+ if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
45
+ const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
46
+ const mergedFrom = fieldData.properties.mergedFrom;
47
+ const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
48
+ descriptionColumn = {
49
+ id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
50
+ label: labelDescription,
51
+ width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
52
+ type: DataType.TEXT,
53
+ userInterface: UserInterface.LONGTEXT,
54
+ descriptionFrom: fieldData.name
55
+ };
56
+ }
57
+ if (descriptionColumn) {
58
+ const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
59
+ columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
60
+ descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
61
+ }
62
+ }
36
63
  columnsMetadata.push(columnData);
37
- if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
38
- const mergedFrom = fieldData.properties.mergedFrom;
39
- const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
40
- const descriptionColumn = {
41
- label: fieldData.properties.DESCRIPTIONENTITY,
42
- id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
43
- width: column.width,
44
- type: DataType.TEXT,
45
- userInterface: UserInterface.LONGTEXT,
46
- descriptionFrom: fieldData.name
47
- };
64
+ if (descriptionColumn)
48
65
  columnsMetadata.push(descriptionColumn);
49
- }
50
66
  }
51
67
  ;
52
68
  return columnsMetadata || [];
53
69
  }
70
+ getWidthByMetaData(maxWidth, widthCod, widthDescription) {
71
+ const totalCurrentWidth = widthCod + widthDescription;
72
+ const codPercentage = widthCod / totalCurrentWidth;
73
+ const descPercentage = widthDescription / totalCurrentWidth;
74
+ let newWidthCod = Math.round(maxWidth * codPercentage);
75
+ let newWidthDescription = Math.round(maxWidth * descPercentage);
76
+ if (newWidthCod > this.MAX_WIDTH_COD) {
77
+ newWidthCod = this.MAX_WIDTH_COD;
78
+ newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
79
+ }
80
+ else if (newWidthCod < this.MIN_WIDTH_COD) {
81
+ newWidthCod = this.MIN_WIDTH_COD;
82
+ newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
83
+ }
84
+ return {
85
+ codWidth: newWidthCod,
86
+ descWidth: newWidthDescription
87
+ };
88
+ }
54
89
  }
@@ -1,5 +1,5 @@
1
1
  import { DataExporterOption } from "../../../lib/@types";
2
- const DOC_MAX_WIDTH = 760;
2
+ const DOC_MAX_WIDTH = 860;
3
3
  export function getVisibleColumns(columns) {
4
4
  const visibleColumns = [];
5
5
  let totalWidth = 0;
@@ -415,7 +415,7 @@ export class DataFetcher {
415
415
  const requestId = StringUtils.generateUUID();
416
416
  DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
417
417
  try {
418
- const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
418
+ const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
419
419
  response.forEach((resItem, index) => {
420
420
  var _a;
421
421
  if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {