@sankhyalabs/sankhyablocks 9.1.0-dev.13 → 9.1.0-dev.15

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 (321) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-6a4108c9.js → ClientSideExporterProvider-c14393e1.js} +10 -6
  2. package/dist/cjs/{ConfigStorage-bb8c0edf.js → ConfigStorage-54b9f26d.js} +2 -2
  3. package/dist/cjs/{DataFetcher-e23a263b.js → DataFetcher-b3508dda.js} +2737 -22
  4. package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
  5. package/dist/cjs/{ISave-e0be2362.js → ISave-b4f736d5.js} +1 -1
  6. package/dist/cjs/{SnkFormConfigManager-a23df43c.js → SnkFormConfigManager-ee250c13.js} +2 -2
  7. package/dist/cjs/{auth-fetcher-8670a38f.js → auth-fetcher-e9ffe276.js} +1 -1
  8. package/dist/cjs/config-header.cjs.entry.js +2 -2
  9. package/dist/cjs/{dataunit-fetcher-c34a8217.js → dataunit-fetcher-0fe0ee18.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-e4187da9.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 +20 -9
  19. package/dist/cjs/snk-application.cjs.entry.js +51 -21
  20. package/dist/cjs/snk-attach.cjs.entry.js +18 -12
  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-47c6d16b.js → snk-data-unit-a0224064.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 +10 -10
  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 +8 -8
  33. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  34. package/dist/cjs/{snk-guides-viewer-1689e877.js → snk-guides-viewer-6b4be669.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 +18 -16
  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 +1 -1
  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-list/snk-filter-list.js +1 -1
  55. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  56. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -5
  57. package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
  58. package/dist/collection/components/snk-form-config/config-header/config-header.js +2 -2
  59. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +2 -2
  60. package/dist/collection/components/snk-form-config/field-item/field-item.js +6 -3
  61. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +2 -2
  62. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +20 -11
  63. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +30 -5
  64. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +2 -2
  65. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +15 -2
  66. package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
  67. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +30 -1
  68. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  69. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +3 -3
  70. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +12 -12
  71. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +6 -5
  72. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +28 -4
  73. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +23 -16
  74. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +12 -10
  75. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
  76. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +19 -12
  77. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
  78. package/dist/collection/lib/message/SnkMessageBuilder.js +28 -7
  79. package/dist/collection/lib/message/messageResourceEnUSUtils.js +30 -45
  80. package/dist/collection/lib/message/messageResourceEsESUtils.js +30 -45
  81. package/dist/collection/lib/message/messageResourcePtBRUtils.js +30 -45
  82. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -0
  83. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js +12 -0
  84. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +18 -0
  85. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js +3 -1
  86. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +21 -2
  87. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +4 -1
  88. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +6 -1
  89. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +28 -3
  90. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +5 -2
  91. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
  92. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +7 -0
  93. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js +3 -0
  94. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +44 -2
  95. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -0
  96. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +17 -0
  97. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
  98. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +6 -0
  99. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
  100. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -0
  101. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js +12 -0
  102. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +18 -0
  103. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js +3 -1
  104. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +21 -2
  105. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +3 -0
  106. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +6 -1
  107. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +27 -2
  108. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js +3 -0
  109. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js +17 -0
  110. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +7 -0
  111. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js +3 -0
  112. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +44 -2
  113. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +10 -0
  114. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +17 -0
  115. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
  116. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +6 -0
  117. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
  118. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
  119. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js +12 -0
  120. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +18 -0
  121. package/dist/collection/lib/message/resources/pt-br/snk-actions-button.msg.js +3 -1
  122. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +19 -0
  123. package/dist/collection/lib/message/resources/pt-br/snk-attach.msg.js +3 -0
  124. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +6 -1
  125. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +27 -2
  126. package/dist/collection/lib/message/resources/pt-br/snk-data-unit.msg.js +3 -0
  127. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
  128. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +7 -0
  129. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
  130. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +45 -3
  131. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
  132. package/dist/collection/lib/message/resources/pt-br/snk-personalized-filter.msg.js +17 -0
  133. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +24 -0
  134. package/dist/collection/lib/message/resources/pt-br/snk-simple-crud.msg.js +6 -0
  135. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
  136. package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
  137. package/dist/components/ContinuousInsertUtils.js +6 -2
  138. package/dist/components/DataFetcher.js +2707 -13
  139. package/dist/components/config-header2.js +2 -2
  140. package/dist/components/dataunit-fetcher.js +22 -21
  141. package/dist/components/field-config2.js +6 -7
  142. package/dist/components/field-item2.js +6 -3
  143. package/dist/components/fields-layout2.js +19 -12
  144. package/dist/components/fields-selector2.js +11 -5
  145. package/dist/components/guides-configurator2.js +14 -3
  146. package/dist/components/pesquisa-tree2.js +9 -4
  147. package/dist/components/snk-actions-button2.js +3 -2
  148. package/dist/components/snk-application2.js +46 -15
  149. package/dist/components/snk-attach2.js +14 -8
  150. package/dist/components/snk-configurator2.js +1 -1
  151. package/dist/components/snk-crud.js +12 -8
  152. package/dist/components/snk-data-unit2.js +5 -11
  153. package/dist/components/snk-detail-view2.js +19 -13
  154. package/dist/components/snk-expression-group2.js +3 -3
  155. package/dist/components/snk-expression-item2.js +18 -17
  156. package/dist/components/snk-filter-bar2.js +5 -5
  157. package/dist/components/snk-filter-list.js +1 -1
  158. package/dist/components/snk-filter-modal.js +1 -1
  159. package/dist/components/snk-filter-number.js +3 -1
  160. package/dist/components/snk-filter-period.js +3 -1
  161. package/dist/components/snk-form-config2.js +3 -3
  162. package/dist/components/snk-layout-form-config2.js +7 -1
  163. package/dist/components/snk-personalized-filter2.js +1 -1
  164. package/dist/components/snk-pesquisa2.js +23 -16
  165. package/dist/components/snk-simple-crud2.js +12 -10
  166. package/dist/components/snk-simple-form-config2.js +7 -1
  167. package/dist/esm/{ClientSideExporterProvider-09dee1a3.js → ClientSideExporterProvider-4f81855c.js} +10 -6
  168. package/dist/esm/{ConfigStorage-cf578768.js → ConfigStorage-7f782e00.js} +2 -2
  169. package/dist/esm/{DataFetcher-db08cad0.js → DataFetcher-b51050a0.js} +2707 -13
  170. package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
  171. package/dist/esm/{ISave-da565824.js → ISave-bc31d9f4.js} +1 -1
  172. package/dist/esm/{SnkFormConfigManager-c1cd9dcd.js → SnkFormConfigManager-ab1948b0.js} +2 -2
  173. package/dist/esm/{auth-fetcher-43c8d76b.js → auth-fetcher-8ac800aa.js} +1 -1
  174. package/dist/esm/config-header.entry.js +2 -2
  175. package/dist/esm/{dataunit-fetcher-1b78797a.js → dataunit-fetcher-16702941.js} +22 -21
  176. package/dist/esm/field-config_2.entry.js +9 -6
  177. package/dist/esm/fields-layout.entry.js +20 -13
  178. package/dist/esm/fields-selector.entry.js +11 -6
  179. package/dist/esm/{form-config-fetcher-e623539b.js → form-config-fetcher-6fe8d856.js} +1 -1
  180. package/dist/esm/guides-configurator.entry.js +14 -3
  181. package/dist/esm/loader.js +1 -1
  182. package/dist/esm/pesquisa-grid_2.entry.js +12 -8
  183. package/dist/esm/sankhyablocks.js +1 -1
  184. package/dist/esm/snk-actions-button_8.entry.js +20 -9
  185. package/dist/esm/snk-application.entry.js +50 -20
  186. package/dist/esm/snk-attach.entry.js +18 -12
  187. package/dist/esm/snk-configurator.entry.js +1 -1
  188. package/dist/esm/snk-crud.entry.js +17 -13
  189. package/dist/esm/snk-data-exporter.entry.js +5 -6
  190. package/dist/esm/{snk-data-unit-c12986b7.js → snk-data-unit-fd6be603.js} +6 -12
  191. package/dist/esm/snk-data-unit.entry.js +3 -4
  192. package/dist/esm/snk-detail-view.entry.js +21 -15
  193. package/dist/esm/snk-expression-group_2.entry.js +21 -20
  194. package/dist/esm/snk-filter-bar_4.entry.js +10 -10
  195. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  196. package/dist/esm/snk-filter-number.entry.js +3 -1
  197. package/dist/esm/snk-filter-period.entry.js +3 -1
  198. package/dist/esm/snk-form_2.entry.js +8 -8
  199. package/dist/esm/snk-grid.entry.js +6 -6
  200. package/dist/esm/{snk-guides-viewer-defa2629.js → snk-guides-viewer-480d909c.js} +10 -10
  201. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  202. package/dist/esm/snk-personalized-filter.entry.js +4 -4
  203. package/dist/esm/snk-pesquisa.entry.js +27 -20
  204. package/dist/esm/snk-simple-crud.entry.js +19 -17
  205. package/dist/sankhyablocks/{p-fa591f6f.js → p-05969d8a.js} +1 -1
  206. package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
  207. package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
  208. package/dist/sankhyablocks/p-162a92a7.entry.js +1 -0
  209. package/dist/sankhyablocks/p-187a58f2.entry.js +1 -0
  210. package/dist/sankhyablocks/p-1a150f81.entry.js +1 -0
  211. package/dist/sankhyablocks/p-1a53afc6.entry.js +1 -0
  212. package/dist/sankhyablocks/p-20e0db8f.entry.js +1 -0
  213. package/dist/sankhyablocks/p-21b7b011.entry.js +1 -0
  214. package/dist/sankhyablocks/p-367c998c.entry.js +1 -0
  215. package/dist/sankhyablocks/p-379d6206.js +60 -0
  216. package/dist/sankhyablocks/p-566b468b.entry.js +1 -0
  217. package/dist/sankhyablocks/{p-c9657baa.js → p-56874df8.js} +1 -1
  218. package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
  219. package/dist/sankhyablocks/p-64fed9bf.js +1 -0
  220. package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
  221. package/dist/sankhyablocks/p-68d66cd8.entry.js +11 -0
  222. package/dist/sankhyablocks/p-6cf54569.js +1 -0
  223. package/dist/sankhyablocks/{p-b21d32f6.js → p-709bf708.js} +1 -1
  224. package/dist/sankhyablocks/p-735a1175.entry.js +1 -0
  225. package/dist/sankhyablocks/p-75af335e.entry.js +1 -0
  226. package/dist/sankhyablocks/p-7b3ca294.entry.js +1 -0
  227. package/dist/sankhyablocks/p-7baecc09.entry.js +1 -0
  228. package/dist/sankhyablocks/p-7fd47ce5.entry.js +1 -0
  229. package/dist/sankhyablocks/p-8f73da95.js +1 -0
  230. package/dist/sankhyablocks/{p-90ee1990.entry.js → p-a200817c.entry.js} +1 -1
  231. package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
  232. package/dist/sankhyablocks/p-c4eae355.entry.js +1 -0
  233. package/dist/sankhyablocks/p-cc55bf41.entry.js +1 -0
  234. package/dist/sankhyablocks/p-d271f2b4.entry.js +1 -0
  235. package/dist/sankhyablocks/p-d540affc.js +1 -0
  236. package/dist/sankhyablocks/{p-e25412da.js → p-dc27d59a.js} +1 -1
  237. package/dist/sankhyablocks/{p-cfa8cac2.entry.js → p-e67e9a48.entry.js} +1 -1
  238. package/dist/sankhyablocks/p-e93ca8a8.js +1 -0
  239. package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
  240. package/dist/sankhyablocks/{p-405edf96.js → p-fb757021.js} +1 -1
  241. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  242. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
  243. package/dist/types/components/snk-application/snk-application.d.ts +6 -0
  244. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
  245. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  246. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
  247. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
  248. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
  249. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  250. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  251. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
  252. package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
  253. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
  254. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
  255. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
  256. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
  257. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
  258. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -0
  259. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
  260. package/dist/types/components.d.ts +24 -0
  261. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +2 -0
  262. package/dist/types/lib/message/SnkMessageBuilder.d.ts +8 -1
  263. package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
  264. package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
  265. package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  266. package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
  267. package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
  268. package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
  269. package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
  270. package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
  271. package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
  272. package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
  273. package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  274. package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
  275. package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
  276. package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
  277. package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
  278. package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
  279. package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
  280. package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
  281. package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  282. package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
  283. package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
  284. package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
  285. package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
  286. package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
  287. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
  288. package/package.json +1 -1
  289. package/dist/cjs/SnkMessageBuilder-acd9ec62.js +0 -1937
  290. package/dist/components/SnkMessageBuilder.js +0 -1915
  291. package/dist/esm/SnkMessageBuilder-c8b452b6.js +0 -1915
  292. package/dist/sankhyablocks/p-09ba8326.entry.js +0 -1
  293. package/dist/sankhyablocks/p-1c69a957.entry.js +0 -1
  294. package/dist/sankhyablocks/p-224fa6f9.js +0 -1
  295. package/dist/sankhyablocks/p-22a8656b.entry.js +0 -1
  296. package/dist/sankhyablocks/p-23b20add.entry.js +0 -1
  297. package/dist/sankhyablocks/p-2628f34e.entry.js +0 -1
  298. package/dist/sankhyablocks/p-34cfb5ad.entry.js +0 -11
  299. package/dist/sankhyablocks/p-35e73c5d.js +0 -1
  300. package/dist/sankhyablocks/p-360f0b74.js +0 -1
  301. package/dist/sankhyablocks/p-37b4f642.js +0 -60
  302. package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
  303. package/dist/sankhyablocks/p-4b8691b6.js +0 -1
  304. package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
  305. package/dist/sankhyablocks/p-4eb731b3.js +0 -1
  306. package/dist/sankhyablocks/p-60d3abf6.entry.js +0 -1
  307. package/dist/sankhyablocks/p-6bc7c7ee.entry.js +0 -1
  308. package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
  309. package/dist/sankhyablocks/p-7ced2cf4.entry.js +0 -1
  310. package/dist/sankhyablocks/p-81820bf8.entry.js +0 -1
  311. package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
  312. package/dist/sankhyablocks/p-86c8f7f2.entry.js +0 -1
  313. package/dist/sankhyablocks/p-aef68e58.entry.js +0 -1
  314. package/dist/sankhyablocks/p-b033bf30.entry.js +0 -1
  315. package/dist/sankhyablocks/p-b1ea8c6d.entry.js +0 -1
  316. package/dist/sankhyablocks/p-cb2a4613.entry.js +0 -1
  317. package/dist/sankhyablocks/p-cd1a5b6a.js +0 -1
  318. package/dist/sankhyablocks/p-cfc219f6.entry.js +0 -1
  319. package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
  320. package/dist/sankhyablocks/p-f442c8f6.entry.js +0 -1
  321. package/dist/sankhyablocks/p-f65421cd.entry.js +0 -1
@@ -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-cf578768.js';
5
- import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-db08cad0.js';
6
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-43c8d76b.js';
7
- import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-1b78797a.js';
8
- import { P as PesquisaFetcher } from './ISave-da565824.js';
9
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-c8b452b6.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-7f782e00.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils, S as SnkMessageBuilder } from './DataFetcher-b51050a0.js';
6
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-8ac800aa.js';
7
+ import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-16702941.js';
8
+ import { P as PesquisaFetcher } from './ISave-bc31d9f4.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-e623539b.js';
12
+ import { F as FormConfigFetcher } from './form-config-fetcher-6fe8d856.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;
@@ -822,6 +829,29 @@ const SnkApplication = class {
822
829
  .catch(error => reject(error));
823
830
  });
824
831
  }
832
+ /**
833
+ * Retorna se uma feature flag global está ativa ou não.
834
+ */
835
+ async isFeatureActive(featureName) {
836
+ const now = Date.now();
837
+ let payload = {
838
+ "serviceName": "SystemUtilsSP.featureIsActive",
839
+ "requestBody": {
840
+ "featureName": featureName
841
+ }
842
+ };
843
+ if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
844
+ return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
845
+ }
846
+ //Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
847
+ const result = await DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
848
+ const isActive = result.isActive;
849
+ this._featureFlagsCache.set(featureName, {
850
+ isActive: isActive,
851
+ expires: now + this.FEATURE_FLAG_CACHE_DURATION,
852
+ });
853
+ return isActive;
854
+ }
825
855
  /**
826
856
  * Salva a configuração de determinado recurso.
827
857
  */
@@ -1131,8 +1161,8 @@ const SnkApplication = class {
1131
1161
  const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || DataType.TEXT;
1132
1162
  const value = dataUnit.getFieldValue(fieldName);
1133
1163
  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.`);
1164
+ this.alert(this.getMessage("snkApplication.search.error.title"), this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1165
+ throw new Error(this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
1136
1166
  }
1137
1167
  return { name: fieldName, value, dataType };
1138
1168
  })
@@ -1403,7 +1433,7 @@ const SnkApplication = class {
1403
1433
  const snkDataUnit = this.getFirstDataUnitFromDOM();
1404
1434
  const dataUnit = snkDataUnit.dataUnit;
1405
1435
  if (!dataUnit) {
1406
- console.warn("Dataunit não inicializado");
1436
+ console.warn(this.getMessage("snkApplication.dataUnit.initDataUnitError"));
1407
1437
  snkDataUnit.addEventListener("dataUnitReady", (event) => {
1408
1438
  this.loadDataWithPKFilter(pkObject, event.detail);
1409
1439
  this._currentPkParameter = pkHash;
@@ -1657,9 +1687,9 @@ const SnkApplication = class {
1657
1687
  }
1658
1688
  initKeyboardManager() {
1659
1689
  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" });
1690
+ .bind("ctrl + g", Workspace.searchApp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.searchApp") })
1691
+ .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.showDesktop") })
1692
+ .bind("F1", Workspace.openHelp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.openHelp") });
1663
1693
  }
1664
1694
  removeShortcuts() {
1665
1695
  this._keyboardManager.unbindAllShortcutKeys();
@@ -1705,7 +1735,7 @@ const SnkApplication = class {
1705
1735
  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
1736
  }
1707
1737
  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..."))));
1738
+ 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
1739
  }
1710
1740
  render() {
1711
1741
  return (h(Host, { style: {
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-479e1293.js';
2
2
  import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit } from '@sankhyalabs/core';
3
- import { D as DataFetcher } from './DataFetcher-db08cad0.js';
4
- import { S as SaveErrorsEnum } from './ISave-da565824.js';
3
+ import { D as DataFetcher, S as SnkMessageBuilder } from './DataFetcher-b51050a0.js';
4
+ import { S as SaveErrorsEnum } from './ISave-bc31d9f4.js';
5
5
  import './index-b40568ff.js';
6
- import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-1b78797a.js';
6
+ import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-16702941.js';
7
7
  import './filter-item-type.enum-d45e026f.js';
8
- import './form-config-fetcher-e623539b.js';
8
+ import './form-config-fetcher-6fe8d856.js';
9
9
  import { V as VIEW_MODE } from './constants-7b422de0.js';
10
- import { A as AutorizationType } from './auth-fetcher-43c8d76b.js';
10
+ import { A as AutorizationType } from './auth-fetcher-8ac800aa.js';
11
11
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
12
12
  import './PrintUtils-3e4ff0f5.js';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -352,10 +352,12 @@ class AnexoSistemaDataUnitFactory {
352
352
  }
353
353
  }
354
354
 
355
- const application$1 = ApplicationContext.getContextValue("__SNK__APPLICATION__");
355
+ let messageBuilderInstance;
356
356
  const getMessage$1 = (key) => {
357
- var _a, _b;
358
- 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);
357
+ if (!messageBuilderInstance) {
358
+ messageBuilderInstance = new SnkMessageBuilder();
359
+ }
360
+ return messageBuilderInstance.getMessage(key);
359
361
  };
360
362
  const attachCrudConfig = {
361
363
  grid: {
@@ -529,10 +531,14 @@ class AttachFetcherDataUnitFactory {
529
531
  }
530
532
  }
531
533
 
532
- const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
534
+ let messagesBuilder;
533
535
  const getMessage = (key) => {
534
- var _a, _b;
535
- 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);
536
+ var _a;
537
+ if (!messagesBuilder) {
538
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
539
+ messagesBuilder = application === null || application === void 0 ? void 0 : application.messagesBuilder;
540
+ }
541
+ return (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage) === null || _a === void 0 ? void 0 : _a.call(messagesBuilder, key, null);
536
542
  };
537
543
  const TaskbarAttachButtons = {
538
544
  DOWNLOAD: {
@@ -718,7 +724,7 @@ const SnkAttach = class {
718
724
  }
719
725
  downloadAttachment(selectedRecord) {
720
726
  if (!selectedRecord)
721
- throw new Error('Nenhum registro selecionado');
727
+ throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));
722
728
  if (selectedRecord.LINK) {
723
729
  window.open(`${selectedRecord.LINK}`);
724
730
  return;
@@ -109,7 +109,7 @@ const SnkConfigurator = class {
109
109
  insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
110
110
  }
111
111
  render() {
112
- return (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() }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === 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 && h("ez-collapsible-box", { boxBordered: true, value: true, label: "Layout do formul\u00E1rio", headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
112
+ return (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() }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: this.getMessage('snkConfigurator.subTitleModeConfig'), headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === 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 && h("ez-collapsible-box", { boxBordered: true, value: true, label: this.getMessage('snkConfigurator.labelLayoutForm'), headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref, messagesBuilder: this.messagesBuilder }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: this.getMessage('snkConfigurator.buttons.cancel'), onClick: () => this.cancel.emit() }), h("ez-button", { label: this.getMessage('snkConfigurator.buttons.save'), onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
113
113
  }
114
114
  get _element() { return getElement(this); }
115
115
  };
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
2
2
  import { StringUtils, ElementIDUtils, ApplicationContext, KeyboardManager } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
4
- import './DataFetcher-db08cad0.js';
5
- import './ISave-da565824.js';
4
+ import './DataFetcher-b51050a0.js';
5
+ import './ISave-bc31d9f4.js';
6
6
  import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
7
7
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
8
8
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
9
- import './dataunit-fetcher-1b78797a.js';
9
+ import './dataunit-fetcher-16702941.js';
10
10
  import './filter-item-type.enum-d45e026f.js';
11
- import './form-config-fetcher-e623539b.js';
11
+ import './form-config-fetcher-6fe8d856.js';
12
12
  import { V as VIEW_MODE } from './constants-7b422de0.js';
13
- import { A as AutorizationType } from './auth-fetcher-43c8d76b.js';
13
+ import { A as AutorizationType } from './auth-fetcher-8ac800aa.js';
14
14
  import './index-b72af127.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
16
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -315,28 +315,32 @@ const SnkCrud = class {
315
315
  }
316
316
  if (this._keyboardManager) {
317
317
  this._keyboardManager
318
- .bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
319
- .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
320
- .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
321
- .bind("F8", handleAddRecord.bind(this), { description: "Adiciona um novo registro.", element: this._element })
322
- .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
323
- .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
318
+ .bind("F6", this.toggleView.bind(this), { description: this.getMessage("snkCrud.shortcuts.toggleView"), element: this._element })
319
+ .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.saveData"), element: this._element })
320
+ .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
321
+ .bind("F8", handleAddRecord.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
322
+ .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
323
+ .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
324
324
  .bind("F5", async () => {
325
325
  const currentView = await this._viewStack.getSelectedIndex();
326
326
  if (VIEW_MODE.GRID === currentView) {
327
327
  dataUnit.loadData();
328
328
  }
329
- }, { description: "Atualiza os dados.", element: this._element })
329
+ }, { description: this.getMessage("snkCrud.shortcuts.refreshData"), element: this._element })
330
330
  .bind("Escape", () => {
331
331
  if (dataUnit.isDirty()) {
332
332
  dataUnit.cancelEdition();
333
333
  }
334
334
  }, {
335
335
  debounceTime: 1000,
336
- description: "Cancela uma ação.", element: this._element
336
+ description: this.getMessage("snkCrud.shortcuts.cancelAction"), element: this._element
337
337
  });
338
338
  }
339
339
  }
340
+ getMessage(key, params) {
341
+ if (this.messagesBuilder)
342
+ return this.messagesBuilder.getMessage(key, params);
343
+ }
340
344
  async removeShortcuts() {
341
345
  var _a;
342
346
  (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
@@ -4,16 +4,15 @@ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/
4
4
  import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
5
5
  import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
6
6
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
7
- import { D as DataFetcher } from './DataFetcher-db08cad0.js';
8
- import { S as SnkDataUnit } from './snk-data-unit-c12986b7.js';
9
- import './ISave-da565824.js';
7
+ import { D as DataFetcher } from './DataFetcher-b51050a0.js';
8
+ import { S as SnkDataUnit } from './snk-data-unit-fd6be603.js';
9
+ import './ISave-bc31d9f4.js';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
- import './dataunit-fetcher-1b78797a.js';
12
+ import './dataunit-fetcher-16702941.js';
13
13
  import './filter-item-type.enum-d45e026f.js';
14
- import './form-config-fetcher-e623539b.js';
14
+ import './form-config-fetcher-6fe8d856.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
- import './SnkMessageBuilder-c8b452b6.js';
17
16
  import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
18
17
  import './GetSelectedRecordsIDsInfo-9fa41508.js';
19
18
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
2
- import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
2
+ import { ApplicationContext, Action, ObjectUtils, DataUnitAction, StringUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-c8b452b6.js';
5
- import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-1b78797a.js';
4
+ import { O as OperationMap, S as SnkMessageBuilder } from './DataFetcher-b51050a0.js';
5
+ import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-16702941.js';
6
6
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
7
7
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
8
8
 
@@ -34,11 +34,13 @@ function groupChanges(changingFields) {
34
34
  return changesMap;
35
35
  }
36
36
  function getTabName(tabName) {
37
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
38
+ const labelPrincipal = application.messagesBuilder.getMessage("snkDataUnit.main");
37
39
  switch (tabName) {
38
40
  case NO_TAB_NAME:
39
41
  return "";
40
42
  case MAIN_TAB_NAME:
41
- return "Principal";
43
+ return labelPrincipal;
42
44
  default:
43
45
  return tabName;
44
46
  }
@@ -912,14 +914,6 @@ class DataStateImpl {
912
914
  this.metadataByRow = datastate.metadataByRow;
913
915
  this.rowMetadata = datastate.rowMetadata;
914
916
  }
915
- get selectedRecords() {
916
- var _a;
917
- console.warn("SnkDataUnit: O método `selectedRecords` foi descontinuado. Use o método `selectionInfo`.");
918
- if ((_a = this.selectionInfo) === null || _a === void 0 ? void 0 : _a.isAllRecords()) {
919
- throw new Error("Erro interno: Impossível obter os registros selecionados. A seleção atual é virtual. Use o atributo `selectionInfo`.");
920
- }
921
- return this.selectionInfo.records;
922
- }
923
917
  }
924
918
 
925
919
  export { SnkDataUnit as S };
@@ -1,12 +1,11 @@
1
- export { S as snk_data_unit } from './snk-data-unit-c12986b7.js';
1
+ export { S as snk_data_unit } from './snk-data-unit-fd6be603.js';
2
2
  import './index-479e1293.js';
3
3
  import '@sankhyalabs/core';
4
4
  import '@sankhyalabs/ezui/dist/collection/utils';
5
- import './SnkMessageBuilder-c8b452b6.js';
6
- import './dataunit-fetcher-1b78797a.js';
7
- import './DataFetcher-db08cad0.js';
5
+ import './DataFetcher-b51050a0.js';
8
6
  import './PrintUtils-3e4ff0f5.js';
9
7
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
8
+ import './dataunit-fetcher-16702941.js';
10
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
10
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
12
11
  import '@sankhyalabs/core/dist/utils/SortingUtils';
@@ -1,21 +1,20 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-479e1293.js';
2
2
  import { Action, StringUtils, KeyboardManager } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-c1cd9dcd.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-ab1948b0.js';
4
4
  import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
- import './DataFetcher-db08cad0.js';
6
- import './ISave-da565824.js';
5
+ import { S as SnkMessageBuilder } from './DataFetcher-b51050a0.js';
6
+ import './ISave-bc31d9f4.js';
7
7
  import { P as PresentationMode } from './index-b40568ff.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher-1b78797a.js';
10
+ import './dataunit-fetcher-16702941.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './form-config-fetcher-e623539b.js';
12
+ import './form-config-fetcher-6fe8d856.js';
13
13
  import { V as VIEW_MODE } from './constants-7b422de0.js';
14
14
  import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
15
- import { S as SnkGuidesViewer } from './snk-guides-viewer-defa2629.js';
16
- import { S as SnkMessageBuilder } from './SnkMessageBuilder-c8b452b6.js';
17
- import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
18
- import './ConfigStorage-cf578768.js';
15
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-480d909c.js';
16
+ import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
17
+ import './ConfigStorage-7f782e00.js';
19
18
  import './PrintUtils-3e4ff0f5.js';
20
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
21
20
  import '@sankhyalabs/core/dist/utils/SortingUtils';
@@ -25,14 +24,21 @@ import './taskbar-processor-3436124c.js';
25
24
  import '@sankhyalabs/core/dist/dataunit/DataUnit';
26
25
 
27
26
  class GuideBuilder {
28
- constructor(parentGuide, formMetadata, dataUnit) {
27
+ constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
29
28
  this._parentGuide = parentGuide;
30
29
  this._formMetadata = formMetadata;
31
30
  this._dataUnit = dataUnit;
31
+ this._messageBuilder = messageBuilder;
32
+ if (!this._messageBuilder) {
33
+ this._messageBuilder = new SnkMessageBuilder();
34
+ }
32
35
  }
33
36
  get id() {
34
37
  return this._parentGuide.id;
35
38
  }
39
+ getMessage(key, params) {
40
+ return this._messageBuilder.getMessage(key, params);
41
+ }
36
42
  buildGuideItem(detailBuilders) {
37
43
  const item = Object.assign({}, this._parentGuide);
38
44
  delete item.expanded;
@@ -56,11 +62,11 @@ class GuideBuilder {
56
62
  id,
57
63
  label,
58
64
  disabled,
59
- tooltip: disabled ? "Finalize o cadastro para ter acesso a esta guia." : undefined
65
+ tooltip: disabled ? this.getMessage("snkCrud.guide.tooltip.disabledDetail") : undefined
60
66
  };
61
67
  });
62
68
  const newGuideItem = children.shift();
63
- newGuideItem.label = isNewRecord ? "Novo Registro" : currentRecord.__record__label__;
69
+ newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.title.newRecord") : currentRecord.__record__label__;
64
70
  newGuideItem.children = children;
65
71
  item.children = [newGuideItem];
66
72
  return item;
@@ -113,7 +119,7 @@ const SnkDetailView = class {
113
119
  const newRecord = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord;
114
120
  const oldRecord = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord;
115
121
  if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord.__record__id__) !== (oldRecord === null || oldRecord === void 0 ? void 0 : oldRecord.__record__id__)) {
116
- this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
122
+ this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
117
123
  }
118
124
  if (openInsertion) {
119
125
  setTimeout(() => {
@@ -312,7 +318,7 @@ const SnkDetailView = class {
312
318
  }
313
319
  addErrorBadgeToBranchGuide() {
314
320
  this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
315
- this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
321
+ this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
316
322
  }
317
323
  normalizeBranchGuideId(id) {
318
324
  return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
@@ -358,7 +364,7 @@ const SnkDetailView = class {
358
364
  this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
359
365
  this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
360
366
  await this._snkFormView.showSearchField();
361
- }, { description: LABEL_SEARCH_FIELD, element: this._element });
367
+ }, { description: this.messagesBuilder.getMessage("snkSimpleCrud.findFields"), element: this._element });
362
368
  }
363
369
  render() {
364
370
  this.updateLabel();
@@ -128,7 +128,7 @@ const SnkExpressionGroup = class {
128
128
  entityName: "",
129
129
  fieldName: "",
130
130
  description: "",
131
- label: "Valor",
131
+ label: this.getMessage("snkPersonalizedFilter.info.labelDefaultValue"),
132
132
  type: undefined,
133
133
  expression: undefined,
134
134
  operand: undefined,
@@ -153,7 +153,7 @@ const SnkExpressionGroup = class {
153
153
  entityName: "",
154
154
  fieldName: "",
155
155
  description: "",
156
- label: "Valor",
156
+ label: this.getMessage("snkPersonalizedFilter.info.labelDefaultValue"),
157
157
  type: undefined,
158
158
  expression: undefined,
159
159
  operand: undefined,
@@ -240,7 +240,7 @@ const SnkExpressionGroup = class {
240
240
  }
241
241
  render() {
242
242
  const canAddGroup = this.canAddGroup();
243
- return (h(Host, null, h("div", { class: !this.isFirstLevel() && this._showDashes ? 'dashes' : 'hidden', style: this.buildGroupStyle() }), h("div", { class: !this.isFirstLevel() && this._showDashes ? 'horizontal-dashes' : 'hidden' }), h("div", { class: 'ez-flex ez-flex--align-items-center' }, h("div", { class: 'snk-expression-group__container-condition ez-flex ez-flex-item--align-center ez-flex--align-items-center', "data-condition": this._conditionOperator, title: this.getTooltipMessageForOperator() }, h("label", { class: "ez-label ez-padding-right--medium ez-padding-left--medium ez-title--primary" }, this.getMessage("snkPersonalizedFilter.info.condition")), h("div", null, h("ez-combo-box", Object.assign({ class: "snk-expression-group__container-option", canShowError: false, mode: "slim", suppressEmptyOption: true, enabled: this.canChangeGroupCondition(), value: this._conditionOperator, onEzChange: (evt) => this.handleConditionOperatorChange(evt.detail.value) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxConditions_level_${this.getDataGroupLevel()}` }), h("option", { value: FilterGroupCondition.AND }, "E"), h("option", { value: FilterGroupCondition.OR }, "OU")))), h("ez-button", { class: "ez-padding-right--medium ez-padding-left--medium", mode: "icon", iconName: "plus", size: "small", enabled: this.canAddExpression, title: this.getMessageAddTooltip(), onClick: () => this.handleAddExpression() }), h("ez-button", { label: this.getMessage("snkPersonalizedFilter.info.addGroup"), size: "small", enabled: canAddGroup, title: !canAddGroup ? this.getMessage('snkPersonalizedFilter.info.labelDisabledAddGroupButton', { LIMIT_GROUP_LEVEL: this.LIMIT_GROUP_LEVEL + 1 }) : '', onClick: () => this.handleAddGroup() }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: "plus" })), !this.isFirstLevel() && h("ez-button", { title: this.getMessage("snkPersonalizedFilter.info.labelDeleteExpression"), class: "ez-padding-left--medium", mode: "icon", iconName: "delete", size: "small", onClick: (evt) => this.confirmRemoveGroup(evt) })), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderExpressionItems())), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderGroups()))));
243
+ return (h(Host, null, h("div", { class: !this.isFirstLevel() && this._showDashes ? 'dashes' : 'hidden', style: this.buildGroupStyle() }), h("div", { class: !this.isFirstLevel() && this._showDashes ? 'horizontal-dashes' : 'hidden' }), h("div", { class: 'ez-flex ez-flex--align-items-center' }, h("div", { class: 'snk-expression-group__container-condition ez-flex ez-flex-item--align-center ez-flex--align-items-center', "data-condition": this._conditionOperator, title: this.getTooltipMessageForOperator() }, h("label", { class: "ez-label ez-padding-right--medium ez-padding-left--medium ez-title--primary" }, this.getMessage("snkPersonalizedFilter.info.condition")), h("div", null, h("ez-combo-box", Object.assign({ class: "snk-expression-group__container-option", canShowError: false, mode: "slim", suppressEmptyOption: true, enabled: this.canChangeGroupCondition(), value: this._conditionOperator, onEzChange: (evt) => this.handleConditionOperatorChange(evt.detail.value) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxConditions_level_${this.getDataGroupLevel()}` }), h("option", { value: FilterGroupCondition.AND }, this.getMessage("snkPersonalizedFilter.info.conditionAnd")), h("option", { value: FilterGroupCondition.OR }, this.getMessage("snkPersonalizedFilter.info.conditionOr"))))), h("ez-button", { class: "ez-padding-right--medium ez-padding-left--medium", mode: "icon", iconName: "plus", size: "small", enabled: this.canAddExpression, title: this.getMessageAddTooltip(), onClick: () => this.handleAddExpression() }), h("ez-button", { label: this.getMessage("snkPersonalizedFilter.info.addGroup"), size: "small", enabled: canAddGroup, title: !canAddGroup ? this.getMessage('snkPersonalizedFilter.info.labelDisabledAddGroupButton', { LIMIT_GROUP_LEVEL: this.LIMIT_GROUP_LEVEL + 1 }) : '', onClick: () => this.handleAddGroup() }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: "plus" })), !this.isFirstLevel() && h("ez-button", { title: this.getMessage("snkPersonalizedFilter.info.labelDeleteExpression"), class: "ez-padding-left--medium", mode: "icon", iconName: "delete", size: "small", onClick: (evt) => this.confirmRemoveGroup(evt) })), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderExpressionItems())), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderGroups()))));
244
244
  }
245
245
  get _element() { return getElement(this); }
246
246
  static get watchers() { return {
@@ -250,20 +250,20 @@ const SnkExpressionGroup = class {
250
250
  SnkExpressionGroup.style = snkExpressionGroupCss;
251
251
 
252
252
  const defaultsOperand = [
253
- { label: "Igual (=)", value: "EQUAL" },
254
- { label: "Diferente (<>)", value: "DIFFERENT" },
255
- { label: "Contendo (LIKE)", value: "LIKE" },
256
- { label: "Contido em (IN)", value: "IN" },
257
- { label: "Iniciado com (%?)", value: "START_WITH" },
258
- { label: "Terminado com (?%)", value: "FINISHED_WITH" },
259
- { label: "Vazio (NULL)", value: "NULL" },
260
- { label: "Não Vazio (NOT NULL)", value: "NOT_NULL" },
253
+ { label: "snkPersonalizedFilter.operands.equal", value: "EQUAL" },
254
+ { label: "snkPersonalizedFilter.operands.different", value: "DIFFERENT" },
255
+ { label: "snkPersonalizedFilter.operands.like", value: "LIKE" },
256
+ { label: "snkPersonalizedFilter.operands.in", value: "IN" },
257
+ { label: "snkPersonalizedFilter.operands.startWith", value: "START_WITH" },
258
+ { label: "snkPersonalizedFilter.operands.finishedWith", value: "FINISHED_WITH" },
259
+ { label: "snkPersonalizedFilter.operands.null", value: "NULL" },
260
+ { label: "snkPersonalizedFilter.operands.notNull", value: "NOT_NULL" },
261
261
  ];
262
262
  const FilterOperandDefault = defaultsOperand.concat([
263
- { label: "Maior (>)", value: "LARGER" },
264
- { label: "Maior ou Igual (>=)", value: "LARGER_EQUAL" },
265
- { label: "Menor (<)", value: "SMALLER" },
266
- { label: "Menor ou Igual (<=)", value: "SMALLER_EQUAL" }
263
+ { label: "snkPersonalizedFilter.operands.larger", value: "LARGER" },
264
+ { label: "snkPersonalizedFilter.operands.largerEqual", value: "LARGER_EQUAL" },
265
+ { label: "snkPersonalizedFilter.operands.smaller", value: "SMALLER" },
266
+ { label: "snkPersonalizedFilter.operands.smallerEqual", value: "SMALLER_EQUAL" }
267
267
  ]);
268
268
  const FilterOperandTypeTextSearch = defaultsOperand;
269
269
  const FIELD_TYPE_SEARCH_AND_TEXT = [
@@ -428,12 +428,15 @@ const SnkExpressionItem = class {
428
428
  buildOptionsOperator() {
429
429
  var _a;
430
430
  if (FIELD_TYPE_SEARCH_AND_TEXT.includes((_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.userInterface)) {
431
- return this.filterOperandTypeTextSearch;
431
+ return this.translateOperandOptions(this.filterOperandTypeTextSearch);
432
432
  }
433
433
  else {
434
- return this.filterOperandDefault;
434
+ return this.translateOperandOptions(this.filterOperandDefault);
435
435
  }
436
436
  }
437
+ translateOperandOptions(options) {
438
+ return options.map(option => ({ label: this.getMessage(option.label), value: option.value }));
439
+ }
437
440
  handleChangeOperator(optionSelected) {
438
441
  this.checkOptionIsNull(optionSelected);
439
442
  this.setValueExpression("operand", optionSelected);
@@ -527,9 +530,7 @@ const SnkExpressionItem = class {
527
530
  }
528
531
  render() {
529
532
  var _a;
530
- return (h(Host, null, h("div", { class: "dashes" }), h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", Object.assign({ ref: ref => this._elFilterInput = ref, value: (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.path, label: this.getMessage("snkPersonalizedFilter.info.labelSearchField"), canShowError: false, onEzChange: (evt) => this.handleChangeFilterInput(evt), onFocus: () => this.handleFocus() }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `expressionFilterInput_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` })), h("snk-filter-field-search", { ref: ref => this._elFilterFieldSearch = ref, searchable: false, onEzSelectFilterItem: (ev) => this.handleSelectItem(ev.detail), fieldsDataSource: this._dataSourceFetcher })), h("div", { class: "box__container--input-operator" }, h("ez-combo-box", Object.assign({ label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), value: this.expression.operand, canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => { var _a; return this.handleChangeOperator((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, suppressEmptyOption: true }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxOperand_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` }))), h("div", { class: "box__container--input-value" }, !this._fieldSelected ?
531
- h("ez-number-input", { label: "Valor", canShowError: false, enabled: (!this._showValueVariable && !this._optionNotNull) }) :
532
- this.buildFieldByType()), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
533
+ return (h(Host, null, h("div", { class: "dashes" }), h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", Object.assign({ ref: ref => this._elFilterInput = ref, value: (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.path, label: this.getMessage("snkPersonalizedFilter.info.labelSearchField"), canShowError: false, onEzChange: (evt) => this.handleChangeFilterInput(evt), onFocus: () => this.handleFocus() }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `expressionFilterInput_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` })), h("snk-filter-field-search", { ref: ref => this._elFilterFieldSearch = ref, searchable: false, onEzSelectFilterItem: (ev) => this.handleSelectItem(ev.detail), fieldsDataSource: this._dataSourceFetcher })), h("div", { class: "box__container--input-operator" }, h("ez-combo-box", Object.assign({ label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), value: this.expression.operand, canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => { var _a; return this.handleChangeOperator((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, suppressEmptyOption: true }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxOperand_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` }))), h("div", { class: "box__container--input-value" }, !this._fieldSelected ? (h("ez-number-input", { label: this.getMessage('snkPersonalizedFilter.info.labelDefaultValue'), canShowError: false, enabled: !this._showValueVariable && !this._optionNotNull })) : (this.buildFieldByType())), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
533
534
  h("ez-tooltip", { message: this.getMessage("snkPersonalizedFilter.info.checkVariableDisabled"), active: this.isDefaultFilter }, h("ez-check", { ref: ref => this._elValueVariable = ref, value: this.expression.paramVariable, label: this.getMessage("snkPersonalizedFilter.info.labelValueVarible"), mode: CheckMode.SWITCH, onEzChange: (evt) => this.handleChangeValueVariable(evt.detail), enabled: !this.isDefaultFilter })), (this._showValueVariable && !this._optionNotNull) &&
534
535
  h("ez-icon", Object.assign({ class: "box__container--input-value-variable--icon", size: "large", iconName: "settings-inverted" }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: 'iconConfig' }, { title: this.getMessage("snkPersonalizedFilter.info.titleTooltip"), onClick: () => this.openSnkFilterParamConfig() })), h("snk-filter-param-config", { ref: (el) => this._elFilterParamConfigRef = el, messagesBuilder: this.messagesBuilder })), h("div", { class: "box__container--button-delete" }, h("div", { class: "box__container--button-delete--icon" }, h("ez-button", { mode: "icon", iconName: "delete", enabled: this.canRemove, label: this.getMessage("snkPersonalizedFilter.info.labelDeleteItem"), onClick: (evt) => this.confirmRemove(evt) })))))));
535
536
  }