@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-78242.2 → 0.0.0-bugfix-dev-KB-80932.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/cjs/{ConfigStorage-f079f5fd.js → ConfigStorage-d024aec8.js} +2 -2
  2. package/dist/cjs/{ContinuousInsertUtils-64e47516.js → ContinuousInsertUtils-54d44192.js} +5 -5
  3. package/dist/cjs/{DataFetcher-e059eb72.js → DataFetcher-65879b2c.js} +188 -56
  4. package/dist/cjs/{SnkFormConfigManager-63369164.js → SnkFormConfigManager-ae3185b2.js} +2 -2
  5. package/dist/cjs/{auth-fetcher-4f853233.js → auth-fetcher-8480751c.js} +1 -1
  6. package/dist/cjs/{dataunit-fetcher-228016f4.js → dataunit-fetcher-8ea97d88.js} +2 -2
  7. package/dist/cjs/{form-config-fetcher-39397ac5.js → form-config-fetcher-90126e4c.js} +38 -1
  8. package/dist/cjs/index-f9e81701.js +8 -4
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{pesquisa-fetcher-a9bfeb22.js → pesquisa-fetcher-f3454c23.js} +179 -1
  11. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +133 -0
  12. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  13. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +99 -9
  14. package/dist/cjs/snk-application.cjs.entry.js +144 -21
  15. package/dist/cjs/snk-attach.cjs.entry.js +13 -9
  16. package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
  17. package/dist/cjs/snk-crud.cjs.entry.js +8 -7
  18. package/dist/cjs/snk-data-exporter.cjs.entry.js +29 -18
  19. package/dist/cjs/{snk-data-unit-3d9b6ed4.js → snk-data-unit-72ef8777.js} +1 -1
  20. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  21. package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
  22. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +27 -11
  23. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  24. package/dist/cjs/snk-grid.cjs.entry.js +9 -8
  25. package/dist/cjs/{snk-guides-viewer-2139481c.js → snk-guides-viewer-ea5d0907.js} +5 -5
  26. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  27. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  28. package/dist/cjs/snk-pesquisa.cjs.entry.js +105 -31
  29. package/dist/cjs/snk-simple-crud.cjs.entry.js +27 -29
  30. package/dist/collection/collection-manifest.json +3 -0
  31. package/dist/collection/components/snk-actions-button/actions/index.js +4 -4
  32. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +4 -3
  33. package/dist/collection/components/snk-application/snk-application.css +34 -0
  34. package/dist/collection/components/snk-application/snk-application.js +197 -14
  35. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
  36. package/dist/collection/components/snk-crud/snk-crud.js +39 -20
  37. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +11 -5
  38. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +11 -4
  39. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -1
  40. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -3
  41. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
  42. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
  43. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +40 -8
  44. package/dist/collection/components/snk-grid/snk-grid.js +39 -20
  45. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +10 -0
  46. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +190 -0
  47. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +25 -0
  48. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +179 -0
  49. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +89 -0
  50. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +24 -5
  51. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +168 -32
  52. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +56 -41
  53. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  54. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +181 -0
  55. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +1 -1
  56. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +41 -4
  57. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +92 -3
  58. package/dist/components/ContinuousInsertUtils.js +2 -3
  59. package/dist/components/DataFetcher.js +188 -56
  60. package/dist/components/ISave.js +346 -1
  61. package/dist/components/dataunit-fetcher.js +1 -1
  62. package/dist/components/form-config-fetcher.js +37 -0
  63. package/dist/components/index.d.ts +3 -0
  64. package/dist/components/index.js +3 -0
  65. package/dist/components/pesquisa-grid.d.ts +11 -0
  66. package/dist/components/pesquisa-grid.js +6 -0
  67. package/dist/components/pesquisa-grid2.js +86 -0
  68. package/dist/components/pesquisa-tree.d.ts +11 -0
  69. package/dist/components/pesquisa-tree.js +6 -0
  70. package/dist/components/pesquisa-tree2.js +82 -0
  71. package/dist/components/snk-actions-button2.js +4 -5
  72. package/dist/components/snk-application2.js +159 -20
  73. package/dist/components/snk-attach2.js +20 -35
  74. package/dist/components/snk-crud.js +66 -59
  75. package/dist/components/snk-data-exporter2.js +25 -15
  76. package/dist/components/snk-detail-view2.js +84 -94
  77. package/dist/components/snk-filter-bar2.js +23 -8
  78. package/dist/components/snk-filter-modal.js +3 -1
  79. package/dist/components/snk-grid2.js +5 -4
  80. package/dist/components/snk-pesquisa2.js +118 -33
  81. package/dist/components/snk-simple-crud2.js +35 -56
  82. package/dist/components/snk-simple-form-config.d.ts +11 -0
  83. package/dist/components/snk-simple-form-config.js +6 -0
  84. package/dist/components/snk-simple-form-config2.js +120 -0
  85. package/dist/components/teste-pesquisa.js +13 -1
  86. package/dist/esm/{ConfigStorage-6514d66e.js → ConfigStorage-373bb440.js} +2 -2
  87. package/dist/esm/{ContinuousInsertUtils-b62906f9.js → ContinuousInsertUtils-25e7bd9a.js} +5 -5
  88. package/dist/esm/{DataFetcher-5034df59.js → DataFetcher-5221b992.js} +188 -56
  89. package/dist/esm/{SnkFormConfigManager-b409c745.js → SnkFormConfigManager-b65e6db0.js} +2 -2
  90. package/dist/esm/{auth-fetcher-ca5d3a49.js → auth-fetcher-e32fe8a4.js} +1 -1
  91. package/dist/esm/{dataunit-fetcher-56cb648b.js → dataunit-fetcher-8dd93d8b.js} +2 -2
  92. package/dist/esm/{form-config-fetcher-a7d3e277.js → form-config-fetcher-126e2471.js} +38 -1
  93. package/dist/esm/index-a7d3d3f1.js +8 -4
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-0af41f09.js} +180 -3
  96. package/dist/esm/pesquisa-grid_2.entry.js +128 -0
  97. package/dist/esm/sankhyablocks.js +1 -1
  98. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +99 -10
  99. package/dist/esm/snk-application.entry.js +146 -23
  100. package/dist/esm/snk-attach.entry.js +13 -9
  101. package/dist/esm/snk-config-options_3.entry.js +4 -4
  102. package/dist/esm/snk-crud.entry.js +8 -7
  103. package/dist/esm/snk-data-exporter.entry.js +29 -18
  104. package/dist/esm/{snk-data-unit-9fa7d2b9.js → snk-data-unit-11a49fc3.js} +1 -1
  105. package/dist/esm/snk-data-unit.entry.js +3 -3
  106. package/dist/esm/snk-detail-view.entry.js +7 -7
  107. package/dist/esm/snk-filter-bar_4.entry.js +28 -12
  108. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  109. package/dist/esm/snk-grid.entry.js +9 -8
  110. package/dist/esm/{snk-guides-viewer-b7ed39eb.js → snk-guides-viewer-830f5fb9.js} +5 -5
  111. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  112. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  113. package/dist/esm/snk-pesquisa.entry.js +105 -31
  114. package/dist/esm/snk-simple-crud.entry.js +27 -29
  115. package/dist/sankhyablocks/{p-0e206e62.js → p-05b6ff91.js} +1 -1
  116. package/dist/sankhyablocks/p-09067bee.entry.js +1 -0
  117. package/dist/sankhyablocks/p-0cda2226.entry.js +11 -0
  118. package/dist/sankhyablocks/p-1435701f.js +26 -0
  119. package/dist/sankhyablocks/{p-e97be1c8.js → p-171b7623.js} +1 -1
  120. package/dist/sankhyablocks/{p-9ffd9fc7.js → p-19dc71e9.js} +1 -1
  121. package/dist/sankhyablocks/{p-0d2a2e9e.entry.js → p-1a91d1f3.entry.js} +1 -1
  122. package/dist/sankhyablocks/{p-aa003d4e.entry.js → p-1cf39cfd.entry.js} +1 -1
  123. package/dist/sankhyablocks/{p-bb8ef149.entry.js → p-254c59d2.entry.js} +1 -1
  124. package/dist/sankhyablocks/p-422eb699.entry.js +1 -0
  125. package/dist/sankhyablocks/{p-a2c790ac.entry.js → p-469384a2.entry.js} +1 -1
  126. package/dist/sankhyablocks/p-54f5354a.entry.js +1 -0
  127. package/dist/sankhyablocks/{p-342eeb3b.js → p-60e4db34.js} +1 -1
  128. package/dist/sankhyablocks/p-618a29ed.entry.js +1 -0
  129. package/dist/sankhyablocks/p-798386c7.js +6 -0
  130. package/dist/sankhyablocks/{p-fca0e5cc.entry.js → p-82ee6dc3.entry.js} +1 -1
  131. package/dist/sankhyablocks/{p-e4391e16.js → p-8a1ee5b5.js} +1 -1
  132. package/dist/sankhyablocks/p-8bd86610.entry.js +1 -0
  133. package/dist/sankhyablocks/p-b50a0753.entry.js +1 -0
  134. package/dist/sankhyablocks/p-d62228fb.js +1 -0
  135. package/dist/sankhyablocks/p-d92d4f91.entry.js +1 -0
  136. package/dist/sankhyablocks/{p-47d24ac8.js → p-ddefbbc7.js} +1 -1
  137. package/dist/sankhyablocks/p-e5430b29.entry.js +1 -0
  138. package/dist/sankhyablocks/p-f0b9303b.js +1 -0
  139. package/dist/sankhyablocks/p-f258690a.entry.js +1 -0
  140. package/dist/sankhyablocks/{p-ec43fcc8.entry.js → p-f975370f.entry.js} +1 -1
  141. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  142. package/dist/types/components/snk-application/snk-application.d.ts +22 -4
  143. package/dist/types/components/snk-crud/snk-crud.d.ts +8 -4
  144. package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +1 -0
  145. package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
  146. package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +1 -1
  147. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +6 -1
  148. package/dist/types/components/snk-grid/snk-grid.d.ts +8 -4
  149. package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +38 -0
  150. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +29 -0
  151. package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +19 -0
  152. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +35 -1
  153. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -4
  154. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
  155. package/dist/types/components.d.ts +244 -23
  156. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  157. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +10 -1
  158. package/package.json +1 -1
  159. package/react/components.d.ts +3 -0
  160. package/react/components.js +3 -0
  161. package/react/components.js.map +1 -1
  162. package/dist/esm/pesquisa-fetcher-6bc2e41a.js +0 -169
  163. package/dist/sankhyablocks/p-00278e07.js +0 -1
  164. package/dist/sankhyablocks/p-0387d9d7.entry.js +0 -1
  165. package/dist/sankhyablocks/p-126c58ea.js +0 -26
  166. package/dist/sankhyablocks/p-1d3ce0d9.entry.js +0 -1
  167. package/dist/sankhyablocks/p-341465ce.js +0 -6
  168. package/dist/sankhyablocks/p-3728d2aa.entry.js +0 -11
  169. package/dist/sankhyablocks/p-4138da61.entry.js +0 -1
  170. package/dist/sankhyablocks/p-5d9788b3.entry.js +0 -1
  171. package/dist/sankhyablocks/p-7075b789.entry.js +0 -1
  172. package/dist/sankhyablocks/p-aaf94476.js +0 -1
  173. package/dist/sankhyablocks/p-af7f7b3e.entry.js +0 -1
  174. package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
  175. package/dist/sankhyablocks/p-eb7c9cf4.entry.js +0 -1
@@ -2,7 +2,6 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
4
4
  import './DataFetcher.js';
5
- import './pesquisa-fetcher.js';
6
5
  import { P as PresentationMode } from './ISave.js';
7
6
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
8
7
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -11,33 +10,34 @@ import './filter-item-type.enum.js';
11
10
  import './form-config-fetcher.js';
12
11
  import { V as VIEW_MODE } from './constants.js';
13
12
  import { A as AutorizationType } from './auth-fetcher.js';
14
- import { d as defineCustomElement$w } from './snk-actions-button2.js';
15
- import { d as defineCustomElement$v } from './snk-attach2.js';
16
- import { d as defineCustomElement$u } from './snk-config-options2.js';
17
- import { d as defineCustomElement$t } from './snk-configurator2.js';
18
- import { d as defineCustomElement$s } from './snk-data-exporter2.js';
19
- import { d as defineCustomElement$r } from './snk-data-unit2.js';
20
- import { d as defineCustomElement$9, a as defineCustomElement$q } from './snk-detail-view2.js';
21
- import { d as defineCustomElement$p } from './snk-exporter-email-sender2.js';
22
- import { d as defineCustomElement$o } from './snk-expression-group2.js';
23
- import { d as defineCustomElement$n } from './snk-expression-item2.js';
24
- import { d as defineCustomElement$m } from './snk-field-config2.js';
25
- import { d as defineCustomElement$l } from './snk-filter-advanced-mode2.js';
26
- import { d as defineCustomElement$k } from './snk-filter-assistent-mode2.js';
27
- import { d as defineCustomElement$j } from './snk-filter-bar2.js';
28
- import { d as defineCustomElement$i } from './snk-filter-detail2.js';
29
- import { d as defineCustomElement$h } from './snk-filter-field-search2.js';
30
- import { d as defineCustomElement$g } from './snk-filter-item2.js';
31
- import { d as defineCustomElement$f } from './snk-filter-param-config2.js';
32
- import { d as defineCustomElement$e } from './snk-form-config2.js';
33
- import { d as defineCustomElement$d } from './snk-form-summary2.js';
34
- import { d as defineCustomElement$c } from './snk-form-view2.js';
35
- import { d as defineCustomElement$b } from './snk-grid2.js';
36
- import { d as defineCustomElement$a } from './snk-grid-config2.js';
37
- import { d as defineCustomElement$8 } from './snk-personalized-filter2.js';
38
- import { d as defineCustomElement$7 } from './snk-select-box2.js';
39
- import { d as defineCustomElement$6 } from './snk-simple-bar2.js';
40
- import { d as defineCustomElement$5 } from './snk-simple-crud2.js';
13
+ import { d as defineCustomElement$x } from './snk-actions-button2.js';
14
+ import { d as defineCustomElement$w } from './snk-attach2.js';
15
+ import { d as defineCustomElement$v } from './snk-config-options2.js';
16
+ import { d as defineCustomElement$u } from './snk-configurator2.js';
17
+ import { d as defineCustomElement$t } from './snk-data-exporter2.js';
18
+ import { d as defineCustomElement$s } from './snk-data-unit2.js';
19
+ import { d as defineCustomElement$a, a as defineCustomElement$r } from './snk-detail-view2.js';
20
+ import { d as defineCustomElement$q } from './snk-exporter-email-sender2.js';
21
+ import { d as defineCustomElement$p } from './snk-expression-group2.js';
22
+ import { d as defineCustomElement$o } from './snk-expression-item2.js';
23
+ import { d as defineCustomElement$n } from './snk-field-config2.js';
24
+ import { d as defineCustomElement$m } from './snk-filter-advanced-mode2.js';
25
+ import { d as defineCustomElement$l } from './snk-filter-assistent-mode2.js';
26
+ import { d as defineCustomElement$k } from './snk-filter-bar2.js';
27
+ import { d as defineCustomElement$j } from './snk-filter-detail2.js';
28
+ import { d as defineCustomElement$i } from './snk-filter-field-search2.js';
29
+ import { d as defineCustomElement$h } from './snk-filter-item2.js';
30
+ import { d as defineCustomElement$g } from './snk-filter-param-config2.js';
31
+ import { d as defineCustomElement$f } from './snk-form-config2.js';
32
+ import { d as defineCustomElement$e } from './snk-form-summary2.js';
33
+ import { d as defineCustomElement$d } from './snk-form-view2.js';
34
+ import { d as defineCustomElement$c } from './snk-grid2.js';
35
+ import { d as defineCustomElement$b } from './snk-grid-config2.js';
36
+ import { d as defineCustomElement$9 } from './snk-personalized-filter2.js';
37
+ import { d as defineCustomElement$8 } from './snk-select-box2.js';
38
+ import { d as defineCustomElement$7 } from './snk-simple-bar2.js';
39
+ import { d as defineCustomElement$6 } from './snk-simple-crud2.js';
40
+ import { d as defineCustomElement$5 } from './snk-simple-form-config2.js';
41
41
  import { d as defineCustomElement$4 } from './snk-tab-config2.js';
42
42
  import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
43
43
 
@@ -62,6 +62,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
62
62
  this._currentViewMode = VIEW_MODE.GRID;
63
63
  this._canEdit = undefined;
64
64
  this._resourceID = undefined;
65
+ this.enableLockManagerLoadingComp = false;
66
+ this.enableLockManagerTaskbarClick = false;
65
67
  this.configName = undefined;
66
68
  this.filterBarTitle = undefined;
67
69
  this.selectionToastConfig = undefined;
@@ -83,7 +85,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
83
85
  this.enableGridInsert = false;
84
86
  this.domainMessagesBuilder = undefined;
85
87
  this.ignoreReadOnlyFormFields = undefined;
86
- this.enableLockManger = false;
87
88
  this.setCustomFormTitle = undefined;
88
89
  this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
89
90
  }
@@ -430,7 +431,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
430
431
  return;
431
432
  }
432
433
  this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
433
- return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManger: this.enableLockManger }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
434
+ return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
434
435
  }
435
436
  get _element() { return this; }
436
437
  static get watchers() { return {
@@ -438,6 +439,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
438
439
  }; }
439
440
  static get style() { return snkCrudCss; }
440
441
  }, [6, "snk-crud", {
442
+ "enableLockManagerLoadingComp": [4, "enable-lock-manager-loading-comp"],
443
+ "enableLockManagerTaskbarClick": [4, "enable-lock-manager-taskbar-click"],
441
444
  "configName": [1025, "config-name"],
442
445
  "filterBarTitle": [1, "filter-bar-title"],
443
446
  "selectionToastConfig": [16],
@@ -459,7 +462,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
459
462
  "enableGridInsert": [4, "enable-grid-insert"],
460
463
  "domainMessagesBuilder": [1, "domain-messages-builder"],
461
464
  "ignoreReadOnlyFormFields": [4, "ignore-read-only-form-fields"],
462
- "enableLockManger": [4, "enable-lock-manger"],
463
465
  "setCustomFormTitle": [16],
464
466
  "_dataUnit": [32],
465
467
  "_dataState": [32],
@@ -483,7 +485,7 @@ function defineCustomElement$1() {
483
485
  if (typeof customElements === "undefined") {
484
486
  return;
485
487
  }
486
- const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
488
+ const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
487
489
  components.forEach(tagName => { switch (tagName) {
488
490
  case "snk-crud":
489
491
  if (!customElements.get(tagName)) {
@@ -492,140 +494,145 @@ function defineCustomElement$1() {
492
494
  break;
493
495
  case "snk-actions-button":
494
496
  if (!customElements.get(tagName)) {
495
- defineCustomElement$w();
497
+ defineCustomElement$x();
496
498
  }
497
499
  break;
498
500
  case "snk-attach":
499
501
  if (!customElements.get(tagName)) {
500
- defineCustomElement$v();
502
+ defineCustomElement$w();
501
503
  }
502
504
  break;
503
505
  case "snk-config-options":
504
506
  if (!customElements.get(tagName)) {
505
- defineCustomElement$u();
507
+ defineCustomElement$v();
506
508
  }
507
509
  break;
508
510
  case "snk-configurator":
509
511
  if (!customElements.get(tagName)) {
510
- defineCustomElement$t();
512
+ defineCustomElement$u();
511
513
  }
512
514
  break;
513
515
  case "snk-data-exporter":
514
516
  if (!customElements.get(tagName)) {
515
- defineCustomElement$s();
517
+ defineCustomElement$t();
516
518
  }
517
519
  break;
518
520
  case "snk-data-unit":
519
521
  if (!customElements.get(tagName)) {
520
- defineCustomElement$r();
522
+ defineCustomElement$s();
521
523
  }
522
524
  break;
523
525
  case "snk-detail-view":
524
526
  if (!customElements.get(tagName)) {
525
- defineCustomElement$q();
527
+ defineCustomElement$r();
526
528
  }
527
529
  break;
528
530
  case "snk-exporter-email-sender":
529
531
  if (!customElements.get(tagName)) {
530
- defineCustomElement$p();
532
+ defineCustomElement$q();
531
533
  }
532
534
  break;
533
535
  case "snk-expression-group":
534
536
  if (!customElements.get(tagName)) {
535
- defineCustomElement$o();
537
+ defineCustomElement$p();
536
538
  }
537
539
  break;
538
540
  case "snk-expression-item":
539
541
  if (!customElements.get(tagName)) {
540
- defineCustomElement$n();
542
+ defineCustomElement$o();
541
543
  }
542
544
  break;
543
545
  case "snk-field-config":
544
546
  if (!customElements.get(tagName)) {
545
- defineCustomElement$m();
547
+ defineCustomElement$n();
546
548
  }
547
549
  break;
548
550
  case "snk-filter-advanced-mode":
549
551
  if (!customElements.get(tagName)) {
550
- defineCustomElement$l();
552
+ defineCustomElement$m();
551
553
  }
552
554
  break;
553
555
  case "snk-filter-assistent-mode":
554
556
  if (!customElements.get(tagName)) {
555
- defineCustomElement$k();
557
+ defineCustomElement$l();
556
558
  }
557
559
  break;
558
560
  case "snk-filter-bar":
559
561
  if (!customElements.get(tagName)) {
560
- defineCustomElement$j();
562
+ defineCustomElement$k();
561
563
  }
562
564
  break;
563
565
  case "snk-filter-detail":
564
566
  if (!customElements.get(tagName)) {
565
- defineCustomElement$i();
567
+ defineCustomElement$j();
566
568
  }
567
569
  break;
568
570
  case "snk-filter-field-search":
569
571
  if (!customElements.get(tagName)) {
570
- defineCustomElement$h();
572
+ defineCustomElement$i();
571
573
  }
572
574
  break;
573
575
  case "snk-filter-item":
574
576
  if (!customElements.get(tagName)) {
575
- defineCustomElement$g();
577
+ defineCustomElement$h();
576
578
  }
577
579
  break;
578
580
  case "snk-filter-param-config":
579
581
  if (!customElements.get(tagName)) {
580
- defineCustomElement$f();
582
+ defineCustomElement$g();
581
583
  }
582
584
  break;
583
585
  case "snk-form-config":
584
586
  if (!customElements.get(tagName)) {
585
- defineCustomElement$e();
587
+ defineCustomElement$f();
586
588
  }
587
589
  break;
588
590
  case "snk-form-summary":
589
591
  if (!customElements.get(tagName)) {
590
- defineCustomElement$d();
592
+ defineCustomElement$e();
591
593
  }
592
594
  break;
593
595
  case "snk-form-view":
594
596
  if (!customElements.get(tagName)) {
595
- defineCustomElement$c();
597
+ defineCustomElement$d();
596
598
  }
597
599
  break;
598
600
  case "snk-grid":
599
601
  if (!customElements.get(tagName)) {
600
- defineCustomElement$b();
602
+ defineCustomElement$c();
601
603
  }
602
604
  break;
603
605
  case "snk-grid-config":
604
606
  if (!customElements.get(tagName)) {
605
- defineCustomElement$a();
607
+ defineCustomElement$b();
606
608
  }
607
609
  break;
608
610
  case "snk-guides-viewer":
609
611
  if (!customElements.get(tagName)) {
610
- defineCustomElement$9();
612
+ defineCustomElement$a();
611
613
  }
612
614
  break;
613
615
  case "snk-personalized-filter":
614
616
  if (!customElements.get(tagName)) {
615
- defineCustomElement$8();
617
+ defineCustomElement$9();
616
618
  }
617
619
  break;
618
620
  case "snk-select-box":
619
621
  if (!customElements.get(tagName)) {
620
- defineCustomElement$7();
622
+ defineCustomElement$8();
621
623
  }
622
624
  break;
623
625
  case "snk-simple-bar":
624
626
  if (!customElements.get(tagName)) {
625
- defineCustomElement$6();
627
+ defineCustomElement$7();
626
628
  }
627
629
  break;
628
630
  case "snk-simple-crud":
631
+ if (!customElements.get(tagName)) {
632
+ defineCustomElement$6();
633
+ }
634
+ break;
635
+ case "snk-simple-form-config":
629
636
  if (!customElements.get(tagName)) {
630
637
  defineCustomElement$5();
631
638
  }
@@ -1,11 +1,10 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './ISave.js';
4
+ import { D as DataExporterOption, b as DataExporterType, c as DataExporterFormat } from './ISave.js';
5
5
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants.js';
6
6
  import { D as DataFetcher } from './DataFetcher.js';
7
7
  import { S as SnkDataUnit } from './snk-data-unit2.js';
8
- import './pesquisa-fetcher.js';
9
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
10
  import './dataunit-fetcher.js';
@@ -243,7 +242,7 @@ function getFormatResponse(result) {
243
242
  return ObjectUtils.stringToObject(response);
244
243
  }
245
244
 
246
- const DOC_MAX_WIDTH = 800;
245
+ const DOC_MAX_WIDTH = 760;
247
246
  function getVisibleColumns(columns) {
248
247
  const visibleColumns = [];
249
248
  let totalWidth = 0;
@@ -283,12 +282,19 @@ class ServerSideExporterStrategy {
283
282
  const visibleColumns = getVisibleColumns(columns);
284
283
  return visibleColumns;
285
284
  }
285
+ async getColumns(resolveProps) {
286
+ var _a;
287
+ if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
288
+ return await this.getParsedColumns();
289
+ }
290
+ return await this._provider.getColumnsMetadata();
291
+ }
286
292
  async getParams(resolveProps) {
287
- var _a, _b, _c, _d, _e, _f, _g;
293
+ var _a, _b, _c, _d, _e, _f;
288
294
  const filters = (_b = (_a = this._provider).getFilters) === null || _b === void 0 ? void 0 : _b.call(_a);
289
- const columns = ((_c = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _c === void 0 ? void 0 : _c.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
290
- const sort = (_e = (_d = this._provider).getOrders) === null || _e === void 0 ? void 0 : _e.call(_d);
291
- const resourceURI = (_g = (_f = this._provider).getResourceURI) === null || _g === void 0 ? void 0 : _g.call(_f);
295
+ const columns = await this.getColumns(resolveProps);
296
+ const sort = (_d = (_c = this._provider).getOrders) === null || _d === void 0 ? void 0 : _d.call(_c);
297
+ const resourceURI = (_f = (_e = this._provider).getResourceURI) === null || _f === void 0 ? void 0 : _f.call(_e);
292
298
  const selectedIDs = this._provider.getSelectedIDs();
293
299
  const option = resolveProps.exportOption;
294
300
  const currentPageOptions = [
@@ -342,11 +348,17 @@ class ClientSideExporterStrategy {
342
348
  const visibleColumns = getVisibleColumns(columns);
343
349
  return visibleColumns;
344
350
  }
345
- async executeExport(resolveProps) {
351
+ async getColumns(resolveProps) {
346
352
  var _a;
353
+ if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
354
+ return await this.getParsedColumns();
355
+ }
356
+ return await this._provider.getColumnsMetadata();
357
+ }
358
+ async executeExport(resolveProps) {
347
359
  const { methodName, gridTitle } = resolveProps;
348
360
  const records = await this._provider.getRecords();
349
- const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
361
+ const columns = await this.getColumns(resolveProps);
350
362
  const [serviceName, processor] = this.getExecutor(methodName);
351
363
  const payload = {
352
364
  serviceName,
@@ -383,10 +395,10 @@ class ClientSideExporterStrategy {
383
395
  "GridXLSBuilderSP.buildXLSFromJson",
384
396
  responseBody => ({
385
397
  fileSessionKey: responseBody.chaveXLS.valor,
386
- canPrint: false,
387
- canExport: false,
398
+ canPrint: true,
399
+ canExport: true,
400
+ canSendEmail: true,
388
401
  useAppPrint: false,
389
- canSendEmail: false
390
402
  })
391
403
  ];
392
404
  }
@@ -547,7 +559,6 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
547
559
  var _a, _b, _c;
548
560
  const optionKey = this.getOptionKey(option);
549
561
  const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
550
- const isDownload = DataExporterType[optionKey] === DataExporterType.EXPORT_TO_XLS;
551
562
  const params = {
552
563
  methodName: DataExporterOption[`EXPORT_TO_${fileType}`],
553
564
  fileName: this._appLabel,
@@ -558,8 +569,7 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
558
569
  };
559
570
  await this.resolveExporter(params, (response) => {
560
571
  if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
561
- fileViewer(Object.assign(Object.assign({}, response), { fileType,
562
- isDownload }));
572
+ fileViewer(Object.assign(Object.assign({}, response), { fileType }));
563
573
  }
564
574
  else {
565
575
  ApplicationUtils.error(this.getMessage("snkDataExporter.title.permission"), this.getMessage("snkDataExporter.message.exportPermission"));