@sankhyalabs/sankhyablocks 8.16.0-dev.7 → 8.16.0-dev.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-d024aec8.js} +2 -2
  2. package/dist/cjs/{IExporterProvider-597949f9.js → ContinuousInsertUtils-54d44192.js} +65 -23
  3. package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-65879b2c.js} +216 -76
  4. package/dist/cjs/{RecordIDUtils-3735135c.js → GetSelectedRecordsIDsInfo-bd50caf1.js} +10 -10
  5. package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-07f747be.js} +75 -17
  6. package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-bae64d0d.js} +7 -3
  7. package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-8480751c.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-688d3f05.js → dataunit-fetcher-8ea97d88.js} +48 -20
  9. package/dist/cjs/{field-search-f56aa7d6.js → field-search-68e34bf4.js} +5 -1
  10. package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-90126e4c.js} +42 -2
  11. package/dist/cjs/index-f9e81701.js +16 -32
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-f3454c23.js} +185 -2
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +133 -0
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +136 -40
  17. package/dist/cjs/snk-application.cjs.entry.js +248 -69
  18. package/dist/cjs/snk-attach.cjs.entry.js +46 -33
  19. package/dist/cjs/{snk-form-config.cjs.entry.js → snk-config-options_3.cjs.entry.js} +398 -12
  20. package/dist/cjs/snk-crud.cjs.entry.js +22 -8
  21. package/dist/cjs/snk-data-exporter.cjs.entry.js +34 -22
  22. package/dist/cjs/{snk-data-unit-04df81bf.js → snk-data-unit-72ef8777.js} +54 -32
  23. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
  24. package/dist/cjs/snk-detail-view.cjs.entry.js +12 -12
  25. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  26. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1436 -0
  27. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  28. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  29. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -1
  31. package/dist/cjs/snk-grid.cjs.entry.js +71 -21
  32. package/dist/cjs/{snk-guides-viewer-bdc41281.js → snk-guides-viewer-b20b0cfd.js} +29 -13
  33. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
  34. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +4 -4
  35. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  36. package/dist/cjs/snk-pesquisa.cjs.entry.js +123 -31
  37. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  38. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  39. package/dist/cjs/snk-simple-crud.cjs.entry.js +101 -45
  40. package/dist/cjs/snk-taskbar.cjs.entry.js +64 -38
  41. package/dist/collection/collection-manifest.json +14 -31
  42. package/dist/collection/components/snk-actions-button/actions/index.js +16 -13
  43. package/dist/collection/components/snk-actions-button/interfaces/index.js +1 -0
  44. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -26
  45. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +29 -0
  46. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
  47. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
  48. package/dist/collection/components/snk-application/snk-application.css +34 -0
  49. package/dist/collection/components/snk-application/snk-application.js +235 -64
  50. package/dist/collection/components/snk-attach/snk-attach.js +25 -16
  51. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
  52. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
  53. package/dist/collection/components/snk-crud/snk-crud.js +122 -3
  54. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +3 -3
  55. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +6 -6
  56. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +72 -6
  57. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
  58. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +13 -7
  59. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +9 -2
  60. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -1
  61. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
  62. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  63. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +3 -5
  64. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
  65. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +4 -4
  66. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
  67. package/dist/collection/components/snk-data-unit/snk-data-unit.js +52 -30
  68. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +1 -1
  69. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +1 -1
  70. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +2 -1
  71. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +13 -0
  72. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -3
  73. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js +8 -0
  74. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
  75. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
  76. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
  77. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +118 -28
  78. package/dist/collection/components/snk-form/snk-form.js +2 -2
  79. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +73 -15
  80. package/dist/collection/components/snk-form-config/snk-form-config.css +8 -3
  81. package/dist/collection/components/snk-form-config/snk-form-config.js +49 -8
  82. package/dist/collection/components/snk-grid/snk-grid.css +2 -0
  83. package/dist/collection/components/snk-grid/snk-grid.js +153 -8
  84. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +10 -0
  85. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +190 -0
  86. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +25 -0
  87. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +179 -0
  88. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +89 -0
  89. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +24 -5
  90. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +186 -32
  91. package/dist/collection/components/snk-print-selector/snk-print-selector.js +1 -1
  92. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +1 -1
  93. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +1 -1
  94. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +160 -50
  95. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  96. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +181 -0
  97. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +5 -1
  98. package/dist/collection/components/snk-taskbar/snk-taskbar.js +106 -38
  99. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +3 -3
  100. package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
  101. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
  102. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +29 -21
  103. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
  104. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
  105. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +9 -2
  106. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +45 -5
  107. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +7 -1
  108. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +98 -4
  109. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -1
  110. package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
  111. package/dist/collection/lib/message/resources/snk-grid.msg.js +5 -1
  112. package/dist/collection/lib/utils/ContinuousInsertUtils.js +31 -0
  113. package/dist/collection/lib/utils/CrudUtils.js +25 -16
  114. package/dist/collection/{components/snk-data-exporter/utils/RecordIDUtils.js → lib/utils/GetSelectedRecordsIDsInfo.js} +9 -9
  115. package/dist/collection/sw.js +46 -0
  116. package/dist/components/{IExporterProvider.js → ContinuousInsertUtils.js} +66 -23
  117. package/dist/components/DataFetcher.js +217 -77
  118. package/dist/{esm/RecordIDUtils-87d02110.js → components/GetSelectedRecordsIDsInfo.js} +10 -10
  119. package/dist/components/ISave.js +346 -1
  120. package/dist/components/SnkFormConfigManager.js +73 -15
  121. package/dist/components/SnkMessageBuilder.js +7 -3
  122. package/dist/components/dataunit-fetcher.js +47 -17
  123. package/dist/components/form-config-fetcher.js +41 -1
  124. package/dist/components/index.d.ts +3 -0
  125. package/dist/components/index.js +3 -0
  126. package/dist/components/pesquisa-grid.d.ts +11 -0
  127. package/dist/components/pesquisa-grid.js +6 -0
  128. package/dist/components/pesquisa-grid2.js +86 -0
  129. package/dist/components/pesquisa-tree.d.ts +11 -0
  130. package/dist/components/pesquisa-tree.js +6 -0
  131. package/dist/components/pesquisa-tree2.js +82 -0
  132. package/dist/components/snk-actions-button2.js +43 -40
  133. package/dist/components/snk-application2.js +264 -68
  134. package/dist/components/snk-attach2.js +54 -60
  135. package/dist/components/snk-crud.js +83 -59
  136. package/dist/components/snk-data-exporter2.js +28 -17
  137. package/dist/components/snk-data-unit2.js +55 -70
  138. package/dist/components/snk-detail-view2.js +114 -105
  139. package/dist/components/snk-exporter-email-sender2.js +1 -1
  140. package/dist/components/snk-filter-bar2.js +64 -30
  141. package/dist/components/snk-filter-binary-select.js +1 -1
  142. package/dist/components/snk-filter-checkbox-list.js +1 -1
  143. package/dist/components/snk-filter-item2.js +5 -1
  144. package/dist/components/snk-filter-modal.js +3 -1
  145. package/dist/components/snk-filter-text.js +2 -1
  146. package/dist/components/snk-form-config2.js +34 -9
  147. package/dist/components/snk-form.js +2 -2
  148. package/dist/components/snk-grid2.js +68 -13
  149. package/dist/components/snk-personalized-filter-editor.js +4 -4
  150. package/dist/components/snk-pesquisa2.js +136 -33
  151. package/dist/components/snk-print-selector.js +1 -1
  152. package/dist/components/snk-simple-bar2.js +1 -1
  153. package/dist/components/snk-simple-crud2.js +108 -66
  154. package/dist/components/snk-simple-form-config.d.ts +11 -0
  155. package/dist/components/snk-simple-form-config.js +6 -0
  156. package/dist/components/snk-simple-form-config2.js +120 -0
  157. package/dist/components/snk-taskbar2.js +66 -40
  158. package/dist/components/teste-pesquisa.js +13 -1
  159. package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-373bb440.js} +2 -2
  160. package/dist/esm/{IExporterProvider-63a188b6.js → ContinuousInsertUtils-25e7bd9a.js} +66 -25
  161. package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-5221b992.js} +217 -77
  162. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js +41 -0
  163. package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-1ff928fa.js} +75 -17
  164. package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-6fff4a4c.js} +7 -3
  165. package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-e32fe8a4.js} +1 -1
  166. package/dist/esm/{constants-8457af36.js → constants-7302ee87.js} +1 -1
  167. package/dist/esm/{dataunit-fetcher-264191b2.js → dataunit-fetcher-8dd93d8b.js} +48 -18
  168. package/dist/esm/{field-search-efbe307f.js → field-search-f8b1d91e.js} +5 -1
  169. package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-126e2471.js} +42 -2
  170. package/dist/esm/index-a7d3d3f1.js +16 -32
  171. package/dist/esm/loader.js +1 -1
  172. package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-0af41f09.js} +186 -4
  173. package/dist/esm/pesquisa-grid_2.entry.js +128 -0
  174. package/dist/esm/sankhyablocks.js +1 -1
  175. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +138 -43
  176. package/dist/esm/snk-application.entry.js +250 -71
  177. package/dist/esm/snk-attach.entry.js +47 -34
  178. package/dist/esm/{snk-form-config.entry.js → snk-config-options_3.entry.js} +399 -15
  179. package/dist/esm/snk-configurator.entry.js +1 -1
  180. package/dist/esm/snk-crud.entry.js +23 -9
  181. package/dist/esm/snk-data-exporter.entry.js +35 -23
  182. package/dist/esm/{snk-data-unit-8eec78bd.js → snk-data-unit-11a49fc3.js} +54 -32
  183. package/dist/esm/snk-data-unit.entry.js +5 -5
  184. package/dist/esm/snk-detail-view.entry.js +13 -13
  185. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  186. package/dist/esm/snk-field-config.entry.js +1 -1
  187. package/dist/esm/snk-filter-bar_4.entry.js +1429 -0
  188. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  189. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  190. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  191. package/dist/esm/snk-filter-text.entry.js +2 -1
  192. package/dist/esm/snk-grid.entry.js +66 -16
  193. package/dist/esm/{snk-guides-viewer-dda0fede.js → snk-guides-viewer-94918cf7.js} +30 -14
  194. package/dist/esm/snk-guides-viewer.entry.js +9 -9
  195. package/dist/esm/snk-personalized-filter-editor.entry.js +4 -4
  196. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  197. package/dist/esm/snk-pesquisa.entry.js +123 -31
  198. package/dist/esm/snk-print-selector.entry.js +1 -1
  199. package/dist/esm/snk-simple-bar.entry.js +1 -1
  200. package/dist/esm/snk-simple-crud.entry.js +99 -43
  201. package/dist/esm/snk-tab-config.entry.js +1 -1
  202. package/dist/esm/snk-taskbar.entry.js +65 -39
  203. package/dist/sankhyablocks/p-09067bee.entry.js +1 -0
  204. package/dist/sankhyablocks/p-0d86c004.entry.js +1 -0
  205. package/dist/sankhyablocks/p-1435701f.js +26 -0
  206. package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
  207. package/dist/sankhyablocks/p-16cc8640.entry.js +11 -0
  208. package/dist/sankhyablocks/p-17425c72.js +1 -0
  209. package/dist/sankhyablocks/{p-52920496.js → p-19dc71e9.js} +1 -1
  210. package/dist/sankhyablocks/p-1a91d1f3.entry.js +1 -0
  211. package/dist/sankhyablocks/{p-47db7e88.entry.js → p-1cf39cfd.entry.js} +1 -1
  212. package/dist/sankhyablocks/p-23736d75.js +1 -0
  213. package/dist/sankhyablocks/{p-8eb67fa4.entry.js → p-2d3f9482.entry.js} +1 -1
  214. package/dist/sankhyablocks/p-3150ad41.js +1 -0
  215. package/dist/sankhyablocks/{p-c1d57831.entry.js → p-3a3d4055.entry.js} +1 -1
  216. package/dist/sankhyablocks/{p-7663f597.entry.js → p-41793e17.entry.js} +1 -1
  217. package/dist/sankhyablocks/{p-72fc257b.entry.js → p-434817f0.entry.js} +1 -1
  218. package/dist/sankhyablocks/p-469384a2.entry.js +1 -0
  219. package/dist/sankhyablocks/p-47178038.entry.js +1 -0
  220. package/dist/sankhyablocks/p-471785a1.entry.js +1 -0
  221. package/dist/sankhyablocks/p-4ca8e061.entry.js +1 -0
  222. package/dist/sankhyablocks/{p-aaa3ee68.entry.js → p-5f157b09.entry.js} +1 -1
  223. package/dist/sankhyablocks/p-60e4db34.js +1 -0
  224. package/dist/sankhyablocks/p-618a29ed.entry.js +1 -0
  225. package/dist/sankhyablocks/p-619aeac8.entry.js +1 -0
  226. package/dist/sankhyablocks/p-68134a67.entry.js +1 -0
  227. package/dist/sankhyablocks/p-798386c7.js +6 -0
  228. package/dist/sankhyablocks/p-7dd49d15.js +1 -0
  229. package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-82ee6dc3.entry.js} +1 -1
  230. package/dist/sankhyablocks/p-89c92727.entry.js +1 -0
  231. package/dist/sankhyablocks/p-8a1ee5b5.js +1 -0
  232. package/dist/sankhyablocks/{p-95df461f.entry.js → p-8b4fc28f.entry.js} +1 -1
  233. package/dist/sankhyablocks/p-8bd86610.entry.js +1 -0
  234. package/dist/sankhyablocks/{p-41f8bfa3.entry.js → p-8c235d4c.entry.js} +1 -1
  235. package/dist/sankhyablocks/{p-b0ef4383.js → p-95ce311a.js} +1 -1
  236. package/dist/sankhyablocks/p-a3803d7c.entry.js +1 -0
  237. package/dist/sankhyablocks/p-aaef93e8.js +1 -0
  238. package/dist/sankhyablocks/p-c2e468c9.entry.js +1 -0
  239. package/dist/sankhyablocks/p-d62228fb.js +1 -0
  240. package/dist/sankhyablocks/p-d92d4f91.entry.js +1 -0
  241. package/dist/sankhyablocks/p-ddefbbc7.js +60 -0
  242. package/dist/sankhyablocks/p-e5430b29.entry.js +1 -0
  243. package/dist/sankhyablocks/{p-913a9979.js → p-f0b9303b.js} +1 -1
  244. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  245. package/dist/types/components/snk-actions-button/actions/index.d.ts +1 -0
  246. package/dist/types/components/snk-actions-button/interfaces/index.d.ts +3 -0
  247. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +3 -2
  248. package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
  249. package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
  250. package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
  251. package/dist/types/components/snk-application/snk-application.d.ts +28 -14
  252. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  253. package/dist/types/components/snk-crud/snk-crud.d.ts +21 -0
  254. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +15 -0
  255. package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +1 -0
  256. package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
  257. package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +3 -3
  258. package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +1 -1
  259. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -0
  260. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.d.ts +7 -0
  261. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  262. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +15 -1
  263. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +7 -2
  264. package/dist/types/components/snk-form-config/snk-form-config.d.ts +4 -0
  265. package/dist/types/components/snk-grid/snk-grid.d.ts +26 -0
  266. package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +38 -0
  267. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +29 -0
  268. package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +19 -0
  269. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +36 -1
  270. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +27 -7
  271. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
  272. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +1 -0
  273. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  274. package/dist/types/components.d.ts +372 -15
  275. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
  276. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  277. package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
  278. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -1
  279. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  280. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
  281. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +10 -1
  282. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +10 -0
  283. package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
  284. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +3 -0
  285. package/package.json +4 -3
  286. package/react/components.d.ts +3 -0
  287. package/react/components.js +3 -0
  288. package/react/components.js.map +1 -1
  289. package/dist/cjs/snk-config-options.cjs.entry.js +0 -239
  290. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -714
  291. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -312
  292. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -152
  293. package/dist/cjs/snk-filter-modal.cjs.entry.js +0 -249
  294. package/dist/cjs/snk-form.cjs.entry.js +0 -143
  295. package/dist/esm/pesquisa-fetcher-03c8f919.js +0 -164
  296. package/dist/esm/snk-config-options.entry.js +0 -235
  297. package/dist/esm/snk-filter-bar.entry.js +0 -710
  298. package/dist/esm/snk-filter-item.entry.js +0 -308
  299. package/dist/esm/snk-filter-list.entry.js +0 -148
  300. package/dist/esm/snk-filter-modal.entry.js +0 -245
  301. package/dist/esm/snk-form.entry.js +0 -139
  302. package/dist/sankhyablocks/p-045eae4d.entry.js +0 -11
  303. package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
  304. package/dist/sankhyablocks/p-2a408684.js +0 -1
  305. package/dist/sankhyablocks/p-3a212712.js +0 -1
  306. package/dist/sankhyablocks/p-3b60db06.entry.js +0 -1
  307. package/dist/sankhyablocks/p-450c60e4.entry.js +0 -1
  308. package/dist/sankhyablocks/p-46d38387.entry.js +0 -1
  309. package/dist/sankhyablocks/p-4e5e1313.entry.js +0 -1
  310. package/dist/sankhyablocks/p-547eeac8.entry.js +0 -1
  311. package/dist/sankhyablocks/p-62ba211a.entry.js +0 -1
  312. package/dist/sankhyablocks/p-70a4af56.entry.js +0 -1
  313. package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
  314. package/dist/sankhyablocks/p-75e674ed.entry.js +0 -1
  315. package/dist/sankhyablocks/p-7a337364.js +0 -1
  316. package/dist/sankhyablocks/p-7a85fd49.entry.js +0 -1
  317. package/dist/sankhyablocks/p-7b08d0f8.entry.js +0 -1
  318. package/dist/sankhyablocks/p-88aa931b.entry.js +0 -1
  319. package/dist/sankhyablocks/p-96a89d58.entry.js +0 -1
  320. package/dist/sankhyablocks/p-9863d682.js +0 -1
  321. package/dist/sankhyablocks/p-af8efd95.js +0 -6
  322. package/dist/sankhyablocks/p-b05d8893.entry.js +0 -1
  323. package/dist/sankhyablocks/p-b11aa1e0.entry.js +0 -1
  324. package/dist/sankhyablocks/p-c2495304.js +0 -1
  325. package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
  326. package/dist/sankhyablocks/p-d3f53df2.entry.js +0 -1
  327. package/dist/sankhyablocks/p-d6e26ea8.entry.js +0 -1
  328. package/dist/sankhyablocks/p-dc7c9047.js +0 -1
  329. package/dist/sankhyablocks/p-df5451c7.js +0 -26
  330. package/dist/sankhyablocks/p-e549f7d1.js +0 -1
  331. package/dist/sankhyablocks/p-e8763234.entry.js +0 -1
  332. package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
  333. package/dist/sankhyablocks/p-fa4d8cb4.js +0 -1
  334. package/dist/sankhyablocks/p-fe79f83a.js +0 -60
  335. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
@@ -1,12 +1,14 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking } from '@sankhyalabs/core';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { C as ConfigStorage } from './ConfigStorage.js';
5
5
  import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
6
6
  import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
7
- import { D as DataUnitFetcher } from './dataunit-fetcher.js';
8
- import { P as PesquisaFetcher } from './pesquisa-fetcher.js';
7
+ import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher.js';
8
+ import { a as PesquisaFetcher } from './ISave.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
10
+ import { d as defineCustomElement$3 } from './pesquisa-grid2.js';
11
+ import { d as defineCustomElement$2 } from './pesquisa-tree2.js';
10
12
  import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
11
13
 
12
14
  class TotalsFetcher {
@@ -74,6 +76,7 @@ class TotalsFetcher {
74
76
  class ParametersFetcher {
75
77
  constructor() {
76
78
  this._embeddedParams = new Map();
79
+ this._cachedParams = new Map();
77
80
  this.templateByQuery = new Map();
78
81
  try {
79
82
  if (window["MGE_PARAMS"] != undefined) {
@@ -103,11 +106,16 @@ class ParametersFetcher {
103
106
  if (this._embeddedParams.has(name)) {
104
107
  return Promise.resolve(this._embeddedParams.get(name));
105
108
  }
109
+ if (this._cachedParams.has(name)) {
110
+ return this._cachedParams.get(name);
111
+ }
106
112
  const completPath = `param://application?params=${name}`;
107
- return DataFetcher.get().callGraphQL({
113
+ const param = await DataFetcher.get().callGraphQL({
108
114
  values: { name: completPath },
109
115
  query: this.templateByQuery.get("fetchParam"),
110
116
  });
117
+ this._cachedParams.set(name, param);
118
+ return param;
111
119
  }
112
120
  async asString(name) {
113
121
  const paramArr = await this.getParam(name);
@@ -274,7 +282,101 @@ class SnkErrorHandler {
274
282
  }
275
283
  }
276
284
 
277
- const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
285
+ class DebouncedRequestListener {
286
+ constructor() {
287
+ this._debounceTime = 1500;
288
+ this.requests = new Map();
289
+ this.requestsLoadingBar = [];
290
+ }
291
+ onRequestStart(param) {
292
+ if (param.url.includes("quietMode=true")) {
293
+ return;
294
+ }
295
+ this.requestsLoadingBar.push(param.requestId);
296
+ const timeout = setTimeout(() => {
297
+ this.ezLoadingBar.show();
298
+ }, this._debounceTime);
299
+ this.requests.set(param.requestId, timeout);
300
+ }
301
+ ;
302
+ onRequestEnd(param) {
303
+ var _a, _b, _c;
304
+ const timeoutId = this.requests.get(param.requestId);
305
+ clearTimeout(timeoutId);
306
+ if ((_a = this.requestsLoadingBar) === null || _a === void 0 ? void 0 : _a.includes(param.requestId)) {
307
+ this.requestsLoadingBar = (_b = this.requestsLoadingBar) === null || _b === void 0 ? void 0 : _b.filter(id => id !== param.requestId);
308
+ !this.requestsLoadingBar.length && ((_c = this.ezLoadingBar) === null || _c === void 0 ? void 0 : _c.hide());
309
+ }
310
+ }
311
+ ;
312
+ }
313
+
314
+ class RequestListenerLoadingBar {
315
+ constructor() {
316
+ this._debounceTime = 1000;
317
+ this._ignoredNameTypes = ["totals"];
318
+ this._countRequest = 0;
319
+ }
320
+ onRequestStart(param) {
321
+ if (this.isIgnoreLoadingOnRequest(param)) {
322
+ return;
323
+ }
324
+ this._countRequest++;
325
+ this.ezLoadingBar.show();
326
+ if (this._timerLoading) {
327
+ clearTimeout(this._timerLoading);
328
+ }
329
+ }
330
+ ;
331
+ onRequestEnd(param) {
332
+ if (this.isIgnoreLoadingOnRequest(param)) {
333
+ return;
334
+ }
335
+ this._countRequest--;
336
+ this._timerLoading = setTimeout(() => {
337
+ if (this._countRequest <= 0) {
338
+ this.ezLoadingBar.hide();
339
+ }
340
+ }, this._debounceTime);
341
+ }
342
+ ;
343
+ isIgnoreLoadingOnRequest(param) {
344
+ if (param == undefined) {
345
+ return false;
346
+ }
347
+ if (param.url.includes("quietMode=true")) {
348
+ return true;
349
+ }
350
+ if (param.requestBody == undefined) {
351
+ return false;
352
+ }
353
+ if (param.requestBody.length == 1) {
354
+ const { name } = param.requestBody[0].variables;
355
+ if (name) {
356
+ const nameParts = name.split(":");
357
+ const nameType = nameParts[0];
358
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
359
+ }
360
+ }
361
+ return false;
362
+ }
363
+ ;
364
+ }
365
+
366
+ class RequestListenerFactory {
367
+ static create({ strategy }) {
368
+ switch (strategy) {
369
+ case 'request_name':
370
+ return new RequestListenerLoadingBar();
371
+ case 'request_time':
372
+ return new DebouncedRequestListener();
373
+ default:
374
+ throw new Error('Strategy not found');
375
+ }
376
+ }
377
+ }
378
+
379
+ const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}.sc-snk-application-h>.loading-hidden.sc-snk-application{display:none;pointer-events:none}.skeleton-content-left.sc-snk-application{width:300px;padding-right:5px}.skeleton-content.sc-snk-application{height:calc(100vh - 310px)}.spinner.sc-snk-application{height:100vh;gap:10px}.spinner.sc-snk-application>.spin.sc-snk-application{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
278
380
 
279
381
  const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
280
382
  constructor() {
@@ -288,10 +390,14 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
288
390
  this._waitingAppReady = new Array();
289
391
  this._duCache = new Map();
290
392
  this._duPromises = new Map();
291
- this._requestListener = new RequestListenerLoadingBar();
393
+ this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
394
+ this._maxTimeLockAppLoading = 10000;
395
+ this._isBrowserTypeElectron = false;
292
396
  this._pendingActions = new Map;
293
397
  this._loadPkParameter = null;
294
398
  this._isLoadedByPk = false;
399
+ this._applicationReady = false;
400
+ this.enableLockManagerLoadingApp = undefined;
295
401
  this.messagesBuilder = undefined;
296
402
  this.configName = undefined;
297
403
  this.gridLegacyConfigName = undefined;
@@ -776,6 +882,22 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
776
882
  async isLoadedByPk() {
777
883
  return Promise.resolve(this._isLoadedByPk);
778
884
  }
885
+ /**
886
+ * Remove registro do cache do PreLoader do dataunit.
887
+ * Deve ser usado quando existe um dataunit usando loader do application, mas o removeLoader está sendo sobrescrito.
888
+ */
889
+ async preloadMangerRemoveRecord(dataUnit, recordsIDs) {
890
+ const records = recordsIDs.map(id => {
891
+ return { "__record__id__": id };
892
+ });
893
+ PreloadManager.removeRecords(dataUnit, records);
894
+ }
895
+ getCountSkeleton(className, skeletonHeight, spacingSkeleton) {
896
+ let containerHeight = window.innerHeight - 350;
897
+ spacingSkeleton = !spacingSkeleton ? 20 : spacingSkeleton;
898
+ let skeletonCount = Math.floor(containerHeight / (skeletonHeight + spacingSkeleton));
899
+ return skeletonCount || 1;
900
+ }
779
901
  async getAuthList(auth) {
780
902
  return await (new MGEAuthorization()).parseFromJSON(auth);
781
903
  }
@@ -817,12 +939,12 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
817
939
  * Obtém as opções em componentes de pesquisa
818
940
  * Ex.: snk-config-options
819
941
  */
820
- async executeSearch(searchArgument, fieldName, dataUnit) {
942
+ async executeSearch(searchArgument, fieldName, dataUnit, ctxOptions) {
821
943
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
822
944
  if (!descriptor) ;
823
945
  else {
824
946
  const { mode, argument } = searchArgument;
825
- const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY } = descriptor.properties;
947
+ const { ENTITYNAME, CODEFIELD, DESCRIPTIONFIELD, ROOTENTITY, DESCRIPTIONENTITY, ISHIERARCHYENTITY } = descriptor.properties;
826
948
  const dependencies = descriptor.dependencies;
827
949
  let criteria;
828
950
  const searchOptions = {
@@ -852,7 +974,16 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
852
974
  }
853
975
  }
854
976
  });
855
- return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
977
+ const allowsNonAnalytic = ctxOptions === null || ctxOptions === void 0 ? void 0 : ctxOptions.allowsNonAnalytic;
978
+ const options = {
979
+ entity: ENTITYNAME,
980
+ entityDescription: DESCRIPTIONENTITY,
981
+ isHierarchyEntity: ISHIERARCHYENTITY,
982
+ criteria,
983
+ searchOptions,
984
+ allowsNonAnalytic
985
+ };
986
+ return this.executePreparedSearch(mode, argument, options);
856
987
  }
857
988
  }
858
989
  filterInvalidFields(resp, item, mdByName) {
@@ -902,13 +1033,19 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
902
1033
  */
903
1034
  async executePreparedSearch(mode, argument, options) {
904
1035
  const mdByName = {};
905
- const { entity, entityDescription, criteria, searchOptions } = options;
1036
+ const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
906
1037
  if (mode === "ADVANCED") {
907
1038
  return new Promise((accept, reject) => {
908
1039
  const pesquisaContent = document.createElement("snk-pesquisa");
909
1040
  pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
1041
+ pesquisaContent.entityName = entity;
910
1042
  pesquisaContent.argument = argument;
911
1043
  pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
1044
+ pesquisaContent.isHierarchyEntity = isHierarchyEntity;
1045
+ if (isHierarchyEntity) {
1046
+ pesquisaContent.treeLoader = (text) => this.pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
1047
+ pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
1048
+ }
912
1049
  pesquisaContent.selectItem = (option) => {
913
1050
  accept(option);
914
1051
  this.clearPopUpTitle();
@@ -1216,8 +1353,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1216
1353
  this._errorHandler = new SnkErrorHandler(this);
1217
1354
  this.messagesBuilder = new SnkMessageBuilder();
1218
1355
  ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
1219
- ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit) => {
1220
- return this.executeSearch(searchArgument, fieldName, dataUnit);
1356
+ ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
1357
+ return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
1221
1358
  });
1222
1359
  ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
1223
1360
  this.registerPkChangeListener();
@@ -1231,12 +1368,15 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1231
1368
  this._waitingAppReady.forEach(resolve => resolve());
1232
1369
  }
1233
1370
  connectedCallback() {
1371
+ this._isBrowserTypeElectron = UserAgentUtils.isElectron();
1234
1372
  ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
1235
1373
  DataFetcher.addRequestListener(this._requestListener);
1236
1374
  }
1237
1375
  disconnectedCallback() {
1238
- DataFetcher.removeRequestListener(this._requestListener);
1376
+ DataFetcher === null || DataFetcher === void 0 ? void 0 : DataFetcher.removeRequestListener(this._requestListener);
1239
1377
  this.removeShortcuts();
1378
+ if (this._lockManagerTimer)
1379
+ clearTimeout(this._lockManagerTimer);
1240
1380
  }
1241
1381
  async componentDidLoad() {
1242
1382
  this.applicationLoading.emit(true);
@@ -1248,6 +1388,63 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1248
1388
  ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
1249
1389
  await this.handleShowNewVersionPopup();
1250
1390
  this.initKeyboardManager();
1391
+ if (this.enableLockManagerLoadingApp) {
1392
+ LockManager.addLockManagerCtxId(this._element);
1393
+ this.resolveApplicationReady();
1394
+ }
1395
+ else {
1396
+ this._applicationReady = true;
1397
+ }
1398
+ }
1399
+ async markToReload() {
1400
+ if (!this.enableLockManagerLoadingApp)
1401
+ return;
1402
+ this._applicationReady = false;
1403
+ await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
1404
+ this.resolveApplicationReady();
1405
+ }
1406
+ async addLoadingLock(forceReady = false) {
1407
+ if (!this.enableLockManagerLoadingApp)
1408
+ return;
1409
+ if (forceReady) {
1410
+ this._applicationReady = false;
1411
+ await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
1412
+ }
1413
+ this.resolveApplicationReady();
1414
+ return await LockManager.lock(this._element, LockManagerOperation.APP_LOADING);
1415
+ }
1416
+ async resolveApplicationReady() {
1417
+ if (this._applicationReady) {
1418
+ return;
1419
+ }
1420
+ try {
1421
+ await this.checkTimeoutLimitLockManager();
1422
+ await LockManager.whenHasLock(this._element, LockManagerOperation.APP_LOADING);
1423
+ await LockManager.whenResolve(this._element, LockManagerOperation.APP_LOADING, 200);
1424
+ await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
1425
+ this._applicationReady = true;
1426
+ }
1427
+ catch (error) {
1428
+ console.warn(error);
1429
+ this._applicationReady = true;
1430
+ }
1431
+ }
1432
+ stopTimeoutLockManager() {
1433
+ if (this._lockManagerTimer) {
1434
+ clearTimeout(this._lockManagerTimer);
1435
+ }
1436
+ }
1437
+ async checkTimeoutLimitLockManager() {
1438
+ this.stopTimeoutLockManager();
1439
+ if (this._applicationReady)
1440
+ return;
1441
+ this._lockManagerTimer = setTimeout(async () => {
1442
+ if (!this._applicationReady) {
1443
+ await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
1444
+ this.stopTimeoutLockManager();
1445
+ this._applicationReady = true;
1446
+ }
1447
+ }, this._maxTimeLockAppLoading);
1251
1448
  }
1252
1449
  initKeyboardManager() {
1253
1450
  this._keyboardManager
@@ -1261,8 +1458,38 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1261
1458
  .unbind("ctrl + d")
1262
1459
  .unbind("F1");
1263
1460
  }
1461
+ // TODO: Etapa 2 - implementar template de loading
1462
+ renderLoadingSkeleton(template) {
1463
+ if (!this.enableLockManagerLoadingApp)
1464
+ return;
1465
+ if (this._isBrowserTypeElectron) {
1466
+ return this.getSpinnerLoadingDefault();
1467
+ }
1468
+ switch (template) {
1469
+ case TEMPLATES_LOADING_SKELETON.APPLICATION:
1470
+ case TEMPLATES_LOADING_SKELETON.GRID:
1471
+ return this.getSkeletonTemplateApplication();
1472
+ default:
1473
+ return this.getSkeletonTemplateApplication();
1474
+ }
1475
+ }
1476
+ getLoadingVisibilityStyle() {
1477
+ return {
1478
+ visibility: this._applicationReady ? "hidden" : "initial",
1479
+ display: this._applicationReady ? "none" : "unset"
1480
+ };
1481
+ }
1482
+ getSkeletonTemplateApplication() {
1483
+ return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--extra-small" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "150px", animation: "progress" })), h("div", { class: "ez-flex ez-flex--align-items-stretch skeleton-content" }, h("div", { class: "skeleton-content-left ez-margin--medium" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "calc(100% - 15px)", animation: "progress", marginBottom: "20px" })), h("div", { class: "ez-flex-item--auto skeleton-content-right ez-margin--medium" }, h("ez-skeleton", { count: this.getCountSkeleton("skeleton-content-right", 50, 20), variant: "rect", width: "100%", height: "49px", animation: "progress", marginBottom: "20px" }))), h("div", { class: "skeleton-content-footer ez-margin--medium ez-margin-top--extra-small" }, h("ez-skeleton", { count: 1, variant: "rect", width: "100%", height: "100px", animation: "progress" }))));
1484
+ }
1485
+ getSpinnerLoadingDefault() {
1486
+ return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, "Carregando..."))));
1487
+ }
1264
1488
  render() {
1265
- return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
1489
+ return (h(Host, { style: {
1490
+ visibility: (!this.enableLockManagerLoadingApp || this._applicationReady) ? "unset" : "hidden",
1491
+ overflow: (!this.enableLockManagerLoadingApp || this._applicationReady) ? "unset" : "hidden"
1492
+ } }, h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true }), this.renderLoadingSkeleton())));
1266
1493
  }
1267
1494
  get _element() { return this; }
1268
1495
  static get watchers() { return {
@@ -1270,11 +1497,13 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1270
1497
  }; }
1271
1498
  static get style() { return snkApplicationCss; }
1272
1499
  }, [2, "snk-application", {
1500
+ "enableLockManagerLoadingApp": [4, "enable-lock-manager-loading-app"],
1273
1501
  "messagesBuilder": [1040],
1274
1502
  "configName": [1, "config-name"],
1275
1503
  "gridLegacyConfigName": [1, "grid-legacy-config-name"],
1276
1504
  "formLegacyConfigName": [1, "form-legacy-config-name"],
1277
1505
  "loadByPK": [16],
1506
+ "_applicationReady": [32],
1278
1507
  "getKeyboardManager": [64],
1279
1508
  "isUserSup": [64],
1280
1509
  "addPendingAction": [64],
@@ -1314,6 +1543,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1314
1543
  "info": [64],
1315
1544
  "loadTotals": [64],
1316
1545
  "isLoadedByPk": [64],
1546
+ "preloadMangerRemoveRecord": [64],
1317
1547
  "executeSearch": [64],
1318
1548
  "executePreparedSearch": [64],
1319
1549
  "isDebugMode": [64],
@@ -1324,76 +1554,42 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1324
1554
  "executeSelectDistinct": [64],
1325
1555
  "getDataFetcher": [64],
1326
1556
  "whenApplicationReady": [64],
1327
- "setSearchFilterContext": [64]
1557
+ "setSearchFilterContext": [64],
1558
+ "markToReload": [64],
1559
+ "addLoadingLock": [64]
1328
1560
  }]);
1329
- class RequestListenerLoadingBar {
1330
- constructor() {
1331
- this._debounceTime = 1000;
1332
- this._ignoredNameTypes = ["totals"];
1333
- this._countRequest = 0;
1334
- }
1335
- onRequestStart(param) {
1336
- if (this.isIgnoreLoadingOnRequest(param)) {
1337
- return;
1338
- }
1339
- this._countRequest++;
1340
- this.loadingBar.show();
1341
- if (this._timerLoading) {
1342
- clearTimeout(this._timerLoading);
1343
- }
1344
- }
1345
- ;
1346
- onRequestEnd(param) {
1347
- if (this.isIgnoreLoadingOnRequest(param)) {
1348
- return;
1349
- }
1350
- this._countRequest--;
1351
- this._timerLoading = setTimeout(() => {
1352
- if (this._countRequest <= 0) {
1353
- this.loadingBar.hide();
1354
- }
1355
- }, this._debounceTime);
1356
- }
1357
- ;
1358
- isIgnoreLoadingOnRequest(param) {
1359
- if (param == undefined) {
1360
- return false;
1361
- }
1362
- if (param.url.includes("quietMode=true")) {
1363
- return true;
1364
- }
1365
- if (param.requestBody == undefined) {
1366
- return false;
1367
- }
1368
- if (param.requestBody.length == 1) {
1369
- const { name } = param.requestBody[0].variables;
1370
- if (name) {
1371
- const nameParts = name.split(":");
1372
- const nameType = nameParts[0];
1373
- return this._ignoredNameTypes.indexOf(nameType) >= 0;
1374
- }
1375
- }
1376
- return false;
1377
- }
1378
- ;
1379
- }
1380
1561
  class PendingPromise {
1381
1562
  constructor(resolve, reject) {
1382
1563
  this.resolve = resolve;
1383
1564
  this.reject = reject;
1384
1565
  }
1385
1566
  }
1567
+ var TEMPLATES_LOADING_SKELETON;
1568
+ (function (TEMPLATES_LOADING_SKELETON) {
1569
+ TEMPLATES_LOADING_SKELETON[TEMPLATES_LOADING_SKELETON["APPLICATION"] = 1] = "APPLICATION";
1570
+ TEMPLATES_LOADING_SKELETON[TEMPLATES_LOADING_SKELETON["GRID"] = 2] = "GRID";
1571
+ })(TEMPLATES_LOADING_SKELETON || (TEMPLATES_LOADING_SKELETON = {}));
1386
1572
  function defineCustomElement() {
1387
1573
  if (typeof customElements === "undefined") {
1388
1574
  return;
1389
1575
  }
1390
- const components = ["snk-application", "snk-pesquisa"];
1576
+ const components = ["snk-application", "pesquisa-grid", "pesquisa-tree", "snk-pesquisa"];
1391
1577
  components.forEach(tagName => { switch (tagName) {
1392
1578
  case "snk-application":
1393
1579
  if (!customElements.get(tagName)) {
1394
1580
  customElements.define(tagName, SnkApplication);
1395
1581
  }
1396
1582
  break;
1583
+ case "pesquisa-grid":
1584
+ if (!customElements.get(tagName)) {
1585
+ defineCustomElement$3();
1586
+ }
1587
+ break;
1588
+ case "pesquisa-tree":
1589
+ if (!customElements.get(tagName)) {
1590
+ defineCustomElement$2();
1591
+ }
1592
+ break;
1397
1593
  case "snk-pesquisa":
1398
1594
  if (!customElements.get(tagName)) {
1399
1595
  defineCustomElement$1();