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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-6a4108c9.js → ClientSideExporterProvider-994f6e26.js} +10 -6
  2. package/dist/cjs/{ConfigStorage-34aa43d8.js → ConfigStorage-1931defc.js} +12 -2
  3. package/dist/cjs/{DataFetcher-e23a263b.js → DataFetcher-ad9fb3bb.js} +2724 -22
  4. package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
  5. package/dist/cjs/{ISave-e0be2362.js → ISave-18ffb73e.js} +1 -1
  6. package/dist/cjs/{SnkFormConfigManager-61bf3266.js → SnkFormConfigManager-65e5288e.js} +3 -3
  7. package/dist/cjs/{auth-fetcher-8670a38f.js → auth-fetcher-afbe69ab.js} +1 -1
  8. package/dist/cjs/config-header.cjs.entry.js +2 -2
  9. package/dist/cjs/{dataunit-fetcher-c34a8217.js → dataunit-fetcher-c7253b02.js} +22 -21
  10. package/dist/cjs/field-config_2.cjs.entry.js +9 -6
  11. package/dist/cjs/fields-layout.cjs.entry.js +20 -13
  12. package/dist/cjs/fields-selector.cjs.entry.js +11 -6
  13. package/dist/cjs/{form-config-fetcher-d8b78403.js → form-config-fetcher-f6e66d64.js} +1 -1
  14. package/dist/cjs/guides-configurator.cjs.entry.js +14 -3
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +12 -8
  17. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  18. package/dist/cjs/snk-actions-button_8.cjs.entry.js +95 -45
  19. package/dist/cjs/snk-application.cjs.entry.js +51 -21
  20. package/dist/cjs/snk-attach.cjs.entry.js +46 -23
  21. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  22. package/dist/cjs/snk-crud.cjs.entry.js +17 -13
  23. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  24. package/dist/cjs/{snk-data-unit-a4f9287b.js → snk-data-unit-448fce74.js} +14 -20
  25. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
  26. package/dist/cjs/snk-detail-view.cjs.entry.js +21 -15
  27. package/dist/cjs/snk-expression-group_2.cjs.entry.js +21 -20
  28. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +12 -12
  29. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
  31. package/dist/cjs/snk-filter-period.cjs.entry.js +3 -1
  32. package/dist/cjs/snk-form_2.cjs.entry.js +9 -9
  33. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  34. package/dist/cjs/{snk-guides-viewer-29298823.js → snk-guides-viewer-c23ed218.js} +9 -9
  35. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  36. package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -4
  37. package/dist/cjs/snk-pesquisa.cjs.entry.js +26 -19
  38. package/dist/cjs/snk-simple-crud.cjs.entry.js +25 -23
  39. package/dist/collection/components/snk-actions-button/clientEvent/index.js +3 -2
  40. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +12 -6
  41. package/dist/collection/components/snk-application/snk-application.js +51 -7
  42. package/dist/collection/components/snk-attach/snk-attach.js +46 -12
  43. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +7 -4
  44. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +7 -3
  45. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
  46. package/dist/collection/components/snk-crud/snk-crud.js +12 -8
  47. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +11 -3
  48. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -4
  49. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -5
  50. package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +4 -1
  51. package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -8
  52. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +3 -1
  53. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +3 -1
  54. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +1 -1
  55. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
  56. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
  57. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
  58. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -5
  59. package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
  60. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +1 -1
  61. package/dist/collection/components/snk-form-config/config-header/config-header.js +2 -2
  62. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +2 -2
  63. package/dist/collection/components/snk-form-config/field-item/field-item.js +6 -3
  64. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +2 -2
  65. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +20 -11
  66. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +30 -5
  67. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +2 -2
  68. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +15 -2
  69. package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
  70. package/dist/collection/components/snk-grid-config/snk-grid-config.js +74 -36
  71. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
  72. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +30 -1
  73. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  74. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +3 -3
  75. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +12 -12
  76. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +6 -5
  77. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +28 -4
  78. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +23 -16
  79. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -18
  80. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
  81. package/dist/collection/lib/configs/ConfigStorage.js +3 -0
  82. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +19 -12
  83. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
  84. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +9 -1
  85. package/dist/collection/lib/message/SnkMessageBuilder.js +34 -56
  86. package/dist/collection/lib/message/messageResourceEnUSUtils.js +76 -0
  87. package/dist/collection/lib/message/messageResourceEsESUtils.js +76 -0
  88. package/dist/collection/lib/message/messageResourcePtBRUtils.js +76 -0
  89. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -0
  90. package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js +3 -0
  91. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js +12 -0
  92. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +18 -0
  93. package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js +9 -0
  94. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js +29 -0
  95. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +27 -0
  96. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +42 -0
  97. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +13 -0
  98. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +35 -0
  99. package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js +35 -0
  100. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +40 -0
  101. package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js +3 -0
  102. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
  103. package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js +20 -0
  104. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +71 -0
  105. package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js +7 -0
  106. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js +3 -0
  107. package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js +18 -0
  108. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +118 -0
  109. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +41 -0
  110. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -0
  111. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +105 -0
  112. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
  113. package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js +23 -0
  114. package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js +3 -0
  115. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +14 -0
  116. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
  117. package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js +18 -0
  118. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -0
  119. package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js +3 -0
  120. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js +12 -0
  121. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +18 -0
  122. package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js +9 -0
  123. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js +29 -0
  124. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +27 -0
  125. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +42 -0
  126. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +13 -0
  127. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +35 -0
  128. package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js +35 -0
  129. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js +40 -0
  130. package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js +3 -0
  131. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js +17 -0
  132. package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js +20 -0
  133. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +71 -0
  134. package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js +7 -0
  135. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js +3 -0
  136. package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js +18 -0
  137. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +118 -0
  138. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +41 -0
  139. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +10 -0
  140. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +105 -0
  141. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
  142. package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js +23 -0
  143. package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js +3 -0
  144. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +14 -0
  145. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
  146. package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js +18 -0
  147. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
  148. package/dist/collection/lib/message/resources/{crud-utils.msg.js → pt-br/crud-utils.msg.js} +1 -2
  149. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js +12 -0
  150. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +18 -0
  151. package/dist/collection/lib/message/resources/{file-viewer.msg.js → pt-br/file-viewer.msg.js} +1 -2
  152. package/dist/collection/lib/message/resources/{snk-actions-button.msg.js → pt-br/snk-actions-button.msg.js} +3 -1
  153. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +27 -0
  154. package/dist/collection/lib/message/resources/{snk-attach.msg.js → pt-br/snk-attach.msg.js} +3 -1
  155. package/dist/collection/lib/message/resources/{snk-configurator.msg.js → pt-br/snk-configurator.msg.js} +6 -1
  156. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +35 -0
  157. package/dist/collection/lib/message/resources/{snk-data-unit.msg.js → pt-br/snk-data-unit.msg.js} +5 -2
  158. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
  159. package/dist/collection/lib/message/resources/{snk-exporter.msg.js → pt-br/snk-exporter.msg.js} +1 -2
  160. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +71 -0
  161. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
  162. package/dist/collection/lib/message/resources/{snk-form.msg.js → pt-br/snk-form.msg.js} +45 -3
  163. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +41 -0
  164. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
  165. package/dist/collection/lib/message/resources/{snk-personalized-filter.msg.js → pt-br/snk-personalized-filter.msg.js} +17 -0
  166. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +24 -0
  167. package/dist/collection/lib/message/resources/{snk-simple-crud.msg.js → pt-br/snk-simple-crud.msg.js} +6 -1
  168. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
  169. package/dist/collection/lib/message/resources/{snk-taskbar.msg.js → pt-br/snk-taskbar.msg.js} +1 -2
  170. package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
  171. package/dist/components/ConfigStorage.js +11 -1
  172. package/dist/components/ContinuousInsertUtils.js +6 -2
  173. package/dist/components/DataFetcher.js +2695 -14
  174. package/dist/components/SnkFormConfigManager.js +1 -1
  175. package/dist/components/config-header2.js +2 -2
  176. package/dist/components/dataunit-fetcher.js +22 -21
  177. package/dist/components/field-config2.js +6 -7
  178. package/dist/components/field-item2.js +6 -3
  179. package/dist/components/fields-layout2.js +19 -12
  180. package/dist/components/fields-selector2.js +11 -5
  181. package/dist/components/guides-configurator2.js +14 -3
  182. package/dist/components/pesquisa-tree2.js +9 -4
  183. package/dist/components/snk-actions-button2.js +3 -2
  184. package/dist/components/snk-application2.js +46 -15
  185. package/dist/components/snk-attach2.js +43 -19
  186. package/dist/components/snk-configurator2.js +1 -1
  187. package/dist/components/snk-crud.js +12 -8
  188. package/dist/components/snk-data-unit2.js +5 -11
  189. package/dist/components/snk-detail-view2.js +19 -13
  190. package/dist/components/snk-expression-group2.js +3 -3
  191. package/dist/components/snk-expression-item2.js +18 -17
  192. package/dist/components/snk-filter-bar2.js +6 -6
  193. package/dist/components/snk-filter-item2.js +1 -1
  194. package/dist/components/snk-filter-list.js +1 -1
  195. package/dist/components/snk-filter-modal.js +1 -1
  196. package/dist/components/snk-filter-number.js +3 -1
  197. package/dist/components/snk-filter-period.js +3 -1
  198. package/dist/components/snk-form-config2.js +3 -3
  199. package/dist/components/snk-grid-config2.js +73 -35
  200. package/dist/components/snk-layout-form-config2.js +7 -1
  201. package/dist/components/snk-personalized-filter2.js +1 -1
  202. package/dist/components/snk-pesquisa2.js +23 -16
  203. package/dist/components/snk-select-box2.js +4 -2
  204. package/dist/components/snk-simple-crud2.js +19 -17
  205. package/dist/components/snk-simple-form-config2.js +7 -1
  206. package/dist/esm/{ClientSideExporterProvider-09dee1a3.js → ClientSideExporterProvider-7c2781f4.js} +10 -6
  207. package/dist/esm/{ConfigStorage-89154c4e.js → ConfigStorage-b5a1dba3.js} +12 -2
  208. package/dist/esm/{DataFetcher-db08cad0.js → DataFetcher-6f6de657.js} +2695 -14
  209. package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
  210. package/dist/esm/{ISave-da565824.js → ISave-7ecdca20.js} +1 -1
  211. package/dist/esm/{SnkFormConfigManager-d64d62d6.js → SnkFormConfigManager-34fc1dc7.js} +3 -3
  212. package/dist/esm/{auth-fetcher-43c8d76b.js → auth-fetcher-7332a9a9.js} +1 -1
  213. package/dist/esm/config-header.entry.js +2 -2
  214. package/dist/esm/{dataunit-fetcher-1b78797a.js → dataunit-fetcher-f21cbad0.js} +22 -21
  215. package/dist/esm/field-config_2.entry.js +9 -6
  216. package/dist/esm/fields-layout.entry.js +20 -13
  217. package/dist/esm/fields-selector.entry.js +11 -6
  218. package/dist/esm/{form-config-fetcher-e623539b.js → form-config-fetcher-6ab4e805.js} +1 -1
  219. package/dist/esm/guides-configurator.entry.js +14 -3
  220. package/dist/esm/loader.js +1 -1
  221. package/dist/esm/pesquisa-grid_2.entry.js +12 -8
  222. package/dist/esm/sankhyablocks.js +1 -1
  223. package/dist/esm/snk-actions-button_8.entry.js +95 -45
  224. package/dist/esm/snk-application.entry.js +50 -20
  225. package/dist/esm/snk-attach.entry.js +46 -23
  226. package/dist/esm/snk-configurator.entry.js +1 -1
  227. package/dist/esm/snk-crud.entry.js +17 -13
  228. package/dist/esm/snk-data-exporter.entry.js +5 -6
  229. package/dist/esm/{snk-data-unit-330db397.js → snk-data-unit-b7e6e7a6.js} +6 -12
  230. package/dist/esm/snk-data-unit.entry.js +3 -4
  231. package/dist/esm/snk-detail-view.entry.js +21 -15
  232. package/dist/esm/snk-expression-group_2.entry.js +21 -20
  233. package/dist/esm/snk-filter-bar_4.entry.js +12 -12
  234. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  235. package/dist/esm/snk-filter-number.entry.js +3 -1
  236. package/dist/esm/snk-filter-period.entry.js +3 -1
  237. package/dist/esm/snk-form_2.entry.js +9 -9
  238. package/dist/esm/snk-grid.entry.js +6 -6
  239. package/dist/esm/{snk-guides-viewer-9335318d.js → snk-guides-viewer-fbfece85.js} +10 -10
  240. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  241. package/dist/esm/snk-personalized-filter.entry.js +4 -4
  242. package/dist/esm/snk-pesquisa.entry.js +27 -20
  243. package/dist/esm/snk-simple-crud.entry.js +26 -24
  244. package/dist/sankhyablocks/p-012208e0.entry.js +1 -0
  245. package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
  246. package/dist/sankhyablocks/p-0dac8fef.js +1 -0
  247. package/dist/sankhyablocks/p-0e495575.js +1 -0
  248. package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
  249. package/dist/sankhyablocks/{p-412e06e9.js → p-1210500e.js} +1 -1
  250. package/dist/sankhyablocks/p-158adf33.entry.js +1 -0
  251. package/dist/sankhyablocks/{p-fa591f6f.js → p-16fc4acd.js} +1 -1
  252. package/dist/sankhyablocks/p-3dba3468.js +56 -0
  253. package/dist/sankhyablocks/p-4872dc3a.entry.js +1 -0
  254. package/dist/sankhyablocks/{p-b2946adb.entry.js → p-4e63ffed.entry.js} +1 -1
  255. package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
  256. package/dist/sankhyablocks/p-5c7af8a9.entry.js +1 -0
  257. package/dist/sankhyablocks/p-5e282b33.entry.js +1 -0
  258. package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
  259. package/dist/sankhyablocks/p-6a015ba2.js +1 -0
  260. package/dist/sankhyablocks/p-735a1175.entry.js +1 -0
  261. package/dist/sankhyablocks/p-75af335e.entry.js +1 -0
  262. package/dist/sankhyablocks/p-7b3ca294.entry.js +1 -0
  263. package/dist/sankhyablocks/{p-5126b34e.entry.js → p-7fbc6442.entry.js} +1 -1
  264. package/dist/sankhyablocks/p-81769310.entry.js +11 -0
  265. package/dist/sankhyablocks/p-8d1508aa.entry.js +1 -0
  266. package/dist/sankhyablocks/p-8f73da95.js +1 -0
  267. package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
  268. package/dist/sankhyablocks/p-ad2ae575.entry.js +1 -0
  269. package/dist/sankhyablocks/p-b35574b5.js +60 -0
  270. package/dist/sankhyablocks/p-b49281be.entry.js +1 -0
  271. package/dist/sankhyablocks/{p-c9657baa.js → p-ba4979b4.js} +1 -1
  272. package/dist/sankhyablocks/{p-b21d32f6.js → p-c6331595.js} +1 -1
  273. package/dist/sankhyablocks/{p-e25412da.js → p-c9e6d720.js} +1 -1
  274. package/dist/sankhyablocks/p-d377aa7a.entry.js +1 -0
  275. package/dist/sankhyablocks/p-eacff4b7.entry.js +1 -0
  276. package/dist/sankhyablocks/p-eb0616d3.entry.js +1 -0
  277. package/dist/sankhyablocks/p-f39b0ebe.entry.js +1 -0
  278. package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
  279. package/dist/sankhyablocks/p-fa18530e.entry.js +1 -0
  280. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  281. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
  282. package/dist/types/components/snk-application/snk-application.d.ts +6 -0
  283. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  284. package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
  285. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
  286. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  287. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
  288. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
  289. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
  290. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  291. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  292. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
  293. package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
  294. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
  295. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -0
  296. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
  297. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
  298. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
  299. package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
  300. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
  301. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -1
  302. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
  303. package/dist/types/components.d.ts +40 -0
  304. package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
  305. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +2 -0
  306. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
  307. package/dist/types/lib/message/SnkMessageBuilder.d.ts +11 -1
  308. package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
  309. package/dist/types/lib/message/resources/en-us/crud-utils.msg.d.ts +1 -0
  310. package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
  311. package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  312. package/dist/types/lib/message/resources/en-us/file-viewer.msg.d.ts +1 -0
  313. package/dist/types/lib/message/resources/en-us/snk-application.msg.d.ts +1 -0
  314. package/dist/types/lib/message/resources/{snk-attach.msg.d.ts → en-us/snk-attach.msg.d.ts} +0 -1
  315. package/dist/types/lib/message/resources/{snk-crud.msg.d.ts → en-us/snk-crud.msg.d.ts} +0 -1
  316. package/dist/types/lib/message/resources/en-us/snk-data-unit.msg.d.ts +1 -0
  317. package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
  318. package/dist/types/lib/message/resources/en-us/snk-exporter.msg.d.ts +1 -0
  319. package/dist/types/lib/message/resources/en-us/snk-filter-bar.msg.d.ts +1 -0
  320. package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
  321. package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
  322. package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
  323. package/dist/types/lib/message/resources/{snk-simple-crud.msg.d.ts → en-us/snk-simple-crud.msg.d.ts} +0 -1
  324. package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
  325. package/dist/types/lib/message/resources/en-us/snk-taskbar.msg.d.ts +1 -0
  326. package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
  327. package/dist/types/lib/message/resources/es-es/crud-utils.msg.d.ts +1 -0
  328. package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
  329. package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  330. package/dist/types/lib/message/resources/es-es/file-viewer.msg.d.ts +1 -0
  331. package/dist/types/lib/message/resources/es-es/snk-actions-button.msg.d.ts +1 -0
  332. package/dist/types/lib/message/resources/es-es/snk-application.msg.d.ts +1 -0
  333. package/dist/types/lib/message/resources/{snk-application.msg.d.ts → es-es/snk-attach.msg.d.ts} +0 -1
  334. package/dist/types/lib/message/resources/es-es/snk-configurator.msg.d.ts +1 -0
  335. package/dist/types/lib/message/resources/es-es/snk-crud.msg.d.ts +1 -0
  336. package/dist/types/lib/message/resources/es-es/snk-data-exporter.msg.d.ts +1 -0
  337. package/dist/types/lib/message/resources/es-es/snk-data-unit.msg.d.ts +1 -0
  338. package/dist/types/lib/message/resources/es-es/snk-entity-list.msg.d.ts +1 -0
  339. package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
  340. package/dist/types/lib/message/resources/es-es/snk-exporter.msg.d.ts +1 -0
  341. package/dist/types/lib/message/resources/es-es/snk-filter-bar.msg.d.ts +1 -0
  342. package/dist/types/lib/message/resources/es-es/snk-filter-field-search.msg.d.ts +1 -0
  343. package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
  344. package/dist/types/lib/message/resources/es-es/snk-filter-param-config.msg.d.ts +1 -0
  345. package/dist/types/lib/message/resources/es-es/snk-form.msg.d.ts +4 -0
  346. package/dist/types/lib/message/resources/es-es/snk-grid.msg.d.ts +2 -0
  347. package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
  348. package/dist/types/lib/message/resources/es-es/snk-personalized-filter.msg.d.ts +1 -0
  349. package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
  350. package/dist/types/lib/message/resources/es-es/snk-print-selector.msg.d.ts +1 -0
  351. package/dist/types/lib/message/resources/es-es/snk-simple-bar.msg.d.ts +1 -0
  352. package/dist/types/lib/message/resources/es-es/snk-simple-crud.msg.d.ts +1 -0
  353. package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
  354. package/dist/types/lib/message/resources/es-es/snk-taskbar.msg.d.ts +1 -0
  355. package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
  356. package/dist/types/lib/message/resources/pt-br/crud-utils.msg.d.ts +1 -0
  357. package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
  358. package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
  359. package/dist/types/lib/message/resources/pt-br/file-viewer.msg.d.ts +1 -0
  360. package/dist/types/lib/message/resources/pt-br/snk-actions-button.msg.d.ts +1 -0
  361. package/dist/types/lib/message/resources/pt-br/snk-application.msg.d.ts +1 -0
  362. package/dist/types/lib/message/resources/pt-br/snk-attach.msg.d.ts +1 -0
  363. package/dist/types/lib/message/resources/pt-br/snk-configurator.msg.d.ts +1 -0
  364. package/dist/types/lib/message/resources/pt-br/snk-crud.msg.d.ts +1 -0
  365. package/dist/types/lib/message/resources/pt-br/snk-data-exporter.msg.d.ts +1 -0
  366. package/dist/types/lib/message/resources/pt-br/snk-data-unit.msg.d.ts +1 -0
  367. package/dist/types/lib/message/resources/pt-br/snk-entity-list.msg.d.ts +1 -0
  368. package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
  369. package/dist/types/lib/message/resources/pt-br/snk-exporter.msg.d.ts +1 -0
  370. package/dist/types/lib/message/resources/pt-br/snk-filter-bar.msg.d.ts +1 -0
  371. package/dist/types/lib/message/resources/pt-br/snk-filter-field-search.msg.d.ts +1 -0
  372. package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
  373. package/dist/types/lib/message/resources/pt-br/snk-filter-param-config.msg.d.ts +1 -0
  374. package/dist/types/lib/message/resources/pt-br/snk-form.msg.d.ts +4 -0
  375. package/dist/types/lib/message/resources/pt-br/snk-grid.msg.d.ts +2 -0
  376. package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
  377. package/dist/types/lib/message/resources/pt-br/snk-personalized-filter.msg.d.ts +1 -0
  378. package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
  379. package/dist/types/lib/message/resources/pt-br/snk-print-selector.msg.d.ts +1 -0
  380. package/dist/types/lib/message/resources/pt-br/snk-simple-bar.msg.d.ts +1 -0
  381. package/dist/types/lib/message/resources/pt-br/snk-simple-crud.msg.d.ts +1 -0
  382. package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
  383. package/dist/types/lib/message/resources/pt-br/snk-taskbar.msg.d.ts +1 -0
  384. package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
  385. package/package.json +1 -1
  386. package/dist/cjs/SnkMessageBuilder-221cc88d.js +0 -731
  387. package/dist/collection/lib/message/resources/snk-application.msg.js +0 -9
  388. package/dist/collection/lib/message/resources/snk-crud.msg.js +0 -11
  389. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +0 -65
  390. package/dist/collection/lib/message/resources/snk-grid.msg.js +0 -40
  391. package/dist/components/SnkMessageBuilder.js +0 -709
  392. package/dist/esm/SnkMessageBuilder-da87a821.js +0 -709
  393. package/dist/sankhyablocks/p-0750661e.entry.js +0 -1
  394. package/dist/sankhyablocks/p-1079e61b.entry.js +0 -11
  395. package/dist/sankhyablocks/p-1c69a957.entry.js +0 -1
  396. package/dist/sankhyablocks/p-22a8656b.entry.js +0 -1
  397. package/dist/sankhyablocks/p-23b20add.entry.js +0 -1
  398. package/dist/sankhyablocks/p-2d58f98e.entry.js +0 -1
  399. package/dist/sankhyablocks/p-2ebd3bfd.entry.js +0 -1
  400. package/dist/sankhyablocks/p-31193a60.entry.js +0 -1
  401. package/dist/sankhyablocks/p-35e73c5d.js +0 -1
  402. package/dist/sankhyablocks/p-37b4f642.js +0 -60
  403. package/dist/sankhyablocks/p-3b1d73f9.js +0 -1
  404. package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
  405. package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
  406. package/dist/sankhyablocks/p-5b31b239.entry.js +0 -1
  407. package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
  408. package/dist/sankhyablocks/p-7c9815ea.entry.js +0 -1
  409. package/dist/sankhyablocks/p-7ced2cf4.entry.js +0 -1
  410. package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
  411. package/dist/sankhyablocks/p-8758404f.js +0 -56
  412. package/dist/sankhyablocks/p-9a6fbf3d.entry.js +0 -1
  413. package/dist/sankhyablocks/p-a2c6944d.entry.js +0 -1
  414. package/dist/sankhyablocks/p-c99293d5.entry.js +0 -1
  415. package/dist/sankhyablocks/p-cb2a4613.entry.js +0 -1
  416. package/dist/sankhyablocks/p-cd1a5b6a.js +0 -1
  417. package/dist/sankhyablocks/p-cfc219f6.entry.js +0 -1
  418. package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
  419. package/dist/sankhyablocks/p-e56eb36b.entry.js +0 -1
  420. package/dist/sankhyablocks/p-f442c8f6.entry.js +0 -1
  421. package/dist/sankhyablocks/p-fc4eac32.js +0 -1
  422. package/dist/sankhyablocks/p-fc87708a.js +0 -1
  423. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +0 -2
  424. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +0 -2
  425. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +0 -2
  426. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +0 -2
  427. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +0 -2
  428. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +0 -2
  429. /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
  430. /package/dist/collection/lib/message/resources/{snk-data-exporter.msg.js → pt-br/snk-data-exporter.msg.js} +0 -0
  431. /package/dist/collection/lib/message/resources/{snk-entity-list.msg.js → pt-br/snk-entity-list.msg.js} +0 -0
  432. /package/dist/collection/lib/message/resources/{snk-filter-field-search.msg.js → pt-br/snk-filter-field-search.msg.js} +0 -0
  433. /package/dist/collection/lib/message/resources/{snk-filter-param-config.msg.js → pt-br/snk-filter-param-config.msg.js} +0 -0
  434. /package/dist/collection/lib/message/resources/{snk-print-selector.msg.js → pt-br/snk-print-selector.msg.js} +0 -0
  435. /package/dist/collection/lib/message/resources/{snk-simple-bar.msg.js → pt-br/snk-simple-bar.msg.js} +0 -0
  436. /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
  437. /package/dist/types/lib/message/resources/{snk-actions-button.msg.d.ts → en-us/snk-actions-button.msg.d.ts} +0 -0
  438. /package/dist/types/lib/message/resources/{snk-configurator.msg.d.ts → en-us/snk-configurator.msg.d.ts} +0 -0
  439. /package/dist/types/lib/message/resources/{snk-data-exporter.msg.d.ts → en-us/snk-data-exporter.msg.d.ts} +0 -0
  440. /package/dist/types/lib/message/resources/{snk-entity-list.msg.d.ts → en-us/snk-entity-list.msg.d.ts} +0 -0
  441. /package/dist/types/lib/message/resources/{snk-filter-field-search.msg.d.ts → en-us/snk-filter-field-search.msg.d.ts} +0 -0
  442. /package/dist/types/lib/message/resources/{snk-filter-param-config.msg.d.ts → en-us/snk-filter-param-config.msg.d.ts} +0 -0
  443. /package/dist/types/lib/message/resources/{snk-form.msg.d.ts → en-us/snk-form.msg.d.ts} +0 -0
  444. /package/dist/types/lib/message/resources/{snk-grid.msg.d.ts → en-us/snk-grid.msg.d.ts} +0 -0
  445. /package/dist/types/lib/message/resources/{snk-personalized-filter.msg.d.ts → en-us/snk-personalized-filter.msg.d.ts} +0 -0
  446. /package/dist/types/lib/message/resources/{snk-print-selector.msg.d.ts → en-us/snk-print-selector.msg.d.ts} +0 -0
  447. /package/dist/types/lib/message/resources/{snk-simple-bar.msg.d.ts → en-us/snk-simple-bar.msg.d.ts} +0 -0
@@ -9,20 +9,20 @@ import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
9
9
  import { d as defineCustomElement$1 } from './snk-filter-param-config2.js';
10
10
 
11
11
  const defaultsOperand = [
12
- { label: "Igual (=)", value: "EQUAL" },
13
- { label: "Diferente (<>)", value: "DIFFERENT" },
14
- { label: "Contendo (LIKE)", value: "LIKE" },
15
- { label: "Contido em (IN)", value: "IN" },
16
- { label: "Iniciado com (%?)", value: "START_WITH" },
17
- { label: "Terminado com (?%)", value: "FINISHED_WITH" },
18
- { label: "Vazio (NULL)", value: "NULL" },
19
- { label: "Não Vazio (NOT NULL)", value: "NOT_NULL" },
12
+ { label: "snkPersonalizedFilter.operands.equal", value: "EQUAL" },
13
+ { label: "snkPersonalizedFilter.operands.different", value: "DIFFERENT" },
14
+ { label: "snkPersonalizedFilter.operands.like", value: "LIKE" },
15
+ { label: "snkPersonalizedFilter.operands.in", value: "IN" },
16
+ { label: "snkPersonalizedFilter.operands.startWith", value: "START_WITH" },
17
+ { label: "snkPersonalizedFilter.operands.finishedWith", value: "FINISHED_WITH" },
18
+ { label: "snkPersonalizedFilter.operands.null", value: "NULL" },
19
+ { label: "snkPersonalizedFilter.operands.notNull", value: "NOT_NULL" },
20
20
  ];
21
21
  const FilterOperandDefault = defaultsOperand.concat([
22
- { label: "Maior (>)", value: "LARGER" },
23
- { label: "Maior ou Igual (>=)", value: "LARGER_EQUAL" },
24
- { label: "Menor (<)", value: "SMALLER" },
25
- { label: "Menor ou Igual (<=)", value: "SMALLER_EQUAL" }
22
+ { label: "snkPersonalizedFilter.operands.larger", value: "LARGER" },
23
+ { label: "snkPersonalizedFilter.operands.largerEqual", value: "LARGER_EQUAL" },
24
+ { label: "snkPersonalizedFilter.operands.smaller", value: "SMALLER" },
25
+ { label: "snkPersonalizedFilter.operands.smallerEqual", value: "SMALLER_EQUAL" }
26
26
  ]);
27
27
  const FilterOperandTypeTextSearch = defaultsOperand;
28
28
  const FIELD_TYPE_SEARCH_AND_TEXT = [
@@ -188,12 +188,15 @@ const SnkExpressionItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
188
188
  buildOptionsOperator() {
189
189
  var _a;
190
190
  if (FIELD_TYPE_SEARCH_AND_TEXT.includes((_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.userInterface)) {
191
- return this.filterOperandTypeTextSearch;
191
+ return this.translateOperandOptions(this.filterOperandTypeTextSearch);
192
192
  }
193
193
  else {
194
- return this.filterOperandDefault;
194
+ return this.translateOperandOptions(this.filterOperandDefault);
195
195
  }
196
196
  }
197
+ translateOperandOptions(options) {
198
+ return options.map(option => ({ label: this.getMessage(option.label), value: option.value }));
199
+ }
197
200
  handleChangeOperator(optionSelected) {
198
201
  this.checkOptionIsNull(optionSelected);
199
202
  this.setValueExpression("operand", optionSelected);
@@ -287,9 +290,7 @@ const SnkExpressionItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
287
290
  }
288
291
  render() {
289
292
  var _a;
290
- 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 ?
291
- h("ez-number-input", { label: "Valor", canShowError: false, enabled: (!this._showValueVariable && !this._optionNotNull) }) :
292
- this.buildFieldByType()), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
293
+ 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 &&
293
294
  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) &&
294
295
  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) })))))));
295
296
  }
@@ -253,7 +253,7 @@ class SnkFilterModalFactory {
253
253
  }
254
254
  }
255
255
 
256
- const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small);height:80%}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
256
+ const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small);height:80%}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start;margin:var(--space--2, 2px) 0}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
257
257
 
258
258
  const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
259
259
  constructor() {
@@ -366,7 +366,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
366
366
  async updateFilterItem(newFilterItem) {
367
367
  const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
368
368
  if (itemIndex == -1) {
369
- console.warn("[SnkFilterBar.updateFilterItem] FilterItem não encontrado, o mesmo não será atualizado.");
369
+ console.warn("[SnkFilterBar.updateFilterItem] " + this.getMessage("snkFilterBar.filterItem.updateFilterItemNotFound"));
370
370
  return Promise.resolve();
371
371
  }
372
372
  this._loadingPending = true;
@@ -381,7 +381,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
381
381
  async addFilterItem(filterItem) {
382
382
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
383
383
  if (itemIndex > -1) {
384
- console.warn("[SnkFilterBar.addFilterItem] FilterItem existe , o mesmo não será adicionado novamente.");
384
+ console.warn("[SnkFilterBar.addFilterItem] " + this.getMessage("snkFilterBar.filterItem.addFilterItemExists"));
385
385
  return Promise.resolve();
386
386
  }
387
387
  this.filterConfig.push(filterItem);
@@ -399,7 +399,7 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
399
399
  async removeFilterItem(filterID) {
400
400
  const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
401
401
  if (itemIndex == -1) {
402
- console.warn("[SnkFilterBar.removeFilterItem] FilterItem não encontrado");
402
+ console.warn("[SnkFilterBar.removeFilterItem] " + this.getMessage("snkFilterBar.filterItem.removeFilterItemNotFound"));
403
403
  return Promise.resolve(undefined);
404
404
  }
405
405
  const itemToRemove = this.filterConfig[itemIndex];
@@ -742,9 +742,9 @@ const SnkFilterBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
742
742
  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 });
743
743
  }
744
744
  if (this.mode !== "regular") {
745
- 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) }))));
745
+ 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) }))));
746
746
  }
747
- 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" }))));
747
+ 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" }))));
748
748
  }
749
749
  get _element() { return this; }
750
750
  static get watchers() { return {
@@ -236,7 +236,7 @@ const SnkFilterItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
236
236
  }
237
237
  render() {
238
238
  const leftIcon = this.getLeftIconName();
239
- return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter", onClick: (event) => this.clearFilter(event) }))), h("ez-popover-core", { ref: elem => this._popover = elem, onEzVisibilityChange: (event) => this.handleVisibilityPopover(event) }, h("snk-filter-detail", { key: this.config.id, config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
239
+ return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true, type: "secondary" }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, slot: "leftIcon" })), h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), slot: "rightIcon", id: "removeFilter", onClick: (event) => this.clearFilter(event) }))), h("ez-popover-core", { ref: elem => this._popover = elem, onEzVisibilityChange: (event) => this.handleVisibilityPopover(event) }, h("snk-filter-detail", { key: this.config.id, config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
240
240
  }
241
241
  get _filterItemElement() { return this; }
242
242
  static get watchers() { return {
@@ -99,7 +99,7 @@ const SnkFilterList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
99
99
  const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
100
100
  if (hideItems) {
101
101
  items.splice(MAX_FILTERS);
102
- 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" });
102
+ 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" });
103
103
  }
104
104
  this._selectableItemsCount = 0;
105
105
  return h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
@@ -235,7 +235,7 @@ const SnkFilterModal$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
235
235
  return null;
236
236
  const appliedFilters = this.getIformedFiltersCount(listItems);
237
237
  const lines = this.mountFiltersLines(listItems);
238
- 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) })))));
238
+ 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) })))));
239
239
  }
240
240
  handleDeleteFilter() {
241
241
  this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
@@ -11,6 +11,7 @@ const SnkFilterPeriod = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
11
11
  this.valueChanged = createEvent(this, "valueChanged", 7);
12
12
  this._startIntervalLabel = 'Inicial';
13
13
  this._endIntervalLabel = 'Final';
14
+ this._toLabel = 'até';
14
15
  this.config = undefined;
15
16
  this.getMessage = undefined;
16
17
  this.value = undefined;
@@ -46,7 +47,7 @@ const SnkFilterPeriod = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
46
47
  }
47
48
  buildLabel() {
48
49
  if (this.presentationMode === EPresentationMode.CHIP) {
49
- return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
50
+ return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, this._toLabel);
50
51
  }
51
52
  }
52
53
  getVariation() {
@@ -57,6 +58,7 @@ const SnkFilterPeriod = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
57
58
  if (this.getMessage) {
58
59
  this._startIntervalLabel = this.getMessage('snkFilterBar.labelStart');
59
60
  this._endIntervalLabel = this.getMessage('snkFilterBar.labelEnd');
61
+ this._toLabel = this.getMessage('snkFilterBar.labelTo');
60
62
  }
61
63
  }
62
64
  componentDidLoad() {
@@ -10,6 +10,7 @@ const SnkFilterPeriod$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
10
10
  this.valueChanged = createEvent(this, "valueChanged", 7);
11
11
  this._startDateLabel = 'Inicial';
12
12
  this._endDateLabel = 'Final';
13
+ this._toLabel = 'até';
13
14
  this.config = undefined;
14
15
  this.getMessage = undefined;
15
16
  this.value = undefined;
@@ -49,13 +50,14 @@ const SnkFilterPeriod$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
49
50
  }
50
51
  buildLabel() {
51
52
  if (this.presentationMode === EPresentationMode.CHIP) {
52
- return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, "at\u00E9");
53
+ return h("label", { class: "ez-text ez-text--medium ez-text--primary ez-margin--medium" }, this._toLabel);
53
54
  }
54
55
  }
55
56
  componentWillLoad() {
56
57
  if (this.getMessage) {
57
58
  this._startDateLabel = this.getMessage('snkFilterBar.labelStart');
58
59
  this._endDateLabel = this.getMessage('snkFilterBar.labelEnd');
60
+ this._toLabel = this.getMessage('snkFilterBar.labelTo');
59
61
  }
60
62
  }
61
63
  render() {
@@ -100,7 +100,7 @@ const SnkFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
100
100
  this.originalConfigSelected = userConfig.find((config) => config.origin === origin);
101
101
  }
102
102
  catch (error) {
103
- console.error('Falha ao buscar configurações de formulário definida pelo usuário.');
103
+ console.error(this.getMessage('snkFormConfig.errors.failFetchUserConfig'));
104
104
  console.error(error);
105
105
  }
106
106
  }
@@ -256,7 +256,7 @@ const SnkFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
256
256
  this.hasChanges = true;
257
257
  }
258
258
  handleCreateNewGuide() {
259
- const newGuideName = buildNewGuideName(this.guidesList);
259
+ const newGuideName = buildNewGuideName(this.guidesList, this.getMessage.bind(this));
260
260
  const newGuide = {
261
261
  name: newGuideName,
262
262
  label: newGuideName,
@@ -289,7 +289,7 @@ const SnkFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
289
289
  await this.initializeUserConfig();
290
290
  }
291
291
  render() {
292
- return (h(Host, null, h("config-header", { configOptions: this.configOptions, selectedConfig: this.configSelected, messagesBuilder: this.messagesBuilder, hasChanges: this.hasChanges, optionConfigChanged: this.optionConfigChanged, onConfigClose: () => this.configClose.emit(), onSaveConfig: async () => await this.handleSaveConfig() }), h("div", { class: "ez-padding--medium" }, h("div", { class: "ez-flex sidebarNavigator__container" }, h("guides-configurator", { messagesBuilder: this.messagesBuilder, guidesList: this.guidesList, selectedGuide: this.selectedGuide, onGuideSelected: this.handleSelectGuide.bind(this), onGuideListChanged: this.handleGuideListChanged.bind(this), onCreateNewGuide: this.handleCreateNewGuide.bind(this), onGuideDeleted: this.handleGuideDeleted.bind(this) }), h("fields-layout", { ref: ref => this.refFieldsLayout = ref, selectedGuide: this.selectedGuide, guideNames: this.getGuideNames(), groupsList: this.groupsList, messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, onGuideRenamed: this.handleGuideRenamed.bind(this), onLayoutChanged: this.handleLayoutChanged.bind(this), onSetFieldListAsAvailable: this.handleSetFieldListAsAvailable.bind(this) }), h("fields-selector", { dataUnit: this.dataUnit, availableFields: this.availableFields, onFieldListChanged: this.handleAvailableFieldListChanged.bind(this) })))));
292
+ return (h(Host, null, h("config-header", { configOptions: this.configOptions, selectedConfig: this.configSelected, messagesBuilder: this.messagesBuilder, hasChanges: this.hasChanges, optionConfigChanged: this.optionConfigChanged, onConfigClose: () => this.configClose.emit(), onSaveConfig: async () => await this.handleSaveConfig() }), h("div", { class: "ez-padding--medium" }, h("div", { class: "ez-flex sidebarNavigator__container" }, h("guides-configurator", { messagesBuilder: this.messagesBuilder, guidesList: this.guidesList, selectedGuide: this.selectedGuide, onGuideSelected: this.handleSelectGuide.bind(this), onGuideListChanged: this.handleGuideListChanged.bind(this), onCreateNewGuide: this.handleCreateNewGuide.bind(this), onGuideDeleted: this.handleGuideDeleted.bind(this) }), h("fields-layout", { ref: ref => this.refFieldsLayout = ref, selectedGuide: this.selectedGuide, guideNames: this.getGuideNames(), groupsList: this.groupsList, messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, onGuideRenamed: this.handleGuideRenamed.bind(this), onLayoutChanged: this.handleLayoutChanged.bind(this), onSetFieldListAsAvailable: this.handleSetFieldListAsAvailable.bind(this) }), h("fields-selector", { dataUnit: this.dataUnit, availableFields: this.availableFields, onFieldListChanged: this.handleAvailableFieldListChanged.bind(this), messagesBuilder: this.messagesBuilder })))));
293
293
  }
294
294
  static get watchers() { return {
295
295
  "selectedGuide": ["observeSelectedGuide"],
@@ -83,23 +83,10 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
83
83
  this._orderListItems = newSortableList;
84
84
  }
85
85
  createColumnList() {
86
- let visibleGroup = {
87
- group: this.getMessage('snkGridConfig.group.visible'),
88
- items: [],
89
- };
90
- let hiddenGroup = {
91
- group: this.getMessage('snkGridConfig.group.hidden'),
92
- items: [],
93
- sort: ORDER_VALUES.asc.value,
94
- };
95
- this.columns.forEach((column) => {
96
- var _a;
97
- let item = {
98
- label: column.label,
99
- selected: false,
100
- sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : ORDER_VALUES.asc.value,
101
- id: column.name,
102
- };
86
+ const visibleGroup = this.buildVisibleGroup();
87
+ const hiddenGroup = this.buildHiddenGroup();
88
+ this.columns.forEach(column => {
89
+ const item = this.buildListItemFromColumn(column);
103
90
  if (column.hidden) {
104
91
  hiddenGroup.items.push(item);
105
92
  }
@@ -112,6 +99,19 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
112
99
  this._hiddenList = hiddenGroup.items;
113
100
  this.createOrderList();
114
101
  }
102
+ buildVisibleGroup() {
103
+ return {
104
+ group: this.getMessage('snkGridConfig.group.visible'),
105
+ items: [],
106
+ };
107
+ }
108
+ buildHiddenGroup() {
109
+ return {
110
+ group: this.getMessage('snkGridConfig.group.hidden'),
111
+ items: [],
112
+ sort: ORDER_VALUES.asc.value,
113
+ };
114
+ }
115
115
  createOrderListSlotDataElementId(item) {
116
116
  return `${this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${StringUtils.toCamelCase(item.label)}`;
117
117
  }
@@ -124,7 +124,7 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
124
124
  return (h("snk-select-box", { selectedOption: selectedOption, key: 'snk-select-box-' + this._componenteInternalKey + '-' + item, "data-element-id": dataElementId, onEzChange: (evt) => {
125
125
  evt.stopPropagation();
126
126
  this.updateOrder(evt.detail, item.label);
127
- } }));
127
+ }, preventAutoFocus: true }));
128
128
  }
129
129
  updateOrder(sortOrder, updatedItemLabel) {
130
130
  var _a;
@@ -159,25 +159,21 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
159
159
  this.closeConfig();
160
160
  return;
161
161
  }
162
- let newColumnList = [];
163
- this._columListItems.forEach((group) => {
164
- group.items.forEach((item) => {
165
- const baseColumn = this.columns.find((column) => column.label === item.label);
166
- let newColumnItem = Object.assign({}, baseColumn);
167
- if (group.group === this.getMessage('snkGridConfig.group.hidden')) {
168
- newColumnItem.hidden = true;
169
- }
170
- else {
171
- newColumnItem.hidden = false;
172
- }
173
- newColumnList.push(newColumnItem);
174
- });
175
- });
176
- this.columns = newColumnList;
162
+ this.updateColumns();
177
163
  this._dataChanged = false;
178
164
  this.closeConfig();
179
165
  this.save();
180
166
  }
167
+ updateColumns() {
168
+ this.columns = this._columListItems.flatMap((group) => group.items.map((item) => this.buildColumnFromListItem(item, group)));
169
+ }
170
+ buildColumnFromListItem(item, group) {
171
+ const baseColumn = this.columns.find((column) => column.label === item.label);
172
+ if (!baseColumn) {
173
+ throw new Error(`Column with label "${item.label}" not found.`);
174
+ }
175
+ return Object.assign(Object.assign({}, baseColumn), { hidden: group.group === this.getMessage('snkGridConfig.group.hidden') });
176
+ }
181
177
  saveGridConfigOnStorage(_newConfig) {
182
178
  ConfigStorage.saveGridConfig(_newConfig, this.configName, this.resourceID)
183
179
  .then((savedConfig) => {
@@ -347,13 +343,55 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
347
343
  },
348
344
  };
349
345
  }
346
+ renderResetConfigBtn() {
347
+ if (!this.resourceID)
348
+ return;
349
+ return h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.reset'), onClick: () => this.setDefaultConfig() });
350
+ }
351
+ async setDefaultConfig() {
352
+ var _a;
353
+ if (!this.resourceID)
354
+ return;
355
+ this._dataChanged = true;
356
+ const config = await ConfigStorage.getDefaultGridConfig(this.resourceID);
357
+ const defaultVisibleCols = (_a = config === null || config === void 0 ? void 0 : config.columns.map(col => col.name)) !== null && _a !== void 0 ? _a : [];
358
+ const visibleGroup = this.buildVisibleGroup();
359
+ const hiddenGroup = this.buildHiddenGroup();
360
+ const visibleItemsMap = new Map();
361
+ this.columns.forEach(column => {
362
+ const item = this.buildListItemFromColumn(column);
363
+ if (defaultVisibleCols.includes(column.name)) {
364
+ visibleItemsMap.set(column.name, item);
365
+ }
366
+ else {
367
+ hiddenGroup.items.push(item);
368
+ }
369
+ });
370
+ visibleGroup.items = defaultVisibleCols
371
+ .map(name => visibleItemsMap.get(name))
372
+ .filter(item => item);
373
+ this._columListItems = [visibleGroup, hiddenGroup];
374
+ this._visibleList = visibleGroup.items;
375
+ this._hiddenList = hiddenGroup.items;
376
+ this.updateColumns();
377
+ this.createOrderList();
378
+ }
379
+ buildListItemFromColumn(column) {
380
+ var _a;
381
+ return {
382
+ label: column.label,
383
+ selected: false,
384
+ sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : ORDER_VALUES.asc.value,
385
+ id: column.name,
386
+ };
387
+ }
350
388
  render() {
351
- return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "ez-margin-bottom--medium" }, h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), h("div", { class: "button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), h("div", { class: "grid-config__body" }, h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
389
+ return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "ez-margin-bottom--medium" }, h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), h("div", { class: "button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), h("div", { class: 'grid-config__body' }, h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
352
390
  LEFT_LIST: this.getMessage('snkGridConfig.emptyMensage.left'),
353
391
  RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
354
392
  }, entityLabel: 'coluna', entityLabelPlural: 'colunas' }))), h("ez-collapsible-box", { id: 'ID_group-order-columns', label: this.getMessage('snkGridConfig.dataOrdering'), "header-size": "medium", key: 'KEY_group-order-columns', value: this._collapsibleBoxListOrder, onEzChange: ({ detail }) => this._collapsibleBoxListSelect = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { rightList: this._orderListItems, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), useOnlyRightList: true, slotsListBuilder: this.getListSlots(), emptyMessage: {
355
393
  RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
356
- }, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
394
+ }, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), h("div", { class: "grid-config__footer" }, this.renderResetConfigBtn(), h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
357
395
  }
358
396
  static get assetsDirs() { return ["../assets"]; }
359
397
  get _element() { return this; }
@@ -19,6 +19,7 @@ const SnkLayoutFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
19
19
  super();
20
20
  this.__registerHost();
21
21
  this._formConfigFetcher = new FormConfigFetcher();
22
+ this.messagesBuilder = undefined;
22
23
  this.layoutType = FormLayout.CASCADE;
23
24
  }
24
25
  /**
@@ -43,11 +44,16 @@ const SnkLayoutFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
43
44
  toggleLayout(key) {
44
45
  this.layoutType = key;
45
46
  }
47
+ getMessage(key, params) {
48
+ var _a;
49
+ return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
50
+ }
46
51
  render() {
47
- return (h("div", { class: "ez-flex ez-flex--column" }, h("div", { class: "ez-margin-bottom--small" }, h("ez-check", { label: "Layout em cascata", class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(FormLayout.CASCADE), value: this.layoutType === FormLayout.CASCADE }), h("snk-view-representation", { mode: FormLayout.CASCADE }), h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, "Todos os campos ser\u00E3o organizados em uma coluna \u00FAnica.")), h("div", null, h("ez-check", { label: "Layout lado a lado", class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(FormLayout.SIDE_BY_SIDE), value: this.layoutType === FormLayout.SIDE_BY_SIDE }), h("snk-view-representation", { mode: FormLayout.SIDE_BY_SIDE }), h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, "Todos os campos ser\u00E3o dispostos lado a lado, ajustando-se automaticamente \u00E0 largura da tela."))));
52
+ return (h("div", { class: "ez-flex ez-flex--column" }, h("div", { class: "ez-margin-bottom--small" }, h("ez-check", { label: this.getMessage('snkLayoutFormConfig.cascadeLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(FormLayout.CASCADE), value: this.layoutType === FormLayout.CASCADE }), h("snk-view-representation", { mode: FormLayout.CASCADE }), h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.cascadeLayout.description'))), h("div", null, h("ez-check", { label: this.getMessage('snkLayoutFormConfig.sideBySideLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(FormLayout.SIDE_BY_SIDE), value: this.layoutType === FormLayout.SIDE_BY_SIDE }), h("snk-view-representation", { mode: FormLayout.SIDE_BY_SIDE }), h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.sideBySideLayout.description')))));
48
53
  }
49
54
  static get style() { return snkLayoutFormConfigCss; }
50
55
  }, [2, "snk-layout-form-config", {
56
+ "messagesBuilder": [16],
51
57
  "layoutType": [32],
52
58
  "save": [64]
53
59
  }]);
@@ -62,7 +62,7 @@ const SnkPersonalizedFilter = /*@__PURE__*/ proxyCustomElement(class extends HTM
62
62
  entityName: "",
63
63
  fieldName: "",
64
64
  description: "",
65
- fieldLabel: "Valor",
65
+ fieldLabel: this.getMessage("snkPersonalizedFilter.info.labelDefaultValue"),
66
66
  type: undefined,
67
67
  expression: undefined,
68
68
  operand: undefined,
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { ObjectUtils, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { ObjectUtils, StringUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { a as PesquisaFetcher, d as buildGridMetadata, e as PESQUISA_VIEW_MODE } from './ISave.js';
4
4
  import './DataFetcher.js';
5
5
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
@@ -323,17 +323,21 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
323
323
  this._valideDataSource = true;
324
324
  }
325
325
  getMessageView() {
326
- return this._startLoading
327
- ? 'Aguarde, buscando registros...'
328
- : this._itemList
329
- ? this._itemList.length >= 1
330
- ? `${this._itemList.length} ${this._itemList.length > 1
331
- ? 'registros encontrados'
332
- : 'registro encontrado'}`
333
- : 'Nenhum registro encontrado'
334
- : 'Os resultados de sua pesquisa aparecerão aqui...';
326
+ if (this._startLoading)
327
+ return this.getMessage('snkPesquisa.search.waitMessage');
328
+ if (!this._itemList)
329
+ return this.getMessage('snkPesquisa.search.initialMessage');
330
+ const itemsCount = this._itemList.length;
331
+ if (itemsCount < 1)
332
+ return this.getMessage('snkPesquisa.search.noResultsMessage');
333
+ if (itemsCount === 1)
334
+ return this.getMessage('snkPesquisa.search.resultsFoundSingular');
335
+ return this.getMessage('snkPesquisa.search.resultsFoundPlural', { COUNT: itemsCount });
335
336
  }
336
337
  async componentWillLoad() {
338
+ var _a;
339
+ this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
340
+ this._messagesBuilder = (_a = this._application) === null || _a === void 0 ? void 0 : _a.messagesBuilder;
337
341
  const mode = await this.pesquisaFetcher.loadPresentationConfig(this.entityName);
338
342
  this._presentationMode = mode === 'list' ? 'list' : 'table';
339
343
  }
@@ -341,6 +345,9 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
341
345
  ElementIDUtils.addIDInfo(this._element);
342
346
  await this.chooseViewMode();
343
347
  }
348
+ getMessage(key, params) {
349
+ return this._messagesBuilder.getMessage(key, params);
350
+ }
344
351
  async handleChangeViewMode() {
345
352
  this._presentationMode = this._presentationMode === 'list' ? 'table' : 'list';
346
353
  await this.chooseViewMode();
@@ -370,28 +377,28 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
370
377
  if (this._presentationMode === 'list') {
371
378
  return {
372
379
  iconName: 'table',
373
- title: 'Modo grade',
380
+ title: this.getMessage('snkPesquisa.viewMode.tableMode'),
374
381
  };
375
382
  }
376
383
  if (this.isHierarchyEntity) {
377
384
  return {
378
385
  iconName: 'hierarchical-tree',
379
- title: 'Modo árvore hierárquica',
386
+ title: this.getMessage('snkPesquisa.viewMode.tableMode'),
380
387
  };
381
388
  }
382
389
  return {
383
390
  iconName: 'list',
384
- title: 'Modo lista',
391
+ title: this.getMessage('snkPesquisa.viewMode.listMode'),
385
392
  };
386
393
  }
387
394
  render() {
388
395
  var _a, _b;
389
- return (h(Host, null, h("div", { class: "snk-pesquisa" }, h("div", { class: "snk-pesquisa__input" }, h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
396
+ return (h(Host, null, h("div", { class: "snk-pesquisa" }, h("div", { class: "snk-pesquisa__input" }, h("ez-text-input", { label: this.getMessage('snkPesquisa.search.label'), class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
390
397
  ? h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
391
- : undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, this._valideDataSource &&
398
+ : undefined), h("ez-button", { class: "ez-button--primary", label: this.getMessage('snkPesquisa.search.button'), onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, this.getMessage('snkPesquisa.search.limitMessage'))), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, this._valideDataSource &&
392
399
  h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), h("stack-item", null, h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
393
400
  return (h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
394
- }))), h("stack-item", null, h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
401
+ }))), h("stack-item", null, h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail), messagesBuilder: this._messagesBuilder })))))));
395
402
  }
396
403
  get _element() { return this; }
397
404
  static get watchers() { return {
@@ -10,16 +10,18 @@ const SelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
10
10
  this.__attachShadow();
11
11
  this.ezChange = createEvent(this, "ezChange", 7);
12
12
  this.selectedOption = ORDER_VALUES.none;
13
+ this.preventAutoFocus = false;
13
14
  }
14
15
  render() {
15
- return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, Object.keys(ORDER_VALUES).map((key) => {
16
+ return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true, preventAutoFocus: this.preventAutoFocus }, Object.keys(ORDER_VALUES).map((key) => {
16
17
  return h("option", { value: ORDER_VALUES[key].value }, ORDER_VALUES[key].label);
17
18
  })));
18
19
  }
19
20
  static get assetsDirs() { return ["../assets"]; }
20
21
  static get style() { return snkSelectBoxCss; }
21
22
  }, [1, "snk-select-box", {
22
- "selectedOption": [1, "selected-option"]
23
+ "selectedOption": [1, "selected-option"],
24
+ "preventAutoFocus": [4, "prevent-auto-focus"]
23
25
  }]);
24
26
  function defineCustomElement() {
25
27
  if (typeof customElements === "undefined") {