@sankhyalabs/sankhyablocks 10.1.0-dev.51 → 10.1.0-dev.53

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 (273) 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-293bc3d2.js → SnkMultiSelectionListDataSource-0bc94d36.js} +71 -24
  8. package/dist/cjs/{auth-fetcher-6b134ec4.js → auth-fetcher-0ecc53ff.js} +1 -1
  9. package/dist/cjs/{dataunit-fetcher-b9822794.js → dataunit-fetcher-bcbc38c0.js} +2 -3
  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 -229
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
  21. package/dist/cjs/{snk-data-unit-4b6dc396.js → snk-data-unit-3b94547d.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 +16 -11
  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-b4ca3437.js → snk-guides-viewer-3054d541.js} +2 -2
  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-38748460.js +231 -0
  39. package/dist/collection/collection-manifest.json +17 -0
  40. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +4 -1
  41. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +6 -0
  42. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +1 -1
  43. package/dist/collection/components/snk-crud/utils/taskbarUtils.js +14 -0
  44. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +67 -20
  45. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomEditor.js +1 -0
  46. package/dist/collection/components/snk-dynaform/interfaces/PropsCustomRender.js +1 -0
  47. package/dist/collection/components/snk-dynaform/snk-dynaform.css +64 -0
  48. package/dist/collection/components/snk-dynaform/snk-dynaform.js +1657 -0
  49. package/dist/collection/components/snk-dynaform/subcomponents/CardFormResizeObserver.js +26 -0
  50. package/dist/collection/components/snk-dynaform/subcomponents/GuideBuilder.js +51 -0
  51. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +112 -0
  52. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +992 -0
  53. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +64 -0
  54. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +588 -0
  55. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +98 -0
  56. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +1167 -0
  57. package/dist/collection/components/snk-dynaform-form-config/FormConfigHelper.js +325 -0
  58. package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +212 -0
  59. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.css +17 -0
  60. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.js +236 -0
  61. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.css +41 -0
  62. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.js +170 -0
  63. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.css +22 -0
  64. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.js +408 -0
  65. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.css +88 -0
  66. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-item.js +209 -0
  67. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.css +167 -0
  68. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.js +655 -0
  69. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.css +42 -0
  70. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.js +171 -0
  71. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.css +66 -0
  72. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-form-config.js +557 -0
  73. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.css +80 -0
  74. package/dist/collection/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.js +326 -0
  75. package/dist/collection/components/snk-grid/snk-grid.css +14 -7
  76. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +22 -4
  77. package/dist/components/ContinuousInsertUtils.js +67 -20
  78. package/dist/components/form-config-fetcher.js +22 -4
  79. package/dist/components/index.d.ts +12 -0
  80. package/dist/components/index.js +12 -0
  81. package/dist/components/snk-crud.js +1 -198
  82. package/dist/components/snk-detail-view2.js +8 -2
  83. package/dist/components/snk-dynaform-config-header.d.ts +11 -0
  84. package/dist/components/snk-dynaform-config-header.js +6 -0
  85. package/dist/components/snk-dynaform-config-header2.js +103 -0
  86. package/dist/components/snk-dynaform-configs-button.d.ts +11 -0
  87. package/dist/components/snk-dynaform-configs-button.js +6 -0
  88. package/dist/components/snk-dynaform-configs-button2.js +76 -0
  89. package/dist/components/snk-dynaform-detail-view.d.ts +11 -0
  90. package/dist/components/snk-dynaform-detail-view.js +6 -0
  91. package/dist/components/snk-dynaform-detail-view2.js +1835 -0
  92. package/dist/components/snk-dynaform-field-config.d.ts +11 -0
  93. package/dist/components/snk-dynaform-field-config.js +6 -0
  94. package/dist/components/snk-dynaform-field-config2.js +605 -0
  95. package/dist/components/snk-dynaform-field-item.d.ts +11 -0
  96. package/dist/components/snk-dynaform-field-item.js +6 -0
  97. package/dist/components/snk-dynaform-field-item2.js +96 -0
  98. package/dist/components/snk-dynaform-fields-layout.d.ts +11 -0
  99. package/dist/components/snk-dynaform-fields-layout.js +6 -0
  100. package/dist/components/snk-dynaform-fields-layout2.js +428 -0
  101. package/dist/components/snk-dynaform-fields-selector.d.ts +11 -0
  102. package/dist/components/snk-dynaform-fields-selector.js +6 -0
  103. package/dist/components/snk-dynaform-fields-selector2.js +104 -0
  104. package/dist/components/snk-dynaform-form-config.d.ts +11 -0
  105. package/dist/components/snk-dynaform-form-config.js +6 -0
  106. package/dist/components/snk-dynaform-form-config2.js +430 -0
  107. package/dist/components/snk-dynaform-form-view.d.ts +11 -0
  108. package/dist/components/snk-dynaform-form-view.js +6 -0
  109. package/dist/components/snk-dynaform-form-view2.js +270 -0
  110. package/dist/components/snk-dynaform-guides-configurator.d.ts +11 -0
  111. package/dist/components/snk-dynaform-guides-configurator.js +6 -0
  112. package/dist/components/snk-dynaform-guides-configurator2.js +173 -0
  113. package/dist/components/snk-dynaform-guides-view.d.ts +11 -0
  114. package/dist/components/snk-dynaform-guides-view.js +6 -0
  115. package/dist/components/snk-dynaform.d.ts +11 -0
  116. package/dist/components/snk-dynaform.js +1003 -0
  117. package/dist/components/snk-grid2.js +1 -1
  118. package/dist/components/taskbarUtils.js +224 -0
  119. package/dist/esm/{ConfigStorage-76872695.js → ConfigStorage-e834d1ea.js} +2 -2
  120. package/dist/esm/{DataFetcher-e60f8d53.js → DataFetcher-5ed0a377.js} +2830 -3
  121. package/dist/esm/FormConfigHelper-efc29480.js +328 -0
  122. package/dist/esm/{ISave-4929c071.js → ISave-5b46d691.js} +1 -1
  123. package/dist/esm/{PersonalizedFilterUtils-d2439a9a.js → PersonalizedFilterUtils-45b5803c.js} +49 -2
  124. package/dist/esm/{SnkFormConfigManager-83f6b22f.js → SnkFormConfigManager-bfd575c2.js} +2 -2
  125. package/dist/esm/{SnkMultiSelectionListDataSource-f6cabd15.js → SnkMultiSelectionListDataSource-9e9166ae.js} +71 -24
  126. package/dist/esm/{auth-fetcher-1a31c1e4.js → auth-fetcher-5283045d.js} +1 -1
  127. package/dist/esm/{dataunit-fetcher-c176e002.js → dataunit-fetcher-3b1ca96e.js} +1 -2
  128. package/dist/esm/{filter-type.enum-f6a8fe23.js → filter-type.enum-62b7fe88.js} +8 -1
  129. package/dist/esm/{form-config-fetcher-b44b2727.js → form-config-fetcher-db1bf140.js} +23 -5
  130. package/dist/esm/index-04f73a26.js +24 -36
  131. package/dist/esm/loader.js +1 -1
  132. package/dist/esm/pesquisa-grid_2.entry.js +4 -5
  133. package/dist/esm/sankhyablocks.js +1 -1
  134. package/dist/esm/snk-actions-button_9.entry.js +5 -6
  135. package/dist/esm/snk-application.entry.js +6 -7
  136. package/dist/esm/snk-attach_11.entry.js +2936 -0
  137. package/dist/esm/snk-crud.entry.js +6 -204
  138. package/dist/esm/snk-data-exporter.entry.js +5 -6
  139. package/dist/esm/{snk-data-unit-d8cfa950.js → snk-data-unit-dfde62cb.js} +2 -2
  140. package/dist/esm/snk-data-unit.entry.js +3 -4
  141. package/dist/esm/snk-detail-view.entry.js +14 -9
  142. package/dist/esm/snk-dynaform-config-header_5.entry.js +731 -0
  143. package/dist/esm/snk-dynaform-detail-view_2.entry.js +933 -0
  144. package/dist/esm/snk-dynaform-field-config_2.entry.js +322 -0
  145. package/dist/esm/snk-dynaform-guides-view-1f1455d6.js +744 -0
  146. package/dist/esm/snk-dynaform-guides-view.entry.js +15 -0
  147. package/dist/esm/snk-dynaform.entry.js +671 -0
  148. package/dist/esm/{snk-expression-group_2.entry.js → snk-expression-group_4.entry.js} +405 -4
  149. package/dist/esm/snk-filter-bar_4.entry.js +5 -8
  150. package/dist/esm/snk-form_2.entry.js +4 -5
  151. package/dist/esm/snk-grid.entry.js +7 -8
  152. package/dist/esm/{snk-guides-viewer-cc37535b.js → snk-guides-viewer-95fefcaa.js} +2 -2
  153. package/dist/esm/snk-guides-viewer.entry.js +5 -6
  154. package/dist/esm/snk-layout-form-config.entry.js +4 -5
  155. package/dist/esm/snk-pesquisa.entry.js +4 -5
  156. package/dist/esm/taskbarUtils-8501d09e.js +225 -0
  157. package/dist/sankhyablocks/p-0dbd53d9.js +1 -0
  158. package/dist/sankhyablocks/{p-f5ad0720.js → p-19d1ca14.js} +1 -1
  159. package/dist/sankhyablocks/{p-ab5e12fa.js → p-1cc4cf61.js} +1 -1
  160. package/dist/sankhyablocks/p-1edd6be6.entry.js +1 -0
  161. package/dist/sankhyablocks/p-22ddc1a5.entry.js +1 -0
  162. package/dist/sankhyablocks/p-24b059ee.entry.js +1 -0
  163. package/dist/sankhyablocks/p-2c00b93d.js +1 -0
  164. package/dist/sankhyablocks/p-3623fddf.entry.js +1 -0
  165. package/dist/sankhyablocks/p-43c94ba5.entry.js +1 -0
  166. package/dist/sankhyablocks/p-449dfe55.entry.js +1 -0
  167. package/dist/sankhyablocks/p-451b5bcc.entry.js +1 -0
  168. package/dist/sankhyablocks/p-46d7e2de.js +1 -0
  169. package/dist/sankhyablocks/{p-3c990841.js → p-51e853f2.js} +1 -1
  170. package/dist/sankhyablocks/p-58709cf9.js +1 -0
  171. package/dist/sankhyablocks/p-589016e2.entry.js +1 -0
  172. package/dist/sankhyablocks/p-5d02c032.js +1 -0
  173. package/dist/sankhyablocks/p-5d50f59a.entry.js +1 -0
  174. package/dist/sankhyablocks/p-61776b68.entry.js +1 -0
  175. package/dist/sankhyablocks/p-6b8a1ec3.js +1 -0
  176. package/dist/sankhyablocks/p-7038cf62.entry.js +1 -0
  177. package/dist/sankhyablocks/{p-771b137e.js → p-70c2ee5c.js} +1 -1
  178. package/dist/sankhyablocks/p-7628e04f.entry.js +1 -0
  179. package/dist/sankhyablocks/p-7798788b.entry.js +1 -0
  180. package/dist/sankhyablocks/p-77c26de0.js +1 -0
  181. package/dist/sankhyablocks/p-7c34a0f7.entry.js +1 -0
  182. package/dist/sankhyablocks/p-a4a0d9b7.entry.js +1 -0
  183. package/dist/sankhyablocks/{p-4f7adf97.js → p-b1bf9564.js} +1 -1
  184. package/dist/sankhyablocks/p-b4c2a99c.entry.js +1 -0
  185. package/dist/sankhyablocks/p-b75af274.entry.js +1 -0
  186. package/dist/sankhyablocks/p-c538bd6c.entry.js +1 -0
  187. package/dist/sankhyablocks/{p-3704bf1b.js → p-d5810110.js} +1 -1
  188. package/dist/sankhyablocks/p-d7fd447e.entry.js +1 -0
  189. package/dist/sankhyablocks/p-d88278f8.js +28 -0
  190. package/dist/sankhyablocks/p-f076d742.js +60 -0
  191. package/dist/sankhyablocks/{p-8fe740b7.entry.js → p-f1ef090f.entry.js} +2 -2
  192. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  193. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -0
  194. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +8 -0
  195. package/dist/types/components/snk-dynaform/interfaces/PropsCustomEditor.d.ts +4 -0
  196. package/dist/types/components/snk-dynaform/interfaces/PropsCustomRender.d.ts +4 -0
  197. package/dist/types/components/snk-dynaform/subcomponents/CardFormResizeObserver.d.ts +1 -0
  198. package/dist/types/components/snk-dynaform/subcomponents/GuideBuilder.d.ts +14 -0
  199. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +158 -0
  200. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +107 -0
  201. package/dist/types/components/snk-dynaform-form-config/FormConfigHelper.d.ts +36 -0
  202. package/dist/types/components/snk-dynaform-form-config/SnkFormConfigManager.d.ts +35 -0
  203. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-config-header.d.ts +23 -0
  204. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-config-header/snk-dynaform-configs-button/snk-dynaform-configs-button.d.ts +19 -0
  205. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-field-item/snk-dynaform-field-config/snk-dynaform-field-config.d.ts +56 -0
  206. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-layout/snk-dynaform-fields-layout.d.ts +74 -0
  207. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-fields-selector/snk-dynaform-fields-selector.d.ts +21 -0
  208. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-form-config.d.ts +95 -0
  209. package/dist/types/components/snk-dynaform-form-config/snk-dynaform-guides-configurator/snk-dynaform-guides-configurator.d.ts +35 -0
  210. package/dist/types/components.d.ts +2403 -1322
  211. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +1 -0
  212. package/package.json +1 -1
  213. package/react/components.d.ts +12 -0
  214. package/react/components.js +12 -0
  215. package/react/components.js.map +1 -1
  216. package/dist/cjs/SnkMessageBuilder-a9300ebe.js +0 -2833
  217. package/dist/cjs/default-filters-a09bf82b.js +0 -8
  218. package/dist/cjs/index-62760a9c.js +0 -49
  219. package/dist/cjs/index-8d94b7e0.js +0 -7
  220. package/dist/cjs/snk-attach.cjs.entry.js +0 -948
  221. package/dist/cjs/snk-default-filter.cjs.entry.js +0 -77
  222. package/dist/cjs/snk-filter-advanced-mode_3.cjs.entry.js +0 -99
  223. package/dist/cjs/snk-filter-detail.cjs.entry.js +0 -198
  224. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +0 -408
  225. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +0 -109
  226. package/dist/cjs/snk-image-input.cjs.entry.js +0 -160
  227. package/dist/cjs/snk-personalized-filter.cjs.entry.js +0 -358
  228. package/dist/cjs/snk-simple-crud.cjs.entry.js +0 -865
  229. package/dist/esm/SnkMessageBuilder-1eb7a1af.js +0 -2831
  230. package/dist/esm/default-filters-50105e43.js +0 -8
  231. package/dist/esm/index-620ac460.js +0 -7
  232. package/dist/esm/index-8acbae97.js +0 -49
  233. package/dist/esm/snk-attach.entry.js +0 -944
  234. package/dist/esm/snk-default-filter.entry.js +0 -73
  235. package/dist/esm/snk-filter-advanced-mode_3.entry.js +0 -93
  236. package/dist/esm/snk-filter-detail.entry.js +0 -194
  237. package/dist/esm/snk-filter-field-search_2.entry.js +0 -403
  238. package/dist/esm/snk-filter-modal-item.entry.js +0 -105
  239. package/dist/esm/snk-image-input.entry.js +0 -156
  240. package/dist/esm/snk-personalized-filter.entry.js +0 -354
  241. package/dist/esm/snk-simple-crud.entry.js +0 -861
  242. package/dist/sankhyablocks/p-0afc64df.entry.js +0 -1
  243. package/dist/sankhyablocks/p-10f27dc6.entry.js +0 -1
  244. package/dist/sankhyablocks/p-134702f6.entry.js +0 -1
  245. package/dist/sankhyablocks/p-20f03230.entry.js +0 -1
  246. package/dist/sankhyablocks/p-2af8aca3.js +0 -1
  247. package/dist/sankhyablocks/p-33492640.entry.js +0 -1
  248. package/dist/sankhyablocks/p-3870748a.js +0 -28
  249. package/dist/sankhyablocks/p-438a225f.entry.js +0 -1
  250. package/dist/sankhyablocks/p-4d04bc75.entry.js +0 -1
  251. package/dist/sankhyablocks/p-554c0e54.js +0 -1
  252. package/dist/sankhyablocks/p-68c1a093.js +0 -1
  253. package/dist/sankhyablocks/p-6a4b21dd.js +0 -1
  254. package/dist/sankhyablocks/p-6ae7543b.entry.js +0 -1
  255. package/dist/sankhyablocks/p-6e278003.js +0 -60
  256. package/dist/sankhyablocks/p-82bcb4cf.entry.js +0 -1
  257. package/dist/sankhyablocks/p-84345e7a.js +0 -1
  258. package/dist/sankhyablocks/p-95af0bb1.entry.js +0 -1
  259. package/dist/sankhyablocks/p-95b36bd3.entry.js +0 -1
  260. package/dist/sankhyablocks/p-9e77e136.js +0 -1
  261. package/dist/sankhyablocks/p-a905712a.entry.js +0 -1
  262. package/dist/sankhyablocks/p-aff2d081.entry.js +0 -1
  263. package/dist/sankhyablocks/p-b0a357b4.entry.js +0 -1
  264. package/dist/sankhyablocks/p-b568c1d4.js +0 -1
  265. package/dist/sankhyablocks/p-bab4cde4.entry.js +0 -1
  266. package/dist/sankhyablocks/p-cc64239c.entry.js +0 -1
  267. package/dist/sankhyablocks/p-cd00a3d1.entry.js +0 -1
  268. package/dist/sankhyablocks/p-d9ec8c4b.entry.js +0 -1
  269. package/dist/sankhyablocks/p-e8df1dea.entry.js +0 -1
  270. package/dist/sankhyablocks/p-ef9343c3.entry.js +0 -1
  271. package/dist/sankhyablocks/p-f1bbf065.entry.js +0 -1
  272. package/dist/sankhyablocks/p-f4184ce7.js +0 -1
  273. package/dist/sankhyablocks/p-fec88660.entry.js +0 -1
@@ -0,0 +1,655 @@
1
+ import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
2
+ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
3
+ import { forceUpdate, h, Host, } from '@stencil/core';
4
+ import Sortable from 'sortablejs';
5
+ import { GROUP_NAMES, TAB_NAMES } from '../../../lib/utils/constants';
6
+ import { getFieldsStructure, ID_AVAILABLE_FIELDS, SORTABLE_PATH, } from '../FormConfigHelper';
7
+ export class SnkDynaformFieldsLayout {
8
+ constructor() {
9
+ this.ID_GROUPS = 'container-groups';
10
+ this.ID_FIELDS = 'container-fields';
11
+ this.reservedGuideNames = [TAB_NAMES.main.toLowerCase(), TAB_NAMES.general.toLocaleLowerCase()];
12
+ this.groupsListMemory = [];
13
+ this.groupsRefList = [];
14
+ this.sortableInstances = [];
15
+ this.isEditGuideNameActive = false;
16
+ this.selectedGuide = undefined;
17
+ this.groupsList = [];
18
+ this.guideNames = [];
19
+ this.dataUnit = undefined;
20
+ this.isMainSection = false;
21
+ this.messagesBuilder = undefined;
22
+ }
23
+ onMessagesBuilderChange() {
24
+ this.setCustomCSSProperties();
25
+ }
26
+ handleFieldConfigChanged({ detail: updatedField }) {
27
+ var _a;
28
+ if (((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) && updatedField.tab && updatedField.tab !== this.selectedGuide.name) {
29
+ return;
30
+ }
31
+ const groupToUpdate = this.groupsListMemory.find(g => g.name === updatedField.group);
32
+ if (!groupToUpdate)
33
+ return;
34
+ const updatedFields = groupToUpdate.fields.map(field => {
35
+ return (field.name === updatedField.name) ? updatedField : field;
36
+ });
37
+ const updatedGroupList = this.groupsListMemory.map(group => {
38
+ return (group.name === groupToUpdate.name)
39
+ ? { name: group.name, fields: updatedFields }
40
+ : group;
41
+ });
42
+ this.applyGroupUpdate(updatedGroupList);
43
+ }
44
+ observeSelectedGuide() {
45
+ this.isEditGuideNameActive = false;
46
+ forceUpdate(this);
47
+ this.isEditingGroupName.emit(false);
48
+ }
49
+ observeGroupList(newValue) {
50
+ this.groupsListMemory = [...newValue];
51
+ }
52
+ observeIsEditGuideNameActive(newValue) {
53
+ this.isEditingGuideName.emit(newValue);
54
+ }
55
+ async addFieldToLayout(incomingField) {
56
+ incomingField.group = GROUP_NAMES.noGroup;
57
+ incomingField.tab = this.selectedGuide.name;
58
+ const fixedFieldsGroup = this.getFixedFieldsGroup();
59
+ const newFixedFieldsGroup = {
60
+ name: GROUP_NAMES.noGroup,
61
+ fields: fixedFieldsGroup ? [...fixedFieldsGroup.fields, incomingField] : [incomingField],
62
+ };
63
+ const updatedGroupListMemory = fixedFieldsGroup
64
+ ? [newFixedFieldsGroup, ...this.groupsListMemory.slice(1)]
65
+ : [newFixedFieldsGroup, ...this.groupsListMemory];
66
+ this.applyGroupUpdate(updatedGroupListMemory);
67
+ }
68
+ getFixedFieldsGroup() {
69
+ return this.groupsListMemory.find(g => g.name === GROUP_NAMES.noGroup);
70
+ }
71
+ getMessage(key, params) {
72
+ return this.messagesBuilder.getMessage(key, params);
73
+ }
74
+ handleAddGroup() {
75
+ const newGroup = { name: this.buildNewGroupName(), fields: [] };
76
+ const updatedGroupsList = [...this.groupsListMemory, newGroup];
77
+ this.applyGroupUpdate(updatedGroupsList);
78
+ }
79
+ buildNewGroupName() {
80
+ var _a, _b;
81
+ const newGroupMessage = this.getMessage('snkFormConfig.form.newGroup');
82
+ const qtdWithNewGroupName = (_b = (_a = this.groupsListMemory.filter(g => g.name.includes(newGroupMessage))) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
83
+ return qtdWithNewGroupName === 0 ? newGroupMessage : `${newGroupMessage} (${qtdWithNewGroupName})`;
84
+ }
85
+ makeDynamicFieldsContainersDraggable() {
86
+ const draggableGroups = this.groupsList.filter((g) => g.name !== GROUP_NAMES.noGroup);
87
+ draggableGroups.forEach(group => {
88
+ this.makeFieldContainerDraggable(this.getFieldsContainerId(group.name));
89
+ });
90
+ }
91
+ getInstanceSuffix() {
92
+ var _a, _b;
93
+ return StringUtils.replaceBlankCharacters((_b = (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '');
94
+ }
95
+ getGroupsContainerId() {
96
+ return `${this.ID_GROUPS}-${this.getInstanceSuffix()}`;
97
+ }
98
+ getNoGroupContainerId() {
99
+ return `${GROUP_NAMES.noGroup}-${this.getInstanceSuffix()}`;
100
+ }
101
+ getFieldsContainerId(groupName) {
102
+ return `${this.ID_FIELDS}-${this.getInstanceSuffix()}-${StringUtils.replaceBlankCharacters(groupName)}`;
103
+ }
104
+ handleSortGroups(evt) {
105
+ var _a;
106
+ const htmlStructure = (_a = evt.to) === null || _a === void 0 ? void 0 : _a.children;
107
+ if (!htmlStructure)
108
+ return;
109
+ const groupsOrder = Array.from(htmlStructure).map(el => el.getAttribute('data-group-name'));
110
+ const updatedOrderGroupsList = [];
111
+ const fixedGroup = this.getFixedFieldsGroup();
112
+ if (fixedGroup) {
113
+ updatedOrderGroupsList.push(fixedGroup);
114
+ }
115
+ groupsOrder.forEach(groupName => {
116
+ const group = this.groupsListMemory.find(g => g.name === groupName);
117
+ if (group) {
118
+ updatedOrderGroupsList.push(group);
119
+ }
120
+ });
121
+ this.applyGroupUpdate(updatedOrderGroupsList);
122
+ }
123
+ handleFieldsChanged(evt) {
124
+ let updatedGroupsList = [...this.groupsListMemory];
125
+ updatedGroupsList = [...this.handleFieldsOnGroupUpdate(updatedGroupsList, evt, SORTABLE_PATH.FROM)];
126
+ updatedGroupsList = [...this.handleFieldsOnGroupUpdate(updatedGroupsList, evt, SORTABLE_PATH.TO)];
127
+ this.applyGroupUpdate(updatedGroupsList);
128
+ }
129
+ applyGroupUpdate(updatedGroupList) {
130
+ var _a;
131
+ (_a = this.groupsRefList) === null || _a === void 0 ? void 0 : _a.forEach((group) => group === null || group === void 0 ? void 0 : group.cancelEdition());
132
+ if (ObjectUtils.equals(updatedGroupList, this.groupsListMemory)) {
133
+ return false;
134
+ }
135
+ this.groupsListMemory = [...updatedGroupList];
136
+ this.layoutChanged.emit(this.groupsListMemory);
137
+ return true;
138
+ }
139
+ handleFieldsOnGroupUpdate(groupList, evt, path) {
140
+ const element = evt[path];
141
+ if (!this.el.contains(element))
142
+ return groupList;
143
+ const isAvailableFields = element.id === ID_AVAILABLE_FIELDS;
144
+ return isAvailableFields ? groupList : this.updateGroupList(groupList, element, path, evt);
145
+ }
146
+ updateGroupList(groupList, element, path, evt) {
147
+ const groupName = element.getAttribute('data-group-name');
148
+ const updatedGroup = {
149
+ name: groupName,
150
+ fields: getFieldsStructure(evt, path, groupName, this.selectedGuide.name),
151
+ };
152
+ return this.upsertGroup(groupList, updatedGroup);
153
+ }
154
+ upsertGroup(groupList, newGroup) {
155
+ if (groupList.some(group => group.name === newGroup.name)) {
156
+ return this.replaceGroup(groupList, newGroup);
157
+ }
158
+ return newGroup.name === GROUP_NAMES.noGroup
159
+ ? [newGroup, ...groupList]
160
+ : [...groupList, newGroup];
161
+ }
162
+ replaceGroup(groupList, newGroup) {
163
+ return groupList.map(group => group.name === newGroup.name ? newGroup : group);
164
+ }
165
+ destroySortableInstances() {
166
+ this.sortableInstances.forEach(instance => {
167
+ var _a;
168
+ try {
169
+ (_a = instance === null || instance === void 0 ? void 0 : instance.destroy) === null || _a === void 0 ? void 0 : _a.call(instance);
170
+ }
171
+ catch ( /* noop */_b) { /* noop */ }
172
+ });
173
+ this.sortableInstances = [];
174
+ }
175
+ makeGroupsDraggable() {
176
+ try {
177
+ const element = this.getContainerElement(this.getGroupsContainerId());
178
+ if (!element)
179
+ return;
180
+ this.sortableInstances.push(new Sortable(element, {
181
+ group: 'groups',
182
+ ghostClass: 'ghost',
183
+ direction: 'horizontal',
184
+ animation: 15,
185
+ onSort: (evt) => this.handleSortGroups(evt),
186
+ }));
187
+ }
188
+ catch (e) {
189
+ console.error(this.getMessage('snkFormConfig.errors.failMakeGroupsDraggable'), this.getGroupsContainerId());
190
+ }
191
+ }
192
+ makeFieldContainerDraggable(containerId) {
193
+ try {
194
+ const element = this.getContainerElement(containerId);
195
+ if (!element)
196
+ return;
197
+ this.sortableInstances.push(new Sortable(element, {
198
+ group: 'fields',
199
+ ghostClass: 'ghost',
200
+ direction: 'vertical',
201
+ animation: 15,
202
+ onAdd: (evt) => this.handleFieldsChanged(evt),
203
+ onRemove: (evt) => this.handleFieldsChanged(evt),
204
+ onSort: (evt) => this.handleFieldsChanged(evt),
205
+ }));
206
+ }
207
+ catch (e) {
208
+ console.error(this.getMessage('snkFormConfig.errors.failMakeFieldContainerDraggable'), containerId);
209
+ }
210
+ }
211
+ getContainerElement(id) {
212
+ return this.el.querySelector(`[id="${id}"]`);
213
+ }
214
+ handleSetFieldAsAvailable(field) {
215
+ var _a;
216
+ const groupName = (_a = field.group) !== null && _a !== void 0 ? _a : GROUP_NAMES.noGroup;
217
+ const group = this.groupsListMemory.find(group => group.name === groupName);
218
+ const fields = group.fields.filter(f => f.name !== field.name);
219
+ const updatedGroup = { name: groupName, fields };
220
+ const updatedList = [...this.replaceGroup(this.groupsListMemory, updatedGroup)];
221
+ this.applyGroupUpdate(updatedList);
222
+ }
223
+ removeGroup(group) {
224
+ var _a, _b;
225
+ const groupFields = (_b = (_a = this.groupsListMemory.find(f => f.name === group.name)) === null || _a === void 0 ? void 0 : _a.fields) !== null && _b !== void 0 ? _b : [];
226
+ const updatedGroupList = [...this.groupsListMemory.filter(g => g.name !== group.name)];
227
+ if (this.applyGroupUpdate(updatedGroupList)) {
228
+ this.setFieldListAsAvailable.emit(groupFields);
229
+ }
230
+ }
231
+ handleRenameGroup(editDetails) {
232
+ const { value: actualName, newValue: newGroupName } = editDetails.detail;
233
+ const updatedGroupList = this.groupsListMemory.map(group => {
234
+ if (group.name !== actualName)
235
+ return Object.assign({}, group);
236
+ const updatedFields = group.fields.map(f => {
237
+ return Object.assign(Object.assign({}, f), { group: newGroupName });
238
+ });
239
+ return { name: newGroupName, fields: updatedFields };
240
+ });
241
+ this.applyGroupUpdate(updatedGroupList);
242
+ }
243
+ canSaveGroup(newLabel, index) {
244
+ const hasOtherWithThisName = this.groupsList.some(group => {
245
+ var _a;
246
+ return ((_a = group.name) !== null && _a !== void 0 ? _a : '').toLocaleLowerCase() === (newLabel !== null && newLabel !== void 0 ? newLabel : '').toLocaleLowerCase();
247
+ });
248
+ if (!hasOtherWithThisName)
249
+ return true;
250
+ const title = this.getMessage('snkFormConfig.confirm.title');
251
+ const message = this.buildDuplicatedGroupNameContent(newLabel);
252
+ ApplicationUtils.alert(title, message).then(() => { var _a; return (_a = this.groupsRefList[index]) === null || _a === void 0 ? void 0 : _a.applyFocusTextEdit(); });
253
+ return false;
254
+ }
255
+ buildDuplicatedGroupNameContent(newLabel) {
256
+ const tabName = this.selectedGuide.name;
257
+ return `
258
+ ${this.getMessage('snkFormConfig.alert.titleGroupExists')}
259
+ <b>${newLabel}</b>
260
+ ${this.getMessage('snkFormConfig.alert.inTab')}
261
+ <b>${tabName === TAB_NAMES.main ? this.getMessage('snkFormConfig.form.mainArea') : tabName}</b>.
262
+ <br/><br/>
263
+ ${this.getMessage('snkFormConfig.alert.infoValidTitle')}
264
+ `;
265
+ }
266
+ buildDuplicatedTabNameContent(newLabel) {
267
+ return `
268
+ ${this.getMessage('snkFormConfig.alert.titleGuideExists')}
269
+ <b>${newLabel}</b>.
270
+ <br/><br/>
271
+ ${this.getMessage('snkFormConfig.alert.infoValidTitle')}
272
+ `;
273
+ }
274
+ buildReservedTabNameContent(newLabel) {
275
+ return `
276
+ ${this.getMessage('snkFormConfig.alert.titleGuideReservedName')}
277
+ <br/><br/>
278
+ <b>${newLabel}</b>.
279
+ <br/><br/>
280
+ ${this.getMessage('snkFormConfig.alert.infoValidTitle')}
281
+ `;
282
+ }
283
+ renderFields(fields) {
284
+ if (fields.length === 0)
285
+ return;
286
+ return fields.map(field => (h("snk-dynaform-field-item", { key: field.name, fieldConfig: field, onLayoutConfig: true, dataUnit: this.dataUnit, messagesBuilder: this.messagesBuilder, onSetFieldAsAvailable: (e) => this.handleSetFieldAsAvailable(e.detail) })));
287
+ }
288
+ renderDraggableGroups() {
289
+ const draggableGroups = this.groupsList.filter(g => g.name !== GROUP_NAMES.noGroup);
290
+ return (draggableGroups.map((group, index) => {
291
+ var _a;
292
+ return (h("div", { key: group.name, class: 'group-config', "data-group-name": group.name }, h("ez-collapsible-box", { ref: ref => this.groupsRefList[index] = ref, label: group.name, headerSize: "large", editable: true, removable: true, "icon-placement": "left", onEzRemove: () => this.removeGroup(group), onEzSaveEditLabel: (event => this.handleRenameGroup(event)), onEzEditLabelMode: ({ detail }) => this.isEditingGroupName.emit(detail), conditionalSave: (newLabel) => this.canSaveGroup(newLabel, index) }, h("div", { id: this.getFieldsContainerId(group.name), class: `group-content ${!((_a = group.fields) === null || _a === void 0 ? void 0 : _a.length) ? 'empty-content' : ''}`, "data-group-name": group.name }, this.renderFields(group.fields)))));
293
+ }));
294
+ }
295
+ renderFixedFields() {
296
+ var _a, _b;
297
+ const noGroupFields = (_b = (_a = this.groupsList.find(g => g.name === GROUP_NAMES.noGroup)) === null || _a === void 0 ? void 0 : _a.fields) !== null && _b !== void 0 ? _b : [];
298
+ return this.renderFields(noGroupFields);
299
+ }
300
+ handleRenameGuide(editDetails) {
301
+ const { value: actualValue, newValue } = editDetails.detail;
302
+ this.isEditGuideNameActive = false;
303
+ if (newValue === actualValue) {
304
+ return;
305
+ }
306
+ const duplicatedName = this.guideNames.includes(newValue.toLowerCase());
307
+ const forbiddenName = this.reservedGuideNames.includes(newValue.toLowerCase());
308
+ if (forbiddenName || duplicatedName) {
309
+ const title = this.getMessage('snkFormConfig.confirm.title');
310
+ const message = forbiddenName ? this.buildReservedTabNameContent(newValue) : this.buildDuplicatedTabNameContent(newValue);
311
+ ApplicationUtils.alert(title, message).then(() => this._refTextEdit.applyFocusSelect());
312
+ return;
313
+ }
314
+ this.guideRenamed.emit(newValue);
315
+ }
316
+ cancelEditGuideName() {
317
+ this.isEditGuideNameActive = false;
318
+ }
319
+ async startGuideNameEdition() {
320
+ this.isEditGuideNameActive = true;
321
+ setTimeout(async () => {
322
+ await this._refTextEdit.applyFocusSelect();
323
+ }, 200);
324
+ }
325
+ getTextEditStyle() {
326
+ return {
327
+ fontSize: '20px',
328
+ fontWeight: '500',
329
+ fontFamily: 'Roboto',
330
+ };
331
+ }
332
+ renderGuideName() {
333
+ var _a, _b;
334
+ if (this.isEditGuideNameActive) {
335
+ return (h("div", { class: 'guide-header' }, h("ez-text-edit", { class: "collapsible-box__text-edit", ref: ref => this._refTextEdit = ref, value: (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.label, styled: this.getTextEditStyle(), onSaveEdition: (ev) => this.handleRenameGuide(ev), onCancelEdition: () => this.cancelEditGuideName() })));
336
+ }
337
+ return (h("div", { class: 'guide-header' }, h("span", { class: 'guide-header-label' }, (_b = this.selectedGuide) === null || _b === void 0 ? void 0 : _b.label), this.renderEditGuideNameButton()));
338
+ }
339
+ renderEditGuideNameButton() {
340
+ var _a;
341
+ if (this.isMainSection || ((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) === TAB_NAMES.main)
342
+ return;
343
+ return (h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.startGuideNameEdition(), size: "medium", iconName: 'edit', title: this.getMessage('snkFormConfig.buttons.rename') }));
344
+ }
345
+ setCustomCSSProperties() {
346
+ document.documentElement.style.setProperty('--empty-content-message', `"${this.getMessage('snkFormConfig.form.labelDropField')}"`);
347
+ document.documentElement.style.setProperty('--no-group-message', `"${this.getMessage('snkFormConfig.form.subTitleInfo')}"`);
348
+ }
349
+ componentWillLoad() {
350
+ var _a;
351
+ this.groupsListMemory = [...((_a = this.groupsList) !== null && _a !== void 0 ? _a : [])];
352
+ }
353
+ componentDidRender() {
354
+ this.destroySortableInstances();
355
+ this.makeGroupsDraggable();
356
+ this.makeDynamicFieldsContainersDraggable();
357
+ this.makeFieldContainerDraggable(this.getNoGroupContainerId());
358
+ this.setCustomCSSProperties();
359
+ }
360
+ disconnectedCallback() {
361
+ this.destroySortableInstances();
362
+ }
363
+ render() {
364
+ var _a;
365
+ if (!this.selectedGuide) {
366
+ return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("span", { class: 'no-guide-selected' }, this.getMessage('snkFormConfig.form.noGuideSelected'))));
367
+ }
368
+ if (this.selectedGuide.isCustom || this.selectedGuide.isDetail) {
369
+ return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("div", { class: 'message-container' }, h("h1", { class: 'no-guide-selected' }, this.getMessage('snkFormConfig.form.canNotEditCustomGuide')), h("span", { class: 'message-config-detail' }, this.getMessage('snkFormConfig.form.canNotEditDetailGuide')))));
370
+ }
371
+ const isMain = this.isMainSection || ((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) === TAB_NAMES.main;
372
+ const hostClass = `ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container${isMain ? ' is-main-section' : ''}`;
373
+ return (h(Host, { class: hostClass }, this.renderGuideName(), h("div", { class: 'layout-container' }, h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { class: 'no-group-container' }, h("div", { id: this.getNoGroupContainerId(), class: 'group-content', "data-group-name": GROUP_NAMES.noGroup }, this.renderFixedFields())), h("hr", null), h("div", { id: this.getGroupsContainerId(), class: 'groups-container' }, this.renderDraggableGroups()))), h("div", { class: 'add-group-container', onClick: this.handleAddGroup.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus" }), h("span", null, this.getMessage('snkFormConfig.form.createNewGroup')))));
374
+ }
375
+ static get is() { return "snk-dynaform-fields-layout"; }
376
+ static get encapsulation() { return "scoped"; }
377
+ static get originalStyleUrls() {
378
+ return {
379
+ "$": ["snk-dynaform-fields-layout.css"]
380
+ };
381
+ }
382
+ static get styleUrls() {
383
+ return {
384
+ "$": ["snk-dynaform-fields-layout.css"]
385
+ };
386
+ }
387
+ static get properties() {
388
+ return {
389
+ "selectedGuide": {
390
+ "type": "unknown",
391
+ "mutable": false,
392
+ "complexType": {
393
+ "original": "IGuideConfig",
394
+ "resolved": "IGuideConfig",
395
+ "references": {
396
+ "IGuideConfig": {
397
+ "location": "import",
398
+ "path": "../FormConfigHelper"
399
+ }
400
+ }
401
+ },
402
+ "required": false,
403
+ "optional": false,
404
+ "docs": {
405
+ "tags": [],
406
+ "text": ""
407
+ }
408
+ },
409
+ "groupsList": {
410
+ "type": "unknown",
411
+ "mutable": false,
412
+ "complexType": {
413
+ "original": "IGroupConfig[]",
414
+ "resolved": "IGroupConfig[]",
415
+ "references": {
416
+ "IGroupConfig": {
417
+ "location": "import",
418
+ "path": "../FormConfigHelper"
419
+ }
420
+ }
421
+ },
422
+ "required": false,
423
+ "optional": false,
424
+ "docs": {
425
+ "tags": [],
426
+ "text": ""
427
+ },
428
+ "defaultValue": "[]"
429
+ },
430
+ "guideNames": {
431
+ "type": "unknown",
432
+ "mutable": false,
433
+ "complexType": {
434
+ "original": "string[]",
435
+ "resolved": "string[]",
436
+ "references": {}
437
+ },
438
+ "required": false,
439
+ "optional": false,
440
+ "docs": {
441
+ "tags": [],
442
+ "text": ""
443
+ },
444
+ "defaultValue": "[]"
445
+ },
446
+ "dataUnit": {
447
+ "type": "unknown",
448
+ "mutable": false,
449
+ "complexType": {
450
+ "original": "DataUnit",
451
+ "resolved": "DataUnit",
452
+ "references": {
453
+ "DataUnit": {
454
+ "location": "import",
455
+ "path": "@sankhyalabs/core"
456
+ }
457
+ }
458
+ },
459
+ "required": false,
460
+ "optional": true,
461
+ "docs": {
462
+ "tags": [],
463
+ "text": ""
464
+ }
465
+ },
466
+ "isMainSection": {
467
+ "type": "boolean",
468
+ "mutable": false,
469
+ "complexType": {
470
+ "original": "boolean",
471
+ "resolved": "boolean",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": false,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": ""
479
+ },
480
+ "attribute": "is-main-section",
481
+ "reflect": false,
482
+ "defaultValue": "false"
483
+ },
484
+ "messagesBuilder": {
485
+ "type": "unknown",
486
+ "mutable": true,
487
+ "complexType": {
488
+ "original": "SnkMessageBuilder",
489
+ "resolved": "SnkMessageBuilder",
490
+ "references": {
491
+ "SnkMessageBuilder": {
492
+ "location": "import",
493
+ "path": "../../../lib/message/SnkMessageBuilder"
494
+ }
495
+ }
496
+ },
497
+ "required": false,
498
+ "optional": false,
499
+ "docs": {
500
+ "tags": [],
501
+ "text": ""
502
+ }
503
+ }
504
+ };
505
+ }
506
+ static get states() {
507
+ return {
508
+ "isEditGuideNameActive": {}
509
+ };
510
+ }
511
+ static get events() {
512
+ return [{
513
+ "method": "isEditingGuideName",
514
+ "name": "isEditingGuideName",
515
+ "bubbles": true,
516
+ "cancelable": true,
517
+ "composed": true,
518
+ "docs": {
519
+ "tags": [],
520
+ "text": ""
521
+ },
522
+ "complexType": {
523
+ "original": "boolean",
524
+ "resolved": "boolean",
525
+ "references": {}
526
+ }
527
+ }, {
528
+ "method": "isEditingGroupName",
529
+ "name": "isEditingGroupName",
530
+ "bubbles": true,
531
+ "cancelable": true,
532
+ "composed": true,
533
+ "docs": {
534
+ "tags": [],
535
+ "text": ""
536
+ },
537
+ "complexType": {
538
+ "original": "boolean",
539
+ "resolved": "boolean",
540
+ "references": {}
541
+ }
542
+ }, {
543
+ "method": "layoutChanged",
544
+ "name": "layoutChanged",
545
+ "bubbles": true,
546
+ "cancelable": true,
547
+ "composed": true,
548
+ "docs": {
549
+ "tags": [],
550
+ "text": ""
551
+ },
552
+ "complexType": {
553
+ "original": "IGroupConfig[]",
554
+ "resolved": "IGroupConfig[]",
555
+ "references": {
556
+ "IGroupConfig": {
557
+ "location": "import",
558
+ "path": "../FormConfigHelper"
559
+ }
560
+ }
561
+ }
562
+ }, {
563
+ "method": "setFieldListAsAvailable",
564
+ "name": "setFieldListAsAvailable",
565
+ "bubbles": true,
566
+ "cancelable": true,
567
+ "composed": true,
568
+ "docs": {
569
+ "tags": [],
570
+ "text": ""
571
+ },
572
+ "complexType": {
573
+ "original": "IFieldConfig[]",
574
+ "resolved": "IFieldConfig[]",
575
+ "references": {
576
+ "IFieldConfig": {
577
+ "location": "import",
578
+ "path": "@sankhyalabs/ezui/src/utils/interfaces/IFieldConfig"
579
+ }
580
+ }
581
+ }
582
+ }, {
583
+ "method": "guideRenamed",
584
+ "name": "guideRenamed",
585
+ "bubbles": true,
586
+ "cancelable": true,
587
+ "composed": true,
588
+ "docs": {
589
+ "tags": [],
590
+ "text": ""
591
+ },
592
+ "complexType": {
593
+ "original": "string",
594
+ "resolved": "string",
595
+ "references": {}
596
+ }
597
+ }];
598
+ }
599
+ static get methods() {
600
+ return {
601
+ "addFieldToLayout": {
602
+ "complexType": {
603
+ "signature": "(incomingField: IFieldConfig) => Promise<void>",
604
+ "parameters": [{
605
+ "tags": [],
606
+ "text": ""
607
+ }],
608
+ "references": {
609
+ "Promise": {
610
+ "location": "global"
611
+ },
612
+ "IFieldConfig": {
613
+ "location": "import",
614
+ "path": "@sankhyalabs/ezui/src/utils/interfaces/IFieldConfig"
615
+ },
616
+ "IGroupConfig": {
617
+ "location": "import",
618
+ "path": "../FormConfigHelper"
619
+ }
620
+ },
621
+ "return": "Promise<void>"
622
+ },
623
+ "docs": {
624
+ "text": "",
625
+ "tags": []
626
+ }
627
+ }
628
+ };
629
+ }
630
+ static get elementRef() { return "el"; }
631
+ static get watchers() {
632
+ return [{
633
+ "propName": "messagesBuilder",
634
+ "methodName": "onMessagesBuilderChange"
635
+ }, {
636
+ "propName": "selectedGuide",
637
+ "methodName": "observeSelectedGuide"
638
+ }, {
639
+ "propName": "groupsList",
640
+ "methodName": "observeGroupList"
641
+ }, {
642
+ "propName": "isEditGuideNameActive",
643
+ "methodName": "observeIsEditGuideNameActive"
644
+ }];
645
+ }
646
+ static get listeners() {
647
+ return [{
648
+ "name": "fieldConfigChanged",
649
+ "method": "handleFieldConfigChanged",
650
+ "target": "body",
651
+ "capture": false,
652
+ "passive": false
653
+ }];
654
+ }
655
+ }
@@ -0,0 +1,42 @@
1
+ :host{
2
+ width: 33.33333%;
3
+ display: flex;
4
+ box-shadow: var(--shadow--small, 0 0 16px rgba(0, 38, 111, 0.07));
5
+ border-radius: var(--border--radius-medium, 6px);
6
+ height: var(--snk-form-config-container-height);
7
+ max-width: 260px;
8
+ }
9
+
10
+ .fields-label{
11
+ display: block;
12
+ font-size: 16px;
13
+ font-weight: 500;
14
+ width: 100%;
15
+ }
16
+
17
+ .fields-count{
18
+ display: block;
19
+ color: #AFB6C0;
20
+ font-size: 14px;
21
+ padding: 12px 0;
22
+ font-weight: 400;
23
+ width: 100%;
24
+ }
25
+
26
+ .fields-container {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 12px;
30
+ height: calc(100vh - 220px);
31
+ width: 100%;
32
+ }
33
+
34
+ .ghost{
35
+ opacity: .5;
36
+ background: #c8fbe2;
37
+ }
38
+
39
+ .filter-input {
40
+ padding-right: var(--space--2xs, 8px);
41
+ }
42
+