@sankhyalabs/sankhyablocks 8.14.11 → 8.15.0-dev.10

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 (201) hide show
  1. package/dist/cjs/{ConfigStorage-8009ecb2.js → ConfigStorage-302bbbd4.js} +24 -14
  2. package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
  3. package/dist/cjs/{SnkFormConfigManager-7d850fbc.js → SnkFormConfigManager-71c4768e.js} +1 -1
  4. package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
  5. package/dist/cjs/{field-search-ca27041a.js → field-search-f56aa7d6.js} +29 -1
  6. package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
  7. package/dist/cjs/index-f9e81701.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{dataunit-fetcher-d839c5d7.js → pesquisa-fetcher-7a08d110.js} +173 -6
  10. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  11. package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +133 -4
  12. package/dist/cjs/snk-application.cjs.entry.js +65 -6
  13. package/dist/cjs/snk-attach.cjs.entry.js +389 -58
  14. package/dist/cjs/snk-crud.cjs.entry.js +8 -9
  15. package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
  16. package/dist/cjs/{snk-data-unit-1bc69073.js → snk-data-unit-82c08a8c.js} +1 -1
  17. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  18. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
  19. package/dist/cjs/snk-filter-bar.cjs.entry.js +6 -3
  20. package/dist/cjs/snk-filter-item.cjs.entry.js +47 -1
  21. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-form.cjs.entry.js +2 -2
  23. package/dist/cjs/snk-grid-config.cjs.entry.js +1 -1
  24. package/dist/cjs/snk-grid.cjs.entry.js +51 -42
  25. package/dist/cjs/{snk-guides-viewer-88a7f880.js → snk-guides-viewer-546509df.js} +10 -21
  26. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -9
  27. package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
  28. package/dist/cjs/snk-simple-crud.cjs.entry.js +20 -42
  29. package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
  30. package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
  31. package/dist/collection/collection-manifest.json +2 -1
  32. package/dist/collection/components/snk-application/snk-application.js +65 -5
  33. package/dist/collection/components/snk-attach/snk-attach.js +188 -39
  34. package/dist/collection/components/snk-attach/structure/{crud-config-builder.js → builder/anexo-sistema-crud-config.builder.js} +1 -1
  35. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +62 -0
  36. package/dist/collection/components/snk-attach/structure/{taskbar-builder.js → builder/taskbar-builder.js} +1 -1
  37. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js +1 -0
  38. package/dist/collection/components/snk-attach/structure/{data-unit-builder.js → fetcher/factory/anexo-sistema-data-unit.factory.js} +14 -11
  39. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +111 -0
  40. package/dist/collection/components/snk-attach/structure/index.js +6 -3
  41. package/dist/collection/components/snk-crud/snk-crud.js +5 -5
  42. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +6 -19
  43. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +47 -1
  44. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -2
  45. package/dist/collection/components/snk-grid/snk-grid.js +59 -53
  46. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +15 -36
  47. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
  48. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +324 -0
  49. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
  50. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
  51. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +28 -1
  52. package/dist/collection/lib/@types/index.js +1 -0
  53. package/dist/collection/lib/configs/ConfigStorage.js +24 -14
  54. package/dist/collection/lib/http/data-fetcher/fetchers/{attach-fetcher.js → AttachFetcher/anexo-sistema-fetcher.js} +16 -15
  55. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js +90 -0
  56. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js +1 -0
  57. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js +2 -0
  58. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js +1 -0
  59. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js +1 -0
  60. package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.js +1 -0
  61. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +11 -6
  62. package/dist/collection/lib/index.js +1 -1
  63. package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
  64. package/dist/components/ConfigStorage.js +24 -14
  65. package/dist/components/SnkMessageBuilder.js +13 -0
  66. package/dist/components/dataunit-fetcher.js +11 -6
  67. package/dist/components/field-search.js +29 -2
  68. package/dist/components/index.d.ts +1 -0
  69. package/dist/components/index.js +1 -0
  70. package/dist/components/index2.js +1 -0
  71. package/dist/components/snk-actions-button2.js +1 -0
  72. package/dist/components/snk-application2.js +62 -2
  73. package/dist/components/snk-attach2.js +414 -71
  74. package/dist/components/snk-crud.js +69 -63
  75. package/dist/components/snk-detail-view2.js +95 -94
  76. package/dist/components/snk-filter-bar2.js +5 -2
  77. package/dist/components/snk-filter-item2.js +47 -1
  78. package/dist/components/snk-grid2.js +91 -76
  79. package/dist/components/snk-simple-crud2.js +31 -46
  80. package/dist/components/snk-taskbar2.js +15 -9
  81. package/dist/components/taskbar-actions-button.d.ts +11 -0
  82. package/dist/components/taskbar-actions-button.js +6 -0
  83. package/dist/components/taskbar-actions-button2.js +154 -0
  84. package/dist/esm/{ConfigStorage-1244b8b0.js → ConfigStorage-4151acc8.js} +24 -14
  85. package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
  86. package/dist/esm/{SnkFormConfigManager-9be0e7d4.js → SnkFormConfigManager-5c7d3771.js} +1 -1
  87. package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
  88. package/dist/esm/{field-search-c6938ee4.js → field-search-efbe307f.js} +29 -2
  89. package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
  90. package/dist/esm/index-a7d3d3f1.js +2 -2
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{dataunit-fetcher-cf01a8f4.js → pesquisa-fetcher-d6ff9386.js} +173 -7
  93. package/dist/esm/sankhyablocks.js +1 -1
  94. package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +134 -6
  95. package/dist/esm/snk-application.entry.js +65 -6
  96. package/dist/esm/snk-attach.entry.js +390 -59
  97. package/dist/esm/snk-crud.entry.js +8 -9
  98. package/dist/esm/snk-data-exporter.entry.js +3 -3
  99. package/dist/esm/{snk-data-unit-6208ebf0.js → snk-data-unit-5d201fb3.js} +1 -1
  100. package/dist/esm/snk-data-unit.entry.js +2 -2
  101. package/dist/esm/snk-detail-view.entry.js +9 -10
  102. package/dist/esm/snk-filter-bar.entry.js +6 -3
  103. package/dist/esm/snk-filter-item.entry.js +47 -1
  104. package/dist/esm/snk-filter-modal-item.entry.js +1 -1
  105. package/dist/esm/snk-form.entry.js +2 -2
  106. package/dist/esm/snk-grid-config.entry.js +1 -1
  107. package/dist/esm/snk-grid.entry.js +52 -43
  108. package/dist/esm/{snk-guides-viewer-fde509bf.js → snk-guides-viewer-4e56a2e0.js} +10 -21
  109. package/dist/esm/snk-guides-viewer.entry.js +8 -9
  110. package/dist/esm/snk-personalized-filter.entry.js +1 -1
  111. package/dist/esm/snk-simple-crud.entry.js +19 -41
  112. package/dist/esm/snk-taskbar.entry.js +2 -2
  113. package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
  114. package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
  115. package/dist/sankhyablocks/{p-fd8814b9.entry.js → p-1d75d9f9.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
  117. package/dist/sankhyablocks/p-32460e98.entry.js +11 -0
  118. package/dist/sankhyablocks/p-374d03f6.js +1 -0
  119. package/dist/sankhyablocks/p-38289a55.js +1 -0
  120. package/dist/sankhyablocks/{p-35fe6e61.entry.js → p-3963b9c1.entry.js} +1 -1
  121. package/dist/sankhyablocks/p-42af1bbf.js +65 -0
  122. package/dist/sankhyablocks/{p-776ee8e3.js → p-573a07c5.js} +1 -1
  123. package/dist/sankhyablocks/{p-d4fb9642.entry.js → p-69efa80d.entry.js} +1 -1
  124. package/dist/sankhyablocks/{p-6977a26c.entry.js → p-71439fd9.entry.js} +1 -1
  125. package/dist/sankhyablocks/{p-11081798.entry.js → p-761ed32f.entry.js} +1 -1
  126. package/dist/sankhyablocks/p-7d8d7fe9.entry.js +1 -0
  127. package/dist/sankhyablocks/{p-f514913b.entry.js → p-7f3c7b09.entry.js} +1 -1
  128. package/dist/sankhyablocks/p-8c74258e.entry.js +1 -0
  129. package/dist/sankhyablocks/p-8f0488b8.entry.js +1 -0
  130. package/dist/sankhyablocks/p-9ebcfeb6.entry.js +1 -0
  131. package/dist/sankhyablocks/p-aa95fb2c.js +56 -0
  132. package/dist/sankhyablocks/p-b05ab13d.entry.js +1 -0
  133. package/dist/sankhyablocks/p-c2137023.entry.js +1 -0
  134. package/dist/sankhyablocks/p-c2495304.js +1 -0
  135. package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
  136. package/dist/sankhyablocks/p-d82f6eda.entry.js +1 -0
  137. package/dist/sankhyablocks/p-dcb6aad1.entry.js +1 -0
  138. package/dist/sankhyablocks/{p-3520c088.entry.js → p-e0fd9555.entry.js} +1 -1
  139. package/dist/sankhyablocks/p-e8812d8a.js +1 -0
  140. package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
  141. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  142. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
  143. package/dist/types/components/snk-application/snk-application.d.ts +4 -1
  144. package/dist/types/components/snk-attach/{structure/crud-config-builder.d.ts → interfaces/ICrudConfig.d.ts} +1 -2
  145. package/dist/types/components/snk-attach/interfaces/TFetcherType.d.ts +1 -0
  146. package/dist/types/components/snk-attach/snk-attach.d.ts +27 -6
  147. package/dist/types/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.d.ts +2 -0
  148. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +31 -0
  149. package/dist/types/components/snk-attach/structure/{taskbar-builder.d.ts → builder/taskbar-builder.d.ts} +1 -1
  150. package/dist/types/components/snk-attach/structure/fetcher/facade/fetcher.facade.d.ts +11 -0
  151. package/dist/types/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.d.ts +17 -0
  152. package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +15 -0
  153. package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
  154. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -1
  155. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -0
  156. package/dist/types/components/snk-grid/snk-grid.d.ts +5 -4
  157. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +6 -5
  158. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +60 -0
  159. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +16 -0
  160. package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +2 -0
  161. package/dist/types/components.d.ts +111 -11
  162. package/dist/types/lib/@types/index.d.ts +2 -1
  163. package/dist/types/lib/configs/ConfigStorage.d.ts +4 -0
  164. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
  165. package/dist/types/lib/http/data-fetcher/fetchers/{attach-fetcher.d.ts → AttachFetcher/anexo-sistema-fetcher.d.ts} +3 -2
  166. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.d.ts +11 -0
  167. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts +8 -0
  168. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/index.d.ts +3 -0
  169. package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.d.ts +2 -1
  170. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
  171. package/dist/types/lib/index.d.ts +1 -1
  172. package/package.json +8 -6
  173. package/react/components.d.ts +1 -0
  174. package/react/components.js +1 -0
  175. package/react/components.js.map +1 -1
  176. package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
  177. package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
  178. package/dist/sankhyablocks/p-08ced1fd.entry.js +0 -1
  179. package/dist/sankhyablocks/p-3160fa64.js +0 -60
  180. package/dist/sankhyablocks/p-34774923.entry.js +0 -1
  181. package/dist/sankhyablocks/p-38ab8a3b.entry.js +0 -1
  182. package/dist/sankhyablocks/p-3ab540cc.entry.js +0 -11
  183. package/dist/sankhyablocks/p-3ecd72a4.js +0 -1
  184. package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
  185. package/dist/sankhyablocks/p-5534e08c.js +0 -1
  186. package/dist/sankhyablocks/p-585294ee.js +0 -56
  187. package/dist/sankhyablocks/p-6ea96bb1.entry.js +0 -1
  188. package/dist/sankhyablocks/p-936addf1.js +0 -1
  189. package/dist/sankhyablocks/p-c53926eb.entry.js +0 -1
  190. package/dist/sankhyablocks/p-c9841939.js +0 -1
  191. package/dist/sankhyablocks/p-cfbebb49.entry.js +0 -1
  192. package/dist/sankhyablocks/p-d2923a2a.entry.js +0 -1
  193. package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
  194. package/dist/sankhyablocks/p-f2056f66.entry.js +0 -1
  195. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
  196. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js → components/snk-attach/interfaces/ICrudConfig.js} +0 -0
  197. /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js → components/snk-attach/interfaces/TFetcherType.js} +0 -0
  198. /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
  199. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDelete.d.ts +0 -0
  200. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDownloadKey.d.ts +0 -0
  201. /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.d.ts +0 -0
@@ -4,14 +4,13 @@ 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 taskbarElements = require('./taskbar-elements-39949c7a.js');
7
+ const taskbarElements = require('./taskbar-elements-01b85b99.js');
8
8
  require('./DataFetcher-ba94ed5b.js');
9
- require('./pesquisa-fetcher-ef050a47.js');
10
- const index$1 = require('./index-0e663819.js');
11
- require('./ISave-d68ce3cd.js');
9
+ require('./pesquisa-fetcher-7a08d110.js');
10
+ const index$1 = require('./index-0922807b.js');
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-d839c5d7.js');
15
14
  require('./PreloadManager-84466da6.js');
16
15
  require('./filter-item-type.enum-a7ffdaa6.js');
17
16
  require('./form-config-fetcher-df043d3d.js');
@@ -31,7 +30,7 @@ const SnkCrud = class {
31
30
  this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
32
31
  this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
33
32
  this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
34
- this._keyDownHandler = (event) => this.keyDownListener(event);
33
+ this._keyDownHandler = async (event) => this.keyDownListener(event);
35
34
  this._viewHistory = [];
36
35
  this._dataUnit = undefined;
37
36
  this._dataState = undefined;
@@ -271,7 +270,7 @@ const SnkCrud = class {
271
270
  }
272
271
  this.configuratorCancel.emit();
273
272
  }
274
- keyDownListener(event) {
273
+ async keyDownListener(event) {
275
274
  if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
276
275
  return;
277
276
  }
@@ -283,10 +282,10 @@ const SnkCrud = class {
283
282
  }
284
283
  core.FloatingManager.closeAll();
285
284
  if (this._currentViewMode === constants.VIEW_MODE.GRID) {
286
- this._snkGrid.findColumn();
285
+ await this._snkGrid.findColumn();
287
286
  }
288
287
  else {
289
- this._guidesViewer.findField();
288
+ await this._guidesViewer.findField();
290
289
  }
291
290
  event.preventDefault();
292
291
  }
@@ -5,13 +5,13 @@ 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 utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const index = require('./index-0e663819.js');
8
+ const index = require('./index-0922807b.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  const DataFetcher = require('./DataFetcher-ba94ed5b.js');
11
- const snkDataUnit = require('./snk-data-unit-1bc69073.js');
11
+ const snkDataUnit = require('./snk-data-unit-82c08a8c.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./SnkMessageBuilder-7293d0ad.js');
14
+ require('./SnkMessageBuilder-e7dcf408.js');
15
15
 
16
16
  class ItemBuilder {
17
17
  constructor(getMessage, selectedNumber) {
@@ -3,7 +3,7 @@
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
- const SnkMessageBuilder = require('./SnkMessageBuilder-7293d0ad.js');
6
+ const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
7
7
 
8
8
  const SnkDataUnit = class {
9
9
  constructor(hostRef) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-1bc69073.js');
5
+ const snkDataUnit = require('./snk-data-unit-82c08a8c.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./SnkMessageBuilder-7293d0ad.js');
9
+ require('./SnkMessageBuilder-e7dcf408.js');
10
10
 
11
11
 
12
12
 
@@ -4,28 +4,27 @@ 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-7d850fbc.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-71c4768e.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
9
  require('./DataFetcher-ba94ed5b.js');
10
- require('./pesquisa-fetcher-ef050a47.js');
11
- const index$1 = require('./index-0e663819.js');
12
- require('./ISave-d68ce3cd.js');
10
+ require('./pesquisa-fetcher-7a08d110.js');
11
+ const index$1 = require('./index-0922807b.js');
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-d839c5d7.js');
16
15
  require('./PreloadManager-84466da6.js');
17
16
  require('./filter-item-type.enum-a7ffdaa6.js');
18
17
  require('./form-config-fetcher-df043d3d.js');
19
- const taskbarElements = require('./taskbar-elements-39949c7a.js');
18
+ const taskbarElements = require('./taskbar-elements-01b85b99.js');
20
19
  const constants = require('./constants-35ddd366.js');
21
- const snkGuidesViewer = require('./snk-guides-viewer-88a7f880.js');
22
- const SnkMessageBuilder = require('./SnkMessageBuilder-7293d0ad.js');
23
- require('./ConfigStorage-8009ecb2.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-546509df.js');
21
+ const SnkMessageBuilder = require('./SnkMessageBuilder-e7dcf408.js');
22
+ require('./ConfigStorage-302bbbd4.js');
24
23
  require('./PrintUtils-bcaeb82f.js');
25
24
  require('./ResourceIDUtils-5ff86aa7.js');
26
25
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
27
26
  require('./index-102ba62d.js');
28
- require('./field-search-ca27041a.js');
27
+ require('./field-search-f56aa7d6.js');
29
28
  require('@sankhyalabs/core/dist/dataunit/DataUnit');
30
29
 
31
30
  class GuideBuilder {
@@ -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-8009ecb2.js');
8
+ const ConfigStorage = require('./ConfigStorage-302bbbd4.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');
@@ -322,7 +322,7 @@ const SnkFilterBar = class {
322
322
  * Faz o recarregamento da filterbar buscando o state no servidor.
323
323
  */
324
324
  async reload() {
325
- this.loadConfigFromStorage();
325
+ this.loadConfigFromStorage(true);
326
326
  }
327
327
  /**
328
328
  * Retorna um item de filtro pelo ID.
@@ -529,7 +529,10 @@ const SnkFilterBar = class {
529
529
  loadPermitions() {
530
530
  this._application.isUserSup().then(value => this.allowDefault = value);
531
531
  }
532
- loadConfigFromStorage() {
532
+ async loadConfigFromStorage(clearCache) {
533
+ if (clearCache) {
534
+ await ConfigStorage.ConfigStorage.deleteFilterBarConfigCache(this.configName, this.resourceID);
535
+ }
533
536
  return new Promise(accept => {
534
537
  ConfigStorage.ConfigStorage.loadFilterBarConfig(this.configName, this.resourceID, { contextURI: this.dataUnit.name })
535
538
  .then((filters) => {
@@ -292,14 +292,60 @@ const SnkFilterItem = class {
292
292
  }
293
293
  return this.hasActiveValue(this.config);
294
294
  }
295
+ onEzClick() {
296
+ console.log("onEzClick");
297
+ }
295
298
  render() {
296
299
  const leftIcon = this.getLeftIconName();
297
- return (index.h(index.Host, null, index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
300
+ return (index.h(index.Host, null, index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), index.h("ez-split-button", { label: "Split Button", class: "ez-button--primary", mode: "label-icon", iconName: "acao", size: "small", onEzClick: this.onEzClick,
301
+ //onclick={this.onEzClick}
302
+ items: items }), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
298
303
  }
299
304
  get _filterItemElement() { return index.getElement(this); }
300
305
  static get watchers() { return {
301
306
  "detailIsVisible": ["observeDetailIsVisible"]
302
307
  }; }
303
308
  };
309
+ const items = [
310
+ {
311
+ id: "1",
312
+ label: "Emitir NFe",
313
+ type: "item"
314
+ },
315
+ {
316
+ id: "2",
317
+ label: "Cancelar NFe",
318
+ type: "item"
319
+ },
320
+ {
321
+ id: "3",
322
+ label: "Exportar NFe",
323
+ type: "item",
324
+ children: [
325
+ {
326
+ id: "4",
327
+ label: "Danfe PDF",
328
+ type: "item",
329
+ children: [
330
+ {
331
+ id: "6",
332
+ label: "Modo retrato",
333
+ type: "item"
334
+ },
335
+ {
336
+ id: "7",
337
+ label: "Modo paisagem",
338
+ type: "item"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ id: "5",
344
+ label: "XML",
345
+ type: "item"
346
+ }
347
+ ]
348
+ }
349
+ ];
304
350
 
305
351
  exports.snk_filter_item = SnkFilterItem;
@@ -6,7 +6,7 @@ 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-8009ecb2.js');
9
+ const ConfigStorage = require('./ConfigStorage-302bbbd4.js');
10
10
  const filterType_enum = require('./filter-type.enum-b14ce507.js');
11
11
  require('./form-config-fetcher-df043d3d.js');
12
12
  require('./DataFetcher-ba94ed5b.js');
@@ -4,9 +4,9 @@ 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-7d850fbc.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-71c4768e.js');
8
8
  const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
9
- require('./ConfigStorage-8009ecb2.js');
9
+ require('./ConfigStorage-302bbbd4.js');
10
10
  require('./form-config-fetcher-df043d3d.js');
11
11
  require('./DataFetcher-ba94ed5b.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
9
- const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
9
+ const ConfigStorage = require('./ConfigStorage-302bbbd4.js');
10
10
  const constants = require('./constants-35ddd366.js');
11
11
  require('./form-config-fetcher-df043d3d.js');
12
12
  require('./DataFetcher-ba94ed5b.js');
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
8
- const taskbarElements = require('./taskbar-elements-39949c7a.js');
9
- const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
10
- const index$1 = require('./index-0e663819.js');
11
- const fieldSearch = require('./field-search-ca27041a.js');
8
+ const taskbarElements = require('./taskbar-elements-01b85b99.js');
9
+ const ConfigStorage = require('./ConfigStorage-302bbbd4.js');
10
+ const index$1 = require('./index-0922807b.js');
11
+ const fieldSearch = require('./field-search-f56aa7d6.js');
12
12
  const index$2 = require('./index-102ba62d.js');
13
13
  const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-ba5838c2.js');
14
14
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
@@ -30,14 +30,21 @@ const SnkGrid = class {
30
30
  this._topTaskbarProcessor = new fieldSearch.TaskbarProcessor({
31
31
  "snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
32
32
  "snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
33
+ "snkGridTopTaskbar.regular.singleTaskbar": [],
33
34
  "snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"],
34
- "snkGridTopTaskbar.finish_edition.secondary": []
35
+ "snkGridTopTaskbar.finish_edition.secondary": [],
36
+ "snkGridTopTaskbar.finish_edition.singleTaskbar": [],
35
37
  });
36
38
  this._headerTaskbarProcessor = new fieldSearch.TaskbarProcessor({
37
39
  "snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
38
40
  "snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
39
41
  "snkGridHeaderTaskbar.detail.unselected": ["REFRESH", "MORE_OPTIONS"],
40
- "snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
42
+ "snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"],
43
+ "snkGridHeaderTaskbar.singleTaskbar.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
44
+ "snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
45
+ "snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
46
+ "snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
47
+ "snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
41
48
  });
42
49
  this._dataUnit = undefined;
43
50
  this._dataState = undefined;
@@ -93,28 +100,18 @@ const SnkGrid = class {
93
100
  var _a;
94
101
  (_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.reload();
95
102
  }
96
- /**
97
- * Abre o localizador de colunas
98
- */
99
- async findColumn() {
100
- if (!this._moreOptions) {
101
- return;
102
- }
103
- if (!(await this._moreOptions.isOpened())) {
104
- this._moreOptions.showActions();
105
- }
106
- if (this._columnSearch) {
107
- const realElement = this._columnSearch["$elm$"];
108
- realElement.value = null;
109
- requestAnimationFrame(() => realElement.setFocus());
110
- }
111
- }
112
103
  /**
113
104
  * Retorna o elemento da filter-bar da grade.
114
105
  */
115
106
  async getFilterBar() {
116
107
  return this._snkFilterBar;
117
108
  }
109
+ /**
110
+ * Abre o localizador de colunas
111
+ */
112
+ async findColumn() {
113
+ await fieldSearch.openFieldSearch(this._moreOptions, this._columnSearch);
114
+ }
118
115
  openGridConfig() {
119
116
  this._grid.getColumnsState()
120
117
  .then((gridColumns) => {
@@ -328,41 +325,51 @@ const SnkGrid = class {
328
325
  return invisibleButtons;
329
326
  }
330
327
  componentWillRender() {
331
- var _a;
332
328
  const invisibleButtons = this.getInvisibleButtons();
333
- const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
334
- let headerTaskbarId;
335
- if (hasSelectedRecord) {
336
- headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.selected" : "snkGridHeaderTaskbar.selected";
337
- }
338
- else {
339
- headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.unselected" : "snkGridHeaderTaskbar.unselected";
340
- }
341
- this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
329
+ this._headerTaskbarProcessor.process(this.getHeaderTaskbarId(), this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
342
330
  this._topTaskbarProcessor.process(this.getTopTaskBarId(), this.taskbarManager, this._dataState, undefined, invisibleButtons);
343
331
  this.dataExporterProviderStore();
344
332
  }
333
+ getHeaderTaskbarId() {
334
+ var _a, _b;
335
+ const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
336
+ const taskbarIdPrefixLookup = {
337
+ primary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
338
+ secondary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
339
+ singleTaskbar: this.isDetail ? "snkGridHeaderTaskbar.singleTaskbar.detail" : "snkGridHeaderTaskbar.singleTaskbar"
340
+ };
341
+ const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
342
+ let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
343
+ if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === index$1.PresentationMode.SINGLE_TASKBAR) {
344
+ headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
345
+ }
346
+ return headerTaskbarId;
347
+ }
345
348
  getTopTaskBarId() {
346
349
  var _a;
347
- const sufix = this.presentationMode === index$1.PresentationMode.SECONDARY ? ".secondary" : "";
350
+ const suffixLookup = {
351
+ primary: "",
352
+ secondary: ".secondary",
353
+ singleTaskbar: ".singleTaskbar"
354
+ };
355
+ const sufix = suffixLookup[this.presentationMode];
348
356
  if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
349
357
  return `snkGridTopTaskbar.finish_edition${sufix}`;
350
358
  }
351
359
  return `snkGridTopTaskbar.regular${sufix}`;
352
360
  }
353
361
  getPrimaryButton() {
354
- return this.presentationMode === index$1.PresentationMode.PRIMARY ? "INSERT" : "";
362
+ const primaryButtonLookup = {
363
+ primary: "INSERT",
364
+ secondary: "",
365
+ singleTaskbar: "INSERT"
366
+ };
367
+ return primaryButtonLookup[this.presentationMode];
355
368
  }
356
369
  getColumnSearch(actionButton, item) {
357
370
  if (this._columnSearch != undefined) {
358
371
  return this._columnSearch;
359
372
  }
360
- actionButton.addEventListener("ezPopoverOpen", () => {
361
- if (this._columnSearch) {
362
- const realElement = this._columnSearch["$elm$"];
363
- realElement.value = null;
364
- }
365
- });
366
373
  this._moreOptions = actionButton;
367
374
  this._columnSearch = fieldSearch.buildFieldSearch(item, ({ argument }) => new Promise(accept => {
368
375
  this._grid.filterColumns(argument).then((columns) => {
@@ -380,8 +387,10 @@ const SnkGrid = class {
380
387
  }
381
388
  getActionsList() {
382
389
  const hardList = [{
383
- value: "",
390
+ value: core.StringUtils.generateUUID(),
384
391
  label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
392
+ disableCloseOnSelect: true,
393
+ eagerInitialize: true,
385
394
  itemBuilder: (actionButton, item) => this.getColumnSearch(actionButton, item)
386
395
  }];
387
396
  if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
@@ -406,7 +415,7 @@ const SnkGrid = class {
406
415
  return undefined;
407
416
  }
408
417
  return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
409
- index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, index.h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
418
+ index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, index.h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
410
419
  }
411
420
  get _element() { return index.getElement(this); }
412
421
  };
@@ -2,18 +2,17 @@
2
2
 
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-7d850fbc.js');
5
+ const SnkFormConfigManager = require('./SnkFormConfigManager-71c4768e.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
- const fieldSearch = require('./field-search-ca27041a.js');
8
- const taskbarElements = require('./taskbar-elements-39949c7a.js');
7
+ const fieldSearch = require('./field-search-f56aa7d6.js');
8
+ const taskbarElements = require('./taskbar-elements-01b85b99.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
10
  require('./DataFetcher-ba94ed5b.js');
11
- require('./pesquisa-fetcher-ef050a47.js');
12
- const index$1 = require('./index-0e663819.js');
13
- require('./ISave-d68ce3cd.js');
11
+ require('./pesquisa-fetcher-7a08d110.js');
12
+ const index$1 = require('./index-0922807b.js');
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-d839c5d7.js');
17
16
  require('./PreloadManager-84466da6.js');
18
17
  require('./filter-item-type.enum-a7ffdaa6.js');
19
18
  require('./form-config-fetcher-df043d3d.js');
@@ -77,18 +76,7 @@ const SnkGuidesViewer = class {
77
76
  * Abre o localizador de campos
78
77
  */
79
78
  async findField() {
80
- if (!this._moreOptions) {
81
- return;
82
- }
83
- if (!(await this._moreOptions.isOpened())) {
84
- this._moreOptions.showActions();
85
- return;
86
- }
87
- if (this._fieldSearch) {
88
- const realElement = this._fieldSearch["$elm$"];
89
- realElement.value = null;
90
- requestAnimationFrame(() => realElement.setFocus());
91
- }
79
+ await fieldSearch.openFieldSearch(this._moreOptions, this._fieldSearch);
92
80
  }
93
81
  exitViewer() {
94
82
  if (this.dataUnit.isDirty()) {
@@ -376,8 +364,7 @@ const SnkGuidesViewer = class {
376
364
  if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
377
365
  this._hasToCreateFieldSearch = false;
378
366
  this._moreOptions = actionButton;
379
- actionButton.addEventListener("ezPopoverOpen", () => this.findField());
380
- actionButton.addEventListener("ezDisconnectedActionButtons", () => this._hasToCreateFieldSearch = true);
367
+ actionButton.addEventListener("taskbarActionsButtonDisconnected", () => this._hasToCreateFieldSearch = true);
381
368
  this._fieldSearch = fieldSearch.buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
382
369
  }
383
370
  return this._fieldSearch;
@@ -401,6 +388,8 @@ const SnkGuidesViewer = class {
401
388
  const hardList = [{
402
389
  value: "",
403
390
  label: this.getMessage("snkCrud.findColumn"),
391
+ disableCloseOnSelect: true,
392
+ eagerInitialize: true,
404
393
  itemBuilder: (actionButton, item) => this.getFieldsSearch(actionButton, item)
405
394
  }];
406
395
  if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
@@ -2,29 +2,28 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-88a7f880.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-546509df.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-7d850fbc.js');
9
- require('./ConfigStorage-8009ecb2.js');
8
+ require('./SnkFormConfigManager-71c4768e.js');
9
+ require('./ConfigStorage-302bbbd4.js');
10
10
  require('./form-config-fetcher-df043d3d.js');
11
11
  require('./DataFetcher-ba94ed5b.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');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/form');
16
- require('./field-search-ca27041a.js');
17
- require('./taskbar-elements-39949c7a.js');
18
- require('./index-0e663819.js');
16
+ require('./field-search-f56aa7d6.js');
17
+ require('./taskbar-elements-01b85b99.js');
18
+ require('./index-0922807b.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./constants-35ddd366.js');
21
- require('./pesquisa-fetcher-ef050a47.js');
22
- require('./ISave-d68ce3cd.js');
21
+ require('./pesquisa-fetcher-7a08d110.js');
23
22
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
24
- require('./dataunit-fetcher-d839c5d7.js');
25
23
  require('./PreloadManager-84466da6.js');
26
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
27
25
  require('./ResourceIDUtils-5ff86aa7.js');
26
+ require('./ISave-e91b70a7.js');
28
27
  require('@sankhyalabs/core/dist/dataunit/DataUnit');
29
28
 
30
29
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
8
- const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
8
+ const ConfigStorage = require('./ConfigStorage-302bbbd4.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');