@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
@@ -1,10 +1,11 @@
1
1
  import { DataUnitInMemoryLoader, ObjectUtils, DataUnit, ApplicationContext, StringUtils, UserInterface, DataUnitStorage, DataType, ChangeOperation } from '@sankhyalabs/core';
2
- import { D as DataFetcher, S as SnkMessageBuilder, d as dist } from './DataFetcher.js';
2
+ import { D as DataFetcher, d as dist } from './DataFetcher.js';
3
3
  import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
4
4
  import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
5
5
  import { ColumnFilterManager } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
6
6
  import SortingUtils from '@sankhyalabs/core/dist/utils/SortingUtils';
7
7
  import { R as ResourceIDUtils } from './ResourceIDUtils.js';
8
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
8
9
 
9
10
  class InMemoryLoader {
10
11
  constructor(metadata, records, config) {
@@ -112,6 +112,48 @@ function buildGuides(config, mainArea) {
112
112
  tabs = initializeTabsNames(tabs);
113
113
  return handleMainTab(tabs, mainArea);
114
114
  }
115
+ function buildChildrenGuides(dataUnit, initialOrderIndex = 0, guidesList) {
116
+ var _a;
117
+ if (!dataUnit || !dataUnit.metadata) {
118
+ return [];
119
+ }
120
+ const children = ((_a = dataUnit.metadata) === null || _a === void 0 ? void 0 : _a.children) || [];
121
+ const childrenWithNoGuide = [];
122
+ for (const child of children) {
123
+ const guideOnConfig = guidesList.find(guide => child.label === guide.label);
124
+ if (guideOnConfig) {
125
+ guideOnConfig.isCustom = true;
126
+ continue;
127
+ }
128
+ childrenWithNoGuide.push({
129
+ label: child.label,
130
+ name: child.name,
131
+ visible: true,
132
+ isCustom: true,
133
+ order: initialOrderIndex++
134
+ });
135
+ }
136
+ return childrenWithNoGuide;
137
+ }
138
+ function buildCustomGuides(customGuidesList, guidesList) {
139
+ let initialOrderIndex = guidesList.length;
140
+ const customGuidesToAdd = getCustomGuidesNotIncludedInList(customGuidesList, guidesList);
141
+ return customGuidesToAdd.map(guide => {
142
+ return {
143
+ name: guide.id,
144
+ label: guide.label,
145
+ visible: true,
146
+ isCustom: true,
147
+ order: initialOrderIndex++
148
+ };
149
+ });
150
+ }
151
+ function isCustomGuideIncludedInList(guidesList, guide) {
152
+ return guidesList.some(fromList => fromList.name === guide.id || fromList.label === guide.label);
153
+ }
154
+ function getCustomGuidesNotIncludedInList(customGuidesList, guidesList) {
155
+ return customGuidesList.filter(guide => !isCustomGuideIncludedInList(guidesList, guide));
156
+ }
115
157
  function handleFieldsTabNames(allFields) {
116
158
  // Campos que não fazem parte de nenhuma aba ou da aba "Geral", devem ser movidos para a aba __main.
117
159
  return allFields.map(field => {
@@ -247,7 +289,7 @@ function buildFieldToSave(fieldConfig) {
247
289
  return fieldToSave;
248
290
  }
249
291
 
250
- const fieldConfigCss = ".field-config-container.sc-field-config{font-family:'Roboto';color:#2b3a54;display:flex;flex-direction:column;gap:10px;width:330px;justify-content:space-between}.header.sc-field-config{display:flex;font-weight:500;font-size:16px}.actions.sc-field-config{display:flex;align-items:flex-end;gap:12px}";
292
+ const fieldConfigCss = ".field-config-container.sc-field-config{font-family:'Roboto';color:#2b3a54;display:flex;flex-direction:column;gap:10px;width:330px;justify-content:space-between}.header.sc-field-config{display:flex;font-weight:500;font-size:16px}.actions.sc-field-config{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px}";
251
293
 
252
294
  const FieldConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
253
295
  constructor() {
@@ -521,4 +563,4 @@ function defineCustomElement() {
521
563
  } });
522
564
  }
523
565
 
524
- export { FieldConfig as F, ID_AVAILABLE_FIELDS as I, SORTABLE_PATH as S, getFieldsStructure as a, buildGuides as b, buildGuidesMap as c, defineCustomElement as d, getFieldsToSave as e, buildNewGuideName as f, getIconName as g, updateTabInFieldsFromGroupList as u };
566
+ export { FieldConfig as F, ID_AVAILABLE_FIELDS as I, SORTABLE_PATH as S, getFieldsStructure as a, buildGuides as b, buildChildrenGuides as c, defineCustomElement as d, buildCustomGuides as e, buildGuidesMap as f, getIconName as g, getFieldsToSave as h, buildNewGuideName as i, updateTabInFieldsFromGroupList as u };
@@ -1,12 +1,12 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
2
2
  import { StringUtils, ObjectUtils } from '@sankhyalabs/core';
3
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
4
  import { S as Sortable } from './sortable.esm.js';
4
- import { S as SORTABLE_PATH, a as getFieldsStructure, d as defineCustomElement$2, I as ID_AVAILABLE_FIELDS } from './field-config2.js';
5
5
  import { T as TAB_NAMES, G as GROUP_NAMES } from './constants.js';
6
- import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
6
+ import { S as SORTABLE_PATH, a as getFieldsStructure, d as defineCustomElement$2, I as ID_AVAILABLE_FIELDS } from './field-config2.js';
7
7
  import { d as defineCustomElement$1 } from './field-item2.js';
8
8
 
9
- const fieldsLayoutCss = ".sc-fields-layout-h{display:flex;padding:12px;box-shadow:var(--shadow--small, 0 0 16px rgba(0, 38, 111, 0.07));border-radius:var(--border--radius-medium, 6px);height:var(--snk-form-config-container-height);flex-direction:column}.layout-container.sc-fields-layout{container-type:inline-size;display:flex;flex-direction:column;overflow:auto;height:calc(100vh - 225px)}.guide-header.sc-fields-layout{display:flex;width:100%;font-size:20px;border-bottom:1px solid #dce0e8;margin-bottom:6px;align-items:center;height:45px}.guide-header.sc-fields-layout ez-button.sc-fields-layout{transition:all 0.2s ease-in-out;visibility:hidden;opacity:0}.guide-header.sc-fields-layout:hover ez-button.sc-fields-layout{visibility:visible;opacity:1}.guide-header-label.sc-fields-layout{display:block;padding:10px 0}.group-config.sc-fields-layout{padding:12px 0;display:flex;flex-direction:column;width:100%}.group-content.sc-fields-layout{display:grid;gap:12px;min-height:65px;width:100%;padding:6px 0;grid-template-columns:repeat(auto-fill, minmax(250px, 1fr))}.group-content.empty-content.sc-fields-layout{position:relative}.group-content.empty-content.sc-fields-layout::before{content:var(--empty-content-message, \"Arraste e solte um campo aqui\");color:#cbcfd7;font-size:16px;font-weight:500;text-align:center;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity 0.3s;height:100%;box-sizing:border-box;padding:10px;background:#f9f9f9;border:1px dashed #dce0e8;border-radius:6px}.no-group-container.sc-fields-layout{padding:12px 0;width:100%;border-bottom:1px solid #dce0e8}.no-group-container.sc-fields-layout::before{content:var(--no-group-message, \"Inclua estes campos nos grupos ou deixe-os separados no topo do formulário\");width:100%;display:block;font-size:16px;font-weight:400;color:#AFB6C0;padding-bottom:12px}.add-group-container.sc-fields-layout{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;padding-bottom:12px;gap:6px;cursor:pointer;justify-content:center;width:100%;height:55px}.no-guide-selected.sc-fields-layout{display:block;margin:auto;font-size:24px;color:#AFB6C0;font-weight:500}.ghost.sc-fields-layout{opacity:.5;background:#c8fbe2}";
9
+ const fieldsLayoutCss = ".sc-fields-layout-h{display:flex;padding:12px;box-shadow:var(--shadow--small, 0 0 16px rgba(0, 38, 111, 0.07));border-radius:var(--border--radius-medium, 6px);height:var(--snk-form-config-container-height);flex-direction:column}.layout-container.sc-fields-layout{container-type:inline-size;display:flex;flex-direction:column;overflow:auto;height:calc(100vh - 225px)}.guide-header.sc-fields-layout{display:flex;width:100%;font-size:20px;border-bottom:1px solid #dce0e8;margin-bottom:6px;align-items:center;height:45px}.guide-header.sc-fields-layout ez-button.sc-fields-layout{transition:all 0.2s ease-in-out;visibility:hidden;opacity:0}.guide-header.sc-fields-layout:hover ez-button.sc-fields-layout{visibility:visible;opacity:1}.guide-header-label.sc-fields-layout{display:block;padding:10px 0}.group-config.sc-fields-layout{padding:12px 0;display:flex;flex-direction:column;width:100%}.group-content.sc-fields-layout{display:grid;gap:12px;min-height:65px;width:100%;padding:6px 0;grid-template-columns:repeat(auto-fill, minmax(250px, 1fr))}.group-content.empty-content.sc-fields-layout{position:relative}.group-content.empty-content.sc-fields-layout::before{content:var(--empty-content-message, \"Arraste e solte um campo aqui\");color:#cbcfd7;font-size:16px;font-weight:500;text-align:center;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity 0.3s;height:100%;box-sizing:border-box;padding:10px;background:#f9f9f9;border:1px dashed #dce0e8;border-radius:6px}.no-group-container.sc-fields-layout{padding:12px 0;width:100%;border-bottom:1px solid #dce0e8}.no-group-container.sc-fields-layout::before{content:var(--no-group-message, \"Inclua estes campos nos grupos ou deixe-os separados no topo do formulário\");width:100%;display:block;font-size:16px;font-weight:400;color:#AFB6C0;padding-bottom:12px}.add-group-container.sc-fields-layout{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;padding-bottom:12px;gap:6px;cursor:pointer;justify-content:center;width:100%;height:55px}.no-guide-selected.sc-fields-layout{display:block;margin:auto;font-size:24px;color:#AFB6C0;font-weight:500}.message-container.sc-fields-layout{margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:center}.message-config-detail.sc-fields-layout{display:block;margin:auto;font-size:var(--font-size--medium, 16px);color:#AFB6C0;font-weight:var(--font-weight--medium, 500)}.ghost.sc-fields-layout{opacity:.5;background:#c8fbe2}";
10
10
 
11
11
  const FieldLayoutComponent = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
12
12
  constructor() {
@@ -331,6 +331,9 @@ const FieldLayoutComponent = /*@__PURE__*/ proxyCustomElement(class extends HTML
331
331
  if (!this.selectedGuide) {
332
332
  return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("span", { class: 'no-guide-selected' }, this.getMessage('snkFormConfig.form.noGuideSelected'))));
333
333
  }
334
+ if (this.selectedGuide.isCustom || this.selectedGuide.isDetail) {
335
+ return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("div", { class: 'message-container' }, h("h1", { class: 'no-guide-selected' }, this.getMessage('snkFormConfig.form.canNotEditCustomGuide')), h("span", { class: 'message-config-detail' }, this.getMessage('snkFormConfig.form.canNotEditDetailGuide')))));
336
+ }
334
337
  return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, this.renderGuideName(), h("div", { class: 'layout-container' }, h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { class: 'no-group-container' }, h("div", { id: GROUP_NAMES.noGroup, class: 'group-content', "data-group-name": GROUP_NAMES.noGroup }, this.renderFixedFields())), h("hr", null), h("div", { id: this.ID_GROUPS, class: 'groups-container' }, this.renderDraggableGroups()))), h("div", { class: 'add-group-container', onClick: this.handleAddGroup.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus" }), h("span", null, this.getMessage('snkFormConfig.form.createNewGroup')))));
335
338
  }
336
339
  get el() { return this; }
@@ -1,10 +1,10 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { S as Sortable } from './sortable.esm.js';
3
2
  import { ObjectUtils, ArrayUtils } from '@sankhyalabs/core';
4
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
+ import { S as Sortable } from './sortable.esm.js';
5
5
  import { T as TAB_NAMES } from './constants.js';
6
6
 
7
- const guidesConfiguratorCss = ".ezSidebarNavigator.sc-guides-configurator{--ez-sidebar-navigator--height:calc(100vh - 118px)}.navigator-container.sc-guides-configurator{height:calc(100vh - 175px);display:flex;flex-direction:column;justify-content:space-between}.collapsible-container.sc-guides-configurator{display:flex;flex-direction:column;gap:12px;flex-grow:1;max-height:calc(100vh - 240px);overflow:auto}.collapsible-item.sc-guides-configurator{padding:6px;border-radius:6px;border:1px solid #dce0e8}.add-button-container.sc-guides-configurator{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;gap:6px;cursor:pointer;justify-content:center}.add-button-container.sc-guides-configurator span.sc-guides-configurator{display:block}.guide-list.sc-guides-configurator{display:flex;flex-direction:column;width:100%;min-height:10px}.guide-list.hidden-empty-content.sc-guides-configurator::before{content:var(--no-hidden-guides-message, \"Nenhuma guia oculta\");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.guide-list.visible-empty-content.sc-guides-configurator::before{content:var(--no-visible-guides-message, \"Nenhuma guia visível\");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.item-label.sc-guides-configurator{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.guide-item.sc-guides-configurator{margin:0 3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px;border-radius:6px;transition:all 0.2s ease-in-out;height:32px}.guide-item.sc-guides-configurator .actions.sc-guides-configurator{display:flex;gap:8px;transition:0.2s ease-in-out;visibility:hidden;opacity:0}.guide-item.sc-guides-configurator:hover .actions.sc-guides-configurator{visibility:visible;opacity:1}ez-button.sc-guides-configurator{width:24px;align-items:center;justify-content:center;display:flex}.ghost.sc-guides-configurator{opacity:.5;background:#e2eaf4}.main-guide.sc-guides-configurator{padding:12px;margin:12px 0;border:1px solid #dce0e8;border-radius:6px;transition:all 0.2s ease-in-out}.guide-item.selected.sc-guides-configurator,.main-guide.selected.sc-guides-configurator{background:#E2F4EF}.guide-item.sc-guides-configurator:hover,.main-guide.sc-guides-configurator:hover{background:#f5fcfa}";
7
+ const guidesConfiguratorCss = ".ezSidebarNavigator.sc-guides-configurator{--ez-sidebar-navigator--height:calc(100vh - 118px)}.navigator-container.sc-guides-configurator{height:calc(100vh - 175px);display:flex;flex-direction:column;justify-content:space-between}.collapsible-container.sc-guides-configurator{display:flex;flex-direction:column;gap:12px;flex-grow:1;max-height:calc(100vh - 240px);overflow:auto}.collapsible-item.sc-guides-configurator{padding:6px;border-radius:6px;border:1px solid #dce0e8}.add-button-container.sc-guides-configurator{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;gap:6px;cursor:pointer;justify-content:center}.add-button-container.sc-guides-configurator span.sc-guides-configurator{display:block}.guide-list.sc-guides-configurator{display:flex;flex-direction:column;width:100%;min-height:10px}.guide-list.hidden-empty-content.sc-guides-configurator::before{content:var(--no-hidden-guides-message, \"Nenhuma guia oculta\");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.guide-list.visible-empty-content.sc-guides-configurator::before{content:var(--no-visible-guides-message, \"Nenhuma guia visível\");display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.item-label.sc-guides-configurator{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.guide-item.sc-guides-configurator{margin:0 3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px;border-radius:6px;transition:all 0.2s ease-in-out;height:32px}.guide-item.sc-guides-configurator .actions.sc-guides-configurator{display:flex;gap:8px;transition:opacity 0.2s ease-in-out;display:none;opacity:0}.guide-item.sc-guides-configurator:hover .actions.sc-guides-configurator{display:flex;opacity:1}ez-button.sc-guides-configurator{width:24px;align-items:center;justify-content:center;display:flex}.ghost.sc-guides-configurator{opacity:.5;background:#e2eaf4}.main-guide.sc-guides-configurator{padding:12px;margin:12px 0;border:1px solid #dce0e8;border-radius:6px;transition:all 0.2s ease-in-out}.guide-item.selected.sc-guides-configurator,.main-guide.selected.sc-guides-configurator{background:#E2F4EF}.guide-item.sc-guides-configurator:hover,.main-guide.sc-guides-configurator:hover{background:#f5fcfa}";
8
8
 
9
9
  const GuidesConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
10
10
  constructor() {
@@ -101,7 +101,9 @@ const GuidesConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
101
101
  var _a;
102
102
  return (h("div", { key: guide.name, "data-guide-name": guide.name, title: guide.label, class: `guide-item ${((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.label) === guide.label ? 'selected' : ''} ${this.filterTerm.length ? 'disable-sort' : ''}`, onClick: e => this.handleSelectGuide(guide, e) }, h("span", null, h("ez-icon", { iconName: "drag-indicator", class: 'ez-margin-right--small' })), h("span", { class: 'item-label' }, guide.label), h("div", { class: 'actions' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: e => this.toggleGuideVisibility(guide, e), size: "medium", iconName: guide.visible ? 'eye-off' : 'eye', title: guide.visible ?
103
103
  this.getMessage('snkFormConfig.guidesConfigurator.actions.hide') :
104
- this.getMessage('snkFormConfig.guidesConfigurator.actions.show') }), h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: e => this.handleDeleteGuide(guide, e), size: "medium", iconName: 'delete', title: this.getMessage('snkFormConfig.guidesConfigurator.actions.delete') }))));
104
+ this.getMessage('snkFormConfig.guidesConfigurator.actions.show') }), h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: e => this.handleDeleteGuide(guide, e), size: "medium", isDisabled: guide.isCustom || guide.isDetail, iconName: 'delete', title: guide.isCustom || guide.isDetail ?
105
+ this.getMessage('snkFormConfig.guidesConfigurator.canNotDeleteCustomGuide') :
106
+ this.getMessage('snkFormConfig.guidesConfigurator.actions.delete') }))));
105
107
  });
106
108
  }
107
109
  getContainerElement(id) {
@@ -16,6 +16,7 @@ export { SnkActionsForm as SnkClientConfirm } from '../types/components/snk-acti
16
16
  export { SnkConfigurator as SnkConfigurator } from '../types/components/snk-configurator/snk-configurator';
17
17
  export { SnkCrud as SnkCrud } from '../types/components/snk-crud/snk-crud';
18
18
  export { SnkCustomSlotElements as SnkCustomSlotElements } from '../types/components/snk-custom-slot-elements/snk-custom-slot-elements';
19
+ export { SnkCustomSlotGuide as SnkCustomSlotGuide } from '../types/components/snk-custom-slot-guide/snk-custom-slot-guide';
19
20
  export { SnkDataExporter as SnkDataExporter } from '../types/components/snk-data-exporter/snk-data-exporter';
20
21
  export { SnkDataUnit as SnkDataUnit } from '../types/components/snk-data-unit/snk-data-unit';
21
22
  export { SnkDefaultFilter as SnkDefaultFilter } from '../types/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter';
@@ -48,6 +49,7 @@ export { SnkFormView as SnkFormView } from '../types/components/snk-crud/subcomp
48
49
  export { SnkGrid as SnkGrid } from '../types/components/snk-grid/snk-grid';
49
50
  export { SnkGridConfig as SnkGridConfig } from '../types/components/snk-grid-config/snk-grid-config';
50
51
  export { SnkGuidesViewer as SnkGuidesViewer } from '../types/components/snk-crud/subcomponents/snk-guides-viewer';
52
+ export { SnkImageInput as SnkImageInput } from '../types/components/snk-image-input/snk-image-input';
51
53
  export { SnkLayoutFormConfig as SnkLayoutFormConfig } from '../types/components/snk-layout-form-config/snk-layout-form-config';
52
54
  export { SnkNumberingConfig as SnkNumberingConfig } from '../types/components/snk-numbering-config/snk-numbering-config';
53
55
  export { SnkPersonalizedFilter as SnkPersonalizedFilter } from '../types/components/snk-personalized-filter/snk-personalized-filter';
@@ -16,6 +16,7 @@ export { SnkClientConfirm, defineCustomElement as defineCustomElementSnkClientCo
16
16
  export { SnkConfigurator, defineCustomElement as defineCustomElementSnkConfigurator } from './snk-configurator.js';
17
17
  export { SnkCrud, defineCustomElement as defineCustomElementSnkCrud } from './snk-crud.js';
18
18
  export { SnkCustomSlotElements, defineCustomElement as defineCustomElementSnkCustomSlotElements } from './snk-custom-slot-elements.js';
19
+ export { SnkCustomSlotGuide, defineCustomElement as defineCustomElementSnkCustomSlotGuide } from './snk-custom-slot-guide.js';
19
20
  export { SnkDataExporter, defineCustomElement as defineCustomElementSnkDataExporter } from './snk-data-exporter.js';
20
21
  export { SnkDataUnit, defineCustomElement as defineCustomElementSnkDataUnit } from './snk-data-unit.js';
21
22
  export { SnkDefaultFilter, defineCustomElement as defineCustomElementSnkDefaultFilter } from './snk-default-filter.js';
@@ -48,6 +49,7 @@ export { SnkFormView, defineCustomElement as defineCustomElementSnkFormView } fr
48
49
  export { SnkGrid, defineCustomElement as defineCustomElementSnkGrid } from './snk-grid.js';
49
50
  export { SnkGridConfig, defineCustomElement as defineCustomElementSnkGridConfig } from './snk-grid-config.js';
50
51
  export { SnkGuidesViewer, defineCustomElement as defineCustomElementSnkGuidesViewer } from './snk-guides-viewer.js';
52
+ export { SnkImageInput, defineCustomElement as defineCustomElementSnkImageInput } from './snk-image-input.js';
51
53
  export { SnkLayoutFormConfig, defineCustomElement as defineCustomElementSnkLayoutFormConfig } from './snk-layout-form-config.js';
52
54
  export { SnkNumberingConfig, defineCustomElement as defineCustomElementSnkNumberingConfig } from './snk-numbering-config.js';
53
55
  export { SnkPersonalizedFilter, defineCustomElement as defineCustomElementSnkPersonalizedFilter } from './snk-personalized-filter.js';
@@ -1,12 +1,13 @@
1
- import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
1
+ import * as StencilCore from '@stencil/core/internal/client';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
4
+ let refs = map.get(propName);
5
+ if (!refs) {
6
+ refs = [];
7
+ map.set(propName, refs);
7
8
  }
8
- else if (!items.includes(value)) {
9
- items.push(value);
9
+ if (!refs.some((ref) => ref.deref() === value)) {
10
+ refs.push(new WeakRef(value));
10
11
  }
11
12
  };
12
13
  const debounce = (fn, ms) => {
@@ -34,33 +35,54 @@ const debounce = (fn, ms) => {
34
35
  const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
36
  const cleanupElements = debounce((map) => {
36
37
  for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
38
+ const refs = map.get(key).filter((ref) => {
39
+ const elm = ref.deref();
40
+ return elm && isConnected(elm);
41
+ });
42
+ map.set(key, refs);
38
43
  }
39
44
  }, 2_000);
45
+ const core = StencilCore;
46
+ const forceUpdate = core.forceUpdate;
47
+ const getRenderingRef = core.getRenderingRef;
40
48
  const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
49
+ if (typeof getRenderingRef !== 'function' || typeof forceUpdate !== 'function') {
42
50
  // If we are not in a stencil project, we do nothing.
43
51
  // This function is not really exported by @stencil/core.
44
52
  return {};
45
53
  }
54
+ const ensureForceUpdate = forceUpdate;
55
+ const ensureGetRenderingRef = getRenderingRef;
46
56
  const elmsToUpdate = new Map();
47
57
  return {
48
58
  dispose: () => elmsToUpdate.clear(),
49
59
  get: (propName) => {
50
- const elm = getRenderingRef();
60
+ const elm = ensureGetRenderingRef();
51
61
  if (elm) {
52
62
  appendToMap(elmsToUpdate, propName, elm);
53
63
  }
54
64
  },
55
65
  set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
66
+ const refs = elmsToUpdate.get(propName);
67
+ if (refs) {
68
+ const nextRefs = refs.filter((ref) => {
69
+ const elm = ref.deref();
70
+ if (!elm)
71
+ return false;
72
+ return ensureForceUpdate(elm);
73
+ });
74
+ elmsToUpdate.set(propName, nextRefs);
59
75
  }
60
76
  cleanupElements(elmsToUpdate);
61
77
  },
62
78
  reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
79
+ elmsToUpdate.forEach((refs) => {
80
+ refs.forEach((ref) => {
81
+ const elm = ref.deref();
82
+ if (elm)
83
+ ensureForceUpdate(elm);
84
+ });
85
+ });
64
86
  cleanupElements(elmsToUpdate);
65
87
  },
66
88
  };
@@ -68,8 +90,11 @@ const stencilSubscription = () => {
68
90
 
69
91
  const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
92
  const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
- const unwrappedState = unwrap(defaultState);
72
- let states = new Map(Object.entries(unwrappedState ?? {}));
93
+ const resolveDefaultState = () => (unwrap(defaultState) ?? {});
94
+ const initialState = resolveDefaultState();
95
+ let states = new Map(Object.entries(initialState));
96
+ const proxyAvailable = typeof Proxy !== 'undefined';
97
+ const plainState = proxyAvailable ? null : {};
73
98
  const handlers = {
74
99
  dispose: [],
75
100
  get: [],
@@ -81,7 +106,10 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
81
106
  const reset = () => {
82
107
  // When resetting the state, the default state may be a function - unwrap it to invoke it.
83
108
  // otherwise, the state won't be properly reset
84
- states = new Map(Object.entries(unwrap(defaultState) ?? {}));
109
+ states = new Map(Object.entries(resolveDefaultState()));
110
+ if (!proxyAvailable) {
111
+ syncPlainStateKeys();
112
+ }
85
113
  handlers.reset.forEach((cb) => cb());
86
114
  };
87
115
  const dispose = () => {
@@ -98,12 +126,14 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
98
126
  const oldValue = states.get(propName);
99
127
  if (shouldUpdate(value, oldValue, propName)) {
100
128
  states.set(propName, value);
129
+ if (!proxyAvailable) {
130
+ ensurePlainProperty(propName);
131
+ }
101
132
  handlers.set.forEach((cb) => cb(propName, value, oldValue));
102
133
  }
103
134
  };
104
- const state = (typeof Proxy === 'undefined'
105
- ? {}
106
- : new Proxy(unwrappedState, {
135
+ const state = (proxyAvailable
136
+ ? new Proxy(initialState, {
107
137
  get(_, propName) {
108
138
  return get(propName);
109
139
  },
@@ -123,7 +153,11 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
123
153
  set(propName, value);
124
154
  return true;
125
155
  },
126
- }));
156
+ })
157
+ : (() => {
158
+ syncPlainStateKeys();
159
+ return plainState;
160
+ })());
127
161
  const on = (eventName, callback) => {
128
162
  handlers[eventName].push(callback);
129
163
  return () => {
@@ -136,7 +170,10 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
136
170
  cb(newValue);
137
171
  }
138
172
  };
139
- const resetHandler = () => cb(unwrap(defaultState)[propName]);
173
+ const resetHandler = () => {
174
+ const snapshot = resolveDefaultState();
175
+ cb(snapshot[propName]);
176
+ };
140
177
  // Register the handlers
141
178
  const unSet = on('set', setHandler);
142
179
  const unReset = on('reset', resetHandler);
@@ -179,6 +216,38 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
179
216
  changeListeners.delete(listener);
180
217
  }
181
218
  };
219
+ function ensurePlainProperty(key) {
220
+ if (proxyAvailable || !plainState) {
221
+ return;
222
+ }
223
+ if (Object.prototype.hasOwnProperty.call(plainState, key)) {
224
+ return;
225
+ }
226
+ Object.defineProperty(plainState, key, {
227
+ configurable: true,
228
+ enumerable: true,
229
+ get() {
230
+ return get(key);
231
+ },
232
+ set(value) {
233
+ set(key, value);
234
+ },
235
+ });
236
+ }
237
+ function syncPlainStateKeys() {
238
+ if (proxyAvailable || !plainState) {
239
+ return;
240
+ }
241
+ const knownKeys = new Set(states.keys());
242
+ for (const key of Object.keys(plainState)) {
243
+ if (!knownKeys.has(key)) {
244
+ delete plainState[key];
245
+ }
246
+ }
247
+ for (const key of knownKeys) {
248
+ ensurePlainProperty(key);
249
+ }
250
+ }
182
251
  return {
183
252
  state,
184
253
  get,
@@ -2,10 +2,11 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, SilentException, WarningException, ErrorException, ElementIDUtils, SearchUtils, ArrayUtils, KeyboardManager, OnboardingUtils, DependencyType, DataType, ApplicationContext, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { C as ConfigStorage } from './ConfigStorage.js';
5
- import { d as dist, D as DataFetcher, U as UrlUtils, S as SnkMessageBuilder } from './DataFetcher.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
6
6
  import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
7
7
  import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher.js';
8
8
  import { a as PesquisaFetcher } from './ISave.js';
9
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
9
10
  import { c as TEMPLATES_SKELETON } from './constants.js';
10
11
  import './filter-item-type.enum.js';
11
12
  import { F as FormConfigFetcher } from './form-config-fetcher.js';
@@ -274,6 +275,7 @@ class SnkErrorHandler {
274
275
  this._app.error(exception.title, exception.message);
275
276
  }
276
277
  else {
278
+ console.warn("Erro não tratado", exception);
277
279
  this._app.isDebugMode().then(isDebug => {
278
280
  if (isDebug) {
279
281
  if (exception instanceof Error) {
@@ -787,6 +789,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
787
789
  this._popUp.opened = true;
788
790
  this._popUp.heightMode = size;
789
791
  this._popUp.useHeader = useHeader;
792
+ this._popUp.autoClose = false;
790
793
  if (content.tagName === 'EZ-MODAL-CONTAINER') {
791
794
  this._popUp.useHeader = false;
792
795
  }
@@ -1387,12 +1390,29 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1387
1390
  * @async
1388
1391
  */
1389
1392
  async executePreparedSearch(mode, argument, options) {
1393
+ var _a;
1390
1394
  const mdByName = {};
1391
1395
  const { entity, criteria, searchOptions, useSearchPlus } = options;
1392
1396
  if (useSearchPlus) {
1393
1397
  return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
1394
1398
  }
1395
- if (mode === "ADVANCED") {
1399
+ if (mode === "LOAD_DESCRIPTION") {
1400
+ let result = await this.pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
1401
+ result = ObjectUtils.stringToObject(result.json.$);
1402
+ let descriptionField = result.descriptionField;
1403
+ const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
1404
+ if (!option) {
1405
+ return {
1406
+ value: argument,
1407
+ label: ""
1408
+ };
1409
+ }
1410
+ return {
1411
+ value: argument,
1412
+ label: option[descriptionField]
1413
+ };
1414
+ }
1415
+ else if (mode === "ADVANCED") {
1396
1416
  return executeAdvancedModeSearch(argument, options, this, this.pesquisaFetcher);
1397
1417
  }
1398
1418
  return new Promise((resolve, reject) => {
@@ -1,12 +1,13 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit } from '@sankhyalabs/core';
3
- import { D as DataFetcher, S as SnkMessageBuilder } from './DataFetcher.js';
3
+ import { D as DataFetcher } from './DataFetcher.js';
4
4
  import { S as SaveErrorsEnum } from './ISave.js';
5
5
  import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher.js';
6
6
  import './filter-item-type.enum.js';
7
7
  import './form-config-fetcher.js';
8
8
  import { V as VIEW_MODE } from './constants.js';
9
9
  import { A as AutorizationType } from './auth-fetcher.js';
10
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
10
11
  import { T as TaskbarElement, d as defineCustomElement$4 } from './snk-taskbar2.js';
11
12
  import { d as defineCustomElement$g } from './snk-actions-button2.js';
12
13
  import { d as defineCustomElement$f } from './snk-configurator2.js';
@@ -911,7 +912,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
911
912
  static get style() { return snkAttachCss; }
912
913
  }, [2, "snk-attach", {
913
914
  "gridLegacyConfigName": [1, "grid-legacy-config-name"],
914
- "fetcherType": [1, "fetcher-type"],
915
+ "fetcherType": [1025, "fetcher-type"],
915
916
  "fetcher": [16],
916
917
  "dataUnit": [16],
917
918
  "dataUnitBuilder": [16],