@sankhyalabs/sankhyablocks 5.19.1 → 6.0.0

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 (298) hide show
  1. package/dist/cjs/ConfigStorage-0a738cdc.js +304 -0
  2. package/dist/cjs/IExpressionItem-1090c3fd.js +7 -0
  3. package/dist/cjs/PersonalizedFilterUtils-7d959e91.js +229 -0
  4. package/dist/cjs/{SnkFormConfigManager-69df3f74.js → SnkFormConfigManager-a583f503.js} +1 -1
  5. package/dist/cjs/{SnkMessageBuilder-3b5b5614.js → SnkMessageBuilder-8a2d3f26.js} +65 -4
  6. package/dist/cjs/{filter-bar-config-fetcher-a14536bf.js → filter-bar-config-fetcher-75219599.js} +34 -11
  7. package/dist/cjs/{index-de79181a.js → index-59a3e2de.js} +1 -1
  8. package/dist/cjs/{index-f400b1d6.js → index-614af008.js} +2 -0
  9. package/dist/cjs/{index-21bd01e1.js → index-aaaa2af5.js} +6 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/sankhyablocks.cjs.js +2 -2
  12. package/dist/cjs/snk-actions-button.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  14. package/dist/cjs/snk-application.cjs.entry.js +4 -4
  15. package/dist/cjs/snk-attach.cjs.entry.js +4 -4
  16. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  17. package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
  18. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  19. package/dist/cjs/snk-crud.cjs.entry.js +4 -4
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +4 -4
  21. package/dist/cjs/{snk-data-unit-e9c20097.js → snk-data-unit-53fc9200.js} +2 -2
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
  24. package/dist/cjs/snk-entity-list.cjs.entry.js +6 -4
  25. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  26. package/dist/cjs/snk-expression-group.cjs.entry.js +246 -0
  27. package/dist/cjs/{snk-filter-field-search_2.cjs.entry.js → snk-expression-item_3.cjs.entry.js} +327 -66
  28. package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
  29. package/dist/cjs/snk-filter-bar.cjs.entry.js +161 -72
  30. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  31. package/dist/cjs/snk-filter-detail.cjs.entry.js +54 -69
  32. package/dist/cjs/snk-filter-item.cjs.entry.js +21 -7
  33. package/dist/cjs/snk-filter-list.cjs.entry.js +1 -1
  34. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +57 -29
  35. package/dist/cjs/snk-filter-modal.cjs.entry.js +66 -12
  36. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  37. package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
  38. package/dist/cjs/snk-filter-period.cjs.entry.js +5 -3
  39. package/dist/cjs/snk-filter-personalized.cjs.entry.js +135 -55
  40. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  41. package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
  42. package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
  43. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  44. package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
  45. package/dist/cjs/snk-form.cjs.entry.js +4 -4
  46. package/dist/cjs/snk-grid-config.cjs.entry.js +3 -3
  47. package/dist/cjs/snk-grid.cjs.entry.js +7 -7
  48. package/dist/cjs/{snk-guides-viewer-c8843478.js → snk-guides-viewer-10ffca10.js} +5 -5
  49. package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
  50. package/dist/cjs/snk-personalized-filter.cjs.entry.js +166 -94
  51. package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
  52. package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
  53. package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
  54. package/dist/cjs/{snk-simple-bar_2.cjs.entry.js → snk-simple-crud.cjs.entry.js} +5 -43
  55. package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
  56. package/dist/cjs/snk-taskbar.cjs.entry.js +4 -4
  57. package/dist/cjs/{taskbar-elements-3be287d6.js → taskbar-elements-068aa945.js} +3 -3
  58. package/dist/cjs/{taskbar-processor-02f0fc84.js → taskbar-processor-6442c585.js} +1 -1
  59. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  60. package/dist/collection/collection-manifest.json +2 -1
  61. package/dist/collection/components/snk-entity-list/snk-entity-list.js +6 -4
  62. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +34 -12
  63. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +4 -2
  64. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.css +66 -0
  65. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.js +370 -0
  66. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +52 -68
  67. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +20 -6
  68. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
  69. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +110 -10
  70. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +98 -27
  71. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +21 -0
  72. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +100 -49
  73. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
  74. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +22 -3
  75. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +96 -0
  76. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +1 -1
  77. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +27 -6
  78. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +39 -2
  79. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +276 -30
  80. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
  81. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +443 -0
  82. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +16 -24
  83. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +18 -4
  84. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +131 -21
  85. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionGroup.js +0 -0
  86. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem.js +5 -1
  87. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IParameter.js +1 -0
  88. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IPersonalizedFilter.js +1 -0
  89. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/index.js +3 -0
  90. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +1 -1
  91. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +184 -15
  92. package/dist/collection/lib/@types/index.js +2 -0
  93. package/dist/collection/lib/configs/ConfigStorage.js +15 -0
  94. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +36 -13
  95. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +106 -4
  96. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +15 -2
  97. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +2 -0
  98. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +48 -2
  99. package/dist/components/ConfigStorage.js +180 -1
  100. package/dist/components/PersonalizedFilterUtils.js +227 -0
  101. package/dist/components/SnkMessageBuilder.js +65 -4
  102. package/dist/components/filter-bar-config-fetcher.js +34 -11
  103. package/dist/components/index.d.ts +2 -1
  104. package/dist/components/index.js +1 -0
  105. package/dist/components/index2.js +3 -1
  106. package/dist/components/snk-crud.js +65 -35
  107. package/dist/components/snk-data-exporter2.js +1 -1
  108. package/dist/components/snk-detail-view2.js +99 -44
  109. package/dist/components/snk-entity-list.js +6 -4
  110. package/dist/components/snk-expression-group.d.ts +11 -0
  111. package/dist/components/snk-expression-group.js +6 -0
  112. package/dist/components/snk-expression-group2.js +296 -0
  113. package/dist/components/snk-expression-item2.js +133 -46
  114. package/dist/components/snk-filter-bar2.js +195 -68
  115. package/dist/components/snk-filter-detail2.js +52 -68
  116. package/dist/components/snk-filter-field-search2.js +26 -5
  117. package/dist/components/snk-filter-item2.js +20 -6
  118. package/dist/components/snk-filter-modal-item2.js +54 -27
  119. package/dist/components/snk-filter-modal.js +68 -12
  120. package/dist/components/snk-filter-param-config2.js +3 -57
  121. package/dist/components/snk-filter-period.js +4 -2
  122. package/dist/components/snk-filter-personalized.js +139 -58
  123. package/dist/components/snk-grid2.js +52 -16
  124. package/dist/components/snk-personalized-filter.js +1 -153
  125. package/dist/components/snk-personalized-filter2.js +238 -0
  126. package/dist/esm/ConfigStorage-9f4d2e67.js +300 -0
  127. package/dist/esm/IExpressionItem-2e922b2c.js +7 -0
  128. package/dist/esm/PersonalizedFilterUtils-202cd721.js +227 -0
  129. package/dist/esm/{SnkFormConfigManager-e60367a0.js → SnkFormConfigManager-def999fe.js} +1 -1
  130. package/dist/esm/{SnkMessageBuilder-188a38bb.js → SnkMessageBuilder-cc4d1599.js} +65 -4
  131. package/dist/esm/{filter-bar-config-fetcher-edc48f4b.js → filter-bar-config-fetcher-bd2070a3.js} +34 -11
  132. package/dist/esm/{index-cfd4bb13.js → index-8c3d76a6.js} +6 -1
  133. package/dist/esm/{index-507e19ec.js → index-a255b326.js} +3 -1
  134. package/dist/esm/{index-8efbf198.js → index-d60ca0ac.js} +1 -1
  135. package/dist/esm/loader.js +3 -3
  136. package/dist/esm/sankhyablocks.js +3 -3
  137. package/dist/esm/snk-actions-button.entry.js +2 -2
  138. package/dist/esm/snk-actions-form.entry.js +1 -1
  139. package/dist/esm/snk-application.entry.js +4 -4
  140. package/dist/esm/snk-attach.entry.js +4 -4
  141. package/dist/esm/snk-client-confirm.entry.js +1 -1
  142. package/dist/esm/snk-config-options.entry.js +1 -1
  143. package/dist/esm/snk-configurator.entry.js +1 -1
  144. package/dist/esm/snk-crud.entry.js +4 -4
  145. package/dist/esm/snk-data-exporter.entry.js +4 -4
  146. package/dist/esm/{snk-data-unit-79b1583a.js → snk-data-unit-97824457.js} +2 -2
  147. package/dist/esm/snk-data-unit.entry.js +3 -3
  148. package/dist/esm/snk-detail-view.entry.js +10 -10
  149. package/dist/esm/snk-entity-list.entry.js +7 -5
  150. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  151. package/dist/esm/snk-expression-group.entry.js +242 -0
  152. package/dist/esm/{snk-filter-field-search_2.entry.js → snk-expression-item_3.entry.js} +326 -66
  153. package/dist/esm/snk-field-config.entry.js +1 -1
  154. package/dist/esm/snk-filter-bar.entry.js +156 -67
  155. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  156. package/dist/esm/snk-filter-detail.entry.js +55 -70
  157. package/dist/esm/snk-filter-item.entry.js +21 -7
  158. package/dist/esm/snk-filter-list.entry.js +1 -1
  159. package/dist/esm/snk-filter-modal-item.entry.js +57 -29
  160. package/dist/esm/snk-filter-modal.entry.js +66 -12
  161. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  162. package/dist/esm/snk-filter-number.entry.js +1 -1
  163. package/dist/esm/snk-filter-period.entry.js +5 -3
  164. package/dist/esm/snk-filter-personalized.entry.js +135 -55
  165. package/dist/esm/snk-filter-search.entry.js +1 -1
  166. package/dist/esm/snk-filter-text.entry.js +1 -1
  167. package/dist/esm/snk-form-config.entry.js +1 -1
  168. package/dist/esm/snk-form-summary.entry.js +1 -1
  169. package/dist/esm/snk-form-view.entry.js +1 -1
  170. package/dist/esm/snk-form.entry.js +4 -4
  171. package/dist/esm/snk-grid-config.entry.js +3 -3
  172. package/dist/esm/snk-grid.entry.js +7 -7
  173. package/dist/esm/{snk-guides-viewer-59d3a78c.js → snk-guides-viewer-0380f3df.js} +5 -5
  174. package/dist/esm/snk-guides-viewer.entry.js +9 -9
  175. package/dist/esm/snk-personalized-filter.entry.js +166 -94
  176. package/dist/esm/snk-pesquisa.entry.js +1 -1
  177. package/dist/esm/snk-select-box.entry.js +1 -1
  178. package/dist/esm/snk-simple-bar.entry.js +41 -0
  179. package/dist/esm/{snk-simple-bar_2.entry.js → snk-simple-crud.entry.js} +7 -44
  180. package/dist/esm/snk-tab-config.entry.js +1 -1
  181. package/dist/esm/snk-taskbar.entry.js +4 -4
  182. package/dist/esm/{taskbar-elements-8ff33c26.js → taskbar-elements-26d0fba3.js} +3 -3
  183. package/dist/esm/{taskbar-processor-20de6616.js → taskbar-processor-dfef41a8.js} +1 -1
  184. package/dist/esm/teste-pesquisa.entry.js +1 -1
  185. package/dist/sankhyablocks/{p-f27dc5e9.entry.js → p-00d1cac4.entry.js} +1 -1
  186. package/dist/sankhyablocks/{p-b9667fbe.js → p-066ee142.js} +2 -2
  187. package/dist/sankhyablocks/p-09a058ba.entry.js +1 -0
  188. package/dist/sankhyablocks/{p-82bc4666.entry.js → p-0dec4d29.entry.js} +1 -1
  189. package/dist/sankhyablocks/{p-1e6a95f5.entry.js → p-12632b8e.entry.js} +1 -1
  190. package/dist/sankhyablocks/{p-384c4a6b.js → p-18b34bb4.js} +1 -1
  191. package/dist/sankhyablocks/{p-538c057a.entry.js → p-2ad89e28.entry.js} +1 -1
  192. package/dist/sankhyablocks/p-2d5108b3.js +1 -0
  193. package/dist/sankhyablocks/{p-ff398057.entry.js → p-34cd4b39.entry.js} +1 -1
  194. package/dist/sankhyablocks/p-36ecb6ab.js +1 -0
  195. package/dist/sankhyablocks/p-372e0185.entry.js +1 -0
  196. package/dist/sankhyablocks/p-3be34bd1.entry.js +1 -0
  197. package/dist/sankhyablocks/p-3d45107f.js +1 -0
  198. package/dist/sankhyablocks/{p-28c12f65.js → p-463e0936.js} +1 -1
  199. package/dist/sankhyablocks/{p-e701646c.entry.js → p-49d628d1.entry.js} +1 -1
  200. package/dist/sankhyablocks/{p-e642bf7a.entry.js → p-50db4bc4.entry.js} +1 -1
  201. package/dist/sankhyablocks/{p-093febff.entry.js → p-5427566a.entry.js} +1 -1
  202. package/dist/sankhyablocks/{p-6a02e236.js → p-590d8900.js} +1 -1
  203. package/dist/sankhyablocks/p-5a6c090e.entry.js +1 -0
  204. package/dist/sankhyablocks/p-639be4aa.entry.js +1 -0
  205. package/dist/sankhyablocks/{p-e2bb9c9a.entry.js → p-67a19b48.entry.js} +1 -1
  206. package/dist/sankhyablocks/{p-19692f92.js → p-69770075.js} +1 -1
  207. package/dist/sankhyablocks/p-6d4169fc.entry.js +1 -0
  208. package/dist/sankhyablocks/{p-0b40c655.js → p-708ee8ee.js} +1 -1
  209. package/dist/sankhyablocks/{p-9af04fc7.entry.js → p-718cc24b.entry.js} +1 -1
  210. package/dist/sankhyablocks/{p-2d0fc912.entry.js → p-7946512f.entry.js} +1 -1
  211. package/dist/sankhyablocks/{p-900b2889.entry.js → p-7a5e1be7.entry.js} +1 -1
  212. package/dist/sankhyablocks/p-801b8858.js +68 -0
  213. package/dist/sankhyablocks/{p-80e52e85.entry.js → p-847b9506.entry.js} +1 -1
  214. package/dist/sankhyablocks/{p-56d70073.entry.js → p-8d541539.entry.js} +1 -1
  215. package/dist/sankhyablocks/{p-584a315a.entry.js → p-8e98a893.entry.js} +1 -1
  216. package/dist/sankhyablocks/p-9731180c.entry.js +1 -0
  217. package/dist/sankhyablocks/p-a6055eb9.entry.js +1 -0
  218. package/dist/sankhyablocks/{p-b680fa7a.entry.js → p-a655ea15.entry.js} +1 -1
  219. package/dist/sankhyablocks/{p-eae124e3.entry.js → p-a8b06801.entry.js} +1 -1
  220. package/dist/sankhyablocks/{p-b25450ab.js → p-a8e5ded0.js} +1 -1
  221. package/dist/sankhyablocks/{p-6ac29569.entry.js → p-b66b99d9.entry.js} +1 -1
  222. package/dist/sankhyablocks/p-b7efc49a.entry.js +1 -0
  223. package/dist/sankhyablocks/{p-9c7f7214.entry.js → p-b91ee370.entry.js} +1 -1
  224. package/dist/sankhyablocks/{p-e551b19a.entry.js → p-b940798f.entry.js} +1 -1
  225. package/dist/sankhyablocks/{p-72e78de0.entry.js → p-bbefb3b2.entry.js} +1 -1
  226. package/dist/sankhyablocks/p-bdd61fa8.entry.js +1 -0
  227. package/dist/sankhyablocks/{p-f8c66aa3.entry.js → p-c06973e7.entry.js} +1 -1
  228. package/dist/sankhyablocks/{p-257c71a7.entry.js → p-c17e19a2.entry.js} +1 -1
  229. package/dist/sankhyablocks/p-c6bf66e0.js +1 -0
  230. package/dist/sankhyablocks/p-cf90a195.entry.js +1 -0
  231. package/dist/sankhyablocks/{p-44c2ed16.entry.js → p-d11c5026.entry.js} +1 -1
  232. package/dist/sankhyablocks/p-d5145c3f.entry.js +1 -0
  233. package/dist/sankhyablocks/p-de328b00.entry.js +1 -0
  234. package/dist/sankhyablocks/{p-971abcc2.entry.js → p-e500863b.entry.js} +1 -1
  235. package/dist/sankhyablocks/{p-22e44b9d.entry.js → p-e824aef2.entry.js} +1 -1
  236. package/dist/sankhyablocks/{p-4ce96831.entry.js → p-eb24c092.entry.js} +1 -1
  237. package/dist/sankhyablocks/{p-4c2015a9.js → p-eb90de43.js} +1 -1
  238. package/dist/sankhyablocks/p-ebb8de34.entry.js +1 -0
  239. package/dist/sankhyablocks/{p-8652d177.entry.js → p-fc512cbe.entry.js} +1 -1
  240. package/dist/sankhyablocks/{p-786ae316.entry.js → p-fced1d89.entry.js} +1 -1
  241. package/dist/sankhyablocks/{p-e0b4aec3.entry.js → p-fdb43927.entry.js} +1 -1
  242. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  243. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized.d.ts +85 -0
  244. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +6 -6
  245. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  246. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +18 -1
  247. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +14 -6
  248. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +10 -3
  249. package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
  250. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +10 -1
  251. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +92 -15
  252. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +5 -11
  253. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +3 -0
  254. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +39 -6
  255. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +82 -0
  256. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +1 -1
  257. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +13 -1
  258. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionGroup.d.ts +0 -0
  259. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IExpressionItem.d.ts +23 -3
  260. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IParameter.d.ts +21 -0
  261. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/IPersonalizedFilter.d.ts +11 -0
  262. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/interfaces/index.d.ts +3 -0
  263. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +14 -2
  264. package/dist/types/components.d.ts +169 -10
  265. package/dist/types/lib/@types/index.d.ts +3 -1
  266. package/dist/types/lib/configs/ConfigStorage.d.ts +5 -0
  267. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +4 -2
  268. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +5 -0
  269. package/dist/types/lib/store/index.d.ts +1 -2
  270. package/package.json +5 -5
  271. package/react/components.d.ts +1 -0
  272. package/react/components.js +1 -0
  273. package/react/components.js.map +1 -1
  274. package/dist/cjs/ConfigStorage-f68c3607.js +0 -124
  275. package/dist/cjs/index-8d94b7e0.js +0 -7
  276. package/dist/cjs/snk-expression-item.cjs.entry.js +0 -213
  277. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +0 -214
  278. package/dist/esm/ConfigStorage-e6c17998.js +0 -121
  279. package/dist/esm/index-620ac460.js +0 -7
  280. package/dist/esm/snk-expression-item.entry.js +0 -209
  281. package/dist/sankhyablocks/p-0b6ddb67.entry.js +0 -1
  282. package/dist/sankhyablocks/p-0c2afa63.entry.js +0 -1
  283. package/dist/sankhyablocks/p-343699ad.entry.js +0 -1
  284. package/dist/sankhyablocks/p-471568c7.entry.js +0 -1
  285. package/dist/sankhyablocks/p-6c2c71ca.js +0 -1
  286. package/dist/sankhyablocks/p-8ce9ea9f.entry.js +0 -1
  287. package/dist/sankhyablocks/p-8efb0f47.entry.js +0 -1
  288. package/dist/sankhyablocks/p-9a448ff9.entry.js +0 -1
  289. package/dist/sankhyablocks/p-9e50681c.entry.js +0 -1
  290. package/dist/sankhyablocks/p-9f66bc54.entry.js +0 -1
  291. package/dist/sankhyablocks/p-b1c02726.js +0 -1
  292. package/dist/sankhyablocks/p-b34d23fa.js +0 -1
  293. package/dist/sankhyablocks/p-c20dd153.entry.js +0 -1
  294. package/dist/sankhyablocks/p-cbb5c440.entry.js +0 -1
  295. package/dist/sankhyablocks/p-f3241ada.entry.js +0 -1
  296. package/dist/sankhyablocks/p-f4184ce7.js +0 -1
  297. package/dist/sankhyablocks/p-ff96b509.entry.js +0 -27
  298. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +0 -40
@@ -0,0 +1,227 @@
1
+ import { DataType, NumberUtils, DateUtils, UserInterface } from '@sankhyalabs/core';
2
+ import { F as FilterOperand } from './index2.js';
3
+ import { F as FilterItemType } from './filter-item-type.enum.js';
4
+
5
+ class PersonalizedFilterUtils {
6
+ /**
7
+ * Cria uma expressão de filtro a partir de um IExpressionItem.
8
+ * @param expressionItem - Objeto com os parâmetros necessários para montar a expressão.
9
+ * @returns Retorna a expressão de filtro.
10
+ */
11
+ static buildFilterExpression(expressionItem, ignoreInvalidExpressions = false) {
12
+ if (expressionItem == undefined) {
13
+ return;
14
+ }
15
+ if (!this.validateExpressionItem(expressionItem) && ignoreInvalidExpressions) {
16
+ return "";
17
+ }
18
+ let value = this.buildVariableParameterValue(expressionItem);
19
+ let expression = expressionItem.expression || "";
20
+ let commas = "'";
21
+ if (expressionItem.paramVariable) {
22
+ commas = "";
23
+ }
24
+ switch (expressionItem.operand) {
25
+ case "IN":
26
+ expression += ` ${FilterOperand[expressionItem.operand]} (${value})`;
27
+ break;
28
+ case "NULL":
29
+ case "NOT_NULL":
30
+ expression += ` IS ${FilterOperand[expressionItem.operand]}`;
31
+ break;
32
+ case "LIKE":
33
+ expression += ` LIKE ${commas}%${value}%${commas}`;
34
+ break;
35
+ case "START_WITH":
36
+ expression += ` LIKE ${commas}${value}%${commas}`;
37
+ break;
38
+ case "FINISHED_WITH":
39
+ expression += ` LIKE ${commas}%${value}${commas}`;
40
+ break;
41
+ default:
42
+ value = isNaN(value) ? `${commas}${value}${commas}` : value;
43
+ expression += ` ${FilterOperand[expressionItem.operand]} ${value}`;
44
+ }
45
+ return expression;
46
+ }
47
+ /**
48
+ * Obtém o valor do parâmetro a partir de um IExpressionItem.
49
+ * @param expressionItem - Objeto com os parâmetros necessários para montar a expressão.
50
+ * @returns Retorna o valor do parâmetro.
51
+ */
52
+ static buildVariableParameterValue(expressionItem) {
53
+ var _a;
54
+ if (expressionItem == undefined)
55
+ return;
56
+ if (expressionItem.paramVariable) {
57
+ return this.proccessVarialbeParameter(expressionItem);
58
+ }
59
+ if (expressionItem.operand !== FilterOperand.NULL && expressionItem.operand !== "NOT_NULL") {
60
+ let value = expressionItem.value;
61
+ const type = expressionItem.type;
62
+ /*
63
+ Precisamos validar o expressionItem.userInterface além do expressionItem.type
64
+ pois para filtros herdados do HTML5 não temos o tipo OBJECT, fazendo com que a expressão
65
+ fique inválida para campos do tipo pesquisa.
66
+ */
67
+ if (UserInterface.SEARCH === expressionItem.userInterface || DataType.OBJECT == type) {
68
+ value = (_a = value === null || value === void 0 ? void 0 : value.value) !== null && _a !== void 0 ? _a : value;
69
+ }
70
+ if (DataType.NUMBER == type && value != undefined) {
71
+ value = NumberUtils.stringToNumber(value);
72
+ this.checkIsValidNumber(value);
73
+ }
74
+ else if (DataType.DATE == type) {
75
+ value = this.convertDataValue(value);
76
+ }
77
+ else if (DataType.BOOLEAN == type) {
78
+ value = value ? "S" : "N";
79
+ }
80
+ return value;
81
+ }
82
+ return expressionItem.operand;
83
+ }
84
+ static checkIsValidNumber(value) {
85
+ if (isNaN(value)) {
86
+ throw new Error('O valor informado não é um número válido.');
87
+ }
88
+ }
89
+ static proccessVarialbeParameter(expressionItem) {
90
+ if (expressionItem.systemConfig != undefined) {
91
+ const systemConfig = expressionItem.systemConfig;
92
+ return `?:{entidade=${systemConfig.entity || ""};campo=${systemConfig.fieldName || ""}}`;
93
+ }
94
+ if (expressionItem.userConfig != undefined) {
95
+ const userConfig = expressionItem.userConfig;
96
+ return `?:{desc=${userConfig.description || ""};tipo=${userConfig.type || ""}}`;
97
+ }
98
+ return `?:{entidade=${expressionItem.entityName || ""};campo=${expressionItem.fieldName || ""}}`;
99
+ }
100
+ static convertDataValue(value) {
101
+ if (typeof value == 'string') {
102
+ value = new Date(value);
103
+ }
104
+ return DateUtils.formatDate(value);
105
+ }
106
+ /*
107
+ * Cria uma expressão de filtro para um grupo de itens.
108
+ */
109
+ static buildGroupExpression(expressionGroup, ignoreInvalidExpressions = false) {
110
+ var _a, _b;
111
+ if (!((_a = expressionGroup === null || expressionGroup === void 0 ? void 0 : expressionGroup.items) === null || _a === void 0 ? void 0 : _a.length))
112
+ return "";
113
+ const itemExpressions = expressionGroup.items.map((item) => this.buildFilterExpression(item, ignoreInvalidExpressions)).join(` ${expressionGroup.operand} `);
114
+ if (((_b = expressionGroup === null || expressionGroup === void 0 ? void 0 : expressionGroup.childrenGroups) === null || _b === void 0 ? void 0 : _b.length) > 0) {
115
+ const childGroupExpressions = expressionGroup.childrenGroups.map((children) => this.buildGroupExpression(children)).join(` ${expressionGroup.operand} `);
116
+ return `(${itemExpressions} ${expressionGroup.operand} (${childGroupExpressions}))`;
117
+ }
118
+ return `(${itemExpressions})`;
119
+ }
120
+ /*
121
+ * Valida se os campos das expressão estão válidas para serem criada ou editada.
122
+ */
123
+ static validateFields(expressionGroup) {
124
+ const allItems = this.buildPlainExpressionItems(expressionGroup);
125
+ for (const item of allItems) {
126
+ const isValidItem = this.validateExpressionItem(item);
127
+ if (!isValidItem) {
128
+ return false;
129
+ }
130
+ }
131
+ return true;
132
+ }
133
+ static buildPlainExpressionItems(expressionGroup) {
134
+ const { items = [], childrenGroups = [] } = expressionGroup || {};
135
+ const getItemsFromChildren = (childrenGroup) => {
136
+ return childrenGroup.reduce((listAcc, children) => {
137
+ var _a;
138
+ if (children.items)
139
+ listAcc = listAcc.concat(children.items);
140
+ if ((_a = children.childrenGroups) === null || _a === void 0 ? void 0 : _a.length) {
141
+ listAcc = listAcc.concat(getItemsFromChildren(children.childrenGroups));
142
+ }
143
+ return listAcc;
144
+ }, []);
145
+ };
146
+ return items.concat(getItemsFromChildren(childrenGroups));
147
+ }
148
+ static validateExpressionItem(expressionItem) {
149
+ const requiredFields = {
150
+ fieldName: (value) => !!value,
151
+ value: (value, byPassValue) => {
152
+ if (byPassValue)
153
+ return true;
154
+ return !!value;
155
+ },
156
+ operand: (value) => !!value
157
+ };
158
+ const isAllValidFields = Object.entries(requiredFields).every(entries => {
159
+ const [fieldName, validate] = entries;
160
+ const byPassValue = expressionItem.paramVariable || expressionItem.userInterface === 'SWITCH' || ["NULL", "NOT_NULL"].includes(expressionItem.operand);
161
+ return validate(expressionItem[fieldName], byPassValue);
162
+ });
163
+ return isAllValidFields;
164
+ }
165
+ static getNormalizedValue(params, value) {
166
+ return params.reduce((arrayValues, currentParam, index) => {
167
+ if (currentParam.dataType === DataType.BOOLEAN && (arrayValues == undefined || arrayValues[index] == undefined)) {
168
+ arrayValues = !!arrayValues && !Array.isArray(arrayValues) ? [arrayValues] : arrayValues || [];
169
+ arrayValues[index] = false;
170
+ }
171
+ return arrayValues;
172
+ }, value);
173
+ }
174
+ /*
175
+ * Valida se os filtros personalizados com campo variável são válido.
176
+ */
177
+ static validateVariableValues(config, editorValue) {
178
+ if (!config)
179
+ return true;
180
+ let valuesArray = editorValue || config.value;
181
+ let isValid = true;
182
+ if (config.type === FilterItemType.PERSONALIZED) {
183
+ const activeFilters = (config.groupedItems || []).filter(item => item.visible);
184
+ const allFilterWithVariableParams = activeFilters.filter(activeFilter => { var _a, _b, _c; return !!((_c = (_b = (_a = activeFilter.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters) === null || _c === void 0 ? void 0 : _c.length); });
185
+ const allParamsWithValues = allFilterWithVariableParams.flatMap(filter => { var _a; return (_a = filter.props.personalizedFilter) === null || _a === void 0 ? void 0 : _a.parameters; });
186
+ const valuesFromParams = allFilterWithVariableParams.flatMap(filter => {
187
+ const isBoolean = filter.props.personalizedFilter.parameters[0].dataType === DataType.BOOLEAN;
188
+ return isBoolean ? false : filter.value;
189
+ });
190
+ valuesArray = this.getNormalizedValue(allParamsWithValues, valuesArray);
191
+ isValid = allParamsWithValues.length === valuesFromParams.length && valuesFromParams.every(value => value != null);
192
+ }
193
+ return isValid;
194
+ }
195
+ /*
196
+ * Constroi uma lista parâmetros para todos os itens de grupos e subgrupos que são
197
+ * do tipo variavel;
198
+ */
199
+ static buildVariableParameters(expressionGroup) {
200
+ var _a, _b, _c, _d;
201
+ const allItems = this.buildPlainExpressionItems(expressionGroup);
202
+ const allParams = [];
203
+ for (const item of allItems) {
204
+ if (!item.paramVariable) {
205
+ continue;
206
+ }
207
+ allParams.push({
208
+ entityName: item.entityName,
209
+ fieldName: item.fieldName,
210
+ dataType: item.type,
211
+ description: item.description,
212
+ userInterface: item.userInterface,
213
+ label: item.fieldLabel,
214
+ searchContext: {
215
+ entity: (_b = (_a = item.props) === null || _a === void 0 ? void 0 : _a.find(prop => prop.name == "ENTITYNAME")) === null || _b === void 0 ? void 0 : _b.value,
216
+ entityDescription: (_d = (_c = item.props) === null || _c === void 0 ? void 0 : _c.find(prop => prop.name == "DESCRIPTIONENTITY")) === null || _d === void 0 ? void 0 : _d.value,
217
+ searchOptions: {
218
+ showInactives: false
219
+ }
220
+ }
221
+ });
222
+ }
223
+ return allParams;
224
+ }
225
+ }
226
+
227
+ export { PersonalizedFilterUtils as P };
@@ -55,6 +55,8 @@ const snkFilterBarMessages = {
55
55
  "modalPersonalizedFilterTitle": "Filtro personalizado",
56
56
  "modalPersonalizedFilterSubTitle": "Gerencie seus filtros",
57
57
  "modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
58
+ "modalInfoTextCreateFilter": "Criar filtro personalizado",
59
+ "modalInfoTextNoFilterRegister": "Você não possui filtros cadastrados.",
58
60
  "modalOkButtonLabel": "Aplicar",
59
61
  "modalCancelButtonLabel": "Limpar",
60
62
  "binarySelectTooltip": "Exibindo registros",
@@ -65,13 +67,24 @@ const snkFilterBarMessages = {
65
67
  "labelStartDatePeriod": "Inicial",
66
68
  "labelEndDatePeriod": "Final",
67
69
  "filters": "Filtros",
70
+ "personalizedCount": "{{activeCount}} selecionado(s)",
68
71
  "filterModal": {
69
72
  "title": "Filtros",
70
73
  "okButtonLabel": "Aplicar",
71
74
  "cancelButtonLabel": "Limpar tudo",
72
75
  "customFilters": "Filtros personalizados",
73
- "quickFilters": "Filtros rápidos"
74
- }
76
+ "quickFilters": "Filtros rápidos",
77
+ "validations": {
78
+ "notFullFilled": {
79
+ "title": "Filtro parcialmente preenchido",
80
+ "message": "Favor completar todas as informações do filtro."
81
+ },
82
+ "notSaved": {
83
+ "title": "Atenção",
84
+ "message": "As alterações realizadas não serão aplicadas.<br/><br/><b>Deseja mesmo continuar?</b>"
85
+ }
86
+ }
87
+ },
75
88
  };
76
89
 
77
90
  const snkTaskbarMessages = {
@@ -292,6 +305,8 @@ const snkFilterFieldSearchMessages = {
292
305
  searchLabel: "Buscar campo",
293
306
  fieldLabel: "Campos de {{link}}",
294
307
  linkLabel: "Categorias de {{link}}",
308
+ groupEmpty: "Não há categorias para seleção",
309
+ searchEmpty: "Nenhum resultado encontrado"
295
310
  };
296
311
 
297
312
  const snkSimpleBarMessages = {
@@ -327,14 +342,60 @@ const snkAttachMessages = {
327
342
 
328
343
  const snkPersonalizedFilterMessages = {
329
344
  info: {
345
+ titleEdit: "Editar filtro personalizado",
346
+ titleAdd: "Criar filtro personalizado",
347
+ titleCollapsible: "Expressão a ser aplicada (gerada pelo assistente)",
330
348
  labelSearchField: "Buscar campo",
331
349
  labelOperator: "Operador",
332
350
  labelValueVarible: "Valor variável",
333
- titleTooltip: "Ao ativar um valor variável, é possível inserir um valor diferente sempre que o filtro for aplicado"
351
+ titleTooltip: "Ao ativar um valor variável, é possível inserir um valor diferente sempre que o filtro for aplicado",
352
+ labelAddNewExpression: "Adicionar nova linha de expressão",
353
+ labelDeleteExpression: "Remover expressão",
354
+ labelDeleteItem: "Remover item",
355
+ labelDisabledAddGroupButton: "Filtros Personalizados possuem um limite de {{LIMIT_GROUP_LEVEL}} Grupos de Condições e Valores",
356
+ labelDisabledAddExpressionButton: "Preencha campos obrigatórios ou indique valores variáveis nas expressões do grupo antes de adicionar mais itens",
357
+ labelCancel: "Cancelar",
358
+ labelSave: "Salvar",
359
+ labelNameFilter: "Nome do filtro",
360
+ labelExpression: "Expressão SQL",
361
+ badgeVariable: "variável",
362
+ noDataFound: "Nenhum filtro encontrado"
334
363
  },
335
- confirm: {
364
+ confirmExpression: {
336
365
  title: "Aviso",
337
366
  description: `As informações da condição serão descartadas.</br></br><b>Gostaria de continuar?</b>`
367
+ },
368
+ confirmGroup: {
369
+ title: "Aviso",
370
+ description: `As informações do Grupo e suas Condições serão descartadas.</br></br><b>Gostaria de continuar?</b>`
371
+ },
372
+ confirmCancel: {
373
+ title: "Aviso",
374
+ description: `As alterações realizadas serão descartadas.</br></br><b>Gostaria de continuar?</b>`
375
+ },
376
+ operador: {
377
+ firstLevel: "A seleção será habilitada a partir da adição da segunda linha de regras.",
378
+ and: "Será verdadeiro se todas as condições forem obedecidas.",
379
+ or: "Será verdadeiro se qualquer uma das condições for obedecida."
380
+ },
381
+ error: {
382
+ title: "Atenção",
383
+ description: "Há pelo menos um campo obrigatório não preenchido."
384
+ },
385
+ confirmSave: {
386
+ title: "O filtro <b>{{name}}</b> foi salvo com sucesso"
387
+ },
388
+ deleteConfirm: {
389
+ title: "Aviso",
390
+ message: "Deseja realmente excluir o filtro '{{filterName}}'?"
391
+ },
392
+ listActions: {
393
+ edit: "Editar",
394
+ delete: "Excluir"
395
+ },
396
+ footerActions: {
397
+ clear: "Limpar",
398
+ create: "Criar filtro"
338
399
  }
339
400
  };
340
401
 
@@ -45,9 +45,9 @@ function normalizeValue(value, type) {
45
45
  return value;
46
46
  }
47
47
  class FilterBarConfigFetcher extends ResourceFetcher {
48
- saveConfig(items, resourceID, configName) {
49
- const state = items.map(item => {
50
- const { id, value, fixed, visible, type } = item;
48
+ normalize(items) {
49
+ return items.map(item => {
50
+ const { id, value, fixed, visible, type, groupedItems } = item;
51
51
  const stateItem = { id };
52
52
  if (value) {
53
53
  stateItem["value"] = normalizeValue(value, type);
@@ -55,12 +55,25 @@ class FilterBarConfigFetcher extends ResourceFetcher {
55
55
  if (fixed) {
56
56
  stateItem["fixed"] = fixed;
57
57
  }
58
- if (visible) {
59
- stateItem["visible"] = true;
58
+ if (groupedItems) {
59
+ if (groupedItems.length === 0) {
60
+ return;
61
+ }
62
+ if (groupedItems.filter(item => item.visible).length > 0) {
63
+ stateItem["visible"] = true;
64
+ }
65
+ stateItem["groupedItems"] = this.normalize(groupedItems);
66
+ }
67
+ else {
68
+ if (visible) {
69
+ stateItem["visible"] = true;
70
+ }
60
71
  }
61
72
  return stateItem;
62
- });
63
- return this.saveResource(state, this.getPath(resourceID, configName));
73
+ }).filter(item => item != undefined);
74
+ }
75
+ saveConfig(items, resourceID, configName) {
76
+ return this.saveResource(this.normalize(items), this.getPath(resourceID, configName));
64
77
  }
65
78
  getConfig(resourceID, configName) {
66
79
  return new Promise((accept, reject) => {
@@ -69,7 +82,7 @@ class FilterBarConfigFetcher extends ResourceFetcher {
69
82
  let fieldsList;
70
83
  if (configAsString) {
71
84
  const filterBarConfig = JSON.parse(configAsString);
72
- fieldsList = filterBarConfig.items;
85
+ fieldsList = this.buildFieldList(filterBarConfig.items);
73
86
  }
74
87
  accept(fieldsList || []);
75
88
  })
@@ -81,8 +94,8 @@ class FilterBarConfigFetcher extends ResourceFetcher {
81
94
  saveEntityListConfig(item, resourceID, configName) {
82
95
  return new Promise((accept, reject) => {
83
96
  this.getConfig(resourceID, configName).then(config => {
84
- const state = config.map(({ id, value, fixed, visible, type }) => {
85
- return Object.assign(Object.assign(Object.assign({ id }, (value && { value: normalizeValue(value, type) })), (fixed && { fixed })), (visible && { visible: true }));
97
+ const state = config.map(({ id, value, fixed, visible, type, groupedItems }) => {
98
+ return Object.assign(Object.assign(Object.assign(Object.assign({ id }, (value && { value: normalizeValue(value, type) })), (fixed && { fixed })), (visible && { visible: true })), { groupedItems });
86
99
  });
87
100
  const index = state.findIndex(({ id }) => id === item.id);
88
101
  const newItem = { id: item.id, value: normalizeValue(item.value, item.type), fixed: item.fixed, visible: true };
@@ -102,9 +115,19 @@ class FilterBarConfigFetcher extends ResourceFetcher {
102
115
  });
103
116
  });
104
117
  }
118
+ buildFieldList(items) {
119
+ return items.map(item => {
120
+ var _a, _b;
121
+ if (item.type === FilterItemType.MULTI_LIST) {
122
+ const multiListValue = item.value;
123
+ item.value = (_b = (_a = multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.elements) !== null && _a !== void 0 ? _a : multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.members) !== null && _b !== void 0 ? _b : multiListValue;
124
+ }
125
+ return item;
126
+ });
127
+ }
105
128
  getPath(resourceID, name) {
106
129
  if (name) {
107
- return `cfg://filter/FilterBarState:${resourceID}/${name}`;
130
+ return `cfg://filter/FilterBarState:${resourceID}.${name}`;
108
131
  }
109
132
  return `cfg://filter/FilterBarState:${resourceID}`;
110
133
  }
@@ -12,6 +12,7 @@ export { SnkDataUnit as SnkDataUnit } from '../types/components/snk-data-unit/sn
12
12
  export { SnkDetailView as SnkDetailView } from '../types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view';
13
13
  export { SnkEntityList as SnkEntityList } from '../types/components/snk-entity-list/snk-entity-list';
14
14
  export { SnkExporterEmailSender as SnkExporterEmailSender } from '../types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender';
15
+ export { SnkExpressionGroup as SnkExpressionGroup } from '../types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group';
15
16
  export { SnkExpressionItem as SnkExpressionItem } from '../types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item';
16
17
  export { SnkFieldConfig as SnkFieldConfig } from '../types/components/snk-form/subcomponents/snk-field-config/snk-field-config';
17
18
  export { SnkFilterBar as SnkFilterBar } from '../types/components/snk-filter-bar/snk-filter-bar';
@@ -26,7 +27,7 @@ export { SnkFilterMultiSelect as SnkFilterMultiSelect } from '../types/component
26
27
  export { SnkFilterPeriod as SnkFilterNumber } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-number';
27
28
  export { SnkFilterParamConfig as SnkFilterParamConfig } from '../types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config';
28
29
  export { SnkFilterPeriod as SnkFilterPeriod } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-period';
29
- export { SnkFilterPersonalized as SnkFilterPersonalized } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized';
30
+ export { SnkFilterPersonalized as SnkFilterPersonalized } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized/snk-filter-personalized';
30
31
  export { SnkFilterSearch as SnkFilterSearch } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-search';
31
32
  export { SnkFilterText as SnkFilterText } from '../types/components/snk-filter-bar/filter-item/editors/snk-filter-text';
32
33
  export { SnkForm as SnkForm } from '../types/components/snk-form/snk-form';
@@ -12,6 +12,7 @@ export { SnkDataUnit, defineCustomElement as defineCustomElementSnkDataUnit } fr
12
12
  export { SnkDetailView, defineCustomElement as defineCustomElementSnkDetailView } from './snk-detail-view.js';
13
13
  export { SnkEntityList, defineCustomElement as defineCustomElementSnkEntityList } from './snk-entity-list.js';
14
14
  export { SnkExporterEmailSender, defineCustomElement as defineCustomElementSnkExporterEmailSender } from './snk-exporter-email-sender.js';
15
+ export { SnkExpressionGroup, defineCustomElement as defineCustomElementSnkExpressionGroup } from './snk-expression-group.js';
15
16
  export { SnkExpressionItem, defineCustomElement as defineCustomElementSnkExpressionItem } from './snk-expression-item.js';
16
17
  export { SnkFieldConfig, defineCustomElement as defineCustomElementSnkFieldConfig } from './snk-field-config.js';
17
18
  export { SnkFilterBar, defineCustomElement as defineCustomElementSnkFilterBar } from './snk-filter-bar.js';
@@ -37,9 +37,11 @@ var FilterConfigType;
37
37
  var FilterUserConfigTypes;
38
38
  (function (FilterUserConfigTypes) {
39
39
  FilterUserConfigTypes["DATE"] = "D";
40
+ FilterUserConfigTypes["HORA"] = "H";
40
41
  FilterUserConfigTypes["TEXT"] = "S";
41
42
  FilterUserConfigTypes["INTEGER"] = "I";
42
43
  FilterUserConfigTypes["DECIMAL"] = "F";
44
+ FilterUserConfigTypes["NUMBER"] = "NUMBER";
43
45
  })(FilterUserConfigTypes || (FilterUserConfigTypes = {}));
44
46
  var FilterOperand;
45
47
  (function (FilterOperand) {
@@ -64,4 +66,4 @@ var FilterEntities;
64
66
  FilterEntities["INSTANCE"] = "Instancia";
65
67
  })(FilterEntities || (FilterEntities = {}));
66
68
 
67
- export { DataExporterOption as D, FilterUserConfigTypes as F, PresentationMode as P, FilterOperand as a, DataExporterFormat as b, DataExporterType as c, FilterConfigType as d, FilterEntities as e };
69
+ export { DataExporterOption as D, FilterOperand as F, PresentationMode as P, DataExporterFormat as a, DataExporterType as b, FilterConfigType as c, FilterEntities as d, FilterUserConfigTypes as e };
@@ -5,23 +5,28 @@ import './DataFetcher.js';
5
5
  import './pesquisa-fetcher.js';
6
6
  import { P as PresentationMode } from './index2.js';
7
7
  import { V as VIEW_MODE } from './constants.js';
8
- import { d as defineCustomElement$o } from './snk-actions-button2.js';
9
- import { d as defineCustomElement$n } from './snk-attach2.js';
10
- import { d as defineCustomElement$m } from './snk-config-options2.js';
11
- import { d as defineCustomElement$l } from './snk-configurator2.js';
12
- import { d as defineCustomElement$k } from './snk-data-exporter2.js';
13
- import { d as defineCustomElement$j } from './snk-data-unit2.js';
14
- import { d as defineCustomElement$7, a as defineCustomElement$i } from './snk-detail-view2.js';
15
- import { d as defineCustomElement$h } from './snk-exporter-email-sender2.js';
16
- import { d as defineCustomElement$g } from './snk-field-config2.js';
17
- import { d as defineCustomElement$f } from './snk-filter-bar2.js';
18
- import { d as defineCustomElement$e } from './snk-filter-detail2.js';
19
- import { d as defineCustomElement$d } from './snk-filter-item2.js';
20
- import { d as defineCustomElement$c } from './snk-form-config2.js';
21
- import { d as defineCustomElement$b } from './snk-form-summary2.js';
22
- import { d as defineCustomElement$a } from './snk-form-view2.js';
23
- import { d as defineCustomElement$9 } from './snk-grid2.js';
24
- import { d as defineCustomElement$8 } from './snk-grid-config2.js';
8
+ import { d as defineCustomElement$t } from './snk-actions-button2.js';
9
+ import { d as defineCustomElement$s } from './snk-attach2.js';
10
+ import { d as defineCustomElement$r } from './snk-config-options2.js';
11
+ import { d as defineCustomElement$q } from './snk-configurator2.js';
12
+ import { d as defineCustomElement$p } from './snk-data-exporter2.js';
13
+ import { d as defineCustomElement$o } from './snk-data-unit2.js';
14
+ import { d as defineCustomElement$8, a as defineCustomElement$n } from './snk-detail-view2.js';
15
+ import { d as defineCustomElement$m } from './snk-exporter-email-sender2.js';
16
+ import { d as defineCustomElement$l } from './snk-expression-group2.js';
17
+ import { d as defineCustomElement$k } from './snk-expression-item2.js';
18
+ import { d as defineCustomElement$j } from './snk-field-config2.js';
19
+ import { d as defineCustomElement$i } from './snk-filter-bar2.js';
20
+ import { d as defineCustomElement$h } from './snk-filter-detail2.js';
21
+ import { d as defineCustomElement$g } from './snk-filter-field-search2.js';
22
+ import { d as defineCustomElement$f } from './snk-filter-item2.js';
23
+ import { d as defineCustomElement$e } from './snk-filter-param-config2.js';
24
+ import { d as defineCustomElement$d } from './snk-form-config2.js';
25
+ import { d as defineCustomElement$c } from './snk-form-summary2.js';
26
+ import { d as defineCustomElement$b } from './snk-form-view2.js';
27
+ import { d as defineCustomElement$a } from './snk-grid2.js';
28
+ import { d as defineCustomElement$9 } from './snk-grid-config2.js';
29
+ import { d as defineCustomElement$7 } from './snk-personalized-filter2.js';
25
30
  import { d as defineCustomElement$6 } from './snk-select-box2.js';
26
31
  import { d as defineCustomElement$5 } from './snk-simple-bar2.js';
27
32
  import { d as defineCustomElement$4 } from './snk-simple-crud2.js';
@@ -209,7 +214,7 @@ function defineCustomElement$1() {
209
214
  if (typeof customElements === "undefined") {
210
215
  return;
211
216
  }
212
- const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-field-config", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar"];
217
+ const components = ["snk-crud", "snk-actions-button", "snk-attach", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-field-config", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-guides-viewer", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-tab-config", "snk-taskbar"];
213
218
  components.forEach(tagName => { switch (tagName) {
214
219
  case "snk-crud":
215
220
  if (!customElements.get(tagName)) {
@@ -218,90 +223,115 @@ function defineCustomElement$1() {
218
223
  break;
219
224
  case "snk-actions-button":
220
225
  if (!customElements.get(tagName)) {
221
- defineCustomElement$o();
226
+ defineCustomElement$t();
222
227
  }
223
228
  break;
224
229
  case "snk-attach":
225
230
  if (!customElements.get(tagName)) {
226
- defineCustomElement$n();
231
+ defineCustomElement$s();
227
232
  }
228
233
  break;
229
234
  case "snk-config-options":
230
235
  if (!customElements.get(tagName)) {
231
- defineCustomElement$m();
236
+ defineCustomElement$r();
232
237
  }
233
238
  break;
234
239
  case "snk-configurator":
235
240
  if (!customElements.get(tagName)) {
236
- defineCustomElement$l();
241
+ defineCustomElement$q();
237
242
  }
238
243
  break;
239
244
  case "snk-data-exporter":
240
245
  if (!customElements.get(tagName)) {
241
- defineCustomElement$k();
246
+ defineCustomElement$p();
242
247
  }
243
248
  break;
244
249
  case "snk-data-unit":
245
250
  if (!customElements.get(tagName)) {
246
- defineCustomElement$j();
251
+ defineCustomElement$o();
247
252
  }
248
253
  break;
249
254
  case "snk-detail-view":
250
255
  if (!customElements.get(tagName)) {
251
- defineCustomElement$i();
256
+ defineCustomElement$n();
252
257
  }
253
258
  break;
254
259
  case "snk-exporter-email-sender":
255
260
  if (!customElements.get(tagName)) {
256
- defineCustomElement$h();
261
+ defineCustomElement$m();
262
+ }
263
+ break;
264
+ case "snk-expression-group":
265
+ if (!customElements.get(tagName)) {
266
+ defineCustomElement$l();
267
+ }
268
+ break;
269
+ case "snk-expression-item":
270
+ if (!customElements.get(tagName)) {
271
+ defineCustomElement$k();
257
272
  }
258
273
  break;
259
274
  case "snk-field-config":
260
275
  if (!customElements.get(tagName)) {
261
- defineCustomElement$g();
276
+ defineCustomElement$j();
262
277
  }
263
278
  break;
264
279
  case "snk-filter-bar":
265
280
  if (!customElements.get(tagName)) {
266
- defineCustomElement$f();
281
+ defineCustomElement$i();
267
282
  }
268
283
  break;
269
284
  case "snk-filter-detail":
270
285
  if (!customElements.get(tagName)) {
271
- defineCustomElement$e();
286
+ defineCustomElement$h();
287
+ }
288
+ break;
289
+ case "snk-filter-field-search":
290
+ if (!customElements.get(tagName)) {
291
+ defineCustomElement$g();
272
292
  }
273
293
  break;
274
294
  case "snk-filter-item":
275
295
  if (!customElements.get(tagName)) {
276
- defineCustomElement$d();
296
+ defineCustomElement$f();
297
+ }
298
+ break;
299
+ case "snk-filter-param-config":
300
+ if (!customElements.get(tagName)) {
301
+ defineCustomElement$e();
277
302
  }
278
303
  break;
279
304
  case "snk-form-config":
280
305
  if (!customElements.get(tagName)) {
281
- defineCustomElement$c();
306
+ defineCustomElement$d();
282
307
  }
283
308
  break;
284
309
  case "snk-form-summary":
285
310
  if (!customElements.get(tagName)) {
286
- defineCustomElement$b();
311
+ defineCustomElement$c();
287
312
  }
288
313
  break;
289
314
  case "snk-form-view":
290
315
  if (!customElements.get(tagName)) {
291
- defineCustomElement$a();
316
+ defineCustomElement$b();
292
317
  }
293
318
  break;
294
319
  case "snk-grid":
295
320
  if (!customElements.get(tagName)) {
296
- defineCustomElement$9();
321
+ defineCustomElement$a();
297
322
  }
298
323
  break;
299
324
  case "snk-grid-config":
300
325
  if (!customElements.get(tagName)) {
301
- defineCustomElement$8();
326
+ defineCustomElement$9();
302
327
  }
303
328
  break;
304
329
  case "snk-guides-viewer":
330
+ if (!customElements.get(tagName)) {
331
+ defineCustomElement$8();
332
+ }
333
+ break;
334
+ case "snk-personalized-filter":
305
335
  if (!customElements.get(tagName)) {
306
336
  defineCustomElement$7();
307
337
  }
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { D as DataExporterOption, b as DataExporterFormat, c as DataExporterType } from './index2.js';
4
+ import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType } from './index2.js';
5
5
  import { K as KEY_PORT_EXPORT, W as WEB_CONNECTION, R as REPORT_LAUNCHER_RESOURCE_ID } from './constants.js';
6
6
  import { D as DataFetcher } from './DataFetcher.js';
7
7
  import { S as SnkDataUnit } from './snk-data-unit2.js';