@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-kb-70929.0 → 0.0.0-bugfix-dev-KB-74193.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 (680) hide show
  1. package/dist/cjs/{ContinuousInsertUtils-29b65619.js → ContinuousInsertUtils-afd338e1.js} +1 -1
  2. package/dist/cjs/index-f9e81701.js +28 -8
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{pesquisa-fetcher-ca89181c.js → pesquisa-fetcher-490a86c3.js} +6 -1
  5. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  6. package/dist/cjs/snk-actions-button_4.cjs.entry.js +1 -1
  7. package/dist/cjs/snk-application.cjs.entry.js +1 -1
  8. package/dist/cjs/snk-attach.cjs.entry.js +1 -1
  9. package/dist/cjs/snk-config-options.cjs.entry.js +239 -0
  10. package/dist/cjs/snk-crud.cjs.entry.js +1 -1
  11. package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
  12. package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
  13. package/dist/cjs/{snk-filter-bar_4.cjs.entry.js → snk-filter-bar.cjs.entry.js} +0 -685
  14. package/dist/cjs/snk-filter-item.cjs.entry.js +312 -0
  15. package/dist/cjs/snk-filter-list.cjs.entry.js +152 -0
  16. package/dist/cjs/snk-filter-modal.cjs.entry.js +249 -0
  17. package/dist/cjs/{snk-config-options_3.cjs.entry.js → snk-form-config.cjs.entry.js} +1 -363
  18. package/dist/cjs/snk-form.cjs.entry.js +144 -0
  19. package/dist/cjs/snk-grid.cjs.entry.js +2 -2
  20. package/dist/cjs/{snk-guides-viewer-4236cb9d.js → snk-guides-viewer-fce6f694.js} +1 -1
  21. package/dist/cjs/snk-guides-viewer.cjs.entry.js +2 -2
  22. package/dist/cjs/snk-simple-crud.cjs.entry.js +2 -2
  23. package/dist/collection/collection-manifest.json +31 -11
  24. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +6 -1
  25. package/dist/components/pesquisa-fetcher.js +6 -1
  26. package/dist/esm/{ContinuousInsertUtils-30caa626.js → ContinuousInsertUtils-3ce8b275.js} +1 -1
  27. package/dist/esm/{SnkFormConfigManager-f1a0fc92.js → SnkFormConfigManager-139f09fa.js} +1 -1
  28. package/dist/esm/{constants-7302ee87.js → constants-8457af36.js} +1 -1
  29. package/dist/esm/index-a7d3d3f1.js +28 -8
  30. package/dist/esm/loader.js +1 -1
  31. package/dist/esm/{pesquisa-fetcher-8edaa8cd.js → pesquisa-fetcher-50fc7e6b.js} +6 -1
  32. package/dist/esm/sankhyablocks.js +1 -1
  33. package/dist/esm/snk-actions-button_4.entry.js +2 -2
  34. package/dist/esm/snk-application.entry.js +1 -1
  35. package/dist/esm/snk-attach.entry.js +2 -2
  36. package/dist/esm/snk-config-options.entry.js +235 -0
  37. package/dist/esm/snk-configurator.entry.js +1 -1
  38. package/dist/esm/snk-crud.entry.js +2 -2
  39. package/dist/esm/snk-data-exporter.entry.js +2 -2
  40. package/dist/esm/snk-detail-view.entry.js +4 -4
  41. package/dist/esm/snk-field-config.entry.js +1 -1
  42. package/dist/esm/{snk-filter-bar_4.entry.js → snk-filter-bar.entry.js} +2 -684
  43. package/dist/esm/snk-filter-item.entry.js +308 -0
  44. package/dist/esm/snk-filter-list.entry.js +148 -0
  45. package/dist/esm/snk-filter-modal.entry.js +245 -0
  46. package/dist/esm/{snk-config-options_3.entry.js → snk-form-config.entry.js} +4 -364
  47. package/dist/esm/snk-form.entry.js +140 -0
  48. package/dist/esm/snk-grid.entry.js +2 -2
  49. package/dist/esm/{snk-guides-viewer-8fa1321a.js → snk-guides-viewer-1e692743.js} +3 -3
  50. package/dist/esm/snk-guides-viewer.entry.js +4 -4
  51. package/dist/esm/snk-simple-crud.entry.js +4 -4
  52. package/dist/esm/snk-tab-config.entry.js +1 -1
  53. package/dist/sankhyablocks/{p-42288374.entry.js → p-0573f7a7.entry.js} +1 -1
  54. package/dist/sankhyablocks/{p-8dfc2ba9.entry.js → p-375182d5.entry.js} +1 -1
  55. package/dist/sankhyablocks/p-3b60db06.entry.js +1 -0
  56. package/dist/sankhyablocks/p-60b29483.entry.js +1 -0
  57. package/dist/sankhyablocks/p-70a4af56.entry.js +1 -0
  58. package/dist/sankhyablocks/{p-2ef45894.entry.js → p-71f3ea48.entry.js} +1 -1
  59. package/dist/sankhyablocks/{p-41793e17.entry.js → p-7663f597.entry.js} +1 -1
  60. package/dist/sankhyablocks/{p-ee7023c4.js → p-7d9573d1.js} +1 -1
  61. package/dist/sankhyablocks/{p-c2e4ac99.entry.js → p-827c9e40.entry.js} +1 -1
  62. package/dist/sankhyablocks/{p-1bf06cd3.js → p-8a9638ae.js} +1 -1
  63. package/dist/sankhyablocks/{p-2d3f9482.entry.js → p-8eb67fa4.entry.js} +1 -1
  64. package/dist/sankhyablocks/{p-2923c1b5.js → p-8f12e588.js} +1 -1
  65. package/dist/sankhyablocks/{p-8b4fc28f.entry.js → p-95df461f.entry.js} +1 -1
  66. package/dist/sankhyablocks/{p-a75d242d.entry.js → p-a5c38f50.entry.js} +1 -1
  67. package/dist/sankhyablocks/{p-fadc8339.js → p-afbb070d.js} +1 -1
  68. package/dist/sankhyablocks/{p-95ce311a.js → p-b0ef4383.js} +1 -1
  69. package/dist/sankhyablocks/p-b9679243.entry.js +1 -0
  70. package/dist/sankhyablocks/{p-ab05d5f2.entry.js → p-d352f450.entry.js} +1 -1
  71. package/dist/sankhyablocks/p-d3f53df2.entry.js +1 -0
  72. package/dist/sankhyablocks/{p-49b01ec2.entry.js → p-dae86c7a.entry.js} +1 -1
  73. package/dist/sankhyablocks/{p-a42e7a1e.entry.js → p-e61844e3.entry.js} +2 -2
  74. package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
  75. package/dist/sankhyablocks/{p-7281cdab.entry.js → p-f58f39c6.entry.js} +1 -1
  76. package/dist/sankhyablocks/p-feba9d4b.entry.js +1 -0
  77. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  78. package/package.json +2 -3
  79. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  80. package/dist/cjs/ConfigStorage-ecc0ed20.js.gz +0 -0
  81. package/dist/cjs/ContinuousInsertUtils-29b65619.js.gz +0 -0
  82. package/dist/cjs/DataFetcher-cadeef8e.js.gz +0 -0
  83. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  84. package/dist/cjs/ISave-e91b70a7.js.gz +0 -0
  85. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  86. package/dist/cjs/PersonalizedFilterUtils-0184ffbb.js.gz +0 -0
  87. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  88. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  89. package/dist/cjs/SnkFormConfigManager-f1c92f79.js.gz +0 -0
  90. package/dist/cjs/SnkMessageBuilder-bae64d0d.js.gz +0 -0
  91. package/dist/cjs/Sortable-fb1c4cbb.js.gz +0 -0
  92. package/dist/cjs/auth-fetcher-d68841bc.js.gz +0 -0
  93. package/dist/cjs/constants-35ddd366.js.gz +0 -0
  94. package/dist/cjs/dataunit-fetcher-f89461c1.js.gz +0 -0
  95. package/dist/cjs/field-search-68e34bf4.js.gz +0 -0
  96. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  97. package/dist/cjs/filter-type.enum-b14ce507.js.gz +0 -0
  98. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  99. package/dist/cjs/form-config-fetcher-ed497282.js.gz +0 -0
  100. package/dist/cjs/index-102ba62d.js.gz +0 -0
  101. package/dist/cjs/index-1dfc7a6e.js.gz +0 -0
  102. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  103. package/dist/cjs/index-c5771aba.js.gz +0 -0
  104. package/dist/cjs/index-f9e81701.js.gz +0 -0
  105. package/dist/cjs/index.cjs.js.gz +0 -0
  106. package/dist/cjs/loader.cjs.js.gz +0 -0
  107. package/dist/cjs/pesquisa-fetcher-ca89181c.js.gz +0 -0
  108. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  109. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  110. package/dist/cjs/snk-actions-button_4.cjs.entry.js.gz +0 -0
  111. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  112. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  113. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  114. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  115. package/dist/cjs/snk-config-options_3.cjs.entry.js.gz +0 -0
  116. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  117. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  118. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  119. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  120. package/dist/cjs/snk-data-unit-668dc5e8.js.gz +0 -0
  121. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  122. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  123. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  124. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  125. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  126. package/dist/cjs/snk-field-config.cjs.entry.js.gz +0 -0
  127. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  128. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  129. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  130. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  131. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  132. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  133. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  134. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  135. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  136. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  137. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  138. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  139. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  140. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  141. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  142. package/dist/cjs/snk-guides-viewer-4236cb9d.js.gz +0 -0
  143. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  144. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  145. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  146. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  147. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  148. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  149. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  150. package/dist/cjs/snk-tab-config.cjs.entry.js.gz +0 -0
  151. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  152. package/dist/cjs/taskbar-elements-9ad1f9c0.js.gz +0 -0
  153. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  154. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  155. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  156. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  157. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  158. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  159. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  160. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  161. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  162. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  163. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  164. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  165. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  166. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  167. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  168. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  169. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  170. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  171. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  172. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  173. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  174. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  175. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  176. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  177. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  178. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  179. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  180. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  181. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  182. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  183. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  184. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  185. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  186. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  187. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  188. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  189. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  190. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  191. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  192. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  193. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  194. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  195. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  196. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  197. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  198. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  199. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  200. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  201. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  202. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  203. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  204. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  205. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  206. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  207. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  208. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  209. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  210. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  211. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  212. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  213. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  214. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  215. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  216. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  217. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  218. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  219. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  220. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  221. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  222. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  223. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  224. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  225. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  226. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  227. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  228. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  229. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  230. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  231. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  232. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  233. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  234. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  235. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  236. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  237. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  238. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  239. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  240. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  241. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  242. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  243. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  244. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  245. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  246. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  247. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  248. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  249. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  250. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  251. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  252. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  253. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  254. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  255. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  256. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  257. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  258. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  259. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  260. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  261. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  262. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  263. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  264. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  265. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  266. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  267. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  268. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  269. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  270. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  271. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css.gz +0 -0
  272. package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js.gz +0 -0
  273. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css.gz +0 -0
  274. package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js.gz +0 -0
  275. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css.gz +0 -0
  276. package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js.gz +0 -0
  277. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  278. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  279. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  280. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  281. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  282. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  283. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  284. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  285. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  286. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  287. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  288. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  289. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  290. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  291. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  292. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  293. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  294. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  295. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  296. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  297. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  298. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  299. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  300. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  301. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  302. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  303. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  304. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  305. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  306. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  307. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  308. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  309. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  310. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  311. package/dist/collection/components/snk-simple-crud/regular-buttons.js.gz +0 -0
  312. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  313. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  314. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  315. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  316. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  317. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  318. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  319. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  320. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js.gz +0 -0
  321. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  322. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  323. package/dist/collection/index.js.gz +0 -0
  324. package/dist/collection/lib/@types/index.js.gz +0 -0
  325. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  326. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  327. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  328. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  329. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  330. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  331. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  332. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  333. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  334. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  335. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  336. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  337. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  338. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  339. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  340. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  341. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  342. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  343. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  344. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  345. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  346. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  347. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  348. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  349. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  350. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  351. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  352. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  353. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  354. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  355. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  356. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  357. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  358. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  359. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  360. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  361. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  362. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  363. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  364. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  365. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  366. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  367. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  368. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  369. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  370. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  371. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  372. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  373. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  374. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  375. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  376. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  377. package/dist/collection/lib/index.js.gz +0 -0
  378. package/dist/collection/lib/licenses/sankhyalicense.module.js.gz +0 -0
  379. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  380. package/dist/collection/lib/message/resources/crud-utils.msg.js.gz +0 -0
  381. package/dist/collection/lib/message/resources/file-viewer.msg.js.gz +0 -0
  382. package/dist/collection/lib/message/resources/snk-actions-button.msg.js.gz +0 -0
  383. package/dist/collection/lib/message/resources/snk-application.msg.js.gz +0 -0
  384. package/dist/collection/lib/message/resources/snk-attach.msg.js.gz +0 -0
  385. package/dist/collection/lib/message/resources/snk-configurator.msg.js.gz +0 -0
  386. package/dist/collection/lib/message/resources/snk-crud.msg.js.gz +0 -0
  387. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js.gz +0 -0
  388. package/dist/collection/lib/message/resources/snk-data-unit.msg.js.gz +0 -0
  389. package/dist/collection/lib/message/resources/snk-entity-list.msg.js.gz +0 -0
  390. package/dist/collection/lib/message/resources/snk-exporter.msg.js.gz +0 -0
  391. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js.gz +0 -0
  392. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js.gz +0 -0
  393. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js.gz +0 -0
  394. package/dist/collection/lib/message/resources/snk-form.msg.js.gz +0 -0
  395. package/dist/collection/lib/message/resources/snk-grid.msg.js.gz +0 -0
  396. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js.gz +0 -0
  397. package/dist/collection/lib/message/resources/snk-print-selector.msg.js.gz +0 -0
  398. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js.gz +0 -0
  399. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js.gz +0 -0
  400. package/dist/collection/lib/message/resources/snk-taskbar.msg.js.gz +0 -0
  401. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  402. package/dist/collection/lib/store/index.js.gz +0 -0
  403. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  404. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  405. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  406. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  407. package/dist/collection/lib/utils/constants.js.gz +0 -0
  408. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  409. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  410. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  411. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  412. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  413. package/dist/collection/sw.js +0 -46
  414. package/dist/collection/sw.js.gz +0 -0
  415. package/dist/components/AuthorizationConfig.js.gz +0 -0
  416. package/dist/components/ConfigStorage.js.gz +0 -0
  417. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  418. package/dist/components/DataFetcher.js.gz +0 -0
  419. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  420. package/dist/components/ISave.js.gz +0 -0
  421. package/dist/components/ParamType.js.gz +0 -0
  422. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  423. package/dist/components/PrintUtils.js.gz +0 -0
  424. package/dist/components/ResourceIDUtils.js.gz +0 -0
  425. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  426. package/dist/components/SnkMessageBuilder.js.gz +0 -0
  427. package/dist/components/auth-fetcher.js.gz +0 -0
  428. package/dist/components/constants.js.gz +0 -0
  429. package/dist/components/dataunit-fetcher.js.gz +0 -0
  430. package/dist/components/filter-item-type.enum.js.gz +0 -0
  431. package/dist/components/filterNumberVariation.js.gz +0 -0
  432. package/dist/components/form-config-fetcher.js.gz +0 -0
  433. package/dist/components/index.js.gz +0 -0
  434. package/dist/components/index2.js.gz +0 -0
  435. package/dist/components/pesquisa-fetcher.js.gz +0 -0
  436. package/dist/components/presentationMode.js.gz +0 -0
  437. package/dist/components/snk-actions-button.js.gz +0 -0
  438. package/dist/components/snk-actions-button2.js.gz +0 -0
  439. package/dist/components/snk-actions-form.js.gz +0 -0
  440. package/dist/components/snk-application.js.gz +0 -0
  441. package/dist/components/snk-application2.js.gz +0 -0
  442. package/dist/components/snk-attach.js.gz +0 -0
  443. package/dist/components/snk-attach2.js.gz +0 -0
  444. package/dist/components/snk-client-confirm.js.gz +0 -0
  445. package/dist/components/snk-config-options.js.gz +0 -0
  446. package/dist/components/snk-config-options2.js.gz +0 -0
  447. package/dist/components/snk-configurator.js.gz +0 -0
  448. package/dist/components/snk-configurator2.js.gz +0 -0
  449. package/dist/components/snk-crud.js.gz +0 -0
  450. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  451. package/dist/components/snk-data-exporter.js.gz +0 -0
  452. package/dist/components/snk-data-exporter2.js.gz +0 -0
  453. package/dist/components/snk-data-unit.js.gz +0 -0
  454. package/dist/components/snk-data-unit2.js.gz +0 -0
  455. package/dist/components/snk-detail-view.js.gz +0 -0
  456. package/dist/components/snk-detail-view2.js.gz +0 -0
  457. package/dist/components/snk-entity-list.js.gz +0 -0
  458. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  459. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  460. package/dist/components/snk-expression-group.js.gz +0 -0
  461. package/dist/components/snk-expression-group2.js.gz +0 -0
  462. package/dist/components/snk-expression-item.js.gz +0 -0
  463. package/dist/components/snk-expression-item2.js.gz +0 -0
  464. package/dist/components/snk-field-config.js.gz +0 -0
  465. package/dist/components/snk-field-config2.js.gz +0 -0
  466. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  467. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  468. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  469. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  470. package/dist/components/snk-filter-bar.js.gz +0 -0
  471. package/dist/components/snk-filter-bar2.js.gz +0 -0
  472. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  473. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  474. package/dist/components/snk-filter-detail.js.gz +0 -0
  475. package/dist/components/snk-filter-detail2.js.gz +0 -0
  476. package/dist/components/snk-filter-field-search.js.gz +0 -0
  477. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  478. package/dist/components/snk-filter-item.js.gz +0 -0
  479. package/dist/components/snk-filter-item2.js.gz +0 -0
  480. package/dist/components/snk-filter-list.js.gz +0 -0
  481. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  482. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  483. package/dist/components/snk-filter-modal.js.gz +0 -0
  484. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  485. package/dist/components/snk-filter-number.js.gz +0 -0
  486. package/dist/components/snk-filter-param-config.js.gz +0 -0
  487. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  488. package/dist/components/snk-filter-period.js.gz +0 -0
  489. package/dist/components/snk-filter-search.js.gz +0 -0
  490. package/dist/components/snk-filter-text.js.gz +0 -0
  491. package/dist/components/snk-form-config.js.gz +0 -0
  492. package/dist/components/snk-form-config2.js.gz +0 -0
  493. package/dist/components/snk-form-summary.js.gz +0 -0
  494. package/dist/components/snk-form-summary2.js.gz +0 -0
  495. package/dist/components/snk-form-view.js.gz +0 -0
  496. package/dist/components/snk-form-view2.js.gz +0 -0
  497. package/dist/components/snk-form.js.gz +0 -0
  498. package/dist/components/snk-grid-config.js.gz +0 -0
  499. package/dist/components/snk-grid-config2.js.gz +0 -0
  500. package/dist/components/snk-grid.js.gz +0 -0
  501. package/dist/components/snk-grid2.js.gz +0 -0
  502. package/dist/components/snk-guides-viewer.js.gz +0 -0
  503. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  504. package/dist/components/snk-personalized-filter.js.gz +0 -0
  505. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  506. package/dist/components/snk-pesquisa.js.gz +0 -0
  507. package/dist/components/snk-pesquisa2.js.gz +0 -0
  508. package/dist/components/snk-print-selector.js.gz +0 -0
  509. package/dist/components/snk-select-box.js.gz +0 -0
  510. package/dist/components/snk-select-box2.js.gz +0 -0
  511. package/dist/components/snk-simple-bar.js.gz +0 -0
  512. package/dist/components/snk-simple-bar2.js.gz +0 -0
  513. package/dist/components/snk-simple-crud.js.gz +0 -0
  514. package/dist/components/snk-simple-crud2.js.gz +0 -0
  515. package/dist/components/snk-tab-config.js.gz +0 -0
  516. package/dist/components/snk-tab-config2.js.gz +0 -0
  517. package/dist/components/snk-taskbar.js.gz +0 -0
  518. package/dist/components/snk-taskbar2.js.gz +0 -0
  519. package/dist/components/taskbar-actions-button.js.gz +0 -0
  520. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  521. package/dist/components/teste-pesquisa.js.gz +0 -0
  522. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  523. package/dist/esm/ConfigStorage-7b36d041.js.gz +0 -0
  524. package/dist/esm/ContinuousInsertUtils-30caa626.js.gz +0 -0
  525. package/dist/esm/DataFetcher-a9c598f2.js.gz +0 -0
  526. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  527. package/dist/esm/ISave-d8c8bc59.js.gz +0 -0
  528. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  529. package/dist/esm/PersonalizedFilterUtils-e2b38ef7.js.gz +0 -0
  530. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  531. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  532. package/dist/esm/SnkFormConfigManager-f1a0fc92.js.gz +0 -0
  533. package/dist/esm/SnkMessageBuilder-6fff4a4c.js.gz +0 -0
  534. package/dist/esm/Sortable-83960219.js.gz +0 -0
  535. package/dist/esm/auth-fetcher-749d880f.js.gz +0 -0
  536. package/dist/esm/constants-7302ee87.js.gz +0 -0
  537. package/dist/esm/dataunit-fetcher-c24c76c6.js.gz +0 -0
  538. package/dist/esm/field-search-f8b1d91e.js.gz +0 -0
  539. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  540. package/dist/esm/filter-type.enum-a80c1b6b.js.gz +0 -0
  541. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  542. package/dist/esm/form-config-fetcher-adbe5d34.js.gz +0 -0
  543. package/dist/esm/index-3aa4977a.js.gz +0 -0
  544. package/dist/esm/index-620ac460.js.gz +0 -0
  545. package/dist/esm/index-a7d3d3f1.js.gz +0 -0
  546. package/dist/esm/index-ae591a44.js.gz +0 -0
  547. package/dist/esm/index-bdf75557.js.gz +0 -0
  548. package/dist/esm/index.js.gz +0 -0
  549. package/dist/esm/loader.js.gz +0 -0
  550. package/dist/esm/pesquisa-fetcher-8edaa8cd.js.gz +0 -0
  551. package/dist/esm/polyfills/core-js.js.gz +0 -0
  552. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  553. package/dist/esm/polyfills/dom.js.gz +0 -0
  554. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  555. package/dist/esm/polyfills/index.js.gz +0 -0
  556. package/dist/esm/polyfills/system.js.gz +0 -0
  557. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  558. package/dist/esm/sankhyablocks.js.gz +0 -0
  559. package/dist/esm/snk-actions-button_4.entry.js.gz +0 -0
  560. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  561. package/dist/esm/snk-application.entry.js.gz +0 -0
  562. package/dist/esm/snk-attach.entry.js.gz +0 -0
  563. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  564. package/dist/esm/snk-config-options_3.entry.js.gz +0 -0
  565. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  566. package/dist/esm/snk-crud.entry.js.gz +0 -0
  567. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  568. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  569. package/dist/esm/snk-data-unit-0fdfb6c2.js.gz +0 -0
  570. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  571. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  572. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  573. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  574. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  575. package/dist/esm/snk-field-config.entry.js.gz +0 -0
  576. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  577. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  578. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  579. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  580. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  581. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  582. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  583. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  584. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  585. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  586. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  587. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  588. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  589. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  590. package/dist/esm/snk-grid.entry.js.gz +0 -0
  591. package/dist/esm/snk-guides-viewer-8fa1321a.js.gz +0 -0
  592. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  593. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  594. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  595. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  596. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  597. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  598. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  599. package/dist/esm/snk-tab-config.entry.js.gz +0 -0
  600. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  601. package/dist/esm/taskbar-elements-d59867f1.js.gz +0 -0
  602. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  603. package/dist/index.cjs.js.gz +0 -0
  604. package/dist/index.js.gz +0 -0
  605. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  606. package/dist/sankhyablocks/p-01ba23cd.entry.js.gz +0 -0
  607. package/dist/sankhyablocks/p-052213ba.entry.js +0 -1
  608. package/dist/sankhyablocks/p-052213ba.entry.js.gz +0 -0
  609. package/dist/sankhyablocks/p-057fad05.js.gz +0 -0
  610. package/dist/sankhyablocks/p-06421fdb.js.gz +0 -0
  611. package/dist/sankhyablocks/p-118e769b.entry.js.gz +0 -0
  612. package/dist/sankhyablocks/p-16a1dd18.entry.js.gz +0 -0
  613. package/dist/sankhyablocks/p-17425c72.js.gz +0 -0
  614. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  615. package/dist/sankhyablocks/p-1bf06cd3.js.gz +0 -0
  616. package/dist/sankhyablocks/p-1db45d26.entry.js.gz +0 -0
  617. package/dist/sankhyablocks/p-212213d9.entry.js.gz +0 -0
  618. package/dist/sankhyablocks/p-21749402.js.gz +0 -0
  619. package/dist/sankhyablocks/p-21a81901.entry.js.gz +0 -0
  620. package/dist/sankhyablocks/p-23736d75.js.gz +0 -0
  621. package/dist/sankhyablocks/p-26b0ce3e.entry.js.gz +0 -0
  622. package/dist/sankhyablocks/p-2923c1b5.js.gz +0 -0
  623. package/dist/sankhyablocks/p-2aae03a1.entry.js.gz +0 -0
  624. package/dist/sankhyablocks/p-2d3f9482.entry.js.gz +0 -0
  625. package/dist/sankhyablocks/p-2ef45894.entry.js.gz +0 -0
  626. package/dist/sankhyablocks/p-30cf616e.js.gz +0 -0
  627. package/dist/sankhyablocks/p-33718dfc.entry.js.gz +0 -0
  628. package/dist/sankhyablocks/p-3ab6df3d.entry.js.gz +0 -0
  629. package/dist/sankhyablocks/p-41793e17.entry.js.gz +0 -0
  630. package/dist/sankhyablocks/p-42288374.entry.js.gz +0 -0
  631. package/dist/sankhyablocks/p-434817f0.entry.js.gz +0 -0
  632. package/dist/sankhyablocks/p-49b01ec2.entry.js.gz +0 -0
  633. package/dist/sankhyablocks/p-4d9549cf.js.gz +0 -0
  634. package/dist/sankhyablocks/p-54a5d52a.entry.js.gz +0 -0
  635. package/dist/sankhyablocks/p-5b51491f.entry.js.gz +0 -0
  636. package/dist/sankhyablocks/p-5dd8cf4f.js.gz +0 -0
  637. package/dist/sankhyablocks/p-5f157b09.entry.js.gz +0 -0
  638. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  639. package/dist/sankhyablocks/p-6dc031de.js.gz +0 -0
  640. package/dist/sankhyablocks/p-7281cdab.entry.js.gz +0 -0
  641. package/dist/sankhyablocks/p-7ac7932c.js.gz +0 -0
  642. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  643. package/dist/sankhyablocks/p-7e2ded86.entry.js.gz +0 -0
  644. package/dist/sankhyablocks/p-7e7a7473.js.gz +0 -0
  645. package/dist/sankhyablocks/p-8002dcd0.entry.js.gz +0 -0
  646. package/dist/sankhyablocks/p-8b4fc28f.entry.js.gz +0 -0
  647. package/dist/sankhyablocks/p-8c235d4c.entry.js.gz +0 -0
  648. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  649. package/dist/sankhyablocks/p-8dfc2ba9.entry.js.gz +0 -0
  650. package/dist/sankhyablocks/p-933c0c0b.js.gz +0 -0
  651. package/dist/sankhyablocks/p-9531fd46.entry.js.gz +0 -0
  652. package/dist/sankhyablocks/p-95ce311a.js.gz +0 -0
  653. package/dist/sankhyablocks/p-96a89d58.entry.js.gz +0 -0
  654. package/dist/sankhyablocks/p-9d3a025a.entry.js.gz +0 -0
  655. package/dist/sankhyablocks/p-a42e7a1e.entry.js.gz +0 -0
  656. package/dist/sankhyablocks/p-a75d242d.entry.js.gz +0 -0
  657. package/dist/sankhyablocks/p-ab05d5f2.entry.js.gz +0 -0
  658. package/dist/sankhyablocks/p-ac8d1cd6.entry.js.gz +0 -0
  659. package/dist/sankhyablocks/p-b9c67e45.entry.js.gz +0 -0
  660. package/dist/sankhyablocks/p-bf2acf72.entry.js.gz +0 -0
  661. package/dist/sankhyablocks/p-c2e468c9.entry.js.gz +0 -0
  662. package/dist/sankhyablocks/p-c2e4ac99.entry.js.gz +0 -0
  663. package/dist/sankhyablocks/p-c8622597.entry.js.gz +0 -0
  664. package/dist/sankhyablocks/p-ca5ec380.js.gz +0 -0
  665. package/dist/sankhyablocks/p-d1791da2.entry.js.gz +0 -0
  666. package/dist/sankhyablocks/p-d2d301a6.js.gz +0 -0
  667. package/dist/sankhyablocks/p-d9804798.js.gz +0 -0
  668. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  669. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  670. package/dist/sankhyablocks/p-ee7023c4.js.gz +0 -0
  671. package/dist/sankhyablocks/p-f3434fc4.js.gz +0 -0
  672. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  673. package/dist/sankhyablocks/p-fa6c5826.entry.js +0 -1
  674. package/dist/sankhyablocks/p-fa6c5826.entry.js.gz +0 -0
  675. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  676. package/dist/sankhyablocks/p-fa816fb2.js.gz +0 -0
  677. package/dist/sankhyablocks/p-fadc8339.js.gz +0 -0
  678. package/dist/sankhyablocks/p-fb34e0cf.entry.js.gz +0 -0
  679. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  680. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.js.gz DELETED
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e,H as s,g as r}from"./p-d2d301a6.js";import{DataType as l,StringUtils as n,ObjectUtils as a,ElementIDUtils as o,ErrorException as h,ApplicationContext as d,FloatingManager as c,DateUtils as u,ArrayUtils as m}from"@sankhyalabs/core";import{EzScrollDirection as f}from"@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection";import{C as p}from"./p-4d9549cf.js";import{toString as v}from"@sankhyalabs/core/dist/dataunit/metadata/DataType";import{F as b}from"./p-ff1990ad.js";import{F as k}from"./p-933c0c0b.js";import{F as g}from"./p-fa80e546.js";import{ApplicationUtils as _}from"@sankhyalabs/ezui/dist/collection/utils";import{P as F}from"./p-057fad05.js";import{ModalAction as x}from"@sankhyalabs/ezui/dist/collection/components/ez-modal-container";import{F as z}from"./p-d9804798.js";import"./p-06421fdb.js";import"./p-f3434fc4.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";function y(t){let i="";return t.forEach(((t,e)=>{var s;i+=` ${e>0?null!==(s=t.operand)&&void 0!==s?s:"OR":""} ${t.expression}`})),i.trim()}class w{constructor({filterConfig:t,configName:i,onComplete:e,getMessage:s,disablePersonalizedFilter:r,onAddPersonalizedFilter:l,onEditPersonalizedFilter:n,onDeletePersonalizedFilter:a}){this._filterConfig=t,this._configName=i,this._onComplete=e,this._getMessage=s,this._disablePersonalizedFilter=r,this._addPersonalizedFilterFn=l,this._editPersonalizedFilterFn=n,this._onDeletePersonalizedFilter=a}applyFilters(t){this._onComplete(t),this._closeModal()}buildFilterModal(){const t=document.createElement("snk-filter-modal");return t.className="ez-size-height--full",t.filters=this._filterConfig,t.configName=this._configName,t.disablePersonalizedFilter=this._disablePersonalizedFilter,t.getMessage=this._getMessage.bind(this),t.applyFilters=this.applyFilters.bind(this),t.closeModal=()=>this._closeModal(),t.addPersonalizedFilter=()=>this._addPersonalizedFilterFn(),t.editPersonalizedFilter=t=>this._editPersonalizedFilterFn(t),t.deletePersonalizedFilter=(t,i)=>this._onDeletePersonalizedFilter(t,i),t}async showModal(){const t={content:this.buildFilterModal(),position:"left",heightMode:"full",closeOutsideClick:!1,useScrimLight:!0};this._closeModal=await _.showModal(t)}async closeModal(){this._closeModal()}}const C=class{constructor(e){t(this,e),this.configUpdated=i(this,"configUpdated",7),this._updateSequence=[],this._loadingPending=!1,this._configUpdated=!1,this._firstLoad=!0,this._pendingVariables=!1,this._customfiltersToBeUpdated=[],this._calculateSortIndex=t=>{if(!t.visible)return 0;if(t.hardFixed)return 1e6;let i=t.fixed?1e5:0;return i+=this.hasValidValue(t)?1e4:0,i+=this._updateSequence.lastIndexOf(t.id)+1,i},this._filtersComparator=(t,i)=>this._calculateSortIndex(i)-this._calculateSortIndex(t),this.customFilterBarConfig=void 0,this.dataUnit=void 0,this.title=void 0,this.configName=void 0,this.resourceID=void 0,this.mode="regular",this.filterConfig=void 0,this.messagesBuilder=void 0,this.disablePersonalizedFilter=void 0,this.filterBarLegacyConfigName=void 0,this.autoLoad=void 0,this.allowDefault=void 0,this.scrollerLocked=!1,this.showPersonalizedFilter=!1,this.personalizedFilterId=void 0}hasValidValue(t){return null!=t.value&&(!Array.isArray(t.value)||t.value.some((t=>!0===t.check)))}observeFilterConfig(t,i){a.equals(t,i)||this.handleFilterConfigsChanged(i,t)}handleFilterConfigsChanged(t,i){if(null!=t&&null==i)this._loadingPending=!0,this._configUpdated=!0;else{const e=new Map(t?t.map((t=>[t.id,t])):void 0);0===e.size&&i.length>0?(this._loadingPending=!0,this._configUpdated=!1):i.forEach((t=>{const i=e.get(t.id);if(null!=i){if(this._configUpdated=this._configUpdated||a.objectToString(i)!=a.objectToString(t),this._loadingPending=this._loadingPending||a.objectToString(i.value)!==a.objectToString(t.value),!this._loadingPending){const e=a.objectToString(i.groupedItems)!=a.objectToString(t.groupedItems);this._configUpdated=this._configUpdated||e,this._loadingPending=this._loadingPending||e}}else this._configUpdated=!0,this._loadingPending=this._loadingPending||null!=t.value}))}(this._loadingPending||this._configUpdated)&&this.configUpdated.emit(i),this.processAfterUpdateConfig()}async reload(){this.loadConfigFromStorage(!0)}async getFilterItem(t){const i=this.filterConfig.find((i=>i.id===t));return Promise.resolve(a.copy(i))}async updateFilterItem(t){return-1==this.filterConfig.findIndex((i=>i.id===t.id))?(console.warn("[SnkFilterBar.updateFilterItem] FilterItem não encontrado, o mesmo não será atualizado."),Promise.resolve()):(this._loadingPending=!0,this.updateFilter(t),Promise.resolve())}async addFilterItem(t){return this.filterConfig.findIndex((i=>i.id===t.id))>-1?(console.warn("[SnkFilterBar.addFilterItem] FilterItem já existe , o mesmo não será adicionado novamente."),Promise.resolve()):(this.filterConfig.push(t),this._loadingPending=!0,this.updateFilter(t),Promise.resolve())}async removeFilterItem(t){const i=this.filterConfig.findIndex((i=>i.id===t));if(-1==i)return console.warn("[SnkFilterBar.removeFilterItem] FilterItem não encontrado"),Promise.resolve(void 0);const e=this.filterConfig[i];return this.filterConfig=this.filterConfig.filter((i=>i.id!==t)),Promise.resolve(e)}componentDidLoad(){this._element&&o.addIDInfo(this._element,null,{dataUnit:this.dataUnit})}processPendingFilter(){if(this._pendingVariables){const t=this._element.querySelector("#filter-PERSONALIZED_FILTER_GROUP");t&&t.showUp(!0).then((()=>{this.processAfterUpdateConfig()}))}else this.processAfterUpdateConfig()}getPersonalizedFilterItem(){return this.filterConfig.find((t=>t.type===b.PERSONALIZED))}async processAfterUpdateConfig(){if(this._loadingPending){if(await this._application.isLoadedByPk()&&!this._configUpdated)return;const t=this.getPersonalizedFilterItem();if(this._pendingVariables=!F.validateVariableValues(t),this._pendingVariables)return;this._loadingPending=!1,this.doLoadData(null!=this.dataUnit.getLastLoadRequest())}this._configUpdated&&(this._configUpdated=!1,p.saveFilterBarConfig(this.filterConfig,this.configName,this.resourceID))}async doLoadData(t=!1){try{if(this._firstLoad&&!1===this.autoLoad)return;if(this._firstLoad&&!t&&void 0===this.autoLoad&&!await this._application.getBooleanParam("global.carregar.registros.iniciar.tela"))return;this.dataUnit.loadData(void 0,void 0,!0)}finally{this._firstLoad=!1}}getMessage(t,i,e){var s;return null==this.messagesBuilder&&this._application&&(this.messagesBuilder=this._application.messagesBuilder),(null===(s=this.messagesBuilder)||void 0===s?void 0:s.getMessage(t,i))||e}getFilter(t){var i;const e=[];return null===(i=this.filterConfig)||void 0===i||i.filter((t=>this.isActiveFilter(t))).forEach((t=>{const i=(t=>{switch(t.type){case b.DEFAULT_FILTER:return function(t){return{name:t.id,expression:t.props.expression,params:[]}}(t);case b.BINARY_SELECT:return function(t){const{id:i,value:e,props:s}=t;return{name:i,expression:s.options.find((t=>t.name===e)).expression,params:[]}}(t);case b.MULTI_SELECT:return function(t){const{id:i,value:e,props:s}=t;return{name:i,expression:s.expression,params:[{name:i,dataType:l.TEXT,value:e}]}}(t);case b.MULTI_LIST:return function(t){const{id:i,value:e,props:s}=t,r=(null!==(o=null!==(a=null==(n=e)?void 0:n.elements)&&void 0!==a?a:null==n?void 0:n.members)&&void 0!==o?o:n).filter((t=>null==t?void 0:t.check)).map((({id:t})=>Number.isNaN(+t)?String(t):Number(t)));var n,a,o;if(r.length>0)return{name:i,expression:s.expression,params:[{name:i,dataType:l.TEXT,value:JSON.stringify(r)}]}}(t);case b.PERIOD:return function(t){const{id:i,value:e,props:s}=t;let{end:r,start:n}=e;"string"==typeof r&&(r=new Date(r)),"string"==typeof n&&(n=new Date(n));const a=[];let o;return r&&n?(o=s.expression.fullfill,a.push({name:`${i}.START`,dataType:l.DATE,value:v(l.DATE,n)},{name:`${i}.END`,dataType:l.DATE,value:v(l.DATE,r)})):n?(o=s.expression.onlystart,a.push({name:i,dataType:l.DATE,value:v(l.DATE,n)})):(o=s.expression.onlyend,a.push({name:i,dataType:l.DATE,value:v(l.DATE,r)})),{name:i,expression:o,params:a}}(t);case b.SEARCH:return function(t){const{id:i,value:e,props:s}=t;return{name:i,expression:s.expression,params:[{name:i,dataType:l.TEXT,value:v(l.TEXT,e.value)}]}}(t);case b.TEXT:return function(t){let{id:i,value:e,props:s}=t;const r=s.expression;var a,o;return n.isEmpty(s.likeAs)||(a=e,e="CONTANIS"===(o=s.likeAs)?`%${a}%`:"STARTS_WITH"===o?`${a}%`:"ENDS_WITH"===o?`%${a}`:a),{name:i,expression:r,params:[{name:i,dataType:l.TEXT,value:v(l.TEXT,e)}]}}(t);case b.NUMBER:return function(t){const{id:i,value:e,props:s}=t;if(s.variation===g.INTERVAL){const{start:t,end:r}=null!=e?e:{start:0,end:0};if(t&&r)return{name:i,expression:s.intervalExpression.fullfill,params:[{name:`${i}.START`,dataType:l.NUMBER,value:v(l.NUMBER,t)},{name:`${i}.END`,dataType:l.NUMBER,value:v(l.NUMBER,r)}]};if(t)return{name:i,expression:s.intervalExpression.onlystart,params:[{name:i,dataType:l.NUMBER,value:v(l.NUMBER,t)}]};if(r)return{name:i,expression:s.intervalExpression.onlyend,params:[{name:i,dataType:l.NUMBER,value:v(l.NUMBER,r)}]}}return{name:i,expression:s.expression,params:[{name:i,dataType:l.NUMBER,value:v(l.NUMBER,e)}]}}(t);case b.PERSONALIZED:return function(t){const{id:i,groupedItems:e=[]}=t,s=e.filter((t=>!!t.visible)).map((t=>{var i;const e=t.props.expression,s=((null===(i=t.props.personalizedFilter)||void 0===i?void 0:i.parameters)||[]).map(((i,e)=>{const s=Array.from(t.value||0),r=i.dataType;let n=e>=0&&e<s.length?s[e]:null;return null!=n&&"object"==typeof n&&"value"in n&&(n=n.value),null==n&&r===l.BOOLEAN&&(n=!1),{name:i.name,dataType:r,value:"string"==typeof n?n:v(r,n)}}));return{expression:e,name:t.id,params:s}}));return{name:i,expression:s.map((t=>`(${t.expression})`)).join(` ${k.AND} `),params:s.flatMap((t=>t.params))}}(t);case b.CHECK_BOX_LIST:return function(t){var i;const{id:e,value:s,props:r}=t,l=Object.entries(null!=s?s:{}).filter((([t,i])=>!0===i)).map((([t,i])=>t));return{name:e,expression:y(null===(i=r.options)||void 0===i?void 0:i.filter((t=>l.includes(t.name)))),params:[]}}(t);default:return}})(t);i&&e.push(i)})),e}isActiveFilter(t){return t.type===b.DEFAULT_FILTER||this.filterActiveFilter(t)&&(t.groupedItems||null!=t.value)}registryFilterProvider(){this.dataUnit.addFilterProvider(this),this.filterConfig&&this.doLoadData()}itemFocused(t){this._element.querySelectorAll("snk-filter-item,snk-filter-list").forEach((i=>{i.id===t?"snk-filter-item"===i.tagName.toLowerCase()&&i.getClientRects()[0].x<0&&i.scrollIntoView({behavior:"auto",inline:"nearest"}):i.hideDetail()}))}filterActiveFilter(t){return t.visible||t.removalBlocked}filterPersonalizedItems(t){return t.type===b.PERSONALIZED}getPersonalizedFilterVariableItems(){return this.filterConfig.filter(this.filterPersonalizedItems).map((t=>{const i=`filter-${t.id}`;return e("snk-filter-item",{key:t.id,id:i,config:Object.assign({},t),onFocusin:()=>this.itemFocused(i),onVisibleChanged:t=>this.scrollerLocked=t.detail,onFilterChange:t=>this.updateFilter(t.detail),getMessage:(t,i)=>this.getMessage(t,i),showChips:!1})}))}getFilterItems(){const t=[],i=[];this.filterConfig.sort(((t,i)=>this._filtersComparator(t,i))).filter(this.filterActiveFilter).forEach(((s,r)=>{const l=`filter-${(s=a.copy(s)).id}`,n=e("snk-filter-item",{onVisibleChanged:t=>this.scrollerLocked=t.detail,onFilterChange:t=>this.updateFilter(t.detail),onFocusin:()=>this.itemFocused(l),id:l,config:s,class:r>0?"ez-padding-left--medium":"",getMessage:(t,i)=>this.getMessage(t,i),key:s.id});return s.fixed||s.hardFixed?t.push(n):i.push(n),n}));const s=[];return s.push(...t),t.length>0&&i.length>0&&s.push(e("hr",{class:"ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-filter-bar__divider"})),s.push(...i),s}calculateUpdateSequence(t){t&&(this._updateSequence=this._updateSequence.filter((i=>t.id!==i)),this._updateSequence.push(t.id))}normalizeItem(t){const i=Object.assign({},t);return["props","value","hardFixed","fixed"].forEach((t=>{null==i[t]&&delete i[t]})),""===t.value&&delete t.value,i}updateFilter(t){this.filterConfig=this.filterConfig.map((i=>(t=this.normalizeItem(t),i.id===t.id?(a.objectToString(i)!=a.objectToString(t)&&this.calculateUpdateSequence(t),t):i))).sort(((t,i)=>this._filtersComparator(t,i)))}loadPermitions(){this._application.isUserSup().then((t=>this.allowDefault=t))}addFilterBarLegacyConfigName(){this.filterBarLegacyConfigName&&this.configName&&p.addFilterBarLegacyConfig(this.configName,this.filterBarLegacyConfigName)}async loadConfigFromStorage(t){try{let i;t&&await p.deleteFilterBarConfigCache(this.configName,this.resourceID),i=this.customFilterBarConfig?await this.customFilterBarConfig(this.configName,this.resourceID,{contextURI:this.dataUnit.name}):await p.loadFilterBarConfig(this.configName,this.resourceID,{contextURI:this.dataUnit.name}),this.filterConfig=i.map((t=>this.normalizeItem(t))),this.filterConfig.sort(((t,i)=>this._filtersComparator(t,i)))}catch(t){throw new h(this.getMessage("snkFilterBar.failToLoadConfig"),t)}}attachDataUnit(){if(null==this.dataUnit){let t=this._element.parentElement;for(;t;)if("SNK-DATA-UNIT"===t.tagName.toUpperCase()){const i=t;this.dataUnit=i.dataUnit,this.dataUnit?this.registryFilterProvider():i.addEventListener("dataUnitReady",(t=>{this.dataUnit=t.detail,this.registryFilterProvider()}));break}t=t.parentElement}else this.registryFilterProvider()}filterChangeListener(t){this.updateFilter(t.detail)}async showFilterModal(){let t=a.copy(this.filterConfig);t=t.sort(((t,i)=>t.originOrder-i.originOrder)),this._filterModalFactory=new w({filterConfig:t,configName:this.configName,onComplete:t=>{this.filterConfig=t.map(this.normalizeItem).sort(((t,i)=>this._filtersComparator(t,i)))},disablePersonalizedFilter:this.disablePersonalizedFilter,getMessage:(t,i)=>this.getMessage(t,i),onAddPersonalizedFilter:()=>this.addPersonalizedFilter(),onEditPersonalizedFilter:t=>this.editPersonalizedFilter(t),onDeletePersonalizedFilter:(t,i)=>this.deletePersonalizedFilter(t,b.PERSONALIZED,i)}),await this._filterModalFactory.showModal()}addPersonalizedFilter(){this._filterModalFactory.closeModal(),this.personalizedFilterId=void 0,this.showPersonalizedFilter=!0,window.requestAnimationFrame((()=>{this._elPersonalizedFilter.createPersonalizedFilter()}))}editPersonalizedFilter(t){this._filterModalFactory.closeModal(),this.showPersonalizedFilter=!0,this.personalizedFilterId=t}deletePersonalizedFilter(t,i,e){i===b.PERSONALIZED&&p.removePersonalizedFilter(t,this.resourceID,e)}handleHidePersonalizedFilter(t){t?this.loadConfigFromStorage().then((()=>{this.hidePersonalizedFilter()})):this.hidePersonalizedFilter()}hidePersonalizedFilter(){this.personalizedFilterId=void 0,this.showPersonalizedFilter=!1}componentWillLoad(){this._application=d.getContextValue("__SNK__APPLICATION__"),this._application&&(this.loadPermitions(),this.addFilterBarLegacyConfigName(),this.loadConfigFromStorage()),this.attachDataUnit()}componentDidRender(){this.processPendingFilter()}render(){if(this.dataUnit&&this.filterConfig&&0!==this.filterConfig.length)return this.showPersonalizedFilter?e("snk-personalized-filter",{class:"filter-bar__personalized-filter",filterId:this.personalizedFilterId,ref:t=>this._elPersonalizedFilter=t,onEzCancel:()=>this.handleHidePersonalizedFilter(!1),onEzAfterSave:()=>this.handleHidePersonalizedFilter(!0),entityUri:this.dataUnit.name,configName:this.configName,resourceID:this.resourceID}):"regular"!==this.mode?e(s,{"data-mode":this.mode},this.getPersonalizedFilterVariableItems(),"button"===this.mode&&e("ez-button",{class:"ez-margin-left--medium",size:"small",label:this.getMessage("snkFilterBar.filters",void 0,"Filtros"),onClick:this.showFilterModal.bind(this)})):e(s,null,e("div",null,e("span",{class:"snk-filter-bar__title",title:this.title,"data-tooltip":this.title,"data-flow":"bottom"},this.title)),e("ez-scroller",{class:"snk-filter-bar__scroller",direction:f.HORIZONTAL,activeShadow:!0,locked:this.scrollerLocked},e("section",{class:"snk-filter-bar__filter-item-container"},this.getFilterItems())),e("ez-button",{class:"ez-padding-left--medium",size:"small",label:this.getMessage("snkFilterBar.filters",void 0,"Filtros"),onClick:this.showFilterModal.bind(this)},e("ez-icon",{slot:"leftIcon",iconName:"plus",class:"ez-padding-right--small"})))}get _element(){return r(this)}static get watchers(){return{filterConfig:["observeFilterConfig"]}}};C.style='.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:8px}[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)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:"";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}';const $=class{constructor(e){t(this,e),this.visibleChanged=i(this,"visibleChanged",7),this.filterChange=i(this,"filterChange",3),this.innerClickCheck=(t,i)=>i.id!=c.MODAL_ELEMENT_ID||(this.detailIsVisible=!1,!1),this.detailIsVisible=void 0,this.config=void 0,this.getMessage=void 0,this.showChips=!0}observeDetailIsVisible(t){this.visibleChanged.emit(t)}async showUp(t=!1){return new Promise((i=>{this._filterItemElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"}),t&&(this._closeCallback=i,window.requestAnimationFrame((()=>{this._floatingID=c.float(this._popover,this._popoverContainer,this.getFloatOptions()),this._popover.show(),this.detailIsVisible=!0})))}))}updatePosition(){null!=this._floatingID&&c.updateFloatPosition(this._popover,this._popoverContainer,this.getFloatOptions())}getFloatOptions(){return{autoClose:!0,innerClickTest:this.innerClickCheck,backClickListener:()=>this.onDetailCloseCallback(),left:this.getOffsetLeft(),top:this.getOffsetTop(),useOverlay:!0,overlayClassName:"ez-scrim ez-scrim--light",isFixed:!0}}getOffsetLeft(){const t=getComputedStyle(this._filterItemElement).getPropertyValue("padding-left"),i=this._filterItemElement.getBoundingClientRect(),e=430-(document.body.clientWidth-i.left);return`calc(${i.x}px + ${t} - ${e>0?e:0}px)`}getOffsetTop(){const t=this._filterItemElement.getBoundingClientRect();return t.y+t.height+"px"}controlScrollPage(){window.removeEventListener("scroll",this.updatePosition.bind(this)),window.addEventListener("scroll",this.updatePosition.bind(this))}getConfigChanges(){var t;const i=this.config;(null===(t=i.groupedItems)||void 0===t?void 0:t.length)&&(i.visible=!1,i.groupedItems=i.groupedItems.map((t=>Object.assign(Object.assign({},t),{visible:!1}))));const e=i.type===b.MULTI_LIST&&Array.isArray(i.value)?i.value.map((t=>Object.assign(Object.assign({},t),{check:!1}))):void 0;return Object.assign(Object.assign({},i),{value:e})}async hideDetail(){this.detailIsVisible&&null!=this._floatingID&&c.close(this._floatingID)}onDetailCloseCallback(){this._floatingID=void 0,this.detailIsVisible=!1,this._closeCallback&&(this._closeCallback(),this._closeCallback=void 0)}clickListener(t){if([this._chipElement,this._leftIconElement,this._rightIconElement].includes(t.target)){if(t.target===this._rightIconElement&&this.canClearFilter()){const t=this.getConfigChanges();this.filterChange.emit(t)}else this.detailIsVisible?this.hideDetail():this.showUp(!0);t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation()}}mouseDownListener(t){this.detailIsVisible&&[this._chipElement,this._leftIconElement,this._rightIconElement].includes(t.target)&&(t.preventDefault(),t.stopImmediatePropagation(),t.stopPropagation())}getLabel(t=!1){var i,e;const{type:s,value:r,label:l,props:n,groupedItems:a=[]}=this.config;if(r||a.length){if(s===b.BINARY_SELECT){const[i,e]=n.options,s=this.getMessage("snkFilterBar.binarySelectTooltip");if(i.name===r)return t?`${s} ${String(i.label).toLowerCase()}`:i.label;if(e.name===r)return t?`${s} ${String(e.label).toLowerCase()}`:e.label}if(s===b.MULTI_SELECT)return`${l}: ${n.options.find((t=>t.value===r)).label}`;if(s===b.PERIOD){let{end:i,start:e}=r;"string"==typeof i&&(i=new Date(i),i.setMinutes(i.getMinutes()+i.getTimezoneOffset())),"string"==typeof e&&(e=new Date(e),e.setMinutes(e.getMinutes()+e.getTimezoneOffset()));const s=new Intl.DateTimeFormat("pt-BR");if(i&&e){const s=e.getFullYear()===i.getFullYear(),r=Object.assign({day:"2-digit",month:"2-digit"},(!s||t)&&{year:"2-digit"}),n=u.formatDate(e,r),a=u.formatDate(i,r);return t?this.getMessage("snkFilterBar.fullPeriodTooltip",{LABEL:l,START_LABEL:n,END_LABEL:a}):`${l}: ${n} → ${a}`}return e?`${l}: ${this.getMessage("snkFilterBar.onlyStartToltip")} ${s.format(e)}`:i?`${l}: ${this.getMessage("snkFilterBar.onlyEndToltip")} ${s.format(i)}`:l}if(s===b.SEARCH)return`${l}: ${r.value} - ${r.label}`;if(s===b.PERSONALIZED){const t=this.calculateActiveCount(a);return t<=0?l:`${l}: ${this.getMessage("snkFilterBar.personalizedCount",{activeCount:t})}`}if(s===b.MULTI_LIST){const e=(null!==(i=r.elements)&&void 0!==i?i:r).filter((t=>null==t?void 0:t.check));return this.getLabelFromCheckedOptions(e,l,t)}if(s===b.CHECK_BOX_LIST){const i=Object.entries(null!=r?r:{}).filter((([t,i])=>!0===i)).map((([t,i])=>t)),s=(null!==(e=n.options)&&void 0!==e?e:[]).filter((t=>i.includes(t.name)));return this.getLabelFromCheckedOptions(s,l,t)}if(s===b.NUMBER&&n.variation===g.INTERVAL){const{start:t,end:i}=r;if(t&&i)return this.getMessage("snkFilterBar.fullIntervalTooltip",{LABEL:l,START_LABEL:t,END_LABEL:i});if(t)return`${l}: ${this.getMessage("snkFilterBar.onlyStartToltip")} ${Number(t)}`;if(i)return`${l}: ${this.getMessage("snkFilterBar.onlyEndToltip")} ${Number(i)}`}return`${l}: ${r}`}return l}getLabelFromCheckedOptions(t,i,e){const s=t.length;return 0===s?`${i}`:s>1?e?`${i}: ${t.map((t=>t.label)).join(",")}`:`${i}: ${s} ${this.getMessage("snkFilterBar.multiListToltip")}`:`${i}: ${t[0].label}`}calculateActiveCount(t){return t.reduce(((t,i)=>i.visible?t+1:t),0)}componentDidLoad(){this._filterItemElement&&(o.addIDInfo(this._filterItemElement),this._idSnkFilterDetail=`filterDetail_${this.config.id}`),this.controlScrollPage()}componentDidRender(){null==this._floatingID&&this._popover&&this._popover.remove()}filterChangeListener(){this.hideDetail()}canClearFilter(){const{value:t,groupedItems:i=[]}=this.config;return null!=t&&this.config.type===b.MULTI_LIST?t.some((t=>t.check)):void 0!==t||i.some((t=>t.visible))}getRightIconName(){return this.canClearFilter()?"close":this.detailIsVisible?"chevron-up":"chevron-down"}getLeftIconName(){switch(this.config.type){case b.PERIOD:return"calendar";case b.PERSONALIZED:return"tune"}}hasActiveElements(t){var i,e,s;return(null===(s=null===(e=null!==(i=null==t?void 0:t.elements)&&void 0!==i?i:t)||void 0===e?void 0:e.filter((t=>null==t?void 0:t.check)))||void 0===s?void 0:s.length)>0}hasActiveValue(t){return t.type!==b.MULTI_LIST&&void 0!==t.value||this.hasActiveElements(t.value)}getEnabledChip(){if(this.config.type===b.PERSONALIZED){const{groupedItems:t=[]}=this.config;return t.some((t=>t.visible))}return this.hasActiveValue(this.config)}render(){const t=this.getLeftIconName();return e(s,null,this.showChips&&e("ez-chip",{id:this.config.id,ref:t=>this._chipElement=t,label:this.getLabel(),value:this.getEnabledChip()},t&&e("ez-icon",{ref:t=>this._leftIconElement=t,iconName:t,class:"ez-padding-right--small",slot:"leftIcon"}),e("ez-icon",{ref:t=>this._rightIconElement=t,iconName:this.getRightIconName(),class:"ez-padding-left--small",slot:"rightIcon",id:"removeFilter"})),e("section",{class:"ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container",ref:t=>this._popoverContainer=t},e("snk-filter-detail",{config:this.config,getMessage:this.getMessage,class:"sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16",ref:t=>this._popover=t,key:this.config.id,"data-element-id":this._idSnkFilterDetail,showHardFixed:this.showChips})))}get _filterItemElement(){return r(this)}static get watchers(){return{detailIsVisible:["observeDetailIsVisible"]}}},I="__SHOWMORE__",L=class{constructor(e){t(this,e),this.snkItemSelected=i(this,"snkItemSelected",7),this._preselection=-1,this.innerClickCheck=(t,i)=>i.id!=c.MODAL_ELEMENT_ID||(this._detailIsVisible=!1,!1),this._filterArgument=void 0,this._showAll=void 0,this.label=void 0,this.iconName=void 0,this.items=void 0,this.getMessage=void 0,this.emptyText=void 0,this.findFilterText=void 0,this.buttonClass=void 0}showDetail(){this._preselection=-1,this._floatingID=c.float(this._popover,this._popoverContainer,{autoClose:!0,innerClickTest:this.innerClickCheck,backClickListener:()=>this.onListCloseCallback(),useOverlay:!0}),this._detailIsVisible=!0,this._showAll=!1,this._filterArgument="",this._filterInput.setFocus()}async hideDetail(){null!=this._floatingID&&c.close(this._floatingID)}onListCloseCallback(){this._floatingID=void 0,this._detailIsVisible=!1}buttonClick(){this._detailIsVisible?this.hideDetail():this.showDetail()}componentDidLoad(){this._element&&o.addIDInfo(this._element)}componentDidRender(){null==this._floatingID&&this._popover&&this._popover.remove()}buildIdElement(t,i){if(!t)return;const e={id:i};t.removeAttribute(o.DATA_ELEMENT_ID_ATTRIBUTE_NAME),o.addIDInfoIfNotExists(t,"filterItemList",e)}buildItemElement(t){const i=++this._selectableItemsCount;return e("button",{ref:i=>i&&this.buildIdElement(i,t.label),id:`filter-item${i}`,onFocusin:()=>this._preselection=i,class:"ez-col ez-col--sd-12 ez-align--middle ez-padding--small sc-snk-filter-bar snk-filter-bar__filter-list-item",onClick:()=>this.itemSelected(t.name),name:t.label,key:i},t.iconName?e("ez-icon",{iconName:t.iconName,size:"small",class:`ez-padding-right--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__icon ${t.iconClass||""}`}):void 0,e("div",{class:`ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-item__label ${t.labelClass||""}`},t.label))}itemSelected(t){t===I?this._showAll=!0:(this.hideDetail(),this.snkItemSelected.emit(t))}getFilterItems(){const t=this.items?m.applyStringFilter(this._filterArgument,this.items.filter((t=>"FILTER"===t.kind))):[];return 0===t.length?e("div",{class:"ez-text ez-text--medium ez-text--primary ez-padding--extra-small sc-snk-filter-bar snk-filter-bar__filter-list-items-container--empty"},this.emptyText):(!this._filterArgument&&!this._showAll&&t.length>6&&(t.splice(5),t.push({kind:"INTERNAL",label:"Mostrar mais",iconName:"dots-horizontal",name:I,iconClass:"snk-filter-bar__filter-list-item__icon--secondary",labelClass:"snk-filter-bar__filter-list-item__label--secondary"})),this._selectableItemsCount=0,e("div",{class:"sc-snk-filter-bar snk-filter-bar__filter-list-items-container"},t.map((t=>this.buildItemElement(t)))))}getFooterItems(){return this.items.filter((t=>"FOOTER"===t.kind))}keyDownHandler(t){switch(t.key){case"ArrowDown":this.changePreselection(this._preselection+1),t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault();break;case"ArrowUp":this.changePreselection(this._preselection-1),t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault()}}changePreselection(t){if(t<0&&(t=this._selectableItemsCount),this._preselection=t>this._selectableItemsCount?0:t,0===this._preselection)this._filterInput.setFocus();else{const t=this._element.querySelector(`#filter-item${this._preselection}`);t&&t.focus()}}render(){return e(s,{class:"ez-flex ez-flex--column"},e("ez-button",{class:this.buttonClass,label:this.label,onClick:()=>this.buttonClick(),mode:this.iconName?"icon":void 0,iconName:this.iconName,size:"small"},e("slot",{name:"leftIcon"})),e("section",{class:"ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container",ref:t=>this._popoverContainer=t},e("div",{class:"sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--4",ref:t=>this._popover=t},e("ez-filter-input",{ref:t=>this._filterInput=t,"data-element-id":"serachFilters",mode:"slim",label:this.findFilterText,value:this._filterArgument,onEzChange:t=>this._filterArgument=t.detail,onFocus:()=>this._preselection=0}),this.getFilterItems(),e("hr",{class:"sc-snk-filter-bar snk-filter__popover-rule"}),this.items?this.getFooterItems().map((t=>this.buildItemElement(t))):void 0)))}get _element(){return r(this)}},T=class{constructor(i){t(this,i),this.getMessage=void 0,this.configName=void 0,this.filters=void 0,this.applyFilters=void 0,this.closeModal=void 0,this.addPersonalizedFilter=void 0,this.editPersonalizedFilter=void 0,this.deletePersonalizedFilter=void 0,this.filtersToDelete=[],this.disablePersonalizedFilter=void 0}deletePersonalizedFilterListener(t){this.filtersToDelete.push(t.detail)}getCustomMessage(t,i){var e;return null===(e=this.getMessage)||void 0===e?void 0:e.call(this,`snkFilterBar.filterModal.${t}`,i)}handleClearAll(){const{customFilters:t,quickFilters:i,otherFilters:e,multiListFilters:s}=this.filters.reduce(((t,i)=>i.type===b.MULTI_LIST?(t.multiListFilters.push(i),t):i.filterType===z.QUICK_FILTER?(t.quickFilters.push(i),t):i.filterType===z.CUSTOM_FILTER?(t.customFilters.push(i),t):i.filterType===z.OTHER_FILTERS?(t.otherFilters.push(i),t):t),{quickFilters:[],customFilters:[],otherFilters:[],multiListFilters:[]});this.handleClearFilterList(i),this.handleClearCustomFilters(t),this.handleClearOthersFilters(e),s.forEach((t=>this.handleClearSigleFilter(t)))}handleClearOthersFilters(t){this.filters=this.filters.map((i=>t.includes(i)?Object.assign(Object.assign({},i),{value:void 0}):i))}handleClearCustomFilters(t){this.filters.forEach(((i,e)=>{i.filterType===z.CUSTOM_FILTER&&(this.filters[e]=this.clearAllCustomFilter(t).shift())}))}clearAllCustomFilter(t){return t.map((t=>{const i=Object.assign({},t);return delete i.value,i.visible=!1,i.groupedItems&&(i.groupedItems=this.clearAllCustomFilter(i.groupedItems)),i}))}handleClose(){if(a.objectToString(this.filters)!==a.objectToString(this._originalFilterConfig))return _.confirm(this.getCustomMessage("validations.notSaved.title"),this.getCustomMessage("validations.notSaved.message")).then((t=>{t&&this.closeModal()}));this.closeModal()}handleApplyFilters(){const t=this.filters.find((t=>t.filterType===z.CUSTOM_FILTER));this.isValidCustomFilter(t)&&this.applyFilters(this.filters),this.filtersToDelete.length>0&&(this.filtersToDelete.forEach((t=>{this.deletePersonalizedFilter(t,this.configName)})),this.filtersToDelete=[])}isValidCustomFilter(t){return!!F.validateVariableValues(t)||(_.alert(this.getCustomMessage("validations.notFullFilled.title"),this.getCustomMessage("validations.notFullFilled.message")),!1)}modalActionListener(t){switch(t.detail){case x.CANCEL:this.handleClearAll();break;case x.OK:this.handleApplyFilters();break;case x.CLOSE:this.handleClose()}}handleFilterChange(t){this.filters=this.filters.map((i=>i.id===t.id?t:i))}handleClearFilterList(t){this.filters=this.filters.map((i=>t.includes(i)?Object.assign(Object.assign({},i),{value:void 0}):i))}handleClearSigleFilter(t){if(b.MULTI_LIST===t.type){let i=a.copy(t);this.uncheckFilterValues(i.value);const e=a.copy(this.filters),s=e.findIndex((i=>i.id===t.id));return e.splice(s,1,i),void(this.filters=a.copy(e))}if(b.CHECK_BOX_LIST===t.type){const i=a.copy(this.filters);return i.find((i=>i.id===t.id)).value=void 0,void(this.filters=a.copy(i))}this.filters.find((i=>i.id===t.id)).value=void 0}uncheckFilterValues(t){return t.forEach((t=>{t&&(t.check=!1)})),t}renderFilterItem(t,i){return e("snk-filter-modal-item",{class:i?"ez-col ez-col--sd-12":"ez-col ez-col--sd-6 ez-padding--small",filterItem:t,configName:this.configName,onFilterChange:t=>this.handleFilterChange(t.detail),onEditPersonalizedFilter:t=>this.editPersonalizedFilter(t.detail),onAddPersonalizedFilter:()=>this.addPersonalizedFilter()})}isDefaultFilterNumberVariation(t){var i;return t.type===b.NUMBER&&(!t.props.variation||(null===(i=t.props)||void 0===i?void 0:i.variation)===g.DEFAULT)}mountFiltersLines(t){let i=0,e=!1;const s={};for(let r=0;r<t.length;r++){s[i]=s[i]||[];const l=t[r],n=r===t.length-1,a=l.type===b.TEXT||this.isDefaultFilterNumberVariation(l),o=!n&&(t[r+1].type===b.TEXT||this.isDefaultFilterNumberVariation(t[r+1]));a&&o||e?(s[i].push(l),e=s[i].length<2,2===s[i].length&&++i):(s[i]=s[i]||[],s[i].push(l),++i)}return Object.values(s)}renderFilterLine(t){const i=1===t.length;return t.map((t=>this.renderFilterItem(t,i)))}getIformedFiltersCount(t){let i=0;return t.forEach((t=>{var e,s,r,l,n,a;b.MULTI_LIST!==t.type?b.CHECK_BOX_LIST!==t.type?null==t.groupedItems?t.value&&i++:i=t.groupedItems.filter((t=>t.visible)).length:i+=Object.entries(null!==(a=t.value)&&void 0!==a?a:{}).filter((([t,i])=>!0===i)).map((([t,i])=>t)).length:i+=null!==(n=null===(l=null===(r=null!==(s=null===(e=t.value)||void 0===e?void 0:e.elements)&&void 0!==s?s:t.value)||void 0===r?void 0:r.filter((t=>null==t?void 0:t.check)))||void 0===l?void 0:l.length)&&void 0!==n?n:0})),i}renderCollapsibleFilterBox(t,i,s,r=!0){if(!i.length)return null;const l=this.getIformedFiltersCount(i),n=this.mountFiltersLines(i);return e("ez-collapsible-box",{class:"snk-filter-modal__collapsible-box",headerSize:"medium",value:!0,label:t},!!l&&e("ez-badge",{class:"ez-badge--primary-subtle",slot:"rightSlot",label:null==l?void 0:l.toString()}),e("div",{class:"ez-row snk-filter-modal__rendered-items"},n.map(this.renderFilterLine.bind(this))),r&&e("div",{class:"ez-flex ez-flex--justify-end grow"},e("ez-button",{class:"ez-button--tertiary",size:"medium",label:"Limpar",onClick:()=>s?this.handleClearSigleFilter(i[0]):this.handleClearFilterList(i)})))}componentWillRender(){this._modalTitle=this.getCustomMessage("title"),this._okButtonLabel=this.getCustomMessage("okButtonLabel"),this._cancelButtonLabel=this.getCustomMessage("cancelButtonLabel")}componentDidLoad(){this._originalFilterConfig||(this._originalFilterConfig=this.filters)}render(){const t=this.filters.filter((t=>t.filterType===z.CUSTOM_FILTER)),i=this.filters.filter((t=>t.filterType===z.QUICK_FILTER)),s=this.filters.filter((t=>t.filterType===z.OTHER_FILTERS));return e("ez-modal-container",{class:"snk-filter-modal__container",modalTitle:this._modalTitle,cancelButtonLabel:this._cancelButtonLabel,okButtonLabel:this._okButtonLabel,onEzModalAction:this.modalActionListener.bind(this)},e("div",{class:"snk-filter-modal__content ez-col--sd-12"},!this.disablePersonalizedFilter&&this.renderCollapsibleFilterBox(this.getCustomMessage("customFilters"),t,!1,!1),this.renderCollapsibleFilterBox(this.getCustomMessage("quickFilters"),i,!1),s.map((t=>this.renderCollapsibleFilterBox(t.label,[t],!0)))))}};T.style="ez-modal{--ez-modal-content-padding:24px 12px}.snk-filter-modal__container{width:344px;max-width:344px;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;overflow-x:clip;overflow-y:auto}.snk-filter-modal__rendered-items::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";export{C as snk_filter_bar,$ as snk_filter_item,L as snk_filter_list,T as snk_filter_modal}
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file