@sankhyalabs/sankhyablocks 9.1.0-dev.2 → 9.1.0-dev.20

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 (479) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-0ce2bcd9.js → ClientSideExporterProvider-994f6e26.js} +10 -6
  2. package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-1931defc.js} +12 -2
  3. package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-ad9fb3bb.js} +2917 -210
  4. package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
  5. package/dist/cjs/{ISave-c76e2c51.js → ISave-18ffb73e.js} +1 -1
  6. package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-65e5288e.js} +3 -3
  7. package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-afbe69ab.js} +1 -1
  8. package/dist/cjs/config-header.cjs.entry.js +2 -2
  9. package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c7253b02.js} +25 -21
  10. package/dist/cjs/field-config_2.cjs.entry.js +10 -7
  11. package/dist/cjs/fields-layout.cjs.entry.js +20 -13
  12. package/dist/cjs/fields-selector.cjs.entry.js +12 -7
  13. package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-f6e66d64.js} +1 -1
  14. package/dist/cjs/guides-configurator.cjs.entry.js +14 -3
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +12 -8
  17. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  18. package/dist/cjs/snk-actions-button_8.cjs.entry.js +134 -225
  19. package/dist/cjs/snk-application.cjs.entry.js +282 -78
  20. package/dist/cjs/snk-attach.cjs.entry.js +46 -23
  21. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-crud.cjs.entry.js +18 -13
  23. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  24. package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-448fce74.js} +14 -20
  25. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
  26. package/dist/cjs/snk-detail-view.cjs.entry.js +21 -15
  27. package/dist/cjs/snk-entity-list.cjs.entry.js +20 -14
  28. package/dist/cjs/snk-expression-group_2.cjs.entry.js +21 -20
  29. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +52 -120
  30. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
  31. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  32. package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
  33. package/dist/cjs/snk-filter-period.cjs.entry.js +3 -1
  34. package/dist/cjs/snk-form_2.cjs.entry.js +9 -9
  35. package/dist/cjs/snk-grid.cjs.entry.js +8 -8
  36. package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-c23ed218.js} +9 -9
  37. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  38. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +6 -4
  39. package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -4
  40. package/dist/cjs/snk-pesquisa.cjs.entry.js +26 -19
  41. package/dist/cjs/snk-simple-crud.cjs.entry.js +25 -23
  42. package/dist/collection/components/snk-actions-button/clientEvent/index.js +3 -2
  43. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +12 -6
  44. package/dist/collection/components/snk-application/snk-application.js +1305 -328
  45. package/dist/collection/components/snk-attach/snk-attach.js +46 -12
  46. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +7 -4
  47. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +7 -3
  48. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
  49. package/dist/collection/components/snk-crud/snk-crud.js +31 -8
  50. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +11 -3
  51. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -4
  52. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -5
  53. package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +4 -1
  54. package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -8
  55. package/dist/collection/components/snk-entity-list/snk-entity-list.js +40 -15
  56. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +3 -1
  57. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +3 -1
  58. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +6 -4
  59. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +3 -1
  60. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  61. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +49 -121
  62. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
  63. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  64. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
  65. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -5
  66. package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
  67. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +1 -1
  68. package/dist/collection/components/snk-form-config/config-header/config-header.js +2 -2
  69. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +2 -2
  70. package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
  71. package/dist/collection/components/snk-form-config/field-item/field-item.js +6 -3
  72. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +6 -14
  73. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +20 -11
  74. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
  75. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +30 -5
  76. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +2 -2
  77. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +15 -2
  78. package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
  79. package/dist/collection/components/snk-grid/snk-grid.js +16 -2
  80. package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
  81. package/dist/collection/components/snk-grid-config/snk-grid-config.js +116 -213
  82. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
  83. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
  84. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +30 -1
  85. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  86. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +3 -3
  87. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +12 -12
  88. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +6 -5
  89. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +28 -4
  90. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +23 -16
  91. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -18
  92. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
  93. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
  94. package/dist/collection/lib/configs/ConfigStorage.js +3 -0
  95. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +25 -13
  96. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
  97. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +3 -0
  98. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +9 -1
  99. package/dist/collection/lib/message/SnkMessageBuilder.js +34 -56
  100. package/dist/collection/lib/message/messageResourceEnUSUtils.js +76 -0
  101. package/dist/collection/lib/message/messageResourceEsESUtils.js +76 -0
  102. package/dist/collection/lib/message/messageResourcePtBRUtils.js +76 -0
  103. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -0
  104. package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js +3 -0
  105. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js +12 -0
  106. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +18 -0
  107. package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js +9 -0
  108. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js +29 -0
  109. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +27 -0
  110. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +42 -0
  111. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +13 -0
  112. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +35 -0
  113. package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js +35 -0
  114. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +40 -0
  115. package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js +3 -0
  116. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
  117. package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js +20 -0
  118. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +71 -0
  119. package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js +7 -0
  120. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js +3 -0
  121. package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js +18 -0
  122. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +118 -0
  123. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +41 -0
  124. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -0
  125. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +105 -0
  126. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
  127. package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js +23 -0
  128. package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js +3 -0
  129. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +14 -0
  130. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
  131. package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js +18 -0
  132. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -0
  133. package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js +3 -0
  134. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js +12 -0
  135. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +18 -0
  136. package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js +9 -0
  137. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js +29 -0
  138. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +27 -0
  139. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +42 -0
  140. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +13 -0
  141. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +35 -0
  142. package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js +35 -0
  143. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js +40 -0
  144. package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js +3 -0
  145. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js +17 -0
  146. package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js +20 -0
  147. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +71 -0
  148. package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js +7 -0
  149. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js +3 -0
  150. package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js +18 -0
  151. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +118 -0
  152. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +41 -0
  153. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +10 -0
  154. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +105 -0
  155. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
  156. package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js +23 -0
  157. package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js +3 -0
  158. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +14 -0
  159. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
  160. package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js +18 -0
  161. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
  162. package/dist/collection/lib/message/resources/{crud-utils.msg.js → pt-br/crud-utils.msg.js} +1 -2
  163. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js +12 -0
  164. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +18 -0
  165. package/dist/collection/lib/message/resources/{file-viewer.msg.js → pt-br/file-viewer.msg.js} +1 -2
  166. package/dist/collection/lib/message/resources/{snk-actions-button.msg.js → pt-br/snk-actions-button.msg.js} +3 -1
  167. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +27 -0
  168. package/dist/collection/lib/message/resources/{snk-attach.msg.js → pt-br/snk-attach.msg.js} +3 -1
  169. package/dist/collection/lib/message/resources/{snk-configurator.msg.js → pt-br/snk-configurator.msg.js} +6 -1
  170. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +35 -0
  171. package/dist/collection/lib/message/resources/{snk-data-unit.msg.js → pt-br/snk-data-unit.msg.js} +5 -2
  172. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
  173. package/dist/collection/lib/message/resources/{snk-exporter.msg.js → pt-br/snk-exporter.msg.js} +1 -2
  174. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +71 -0
  175. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
  176. package/dist/collection/lib/message/resources/{snk-form.msg.js → pt-br/snk-form.msg.js} +45 -3
  177. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +41 -0
  178. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
  179. package/dist/collection/lib/message/resources/{snk-personalized-filter.msg.js → pt-br/snk-personalized-filter.msg.js} +17 -0
  180. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +24 -0
  181. package/dist/collection/lib/message/resources/{snk-simple-crud.msg.js → pt-br/snk-simple-crud.msg.js} +6 -1
  182. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
  183. package/dist/collection/lib/message/resources/{snk-taskbar.msg.js → pt-br/snk-taskbar.msg.js} +1 -2
  184. package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
  185. package/dist/components/ConfigStorage.js +11 -1
  186. package/dist/components/ContinuousInsertUtils.js +6 -2
  187. package/dist/components/DataFetcher.js +2701 -15
  188. package/dist/components/SnkFormConfigManager.js +1 -1
  189. package/dist/components/config-header2.js +2 -2
  190. package/dist/components/dataunit-fetcher.js +25 -21
  191. package/dist/components/field-config2.js +6 -7
  192. package/dist/components/field-item2.js +7 -4
  193. package/dist/components/fields-layout2.js +19 -12
  194. package/dist/components/fields-selector2.js +12 -6
  195. package/dist/components/guides-configurator2.js +14 -3
  196. package/dist/components/pesquisa-tree2.js +9 -4
  197. package/dist/components/snk-actions-button2.js +3 -2
  198. package/dist/components/snk-application2.js +277 -72
  199. package/dist/components/snk-attach2.js +43 -19
  200. package/dist/components/snk-configurator2.js +1 -1
  201. package/dist/components/snk-crud.js +13 -8
  202. package/dist/components/snk-data-unit2.js +5 -11
  203. package/dist/components/snk-detail-view2.js +19 -13
  204. package/dist/components/snk-entity-list.js +21 -15
  205. package/dist/components/snk-expression-group2.js +3 -3
  206. package/dist/components/snk-expression-item2.js +18 -17
  207. package/dist/components/snk-filter-bar2.js +6 -6
  208. package/dist/components/snk-filter-detail2.js +3 -1
  209. package/dist/components/snk-filter-item2.js +43 -111
  210. package/dist/components/snk-filter-list.js +1 -1
  211. package/dist/components/snk-filter-modal.js +1 -1
  212. package/dist/components/snk-filter-number.js +3 -1
  213. package/dist/components/snk-filter-period.js +3 -1
  214. package/dist/components/snk-form-config2.js +3 -3
  215. package/dist/components/snk-grid-config2.js +113 -214
  216. package/dist/components/snk-grid2.js +2 -2
  217. package/dist/components/snk-layout-form-config2.js +7 -1
  218. package/dist/components/snk-personalized-filter-editor.js +6 -4
  219. package/dist/components/snk-personalized-filter2.js +1 -1
  220. package/dist/components/snk-pesquisa2.js +23 -16
  221. package/dist/components/snk-select-box2.js +5 -3
  222. package/dist/components/snk-simple-crud2.js +19 -17
  223. package/dist/components/snk-simple-form-config2.js +8 -2
  224. package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-7c2781f4.js} +10 -6
  225. package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-b5a1dba3.js} +12 -2
  226. package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-6f6de657.js} +2701 -15
  227. package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
  228. package/dist/esm/{ISave-5efafc97.js → ISave-7ecdca20.js} +1 -1
  229. package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-34fc1dc7.js} +3 -3
  230. package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-7332a9a9.js} +1 -1
  231. package/dist/esm/config-header.entry.js +2 -2
  232. package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-f21cbad0.js} +25 -21
  233. package/dist/esm/field-config_2.entry.js +10 -7
  234. package/dist/esm/fields-layout.entry.js +20 -13
  235. package/dist/esm/fields-selector.entry.js +12 -7
  236. package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-6ab4e805.js} +1 -1
  237. package/dist/esm/guides-configurator.entry.js +14 -3
  238. package/dist/esm/loader.js +1 -1
  239. package/dist/esm/pesquisa-grid_2.entry.js +12 -8
  240. package/dist/esm/sankhyablocks.js +1 -1
  241. package/dist/esm/snk-actions-button_8.entry.js +134 -225
  242. package/dist/esm/snk-application.entry.js +281 -77
  243. package/dist/esm/snk-attach.entry.js +46 -23
  244. package/dist/esm/snk-configurator.entry.js +1 -1
  245. package/dist/esm/snk-crud.entry.js +18 -13
  246. package/dist/esm/snk-data-exporter.entry.js +5 -6
  247. package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-b7e6e7a6.js} +6 -12
  248. package/dist/esm/snk-data-unit.entry.js +3 -4
  249. package/dist/esm/snk-detail-view.entry.js +21 -15
  250. package/dist/esm/snk-entity-list.entry.js +20 -14
  251. package/dist/esm/snk-expression-group_2.entry.js +21 -20
  252. package/dist/esm/snk-filter-bar_4.entry.js +53 -121
  253. package/dist/esm/snk-filter-detail.entry.js +3 -1
  254. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  255. package/dist/esm/snk-filter-number.entry.js +3 -1
  256. package/dist/esm/snk-filter-period.entry.js +3 -1
  257. package/dist/esm/snk-form_2.entry.js +9 -9
  258. package/dist/esm/snk-grid.entry.js +8 -8
  259. package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-fbfece85.js} +10 -10
  260. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  261. package/dist/esm/snk-personalized-filter-editor.entry.js +6 -4
  262. package/dist/esm/snk-personalized-filter.entry.js +4 -4
  263. package/dist/esm/snk-pesquisa.entry.js +27 -20
  264. package/dist/esm/snk-simple-crud.entry.js +26 -24
  265. package/dist/sankhyablocks/p-012208e0.entry.js +1 -0
  266. package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
  267. package/dist/sankhyablocks/p-0dac8fef.js +1 -0
  268. package/dist/sankhyablocks/p-0e495575.js +1 -0
  269. package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
  270. package/dist/sankhyablocks/{p-a6513fcb.js → p-1210500e.js} +1 -1
  271. package/dist/sankhyablocks/p-158adf33.entry.js +1 -0
  272. package/dist/sankhyablocks/p-162bddae.entry.js +1 -0
  273. package/dist/sankhyablocks/{p-763b04fa.js → p-16fc4acd.js} +1 -1
  274. package/dist/sankhyablocks/p-25209340.entry.js +1 -0
  275. package/dist/sankhyablocks/p-295b83ae.entry.js +1 -0
  276. package/dist/sankhyablocks/p-3dba3468.js +56 -0
  277. package/dist/sankhyablocks/p-4872dc3a.entry.js +1 -0
  278. package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-4e63ffed.entry.js} +1 -1
  279. package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
  280. package/dist/sankhyablocks/p-5c7af8a9.entry.js +1 -0
  281. package/dist/sankhyablocks/p-5e282b33.entry.js +1 -0
  282. package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
  283. package/dist/sankhyablocks/p-6a015ba2.js +1 -0
  284. package/dist/sankhyablocks/p-735a1175.entry.js +1 -0
  285. package/dist/sankhyablocks/p-75af335e.entry.js +1 -0
  286. package/dist/sankhyablocks/p-7b3ca294.entry.js +1 -0
  287. package/dist/sankhyablocks/p-81769310.entry.js +11 -0
  288. package/dist/sankhyablocks/p-8d1508aa.entry.js +1 -0
  289. package/dist/sankhyablocks/p-8f73da95.js +1 -0
  290. package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
  291. package/dist/sankhyablocks/p-a86eee47.entry.js +1 -0
  292. package/dist/sankhyablocks/p-ad2ae575.entry.js +1 -0
  293. package/dist/sankhyablocks/p-b35574b5.js +60 -0
  294. package/dist/sankhyablocks/p-b49281be.entry.js +1 -0
  295. package/dist/sankhyablocks/{p-6dd38d7b.js → p-ba4979b4.js} +1 -1
  296. package/dist/sankhyablocks/{p-601b252b.js → p-c6331595.js} +1 -1
  297. package/dist/sankhyablocks/{p-73285a8a.js → p-c9e6d720.js} +1 -1
  298. package/dist/sankhyablocks/p-d377aa7a.entry.js +1 -0
  299. package/dist/sankhyablocks/p-eacff4b7.entry.js +1 -0
  300. package/dist/sankhyablocks/p-eb0616d3.entry.js +1 -0
  301. package/dist/sankhyablocks/p-f39b0ebe.entry.js +1 -0
  302. package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
  303. package/dist/sankhyablocks/p-fa18530e.entry.js +1 -0
  304. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  305. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
  306. package/dist/types/components/snk-application/snk-application.d.ts +251 -63
  307. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  308. package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
  309. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
  310. package/dist/types/components/snk-crud/snk-crud.d.ts +2 -0
  311. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
  312. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
  313. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
  314. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
  315. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  316. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
  317. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +10 -20
  318. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  319. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
  320. package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
  321. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
  322. package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
  323. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +14 -20
  324. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
  325. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
  326. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
  327. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
  328. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
  329. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -1
  330. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
  331. package/dist/types/components.d.ts +288 -45
  332. package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
  333. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +3 -0
  334. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
  335. package/dist/types/lib/message/SnkMessageBuilder.d.ts +11 -1
  336. package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
  337. package/dist/types/lib/message/resources/en-us/crud-utils.msg.d.ts +1 -0
  338. package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
  339. package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  340. package/dist/types/lib/message/resources/en-us/file-viewer.msg.d.ts +1 -0
  341. package/dist/types/lib/message/resources/en-us/snk-application.msg.d.ts +1 -0
  342. package/dist/types/lib/message/resources/{snk-attach.msg.d.ts → en-us/snk-attach.msg.d.ts} +0 -1
  343. package/dist/types/lib/message/resources/{snk-crud.msg.d.ts → en-us/snk-crud.msg.d.ts} +0 -1
  344. package/dist/types/lib/message/resources/en-us/snk-data-unit.msg.d.ts +1 -0
  345. package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
  346. package/dist/types/lib/message/resources/en-us/snk-exporter.msg.d.ts +1 -0
  347. package/dist/types/lib/message/resources/en-us/snk-filter-bar.msg.d.ts +1 -0
  348. package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
  349. package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
  350. package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
  351. package/dist/types/lib/message/resources/{snk-simple-crud.msg.d.ts → en-us/snk-simple-crud.msg.d.ts} +0 -1
  352. package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
  353. package/dist/types/lib/message/resources/en-us/snk-taskbar.msg.d.ts +1 -0
  354. package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
  355. package/dist/types/lib/message/resources/es-es/crud-utils.msg.d.ts +1 -0
  356. package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
  357. package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  358. package/dist/types/lib/message/resources/es-es/file-viewer.msg.d.ts +1 -0
  359. package/dist/types/lib/message/resources/es-es/snk-actions-button.msg.d.ts +1 -0
  360. package/dist/types/lib/message/resources/es-es/snk-application.msg.d.ts +1 -0
  361. package/dist/types/lib/message/resources/{snk-application.msg.d.ts → es-es/snk-attach.msg.d.ts} +0 -1
  362. package/dist/types/lib/message/resources/es-es/snk-configurator.msg.d.ts +1 -0
  363. package/dist/types/lib/message/resources/es-es/snk-crud.msg.d.ts +1 -0
  364. package/dist/types/lib/message/resources/es-es/snk-data-exporter.msg.d.ts +1 -0
  365. package/dist/types/lib/message/resources/es-es/snk-data-unit.msg.d.ts +1 -0
  366. package/dist/types/lib/message/resources/es-es/snk-entity-list.msg.d.ts +1 -0
  367. package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
  368. package/dist/types/lib/message/resources/es-es/snk-exporter.msg.d.ts +1 -0
  369. package/dist/types/lib/message/resources/es-es/snk-filter-bar.msg.d.ts +1 -0
  370. package/dist/types/lib/message/resources/es-es/snk-filter-field-search.msg.d.ts +1 -0
  371. package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
  372. package/dist/types/lib/message/resources/es-es/snk-filter-param-config.msg.d.ts +1 -0
  373. package/dist/types/lib/message/resources/es-es/snk-form.msg.d.ts +4 -0
  374. package/dist/types/lib/message/resources/es-es/snk-grid.msg.d.ts +2 -0
  375. package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
  376. package/dist/types/lib/message/resources/es-es/snk-personalized-filter.msg.d.ts +1 -0
  377. package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
  378. package/dist/types/lib/message/resources/es-es/snk-print-selector.msg.d.ts +1 -0
  379. package/dist/types/lib/message/resources/es-es/snk-simple-bar.msg.d.ts +1 -0
  380. package/dist/types/lib/message/resources/es-es/snk-simple-crud.msg.d.ts +1 -0
  381. package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
  382. package/dist/types/lib/message/resources/es-es/snk-taskbar.msg.d.ts +1 -0
  383. package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
  384. package/dist/types/lib/message/resources/pt-br/crud-utils.msg.d.ts +1 -0
  385. package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
  386. package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  387. package/dist/types/lib/message/resources/pt-br/file-viewer.msg.d.ts +1 -0
  388. package/dist/types/lib/message/resources/pt-br/snk-actions-button.msg.d.ts +1 -0
  389. package/dist/types/lib/message/resources/pt-br/snk-application.msg.d.ts +1 -0
  390. package/dist/types/lib/message/resources/pt-br/snk-attach.msg.d.ts +1 -0
  391. package/dist/types/lib/message/resources/pt-br/snk-configurator.msg.d.ts +1 -0
  392. package/dist/types/lib/message/resources/pt-br/snk-crud.msg.d.ts +1 -0
  393. package/dist/types/lib/message/resources/pt-br/snk-data-exporter.msg.d.ts +1 -0
  394. package/dist/types/lib/message/resources/pt-br/snk-data-unit.msg.d.ts +1 -0
  395. package/dist/types/lib/message/resources/pt-br/snk-entity-list.msg.d.ts +1 -0
  396. package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
  397. package/dist/types/lib/message/resources/pt-br/snk-exporter.msg.d.ts +1 -0
  398. package/dist/types/lib/message/resources/pt-br/snk-filter-bar.msg.d.ts +1 -0
  399. package/dist/types/lib/message/resources/pt-br/snk-filter-field-search.msg.d.ts +1 -0
  400. package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
  401. package/dist/types/lib/message/resources/pt-br/snk-filter-param-config.msg.d.ts +1 -0
  402. package/dist/types/lib/message/resources/pt-br/snk-form.msg.d.ts +4 -0
  403. package/dist/types/lib/message/resources/pt-br/snk-grid.msg.d.ts +2 -0
  404. package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
  405. package/dist/types/lib/message/resources/pt-br/snk-personalized-filter.msg.d.ts +1 -0
  406. package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
  407. package/dist/types/lib/message/resources/pt-br/snk-print-selector.msg.d.ts +1 -0
  408. package/dist/types/lib/message/resources/pt-br/snk-simple-bar.msg.d.ts +1 -0
  409. package/dist/types/lib/message/resources/pt-br/snk-simple-crud.msg.d.ts +1 -0
  410. package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
  411. package/dist/types/lib/message/resources/pt-br/snk-taskbar.msg.d.ts +1 -0
  412. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
  413. package/package.json +1 -1
  414. package/dist/cjs/SnkMessageBuilder-e3b7850b.js +0 -723
  415. package/dist/collection/lib/message/resources/snk-application.msg.js +0 -9
  416. package/dist/collection/lib/message/resources/snk-crud.msg.js +0 -11
  417. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +0 -65
  418. package/dist/collection/lib/message/resources/snk-grid.msg.js +0 -32
  419. package/dist/components/SnkMessageBuilder.js +0 -701
  420. package/dist/esm/SnkMessageBuilder-9c269caf.js +0 -701
  421. package/dist/sankhyablocks/p-09e60995.entry.js +0 -11
  422. package/dist/sankhyablocks/p-0cb295c1.entry.js +0 -1
  423. package/dist/sankhyablocks/p-1456d7cb.entry.js +0 -1
  424. package/dist/sankhyablocks/p-2bde486e.js +0 -1
  425. package/dist/sankhyablocks/p-349d1968.entry.js +0 -1
  426. package/dist/sankhyablocks/p-35e73c5d.js +0 -1
  427. package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
  428. package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
  429. package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
  430. package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
  431. package/dist/sankhyablocks/p-6416975c.js +0 -56
  432. package/dist/sankhyablocks/p-65c5d430.entry.js +0 -1
  433. package/dist/sankhyablocks/p-67d6d0c8.entry.js +0 -1
  434. package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
  435. package/dist/sankhyablocks/p-7993b2e3.js +0 -60
  436. package/dist/sankhyablocks/p-83c100f2.entry.js +0 -1
  437. package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
  438. package/dist/sankhyablocks/p-90805683.entry.js +0 -1
  439. package/dist/sankhyablocks/p-9751c42f.entry.js +0 -1
  440. package/dist/sankhyablocks/p-9ad3557c.entry.js +0 -1
  441. package/dist/sankhyablocks/p-a06bf7b9.entry.js +0 -1
  442. package/dist/sankhyablocks/p-a5bb2f93.entry.js +0 -1
  443. package/dist/sankhyablocks/p-afffa6cb.entry.js +0 -1
  444. package/dist/sankhyablocks/p-b8b4c6b2.entry.js +0 -1
  445. package/dist/sankhyablocks/p-bd665460.entry.js +0 -1
  446. package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
  447. package/dist/sankhyablocks/p-cfd0a4c6.entry.js +0 -1
  448. package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
  449. package/dist/sankhyablocks/p-d9491f6f.entry.js +0 -1
  450. package/dist/sankhyablocks/p-e3521eae.entry.js +0 -1
  451. package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
  452. package/dist/sankhyablocks/p-e824d565.entry.js +0 -1
  453. package/dist/sankhyablocks/p-fbba7e3d.js +0 -1
  454. package/dist/sankhyablocks/p-fc0b609e.js +0 -1
  455. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +0 -2
  456. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +0 -2
  457. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +0 -2
  458. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +0 -2
  459. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +0 -2
  460. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +0 -2
  461. /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
  462. /package/dist/collection/lib/message/resources/{snk-data-exporter.msg.js → pt-br/snk-data-exporter.msg.js} +0 -0
  463. /package/dist/collection/lib/message/resources/{snk-entity-list.msg.js → pt-br/snk-entity-list.msg.js} +0 -0
  464. /package/dist/collection/lib/message/resources/{snk-filter-field-search.msg.js → pt-br/snk-filter-field-search.msg.js} +0 -0
  465. /package/dist/collection/lib/message/resources/{snk-filter-param-config.msg.js → pt-br/snk-filter-param-config.msg.js} +0 -0
  466. /package/dist/collection/lib/message/resources/{snk-print-selector.msg.js → pt-br/snk-print-selector.msg.js} +0 -0
  467. /package/dist/collection/lib/message/resources/{snk-simple-bar.msg.js → pt-br/snk-simple-bar.msg.js} +0 -0
  468. /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
  469. /package/dist/types/lib/message/resources/{snk-actions-button.msg.d.ts → en-us/snk-actions-button.msg.d.ts} +0 -0
  470. /package/dist/types/lib/message/resources/{snk-configurator.msg.d.ts → en-us/snk-configurator.msg.d.ts} +0 -0
  471. /package/dist/types/lib/message/resources/{snk-data-exporter.msg.d.ts → en-us/snk-data-exporter.msg.d.ts} +0 -0
  472. /package/dist/types/lib/message/resources/{snk-entity-list.msg.d.ts → en-us/snk-entity-list.msg.d.ts} +0 -0
  473. /package/dist/types/lib/message/resources/{snk-filter-field-search.msg.d.ts → en-us/snk-filter-field-search.msg.d.ts} +0 -0
  474. /package/dist/types/lib/message/resources/{snk-filter-param-config.msg.d.ts → en-us/snk-filter-param-config.msg.d.ts} +0 -0
  475. /package/dist/types/lib/message/resources/{snk-form.msg.d.ts → en-us/snk-form.msg.d.ts} +0 -0
  476. /package/dist/types/lib/message/resources/{snk-grid.msg.d.ts → en-us/snk-grid.msg.d.ts} +0 -0
  477. /package/dist/types/lib/message/resources/{snk-personalized-filter.msg.d.ts → en-us/snk-personalized-filter.msg.d.ts} +0 -0
  478. /package/dist/types/lib/message/resources/{snk-print-selector.msg.d.ts → en-us/snk-print-selector.msg.d.ts} +0 -0
  479. /package/dist/types/lib/message/resources/{snk-simple-bar.msg.d.ts → en-us/snk-simple-bar.msg.d.ts} +0 -0
@@ -1,16 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
2
2
  import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, SilentException, WarningException, ErrorException, ElementIDUtils, SearchUtils, ArrayUtils, KeyboardManager, OnboardingUtils, DependencyType, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
5
- import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-88e56266.js';
6
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-3510520e.js';
7
- import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-0e025732.js';
8
- import { P as PesquisaFetcher } from './ISave-5efafc97.js';
9
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-9c269caf.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-b5a1dba3.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils, S as SnkMessageBuilder } from './DataFetcher-6f6de657.js';
6
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-7332a9a9.js';
7
+ import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-f21cbad0.js';
8
+ import { P as PesquisaFetcher } from './ISave-7ecdca20.js';
10
9
  import { T as TEMPLATES_SKELETON } from './constants-7b422de0.js';
11
10
  import './index-b40568ff.js';
12
11
  import './filter-item-type.enum-d45e026f.js';
13
- import { F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
12
+ import { F as FormConfigFetcher } from './form-config-fetcher-6ab4e805.js';
14
13
  import './PrintUtils-3e4ff0f5.js';
15
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
16
15
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
@@ -235,6 +234,9 @@ class SnkErrorHandler {
235
234
  window.addEventListener("error", evt => this.errorHandler(evt));
236
235
  window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
237
236
  }
237
+ getMessage(key, params) {
238
+ return this._app.messagesBuilder.getMessage(key, params);
239
+ }
238
240
  rejectionHandler(evt) {
239
241
  const reason = evt.reason;
240
242
  //Promisse rejeitada com WaitingChangeException, não precisam
@@ -246,7 +248,7 @@ class SnkErrorHandler {
246
248
  else {
247
249
  this._app.isDebugMode().then((isDebug) => {
248
250
  if (isDebug) {
249
- this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
251
+ this._app.error(this.getMessage("snkErrorHandler.title.promiseRejected"), this.getMessage("snkErrorHandler.message.undeterminedPromiseRejection"));
250
252
  }
251
253
  });
252
254
  }
@@ -256,15 +258,17 @@ class SnkErrorHandler {
256
258
  this.processException(evt.error);
257
259
  }
258
260
  buildErrorCodeHTML(errorCode) {
259
- const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
260
- return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
261
+ const cannotOpenHelpMessage = this.getMessage("snkErrorHandler.message.cannotOpenHelp");
262
+ const errorCodeLabel = this.getMessage("snkErrorHandler.errorCode.label");
263
+ const onclick = `try{window.workspace.openHelp('_tbcode:${errorCode}')} catch(e){alert('${cannotOpenHelpMessage}');}`;
264
+ return `<br><a href="#" onclick="${onclick}">${errorCodeLabel}${errorCode}</a>`;
261
265
  }
262
266
  processException(exception) {
263
267
  if (exception.errorCode) {
264
268
  exception.message += this.buildErrorCodeHTML(exception.errorCode);
265
269
  }
266
270
  if (exception instanceof SilentException) {
267
- console.warn("SilentException ignorada", exception);
271
+ console.warn(this.getMessage("snkErrorHandler.message.silentExceptionIgnored"), exception);
268
272
  }
269
273
  else if (exception instanceof WaitingChangeException) {
270
274
  this._app.alert(exception.title, exception.message);
@@ -282,8 +286,9 @@ class SnkErrorHandler {
282
286
  this._app.error(exception.name, exception.message);
283
287
  }
284
288
  else {
285
- const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
286
- const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
289
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || this.getMessage("snkErrorHandler.title.errorDetected", undefined);
290
+ const message = (typeof exception === "string") ? exception :
291
+ exception.message || `${this.getMessage("snkErrorHandler.error.internal")} "${ObjectUtils.objectToString(exception)}"`;
287
292
  this._app.error(title, message);
288
293
  }
289
294
  }
@@ -524,6 +529,7 @@ const SnkApplication = class {
524
529
  this.applicationLoaded = createEvent(this, "applicationLoaded", 7);
525
530
  this.applicationLoading = createEvent(this, "applicationLoading", 7);
526
531
  this.NEW_VERSION_POPUP_LOCKER = "NEW_VERSION_POPUP_LOCKER";
532
+ this.FEATURE_FLAG_CACHE_DURATION = 3600000; // 1 hora em milissegundos
527
533
  this._authPromises = [];
528
534
  this._keyboardManager = new KeyboardManager();
529
535
  this._waitingAppReady = new Array();
@@ -531,6 +537,7 @@ const SnkApplication = class {
531
537
  this._duPromises = new Map();
532
538
  this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
533
539
  this._maxTimerAppLoading = 10000;
540
+ this._featureFlagsCache = new Map();
534
541
  this._isBrowserTypeElectron = false;
535
542
  this._pendingActions = new Map;
536
543
  this._loadPkParameter = null;
@@ -605,22 +612,24 @@ const SnkApplication = class {
605
612
  }
606
613
  /**
607
614
  * Obtém o controlador de teclado.
608
- *
609
- * @return {KeyboardManager} the keyboard manager
615
+ * @returns {Promise<KeyboardManager>} O gerenciador de teclado.
616
+ * @async
610
617
  */
611
618
  async getKeyboardManager() {
612
619
  return Promise.resolve(this._keyboardManager);
613
620
  }
614
621
  /**
615
- * Obtém o notificador de Layout de formulario.
616
- *
617
- * @return {LayoutFormConfig} the Configurador de Layout do Formulario
622
+ * Obtém o notificador de Layout de formulário.
623
+ * @returns {Promise<LayoutFormConfig>} O configurador de Layout do Formulário.
624
+ * @async
618
625
  */
619
626
  async getLayoutFormConfig() {
620
627
  return Promise.resolve(this._LayoutFormConfigSingleton);
621
628
  }
622
629
  /**
623
630
  * Obtém `true` caso o usuário logado seja o SUP.
631
+ * @returns {Promise<boolean>} `true` se o usuário for SUP, `false` caso contrário.
632
+ * @async
624
633
  */
625
634
  async isUserSup() {
626
635
  return new Promise((resolve, reject) => {
@@ -633,9 +642,10 @@ const SnkApplication = class {
633
642
  }
634
643
  /**
635
644
  * Adiciona uma ação pendente que deve ser executada por um determinado locker.
636
- *
637
- * @param actionsLocker nome do locker da ação que será adicionada
638
- * @param action ação que será executada
645
+ * @param {string} actionsLocker - Nome do locker da ação que será adicionada.
646
+ * @param {Function} action - Ação que será executada.
647
+ * @returns {Promise<void>}
648
+ * @async
639
649
  */
640
650
  async addPendingAction(actionsLocker, action) {
641
651
  var _a;
@@ -643,15 +653,22 @@ const SnkApplication = class {
643
653
  this._pendingActions.set(actionsLocker, [...actionsFromContext, action]);
644
654
  }
645
655
  /**
646
- * Realiza a chamada ao Service Broker conforme o nome do serviço.
647
- *
648
- * @param serviceName - Nome do serviço
649
- * @param payload - Dados que serão processados na ação
650
- * @param options - Parâmetros de URL
651
- */
656
+ * Realiza a chamada ao Service Broker conforme o nome do serviço.
657
+ * @param {string} serviceName - Nome do serviço.
658
+ * @param {string | Object} payload - Dados que serão processados na ação.
659
+ * @param {Options} [options] - Parâmetros de URL.
660
+ * @returns {Promise<any>} A resposta do Service Broker.
661
+ * @async
662
+ */
652
663
  async callServiceBroker(serviceName, payload, options) {
653
664
  return DataFetcher.get().callServiceBroker(serviceName, payload, options);
654
665
  }
666
+ /**
667
+ * Inicializa o onboarding para uma chave específica.
668
+ * @param {string} onboardingKey - A chave do onboarding a ser iniciado.
669
+ * @returns {Promise<void>}
670
+ * @async
671
+ */
655
672
  async initOnboarding(onboardingKey) {
656
673
  if (this.hasToShowNewVersionPopup()) {
657
674
  await this.addPendingAction(this.NEW_VERSION_POPUP_LOCKER, () => this.doInitOnboarding(onboardingKey));
@@ -663,7 +680,11 @@ const SnkApplication = class {
663
680
  OnboardingUtils.getInstance().init(onboardingKey, window.envContext);
664
681
  }
665
682
  /**
666
- * Obtém `true` caso o usuário logado tem permissão pra determinada ação.
683
+ * Obtém `true` caso o usuário logado tenha permissão para determinada ação.
684
+ * @param {AutorizationType} access - O tipo de acesso a ser verificado.
685
+ * @param {string} [resourceID] - O ID do recurso para verificar a permissão. Se não fornecido, verifica a permissão da aplicação.
686
+ * @returns {Promise<boolean>} `true` se o usuário tiver acesso, `false` caso contrário.
687
+ * @async
667
688
  */
668
689
  async hasAccess(access, resourceID) {
669
690
  return new Promise((resolve, reject) => {
@@ -675,7 +696,10 @@ const SnkApplication = class {
675
696
  });
676
697
  }
677
698
  /**
678
- * Obtém todos os acessos do usuário logado.
699
+ * Obtém todos os acessos do usuário logado para um recurso específico ou para a aplicação.
700
+ * @param {string} [resourceID] - O ID do recurso. Se não fornecido, obtém os acessos da aplicação.
701
+ * @returns {Promise<any>} Um objeto contendo todos os tipos de acesso e se o usuário os possui.
702
+ * @async
679
703
  */
680
704
  async getAllAccess(resourceID) {
681
705
  return new Promise((resolve, reject) => {
@@ -700,36 +724,57 @@ const SnkApplication = class {
700
724
  }
701
725
  /**
702
726
  * Obtém o valor de um parâmetro do tipo string.
727
+ * @param {string} name - O nome do parâmetro.
728
+ * @returns {Promise<string>} O valor do parâmetro como string.
729
+ * @async
703
730
  */
704
731
  async getStringParam(name) {
705
732
  return this.parameters.asString(name);
706
733
  }
707
734
  /**
708
735
  * Obtém o valor de um parâmetro do tipo Inteiro.
736
+ * @param {string} name - O nome do parâmetro.
737
+ * @returns {Promise<number>} O valor do parâmetro como número inteiro.
738
+ * @async
709
739
  */
710
740
  async getIntParam(name) {
711
741
  return this.parameters.asInteger(name);
712
742
  }
713
743
  /**
714
744
  * Obtém o valor de um parâmetro do tipo Decimal.
745
+ * @param {string} name - O nome do parâmetro.
746
+ * @returns {Promise<number>} O valor do parâmetro como número decimal.
747
+ * @async
715
748
  */
716
749
  async getFloatParam(name) {
717
750
  return this.parameters.asFloat(name);
718
751
  }
719
752
  /**
720
753
  * Obtém o valor de um parâmetro do tipo booleano.
754
+ * @param {string} name - O nome do parâmetro.
755
+ * @returns {Promise<boolean>} O valor do parâmetro como booleano.
756
+ * @async
721
757
  */
722
758
  async getBooleanParam(name) {
723
759
  return this.parameters.asBoolean(name);
724
760
  }
725
761
  /**
726
762
  * Obtém o valor de um parâmetro do tipo data.
763
+ * @param {string} name - O nome do parâmetro.
764
+ * @returns {Promise<Date>} O valor do parâmetro como objeto Date.
765
+ * @async
727
766
  */
728
767
  async getDateParam(name) {
729
768
  return this.parameters.asDate(name);
730
769
  }
731
770
  /**
732
771
  * Exibe o conteúdo passado em um Popup.
772
+ * @param {HTMLElement} content - O elemento HTML a ser exibido no popup.
773
+ * @param {"auto" | "full"} [size="full"] - O tamanho do popup.
774
+ * @param {boolean} [useHeader=true] - Define se o cabeçalho do popup deve ser usado.
775
+ * @param {Function} [onCloseCallback] - Função a ser chamada quando o popup for fechado.
776
+ * @returns {Promise<void>}
777
+ * @async
733
778
  */
734
779
  async showPopUp(content, size = "full", useHeader = true, onCloseCallback) {
735
780
  this.clearContent(this._popUp);
@@ -746,6 +791,9 @@ const SnkApplication = class {
746
791
  }
747
792
  /**
748
793
  * Exibe o conteúdo passado em um Modal.
794
+ * @param {HTMLElement} content - O elemento HTML a ser exibido no modal.
795
+ * @returns {Promise<void>}
796
+ * @async
749
797
  */
750
798
  async showModal(content) {
751
799
  this.clearContent(this._rightModal);
@@ -753,15 +801,18 @@ const SnkApplication = class {
753
801
  this._rightModal.opened = true;
754
802
  }
755
803
  /**
756
- * Apresenta uma lista de alertas,
757
- * geralmente é utilizado para apresentar resultados
758
- * de processamentos em lote.
804
+ * Apresenta uma lista de alertas.
805
+ * Geralmente é utilizado para apresentar resultados de processamentos em lote.
806
+ * @param {Array<AlertItem>} alerts - A lista de alertas a serem exibidos.
807
+ * @returns {Promise<void>}
759
808
  */
760
809
  showAlerts(alerts) {
761
810
  return ApplicationUtils.showAlerts({ alerts });
762
811
  }
763
812
  /**
764
813
  * Fecha o Modal e limpa o conteúdo.
814
+ * @returns {Promise<void>}
815
+ * @async
765
816
  */
766
817
  async closeModal() {
767
818
  this.clearContent(this._rightModal);
@@ -769,6 +820,8 @@ const SnkApplication = class {
769
820
  }
770
821
  /**
771
822
  * Fecha o Popup e limpa o conteúdo.
823
+ * @returns {Promise<void>}
824
+ * @async
772
825
  */
773
826
  async closePopUp() {
774
827
  this.clearContent(this._popUp);
@@ -777,7 +830,10 @@ const SnkApplication = class {
777
830
  this._popUp.heightMode = "full";
778
831
  }
779
832
  /**
780
- * Verifica se a licença do cliente tem determinado opcional (produto)
833
+ * Verifica se a licença do cliente tem determinado opcional (produto).
834
+ * @param {string} opcional - O nome do opcional ou uma string de opcionais separados por vírgula.
835
+ * @returns {Promise<boolean>} `true` se o cliente tiver o opcional, `false` caso contrário.
836
+ * @async
781
837
  */
782
838
  async temOpcional(opcional) {
783
839
  const opts = opcional.split(",");
@@ -803,7 +859,10 @@ const SnkApplication = class {
803
859
  });
804
860
  }
805
861
  /**
806
- * Obtém a configuração de um recurso por service broker
862
+ * Obtém a configuração de um recurso por service broker.
863
+ * @param {string} key - A chave da configuração.
864
+ * @returns {Promise<any>} Os dados da configuração.
865
+ * @async
807
866
  */
808
867
  async getConfig(key) {
809
868
  let payload = {
@@ -822,8 +881,35 @@ const SnkApplication = class {
822
881
  .catch(error => reject(error));
823
882
  });
824
883
  }
884
+ /**
885
+ * Retorna se uma feature flag global está ativa ou não.
886
+ */
887
+ async isFeatureActive(featureName) {
888
+ const now = Date.now();
889
+ let payload = {
890
+ "serviceName": "SystemUtilsSP.featureIsActive",
891
+ "requestBody": {
892
+ "featureName": featureName
893
+ }
894
+ };
895
+ if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
896
+ return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
897
+ }
898
+ //Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
899
+ const result = await DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
900
+ const isActive = result.isActive;
901
+ this._featureFlagsCache.set(featureName, {
902
+ isActive: isActive,
903
+ expires: now + this.FEATURE_FLAG_CACHE_DURATION,
904
+ });
905
+ return isActive;
906
+ }
825
907
  /**
826
908
  * Salva a configuração de determinado recurso.
909
+ * @param {string} key - A chave da configuração.
910
+ * @param {Object} data - Os dados da configuração a serem salvos.
911
+ * @returns {Promise<any>} O resultado da operação de salvamento.
912
+ * @async
827
913
  */
828
914
  async saveConfig(key, data) {
829
915
  let payload = {
@@ -845,21 +931,30 @@ const SnkApplication = class {
845
931
  }
846
932
  /**
847
933
  * Acessa informações de contexto "empurrados" na abertura da tela.
934
+ * @param {string} attribName - O nome do atributo.
935
+ * @returns {Promise<string>} O valor do atributo.
936
+ * @async
848
937
  */
849
938
  async getAttributeFromHTMLWrapper(attribName) {
850
939
  return Promise.resolve(window[attribName]);
851
940
  }
852
941
  /**
853
942
  * Abre determinada tela, repassando pkObject.
943
+ * @param {string} resourceId - O ID do recurso da tela a ser aberta.
944
+ * @param {Object} pkObject - O objeto de chave primária a ser passado para a tela.
945
+ * @returns {Promise<void>}
946
+ * @async
854
947
  */
855
948
  async openApp(resourceId, pkObject) {
856
949
  Workspace.openAppActivity(resourceId, pkObject);
857
950
  }
858
951
  /**
859
952
  * Realiza a chamada do WebConnection para realizar a exportação de arquivo.
860
- * @param keyPort - Chave da porta que será requisitada.
861
- * @param methodName - Nome do tipo de exportação de arquivo que será realizado.
862
- * @param params - Parâmetros necessários para realizar a exportação do arquivo.
953
+ * @param {string} keyPort - Chave da porta que será requisitada.
954
+ * @param {string} methodName - Nome do tipo de exportação de arquivo que será realizado.
955
+ * @param {IAppletCallerParams} params - Parâmetros necessários para realizar a exportação do arquivo.
956
+ * @returns {Promise<void>}
957
+ * @async
863
958
  */
864
959
  async webConnection(keyPort, methodName, params) {
865
960
  this.getStringParam(keyPort).then((port) => {
@@ -880,6 +975,13 @@ const SnkApplication = class {
880
975
  /**
881
976
  * Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
882
977
  * passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
978
+ * @param {string} entityName - O nome da entidade.
979
+ * @param {string} [dataUnitName] - O nome para identificar o DataUnit no cache.
980
+ * @param {DataUnit} [parentDataUnit] - O DataUnit pai, se houver.
981
+ * @param {string} [configName] - O nome da configuração a ser usada.
982
+ * @param {string} [resourceID] - O ID do recurso. Se não fornecido, usa o da aplicação.
983
+ * @returns {Promise<DataUnit>} O DataUnit criado ou obtido do cache.
984
+ * @async
883
985
  */
884
986
  async createDataunit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
885
987
  if (resourceID == undefined) {
@@ -911,9 +1013,11 @@ const SnkApplication = class {
911
1013
  }
912
1014
  /**
913
1015
  * Atualiza o cache de dataunits da aplicação.
914
- * @param oldName - Nome do dataunit que está em cache.
915
- * @param dataUnitName - Nome do dataunit que será armazenado em cache.
916
- * @param dataUnit - Instancia do Dataunit para ser armazenado em cache.
1016
+ * @param {string} oldName - Nome do dataunit que está em cache (será removido).
1017
+ * @param {string} dataUnitName - Nome do dataunit que será armazenado em cache.
1018
+ * @param {DataUnit} dataUnit - Instância do Dataunit para ser armazenado em cache.
1019
+ * @returns {Promise<void>}
1020
+ * @async
917
1021
  */
918
1022
  async updateDataunitCache(oldName, dataUnitName, dataUnit) {
919
1023
  if (oldName) {
@@ -922,7 +1026,14 @@ const SnkApplication = class {
922
1026
  this._duCache.set(dataUnitName, dataUnit);
923
1027
  }
924
1028
  /**
925
- * Obtem um DataUnit do cache ou cria um caso ainda não tenha sido criado.
1029
+ * Obtém um DataUnit do cache ou cria um caso ainda não tenha sido criado.
1030
+ * @param {string} entityName - O nome da entidade.
1031
+ * @param {string} dataUnitName - O nome para identificar o DataUnit no cache.
1032
+ * @param {DataUnit} [parentDataUnit] - O DataUnit pai, se houver.
1033
+ * @param {string} [configName] - O nome da configuração a ser usada.
1034
+ * @param {string} [resourceID] - O ID do recurso. Se não fornecido, usa o da aplicação.
1035
+ * @returns {Promise<DataUnit>} O DataUnit obtido do cache ou recém-criado.
1036
+ * @async
926
1037
  */
927
1038
  async getDataUnit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
928
1039
  return new Promise((resolve, reject) => {
@@ -939,9 +1050,10 @@ const SnkApplication = class {
939
1050
  }
940
1051
  /**
941
1052
  * Registra um client event para o DataFetcher da aplicação.
942
- *
943
- * @param eventID - Nome do evento para a aplicação se registrar.
944
- * @param handler - Função de callback que será chamada quando o client event ocorrer.
1053
+ * @param {String} eventID - Nome do evento para a aplicação se registrar.
1054
+ * @param {(clientEvent: IClientEventResponse, dataFetcherReacaller: IDataFetcherRecaller) => void} handler - Função de callback que será chamada quando o client event ocorrer.
1055
+ * @returns {Promise<void>}
1056
+ * @async
945
1057
  */
946
1058
  async addClientEvent(eventID, handler) {
947
1059
  return new Promise((resolve) => {
@@ -950,9 +1062,10 @@ const SnkApplication = class {
950
1062
  });
951
1063
  }
952
1064
  /**
953
- * Remove um client event para o DataFetcher da aplicação.
954
- *
955
- * @param eventID - Nome do evento a ser removido.
1065
+ * Remove um client event do DataFetcher da aplicação.
1066
+ * @param {String} eventID - Nome do evento a ser removido.
1067
+ * @returns {Promise<void>}
1068
+ * @async
956
1069
  */
957
1070
  async removeClientEvent(eventID) {
958
1071
  return new Promise((resolve) => {
@@ -961,9 +1074,10 @@ const SnkApplication = class {
961
1074
  });
962
1075
  }
963
1076
  /**
964
- * Verfica se um client event está registrado no DataFetcher da aplicação.
965
- *
966
- * @param eventID - Nome do evento a ser verificado.
1077
+ * Verifica se um client event está registrado no DataFetcher da aplicação.
1078
+ * @param {String} eventID - Nome do evento a ser verificado.
1079
+ * @returns {Promise<boolean>} `true` se o evento estiver registrado, `false` caso contrário.
1080
+ * @async
967
1081
  */
968
1082
  async hasClientEvent(eventID) {
969
1083
  return new Promise((resolve) => {
@@ -981,61 +1095,106 @@ const SnkApplication = class {
981
1095
  }
982
1096
  /**
983
1097
  * Obtém o resourceID da tela em questão.
1098
+ * @returns {Promise<string>} O ID do recurso da aplicação.
1099
+ * @async
984
1100
  */
985
1101
  async getResourceID() {
986
1102
  return Promise.resolve(this.applicationResourceID);
987
1103
  }
988
1104
  /**
989
- * Obtém o UserId da tela em questão.
1105
+ * Obtém o UserId do usuário logado.
1106
+ * @returns {Promise<string>} O ID do usuário.
1107
+ * @async
990
1108
  */
991
1109
  async getUserID() {
992
1110
  return Promise.resolve(window["UID"]);
993
1111
  }
994
1112
  /**
995
1113
  * Exibe o diálogo de alerta de acordo com os parâmetros passados.
1114
+ * @param {string} title - O título do alerta.
1115
+ * @param {string} message - A mensagem do alerta.
1116
+ * @param {string} [icon] - O nome do ícone a ser exibido.
1117
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1118
+ * @returns {Promise<boolean>}
1119
+ * @async
996
1120
  */
997
1121
  async alert(title, message, icon, options) {
998
1122
  return ApplicationUtils.alert(title, message, icon, options);
999
1123
  }
1000
1124
  /**
1001
1125
  * Exibe o diálogo de erro de acordo com os parâmetros passados.
1126
+ * @param {string} title - O título do erro.
1127
+ * @param {string} message - A mensagem do erro.
1128
+ * @param {string} [icon] - O nome do ícone a ser exibido.
1129
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1130
+ * @returns {Promise<boolean>}
1131
+ * @async
1002
1132
  */
1003
1133
  async error(title, message, icon, options) {
1004
1134
  return ApplicationUtils.error(title, message, icon, options);
1005
1135
  }
1006
1136
  /**
1007
1137
  * Exibe o diálogo de sucesso de acordo com os parâmetros passados.
1138
+ * @param {string} title - O título da mensagem de sucesso.
1139
+ * @param {string} message - A mensagem de sucesso.
1140
+ * @param {string} [icon] - O nome do ícone a ser exibido.
1141
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1142
+ * @returns {Promise<boolean>}
1143
+ * @async
1008
1144
  */
1009
1145
  async success(title, message, icon, options) {
1010
1146
  return ApplicationUtils.success(title, message, icon, options);
1011
1147
  }
1012
1148
  /**
1013
- * Exibe um diálogo de mensagem comum
1149
+ * Exibe um diálogo de mensagem comum.
1150
+ * @param {string} title - O título da mensagem.
1151
+ * @param {string} message - A mensagem.
1152
+ * @param {string} [icon] - O nome do ícone a ser exibido.
1153
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1154
+ * @returns {Promise<boolean>}
1155
+ * @async
1014
1156
  */
1015
1157
  async message(title, message, icon, options) {
1016
1158
  return ApplicationUtils.message(title, message, icon, options);
1017
1159
  }
1018
1160
  /**
1019
- * Exibe um diálogo de confirmação
1161
+ * Exibe um diálogo de confirmação.
1162
+ * @param {string} title - O título da confirmação.
1163
+ * @param {string} message - A mensagem da confirmação.
1164
+ * @param {string} [icon] - O nome do ícone a ser exibido.
1165
+ * @param {DialogType} [dialogType] - O tipo de diálogo.
1166
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1167
+ * @returns {Promise<boolean>} `true` se confirmado, `false` caso contrário.
1168
+ * @async
1020
1169
  */
1021
1170
  async confirm(title, message, icon, dialogType, options) {
1022
1171
  return ApplicationUtils.confirm(title, message, icon, dialogType, options);
1023
1172
  }
1024
1173
  /**
1025
1174
  * Exibe uma informação efêmera (de segundo plano).
1175
+ * @param {string} message - A mensagem a ser exibida.
1176
+ * @param {MessageOptions} [options] - Opções adicionais para a mensagem.
1177
+ * @returns {Promise<void>}
1178
+ * @async
1026
1179
  */
1027
1180
  async info(message, options) {
1028
1181
  return ApplicationUtils.info(message, options);
1029
1182
  }
1030
1183
  /**
1031
1184
  * Obtém os totalizadores da grade.
1185
+ * @param {string} name - O nome da configuração de totalizadores.
1186
+ * @param {string} resourceID - O ID do recurso.
1187
+ * @param {Array<Filter>} filters - A lista de filtros a serem aplicados.
1188
+ * @returns {Promise<Map<string, number>>} Um mapa com os nomes dos totalizadores e seus valores.
1189
+ * @async
1032
1190
  */
1033
1191
  async loadTotals(name, resourceID, filters) {
1034
1192
  return this.totalsFetcher.fetchTotals(name, resourceID, filters);
1035
1193
  }
1036
1194
  /**
1037
- * Obtém a informação se o último carregamento do dataunit foi feito através de um loadByPk
1038
- * @returns boolean
1195
+ * Obtém a informação se o último carregamento do dataunit foi feito através de um loadByPk.
1196
+ * @returns {Promise<boolean>} `true` se foi carregado por PK, `false` caso contrário.
1197
+ * @async
1039
1198
  */
1040
1199
  async isLoadedByPk() {
1041
1200
  return Promise.resolve(this._isLoadedByPk);
@@ -1043,6 +1202,10 @@ const SnkApplication = class {
1043
1202
  /**
1044
1203
  * Remove registro do cache do PreLoader do dataunit.
1045
1204
  * Deve ser usado quando existe um dataunit usando loader do application, mas o removeLoader está sendo sobrescrito.
1205
+ * @param {DataUnit} dataUnit - O DataUnit do qual o registro será removido.
1206
+ * @param {Array<string>} recordsIDs - Os IDs dos registros a serem removidos.
1207
+ * @returns {Promise<void>}
1208
+ * @async
1046
1209
  */
1047
1210
  async preloadMangerRemoveRecord(dataUnit, recordsIDs) {
1048
1211
  const records = recordsIDs.map(id => {
@@ -1102,8 +1265,14 @@ const SnkApplication = class {
1102
1265
  return this._authFetcher;
1103
1266
  }
1104
1267
  /**
1105
- * Obtém as opções em componentes de pesquisa
1268
+ * Obtém as opções em componentes de pesquisa.
1106
1269
  * Ex.: snk-config-options
1270
+ * @param {ISearchArgument} searchArgument - Argumentos da pesquisa.
1271
+ * @param {string} fieldName - Nome do campo no DataUnit.
1272
+ * @param {DataUnit} dataUnit - Instância do DataUnit.
1273
+ * @param {ISearchCtxOptions} [ctxOptions] - Opções de contexto adicionais.
1274
+ * @returns {Promise<Array<IOption> | IOption>} Uma lista de opções ou uma única opção.
1275
+ * @async
1107
1276
  */
1108
1277
  async executeSearch(searchArgument, fieldName, dataUnit, ctxOptions) {
1109
1278
  const descriptor = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(fieldName);
@@ -1131,8 +1300,8 @@ const SnkApplication = class {
1131
1300
  const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || DataType.TEXT;
1132
1301
  const value = dataUnit.getFieldValue(fieldName);
1133
1302
  if (value == undefined) {
1134
- this.alert("Erro ao pesquisar", necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
1135
- throw new Error( necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
1303
+ this.alert(this.getMessage("snkApplication.search.error.title"), this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1304
+ throw new Error(this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1136
1305
  }
1137
1306
  return { name: fieldName, value, dataType };
1138
1307
  })
@@ -1201,8 +1370,11 @@ const SnkApplication = class {
1201
1370
  return await this.executePreparedSearch(mode, argument, Object.assign(Object.assign({}, options), { useSearchPlus: true }));
1202
1371
  }
1203
1372
  /**
1204
- * Obtém as opções em componentes de pesquisa
1205
- * Ex.: snk-config-options
1373
+ * @param {string} mode - O modo da pesquisa ("ADVANCED" ou outro).
1374
+ * @param {string} argument - O argumento da pesquisa.
1375
+ * @param {any} options - Opções preparadas para a pesquisa. Veja a documentação para exemplo de uso.
1376
+ * @returns {Promise<Array<IOption> | IOption>} Uma lista de opções ou uma única opção.
1377
+ * @async
1206
1378
  */
1207
1379
  async executePreparedSearch(mode, argument, options) {
1208
1380
  const mdByName = {};
@@ -1262,14 +1434,21 @@ const SnkApplication = class {
1262
1434
  });
1263
1435
  }
1264
1436
  /**
1265
- * Obtém o nome das telas da aplicação
1437
+ * Obtém o nome (label) da aplicação.
1438
+ * @returns {Promise<string>} O nome da aplicação.
1439
+ * @async
1266
1440
  */
1267
1441
  async getAppLabel() {
1268
1442
  return Workspace.getAppLabel(this.applicationResourceID);
1269
1443
  }
1270
1444
  /**
1271
- * Adiciona um listener no fetcher de Pesquisa
1272
- */
1445
+ * Adiciona um listener no fetcher de Pesquisa.
1446
+ * @param {string} entityName - O nome da entidade.
1447
+ * @param {DataUnit} dataUnit - A instância do DataUnit.
1448
+ * @param {ISearchListener} listener - O listener a ser adicionado.
1449
+ * @returns {Promise<IRemoveSearchListener>} Uma função para remover o listener.
1450
+ * @async
1451
+ */
1273
1452
  addSearchListener(entityName, dataUnit, listener) {
1274
1453
  return new Promise(resolve => {
1275
1454
  const removeListener = this.pesquisaFetcher.addSearchListener(entityName, dataUnit.dataUnitId, listener);
@@ -1277,8 +1456,10 @@ const SnkApplication = class {
1277
1456
  });
1278
1457
  }
1279
1458
  /**
1280
- Realiza o import de um JavaScript que está disponivel dentro da pasta /public da aplicação.
1281
- @param relativePath: Define o caminho relativo para o arquivo JavaScript a ser importado.
1459
+ Realiza o import de um JavaScript que está disponível dentro da pasta /public da aplicação.
1460
+ @param {string | Array<string>} relativePath - Define o caminho relativo para o arquivo JavaScript a ser importado, ou uma lista de caminhos.
1461
+ @returns {Promise<void>}
1462
+ @async
1282
1463
  */
1283
1464
  importScript(relativePath) {
1284
1465
  return new Promise((resolve) => {
@@ -1299,6 +1480,8 @@ const SnkApplication = class {
1299
1480
  }
1300
1481
  /**
1301
1482
  * Retorna o path relativo da aplicação.
1483
+ * @returns {Promise<string>} O caminho relativo da aplicação.
1484
+ * @async
1302
1485
  */
1303
1486
  async getApplicationPath() {
1304
1487
  return new Promise((resolve) => {
@@ -1319,20 +1502,27 @@ const SnkApplication = class {
1319
1502
  * Com base em um campo realiza um "select distinct" respeitando os
1320
1503
  * filtros atuais do dataUnit e um critério de filtro para a própria
1321
1504
  * coluna.
1505
+ * @param {DataUnit} dataUnit - A instância do DataUnit.
1506
+ * @param {string} fieldName - O nome do campo para o select distinct.
1507
+ * @param {string} argument - O argumento de filtro para a coluna.
1508
+ * @returns {Promise<Array<any>>} Uma lista de valores distintos.
1509
+ * @async
1322
1510
  */
1323
1511
  executeSelectDistinct(dataUnit, fieldName, argument) {
1324
1512
  return this.dataUnitFetcher.loadSelectDistinct(dataUnit, fieldName, argument);
1325
1513
  }
1326
1514
  /**
1327
- * Retorna a instancia do DataFetcher utilizado pelo application
1328
- * @returns DataFetcher do application
1515
+ * Retorna a instância do DataFetcher utilizado pelo application.
1516
+ * @returns {Promise<DataFetcher>} O DataFetcher da aplicação.
1517
+ * @async
1329
1518
  */
1330
1519
  getDataFetcher() {
1331
1520
  return Promise.resolve(DataFetcher.get());
1332
1521
  }
1333
1522
  /**
1334
- * Retorna uma promise que sera resolvida quando o snk-application estiver carregado e registrado no ApplicationContext
1335
- * @returns SnkApplication carregado.
1523
+ * Retorna uma promise que será resolvida quando o snk-application estiver carregado e registrado no ApplicationContext.
1524
+ * @returns {Promise<SnkApplication>} O componente SnkApplication carregado.
1525
+ * @async
1336
1526
  */
1337
1527
  async whenApplicationReady() {
1338
1528
  const isLoadding = ApplicationContext.getContextValue("__SNK__APPLICATION__LOADING__");
@@ -1345,9 +1535,10 @@ const SnkApplication = class {
1345
1535
  }
1346
1536
  /**
1347
1537
  * Atribui valor para parâmetros de contexto no componente de pesquisa.
1348
- *
1349
- * @param name - Nome do parâmetro
1350
- * @param value - String conversível de acordo com o tipo do parâmetro
1538
+ * @param {string} name - Nome do parâmetro.
1539
+ * @param {string} value - String conversível de acordo com o tipo do parâmetro.
1540
+ * @returns {Promise<void>}
1541
+ * @async
1351
1542
  */
1352
1543
  async setSearchFilterContext(name, value) {
1353
1544
  ApplicationContext.setContextValue(`__SNK__APPLICATION__FILTER__CONTEXT(${name})__`, value);
@@ -1403,7 +1594,7 @@ const SnkApplication = class {
1403
1594
  const snkDataUnit = this.getFirstDataUnitFromDOM();
1404
1595
  const dataUnit = snkDataUnit.dataUnit;
1405
1596
  if (!dataUnit) {
1406
- console.warn("Dataunit não inicializado");
1597
+ console.warn(this.getMessage("snkApplication.dataUnit.initDataUnitError"));
1407
1598
  snkDataUnit.addEventListener("dataUnitReady", (event) => {
1408
1599
  this.loadDataWithPKFilter(pkObject, event.detail);
1409
1600
  this._currentPkParameter = pkHash;
@@ -1602,6 +1793,12 @@ const SnkApplication = class {
1602
1793
  async changeTemplateSkeleton(templateSkeletonType) {
1603
1794
  this._templateSkeleton = templateSkeletonType ? templateSkeletonType : this._templateSkeleton;
1604
1795
  }
1796
+ /**
1797
+ * Marca a aplicação para recarregar, opcionalmente especificando um tipo de esqueleto de carregamento.
1798
+ * @param {TEMPLATES_SKELETON} [templateSkeletonType] - O tipo de esqueleto de carregamento a ser exibido.
1799
+ * @returns {Promise<void>}
1800
+ * @async
1801
+ */
1605
1802
  async markToReload(templateSkeletonType) {
1606
1803
  if (!this.enableLockManagerLoadingApp)
1607
1804
  return;
@@ -1610,6 +1807,13 @@ const SnkApplication = class {
1610
1807
  await LockManager.resetLocks(this._element, LockManagerOperation.APP_LOADING);
1611
1808
  this.resolveApplicationReady();
1612
1809
  }
1810
+ /**
1811
+ * Adiciona um bloqueio de carregamento à aplicação.
1812
+ * @param {boolean} [forceReady=false] - Se `true`, força a aplicação para o estado "não pronto" antes de adicionar o bloqueio.
1813
+ * @param {TEMPLATES_SKELETON} [templateSkeletonType] - O tipo de esqueleto de carregamento a ser exibido.
1814
+ * @returns {Promise<string>} O ID do bloqueio adicionado.
1815
+ * @async
1816
+ */
1613
1817
  async addLoadingLock(forceReady = false, templateSkeletonType) {
1614
1818
  if (!this.enableLockManagerLoadingApp)
1615
1819
  return;
@@ -1657,9 +1861,9 @@ const SnkApplication = class {
1657
1861
  }
1658
1862
  initKeyboardManager() {
1659
1863
  this._keyboardManager
1660
- .bind("ctrl + g", Workspace.searchApp.bind(this), { description: "Pesquisar por telas" })
1661
- .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: "Mostrar o desktop" })
1662
- .bind("F1", Workspace.openHelp.bind(this), { description: "Abrir ajuda" });
1864
+ .bind("ctrl + g", Workspace.searchApp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.searchApp") })
1865
+ .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.showDesktop") })
1866
+ .bind("F1", Workspace.openHelp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.openHelp") });
1663
1867
  }
1664
1868
  removeShortcuts() {
1665
1869
  this._keyboardManager.unbindAllShortcutKeys();
@@ -1705,7 +1909,7 @@ const SnkApplication = class {
1705
1909
  return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), h("div", { class: "ez-flex ez-flex--column", style: { width: "75%" } }, h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))))), h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))))))));
1706
1910
  }
1707
1911
  getSpinnerLoadingDefault() {
1708
- 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..."))));
1912
+ 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" }, this.getMessage("snkApplication.loading.text")))));
1709
1913
  }
1710
1914
  render() {
1711
1915
  return (h(Host, { style: {