@sankhyalabs/sankhyablocks 8.15.0-rc.8 → 8.15.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 (237) hide show
  1. package/dist/cjs/{ConfigStorage-d4c99a5e.js → ConfigStorage-942ce74b.js} +70 -7
  2. package/dist/cjs/{DataFetcher-99f0f6ed.js → DataFetcher-313debd8.js} +13 -5
  3. package/dist/cjs/{SnkFormConfigManager-3621bfc4.js → SnkFormConfigManager-f9dc0d28.js} +21 -13
  4. package/dist/cjs/{SnkMessageBuilder-e7dcf408.js → SnkMessageBuilder-66aa2557.js} +6 -1
  5. package/dist/cjs/SnkMultiSelectionListDataSource-303e85d1.js +140 -0
  6. package/dist/cjs/{auth-fetcher-5161d082.js → auth-fetcher-54f5ff9d.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-9f1a13ca.js → form-config-fetcher-2dd00e5b.js} +13 -1
  8. package/dist/cjs/index-f9e81701.js +2 -10
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{pesquisa-fetcher-8bbee432.js → pesquisa-fetcher-213797ec.js} +273 -50
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +519 -4
  13. package/dist/cjs/snk-application.cjs.entry.js +13 -8
  14. package/dist/cjs/snk-attach.cjs.entry.js +67 -47
  15. package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
  16. package/dist/cjs/snk-crud.cjs.entry.js +26 -18
  17. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +6 -2
  18. package/dist/cjs/snk-data-exporter.cjs.entry.js +10 -6
  19. package/dist/cjs/{snk-data-unit-82c08a8c.js → snk-data-unit-41c29713.js} +1 -1
  20. package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
  21. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
  22. package/dist/cjs/snk-filter-bar.cjs.entry.js +31 -7
  23. package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
  24. package/dist/cjs/snk-filter-item.cjs.entry.js +10 -6
  25. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  26. package/dist/cjs/snk-form-config.cjs.entry.js +8 -2
  27. package/dist/cjs/snk-form.cjs.entry.js +11 -4
  28. package/dist/cjs/snk-grid.cjs.entry.js +41 -22
  29. package/dist/cjs/{snk-guides-viewer-100c3098.js → snk-guides-viewer-4b6ecda8.js} +21 -12
  30. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -8
  31. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  32. package/dist/cjs/snk-simple-crud.cjs.entry.js +256 -22
  33. package/dist/cjs/snk-taskbar.cjs.entry.js +75 -17
  34. package/dist/cjs/{taskbar-elements-1e4fb2e0.js → taskbar-elements-3ecd1278.js} +1 -1
  35. package/dist/collection/collection-manifest.json +6 -6
  36. package/dist/collection/components/snk-application/snk-application.js +42 -2
  37. package/dist/collection/components/snk-attach/snk-attach.js +39 -24
  38. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +1 -1
  39. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +29 -22
  40. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
  41. package/dist/collection/components/snk-crud/snk-crud.js +71 -11
  42. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
  43. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +50 -7
  44. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +1 -1
  45. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js +22 -1
  46. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +7 -3
  47. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
  48. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -6
  49. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +2 -1
  50. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +44 -3
  51. package/dist/collection/components/snk-form/snk-form.js +25 -1
  52. package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +20 -12
  53. package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +11 -5
  54. package/dist/collection/components/snk-grid/snk-grid.js +86 -16
  55. package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
  56. package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
  57. package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
  58. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +10 -2
  59. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +421 -17
  60. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +1 -1
  61. package/dist/collection/components/snk-taskbar/snk-taskbar.js +91 -16
  62. package/dist/collection/lib/configs/ConfigStorage.js +63 -3
  63. package/dist/collection/lib/dataUnit/InMemoryLoader.js +9 -40
  64. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
  65. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +13 -5
  66. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +12 -0
  67. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
  68. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -1
  69. package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
  70. package/dist/collection/lib/utils/CrudUtils.js +13 -1
  71. package/dist/components/ConfigStorage.js +68 -5
  72. package/dist/components/DataFetcher.js +13 -5
  73. package/dist/components/SnkFormConfigManager.js +19 -11
  74. package/dist/components/SnkMessageBuilder.js +6 -1
  75. package/dist/components/dataunit-fetcher.js +41 -39
  76. package/dist/components/field-search.js +93 -3
  77. package/dist/components/form-config-fetcher.js +12 -0
  78. package/dist/components/index.d.ts +6 -6
  79. package/dist/components/snk-application2.js +9 -1
  80. package/dist/components/snk-attach2.js +115 -52
  81. package/dist/components/snk-configurator2.js +1 -1
  82. package/dist/components/snk-crud.js +23 -11
  83. package/dist/components/snk-custom-slot-elements.js +7 -3
  84. package/dist/components/snk-data-exporter2.js +7 -3
  85. package/dist/components/snk-detail-view2.js +48 -11
  86. package/dist/components/snk-filter-bar2.js +29 -4
  87. package/dist/components/snk-filter-detail2.js +5 -1
  88. package/dist/components/snk-filter-item2.js +11 -6
  89. package/dist/components/snk-form-config2.js +7 -1
  90. package/dist/components/snk-form.js +8 -0
  91. package/dist/components/snk-grid-config2.js +128 -102
  92. package/dist/components/snk-grid2.js +42 -18
  93. package/dist/components/snk-simple-crud2.js +317 -29
  94. package/dist/components/snk-taskbar2.js +81 -20
  95. package/dist/esm/{ConfigStorage-39ed8aeb.js → ConfigStorage-86187da3.js} +70 -7
  96. package/dist/esm/{DataFetcher-a650ae58.js → DataFetcher-c1baf61d.js} +13 -5
  97. package/dist/esm/{SnkFormConfigManager-692e20c7.js → SnkFormConfigManager-f53f9f87.js} +21 -13
  98. package/dist/esm/{SnkMessageBuilder-0fb796b9.js → SnkMessageBuilder-0a4becdd.js} +6 -1
  99. package/dist/esm/SnkMultiSelectionListDataSource-36918dbf.js +133 -0
  100. package/dist/esm/{auth-fetcher-17dc5b5e.js → auth-fetcher-039abba3.js} +1 -1
  101. package/dist/esm/{form-config-fetcher-f121f880.js → form-config-fetcher-30fb808f.js} +13 -1
  102. package/dist/esm/index-a7d3d3f1.js +2 -10
  103. package/dist/esm/loader.js +1 -1
  104. package/dist/esm/{pesquisa-fetcher-5a8cae10.js → pesquisa-fetcher-fe6f3826.js} +262 -43
  105. package/dist/esm/sankhyablocks.js +1 -1
  106. package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +518 -5
  107. package/dist/esm/snk-application.entry.js +13 -8
  108. package/dist/esm/snk-attach.entry.js +66 -46
  109. package/dist/esm/snk-configurator.entry.js +1 -1
  110. package/dist/esm/snk-crud.entry.js +26 -18
  111. package/dist/esm/snk-custom-slot-elements.entry.js +7 -3
  112. package/dist/esm/snk-data-exporter.entry.js +10 -6
  113. package/dist/esm/{snk-data-unit-5d201fb3.js → snk-data-unit-de1d140d.js} +1 -1
  114. package/dist/esm/snk-data-unit.entry.js +2 -2
  115. package/dist/esm/snk-detail-view.entry.js +9 -10
  116. package/dist/esm/snk-filter-bar.entry.js +31 -7
  117. package/dist/esm/snk-filter-detail.entry.js +4 -1
  118. package/dist/esm/snk-filter-item.entry.js +10 -6
  119. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  120. package/dist/esm/snk-form-config.entry.js +9 -3
  121. package/dist/esm/snk-form.entry.js +11 -4
  122. package/dist/esm/snk-grid.entry.js +42 -23
  123. package/dist/esm/{snk-guides-viewer-36a01f1c.js → snk-guides-viewer-113be3fd.js} +21 -12
  124. package/dist/esm/snk-guides-viewer.entry.js +7 -8
  125. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  126. package/dist/esm/snk-simple-crud.entry.js +257 -23
  127. package/dist/esm/snk-taskbar.entry.js +76 -18
  128. package/dist/esm/{taskbar-elements-846c027c.js → taskbar-elements-2473c8ac.js} +1 -1
  129. package/dist/sankhyablocks/p-032fe52e.js +1 -0
  130. package/dist/sankhyablocks/p-07a61550.entry.js +1 -0
  131. package/dist/sankhyablocks/p-0899e0b5.entry.js +1 -0
  132. package/dist/sankhyablocks/p-14a08904.entry.js +1 -0
  133. package/dist/sankhyablocks/p-154a7f33.entry.js +1 -0
  134. package/dist/sankhyablocks/p-15802c59.entry.js +1 -0
  135. package/dist/sankhyablocks/p-164666b1.js +65 -0
  136. package/dist/sankhyablocks/p-21a81901.entry.js +1 -0
  137. package/dist/sankhyablocks/p-32556aa6.js +1 -0
  138. package/dist/sankhyablocks/p-328585d0.entry.js +1 -0
  139. package/dist/sankhyablocks/p-47bad461.entry.js +11 -0
  140. package/dist/sankhyablocks/{p-f3d1c48e.js → p-52c8e589.js} +1 -1
  141. package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
  142. package/dist/sankhyablocks/p-5cb07080.js +1 -0
  143. package/dist/sankhyablocks/p-74d349c3.entry.js +1 -0
  144. package/dist/sankhyablocks/p-7663f597.entry.js +1 -0
  145. package/dist/sankhyablocks/{p-50783a8b.js → p-913a9979.js} +1 -1
  146. package/dist/sankhyablocks/{p-827e4b01.entry.js → p-a1d72395.entry.js} +1 -1
  147. package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
  148. package/dist/sankhyablocks/p-ae4fc9a9.js +1 -0
  149. package/dist/sankhyablocks/p-af1ac81f.entry.js +1 -0
  150. package/dist/sankhyablocks/p-aff76a53.js +56 -0
  151. package/dist/sankhyablocks/p-b4525fc0.entry.js +1 -0
  152. package/dist/sankhyablocks/p-cce0865d.js +1 -0
  153. package/dist/sankhyablocks/{p-be75153c.js → p-dc7c9047.js} +1 -1
  154. package/dist/sankhyablocks/p-dec65f6c.entry.js +1 -0
  155. package/dist/sankhyablocks/p-df5451c7.js +26 -0
  156. package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
  157. package/dist/sankhyablocks/{p-9d608b62.entry.js → p-eae7a817.entry.js} +1 -1
  158. package/dist/sankhyablocks/p-ee9536bc.entry.js +1 -0
  159. package/dist/sankhyablocks/p-f13f7616.entry.js +1 -0
  160. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  161. package/dist/types/components/snk-application/snk-application.d.ts +8 -0
  162. package/dist/types/components/snk-attach/snk-attach.d.ts +2 -1
  163. package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +10 -1
  164. package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +5 -4
  165. package/dist/types/components/snk-crud/snk-crud.d.ts +12 -0
  166. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
  167. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +11 -1
  168. package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +6 -0
  169. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
  170. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +6 -2
  171. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +8 -0
  172. package/dist/types/components/snk-form/snk-form.d.ts +6 -1
  173. package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
  174. package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +4 -3
  175. package/dist/types/components/snk-grid/snk-grid.d.ts +14 -1
  176. package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
  177. package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
  178. package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
  179. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +76 -3
  180. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
  181. package/dist/types/components.d.ts +171 -10
  182. package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
  183. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -2
  184. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
  185. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -0
  186. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
  187. package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
  188. package/package.json +1 -1
  189. package/dist/cjs/PreloadManager-84466da6.js +0 -224
  190. package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
  191. package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
  192. package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
  193. package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
  194. package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
  195. package/dist/esm/snk-grid-config.entry.js +0 -479
  196. package/dist/esm/snk-select-box.entry.js +0 -21
  197. package/dist/sankhyablocks/p-05243555.js +0 -1
  198. package/dist/sankhyablocks/p-094c30cb.js +0 -1
  199. package/dist/sankhyablocks/p-11ad137d.entry.js +0 -1
  200. package/dist/sankhyablocks/p-2ae395fe.entry.js +0 -1
  201. package/dist/sankhyablocks/p-3e2e2424.entry.js +0 -1
  202. package/dist/sankhyablocks/p-3e91d5ea.entry.js +0 -1
  203. package/dist/sankhyablocks/p-453c01a8.entry.js +0 -1
  204. package/dist/sankhyablocks/p-5e681b7b.js +0 -65
  205. package/dist/sankhyablocks/p-5f74c859.entry.js +0 -1
  206. package/dist/sankhyablocks/p-67aedbe0.js +0 -56
  207. package/dist/sankhyablocks/p-69754d94.entry.js +0 -1
  208. package/dist/sankhyablocks/p-725d04ba.js +0 -1
  209. package/dist/sankhyablocks/p-86801b08.entry.js +0 -1
  210. package/dist/sankhyablocks/p-8c13d8d6.entry.js +0 -1
  211. package/dist/sankhyablocks/p-8c49760e.js +0 -1
  212. package/dist/sankhyablocks/p-98674137.entry.js +0 -1
  213. package/dist/sankhyablocks/p-a13ccb86.js +0 -26
  214. package/dist/sankhyablocks/p-bf658a8a.entry.js +0 -11
  215. package/dist/sankhyablocks/p-c143a240.js +0 -1
  216. package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
  217. package/dist/sankhyablocks/p-c4874327.entry.js +0 -1
  218. package/dist/sankhyablocks/p-d0844d18.entry.js +0 -1
  219. package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
  220. package/dist/sankhyablocks/p-d7cda92f.entry.js +0 -1
  221. package/dist/sankhyablocks/p-d7d85fa9.entry.js +0 -1
  222. package/dist/sankhyablocks/p-e3bd000e.entry.js +0 -1
  223. package/dist/sankhyablocks/p-ee619e29.entry.js +0 -1
  224. package/dist/sankhyablocks/p-fcdcb0e2.entry.js +0 -1
  225. package/dist/sankhyablocks/p-fdc4cb9b.entry.js +0 -1
  226. /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
  227. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
  228. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
  229. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
  230. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
  231. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
  232. /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
  233. /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
  234. /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
  235. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
  236. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
  237. /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -1,28 +1,34 @@
1
- import { ApplicationContext, DataType, FloatingManager, JSUtils, ObjectUtils, StringUtils, UserInterface, } from '@sankhyalabs/core';
1
+ import { ApplicationContext, DataType, ElementIDUtils, FloatingManager, JSUtils, ObjectUtils, StringUtils, UserInterface, } from '@sankhyalabs/core';
2
+ import { CSSVarsUtils } from "@sankhyalabs/ezui/dist/collection/utils";
2
3
  import { h } from '@stencil/core';
3
4
  import { SIMPLE_CRUD_MODE, VIEW_MODE } from '../../lib/utils/constants';
4
5
  import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
5
- import { PresentationMode } from '../../lib';
6
+ import { CrudUtils, FormConfigFetcher, PresentationMode } from '../../lib';
6
7
  import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
7
8
  import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
8
9
  import SnkMultiSelectionListDataSource from '../snk-grid/filtercolumn/SnkMultiSelectionListDataSource';
9
10
  import { buildFieldSearch, openFieldSearch } from '../snk-taskbar/subcomponents/field-search';
11
+ import { ConfigStorage } from '../../lib/configs/ConfigStorage';
12
+ import { SnkFormConfigManager } from '../snk-form-config/SnkFormConfigManager';
13
+ import { REGULAR_DEFAULT_BTNS, REGULAR_SELECTED_BTNS } from './regular-buttons';
10
14
  export class SnkSimpleCrud {
11
15
  constructor() {
12
- this.REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
13
- this.REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
14
16
  this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
15
17
  this._keyDownHandler = (event) => this.keyDownListener(event);
18
+ this._formConfigFetcher = new FormConfigFetcher();
16
19
  this._taskbarProcessor = new TaskbarProcessor({
17
- "snkSimpleCrudTaskbar.form_regular": this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(TaskbarElement.GRID_MODE),
18
- "snkSimpleCrudTaskbar.grid_regular": this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(TaskbarElement.FORM_MODE),
19
- "snkSimpleCrudTaskbar.form_selected": this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(TaskbarElement.GRID_MODE),
20
- "snkSimpleCrudTaskbar.grid_selected": this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(TaskbarElement.FORM_MODE),
20
+ "snkSimpleCrudTaskbar.form_regular": this.getButtons(false, TaskbarElement.GRID_MODE),
21
+ "snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, TaskbarElement.FORM_MODE),
22
+ "snkSimpleCrudTaskbar.form_selected": this.getButtons(true, TaskbarElement.GRID_MODE),
23
+ "snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, TaskbarElement.FORM_MODE),
21
24
  "snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
22
25
  });
26
+ this._showPopUpGridConfig = false;
27
+ this._showFormConfig = false;
23
28
  this._currentViewMode = VIEW_MODE.GRID;
24
29
  this._config = undefined;
25
30
  this._fieldToGetFocus = undefined;
31
+ this._customContainerId = `SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
26
32
  this.dataState = undefined;
27
33
  this.dataUnit = undefined;
28
34
  this.mode = SIMPLE_CRUD_MODE.SERVER;
@@ -31,11 +37,39 @@ export class SnkSimpleCrud {
31
37
  this._formFields = [];
32
38
  this.multipleSelection = undefined;
33
39
  this.useCancelConfirm = true;
40
+ this.resourceID = undefined;
34
41
  this.taskbarManager = undefined;
35
42
  this.messagesBuilder = undefined;
36
43
  this.useEnterLikeTab = false;
37
44
  this.actionsList = undefined;
38
45
  this.configName = undefined;
46
+ this.showConfiguratorButtons = undefined;
47
+ this.gridLegacyConfigName = undefined;
48
+ this.formLegacyConfigName = undefined;
49
+ this.ignoreReadOnlyFormFields = false;
50
+ }
51
+ handleResourceIDChanged(newValue, oldValue) {
52
+ if (StringUtils.isEmpty(newValue)) {
53
+ return;
54
+ }
55
+ if (newValue === oldValue) {
56
+ return;
57
+ }
58
+ this.loadFormConfig(true);
59
+ this.loadGridConfig(true);
60
+ }
61
+ getButtons(selected, changeModeBtn) {
62
+ return this.addConfigButton(this.resolveInMemoryBtns(selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS)
63
+ .concat(changeModeBtn));
64
+ }
65
+ addConfigButton(buttons) {
66
+ if (this.configName === undefined) {
67
+ return buttons;
68
+ }
69
+ return buttons.concat(TaskbarElement.CONFIGURATOR);
70
+ }
71
+ get application() {
72
+ return ApplicationContext.getContextValue("__SNK__APPLICATION__");
39
73
  }
40
74
  resolveInMemoryBtns(taskbarButtons) {
41
75
  const newTaskBarConfig = [...taskbarButtons];
@@ -55,7 +89,10 @@ export class SnkSimpleCrud {
55
89
  }
56
90
  actionClickListener(evt) {
57
91
  const act = evt.detail;
58
- if (act === TaskbarElement.GRID_MODE) {
92
+ if (act === TaskbarElement.CONFIGURATOR) {
93
+ this._snkConfigurator.open();
94
+ }
95
+ else if (act === TaskbarElement.GRID_MODE) {
59
96
  this.goToView(VIEW_MODE.GRID);
60
97
  }
61
98
  else if (act === TaskbarElement.FORM_MODE) {
@@ -73,17 +110,129 @@ export class SnkSimpleCrud {
73
110
  this.dataStateChange.emit(newValue);
74
111
  }
75
112
  }
76
- componentWillRender() {
113
+ async observeFormLegacy(newValue, oldValue) {
114
+ await this.handleUpdateFormLegacyConfig(newValue, oldValue);
115
+ }
116
+ async observeGridLegacy(newValue, oldValue) {
117
+ await this.handleUpdateGridLegacyConfig(newValue, oldValue);
118
+ }
119
+ async handleUpdateGridLegacyConfig(newValue, oldValue) {
120
+ if (newValue == undefined || newValue == oldValue) {
121
+ return;
122
+ }
123
+ if (!this._gridConfigAlreadyLoaded) {
124
+ return;
125
+ }
126
+ await this.loadGridConfig(true);
127
+ }
128
+ async handleUpdateFormLegacyConfig(newValue, oldValue) {
129
+ if (newValue == undefined || newValue == oldValue) {
130
+ return;
131
+ }
132
+ if (!this._formConfigAlreadyLoaded) {
133
+ return;
134
+ }
135
+ this.loadFormConfig(true);
136
+ }
137
+ openConfig(viewMode) {
138
+ this._snkConfigurator.close();
139
+ if (viewMode === VIEW_MODE.GRID) {
140
+ this.openGridConfig();
141
+ }
142
+ else if (viewMode === VIEW_MODE.FORM) {
143
+ this.openFormConfig();
144
+ }
145
+ }
146
+ openGridConfig() {
147
+ this._grid.getColumnsState()
148
+ .then((gridColumns) => {
149
+ this._snkGridConfig.columns = gridColumns.filter(c => c.name);
150
+ this._snkGridConfig.selectedIndex = 0;
151
+ this._showPopUpGridConfig = true;
152
+ });
153
+ }
154
+ async openFormConfig() {
155
+ var _a, _b;
156
+ //No momento não daremos suporte para configuraçao de formulário quando houver legacy config
157
+ if (this.formLegacyConfigName) {
158
+ const title = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.formConfigUnavaliable.title", undefined);
159
+ const message = (_b = this.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage("snkSimpleCrud.formConfigUnavaliable.message", undefined);
160
+ await this.application.alert(title, message);
161
+ return;
162
+ }
163
+ this._showFormConfig = true;
164
+ }
165
+ addGridLegacyConfigName() {
166
+ if (this.gridLegacyConfigName && this.configName) {
167
+ ConfigStorage.addGridLegacyConfig(this.configName, this.gridLegacyConfigName);
168
+ }
169
+ }
170
+ loadGridConfig(forceUpdate) {
171
+ if (this.configName === undefined) {
172
+ return;
173
+ }
174
+ if ((this.gridConfig != undefined || this._gridConfigAlreadyLoaded) && !forceUpdate) {
175
+ return;
176
+ }
177
+ this.addGridLegacyConfigName();
178
+ this._gridConfigAlreadyLoaded = true;
179
+ return new Promise((accept, reject) => {
180
+ ConfigStorage.loadGridConfig(this.configName, this.resolveResourceID())
181
+ .then(config => {
182
+ this.setGridConfig(config);
183
+ accept();
184
+ })
185
+ .catch(reason => {
186
+ reject(reason);
187
+ });
188
+ });
189
+ }
190
+ formConfigIsLoaded() {
191
+ return this.formConfig != undefined || this._formConfigAlreadyLoaded;
192
+ }
193
+ async loadFormConfig(forceLoad = false) {
194
+ if (this.configName === undefined) {
195
+ return;
196
+ }
197
+ if (this._formConfigManager == undefined) {
198
+ this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
199
+ this._formConfigManager.setConfig(this.formConfig);
200
+ }
201
+ if (this.formConfigIsLoaded() && !forceLoad) {
202
+ return;
203
+ }
204
+ this._formConfigAlreadyLoaded = true;
205
+ let loadedLegacyConfig = await this._formConfigFetcher.fetchLegacyConfigurableForm(this.formLegacyConfigName);
206
+ if (loadedLegacyConfig != undefined) {
207
+ this._formConfigManager.setConfig(loadedLegacyConfig);
208
+ this.setFormConfig(loadedLegacyConfig);
209
+ return;
210
+ }
211
+ this.setFormConfig(await this._formConfigManager.loadConfig());
212
+ }
213
+ async componentWillRender() {
214
+ this._resourceID = await this.application.getResourceID();
77
215
  this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
216
+ if (this.configName === undefined) {
217
+ return;
218
+ }
219
+ if (this.gridConfig != undefined || this._gridConfigAlreadyLoaded) {
220
+ return;
221
+ }
222
+ await this.addGridLegacyConfigName();
223
+ this.loadGridConfig();
224
+ this.loadFormConfig();
78
225
  }
79
226
  componentWillLoad() {
80
227
  this.processMetadata();
81
228
  this.onModeChange();
82
229
  this.configDatasource();
83
230
  }
231
+ componentDidLoad() {
232
+ CSSVarsUtils.applyVarsGrid(this._element, this._grid);
233
+ }
84
234
  configDatasource() {
85
- const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
86
- this._multiSelectionListDataSource.setApplication(application);
235
+ this._multiSelectionListDataSource.setApplication(this.application);
87
236
  this._multiSelectionListDataSource.setDataUnit(this.dataUnit);
88
237
  }
89
238
  getTaskBarId() {
@@ -124,6 +273,27 @@ export class SnkSimpleCrud {
124
273
  getRecords() {
125
274
  return Promise.resolve(this.dataUnit.records);
126
275
  }
276
+ /**
277
+ * Usado para abrir o configurator do CRUD
278
+ */
279
+ async openConfigurator() {
280
+ var _a;
281
+ (_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.open();
282
+ }
283
+ /**
284
+ * Usado para fechar o configurator do CRUD
285
+ */
286
+ async closeConfigurator() {
287
+ var _a;
288
+ (_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
289
+ }
290
+ updateConfig() {
291
+ if (this._formConfigManager == undefined) {
292
+ this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
293
+ }
294
+ this._formConfigManager.setConfig(this.formConfig);
295
+ return;
296
+ }
127
297
  processMetadata() {
128
298
  const fieldsMetadataElem = this._element.querySelectorAll("snk-field-metadata");
129
299
  const fieldMetadata = [];
@@ -178,6 +348,14 @@ export class SnkSimpleCrud {
178
348
  this.dataUnit.clearSelection();
179
349
  }
180
350
  }
351
+ handleConfiguratorEvent(evt, type) {
352
+ evt.stopImmediatePropagation();
353
+ if (type === 'SAVE') {
354
+ this.configuratorSave.emit();
355
+ return;
356
+ }
357
+ this.configuratorCancel.emit();
358
+ }
181
359
  getColumnSearch(actionButton, item) {
182
360
  if (this._columnSearch != undefined) {
183
361
  return this._columnSearch;
@@ -219,7 +397,9 @@ export class SnkSimpleCrud {
219
397
  return (_b = (_a = this.formConfig) === null || _a === void 0 ? void 0 : _a.fields) !== null && _b !== void 0 ? _b : this._formFields;
220
398
  }
221
399
  handleFormSetFields(fields) {
222
- this._formFields = fields !== null && fields !== void 0 ? fields : [];
400
+ if (!ObjectUtils.equals(this._formFields, fields)) {
401
+ this._formFields = fields !== null && fields !== void 0 ? fields : [];
402
+ }
223
403
  }
224
404
  fieldsOptionLoader(argument) {
225
405
  const searchTerm = argument === null || argument === void 0 ? void 0 : argument.toLowerCase();
@@ -291,11 +471,59 @@ export class SnkSimpleCrud {
291
471
  disconnectedCallback() {
292
472
  window.removeEventListener("keydown", this._keyDownHandler);
293
473
  }
474
+ gridConfigChangeHandler(evt) {
475
+ const config = evt.detail;
476
+ ConfigStorage.saveGridConfig(config, this.configName, this.resolveResourceID());
477
+ evt.stopPropagation();
478
+ }
479
+ modalConfigChangeHandler(evt) {
480
+ const config = evt.detail;
481
+ this._grid.setColumnsState(config.columns)
482
+ .then(() => {
483
+ this.setGridConfig(config);
484
+ this.closeGridConfig();
485
+ });
486
+ evt.stopPropagation();
487
+ }
488
+ setGridConfig(config) {
489
+ this.gridConfig = config;
490
+ CrudUtils.assertDefaultSorting(this.gridConfig, this.dataUnit);
491
+ }
492
+ setFormConfig(config, forceUpdate) {
493
+ if (this.formConfig && !forceUpdate)
494
+ return;
495
+ this.formConfig = config;
496
+ }
497
+ closeGridConfig() {
498
+ this._showPopUpGridConfig = false;
499
+ }
500
+ closeFormConfig() {
501
+ this._showFormConfig = false;
502
+ }
503
+ //No momento não daremos suporte para configuração de formulário quando houver formLegacyConfigName
504
+ handleShowFormConfig() {
505
+ return this._showFormConfig && !this.formLegacyConfigName;
506
+ }
507
+ resolveResourceID() {
508
+ return StringUtils.isEmpty(this.resourceID) ? this._resourceID : this.resourceID;
509
+ }
510
+ getFormConfig() {
511
+ var _a, _b;
512
+ const configFromManager = (_a = this._formConfigManager) === null || _a === void 0 ? void 0 : _a.getConfig((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.insertionMode, this.dataUnit, this.ignoreReadOnlyFormFields);
513
+ if (!this.configName && !configFromManager) {
514
+ return this.formConfig;
515
+ }
516
+ return configFromManager;
517
+ }
518
+ /* istanbul ignore next */
294
519
  render() {
295
520
  var _a;
296
- return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), columnfilterDataSource: this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
521
+ if (this.dataUnit == undefined) {
522
+ return;
523
+ }
524
+ return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
297
525
  ? undefined
298
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class: "ez-margin-top--large", dataUnit: this.dataUnit, config: this.formConfig, fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }))))));
526
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class: `ez-margin-top--large ${this.handleShowFormConfig() ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this.handleShowFormConfig() && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
299
527
  }
300
528
  static get is() { return "snk-simple-crud"; }
301
529
  static get encapsulation() { return "scoped"; }
@@ -376,7 +604,7 @@ export class SnkSimpleCrud {
376
604
  },
377
605
  "gridConfig": {
378
606
  "type": "unknown",
379
- "mutable": false,
607
+ "mutable": true,
380
608
  "complexType": {
381
609
  "original": "IGridConfig",
382
610
  "resolved": "IGridConfig",
@@ -396,7 +624,7 @@ export class SnkSimpleCrud {
396
624
  },
397
625
  "formConfig": {
398
626
  "type": "unknown",
399
- "mutable": false,
627
+ "mutable": true,
400
628
  "complexType": {
401
629
  "original": "IFormConfig",
402
630
  "resolved": "IFormConfig",
@@ -449,6 +677,23 @@ export class SnkSimpleCrud {
449
677
  "reflect": false,
450
678
  "defaultValue": "true"
451
679
  },
680
+ "resourceID": {
681
+ "type": "string",
682
+ "mutable": false,
683
+ "complexType": {
684
+ "original": "string",
685
+ "resolved": "string",
686
+ "references": {}
687
+ },
688
+ "required": false,
689
+ "optional": false,
690
+ "docs": {
691
+ "tags": [],
692
+ "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
693
+ },
694
+ "attribute": "resource-i-d",
695
+ "reflect": false
696
+ },
452
697
  "taskbarManager": {
453
698
  "type": "unknown",
454
699
  "mutable": false,
@@ -546,14 +791,86 @@ export class SnkSimpleCrud {
546
791
  },
547
792
  "attribute": "config-name",
548
793
  "reflect": false
794
+ },
795
+ "showConfiguratorButtons": {
796
+ "type": "boolean",
797
+ "mutable": false,
798
+ "complexType": {
799
+ "original": "boolean",
800
+ "resolved": "boolean",
801
+ "references": {}
802
+ },
803
+ "required": false,
804
+ "optional": false,
805
+ "docs": {
806
+ "tags": [],
807
+ "text": "Usado para exibir os bot\u00F5es de a\u00E7\u00E3o do snk-configurator."
808
+ },
809
+ "attribute": "show-configurator-buttons",
810
+ "reflect": false
811
+ },
812
+ "gridLegacyConfigName": {
813
+ "type": "string",
814
+ "mutable": false,
815
+ "complexType": {
816
+ "original": "string",
817
+ "resolved": "string",
818
+ "references": {}
819
+ },
820
+ "required": false,
821
+ "optional": false,
822
+ "docs": {
823
+ "tags": [],
824
+ "text": "Chave da configura\u00E7\u00E3o legado da grade."
825
+ },
826
+ "attribute": "grid-legacy-config-name",
827
+ "reflect": false
828
+ },
829
+ "formLegacyConfigName": {
830
+ "type": "string",
831
+ "mutable": false,
832
+ "complexType": {
833
+ "original": "string",
834
+ "resolved": "string",
835
+ "references": {}
836
+ },
837
+ "required": false,
838
+ "optional": false,
839
+ "docs": {
840
+ "tags": [],
841
+ "text": "Chave da configura\u00E7\u00E3o legado do formul\u00E1rio."
842
+ },
843
+ "attribute": "form-legacy-config-name",
844
+ "reflect": false
845
+ },
846
+ "ignoreReadOnlyFormFields": {
847
+ "type": "boolean",
848
+ "mutable": false,
849
+ "complexType": {
850
+ "original": "boolean",
851
+ "resolved": "boolean",
852
+ "references": {}
853
+ },
854
+ "required": false,
855
+ "optional": false,
856
+ "docs": {
857
+ "tags": [],
858
+ "text": "Ignora os campos \"somente leitura\" no modo de inser\u00E7\u00E3o."
859
+ },
860
+ "attribute": "ignore-read-only-form-fields",
861
+ "reflect": false,
862
+ "defaultValue": "false"
549
863
  }
550
864
  };
551
865
  }
552
866
  static get states() {
553
867
  return {
868
+ "_showPopUpGridConfig": {},
869
+ "_showFormConfig": {},
554
870
  "_currentViewMode": {},
555
871
  "_config": {},
556
872
  "_fieldToGetFocus": {},
873
+ "_customContainerId": {},
557
874
  "_formFields": {}
558
875
  };
559
876
  }
@@ -635,6 +952,36 @@ export class SnkSimpleCrud {
635
952
  }
636
953
  }
637
954
  }
955
+ }, {
956
+ "method": "configuratorSave",
957
+ "name": "configuratorSave",
958
+ "bubbles": true,
959
+ "cancelable": true,
960
+ "composed": true,
961
+ "docs": {
962
+ "tags": [],
963
+ "text": "Emitido quando salva a configura\u00E7\u00E3o no configurator do CRUD."
964
+ },
965
+ "complexType": {
966
+ "original": "any",
967
+ "resolved": "any",
968
+ "references": {}
969
+ }
970
+ }, {
971
+ "method": "configuratorCancel",
972
+ "name": "configuratorCancel",
973
+ "bubbles": true,
974
+ "cancelable": true,
975
+ "composed": true,
976
+ "docs": {
977
+ "tags": [],
978
+ "text": "Emitido quando cancela o salvamento da configura\u00E7\u00E3o no configurator do CRUD."
979
+ },
980
+ "complexType": {
981
+ "original": "any",
982
+ "resolved": "any",
983
+ "references": {}
984
+ }
638
985
  }];
639
986
  }
640
987
  static get methods() {
@@ -733,17 +1080,74 @@ export class SnkSimpleCrud {
733
1080
  "text": "",
734
1081
  "tags": []
735
1082
  }
1083
+ },
1084
+ "openConfigurator": {
1085
+ "complexType": {
1086
+ "signature": "() => Promise<void>",
1087
+ "parameters": [],
1088
+ "references": {
1089
+ "Promise": {
1090
+ "location": "global"
1091
+ }
1092
+ },
1093
+ "return": "Promise<void>"
1094
+ },
1095
+ "docs": {
1096
+ "text": "Usado para abrir o configurator do CRUD",
1097
+ "tags": []
1098
+ }
1099
+ },
1100
+ "closeConfigurator": {
1101
+ "complexType": {
1102
+ "signature": "() => Promise<void>",
1103
+ "parameters": [],
1104
+ "references": {
1105
+ "Promise": {
1106
+ "location": "global"
1107
+ }
1108
+ },
1109
+ "return": "Promise<void>"
1110
+ },
1111
+ "docs": {
1112
+ "text": "Usado para fechar o configurator do CRUD",
1113
+ "tags": []
1114
+ }
1115
+ },
1116
+ "updateConfig": {
1117
+ "complexType": {
1118
+ "signature": "() => Promise<void>",
1119
+ "parameters": [],
1120
+ "references": {
1121
+ "Promise": {
1122
+ "location": "global"
1123
+ }
1124
+ },
1125
+ "return": "Promise<void>"
1126
+ },
1127
+ "docs": {
1128
+ "text": "",
1129
+ "tags": []
1130
+ }
736
1131
  }
737
1132
  };
738
1133
  }
739
1134
  static get elementRef() { return "_element"; }
740
1135
  static get watchers() {
741
1136
  return [{
1137
+ "propName": "resourceID",
1138
+ "methodName": "handleResourceIDChanged"
1139
+ }, {
742
1140
  "propName": "mode",
743
1141
  "methodName": "onModeChange"
744
1142
  }, {
745
1143
  "propName": "dataState",
746
1144
  "methodName": "observeDataState"
1145
+ }, {
1146
+ "propName": "formLegacyConfigName",
1147
+ "methodName": "observeFormLegacy"
1148
+ }, {
1149
+ "propName": "gridLegacyConfigName",
1150
+ "methodName": "observeGridLegacy"
747
1151
  }];
748
1152
  }
749
1153
  static get listeners() {
@@ -88,7 +88,7 @@ export const buildElem = (element, className, dataElementId, getTitle, action, i
88
88
  case TaskbarElement.MORE_OPTIONS:
89
89
  return actionButton(element, className, dataElementId, title, isEnabled, actions, action);
90
90
  case TaskbarElement.DIVIDER:
91
- return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium", "data-taskbar-divider": true });
91
+ return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin--none ez-margin-left--medium", "data-taskbar-divider": true });
92
92
  case TaskbarElement.DATA_EXPORTER:
93
93
  const provider = (_a = store.get("exporterProviders")) === null || _a === void 0 ? void 0 : _a[configName];
94
94
  return h("snk-data-exporter", { class: className, provider: provider, "data-element-id": dataElementId, "data-taskbar-element": element });