@sankhyalabs/sankhyablocks 10.1.0-dev.52 → 10.1.0-dev.54

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 (265) hide show
  1. package/dist/cjs/{ConfigStorage-a1fab5ca.js → ConfigStorage-4201dd3d.js} +2 -2
  2. package/dist/cjs/{DataFetcher-384d2ce8.js → DataFetcher-b3a8075d.js} +2830 -2
  3. package/dist/cjs/FormConfigHelper-c5f5473a.js +342 -0
  4. package/dist/cjs/{ISave-ecbe9336.js → ISave-4674c283.js} +1 -1
  5. package/dist/cjs/{PersonalizedFilterUtils-eccb267a.js → PersonalizedFilterUtils-263e4d24.js} +52 -5
  6. package/dist/cjs/{SnkFormConfigManager-44386305.js → SnkFormConfigManager-c3a49038.js} +2 -2
  7. package/dist/cjs/{SnkMultiSelectionListDataSource-d341dd02.js → SnkMultiSelectionListDataSource-3a13fd34.js} +4 -4
  8. package/dist/cjs/{auth-fetcher-6b134ec4.js → auth-fetcher-0ecc53ff.js} +1 -1
  9. package/dist/cjs/{dataunit-fetcher-b9822794.js → dataunit-fetcher-c7e66f0d.js} +13 -4
  10. package/dist/cjs/{filter-type.enum-2bb46d2a.js → filter-type.enum-b3b388af.js} +7 -0
  11. package/dist/cjs/{form-config-fetcher-45d1964c.js → form-config-fetcher-f80dbc3b.js} +23 -5
  12. package/dist/cjs/index-1894343a.js +24 -36
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -5
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/snk-actions-button_9.cjs.entry.js +5 -6
  17. package/dist/cjs/snk-application.cjs.entry.js +7 -8
  18. package/dist/cjs/snk-attach_11.cjs.entry.js +2950 -0
  19. package/dist/cjs/snk-crud.cjs.entry.js +31 -243
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  21. package/dist/cjs/{snk-data-unit-4b6dc396.js → snk-data-unit-35f10e01.js} +11 -11
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
  24. package/dist/cjs/snk-dynaform-config-header_5.cjs.entry.js +739 -0
  25. package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +938 -0
  26. package/dist/cjs/snk-dynaform-field-config_2.cjs.entry.js +327 -0
  27. package/dist/cjs/snk-dynaform-guides-view-e98f7f3a.js +747 -0
  28. package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +23 -0
  29. package/dist/cjs/snk-dynaform.cjs.entry.js +675 -0
  30. package/dist/cjs/{snk-expression-group_2.cjs.entry.js → snk-expression-group_4.cjs.entry.js} +421 -18
  31. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +41 -44
  32. package/dist/cjs/snk-form_2.cjs.entry.js +4 -5
  33. package/dist/cjs/snk-grid.cjs.entry.js +7 -8
  34. package/dist/cjs/{snk-guides-viewer-8e7a503b.js → snk-guides-viewer-3054d541.js} +1 -1
  35. package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -6
  36. package/dist/cjs/snk-layout-form-config.cjs.entry.js +4 -5
  37. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -5
  38. package/dist/cjs/taskbarUtils-383c596e.js +231 -0
  39. package/dist/collection/collection-manifest.json +17 -0
  40. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomEditor.js +1 -0
  41. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomRender.js +1 -0
  42. package/dist/collection/components/snk-dynaform/snk-dynaform.css +64 -0
  43. package/dist/collection/components/snk-dynaform/snk-dynaform.js +1657 -0
  44. package/dist/collection/components/snk-dynaform/subcomponents/CardFormResizeObserver.js +26 -0
  45. package/dist/collection/components/snk-dynaform/subcomponents/GuideBuilder.js +51 -0
  46. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +112 -0
  47. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +992 -0
  48. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +64 -0
  49. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +588 -0
  50. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +98 -0
  51. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1167 -0
  52. package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
  53. package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +212 -0
  54. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.css +17 -0
  55. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.js +236 -0
  56. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.css +41 -0
  57. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.js +170 -0
  58. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.css +22 -0
  59. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.js +408 -0
  60. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.css +88 -0
  61. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.js +209 -0
  62. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.css +167 -0
  63. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.js +655 -0
  64. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.css +42 -0
  65. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.js +171 -0
  66. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.css +66 -0
  67. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.js +557 -0
  68. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.css +80 -0
  69. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.js +326 -0
  70. package/dist/collection/components/snk-grid/snk-grid.css +4 -2
  71. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +11 -1
  72. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
  73. package/dist/components/dataunit-fetcher.js +11 -1
  74. package/dist/components/form-config-fetcher.js +22 -4
  75. package/dist/components/index.d.ts +12 -0
  76. package/dist/components/index.js +12 -0
  77. package/dist/components/snk-crud.js +1 -212
  78. package/dist/components/snk-dynaform-config-header.d.ts +11 -0
  79. package/dist/components/snk-dynaform-config-header.js +6 -0
  80. package/dist/components/snk-dynaform-config-header2.js +103 -0
  81. package/dist/components/snk-dynaform-configs-button.d.ts +11 -0
  82. package/dist/components/snk-dynaform-configs-button.js +6 -0
  83. package/dist/components/snk-dynaform-configs-button2.js +76 -0
  84. package/dist/components/snk-dynaform-detail-view.d.ts +11 -0
  85. package/dist/components/snk-dynaform-detail-view.js +6 -0
  86. package/dist/components/snk-dynaform-detail-view2.js +1835 -0
  87. package/dist/components/snk-dynaform-field-config.d.ts +11 -0
  88. package/dist/components/snk-dynaform-field-config.js +6 -0
  89. package/dist/components/snk-dynaform-field-config2.js +605 -0
  90. package/dist/components/snk-dynaform-field-item.d.ts +11 -0
  91. package/dist/components/snk-dynaform-field-item.js +6 -0
  92. package/dist/components/snk-dynaform-field-item2.js +96 -0
  93. package/dist/components/snk-dynaform-fields-layout.d.ts +11 -0
  94. package/dist/components/snk-dynaform-fields-layout.js +6 -0
  95. package/dist/components/snk-dynaform-fields-layout2.js +428 -0
  96. package/dist/components/snk-dynaform-fields-selector.d.ts +11 -0
  97. package/dist/components/snk-dynaform-fields-selector.js +6 -0
  98. package/dist/components/snk-dynaform-fields-selector2.js +104 -0
  99. package/dist/components/snk-dynaform-form-config.d.ts +11 -0
  100. package/dist/components/snk-dynaform-form-config.js +6 -0
  101. package/dist/components/snk-dynaform-form-config2.js +430 -0
  102. package/dist/components/snk-dynaform-form-view.d.ts +11 -0
  103. package/dist/components/snk-dynaform-form-view.js +6 -0
  104. package/dist/components/snk-dynaform-form-view2.js +270 -0
  105. package/dist/components/snk-dynaform-guides-configurator.d.ts +11 -0
  106. package/dist/components/snk-dynaform-guides-configurator.js +6 -0
  107. package/dist/components/snk-dynaform-guides-configurator2.js +173 -0
  108. package/dist/components/snk-dynaform-guides-view.d.ts +11 -0
  109. package/dist/components/snk-dynaform-guides-view.js +6 -0
  110. package/dist/components/snk-dynaform.d.ts +11 -0
  111. package/dist/components/snk-dynaform.js +1003 -0
  112. package/dist/components/snk-grid2.js +1 -1
  113. package/dist/components/taskbarUtils.js +224 -0
  114. package/dist/esm/{ConfigStorage-76872695.js → ConfigStorage-e834d1ea.js} +2 -2
  115. package/dist/esm/{DataFetcher-e60f8d53.js → DataFetcher-5ed0a377.js} +2830 -3
  116. package/dist/esm/FormConfigHelper-efc29480.js +328 -0
  117. package/dist/esm/{ISave-4929c071.js → ISave-5b46d691.js} +1 -1
  118. package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
  119. package/dist/esm/{SnkFormConfigManager-83f6b22f.js → SnkFormConfigManager-bfd575c2.js} +2 -2
  120. package/dist/esm/{SnkMultiSelectionListDataSource-18abafb1.js → SnkMultiSelectionListDataSource-22b50dd6.js} +4 -4
  121. package/dist/esm/{auth-fetcher-1a31c1e4.js → auth-fetcher-5283045d.js} +1 -1
  122. package/dist/esm/{dataunit-fetcher-c176e002.js → dataunit-fetcher-2200fdd6.js} +12 -3
  123. package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
  124. package/dist/esm/{form-config-fetcher-b44b2727.js → form-config-fetcher-db1bf140.js} +23 -5
  125. package/dist/esm/index-04f73a26.js +24 -36
  126. package/dist/esm/loader.js +1 -1
  127. package/dist/esm/pesquisa-grid_2.entry.js +4 -5
  128. package/dist/esm/sankhyablocks.js +1 -1
  129. package/dist/esm/snk-actions-button_9.entry.js +5 -6
  130. package/dist/esm/snk-application.entry.js +6 -7
  131. package/dist/esm/snk-attach_11.entry.js +2936 -0
  132. package/dist/esm/snk-crud.entry.js +6 -218
  133. package/dist/esm/snk-data-exporter.entry.js +5 -6
  134. package/dist/esm/{snk-data-unit-d8cfa950.js → snk-data-unit-e8bd4143.js} +2 -2
  135. package/dist/esm/snk-data-unit.entry.js +3 -4
  136. package/dist/esm/snk-detail-view.entry.js +7 -8
  137. package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
  138. package/dist/esm/snk-dynaform-detail-view_2.entry.js +933 -0
  139. package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
  140. package/dist/esm/snk-dynaform-guides-view-1f1455d6.js +744 -0
  141. package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
  142. package/dist/esm/snk-dynaform.entry.js +671 -0
  143. package/dist/esm/{snk-expression-group_2.entry.js → snk-expression-group_4.entry.js} +405 -4
  144. package/dist/esm/snk-filter-bar_4.entry.js +5 -8
  145. package/dist/esm/snk-form_2.entry.js +4 -5
  146. package/dist/esm/snk-grid.entry.js +7 -8
  147. package/dist/esm/{snk-guides-viewer-adf39ea2.js → snk-guides-viewer-95fefcaa.js} +1 -1
  148. package/dist/esm/snk-guides-viewer.entry.js +5 -6
  149. package/dist/esm/snk-layout-form-config.entry.js +4 -5
  150. package/dist/esm/snk-pesquisa.entry.js +4 -5
  151. package/dist/esm/taskbarUtils-682ca78c.js +225 -0
  152. package/dist/sankhyablocks/p-06b6c284.entry.js +1 -0
  153. package/dist/sankhyablocks/p-09e2255b.entry.js +1 -0
  154. package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
  155. package/dist/sankhyablocks/{p-5c250661.js → p-1a04f537.js} +1 -1
  156. package/dist/sankhyablocks/{p-ab5e12fa.js → p-1cc4cf61.js} +1 -1
  157. package/dist/sankhyablocks/{p-f5ad0720.js → p-2040953e.js} +1 -1
  158. package/dist/sankhyablocks/p-22ddc1a5.entry.js +1 -0
  159. package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
  160. package/dist/sankhyablocks/p-2b581179.entry.js +1 -0
  161. package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
  162. package/dist/sankhyablocks/p-451b5bcc.entry.js +1 -0
  163. package/dist/sankhyablocks/p-46d7e2de.js +1 -0
  164. package/dist/sankhyablocks/{p-3c990841.js → p-51e853f2.js} +1 -1
  165. package/dist/sankhyablocks/p-51f1485c.entry.js +1 -0
  166. package/dist/sankhyablocks/p-58709cf9.js +1 -0
  167. package/dist/sankhyablocks/p-589016e2.entry.js +1 -0
  168. package/dist/sankhyablocks/p-5c6eede7.js +60 -0
  169. package/dist/sankhyablocks/p-5d02c032.js +1 -0
  170. package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
  171. package/dist/sankhyablocks/p-670c43e3.entry.js +1 -0
  172. package/dist/sankhyablocks/{p-b1bb4cf1.js → p-70c2ee5c.js} +1 -1
  173. package/dist/sankhyablocks/p-77c26de0.js +1 -0
  174. package/dist/sankhyablocks/p-92c71225.entry.js +1 -0
  175. package/dist/sankhyablocks/p-9c89a76a.entry.js +1 -0
  176. package/dist/sankhyablocks/{p-4f7adf97.js → p-b1bf9564.js} +1 -1
  177. package/dist/sankhyablocks/p-c538bd6c.entry.js +1 -0
  178. package/dist/sankhyablocks/p-ccd61eb8.entry.js +1 -0
  179. package/dist/sankhyablocks/{p-3704bf1b.js → p-d5810110.js} +1 -1
  180. package/dist/sankhyablocks/p-d88278f8.js +28 -0
  181. package/dist/sankhyablocks/p-dc45e9e5.entry.js +1 -0
  182. package/dist/sankhyablocks/{p-8fe740b7.entry.js → p-dc83c70f.entry.js} +2 -2
  183. package/dist/sankhyablocks/p-e5362a5c.js +1 -0
  184. package/dist/sankhyablocks/p-edd44079.entry.js +1 -0
  185. package/dist/sankhyablocks/p-eff38390.entry.js +1 -0
  186. package/dist/sankhyablocks/p-ff28e5e4.entry.js +1 -0
  187. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  188. package/dist/types/components/snk-dynaform/interfaces/PropsCustomEditor.d.ts +4 -0
  189. package/dist/types/components/snk-dynaform/interfaces/PropsCustomRender.d.ts +4 -0
  190. package/dist/types/components/snk-dynaform/subcomponents/CardFormResizeObserver.d.ts +1 -0
  191. package/dist/types/components/snk-dynaform/subcomponents/GuideBuilder.d.ts +14 -0
  192. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +158 -0
  193. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +107 -0
  194. package/dist/types/components/snk-dynaform-form-config/FormConfigHelper.d.ts +36 -0
  195. package/dist/types/components/snk-dynaform-form-config/SnkFormConfigManager.d.ts +35 -0
  196. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.d.ts +23 -0
  197. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.d.ts +19 -0
  198. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.d.ts +56 -0
  199. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.d.ts +74 -0
  200. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.d.ts +21 -0
  201. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-form-config.d.ts +95 -0
  202. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.d.ts +35 -0
  203. package/dist/types/components.d.ts +2403 -1322
  204. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
  205. package/package.json +5 -1
  206. package/react/components.d.ts +12 -0
  207. package/react/components.js +12 -0
  208. package/react/components.js.map +1 -1
  209. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +0 -2833
  210. package/dist/cjs/default-filters-a09bf82b.js +0 -8
  211. package/dist/cjs/index-62760a9c.js +0 -49
  212. package/dist/cjs/index-8d94b7e0.js +0 -7
  213. package/dist/cjs/snk-attach.cjs.entry.js +0 -948
  214. package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
  215. package/dist/cjs/snk-filter-advanced-mode_3.cjs.entry.js +0 -99
  216. package/dist/cjs/snk-filter-detail.cjs.entry.js +0 -198
  217. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +0 -408
  218. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +0 -109
  219. package/dist/cjs/snk-image-input.cjs.entry.js +0 -160
  220. package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
  221. package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
  222. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +0 -2831
  223. package/dist/esm/default-filters-50105e43.js +0 -8
  224. package/dist/esm/index-620ac460.js +0 -7
  225. package/dist/esm/index-8acbae97.js +0 -49
  226. package/dist/esm/snk-attach.entry.js +0 -944
  227. package/dist/esm/snk-default-filter.entry.js +0 -73
  228. package/dist/esm/snk-filter-advanced-mode_3.entry.js +0 -93
  229. package/dist/esm/snk-filter-detail.entry.js +0 -194
  230. package/dist/esm/snk-filter-field-search_2.entry.js +0 -403
  231. package/dist/esm/snk-filter-modal-item.entry.js +0 -105
  232. package/dist/esm/snk-image-input.entry.js +0 -156
  233. package/dist/esm/snk-personalized-filter.entry.js +0 -354
  234. package/dist/esm/snk-simple-crud.entry.js +0 -861
  235. package/dist/sankhyablocks/p-0a4cdcde.entry.js +0 -1
  236. package/dist/sankhyablocks/p-0afc64df.entry.js +0 -1
  237. package/dist/sankhyablocks/p-10f27dc6.entry.js +0 -1
  238. package/dist/sankhyablocks/p-20f03230.entry.js +0 -1
  239. package/dist/sankhyablocks/p-2af8aca3.js +0 -1
  240. package/dist/sankhyablocks/p-3870748a.js +0 -28
  241. package/dist/sankhyablocks/p-3d294185.entry.js +0 -1
  242. package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
  243. package/dist/sankhyablocks/p-4d04bc75.entry.js +0 -1
  244. package/dist/sankhyablocks/p-554c0e54.js +0 -1
  245. package/dist/sankhyablocks/p-57c184a2.entry.js +0 -1
  246. package/dist/sankhyablocks/p-68c1a093.js +0 -1
  247. package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
  248. package/dist/sankhyablocks/p-6ae7543b.entry.js +0 -1
  249. package/dist/sankhyablocks/p-6e278003.js +0 -60
  250. package/dist/sankhyablocks/p-82bcb4cf.entry.js +0 -1
  251. package/dist/sankhyablocks/p-84345e7a.js +0 -1
  252. package/dist/sankhyablocks/p-95af0bb1.entry.js +0 -1
  253. package/dist/sankhyablocks/p-a905712a.entry.js +0 -1
  254. package/dist/sankhyablocks/p-aff2d081.entry.js +0 -1
  255. package/dist/sankhyablocks/p-b0a357b4.entry.js +0 -1
  256. package/dist/sankhyablocks/p-b568c1d4.js +0 -1
  257. package/dist/sankhyablocks/p-bab4cde4.entry.js +0 -1
  258. package/dist/sankhyablocks/p-bd3c1aaa.entry.js +0 -1
  259. package/dist/sankhyablocks/p-cc64239c.entry.js +0 -1
  260. package/dist/sankhyablocks/p-cd00a3d1.entry.js +0 -1
  261. package/dist/sankhyablocks/p-d9ec8c4b.entry.js +0 -1
  262. package/dist/sankhyablocks/p-dbdbb77a.entry.js +0 -1
  263. package/dist/sankhyablocks/p-e8df1dea.entry.js +0 -1
  264. package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
  265. package/dist/sankhyablocks/p-f4184ce7.js +0 -1
@@ -0,0 +1,1167 @@
1
+ import { Action as DUAction, ElementIDUtils, KeyboardManager, ObjectUtils } from '@sankhyalabs/core';
2
+ import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
3
+ import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
4
+ import { Fragment, h } from '@stencil/core';
5
+ import { TAB_NAMES, VIEW_MODE } from '../../../../lib/utils/constants';
6
+ import { SnkFormConfigManager } from '../../../snk-dynaform-form-config/SnkFormConfigManager';
7
+ import { TaskbarElement } from '../../../snk-taskbar/elements/taskbar-elements';
8
+ export class SnkDynaformGuidesViewer {
9
+ constructor() {
10
+ this.dataUnit = undefined;
11
+ this.dataState = undefined;
12
+ this.configName = undefined;
13
+ this.entityPath = undefined;
14
+ this.actionsList = undefined;
15
+ this.recordsValidator = undefined;
16
+ this.masterFormConfig = undefined;
17
+ this.selectedGuide = undefined;
18
+ this.taskbarManager = undefined;
19
+ this.messagesBuilder = undefined;
20
+ this.canEdit = true;
21
+ this.presentationMode = undefined;
22
+ this.resourceID = undefined;
23
+ this.detailTaskbarCustomContainerId = undefined;
24
+ this.formLegacyConfigName = undefined;
25
+ this.enableGridInsert = false;
26
+ this.ignoreReadOnlyFormFields = undefined;
27
+ this.getCustomTitle = undefined;
28
+ this.customGuidesConfig = [];
29
+ this._guides = [];
30
+ this._formEditorConfigManager = undefined;
31
+ this._formEditorDataUnit = undefined;
32
+ this._fieldToGetFocus = undefined;
33
+ this._customEditors = {};
34
+ this._customRenders = {};
35
+ this._fieldsProps = {};
36
+ this._mainForm = undefined;
37
+ this._mainFormName = undefined;
38
+ this._errorTabs = new Set();
39
+ this._hasToCreateFieldSearch = true;
40
+ }
41
+ observeDataUnit() {
42
+ this.loadGuides(true);
43
+ }
44
+ async observeFormConfigManager(value) {
45
+ var _a, _b;
46
+ const showFormConfig = !!value;
47
+ await ((_a = this._viewStack) === null || _a === void 0 ? void 0 : _a.show(showFormConfig ?
48
+ GUIDES_VIEWER_VIEW_MODE.CONFIG :
49
+ GUIDES_VIEWER_VIEW_MODE.GUIDES));
50
+ (_b = this.formConfigVisibilityChanged) === null || _b === void 0 ? void 0 : _b.emit(showFormConfig);
51
+ }
52
+ observeDataState(newValue, oldValue) {
53
+ var _a, _b, _c, _d, _e, _f;
54
+ const newRecordsIds = (_b = (_a = newValue === null || newValue === void 0 ? void 0 : newValue.selectionInfo) === null || _a === void 0 ? void 0 : _a.recordIds) !== null && _b !== void 0 ? _b : (_c = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord) === null || _c === void 0 ? void 0 : _c['__record__id__'];
55
+ const oldRecordsIds = (_e = (_d = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectionInfo) === null || _d === void 0 ? void 0 : _d.recordIds) !== null && _e !== void 0 ? _e : (_f = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord) === null || _f === void 0 ? void 0 : _f['__record__id__'];
56
+ if (!ObjectUtils.equals(newRecordsIds, oldRecordsIds)) {
57
+ this.loadGuides((oldValue === null || oldValue === void 0 ? void 0 : oldValue.insertionMode) != (newValue === null || newValue === void 0 ? void 0 : newValue.insertionMode));
58
+ }
59
+ }
60
+ observeMasterFormConfig() {
61
+ var _a;
62
+ this.loadGuides(this.noGuideSelected());
63
+ (_a = this.snkMasterFormConfigChange) === null || _a === void 0 ? void 0 : _a.emit(this.masterFormConfig);
64
+ }
65
+ /**
66
+ * Abre o configurador do formulário
67
+ * @param detail - Define se a configuração que está sendo carregada é
68
+ * referente a um form detail.
69
+ */
70
+ async showFormConfig(detail = false) {
71
+ var _a, _b;
72
+ const masterConfig = !detail || this._currentDetail == undefined;
73
+ this._formEditorConfigManager = masterConfig ? this._configManager : (_a = this._currentDetail) === null || _a === void 0 ? void 0 : _a.formConfigManager;
74
+ this._formEditorDataUnit = masterConfig ? this.dataUnit : (_b = this._currentDetail) === null || _b === void 0 ? void 0 : _b.dataUnit;
75
+ }
76
+ /**
77
+ * Registra um editor customizado para campos da grade e formulário
78
+ */
79
+ async addCustomEditor(fieldName, customEditor) {
80
+ this._customEditors = Object.assign(Object.assign({}, this._customEditors), { [fieldName]: customEditor });
81
+ }
82
+ /**
83
+ * Registra um render customizado para colunas da grid.
84
+ */
85
+ async addGridCustomRender(fieldName, customRender) {
86
+ this._customRenders = Object.assign(Object.assign({}, this._customRenders), { [fieldName]: customRender });
87
+ }
88
+ ;
89
+ /**
90
+ * Altera/adiciona uma propriedade nos metadados do campo.
91
+ */
92
+ async setFieldProp(fieldName, propName, value) {
93
+ const newFieldsProps = {
94
+ [fieldName]: Object.assign(Object.assign({}, this._fieldsProps[fieldName]), { [propName]: value })
95
+ };
96
+ this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
97
+ }
98
+ /**
99
+ * Atribui o foco para o componente.
100
+ */
101
+ async setFocus() {
102
+ var _a;
103
+ (_a = this._container) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
104
+ }
105
+ /**
106
+ * Recarrega os guias baseada nos metadados atuais.
107
+ */
108
+ async reloadGuides() {
109
+ this.loadGuides(false);
110
+ }
111
+ exitViewer() {
112
+ var _a, _b;
113
+ if (!this.enableGridInsert && ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.isDirty())) {
114
+ this.dataUnit.cancelEdition({ after: () => { var _a; return (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit(); } });
115
+ }
116
+ else {
117
+ (_b = this.exit) === null || _b === void 0 ? void 0 : _b.emit();
118
+ }
119
+ }
120
+ onActionClick(evt) {
121
+ var _a;
122
+ if (evt.detail === TaskbarElement.CONFIGURATOR) {
123
+ if (evt.target.dataset.taskbarOwner != "master") {
124
+ (_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.open();
125
+ evt.stopImmediatePropagation();
126
+ evt.stopPropagation();
127
+ }
128
+ }
129
+ }
130
+ onContentCardChanged(evt) {
131
+ if (!this._configManager || !this.dataUnit) {
132
+ return;
133
+ }
134
+ SnkDynaformGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this._configManager)
135
+ .then(() => { var _a; return this.masterFormConfig = (_a = this._configManager) === null || _a === void 0 ? void 0 : _a.getConfig(this.dataUnit); });
136
+ }
137
+ /**
138
+ * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
139
+ * através de um pequeno modulo na estrutura da aplicação:
140
+ * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
141
+ * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-crud.msg.ts"
142
+ */
143
+ getMessage(key) {
144
+ var _a, _b, _c, _d, _e, _f;
145
+ if ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.isMultipleEdition) {
146
+ const selectedRecords = (_c = (_b = this.dataUnit.getSelectionInfo()) === null || _b === void 0 ? void 0 : _b.records) !== null && _c !== void 0 ? _c : [];
147
+ return (_d = this.messagesBuilder) === null || _d === void 0 ? void 0 : _d.getMessage("snkCrud.multipleEdition.editing", { COUNT: selectedRecords.length });
148
+ }
149
+ return (_e = this.messagesBuilder) === null || _e === void 0 ? void 0 : _e.getMessage(key, (_f = this.dataUnit) === null || _f === void 0 ? void 0 : _f.getSelectedRecord());
150
+ }
151
+ loadGuides(changeSelection) {
152
+ var _a;
153
+ if (!this.dataUnit || !this._configManager) {
154
+ return;
155
+ }
156
+ if (!this._configManager.isLoaded) {
157
+ return;
158
+ }
159
+ this._masterFormMetadata = buildFormMetadata(this.masterFormConfig, this.dataUnit, true, this.customGuidesConfig);
160
+ const allSheets = (_a = this._masterFormMetadata) === null || _a === void 0 ? void 0 : _a.getAllSheets();
161
+ if (!allSheets) {
162
+ return;
163
+ }
164
+ const currentRecord = this.dataUnit.getSelectedRecord();
165
+ const disableDetails = this.hasToDisableDetails(currentRecord);
166
+ const guides = [];
167
+ let mainFormName;
168
+ const listSheetsValues = Array.from(allSheets.values());
169
+ listSheetsValues.forEach((sheet) => {
170
+ if ((sheet === null || sheet === void 0 ? void 0 : sheet.name) === TAB_NAMES.main) {
171
+ mainFormName = sheet === null || sheet === void 0 ? void 0 : sheet.name;
172
+ return;
173
+ }
174
+ const item = { id: sheet === null || sheet === void 0 ? void 0 : sheet.name, label: sheet === null || sheet === void 0 ? void 0 : sheet.label };
175
+ if (this.isDetail(sheet === null || sheet === void 0 ? void 0 : sheet.name) && disableDetails) {
176
+ item.tooltip = this.getMessage("snkCrud.detail.tooltip.needSingleSelection");
177
+ item.disabled = true;
178
+ }
179
+ if (sheet.isCustom && sheet.ctxProps) {
180
+ Object.entries(sheet.ctxProps).forEach(([key, value]) => {
181
+ if (value !== undefined) {
182
+ item[key] = value;
183
+ }
184
+ });
185
+ }
186
+ if (!item.props) {
187
+ item.props = {};
188
+ }
189
+ item.props.isAdditional = sheet.name.includes("AD_");
190
+ item.props.isCustom = !!sheet.isCustom;
191
+ guides.push(item);
192
+ });
193
+ this._mainFormName = mainFormName;
194
+ this._guides = guides;
195
+ const currentStillExists = this.selectedGuide
196
+ && this._guides.some(g => g.id === this.selectedGuide.id);
197
+ if (changeSelection || !currentStillExists) {
198
+ this.selectedGuide = this._guides && this._guides.length > 0 ? this._guides[0] : undefined;
199
+ }
200
+ }
201
+ hasToDisableDetails(currentRecord) {
202
+ return !currentRecord
203
+ || !this.dataUnit
204
+ || this.dataUnit.isNewRecord(currentRecord.__record__id__)
205
+ || this.dataUnit.isMultipleEdition;
206
+ }
207
+ isDetail(formId) {
208
+ return FormMetadata.getDetailName(formId) != undefined;
209
+ }
210
+ buildTabItems() {
211
+ return this._guides.map((guide, index) => ({
212
+ tabKey: guide.id,
213
+ label: guide.label,
214
+ index,
215
+ disabled: guide.disabled,
216
+ rightIcon: this._errorTabs.has(guide.id) ? 'alert-circle-inverted' : undefined,
217
+ leftIcon: this.getTabLeftIcon(guide),
218
+ }));
219
+ }
220
+ getTabLeftIcon(guide) {
221
+ var _a, _b;
222
+ if (guide.icon) {
223
+ return guide.icon;
224
+ }
225
+ if ((_a = guide.props) === null || _a === void 0 ? void 0 : _a.isCustom) {
226
+ return 'puzzle-piece';
227
+ }
228
+ if ((_b = guide.props) === null || _b === void 0 ? void 0 : _b.isAdditional) {
229
+ return 'puzzle-piece';
230
+ }
231
+ return undefined;
232
+ }
233
+ isCustomGuide(guideId) {
234
+ var _a;
235
+ if (!guideId) {
236
+ return false;
237
+ }
238
+ return !!((_a = this.customGuidesConfig) === null || _a === void 0 ? void 0 : _a.some(g => g.id === guideId));
239
+ }
240
+ onTabChange(tab) {
241
+ const targetGuide = this._guides.find(g => g.id === tab.tabKey);
242
+ if (!targetGuide || targetGuide.disabled) {
243
+ return;
244
+ }
245
+ this.selectedGuide = targetGuide;
246
+ }
247
+ static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
248
+ return configManager.saveCardState(formName, cardConfig, propertyChanged);
249
+ }
250
+ static buildMainForm(params) {
251
+ if (params.formMetadata == undefined || params.mainFormName == undefined) {
252
+ return undefined;
253
+ }
254
+ const mainSheet = params.formMetadata.getSheet(params.mainFormName);
255
+ if (mainSheet == undefined) {
256
+ return undefined;
257
+ }
258
+ return (h("snk-dynaform-form-view", { ref: (ref) => { var _a; return (_a = params.onMainFormRef) === null || _a === void 0 ? void 0 : _a.call(params, ref); }, label: mainSheet.label, name: params.mainFormName, fields: mainSheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, fieldToFocus: params.fieldToFocus, key: params.mainFormName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps, entityPath: params.entityPath, fieldSearch: params.fieldSearch }));
259
+ }
260
+ static buildFixedForms(params) {
261
+ var _a;
262
+ const cardsState = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.cardsState;
263
+ if (cardsState == undefined || params.formMetadata == undefined) {
264
+ return undefined;
265
+ }
266
+ const fixedEntries = Array.from(cardsState.entries())
267
+ .filter(([formName, cardConfig]) => (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed) && formName != params.selectedForm && formName != params.mainFormName)
268
+ .sort(([, cardConfigA], [, cardConfigB]) => {
269
+ const indexA = (cardConfigA === null || cardConfigA === void 0 ? void 0 : cardConfigA.fixSequence) || 0;
270
+ const indexB = (cardConfigB === null || cardConfigB === void 0 ? void 0 : cardConfigB.fixSequence) || 0;
271
+ return indexA - indexB;
272
+ });
273
+ if (fixedEntries.length === 0) {
274
+ return undefined;
275
+ }
276
+ return (h(Fragment, null, fixedEntries.map(([formName]) => {
277
+ const sheet = params.formMetadata.getSheet(formName);
278
+ if (sheet == undefined) {
279
+ return undefined;
280
+ }
281
+ return h("snk-dynaform-form-view", { label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps, entityPath: params.entityPath });
282
+ })));
283
+ }
284
+ getContent() {
285
+ var _a;
286
+ if (!this.selectedGuide) {
287
+ return undefined;
288
+ }
289
+ const guideId = this.selectedGuide.id;
290
+ if (this.isCustomGuide(guideId)) {
291
+ return h("slot", { name: guideId });
292
+ }
293
+ const childEntityName = FormMetadata.getDetailName(guideId);
294
+ if (childEntityName) {
295
+ return (h("snk-dynaform-detail-view", { ref: (ref) => {
296
+ if (ref)
297
+ this._currentDetail = ref;
298
+ }, dataUnitName: `${this.entityPath}/${childEntityName}`, entityName: childEntityName, label: this.selectedGuide.label, key: `detail_${guideId}`, canEdit: this.canEdit, resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode, messagesBuilder: this.messagesBuilder }));
299
+ }
300
+ if (guideId === this._mainFormName) {
301
+ return undefined;
302
+ }
303
+ const sheet = (_a = this._masterFormMetadata) === null || _a === void 0 ? void 0 : _a.getSheet(guideId);
304
+ if (!sheet) {
305
+ return undefined;
306
+ }
307
+ return (h("snk-dynaform-form-view", { name: guideId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }));
308
+ }
309
+ clearFieldToFocusHandler() {
310
+ this._fieldToGetFocus = undefined;
311
+ }
312
+ getConfigViewMode() {
313
+ return VIEW_MODE.GRID;
314
+ }
315
+ changeConfigViewMode(mode) {
316
+ var _a, _b;
317
+ if (this._currentDetail) {
318
+ (_b = (_a = this._currentDetail).changeViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, mode);
319
+ }
320
+ }
321
+ openConfig(mode) {
322
+ var _a, _b, _c, _d;
323
+ (_b = (_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close) === null || _b === void 0 ? void 0 : _b.call(_a);
324
+ if (this._currentDetail) {
325
+ if (mode === VIEW_MODE.FORM) {
326
+ this.showFormConfig(true);
327
+ }
328
+ else {
329
+ (_d = (_c = this._currentDetail).configGrid) === null || _d === void 0 ? void 0 : _d.call(_c);
330
+ }
331
+ }
332
+ }
333
+ noGuideSelected() {
334
+ var _a;
335
+ return this.selectedGuide === undefined || TAB_NAMES.main === ((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id);
336
+ }
337
+ addFormLegacyConfigName() {
338
+ var _a;
339
+ if (this.formLegacyConfigName) {
340
+ (_a = this._configManager) === null || _a === void 0 ? void 0 : _a.addFormLegacyConfig(this.formLegacyConfigName);
341
+ }
342
+ }
343
+ setMasterFormConfig(config) {
344
+ this.masterFormConfig = config;
345
+ }
346
+ componentWillLoad() {
347
+ var _a;
348
+ if (this.resourceID == undefined) {
349
+ throw new Error((_a = this.getMessage("snkCrud.errors.resourceIDNotProvided")) !== null && _a !== void 0 ? _a : "");
350
+ }
351
+ this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, this.setMasterFormConfig.bind(this), this.dataUnit);
352
+ this.addFormLegacyConfigName();
353
+ this._configManager.loadConfig();
354
+ }
355
+ async dataUnitActionHandler(action) {
356
+ var _a, _b;
357
+ switch (action.type) {
358
+ case DUAction.EDITION_CANCELED:
359
+ case DUAction.DATA_SAVED:
360
+ if ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.isMultipleEdition) {
361
+ this.exitViewer();
362
+ if (this.dataUnit) {
363
+ this.dataUnit.isMultipleEdition = false;
364
+ }
365
+ }
366
+ break;
367
+ case DUAction.FIELD_INVALIDATED:
368
+ const guideName = this.getGuideName((_b = action.payload) === null || _b === void 0 ? void 0 : _b.fieldName);
369
+ if (guideName) {
370
+ this._errorTabs = new Set([...this._errorTabs, guideName]);
371
+ }
372
+ break;
373
+ case DUAction.METADATA_LOADED:
374
+ case DUAction.MULTIPLE_EDITION_CHANGED:
375
+ this.loadGuides(this.noGuideSelected());
376
+ break;
377
+ }
378
+ }
379
+ getGuideName(fieldName) {
380
+ var _a, _b;
381
+ const sheets = (_a = this._masterFormMetadata) === null || _a === void 0 ? void 0 : _a.getAllSheets();
382
+ if (!sheets) {
383
+ return "";
384
+ }
385
+ for (const sheet of sheets) {
386
+ const formFields = (_b = sheet[1]) === null || _b === void 0 ? void 0 : _b.fields;
387
+ if (!formFields)
388
+ continue;
389
+ for (const field of formFields) {
390
+ if (field.name === fieldName) {
391
+ return sheet[0];
392
+ }
393
+ }
394
+ }
395
+ return "";
396
+ }
397
+ getTitle() {
398
+ var _a, _b, _c;
399
+ return (_c = (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title")) !== null && _c !== void 0 ? _c : "";
400
+ }
401
+ getTitleTooltip() {
402
+ var _a;
403
+ if (!((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.isMultipleEdition))
404
+ return undefined;
405
+ return this.buildRecordIdsArray();
406
+ }
407
+ buildRecordIdsArray() {
408
+ var _a, _b, _c;
409
+ const selectedRecords = (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo()) === null || _b === void 0 ? void 0 : _b.records) !== null && _c !== void 0 ? _c : [];
410
+ if (selectedRecords.length === 0) {
411
+ return "[]";
412
+ }
413
+ const labels = selectedRecords.map(record => { var _a; return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkCrud.title", record); });
414
+ return `[${labels.join(", ")}]`;
415
+ }
416
+ getFieldsSearch() {
417
+ var _a;
418
+ if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
419
+ this._hasToCreateFieldSearch = false;
420
+ const item = {
421
+ label: (_a = this.getMessage("snkSimpleCrud.findFields")) !== null && _a !== void 0 ? _a : "Busca de campos",
422
+ value: "findFields",
423
+ };
424
+ this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
425
+ }
426
+ return this._fieldSearch;
427
+ }
428
+ fieldsOptionLoader(argument) {
429
+ var _a, _b;
430
+ return Promise.resolve((_b = (_a = this._configManager) === null || _a === void 0 ? void 0 : _a.getFieldsList(argument).map(field => ({ value: field.name, label: field.label }))) !== null && _b !== void 0 ? _b : []);
431
+ }
432
+ onSelectField(option) {
433
+ var _a, _b, _c;
434
+ if (option == undefined) {
435
+ return;
436
+ }
437
+ this._fieldToGetFocus = option.value;
438
+ const fieldGuideName = this.getGuideName(option.value);
439
+ if (!fieldGuideName) {
440
+ return;
441
+ }
442
+ if (fieldGuideName === this._mainFormName) {
443
+ (_b = (_a = this._mainForm) === null || _a === void 0 ? void 0 : _a.showUp) === null || _b === void 0 ? void 0 : _b.call(_a);
444
+ return;
445
+ }
446
+ if (fieldGuideName !== ((_c = this.selectedGuide) === null || _c === void 0 ? void 0 : _c.id)) {
447
+ const targetGuide = this._guides.find(g => g.id === fieldGuideName);
448
+ if (targetGuide && !targetGuide.disabled) {
449
+ this.selectedGuide = targetGuide;
450
+ }
451
+ }
452
+ }
453
+ componentDidLoad() {
454
+ var _a;
455
+ (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.subscribe(this.dataUnitActionHandler.bind(this));
456
+ this.initKeyboardManager();
457
+ this.getFieldsSearch();
458
+ }
459
+ disconnectedCallback() {
460
+ var _a;
461
+ (_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
462
+ }
463
+ async initKeyboardManager() {
464
+ this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
465
+ if (this._keyboardManager) {
466
+ this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
467
+ var _a, _b;
468
+ if (!this._mainForm)
469
+ return;
470
+ await ((_b = (_a = this._mainForm).showSearchField) === null || _b === void 0 ? void 0 : _b.call(_a));
471
+ }, { description: this.getMessage("snkSimpleCrud.findFields"), element: this._element });
472
+ }
473
+ }
474
+ render() {
475
+ var _a, _b, _c;
476
+ if (this._formEditorConfigManager != undefined) {
477
+ return (h("snk-dynaform-form-config", { ref: (ref) => {
478
+ if (ref)
479
+ this._container = ref;
480
+ }, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = undefined }));
481
+ }
482
+ if (!this.dataUnit || !((_a = this._configManager) === null || _a === void 0 ? void 0 : _a.isLoaded)) {
483
+ return undefined;
484
+ }
485
+ const showTabs = this._guides && this._guides.length > 0;
486
+ const fixedFormsParams = {
487
+ formConfig: this.masterFormConfig,
488
+ formMetadata: this._masterFormMetadata,
489
+ selectedForm: (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.id,
490
+ mainFormName: this._mainFormName,
491
+ dataUnit: this.dataUnit,
492
+ recordsValidator: this.recordsValidator,
493
+ fieldToFocus: this._fieldToGetFocus,
494
+ onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this),
495
+ propsCustomEditor: this._customEditors,
496
+ fieldsProps: this._fieldsProps,
497
+ entityPath: this.entityPath,
498
+ fieldSearch: this._fieldSearch,
499
+ onMainFormRef: (ref) => { this._mainForm = ref; }
500
+ };
501
+ return (h("section", { class: "snk-guides-viewer", ref: (ref) => {
502
+ if (ref)
503
+ this._container = ref;
504
+ }, tabindex: -1 }, this.getTitle() && (h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center", key: "header" }, h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge", title: this.getTitleTooltip() }, this.getTitle()))))), h("div", { class: "snk-guides-viewer__container" }, SnkDynaformGuidesViewer.buildMainForm(fixedFormsParams), showTabs &&
505
+ h("ez-tabselector", Object.assign({ class: "snk-guides-viewer__tabselector", tabs: this.buildTabItems(), selectedTab: (_c = this.selectedGuide) === null || _c === void 0 ? void 0 : _c.id, onEzChange: (evt) => this.onTabChange(evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("tabselector")}` })), h("div", { class: "snk-guides-viewer__detail-container" }, SnkDynaformGuidesViewer.buildFixedForms(fixedFormsParams), this.getContent())), h("snk-configurator", { ref: (ref) => {
506
+ if (ref)
507
+ this._snkConfigurator = ref;
508
+ }, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
509
+ }
510
+ static get is() { return "snk-dynaform-guides-view"; }
511
+ static get encapsulation() { return "scoped"; }
512
+ static get originalStyleUrls() {
513
+ return {
514
+ "$": ["snk-dynaform-guides-view.css"]
515
+ };
516
+ }
517
+ static get styleUrls() {
518
+ return {
519
+ "$": ["snk-dynaform-guides-view.css"]
520
+ };
521
+ }
522
+ static get properties() {
523
+ return {
524
+ "dataUnit": {
525
+ "type": "unknown",
526
+ "mutable": false,
527
+ "complexType": {
528
+ "original": "DataUnit",
529
+ "resolved": "DataUnit",
530
+ "references": {
531
+ "DataUnit": {
532
+ "location": "import",
533
+ "path": "@sankhyalabs/core"
534
+ }
535
+ }
536
+ },
537
+ "required": false,
538
+ "optional": true,
539
+ "docs": {
540
+ "tags": [],
541
+ "text": "Inst\u00E2ncia do DataUnit master."
542
+ }
543
+ },
544
+ "dataState": {
545
+ "type": "unknown",
546
+ "mutable": false,
547
+ "complexType": {
548
+ "original": "DataState",
549
+ "resolved": "DataState",
550
+ "references": {
551
+ "DataState": {
552
+ "location": "import",
553
+ "path": "../../../snk-data-unit/snk-data-unit"
554
+ }
555
+ }
556
+ },
557
+ "required": false,
558
+ "optional": true,
559
+ "docs": {
560
+ "tags": [],
561
+ "text": "Representa o estado do dataUnit master."
562
+ }
563
+ },
564
+ "configName": {
565
+ "type": "string",
566
+ "mutable": false,
567
+ "complexType": {
568
+ "original": "string",
569
+ "resolved": "string",
570
+ "references": {}
571
+ },
572
+ "required": false,
573
+ "optional": true,
574
+ "docs": {
575
+ "tags": [],
576
+ "text": "Nome usado para guardar/recuperar as configura\u00E7\u00F5es do formul\u00E1rio."
577
+ },
578
+ "attribute": "config-name",
579
+ "reflect": false
580
+ },
581
+ "entityPath": {
582
+ "type": "string",
583
+ "mutable": false,
584
+ "complexType": {
585
+ "original": "string",
586
+ "resolved": "string",
587
+ "references": {}
588
+ },
589
+ "required": false,
590
+ "optional": true,
591
+ "docs": {
592
+ "tags": [],
593
+ "text": "Determina todo o caminho de entidades."
594
+ },
595
+ "attribute": "entity-path",
596
+ "reflect": false
597
+ },
598
+ "actionsList": {
599
+ "type": "unknown",
600
+ "mutable": false,
601
+ "complexType": {
602
+ "original": "Array<Action>",
603
+ "resolved": "Action[]",
604
+ "references": {
605
+ "Array": {
606
+ "location": "global"
607
+ },
608
+ "Action": {
609
+ "location": "import",
610
+ "path": "../../../snk-taskbar/snk-taskbar"
611
+ }
612
+ }
613
+ },
614
+ "required": false,
615
+ "optional": true,
616
+ "docs": {
617
+ "tags": [],
618
+ "text": "A\u00E7\u00F5es a serem colocadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
619
+ }
620
+ },
621
+ "recordsValidator": {
622
+ "type": "unknown",
623
+ "mutable": false,
624
+ "complexType": {
625
+ "original": "IRecordValidator",
626
+ "resolved": "IRecordValidator",
627
+ "references": {
628
+ "IRecordValidator": {
629
+ "location": "import",
630
+ "path": "@sankhyalabs/ezui/dist/types/utils/form/interfaces"
631
+ }
632
+ }
633
+ },
634
+ "required": false,
635
+ "optional": true,
636
+ "docs": {
637
+ "tags": [],
638
+ "text": "Validador respons\u00E1vel por checar a integridade das informa\u00E7\u00F5es do registro."
639
+ }
640
+ },
641
+ "masterFormConfig": {
642
+ "type": "unknown",
643
+ "mutable": true,
644
+ "complexType": {
645
+ "original": "IFormConfig",
646
+ "resolved": "IFormConfig",
647
+ "references": {
648
+ "IFormConfig": {
649
+ "location": "import",
650
+ "path": "@sankhyalabs/ezui/dist/types/utils/form/interfaces"
651
+ }
652
+ }
653
+ },
654
+ "required": false,
655
+ "optional": true,
656
+ "docs": {
657
+ "tags": [],
658
+ "text": "Configura\u00E7\u00E3o do formul\u00E1rio master."
659
+ }
660
+ },
661
+ "selectedGuide": {
662
+ "type": "unknown",
663
+ "mutable": true,
664
+ "complexType": {
665
+ "original": "IGuideItem",
666
+ "resolved": "IGuideItem",
667
+ "references": {
668
+ "IGuideItem": {
669
+ "location": "import",
670
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-guide-navigator/interfaces"
671
+ }
672
+ }
673
+ },
674
+ "required": false,
675
+ "optional": true,
676
+ "docs": {
677
+ "tags": [],
678
+ "text": "Guia selecionada."
679
+ }
680
+ },
681
+ "taskbarManager": {
682
+ "type": "unknown",
683
+ "mutable": false,
684
+ "complexType": {
685
+ "original": "TaskbarManager",
686
+ "resolved": "TaskbarManager",
687
+ "references": {
688
+ "TaskbarManager": {
689
+ "location": "import",
690
+ "path": "../../../snk-taskbar/snk-taskbar"
691
+ }
692
+ }
693
+ },
694
+ "required": false,
695
+ "optional": true,
696
+ "docs": {
697
+ "tags": [],
698
+ "text": "Gerenciador das barras de tarefas. \u00C9 poss\u00EDvel determinar bot\u00F5es espec\u00EDficos\nou mesmo gerenciar o estado dos bot\u00F5es."
699
+ }
700
+ },
701
+ "messagesBuilder": {
702
+ "type": "unknown",
703
+ "mutable": true,
704
+ "complexType": {
705
+ "original": "SnkMessageBuilder",
706
+ "resolved": "SnkMessageBuilder",
707
+ "references": {
708
+ "SnkMessageBuilder": {
709
+ "location": "import",
710
+ "path": "../../../../lib/message/SnkMessageBuilder"
711
+ }
712
+ }
713
+ },
714
+ "required": false,
715
+ "optional": true,
716
+ "docs": {
717
+ "tags": [],
718
+ "text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
719
+ }
720
+ },
721
+ "canEdit": {
722
+ "type": "boolean",
723
+ "mutable": false,
724
+ "complexType": {
725
+ "original": "boolean",
726
+ "resolved": "boolean",
727
+ "references": {}
728
+ },
729
+ "required": false,
730
+ "optional": false,
731
+ "docs": {
732
+ "tags": [],
733
+ "text": "Define se a edi\u00E7\u00E3o est\u00E1 habilitada na grid."
734
+ },
735
+ "attribute": "can-edit",
736
+ "reflect": false,
737
+ "defaultValue": "true"
738
+ },
739
+ "presentationMode": {
740
+ "type": "string",
741
+ "mutable": false,
742
+ "complexType": {
743
+ "original": "PresentationMode",
744
+ "resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
745
+ "references": {
746
+ "PresentationMode": {
747
+ "location": "import",
748
+ "path": "../../../../lib"
749
+ }
750
+ }
751
+ },
752
+ "required": false,
753
+ "optional": true,
754
+ "docs": {
755
+ "tags": [],
756
+ "text": "Altera o modo de apresenta\u00E7\u00E3o dos bot\u00F5es do snk-taskbar."
757
+ },
758
+ "attribute": "presentation-mode",
759
+ "reflect": false
760
+ },
761
+ "resourceID": {
762
+ "type": "string",
763
+ "mutable": false,
764
+ "complexType": {
765
+ "original": "string",
766
+ "resolved": "string",
767
+ "references": {}
768
+ },
769
+ "required": false,
770
+ "optional": true,
771
+ "docs": {
772
+ "tags": [],
773
+ "text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
774
+ },
775
+ "attribute": "resource-i-d",
776
+ "reflect": false
777
+ },
778
+ "detailTaskbarCustomContainerId": {
779
+ "type": "string",
780
+ "mutable": false,
781
+ "complexType": {
782
+ "original": "string",
783
+ "resolved": "string",
784
+ "references": {}
785
+ },
786
+ "required": false,
787
+ "optional": true,
788
+ "docs": {
789
+ "tags": [],
790
+ "text": "Define o identificador do container de elementos customizados da Taskbar da aba de detalhes."
791
+ },
792
+ "attribute": "detail-taskbar-custom-container-id",
793
+ "reflect": false
794
+ },
795
+ "formLegacyConfigName": {
796
+ "type": "string",
797
+ "mutable": false,
798
+ "complexType": {
799
+ "original": "string",
800
+ "resolved": "string",
801
+ "references": {}
802
+ },
803
+ "required": false,
804
+ "optional": true,
805
+ "docs": {
806
+ "tags": [],
807
+ "text": "Chave da configura\u00E7\u00E3o legado do formul\u00E1rio."
808
+ },
809
+ "attribute": "form-legacy-config-name",
810
+ "reflect": false
811
+ },
812
+ "enableGridInsert": {
813
+ "type": "boolean",
814
+ "mutable": false,
815
+ "complexType": {
816
+ "original": "boolean",
817
+ "resolved": "boolean",
818
+ "references": {}
819
+ },
820
+ "required": false,
821
+ "optional": true,
822
+ "docs": {
823
+ "tags": [],
824
+ "text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
825
+ },
826
+ "attribute": "enable-grid-insert",
827
+ "reflect": false,
828
+ "defaultValue": "false"
829
+ },
830
+ "ignoreReadOnlyFormFields": {
831
+ "type": "boolean",
832
+ "mutable": false,
833
+ "complexType": {
834
+ "original": "boolean",
835
+ "resolved": "boolean",
836
+ "references": {}
837
+ },
838
+ "required": false,
839
+ "optional": true,
840
+ "docs": {
841
+ "tags": [],
842
+ "text": "Ignora os campos \"somente leitura\" no modo de inser\u00E7\u00E3o."
843
+ },
844
+ "attribute": "ignore-read-only-form-fields",
845
+ "reflect": false
846
+ },
847
+ "getCustomTitle": {
848
+ "type": "unknown",
849
+ "mutable": false,
850
+ "complexType": {
851
+ "original": "() => string",
852
+ "resolved": "() => string",
853
+ "references": {}
854
+ },
855
+ "required": false,
856
+ "optional": true,
857
+ "docs": {
858
+ "tags": [],
859
+ "text": "Fornece uma fun\u00E7\u00E3o para obter um t\u00EDtulo customizado do formul\u00E1rio."
860
+ }
861
+ },
862
+ "customGuidesConfig": {
863
+ "type": "unknown",
864
+ "mutable": false,
865
+ "complexType": {
866
+ "original": "Array<CustomGuideItem>",
867
+ "resolved": "CustomGuideItem[]",
868
+ "references": {
869
+ "Array": {
870
+ "location": "global"
871
+ },
872
+ "CustomGuideItem": {
873
+ "location": "import",
874
+ "path": "../../../snk-crud/subcomponents/snk-guides-viewer"
875
+ }
876
+ }
877
+ },
878
+ "required": false,
879
+ "optional": true,
880
+ "docs": {
881
+ "tags": [],
882
+ "text": "Fornece as informa\u00E7\u00F5es das guias personalizadas. Cada guia personalizada\nser\u00E1 adicionada como uma aba do tabselector. O conte\u00FAdo de cada aba \u00E9\nrenderizado atrav\u00E9s de um slot cujo nome corresponde ao `id` da guia."
883
+ },
884
+ "defaultValue": "[]"
885
+ }
886
+ };
887
+ }
888
+ static get states() {
889
+ return {
890
+ "_guides": {},
891
+ "_formEditorConfigManager": {},
892
+ "_formEditorDataUnit": {},
893
+ "_fieldToGetFocus": {},
894
+ "_customEditors": {},
895
+ "_customRenders": {},
896
+ "_fieldsProps": {},
897
+ "_mainForm": {},
898
+ "_mainFormName": {},
899
+ "_errorTabs": {},
900
+ "_hasToCreateFieldSearch": {}
901
+ };
902
+ }
903
+ static get events() {
904
+ return [{
905
+ "method": "snkMasterFormConfigChange",
906
+ "name": "snkMasterFormConfigChange",
907
+ "bubbles": true,
908
+ "cancelable": true,
909
+ "composed": true,
910
+ "docs": {
911
+ "tags": [],
912
+ "text": "Emitido quando a configura\u00E7\u00E3o do formul\u00E1rio master \u00E9 definida."
913
+ },
914
+ "complexType": {
915
+ "original": "IFormConfig",
916
+ "resolved": "IFormConfig",
917
+ "references": {
918
+ "IFormConfig": {
919
+ "location": "import",
920
+ "path": "@sankhyalabs/ezui/dist/types/utils/form/interfaces"
921
+ }
922
+ }
923
+ }
924
+ }, {
925
+ "method": "formConfigVisibilityChanged",
926
+ "name": "formConfigVisibilityChanged",
927
+ "bubbles": true,
928
+ "cancelable": true,
929
+ "composed": true,
930
+ "docs": {
931
+ "tags": [],
932
+ "text": "Emitido quando a visibilidade do configurador do formul\u00E1rio \u00E9 alterada."
933
+ },
934
+ "complexType": {
935
+ "original": "boolean",
936
+ "resolved": "boolean",
937
+ "references": {}
938
+ }
939
+ }, {
940
+ "method": "exit",
941
+ "name": "exit",
942
+ "bubbles": true,
943
+ "cancelable": true,
944
+ "composed": true,
945
+ "docs": {
946
+ "tags": [],
947
+ "text": "Emitido quando o bot\u00E3o de voltar \u00E9 acionado."
948
+ },
949
+ "complexType": {
950
+ "original": "void",
951
+ "resolved": "void",
952
+ "references": {}
953
+ }
954
+ }, {
955
+ "method": "actionClick",
956
+ "name": "actionClick",
957
+ "bubbles": true,
958
+ "cancelable": true,
959
+ "composed": true,
960
+ "docs": {
961
+ "tags": [],
962
+ "text": "Emitido sempre que houver click de bot\u00E3o ou a\u00E7\u00E3o."
963
+ },
964
+ "complexType": {
965
+ "original": "string",
966
+ "resolved": "string",
967
+ "references": {}
968
+ }
969
+ }, {
970
+ "method": "formItemsReady",
971
+ "name": "formItemsReady",
972
+ "bubbles": true,
973
+ "cancelable": true,
974
+ "composed": true,
975
+ "docs": {
976
+ "tags": [],
977
+ "text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
978
+ },
979
+ "complexType": {
980
+ "original": "Array<HTMLElement>",
981
+ "resolved": "HTMLElement[]",
982
+ "references": {
983
+ "Array": {
984
+ "location": "global"
985
+ },
986
+ "HTMLElement": {
987
+ "location": "global"
988
+ }
989
+ }
990
+ }
991
+ }];
992
+ }
993
+ static get methods() {
994
+ return {
995
+ "showFormConfig": {
996
+ "complexType": {
997
+ "signature": "(detail?: boolean) => Promise<void>",
998
+ "parameters": [{
999
+ "tags": [{
1000
+ "name": "param",
1001
+ "text": "detail - Define se a configura\u00E7\u00E3o que est\u00E1 sendo carregada \u00E9\nreferente a um form detail."
1002
+ }],
1003
+ "text": "- Define se a configura\u00E7\u00E3o que est\u00E1 sendo carregada \u00E9\nreferente a um form detail."
1004
+ }],
1005
+ "references": {
1006
+ "Promise": {
1007
+ "location": "global"
1008
+ }
1009
+ },
1010
+ "return": "Promise<void>"
1011
+ },
1012
+ "docs": {
1013
+ "text": "Abre o configurador do formul\u00E1rio",
1014
+ "tags": [{
1015
+ "name": "param",
1016
+ "text": "detail - Define se a configura\u00E7\u00E3o que est\u00E1 sendo carregada \u00E9\nreferente a um form detail."
1017
+ }]
1018
+ }
1019
+ },
1020
+ "addCustomEditor": {
1021
+ "complexType": {
1022
+ "signature": "(fieldName: string, customEditor: ICustomEditor) => Promise<void>",
1023
+ "parameters": [{
1024
+ "tags": [],
1025
+ "text": ""
1026
+ }, {
1027
+ "tags": [],
1028
+ "text": ""
1029
+ }],
1030
+ "references": {
1031
+ "Promise": {
1032
+ "location": "global"
1033
+ },
1034
+ "ICustomEditor": {
1035
+ "location": "import",
1036
+ "path": "@sankhyalabs/ezui/dist/types/utils"
1037
+ }
1038
+ },
1039
+ "return": "Promise<void>"
1040
+ },
1041
+ "docs": {
1042
+ "text": "Registra um editor customizado para campos da grade e formul\u00E1rio",
1043
+ "tags": []
1044
+ }
1045
+ },
1046
+ "addGridCustomRender": {
1047
+ "complexType": {
1048
+ "signature": "(fieldName: string, customRender: ICustomRender) => Promise<void>",
1049
+ "parameters": [{
1050
+ "tags": [],
1051
+ "text": ""
1052
+ }, {
1053
+ "tags": [],
1054
+ "text": ""
1055
+ }],
1056
+ "references": {
1057
+ "Promise": {
1058
+ "location": "global"
1059
+ },
1060
+ "ICustomRender": {
1061
+ "location": "import",
1062
+ "path": "@sankhyalabs/ezui/dist/types/utils"
1063
+ }
1064
+ },
1065
+ "return": "Promise<void>"
1066
+ },
1067
+ "docs": {
1068
+ "text": "Registra um render customizado para colunas da grid.",
1069
+ "tags": []
1070
+ }
1071
+ },
1072
+ "setFieldProp": {
1073
+ "complexType": {
1074
+ "signature": "(fieldName: string, propName: string, value: any) => Promise<void>",
1075
+ "parameters": [{
1076
+ "tags": [],
1077
+ "text": ""
1078
+ }, {
1079
+ "tags": [],
1080
+ "text": ""
1081
+ }, {
1082
+ "tags": [],
1083
+ "text": ""
1084
+ }],
1085
+ "references": {
1086
+ "Promise": {
1087
+ "location": "global"
1088
+ }
1089
+ },
1090
+ "return": "Promise<void>"
1091
+ },
1092
+ "docs": {
1093
+ "text": "Altera/adiciona uma propriedade nos metadados do campo.",
1094
+ "tags": []
1095
+ }
1096
+ },
1097
+ "setFocus": {
1098
+ "complexType": {
1099
+ "signature": "() => Promise<void>",
1100
+ "parameters": [],
1101
+ "references": {
1102
+ "Promise": {
1103
+ "location": "global"
1104
+ }
1105
+ },
1106
+ "return": "Promise<void>"
1107
+ },
1108
+ "docs": {
1109
+ "text": "Atribui o foco para o componente.",
1110
+ "tags": []
1111
+ }
1112
+ },
1113
+ "reloadGuides": {
1114
+ "complexType": {
1115
+ "signature": "() => Promise<void>",
1116
+ "parameters": [],
1117
+ "references": {
1118
+ "Promise": {
1119
+ "location": "global"
1120
+ }
1121
+ },
1122
+ "return": "Promise<void>"
1123
+ },
1124
+ "docs": {
1125
+ "text": "Recarrega os guias baseada nos metadados atuais.",
1126
+ "tags": []
1127
+ }
1128
+ }
1129
+ };
1130
+ }
1131
+ static get elementRef() { return "_element"; }
1132
+ static get watchers() {
1133
+ return [{
1134
+ "propName": "dataUnit",
1135
+ "methodName": "observeDataUnit"
1136
+ }, {
1137
+ "propName": "_formEditorConfigManager",
1138
+ "methodName": "observeFormConfigManager"
1139
+ }, {
1140
+ "propName": "dataState",
1141
+ "methodName": "observeDataState"
1142
+ }, {
1143
+ "propName": "masterFormConfig",
1144
+ "methodName": "observeMasterFormConfig"
1145
+ }];
1146
+ }
1147
+ static get listeners() {
1148
+ return [{
1149
+ "name": "actionClick",
1150
+ "method": "onActionClick",
1151
+ "target": undefined,
1152
+ "capture": true,
1153
+ "passive": false
1154
+ }, {
1155
+ "name": "snkContentCardChanged",
1156
+ "method": "onContentCardChanged",
1157
+ "target": undefined,
1158
+ "capture": false,
1159
+ "passive": false
1160
+ }];
1161
+ }
1162
+ }
1163
+ var GUIDES_VIEWER_VIEW_MODE;
1164
+ (function (GUIDES_VIEWER_VIEW_MODE) {
1165
+ GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["GUIDES"] = 0] = "GUIDES";
1166
+ GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["CONFIG"] = 1] = "CONFIG";
1167
+ })(GUIDES_VIEWER_VIEW_MODE || (GUIDES_VIEWER_VIEW_MODE = {}));