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

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 (320) 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 +26 -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 +7 -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 +20 -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 +25 -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-6444de46.entry.js +11 -0
  220. package/dist/sankhyablocks/p-64fed9bf.js +1 -0
  221. package/dist/sankhyablocks/p-6703336d.entry.js +1 -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-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
  244. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  245. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
  246. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
  247. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
  248. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  249. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  250. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
  251. package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
  252. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
  253. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
  254. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
  255. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
  256. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
  257. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -0
  258. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
  259. package/dist/types/components.d.ts +20 -0
  260. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +2 -0
  261. package/dist/types/lib/message/SnkMessageBuilder.d.ts +8 -1
  262. package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
  263. package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
  264. package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  265. package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
  266. package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
  267. package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
  268. package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
  269. package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
  270. package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
  271. package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
  272. package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  273. package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
  274. package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
  275. package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
  276. package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
  277. package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
  278. package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
  279. package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
  280. package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  281. package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
  282. package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
  283. package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
  284. package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
  285. package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
  286. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
  287. package/package.json +1 -1
  288. package/dist/cjs/SnkMessageBuilder-acd9ec62.js +0 -1937
  289. package/dist/components/SnkMessageBuilder.js +0 -1915
  290. package/dist/esm/SnkMessageBuilder-c8b452b6.js +0 -1915
  291. package/dist/sankhyablocks/p-09ba8326.entry.js +0 -1
  292. package/dist/sankhyablocks/p-1c69a957.entry.js +0 -1
  293. package/dist/sankhyablocks/p-224fa6f9.js +0 -1
  294. package/dist/sankhyablocks/p-22a8656b.entry.js +0 -1
  295. package/dist/sankhyablocks/p-23b20add.entry.js +0 -1
  296. package/dist/sankhyablocks/p-2628f34e.entry.js +0 -1
  297. package/dist/sankhyablocks/p-34cfb5ad.entry.js +0 -11
  298. package/dist/sankhyablocks/p-35e73c5d.js +0 -1
  299. package/dist/sankhyablocks/p-360f0b74.js +0 -1
  300. package/dist/sankhyablocks/p-37b4f642.js +0 -60
  301. package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
  302. package/dist/sankhyablocks/p-4b8691b6.js +0 -1
  303. package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
  304. package/dist/sankhyablocks/p-4eb731b3.js +0 -1
  305. package/dist/sankhyablocks/p-60d3abf6.entry.js +0 -1
  306. package/dist/sankhyablocks/p-6bc7c7ee.entry.js +0 -1
  307. package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
  308. package/dist/sankhyablocks/p-7ced2cf4.entry.js +0 -1
  309. package/dist/sankhyablocks/p-81820bf8.entry.js +0 -1
  310. package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
  311. package/dist/sankhyablocks/p-86c8f7f2.entry.js +0 -1
  312. package/dist/sankhyablocks/p-aef68e58.entry.js +0 -1
  313. package/dist/sankhyablocks/p-b033bf30.entry.js +0 -1
  314. package/dist/sankhyablocks/p-b1ea8c6d.entry.js +0 -1
  315. package/dist/sankhyablocks/p-cb2a4613.entry.js +0 -1
  316. package/dist/sankhyablocks/p-cd1a5b6a.js +0 -1
  317. package/dist/sankhyablocks/p-cfc219f6.entry.js +0 -1
  318. package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
  319. package/dist/sankhyablocks/p-f442c8f6.entry.js +0 -1
  320. package/dist/sankhyablocks/p-f65421cd.entry.js +0 -1
@@ -7,18 +7,18 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-6d82e405.js');
9
9
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
10
- require('./DataFetcher-e23a263b.js');
11
- require('./ISave-e0be2362.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-6a4108c9.js');
10
+ require('./DataFetcher-b3508dda.js');
11
+ require('./ISave-b4f736d5.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-c14393e1.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
16
+ const dataunitFetcher = require('./dataunit-fetcher-0fe0ee18.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
18
+ const formConfigFetcher = require('./form-config-fetcher-e4187da9.js');
19
19
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
20
- const ConfigStorage = require('./ConfigStorage-bb8c0edf.js');
21
- const SnkFormConfigManager = require('./SnkFormConfigManager-a23df43c.js');
20
+ const ConfigStorage = require('./ConfigStorage-54b9f26d.js');
21
+ const SnkFormConfigManager = require('./SnkFormConfigManager-ee250c13.js');
22
22
  const index$2 = require('./index-0ad2baeb.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -402,6 +402,10 @@ const SnkSimpleCrud = class {
402
402
  }
403
403
  }
404
404
  }
405
+ getMessage(key, params) {
406
+ var _a;
407
+ return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
408
+ }
405
409
  disconnectedCallback() {
406
410
  var _a;
407
411
  (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
@@ -655,10 +659,9 @@ const SnkSimpleCrud = class {
655
659
  return hardList.concat(this.actionsList);
656
660
  }
657
661
  getSettingsListGrid() {
658
- var _a, _b;
659
662
  const hardList = [{
660
663
  value: core.StringUtils.generateUUID(),
661
- label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", {})) !== null && _b !== void 0 ? _b : utils.LABEL_SEARCH_COLUMN,
664
+ label: this.getMessage("snkSimpleCrud.findColumn"),
662
665
  disableCloseOnSelect: true,
663
666
  eagerInitialize: true,
664
667
  itemBuilder: (splitButton, item) => this.getColumnSearch(splitButton, item)
@@ -666,10 +669,9 @@ const SnkSimpleCrud = class {
666
669
  return hardList;
667
670
  }
668
671
  getSettingsListForm() {
669
- var _a, _b;
670
672
  const hardList = [{
671
673
  value: core.StringUtils.generateUUID(),
672
- label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findFields", {})) !== null && _b !== void 0 ? _b : utils.LABEL_SEARCH_FIELD,
674
+ label: this.getMessage("snkSimpleCrud.findFields"),
673
675
  disableCloseOnSelect: true,
674
676
  eagerInitialize: true,
675
677
  itemBuilder: (splitButton, item) => this.getFieldSearch(splitButton, item)
@@ -770,16 +772,16 @@ const SnkSimpleCrud = class {
770
772
  return;
771
773
  }
772
774
  this._keyboardManager
773
- .bind("F7", () => dataUnit.saveData(), { description: "Salva os dados.", element: this._element })
774
- .bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
775
- .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
775
+ .bind("F7", () => dataUnit.saveData(), { description: this.getMessage("snkSimpleCrud.keyboardShortcuts.saveData"), element: this._element })
776
+ .bind("F8", dataUnit.addRecord.bind(dataUnit), { description: this.getMessage("snkSimpleCrud.keyboardShortcuts.addRecord"), element: this._element })
777
+ .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkSimpleCrud.keyboardShortcuts.removeRecord"), element: this._element })
776
778
  .bind("Escape", () => {
777
779
  if (dataUnit.isDirty()) {
778
780
  dataUnit.cancelEdition();
779
781
  }
780
782
  }, {
781
783
  debounceTime: 1000,
782
- description: "Cancela uma ação.", element: this._element
784
+ description: this.getMessage("snkSimpleCrud.keyboardShortcuts.cancelAction"), element: this._element
783
785
  });
784
786
  }
785
787
  async handleFormConfigSaved() {
@@ -805,7 +807,7 @@ const SnkSimpleCrud = class {
805
807
  }
806
808
  return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
807
809
  ? undefined
808
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
810
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName, messagesBuilder: this.messagesBuilder })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
809
811
  }
810
812
  get _element() { return index.getElement(this); }
811
813
  static get watchers() { return {
@@ -5,6 +5,7 @@ const ESCOLHA_SIM_NAO = "__ESCOLHA_SIMNAO__";
5
5
  export default class ClientEventConfirm {
6
6
  async clientConfirm(clientEvent, recaller) {
7
7
  return new Promise((resolve) => {
8
+ var _a, _b;
8
9
  const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
9
10
  let actionType = "";
10
11
  if (clientEvent.content.event.hasOwnProperty('stpCall')) {
@@ -76,8 +77,8 @@ export default class ClientEventConfirm {
76
77
  }
77
78
  else {
78
79
  application.confirm(title, message, null, 'warn', {
79
- labelCancel: "Cancelar",
80
- labelConfirm: "Sim"
80
+ labelCancel: (_a = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkActionsButton.clientEvent.labelCancel"),
81
+ labelConfirm: (_b = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage("snkActionsButton.clientEvent.labelConfirm")
81
82
  }).then(async (confirmResult) => {
82
83
  if (confirmResult) {
83
84
  param.paramName = CONFIRMACAO;
@@ -5,6 +5,9 @@ export class SnkErrorHandler {
5
5
  window.addEventListener("error", evt => this.errorHandler(evt));
6
6
  window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
7
7
  }
8
+ getMessage(key, params) {
9
+ return this._app.messagesBuilder.getMessage(key, params);
10
+ }
8
11
  rejectionHandler(evt) {
9
12
  const reason = evt.reason;
10
13
  //Promisse rejeitada com WaitingChangeException, não precisam
@@ -16,7 +19,7 @@ export class SnkErrorHandler {
16
19
  else {
17
20
  this._app.isDebugMode().then((isDebug) => {
18
21
  if (isDebug) {
19
- this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
22
+ this._app.error(this.getMessage("snkErrorHandler.title.promiseRejected"), this.getMessage("snkErrorHandler.message.undeterminedPromiseRejection"));
20
23
  }
21
24
  });
22
25
  }
@@ -26,15 +29,17 @@ export class SnkErrorHandler {
26
29
  this.processException(evt.error);
27
30
  }
28
31
  buildErrorCodeHTML(errorCode) {
29
- const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
30
- return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
32
+ const cannotOpenHelpMessage = this.getMessage("snkErrorHandler.message.cannotOpenHelp");
33
+ const errorCodeLabel = this.getMessage("snkErrorHandler.errorCode.label");
34
+ const onclick = `try{window.workspace.openHelp('_tbcode:${errorCode}')} catch(e){alert('${cannotOpenHelpMessage}');}`;
35
+ return `<br><a href="#" onclick="${onclick}">${errorCodeLabel}${errorCode}</a>`;
31
36
  }
32
37
  processException(exception) {
33
38
  if (exception.errorCode) {
34
39
  exception.message += this.buildErrorCodeHTML(exception.errorCode);
35
40
  }
36
41
  if (exception instanceof SilentException) {
37
- console.warn("SilentException ignorada", exception);
42
+ console.warn(this.getMessage("snkErrorHandler.message.silentExceptionIgnored"), exception);
38
43
  }
39
44
  else if (exception instanceof WaitingChangeException) {
40
45
  this._app.alert(exception.title, exception.message);
@@ -52,8 +57,9 @@ export class SnkErrorHandler {
52
57
  this._app.error(exception.name, exception.message);
53
58
  }
54
59
  else {
55
- const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
56
- const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
60
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || this.getMessage("snkErrorHandler.title.errorDetected", undefined);
61
+ const message = (typeof exception === "string") ? exception :
62
+ exception.message || `${this.getMessage("snkErrorHandler.error.internal")} "${ObjectUtils.objectToString(exception)}"`;
57
63
  this._app.error(title, message);
58
64
  }
59
65
  }
@@ -638,8 +638,8 @@ export class SnkApplication {
638
638
  const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || DataType.TEXT;
639
639
  const value = dataUnit.getFieldValue(fieldName);
640
640
  if (value == undefined) {
641
- this.alert("Erro ao pesquisar", necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
642
- throw new Error( necessario informar o campo ${masterDescriptor.label} para executar a pesquisa.`);
641
+ this.alert(this.getMessage("snkApplication.search.error.title"), this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
642
+ throw new Error(this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
643
643
  }
644
644
  return { name: fieldName, value, dataType };
645
645
  })
@@ -910,7 +910,7 @@ export class SnkApplication {
910
910
  const snkDataUnit = this.getFirstDataUnitFromDOM();
911
911
  const dataUnit = snkDataUnit.dataUnit;
912
912
  if (!dataUnit) {
913
- console.warn("Dataunit não inicializado");
913
+ console.warn(this.getMessage("snkApplication.dataUnit.initDataUnitError"));
914
914
  snkDataUnit.addEventListener("dataUnitReady", (event) => {
915
915
  this.loadDataWithPKFilter(pkObject, event.detail);
916
916
  this._currentPkParameter = pkHash;
@@ -1165,9 +1165,9 @@ export class SnkApplication {
1165
1165
  }
1166
1166
  initKeyboardManager() {
1167
1167
  this._keyboardManager
1168
- .bind("ctrl + g", Workspace.searchApp.bind(this), { description: "Pesquisar por telas" })
1169
- .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: "Mostrar o desktop" })
1170
- .bind("F1", Workspace.openHelp.bind(this), { description: "Abrir ajuda" });
1168
+ .bind("ctrl + g", Workspace.searchApp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.searchApp") })
1169
+ .bind("ctrl + d", Workspace.showDesktop.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.showDesktop") })
1170
+ .bind("F1", Workspace.openHelp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.openHelp") });
1171
1171
  }
1172
1172
  removeShortcuts() {
1173
1173
  this._keyboardManager.unbindAllShortcutKeys();
@@ -1213,7 +1213,7 @@ export class SnkApplication {
1213
1213
  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" })))))))))));
1214
1214
  }
1215
1215
  getSpinnerLoadingDefault() {
1216
- 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..."))));
1216
+ 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")))));
1217
1217
  }
1218
1218
  render() {
1219
1219
  return (h(Host, { style: {
@@ -102,7 +102,7 @@ export class SnkAttach {
102
102
  }
103
103
  downloadAttachment(selectedRecord) {
104
104
  if (!selectedRecord)
105
- throw new Error('Nenhum registro selecionado');
105
+ throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));
106
106
  if (selectedRecord.LINK) {
107
107
  window.open(`${selectedRecord.LINK}`);
108
108
  return;
@@ -1,8 +1,11 @@
1
- import { ApplicationContext, DataType, UserInterface } from "@sankhyalabs/core";
2
- const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
1
+ import { DataType, UserInterface } from "@sankhyalabs/core";
2
+ import { SnkMessageBuilder } from "../../../../lib/message/SnkMessageBuilder";
3
+ let messageBuilderInstance;
3
4
  const getMessage = (key) => {
4
- var _a, _b;
5
- 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);
5
+ if (!messageBuilderInstance) {
6
+ messageBuilderInstance = new SnkMessageBuilder();
7
+ }
8
+ return messageBuilderInstance.getMessage(key);
6
9
  };
7
10
  export const attachCrudConfig = {
8
11
  grid: {
@@ -1,9 +1,13 @@
1
1
  import { TaskbarElement } from "../../../snk-taskbar/elements/taskbar-elements";
2
2
  import { ApplicationContext } from "@sankhyalabs/core";
3
- const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
3
+ let messagesBuilder;
4
4
  const getMessage = (key) => {
5
- var _a, _b;
6
- 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);
5
+ var _a;
6
+ if (!messagesBuilder) {
7
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
8
+ messagesBuilder = application === null || application === void 0 ? void 0 : application.messagesBuilder;
9
+ }
10
+ return (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage) === null || _a === void 0 ? void 0 : _a.call(messagesBuilder, key, null);
7
11
  };
8
12
  export const TaskbarAttachButtons = {
9
13
  DOWNLOAD: {
@@ -101,7 +101,7 @@ export class SnkConfigurator {
101
101
  insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
102
102
  }
103
103
  render() {
104
- 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" }))))));
104
+ 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" }))))));
105
105
  }
106
106
  static get is() { return "snk-configurator"; }
107
107
  static get encapsulation() { return "scoped"; }
@@ -301,28 +301,32 @@ export class SnkCrud {
301
301
  }
302
302
  if (this._keyboardManager) {
303
303
  this._keyboardManager
304
- .bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
305
- .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
306
- .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
307
- .bind("F8", handleAddRecord.bind(this), { description: "Adiciona um novo registro.", element: this._element })
308
- .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
309
- .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
304
+ .bind("F6", this.toggleView.bind(this), { description: this.getMessage("snkCrud.shortcuts.toggleView"), element: this._element })
305
+ .bind("F7", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.saveData"), element: this._element })
306
+ .bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
307
+ .bind("F8", handleAddRecord.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
308
+ .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
309
+ .bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
310
310
  .bind("F5", async () => {
311
311
  const currentView = await this._viewStack.getSelectedIndex();
312
312
  if (VIEW_MODE.GRID === currentView) {
313
313
  dataUnit.loadData();
314
314
  }
315
- }, { description: "Atualiza os dados.", element: this._element })
315
+ }, { description: this.getMessage("snkCrud.shortcuts.refreshData"), element: this._element })
316
316
  .bind("Escape", () => {
317
317
  if (dataUnit.isDirty()) {
318
318
  dataUnit.cancelEdition();
319
319
  }
320
320
  }, {
321
321
  debounceTime: 1000,
322
- description: "Cancela uma ação.", element: this._element
322
+ description: this.getMessage("snkCrud.shortcuts.cancelAction"), element: this._element
323
323
  });
324
324
  }
325
325
  }
326
+ getMessage(key, params) {
327
+ if (this.messagesBuilder)
328
+ return this.messagesBuilder.getMessage(key, params);
329
+ }
326
330
  async removeShortcuts() {
327
331
  var _a;
328
332
  (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
@@ -1,13 +1,21 @@
1
1
  import { FormMetadata } from "@sankhyalabs/ezui/dist/collection/utils/form";
2
+ import { SnkMessageBuilder } from "../../../lib/message/SnkMessageBuilder";
2
3
  export class GuideBuilder {
3
- constructor(parentGuide, formMetadata, dataUnit) {
4
+ constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
4
5
  this._parentGuide = parentGuide;
5
6
  this._formMetadata = formMetadata;
6
7
  this._dataUnit = dataUnit;
8
+ this._messageBuilder = messageBuilder;
9
+ if (!this._messageBuilder) {
10
+ this._messageBuilder = new SnkMessageBuilder();
11
+ }
7
12
  }
8
13
  get id() {
9
14
  return this._parentGuide.id;
10
15
  }
16
+ getMessage(key, params) {
17
+ return this._messageBuilder.getMessage(key, params);
18
+ }
11
19
  buildGuideItem(detailBuilders) {
12
20
  const item = Object.assign({}, this._parentGuide);
13
21
  delete item.expanded;
@@ -31,11 +39,11 @@ export class GuideBuilder {
31
39
  id,
32
40
  label,
33
41
  disabled,
34
- tooltip: disabled ? "Finalize o cadastro para ter acesso a esta guia." : undefined
42
+ tooltip: disabled ? this.getMessage("snkCrud.guide.tooltip.disabledDetail") : undefined
35
43
  };
36
44
  });
37
45
  const newGuideItem = children.shift();
38
- newGuideItem.label = isNewRecord ? "Novo Registro" : currentRecord.__record__label__;
46
+ newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.title.newRecord") : currentRecord.__record__label__;
39
47
  newGuideItem.children = children;
40
48
  item.children = [newGuideItem];
41
49
  return item;
@@ -8,7 +8,7 @@ import { VIEW_MODE } from '../../../../lib/utils/constants';
8
8
  import { SnkGuidesViewer } from '../snk-guides-viewer';
9
9
  import { SnkMessageBuilder } from '../../../../lib/message/SnkMessageBuilder';
10
10
  import { GuideBuilder } from '../GuideBuilder';
11
- import { buildFieldSearch, LABEL_SEARCH_FIELD, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
11
+ import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
12
12
  export class SnkDetailView {
13
13
  constructor() {
14
14
  this._disabledButtons = undefined;
@@ -49,7 +49,7 @@ export class SnkDetailView {
49
49
  const newRecord = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord;
50
50
  const oldRecord = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord;
51
51
  if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord.__record__id__) !== (oldRecord === null || oldRecord === void 0 ? void 0 : oldRecord.__record__id__)) {
52
- this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
52
+ this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
53
53
  }
54
54
  if (openInsertion) {
55
55
  setTimeout(() => {
@@ -248,7 +248,7 @@ export class SnkDetailView {
248
248
  }
249
249
  addErrorBadgeToBranchGuide() {
250
250
  this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
251
- this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
251
+ this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
252
252
  }
253
253
  normalizeBranchGuideId(id) {
254
254
  return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
@@ -294,7 +294,7 @@ export class SnkDetailView {
294
294
  this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
295
295
  this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
296
296
  await this._snkFormView.showSearchField();
297
- }, { description: LABEL_SEARCH_FIELD, element: this._element });
297
+ }, { description: this.messagesBuilder.getMessage("snkSimpleCrud.findFields"), element: this._element });
298
298
  }
299
299
  render() {
300
300
  this.updateLabel();
@@ -7,7 +7,7 @@ import { TaskbarElement } from '../../snk-taskbar/elements/taskbar-elements';
7
7
  import { VIEW_MODE } from '../../../lib/utils/constants';
8
8
  import { PresentationMode } from '../../../lib';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
- import { buildFieldSearch, LABEL_SEARCH_FIELD, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
10
+ import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
11
11
  const FORM_NAME_PREFIX = "__FORM:";
12
12
  export class SnkGuidesViewer {
13
13
  constructor() {
@@ -125,7 +125,7 @@ export class SnkGuidesViewer {
125
125
  var _a, _b;
126
126
  if (this.dataUnit.isMultipleEdition) {
127
127
  const selectedRecords = (_b = (_a = this.dataUnit.getSelectionInfo()) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : [];
128
- return `Editando ${selectedRecords.length} registros`;
128
+ return this.messagesBuilder.getMessage("snkCrud.multipleEdition.editing", { COUNT: selectedRecords.length });
129
129
  }
130
130
  return this.messagesBuilder.getMessage(key, this.dataUnit.getSelectedRecord());
131
131
  }
@@ -144,7 +144,7 @@ export class SnkGuidesViewer {
144
144
  Array.from(allSheets.values()).forEach((sheet) => {
145
145
  const item = { id: sheet.name, label: sheet.label };
146
146
  if (this.isDetail(sheet.name) && disableDetails) {
147
- item.tooltip = "Para alterar detalhes é necessário estar com um (e apenas um) registro selecionado.";
147
+ item.tooltip = this.getMessage("snkCrud.detail.tooltip.needSingleSelection");
148
148
  item.disabled = true;
149
149
  }
150
150
  guides.push(item);
@@ -390,7 +390,7 @@ export class SnkGuidesViewer {
390
390
  }
391
391
  componentWillLoad() {
392
392
  if (this.resourceID == undefined) {
393
- throw new Error("Erro interno: resourceID não informado");
393
+ throw new Error(this.getMessage("snkCrud.errors.resourceIDNotProvided"));
394
394
  }
395
395
  this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, this.setMasterFormConfig.bind(this), this.dataUnit);
396
396
  this.addFormLegacyConfigName();
@@ -539,7 +539,7 @@ export class SnkGuidesViewer {
539
539
  if (!this._mainForm)
540
540
  return;
541
541
  await this._mainForm.showSearchField();
542
- }, { description: LABEL_SEARCH_FIELD, element: this._element });
542
+ }, { description: this.getMessage("snkSimpleCrud.findFields"), element: this._element });
543
543
  }
544
544
  render() {
545
545
  var _a, _b;
@@ -1,3 +1,4 @@
1
+ import { ApplicationContext } from '@sankhyalabs/core';
1
2
  const NO_TAB_NAME = "__NO_TAB_NAME__";
2
3
  const MAIN_TAB_NAME = "__main";
3
4
  export async function showConfirmMultipleUpdatePopup({ title, labelBtnConfirm, labelBtnCancel, message, changingFields, }) {
@@ -26,11 +27,13 @@ function groupChanges(changingFields) {
26
27
  return changesMap;
27
28
  }
28
29
  function getTabName(tabName) {
30
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
31
+ const labelPrincipal = application.messagesBuilder.getMessage("snkDataUnit.main");
29
32
  switch (tabName) {
30
33
  case NO_TAB_NAME:
31
34
  return "";
32
35
  case MAIN_TAB_NAME:
33
- return "Principal";
36
+ return labelPrincipal;
34
37
  default:
35
38
  return tabName;
36
39
  }
@@ -1267,12 +1267,4 @@ class DataStateImpl {
1267
1267
  this.metadataByRow = datastate.metadataByRow;
1268
1268
  this.rowMetadata = datastate.rowMetadata;
1269
1269
  }
1270
- get selectedRecords() {
1271
- var _a;
1272
- console.warn("SnkDataUnit: O método `selectedRecords` foi descontinuado. Use o método `selectionInfo`.");
1273
- if ((_a = this.selectionInfo) === null || _a === void 0 ? void 0 : _a.isAllRecords()) {
1274
- throw new Error("Erro interno: Impossível obter os registros selecionados. A seleção atual é virtual. Use o atributo `selectionInfo`.");
1275
- }
1276
- return this.selectionInfo.records;
1277
- }
1278
1270
  }
@@ -7,6 +7,7 @@ export class SnkFilterPeriod {
7
7
  constructor() {
8
8
  this._startIntervalLabel = 'Inicial';
9
9
  this._endIntervalLabel = 'Final';
10
+ this._toLabel = 'até';
10
11
  this.config = undefined;
11
12
  this.getMessage = undefined;
12
13
  this.value = undefined;
@@ -42,7 +43,7 @@ export class SnkFilterPeriod {
42
43
  }
43
44
  buildLabel() {
44
45
  if (this.presentationMode === EPresentationMode.CHIP) {
45
- return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
46
+ return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, this._toLabel);
46
47
  }
47
48
  }
48
49
  getVariation() {
@@ -53,6 +54,7 @@ export class SnkFilterPeriod {
53
54
  if (this.getMessage) {
54
55
  this._startIntervalLabel = this.getMessage('snkFilterBar.labelStart');
55
56
  this._endIntervalLabel = this.getMessage('snkFilterBar.labelEnd');
57
+ this._toLabel = this.getMessage('snkFilterBar.labelTo');
56
58
  }
57
59
  }
58
60
  componentDidLoad() {
@@ -6,6 +6,7 @@ export class SnkFilterPeriod {
6
6
  constructor() {
7
7
  this._startDateLabel = 'Inicial';
8
8
  this._endDateLabel = 'Final';
9
+ this._toLabel = 'até';
9
10
  this.config = undefined;
10
11
  this.getMessage = undefined;
11
12
  this.value = undefined;
@@ -45,13 +46,14 @@ export class SnkFilterPeriod {
45
46
  }
46
47
  buildLabel() {
47
48
  if (this.presentationMode === EPresentationMode.CHIP) {
48
- return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
49
+ return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, this._toLabel);
49
50
  }
50
51
  }
51
52
  componentWillLoad() {
52
53
  if (this.getMessage) {
53
54
  this._startDateLabel = this.getMessage('snkFilterBar.labelStart');
54
55
  this._endDateLabel = this.getMessage('snkFilterBar.labelEnd');
56
+ this._toLabel = this.getMessage('snkFilterBar.labelTo');
55
57
  }
56
58
  }
57
59
  render() {
@@ -95,7 +95,7 @@ export class SnkFilterList {
95
95
  const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
96
96
  if (hideItems) {
97
97
  items.splice(MAX_FILTERS);
98
- items.push({ kind: "INTERNAL", label: "Mostrar mais", iconName: "dots-horizontal", name: SHOW_MORE_ITEM_NAME, iconClass: "snk-filter-bar__filter-list-item__icon--secondary", labelClass: "snk-filter-bar__filter-list-item__label--secondary" });
98
+ items.push({ kind: "INTERNAL", label: this.getMessage("snkFilterList.showMore"), iconName: "dots-horizontal", name: SHOW_MORE_ITEM_NAME, iconClass: "snk-filter-bar__filter-list-item__icon--secondary", labelClass: "snk-filter-bar__filter-list-item__label--secondary" });
99
99
  }
100
100
  this._selectableItemsCount = 0;
101
101
  return h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
@@ -233,7 +233,7 @@ export class SnkFilterModal {
233
233
  return null;
234
234
  const appliedFilters = this.getIformedFiltersCount(listItems);
235
235
  const lines = this.mountFiltersLines(listItems);
236
- return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), h("div", { class: "ez-row snk-filter-modal__rendered-items" }, lines.map(this.renderFilterLine.bind(this))), shouldRenderFooter && (h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => isSingleItem ? this.handleClearSigleFilter(listItems[0]) : this.handleClearFilterList(listItems) })))));
236
+ return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), h("div", { class: "ez-row snk-filter-modal__rendered-items" }, lines.map(this.renderFilterLine.bind(this))), shouldRenderFooter && (h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: this.getCustomMessage("clearModal"), onClick: () => isSingleItem ? this.handleClearSigleFilter(listItems[0]) : this.handleClearFilterList(listItems) })))));
237
237
  }
238
238
  handleDeleteFilter() {
239
239
  this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
@@ -114,7 +114,7 @@ export class SnkFilterBar {
114
114
  async updateFilterItem(newFilterItem) {
115
115
  const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
116
116
  if (itemIndex == -1) {
117
- console.warn("[SnkFilterBar.updateFilterItem] FilterItem não encontrado, o mesmo não será atualizado.");
117
+ console.warn("[SnkFilterBar.updateFilterItem] " + this.getMessage("snkFilterBar.filterItem.updateFilterItemNotFound"));
118
118
  return Promise.resolve();
119
119
  }
120
120
  this._loadingPending = true;
@@ -129,7 +129,7 @@ export class SnkFilterBar {
129
129
  async addFilterItem(filterItem) {
130
130
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
131
131
  if (itemIndex > -1) {
132
- console.warn("[SnkFilterBar.addFilterItem] FilterItem existe , o mesmo não será adicionado novamente.");
132
+ console.warn("[SnkFilterBar.addFilterItem] " + this.getMessage("snkFilterBar.filterItem.addFilterItemExists"));
133
133
  return Promise.resolve();
134
134
  }
135
135
  this.filterConfig.push(filterItem);
@@ -147,7 +147,7 @@ export class SnkFilterBar {
147
147
  async removeFilterItem(filterID) {
148
148
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
149
149
  if (itemIndex == -1) {
150
- console.warn("[SnkFilterBar.removeFilterItem] FilterItem não encontrado");
150
+ console.warn("[SnkFilterBar.removeFilterItem] " + this.getMessage("snkFilterBar.filterItem.removeFilterItemNotFound"));
151
151
  return Promise.resolve(undefined);
152
152
  }
153
153
  const itemToRemove = this.filterConfig[itemIndex];
@@ -491,9 +491,9 @@ export class SnkFilterBar {
491
491
  return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, isDefaultFilter: this._isDefaultFilter, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
492
492
  }
493
493
  if (this.mode !== "regular") {
494
- return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }))));
494
+ return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }))));
495
495
  }
496
- return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
496
+ return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
497
497
  }
498
498
  static get is() { return "snk-filter-bar"; }
499
499
  static get encapsulation() { return "scoped"; }