@sankhyalabs/sankhyablocks 10.1.0-dev.5 → 10.1.0-dev.51

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 (452) hide show
  1. package/LICENSE +4 -1
  2. package/dist/cjs/{ConfigStorage-72f34bd4.js → ConfigStorage-a1fab5ca.js} +19 -2
  3. package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
  4. package/dist/cjs/{DataFetcher-991b0349.js → DataFetcher-384d2ce8.js} +2 -2751
  5. package/dist/cjs/{FormConfigHelper-e253a418.js → FormConfigHelper-28fe4668.js} +3 -1
  6. package/dist/cjs/{ISave-ebf6b4ed.js → ISave-ecbe9336.js} +1 -1
  7. package/dist/cjs/ImageUtils-d6139911.js +144 -0
  8. package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
  9. package/dist/cjs/{SnkFormConfigManager-cdbb29d4.js → SnkFormConfigManager-44386305.js} +5 -5
  10. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +2833 -0
  11. package/dist/cjs/{SnkMultiSelectionListDataSource-011bec79.js → SnkMultiSelectionListDataSource-293bc3d2.js} +61 -47
  12. package/dist/cjs/{auth-fetcher-c3cac878.js → auth-fetcher-6b134ec4.js} +1 -1
  13. package/dist/cjs/config-header.cjs.entry.js +1 -1
  14. package/dist/cjs/configs-button.cjs.entry.js +1 -1
  15. package/dist/cjs/css-shim-a27d231b.js +6 -0
  16. package/dist/cjs/{dataunit-fetcher-8bf469e7.js → dataunit-fetcher-b9822794.js} +66 -6
  17. package/dist/cjs/dom-ff96a4bc.js +75 -0
  18. package/dist/cjs/field-config_2.cjs.entry.js +3 -3
  19. package/dist/cjs/fields-layout.cjs.entry.js +6 -6
  20. package/dist/cjs/fields-selector.cjs.entry.js +3 -3
  21. package/dist/cjs/{form-config-fetcher-c7af90d8.js → form-config-fetcher-45d1964c.js} +19 -1
  22. package/dist/cjs/guides-configurator.cjs.entry.js +3 -3
  23. package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1529 -177
  24. package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
  25. package/dist/cjs/loader.cjs.js +16 -2
  26. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
  27. package/dist/cjs/sankhyablocks.cjs.js +132 -4
  28. package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
  29. package/dist/cjs/snk-actions-button_9.cjs.entry.js +166 -116
  30. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  31. package/dist/cjs/snk-application.cjs.entry.js +29 -9
  32. package/dist/cjs/snk-attach.cjs.entry.js +63 -25
  33. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  34. package/dist/cjs/snk-configurator.cjs.entry.js +3 -1
  35. package/dist/cjs/snk-crud.cjs.entry.js +350 -109
  36. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
  37. package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
  38. package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -7
  39. package/dist/cjs/{snk-data-unit-7d587ad5.js → snk-data-unit-4b6dc396.js} +21 -12
  40. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
  41. package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
  42. package/dist/cjs/snk-detail-view.cjs.entry.js +27 -20
  43. package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
  44. package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
  45. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +2 -2
  46. package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
  47. package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +41 -3
  48. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +147 -94
  49. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  50. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  51. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
  52. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  53. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
  54. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  55. package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
  56. package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
  57. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  58. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  59. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  60. package/dist/cjs/snk-form-view.cjs.entry.js +70 -8
  61. package/dist/cjs/snk-form_2.cjs.entry.js +22 -11
  62. package/dist/cjs/snk-grid.cjs.entry.js +76 -34
  63. package/dist/cjs/{snk-guides-viewer-366d5c32.js → snk-guides-viewer-b4ca3437.js} +78 -214
  64. package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -18
  65. package/dist/cjs/snk-image-input.cjs.entry.js +160 -0
  66. package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
  67. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  68. package/dist/cjs/snk-personalized-filter.cjs.entry.js +8 -7
  69. package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
  70. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  71. package/dist/cjs/snk-simple-crud.cjs.entry.js +30 -35
  72. package/dist/cjs/snk-taskbar.cjs.entry.js +183 -126
  73. package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
  74. package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
  75. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  76. package/dist/collection/collection-manifest.json +9 -0
  77. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +6 -3
  78. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
  79. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
  80. package/dist/collection/components/snk-application/snk-application.js +20 -2
  81. package/dist/collection/components/snk-attach/snk-attach.css +29 -7
  82. package/dist/collection/components/snk-attach/snk-attach.js +94 -19
  83. package/dist/collection/components/snk-configurator/snk-configurator.js +2 -0
  84. package/dist/collection/components/snk-crud/snk-crud.css +50 -0
  85. package/dist/collection/components/snk-crud/snk-crud.js +165 -98
  86. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
  87. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +15 -7
  88. package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
  89. package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
  90. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +90 -8
  91. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
  92. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +90 -205
  93. package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
  94. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
  95. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
  96. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
  97. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
  98. package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
  99. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
  100. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
  101. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  102. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
  103. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +5 -1
  104. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -2
  105. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +7 -1
  106. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +22 -8
  107. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
  108. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +166 -78
  109. package/dist/collection/components/snk-form-config/FormConfigHelper.js +3 -1
  110. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -3
  111. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
  112. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
  113. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +4 -4
  114. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -4
  115. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +2 -2
  116. package/dist/collection/components/snk-form-config/snk-form-config.js +15 -5
  117. package/dist/collection/components/snk-grid/snk-grid.css +24 -3
  118. package/dist/collection/components/snk-grid/snk-grid.js +183 -22
  119. package/dist/collection/components/snk-grid-config/snk-grid-config.js +153 -51
  120. package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
  121. package/dist/collection/components/snk-image-input/snk-image-input.js +338 -0
  122. package/dist/collection/components/snk-image-input/utils/ImageUtils.js +135 -0
  123. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
  124. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
  125. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  126. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
  127. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
  128. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +35 -23
  129. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
  130. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
  131. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +54 -37
  132. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
  133. package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
  134. package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
  135. package/dist/collection/components/snk-taskbar/snk-taskbar.js +248 -132
  136. package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
  137. package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
  138. package/dist/collection/lib/configs/ConfigStorage.js +5 -0
  139. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +40 -3
  140. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +24 -2
  141. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
  142. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
  143. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  144. package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
  145. package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
  146. package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
  147. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +9 -1
  148. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +1 -0
  149. package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
  150. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
  151. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +9 -1
  152. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +1 -0
  153. package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
  154. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
  155. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
  156. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +9 -1
  157. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +1 -0
  158. package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
  159. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
  160. package/dist/components/ConfigStorage.js +17 -0
  161. package/dist/components/ContinuousInsertUtils.js +1 -1
  162. package/dist/components/DataFetcher.js +3 -2731
  163. package/dist/components/PersonalizedFilterUtils.js +13 -0
  164. package/dist/components/SnkFormConfigManager.js +3 -3
  165. package/dist/components/SnkMessageBuilder.js +2831 -0
  166. package/dist/components/dataunit-fetcher.js +65 -5
  167. package/dist/components/field-config2.js +4 -2
  168. package/dist/components/fields-layout2.js +4 -4
  169. package/dist/components/form-config-fetcher.js +18 -0
  170. package/dist/components/guides-configurator2.js +2 -2
  171. package/dist/components/index.d.ts +4 -0
  172. package/dist/components/index.js +4 -0
  173. package/dist/components/index2.js +90 -21
  174. package/dist/components/snk-actions-button2.js +12 -6
  175. package/dist/components/snk-application2.js +22 -2
  176. package/dist/components/snk-attach2.js +70 -28
  177. package/dist/components/snk-configurator2.js +2 -0
  178. package/dist/components/snk-crud.js +433 -176
  179. package/dist/components/snk-custom-slot-guide.d.ts +11 -0
  180. package/dist/components/snk-custom-slot-guide.js +55 -0
  181. package/dist/components/snk-data-exporter2.js +3 -1
  182. package/dist/components/snk-data-unit2.js +10 -1
  183. package/dist/components/snk-detail-view2.js +221 -318
  184. package/dist/components/snk-entity-search.d.ts +11 -0
  185. package/dist/components/snk-entity-search.js +6 -0
  186. package/dist/components/snk-entity-search2.js +231 -0
  187. package/dist/components/snk-exporter-email-sender2.js +1 -1
  188. package/dist/components/snk-filter-bar2.js +116 -80
  189. package/dist/components/snk-filter-detail2.js +1 -1
  190. package/dist/components/snk-filter-item2.js +9 -3
  191. package/dist/components/snk-filter-modal2.js +22 -9
  192. package/dist/components/snk-filter-number.js +12 -8
  193. package/dist/components/snk-filter-period.js +13 -6
  194. package/dist/components/snk-filter-text.js +1 -1
  195. package/dist/components/snk-form-config2.js +15 -5
  196. package/dist/components/snk-form-view2.js +79 -10
  197. package/dist/components/snk-grid-config2.js +109 -50
  198. package/dist/components/snk-grid2.js +116 -63
  199. package/dist/components/snk-image-input.d.ts +11 -0
  200. package/dist/components/snk-image-input.js +6 -0
  201. package/dist/components/snk-image-input2.js +316 -0
  202. package/dist/components/snk-layout-form-config2.js +1 -1
  203. package/dist/components/snk-personalized-filter2.js +1 -1
  204. package/dist/components/snk-pesquisa2.js +0 -1
  205. package/dist/components/snk-simple-crud2.js +47 -46
  206. package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
  207. package/dist/components/snk-taskbar-skeleton.js +6 -0
  208. package/dist/components/snk-taskbar-skeleton2.js +29 -0
  209. package/dist/components/snk-taskbar2.js +256 -176
  210. package/dist/components/snk-view-representation2.js +1 -1
  211. package/dist/components/sortable.esm.js +76 -90
  212. package/dist/components/taskbar-actions-button2.js +21 -2
  213. package/dist/components/taskbar-split-button2.js +10 -1
  214. package/dist/esm/{ConfigStorage-22324b6b.js → ConfigStorage-76872695.js} +19 -2
  215. package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
  216. package/dist/esm/{DataFetcher-450828a0.js → DataFetcher-e60f8d53.js} +3 -2731
  217. package/dist/esm/{FormConfigHelper-e89ca25c.js → FormConfigHelper-d09669f3.js} +3 -1
  218. package/dist/esm/{ISave-61153166.js → ISave-4929c071.js} +1 -1
  219. package/dist/esm/ImageUtils-efbea0e4.js +138 -0
  220. package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
  221. package/dist/esm/{SnkFormConfigManager-b5a92e12.js → SnkFormConfigManager-83f6b22f.js} +5 -5
  222. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +2831 -0
  223. package/dist/esm/{SnkMultiSelectionListDataSource-d7ce2e54.js → SnkMultiSelectionListDataSource-f6cabd15.js} +55 -41
  224. package/dist/esm/{auth-fetcher-eef9d01e.js → auth-fetcher-1a31c1e4.js} +1 -1
  225. package/dist/esm/config-header.entry.js +1 -1
  226. package/dist/esm/configs-button.entry.js +1 -1
  227. package/dist/esm/css-shim-9f2d321e.js +4 -0
  228. package/dist/esm/{dataunit-fetcher-da9596f6.js → dataunit-fetcher-c176e002.js} +65 -5
  229. package/dist/esm/dom-64053c71.js +73 -0
  230. package/dist/esm/field-config_2.entry.js +3 -3
  231. package/dist/esm/fields-layout.entry.js +6 -6
  232. package/dist/esm/fields-selector.entry.js +3 -3
  233. package/dist/esm/{form-config-fetcher-8d0a5e1c.js → form-config-fetcher-b44b2727.js} +19 -1
  234. package/dist/esm/guides-configurator.entry.js +3 -3
  235. package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1521 -177
  236. package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
  237. package/dist/esm/loader.js +17 -3
  238. package/dist/esm/pesquisa-grid_2.entry.js +6 -5
  239. package/dist/esm/sankhyablocks.js +133 -5
  240. package/dist/esm/shadow-css-98135883.js +387 -0
  241. package/dist/esm/snk-actions-button_9.entry.js +167 -117
  242. package/dist/esm/snk-actions-form.entry.js +1 -1
  243. package/dist/esm/snk-application.entry.js +28 -8
  244. package/dist/esm/snk-attach.entry.js +62 -24
  245. package/dist/esm/snk-client-confirm.entry.js +1 -1
  246. package/dist/esm/snk-configurator.entry.js +3 -1
  247. package/dist/esm/snk-crud.entry.js +342 -101
  248. package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
  249. package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
  250. package/dist/esm/snk-data-exporter.entry.js +9 -7
  251. package/dist/esm/{snk-data-unit-99616a07.js → snk-data-unit-d8cfa950.js} +12 -3
  252. package/dist/esm/snk-data-unit.entry.js +5 -4
  253. package/dist/esm/snk-default-filter.entry.js +1 -1
  254. package/dist/esm/snk-detail-view.entry.js +25 -18
  255. package/dist/esm/snk-entity-list.entry.js +1 -1
  256. package/dist/esm/snk-entity-search.entry.js +207 -0
  257. package/dist/esm/snk-exporter-email-sender.entry.js +2 -2
  258. package/dist/esm/snk-expression-group_2.entry.js +2 -2
  259. package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +41 -4
  260. package/dist/esm/snk-filter-bar_4.entry.js +148 -95
  261. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  262. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  263. package/dist/esm/snk-filter-detail.entry.js +3 -3
  264. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  265. package/dist/esm/snk-filter-modal-item.entry.js +5 -4
  266. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  267. package/dist/esm/snk-filter-number.entry.js +11 -7
  268. package/dist/esm/snk-filter-period.entry.js +14 -7
  269. package/dist/esm/snk-filter-search.entry.js +1 -1
  270. package/dist/esm/snk-filter-text.entry.js +2 -2
  271. package/dist/esm/snk-form-summary.entry.js +1 -1
  272. package/dist/esm/snk-form-view.entry.js +71 -9
  273. package/dist/esm/snk-form_2.entry.js +22 -11
  274. package/dist/esm/snk-grid.entry.js +73 -31
  275. package/dist/esm/{snk-guides-viewer-240de636.js → snk-guides-viewer-cc37535b.js} +79 -215
  276. package/dist/esm/snk-guides-viewer.entry.js +11 -18
  277. package/dist/esm/snk-image-input.entry.js +156 -0
  278. package/dist/esm/snk-layout-form-config.entry.js +68 -0
  279. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  280. package/dist/esm/snk-personalized-filter.entry.js +8 -7
  281. package/dist/esm/snk-pesquisa.entry.js +6 -6
  282. package/dist/esm/snk-print-selector.entry.js +1 -1
  283. package/dist/esm/snk-simple-crud.entry.js +28 -33
  284. package/dist/esm/snk-taskbar.entry.js +184 -127
  285. package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
  286. package/dist/esm/taskbar-elements-63651ca7.js +149 -0
  287. package/dist/esm/teste-pesquisa.entry.js +1 -1
  288. package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
  289. package/dist/sankhyablocks/p-0afc64df.entry.js +1 -0
  290. package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
  291. package/dist/sankhyablocks/p-134702f6.entry.js +1 -0
  292. package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
  293. package/dist/sankhyablocks/p-20f03230.entry.js +1 -0
  294. package/dist/sankhyablocks/p-26f1919e.entry.js +1 -0
  295. package/dist/sankhyablocks/p-2af8aca3.js +1 -0
  296. package/dist/sankhyablocks/p-2c9d0870.js +2 -0
  297. package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
  298. package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
  299. package/dist/sankhyablocks/p-3072136e.js +1 -0
  300. package/dist/sankhyablocks/p-33492640.entry.js +1 -0
  301. package/dist/sankhyablocks/{p-002d4d2b.js → p-3704bf1b.js} +1 -1
  302. package/dist/sankhyablocks/p-3870748a.js +28 -0
  303. package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
  304. package/dist/sankhyablocks/{p-7d6f1285.js → p-3c990841.js} +2 -2
  305. package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
  306. package/dist/sankhyablocks/p-4d04bc75.entry.js +1 -0
  307. package/dist/sankhyablocks/{p-840fb68c.js → p-4f7adf97.js} +2 -2
  308. package/dist/sankhyablocks/p-554c0e54.js +1 -0
  309. package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
  310. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  311. package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
  312. package/dist/sankhyablocks/p-6e278003.js +60 -0
  313. package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
  314. package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
  315. package/dist/sankhyablocks/p-771b137e.js +1 -0
  316. package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
  317. package/dist/sankhyablocks/p-82bcb4cf.entry.js +1 -0
  318. package/dist/sankhyablocks/p-855ccf64.entry.js +1 -0
  319. package/dist/sankhyablocks/{p-118c221e.js → p-8b4d6719.js} +1 -1
  320. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
  321. package/dist/sankhyablocks/p-8fe740b7.entry.js +11 -0
  322. package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
  323. package/dist/sankhyablocks/p-95af0bb1.entry.js +1 -0
  324. package/dist/sankhyablocks/p-95b36bd3.entry.js +1 -0
  325. package/dist/sankhyablocks/{p-0b9a42ad.entry.js → p-9742ea0e.entry.js} +1 -1
  326. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
  327. package/dist/sankhyablocks/p-9e77e136.js +1 -0
  328. package/dist/sankhyablocks/p-9e7dc97d.entry.js +1 -0
  329. package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
  330. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  331. package/dist/sankhyablocks/p-a73b6b00.js +1 -0
  332. package/dist/sankhyablocks/p-a905712a.entry.js +1 -0
  333. package/dist/sankhyablocks/{p-92cfc028.js → p-ab5e12fa.js} +1 -1
  334. package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
  335. package/dist/sankhyablocks/p-af673291.js +1 -0
  336. package/dist/sankhyablocks/p-aff2d081.entry.js +1 -0
  337. package/dist/sankhyablocks/p-b0a357b4.entry.js +1 -0
  338. package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
  339. package/dist/sankhyablocks/p-bab4cde4.entry.js +1 -0
  340. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  341. package/dist/sankhyablocks/p-ca3728c0.entry.js +1 -0
  342. package/dist/sankhyablocks/p-cbb8e351.js +7 -0
  343. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
  344. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
  345. package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
  346. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
  347. package/dist/sankhyablocks/p-d9ec8c4b.entry.js +1 -0
  348. package/dist/sankhyablocks/p-da455c82.js +12 -0
  349. package/dist/sankhyablocks/p-e5a3711f.js +1 -0
  350. package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-e737fd5a.entry.js} +1 -1
  351. package/dist/sankhyablocks/p-e8df1dea.entry.js +1 -0
  352. package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
  353. package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
  354. package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
  355. package/dist/sankhyablocks/p-f1bbf065.entry.js +1 -0
  356. package/dist/sankhyablocks/p-f5ad0720.js +1 -0
  357. package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
  358. package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
  359. package/dist/sankhyablocks/p-fec88660.entry.js +1 -0
  360. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  361. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
  362. package/dist/types/components/snk-application/snk-application.d.ts +1 -1
  363. package/dist/types/components/snk-attach/snk-attach.d.ts +22 -4
  364. package/dist/types/components/snk-crud/snk-crud.d.ts +33 -11
  365. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +2 -2
  366. package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
  367. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
  368. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +13 -25
  369. package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
  370. package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
  371. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
  372. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  373. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -1
  374. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  375. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
  376. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
  377. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
  378. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
  379. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  380. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  381. package/dist/types/components/snk-form-config/snk-form-config.d.ts +2 -1
  382. package/dist/types/components/snk-grid/snk-grid.d.ts +30 -1
  383. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +11 -0
  384. package/dist/types/components/snk-image-input/snk-image-input.d.ts +57 -0
  385. package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
  386. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  387. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
  388. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
  389. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
  390. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
  391. package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
  392. package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
  393. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +32 -21
  394. package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
  395. package/dist/types/components.d.ts +347 -5
  396. package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
  397. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
  398. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -1
  399. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
  400. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
  401. package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
  402. package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
  403. package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
  404. package/package.json +7 -8
  405. package/react/components.d.ts +4 -0
  406. package/react/components.js +4 -0
  407. package/react/components.js.map +1 -1
  408. package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
  409. package/dist/cjs/taskbar-elements-fb5d1e08.js +0 -132
  410. package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
  411. package/dist/esm/snk-simple-bar.entry.js +0 -41
  412. package/dist/esm/taskbar-elements-faaf5d8f.js +0 -129
  413. package/dist/esm/taskbar-processor-3436124c.js +0 -51
  414. package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
  415. package/dist/sankhyablocks/p-0948dc0a.entry.js +0 -11
  416. package/dist/sankhyablocks/p-1a0caadb.js +0 -1
  417. package/dist/sankhyablocks/p-1a9c5684.entry.js +0 -1
  418. package/dist/sankhyablocks/p-1d589380.entry.js +0 -1
  419. package/dist/sankhyablocks/p-21107f0d.entry.js +0 -1
  420. package/dist/sankhyablocks/p-28f50632.js +0 -1
  421. package/dist/sankhyablocks/p-39be771c.js +0 -1
  422. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  423. package/dist/sankhyablocks/p-4963dd2a.entry.js +0 -1
  424. package/dist/sankhyablocks/p-51833248.js +0 -7
  425. package/dist/sankhyablocks/p-55798617.js +0 -1
  426. package/dist/sankhyablocks/p-55f6fef2.entry.js +0 -1
  427. package/dist/sankhyablocks/p-56f16390.entry.js +0 -1
  428. package/dist/sankhyablocks/p-58683e28.js +0 -60
  429. package/dist/sankhyablocks/p-5ea893c5.entry.js +0 -1
  430. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  431. package/dist/sankhyablocks/p-62aef37a.js +0 -1
  432. package/dist/sankhyablocks/p-62e9b9b8.entry.js +0 -1
  433. package/dist/sankhyablocks/p-669bb869.entry.js +0 -1
  434. package/dist/sankhyablocks/p-6ee2ca7a.entry.js +0 -1
  435. package/dist/sankhyablocks/p-7cac3870.entry.js +0 -1
  436. package/dist/sankhyablocks/p-86e54841.entry.js +0 -1
  437. package/dist/sankhyablocks/p-88b337fe.entry.js +0 -1
  438. package/dist/sankhyablocks/p-91005a00.entry.js +0 -1
  439. package/dist/sankhyablocks/p-91a9abb6.entry.js +0 -1
  440. package/dist/sankhyablocks/p-988afe78.js +0 -1
  441. package/dist/sankhyablocks/p-ada013c0.entry.js +0 -1
  442. package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
  443. package/dist/sankhyablocks/p-b987e15d.js +0 -1
  444. package/dist/sankhyablocks/p-c35fc941.js +0 -26
  445. package/dist/sankhyablocks/p-c4fcf1fb.entry.js +0 -1
  446. package/dist/sankhyablocks/p-c98c79c3.entry.js +0 -1
  447. package/dist/sankhyablocks/p-cadf4846.entry.js +0 -1
  448. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  449. package/dist/sankhyablocks/p-e91c3c57.entry.js +0 -1
  450. package/dist/sankhyablocks/p-ea729922.entry.js +0 -1
  451. package/dist/sankhyablocks/p-ec5fbad8.js +0 -1
  452. package/dist/sankhyablocks/p-f5e942b7.entry.js +0 -1
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
2
- import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, DateUtils, MaskFormatter, KeyboardManager, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
1
+ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement, i as forceUpdate } from './index-04f73a26.js';
2
+ import { DataType, StringUtils, ObjectUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, ElementIDUtils, DateUtils, MaskFormatter, KeyboardManager, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
3
3
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
4
- import { C as ConfigStorage } from './ConfigStorage-22324b6b.js';
5
- import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-76872695.js';
5
+ import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-d2439a9a.js';
6
6
  import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
7
7
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
8
8
  import { F as FilterOperand, D as DefaultFilter } from './index-8acbae97.js';
@@ -12,9 +12,10 @@ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
12
12
  import { A as ActionDefaultFilter } from './default-filters-50105e43.js';
13
13
  import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
14
14
  import { g as getInvalidFilters } from './filter-validate-faf51fa9.js';
15
- import './form-config-fetcher-8d0a5e1c.js';
16
- import './DataFetcher-450828a0.js';
15
+ import './form-config-fetcher-b44b2727.js';
16
+ import './DataFetcher-e60f8d53.js';
17
17
  import './PrintUtils-3e4ff0f5.js';
18
+ import './SnkMessageBuilder-1eb7a1af.js';
18
19
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
19
20
 
20
21
  const buildFilter = (item) => {
@@ -207,7 +208,7 @@ function buildPersonalized(item) {
207
208
  return { name: id, expression, params };
208
209
  }
209
210
 
210
- 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%}";
211
+ 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__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%}";
211
212
 
212
213
  const SnkFilterBar = class {
213
214
  constructor(hostRef) {
@@ -249,58 +250,19 @@ const SnkFilterBar = class {
249
250
  this.afterApplyConfig = undefined;
250
251
  this.filterCustomConfig = undefined;
251
252
  this.filterCustomConfigInterceptor = undefined;
253
+ this.hideFilterButton = false;
254
+ this.sizeChips = 'default';
252
255
  this.allowDefault = undefined;
253
256
  this.scrollerLocked = false;
254
257
  this.showPersonalizedFilter = false;
255
258
  this.personalizedFilterId = undefined;
256
259
  this.isFilterModalOpen = false;
257
260
  }
258
- hasValidValue(item) {
259
- if (item.value === undefined || item.value === null)
260
- return false;
261
- if (!Array.isArray(item.value))
262
- return true;
263
- return item.value.some(filterItem => filterItem.check === true);
264
- }
265
261
  observeFilterConfig(newValue, oldValue) {
266
262
  if (ObjectUtils.equals(newValue, oldValue))
267
263
  return;
268
264
  this.handleFilterConfigsChanged(oldValue, newValue);
269
265
  }
270
- handleFilterConfigsChanged(oldValue, newValue) {
271
- if (oldValue != undefined && newValue == undefined) {
272
- this._loadingPending = true;
273
- this._configUpdated = true;
274
- }
275
- else {
276
- const oldItems = new Map(oldValue ? oldValue.map(item => [item.id, item]) : undefined);
277
- if (oldItems.size === 0 && newValue.length > 0) {
278
- this._loadingPending = true;
279
- this._configUpdated = false;
280
- }
281
- else {
282
- newValue.forEach(newItem => {
283
- const oldItem = oldItems.get(newItem.id);
284
- if (oldItem != undefined) {
285
- this._configUpdated = this._configUpdated || ObjectUtils.objectToString(oldItem) != ObjectUtils.objectToString(newItem);
286
- this._loadingPending = this._loadingPending || ObjectUtils.objectToString(oldItem.value) !== ObjectUtils.objectToString(newItem.value);
287
- if (!this._loadingPending) {
288
- const groupedChanged = ObjectUtils.objectToString(oldItem.groupedItems) != ObjectUtils.objectToString(newItem.groupedItems);
289
- this._configUpdated = this._configUpdated || groupedChanged;
290
- this._loadingPending = this._loadingPending || groupedChanged;
291
- }
292
- }
293
- else {
294
- this._configUpdated = true;
295
- this._loadingPending = this._loadingPending || newItem.value != undefined;
296
- }
297
- });
298
- }
299
- }
300
- if (this._loadingPending || this._configUpdated)
301
- this.configUpdated.emit(newValue);
302
- this.processAfterUpdateConfig();
303
- }
304
266
  /**
305
267
  * @description Faz o recarregamento da barra de filtros buscando o state no servidor.
306
268
  * @async
@@ -368,11 +330,84 @@ const SnkFilterBar = class {
368
330
  this.filterConfig = this.filterConfig.filter(item => item.id !== filterID);
369
331
  return Promise.resolve(itemToRemove);
370
332
  }
371
- componentDidLoad() {
372
- if (this._element) {
373
- const dataInfo = { dataUnit: this.dataUnit };
374
- ElementIDUtils.addIDInfo(this._element, null, dataInfo);
333
+ /**
334
+ * @description Retorna os filtros ativos na barra de filtros.
335
+ * @returns {Promise<Array<Filter>>} Retorna uma Promise que resolve com a lista de filtros ativos.
336
+ */
337
+ async getFilters() {
338
+ return this.getFilter(null);
339
+ }
340
+ /**
341
+ * @description Abre o modal de filtros.
342
+ * @async
343
+ */
344
+ async showFilterModal() {
345
+ if (this.isFilterModalOpen) {
346
+ return; // Evita abrir múltiplos modais
347
+ }
348
+ this.isFilterModalOpen = true;
349
+ }
350
+ /**
351
+ * Emitido quando acontece a alteração do estado do filtro.
352
+ */
353
+ filterChangeListener(evt) {
354
+ this.updateFilter(evt.detail);
355
+ }
356
+ /**
357
+ * Escuta quando há um filtro do tipo pesquisa retorna um valor vazio.
358
+ */
359
+ async emptySearchListener(_evt) {
360
+ await this.showPersonalizedFilterItem();
361
+ }
362
+ handleFilterConfigsChanged(oldValue, newValue) {
363
+ if (oldValue != undefined && newValue == undefined) {
364
+ this._loadingPending = true;
365
+ this._configUpdated = true;
366
+ }
367
+ else {
368
+ const oldItems = new Map(oldValue ? oldValue.map(item => [item.id, item]) : undefined);
369
+ if (oldItems.size === 0 && newValue.length > 0) {
370
+ this._loadingPending = true;
371
+ this._configUpdated = false;
372
+ }
373
+ else {
374
+ newValue.forEach(newItem => {
375
+ const oldItem = oldItems.get(newItem.id);
376
+ if (oldItem != undefined) {
377
+ this._configUpdated = this._configUpdated || ObjectUtils.objectToString(oldItem) != ObjectUtils.objectToString(newItem);
378
+ this._loadingPending = this._loadingPending || ObjectUtils.objectToString(oldItem.value) !== ObjectUtils.objectToString(newItem.value);
379
+ if (!this._loadingPending) {
380
+ const groupedChanged = ObjectUtils.objectToString(oldItem.groupedItems) != ObjectUtils.objectToString(newItem.groupedItems);
381
+ this._configUpdated = this._configUpdated || groupedChanged;
382
+ this._loadingPending = this._loadingPending || groupedChanged;
383
+ }
384
+ }
385
+ else {
386
+ this._configUpdated = true;
387
+ this._loadingPending = this._loadingPending || newItem.value != undefined;
388
+ }
389
+ });
390
+ }
391
+ }
392
+ if (this._loadingPending || this._configUpdated)
393
+ this.configUpdated.emit(newValue);
394
+ this.processAfterUpdateConfig();
395
+ }
396
+ hasValidValue(item) {
397
+ var _a, _b;
398
+ if (item.value === undefined || item.value === null) {
399
+ return false;
400
+ }
401
+ if (item.type === FilterItemType.PERIOD) {
402
+ return (!!((_a = item.value) === null || _a === void 0 ? void 0 : _a.start) || !!((_b = item.value) === null || _b === void 0 ? void 0 : _b.end));
403
+ }
404
+ if (item.groupedItems) {
405
+ return true;
406
+ }
407
+ if (!Array.isArray(item.value)) {
408
+ return true;
375
409
  }
410
+ return item.value.some(filterItem => filterItem.check === true);
376
411
  }
377
412
  processPendingFilter() {
378
413
  if (this._pendingVariables) {
@@ -439,9 +474,6 @@ const SnkFilterBar = class {
439
474
  }
440
475
  return ((_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params)) || defaultValue;
441
476
  }
442
- async getFilters() {
443
- return this.getFilter(null);
444
- }
445
477
  getFilter(_dataUnit) {
446
478
  var _a;
447
479
  const filters = [];
@@ -461,7 +493,7 @@ const SnkFilterBar = class {
461
493
  if (item.type === FilterItemType.DEFAULT_FILTER) {
462
494
  return true;
463
495
  }
464
- return this.filterActiveFilter(item) && (item.groupedItems || item.value != undefined);
496
+ return this.filterActiveFilter(item) && this.hasValidValue(item);
465
497
  }
466
498
  async registryFilterProvider() {
467
499
  this.dataUnit.addFilterProvider(this);
@@ -492,7 +524,7 @@ const SnkFilterBar = class {
492
524
  .filter(this.filterPersonalizedItems)
493
525
  .map(item => {
494
526
  const itemId = `filter-${item.id}`;
495
- return (h("snk-filter-item", { key: item.id, id: itemId, config: Object.assign({}, item), onFocusin: () => this.itemFocused(itemId), onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), getMessage: (key, props) => this.getMessage(key, props), showChips: false }));
527
+ return (h("snk-filter-item", { key: item.id, id: itemId, config: Object.assign({}, item), onFocusin: () => this.itemFocused(itemId), onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), getMessage: (key, props) => this.getMessage(key, props), showChips: false, sizeChips: this.sizeChips }));
496
528
  });
497
529
  }
498
530
  getFilterItems() {
@@ -503,7 +535,7 @@ const SnkFilterBar = class {
503
535
  .forEach((item) => {
504
536
  item = ObjectUtils.copy(item);
505
537
  const itemId = `filter-${item.id}`;
506
- const filterItem = (h("snk-filter-item", { onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), onFocusin: () => this.itemFocused(itemId), id: itemId, config: item, class: "ez-margin-horizontal--extra-small", getMessage: (key, props) => this.getMessage(key, props), key: item.id }));
538
+ const filterItem = (h("snk-filter-item", { onVisibleChanged: (evt) => this.scrollerLocked = evt.detail, onFilterChange: (event) => this.updateFilter(event.detail), onFocusin: () => this.itemFocused(itemId), id: itemId, config: item, getMessage: (key, props) => this.getMessage(key, props), key: item.id, sizeChips: this.sizeChips }));
507
539
  if (item.fixed || item.hardFixed || item.required) {
508
540
  pinnedItems.push(filterItem);
509
541
  }
@@ -528,27 +560,35 @@ const SnkFilterBar = class {
528
560
  }
529
561
  normalizeItem(item) {
530
562
  const normalized = Object.assign({}, item);
563
+ const isPersonalizedFilter = item.type === FilterItemType.PERSONALIZED;
564
+ const hasNormalizedGroupedItems = (normalized.value === undefined && normalized.groupedItems);
565
+ if (isPersonalizedFilter && hasNormalizedGroupedItems) {
566
+ normalized.value = normalized.groupedItems.filter(groupItem => !!groupItem.visible).length;
567
+ }
531
568
  const optionals = ["props", "value", "hardFixed", "fixed"];
532
569
  optionals.forEach(prop => {
570
+ if (prop === "value" && isPersonalizedFilter) {
571
+ return;
572
+ }
533
573
  if (normalized[prop] == undefined) {
534
574
  delete normalized[prop];
535
575
  }
536
576
  });
537
- if (item.value === "") {
538
- delete item.value;
577
+ if (normalized.value === "" && !isPersonalizedFilter) {
578
+ delete normalized.value;
539
579
  }
540
580
  return normalized;
541
581
  }
542
582
  updateFilter(newItem) {
583
+ const normalizedNewItem = this.normalizeItem(newItem);
543
584
  let config = this.filterConfig.map(item => {
544
- newItem = this.normalizeItem(newItem);
545
- if (item.id === newItem.id) {
546
- if (ObjectUtils.objectToString(item) != ObjectUtils.objectToString(newItem)) {
547
- this.calculateUpdateSequence(newItem);
548
- }
549
- return newItem;
585
+ if (item.id !== normalizedNewItem.id) {
586
+ return item;
587
+ }
588
+ if (ObjectUtils.objectToString(item) == ObjectUtils.objectToString(normalizedNewItem)) {
589
+ this.calculateUpdateSequence(normalizedNewItem);
550
590
  }
551
- return item;
591
+ return normalizedNewItem;
552
592
  }).sort((a, b) => this._filtersComparator(a, b));
553
593
  if (this.filterCustomConfigInterceptor) {
554
594
  config = this.filterCustomConfigInterceptor(config);
@@ -613,21 +653,9 @@ const SnkFilterBar = class {
613
653
  await this.registryFilterProvider();
614
654
  }
615
655
  }
616
- /**
617
- * Emitido quando acontece a alteração do estado do filtro.
618
- */
619
- filterChangeListener(evt) {
620
- this.updateFilter(evt.detail);
621
- }
622
- /**
623
- * @description Abre o modal de filtros.
624
- * @async
625
- */
626
- async showFilterModal() {
627
- if (this.isFilterModalOpen) {
628
- return; // Evita abrir múltiplos modais
629
- }
630
- this.isFilterModalOpen = true;
656
+ async showPersonalizedFilterItem() {
657
+ const popUp = this._element.querySelector('#filter-PERSONALIZED_FILTER_GROUP');
658
+ await (popUp === null || popUp === void 0 ? void 0 : popUp.showUp(true));
631
659
  }
632
660
  addPersonalizedFilter(isDefault = false) {
633
661
  this.isFilterModalOpen = false;
@@ -702,6 +730,12 @@ const SnkFilterBar = class {
702
730
  componentDidRender() {
703
731
  this.processPendingFilter();
704
732
  }
733
+ componentDidLoad() {
734
+ if (this._element) {
735
+ const dataInfo = { dataUnit: this.dataUnit };
736
+ ElementIDUtils.addIDInfo(this._element, null, dataInfo);
737
+ }
738
+ }
705
739
  render() {
706
740
  if (!this.dataUnit || !this.filterConfig || this.filterConfig.length === 0) {
707
741
  return undefined;
@@ -714,9 +748,10 @@ const SnkFilterBar = class {
714
748
  return itemA.originOrder - itemB.originOrder;
715
749
  });
716
750
  if (this.mode !== "regular") {
717
- 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) })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
751
+ return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), (this.mode === 'button' && !this.hideFilterButton) && (h("ez-button", { variant: "secondary", mode: "icon", iconName: "filter", class: "ez-margin-left--medium ez-margin-top--extra-small", size: "small", onClick: this.showFilterModal.bind(this) })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
718
752
  }
719
- 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" })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
753
+ 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, scrollAmount: 100, navigationMode: "buttons" }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), !this.hideFilterButton &&
754
+ h("ez-button", { variant: "secondary", mode: "icon", iconName: "filter", class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
720
755
  }
721
756
  get _element() { return getElement(this); }
722
757
  static get watchers() { return {
@@ -725,7 +760,7 @@ const SnkFilterBar = class {
725
760
  };
726
761
  SnkFilterBar.style = snkFilterBarCss;
727
762
 
728
- const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}";
763
+ const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}ez-chip.sc-snk-filter-item{--ez-label-chip__label__container--margin:var(--space--4, 4px)}";
729
764
 
730
765
  const SnkFilterItem = class {
731
766
  constructor(hostRef) {
@@ -737,6 +772,7 @@ const SnkFilterItem = class {
737
772
  this.config = undefined;
738
773
  this.getMessage = undefined;
739
774
  this.showChips = true;
775
+ this.sizeChips = 'default';
740
776
  }
741
777
  observeDetailIsVisible(value) {
742
778
  this.visibleChanged.emit(value);
@@ -744,7 +780,7 @@ const SnkFilterItem = class {
744
780
  /**
745
781
  * Emitido quando o estado do filtro é alterado.
746
782
  */
747
- filterChangeListener() {
783
+ filterChangeListener(_event) {
748
784
  this.hideDetail();
749
785
  }
750
786
  /**
@@ -946,6 +982,10 @@ const SnkFilterItem = class {
946
982
  return ((_a = list === null || list === void 0 ? void 0 : list.filter((val) => val === null || val === void 0 ? void 0 : val.check)) === null || _a === void 0 ? void 0 : _a.length) > 0;
947
983
  }
948
984
  hasActiveValue(config) {
985
+ var _a, _b;
986
+ if (config.type === FilterItemType.PERIOD) {
987
+ return (!!((_a = config.value) === null || _a === void 0 ? void 0 : _a.start) || !!((_b = config.value) === null || _b === void 0 ? void 0 : _b.end));
988
+ }
949
989
  return (config.type !== FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
950
990
  }
951
991
  getEnabledChip() {
@@ -1018,7 +1058,7 @@ const SnkFilterItem = class {
1018
1058
  render() {
1019
1059
  const leftIcon = this.getLeftIconName();
1020
1060
  const { type, message } = this.getTooltipMessage();
1021
- return (h(Host, null, this.showChips && (h("ez-tooltip", { id: this.config.id, message: message, type: type, active: !this.detailIsVisible, strategy: "fixed" }, 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: this.getTypeChip(type), enabled: this.config.enabled }, 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", { ref: ref => this._filterDetail = ref, 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 && !this.config.required, removalBlocked: this.config.required }))));
1061
+ return (h(Host, null, this.showChips && (h("ez-tooltip", { id: this.config.id, message: message, type: type, active: !this.detailIsVisible, strategy: "fixed" }, h("ez-chip", { id: this.config.id, size: this.sizeChips, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true, type: this.getTypeChip(type), enabled: this.config.enabled }, 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", { ref: ref => this._filterDetail = ref, 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 && !this.config.required, removalBlocked: this.config.required }))));
1022
1062
  }
1023
1063
  get _filterItemElement() { return getElement(this); }
1024
1064
  static get watchers() { return {
@@ -1171,11 +1211,12 @@ const SnkFilterList = class {
1171
1211
  get _element() { return getElement(this); }
1172
1212
  };
1173
1213
 
1174
- const snkFilterModalCss = "ez-modal{--ez-modal-content-padding:24px 12px}.snk-filter-modal__container{min-width:344px;overflow:hidden}.snk-filter-modal__content{display:flex;flex-direction:column;gap:var(--space--medium, 12px);padding-right:var(--space--3xs, 4px)}.snk-filter-modal__collapsible-box{border:var(--border--small, 1px solid) var(--color--strokes, #DCE0E8);border-radius:var(--border--radius-medium);padding:var(--space--medium, 12px) var(--space--small, 6px)}.snk-filter-modal__rendered-items{max-height:760px}.snk-filter-modal__rendered-items::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
1214
+ const snkFilterModalCss = "ez-modal{--ez-modal-content-padding:24px 12px;--ez-modal-content-min-width:370px}.snk-filter-modal__container{min-width:344px;overflow:hidden}.snk-filter-modal__content{display:flex;flex-direction:column;gap:var(--space--medium, 12px);padding-right:var(--space--3xs, 4px)}.snk-filter-modal__collapsible-box{border:var(--border--small, 1px solid) var(--color--strokes, #DCE0E8);border-radius:var(--border--radius-medium);padding:var(--space--medium, 12px) var(--space--small, 6px)}.snk-filter-modal__rendered-items{max-height:760px}.snk-filter-modal__rendered-items::-webkit-scrollbar{width:var(--space--small\n);min-width:var(--space--small);max-width:var(--space--small)}.ez-padding-right--medium:nth-child(even){padding-right:0}";
1175
1215
 
1176
1216
  const SnkFilterModal = class {
1177
1217
  constructor(hostRef) {
1178
1218
  registerInstance(this, hostRef);
1219
+ this._isUserSup = false;
1179
1220
  this.filters = [];
1180
1221
  this.filtersWithError = [];
1181
1222
  this.getMessage = undefined;
@@ -1231,6 +1272,7 @@ const SnkFilterModal = class {
1231
1272
  this.handleClearCustomFilters(customFilters);
1232
1273
  this.handleClearOthersFilters(otherFilters);
1233
1274
  multiListFilters.forEach(multiListFilter => this.handleClearSigleFilter(multiListFilter));
1275
+ forceUpdate(this);
1234
1276
  }
1235
1277
  handleClearOthersFilters(otherFilters) {
1236
1278
  this.filters = this.filters.map(filter => otherFilters.includes(filter) ? (Object.assign(Object.assign({}, filter), { value: undefined })) : filter);
@@ -1364,7 +1406,7 @@ const SnkFilterModal = class {
1364
1406
  return false;
1365
1407
  }
1366
1408
  renderFilterItem(filterItem, fullRow) {
1367
- return (h("snk-filter-modal-item", { key: `modal-item-${filterItem.id}`, class: fullRow ? 'ez-col ez-col--sd-12' : 'ez-col ez-col--sd-6 ez-padding--small', filterItem: filterItem, configName: this.configName, onFilterChange: (event) => this.handleFilterChange(event), onEditPersonalizedFilter: evt => this.editPersonalizedFilter(evt.detail), onAddPersonalizedFilter: () => this.addPersonalizedFilter() }));
1409
+ return (h("snk-filter-modal-item", { key: `modal-item-${filterItem.id}`, class: fullRow ? 'ez-col ez-col--sd-12' : 'ez-size-width--full ez-padding-right--medium', filterItem: filterItem, configName: this.configName, onFilterChange: (event) => this.handleFilterChange(event), onEditPersonalizedFilter: evt => this.editPersonalizedFilter(evt.detail), onAddPersonalizedFilter: () => this.addPersonalizedFilter() }));
1368
1410
  }
1369
1411
  isDefaultFilterNumberVariation(filter) {
1370
1412
  var _a;
@@ -1397,12 +1439,15 @@ const SnkFilterModal = class {
1397
1439
  }
1398
1440
  renderFilterLine(filters) {
1399
1441
  const fullLine = filters.length === 1;
1442
+ if (!fullLine) {
1443
+ return (h("div", { class: "ez-col ez-col--sd-12 hydrated", "data-element-id": "snkFilterModalItem" }, h("div", { class: "ez-flex ez-flex--column grow" }, h("div", { class: "ez-col ez-col--nowrap" }, filters.map(filter => this.renderFilterItem(filter, fullLine))))));
1444
+ }
1400
1445
  return filters.map((filter) => this.renderFilterItem(filter, fullLine));
1401
1446
  }
1402
1447
  getIformedFiltersCount(listItems) {
1403
1448
  let countInformedItens = 0;
1404
1449
  listItems.forEach(localItem => {
1405
- var _a, _b, _c, _d, _e, _f;
1450
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1406
1451
  const item = this.filterConfig.find(filter => filter.id === localItem.id);
1407
1452
  if (FilterItemType.MULTI_LIST === item.type) {
1408
1453
  countInformedItens += (_e = (_d = (_c = ((_b = (_a = item.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : item.value)) === null || _c === void 0 ? void 0 : _c.filter(value => value === null || value === void 0 ? void 0 : value.check)) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0;
@@ -1414,6 +1459,12 @@ const SnkFilterModal = class {
1414
1459
  .map(([key, _]) => key).length;
1415
1460
  return;
1416
1461
  }
1462
+ if (FilterItemType.PERIOD === item.type) {
1463
+ if (!!((_g = item.value) === null || _g === void 0 ? void 0 : _g.start) || !!((_h = item.value) === null || _h === void 0 ? void 0 : _h.end)) {
1464
+ countInformedItens++;
1465
+ }
1466
+ return;
1467
+ }
1417
1468
  if (item.groupedItems != undefined) {
1418
1469
  countInformedItens = item.groupedItems.filter(item => item.visible).length;
1419
1470
  return;
@@ -1424,13 +1475,13 @@ const SnkFilterModal = class {
1424
1475
  });
1425
1476
  return countInformedItens;
1426
1477
  }
1427
- renderCollapsibleFilterBox(label, listItems, isSingleItem, shouldRenderFooter = true) {
1478
+ renderCollapsibleFilterBox({ label, listItems, isSingleItem, shouldRenderFooter = true, initializeOpen = false }) {
1428
1479
  if (!listItems.length)
1429
1480
  return null;
1430
1481
  const appliedFilters = this.getIformedFiltersCount(listItems);
1431
1482
  const lines = this.mountFiltersLines(listItems);
1432
1483
  const countFiltersWithError = this.filtersWithError.filter(item => listItems.some(filter => filter.id === item)).length;
1433
- return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: true, label: label }, h("div", { class: "ez-flex ez-flex--justify-end grow", slot: "rightSlot" }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), !!countFiltersWithError && (h("ez-badge", { class: "ez-badge--error-subtle", label: countFiltersWithError === null || countFiltersWithError === void 0 ? void 0 : countFiltersWithError.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) })))));
1484
+ return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: !initializeOpen, label: label }, h("div", { class: "ez-flex ez-flex--justify-end grow", slot: "rightSlot" }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), !!countFiltersWithError && (h("ez-badge", { class: "ez-badge--error-subtle", label: countFiltersWithError === null || countFiltersWithError === void 0 ? void 0 : countFiltersWithError.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) })))));
1434
1485
  }
1435
1486
  handleDeleteFilter() {
1436
1487
  this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
@@ -1462,8 +1513,9 @@ const SnkFilterModal = class {
1462
1513
  const defaultFilter = filters.find((item) => item.id === DefaultFilter.id);
1463
1514
  return defaultFilter;
1464
1515
  }
1465
- componentWillLoad() {
1516
+ async componentWillLoad() {
1466
1517
  this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
1518
+ this._isUserSup = await this._application.isUserSup();
1467
1519
  this.filters = ObjectUtils.copy(this.filterConfig);
1468
1520
  }
1469
1521
  componentWillRender() {
@@ -1475,11 +1527,12 @@ const SnkFilterModal = class {
1475
1527
  this.validateFilters();
1476
1528
  }
1477
1529
  render() {
1478
- this._defaultFilter = this.getDefaultFilter(this.filters);
1530
+ this._defaultFilter = this._isUserSup ? this.getDefaultFilter(this.filters) : undefined;
1479
1531
  const customFilters = this.getCustomFilter(this.filters);
1480
1532
  const quickFilters = this.filters.filter(filter => filter.filterType === FilterType.QUICK_FILTER);
1481
1533
  const otherFilters = this.filters.filter(filter => filter.filterType === FilterType.OTHER_FILTERS);
1482
- return (h("ez-modal", { opened: this.opened, modalSize: "col--sd-3", align: "right", heightMode: "full", closeEsc: true }, h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true))))));
1534
+ return (h("ez-modal", { opened: this.opened, modalSize: "col--sd-3", align: "right", heightMode: "full", closeEsc: true }, h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, this._isUserSup &&
1535
+ h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox({ label: this.getCustomMessage('customFilters'), listItems: customFilters, isSingleItem: false, shouldRenderFooter: false }), this.renderCollapsibleFilterBox({ label: this.getCustomMessage('quickFilters'), listItems: quickFilters, isSingleItem: false, shouldRenderFooter: true, initializeOpen: true }), otherFilters.map(filter => this.renderCollapsibleFilterBox({ label: filter.label, listItems: [filter], isSingleItem: true, shouldRenderFooter: true }))))));
1483
1536
  }
1484
1537
  get _element() { return getElement(this); }
1485
1538
  static get watchers() { return {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, F as Fragment, f as Host, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
4
+ import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-d2439a9a.js';
5
5
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
6
6
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
7
7
  import './index-8acbae97.js';
@@ -162,7 +162,7 @@ const SnkFilterDetail = class {
162
162
  }
163
163
  onKeyDonwListener(event) {
164
164
  if (event.key === "Enter") {
165
- this._applyButton.setFocus().then(() => this.apply());
165
+ this.apply();
166
166
  }
167
167
  }
168
168
  buildRightSlot(item) {
@@ -1,9 +1,9 @@
1
- import { h, r as registerInstance, c as createEvent, g as getElement } from './index-479e1293.js';
1
+ import { h, r as registerInstance, e as createEvent, g as getElement } from './index-04f73a26.js';
2
2
  import { S as SelectedItemType } from './index-620ac460.js';
3
3
  import { UserInterface, JSUtils, ElementIDUtils, ApplicationContext, StringUtils, DataType } from '@sankhyalabs/core';
4
4
  import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
5
5
  import { b as FilterConfigType, c as FilterEntities, d as FilterUserConfigTypes } from './index-8acbae97.js';
6
- import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
6
+ import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-d2439a9a.js';
7
7
  import './filter-item-type.enum-d45e026f.js';
8
8
 
9
9
  const ICON_MODES = {
@@ -1,12 +1,13 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
3
- import { C as ConfigStorage } from './ConfigStorage-22324b6b.js';
3
+ import { C as ConfigStorage } from './ConfigStorage-76872695.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
5
5
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
6
6
  import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
7
- import './form-config-fetcher-8d0a5e1c.js';
8
- import './DataFetcher-450828a0.js';
7
+ import './form-config-fetcher-b44b2727.js';
8
+ import './DataFetcher-e60f8d53.js';
9
9
  import './PrintUtils-3e4ff0f5.js';
10
+ import './SnkMessageBuilder-1eb7a1af.js';
10
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
12
 
12
13
  const snkFilterModalItemCss = ".grow{flex-grow:1}.gap{gap:4px}";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-04f73a26.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
4
4
  import { F as FilterNumberVariation } from './filterNumberVariation-8cee02ea.js';
@@ -20,16 +20,20 @@ const SnkFilterPeriod = class {
20
20
  /**
21
21
  * Emitido quando acontece a alteração de valor do componente snk-filter-number
22
22
  */
23
- ezChangeListener(evt) {
23
+ ezInputListener(evt) {
24
24
  this.errorMessage = undefined;
25
+ const value = evt.detail;
25
26
  if (this.getVariation() === FilterNumberVariation.INTERVAL) {
26
- const start = this._startInterval.value;
27
- const end = this._endInterval.value;
28
- this.value = (!isNaN(start) || !isNaN(end) ? { start, end } : undefined);
27
+ if (evt.target === this._startInterval && !isNaN(value)) {
28
+ this.value = Object.assign(this.value, { start: value });
29
+ }
30
+ if (evt.target === this._endInterval && !isNaN(value)) {
31
+ this.value = Object.assign(this.value, { end: value });
32
+ }
29
33
  this.valueChanged.emit(this.value);
30
34
  return;
31
35
  }
32
- this.value = evt.detail;
36
+ this.value = value;
33
37
  this.valueChanged.emit(this.value);
34
38
  }
35
39
  /**
@@ -104,7 +108,7 @@ const SnkFilterPeriod = class {
104
108
  if (this.getVariation() === FilterNumberVariation.INTERVAL) {
105
109
  return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("div", { class: "ez-col ez-col--nowrap" }, h("ez-number-input", { id: `${this.config.id}_start`, class: this.presentationMode === EPresentationMode.MODAL ? 'ez-padding-right--medium' : '', label: this._startIntervalLabel, ref: ref => this._startInterval = ref, value: this.getIntervalValue("start"), enabled: this.config.enabled, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision, errorMessage: this.errorMessage }), this.buildLabel(), h("ez-number-input", { id: `${this.config.id}_end`, label: this._endIntervalLabel, ref: ref => this._endInterval = ref, value: this.getIntervalValue("end"), enabled: this.config.enabled, precision: (_b = this.config.props) === null || _b === void 0 ? void 0 : _b.precision, errorMessage: this.errorMessage }))));
106
110
  }
107
- return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision, enabled: this.config.enabled, errorMessage: this.errorMessage })));
111
+ return (h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, h("ez-number-input", { id: this.config.id, label: this.config.label, ref: ref => this._numberElement = ref, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision, enabled: this.config.enabled, errorMessage: this.errorMessage })));
108
112
  }
109
113
  get _element() { return getElement(this); }
110
114
  };