@sankhyalabs/sankhyablocks 10.1.0-dev.4 → 10.1.0-dev.41

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 (448) hide show
  1. package/dist/cjs/{ConfigStorage-b29e31be.js → ConfigStorage-a1fab5ca.js} +19 -2
  2. package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
  3. package/dist/cjs/{DataFetcher-ed9d97ea.js → DataFetcher-384d2ce8.js} +2 -2733
  4. package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
  5. package/dist/cjs/{ISave-81eb2fbc.js → ISave-ecbe9336.js} +1 -1
  6. package/dist/cjs/ImageUtils-c46f2d11.js +142 -0
  7. package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
  8. package/dist/cjs/{SnkFormConfigManager-6838389c.js → SnkFormConfigManager-44386305.js} +7 -7
  9. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +2833 -0
  10. package/dist/cjs/{SnkMultiSelectionListDataSource-1e804147.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
  11. package/dist/cjs/{auth-fetcher-cc28d847.js → auth-fetcher-6b134ec4.js} +1 -1
  12. package/dist/cjs/config-header.cjs.entry.js +1 -1
  13. package/dist/cjs/configs-button.cjs.entry.js +1 -1
  14. package/dist/cjs/css-shim-a27d231b.js +6 -0
  15. package/dist/cjs/{dataunit-fetcher-ab1cc071.js → dataunit-fetcher-93f53260.js} +26 -3
  16. package/dist/cjs/dom-ff96a4bc.js +75 -0
  17. package/dist/cjs/field-config_2.cjs.entry.js +3 -3
  18. package/dist/cjs/fields-layout.cjs.entry.js +8 -5
  19. package/dist/cjs/fields-selector.cjs.entry.js +3 -3
  20. package/dist/cjs/{form-config-fetcher-f0897eb5.js → form-config-fetcher-45d1964c.js} +19 -1
  21. package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
  22. package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1529 -177
  23. package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
  24. package/dist/cjs/loader.cjs.js +16 -2
  25. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
  26. package/dist/cjs/sankhyablocks.cjs.js +132 -4
  27. package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
  28. package/dist/cjs/snk-actions-button_9.cjs.entry.js +160 -113
  29. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  30. package/dist/cjs/snk-application.cjs.entry.js +29 -9
  31. package/dist/cjs/snk-attach.cjs.entry.js +53 -26
  32. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  33. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  34. package/dist/cjs/snk-crud.cjs.entry.js +351 -108
  35. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
  36. package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
  37. package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -7
  38. package/dist/cjs/{snk-data-unit-68992932.js → snk-data-unit-6abc5efc.js} +21 -12
  39. package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
  40. package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
  41. package/dist/cjs/snk-detail-view.cjs.entry.js +19 -20
  42. package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
  43. package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
  44. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +2 -2
  45. package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
  46. package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +41 -3
  47. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +147 -94
  48. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  49. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  50. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
  51. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  52. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
  53. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  54. package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
  55. package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
  56. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  57. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  58. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  59. package/dist/cjs/snk-form-view.cjs.entry.js +70 -8
  60. package/dist/cjs/snk-form_2.cjs.entry.js +34 -10
  61. package/dist/cjs/snk-grid.cjs.entry.js +63 -30
  62. package/dist/cjs/{snk-guides-viewer-8b841753.js → snk-guides-viewer-b4ca3437.js} +114 -188
  63. package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -18
  64. package/dist/cjs/snk-image-input.cjs.entry.js +148 -0
  65. package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
  66. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  67. package/dist/cjs/snk-personalized-filter.cjs.entry.js +8 -7
  68. package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
  69. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  70. package/dist/cjs/snk-simple-crud.cjs.entry.js +30 -35
  71. package/dist/cjs/snk-taskbar.cjs.entry.js +237 -168
  72. package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
  73. package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
  74. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  75. package/dist/collection/collection-manifest.json +10 -1
  76. package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
  77. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
  78. package/dist/collection/components/snk-application/snk-application.js +20 -2
  79. package/dist/collection/components/snk-attach/snk-attach.css +29 -7
  80. package/dist/collection/components/snk-attach/snk-attach.js +82 -19
  81. package/dist/collection/components/snk-crud/snk-crud.css +46 -0
  82. package/dist/collection/components/snk-crud/snk-crud.js +190 -96
  83. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
  84. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +5 -5
  85. package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
  86. package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
  87. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +90 -8
  88. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
  89. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +165 -179
  90. package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
  91. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
  92. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
  93. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
  94. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
  95. package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
  96. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
  97. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
  98. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  99. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
  100. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +5 -1
  101. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -2
  102. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +7 -1
  103. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +22 -8
  104. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
  105. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +166 -78
  106. package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
  107. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
  108. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
  109. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
  110. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
  111. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -4
  112. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
  113. package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
  114. package/dist/collection/components/snk-grid/snk-grid.css +24 -3
  115. package/dist/collection/components/snk-grid/snk-grid.js +170 -18
  116. package/dist/collection/components/snk-grid-config/snk-grid-config.js +153 -51
  117. package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
  118. package/dist/collection/components/snk-image-input/snk-image-input.js +326 -0
  119. package/dist/collection/components/snk-image-input/utils/ImageUtils.js +133 -0
  120. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
  121. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
  122. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
  123. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
  124. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
  125. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +35 -23
  126. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
  127. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
  128. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +54 -37
  129. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
  130. package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
  131. package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
  132. package/dist/collection/components/snk-taskbar/snk-taskbar.js +304 -174
  133. package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
  134. package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
  135. package/dist/collection/lib/configs/ConfigStorage.js +5 -0
  136. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +24 -2
  137. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
  138. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
  139. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  140. package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
  141. package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
  142. package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
  143. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +9 -1
  144. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
  145. package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
  146. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
  147. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +9 -1
  148. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
  149. package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
  150. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
  151. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
  152. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +9 -1
  153. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
  154. package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
  155. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
  156. package/dist/components/ConfigStorage.js +17 -0
  157. package/dist/components/ContinuousInsertUtils.js +1 -1
  158. package/dist/components/DataFetcher.js +3 -2713
  159. package/dist/components/PersonalizedFilterUtils.js +13 -0
  160. package/dist/components/SnkFormConfigManager.js +6 -6
  161. package/dist/components/SnkMessageBuilder.js +2831 -0
  162. package/dist/components/dataunit-fetcher.js +25 -2
  163. package/dist/components/field-config2.js +44 -2
  164. package/dist/components/fields-layout2.js +6 -3
  165. package/dist/components/form-config-fetcher.js +18 -0
  166. package/dist/components/guides-configurator2.js +5 -3
  167. package/dist/components/index.d.ts +4 -0
  168. package/dist/components/index.js +4 -0
  169. package/dist/components/index2.js +90 -21
  170. package/dist/components/snk-actions-button2.js +6 -3
  171. package/dist/components/snk-application2.js +22 -2
  172. package/dist/components/snk-attach2.js +59 -29
  173. package/dist/components/snk-crud.js +435 -174
  174. package/dist/components/snk-custom-slot-guide.d.ts +11 -0
  175. package/dist/components/snk-custom-slot-guide.js +55 -0
  176. package/dist/components/snk-data-exporter2.js +3 -1
  177. package/dist/components/snk-data-unit2.js +10 -1
  178. package/dist/components/snk-detail-view2.js +250 -292
  179. package/dist/components/snk-entity-search.d.ts +11 -0
  180. package/dist/components/snk-entity-search.js +6 -0
  181. package/dist/components/snk-entity-search2.js +231 -0
  182. package/dist/components/snk-exporter-email-sender2.js +1 -1
  183. package/dist/components/snk-filter-bar2.js +116 -80
  184. package/dist/components/snk-filter-detail2.js +1 -1
  185. package/dist/components/snk-filter-item2.js +9 -3
  186. package/dist/components/snk-filter-modal2.js +22 -9
  187. package/dist/components/snk-filter-number.js +12 -8
  188. package/dist/components/snk-filter-period.js +13 -6
  189. package/dist/components/snk-filter-text.js +1 -1
  190. package/dist/components/snk-form-config2.js +29 -5
  191. package/dist/components/snk-form-view2.js +79 -10
  192. package/dist/components/snk-grid-config2.js +109 -50
  193. package/dist/components/snk-grid2.js +103 -59
  194. package/dist/components/snk-image-input.d.ts +11 -0
  195. package/dist/components/snk-image-input.js +6 -0
  196. package/dist/components/snk-image-input2.js +302 -0
  197. package/dist/components/snk-layout-form-config2.js +1 -1
  198. package/dist/components/snk-personalized-filter2.js +1 -1
  199. package/dist/components/snk-pesquisa2.js +0 -1
  200. package/dist/components/snk-simple-crud2.js +47 -46
  201. package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
  202. package/dist/components/snk-taskbar-skeleton.js +6 -0
  203. package/dist/components/snk-taskbar-skeleton2.js +29 -0
  204. package/dist/components/snk-taskbar2.js +310 -218
  205. package/dist/components/snk-view-representation2.js +1 -1
  206. package/dist/components/sortable.esm.js +76 -90
  207. package/dist/components/taskbar-actions-button2.js +21 -2
  208. package/dist/components/taskbar-split-button2.js +10 -1
  209. package/dist/esm/{ConfigStorage-13d80e36.js → ConfigStorage-76872695.js} +19 -2
  210. package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
  211. package/dist/esm/{DataFetcher-f4ccd9f3.js → DataFetcher-e60f8d53.js} +3 -2713
  212. package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
  213. package/dist/esm/{ISave-288fa9df.js → ISave-4929c071.js} +1 -1
  214. package/dist/esm/ImageUtils-7f3a4149.js +136 -0
  215. package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
  216. package/dist/esm/{SnkFormConfigManager-3ee2937b.js → SnkFormConfigManager-83f6b22f.js} +7 -7
  217. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +2831 -0
  218. package/dist/esm/{SnkMultiSelectionListDataSource-5d3a93f2.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
  219. package/dist/esm/{auth-fetcher-59ab0c67.js → auth-fetcher-1a31c1e4.js} +1 -1
  220. package/dist/esm/config-header.entry.js +1 -1
  221. package/dist/esm/configs-button.entry.js +1 -1
  222. package/dist/esm/css-shim-9f2d321e.js +4 -0
  223. package/dist/esm/{dataunit-fetcher-c4f9f222.js → dataunit-fetcher-050b6d31.js} +25 -2
  224. package/dist/esm/dom-64053c71.js +73 -0
  225. package/dist/esm/field-config_2.entry.js +3 -3
  226. package/dist/esm/fields-layout.entry.js +8 -5
  227. package/dist/esm/fields-selector.entry.js +3 -3
  228. package/dist/esm/{form-config-fetcher-6a00fe9e.js → form-config-fetcher-b44b2727.js} +19 -1
  229. package/dist/esm/guides-configurator.entry.js +6 -4
  230. package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1521 -177
  231. package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
  232. package/dist/esm/loader.js +17 -3
  233. package/dist/esm/pesquisa-grid_2.entry.js +6 -5
  234. package/dist/esm/sankhyablocks.js +133 -5
  235. package/dist/esm/shadow-css-98135883.js +387 -0
  236. package/dist/esm/snk-actions-button_9.entry.js +161 -114
  237. package/dist/esm/snk-actions-form.entry.js +1 -1
  238. package/dist/esm/snk-application.entry.js +28 -8
  239. package/dist/esm/snk-attach.entry.js +52 -25
  240. package/dist/esm/snk-client-confirm.entry.js +1 -1
  241. package/dist/esm/snk-configurator.entry.js +1 -1
  242. package/dist/esm/snk-crud.entry.js +343 -100
  243. package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
  244. package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
  245. package/dist/esm/snk-data-exporter.entry.js +9 -7
  246. package/dist/esm/{snk-data-unit-0edeb967.js → snk-data-unit-ca2c9858.js} +12 -3
  247. package/dist/esm/snk-data-unit.entry.js +5 -4
  248. package/dist/esm/snk-default-filter.entry.js +1 -1
  249. package/dist/esm/snk-detail-view.entry.js +17 -18
  250. package/dist/esm/snk-entity-list.entry.js +1 -1
  251. package/dist/esm/snk-entity-search.entry.js +207 -0
  252. package/dist/esm/snk-exporter-email-sender.entry.js +2 -2
  253. package/dist/esm/snk-expression-group_2.entry.js +2 -2
  254. package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +41 -4
  255. package/dist/esm/snk-filter-bar_4.entry.js +148 -95
  256. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  257. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  258. package/dist/esm/snk-filter-detail.entry.js +3 -3
  259. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  260. package/dist/esm/snk-filter-modal-item.entry.js +5 -4
  261. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  262. package/dist/esm/snk-filter-number.entry.js +11 -7
  263. package/dist/esm/snk-filter-period.entry.js +14 -7
  264. package/dist/esm/snk-filter-search.entry.js +1 -1
  265. package/dist/esm/snk-filter-text.entry.js +2 -2
  266. package/dist/esm/snk-form-summary.entry.js +1 -1
  267. package/dist/esm/snk-form-view.entry.js +71 -9
  268. package/dist/esm/snk-form_2.entry.js +34 -10
  269. package/dist/esm/snk-grid.entry.js +60 -27
  270. package/dist/esm/{snk-guides-viewer-9cd4d20f.js → snk-guides-viewer-cc37535b.js} +115 -189
  271. package/dist/esm/snk-guides-viewer.entry.js +11 -18
  272. package/dist/esm/snk-image-input.entry.js +144 -0
  273. package/dist/esm/snk-layout-form-config.entry.js +68 -0
  274. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  275. package/dist/esm/snk-personalized-filter.entry.js +8 -7
  276. package/dist/esm/snk-pesquisa.entry.js +6 -6
  277. package/dist/esm/snk-print-selector.entry.js +1 -1
  278. package/dist/esm/snk-simple-crud.entry.js +28 -33
  279. package/dist/esm/snk-taskbar.entry.js +238 -169
  280. package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
  281. package/dist/esm/taskbar-elements-63651ca7.js +149 -0
  282. package/dist/esm/teste-pesquisa.entry.js +1 -1
  283. package/dist/sankhyablocks/p-09ba6bd4.js +1 -0
  284. package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
  285. package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
  286. package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
  287. package/dist/sankhyablocks/p-20af4b6a.entry.js +1 -0
  288. package/dist/sankhyablocks/p-251aee41.entry.js +11 -0
  289. package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
  290. package/dist/sankhyablocks/p-2af815bb.entry.js +1 -0
  291. package/dist/sankhyablocks/p-2af8aca3.js +1 -0
  292. package/dist/sankhyablocks/p-2b3c284c.entry.js +1 -0
  293. package/dist/sankhyablocks/p-2c9d0870.js +2 -0
  294. package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
  295. package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
  296. package/dist/sankhyablocks/p-3072136e.js +1 -0
  297. package/dist/sankhyablocks/p-33492640.entry.js +1 -0
  298. package/dist/sankhyablocks/p-35317d9a.entry.js +1 -0
  299. package/dist/sankhyablocks/{p-1c2971e4.js → p-3704bf1b.js} +1 -1
  300. package/dist/sankhyablocks/p-3870748a.js +28 -0
  301. package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
  302. package/dist/sankhyablocks/{p-78ff8734.js → p-3c990841.js} +2 -2
  303. package/dist/sankhyablocks/p-420b39b5.js +1 -0
  304. package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
  305. package/dist/sankhyablocks/p-46f75667.entry.js +1 -0
  306. package/dist/sankhyablocks/{p-53599b26.js → p-4f7adf97.js} +2 -2
  307. package/dist/sankhyablocks/p-554c0e54.js +1 -0
  308. package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
  309. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  310. package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
  311. package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
  312. package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
  313. package/dist/sankhyablocks/p-771b137e.js +1 -0
  314. package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
  315. package/dist/sankhyablocks/p-7c8bf699.entry.js +1 -0
  316. package/dist/sankhyablocks/p-855ccf64.entry.js +1 -0
  317. package/dist/sankhyablocks/p-8a8900a9.entry.js +1 -0
  318. package/dist/sankhyablocks/p-8b4d6719.js +1 -0
  319. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
  320. package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
  321. package/dist/sankhyablocks/p-95af0bb1.entry.js +1 -0
  322. package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-9742ea0e.entry.js} +1 -1
  323. package/dist/sankhyablocks/p-98241c21.entry.js +1 -0
  324. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
  325. package/dist/sankhyablocks/p-9e7dc97d.entry.js +1 -0
  326. package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
  327. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  328. package/dist/sankhyablocks/p-a73b6b00.js +1 -0
  329. package/dist/sankhyablocks/p-ab12f544.entry.js +1 -0
  330. package/dist/sankhyablocks/p-ab5e12fa.js +1 -0
  331. package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
  332. package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
  333. package/dist/sankhyablocks/p-aff2d081.entry.js +1 -0
  334. package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
  335. package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
  336. package/dist/sankhyablocks/p-bab4cde4.entry.js +1 -0
  337. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  338. package/dist/sankhyablocks/p-cbb8e351.js +7 -0
  339. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
  340. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
  341. package/dist/sankhyablocks/p-ce3b284c.entry.js +1 -0
  342. package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
  343. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
  344. package/dist/sankhyablocks/p-d972a9c1.js +60 -0
  345. package/dist/sankhyablocks/p-da455c82.js +12 -0
  346. package/dist/sankhyablocks/p-e5a3711f.js +1 -0
  347. package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-e737fd5a.entry.js} +1 -1
  348. package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
  349. package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
  350. package/dist/sankhyablocks/p-efd18bc2.entry.js +1 -0
  351. package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
  352. package/dist/sankhyablocks/p-f185d5ad.js +1 -0
  353. package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
  354. package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
  355. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  356. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
  357. package/dist/types/components/snk-application/snk-application.d.ts +1 -1
  358. package/dist/types/components/snk-attach/snk-attach.d.ts +20 -4
  359. package/dist/types/components/snk-crud/snk-crud.d.ts +37 -9
  360. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
  361. package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
  362. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
  363. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +28 -18
  364. package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
  365. package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
  366. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
  367. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  368. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -1
  369. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  370. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
  371. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
  372. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
  373. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
  374. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
  375. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  376. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  377. package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
  378. package/dist/types/components/snk-grid/snk-grid.d.ts +29 -1
  379. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +11 -0
  380. package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
  381. package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
  382. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  383. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
  384. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
  385. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
  386. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
  387. package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
  388. package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
  389. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +37 -23
  390. package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
  391. package/dist/types/components.d.ts +377 -5
  392. package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
  393. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -1
  394. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
  395. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
  396. package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
  397. package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
  398. package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
  399. package/package.json +6 -7
  400. package/react/components.d.ts +4 -0
  401. package/react/components.js +4 -0
  402. package/react/components.js.map +1 -1
  403. package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
  404. package/dist/cjs/taskbar-elements-fb5d1e08.js +0 -132
  405. package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
  406. package/dist/esm/snk-simple-bar.entry.js +0 -41
  407. package/dist/esm/taskbar-elements-faaf5d8f.js +0 -129
  408. package/dist/esm/taskbar-processor-3436124c.js +0 -51
  409. package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
  410. package/dist/sankhyablocks/p-0e279e7a.js +0 -1
  411. package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
  412. package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
  413. package/dist/sankhyablocks/p-1a0caadb.js +0 -1
  414. package/dist/sankhyablocks/p-21107f0d.entry.js +0 -1
  415. package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
  416. package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
  417. package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
  418. package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
  419. package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
  420. package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
  421. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  422. package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
  423. package/dist/sankhyablocks/p-51833248.js +0 -7
  424. package/dist/sankhyablocks/p-5304753a.js +0 -60
  425. package/dist/sankhyablocks/p-557368df.entry.js +0 -1
  426. package/dist/sankhyablocks/p-55798617.js +0 -1
  427. package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
  428. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  429. package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
  430. package/dist/sankhyablocks/p-80014119.entry.js +0 -1
  431. package/dist/sankhyablocks/p-8f73da95.js +0 -1
  432. package/dist/sankhyablocks/p-91a9abb6.entry.js +0 -1
  433. package/dist/sankhyablocks/p-9317942f.js +0 -26
  434. package/dist/sankhyablocks/p-988afe78.js +0 -1
  435. package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
  436. package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
  437. package/dist/sankhyablocks/p-a644a956.js +0 -1
  438. package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
  439. package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
  440. package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
  441. package/dist/sankhyablocks/p-b987e15d.js +0 -1
  442. package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
  443. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  444. package/dist/sankhyablocks/p-d9c54991.js +0 -1
  445. package/dist/sankhyablocks/p-dc851b6e.entry.js +0 -1
  446. package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
  447. package/dist/sankhyablocks/p-f15478a1.js +0 -1
  448. package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
@@ -1,14 +1,13 @@
1
- import { D as DataFetcher } from './DataFetcher-f4ccd9f3.js';
2
- import './ISave-288fa9df.js';
1
+ import { D as DataFetcher } from './DataFetcher-e60f8d53.js';
2
+ import './ISave-4929c071.js';
3
3
  import { SortMode, ApplicationContext, ObjectUtils, StringUtils, NumberUtils, DataType, UserInterface as UserInterface$1, DateUtils } from '@sankhyalabs/core';
4
4
  import { D as DataExporterOption } from './index-b40568ff.js';
5
5
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
6
6
  import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
7
- import { P as PreloadManager } from './dataunit-fetcher-c4f9f222.js';
7
+ import { P as PreloadManager } from './dataunit-fetcher-050b6d31.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-6a00fe9e.js';
9
+ import './form-config-fetcher-b44b2727.js';
10
10
  import './constants-7b422de0.js';
11
- import { h } from './index-479e1293.js';
12
11
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
13
12
  import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
14
13
  import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
@@ -146,41 +145,6 @@ class RmPrecisionCustomValueFormatter {
146
145
  }
147
146
  }
148
147
 
149
- class ContinuousInsertUtils {
150
- constructor(snkApplication, resourceID, configName) {
151
- this.snkApplication = snkApplication;
152
- this.keyConfigEnableContinuousInsert = `${resourceID}enableContinuousInsert${configName ? configName : ''}`;
153
- }
154
- handleSaveConfig(enableContinuousInsert) {
155
- return this.snkApplication.saveConfig(this.keyConfigEnableContinuousInsert, enableContinuousInsert);
156
- }
157
- getConfig() {
158
- return this.snkApplication.getConfig(this.keyConfigEnableContinuousInsert).then(value => {
159
- if (value) {
160
- return value == "true" ? true : false;
161
- }
162
- return false;
163
- }).catch(() => {
164
- return false;
165
- });
166
- }
167
- getMessage(key, params) {
168
- var _a, _b;
169
- return (_b = (_a = this.snkApplication) === null || _a === void 0 ? void 0 : _a.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage(key, params);
170
- }
171
- actionContinuousInsert(enableContinuousInsert, handleEnableContinuousInsert) {
172
- return {
173
- value: StringUtils.generateUUID(),
174
- label: enableContinuousInsert ? this.getMessage('continuousInsertUtils.actions.disable') : this.getMessage('continuousInsertUtils.actions.enable'),
175
- enabled: true,
176
- itemBuilder: () => {
177
- return (h("div", { class: "ez-dropdown__item-wrapper", onClick: handleEnableContinuousInsert },
178
- h("span", { class: "ez-dropdown__item-label" }, enableContinuousInsert ? this.getMessage('continuousInsertUtils.actions.disable') : this.getMessage('continuousInsertUtils.actions.enable'))));
179
- },
180
- };
181
- }
182
- }
183
-
184
148
  class CommonsExporter {
185
149
  constructor(dataUnit, grid) {
186
150
  this.MAX_WIDTH_COD = 60;
@@ -333,6 +297,56 @@ class ClientSideExporterProvider extends CommonsExporter {
333
297
  }
334
298
  }
335
299
 
300
+ class TaskbarProcessor {
301
+ constructor(defaultButtons) {
302
+ this._defaultButtons = defaultButtons;
303
+ }
304
+ process(taskbarId, taskbarManager, dataState, disabledButtons = [], invisibleButtons = []) {
305
+ var _a;
306
+ this.customButtons = new Map();
307
+ this.buttons = "";
308
+ this.disabledButtons = [].concat(disabledButtons);
309
+ (_a = this.getButtonsArray(taskbarId, taskbarManager, dataState)) === null || _a === void 0 ? void 0 : _a.forEach(btnDef => {
310
+ let buttonName;
311
+ if (typeof btnDef === "string") {
312
+ buttonName = btnDef;
313
+ }
314
+ else {
315
+ const customBtn = btnDef;
316
+ this.customButtons.set(customBtn.name, customBtn);
317
+ buttonName = customBtn.name;
318
+ }
319
+ if (!invisibleButtons.includes(buttonName)) {
320
+ if (!this.isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabledButtons)) {
321
+ this.disabledButtons.push(buttonName);
322
+ }
323
+ if (this.buttons.length > 0) {
324
+ this.buttons += ",";
325
+ }
326
+ this.buttons += buttonName;
327
+ }
328
+ });
329
+ }
330
+ getButtonsArray(taskbarId, taskbarManager, dataState) {
331
+ const defaults = this.getButtonsFromKey(taskbarId);
332
+ if (taskbarManager) {
333
+ return taskbarManager.getButtons(taskbarId, dataState, [...defaults]);
334
+ }
335
+ return defaults;
336
+ }
337
+ getButtonsFromKey(taskbarId) {
338
+ const btnsValue = this._defaultButtons[taskbarId];
339
+ return typeof btnsValue === 'function' ? btnsValue() : btnsValue;
340
+ }
341
+ isEnabled(taskbarId, taskbarManager, buttonName, dataState, disabled) {
342
+ const originalValue = disabled.includes(buttonName) ? false : true;
343
+ if (taskbarManager && taskbarManager.isEnabled) {
344
+ return taskbarManager.isEnabled(taskbarId, dataState, buttonName, originalValue);
345
+ }
346
+ return originalValue;
347
+ }
348
+ }
349
+
336
350
  class SnkMultiSelectionListDataSource {
337
351
  setDataUnit(dataUnit) {
338
352
  this._dataUnit = dataUnit;
@@ -371,4 +385,4 @@ class SnkMultiSelectionListDataSource {
371
385
  }
372
386
  }
373
387
 
374
- export { CommonsExporter as C, RmPrecisionCustomValueFormatter as R, SnkMultiSelectionListDataSource as S, CrudUtils as a, ContinuousInsertUtils as b, ClientSideExporterProvider as c };
388
+ export { CommonsExporter as C, RmPrecisionCustomValueFormatter as R, SnkMultiSelectionListDataSource as S, TaskbarProcessor as T, CrudUtils as a, ClientSideExporterProvider as b };
@@ -1,5 +1,5 @@
1
1
  import { ObjectUtils } from '@sankhyalabs/core';
2
- import { R as ResourceFetcher } from './form-config-fetcher-6a00fe9e.js';
2
+ import { R as ResourceFetcher } from './form-config-fetcher-b44b2727.js';
3
3
 
4
4
  class AuthFetcher extends ResourceFetcher {
5
5
  getData(resourceID) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, f as Host } from './index-04f73a26.js';
2
2
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
3
 
4
4
  const configHeaderCss = ".sc-config-header-h{display:flex;padding-top:12px;padding-left:12px;align-items:center;width:100%;justify-content:space-between}.left-group.sc-config-header{display:flex;gap:8px}.right-group.sc-config-header{padding-right:18px;display:flex}";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, h, f as Host } from './index-04f73a26.js';
2
2
  import { ObjectUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
 
@@ -0,0 +1,4 @@
1
+ /*
2
+ Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
@@ -1,10 +1,11 @@
1
1
  import { ObjectUtils, DataUnit, DataUnitInMemoryLoader, ApplicationContext, StringUtils, UserInterface, DataUnitStorage, DataType, ChangeOperation } from '@sankhyalabs/core';
2
- import { D as DataFetcher, S as SnkMessageBuilder, d as dist } from './DataFetcher-f4ccd9f3.js';
2
+ import { D as DataFetcher, d as dist } from './DataFetcher-e60f8d53.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-a114189a.js';
8
+ import { S as SnkMessageBuilder } from './SnkMessageBuilder-1eb7a1af.js';
8
9
 
9
10
  class ArrayRepository {
10
11
  constructor(equalsFunction) {
@@ -919,7 +920,7 @@ class DataUnitFetcher {
919
920
  }
920
921
  metadata.fields.push(Object.assign(Object.assign({}, source), { properties }));
921
922
  });
922
- metadata.fields.sort((a, b) => a.order - b.order);
923
+ metadata.fields.sort((a, b) => this.sortFieldsByGroup(a, b));
923
924
  resolve(metadata);
924
925
  })
925
926
  .catch((error) => {
@@ -927,6 +928,28 @@ class DataUnitFetcher {
927
928
  });
928
929
  });
929
930
  }
931
+ // Os campos devem ser separados em dois grupos: campos da própria entidade e campos que representam ligação com outra entidade.
932
+ // Além do grupo, a ordenação deve respeitar o atributo "order" de cada campo.
933
+ // Para saber se é um campo de relação, verificamos se o nome contém '.' (ex: 'Parceiro.CODPAR').
934
+ sortFieldsByGroup(a, b) {
935
+ const aIsRelation = a.name.includes('.');
936
+ const bIsRelation = b.name.includes('.');
937
+ // Se um é relação e outro não, campos próprios vêm primeiro
938
+ if (aIsRelation !== bIsRelation) {
939
+ return aIsRelation ? 1 : -1;
940
+ }
941
+ // Se ambos são relações, ordena por nome da entidade primeiro
942
+ if (aIsRelation && bIsRelation) {
943
+ const aEntity = a.name.split('.')[0];
944
+ const bEntity = b.name.split('.')[0];
945
+ if (aEntity !== bEntity) {
946
+ return aEntity.localeCompare(bEntity);
947
+ }
948
+ }
949
+ // Dentro do mesmo grupo (próprios ou mesma entidade de relação), ordena por order
950
+ return a.order - b.order;
951
+ }
952
+ ;
930
953
  loadSelectDistinct(dataUnit, fieldName, argument) {
931
954
  const { parentRecordId, filters } = dataUnit.getLastLoadRequest() || {};
932
955
  const filteredFilters = filters.filter(f => f.name !== `${DISTINCT_FILTER_NAME_PREFIX}${fieldName}`);
@@ -0,0 +1,73 @@
1
+ /*
2
+ Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ (function(){
5
+ var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return !(!a||!(a.__CE_isImportDocument||a instanceof Document))}
6
+ function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
7
+ function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d);}c=c.firstChild?c.firstChild:n(a,c);}}function r(a,b,d){a[b]=d;}function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1;}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d);}function ca(a,b){a.b=!0;a.c.push(b);}function da(a,b){a.b=!0;a.f.push(b);}function v(a,b){a.b&&p(b,function(b){return w(a,b)});}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b);}}
8
+ function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c);}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c);}}
9
+ function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e});}});}else f.push(b);},c);if(a.b)for(b=
10
+ 0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
11
+ function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop();}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
12
+ d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null);}l(b)&&a.connectedCallback(b);}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a);};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a);};
13
+ u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e);};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}));}function C(a){a.b&&a.b.disconnect();}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c]);};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a);});}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0);}function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a);}
14
+ E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
15
+ return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[];}catch(q){return}finally{this.c=!1;}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
16
+ a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}));};E.prototype.i=function(a){A(this.a,a);};
17
+ function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b);}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e);}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
18
+ E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})};};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
19
+ E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
20
+ "textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
21
+ pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
22
+ e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}();}function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q);}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f);}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append));}function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
23
+ d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja});}function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else {var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h];}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a]);}}});}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
24
+ a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
25
+ a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
26
+ b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent);}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a));}});});}function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m);}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k);}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
27
+ r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h);}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d);});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this);});}function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a);}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t);}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}});}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a});}
28
+ function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b]);}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this);}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
29
+ d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");});}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a);}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
30
+ set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0]);}});});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null);});r(Element.prototype,"setAttributeNS",function(a,
31
+ b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a);});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null);});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
32
+ a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a);});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c);}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements});}}).call(self);
33
+
34
+ // Polyfill document.baseURI
35
+ "string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var a=document.querySelector("base");return a&&a.href?a.href:document.URL}});
36
+
37
+ // Polyfill CustomEvent
38
+ "function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b},window.CustomEvent.prototype=window.Event.prototype);
39
+
40
+ // Event.composedPath
41
+ (function(b,c,d){b.composedPath||(b.composedPath=function(){if(this.path)return this.path;var a=this.target;for(this.path=[];null!==a.parentNode;)this.path.push(a),a=a.parentNode;this.path.push(c,d);return this.path});})(Event.prototype,document,window);
42
+
43
+ /*!
44
+ Element.closest and Element.matches
45
+ https://github.com/jonathantneal/closest
46
+ Creative Commons Zero v1.0 Universal
47
+ */
48
+ (function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode;}return null});})(window.Element.prototype);
49
+
50
+ /*!
51
+ Element.getRootNode()
52
+ */
53
+ (function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)});})(Element.prototype);
54
+
55
+ /*!
56
+ Element.isConnected()
57
+ */
58
+ (function(a){"isConnected"in a||Object.defineProperty(a,"isConnected",{configurable:!0,enumerable:!0,get:function(){var a=this.getRootNode({composed:!0});return a&&9===a.nodeType}});})(Element.prototype);
59
+
60
+ /*!
61
+ Element.remove()
62
+ */
63
+ (function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
64
+
65
+ /*!
66
+ Element.classList
67
+ */
68
+ !function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class");}return ""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n();},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n();},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n();},t.item=function(e){return t[e]},t.contains=function(e){return -1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n();},t.value=e.getAttribute("class")||"",t}});}(Element.prototype);
69
+
70
+ /*!
71
+ DOMTokenList
72
+ */
73
+ (function(b){try{document.body.classList.add();}catch(e){var c=b.add,d=b.remove;b.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a]);};b.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a]);};}})(DOMTokenList.prototype);
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, i as forceUpdate, h, f as Host } from './index-04f73a26.js';
2
2
  import { UserInterface, StringUtils, ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { b as VARS_BY_TYPE, D as DEFAULT_TYPE, c as TAGS_BY_TYPE } from './constants-7b422de0.js';
4
4
  import { getConvertedValue } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
5
5
  import { CheckMode } from '@sankhyalabs/ezui/dist/collection/utils';
6
- import { e as getValidatedFieldValue, f as getEnabledByProperty, h as getValueByProperty, i as getIconName } from './FormConfigHelper-4e42f0b6.js';
6
+ import { h as getValidatedFieldValue, i as getEnabledByProperty, j as getValueByProperty, k as getIconName } from './FormConfigHelper-d09669f3.js';
7
7
 
8
- 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}";
8
+ 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}";
9
9
 
10
10
  const FieldConfig = class {
11
11
  constructor(hostRef) {
@@ -1,11 +1,11 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-479e1293.js';
1
+ import { r as registerInstance, e as createEvent, i as forceUpdate, h, f as Host, g as getElement } from './index-04f73a26.js';
2
2
  import { StringUtils, ObjectUtils } from '@sankhyalabs/core';
3
- import { S as Sortable } from './sortable.esm-842f85a3.js';
4
- import { S as SORTABLE_PATH, d as getFieldsStructure, I as ID_AVAILABLE_FIELDS } from './FormConfigHelper-4e42f0b6.js';
5
- import { a as TAB_NAMES, G as GROUP_NAMES } from './constants-7b422de0.js';
6
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
+ import { S as Sortable } from './sortable.esm-bc277c12.js';
5
+ import { a as TAB_NAMES, G as GROUP_NAMES } from './constants-7b422de0.js';
6
+ import { S as SORTABLE_PATH, f as getFieldsStructure, I as ID_AVAILABLE_FIELDS } from './FormConfigHelper-d09669f3.js';
7
7
 
8
- 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}";
8
+ 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}";
9
9
 
10
10
  const FieldLayoutComponent = class {
11
11
  constructor(hostRef) {
@@ -329,6 +329,9 @@ const FieldLayoutComponent = class {
329
329
  if (!this.selectedGuide) {
330
330
  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'))));
331
331
  }
332
+ if (this.selectedGuide.isCustom || this.selectedGuide.isDetail) {
333
+ 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')))));
334
+ }
332
335
  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')))));
333
336
  }
334
337
  get el() { return getElement(this); }
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
2
- import { S as Sortable } from './sortable.esm-842f85a3.js';
3
- import { I as ID_AVAILABLE_FIELDS } from './FormConfigHelper-4e42f0b6.js';
1
+ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement } from './index-04f73a26.js';
2
+ import { S as Sortable } from './sortable.esm-bc277c12.js';
3
+ import { I as ID_AVAILABLE_FIELDS } from './FormConfigHelper-d09669f3.js';
4
4
  import { ArrayUtils } from '@sankhyalabs/core';
5
5
  import './constants-7b422de0.js';
6
6
 
@@ -1,4 +1,4 @@
1
- import { d as dist, D as DataFetcher } from './DataFetcher-f4ccd9f3.js';
1
+ import { d as dist, D as DataFetcher } from './DataFetcher-e60f8d53.js';
2
2
  import { ObjectUtils } from '@sankhyalabs/core';
3
3
 
4
4
  class ResourceFetcher {
@@ -18,6 +18,9 @@ class ResourceFetcher {
18
18
  resource
19
19
  }
20
20
  }`);
21
+ this.templateByQuery.set("deleteResource", dist.gql `mutation($name: String!) {
22
+ $queryAlias$: deleteResource(name: $name)
23
+ }`);
21
24
  }
22
25
  loadResource(name) {
23
26
  if (ResourceFetcher._loadingResource.has(name)) {
@@ -61,6 +64,21 @@ class ResourceFetcher {
61
64
  });
62
65
  });
63
66
  }
67
+ deleteResource(name) {
68
+ return new Promise((resolve, reject) => {
69
+ DataFetcher.get()
70
+ .callGraphQL({
71
+ values: { name },
72
+ query: this.templateByQuery.get("deleteResource")
73
+ })
74
+ .then(() => {
75
+ resolve();
76
+ })
77
+ .catch((error) => {
78
+ reject(error);
79
+ });
80
+ });
81
+ }
64
82
  }
65
83
  ResourceFetcher._loadingResource = new Map();
66
84
 
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-479e1293.js';
2
- import { S as Sortable } from './sortable.esm-842f85a3.js';
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-04f73a26.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-bc277c12.js';
5
5
  import { a as TAB_NAMES } from './constants-7b422de0.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{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 = class {
10
10
  constructor(hostRef) {
@@ -100,7 +100,9 @@ const GuidesConfigurator = class {
100
100
  var _a;
101
101
  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 ?
102
102
  this.getMessage('snkFormConfig.guidesConfigurator.actions.hide') :
103
- 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') }))));
103
+ 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 ?
104
+ this.getMessage('snkFormConfig.guidesConfigurator.canNotDeleteCustomGuide') :
105
+ this.getMessage('snkFormConfig.guidesConfigurator.actions.delete') }))));
104
106
  });
105
107
  }
106
108
  getContainerElement(id) {