@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-11997.0 → 0.0.0-bugfix-dev-KB-99999.0

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 (407) hide show
  1. package/dist/cjs/{ConfigStorage-0e4275f5.js → ConfigStorage-8009ecb2.js} +20 -4
  2. package/dist/cjs/{DataFetcher-bd3d53a8.js → DataFetcher-ba94ed5b.js} +142 -102
  3. package/dist/cjs/{PersonalizedFilterUtils-1aeb625d.js → PersonalizedFilterUtils-0184ffbb.js} +11 -4
  4. package/dist/cjs/PreloadManager-84466da6.js +224 -0
  5. package/dist/cjs/{SnkFormConfigManager-5b485cd4.js → SnkFormConfigManager-7d850fbc.js} +23 -6
  6. package/dist/cjs/{SnkMessageBuilder-d0abb63d.js → SnkMessageBuilder-7293d0ad.js} +29 -8
  7. package/dist/cjs/{SnkMultiSelectionListDataSource-804ff4c7.js → SnkMultiSelectionListDataSource-ba5838c2.js} +15 -0
  8. package/dist/cjs/Sortable-fb1c4cbb.js +2853 -0
  9. package/dist/cjs/{auth-fetcher-1583fe43.js → auth-fetcher-c8467c07.js} +1 -1
  10. package/dist/cjs/{constants-d187e03e.js → constants-35ddd366.js} +4 -0
  11. package/dist/cjs/dataunit-fetcher-de65b9fc.js +725 -0
  12. package/dist/cjs/{taskbar-processor-bce3f499.js → field-search-f56aa7d6.js} +35 -0
  13. package/dist/cjs/{filter-item-type.enum-aa823a00.js → filter-item-type.enum-a7ffdaa6.js} +1 -0
  14. package/dist/cjs/filterNumberVariation-d65332da.js +7 -0
  15. package/dist/cjs/{form-config-fetcher-f6cb55e6.js → form-config-fetcher-df043d3d.js} +1 -1
  16. package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
  17. package/dist/cjs/index-f9e81701.js +10 -6
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/{pesquisa-fetcher-3356b3df.js → pesquisa-fetcher-ef050a47.js} +1 -1
  20. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  21. package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +214 -91
  22. package/dist/cjs/snk-application.cjs.entry.js +474 -140
  23. package/dist/cjs/snk-attach.cjs.entry.js +27 -11
  24. package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
  25. package/dist/cjs/snk-configurator.cjs.entry.js +17 -2
  26. package/dist/cjs/snk-crud.cjs.entry.js +127 -17
  27. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +20 -0
  28. package/dist/cjs/snk-data-exporter.cjs.entry.js +12 -11
  29. package/dist/cjs/{snk-data-unit-7cc1846d.js → snk-data-unit-1bc69073.js} +15 -5
  30. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  31. package/dist/cjs/snk-detail-view.cjs.entry.js +34 -14
  32. package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
  33. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
  34. package/dist/cjs/snk-filter-bar.cjs.entry.js +163 -17
  35. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
  36. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +52 -0
  37. package/dist/cjs/snk-filter-detail.cjs.entry.js +9 -2
  38. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
  39. package/dist/cjs/snk-filter-item.cjs.entry.js +39 -15
  40. package/dist/cjs/snk-filter-list.cjs.entry.js +1 -1
  41. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -9
  42. package/dist/cjs/snk-filter-modal.cjs.entry.js +38 -7
  43. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
  44. package/dist/cjs/snk-filter-number.cjs.entry.js +42 -3
  45. package/dist/cjs/snk-filter-period.cjs.entry.js +3 -3
  46. package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
  47. package/dist/cjs/snk-form-config.cjs.entry.js +16 -15
  48. package/dist/cjs/snk-form-view.cjs.entry.js +14 -0
  49. package/dist/cjs/snk-form.cjs.entry.js +6 -7
  50. package/dist/cjs/snk-grid-config.cjs.entry.js +6 -7
  51. package/dist/cjs/snk-grid.cjs.entry.js +131 -40
  52. package/dist/cjs/{snk-guides-viewer-5e22097d.js → snk-guides-viewer-7f9b6d94.js} +161 -22
  53. package/dist/cjs/snk-guides-viewer.cjs.entry.js +16 -13
  54. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
  55. package/dist/cjs/snk-personalized-filter.cjs.entry.js +24 -13
  56. package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
  57. package/dist/cjs/snk-simple-crud.cjs.entry.js +127 -103
  58. package/dist/cjs/snk-tab-config.cjs.entry.js +12 -11
  59. package/dist/cjs/snk-taskbar.cjs.entry.js +3 -3
  60. package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
  61. package/dist/collection/collection-manifest.json +3 -1
  62. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +2 -2
  63. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +2 -2
  64. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +2 -2
  65. package/dist/collection/components/snk-actions-button/clientEvent/index.js +81 -76
  66. package/dist/collection/components/snk-actions-button/snk-actions-button.css +4 -11
  67. package/dist/collection/components/snk-actions-button/snk-actions-button.js +2 -2
  68. package/dist/collection/components/snk-application/snk-application.js +485 -84
  69. package/dist/collection/components/snk-attach/snk-attach.css +6 -0
  70. package/dist/collection/components/snk-attach/snk-attach.js +15 -3
  71. package/dist/collection/components/snk-attach/structure/data-unit-builder.js +4 -1
  72. package/dist/collection/components/snk-configurator/snk-configurator.js +33 -1
  73. package/dist/collection/components/snk-crud/snk-crud.js +136 -10
  74. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +21 -1
  75. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +45 -0
  76. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +178 -22
  77. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +3 -0
  78. package/dist/collection/components/{snk-taskbar/snk-taskbar-custom-elements.js → snk-custom-slot-elements/snk-custom-slot-elements.js} +10 -10
  79. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +1 -9
  80. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
  81. package/dist/collection/components/snk-data-unit/snk-data-unit.js +15 -12
  82. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +69 -2
  83. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js +5 -0
  84. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +95 -0
  85. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +93 -8
  86. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +2 -2
  87. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +1 -0
  88. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +7 -0
  89. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +38 -14
  90. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
  91. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +87 -6
  92. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +4 -3
  93. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +5 -6
  94. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +218 -7
  95. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
  96. package/dist/collection/components/snk-form/SnkFormConfigManager.js +22 -5
  97. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +10 -8
  98. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +10 -8
  99. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +11 -0
  100. package/dist/collection/components/snk-grid/snk-grid.css +7 -2
  101. package/dist/collection/components/snk-grid/snk-grid.js +166 -39
  102. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +32 -6
  103. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -4
  104. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +8 -2
  105. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +115 -6
  106. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
  107. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +310 -0
  108. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
  109. package/dist/collection/components/snk-taskbar/snk-taskbar.css +0 -4
  110. package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -1
  111. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +31 -0
  112. package/dist/collection/lib/@types/index.js +1 -0
  113. package/dist/collection/lib/dataUnit/InMemoryLoader.js +74 -15
  114. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +61 -43
  115. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +118 -0
  116. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +80 -0
  117. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +139 -0
  118. package/dist/collection/lib/http/data-fetcher/fetchers/{dataunit-fetcher.js → data-unit/dataunit-fetcher.js} +49 -100
  119. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js +1 -0
  120. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js +1 -0
  121. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js +1 -0
  122. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js +1 -0
  123. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js +1 -0
  124. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js +68 -0
  125. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +162 -0
  126. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +3 -2
  127. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +3 -2
  128. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +14 -1
  129. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +3 -0
  130. package/dist/collection/lib/index.js +1 -1
  131. package/dist/collection/lib/message/SnkMessageBuilder.js +9 -3
  132. package/dist/collection/lib/message/resources/snk-application.msg.js +9 -0
  133. package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -0
  134. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +5 -4
  135. package/dist/collection/lib/message/resources/snk-grid.msg.js +3 -1
  136. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
  137. package/dist/collection/lib/utils/constants.js +3 -0
  138. package/dist/collection/lib/utils/urlutils.js +10 -4
  139. package/dist/collection/lib/workspace/workspace.js +27 -0
  140. package/dist/components/ConfigStorage.js +17 -1
  141. package/dist/components/DataFetcher.js +101 -61
  142. package/dist/components/PersonalizedFilterUtils.js +10 -3
  143. package/dist/components/SnkFormConfigManager.js +22 -5
  144. package/dist/components/SnkMessageBuilder.js +29 -8
  145. package/dist/components/constants.js +4 -1
  146. package/dist/components/dataunit-fetcher.js +846 -100
  147. package/dist/components/{SnkMultiSelectionListDataSource.js → field-search.js} +44 -1
  148. package/dist/components/filter-item-type.enum.js +1 -0
  149. package/dist/components/filterNumberVariation.js +7 -0
  150. package/dist/components/index.d.ts +3 -1
  151. package/dist/components/index.js +3 -1
  152. package/dist/components/index2.js +1 -0
  153. package/dist/components/snk-actions-button2.js +91 -86
  154. package/dist/components/snk-application2.js +392 -55
  155. package/dist/components/snk-attach2.js +39 -19
  156. package/dist/components/snk-configurator2.js +18 -2
  157. package/dist/components/snk-crud.js +184 -70
  158. package/dist/components/snk-custom-slot-elements.d.ts +11 -0
  159. package/dist/components/snk-custom-slot-elements.js +35 -0
  160. package/dist/components/snk-data-exporter2.js +7 -5
  161. package/dist/components/snk-data-unit2.js +15 -5
  162. package/dist/components/snk-detail-view2.js +264 -96
  163. package/dist/components/snk-filter-bar2.js +164 -13
  164. package/dist/components/snk-filter-checkbox-list.d.ts +11 -0
  165. package/dist/components/snk-filter-checkbox-list.js +68 -0
  166. package/dist/components/snk-filter-detail2.js +7 -0
  167. package/dist/components/snk-filter-item2.js +38 -14
  168. package/dist/components/snk-filter-list.js +1 -1
  169. package/dist/components/snk-filter-modal-item2.js +4 -3
  170. package/dist/components/snk-filter-modal.js +40 -7
  171. package/dist/components/snk-filter-number.js +43 -2
  172. package/dist/components/snk-filter-period.js +2 -2
  173. package/dist/components/snk-form-config2.js +13 -11
  174. package/dist/components/snk-form-view2.js +15 -0
  175. package/dist/components/snk-grid2.js +166 -68
  176. package/dist/components/snk-personalized-filter2.js +18 -6
  177. package/dist/components/snk-simple-crud2.js +132 -104
  178. package/dist/components/snk-tab-config2.js +2203 -6233
  179. package/dist/components/snk-taskbar2.js +16 -10
  180. package/dist/components/taskbar-actions-button.d.ts +11 -0
  181. package/dist/components/taskbar-actions-button.js +6 -0
  182. package/dist/components/taskbar-actions-button2.js +140 -0
  183. package/dist/esm/{ConfigStorage-f359573c.js → ConfigStorage-1244b8b0.js} +20 -4
  184. package/dist/esm/{DataFetcher-8daff9ad.js → DataFetcher-aa159c5a.js} +101 -61
  185. package/dist/esm/{PersonalizedFilterUtils-75fb0106.js → PersonalizedFilterUtils-e2b38ef7.js} +11 -4
  186. package/dist/esm/PreloadManager-c1c2f2b4.js +222 -0
  187. package/dist/esm/{SnkFormConfigManager-35876bad.js → SnkFormConfigManager-9be0e7d4.js} +24 -7
  188. package/dist/esm/{SnkMessageBuilder-68c1c25a.js → SnkMessageBuilder-ca843d1b.js} +29 -8
  189. package/dist/esm/{SnkMultiSelectionListDataSource-892f37f9.js → SnkMultiSelectionListDataSource-44494b0e.js} +11 -0
  190. package/dist/esm/Sortable-83960219.js +2851 -0
  191. package/dist/esm/{auth-fetcher-299fed55.js → auth-fetcher-c05dc474.js} +1 -1
  192. package/dist/esm/{constants-3644f1b6.js → constants-8457af36.js} +4 -1
  193. package/dist/esm/dataunit-fetcher-e218c6d2.js +722 -0
  194. package/dist/esm/{taskbar-processor-94402e6e.js → field-search-efbe307f.js} +34 -1
  195. package/dist/esm/{filter-item-type.enum-5028ed3f.js → filter-item-type.enum-d45e026f.js} +1 -0
  196. package/dist/esm/filterNumberVariation-8cee02ea.js +7 -0
  197. package/dist/esm/{form-config-fetcher-8ef7be16.js → form-config-fetcher-36219cd3.js} +1 -1
  198. package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
  199. package/dist/esm/index-a7d3d3f1.js +10 -6
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-dd3ca0a5.js} +1 -1
  202. package/dist/esm/sankhyablocks.js +1 -1
  203. package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +215 -93
  204. package/dist/esm/snk-application.entry.js +475 -141
  205. package/dist/esm/snk-attach.entry.js +27 -11
  206. package/dist/esm/snk-config-options.entry.js +1 -1
  207. package/dist/esm/snk-configurator.entry.js +18 -3
  208. package/dist/esm/snk-crud.entry.js +128 -18
  209. package/dist/esm/snk-custom-slot-elements.entry.js +16 -0
  210. package/dist/esm/snk-data-exporter.entry.js +13 -12
  211. package/dist/esm/{snk-data-unit-1715d2f1.js → snk-data-unit-6208ebf0.js} +16 -6
  212. package/dist/esm/snk-data-unit.entry.js +2 -2
  213. package/dist/esm/snk-detail-view.entry.js +34 -14
  214. package/dist/esm/snk-field-config.entry.js +1 -1
  215. package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
  216. package/dist/esm/snk-filter-bar.entry.js +165 -19
  217. package/dist/esm/snk-filter-binary-select.entry.js +1 -1
  218. package/dist/esm/snk-filter-checkbox-list.entry.js +48 -0
  219. package/dist/esm/snk-filter-detail.entry.js +9 -2
  220. package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
  221. package/dist/esm/snk-filter-item.entry.js +39 -15
  222. package/dist/esm/snk-filter-list.entry.js +1 -1
  223. package/dist/esm/snk-filter-modal-item.entry.js +9 -9
  224. package/dist/esm/snk-filter-modal.entry.js +38 -7
  225. package/dist/esm/snk-filter-multi-select.entry.js +1 -1
  226. package/dist/esm/snk-filter-number.entry.js +42 -3
  227. package/dist/esm/snk-filter-period.entry.js +3 -3
  228. package/dist/esm/snk-filter-search.entry.js +1 -1
  229. package/dist/esm/snk-form-config.entry.js +16 -15
  230. package/dist/esm/snk-form-view.entry.js +14 -0
  231. package/dist/esm/snk-form.entry.js +6 -7
  232. package/dist/esm/snk-grid-config.entry.js +6 -7
  233. package/dist/esm/snk-grid.entry.js +132 -41
  234. package/dist/esm/{snk-guides-viewer-b0e32a7d.js → snk-guides-viewer-9d5e073f.js} +161 -22
  235. package/dist/esm/snk-guides-viewer.entry.js +16 -13
  236. package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
  237. package/dist/esm/snk-personalized-filter.entry.js +24 -13
  238. package/dist/esm/snk-select-box.entry.js +1 -1
  239. package/dist/esm/snk-simple-crud.entry.js +126 -102
  240. package/dist/esm/snk-tab-config.entry.js +12 -11
  241. package/dist/esm/snk-taskbar.entry.js +3 -3
  242. package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
  243. package/dist/sankhyablocks/p-01ba23cd.entry.js +1 -0
  244. package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
  245. package/dist/sankhyablocks/{p-5c1aacc7.js → p-057fad05.js} +1 -1
  246. package/dist/sankhyablocks/p-0874adb5.entry.js +1 -0
  247. package/dist/sankhyablocks/p-094c30cb.js +1 -0
  248. package/dist/sankhyablocks/p-0d084a0f.entry.js +1 -0
  249. package/dist/sankhyablocks/{p-c870b530.js → p-0d7863ed.js} +1 -1
  250. package/dist/sankhyablocks/p-11081798.entry.js +1 -0
  251. package/dist/sankhyablocks/p-143425c0.entry.js +1 -0
  252. package/dist/sankhyablocks/{p-cb37982f.entry.js → p-20726710.entry.js} +1 -1
  253. package/dist/sankhyablocks/p-32f0935f.js +1 -0
  254. package/dist/sankhyablocks/p-3520c088.entry.js +1 -0
  255. package/dist/sankhyablocks/p-374d03f6.js +1 -0
  256. package/dist/sankhyablocks/p-38289a55.js +1 -0
  257. package/dist/sankhyablocks/{p-25c5428f.entry.js → p-3ab6df3d.entry.js} +1 -1
  258. package/dist/sankhyablocks/p-3b60db06.entry.js +1 -0
  259. package/dist/sankhyablocks/{p-eb636e15.entry.js → p-41f8bfa3.entry.js} +1 -1
  260. package/dist/sankhyablocks/p-4775a293.entry.js +1 -0
  261. package/dist/sankhyablocks/p-4b0938f6.entry.js +1 -0
  262. package/dist/sankhyablocks/p-585294ee.js +56 -0
  263. package/dist/sankhyablocks/p-5f74c859.entry.js +1 -0
  264. package/dist/sankhyablocks/p-69754d94.entry.js +1 -0
  265. package/dist/sankhyablocks/p-6977a26c.entry.js +1 -0
  266. package/dist/sankhyablocks/{p-648a7c72.entry.js → p-69efa80d.entry.js} +1 -1
  267. package/dist/sankhyablocks/p-70589af8.entry.js +1 -0
  268. package/dist/sankhyablocks/p-776ee8e3.js +1 -0
  269. package/dist/sankhyablocks/{p-959e0835.entry.js → p-7e2ded86.entry.js} +1 -1
  270. package/dist/sankhyablocks/p-7f9d6b5d.entry.js +11 -0
  271. package/dist/sankhyablocks/{p-0885ed3c.entry.js → p-8002dcd0.entry.js} +1 -1
  272. package/dist/sankhyablocks/p-809f367d.entry.js +1 -0
  273. package/dist/sankhyablocks/p-8437508f.js +1 -0
  274. package/dist/sankhyablocks/p-8eb67fa4.entry.js +1 -0
  275. package/dist/sankhyablocks/{p-f30526a7.entry.js → p-95df461f.entry.js} +1 -1
  276. package/dist/sankhyablocks/p-9695f78b.js +1 -0
  277. package/dist/sankhyablocks/{p-838f8234.entry.js → p-98674137.entry.js} +1 -1
  278. package/dist/sankhyablocks/p-a87229cd.entry.js +1 -0
  279. package/dist/sankhyablocks/p-a9e5b094.entry.js +1 -0
  280. package/dist/sankhyablocks/p-aaa3ee68.entry.js +1 -0
  281. package/dist/sankhyablocks/p-b0ef4383.js +1 -0
  282. package/dist/sankhyablocks/p-ba627e85.js +60 -0
  283. package/dist/sankhyablocks/p-c22c1d8e.js +1 -0
  284. package/dist/sankhyablocks/p-c2495304.js +1 -0
  285. package/dist/sankhyablocks/{p-26ad62b9.entry.js → p-c758265f.entry.js} +1 -1
  286. package/dist/sankhyablocks/{p-fe49067d.entry.js → p-c8622597.entry.js} +1 -1
  287. package/dist/sankhyablocks/p-cb7419e0.entry.js +1 -0
  288. package/dist/sankhyablocks/p-d1007720.entry.js +1 -0
  289. package/dist/sankhyablocks/{p-a1e1b305.entry.js → p-d3f53df2.entry.js} +1 -1
  290. package/dist/sankhyablocks/p-d6317851.entry.js +1 -0
  291. package/dist/sankhyablocks/{p-b13cb8b5.js → p-d9bb09b3.js} +2 -2
  292. package/dist/sankhyablocks/p-e3132789.entry.js +1 -0
  293. package/dist/sankhyablocks/p-e6380c60.js +1 -0
  294. package/dist/sankhyablocks/p-f514913b.entry.js +1 -0
  295. package/dist/sankhyablocks/p-fa80e546.js +1 -0
  296. package/dist/sankhyablocks/p-fa816fb2.js +1 -0
  297. package/dist/sankhyablocks/p-fd8814b9.entry.js +1 -0
  298. package/dist/sankhyablocks/{p-584d7212.js → p-ff1990ad.js} +1 -1
  299. package/dist/sankhyablocks/p-ff6064e7.js +1 -0
  300. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  301. package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +1 -1
  302. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
  303. package/dist/types/components/snk-application/snk-application.d.ts +90 -15
  304. package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
  305. package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
  306. package/dist/types/components/snk-crud/snk-crud.d.ts +13 -0
  307. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +3 -0
  308. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +10 -1
  309. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +49 -12
  310. package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +7 -0
  311. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
  312. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.d.ts +4 -0
  313. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +27 -0
  314. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +24 -2
  315. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +2 -1
  316. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
  317. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +15 -1
  318. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +30 -0
  319. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +5 -1
  320. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +6 -1
  321. package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -0
  322. package/dist/types/components/snk-grid/snk-grid.d.ts +20 -6
  323. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +4 -1
  324. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +1 -1
  325. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +24 -2
  326. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +59 -0
  327. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +18 -2
  328. package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +4 -0
  329. package/dist/types/components.d.ts +256 -32
  330. package/dist/types/lib/@types/index.d.ts +2 -1
  331. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +5 -1
  332. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +8 -4
  333. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +13 -0
  334. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +19 -0
  335. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +22 -0
  336. package/dist/types/lib/http/data-fetcher/fetchers/{dataunit-fetcher.d.ts → data-unit/dataunit-fetcher.d.ts} +5 -3
  337. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.d.ts +6 -0
  338. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.d.ts +7 -0
  339. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.d.ts +10 -0
  340. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.d.ts +4 -0
  341. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.d.ts +6 -0
  342. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.d.ts +9 -0
  343. package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +16 -0
  344. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +1 -1
  345. package/dist/types/lib/index.d.ts +1 -1
  346. package/dist/types/lib/message/resources/snk-application.msg.d.ts +2 -0
  347. package/dist/types/lib/message/resources/snk-simple-crud.msg.d.ts +2 -0
  348. package/dist/types/lib/utils/constants.d.ts +3 -4
  349. package/dist/types/lib/workspace/workspace.d.ts +6 -0
  350. package/package.json +4 -4
  351. package/react/components.d.ts +3 -1
  352. package/react/components.js +3 -1
  353. package/react/components.js.map +1 -1
  354. package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
  355. package/dist/cjs/dataunit-fetcher-910be4ce.js +0 -356
  356. package/dist/cjs/draggable.bundle-82a25c06.js +0 -6886
  357. package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +0 -20
  358. package/dist/collection/components/snk-data-unit/snk-data-unit.css +0 -6
  359. package/dist/components/_commonjsHelpers.js +0 -17
  360. package/dist/components/snk-taskbar-custom-elements.d.ts +0 -11
  361. package/dist/components/snk-taskbar-custom-elements.js +0 -35
  362. package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
  363. package/dist/esm/dataunit-fetcher-bd8f9572.js +0 -354
  364. package/dist/esm/draggable.bundle-41d56f06.js +0 -6884
  365. package/dist/esm/pesquisa-fetcher-27819123.js +0 -165
  366. package/dist/esm/snk-taskbar-custom-elements.entry.js +0 -16
  367. package/dist/sankhyablocks/p-0df2ead8.entry.js +0 -11
  368. package/dist/sankhyablocks/p-112455b1.js +0 -1
  369. package/dist/sankhyablocks/p-324ce41e.entry.js +0 -1
  370. package/dist/sankhyablocks/p-34604220.entry.js +0 -1
  371. package/dist/sankhyablocks/p-4a78e118.js +0 -1
  372. package/dist/sankhyablocks/p-5534e08c.js +0 -1
  373. package/dist/sankhyablocks/p-5d04ae42.entry.js +0 -1
  374. package/dist/sankhyablocks/p-6a38bda5.entry.js +0 -1
  375. package/dist/sankhyablocks/p-7bcd2f89.js +0 -56
  376. package/dist/sankhyablocks/p-7bd5aea7.js +0 -1
  377. package/dist/sankhyablocks/p-8014cc25.entry.js +0 -1
  378. package/dist/sankhyablocks/p-928efcaa.entry.js +0 -1
  379. package/dist/sankhyablocks/p-989937ee.entry.js +0 -1
  380. package/dist/sankhyablocks/p-9a270401.entry.js +0 -1
  381. package/dist/sankhyablocks/p-a7ee0e6f.entry.js +0 -1
  382. package/dist/sankhyablocks/p-ac0556a3.js +0 -1
  383. package/dist/sankhyablocks/p-ae6aff81.js +0 -1
  384. package/dist/sankhyablocks/p-b244640b.js +0 -1
  385. package/dist/sankhyablocks/p-b6d6b172.js +0 -1
  386. package/dist/sankhyablocks/p-bba91710.entry.js +0 -1
  387. package/dist/sankhyablocks/p-bd628455.entry.js +0 -1
  388. package/dist/sankhyablocks/p-c2beb95c.js +0 -1
  389. package/dist/sankhyablocks/p-c555075c.entry.js +0 -1
  390. package/dist/sankhyablocks/p-c9841939.js +0 -1
  391. package/dist/sankhyablocks/p-d3ec3586.entry.js +0 -1
  392. package/dist/sankhyablocks/p-d708b4ab.entry.js +0 -1
  393. package/dist/sankhyablocks/p-d84bc5c1.js +0 -1
  394. package/dist/sankhyablocks/p-de76b8a8.js +0 -76
  395. package/dist/sankhyablocks/p-e19014a9.entry.js +0 -1
  396. package/dist/sankhyablocks/p-e1cb1f0b.js +0 -1
  397. package/dist/sankhyablocks/p-e3a82e1c.entry.js +0 -1
  398. package/dist/sankhyablocks/p-e9b53a9a.entry.js +0 -1
  399. package/dist/sankhyablocks/p-ebf8c5df.entry.js +0 -1
  400. package/dist/sankhyablocks/p-ed5f1204.entry.js +0 -1
  401. package/dist/sankhyablocks/p-f9395c20.entry.js +0 -1
  402. package/dist/sankhyablocks/p-f94b999e.entry.js +0 -1
  403. package/dist/sankhyablocks/p-fa9d3f73.js +0 -1
  404. package/dist/sankhyablocks/p-fb1ecd0b.entry.js +0 -1
  405. package/dist/sankhyablocks/p-fcd09423.entry.js +0 -1
  406. package/dist/sankhyablocks/p-fd15aaac.entry.js +0 -1
  407. package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +0 -7
@@ -1,12 +1,13 @@
1
- import { ElementIDUtils } from "@sankhyalabs/core";
2
- import { Fragment, h } from "@stencil/core";
3
- import { SnkFormConfigManager } from "../../snk-form/SnkFormConfigManager";
4
- import { FormMetadata, buildFormMetadata } from "@sankhyalabs/ezui/dist/collection/utils/form";
5
- import TaskbarProcessor from "../../snk-taskbar/processor/taskbar-processor";
6
- import { TaskbarElement } from "../../snk-taskbar/elements/taskbar-elements";
7
- import { VIEW_MODE } from "../../../lib/utils/constants";
8
- import { PresentationMode } from "../../../lib";
1
+ import { Action as DUAction, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { Fragment, h } from '@stencil/core';
3
+ import { SnkFormConfigManager } from '../../snk-form/SnkFormConfigManager';
4
+ import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
+ import TaskbarProcessor from '../../snk-taskbar/processor/taskbar-processor';
6
+ import { TaskbarElement } from '../../snk-taskbar/elements/taskbar-elements';
7
+ import { VIEW_MODE } from '../../../lib/utils/constants';
8
+ import { PresentationMode } from '../../../lib';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
+ import { buildFieldSearch, openFieldSearch } from '../../snk-taskbar/subcomponents/field-search';
10
11
  const FORM_NAME_PREFIX = "__FORM:";
11
12
  export class SnkGuidesViewer {
12
13
  constructor() {
@@ -25,10 +26,12 @@ export class SnkGuidesViewer {
25
26
  this.presentationMode = undefined;
26
27
  this.resourceID = undefined;
27
28
  this.detailTaskbarCustomContainerId = undefined;
29
+ this._hasToCreateFieldSearch = true;
28
30
  this._breadcrumbItems = [];
29
31
  this._guides = undefined;
30
32
  this._formEditorConfigManager = undefined;
31
33
  this._formEditorDataUnit = undefined;
34
+ this._fieldToGetFocus = undefined;
32
35
  }
33
36
  observeDataUnit() {
34
37
  this.loadGuides(true);
@@ -53,6 +56,12 @@ export class SnkGuidesViewer {
53
56
  this._formEditorConfigManager = masterConfig ? this._configManager : this._currentDetail.formConfigManager;
54
57
  this._formEditorDataUnit = masterConfig ? this.dataUnit : this._currentDetail.dataUnit;
55
58
  }
59
+ /**
60
+ * Abre o localizador de campos
61
+ */
62
+ async findField() {
63
+ await openFieldSearch(this._moreOptions, this._fieldSearch);
64
+ }
56
65
  exitViewer() {
57
66
  if (this.dataUnit.isDirty()) {
58
67
  this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
@@ -123,11 +132,21 @@ export class SnkGuidesViewer {
123
132
  this._breadcrumbItems = breadcrumbs;
124
133
  });
125
134
  });
135
+ this._guides = this._guides.map(guide => {
136
+ if (guide.id === guideItem.id) {
137
+ return Object.assign(Object.assign({}, guide), guideItem);
138
+ }
139
+ return guide;
140
+ });
126
141
  }
127
142
  }
143
+ getTaskBarId() {
144
+ var _a;
145
+ return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "snkGuideViewer.finish_edition" : "snkGuideViewer.regular";
146
+ }
128
147
  loadTaskbarProcessor() {
129
- var _a, _b;
130
- const taskbarId = ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "snkGuideViewer.finish_edition" : "snkGuideViewer.regular";
148
+ var _a;
149
+ const taskbarId = this.getTaskBarId();
131
150
  const disabledButtons = [];
132
151
  if (!this.dataState || !this.dataState.hasPrevious) {
133
152
  disabledButtons.push("PREVIOUS");
@@ -135,7 +154,7 @@ export class SnkGuidesViewer {
135
154
  if (!this.dataState || !this.dataState.hasNext) {
136
155
  disabledButtons.push("NEXT");
137
156
  }
138
- if ((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) {
157
+ if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) {
139
158
  if (this.dataState.selectionInfo.length > 1) {
140
159
  disabledButtons.push("CLONE");
141
160
  }
@@ -166,25 +185,26 @@ export class SnkGuidesViewer {
166
185
  static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
167
186
  return configManager.saveCardState(formName, cardConfig, propertyChanged);
168
187
  }
169
- static buildFixedForms(formConfig, formMetadata, selectedForm, dataUnit, recordsValidator, levelPath) {
170
- const cardsState = formConfig === null || formConfig === void 0 ? void 0 : formConfig.cardsState;
188
+ static buildFixedForms(params) {
189
+ var _a;
190
+ const cardsState = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.cardsState;
171
191
  if (cardsState == undefined) {
172
192
  return;
173
193
  }
174
194
  return (h(Fragment, null, Array.from(cardsState.entries())
175
- .filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != selectedForm)
195
+ .filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != params.selectedForm)
176
196
  .sort(([, cardConfigA], [, cardConfigB]) => {
177
197
  const indexA = (cardConfigA === null || cardConfigA === void 0 ? void 0 : cardConfigA.fixSequence) || 0;
178
198
  const indexB = (cardConfigB === null || cardConfigB === void 0 ? void 0 : cardConfigB.fixSequence) || 0;
179
199
  return indexA - indexB;
180
200
  })
181
201
  .map(([formName, cardConfig]) => {
182
- var _a;
183
- const sheet = formMetadata.getSheet(formName);
202
+ var _a, _b;
203
+ const sheet = params.formMetadata.getSheet(formName);
184
204
  if (sheet == undefined) {
185
205
  return;
186
206
  }
187
- return h("snk-form-view", { levelPath: levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: formMetadata, dataUnit: dataUnit, recordsValidator: recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_a = formConfig === null || formConfig === void 0 ? void 0 : formConfig.summary) === null || _a === void 0 ? void 0 : _a.get(formName), key: formName });
207
+ return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); } });
188
208
  })));
189
209
  }
190
210
  wrapDetail(levels, content) {
@@ -233,7 +253,7 @@ export class SnkGuidesViewer {
233
253
  const sheet = this._masterFormMetadata.getSheet(cardId);
234
254
  if (sheet) {
235
255
  const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
236
- content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, key: guideId }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
256
+ content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler() }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
237
257
  }
238
258
  }
239
259
  return content;
@@ -250,6 +270,35 @@ export class SnkGuidesViewer {
250
270
  this._guideNavigator.getCurrentPath().then(breadcrumbs => {
251
271
  this._breadcrumbItems = breadcrumbs;
252
272
  });
273
+ this.resetGuideBadge(currentItem);
274
+ }
275
+ changeGuideHandler(guideName) {
276
+ var _a;
277
+ (_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
278
+ }
279
+ clearFieldToFocusHandler() {
280
+ this._fieldToGetFocus = undefined;
281
+ }
282
+ resetGuideBadge(selectedGuide) {
283
+ var _a;
284
+ this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
285
+ if (this.canClearGuideBadge(guide, selectedGuide.id)) {
286
+ return Object.assign(Object.assign({}, guide), { badge: null });
287
+ }
288
+ return guide;
289
+ })];
290
+ }
291
+ canClearGuideBadge(guide, idToCheck) {
292
+ return (guide.id === idToCheck) || this.isIncludedInChildrenList(guide, idToCheck);
293
+ }
294
+ isIncludedInChildrenList(guide, guideId) {
295
+ return this.hasChildren(guide) && this.getChildrenIdList(guide).includes(guideId);
296
+ }
297
+ hasChildren(guide) {
298
+ return guide.children && Array.isArray(guide.children);
299
+ }
300
+ getChildrenIdList(guide) {
301
+ return (guide.children).map(guideChild => guideChild.id);
253
302
  }
254
303
  getConfigViewMode() {
255
304
  return VIEW_MODE.GRID;
@@ -295,9 +344,90 @@ export class SnkGuidesViewer {
295
344
  }
296
345
  this._guideHasChanged = false;
297
346
  }
347
+ getFieldsSearch(actionButton, item) {
348
+ if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
349
+ this._hasToCreateFieldSearch = false;
350
+ this._moreOptions = actionButton;
351
+ actionButton.addEventListener("taskbarActionsButtonDisconnected", () => this._hasToCreateFieldSearch = true);
352
+ this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
353
+ }
354
+ return this._fieldSearch;
355
+ }
356
+ fieldsOptionLoader(argument) {
357
+ return Promise.resolve(this._configManager.getFieldsList(this.dataUnit, argument)
358
+ .map(field => ({ value: field.name, label: field.label })));
359
+ }
360
+ onSelectField(option, actionButton) {
361
+ if (option == undefined) {
362
+ return;
363
+ }
364
+ this._fieldToGetFocus = option.value;
365
+ const fieldGuideName = this.getGuideName(option.value);
366
+ if (fieldGuideName !== this.selectedGuide.id) {
367
+ this.changeGuideHandler(fieldGuideName);
368
+ }
369
+ actionButton.hideActions();
370
+ }
371
+ getActionsList() {
372
+ const hardList = [{
373
+ value: "",
374
+ label: this.getMessage("snkCrud.findColumn"),
375
+ disableCloseOnSelect: true,
376
+ eagerInitialize: true,
377
+ itemBuilder: (actionButton, item) => this.getFieldsSearch(actionButton, item)
378
+ }];
379
+ if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
380
+ return hardList.concat(this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList));
381
+ }
382
+ return hardList.concat(this.actionsList);
383
+ }
298
384
  buildTaskBar() {
299
385
  var _a;
300
- return h("div", { class: `ez-col ez-flex-item--align-center ez-col--sd-6 ez-col--tb-6 ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.actionsList, messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
386
+ return h("div", { class: `ez-col ez-flex-item--align-center ez-col--sd-6 ez-col--tb-6 ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
387
+ }
388
+ async dataUnitActionHandler(action) {
389
+ var _a;
390
+ if (action.type === DUAction.FIELD_INVALIDATED) {
391
+ const guideName = this.getGuideName((_a = action.payload) === null || _a === void 0 ? void 0 : _a.fieldName);
392
+ await this.addErrorBadgeToGuide(guideName);
393
+ await this.openGuideNavigator(guideName);
394
+ }
395
+ }
396
+ async addErrorBadgeToGuide(guideName) {
397
+ var _a;
398
+ this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
399
+ return Object.assign(Object.assign({}, guide), { badge: this.getBadge(guide, guideName) });
400
+ })];
401
+ }
402
+ async openGuideNavigator(guideName) {
403
+ if (this.selectedGuide.id !== guideName) {
404
+ await this._guideNavigator.openGuideNavidator();
405
+ }
406
+ }
407
+ getBadge(guide, tabName) {
408
+ var _a;
409
+ if (this.selectedGuide.id === tabName) {
410
+ return null;
411
+ }
412
+ if (tabName === guide.id) {
413
+ return "error";
414
+ }
415
+ return (_a = guide.badge) !== null && _a !== void 0 ? _a : null;
416
+ }
417
+ getGuideName(fieldName) {
418
+ var _a;
419
+ for (const sheet of this._masterFormMetadata.getAllSheets()) {
420
+ const formFields = (_a = sheet[1]) === null || _a === void 0 ? void 0 : _a.fields;
421
+ for (const field of formFields) {
422
+ if (field.name === fieldName) {
423
+ return sheet[0];
424
+ }
425
+ }
426
+ }
427
+ return "";
428
+ }
429
+ componentDidLoad() {
430
+ this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
301
431
  }
302
432
  render() {
303
433
  var _a, _b;
@@ -316,7 +446,15 @@ export class SnkGuidesViewer {
316
446
  h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
317
447
  h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
318
448
  :
319
- h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms(this.masterFormConfig, this._masterFormMetadata, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id, this.dataUnit, this.recordsValidator), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
449
+ h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms({
450
+ formConfig: this.masterFormConfig,
451
+ formMetadata: this._masterFormMetadata,
452
+ selectedForm: (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id,
453
+ dataUnit: this.dataUnit,
454
+ recordsValidator: this.recordsValidator,
455
+ fieldToFocus: this._fieldToGetFocus,
456
+ onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
457
+ }), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
320
458
  }
321
459
  static get is() { return "snk-guides-viewer"; }
322
460
  static get encapsulation() { return "scoped"; }
@@ -552,7 +690,7 @@ export class SnkGuidesViewer {
552
690
  "mutable": false,
553
691
  "complexType": {
554
692
  "original": "PresentationMode",
555
- "resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY",
693
+ "resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
556
694
  "references": {
557
695
  "PresentationMode": {
558
696
  "location": "import",
@@ -607,10 +745,12 @@ export class SnkGuidesViewer {
607
745
  }
608
746
  static get states() {
609
747
  return {
748
+ "_hasToCreateFieldSearch": {},
610
749
  "_breadcrumbItems": {},
611
750
  "_guides": {},
612
751
  "_formEditorConfigManager": {},
613
- "_formEditorDataUnit": {}
752
+ "_formEditorDataUnit": {},
753
+ "_fieldToGetFocus": {}
614
754
  };
615
755
  }
616
756
  static get events() {
@@ -694,6 +834,22 @@ export class SnkGuidesViewer {
694
834
  "text": "detail - Define se a configura\u00E7\u00E3o que est\u00E1 sendo carregada \u00E9\nreferente a um form detail."
695
835
  }]
696
836
  }
837
+ },
838
+ "findField": {
839
+ "complexType": {
840
+ "signature": "() => Promise<void>",
841
+ "parameters": [],
842
+ "references": {
843
+ "Promise": {
844
+ "location": "global"
845
+ }
846
+ },
847
+ "return": "Promise<void>"
848
+ },
849
+ "docs": {
850
+ "text": "Abre o localizador de campos",
851
+ "tags": []
852
+ }
697
853
  }
698
854
  };
699
855
  }
@@ -0,0 +1,3 @@
1
+ .custom-slot-elements-container{
2
+ display: none;
3
+ }
@@ -1,26 +1,26 @@
1
1
  import { h, Host } from '@stencil/core';
2
- export class SnkTaskbarCustomElements {
2
+ export class SnkCustomSlotElements {
3
3
  constructor() {
4
- this.slot = 'TASKBAR_CUSTOM_ELEMENTS';
4
+ this.slotName = 'CUSTOM_SLOT_ELEMENTS';
5
5
  }
6
6
  render() {
7
- return (h(Host, { slot: this.slot }, h("div", { id: this.slot, class: "taskbar-custom-elements-container" }, h("slot", null))));
7
+ return (h(Host, { slot: this.slotName }, h("div", { id: this.slotName, class: "custom-slot-elements-container" }, h("slot", null))));
8
8
  }
9
- static get is() { return "snk-taskbar-custom-elements"; }
9
+ static get is() { return "snk-custom-slot-elements"; }
10
10
  static get encapsulation() { return "scoped"; }
11
11
  static get originalStyleUrls() {
12
12
  return {
13
- "$": ["snk-taskbar.css"]
13
+ "$": ["snk-custom-slot-elements.css"]
14
14
  };
15
15
  }
16
16
  static get styleUrls() {
17
17
  return {
18
- "$": ["snk-taskbar.css"]
18
+ "$": ["snk-custom-slot-elements.css"]
19
19
  };
20
20
  }
21
21
  static get properties() {
22
22
  return {
23
- "slot": {
23
+ "slotName": {
24
24
  "type": "string",
25
25
  "mutable": false,
26
26
  "complexType": {
@@ -32,11 +32,11 @@ export class SnkTaskbarCustomElements {
32
32
  "optional": false,
33
33
  "docs": {
34
34
  "tags": [],
35
- "text": "Nome do slot da Taskbar onde os elementos customizados dever\u00E3o aparecer."
35
+ "text": "Nome do slot onde os elementos customizados dever\u00E3o aparecer."
36
36
  },
37
- "attribute": "slot",
37
+ "attribute": "slot-name",
38
38
  "reflect": false,
39
- "defaultValue": "'TASKBAR_CUSTOM_ELEMENTS'"
39
+ "defaultValue": "'CUSTOM_SLOT_ELEMENTS'"
40
40
  }
41
41
  };
42
42
  }
@@ -1,7 +1,4 @@
1
1
  :host {
2
- /*@doc Define o posicionamento de z-index do componente.*/
3
- --snk-data-exporter--z-index: var(--most-visible, 3);
4
-
5
2
  /*private*/
6
3
  display: flex;
7
4
  width: fit-content;
@@ -15,11 +12,6 @@
15
12
  height: fit-content;
16
13
  }
17
14
 
18
- .snk-data-exporter--overlap {
19
- /*public*/
20
- z-index: var(--snk-data-exporter--z-index);
21
- }
22
-
23
15
  .snk-data-exporter__dropdown {
24
16
  /*private*/
25
17
  display: none;
@@ -35,4 +27,4 @@
35
27
  .snk-data-exporter__dropdown > ez-dropdown {
36
28
  /*private*/
37
29
  position: relative;
38
- }
30
+ }
@@ -300,7 +300,7 @@ export class SnkDataExporter {
300
300
  }
301
301
  render() {
302
302
  return (h(Host, null, h("div", { class: `snk-data-exporter
303
- ${this.canShowDropdown() ? " snk-data-exporter--overlap" : ""}
303
+ ${this.canShowDropdown() ? " ez-elevation--16" : ""}
304
304
  ` }, 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"))), h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
305
305
  ${this.canShowDropdown() ? "snk-data-exporter__dropdown--show" : ""}
306
306
  ` }, this.getElementID("dropdown")), this.canShowDropdown() &&
@@ -1,5 +1,5 @@
1
1
  import { Host, h } from '@stencil/core';
2
- import { Action, ApplicationContext, ObjectUtils, DataType, JSUtils } from '@sankhyalabs/core';
2
+ import { Action, ApplicationContext, DataUnitAction, ObjectUtils, DataType, JSUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { OperationMap, SnkMessageBuilder } from '../../lib/message/SnkMessageBuilder';
5
5
  export class SnkDataUnit {
@@ -155,6 +155,10 @@ export class SnkDataUnit {
155
155
  }
156
156
  return selectedRecordsIDsInfo;
157
157
  }
158
+ getCleanOnCopyFields() {
159
+ var _a;
160
+ return (_a = this.dataUnit.metadata) === null || _a === void 0 ? void 0 : _a.fields.filter(field => { var _a; return (_a = field.properties) === null || _a === void 0 ? void 0 : _a.cleanOnCopy; }).map(field => field.name);
161
+ }
158
162
  async interceptAction(action) {
159
163
  return new Promise(resolve => {
160
164
  var _a, _b, _c, _d, _e;
@@ -169,6 +173,15 @@ export class SnkDataUnit {
169
173
  break;
170
174
  case Action.RECORDS_COPIED:
171
175
  if (this.isAllowed("CLONE")) {
176
+ const cleanFields = this.getCleanOnCopyFields();
177
+ if (cleanFields.length > 0) {
178
+ const records = action.payload;
179
+ action = new DataUnitAction(Action.RECORDS_COPIED, records.map(record => {
180
+ const newRecord = Object.assign({}, record);
181
+ cleanFields.forEach(fieldName => delete newRecord[fieldName]);
182
+ return newRecord;
183
+ }));
184
+ }
172
185
  resolve(action);
173
186
  }
174
187
  else {
@@ -244,7 +257,7 @@ export class SnkDataUnit {
244
257
  removeConfirmation = this.getMessage("snkDataUnit.removeAllConfirmation", { size: selection.length });
245
258
  multipleSelection = true;
246
259
  }
247
- if (removeConfirmation == undefined) {
260
+ if (!removeConfirmation) {
248
261
  resolve(action);
249
262
  }
250
263
  else {
@@ -406,16 +419,6 @@ export class SnkDataUnit {
406
419
  }
407
420
  static get is() { return "snk-data-unit"; }
408
421
  static get encapsulation() { return "scoped"; }
409
- static get originalStyleUrls() {
410
- return {
411
- "$": ["snk-data-unit.css"]
412
- };
413
- }
414
- static get styleUrls() {
415
- return {
416
- "$": ["snk-data-unit.css"]
417
- };
418
- }
419
422
  static get properties() {
420
423
  return {
421
424
  "dataState": {
@@ -1,7 +1,8 @@
1
- import { DataType } from "@sankhyalabs/core";
1
+ import { DataType, StringUtils } from "@sankhyalabs/core";
2
2
  import { toString } from "@sankhyalabs/core/dist/dataunit/metadata/DataType";
3
3
  import FilterItemType from "../filter-item-type.enum";
4
4
  import { FilterOperand } from "../../../snk-personalized-filter/interfaces/index";
5
+ import { FilterNumberVariation } from "../editors/enum/filterNumberVariation";
5
6
  const buildFilter = (item) => {
6
7
  switch (item.type) {
7
8
  case FilterItemType.DEFAULT_FILTER:
@@ -22,6 +23,8 @@ const buildFilter = (item) => {
22
23
  return buildNumber(item);
23
24
  case FilterItemType.PERSONALIZED:
24
25
  return buildPersonalized(item);
26
+ case FilterItemType.CHECK_BOX_LIST:
27
+ return buildCheckboxList(item);
25
28
  default:
26
29
  return undefined;
27
30
  }
@@ -55,6 +58,23 @@ function buildMultiList(item) {
55
58
  };
56
59
  }
57
60
  }
61
+ function buildCheckboxList(item) {
62
+ var _a;
63
+ const { id, value, props } = item;
64
+ const selectedOptionNames = Object.entries(value !== null && value !== void 0 ? value : {})
65
+ .filter(([_, valueChecked]) => valueChecked === true)
66
+ .map(([key, _]) => key);
67
+ const selectedOptionsObject = (_a = props.options) === null || _a === void 0 ? void 0 : _a.filter(option => selectedOptionNames.includes(option.name));
68
+ return { name: id, expression: buildCheckboxListExpression(selectedOptionsObject), params: [] };
69
+ }
70
+ function buildCheckboxListExpression(options) {
71
+ let expression = "";
72
+ options.forEach((option, index) => {
73
+ var _a;
74
+ expression += ` ${index > 0 ? ((_a = option.operand) !== null && _a !== void 0 ? _a : 'OR') : ''} ${option.expression}`;
75
+ });
76
+ return expression.trim();
77
+ }
58
78
  function parseMultiListValues(multiListValue) {
59
79
  var _a, _b;
60
80
  const value = (_b = (_a = multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.elements) !== null && _a !== void 0 ? _a : multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.members) !== null && _b !== void 0 ? _b : multiListValue;
@@ -93,15 +113,62 @@ function buildSearch(item) {
93
113
  return { name: id, expression, params: [{ name: id, dataType: DataType.TEXT, value: toString(DataType.TEXT, value.value) }] };
94
114
  }
95
115
  function buildText(item) {
96
- const { id, value, props } = item;
116
+ let { id, value, props } = item;
97
117
  const expression = props.expression;
118
+ if (!StringUtils.isEmpty(props.likeAs)) {
119
+ value = buildLikeValue(value, props.likeAs);
120
+ }
98
121
  return { name: id, expression, params: [{ name: id, dataType: DataType.TEXT, value: toString(DataType.TEXT, value) }] };
99
122
  }
100
123
  function buildNumber(item) {
101
124
  const { id, value, props } = item;
125
+ const variation = props.variation;
126
+ if (variation === FilterNumberVariation.INTERVAL) {
127
+ const { start, end } = value !== null && value !== void 0 ? value : { start: 0, end: 0 };
128
+ if (start && end) {
129
+ return {
130
+ name: id,
131
+ expression: props.intervalExpression.fullfill,
132
+ params: [
133
+ { name: `${id}.START`, dataType: DataType.NUMBER, value: toString(DataType.NUMBER, start) },
134
+ { name: `${id}.END`, dataType: DataType.NUMBER, value: toString(DataType.NUMBER, end) }
135
+ ]
136
+ };
137
+ }
138
+ if (start) {
139
+ return {
140
+ name: id,
141
+ expression: props.intervalExpression.onlystart,
142
+ params: [
143
+ { name: id, dataType: DataType.NUMBER, value: toString(DataType.NUMBER, start) }
144
+ ]
145
+ };
146
+ }
147
+ if (end) {
148
+ return {
149
+ name: id,
150
+ expression: props.intervalExpression.onlyend,
151
+ params: [
152
+ { name: id, dataType: DataType.NUMBER, value: toString(DataType.NUMBER, end) }
153
+ ]
154
+ };
155
+ }
156
+ }
102
157
  const expression = props.expression;
103
158
  return { name: id, expression, params: [{ name: id, dataType: DataType.NUMBER, value: toString(DataType.NUMBER, value) }] };
104
159
  }
160
+ function buildLikeValue(valueAsString, likeAs) {
161
+ if (likeAs === "CONTANIS") {
162
+ return `%${valueAsString}%`;
163
+ }
164
+ else if (likeAs === "STARTS_WITH") {
165
+ return `${valueAsString}%`;
166
+ }
167
+ else if (likeAs === "ENDS_WITH") {
168
+ return `%${valueAsString}`;
169
+ }
170
+ return valueAsString;
171
+ }
105
172
  function buildPersonalized(item) {
106
173
  const { id, groupedItems = [] } = item;
107
174
  const activeFilters = groupedItems.filter(groupItem => !!groupItem.visible);
@@ -0,0 +1,5 @@
1
+ export var FilterNumberVariation;
2
+ (function (FilterNumberVariation) {
3
+ FilterNumberVariation["DEFAULT"] = "DEFAULT";
4
+ FilterNumberVariation["INTERVAL"] = "INTERVAL";
5
+ })(FilterNumberVariation || (FilterNumberVariation = {}));