@sankhyalabs/sankhyablocks 10.1.0-dev.2 → 10.1.0-dev.20

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 (318) hide show
  1. package/dist/cjs/{ConfigStorage-5a73e979.js → ConfigStorage-a4e1e518.js} +2 -2
  2. package/dist/cjs/{DataFetcher-eeb3b0b7.js → DataFetcher-0b6aa084.js} +34 -24
  3. package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
  4. package/dist/cjs/{ISave-861e9d6d.js → ISave-2c455a77.js} +4 -4
  5. package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
  6. package/dist/cjs/{SnkFormConfigManager-8d4fded8.js → SnkFormConfigManager-b8c81493.js} +7 -7
  7. package/dist/cjs/{SnkMultiSelectionListDataSource-3b93f6a6.js → SnkMultiSelectionListDataSource-03b58f5a.js} +5 -5
  8. package/dist/cjs/{auth-fetcher-8d8acd69.js → auth-fetcher-7e7796c9.js} +1 -1
  9. package/dist/cjs/config-header.cjs.entry.js +1 -1
  10. package/dist/cjs/configs-button.cjs.entry.js +1 -1
  11. package/dist/cjs/css-shim-a27d231b.js +6 -0
  12. package/dist/cjs/{dataunit-fetcher-1cea0695.js → dataunit-fetcher-8dffbcdf.js} +1 -1
  13. package/dist/cjs/dom-ff96a4bc.js +75 -0
  14. package/dist/cjs/field-config_2.cjs.entry.js +3 -3
  15. package/dist/cjs/fields-layout.cjs.entry.js +7 -4
  16. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  17. package/dist/cjs/{form-config-fetcher-f347f884.js → form-config-fetcher-5516d68a.js} +1 -1
  18. package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
  19. package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1515 -171
  20. package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
  21. package/dist/cjs/loader.cjs.js +16 -2
  22. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  23. package/dist/cjs/sankhyablocks.cjs.js +132 -4
  24. package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
  25. package/dist/cjs/snk-actions-button_9.cjs.entry.js +6 -6
  26. package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
  27. package/dist/cjs/snk-application.cjs.entry.js +99 -70
  28. package/dist/cjs/snk-attach.cjs.entry.js +8 -8
  29. package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
  30. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  31. package/dist/cjs/snk-crud.cjs.entry.js +100 -9
  32. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
  33. package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
  34. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  35. package/dist/cjs/{snk-data-unit-de248308.js → snk-data-unit-036ce58c.js} +12 -3
  36. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  37. package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
  38. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
  39. package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
  40. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
  41. package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
  42. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
  43. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +58 -25
  44. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  45. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
  46. package/dist/cjs/snk-filter-detail.cjs.entry.js +2 -2
  47. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  48. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -4
  49. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  50. package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
  51. package/dist/cjs/snk-filter-period.cjs.entry.js +11 -6
  52. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  53. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  54. package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
  55. package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
  56. package/dist/cjs/snk-form_2.cjs.entry.js +33 -10
  57. package/dist/cjs/snk-grid.cjs.entry.js +28 -19
  58. package/dist/cjs/{snk-guides-viewer-4ec3e7e1.js → snk-guides-viewer-164c063e.js} +86 -40
  59. package/dist/cjs/snk-guides-viewer.cjs.entry.js +10 -10
  60. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  61. package/dist/cjs/snk-personalized-filter.cjs.entry.js +6 -6
  62. package/dist/cjs/snk-pesquisa.cjs.entry.js +17 -6
  63. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  64. package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
  65. package/dist/cjs/snk-simple-crud.cjs.entry.js +12 -20
  66. package/dist/cjs/snk-taskbar.cjs.entry.js +67 -51
  67. package/dist/cjs/{taskbar-elements-fb5d1e08.js → taskbar-elements-8a80420e.js} +2 -2
  68. package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
  69. package/dist/collection/collection-manifest.json +2 -1
  70. package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-advaced-mode.js +27 -0
  71. package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +5 -25
  72. package/dist/collection/components/snk-application/snk-application.js +104 -44
  73. package/dist/collection/components/snk-attach/snk-attach.js +1 -1
  74. package/dist/collection/components/snk-crud/snk-crud.js +151 -2
  75. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +133 -34
  76. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
  77. package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
  78. package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
  79. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +2 -2
  80. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +11 -6
  81. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  82. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  83. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +7 -1
  84. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
  85. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +15 -4
  86. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +30 -13
  87. package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
  88. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
  89. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
  90. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
  91. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
  92. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -3
  93. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
  94. package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
  95. package/dist/collection/components/snk-grid/snk-grid.css +12 -0
  96. package/dist/collection/components/snk-grid/snk-grid.js +39 -12
  97. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
  98. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +5 -1
  99. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +43 -0
  100. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +3 -11
  101. package/dist/collection/components/snk-taskbar/snk-taskbar.js +87 -48
  102. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +3 -3
  103. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  104. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
  105. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
  106. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
  107. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +1 -1
  108. package/dist/components/DataFetcher.js +34 -4
  109. package/dist/components/ISave.js +3 -3
  110. package/dist/components/PersonalizedFilterUtils.js +13 -0
  111. package/dist/components/SnkFormConfigManager.js +6 -6
  112. package/dist/components/field-config2.js +44 -2
  113. package/dist/components/fields-layout2.js +6 -3
  114. package/dist/components/guides-configurator2.js +5 -3
  115. package/dist/components/index.d.ts +1 -0
  116. package/dist/components/index.js +1 -0
  117. package/dist/components/index2.js +90 -21
  118. package/dist/components/snk-application2.js +93 -63
  119. package/dist/components/snk-attach2.js +1 -1
  120. package/dist/components/snk-crud.js +96 -1
  121. package/dist/components/snk-custom-slot-guide.d.ts +11 -0
  122. package/dist/components/snk-custom-slot-guide.js +55 -0
  123. package/dist/components/snk-data-unit2.js +9 -0
  124. package/dist/components/snk-detail-view2.js +81 -34
  125. package/dist/components/snk-filter-bar2.js +30 -13
  126. package/dist/components/snk-filter-item2.js +8 -2
  127. package/dist/components/snk-filter-modal2.js +16 -6
  128. package/dist/components/snk-filter-number.js +2 -2
  129. package/dist/components/snk-filter-period.js +10 -5
  130. package/dist/components/snk-filter-text.js +1 -1
  131. package/dist/components/snk-form-config2.js +29 -5
  132. package/dist/components/snk-grid2.js +22 -11
  133. package/dist/components/snk-pesquisa2.js +14 -2
  134. package/dist/components/snk-simple-crud2.js +3 -11
  135. package/dist/components/snk-taskbar2.js +66 -49
  136. package/dist/esm/{ConfigStorage-568dc227.js → ConfigStorage-39ac8fef.js} +2 -2
  137. package/dist/esm/{DataFetcher-743feb3b.js → DataFetcher-0b9da57d.js} +34 -4
  138. package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
  139. package/dist/esm/{ISave-345481c1.js → ISave-f1c9269b.js} +4 -4
  140. package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
  141. package/dist/esm/{SnkFormConfigManager-d61df0c8.js → SnkFormConfigManager-a87566c8.js} +7 -7
  142. package/dist/esm/{SnkMultiSelectionListDataSource-ca8d7a09.js → SnkMultiSelectionListDataSource-01b3744b.js} +5 -5
  143. package/dist/esm/{auth-fetcher-c353127d.js → auth-fetcher-acdc1cb4.js} +1 -1
  144. package/dist/esm/config-header.entry.js +1 -1
  145. package/dist/esm/configs-button.entry.js +1 -1
  146. package/dist/esm/css-shim-9f2d321e.js +4 -0
  147. package/dist/esm/{dataunit-fetcher-7f2c61ca.js → dataunit-fetcher-4c312b43.js} +1 -1
  148. package/dist/esm/dom-64053c71.js +73 -0
  149. package/dist/esm/field-config_2.entry.js +3 -3
  150. package/dist/esm/fields-layout.entry.js +7 -4
  151. package/dist/esm/fields-selector.entry.js +2 -2
  152. package/dist/esm/{form-config-fetcher-898d2dd1.js → form-config-fetcher-7cda6254.js} +1 -1
  153. package/dist/esm/guides-configurator.entry.js +6 -4
  154. package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1507 -171
  155. package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
  156. package/dist/esm/loader.js +17 -3
  157. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  158. package/dist/esm/sankhyablocks.js +133 -5
  159. package/dist/esm/shadow-css-98135883.js +387 -0
  160. package/dist/esm/snk-actions-button_9.entry.js +6 -6
  161. package/dist/esm/snk-actions-form.entry.js +1 -1
  162. package/dist/esm/snk-application.entry.js +99 -70
  163. package/dist/esm/snk-attach.entry.js +8 -8
  164. package/dist/esm/snk-client-confirm.entry.js +1 -1
  165. package/dist/esm/snk-configurator.entry.js +1 -1
  166. package/dist/esm/snk-crud.entry.js +100 -9
  167. package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
  168. package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
  169. package/dist/esm/snk-data-exporter.entry.js +6 -6
  170. package/dist/esm/{snk-data-unit-60b338c5.js → snk-data-unit-130021b3.js} +12 -3
  171. package/dist/esm/snk-data-unit.entry.js +4 -4
  172. package/dist/esm/snk-default-filter.entry.js +1 -1
  173. package/dist/esm/snk-detail-view.entry.js +10 -10
  174. package/dist/esm/snk-entity-list.entry.js +1 -1
  175. package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
  176. package/dist/esm/snk-expression-group_2.entry.js +2 -2
  177. package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
  178. package/dist/esm/snk-filter-bar_4.entry.js +58 -25
  179. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  180. package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
  181. package/dist/esm/snk-filter-detail.entry.js +2 -2
  182. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  183. package/dist/esm/snk-filter-modal-item.entry.js +4 -4
  184. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  185. package/dist/esm/snk-filter-number.entry.js +2 -2
  186. package/dist/esm/snk-filter-period.entry.js +11 -6
  187. package/dist/esm/snk-filter-search.entry.js +1 -1
  188. package/dist/esm/snk-filter-text.entry.js +2 -2
  189. package/dist/esm/snk-form-summary.entry.js +1 -1
  190. package/dist/esm/snk-form-view.entry.js +1 -1
  191. package/dist/esm/snk-form_2.entry.js +33 -10
  192. package/dist/esm/snk-grid.entry.js +28 -19
  193. package/dist/esm/{snk-guides-viewer-339e10b3.js → snk-guides-viewer-3fd18298.js} +86 -40
  194. package/dist/esm/snk-guides-viewer.entry.js +10 -10
  195. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  196. package/dist/esm/snk-personalized-filter.entry.js +6 -6
  197. package/dist/esm/snk-pesquisa.entry.js +17 -6
  198. package/dist/esm/snk-print-selector.entry.js +1 -1
  199. package/dist/esm/snk-simple-bar.entry.js +1 -1
  200. package/dist/esm/snk-simple-crud.entry.js +12 -20
  201. package/dist/esm/snk-taskbar.entry.js +68 -52
  202. package/dist/esm/{taskbar-elements-faaf5d8f.js → taskbar-elements-d1e63fb2.js} +2 -2
  203. package/dist/esm/teste-pesquisa.entry.js +1 -1
  204. package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
  205. package/dist/sankhyablocks/{p-144da1d1.entry.js → p-12f595a6.entry.js} +1 -1
  206. package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
  207. package/dist/sankhyablocks/p-18d66638.entry.js +1 -0
  208. package/dist/sankhyablocks/{p-1788d191.js → p-1f310bc6.js} +1 -1
  209. package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
  210. package/dist/sankhyablocks/p-2ac55a5d.js +1 -0
  211. package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-2b882835.entry.js} +1 -1
  212. package/dist/sankhyablocks/{p-1f8cb438.entry.js → p-2c6be187.entry.js} +1 -1
  213. package/dist/sankhyablocks/p-2c9d0870.js +2 -0
  214. package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
  215. package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
  216. package/dist/sankhyablocks/{p-093f58fa.entry.js → p-2f94cf87.entry.js} +1 -1
  217. package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
  218. package/dist/sankhyablocks/p-3a443150.entry.js +1 -0
  219. package/dist/sankhyablocks/{p-c90f337a.entry.js → p-3b6d8d33.entry.js} +1 -1
  220. package/dist/sankhyablocks/p-3db72758.entry.js +1 -0
  221. package/dist/sankhyablocks/{p-e8c49c12.js → p-48a5c311.js} +2 -2
  222. package/dist/sankhyablocks/p-52691b42.js +1 -0
  223. package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
  224. package/dist/sankhyablocks/p-6564180d.entry.js +1 -0
  225. package/dist/sankhyablocks/{p-6d241415.js → p-6768f176.js} +1 -1
  226. package/dist/sankhyablocks/p-68c1a093.js +1 -0
  227. package/dist/sankhyablocks/p-6d322b0a.js +1 -0
  228. package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-7150eacf.entry.js} +1 -1
  229. package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
  230. package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-752f4e29.entry.js} +1 -1
  231. package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
  232. package/dist/sankhyablocks/{p-7fc46290.js → p-7ee6b1bf.js} +1 -1
  233. package/dist/sankhyablocks/{p-27005fac.entry.js → p-877d9614.entry.js} +1 -1
  234. package/dist/sankhyablocks/p-8b4d6719.js +1 -0
  235. package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
  236. package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
  237. package/dist/sankhyablocks/p-94267a30.entry.js +1 -0
  238. package/dist/sankhyablocks/{p-59b8f277.js → p-998a9d6f.js} +1 -1
  239. package/dist/sankhyablocks/{p-21107f0d.entry.js → p-9c1ff75e.entry.js} +1 -1
  240. package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
  241. package/dist/sankhyablocks/{p-88ed2793.js → p-9e4555ab.js} +1 -1
  242. package/dist/sankhyablocks/p-a46ac091.js +1 -0
  243. package/dist/sankhyablocks/p-a73b6b00.js +1 -0
  244. package/dist/sankhyablocks/{p-164c822d.entry.js → p-acd2ba28.entry.js} +1 -1
  245. package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
  246. package/dist/sankhyablocks/p-b471bfab.entry.js +1 -0
  247. package/dist/sankhyablocks/p-b533edab.entry.js +1 -0
  248. package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
  249. package/dist/sankhyablocks/p-c2d33fc8.entry.js +1 -0
  250. package/dist/sankhyablocks/p-c3ec6642.js +19 -0
  251. package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-c8043a53.entry.js} +1 -1
  252. package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
  253. package/dist/sankhyablocks/{p-b987e15d.js → p-cc9935af.js} +1 -1
  254. package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
  255. package/dist/sankhyablocks/{p-b7e891cc.entry.js → p-cd40c8cf.entry.js} +1 -1
  256. package/dist/sankhyablocks/{p-bd203e8d.entry.js → p-cd412add.entry.js} +1 -1
  257. package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
  258. package/dist/sankhyablocks/{p-e6b1c769.entry.js → p-d6dad5e4.entry.js} +1 -1
  259. package/dist/sankhyablocks/p-d714b6ca.js +1 -0
  260. package/dist/sankhyablocks/p-da455c82.js +12 -0
  261. package/dist/sankhyablocks/p-dea58642.entry.js +11 -0
  262. package/dist/sankhyablocks/p-e30acdca.entry.js +1 -0
  263. package/dist/sankhyablocks/p-ec9027a7.entry.js +1 -0
  264. package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
  265. package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
  266. package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
  267. package/dist/sankhyablocks/p-f8c5395a.entry.js +1 -0
  268. package/dist/sankhyablocks/p-f8da8569.entry.js +1 -0
  269. package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
  270. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  271. package/dist/types/components/snk-application/search-strategy/exec-prepared-search-advaced-mode.d.ts +5 -0
  272. package/dist/types/components/snk-application/snk-application.d.ts +9 -0
  273. package/dist/types/components/snk-crud/snk-crud.d.ts +22 -0
  274. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +23 -0
  275. package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
  276. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  277. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  278. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
  279. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
  280. package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
  281. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
  282. package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
  283. package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
  284. package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
  285. package/dist/types/components/snk-grid/snk-grid.d.ts +6 -0
  286. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
  287. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +8 -0
  288. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +0 -1
  289. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +12 -4
  290. package/dist/types/components.d.ts +105 -0
  291. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
  292. package/package.json +1 -1
  293. package/react/components.d.ts +1 -0
  294. package/react/components.js +1 -0
  295. package/react/components.js.map +1 -1
  296. package/dist/sankhyablocks/p-0cf9aa38.js +0 -1
  297. package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
  298. package/dist/sankhyablocks/p-1649f51e.entry.js +0 -1
  299. package/dist/sankhyablocks/p-1d585081.js +0 -1
  300. package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
  301. package/dist/sankhyablocks/p-4759912d.entry.js +0 -1
  302. package/dist/sankhyablocks/p-55798617.js +0 -1
  303. package/dist/sankhyablocks/p-56948f00.entry.js +0 -11
  304. package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
  305. package/dist/sankhyablocks/p-626b7a17.js +0 -1
  306. package/dist/sankhyablocks/p-8f73da95.js +0 -1
  307. package/dist/sankhyablocks/p-95c71f5e.entry.js +0 -1
  308. package/dist/sankhyablocks/p-988afe78.js +0 -1
  309. package/dist/sankhyablocks/p-9f2cdaab.entry.js +0 -1
  310. package/dist/sankhyablocks/p-9fe91526.js +0 -1
  311. package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
  312. package/dist/sankhyablocks/p-aae4258d.entry.js +0 -1
  313. package/dist/sankhyablocks/p-af9d79e0.entry.js +0 -1
  314. package/dist/sankhyablocks/p-bb0de89c.entry.js +0 -1
  315. package/dist/sankhyablocks/p-d8d8169b.js +0 -2
  316. package/dist/sankhyablocks/p-e64958ba.entry.js +0 -1
  317. package/dist/sankhyablocks/p-f25c50f7.entry.js +0 -1
  318. package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1cf293c1.js');
5
+ const index = require('./index-1894343a.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
8
- const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
9
7
  const index$1 = require('./index-e3e39724.js');
10
- require('./index-13d05f03.js');
8
+ const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
9
+ const taskbarElements = require('./taskbar-elements-8a80420e.js');
10
+ require('./index-f0fe7e6e.js');
11
11
 
12
12
  const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";
13
13
 
@@ -19,9 +19,11 @@ const SnkTaskbar = class {
19
19
  this.taskbarSaveUnlocker = index.createEvent(this, "taskbarSaveUnlocker", 7);
20
20
  this.TASKBAR_ITEM_ID_PREFIX = 'TASKBAR_ITEM_';
21
21
  this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME = 'taskbar-custom-elements-container';
22
- this.ACTIONS_BUTTON_TAG = 'TASKBAR-ACTIONS-BUTTON';
23
22
  this.NOT_OVERFLOW_ELEMENTS = ["moreOptions", "dataExporter_snkDataExporter", "actionsButton_snkActionsButton"];
24
23
  this.TASKBAR_CUSTOM_ELEMENTS = 'taskbar-custom-elements-container';
24
+ this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME = 'taskbar-additional-slot-container';
25
+ this.TASKBAR_ADDITIONAL_SLOT = 'taskbar-additional-slot-container';
26
+ this._dataUnitInitialized = false;
25
27
  this._titleKeyByElement = {
26
28
  [taskbarElements.TaskbarElement.UPDATE_MULTIPLE]: "snkTaskbar.titleUpdateMultiple",
27
29
  [taskbarElements.TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
@@ -64,6 +66,7 @@ const SnkTaskbar = class {
64
66
  this._isWaitingForSave = false;
65
67
  this.alignRigth = false;
66
68
  this.customSlotId = "TASKBAR_CUSTOM_ELEMENTS";
69
+ this.additionalSlotId = "TASKBAR_ADDITIONAL_SLOT";
67
70
  this.customContainerId = undefined;
68
71
  this.overflowStrategy = 'hiddenItems';
69
72
  this.configName = undefined;
@@ -119,6 +122,17 @@ const SnkTaskbar = class {
119
122
  this.taskbarSaveUnlocker.emit();
120
123
  }
121
124
  }
125
+ observeDataUnit(newValue) {
126
+ this.initializeDataUnit(newValue);
127
+ }
128
+ initializeDataUnit(dataUnit) {
129
+ if (!!dataUnit && !this._dataUnitInitialized) {
130
+ this._dataUnitInitialized = true;
131
+ const dataInfo = { dataUnit: this.dataUnit };
132
+ core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
133
+ this.dataUnit.subscribe(this.onSaveEvent);
134
+ }
135
+ }
122
136
  // Internal methods
123
137
  elementsFromString(strButtons) {
124
138
  const elements = [];
@@ -164,45 +178,46 @@ const SnkTaskbar = class {
164
178
  }
165
179
  elementClick(elem) {
166
180
  core.LockManager.whenResolve(this._element, core.LockManagerOperation.TASKBAR_CLICK).then(() => {
167
- if (this.dataUnit) {
168
- switch (elem) {
169
- case taskbarElements.TaskbarElement.PREVIOUS:
170
- this.dataUnit.previousRecord();
171
- break;
172
- case taskbarElements.TaskbarElement.NEXT:
173
- this.dataUnit.nextRecord();
174
- break;
175
- case taskbarElements.TaskbarElement.REFRESH:
176
- this.dataUnit.loadData();
177
- break;
178
- case taskbarElements.TaskbarElement.CLONE:
179
- this.dataUnit.copySelected();
180
- break;
181
- case taskbarElements.TaskbarElement.REMOVE:
182
- this.dataUnit.removeSelectedRecords();
183
- break;
184
- case taskbarElements.TaskbarElement.INSERT:
185
- this.dataUnit.addRecord();
186
- break;
187
- case taskbarElements.TaskbarElement.CANCEL:
188
- this.dataUnit.cancelEdition();
189
- break;
190
- case taskbarElements.TaskbarElement.SAVE:
191
- if (!this._isWaitingForSave) {
192
- this._isWaitingForSave = true;
193
- this.dataUnit.saveData().catch((err) => {
194
- if (err instanceof core.SilentException) {
195
- return;
196
- }
197
- else {
198
- throw err;
199
- }
200
- }).finally(() => {
201
- this._isWaitingForSave = false;
202
- });
203
- }
204
- break;
205
- }
181
+ if (!this.dataUnit) {
182
+ return;
183
+ }
184
+ switch (elem) {
185
+ case taskbarElements.TaskbarElement.PREVIOUS:
186
+ this.dataUnit.previousRecord();
187
+ break;
188
+ case taskbarElements.TaskbarElement.NEXT:
189
+ this.dataUnit.nextRecord();
190
+ break;
191
+ case taskbarElements.TaskbarElement.REFRESH:
192
+ this.dataUnit.loadData();
193
+ break;
194
+ case taskbarElements.TaskbarElement.CLONE:
195
+ this.dataUnit.copySelected();
196
+ break;
197
+ case taskbarElements.TaskbarElement.REMOVE:
198
+ this.dataUnit.removeSelectedRecords();
199
+ break;
200
+ case taskbarElements.TaskbarElement.INSERT:
201
+ this.dataUnit.addRecord();
202
+ break;
203
+ case taskbarElements.TaskbarElement.CANCEL:
204
+ this.dataUnit.cancelEdition();
205
+ break;
206
+ case taskbarElements.TaskbarElement.SAVE:
207
+ if (!this._isWaitingForSave) {
208
+ this._isWaitingForSave = true;
209
+ this.dataUnit.saveData().catch((err) => {
210
+ if (err instanceof core.SilentException) {
211
+ return;
212
+ }
213
+ else {
214
+ throw err;
215
+ }
216
+ }).finally(() => {
217
+ this._isWaitingForSave = false;
218
+ });
219
+ }
220
+ break;
206
221
  }
207
222
  if (this.isEnabled(elem))
208
223
  this.actionClick.emit(elem);
@@ -384,7 +399,8 @@ const SnkTaskbar = class {
384
399
  return (_a = element.getAttribute('data-taskbar-label')) !== null && _a !== void 0 ? _a : "";
385
400
  }
386
401
  hasToIgnoreOverFlow(element) {
387
- return element.classList.contains(this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME);
402
+ return element.classList.contains(this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME) ||
403
+ element.classList.contains(this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME);
388
404
  }
389
405
  handleOverFlowStrategy() {
390
406
  if (this.overflowStrategy === 'hiddenItems') {
@@ -400,10 +416,8 @@ const SnkTaskbar = class {
400
416
  };
401
417
  }
402
418
  componentDidLoad() {
403
- const dataInfo = { dataUnit: this.dataUnit };
404
- core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
419
+ this.initializeDataUnit(this.dataUnit);
405
420
  this.handleOverFlowStrategy();
406
- this.dataUnit.subscribe(this.onSaveEvent);
407
421
  }
408
422
  componentDidRender() {
409
423
  this.appendCustomElementsInTaskbar();
@@ -430,7 +444,7 @@ const SnkTaskbar = class {
430
444
  this._slotContainer.appendChild(customElement);
431
445
  }
432
446
  render() {
433
- var _a;
447
+ var _a, _b;
434
448
  if (this._definitions === undefined) {
435
449
  return undefined;
436
450
  }
@@ -450,7 +464,8 @@ const SnkTaskbar = class {
450
464
  (_b = this._overFlowWatcher) === null || _b === void 0 ? void 0 : _b.addNotOverFlowElement(elem);
451
465
  return index.h("slot", { name: elem });
452
466
  })), index.h("div", { id: this.TASKBAR_CUSTOM_ELEMENTS, class: this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME }, index.h("slot", { name: this.customSlotId }), (_a = this._overFlowWatcher) === null || _a === void 0 ? void 0 :
453
- _a.addNotOverFlowElement(this.TASKBAR_CUSTOM_ELEMENTS))));
467
+ _a.addNotOverFlowElement(this.TASKBAR_CUSTOM_ELEMENTS)), index.h("div", { id: this.TASKBAR_ADDITIONAL_SLOT, class: this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME }, index.h("slot", { name: this.additionalSlotId }), (_b = this._overFlowWatcher) === null || _b === void 0 ? void 0 :
468
+ _b.addNotOverFlowElement(this.TASKBAR_ADDITIONAL_SLOT))));
454
469
  }
455
470
  getHostClasses() {
456
471
  if (this.overflowStrategy !== 'hiddenItems')
@@ -462,7 +477,8 @@ const SnkTaskbar = class {
462
477
  "buttons": ["observeButtons"],
463
478
  "disabledButtons": ["observeDisabledButtons"],
464
479
  "_lastWidth": ["observeLastWidth"],
465
- "_isWaitingForSave": ["observeIsWaitingForSave"]
480
+ "_isWaitingForSave": ["observeIsWaitingForSave"],
481
+ "dataUnit": ["observeDataUnit"]
466
482
  }; }
467
483
  };
468
484
  SnkTaskbar.style = snkTaskbarCss;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-1cf293c1.js');
3
+ const index = require('./index-1894343a.js');
4
4
  const index$2 = require('./index-e3e39724.js');
5
- const index$1 = require('./index-13d05f03.js');
5
+ const index$1 = require('./index-f0fe7e6e.js');
6
6
 
7
7
  exports.TaskbarElement = void 0;
8
8
  (function (TaskbarElement) {
@@ -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 testePesquisaCss = ":host{display:block}";
@@ -11,12 +11,13 @@
11
11
  "./components/snk-actions-button/subcomponents/snk-client-confirm.js",
12
12
  "./components/snk-attach/snk-attach.js",
13
13
  "./components/snk-configurator/snk-configurator.js",
14
+ "./components/snk-crud/subcomponents/snk-guides-viewer.js",
14
15
  "./components/snk-crud/snk-crud.js",
15
16
  "./components/snk-crud/subcomponents/snk-form-summary.js",
16
17
  "./components/snk-crud/subcomponents/snk-form-view.js",
17
- "./components/snk-crud/subcomponents/snk-guides-viewer.js",
18
18
  "./components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js",
19
19
  "./components/snk-custom-slot-elements/snk-custom-slot-elements.js",
20
+ "./components/snk-custom-slot-guide/snk-custom-slot-guide.js",
20
21
  "./components/snk-data-exporter/snk-data-exporter.js",
21
22
  "./components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js",
22
23
  "./components/snk-entity-list/snk-entity-list.js",
@@ -0,0 +1,27 @@
1
+ import { ElementIDUtils } from "@sankhyalabs/core";
2
+ const executeAdvancedModeSearch = async (argument, options, app, pesquisaFetcher) => {
3
+ const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, executeOnOpen } = options;
4
+ return new Promise((accept, reject) => {
5
+ const pesquisaContent = document.createElement("snk-pesquisa");
6
+ pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
7
+ pesquisaContent.entityName = entity;
8
+ pesquisaContent.argument = argument;
9
+ pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
10
+ pesquisaContent.isHierarchyEntity = isHierarchyEntity;
11
+ if (isHierarchyEntity) {
12
+ pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
13
+ pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
14
+ }
15
+ pesquisaContent.selectItem = (option) => {
16
+ accept(option);
17
+ app.clearPopUpTitle();
18
+ app.closePopUp();
19
+ };
20
+ app.setPopUpTitle(entityDescription);
21
+ app.showPopUp(pesquisaContent, undefined, undefined, reject);
22
+ if (executeOnOpen) {
23
+ pesquisaContent.executeSearch(argument);
24
+ }
25
+ });
26
+ };
27
+ export default executeAdvancedModeSearch;
@@ -1,32 +1,13 @@
1
- import { ArrayUtils, ElementIDUtils, SearchUtils } from "@sankhyalabs/core";
2
- import { ObjectUtils } from "@sankhyalabs/core";
3
- import { StringUtils } from "@sankhyalabs/core";
1
+ import { ArrayUtils, ObjectUtils, SearchUtils, StringUtils } from "@sankhyalabs/core";
2
+ import executeAdvancedModeSearch from "./exec-prepared-search-advaced-mode";
4
3
  const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
5
4
  const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
6
5
  const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
7
6
  var _a;
8
7
  const mdByName = {};
9
- const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
8
+ const { entity, criteria, searchOptions } = options;
10
9
  if (mode === "ADVANCED") {
11
- return new Promise((accept, reject) => {
12
- const pesquisaContent = document.createElement("snk-pesquisa");
13
- pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
14
- pesquisaContent.entityName = entity;
15
- pesquisaContent.argument = argument;
16
- pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
17
- pesquisaContent.isHierarchyEntity = isHierarchyEntity;
18
- if (isHierarchyEntity) {
19
- pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
20
- pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
21
- }
22
- pesquisaContent.selectItem = (option) => {
23
- accept(option);
24
- app.clearPopUpTitle();
25
- app.closePopUp();
26
- };
27
- app.setPopUpTitle(entityDescription);
28
- app.showPopUp(pesquisaContent, undefined, undefined, reject);
29
- });
10
+ return executeAdvancedModeSearch(argument, options, app, pesquisaFetcher);
30
11
  }
31
12
  else if (mode === "LOAD_DESCRIPTION") {
32
13
  let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
@@ -63,14 +44,13 @@ const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
63
44
  const matchFields = item['__matchFields'];
64
45
  const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
65
46
  const pkValue = item[pkField];
66
- let searchOption = {
47
+ return {
67
48
  value: pkValue,
68
49
  label: descriptionValue,
69
50
  presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
70
51
  presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
71
52
  details: SearchUtils.buildDetails(argument, fields, item)
72
53
  };
73
- return searchOption;
74
54
  };
75
55
  const filterInvalidFields = (resp, item, mdByName) => {
76
56
  let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
@@ -20,6 +20,7 @@ import { TEMPLATES_SKELETON } from "../../lib/utils/constants";
20
20
  import executePreparedSearchPlus from "./search-strategy/exec-prepared-search-plus";
21
21
  import { LayoutFormConfig } from "../../lib/configs/LayoutFormConfig";
22
22
  import { FormConfigFetcher } from "../../lib";
23
+ import executeAdvancedModeSearch from "./search-strategy/exec-prepared-search-advaced-mode";
23
24
  /**
24
25
  * É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
25
26
  * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
@@ -394,7 +395,7 @@ export class SnkApplication {
394
395
  if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
395
396
  return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
396
397
  }
397
- //Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
398
+ //Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
398
399
  const result = await DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
399
400
  const isActive = result.isActive;
400
401
  this._featureFlagsCache.set(featureName, {
@@ -886,53 +887,75 @@ export class SnkApplication {
886
887
  * @async
887
888
  */
888
889
  async executePreparedSearch(mode, argument, options) {
890
+ var _a;
889
891
  const mdByName = {};
890
- const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, useSearchPlus } = options;
892
+ const { entity, criteria, searchOptions, useSearchPlus } = options;
891
893
  if (useSearchPlus) {
892
894
  return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
893
895
  }
894
- if (mode === "ADVANCED") {
895
- return new Promise((accept, reject) => {
896
- const pesquisaContent = document.createElement("snk-pesquisa");
897
- pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
898
- pesquisaContent.entityName = entity;
899
- pesquisaContent.argument = argument;
900
- pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
901
- pesquisaContent.isHierarchyEntity = isHierarchyEntity;
902
- if (isHierarchyEntity) {
903
- pesquisaContent.treeLoader = (text) => this.pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
904
- pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
905
- }
906
- pesquisaContent.selectItem = (option) => {
907
- accept(option);
908
- this.clearPopUpTitle();
909
- this.closePopUp();
896
+ if (mode === "LOAD_DESCRIPTION") {
897
+ let result = await this.pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
898
+ result = ObjectUtils.stringToObject(result.json.$);
899
+ let descriptionField = result.descriptionField;
900
+ const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
901
+ if (!option) {
902
+ return {
903
+ value: argument,
904
+ label: ""
910
905
  };
911
- this.setPopUpTitle(entityDescription);
912
- this.showPopUp(pesquisaContent, undefined, undefined, reject);
913
- });
906
+ }
907
+ return {
908
+ value: argument,
909
+ label: option[descriptionField]
910
+ };
914
911
  }
915
- else {
916
- return new Promise((resolve, reject) => {
917
- this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
918
- .then(result => {
919
- result = ObjectUtils.stringToObject(result.json.$);
920
- let descriptionField = result.descriptionField;
921
- let pkField = result.pkField;
922
- const list = [];
923
- result.data.forEach((item) => {
924
- let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
925
- let qtyFields = 6;
926
- let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
927
- list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
928
- });
929
- resolve(list);
930
- })
931
- .catch(error => {
932
- reject(error);
933
- });
934
- });
912
+ else if (mode === "ADVANCED") {
913
+ return executeAdvancedModeSearch(argument, options, this, this.pesquisaFetcher);
935
914
  }
915
+ return new Promise((resolve, reject) => {
916
+ this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
917
+ .then(result => {
918
+ result = ObjectUtils.stringToObject(result.json.$);
919
+ resolve(this.buildSearchResultList(result, mdByName, argument));
920
+ })
921
+ .catch(error => {
922
+ reject(error);
923
+ });
924
+ });
925
+ }
926
+ /**
927
+ * Obtém as opções em componentes de pesquisa além dos metadados como showMore e entityPk.
928
+ * @param {string} argument - O argumento da pesquisa.
929
+ * @param {any} options - Opções preparadas para a pesquisa.
930
+ * @returns {Promise<Array<IOption> | IOption>} Uma lista de opções ou uma única opção.
931
+ * @async
932
+ */
933
+ async executePreparedSearchWithFullResponse(argument, options) {
934
+ const mdByName = {};
935
+ const { entity, criteria, searchOptions } = options;
936
+ return new Promise((resolve, reject) => {
937
+ this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
938
+ .then(result => {
939
+ result = ObjectUtils.stringToObject(result.json.$);
940
+ result.data = this.buildSearchResultList(result, mdByName, argument);
941
+ resolve(result);
942
+ })
943
+ .catch(error => {
944
+ reject(error);
945
+ });
946
+ });
947
+ }
948
+ buildSearchResultList(result, mdByName, argument) {
949
+ let descriptionField = result.descriptionField;
950
+ let pkField = result.pkField;
951
+ const list = [];
952
+ result.data.forEach((item) => {
953
+ let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
954
+ let qtyFields = 6;
955
+ let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
956
+ list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
957
+ });
958
+ return list;
936
959
  }
937
960
  /**
938
961
  * Obtém `true` caso a tela esteja em modo de debug.
@@ -3477,9 +3500,6 @@ export class SnkApplication {
3477
3500
  },
3478
3501
  "Array": {
3479
3502
  "location": "global"
3480
- },
3481
- "HTMLSnkPesquisaElement": {
3482
- "location": "global"
3483
3503
  }
3484
3504
  },
3485
3505
  "return": "Promise<IOption | IOption[]>"
@@ -3504,6 +3524,46 @@ export class SnkApplication {
3504
3524
  }]
3505
3525
  }
3506
3526
  },
3527
+ "executePreparedSearchWithFullResponse": {
3528
+ "complexType": {
3529
+ "signature": "(argument: string, options: any) => Promise<any>",
3530
+ "parameters": [{
3531
+ "tags": [{
3532
+ "name": "param",
3533
+ "text": "argument - O argumento da pesquisa."
3534
+ }],
3535
+ "text": "- O argumento da pesquisa."
3536
+ }, {
3537
+ "tags": [{
3538
+ "name": "param",
3539
+ "text": "options - Op\u00E7\u00F5es preparadas para a pesquisa."
3540
+ }],
3541
+ "text": "- Op\u00E7\u00F5es preparadas para a pesquisa."
3542
+ }],
3543
+ "references": {
3544
+ "Promise": {
3545
+ "location": "global"
3546
+ }
3547
+ },
3548
+ "return": "Promise<any>"
3549
+ },
3550
+ "docs": {
3551
+ "text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa al\u00E9m dos metadados como showMore e entityPk.",
3552
+ "tags": [{
3553
+ "name": "param",
3554
+ "text": "argument - O argumento da pesquisa."
3555
+ }, {
3556
+ "name": "param",
3557
+ "text": "options - Op\u00E7\u00F5es preparadas para a pesquisa."
3558
+ }, {
3559
+ "name": "returns",
3560
+ "text": "Uma lista de op\u00E7\u00F5es ou uma \u00FAnica op\u00E7\u00E3o."
3561
+ }, {
3562
+ "name": "async",
3563
+ "text": undefined
3564
+ }]
3565
+ }
3566
+ },
3507
3567
  "isDebugMode": {
3508
3568
  "complexType": {
3509
3569
  "signature": "() => Promise<boolean>",
@@ -308,7 +308,7 @@ export class SnkAttach {
308
308
  },
309
309
  "fetcherType": {
310
310
  "type": "string",
311
- "mutable": false,
311
+ "mutable": true,
312
312
  "complexType": {
313
313
  "original": "TFetcherType",
314
314
  "resolved": "\"AnexoSistema\" | \"Another\" | \"Attach\"",