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

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 (375) 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 +59 -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 +7 -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 +30 -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 +30 -13
  151. package/dist/components/snk-filter-detail2.js +1 -1
  152. package/dist/components/snk-filter-item2.js +8 -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 +59 -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-4ff3b494.js +1 -0
  263. package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
  264. package/dist/sankhyablocks/p-6564180d.entry.js +1 -0
  265. package/dist/sankhyablocks/p-685bc841.js +60 -0
  266. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  267. package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-7150eacf.entry.js} +1 -1
  268. package/dist/sankhyablocks/p-72d62f22.js +1 -0
  269. package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
  270. package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
  271. package/dist/sankhyablocks/p-7c4f4851.js +1 -0
  272. package/dist/sankhyablocks/p-7cede5db.entry.js +1 -0
  273. package/dist/sankhyablocks/p-7e9f8fa4.js +1 -0
  274. package/dist/sankhyablocks/p-8b4d6719.js +1 -0
  275. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
  276. package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
  277. package/dist/sankhyablocks/{p-78ff8734.js → p-9114e869.js} +1 -1
  278. package/dist/sankhyablocks/{p-21107f0d.entry.js → p-9c1ff75e.entry.js} +1 -1
  279. package/dist/sankhyablocks/p-9ce1539b.entry.js +1 -0
  280. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
  281. package/dist/sankhyablocks/p-a210e55b.entry.js +1 -0
  282. package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
  283. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  284. package/dist/sankhyablocks/p-a73b6b00.js +1 -0
  285. package/dist/sankhyablocks/{p-9317942f.js → p-a9839628.js} +1 -1
  286. package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
  287. package/dist/sankhyablocks/p-b25777fa.entry.js +1 -0
  288. package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
  289. package/dist/sankhyablocks/p-bdf0077f.js +1 -0
  290. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  291. package/dist/sankhyablocks/p-c6a97fda.entry.js +1 -0
  292. package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-c8043a53.entry.js} +1 -1
  293. package/dist/sankhyablocks/p-c860552e.entry.js +1 -0
  294. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
  295. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
  296. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
  297. package/dist/sankhyablocks/p-d70de708.entry.js +1 -0
  298. package/dist/sankhyablocks/p-da455c82.js +12 -0
  299. package/dist/sankhyablocks/{p-1c2971e4.js → p-e0a6818c.js} +1 -1
  300. package/dist/sankhyablocks/p-e0e3914e.entry.js +1 -0
  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-form-config/FormConfigHelper.d.ts +6 -1
  323. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
  324. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  325. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  326. package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
  327. package/dist/types/components/snk-grid/snk-grid.d.ts +2 -0
  328. package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
  329. package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
  330. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  331. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
  332. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
  333. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +6 -3
  334. package/dist/types/components.d.ts +164 -1
  335. package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
  336. package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
  337. package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
  338. package/package.json +1 -1
  339. package/react/components.d.ts +2 -0
  340. package/react/components.js +2 -0
  341. package/react/components.js.map +1 -1
  342. package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
  343. package/dist/sankhyablocks/p-0e279e7a.js +0 -1
  344. package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
  345. package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
  346. package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
  347. package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
  348. package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
  349. package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
  350. package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
  351. package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
  352. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  353. package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
  354. package/dist/sankhyablocks/p-5304753a.js +0 -60
  355. package/dist/sankhyablocks/p-557368df.entry.js +0 -1
  356. package/dist/sankhyablocks/p-55798617.js +0 -1
  357. package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
  358. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  359. package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
  360. package/dist/sankhyablocks/p-80014119.entry.js +0 -1
  361. package/dist/sankhyablocks/p-8a88690f.entry.js +0 -1
  362. package/dist/sankhyablocks/p-8f73da95.js +0 -1
  363. package/dist/sankhyablocks/p-988afe78.js +0 -1
  364. package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
  365. package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
  366. package/dist/sankhyablocks/p-a644a956.js +0 -1
  367. package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
  368. package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
  369. package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
  370. package/dist/sankhyablocks/p-b987e15d.js +0 -1
  371. package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
  372. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  373. package/dist/sankhyablocks/p-d9c54991.js +0 -1
  374. package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
  375. package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
@@ -109,6 +109,48 @@ function buildGuides(config, mainArea) {
109
109
  tabs = initializeTabsNames(tabs);
110
110
  return handleMainTab(tabs, mainArea);
111
111
  }
112
+ function buildChildrenGuides(dataUnit, initialOrderIndex = 0, guidesList) {
113
+ var _a;
114
+ if (!dataUnit || !dataUnit.metadata) {
115
+ return [];
116
+ }
117
+ const children = ((_a = dataUnit.metadata) === null || _a === void 0 ? void 0 : _a.children) || [];
118
+ const childrenWithNoGuide = [];
119
+ for (const child of children) {
120
+ const guideOnConfig = guidesList.find(guide => child.label === guide.label);
121
+ if (guideOnConfig) {
122
+ guideOnConfig.isCustom = true;
123
+ continue;
124
+ }
125
+ childrenWithNoGuide.push({
126
+ label: child.label,
127
+ name: child.name,
128
+ visible: true,
129
+ isCustom: true,
130
+ order: initialOrderIndex++
131
+ });
132
+ }
133
+ return childrenWithNoGuide;
134
+ }
135
+ function buildCustomGuides(customGuidesList, guidesList) {
136
+ let initialOrderIndex = guidesList.length;
137
+ const customGuidesToAdd = getCustomGuidesNotIncludedInList(customGuidesList, guidesList);
138
+ return customGuidesToAdd.map(guide => {
139
+ return {
140
+ name: guide.id,
141
+ label: guide.label,
142
+ visible: true,
143
+ isCustom: true,
144
+ order: initialOrderIndex++
145
+ };
146
+ });
147
+ }
148
+ function isCustomGuideIncludedInList(guidesList, guide) {
149
+ return guidesList.some(fromList => fromList.name === guide.id || fromList.label === guide.label);
150
+ }
151
+ function getCustomGuidesNotIncludedInList(customGuidesList, guidesList) {
152
+ return customGuidesList.filter(guide => !isCustomGuideIncludedInList(guidesList, guide));
153
+ }
112
154
  function handleFieldsTabNames(allFields) {
113
155
  // Campos que não fazem parte de nenhuma aba ou da aba "Geral", devem ser movidos para a aba __main.
114
156
  return allFields.map(field => {
@@ -244,4 +286,4 @@ function buildFieldToSave(fieldConfig) {
244
286
  return fieldToSave;
245
287
  }
246
288
 
247
- export { ID_AVAILABLE_FIELDS as I, SORTABLE_PATH as S, buildGuidesMap as a, buildGuides as b, buildNewGuideName as c, getFieldsStructure as d, getValidatedFieldValue as e, getEnabledByProperty as f, getFieldsToSave as g, getValueByProperty as h, getIconName as i, updateTabInFieldsFromGroupList as u };
289
+ export { ID_AVAILABLE_FIELDS as I, SORTABLE_PATH as S, buildChildrenGuides as a, buildGuides as b, buildCustomGuides as c, buildGuidesMap as d, buildNewGuideName as e, getFieldsStructure as f, getFieldsToSave as g, getValidatedFieldValue as h, getEnabledByProperty as i, getValueByProperty as j, getIconName as k, updateTabInFieldsFromGroupList as u };
@@ -1,5 +1,5 @@
1
1
  import { UserInterface, DataType, ApplicationContext, ErrorException } from '@sankhyalabs/core';
2
- import { d as dist, D as DataFetcher } from './DataFetcher-f4ccd9f3.js';
2
+ import { d as dist, D as DataFetcher } from './DataFetcher-1dd7e8c0.js';
3
3
 
4
4
  function buildGridMetadata(rawValue) {
5
5
  const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
@@ -0,0 +1,136 @@
1
+ import { ApplicationContext } from '@sankhyalabs/core';
2
+
3
+ async function base64ToBlob(base64) {
4
+ const response = await fetch(base64);
5
+ return await response.blob();
6
+ }
7
+ function buildFileKey(entityName, fieldName) {
8
+ if (entityName) {
9
+ return `${entityName}_${fieldName}`;
10
+ }
11
+ else {
12
+ return fieldName;
13
+ }
14
+ }
15
+ function hasSpecialCharacters(value) {
16
+ const specialChars = /[ !@#$%^&*()+\-=\[\]{};':"\\|,.<>\/?]/;
17
+ return specialChars.test(value);
18
+ }
19
+ /**
20
+ * Gera a URL base para upload de sessão
21
+ */
22
+ function getSessionUploadBaseUrl(fileKey, context = 'mge') {
23
+ let url = `/${context}/sessionUpload.${context}?sessionkey=${fileKey}`;
24
+ // Verifica se precisa processar caracteres especiais
25
+ if (canProcessSpecialKeys(context) && hasSpecialCharacters(fileKey)) {
26
+ url += `&encodedKey=${btoa(encodeURI(fileKey))}`;
27
+ }
28
+ return url;
29
+ }
30
+ /**
31
+ * Verifica se pode processar chaves especiais
32
+ * Baseado no método canProcessSpecialKeys do sessionfileupload.service.js
33
+ */
34
+ async function canProcessSpecialKeys(context) {
35
+ var _a;
36
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
37
+ if (!application)
38
+ return false;
39
+ const resourceId = await ((_a = application.getResourceID) === null || _a === void 0 ? void 0 : _a.call(application)) || '';
40
+ const adPrefix = "br.com.sankhya.menu.adicional";
41
+ return context === 'mge' && resourceId.startsWith(adPrefix);
42
+ }
43
+ /**
44
+ * Constrói a URL de upload
45
+ * Baseado no método buildUploadURL do sessionfileupload.service.js
46
+ */
47
+ function buildUploadURL(fileKey) {
48
+ let url = getSessionUploadBaseUrl(fileKey);
49
+ url += "&fitem=S&salvar=S&useCache=N";
50
+ return url;
51
+ }
52
+ /**
53
+ * Faz upload de arquivo para a sessão usando XMLHttpRequest
54
+ * Baseado no método uploadSessionFile do sessionfileupload.service.js
55
+ */
56
+ async function sessionFileUpload(blob, entityName, fieldName, onProgress) {
57
+ const fileKey = buildFileKey(entityName, fieldName);
58
+ const uploadUrl = buildUploadURL(fileKey);
59
+ return new Promise((resolve, reject) => {
60
+ const formData = new FormData();
61
+ formData.append('arquivo', blob);
62
+ const http = new XMLHttpRequest();
63
+ http.addEventListener("load", () => {
64
+ if (http.status >= 200 && http.status < 300) {
65
+ resolve(`/mge/UPLOADING_${fileKey}.dbimage`);
66
+ }
67
+ else {
68
+ reject(new Error(`Upload failed: ${http.statusText}`));
69
+ }
70
+ });
71
+ http.addEventListener("error", () => {
72
+ reject(new Error('Upload error'));
73
+ });
74
+ if (onProgress) {
75
+ http.upload.addEventListener("progress", onProgress);
76
+ }
77
+ http.open("POST", uploadUrl);
78
+ http.send(formData);
79
+ });
80
+ }
81
+ function getUrlBase() {
82
+ return window.location.origin;
83
+ }
84
+ function getBaseUrl(pk, entityName, fieldName) {
85
+ if (!pk)
86
+ return undefined;
87
+ const baseUrl = getUrlBase();
88
+ let url = `${baseUrl}/mge/${entityName}@${fieldName}`;
89
+ for (const pkField in pk) {
90
+ url += `@${pkField}=${pk[pkField]}`;
91
+ }
92
+ url += '.dbimage';
93
+ return url;
94
+ }
95
+ function getPKs(dataUnit) {
96
+ if (!dataUnit) {
97
+ return undefined;
98
+ }
99
+ const pk = {};
100
+ const fields = dataUnit.metadata.fields;
101
+ const selectedRecord = dataUnit.getSelectedRecord();
102
+ fields.forEach((field) => {
103
+ if (field.properties['isPrimaryKey']) {
104
+ pk[field.name] = selectedRecord[field.name];
105
+ }
106
+ });
107
+ return pk;
108
+ }
109
+ async function imageBlobToBase64(blob) {
110
+ return new Promise((resolve, reject) => {
111
+ const reader = new FileReader();
112
+ reader.onloadend = () => {
113
+ resolve(reader.result);
114
+ };
115
+ reader.onerror = reject;
116
+ reader.readAsDataURL(blob);
117
+ });
118
+ }
119
+ async function downloadImage(pks, fieldName, entityName) {
120
+ const uploadUrl = getBaseUrl(pks, entityName, fieldName);
121
+ if (!uploadUrl) {
122
+ return;
123
+ }
124
+ try {
125
+ const response = await fetch(uploadUrl);
126
+ if (response.ok) {
127
+ const blob = await response.blob();
128
+ return await imageBlobToBase64(blob);
129
+ }
130
+ }
131
+ catch (error) {
132
+ console.error('Error downloading image:', error);
133
+ }
134
+ }
135
+
136
+ export { buildFileKey as a, base64ToBlob as b, downloadImage as d, getPKs as g, sessionFileUpload as s };
@@ -76,6 +76,9 @@ class PersonalizedFilterUtils {
76
76
  }
77
77
  else if (DataType.DATE == type) {
78
78
  value = this.convertDataValue(value);
79
+ if (value === undefined) {
80
+ return;
81
+ }
79
82
  }
80
83
  else if (DataType.BOOLEAN == type) {
81
84
  value = value ? "S" : "N";
@@ -101,9 +104,19 @@ class PersonalizedFilterUtils {
101
104
  return `?:{entidade=${expressionItem.entityName || ""};campo=${expressionItem.fieldName || ""}}`;
102
105
  }
103
106
  static convertDataValue(value) {
107
+ if (value == null || value === '' || value === undefined) {
108
+ return;
109
+ }
104
110
  if (typeof value == 'string') {
111
+ const trimmedValue = value.trim();
112
+ if (trimmedValue === '' || trimmedValue === '/' || trimmedValue === ' / /') {
113
+ return;
114
+ }
105
115
  value = new Date(value);
106
116
  }
117
+ if (value instanceof Date && isNaN(value.getTime())) {
118
+ return;
119
+ }
107
120
  return DateUtils.formatDate(value);
108
121
  }
109
122
  /*
@@ -1,6 +1,6 @@
1
- import { C as ConfigStorage } from './ConfigStorage-13d80e36.js';
2
1
  import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
3
- import { F as FormConfigFetcher } from './form-config-fetcher-6a00fe9e.js';
2
+ import { C as ConfigStorage } from './ConfigStorage-d15d2014.js';
3
+ import { F as FormConfigFetcher } from './form-config-fetcher-fcc7b62f.js';
4
4
  import { a as TAB_NAMES } from './constants-7b422de0.js';
5
5
 
6
6
  class SnkFormConfigManager {
@@ -83,7 +83,7 @@ class SnkFormConfigManager {
83
83
  return false;
84
84
  }
85
85
  getFieldsList(descriptionFilter, forceEmptyConfig = false) {
86
- var _a;
86
+ var _a, _b;
87
87
  const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
88
88
  const hasConfig = this.hasConfig();
89
89
  if (hasConfig && !forceEmptyConfig) {
@@ -99,7 +99,7 @@ class SnkFormConfigManager {
99
99
  })
100
100
  .filter(field => this.isFieldVisible(field, descriptionFilter));
101
101
  }
102
- if (!this._dataUnit) {
102
+ if (!this._dataUnit || !((_b = this._dataUnit.metadata) === null || _b === void 0 ? void 0 : _b.fields)) {
103
103
  return [];
104
104
  }
105
105
  const filteredFields = this._dataUnit.metadata.fields
@@ -179,7 +179,7 @@ class SnkFormConfigManager {
179
179
  return Array.isArray(object) ? object : [object];
180
180
  }
181
181
  buildFormMetadataUITabs(config, forceEmptyConfig = false) {
182
- var _a;
182
+ var _a, _b, _c;
183
183
  const hasConfig = this.hasConfig(config);
184
184
  if (!forceEmptyConfig && (!this._dataUnit || hasConfig)) {
185
185
  return config;
@@ -188,10 +188,10 @@ class SnkFormConfigManager {
188
188
  config.tabs = this.parseObjectList(config.tabs);
189
189
  config.emptyConfig = false;
190
190
  config.defaultConfiguration = true;
191
- const fields = this._dataUnit.metadata.fields;
191
+ const fields = (_b = (_a = this._dataUnit.metadata) === null || _a === void 0 ? void 0 : _a.fields) !== null && _b !== void 0 ? _b : [];
192
192
  for (const currentField of fields) {
193
193
  const field = config.fields.find(field => field.name === currentField.name);
194
- const uiTabName = (_a = currentField.properties) === null || _a === void 0 ? void 0 : _a.UITabName;
194
+ const uiTabName = (_c = currentField.properties) === null || _c === void 0 ? void 0 : _c.UITabName;
195
195
  if (!uiTabName || uiTabName === TAB_NAMES.main) {
196
196
  continue;
197
197
  }