@sankhyalabs/sankhyablocks 10.1.0-dev.3 → 10.1.0-dev.31

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 (376) hide show
  1. package/dist/cjs/{ConfigStorage-b29e31be.js → ConfigStorage-d9d24844.js} +2 -2
  2. package/dist/cjs/{DataFetcher-ed9d97ea.js → DataFetcher-3a8ea521.js} +2 -2733
  3. package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
  4. package/dist/cjs/{ISave-81eb2fbc.js → ISave-a66bb65e.js} +1 -1
  5. package/dist/cjs/ImageUtils-5e3f406b.js +142 -0
  6. package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
  7. package/dist/cjs/{SnkFormConfigManager-6838389c.js → SnkFormConfigManager-c88cf1e9.js} +7 -7
  8. package/dist/cjs/SnkMessageBuilder-d9558dba.js +2809 -0
  9. package/dist/cjs/{SnkMultiSelectionListDataSource-1e804147.js → SnkMultiSelectionListDataSource-a891430e.js} +5 -5
  10. package/dist/cjs/{auth-fetcher-cc28d847.js → auth-fetcher-faa61f64.js} +1 -1
  11. package/dist/cjs/config-header.cjs.entry.js +1 -1
  12. package/dist/cjs/configs-button.cjs.entry.js +1 -1
  13. package/dist/cjs/css-shim-a27d231b.js +6 -0
  14. package/dist/cjs/{dataunit-fetcher-ab1cc071.js → dataunit-fetcher-4320f7ec.js} +3 -2
  15. package/dist/cjs/dom-ff96a4bc.js +75 -0
  16. package/dist/cjs/field-config_2.cjs.entry.js +3 -3
  17. package/dist/cjs/fields-layout.cjs.entry.js +7 -4
  18. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  19. package/dist/cjs/{form-config-fetcher-f0897eb5.js → form-config-fetcher-72cf0e3d.js} +1 -1
  20. package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
  21. package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1525 -173
  22. package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
  23. package/dist/cjs/loader.cjs.js +16 -2
  24. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
  25. package/dist/cjs/sankhyablocks.cjs.js +132 -4
  26. package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
  27. package/dist/cjs/{snk-actions-button_9.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +20 -61
  28. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  29. package/dist/cjs/snk-application.cjs.entry.js +29 -9
  30. package/dist/cjs/snk-attach.cjs.entry.js +10 -9
  31. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  32. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  33. package/dist/cjs/snk-crud.cjs.entry.js +18 -10
  34. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
  35. package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
  36. package/dist/cjs/snk-data-exporter.cjs.entry.js +7 -6
  37. package/dist/cjs/{snk-data-unit-68992932.js → snk-data-unit-b54fdf9a.js} +21 -12
  38. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
  39. package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
  40. package/dist/cjs/snk-detail-view.cjs.entry.js +18 -14
  41. package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
  42. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  43. package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
  44. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
  45. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +67 -25
  46. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  47. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  48. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
  49. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  50. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
  51. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  52. package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
  53. package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
  54. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  55. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  56. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  57. package/dist/cjs/snk-form-view.cjs.entry.js +73 -8
  58. package/dist/cjs/snk-form_2.cjs.entry.js +34 -10
  59. package/dist/cjs/snk-grid.cjs.entry.js +30 -19
  60. package/dist/cjs/{snk-guides-viewer-8b841753.js → snk-guides-viewer-58185ae3.js} +91 -42
  61. package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -10
  62. package/dist/cjs/snk-image-input.cjs.entry.js +148 -0
  63. package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
  64. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  65. package/dist/cjs/snk-personalized-filter.cjs.entry.js +7 -6
  66. package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
  67. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  68. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  69. package/dist/cjs/snk-simple-crud.cjs.entry.js +15 -21
  70. package/dist/cjs/snk-taskbar.cjs.entry.js +59 -47
  71. package/dist/cjs/{taskbar-elements-fb5d1e08.js → taskbar-elements-a94d4318.js} +6 -5
  72. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  73. package/dist/collection/collection-manifest.json +8 -1
  74. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
  75. package/dist/collection/components/snk-application/snk-application.js +20 -2
  76. package/dist/collection/components/snk-attach/snk-attach.js +1 -1
  77. package/dist/collection/components/snk-crud/snk-crud.js +48 -3
  78. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
  79. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -1
  80. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +93 -8
  81. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +138 -36
  82. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
  83. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
  84. package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
  85. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
  86. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
  87. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  88. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
  89. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  90. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +5 -1
  91. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
  92. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +15 -4
  93. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +46 -13
  94. package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
  95. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
  96. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
  97. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
  98. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
  99. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -3
  100. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
  101. package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
  102. package/dist/collection/components/snk-grid/snk-grid.css +12 -0
  103. package/dist/collection/components/snk-grid/snk-grid.js +22 -12
  104. package/dist/collection/components/snk-grid-config/snk-grid-config.js +12 -4
  105. package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
  106. package/dist/collection/components/snk-image-input/snk-image-input.js +326 -0
  107. package/dist/collection/components/snk-image-input/utils/ImageUtils.js +133 -0
  108. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
  109. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
  110. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
  111. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
  112. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +23 -12
  113. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +4 -3
  114. package/dist/collection/components/snk-taskbar/snk-taskbar.js +58 -44
  115. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  116. package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
  117. package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
  118. package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
  119. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +1 -1
  120. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
  121. package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
  122. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
  123. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +1 -1
  124. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
  125. package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
  126. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
  127. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
  128. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +1 -1
  129. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
  130. package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
  131. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
  132. package/dist/components/DataFetcher.js +3 -2713
  133. package/dist/components/PersonalizedFilterUtils.js +13 -0
  134. package/dist/components/SnkFormConfigManager.js +6 -6
  135. package/dist/components/SnkMessageBuilder.js +2807 -0
  136. package/dist/components/dataunit-fetcher.js +2 -1
  137. package/dist/components/field-config2.js +44 -2
  138. package/dist/components/fields-layout2.js +6 -3
  139. package/dist/components/guides-configurator2.js +5 -3
  140. package/dist/components/index.d.ts +2 -0
  141. package/dist/components/index.js +2 -0
  142. package/dist/components/index2.js +90 -21
  143. package/dist/components/snk-application2.js +22 -2
  144. package/dist/components/snk-attach2.js +3 -2
  145. package/dist/components/snk-crud.js +79 -65
  146. package/dist/components/snk-custom-slot-guide.d.ts +11 -0
  147. package/dist/components/snk-custom-slot-guide.js +55 -0
  148. package/dist/components/snk-data-unit2.js +10 -1
  149. package/dist/components/snk-detail-view2.js +186 -121
  150. package/dist/components/snk-filter-bar2.js +41 -14
  151. package/dist/components/snk-filter-detail2.js +1 -1
  152. package/dist/components/snk-filter-item2.js +6 -2
  153. package/dist/components/snk-filter-modal2.js +16 -6
  154. package/dist/components/snk-filter-number.js +12 -8
  155. package/dist/components/snk-filter-period.js +13 -6
  156. package/dist/components/snk-filter-text.js +1 -1
  157. package/dist/components/snk-form-config2.js +29 -5
  158. package/dist/components/snk-form-view2.js +82 -10
  159. package/dist/components/snk-grid-config2.js +12 -4
  160. package/dist/components/snk-grid2.js +22 -11
  161. package/dist/components/snk-image-input.d.ts +11 -0
  162. package/dist/components/snk-image-input.js +6 -0
  163. package/dist/components/snk-image-input2.js +302 -0
  164. package/dist/components/snk-layout-form-config2.js +1 -1
  165. package/dist/components/snk-pesquisa2.js +0 -1
  166. package/dist/components/snk-simple-crud2.js +6 -12
  167. package/dist/components/snk-taskbar2.js +61 -48
  168. package/dist/components/snk-view-representation2.js +1 -1
  169. package/dist/esm/{ConfigStorage-13d80e36.js → ConfigStorage-d15d2014.js} +2 -2
  170. package/dist/esm/{DataFetcher-f4ccd9f3.js → DataFetcher-1dd7e8c0.js} +3 -2713
  171. package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
  172. package/dist/esm/{ISave-288fa9df.js → ISave-498c4831.js} +1 -1
  173. package/dist/esm/ImageUtils-8fc8d905.js +136 -0
  174. package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
  175. package/dist/esm/{SnkFormConfigManager-3ee2937b.js → SnkFormConfigManager-86befa68.js} +7 -7
  176. package/dist/esm/SnkMessageBuilder-c0bc4424.js +2807 -0
  177. package/dist/esm/{SnkMultiSelectionListDataSource-5d3a93f2.js → SnkMultiSelectionListDataSource-14633bf6.js} +5 -5
  178. package/dist/esm/{auth-fetcher-59ab0c67.js → auth-fetcher-69cbda8d.js} +1 -1
  179. package/dist/esm/config-header.entry.js +1 -1
  180. package/dist/esm/configs-button.entry.js +1 -1
  181. package/dist/esm/css-shim-9f2d321e.js +4 -0
  182. package/dist/esm/{dataunit-fetcher-c4f9f222.js → dataunit-fetcher-3d5c4ae4.js} +2 -1
  183. package/dist/esm/dom-64053c71.js +73 -0
  184. package/dist/esm/field-config_2.entry.js +3 -3
  185. package/dist/esm/fields-layout.entry.js +7 -4
  186. package/dist/esm/fields-selector.entry.js +2 -2
  187. package/dist/esm/{form-config-fetcher-6a00fe9e.js → form-config-fetcher-fcc7b62f.js} +1 -1
  188. package/dist/esm/guides-configurator.entry.js +6 -4
  189. package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1517 -173
  190. package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
  191. package/dist/esm/loader.js +17 -3
  192. package/dist/esm/pesquisa-grid_2.entry.js +6 -5
  193. package/dist/esm/sankhyablocks.js +133 -5
  194. package/dist/esm/shadow-css-98135883.js +387 -0
  195. package/dist/esm/{snk-actions-button_9.entry.js → snk-actions-button_8.entry.js} +21 -61
  196. package/dist/esm/snk-actions-form.entry.js +1 -1
  197. package/dist/esm/snk-application.entry.js +28 -8
  198. package/dist/esm/snk-attach.entry.js +9 -8
  199. package/dist/esm/snk-client-confirm.entry.js +1 -1
  200. package/dist/esm/snk-configurator.entry.js +1 -1
  201. package/dist/esm/snk-crud.entry.js +18 -10
  202. package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
  203. package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
  204. package/dist/esm/snk-data-exporter.entry.js +7 -6
  205. package/dist/esm/{snk-data-unit-0edeb967.js → snk-data-unit-363c3551.js} +12 -3
  206. package/dist/esm/snk-data-unit.entry.js +5 -4
  207. package/dist/esm/snk-default-filter.entry.js +1 -1
  208. package/dist/esm/snk-detail-view.entry.js +16 -12
  209. package/dist/esm/snk-entity-list.entry.js +1 -1
  210. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  211. package/dist/esm/snk-expression-group_2.entry.js +2 -2
  212. package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
  213. package/dist/esm/snk-filter-bar_4.entry.js +67 -25
  214. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  215. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  216. package/dist/esm/snk-filter-detail.entry.js +3 -3
  217. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  218. package/dist/esm/snk-filter-modal-item.entry.js +5 -4
  219. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  220. package/dist/esm/snk-filter-number.entry.js +11 -7
  221. package/dist/esm/snk-filter-period.entry.js +14 -7
  222. package/dist/esm/snk-filter-search.entry.js +1 -1
  223. package/dist/esm/snk-filter-text.entry.js +2 -2
  224. package/dist/esm/snk-form-summary.entry.js +1 -1
  225. package/dist/esm/snk-form-view.entry.js +74 -9
  226. package/dist/esm/snk-form_2.entry.js +34 -10
  227. package/dist/esm/snk-grid.entry.js +30 -19
  228. package/dist/esm/{snk-guides-viewer-9cd4d20f.js → snk-guides-viewer-6a72a3f4.js} +91 -42
  229. package/dist/esm/snk-guides-viewer.entry.js +11 -10
  230. package/dist/esm/snk-image-input.entry.js +144 -0
  231. package/dist/esm/snk-layout-form-config.entry.js +68 -0
  232. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  233. package/dist/esm/snk-personalized-filter.entry.js +7 -6
  234. package/dist/esm/snk-pesquisa.entry.js +6 -6
  235. package/dist/esm/snk-print-selector.entry.js +1 -1
  236. package/dist/esm/snk-simple-bar.entry.js +1 -1
  237. package/dist/esm/snk-simple-crud.entry.js +15 -21
  238. package/dist/esm/snk-taskbar.entry.js +60 -48
  239. package/dist/esm/{taskbar-elements-faaf5d8f.js → taskbar-elements-97541bdd.js} +6 -5
  240. package/dist/esm/teste-pesquisa.entry.js +1 -1
  241. package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
  242. package/dist/sankhyablocks/p-10cad767.entry.js +1 -0
  243. package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
  244. package/dist/sankhyablocks/p-18cc9111.entry.js +1 -0
  245. package/dist/sankhyablocks/p-1df34264.entry.js +11 -0
  246. package/dist/sankhyablocks/p-27d6590e.js +1 -0
  247. package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
  248. package/dist/sankhyablocks/p-2a356340.entry.js +1 -0
  249. package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-2b882835.entry.js} +1 -1
  250. package/dist/sankhyablocks/p-2c9d0870.js +2 -0
  251. package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
  252. package/dist/sankhyablocks/{p-f15478a1.js → p-2ccbbeec.js} +1 -1
  253. package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
  254. package/dist/sankhyablocks/p-2ee83af1.entry.js +1 -0
  255. package/dist/sankhyablocks/p-30641d55.entry.js +1 -0
  256. package/dist/sankhyablocks/{p-53599b26.js → p-32ad76cc.js} +1 -1
  257. package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
  258. package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
  259. package/dist/sankhyablocks/p-45f53520.entry.js +1 -0
  260. package/dist/sankhyablocks/p-48762fe9.js +1 -0
  261. package/dist/sankhyablocks/p-48c580b9.entry.js +1 -0
  262. package/dist/sankhyablocks/p-4abf2838.entry.js +1 -0
  263. package/dist/sankhyablocks/p-4ff3b494.js +1 -0
  264. package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
  265. package/dist/sankhyablocks/p-6564180d.entry.js +1 -0
  266. package/dist/sankhyablocks/p-685bc841.js +60 -0
  267. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  268. package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-7150eacf.entry.js} +1 -1
  269. package/dist/sankhyablocks/p-72d62f22.js +1 -0
  270. package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
  271. package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
  272. package/dist/sankhyablocks/p-7c4f4851.js +1 -0
  273. package/dist/sankhyablocks/p-7cede5db.entry.js +1 -0
  274. package/dist/sankhyablocks/p-7e9f8fa4.js +1 -0
  275. package/dist/sankhyablocks/p-8b4d6719.js +1 -0
  276. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
  277. package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
  278. package/dist/sankhyablocks/{p-78ff8734.js → p-9114e869.js} +1 -1
  279. package/dist/sankhyablocks/{p-21107f0d.entry.js → p-9c1ff75e.entry.js} +1 -1
  280. package/dist/sankhyablocks/p-9ce1539b.entry.js +1 -0
  281. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
  282. package/dist/sankhyablocks/p-a210e55b.entry.js +1 -0
  283. package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
  284. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  285. package/dist/sankhyablocks/p-a73b6b00.js +1 -0
  286. package/dist/sankhyablocks/{p-9317942f.js → p-a9839628.js} +1 -1
  287. package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
  288. package/dist/sankhyablocks/p-b25777fa.entry.js +1 -0
  289. package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
  290. package/dist/sankhyablocks/p-bdf0077f.js +1 -0
  291. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  292. package/dist/sankhyablocks/p-c6a97fda.entry.js +1 -0
  293. package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-c8043a53.entry.js} +1 -1
  294. package/dist/sankhyablocks/p-c860552e.entry.js +1 -0
  295. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
  296. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
  297. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
  298. package/dist/sankhyablocks/p-d70de708.entry.js +1 -0
  299. package/dist/sankhyablocks/p-da455c82.js +12 -0
  300. package/dist/sankhyablocks/{p-1c2971e4.js → p-e0a6818c.js} +1 -1
  301. package/dist/sankhyablocks/p-e30acdca.entry.js +1 -0
  302. package/dist/sankhyablocks/p-ebce5394.entry.js +1 -0
  303. package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
  304. package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
  305. package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
  306. package/dist/sankhyablocks/p-f4ac3b50.entry.js +1 -0
  307. package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
  308. package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
  309. package/dist/sankhyablocks/p-fc5e95f4.entry.js +1 -0
  310. package/dist/sankhyablocks/p-fce86770.entry.js +1 -0
  311. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  312. package/dist/types/components/snk-application/snk-application.d.ts +1 -1
  313. package/dist/types/components/snk-crud/snk-crud.d.ts +10 -0
  314. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
  315. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +24 -0
  316. package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
  317. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  318. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -1
  319. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  320. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
  321. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
  322. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +5 -0
  323. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
  324. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
  325. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  326. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  327. package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
  328. package/dist/types/components/snk-grid/snk-grid.d.ts +2 -0
  329. package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
  330. package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
  331. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  332. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
  333. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
  334. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +6 -3
  335. package/dist/types/components.d.ts +164 -1
  336. package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
  337. package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
  338. package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
  339. package/package.json +1 -1
  340. package/react/components.d.ts +2 -0
  341. package/react/components.js +2 -0
  342. package/react/components.js.map +1 -1
  343. package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
  344. package/dist/sankhyablocks/p-0e279e7a.js +0 -1
  345. package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
  346. package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
  347. package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
  348. package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
  349. package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
  350. package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
  351. package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
  352. package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
  353. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  354. package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
  355. package/dist/sankhyablocks/p-5304753a.js +0 -60
  356. package/dist/sankhyablocks/p-557368df.entry.js +0 -1
  357. package/dist/sankhyablocks/p-55798617.js +0 -1
  358. package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
  359. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  360. package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
  361. package/dist/sankhyablocks/p-80014119.entry.js +0 -1
  362. package/dist/sankhyablocks/p-8a88690f.entry.js +0 -1
  363. package/dist/sankhyablocks/p-8f73da95.js +0 -1
  364. package/dist/sankhyablocks/p-988afe78.js +0 -1
  365. package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
  366. package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
  367. package/dist/sankhyablocks/p-a644a956.js +0 -1
  368. package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
  369. package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
  370. package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
  371. package/dist/sankhyablocks/p-b987e15d.js +0 -1
  372. package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
  373. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  374. package/dist/sankhyablocks/p-d9c54991.js +0 -1
  375. package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
  376. package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-1cf293c1.js');
5
+ const index$1 = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
8
- const ConfigStorage = require('./ConfigStorage-b29e31be.js');
9
- const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
8
+ const ConfigStorage = require('./ConfigStorage-d9d24844.js');
9
+ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
10
10
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
11
11
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
12
12
  const index = require('./index-62760a9c.js');
@@ -16,9 +16,10 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
16
16
  const defaultFilters = require('./default-filters-a09bf82b.js');
17
17
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
18
18
  const filterValidate = require('./filter-validate-cb4ed41a.js');
19
- require('./form-config-fetcher-f0897eb5.js');
20
- require('./DataFetcher-ed9d97ea.js');
19
+ require('./form-config-fetcher-72cf0e3d.js');
20
+ require('./DataFetcher-3a8ea521.js');
21
21
  require('./PrintUtils-bcaeb82f.js');
22
+ require('./SnkMessageBuilder-d9558dba.js');
22
23
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
23
24
 
24
25
  const buildFilter = (item) => {
@@ -260,10 +261,19 @@ const SnkFilterBar = class {
260
261
  this.isFilterModalOpen = false;
261
262
  }
262
263
  hasValidValue(item) {
263
- if (item.value === undefined || item.value === null)
264
+ var _a, _b;
265
+ if (item.value === undefined || item.value === null) {
264
266
  return false;
265
- if (!Array.isArray(item.value))
267
+ }
268
+ if (item.type === filterItemType_enum.FilterItemType.PERIOD) {
269
+ return (!!((_a = item.value) === null || _a === void 0 ? void 0 : _a.start) || !!((_b = item.value) === null || _b === void 0 ? void 0 : _b.end));
270
+ }
271
+ if (item.groupedItems) {
266
272
  return true;
273
+ }
274
+ if (!Array.isArray(item.value)) {
275
+ return true;
276
+ }
267
277
  return item.value.some(filterItem => filterItem.check === true);
268
278
  }
269
279
  observeFilterConfig(newValue, oldValue) {
@@ -465,7 +475,7 @@ const SnkFilterBar = class {
465
475
  if (item.type === filterItemType_enum.FilterItemType.DEFAULT_FILTER) {
466
476
  return true;
467
477
  }
468
- return this.filterActiveFilter(item) && (item.groupedItems || item.value != undefined);
478
+ return this.filterActiveFilter(item) && this.hasValidValue(item);
469
479
  }
470
480
  async registryFilterProvider() {
471
481
  this.dataUnit.addFilterProvider(this);
@@ -532,27 +542,35 @@ const SnkFilterBar = class {
532
542
  }
533
543
  normalizeItem(item) {
534
544
  const normalized = Object.assign({}, item);
545
+ const isPersonalizedFilter = item.type === filterItemType_enum.FilterItemType.PERSONALIZED;
546
+ const hasNormalizedGroupedItems = (normalized.value === undefined && normalized.groupedItems);
547
+ if (isPersonalizedFilter && hasNormalizedGroupedItems) {
548
+ normalized.value = normalized.groupedItems.filter(groupItem => !!groupItem.visible).length;
549
+ }
535
550
  const optionals = ["props", "value", "hardFixed", "fixed"];
536
551
  optionals.forEach(prop => {
552
+ if (prop === "value" && isPersonalizedFilter) {
553
+ return;
554
+ }
537
555
  if (normalized[prop] == undefined) {
538
556
  delete normalized[prop];
539
557
  }
540
558
  });
541
- if (item.value === "") {
542
- delete item.value;
559
+ if (normalized.value === "" && !isPersonalizedFilter) {
560
+ delete normalized.value;
543
561
  }
544
562
  return normalized;
545
563
  }
546
564
  updateFilter(newItem) {
565
+ const normalizedNewItem = this.normalizeItem(newItem);
547
566
  let config = this.filterConfig.map(item => {
548
- newItem = this.normalizeItem(newItem);
549
- if (item.id === newItem.id) {
550
- if (core.ObjectUtils.objectToString(item) != core.ObjectUtils.objectToString(newItem)) {
551
- this.calculateUpdateSequence(newItem);
552
- }
553
- return newItem;
567
+ if (item.id !== normalizedNewItem.id) {
568
+ return item;
569
+ }
570
+ if (core.ObjectUtils.objectToString(item) == core.ObjectUtils.objectToString(normalizedNewItem)) {
571
+ this.calculateUpdateSequence(normalizedNewItem);
554
572
  }
555
- return item;
573
+ return normalizedNewItem;
556
574
  }).sort((a, b) => this._filtersComparator(a, b));
557
575
  if (this.filterCustomConfigInterceptor) {
558
576
  config = this.filterCustomConfigInterceptor(config);
@@ -623,6 +641,12 @@ const SnkFilterBar = class {
623
641
  filterChangeListener(evt) {
624
642
  this.updateFilter(evt.detail);
625
643
  }
644
+ /**
645
+ * Escuta quando há um filtro do tipo pesquisa retorna um valor vazio.
646
+ */
647
+ async emptySearchListener(_evt) {
648
+ await this.showPersonalizedFilterItem();
649
+ }
626
650
  /**
627
651
  * @description Abre o modal de filtros.
628
652
  * @async
@@ -633,6 +657,10 @@ const SnkFilterBar = class {
633
657
  }
634
658
  this.isFilterModalOpen = true;
635
659
  }
660
+ async showPersonalizedFilterItem() {
661
+ const popUp = this._element.querySelector('#filter-PERSONALIZED_FILTER_GROUP');
662
+ await (popUp === null || popUp === void 0 ? void 0 : popUp.showUp(true));
663
+ }
636
664
  addPersonalizedFilter(isDefault = false) {
637
665
  this.isFilterModalOpen = false;
638
666
  this._isDefaultFilter = isDefault;
@@ -718,7 +746,7 @@ const SnkFilterBar = class {
718
746
  return itemA.originOrder - itemB.originOrder;
719
747
  });
720
748
  if (this.mode !== "regular") {
721
- return (index$1.h(index$1.Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (index$1.h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) })), index$1.h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, filterItemType_enum.FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
749
+ return (index$1.h(index$1.Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (index$1.h("ez-button", { class: "ez-margin-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) })), index$1.h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, filterItemType_enum.FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
722
750
  }
723
751
  return (index$1.h(index$1.Host, null, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" })), index$1.h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, filterItemType_enum.FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
724
752
  }
@@ -729,7 +757,7 @@ const SnkFilterBar = class {
729
757
  };
730
758
  SnkFilterBar.style = snkFilterBarCss;
731
759
 
732
- const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}";
760
+ const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}ez-chip.sc-snk-filter-item{--ez-label-chip__label__container--margin:var(--space--2, 2px)}";
733
761
 
734
762
  const SnkFilterItem = class {
735
763
  constructor(hostRef) {
@@ -748,7 +776,7 @@ const SnkFilterItem = class {
748
776
  /**
749
777
  * Emitido quando o estado do filtro é alterado.
750
778
  */
751
- filterChangeListener() {
779
+ filterChangeListener(_event) {
752
780
  this.hideDetail();
753
781
  }
754
782
  /**
@@ -950,6 +978,10 @@ const SnkFilterItem = class {
950
978
  return ((_a = list === null || list === void 0 ? void 0 : list.filter((val) => val === null || val === void 0 ? void 0 : val.check)) === null || _a === void 0 ? void 0 : _a.length) > 0;
951
979
  }
952
980
  hasActiveValue(config) {
981
+ var _a, _b;
982
+ if (config.type === filterItemType_enum.FilterItemType.PERIOD) {
983
+ return (!!((_a = config.value) === null || _a === void 0 ? void 0 : _a.start) || !!((_b = config.value) === null || _b === void 0 ? void 0 : _b.end));
984
+ }
953
985
  return (config.type !== filterItemType_enum.FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
954
986
  }
955
987
  getEnabledChip() {
@@ -1175,11 +1207,12 @@ const SnkFilterList = class {
1175
1207
  get _element() { return index$1.getElement(this); }
1176
1208
  };
1177
1209
 
1178
- const snkFilterModalCss = "ez-modal{--ez-modal-content-padding:24px 12px}.snk-filter-modal__container{min-width:344px;overflow:hidden}.snk-filter-modal__content{display:flex;flex-direction:column;gap:var(--space--medium, 12px);padding-right:var(--space--3xs, 4px)}.snk-filter-modal__collapsible-box{border:var(--border--small, 1px solid) var(--color--strokes, #DCE0E8);border-radius:var(--border--radius-medium);padding:var(--space--medium, 12px) var(--space--small, 6px)}.snk-filter-modal__rendered-items{max-height:760px}.snk-filter-modal__rendered-items::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
1210
+ const snkFilterModalCss = "ez-modal{--ez-modal-content-padding:24px 12px;--ez-modal-content-min-width:370px}.snk-filter-modal__container{min-width:344px;overflow:hidden}.snk-filter-modal__content{display:flex;flex-direction:column;gap:var(--space--medium, 12px);padding-right:var(--space--3xs, 4px)}.snk-filter-modal__collapsible-box{border:var(--border--small, 1px solid) var(--color--strokes, #DCE0E8);border-radius:var(--border--radius-medium);padding:var(--space--medium, 12px) var(--space--small, 6px)}.snk-filter-modal__rendered-items{max-height:760px}.snk-filter-modal__rendered-items::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
1179
1211
 
1180
1212
  const SnkFilterModal = class {
1181
1213
  constructor(hostRef) {
1182
1214
  index$1.registerInstance(this, hostRef);
1215
+ this._isUserSup = false;
1183
1216
  this.filters = [];
1184
1217
  this.filtersWithError = [];
1185
1218
  this.getMessage = undefined;
@@ -1235,6 +1268,7 @@ const SnkFilterModal = class {
1235
1268
  this.handleClearCustomFilters(customFilters);
1236
1269
  this.handleClearOthersFilters(otherFilters);
1237
1270
  multiListFilters.forEach(multiListFilter => this.handleClearSigleFilter(multiListFilter));
1271
+ index$1.forceUpdate(this);
1238
1272
  }
1239
1273
  handleClearOthersFilters(otherFilters) {
1240
1274
  this.filters = this.filters.map(filter => otherFilters.includes(filter) ? (Object.assign(Object.assign({}, filter), { value: undefined })) : filter);
@@ -1406,7 +1440,7 @@ const SnkFilterModal = class {
1406
1440
  getIformedFiltersCount(listItems) {
1407
1441
  let countInformedItens = 0;
1408
1442
  listItems.forEach(localItem => {
1409
- var _a, _b, _c, _d, _e, _f;
1443
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1410
1444
  const item = this.filterConfig.find(filter => filter.id === localItem.id);
1411
1445
  if (filterItemType_enum.FilterItemType.MULTI_LIST === item.type) {
1412
1446
  countInformedItens += (_e = (_d = (_c = ((_b = (_a = item.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : item.value)) === null || _c === void 0 ? void 0 : _c.filter(value => value === null || value === void 0 ? void 0 : value.check)) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0;
@@ -1418,6 +1452,12 @@ const SnkFilterModal = class {
1418
1452
  .map(([key, _]) => key).length;
1419
1453
  return;
1420
1454
  }
1455
+ if (filterItemType_enum.FilterItemType.PERIOD === item.type) {
1456
+ if (!!((_g = item.value) === null || _g === void 0 ? void 0 : _g.start) || !!((_h = item.value) === null || _h === void 0 ? void 0 : _h.end)) {
1457
+ countInformedItens++;
1458
+ }
1459
+ return;
1460
+ }
1421
1461
  if (item.groupedItems != undefined) {
1422
1462
  countInformedItens = item.groupedItems.filter(item => item.visible).length;
1423
1463
  return;
@@ -1466,8 +1506,9 @@ const SnkFilterModal = class {
1466
1506
  const defaultFilter = filters.find((item) => item.id === index.DefaultFilter.id);
1467
1507
  return defaultFilter;
1468
1508
  }
1469
- componentWillLoad() {
1509
+ async componentWillLoad() {
1470
1510
  this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
1511
+ this._isUserSup = await this._application.isUserSup();
1471
1512
  this.filters = core.ObjectUtils.copy(this.filterConfig);
1472
1513
  }
1473
1514
  componentWillRender() {
@@ -1479,11 +1520,12 @@ const SnkFilterModal = class {
1479
1520
  this.validateFilters();
1480
1521
  }
1481
1522
  render() {
1482
- this._defaultFilter = this.getDefaultFilter(this.filters);
1523
+ this._defaultFilter = this._isUserSup ? this.getDefaultFilter(this.filters) : undefined;
1483
1524
  const customFilters = this.getCustomFilter(this.filters);
1484
1525
  const quickFilters = this.filters.filter(filter => filter.filterType === filterType_enum.FilterType.QUICK_FILTER);
1485
1526
  const otherFilters = this.filters.filter(filter => filter.filterType === filterType_enum.FilterType.OTHER_FILTERS);
1486
- return (index$1.h("ez-modal", { opened: this.opened, modalSize: "col--sd-3", align: "right", heightMode: "full", closeEsc: true }, index$1.h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, index$1.h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, index$1.h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true))))));
1527
+ return (index$1.h("ez-modal", { opened: this.opened, modalSize: "col--sd-3", align: "right", heightMode: "full", closeEsc: true }, index$1.h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, index$1.h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, this._isUserSup &&
1528
+ index$1.h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true))))));
1487
1529
  }
1488
1530
  get _element() { return index$1.getElement(this); }
1489
1531
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
8
+ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
9
9
  const presentationMode = require('./presentationMode-52ec3bdd.js');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
11
11
  require('./index-62760a9c.js');
@@ -166,7 +166,7 @@ const SnkFilterDetail = class {
166
166
  }
167
167
  onKeyDonwListener(event) {
168
168
  if (event.key === "Enter") {
169
- this._applyButton.setFocus().then(() => this.apply());
169
+ this.apply();
170
170
  }
171
171
  }
172
172
  buildRightSlot(item) {
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const index$1 = require('./index-8d94b7e0.js');
7
7
  const core = require('@sankhyalabs/core');
8
8
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
9
9
  const index$2 = require('./index-62760a9c.js');
10
- const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
10
+ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
12
12
 
13
13
  const ICON_MODES = {
@@ -2,15 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const ConfigStorage = require('./ConfigStorage-b29e31be.js');
7
+ const ConfigStorage = require('./ConfigStorage-d9d24844.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
9
9
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
10
10
  const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
11
- require('./form-config-fetcher-f0897eb5.js');
12
- require('./DataFetcher-ed9d97ea.js');
11
+ require('./form-config-fetcher-72cf0e3d.js');
12
+ require('./DataFetcher-3a8ea521.js');
13
13
  require('./PrintUtils-bcaeb82f.js');
14
+ require('./SnkMessageBuilder-d9558dba.js');
14
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
16
 
16
17
  const snkFilterModalItemCss = ".grow{flex-grow:1}.gap{gap:4px}";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
@@ -24,16 +24,20 @@ const SnkFilterPeriod = class {
24
24
  /**
25
25
  * Emitido quando acontece a alteração de valor do componente snk-filter-number
26
26
  */
27
- ezChangeListener(evt) {
27
+ ezInputListener(evt) {
28
28
  this.errorMessage = undefined;
29
+ const value = evt.detail;
29
30
  if (this.getVariation() === filterNumberVariation.FilterNumberVariation.INTERVAL) {
30
- const start = this._startInterval.value;
31
- const end = this._endInterval.value;
32
- this.value = (!isNaN(start) || !isNaN(end) ? { start, end } : undefined);
31
+ if (evt.target === this._startInterval && !isNaN(value)) {
32
+ this.value = Object.assign(this.value, { start: value });
33
+ }
34
+ if (evt.target === this._endInterval && !isNaN(value)) {
35
+ this.value = Object.assign(this.value, { end: value });
36
+ }
33
37
  this.valueChanged.emit(this.value);
34
38
  return;
35
39
  }
36
- this.value = evt.detail;
40
+ this.value = value;
37
41
  this.valueChanged.emit(this.value);
38
42
  }
39
43
  /**
@@ -108,7 +112,7 @@ const SnkFilterPeriod = class {
108
112
  if (this.getVariation() === filterNumberVariation.FilterNumberVariation.INTERVAL) {
109
113
  return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-number-input", { id: `${this.config.id}_start`, class: this.presentationMode === presentationMode.EPresentationMode.MODAL ? 'ez-padding-right--medium' : '', label: this._startIntervalLabel, ref: ref => this._startInterval = ref, value: this.getIntervalValue("start"), enabled: this.config.enabled, precision: (_a = this.config.props) === null || _a === void 0 ? void 0 : _a.precision, errorMessage: this.errorMessage }), this.buildLabel(), index.h("ez-number-input", { id: `${this.config.id}_end`, label: this._endIntervalLabel, ref: ref => this._endInterval = ref, value: this.getIntervalValue("end"), enabled: this.config.enabled, precision: (_b = this.config.props) === null || _b === void 0 ? void 0 : _b.precision, errorMessage: this.errorMessage }))));
110
114
  }
111
- return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("ez-number-input", { id: this.config.id, ref: ref => this._numberElement = ref, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision, enabled: this.config.enabled, errorMessage: this.errorMessage })));
115
+ return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("ez-number-input", { id: this.config.id, label: this.config.label, ref: ref => this._numberElement = ref, value: this.config.value, precision: (_c = this.config.props) === null || _c === void 0 ? void 0 : _c.precision, enabled: this.config.enabled, errorMessage: this.errorMessage })));
112
116
  }
113
117
  get _element() { return index.getElement(this); }
114
118
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
@@ -14,16 +14,17 @@ const SnkFilterPeriod = class {
14
14
  this._startDateLabel = 'Inicial';
15
15
  this._endDateLabel = 'Final';
16
16
  this._toLabel = 'até';
17
+ this._defaultEmptyValue = {
18
+ start: null,
19
+ end: null
20
+ };
17
21
  this.internalChange = {
18
22
  start: false,
19
23
  end: false
20
24
  };
21
25
  this.config = undefined;
22
26
  this.getMessage = undefined;
23
- this.value = {
24
- start: null,
25
- end: null
26
- };
27
+ this.value = this._defaultEmptyValue;
27
28
  this.presentationMode = presentationMode.EPresentationMode.CHIP;
28
29
  this.errorMessage = undefined;
29
30
  }
@@ -36,6 +37,10 @@ const SnkFilterPeriod = class {
36
37
  this.internalChange.start = false;
37
38
  return;
38
39
  }
40
+ if ((!newValue && oldValue) || (!(newValue === null || newValue === void 0 ? void 0 : newValue.start) && !(newValue === null || newValue === void 0 ? void 0 : newValue.end))) {
41
+ this.clearValue();
42
+ return;
43
+ }
39
44
  if (newValue && (newValue.start !== (oldValue === null || oldValue === void 0 ? void 0 : oldValue.start) || newValue.end !== (oldValue === null || oldValue === void 0 ? void 0 : oldValue.end))) {
40
45
  this.valueStart = this.parseDate(newValue.start);
41
46
  this.valueEnd = this.parseDate(newValue.end);
@@ -57,9 +62,11 @@ const SnkFilterPeriod = class {
57
62
  * Limpa o valor do componente restaurando o valor original da configuração.
58
63
  */
59
64
  async clearValue() {
60
- this.value = this.config.value;
65
+ this.value = this.config.value || this._defaultEmptyValue;
61
66
  this.valueStart = this.getDate("start");
62
67
  this.valueEnd = this.getDate("end");
68
+ this._startDate.value = this.valueStart;
69
+ this._endDate.value = this.valueEnd;
63
70
  }
64
71
  componentDidLoad() {
65
72
  if (this._element) {
@@ -109,7 +116,7 @@ const SnkFilterPeriod = class {
109
116
  if (!this.config || this.config.type !== filterItemType_enum.FilterItemType.PERIOD) {
110
117
  return undefined;
111
118
  }
112
- return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-date-input", { id: `${this.config.id}_start`, class: this.presentationMode === presentationMode.EPresentationMode.MODAL ? 'ez-padding-right--medium' : '', label: this._startDateLabel, ref: ref => this._startDate = ref, enabled: this.config.enabled, value: this.valueStart, errorMessage: this.errorMessage, onEzChange: (event) => this.ezChangeListener(event, 'start') }), this.buildLabel(), index.h("ez-date-input", { id: `${this.config.id}_end`, label: this._endDateLabel, ref: ref => this._endDate = ref, enabled: this.config.enabled, value: this.valueEnd, errorMessage: this.errorMessage, onEzChange: (event) => this.ezChangeListener(event, 'end') }))));
119
+ return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("div", { class: "ez-col ez-col--nowrap" }, index.h("ez-date-input", { id: `${this.config.id}_start`, class: this.presentationMode === presentationMode.EPresentationMode.MODAL ? 'ez-padding-right--medium' : '', label: this._startDateLabel, ref: ref => this._startDate = ref, enabled: this.config.enabled, value: this.valueStart, errorMessage: this.errorMessage, onEzInput: (event) => this.ezChangeListener(event, 'start') }), this.buildLabel(), index.h("ez-date-input", { id: `${this.config.id}_end`, label: this._endDateLabel, ref: ref => this._endDate = ref, enabled: this.config.enabled, value: this.valueEnd, errorMessage: this.errorMessage, onEzInput: (event) => this.ezChangeListener(event, 'end') }))));
113
120
  }
114
121
  get _element() { return index.getElement(this); }
115
122
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const SnkFilterText = class {
@@ -46,7 +46,7 @@ const SnkFilterText = class {
46
46
  if (!this.config) {
47
47
  return undefined;
48
48
  }
49
- return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("ez-text-input", { id: this.config.id, ref: ref => this._textInputElement = ref, value: this.config.value, mask: (_a = this.config) === null || _a === void 0 ? void 0 : _a.mask, enabled: this.config.enabled, cleanValueMask: true, errorMessage: this.errorMessage })));
49
+ return (index.h("ez-tooltip", { active: this.config.enabled === false, message: this.config.disabledMessage, type: 'warning' }, index.h("ez-text-input", { id: this.config.id, label: this.config.label, ref: ref => this._textInputElement = ref, value: this.config.value, mask: (_a = this.config) === null || _a === void 0 ? void 0 : _a.mask, enabled: this.config.enabled, cleanValueMask: true, errorMessage: this.errorMessage })));
50
50
  }
51
51
  get _element() { return index.getElement(this); }
52
52
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const BOUNDARY_FALSE_POSITIVE_VALUE = 14;
@@ -2,13 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
+ const ImageUtils = require('./ImageUtils-5e3f406b.js');
9
10
 
10
11
  const snkFormViewCss = ".sc-snk-form-view-h{display:flex;width:100%;--ez-form-card-summary-field-content-weight:700}.level-path.sc-snk-form-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.summary-wrapper.sc-snk-form-view{display:flex;overflow:hidden}.summary-header.sc-snk-form-view{border-bottom:1px solid var(--color--strokes);margin-bottom:var(--space--medium);padding-bottom:var(--space--medium)}.summary-container.sc-snk-form-view{display:flex;flex-direction:column}.summary-container.sc-snk-form-view{padding-right:calc(var(--space--extra-large) / 1.5)}.summary-field.sc-snk-form-view{min-width:30px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.summary-field__title.sc-snk-form-view{color:var(--text--primary, #626e82);font-size:var(--title--small);white-space:nowrap;font-weight:var(--text-weight--medium)}.summary-field__content.sc-snk-form-view{color:var(--title--primary, #2b3a54);font-size:var(--text--large);font-weight:var(--ez-form-card-summary-field-content-weight)}";
11
12
 
13
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s)
16
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
17
+ t[p] = s[p];
18
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
19
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
20
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
21
+ t[p[i]] = s[p[i]];
22
+ }
23
+ return t;
24
+ };
12
25
  const SnkFormView = class {
13
26
  constructor(hostRef) {
14
27
  index.registerInstance(this, hostRef);
@@ -17,7 +30,23 @@ const SnkFormView = class {
17
30
  this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
18
31
  this._customEditors = new Map();
19
32
  this._fieldProps = new Map();
33
+ this.dataUnitObserver = async (action) => {
34
+ if (action.type === core.Action.RECORDS_COPIED) {
35
+ const sourcePK = this.buildSourceRecordPK(action);
36
+ this.getImageField().forEach(async (field) => {
37
+ this.dataUnit.setFieldValue(field.name, JSON.stringify(sourcePK));
38
+ });
39
+ }
40
+ };
41
+ this.customUiBuilders = new Map([
42
+ [core.UserInterface.IMAGE, (_a) => {
43
+ var { name } = _a, props = __rest(_a, ["name"]);
44
+ return index.h("snk-image-input", Object.assign({ dataUnit: this.dataUnit, maxSize: Infinity, fieldName: name, entityName: this.entityPath }, props));
45
+ }
46
+ ]
47
+ ]);
20
48
  this._singleColumn = false;
49
+ this._currentFormLayout = undefined;
21
50
  this.levelPath = undefined;
22
51
  this.fieldSearch = undefined;
23
52
  this.label = undefined;
@@ -34,6 +63,7 @@ const SnkFormView = class {
34
63
  this.fieldToFocus = undefined;
35
64
  this.customEditors = undefined;
36
65
  this.fieldsProps = undefined;
66
+ this.entityPath = undefined;
37
67
  }
38
68
  async showUp() {
39
69
  if (this._formView) {
@@ -83,6 +113,11 @@ const SnkFormView = class {
83
113
  }
84
114
  }
85
115
  }
116
+ async observeDataUnit(newValue, oldValue) {
117
+ if (newValue !== oldValue && newValue) {
118
+ newValue.subscribe(this.dataUnitObserver);
119
+ }
120
+ }
86
121
  changeFix() {
87
122
  this.fixed = !this.fixed;
88
123
  this.emitEvent("fixed");
@@ -140,28 +175,41 @@ const SnkFormView = class {
140
175
  if (this._dataBinder != undefined) {
141
176
  this._dataBinder.onDisconnectedCallback();
142
177
  }
178
+ if (this.dataUnit) {
179
+ this.dataUnit.unsubscribe(this.dataUnitObserver);
180
+ }
181
+ }
182
+ async componentWillLoad() {
183
+ await this.initLayoutFormConfig();
184
+ }
185
+ async componentWillLoad() {
186
+ await this.initLayoutFormConfig();
143
187
  }
144
188
  componentDidLoad() {
145
189
  this.observePropsCustomEditor(this.customEditors);
146
190
  this.observeFieldsProps(this.fieldsProps);
147
- this.initLayoutFormConfig();
148
191
  }
149
192
  async initLayoutFormConfig() {
150
- const _application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
151
- const layoutFormConfig = await (_application === null || _application === void 0 ? void 0 : _application.getLayoutFormConfig());
193
+ var _a;
194
+ if (!this._application) {
195
+ this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
196
+ }
197
+ const layoutFormConfig = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getLayoutFormConfig());
152
198
  if (layoutFormConfig) {
153
199
  this.setSingleColumn(layoutFormConfig);
154
200
  this.registerNotifyListeners(layoutFormConfig);
155
201
  }
156
202
  }
157
203
  setSingleColumn(layoutFormConfig) {
158
- this._singleColumn = (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === utils.FormLayout.CASCADE;
204
+ this._singleColumn = (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === utils.FormLayout.CASCADE || (layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config) === utils.FormLayout.CLASSIC_CASCADE;
205
+ this._currentFormLayout = layoutFormConfig === null || layoutFormConfig === void 0 ? void 0 : layoutFormConfig.config;
159
206
  }
160
207
  registerNotifyListeners(layoutFormConfig) {
161
208
  if (!layoutFormConfig)
162
209
  return;
163
210
  layoutFormConfig.onConfigChange((config) => {
164
- this._singleColumn = (config === utils.FormLayout.CASCADE);
211
+ this._singleColumn = (config === utils.FormLayout.CASCADE || config === utils.FormLayout.CLASSIC_CASCADE);
212
+ this._currentFormLayout = config;
165
213
  });
166
214
  }
167
215
  componentDidRender() {
@@ -198,6 +246,22 @@ const SnkFormView = class {
198
246
  });
199
247
  }
200
248
  }
249
+ buildSourceRecordPK(action) {
250
+ var _a, _b;
251
+ const currentRecord = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a[0]) || {};
252
+ const sourceBase64 = currentRecord["__record__source__id__"];
253
+ const sourceRecord = JSON.parse(atob(sourceBase64 || ''));
254
+ delete sourceRecord["__DATA_UNIT_NAME__"];
255
+ const pkFields = Object.keys(ImageUtils.getPKs(this.dataUnit));
256
+ const filteredSourceRecord = {};
257
+ for (const pkField of pkFields) {
258
+ filteredSourceRecord[pkField] = (_b = sourceRecord[pkField]) === null || _b === void 0 ? void 0 : _b.value;
259
+ }
260
+ return filteredSourceRecord;
261
+ }
262
+ getImageField() {
263
+ return this.dataUnit.metadata.fields.filter(field => field.userInterface === core.UserInterface.IMAGE);
264
+ }
201
265
  render() {
202
266
  return (index.h(index.Host, { class: "ez-box__container" }, index.h("div", { class: "summary-header ez-flex ez-size-width--full", ref: ref => this._headerContainer = ref }, index.h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? index.h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), index.h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
203
267
  index.h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": core.ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
@@ -205,11 +269,12 @@ const SnkFormView = class {
205
269
  ?
206
270
  index.h("snk-form-summary", { summary: this.getCardSummary() })
207
271
  :
208
- index.h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event), singleColumn: this._singleColumn }), this.fieldSearch && index.h("ez-popover", { ref: elem => (this._ezPopoverFieldColumn = elem), overlayType: "none" }, this.fieldSearch)));
272
+ index.h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event), singleColumn: this._singleColumn, customUiBuilders: this.customUiBuilders, formLayout: this._currentFormLayout }), this.fieldSearch && index.h("ez-popover", { ref: elem => (this._ezPopoverFieldColumn = elem), overlayType: "none" }, this.fieldSearch)));
209
273
  }
210
274
  static get watchers() { return {
211
275
  "customEditors": ["observePropsCustomEditor"],
212
- "fieldsProps": ["observeFieldsProps"]
276
+ "fieldsProps": ["observeFieldsProps"],
277
+ "dataUnit": ["observeDataUnit"]
213
278
  }; }
214
279
  };
215
280
  SnkFormView.style = snkFormViewCss;