@sankhyalabs/sankhyablocks 9.1.0-ms.5 → 9.1.0-ms.7

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 (447) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-6a4108c9.js → ClientSideExporterProvider-994f6e26.js} +10 -6
  2. package/dist/cjs/{ConfigStorage-34aa43d8.js → ConfigStorage-1931defc.js} +12 -2
  3. package/dist/cjs/{DataFetcher-e23a263b.js → DataFetcher-ad9fb3bb.js} +2724 -22
  4. package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
  5. package/dist/cjs/{ISave-e0be2362.js → ISave-18ffb73e.js} +1 -1
  6. package/dist/cjs/{SnkFormConfigManager-61bf3266.js → SnkFormConfigManager-65e5288e.js} +3 -3
  7. package/dist/cjs/{auth-fetcher-8670a38f.js → auth-fetcher-afbe69ab.js} +1 -1
  8. package/dist/cjs/config-header.cjs.entry.js +2 -2
  9. package/dist/cjs/{dataunit-fetcher-c34a8217.js → dataunit-fetcher-c7253b02.js} +22 -21
  10. package/dist/cjs/field-config_2.cjs.entry.js +9 -6
  11. package/dist/cjs/fields-layout.cjs.entry.js +20 -13
  12. package/dist/cjs/fields-selector.cjs.entry.js +11 -6
  13. package/dist/cjs/{form-config-fetcher-d8b78403.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 +95 -45
  19. package/dist/cjs/snk-application.cjs.entry.js +51 -21
  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 +17 -13
  23. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  24. package/dist/cjs/{snk-data-unit-a4f9287b.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-expression-group_2.cjs.entry.js +21 -20
  28. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +12 -12
  29. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
  31. package/dist/cjs/snk-filter-period.cjs.entry.js +3 -1
  32. package/dist/cjs/snk-form_2.cjs.entry.js +9 -9
  33. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  34. package/dist/cjs/{snk-guides-viewer-29298823.js → snk-guides-viewer-c23ed218.js} +9 -9
  35. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  36. package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -4
  37. package/dist/cjs/snk-pesquisa.cjs.entry.js +26 -19
  38. package/dist/cjs/snk-simple-crud.cjs.entry.js +25 -23
  39. package/dist/collection/components/snk-actions-button/clientEvent/index.js +3 -2
  40. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +12 -6
  41. package/dist/collection/components/snk-application/snk-application.js +51 -7
  42. package/dist/collection/components/snk-attach/snk-attach.js +46 -12
  43. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +7 -4
  44. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +7 -3
  45. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
  46. package/dist/collection/components/snk-crud/snk-crud.js +12 -8
  47. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +11 -3
  48. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -4
  49. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -5
  50. package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +4 -1
  51. package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -8
  52. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +3 -1
  53. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +3 -1
  54. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +1 -1
  55. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
  56. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  57. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
  58. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -5
  59. package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
  60. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +1 -1
  61. package/dist/collection/components/snk-form-config/config-header/config-header.js +2 -2
  62. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +2 -2
  63. package/dist/collection/components/snk-form-config/field-item/field-item.js +6 -3
  64. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +2 -2
  65. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +20 -11
  66. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +30 -5
  67. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +2 -2
  68. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +15 -2
  69. package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
  70. package/dist/collection/components/snk-grid-config/snk-grid-config.js +74 -36
  71. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
  72. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +30 -1
  73. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  74. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +3 -3
  75. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +12 -12
  76. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +6 -5
  77. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +28 -4
  78. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +23 -16
  79. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -18
  80. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
  81. package/dist/collection/lib/configs/ConfigStorage.js +3 -0
  82. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +19 -12
  83. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
  84. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +9 -1
  85. package/dist/collection/lib/message/SnkMessageBuilder.js +34 -56
  86. package/dist/collection/lib/message/messageResourceEnUSUtils.js +76 -0
  87. package/dist/collection/lib/message/messageResourceEsESUtils.js +76 -0
  88. package/dist/collection/lib/message/messageResourcePtBRUtils.js +76 -0
  89. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -0
  90. package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js +3 -0
  91. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js +12 -0
  92. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +18 -0
  93. package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js +9 -0
  94. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js +29 -0
  95. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +27 -0
  96. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +42 -0
  97. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +13 -0
  98. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +35 -0
  99. package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js +35 -0
  100. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +40 -0
  101. package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js +3 -0
  102. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
  103. package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js +20 -0
  104. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +71 -0
  105. package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js +7 -0
  106. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js +3 -0
  107. package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js +18 -0
  108. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +118 -0
  109. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +41 -0
  110. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -0
  111. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +105 -0
  112. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
  113. package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js +23 -0
  114. package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js +3 -0
  115. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +14 -0
  116. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
  117. package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js +18 -0
  118. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -0
  119. package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js +3 -0
  120. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js +12 -0
  121. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +18 -0
  122. package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js +9 -0
  123. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js +29 -0
  124. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +27 -0
  125. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +42 -0
  126. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +13 -0
  127. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +35 -0
  128. package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js +35 -0
  129. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js +40 -0
  130. package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js +3 -0
  131. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js +17 -0
  132. package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js +20 -0
  133. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +71 -0
  134. package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js +7 -0
  135. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js +3 -0
  136. package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js +18 -0
  137. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +118 -0
  138. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +41 -0
  139. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +10 -0
  140. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +105 -0
  141. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
  142. package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js +23 -0
  143. package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js +3 -0
  144. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +14 -0
  145. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
  146. package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js +18 -0
  147. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
  148. package/dist/collection/lib/message/resources/{crud-utils.msg.js → pt-br/crud-utils.msg.js} +1 -2
  149. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js +12 -0
  150. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +18 -0
  151. package/dist/collection/lib/message/resources/{file-viewer.msg.js → pt-br/file-viewer.msg.js} +1 -2
  152. package/dist/collection/lib/message/resources/{snk-actions-button.msg.js → pt-br/snk-actions-button.msg.js} +3 -1
  153. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +27 -0
  154. package/dist/collection/lib/message/resources/{snk-attach.msg.js → pt-br/snk-attach.msg.js} +3 -1
  155. package/dist/collection/lib/message/resources/{snk-configurator.msg.js → pt-br/snk-configurator.msg.js} +6 -1
  156. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +35 -0
  157. package/dist/collection/lib/message/resources/{snk-data-unit.msg.js → pt-br/snk-data-unit.msg.js} +5 -2
  158. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
  159. package/dist/collection/lib/message/resources/{snk-exporter.msg.js → pt-br/snk-exporter.msg.js} +1 -2
  160. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +71 -0
  161. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
  162. package/dist/collection/lib/message/resources/{snk-form.msg.js → pt-br/snk-form.msg.js} +45 -3
  163. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +41 -0
  164. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
  165. package/dist/collection/lib/message/resources/{snk-personalized-filter.msg.js → pt-br/snk-personalized-filter.msg.js} +17 -0
  166. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +24 -0
  167. package/dist/collection/lib/message/resources/{snk-simple-crud.msg.js → pt-br/snk-simple-crud.msg.js} +6 -1
  168. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
  169. package/dist/collection/lib/message/resources/{snk-taskbar.msg.js → pt-br/snk-taskbar.msg.js} +1 -2
  170. package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
  171. package/dist/components/ConfigStorage.js +11 -1
  172. package/dist/components/ContinuousInsertUtils.js +6 -2
  173. package/dist/components/DataFetcher.js +2695 -14
  174. package/dist/components/SnkFormConfigManager.js +1 -1
  175. package/dist/components/config-header2.js +2 -2
  176. package/dist/components/dataunit-fetcher.js +22 -21
  177. package/dist/components/field-config2.js +6 -7
  178. package/dist/components/field-item2.js +6 -3
  179. package/dist/components/fields-layout2.js +19 -12
  180. package/dist/components/fields-selector2.js +11 -5
  181. package/dist/components/guides-configurator2.js +14 -3
  182. package/dist/components/pesquisa-tree2.js +9 -4
  183. package/dist/components/snk-actions-button2.js +3 -2
  184. package/dist/components/snk-application2.js +46 -15
  185. package/dist/components/snk-attach2.js +43 -19
  186. package/dist/components/snk-configurator2.js +1 -1
  187. package/dist/components/snk-crud.js +12 -8
  188. package/dist/components/snk-data-unit2.js +5 -11
  189. package/dist/components/snk-detail-view2.js +19 -13
  190. package/dist/components/snk-expression-group2.js +3 -3
  191. package/dist/components/snk-expression-item2.js +18 -17
  192. package/dist/components/snk-filter-bar2.js +6 -6
  193. package/dist/components/snk-filter-item2.js +1 -1
  194. package/dist/components/snk-filter-list.js +1 -1
  195. package/dist/components/snk-filter-modal.js +1 -1
  196. package/dist/components/snk-filter-number.js +3 -1
  197. package/dist/components/snk-filter-period.js +3 -1
  198. package/dist/components/snk-form-config2.js +3 -3
  199. package/dist/components/snk-grid-config2.js +73 -35
  200. package/dist/components/snk-layout-form-config2.js +7 -1
  201. package/dist/components/snk-personalized-filter2.js +1 -1
  202. package/dist/components/snk-pesquisa2.js +23 -16
  203. package/dist/components/snk-select-box2.js +4 -2
  204. package/dist/components/snk-simple-crud2.js +19 -17
  205. package/dist/components/snk-simple-form-config2.js +7 -1
  206. package/dist/esm/{ClientSideExporterProvider-09dee1a3.js → ClientSideExporterProvider-7c2781f4.js} +10 -6
  207. package/dist/esm/{ConfigStorage-89154c4e.js → ConfigStorage-b5a1dba3.js} +12 -2
  208. package/dist/esm/{DataFetcher-db08cad0.js → DataFetcher-6f6de657.js} +2695 -14
  209. package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
  210. package/dist/esm/{ISave-da565824.js → ISave-7ecdca20.js} +1 -1
  211. package/dist/esm/{SnkFormConfigManager-d64d62d6.js → SnkFormConfigManager-34fc1dc7.js} +3 -3
  212. package/dist/esm/{auth-fetcher-43c8d76b.js → auth-fetcher-7332a9a9.js} +1 -1
  213. package/dist/esm/config-header.entry.js +2 -2
  214. package/dist/esm/{dataunit-fetcher-1b78797a.js → dataunit-fetcher-f21cbad0.js} +22 -21
  215. package/dist/esm/field-config_2.entry.js +9 -6
  216. package/dist/esm/fields-layout.entry.js +20 -13
  217. package/dist/esm/fields-selector.entry.js +11 -6
  218. package/dist/esm/{form-config-fetcher-e623539b.js → form-config-fetcher-6ab4e805.js} +1 -1
  219. package/dist/esm/guides-configurator.entry.js +14 -3
  220. package/dist/esm/loader.js +1 -1
  221. package/dist/esm/pesquisa-grid_2.entry.js +12 -8
  222. package/dist/esm/sankhyablocks.js +1 -1
  223. package/dist/esm/snk-actions-button_8.entry.js +95 -45
  224. package/dist/esm/snk-application.entry.js +50 -20
  225. package/dist/esm/snk-attach.entry.js +46 -23
  226. package/dist/esm/snk-configurator.entry.js +1 -1
  227. package/dist/esm/snk-crud.entry.js +17 -13
  228. package/dist/esm/snk-data-exporter.entry.js +5 -6
  229. package/dist/esm/{snk-data-unit-330db397.js → snk-data-unit-b7e6e7a6.js} +6 -12
  230. package/dist/esm/snk-data-unit.entry.js +3 -4
  231. package/dist/esm/snk-detail-view.entry.js +21 -15
  232. package/dist/esm/snk-expression-group_2.entry.js +21 -20
  233. package/dist/esm/snk-filter-bar_4.entry.js +12 -12
  234. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  235. package/dist/esm/snk-filter-number.entry.js +3 -1
  236. package/dist/esm/snk-filter-period.entry.js +3 -1
  237. package/dist/esm/snk-form_2.entry.js +9 -9
  238. package/dist/esm/snk-grid.entry.js +6 -6
  239. package/dist/esm/{snk-guides-viewer-9335318d.js → snk-guides-viewer-fbfece85.js} +10 -10
  240. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  241. package/dist/esm/snk-personalized-filter.entry.js +4 -4
  242. package/dist/esm/snk-pesquisa.entry.js +27 -20
  243. package/dist/esm/snk-simple-crud.entry.js +26 -24
  244. package/dist/sankhyablocks/p-012208e0.entry.js +1 -0
  245. package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
  246. package/dist/sankhyablocks/p-0dac8fef.js +1 -0
  247. package/dist/sankhyablocks/p-0e495575.js +1 -0
  248. package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
  249. package/dist/sankhyablocks/{p-412e06e9.js → p-1210500e.js} +1 -1
  250. package/dist/sankhyablocks/p-158adf33.entry.js +1 -0
  251. package/dist/sankhyablocks/{p-fa591f6f.js → p-16fc4acd.js} +1 -1
  252. package/dist/sankhyablocks/p-3dba3468.js +56 -0
  253. package/dist/sankhyablocks/p-4872dc3a.entry.js +1 -0
  254. package/dist/sankhyablocks/{p-b2946adb.entry.js → p-4e63ffed.entry.js} +1 -1
  255. package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
  256. package/dist/sankhyablocks/p-5c7af8a9.entry.js +1 -0
  257. package/dist/sankhyablocks/p-5e282b33.entry.js +1 -0
  258. package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
  259. package/dist/sankhyablocks/p-6a015ba2.js +1 -0
  260. package/dist/sankhyablocks/p-735a1175.entry.js +1 -0
  261. package/dist/sankhyablocks/p-75af335e.entry.js +1 -0
  262. package/dist/sankhyablocks/p-7b3ca294.entry.js +1 -0
  263. package/dist/sankhyablocks/{p-5126b34e.entry.js → p-7fbc6442.entry.js} +1 -1
  264. package/dist/sankhyablocks/p-81769310.entry.js +11 -0
  265. package/dist/sankhyablocks/p-8d1508aa.entry.js +1 -0
  266. package/dist/sankhyablocks/p-8f73da95.js +1 -0
  267. package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
  268. package/dist/sankhyablocks/p-ad2ae575.entry.js +1 -0
  269. package/dist/sankhyablocks/p-b35574b5.js +60 -0
  270. package/dist/sankhyablocks/p-b49281be.entry.js +1 -0
  271. package/dist/sankhyablocks/{p-c9657baa.js → p-ba4979b4.js} +1 -1
  272. package/dist/sankhyablocks/{p-b21d32f6.js → p-c6331595.js} +1 -1
  273. package/dist/sankhyablocks/{p-e25412da.js → p-c9e6d720.js} +1 -1
  274. package/dist/sankhyablocks/p-d377aa7a.entry.js +1 -0
  275. package/dist/sankhyablocks/p-eacff4b7.entry.js +1 -0
  276. package/dist/sankhyablocks/p-eb0616d3.entry.js +1 -0
  277. package/dist/sankhyablocks/p-f39b0ebe.entry.js +1 -0
  278. package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
  279. package/dist/sankhyablocks/p-fa18530e.entry.js +1 -0
  280. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  281. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
  282. package/dist/types/components/snk-application/snk-application.d.ts +6 -0
  283. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  284. package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
  285. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
  286. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  287. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
  288. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
  289. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
  290. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  291. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  292. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
  293. package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
  294. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
  295. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -0
  296. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
  297. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
  298. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
  299. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
  300. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
  301. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -1
  302. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
  303. package/dist/types/components.d.ts +40 -0
  304. package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
  305. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +2 -0
  306. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
  307. package/dist/types/lib/message/SnkMessageBuilder.d.ts +11 -1
  308. package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
  309. package/dist/types/lib/message/resources/en-us/crud-utils.msg.d.ts +1 -0
  310. package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
  311. package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  312. package/dist/types/lib/message/resources/en-us/file-viewer.msg.d.ts +1 -0
  313. package/dist/types/lib/message/resources/en-us/snk-application.msg.d.ts +1 -0
  314. package/dist/types/lib/message/resources/{snk-attach.msg.d.ts → en-us/snk-attach.msg.d.ts} +0 -1
  315. package/dist/types/lib/message/resources/{snk-crud.msg.d.ts → en-us/snk-crud.msg.d.ts} +0 -1
  316. package/dist/types/lib/message/resources/en-us/snk-data-unit.msg.d.ts +1 -0
  317. package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
  318. package/dist/types/lib/message/resources/en-us/snk-exporter.msg.d.ts +1 -0
  319. package/dist/types/lib/message/resources/en-us/snk-filter-bar.msg.d.ts +1 -0
  320. package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
  321. package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
  322. package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
  323. package/dist/types/lib/message/resources/{snk-simple-crud.msg.d.ts → en-us/snk-simple-crud.msg.d.ts} +0 -1
  324. package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
  325. package/dist/types/lib/message/resources/en-us/snk-taskbar.msg.d.ts +1 -0
  326. package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
  327. package/dist/types/lib/message/resources/es-es/crud-utils.msg.d.ts +1 -0
  328. package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
  329. package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  330. package/dist/types/lib/message/resources/es-es/file-viewer.msg.d.ts +1 -0
  331. package/dist/types/lib/message/resources/es-es/snk-actions-button.msg.d.ts +1 -0
  332. package/dist/types/lib/message/resources/es-es/snk-application.msg.d.ts +1 -0
  333. package/dist/types/lib/message/resources/{snk-application.msg.d.ts → es-es/snk-attach.msg.d.ts} +0 -1
  334. package/dist/types/lib/message/resources/es-es/snk-configurator.msg.d.ts +1 -0
  335. package/dist/types/lib/message/resources/es-es/snk-crud.msg.d.ts +1 -0
  336. package/dist/types/lib/message/resources/es-es/snk-data-exporter.msg.d.ts +1 -0
  337. package/dist/types/lib/message/resources/es-es/snk-data-unit.msg.d.ts +1 -0
  338. package/dist/types/lib/message/resources/es-es/snk-entity-list.msg.d.ts +1 -0
  339. package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
  340. package/dist/types/lib/message/resources/es-es/snk-exporter.msg.d.ts +1 -0
  341. package/dist/types/lib/message/resources/es-es/snk-filter-bar.msg.d.ts +1 -0
  342. package/dist/types/lib/message/resources/es-es/snk-filter-field-search.msg.d.ts +1 -0
  343. package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
  344. package/dist/types/lib/message/resources/es-es/snk-filter-param-config.msg.d.ts +1 -0
  345. package/dist/types/lib/message/resources/es-es/snk-form.msg.d.ts +4 -0
  346. package/dist/types/lib/message/resources/es-es/snk-grid.msg.d.ts +2 -0
  347. package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
  348. package/dist/types/lib/message/resources/es-es/snk-personalized-filter.msg.d.ts +1 -0
  349. package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
  350. package/dist/types/lib/message/resources/es-es/snk-print-selector.msg.d.ts +1 -0
  351. package/dist/types/lib/message/resources/es-es/snk-simple-bar.msg.d.ts +1 -0
  352. package/dist/types/lib/message/resources/es-es/snk-simple-crud.msg.d.ts +1 -0
  353. package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
  354. package/dist/types/lib/message/resources/es-es/snk-taskbar.msg.d.ts +1 -0
  355. package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
  356. package/dist/types/lib/message/resources/pt-br/crud-utils.msg.d.ts +1 -0
  357. package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
  358. package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  359. package/dist/types/lib/message/resources/pt-br/file-viewer.msg.d.ts +1 -0
  360. package/dist/types/lib/message/resources/pt-br/snk-actions-button.msg.d.ts +1 -0
  361. package/dist/types/lib/message/resources/pt-br/snk-application.msg.d.ts +1 -0
  362. package/dist/types/lib/message/resources/pt-br/snk-attach.msg.d.ts +1 -0
  363. package/dist/types/lib/message/resources/pt-br/snk-configurator.msg.d.ts +1 -0
  364. package/dist/types/lib/message/resources/pt-br/snk-crud.msg.d.ts +1 -0
  365. package/dist/types/lib/message/resources/pt-br/snk-data-exporter.msg.d.ts +1 -0
  366. package/dist/types/lib/message/resources/pt-br/snk-data-unit.msg.d.ts +1 -0
  367. package/dist/types/lib/message/resources/pt-br/snk-entity-list.msg.d.ts +1 -0
  368. package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
  369. package/dist/types/lib/message/resources/pt-br/snk-exporter.msg.d.ts +1 -0
  370. package/dist/types/lib/message/resources/pt-br/snk-filter-bar.msg.d.ts +1 -0
  371. package/dist/types/lib/message/resources/pt-br/snk-filter-field-search.msg.d.ts +1 -0
  372. package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
  373. package/dist/types/lib/message/resources/pt-br/snk-filter-param-config.msg.d.ts +1 -0
  374. package/dist/types/lib/message/resources/pt-br/snk-form.msg.d.ts +4 -0
  375. package/dist/types/lib/message/resources/pt-br/snk-grid.msg.d.ts +2 -0
  376. package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
  377. package/dist/types/lib/message/resources/pt-br/snk-personalized-filter.msg.d.ts +1 -0
  378. package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
  379. package/dist/types/lib/message/resources/pt-br/snk-print-selector.msg.d.ts +1 -0
  380. package/dist/types/lib/message/resources/pt-br/snk-simple-bar.msg.d.ts +1 -0
  381. package/dist/types/lib/message/resources/pt-br/snk-simple-crud.msg.d.ts +1 -0
  382. package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
  383. package/dist/types/lib/message/resources/pt-br/snk-taskbar.msg.d.ts +1 -0
  384. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
  385. package/package.json +1 -1
  386. package/dist/cjs/SnkMessageBuilder-221cc88d.js +0 -731
  387. package/dist/collection/lib/message/resources/snk-application.msg.js +0 -9
  388. package/dist/collection/lib/message/resources/snk-crud.msg.js +0 -11
  389. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +0 -65
  390. package/dist/collection/lib/message/resources/snk-grid.msg.js +0 -40
  391. package/dist/components/SnkMessageBuilder.js +0 -709
  392. package/dist/esm/SnkMessageBuilder-da87a821.js +0 -709
  393. package/dist/sankhyablocks/p-0750661e.entry.js +0 -1
  394. package/dist/sankhyablocks/p-1079e61b.entry.js +0 -11
  395. package/dist/sankhyablocks/p-1c69a957.entry.js +0 -1
  396. package/dist/sankhyablocks/p-22a8656b.entry.js +0 -1
  397. package/dist/sankhyablocks/p-23b20add.entry.js +0 -1
  398. package/dist/sankhyablocks/p-2d58f98e.entry.js +0 -1
  399. package/dist/sankhyablocks/p-2ebd3bfd.entry.js +0 -1
  400. package/dist/sankhyablocks/p-31193a60.entry.js +0 -1
  401. package/dist/sankhyablocks/p-35e73c5d.js +0 -1
  402. package/dist/sankhyablocks/p-37b4f642.js +0 -60
  403. package/dist/sankhyablocks/p-3b1d73f9.js +0 -1
  404. package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
  405. package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
  406. package/dist/sankhyablocks/p-5b31b239.entry.js +0 -1
  407. package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
  408. package/dist/sankhyablocks/p-7c9815ea.entry.js +0 -1
  409. package/dist/sankhyablocks/p-7ced2cf4.entry.js +0 -1
  410. package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
  411. package/dist/sankhyablocks/p-8758404f.js +0 -56
  412. package/dist/sankhyablocks/p-9a6fbf3d.entry.js +0 -1
  413. package/dist/sankhyablocks/p-a2c6944d.entry.js +0 -1
  414. package/dist/sankhyablocks/p-c99293d5.entry.js +0 -1
  415. package/dist/sankhyablocks/p-cb2a4613.entry.js +0 -1
  416. package/dist/sankhyablocks/p-cd1a5b6a.js +0 -1
  417. package/dist/sankhyablocks/p-cfc219f6.entry.js +0 -1
  418. package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
  419. package/dist/sankhyablocks/p-e56eb36b.entry.js +0 -1
  420. package/dist/sankhyablocks/p-f442c8f6.entry.js +0 -1
  421. package/dist/sankhyablocks/p-fc4eac32.js +0 -1
  422. package/dist/sankhyablocks/p-fc87708a.js +0 -1
  423. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +0 -2
  424. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +0 -2
  425. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +0 -2
  426. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +0 -2
  427. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +0 -2
  428. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +0 -2
  429. /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
  430. /package/dist/collection/lib/message/resources/{snk-data-exporter.msg.js → pt-br/snk-data-exporter.msg.js} +0 -0
  431. /package/dist/collection/lib/message/resources/{snk-entity-list.msg.js → pt-br/snk-entity-list.msg.js} +0 -0
  432. /package/dist/collection/lib/message/resources/{snk-filter-field-search.msg.js → pt-br/snk-filter-field-search.msg.js} +0 -0
  433. /package/dist/collection/lib/message/resources/{snk-filter-param-config.msg.js → pt-br/snk-filter-param-config.msg.js} +0 -0
  434. /package/dist/collection/lib/message/resources/{snk-print-selector.msg.js → pt-br/snk-print-selector.msg.js} +0 -0
  435. /package/dist/collection/lib/message/resources/{snk-simple-bar.msg.js → pt-br/snk-simple-bar.msg.js} +0 -0
  436. /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
  437. /package/dist/types/lib/message/resources/{snk-actions-button.msg.d.ts → en-us/snk-actions-button.msg.d.ts} +0 -0
  438. /package/dist/types/lib/message/resources/{snk-configurator.msg.d.ts → en-us/snk-configurator.msg.d.ts} +0 -0
  439. /package/dist/types/lib/message/resources/{snk-data-exporter.msg.d.ts → en-us/snk-data-exporter.msg.d.ts} +0 -0
  440. /package/dist/types/lib/message/resources/{snk-entity-list.msg.d.ts → en-us/snk-entity-list.msg.d.ts} +0 -0
  441. /package/dist/types/lib/message/resources/{snk-filter-field-search.msg.d.ts → en-us/snk-filter-field-search.msg.d.ts} +0 -0
  442. /package/dist/types/lib/message/resources/{snk-filter-param-config.msg.d.ts → en-us/snk-filter-param-config.msg.d.ts} +0 -0
  443. /package/dist/types/lib/message/resources/{snk-form.msg.d.ts → en-us/snk-form.msg.d.ts} +0 -0
  444. /package/dist/types/lib/message/resources/{snk-grid.msg.d.ts → en-us/snk-grid.msg.d.ts} +0 -0
  445. /package/dist/types/lib/message/resources/{snk-personalized-filter.msg.d.ts → en-us/snk-personalized-filter.msg.d.ts} +0 -0
  446. /package/dist/types/lib/message/resources/{snk-print-selector.msg.d.ts → en-us/snk-print-selector.msg.d.ts} +0 -0
  447. /package/dist/types/lib/message/resources/{snk-simple-bar.msg.d.ts → en-us/snk-simple-bar.msg.d.ts} +0 -0
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-e23a263b.js');
7
+ const DataFetcher = require('./DataFetcher-ad9fb3bb.js');
8
8
  const ParamType = require('./ParamType-90b440a0.js');
9
- require('./ISave-e0be2362.js');
9
+ require('./ISave-18ffb73e.js');
10
10
  require('./index-e3e39724.js');
11
11
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
12
12
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
13
- require('./dataunit-fetcher-c34a8217.js');
13
+ require('./dataunit-fetcher-c7253b02.js');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
15
- const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
15
+ const formConfigFetcher = require('./form-config-fetcher-f6e66d64.js');
16
16
  const constants = require('./constants-6d82e405.js');
17
17
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
18
18
  const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
19
19
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
20
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
20
+ const ConfigStorage = require('./ConfigStorage-1931defc.js');
21
21
  require('./PrintUtils-bcaeb82f.js');
22
22
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
23
23
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -515,6 +515,7 @@ const ESCOLHA_SIM_NAO = "__ESCOLHA_SIMNAO__";
515
515
  class ClientEventConfirm {
516
516
  async clientConfirm(clientEvent, recaller) {
517
517
  return new Promise((resolve) => {
518
+ var _a, _b;
518
519
  const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
519
520
  let actionType = "";
520
521
  if (clientEvent.content.event.hasOwnProperty('stpCall')) {
@@ -586,8 +587,8 @@ class ClientEventConfirm {
586
587
  }
587
588
  else {
588
589
  application.confirm(title, message, null, 'warn', {
589
- labelCancel: "Cancelar",
590
- labelConfirm: "Sim"
590
+ labelCancel: (_a = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkActionsButton.clientEvent.labelCancel"),
591
+ labelConfirm: (_b = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage("snkActionsButton.clientEvent.labelConfirm")
591
592
  }).then(async (confirmResult) => {
592
593
  if (confirmResult) {
593
594
  param.paramName = CONFIRMACAO;
@@ -802,23 +803,10 @@ const SnkGridConfig = class {
802
803
  this._orderListItems = newSortableList;
803
804
  }
804
805
  createColumnList() {
805
- let visibleGroup = {
806
- group: this.getMessage('snkGridConfig.group.visible'),
807
- items: [],
808
- };
809
- let hiddenGroup = {
810
- group: this.getMessage('snkGridConfig.group.hidden'),
811
- items: [],
812
- sort: constants.ORDER_VALUES.asc.value,
813
- };
814
- this.columns.forEach((column) => {
815
- var _a;
816
- let item = {
817
- label: column.label,
818
- selected: false,
819
- sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : constants.ORDER_VALUES.asc.value,
820
- id: column.name,
821
- };
806
+ const visibleGroup = this.buildVisibleGroup();
807
+ const hiddenGroup = this.buildHiddenGroup();
808
+ this.columns.forEach(column => {
809
+ const item = this.buildListItemFromColumn(column);
822
810
  if (column.hidden) {
823
811
  hiddenGroup.items.push(item);
824
812
  }
@@ -831,6 +819,19 @@ const SnkGridConfig = class {
831
819
  this._hiddenList = hiddenGroup.items;
832
820
  this.createOrderList();
833
821
  }
822
+ buildVisibleGroup() {
823
+ return {
824
+ group: this.getMessage('snkGridConfig.group.visible'),
825
+ items: [],
826
+ };
827
+ }
828
+ buildHiddenGroup() {
829
+ return {
830
+ group: this.getMessage('snkGridConfig.group.hidden'),
831
+ items: [],
832
+ sort: constants.ORDER_VALUES.asc.value,
833
+ };
834
+ }
834
835
  createOrderListSlotDataElementId(item) {
835
836
  return `${this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${core.StringUtils.toCamelCase(item.label)}`;
836
837
  }
@@ -843,7 +844,7 @@ const SnkGridConfig = class {
843
844
  return (index.h("snk-select-box", { selectedOption: selectedOption, key: 'snk-select-box-' + this._componenteInternalKey + '-' + item, "data-element-id": dataElementId, onEzChange: (evt) => {
844
845
  evt.stopPropagation();
845
846
  this.updateOrder(evt.detail, item.label);
846
- } }));
847
+ }, preventAutoFocus: true }));
847
848
  }
848
849
  updateOrder(sortOrder, updatedItemLabel) {
849
850
  var _a;
@@ -878,25 +879,21 @@ const SnkGridConfig = class {
878
879
  this.closeConfig();
879
880
  return;
880
881
  }
881
- let newColumnList = [];
882
- this._columListItems.forEach((group) => {
883
- group.items.forEach((item) => {
884
- const baseColumn = this.columns.find((column) => column.label === item.label);
885
- let newColumnItem = Object.assign({}, baseColumn);
886
- if (group.group === this.getMessage('snkGridConfig.group.hidden')) {
887
- newColumnItem.hidden = true;
888
- }
889
- else {
890
- newColumnItem.hidden = false;
891
- }
892
- newColumnList.push(newColumnItem);
893
- });
894
- });
895
- this.columns = newColumnList;
882
+ this.updateColumns();
896
883
  this._dataChanged = false;
897
884
  this.closeConfig();
898
885
  this.save();
899
886
  }
887
+ updateColumns() {
888
+ this.columns = this._columListItems.flatMap((group) => group.items.map((item) => this.buildColumnFromListItem(item, group)));
889
+ }
890
+ buildColumnFromListItem(item, group) {
891
+ const baseColumn = this.columns.find((column) => column.label === item.label);
892
+ if (!baseColumn) {
893
+ throw new Error(`Column with label "${item.label}" not found.`);
894
+ }
895
+ return Object.assign(Object.assign({}, baseColumn), { hidden: group.group === this.getMessage('snkGridConfig.group.hidden') });
896
+ }
900
897
  saveGridConfigOnStorage(_newConfig) {
901
898
  ConfigStorage.ConfigStorage.saveGridConfig(_newConfig, this.configName, this.resourceID)
902
899
  .then((savedConfig) => {
@@ -1066,13 +1063,55 @@ const SnkGridConfig = class {
1066
1063
  },
1067
1064
  };
1068
1065
  }
1066
+ renderResetConfigBtn() {
1067
+ if (!this.resourceID)
1068
+ return;
1069
+ return index.h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.reset'), onClick: () => this.setDefaultConfig() });
1070
+ }
1071
+ async setDefaultConfig() {
1072
+ var _a;
1073
+ if (!this.resourceID)
1074
+ return;
1075
+ this._dataChanged = true;
1076
+ const config = await ConfigStorage.ConfigStorage.getDefaultGridConfig(this.resourceID);
1077
+ const defaultVisibleCols = (_a = config === null || config === void 0 ? void 0 : config.columns.map(col => col.name)) !== null && _a !== void 0 ? _a : [];
1078
+ const visibleGroup = this.buildVisibleGroup();
1079
+ const hiddenGroup = this.buildHiddenGroup();
1080
+ const visibleItemsMap = new Map();
1081
+ this.columns.forEach(column => {
1082
+ const item = this.buildListItemFromColumn(column);
1083
+ if (defaultVisibleCols.includes(column.name)) {
1084
+ visibleItemsMap.set(column.name, item);
1085
+ }
1086
+ else {
1087
+ hiddenGroup.items.push(item);
1088
+ }
1089
+ });
1090
+ visibleGroup.items = defaultVisibleCols
1091
+ .map(name => visibleItemsMap.get(name))
1092
+ .filter(item => item);
1093
+ this._columListItems = [visibleGroup, hiddenGroup];
1094
+ this._visibleList = visibleGroup.items;
1095
+ this._hiddenList = hiddenGroup.items;
1096
+ this.updateColumns();
1097
+ this.createOrderList();
1098
+ }
1099
+ buildListItemFromColumn(column) {
1100
+ var _a;
1101
+ return {
1102
+ label: column.label,
1103
+ selected: false,
1104
+ sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : constants.ORDER_VALUES.asc.value,
1105
+ id: column.name,
1106
+ };
1107
+ }
1069
1108
  render() {
1070
- return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "ez-margin-bottom--medium" }, index.h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), index.h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), index.h("div", { class: "grid-config__body" }, index.h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, index.h("div", { class: "grid-config__main" }, index.h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
1109
+ return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "ez-margin-bottom--medium" }, index.h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), index.h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), index.h("div", { class: 'grid-config__body' }, index.h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, index.h("div", { class: "grid-config__main" }, index.h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
1071
1110
  LEFT_LIST: this.getMessage('snkGridConfig.emptyMensage.left'),
1072
1111
  RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
1073
1112
  }, entityLabel: 'coluna', entityLabelPlural: 'colunas' }))), index.h("ez-collapsible-box", { id: 'ID_group-order-columns', label: this.getMessage('snkGridConfig.dataOrdering'), "header-size": "medium", key: 'KEY_group-order-columns', value: this._collapsibleBoxListOrder, onEzChange: ({ detail }) => this._collapsibleBoxListSelect = !detail }, index.h("div", { class: "grid-config__main" }, index.h("ez-double-list", { rightList: this._orderListItems, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), useOnlyRightList: true, slotsListBuilder: this.getListSlots(), emptyMessage: {
1074
1113
  RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
1075
- }, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), index.h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
1114
+ }, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), index.h("div", { class: "grid-config__footer" }, this.renderResetConfigBtn(), index.h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), index.h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
1076
1115
  }
1077
1116
  static get assetsDirs() { return ["../assets"]; }
1078
1117
  get _element() { return index.getElement(this); }
@@ -1087,6 +1126,7 @@ const SnkLayoutFormConfig = class {
1087
1126
  constructor(hostRef) {
1088
1127
  index.registerInstance(this, hostRef);
1089
1128
  this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
1129
+ this.messagesBuilder = undefined;
1090
1130
  this.layoutType = utils.FormLayout.CASCADE;
1091
1131
  }
1092
1132
  /**
@@ -1111,8 +1151,12 @@ const SnkLayoutFormConfig = class {
1111
1151
  toggleLayout(key) {
1112
1152
  this.layoutType = key;
1113
1153
  }
1154
+ getMessage(key, params) {
1155
+ var _a;
1156
+ return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
1157
+ }
1114
1158
  render() {
1115
- return (index.h("div", { class: "ez-flex ez-flex--column" }, index.h("div", { class: "ez-margin-bottom--small" }, index.h("ez-check", { label: "Layout em cascata", class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.CASCADE), value: this.layoutType === utils.FormLayout.CASCADE }), index.h("snk-view-representation", { mode: utils.FormLayout.CASCADE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, "Todos os campos ser\u00E3o organizados em uma coluna \u00FAnica.")), index.h("div", null, index.h("ez-check", { label: "Layout lado a lado", class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.SIDE_BY_SIDE), value: this.layoutType === utils.FormLayout.SIDE_BY_SIDE }), index.h("snk-view-representation", { mode: utils.FormLayout.SIDE_BY_SIDE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, "Todos os campos ser\u00E3o dispostos lado a lado, ajustando-se automaticamente \u00E0 largura da tela."))));
1159
+ return (index.h("div", { class: "ez-flex ez-flex--column" }, index.h("div", { class: "ez-margin-bottom--small" }, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.cascadeLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.CASCADE), value: this.layoutType === utils.FormLayout.CASCADE }), index.h("snk-view-representation", { mode: utils.FormLayout.CASCADE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.cascadeLayout.description'))), index.h("div", null, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.sideBySideLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.SIDE_BY_SIDE), value: this.layoutType === utils.FormLayout.SIDE_BY_SIDE }), index.h("snk-view-representation", { mode: utils.FormLayout.SIDE_BY_SIDE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.sideBySideLayout.description')))));
1116
1160
  }
1117
1161
  };
1118
1162
  SnkLayoutFormConfig.style = snkLayoutFormConfigCss;
@@ -1124,9 +1168,10 @@ const SelectBox = class {
1124
1168
  index.registerInstance(this, hostRef);
1125
1169
  this.ezChange = index.createEvent(this, "ezChange", 7);
1126
1170
  this.selectedOption = constants.ORDER_VALUES.none;
1171
+ this.preventAutoFocus = false;
1127
1172
  }
1128
1173
  render() {
1129
- return (index.h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, Object.keys(constants.ORDER_VALUES).map((key) => {
1174
+ return (index.h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true, preventAutoFocus: this.preventAutoFocus }, Object.keys(constants.ORDER_VALUES).map((key) => {
1130
1175
  return index.h("option", { value: constants.ORDER_VALUES[key].value }, constants.ORDER_VALUES[key].label);
1131
1176
  })));
1132
1177
  }
@@ -1144,6 +1189,7 @@ const SnkSimpleFormConfig = class {
1144
1189
  this.fieldsToSave = [];
1145
1190
  this.dataUnit = undefined;
1146
1191
  this.configName = undefined;
1192
+ this.messagesBuilder = undefined;
1147
1193
  this.avaliableFields = [];
1148
1194
  this.selectedFields = [];
1149
1195
  }
@@ -1179,6 +1225,10 @@ const SnkSimpleFormConfig = class {
1179
1225
  const fieldList = await this._formConfigFetcher.fetchSimpleFormConfig(this.configName);
1180
1226
  return [...this.removeDuplicates(fieldList)];
1181
1227
  }
1228
+ getMessage(key, params) {
1229
+ var _a;
1230
+ return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
1231
+ }
1182
1232
  removeDuplicates(strings) {
1183
1233
  return strings.filter((item, index) => strings.indexOf(item) === index);
1184
1234
  }
@@ -1218,7 +1268,7 @@ const SnkSimpleFormConfig = class {
1218
1268
  this.snkConfigSaved.emit();
1219
1269
  }
1220
1270
  render() {
1221
- return (index.h("ez-popup", { ref: (ref) => this.ezPopupRef = ref, heightMode: 'auto', size: 'medium', ezTitle: 'Configurar formul\u00E1rio' }, index.h("div", { class: 'config-container' }, index.h("div", { class: 'config-lists' }, index.h("ez-double-list", { ref: (ref) => this.ezDoubleListRef = ref, leftList: this.avaliableFields, leftTitle: 'Campos disponíveis', rightList: this.selectedFields, rightTitle: 'Campos selecionados', onEzRightListChanged: ({ detail }) => this.fieldsToSave = [...detail], entityLabel: 'campo', entityLabelPlural: 'campos' })), index.h("div", { class: 'config-actions' }, index.h("ez-button", { label: 'Restaurar', onClick: this.handleResetConfigs.bind(this), size: 'small' }), index.h("ez-button", { label: 'Cancelar', onClick: this.handleCancel.bind(this), size: 'small' }), index.h("ez-button", { label: 'Salvar', class: 'ez-button--primary', onClick: this.handleSave.bind(this), size: 'small' })))));
1271
+ return (index.h("ez-popup", { ref: (ref) => this.ezPopupRef = ref, heightMode: 'auto', size: 'medium', ezTitle: this.getMessage("snkSimpleFormConfig.popup.title") }, index.h("div", { class: 'config-container' }, index.h("div", { class: 'config-lists' }, index.h("ez-double-list", { ref: (ref) => this.ezDoubleListRef = ref, leftList: this.avaliableFields, leftTitle: this.getMessage("snkSimpleFormConfig.lists.availableFields"), rightList: this.selectedFields, rightTitle: this.getMessage("snkSimpleFormConfig.lists.selectedFields"), onEzRightListChanged: ({ detail }) => this.fieldsToSave = [...detail], entityLabel: this.getMessage("snkSimpleFormConfig.lists.entityLabel"), entityLabelPlural: this.getMessage("snkSimpleFormConfig.lists.entityLabelPlural") })), index.h("div", { class: 'config-actions' }, index.h("ez-button", { label: this.getMessage("snkSimpleFormConfig.buttons.restore"), onClick: this.handleResetConfigs.bind(this), size: 'small' }), index.h("ez-button", { label: this.getMessage("snkSimpleFormConfig.buttons.cancel"), onClick: this.handleCancel.bind(this), size: 'small' }), index.h("ez-button", { label: this.getMessage("snkSimpleFormConfig.buttons.save"), class: 'ez-button--primary', onClick: this.handleSave.bind(this), size: 'small' })))));
1222
1272
  }
1223
1273
  };
1224
1274
  SnkSimpleFormConfig.style = snkSimpleFormConfigCss;
@@ -5,16 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
9
- const DataFetcher = require('./DataFetcher-e23a263b.js');
10
- const authFetcher = require('./auth-fetcher-8670a38f.js');
11
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
12
- const ISave = require('./ISave-e0be2362.js');
13
- const SnkMessageBuilder = require('./SnkMessageBuilder-221cc88d.js');
8
+ const ConfigStorage = require('./ConfigStorage-1931defc.js');
9
+ const DataFetcher = require('./DataFetcher-ad9fb3bb.js');
10
+ const authFetcher = require('./auth-fetcher-afbe69ab.js');
11
+ const dataunitFetcher = require('./dataunit-fetcher-c7253b02.js');
12
+ const ISave = require('./ISave-18ffb73e.js');
14
13
  const constants = require('./constants-6d82e405.js');
15
14
  require('./index-e3e39724.js');
16
15
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
16
+ const formConfigFetcher = require('./form-config-fetcher-f6e66d64.js');
18
17
  require('./PrintUtils-bcaeb82f.js');
19
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
20
19
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -239,6 +238,9 @@ class SnkErrorHandler {
239
238
  window.addEventListener("error", evt => this.errorHandler(evt));
240
239
  window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
241
240
  }
241
+ getMessage(key, params) {
242
+ return this._app.messagesBuilder.getMessage(key, params);
243
+ }
242
244
  rejectionHandler(evt) {
243
245
  const reason = evt.reason;
244
246
  //Promisse rejeitada com WaitingChangeException, não precisam
@@ -250,7 +252,7 @@ class SnkErrorHandler {
250
252
  else {
251
253
  this._app.isDebugMode().then((isDebug) => {
252
254
  if (isDebug) {
253
- this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
255
+ this._app.error(this.getMessage("snkErrorHandler.title.promiseRejected"), this.getMessage("snkErrorHandler.message.undeterminedPromiseRejection"));
254
256
  }
255
257
  });
256
258
  }
@@ -260,15 +262,17 @@ class SnkErrorHandler {
260
262
  this.processException(evt.error);
261
263
  }
262
264
  buildErrorCodeHTML(errorCode) {
263
- const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
264
- return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
265
+ const cannotOpenHelpMessage = this.getMessage("snkErrorHandler.message.cannotOpenHelp");
266
+ const errorCodeLabel = this.getMessage("snkErrorHandler.errorCode.label");
267
+ const onclick = `try{window.workspace.openHelp('_tbcode:${errorCode}')} catch(e){alert('${cannotOpenHelpMessage}');}`;
268
+ return `<br><a href="#" onclick="${onclick}">${errorCodeLabel}${errorCode}</a>`;
265
269
  }
266
270
  processException(exception) {
267
271
  if (exception.errorCode) {
268
272
  exception.message += this.buildErrorCodeHTML(exception.errorCode);
269
273
  }
270
274
  if (exception instanceof core.SilentException) {
271
- console.warn("SilentException ignorada", exception);
275
+ console.warn(this.getMessage("snkErrorHandler.message.silentExceptionIgnored"), exception);
272
276
  }
273
277
  else if (exception instanceof core.WaitingChangeException) {
274
278
  this._app.alert(exception.title, exception.message);
@@ -286,8 +290,9 @@ class SnkErrorHandler {
286
290
  this._app.error(exception.name, exception.message);
287
291
  }
288
292
  else {
289
- const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
290
- const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${core.ObjectUtils.objectToString(exception)}"`;
293
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || this.getMessage("snkErrorHandler.title.errorDetected", undefined);
294
+ const message = (typeof exception === "string") ? exception :
295
+ exception.message || `${this.getMessage("snkErrorHandler.error.internal")} "${core.ObjectUtils.objectToString(exception)}"`;
291
296
  this._app.error(title, message);
292
297
  }
293
298
  }
@@ -528,6 +533,7 @@ const SnkApplication = class {
528
533
  this.applicationLoaded = index.createEvent(this, "applicationLoaded", 7);
529
534
  this.applicationLoading = index.createEvent(this, "applicationLoading", 7);
530
535
  this.NEW_VERSION_POPUP_LOCKER = "NEW_VERSION_POPUP_LOCKER";
536
+ this.FEATURE_FLAG_CACHE_DURATION = 3600000; // 1 hora em milissegundos
531
537
  this._authPromises = [];
532
538
  this._keyboardManager = new core.KeyboardManager();
533
539
  this._waitingAppReady = new Array();
@@ -535,6 +541,7 @@ const SnkApplication = class {
535
541
  this._duPromises = new Map();
536
542
  this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
537
543
  this._maxTimerAppLoading = 10000;
544
+ this._featureFlagsCache = new Map();
538
545
  this._isBrowserTypeElectron = false;
539
546
  this._pendingActions = new Map;
540
547
  this._loadPkParameter = null;
@@ -826,6 +833,29 @@ const SnkApplication = class {
826
833
  .catch(error => reject(error));
827
834
  });
828
835
  }
836
+ /**
837
+ * Retorna se uma feature flag global está ativa ou não.
838
+ */
839
+ async isFeatureActive(featureName) {
840
+ const now = Date.now();
841
+ let payload = {
842
+ "serviceName": "SystemUtilsSP.featureIsActive",
843
+ "requestBody": {
844
+ "featureName": featureName
845
+ }
846
+ };
847
+ if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
848
+ return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
849
+ }
850
+ //Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
851
+ const result = await DataFetcher.DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
852
+ const isActive = result.isActive;
853
+ this._featureFlagsCache.set(featureName, {
854
+ isActive: isActive,
855
+ expires: now + this.FEATURE_FLAG_CACHE_DURATION,
856
+ });
857
+ return isActive;
858
+ }
829
859
  /**
830
860
  * Salva a configuração de determinado recurso.
831
861
  */
@@ -1135,8 +1165,8 @@ const SnkApplication = class {
1135
1165
  const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || core.DataType.TEXT;
1136
1166
  const value = dataUnit.getFieldValue(fieldName);
1137
1167
  if (value == undefined) {
1138
- this.alert("Erro ao pesquisar", necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
1139
- throw new Error( necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
1168
+ this.alert(this.getMessage("snkApplication.search.error.title"), this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1169
+ throw new Error(this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1140
1170
  }
1141
1171
  return { name: fieldName, value, dataType };
1142
1172
  })
@@ -1407,7 +1437,7 @@ const SnkApplication = class {
1407
1437
  const snkDataUnit = this.getFirstDataUnitFromDOM();
1408
1438
  const dataUnit = snkDataUnit.dataUnit;
1409
1439
  if (!dataUnit) {
1410
- console.warn("Dataunit não inicializado");
1440
+ console.warn(this.getMessage("snkApplication.dataUnit.initDataUnitError"));
1411
1441
  snkDataUnit.addEventListener("dataUnitReady", (event) => {
1412
1442
  this.loadDataWithPKFilter(pkObject, event.detail);
1413
1443
  this._currentPkParameter = pkHash;
@@ -1532,7 +1562,7 @@ const SnkApplication = class {
1532
1562
  componentWillLoad() {
1533
1563
  core.ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
1534
1564
  this._errorHandler = new SnkErrorHandler(this);
1535
- this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder();
1565
+ this.messagesBuilder = new DataFetcher.SnkMessageBuilder();
1536
1566
  core.ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${DataFetcher.UrlUtils.getUrlBase()}/mge/upload/file`);
1537
1567
  core.ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
1538
1568
  return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
@@ -1661,9 +1691,9 @@ const SnkApplication = class {
1661
1691
  }
1662
1692
  initKeyboardManager() {
1663
1693
  this._keyboardManager
1664
- .bind("ctrl + g", Workspace.searchApp.bind(this), { description: "Pesquisar por telas" })
1665
- .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: "Mostrar o desktop" })
1666
- .bind("F1", Workspace.openHelp.bind(this), { description: "Abrir ajuda" });
1694
+ .bind("ctrl + g", Workspace.searchApp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.searchApp") })
1695
+ .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.showDesktop") })
1696
+ .bind("F1", Workspace.openHelp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.openHelp") });
1667
1697
  }
1668
1698
  removeShortcuts() {
1669
1699
  this._keyboardManager.unbindAllShortcutKeys();
@@ -1709,7 +1739,7 @@ const SnkApplication = class {
1709
1739
  return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, index.h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, index.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$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), index.h("div", { class: "ez-flex ez-flex--column", style: { width: "75%" } }, index.h("div", { class: "ez-padding--medium", style: { width: "100%" } }, index.h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-padding--medium", style: { height: "45%" } }, index.h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (index.h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))))), index.h("div", { class: "ez-padding--medium", style: { width: "100%" } }, index.h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-padding--medium", style: { height: "45%" } }, index.h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (index.h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))))))));
1710
1740
  }
1711
1741
  getSpinnerLoadingDefault() {
1712
- return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, index.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index.h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, "Carregando..."))));
1742
+ return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, index.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index.h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, this.getMessage("snkApplication.loading.text")))));
1713
1743
  }
1714
1744
  render() {
1715
1745
  return (index.h(index.Host, { style: {
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-e23a263b.js');
8
- const ISave = require('./ISave-e0be2362.js');
7
+ const DataFetcher = require('./DataFetcher-ad9fb3bb.js');
8
+ const ISave = require('./ISave-18ffb73e.js');
9
9
  require('./index-e3e39724.js');
10
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
10
+ const dataunitFetcher = require('./dataunit-fetcher-c7253b02.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
12
- require('./form-config-fetcher-d8b78403.js');
12
+ require('./form-config-fetcher-f6e66d64.js');
13
13
  const constants = require('./constants-6d82e405.js');
14
- const authFetcher = require('./auth-fetcher-8670a38f.js');
14
+ const authFetcher = require('./auth-fetcher-afbe69ab.js');
15
15
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -356,10 +356,12 @@ class AnexoSistemaDataUnitFactory {
356
356
  }
357
357
  }
358
358
 
359
- const application$1 = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
359
+ let messageBuilderInstance;
360
360
  const getMessage$1 = (key) => {
361
- var _a, _b;
362
- return (_b = (_a = application$1 === null || application$1 === void 0 ? void 0 : application$1.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage) === null || _b === void 0 ? void 0 : _b.call(_a, key, null);
361
+ if (!messageBuilderInstance) {
362
+ messageBuilderInstance = new DataFetcher.SnkMessageBuilder();
363
+ }
364
+ return messageBuilderInstance.getMessage(key);
363
365
  };
364
366
  const attachCrudConfig = {
365
367
  grid: {
@@ -533,10 +535,14 @@ class AttachFetcherDataUnitFactory {
533
535
  }
534
536
  }
535
537
 
536
- const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
538
+ let messagesBuilder;
537
539
  const getMessage = (key) => {
538
- var _a, _b;
539
- return (_b = (_a = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage) === null || _b === void 0 ? void 0 : _b.call(_a, key, null);
540
+ var _a;
541
+ if (!messagesBuilder) {
542
+ const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
543
+ messagesBuilder = application === null || application === void 0 ? void 0 : application.messagesBuilder;
544
+ }
545
+ return (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage) === null || _a === void 0 ? void 0 : _a.call(messagesBuilder, key, null);
540
546
  };
541
547
  const TaskbarAttachButtons = {
542
548
  DOWNLOAD: {
@@ -625,6 +631,8 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
625
631
 
626
632
  const RESOURCE_ID = 'AnexoSistema';
627
633
  const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
634
+ const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
635
+ const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
628
636
  const SnkAttach = class {
629
637
  constructor(hostRef) {
630
638
  index.registerInstance(this, hostRef);
@@ -653,6 +661,7 @@ const SnkAttach = class {
653
661
  this.back.emit();
654
662
  });
655
663
  };
664
+ this.gridLegacyConfigName = undefined;
656
665
  this.fetcherType = undefined;
657
666
  this.fetcher = undefined;
658
667
  this.dataUnit = undefined;
@@ -719,7 +728,7 @@ const SnkAttach = class {
719
728
  }
720
729
  downloadAttachment(selectedRecord) {
721
730
  if (!selectedRecord)
722
- throw new Error('Nenhum registro selecionado');
731
+ throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));
723
732
  if (selectedRecord.LINK) {
724
733
  window.open(`${selectedRecord.LINK}`);
725
734
  return;
@@ -764,9 +773,11 @@ const SnkAttach = class {
764
773
  var _a, _b;
765
774
  this._currentDataUnit = new dataunitFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
766
775
  this._currentFetcher = this.getAnexoSistemaFetcherInstance();
776
+ let gridValidateForm;
767
777
  if (!this._currentDataUnit.metadata) {
768
778
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
769
- this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
779
+ this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
780
+ gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
770
781
  }
771
782
  this.initDataUnitLoaders();
772
783
  this._currentDataUnit.addFilterProvider({
@@ -776,19 +787,21 @@ const SnkAttach = class {
776
787
  interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
777
788
  });
778
789
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
779
- this.disableEditFieldsNotInForm();
790
+ this.disableEditFieldsNotInForm(gridValidateForm);
780
791
  }
781
792
  async loadAttach() {
782
793
  var _a, _b;
783
794
  this._currentFetcher = new AttachFetcher();
784
795
  this._currentDataUnit = new core.DataUnit(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
785
796
  this._currentDataUnit.pageSize = 150;
797
+ let gridValidateForm;
786
798
  this.initDataUnitLoaders();
787
799
  this._currentDataUnit.addInterceptor({
788
800
  interceptAction: (action) => {
789
801
  var _a;
790
802
  if (action.type === core.Action.METADATA_LOADED) {
791
- this.crudConfig = Object.assign({}, attachCrudConfig);
803
+ this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
804
+ gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
792
805
  (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
793
806
  }
794
807
  return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
@@ -796,9 +809,10 @@ const SnkAttach = class {
796
809
  });
797
810
  if (!this._currentDataUnit.metadata) {
798
811
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
799
- this.crudConfig = Object.assign({}, attachCrudConfig);
812
+ this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
813
+ gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
800
814
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
801
- this.disableEditFieldsNotInForm();
815
+ this.disableEditFieldsNotInForm(gridValidateForm);
802
816
  }
803
817
  }
804
818
  initDataUnitLoaders() {
@@ -817,12 +831,16 @@ const SnkAttach = class {
817
831
  });
818
832
  }
819
833
  }
820
- disableEditFieldsNotInForm() {
821
- var _a;
822
- (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid.columns.forEach(column => {
823
- var _a;
834
+ disableEditFieldsNotInForm(gridValidateForm) {
835
+ var _a, _b, _c, _d, _e;
836
+ const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
837
+ if (!!this.getGridLegacyConfigName()) {
838
+ this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
839
+ }
840
+ gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
841
+ var _a, _b;
824
842
  const fieldName = column.name;
825
- if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
843
+ if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
826
844
  this._currentDataUnit.disableField(fieldName);
827
845
  }
828
846
  });
@@ -872,11 +890,16 @@ const SnkAttach = class {
872
890
  await this._currentDataUnit.loadMetadata();
873
891
  }
874
892
  ;
893
+ getGridLegacyConfigName() {
894
+ if (this.gridLegacyConfigName)
895
+ return this.gridLegacyConfigName;
896
+ return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
897
+ }
875
898
  render() {
876
899
  var _a, _b;
877
900
  if (!this._currentDataUnit)
878
901
  return null;
879
- return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
902
+ return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
880
903
  }
881
904
  static get watchers() { return {
882
905
  "registerKey": ["registerKeyWatcher"]
@@ -113,7 +113,7 @@ const SnkConfigurator = class {
113
113
  insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
114
114
  }
115
115
  render() {
116
- return (index.h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light", onEzCloseModal: () => this.closeConfig() }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, index.h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: constants.VIEW_MODE.GRID }), index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: constants.VIEW_MODE.FORM })), index.h("div", { class: "snk-configurator__collsable-box-action" }, index.h("ez-button", { label: this.viewMode === constants.VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), this.layoutFormConfig && index.h("ez-collapsible-box", { boxBordered: true, value: true, label: "Layout do formul\u00E1rio", headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, index.h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, index.h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref }))), index.h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (index.h("div", { class: "snk-configurator__action-buttons" }, index.h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), index.h("ez-button", { label: "Salvar", onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
116
+ return (index.h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light", onEzCloseModal: () => this.closeConfig() }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label: this.getMessage('snkConfigurator.subTitleModeConfig'), headerSize: "medium", class: "snk-configurator__collapsable-box" }, index.h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: constants.VIEW_MODE.GRID }), index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: constants.VIEW_MODE.FORM })), index.h("div", { class: "snk-configurator__collsable-box-action" }, index.h("ez-button", { label: this.viewMode === constants.VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), this.layoutFormConfig && index.h("ez-collapsible-box", { boxBordered: true, value: true, label: this.getMessage('snkConfigurator.labelLayoutForm'), headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, index.h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, index.h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref, messagesBuilder: this.messagesBuilder }))), index.h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (index.h("div", { class: "snk-configurator__action-buttons" }, index.h("ez-button", { label: this.getMessage('snkConfigurator.buttons.cancel'), onClick: () => this.cancel.emit() }), index.h("ez-button", { label: this.getMessage('snkConfigurator.buttons.save'), onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
117
117
  }
118
118
  get _element() { return index.getElement(this); }
119
119
  };