@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
@@ -2,21 +2,22 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-1cf293c1.js');
5
+ const index$1 = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
9
9
  const index = require('./index-e3e39724.js');
10
10
  const constants = require('./constants-6d82e405.js');
11
- const DataFetcher = require('./DataFetcher-ed9d97ea.js');
12
- const snkDataUnit = require('./snk-data-unit-68992932.js');
13
- require('./ISave-81eb2fbc.js');
11
+ const DataFetcher = require('./DataFetcher-384d2ce8.js');
12
+ const snkDataUnit = require('./snk-data-unit-6abc5efc.js');
13
+ require('./ISave-ecbe9336.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-ab1cc071.js');
16
+ require('./dataunit-fetcher-93f53260.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-f0897eb5.js');
18
+ require('./form-config-fetcher-45d1964c.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
+ require('./SnkMessageBuilder-a9300ebe.js');
20
21
  require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
21
22
  require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
22
23
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -465,6 +466,7 @@ const SnkDataExporter = class {
465
466
  this._showDropdown = false;
466
467
  this.provider = null;
467
468
  this.messagesBuilder = undefined;
469
+ this.size = 'medium';
468
470
  }
469
471
  async exportByEmail() {
470
472
  const selectedRows = this._selectedNumber;
@@ -750,7 +752,7 @@ const SnkDataExporter = class {
750
752
  render() {
751
753
  return (index$1.h(index$1.Host, null, index$1.h("div", { class: `snk-data-exporter
752
754
  ${this.canShowDropdown() ? " ez-elevation--16" : ""}
753
- ` }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download", size: "small", mode: "icon", title: this.getMessage("snkDataExporter.group.export.title"), onClick: () => this.controlDropdown() }, this.getElementID("button"))), index$1.h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
755
+ ` }, index$1.h("ez-tooltip", { message: this.getMessage("snkDataExporter.group.export.title") }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download", mode: "icon", onClick: () => this.controlDropdown(), size: this.size }, this.getElementID("button")))), index$1.h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
754
756
  ${this.canShowDropdown() ? "snk-data-exporter__dropdown--show" : ""}
755
757
  ` }, this.getElementID("dropdown")), this.canShowDropdown() &&
756
758
  index$1.h("ez-dropdown", Object.assign({ items: this._items, onEzClick: (evt) => this.processExporter(evt) }, this.getElementID("dropdown"))))), this.canShowDropdown() &&
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cf293c1.js');
3
+ const index = require('./index-1894343a.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
- const DataFetcher = require('./DataFetcher-ed9d97ea.js');
7
- const dataunitFetcher = require('./dataunit-fetcher-ab1cc071.js');
6
+ const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
7
+ const dataunitFetcher = require('./dataunit-fetcher-93f53260.js');
8
8
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
9
9
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
10
10
 
@@ -155,6 +155,7 @@ const SnkDataUnit = class {
155
155
  this._metadataByRow = new Map();
156
156
  this._rowMetadataCache = new Map();
157
157
  this._formFieldsConfig = [];
158
+ this._internalDataStateChange = false;
158
159
  this.REGEX_DATAUNIT_NAME = /dd:\/\/(.+?)\//;
159
160
  this._dataUnitObserver = async (action) => {
160
161
  const duState = await this.buildDataState(action.type);
@@ -409,11 +410,17 @@ const SnkDataUnit = class {
409
410
  if (this.isAllowed("UPDATE") || this.dataUnit.isNewRecord(recordId)) {
410
411
  return action;
411
412
  }
413
+ if (this._internalDataStateChange) {
414
+ this._internalDataStateChange = false;
415
+ return;
416
+ }
412
417
  if (this._openedAlert) {
418
+ this._internalDataStateChange = true;
413
419
  await this.dataUnit.cancelEdition();
414
420
  return;
415
421
  }
416
422
  this._openedAlert = true;
423
+ this._internalDataStateChange = true;
417
424
  await this.dataUnit.cancelEdition();
418
425
  await utils.ApplicationUtils.alert(this.getMessage("snkDataUnit.forbidden"), this.getMessage("snkDataUnit.forbiddenUpdate"));
419
426
  this._openedAlert = false;
@@ -616,6 +623,8 @@ const SnkDataUnit = class {
616
623
  return records;
617
624
  const parentSelectedRecord = parentDataUnit.getSelectedRecord();
618
625
  const selfInfo = parentDataUnit === null || parentDataUnit === void 0 ? void 0 : parentDataUnit.getChildInfo(this.getCleanDataUnitName());
626
+ if (!selfInfo)
627
+ return records;
619
628
  const { links } = selfInfo;
620
629
  if (!links || links.length === 0)
621
630
  return records;
@@ -691,7 +700,7 @@ const SnkDataUnit = class {
691
700
  this.dataState = await this.buildDataState();
692
701
  let saveOperation = changes[0]._operation.toLowerCase();
693
702
  if (saveOperation == 'copy') {
694
- saveOperation = DataFetcher.OperationMap.CLONE;
703
+ saveOperation = SnkMessageBuilder.OperationMap.CLONE;
695
704
  }
696
705
  if (this.canIgnoreOperationMessage(saveOperation))
697
706
  return;
@@ -704,7 +713,7 @@ const SnkDataUnit = class {
704
713
  return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
705
714
  }
706
715
  isCloneOrInsertOperation(saveOperation) {
707
- return [DataFetcher.OperationMap.CLONE, DataFetcher.OperationMap.INSERT].includes(saveOperation);
716
+ return [SnkMessageBuilder.OperationMap.CLONE, SnkMessageBuilder.OperationMap.INSERT].includes(saveOperation);
708
717
  }
709
718
  buildOperationMessage(saveOperation, records) {
710
719
  if (this.isMultiplesUpdate(saveOperation, records)) {
@@ -719,10 +728,10 @@ const SnkDataUnit = class {
719
728
  * de um registro se trata de uma chave composta.
720
729
  */
721
730
  const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
722
- return this.getMessage(key, { records: records }, DataFetcher.OperationMap.UPDATE_MULTIPLES);
731
+ return this.getMessage(key, { records: records }, SnkMessageBuilder.OperationMap.UPDATE_MULTIPLES);
723
732
  }
724
733
  isMultiplesUpdate(saveOperation, records) {
725
- return saveOperation === DataFetcher.OperationMap.UPDATE && records.length > 1;
734
+ return saveOperation === SnkMessageBuilder.OperationMap.UPDATE && records.length > 1;
726
735
  }
727
736
  handleRecordsRemoved(action) {
728
737
  var _a, _b;
@@ -767,15 +776,15 @@ const SnkDataUnit = class {
767
776
  }
768
777
  getMessageOperation() {
769
778
  if (this.dataState.copyMode) {
770
- return DataFetcher.OperationMap.CLONE;
779
+ return SnkMessageBuilder.OperationMap.CLONE;
771
780
  }
772
781
  if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
773
- return DataFetcher.OperationMap.INSERT;
782
+ return SnkMessageBuilder.OperationMap.INSERT;
774
783
  }
775
784
  if (this.dataState.isDirty) {
776
- return DataFetcher.OperationMap.UPDATE;
785
+ return SnkMessageBuilder.OperationMap.UPDATE;
777
786
  }
778
- return DataFetcher.OperationMap.CLEAN;
787
+ return SnkMessageBuilder.OperationMap.CLEAN;
779
788
  }
780
789
  async getDataUnitParentOrChild() {
781
790
  var _a;
@@ -878,7 +887,7 @@ const SnkDataUnit = class {
878
887
  if (this.messagesBuilder) {
879
888
  return;
880
889
  }
881
- this.messagesBuilder = new DataFetcher.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
890
+ this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
882
891
  }
883
892
  //---------------------------------------------
884
893
  // Lifecycle web component
@@ -2,14 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-68992932.js');
6
- require('./index-1cf293c1.js');
5
+ const snkDataUnit = require('./snk-data-unit-6abc5efc.js');
6
+ require('./index-1894343a.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
- require('./DataFetcher-ed9d97ea.js');
9
+ require('./SnkMessageBuilder-a9300ebe.js');
10
+ require('./dataunit-fetcher-93f53260.js');
11
+ require('./DataFetcher-384d2ce8.js');
10
12
  require('./PrintUtils-bcaeb82f.js');
11
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-ab1cc071.js');
13
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
15
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
15
16
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const defaultFilters = require('./default-filters-a09bf82b.js');
7
7
 
8
8
  const snkDefaultFilterCss = ".sc-snk-default-filter-h{display:flex;justify-content:flex-end}.default_container.sc-snk-default-filter{border:none;background:none;display:flex;align-items:center;gap:var(--space--3xs, 4px);font-family:var(--font-pattern);color:var(--title--primary, #2b3a54);font-size:var(--text--medium, 14px);padding:0;outline:none}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter{cursor:pointer}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter:hover{color:var(--color--primary-600)}.new_filter.sc-snk-default-filter{cursor:pointer;margin:0 var(--space--3xs, 4px)}.new_filter.sc-snk-default-filter:hover{color:var(--color--primary-600)}";
@@ -2,30 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-6838389c.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-44386305.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- const DataFetcher = require('./DataFetcher-ed9d97ea.js');
10
- require('./ISave-81eb2fbc.js');
9
+ require('./DataFetcher-384d2ce8.js');
10
+ require('./ISave-ecbe9336.js');
11
11
  const index$1 = require('./index-e3e39724.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-ab1cc071.js');
14
+ require('./dataunit-fetcher-93f53260.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-f0897eb5.js');
16
+ require('./form-config-fetcher-45d1964c.js');
17
17
  const constants = require('./constants-6d82e405.js');
18
- const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
19
- const snkGuidesViewer = require('./snk-guides-viewer-8b841753.js');
18
+ const taskbarElements = require('./taskbar-elements-80eddec8.js');
19
+ const snkGuidesViewer = require('./snk-guides-viewer-b4ca3437.js');
20
+ const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
20
21
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
21
- require('./ConfigStorage-b29e31be.js');
22
+ require('./ConfigStorage-a1fab5ca.js');
22
23
  require('./PrintUtils-bcaeb82f.js');
23
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
24
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
25
26
  require('./ResourceIDUtils-5ff86aa7.js');
26
- require('./index-13d05f03.js');
27
- require('@sankhyalabs/core/dist/dataunit/DataUnit');
28
- require('./taskbar-processor-2fba34a8.js');
27
+ require('./index-f0fe7e6e.js');
29
28
 
30
29
  class GuideBuilder {
31
30
  constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
@@ -34,7 +33,7 @@ class GuideBuilder {
34
33
  this._dataUnit = dataUnit;
35
34
  this._messageBuilder = messageBuilder;
36
35
  if (!this._messageBuilder) {
37
- this._messageBuilder = new DataFetcher.SnkMessageBuilder();
36
+ this._messageBuilder = new SnkMessageBuilder.SnkMessageBuilder();
38
37
  }
39
38
  }
40
39
  get id() {
@@ -70,7 +69,7 @@ class GuideBuilder {
70
69
  };
71
70
  });
72
71
  const newGuideItem = children.shift();
73
- newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.title.newRecord") : currentRecord.__record__label__;
72
+ newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.newRecord") : currentRecord.__record__label__;
74
73
  newGuideItem.children = children;
75
74
  item.children = [newGuideItem];
76
75
  return item;
@@ -268,9 +267,6 @@ const SnkDetailView = class {
268
267
  this.snkSwitchGuide.emit(guideId);
269
268
  }
270
269
  }
271
- handleAttachBack() {
272
- this._viewStack.show(constants.VIEW_MODE.GRID);
273
- }
274
270
  executeActionHandler(evt) {
275
271
  if (evt.detail === taskbarElements.TaskbarElement.GRID_MODE) {
276
272
  this.emitSwitchEvent(constants.VIEW_MODE.GRID);
@@ -281,7 +277,7 @@ const SnkDetailView = class {
281
277
  evt.stopPropagation();
282
278
  }
283
279
  if (evt.detail === taskbarElements.TaskbarElement.ATTACH) {
284
- this._viewStack.show(constants.VIEW_MODE.ATTACHMENT);
280
+ this._snkAttach.open();
285
281
  evt.stopPropagation();
286
282
  }
287
283
  }
@@ -303,7 +299,7 @@ const SnkDetailView = class {
303
299
  this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
304
300
  this.formConfigManager.loadConfig();
305
301
  if (this.messagesBuilder == undefined) {
306
- this.messagesBuilder = new DataFetcher.SnkMessageBuilder(this.entityName);
302
+ this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
307
303
  }
308
304
  }
309
305
  async componentDidLoad() {
@@ -319,6 +315,9 @@ const SnkDetailView = class {
319
315
  if (action.type === core.Action.FIELD_INVALIDATED) {
320
316
  this.addErrorBadgeToBranchGuide();
321
317
  }
318
+ else if (action.type === core.Action.DATA_LOADED) {
319
+ this.dataUnit.selectFirst();
320
+ }
322
321
  }
323
322
  addErrorBadgeToBranchGuide() {
324
323
  this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
@@ -373,7 +372,7 @@ const SnkDetailView = class {
373
372
  render() {
374
373
  this.updateLabel();
375
374
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
376
- return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
375
+ return (index.h(index.Host, null, index.h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false, enableGridInsert: true }))), index.h("stack-item", null, index.h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch, entityPath: this.entityName }, index.h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))))), index.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName }))));
377
376
  }
378
377
  get _element() { return index.getElement(this); }
379
378
  static get watchers() { return {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
8
  const snkEntityListCss = ".sc-snk-entity-list-h{--snk-entity-list--label--font-size:var(--text--medium, 14px);--snk-entity-list--label--font-family:var(--font-pattern, Arial);--snk-entity-list--label--color:var(--title--primary, #000);--snk-entity-list--label--disabled--color:var(--text--disable, #AFB6C0)}.label.sc-snk-entity-list{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--snk-entity-list--label--color);font-size:var(--snk-entity-list--label--font-size);font-family:var(--snk-entity-list--label--font-family);cursor:default;padding-left:var(--space--small);padding-bottom:var(--space--extra-small)}.snk-entity-list--overflow.sc-snk-entity-list{overflow:auto}.snk-entity-list--overflow.sc-snk-entity-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
@@ -0,0 +1,211 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-1894343a.js');
6
+ const core = require('@sankhyalabs/core');
7
+
8
+ const snkEntitySearchCss = ".entity-search-popover{width:432px;font-family:var(--font-pattern, \"Roboto\");color:var(--color--gray-600, #1C1D22);text-shadow:0 0 var(--color--gray-500, #494A4E), 0 0 1px transparent;font-size:var(--font-size--large, 18px);padding:var(--space--24, 24px);max-width:430px;display:flex;flex-direction:column}.entity-search-popover label{margin-bottom:var(--space--16, 16px)}";
9
+
10
+ const SnkEntitySearch = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.loaded = index.createEvent(this, "loaded", 7);
14
+ this.SEARCH_DESCRIPTION_TIMEOUT = 300;
15
+ this._entityPKField = null;
16
+ this.searchEntitySelect = async (item) => {
17
+ if (!this._entityPKField || !item) {
18
+ return;
19
+ }
20
+ try {
21
+ const pk = [{ name: this._entityPKField, value: item.value }];
22
+ await this.closeSearchPopover();
23
+ await this.refreshDataUnitByPk(pk);
24
+ }
25
+ catch (error) {
26
+ console.error('Erro ao selecionar entidade:', error);
27
+ }
28
+ };
29
+ this.entityName = "";
30
+ this.dataUnit = undefined;
31
+ this.messagesBuilder = undefined;
32
+ this._searchInputValue = "";
33
+ this._showMoreOnSearch = false;
34
+ this.visibleOptions = [];
35
+ this.value = undefined;
36
+ this.showLoading = true;
37
+ }
38
+ async showUnder(element) {
39
+ await this._popoverSearchEntity.showUnder(element, { horizontalGap: 12, verticalGap: 4 });
40
+ }
41
+ buildSearchOptions(limit) {
42
+ return {
43
+ entity: this.entityName,
44
+ entityDescription: this.entityName,
45
+ executeOnOpen: true,
46
+ searchOptions: {
47
+ localEntityName: this.entityName,
48
+ limit,
49
+ }
50
+ };
51
+ }
52
+ async handlePredictiveSearch(argument) {
53
+ var _a, _b;
54
+ const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(5));
55
+ this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
56
+ this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
57
+ return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
58
+ }
59
+ async loadEntitySuggestions(argument) {
60
+ var _a;
61
+ const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
62
+ const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
63
+ if (!value || value.trim().length === 0) {
64
+ return [];
65
+ }
66
+ try {
67
+ this._showMoreOnSearch = false;
68
+ if (mode === "PREDICTIVE") {
69
+ return await this.handlePredictiveSearch(value);
70
+ }
71
+ const searchResult = await this._application.executePreparedSearch(mode, value, this.buildSearchOptions());
72
+ return Array.isArray(searchResult) ? searchResult : [searchResult];
73
+ }
74
+ catch (error) {
75
+ console.error('Erro ao carregar sugestões de entidades:', error);
76
+ return [];
77
+ }
78
+ }
79
+ async refreshDataUnitByPk(pks) {
80
+ try {
81
+ const pkField = pks[0].name;
82
+ const pkValue = pks[0].value;
83
+ // Criar filtro para a busca específica
84
+ const quickFilter = {
85
+ term: '',
86
+ filter: {
87
+ name: '',
88
+ params: [],
89
+ expression: `(${pkField} = ${pkValue})`
90
+ }
91
+ };
92
+ // Carregar dados com o filtro aplicado diretamente
93
+ await this.dataUnit.loadData(quickFilter);
94
+ this.loaded.emit(this.dataUnit.records);
95
+ }
96
+ catch (error) {
97
+ console.error('Erro ao atualizar dataset:', error);
98
+ }
99
+ }
100
+ async closeSearchPopover() {
101
+ if (this._popoverSearchEntity && this._popoverSearchEntity.opened) {
102
+ await this._popoverSearchEntity.hide();
103
+ }
104
+ }
105
+ async handleOnEzVisibilityChange(event) {
106
+ if (event.detail) {
107
+ await this._textInput.setFocus();
108
+ }
109
+ }
110
+ async handleSelectItem(evt) {
111
+ const currentOpt = evt.detail;
112
+ this.value = currentOpt;
113
+ await this._popoverListResult.hide();
114
+ await this.searchEntitySelect(currentOpt);
115
+ this._searchInputValue = "";
116
+ }
117
+ updateKeyOption(option) {
118
+ return (Object.assign(Object.assign({}, option), { presentationValue: option.value, presentationLabel: option.label }));
119
+ }
120
+ async handleInputChange(value) {
121
+ if (this._debounceSearch) {
122
+ clearTimeout(this._debounceSearch);
123
+ }
124
+ return new Promise((resolve) => {
125
+ this._debounceSearch = setTimeout(async () => {
126
+ var _a;
127
+ this.showLoading = true;
128
+ this._searchInputValue = value;
129
+ await this._popoverListResult.showUnder(this._textInput);
130
+ this.visibleOptions = (_a = (await this.loadEntitySuggestions({ argument: this._searchInputValue, mode: undefined }))) === null || _a === void 0 ? void 0 : _a.map(this.updateKeyOption);
131
+ this.showLoading = false;
132
+ resolve();
133
+ }, this.SEARCH_DESCRIPTION_TIMEOUT);
134
+ });
135
+ }
136
+ isOptionsVisible() {
137
+ return this._popoverListResult.opened;
138
+ }
139
+ async handleArrowUp() {
140
+ if (!this.isOptionsVisible()) {
141
+ return;
142
+ }
143
+ await this._searchList.previousOption();
144
+ }
145
+ async handleArrowDown() {
146
+ if (!this.isOptionsVisible()) {
147
+ return;
148
+ }
149
+ await this._searchList.nextOption();
150
+ }
151
+ async selectCurrentItem() {
152
+ var _a;
153
+ await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.selectCurrentItem());
154
+ }
155
+ async cancelSelection() {
156
+ var _a, _b;
157
+ await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.cancelSelection());
158
+ (_b = this._popoverListResult) === null || _b === void 0 ? void 0 : _b.hide();
159
+ }
160
+ async handleInputTab() {
161
+ await this.cancelSelection();
162
+ }
163
+ async handleInputEsc() {
164
+ await this.cancelSelection();
165
+ }
166
+ getMessage(key, params) {
167
+ if (this.messagesBuilder) {
168
+ return this.messagesBuilder.getMessage(key, params);
169
+ }
170
+ // Fallback para mensagens padrão em português
171
+ const messages = {
172
+ 'snkCrud.entitySearch.label': 'Busca por registros',
173
+ 'snkCrud.entitySearch.placeholder': 'Digite o que você procura aqui...'
174
+ };
175
+ return messages[key] || key;
176
+ }
177
+ async initKeyboardManager() {
178
+ this._keyboardManager = new core.KeyboardManager();
179
+ const defaultOpts = { element: this._elem, propagate: true };
180
+ this._keyboardManager
181
+ .bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
182
+ .bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
183
+ .bind("Enter", () => this.selectCurrentItem(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
184
+ .bind("Tab", () => this.handleInputTab(), defaultOpts)
185
+ .bind("Escape", () => this.handleInputEsc(), defaultOpts);
186
+ }
187
+ connectedCallback() {
188
+ this.initKeyboardManager();
189
+ }
190
+ componentWillLoad() {
191
+ this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
192
+ }
193
+ componentDidLoad() {
194
+ core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'snk-entity-search');
195
+ }
196
+ disconnectedCallback() {
197
+ this._keyboardManager
198
+ .unbind("ArrowUp")
199
+ .unbind("ArrowDown")
200
+ .unbind("Enter")
201
+ .unbind("Tab")
202
+ .unbind("Escape");
203
+ }
204
+ render() {
205
+ return (index.h(index.Host, null, index.h("ez-popover-core", { ref: (ref) => this._popoverSearchEntity = ref, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event) }, index.h("div", { class: "entity-search-popover" }, index.h("label", null, this.getMessage('snkCrud.entitySearch.label')), index.h("ez-classic-input", { ref: (ref) => this._textInput = ref, placeholder: this.getMessage('snkCrud.entitySearch.placeholder'), rightIconClickable: true, size: "small", value: this._searchInputValue, onEzChange: (evt) => this.handleInputChange(evt.detail) }), index.h("ez-popover-core", { ref: elem => this._popoverListResult = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => event.stopPropagation() }, index.h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, onChangeValue: (evt) => this.handleSelectItem(evt) }))))));
206
+ }
207
+ get _elem() { return index.getElement(this); }
208
+ };
209
+ SnkEntitySearch.style = snkEntitySearchCss;
210
+
211
+ exports.snk_entity_search = SnkEntitySearch;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
8
8
 
@@ -124,7 +124,7 @@ const SnkExporterEmailSender = class {
124
124
  return (index.h("ez-popup", { useHeader: false, size: "x-small", heightMode: "auto", opened: this._opened }, index.h("ez-modal-container", { onEzModalAction: (evt) => {
125
125
  if (evt.detail === ezModalContainer.ModalAction.CLOSE)
126
126
  this.close();
127
- }, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, index.h("ez-view-stack", { ref: ref => this._viewStack = ref }, index.h("stack-item", null, index.h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), index.h("stack-item", null, index.h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), index.h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, index.h("ez-button", Object.assign({ class: "ez-button--tertiary ez-padding-right--medium", label: this.getStepMessage("firstButton"), onClick: () => this.executeButtonAction(true), enabled: this.checkButtonEnabled(true) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("firstButton")}` })), index.h("ez-button", Object.assign({ class: this.getSecondButtonClass(), label: this.getStepMessage("secondButton"), onClick: () => this.executeButtonAction(false), enabled: this.checkButtonEnabled(false) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("secondButton")}` }))))));
127
+ }, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, index.h("ez-view-stack", { ref: ref => this._viewStack = ref }, index.h("stack-item", null, index.h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), index.h("stack-item", null, index.h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), index.h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, index.h("ez-button", Object.assign({ class: "ez-padding-right--medium", label: this.getStepMessage("firstButton"), onClick: () => this.executeButtonAction(true), enabled: this.checkButtonEnabled(true) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("firstButton")}` }, { variant: "secondary", size: "medium" })), index.h("ez-button", Object.assign({ label: this.getStepMessage("secondButton"), onClick: () => this.executeButtonAction(false), enabled: this.checkButtonEnabled(false) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("secondButton")}` }, { variant: "primary", size: "medium" }))))));
128
128
  }
129
129
  get _element() { return index.getElement(this); }
130
130
  };
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const index$1 = require('./index-62760a9c.js');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const core = require('@sankhyalabs/core');
9
9
  const index$3 = require('./index-8d94b7e0.js');
10
10
  const FieldBuilder = require('@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder');
11
- const index$2 = require('./index-13d05f03.js');
11
+ const index$2 = require('./index-f0fe7e6e.js');
12
12
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
13
13
 
14
14
  const snkExpressionGroupCss = ".sc-snk-expression-group-h{display:block;--snk-expression-group--container-condition--width:184px;--snk-expression-group--container-condition--height:38px;--snk-expression-group--container-condition--border-radius:var(--border--radius-medium, 12px);--snk-expression-group--container-option--width:85px;--snk-expression-group__container-condition--background-and:#66B6A0;--snk-expression-group__container-condition--background-or:#EBC65E;--snk-expression-group__container-expression--padding-left:26px;--snk-expression-group__background-color-dashed:var(--background--body, #fafcff);--ez-text-input__margin-bottom:0px}.snk-expression-group__container-condition.sc-snk-expression-group{width:var(--snk-expression-group--container-condition--width);height:var(--snk-expression-group--container-condition--height);border-radius:var(--snk-expression-group--container-condition--border-radius);z-index:var(--more-visible--2x, 3);padding:var(--space--nano, 2px)}.snk-expression-group__container-option.sc-snk-expression-group{width:var(--snk-expression-group--container-option--width)}.snk-expression-group__container-condition[data-condition=\"AND\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-and)}.snk-expression-group__container-condition[data-condition=\"OR\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-or)}.snk-expression-group__container-expression.sc-snk-expression-group{padding-left:var(--snk-expression-group__container-expression--padding-left)}.dashes.sc-snk-expression-group{z-index:var(--visible, 1);background:var(--snk-expression-group__background-color-dashed);border-left:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:58px;margin-left:-15px;margin-top:-36.5px}.horizontal-dashes.sc-snk-expression-group{z-index:var(--more-visible, 2);border-bottom:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:54px;margin-left:-15px;margin-top:-33.5px}.hidden.sc-snk-expression-group{display:none}";
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
6
- const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
7
- require('@sankhyalabs/core');
5
+ const index = require('./index-1894343a.js');
6
+ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
7
+ const core = require('@sankhyalabs/core');
8
8
  require('./filter-item-type.enum-a7ffdaa6.js');
9
9
  require('./index-62760a9c.js');
10
10
 
@@ -57,5 +57,43 @@ const SnkFilterAssistentMode = class {
57
57
  };
58
58
  SnkFilterAssistentMode.style = snkFilterAssistentModeCss;
59
59
 
60
+ const snkSimpleBarCss = ".sc-snk-simple-bar-h{display:flex;height:100%;width:100%}.simple-bar__container.sc-snk-simple-bar{flex:1;display:flex;align-items:stretch;gap:var(--space--small)}.simple-bar__left-slot.sc-snk-simple-bar{min-width:280px;flex:1;display:flex;align-items:center}.simple-bar__right-slot.sc-snk-simple-bar{flex:1;display:flex;align-items:center;justify-content:flex-end}.simple-bar__column.sc-snk-simple-bar{flex:1;display:flex;flex-direction:column}";
61
+
62
+ const SnkSimpleBar = class {
63
+ constructor(hostRef) {
64
+ index.registerInstance(this, hostRef);
65
+ this.clickBreadcrumbItem = index.createEvent(this, "clickBreadcrumbItem", 3);
66
+ this.exit = index.createEvent(this, "exit", 3);
67
+ this.label = undefined;
68
+ this.breadcrumbItens = undefined;
69
+ this.messagesBuilder = undefined;
70
+ }
71
+ /**
72
+ * Permite customizar as mensagens dos blocos de construção
73
+ * através de um pequeno módulo na estrutura da aplicação:
74
+ * - Crie um arquivo no seguinte caminho: /messages/appmessages.msg.js.
75
+ * Para conhecer os detalhes do módulo, veja o arquivo neste projeto: "/src/lib/message/resources/snk-simple-bar.msg.ts"
76
+ */
77
+ getMessage(key, params) {
78
+ var _a;
79
+ if (this.messagesBuilder)
80
+ return this.messagesBuilder.getMessage(key, params);
81
+ if ((_a = this._application) === null || _a === void 0 ? void 0 : _a.messagesBuilder)
82
+ return this._application.messagesBuilder.getMessage(key, params);
83
+ }
84
+ componentDidLoad() {
85
+ if (!this._element)
86
+ return;
87
+ core.ElementIDUtils.addIDInfo(this._element);
88
+ this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
89
+ }
90
+ render() {
91
+ return (index.h("div", { class: "simple-bar__container ez-margin-vertical--small ez-padding--extra-small" }, index.h("div", { class: "simple-bar__left-slot" }, index.h("ez-button", { class: "ez-padding-right--medium", title: this.getMessage('snkSimpleBar.backTitle'), mode: 'icon', iconName: "arrow_back", size: 'medium', onClick: () => this.exit.emit() }), index.h("div", { class: "simple-bar__column" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--extra-large" }, this.label), index.h("ez-breadcrumb", { items: this.breadcrumbItens, onSelectedItem: ({ detail }) => this.clickBreadcrumbItem.emit(detail) }))), index.h("div", { class: "simple-bar__right-slot" }, index.h("slot", { name: "rightSlot" }))));
92
+ }
93
+ get _element() { return index.getElement(this); }
94
+ };
95
+ SnkSimpleBar.style = snkSimpleBarCss;
96
+
60
97
  exports.snk_filter_advanced_mode = SnkFilterAdvancedMode;
61
98
  exports.snk_filter_assistent_mode = SnkFilterAssistentMode;
99
+ exports.snk_simple_bar = SnkSimpleBar;