@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.11

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 (286) hide show
  1. package/dist/cjs/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-6c2f7bcd.js} +107 -131
  2. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  3. package/dist/cjs/configurableElementsStorage-93459c72.js +20 -0
  4. package/dist/cjs/constants-9056ca9e.js +84 -0
  5. package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
  6. package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
  7. package/dist/cjs/form-config-fetcher-2de7c16a.js +6895 -0
  8. package/dist/cjs/{index-b0b676c5.js → index-20e8b68a.js} +165 -1473
  9. package/dist/cjs/loader.cjs.js +2 -18
  10. package/dist/cjs/sankhyablocks.cjs.js +4 -116
  11. package/dist/cjs/snk-application.cjs.entry.js +330 -7196
  12. package/dist/cjs/snk-config-modal.cjs.entry.js +62 -0
  13. package/dist/cjs/snk-config-options.cjs.entry.js +230 -0
  14. package/dist/cjs/snk-configurator_6.cjs.entry.js +1156 -0
  15. package/dist/cjs/snk-crud.cjs.entry.js +21 -13
  16. package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
  17. package/dist/cjs/snk-field-config_2.cjs.entry.js +135 -0
  18. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +5 -2
  19. package/dist/cjs/snk-filter-detail.cjs.entry.js +62 -5
  20. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +6 -3
  21. package/dist/cjs/snk-filter-number.cjs.entry.js +6 -3
  22. package/dist/cjs/snk-filter-period.cjs.entry.js +5 -2
  23. package/dist/cjs/snk-filter-personalized.cjs.entry.js +89 -0
  24. package/dist/cjs/snk-filter-search.cjs.entry.js +7 -13
  25. package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
  26. package/dist/cjs/snk-form-config.cjs.entry.js +957 -0
  27. package/dist/cjs/snk-form.cjs.entry.js +41 -28
  28. package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
  29. package/dist/cjs/snk-tab-config.cjs.entry.js +321 -0
  30. package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-9a4b1e19.js} +10 -6
  31. package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
  32. package/dist/collection/collection-manifest.json +29 -1
  33. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -1
  34. package/dist/collection/components/snk-application/snk-application.js +236 -37
  35. package/dist/collection/components/snk-configurator/snk-configurator.js +261 -0
  36. package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +16 -0
  37. package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +122 -0
  38. package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +137 -0
  39. package/dist/collection/components/snk-crud/snk-crud.js +46 -17
  40. package/dist/collection/components/snk-data-unit/snk-data-unit.js +1 -28
  41. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
  42. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +23 -0
  43. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +24 -1
  44. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +24 -1
  45. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +23 -0
  46. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +180 -0
  47. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +22 -38
  48. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
  49. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +2 -0
  50. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +80 -20
  51. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +65 -31
  52. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +85 -19
  53. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +222 -0
  54. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +39 -4
  55. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +250 -141
  56. package/dist/collection/components/snk-form/snk-form.css +4 -0
  57. package/dist/collection/components/snk-form/snk-form.js +108 -30
  58. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +9 -0
  59. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +315 -0
  60. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +164 -0
  61. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +140 -0
  62. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +185 -0
  63. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1062 -0
  64. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +272 -0
  65. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +476 -0
  66. package/dist/collection/components/snk-grid/snk-grid.js +94 -26
  67. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -5
  68. package/dist/collection/components/snk-taskbar/snk-taskbar.js +35 -3
  69. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +3 -3
  70. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +35 -0
  71. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
  72. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +106 -3
  73. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +15 -15
  74. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +9 -1
  75. package/dist/collection/lib/index.js +1 -0
  76. package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
  77. package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
  78. package/dist/collection/lib/message/resources/snk-configurator.msg.js +11 -0
  79. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
  80. package/dist/collection/lib/message/resources/snk-form.msg.js +59 -2
  81. package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -1
  82. package/dist/collection/lib/utils/CrudUtils.js +73 -0
  83. package/dist/collection/lib/utils/constants.js +72 -0
  84. package/dist/components/SnkMessageBuilder.js +108 -131
  85. package/dist/components/_commonjsHelpers.js +17 -0
  86. package/dist/components/constants.js +74 -0
  87. package/dist/components/filter-item-type.enum.js +2 -0
  88. package/dist/{sankhyablocks/snk-application.entry.js → components/form-config-fetcher.js} +88 -1347
  89. package/dist/components/index.d.ts +8 -0
  90. package/dist/components/index.js +8 -4
  91. package/dist/components/snk-application2.js +313 -7173
  92. package/dist/components/snk-config-modal.d.ts +11 -0
  93. package/dist/components/snk-config-modal.js +6 -0
  94. package/dist/components/snk-config-modal2.js +91 -0
  95. package/dist/components/snk-config-options.d.ts +11 -0
  96. package/dist/components/snk-config-options.js +6 -0
  97. package/dist/components/snk-config-options2.js +245 -0
  98. package/dist/components/snk-configurator.d.ts +11 -0
  99. package/dist/components/snk-configurator.js +6 -0
  100. package/dist/components/snk-configurator2.js +212 -0
  101. package/dist/components/snk-crud.js +76 -26
  102. package/dist/components/snk-data-unit.js +4 -13
  103. package/dist/components/snk-field-config.d.ts +11 -0
  104. package/dist/components/snk-field-config.js +6 -0
  105. package/dist/components/snk-field-config2.js +70 -0
  106. package/dist/components/snk-filter-bar2.js +354 -148
  107. package/dist/components/snk-filter-binary-select.js +5 -1
  108. package/dist/components/snk-filter-detail2.js +62 -5
  109. package/dist/components/snk-filter-item2.js +52 -33
  110. package/dist/components/snk-filter-list2.js +60 -22
  111. package/dist/components/snk-filter-modal.d.ts +11 -0
  112. package/dist/components/snk-filter-modal.js +6 -0
  113. package/dist/components/snk-filter-modal2.js +84 -0
  114. package/dist/components/snk-filter-multi-select.js +6 -2
  115. package/dist/components/snk-filter-number.js +6 -2
  116. package/dist/components/snk-filter-period.js +5 -1
  117. package/dist/components/snk-filter-personalized.d.ts +11 -0
  118. package/dist/components/snk-filter-personalized.js +108 -0
  119. package/dist/components/snk-filter-search.js +5 -12
  120. package/dist/components/snk-filter-text.js +1 -1
  121. package/dist/components/snk-form-config.d.ts +11 -0
  122. package/dist/components/snk-form-config.js +6 -0
  123. package/dist/components/snk-form-config2.js +996 -0
  124. package/dist/components/snk-form2.js +79 -29
  125. package/dist/components/snk-grid2.js +57 -32
  126. package/dist/components/snk-pesquisa2.js +1 -1
  127. package/dist/components/snk-tab-config.d.ts +11 -0
  128. package/dist/components/snk-tab-config.js +6 -0
  129. package/dist/components/snk-tab-config2.js +7220 -0
  130. package/dist/components/snk-taskbar2.js +28 -10
  131. package/dist/components/teste-pesquisa.js +1 -1
  132. package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-5792c260.js} +108 -131
  133. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  134. package/dist/esm/configurableElementsStorage-cdc144b5.js +18 -0
  135. package/dist/esm/constants-c6039d3d.js +74 -0
  136. package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
  137. package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
  138. package/dist/esm/form-config-fetcher-96c6c2dc.js +6889 -0
  139. package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-e4121713.js} +165 -1466
  140. package/dist/esm/loader.js +2 -18
  141. package/dist/esm/sankhyablocks.js +4 -116
  142. package/dist/esm/snk-application.entry.js +308 -7174
  143. package/dist/esm/snk-config-modal.entry.js +58 -0
  144. package/dist/esm/snk-config-options.entry.js +226 -0
  145. package/dist/esm/snk-configurator_6.entry.js +1147 -0
  146. package/dist/esm/snk-crud.entry.js +20 -12
  147. package/dist/esm/snk-data-unit.entry.js +5 -13
  148. package/dist/esm/snk-field-config_2.entry.js +130 -0
  149. package/dist/esm/snk-filter-binary-select.entry.js +5 -2
  150. package/dist/esm/snk-filter-detail.entry.js +62 -5
  151. package/dist/esm/snk-filter-multi-select.entry.js +6 -3
  152. package/dist/esm/snk-filter-number.entry.js +6 -3
  153. package/dist/esm/snk-filter-period.entry.js +5 -2
  154. package/dist/esm/snk-filter-personalized.entry.js +85 -0
  155. package/dist/esm/snk-filter-search.entry.js +6 -12
  156. package/dist/esm/snk-filter-text.entry.js +2 -2
  157. package/dist/esm/snk-form-config.entry.js +953 -0
  158. package/dist/esm/snk-form.entry.js +40 -27
  159. package/dist/esm/snk-pesquisa.entry.js +2 -2
  160. package/dist/esm/snk-tab-config.entry.js +317 -0
  161. package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-e2ed0536.js} +10 -6
  162. package/dist/esm/teste-pesquisa.entry.js +2 -2
  163. package/dist/sankhyablocks/index.esm.js +0 -1
  164. package/dist/sankhyablocks/p-029ae4e4.entry.js +1 -0
  165. package/dist/sankhyablocks/p-03f9c407.js +1 -0
  166. package/dist/sankhyablocks/p-112455b1.js +1 -0
  167. package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
  168. package/dist/sankhyablocks/p-21c8929b.js +1 -0
  169. package/dist/sankhyablocks/p-2b891c4a.entry.js +1 -0
  170. package/dist/sankhyablocks/p-2dc76d79.entry.js +1 -0
  171. package/dist/sankhyablocks/p-361299e8.js +26 -0
  172. package/dist/sankhyablocks/p-3a276f3d.entry.js +1 -0
  173. package/dist/sankhyablocks/p-400cc777.entry.js +1 -0
  174. package/dist/sankhyablocks/p-44ce5b90.entry.js +1 -0
  175. package/dist/sankhyablocks/p-521c96f0.entry.js +1 -0
  176. package/dist/sankhyablocks/p-60eef7cd.entry.js +1 -0
  177. package/dist/sankhyablocks/p-6988f4a6.entry.js +1 -0
  178. package/dist/sankhyablocks/p-6a4162bd.entry.js +1 -0
  179. package/dist/sankhyablocks/p-776ff4d1.entry.js +1 -0
  180. package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
  181. package/dist/sankhyablocks/p-9dc4426d.entry.js +1 -0
  182. package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
  183. package/dist/sankhyablocks/p-a17a4fca.entry.js +1 -0
  184. package/dist/sankhyablocks/p-a5b26df2.js +1 -0
  185. package/dist/sankhyablocks/p-b6d6b172.js +1 -0
  186. package/dist/sankhyablocks/p-cc4bef9f.entry.js +1 -0
  187. package/dist/sankhyablocks/p-d50651a3.js +1 -0
  188. package/dist/sankhyablocks/p-d690b6b5.entry.js +75 -0
  189. package/dist/sankhyablocks/p-d9fbb26f.js +1 -0
  190. package/dist/sankhyablocks/p-deb1f523.entry.js +1 -0
  191. package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
  192. package/dist/sankhyablocks/p-e9beab79.entry.js +1 -0
  193. package/dist/sankhyablocks/p-f37cdeb5.entry.js +1 -0
  194. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
  195. package/dist/types/components/snk-application/snk-application.d.ts +38 -16
  196. package/dist/types/components/snk-configurator/snk-configurator.d.ts +46 -0
  197. package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +8 -0
  198. package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +38 -0
  199. package/dist/types/components/snk-crud/snk-crud.d.ts +50 -0
  200. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +92 -0
  201. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  202. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +1 -0
  203. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +2 -0
  204. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +2 -0
  205. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
  206. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +24 -0
  207. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +4 -5
  208. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +1 -0
  209. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
  210. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +7 -1
  211. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +40 -0
  212. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +8 -3
  213. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +26 -0
  214. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +31 -17
  215. package/dist/types/components/snk-form/snk-form.d.ts +71 -0
  216. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +51 -0
  217. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +32 -0
  218. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +139 -0
  219. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +97 -0
  220. package/dist/types/components/snk-grid/snk-grid.d.ts +59 -0
  221. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +6 -5
  222. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -3
  223. package/dist/types/components.d.ts +424 -24
  224. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +1 -0
  225. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +21 -3
  226. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +7 -7
  227. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
  228. package/dist/types/lib/index.d.ts +1 -0
  229. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
  230. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +2 -0
  231. package/dist/types/lib/message/resources/snk-form.msg.d.ts +5 -2
  232. package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
  233. package/dist/types/lib/utils/constants.d.ts +76 -0
  234. package/dist/types/lib/utils/pesquisa.d.ts +2 -1
  235. package/package.json +4 -3
  236. package/react/components.d.ts +25 -0
  237. package/react/components.js +25 -0
  238. package/react/components.js.map +1 -1
  239. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  240. package/dist/cjs/css-shim-b8158822.js +0 -6
  241. package/dist/cjs/dom-36862b77.js +0 -75
  242. package/dist/cjs/index-02201bc9.js +0 -2397
  243. package/dist/cjs/shadow-css-346c0795.js +0 -389
  244. package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
  245. package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
  246. package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
  247. package/dist/cjs/snk-grid.cjs.entry.js +0 -79
  248. package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
  249. package/dist/components/index2.js +0 -2384
  250. package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
  251. package/dist/esm/app-globals-0f993ce5.js +0 -3
  252. package/dist/esm/css-shim-b3f2ee8d.js +0 -4
  253. package/dist/esm/dom-665d6011.js +0 -73
  254. package/dist/esm/index-2b4d2d14.js +0 -3262
  255. package/dist/esm/index-f1d3e4da.js +0 -2384
  256. package/dist/esm/shadow-css-b18e99d7.js +0 -387
  257. package/dist/esm/snk-filter-bar.entry.js +0 -274
  258. package/dist/esm/snk-filter-item.entry.js +0 -150
  259. package/dist/esm/snk-filter-list.entry.js +0 -87
  260. package/dist/esm/snk-grid.entry.js +0 -75
  261. package/dist/esm/snk-taskbar.entry.js +0 -156
  262. package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
  263. package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
  264. package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
  265. package/dist/sankhyablocks/dom-665d6011.js +0 -73
  266. package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
  267. package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
  268. package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
  269. package/dist/sankhyablocks/snk-crud.entry.js +0 -66
  270. package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
  271. package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
  272. package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
  273. package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
  274. package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
  275. package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
  276. package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
  277. package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
  278. package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
  279. package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
  280. package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
  281. package/dist/sankhyablocks/snk-form.entry.js +0 -129
  282. package/dist/sankhyablocks/snk-grid.entry.js +0 -75
  283. package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
  284. package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
  285. package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
  286. package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
@@ -1,26 +1,37 @@
1
- import { ApplicationContext } from '@sankhyalabs/core';
1
+ import { ApplicationContext, ObjectUtils } from '@sankhyalabs/core';
2
2
  import { h } from '@stencil/core';
3
+ import ConfigurableElementsStorage from '../snk-configurator/subcomponents/configModalProvider/configurableElementsStorage';
3
4
  import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
4
5
  export class SnkForm {
5
6
  constructor() {
7
+ this._renderTimer = 500;
6
8
  this._taskbarProcessor = new TaskbarProcessor({
7
- "snkForm.regular": ["PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "GRID_MODE", "INSERT"],
9
+ "snkForm.regular": ["PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "GRID_MODE", "CONFIGURATOR", "INSERT"],
8
10
  "snkForm.finish_edition": ["CANCEL", "SAVE"]
9
11
  });
12
+ this._editionFormConfig = {};
13
+ this._insertionFormConfig = {};
14
+ this._showFormConfig = false;
15
+ }
16
+ /**
17
+ * Método responsável em abrir ou fechar o modal de configurações do form.
18
+ */
19
+ async setShowFormConfig(value) {
20
+ this._showFormConfig = value;
21
+ }
22
+ /**
23
+ * Método responsável por setar as configurações do form.
24
+ */
25
+ async setConfig(config) {
26
+ this._editionFormConfig = {};
27
+ setTimeout(() => {
28
+ this._editionFormConfig = config != undefined ? config : {};
29
+ this.loadInsertionConfig();
30
+ }, this._renderTimer);
10
31
  }
11
32
  getFormConfig() {
12
33
  return (this._dataState && this._dataState.insertionMode ? this._insertionFormConfig : this._editionFormConfig);
13
34
  }
14
- getInsertionHiddenFields(formConfig) {
15
- const hiddenFields = [];
16
- formConfig === null || formConfig === void 0 ? void 0 : formConfig.forEach(cfg => {
17
- const def = this._dataUnit.getField(cfg.name);
18
- if (def === null || def === void 0 ? void 0 : def.readOnly) {
19
- hiddenFields.push(cfg.name);
20
- }
21
- });
22
- return hiddenFields;
23
- }
24
35
  exitForm() {
25
36
  if (this._dataUnit.isDirty()) {
26
37
  this._dataUnit.cancelEdition({ after: () => this.exit.emit() });
@@ -40,14 +51,17 @@ export class SnkForm {
40
51
  return disabled;
41
52
  }
42
53
  loadInsertionConfig() {
43
- if (this._dataUnit && this._configLoaded) {
44
- this._insertionFormConfig = this._editionFormConfig.filter(fieldCfg => {
54
+ var _a;
55
+ if (this._dataUnit) {
56
+ const copyFormConfig = ObjectUtils.copy(this._editionFormConfig || {});
57
+ copyFormConfig.fields = (_a = copyFormConfig.fields) === null || _a === void 0 ? void 0 : _a.filter(fieldCfg => {
45
58
  const def = this._dataUnit.getField(fieldCfg.name);
46
59
  if (def === null || def === void 0 ? void 0 : def.readOnly) {
47
60
  return false;
48
61
  }
49
62
  return true;
50
63
  });
64
+ this._insertionFormConfig = copyFormConfig;
51
65
  }
52
66
  }
53
67
  /**
@@ -63,17 +77,14 @@ export class SnkForm {
63
77
  var _a;
64
78
  return ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectedRecords) ? this._dataState.selectedRecords[0] : undefined;
65
79
  }
80
+ changeConfig(config) {
81
+ this.configChanged.emit(config);
82
+ }
83
+ componentDidRender() {
84
+ ConfigurableElementsStorage.setForm(this.configName, this._element);
85
+ }
66
86
  componentWillLoad() {
67
87
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
68
- if (this._application) {
69
- this._application.loadFormConfig(this.configName).then(cfg => {
70
- this._configLoaded = true;
71
- this._editionFormConfig = cfg;
72
- this.loadInsertionConfig();
73
- });
74
- //Forçamos a carga dos acessos pra aproveitar a request inicial.
75
- this._application.getAllAccess();
76
- }
77
88
  let parent = this._element.parentElement;
78
89
  while (parent) {
79
90
  if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
@@ -111,10 +122,11 @@ export class SnkForm {
111
122
  }
112
123
  render() {
113
124
  var _a;
114
- if (!this._configLoaded || !this._dataUnit || !this._dataState) {
125
+ if (!this._dataUnit || !this._dataState) {
115
126
  return undefined;
116
127
  }
117
- return (h("section", { class: "snk-form" }, h("div", { class: "snk-form__header snk-form__header--fixed ez-row" }, h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6", key: "formHeader" }, h("ez-button", { title: this.getMessage("snkForm.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small", onClick: () => this.exitForm() }), h("h1", { class: "ez-title ez-title--primary ez-title--xlarge ez-align--middle" }, this.getMessage("snkForm.title"))), h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-align--right" }, h("snk-taskbar", { key: "formTaskbar", buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.actionsList, primaryButton: ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", dataUnit: this._dataUnit }))), h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { key: "ezForm" + this._snkDataUnit.entityName, dataUnit: this._dataUnit, config: this.getFormConfig(), recordsValidator: this.recordsValidator }))))));
128
+ return (h("section", { class: "snk-form" }, h("div", { class: "snk-form__header snk-form__header--fixed ez-row" }, h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6", key: "formHeader" }, h("ez-button", { title: this.getMessage("snkForm.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small", onClick: () => this.exitForm() }), h("h1", { class: "ez-title ez-title--primary ez-title--xlarge ez-align--middle" }, this.getMessage("snkForm.title"))), h("div", { class: "ez-col ez-col--sd-6 ez-col--tb-6 ez-align--right" }, h("snk-taskbar", { key: "formTaskbar", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.actionsList, primaryButton: ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", dataUnit: this._dataUnit }))), h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { key: "ezForm" + this._snkDataUnit.entityName, dataUnit: this._dataUnit, config: this.getFormConfig(), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
129
+ h("snk-form-config", { dataUnit: this._dataUnit, formConfig: this.getFormConfig(), parentForm: this._element, onConfigChange: (evt) => { this.changeConfig(evt.detail); } }))))));
118
130
  }
119
131
  static get is() { return "snk-form"; }
120
132
  static get encapsulation() { return "scoped"; }
@@ -151,10 +163,10 @@ export class SnkForm {
151
163
  "type": "unknown",
152
164
  "mutable": false,
153
165
  "complexType": {
154
- "original": "RecordValidator",
155
- "resolved": "RecordValidator",
166
+ "original": "IRecordValidator",
167
+ "resolved": "IRecordValidator",
156
168
  "references": {
157
- "RecordValidator": {
169
+ "IRecordValidator": {
158
170
  "location": "import",
159
171
  "path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
160
172
  }
@@ -215,10 +227,10 @@ export class SnkForm {
215
227
  static get states() {
216
228
  return {
217
229
  "_dataUnit": {},
218
- "_configLoaded": {},
219
230
  "_dataState": {},
220
231
  "_editionFormConfig": {},
221
- "_insertionFormConfig": {}
232
+ "_insertionFormConfig": {},
233
+ "_showFormConfig": {}
222
234
  };
223
235
  }
224
236
  static get events() {
@@ -252,7 +264,73 @@ export class SnkForm {
252
264
  "resolved": "string",
253
265
  "references": {}
254
266
  }
267
+ }, {
268
+ "method": "configChanged",
269
+ "name": "configChanged",
270
+ "bubbles": true,
271
+ "cancelable": true,
272
+ "composed": true,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": "Evento disparado quando as configura\u00E7\u00F5es s\u00E3o alteradas."
276
+ },
277
+ "complexType": {
278
+ "original": "IFormConfig",
279
+ "resolved": "IFormConfig",
280
+ "references": {
281
+ "IFormConfig": {
282
+ "location": "import",
283
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
284
+ }
285
+ }
286
+ }
255
287
  }];
256
288
  }
289
+ static get methods() {
290
+ return {
291
+ "setShowFormConfig": {
292
+ "complexType": {
293
+ "signature": "(value: boolean) => Promise<void>",
294
+ "parameters": [{
295
+ "tags": [],
296
+ "text": ""
297
+ }],
298
+ "references": {
299
+ "Promise": {
300
+ "location": "global"
301
+ }
302
+ },
303
+ "return": "Promise<void>"
304
+ },
305
+ "docs": {
306
+ "text": "M\u00E9todo respons\u00E1vel em abrir ou fechar o modal de configura\u00E7\u00F5es do form.",
307
+ "tags": []
308
+ }
309
+ },
310
+ "setConfig": {
311
+ "complexType": {
312
+ "signature": "(config: IFormConfig) => Promise<void>",
313
+ "parameters": [{
314
+ "tags": [],
315
+ "text": ""
316
+ }],
317
+ "references": {
318
+ "Promise": {
319
+ "location": "global"
320
+ },
321
+ "IFormConfig": {
322
+ "location": "import",
323
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
324
+ }
325
+ },
326
+ "return": "Promise<void>"
327
+ },
328
+ "docs": {
329
+ "text": "M\u00E9todo respons\u00E1vel por setar as configura\u00E7\u00F5es do form.",
330
+ "tags": []
331
+ }
332
+ }
333
+ };
334
+ }
257
335
  static get elementRef() { return "_element"; }
258
336
  }
@@ -0,0 +1,9 @@
1
+ :host {
2
+ width: 100%;
3
+ border: 2px solid var(--color--secondary-200);
4
+ border-radius: 15px;
5
+ }
6
+
7
+ .config-options__switch-row {
8
+ margin-top: -30px;
9
+ }
@@ -0,0 +1,315 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import { ApplicationContext, UserInterface, ObjectUtils } from '@sankhyalabs/core';
3
+ import { DataType, getConvertedValue } from "@sankhyalabs/core/dist/dataunit/metadata/DataType";
4
+ import { CheckMode } from "@sankhyalabs/ezui/dist/collection/utils";
5
+ import { DEFAULT_TYPE, TAGS_BY_TYPE, VARS_BY_TYPE } from "../../../../lib/utils/constants";
6
+ export class SnkConfigOptions {
7
+ constructor() {
8
+ /**
9
+ * Armazena as propriedades do campo
10
+ */
11
+ this.fieldConfig = {};
12
+ }
13
+ onConfigDefault(optionSelected) {
14
+ if (optionSelected != undefined) {
15
+ this._defaultType = optionSelected;
16
+ this.fieldConfig.defaultValue = {
17
+ type: this._defaultType
18
+ };
19
+ this.configOptionsChanged.emit(this.fieldConfig);
20
+ }
21
+ }
22
+ buildOptions() {
23
+ var _a, _b, _c;
24
+ const interfaceField = (_c = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name)) === null || _c === void 0 ? void 0 : _c.userInterface;
25
+ return VARS_BY_TYPE.UserInterface[interfaceField];
26
+ }
27
+ enabledValueDefault() {
28
+ var _a, _b, _c;
29
+ const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
30
+ const allowDefault = (_c = field === null || field === void 0 ? void 0 : field.properties) === null || _c === void 0 ? void 0 : _c.allowDefault;
31
+ const hasVariableVar = VARS_BY_TYPE.UserInterface.hasOwnProperty(field === null || field === void 0 ? void 0 : field.userInterface);
32
+ if ((allowDefault == undefined || allowDefault === "true") && hasVariableVar) {
33
+ return true;
34
+ }
35
+ return false;
36
+ }
37
+ isAllowDefault() {
38
+ var _a, _b;
39
+ const allowDefault = (_b = (_a = this._fieldProperties) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.allowDefault;
40
+ if (allowDefault == undefined) {
41
+ return true;
42
+ }
43
+ return allowDefault === "true";
44
+ }
45
+ loadDefaultValue() {
46
+ var _a;
47
+ if (this.fieldConfig == undefined) {
48
+ this._defaultType = DEFAULT_TYPE.fixed;
49
+ this.fieldConfig = {
50
+ defaultValue: {
51
+ type: this._defaultType
52
+ }
53
+ };
54
+ }
55
+ else if (((_a = this.fieldConfig.defaultValue) === null || _a === void 0 ? void 0 : _a.type) == undefined) {
56
+ this._defaultType = DEFAULT_TYPE.fixed;
57
+ this.fieldConfig.defaultValue = {
58
+ type: this._defaultType
59
+ };
60
+ }
61
+ else {
62
+ this._defaultType = this.fieldConfig.defaultValue.type;
63
+ }
64
+ }
65
+ getFieldProperties(field) {
66
+ var _a;
67
+ if (field != undefined) {
68
+ return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(field);
69
+ }
70
+ }
71
+ getMessage(key, params) {
72
+ return this._application.messagesBuilder.getMessage(key, params);
73
+ }
74
+ getDefaultType() {
75
+ var _a;
76
+ return (_a = this.fieldConfig.defaultValue.type) !== null && _a !== void 0 ? _a : DEFAULT_TYPE.fixed;
77
+ }
78
+ getEnabledByProperty(property) {
79
+ const properties = this._fieldProperties;
80
+ if (properties != undefined && properties[property] === true) {
81
+ return false;
82
+ }
83
+ return true;
84
+ }
85
+ getValueByProperty(property) {
86
+ const properties = this._fieldProperties;
87
+ if (properties != undefined && properties[property] === true) {
88
+ return true;
89
+ }
90
+ return this.fieldConfig[property];
91
+ }
92
+ getValidatedValue(fieldValue) {
93
+ var _a, _b;
94
+ if (fieldValue == undefined) {
95
+ return;
96
+ }
97
+ const field = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField((_b = this.fieldConfig) === null || _b === void 0 ? void 0 : _b.name);
98
+ const dataType = field === null || field === void 0 ? void 0 : field.dataType;
99
+ if (dataType == undefined) {
100
+ return;
101
+ }
102
+ const value = (fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.waitmessage) != undefined ? undefined :
103
+ dataType !== DataType.OBJECT && dataType !== DataType.DATE
104
+ && typeof fieldValue === "object"
105
+ ? fieldValue.value
106
+ : fieldValue;
107
+ return dataType === DataType.OBJECT ? JSON.stringify(value) : value;
108
+ }
109
+ buildInputDefault({ value, enabled, label, name, required, userInterface }, properties = undefined, mode = undefined) {
110
+ let options;
111
+ let precision = 0;
112
+ let prettyPrecision = 0;
113
+ const TagName = userInterface == undefined || TAGS_BY_TYPE[userInterface] == undefined
114
+ ? TAGS_BY_TYPE.DEFAULT
115
+ : TAGS_BY_TYPE[userInterface];
116
+ if (userInterface === UserInterface.OPTIONSELECTOR) {
117
+ const prop = properties === null || properties === void 0 ? void 0 : properties.options;
118
+ if (typeof prop === "string") {
119
+ const parsed = ObjectUtils.stringToObject(prop);
120
+ options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
121
+ }
122
+ else {
123
+ options = prop;
124
+ }
125
+ }
126
+ else if (userInterface === UserInterface.DECIMALNUMBER) {
127
+ precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
128
+ prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
129
+ }
130
+ return h(TagName, Object.assign({ value: value, enabled: enabled, label: label, "data-field-name": name, key: name, onEzChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail) }, (this.getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode))));
131
+ }
132
+ getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode) {
133
+ switch (userInterface) {
134
+ case UserInterface.SEARCH:
135
+ return {
136
+ suppressEmptyOption: required,
137
+ optionLoader: (searchArgument) => this.onSearch(searchArgument)
138
+ };
139
+ case UserInterface.OPTIONSELECTOR:
140
+ return {
141
+ suppressEmptyOption: required,
142
+ options
143
+ };
144
+ case UserInterface.CHECKBOX:
145
+ case UserInterface.SWITCH:
146
+ return {
147
+ mode
148
+ };
149
+ case UserInterface.INTEGERNUMBER:
150
+ case UserInterface.DECIMALNUMBER:
151
+ return {
152
+ precision,
153
+ prettyPrecision,
154
+ onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
155
+ };
156
+ case UserInterface.DATE:
157
+ case UserInterface.DATETIME:
158
+ case UserInterface.TIME:
159
+ return {
160
+ onEzStartChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail)
161
+ };
162
+ default:
163
+ return {};
164
+ }
165
+ }
166
+ onChange(fieldValue) {
167
+ this.fieldConfig.defaultValue.value = this.getValidatedValue(fieldValue);
168
+ this.configOptionsChanged.emit(this.fieldConfig);
169
+ }
170
+ onSearch(searchArgument) {
171
+ if (this._application != undefined && this.fieldConfig != undefined) {
172
+ return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
173
+ }
174
+ }
175
+ buildField(field) {
176
+ const { config, descriptor } = field;
177
+ const { name, label, readOnly, required, defaultValue } = config;
178
+ const { userInterface, properties } = descriptor;
179
+ const enabled = (properties === null || properties === void 0 ? void 0 : properties.allowDefault) != undefined ? properties.allowDefault === "true" : !readOnly;
180
+ let value;
181
+ if (enabled) {
182
+ value = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value;
183
+ if (value != undefined) {
184
+ value = getConvertedValue(descriptor === null || descriptor === void 0 ? void 0 : descriptor.dataType, value);
185
+ }
186
+ }
187
+ const configField = { value, enabled, label, name, required, userInterface };
188
+ switch (userInterface) {
189
+ case UserInterface.SWITCH:
190
+ return this.buildInputDefault(configField, undefined, CheckMode.SWITCH);
191
+ case UserInterface.CHECKBOX:
192
+ return this.buildInputDefault(configField, undefined, CheckMode.REGULAR);
193
+ case UserInterface.OPTIONSELECTOR:
194
+ case UserInterface.DECIMALNUMBER:
195
+ return this.buildInputDefault(configField, properties);
196
+ default:
197
+ return this.buildInputDefault(configField);
198
+ }
199
+ }
200
+ componentWillLoad() {
201
+ var _a;
202
+ this.loadDefaultValue();
203
+ this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
204
+ this._fieldProperties = this.getFieldProperties((_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.name);
205
+ }
206
+ render() {
207
+ var _a, _b;
208
+ return (h(Host, null, h("div", { id: this.idConfig }, h("div", { class: "ez-row ez-padding--medium" }, h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-text-input", { label: this.getMessage("snkConfigOptions.label.nameField"), value: (_a = this.fieldConfig) === null || _a === void 0 ? void 0 : _a.label, onEzChange: (evt) => { this.fieldConfig.label = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.typeValueDefault"), suppressEmptyOption: true, enabled: this.enabledValueDefault(), onEzChange: (evt) => { var _a; return this.onConfigDefault((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, value: this.getDefaultType() }, h("option", { value: DEFAULT_TYPE.fixed }, this.getMessage("snkConfigOptions.options.valueFixed")), h("option", { value: DEFAULT_TYPE.variable }, this.getMessage("snkConfigOptions.options.variable")))), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, this._defaultType === DEFAULT_TYPE.variable ?
209
+ h("ez-combo-box", { label: this.getMessage("snkConfigOptions.label.valueDefault"), enabled: this.isAllowDefault(), onEzChange: (evt) => { var _a; this.fieldConfig.defaultValue.value = (_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value; this.configOptionsChanged.emit(this.fieldConfig); }, value: this.fieldConfig.defaultValue.value, options: this.buildOptions() })
210
+ :
211
+ ((_b = this._fieldProperties) === null || _b === void 0 ? void 0 : _b.userInterface) &&
212
+ this.buildField({
213
+ descriptor: this._fieldProperties,
214
+ config: this.fieldConfig
215
+ }))), h("div", { class: "ez-row ez-padding--medium config-options__switch-row" }, h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.clearDuplicate"), value: this.fieldConfig.cleanOnCopy, onEzChange: (evt) => { this.fieldConfig.cleanOnCopy = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.requiredField"), enabled: this.getEnabledByProperty("required"), value: this.getValueByProperty("required"), onEzChange: (evt) => { this.fieldConfig.required = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } })), h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small" }, h("ez-check", { mode: CheckMode.SWITCH, label: this.getMessage("snkConfigOptions.label.protectedField"), enabled: this.getEnabledByProperty("readOnly"), value: this.getValueByProperty("readOnly"), onEzChange: (evt) => { this.fieldConfig.readOnly = evt.detail; this.configOptionsChanged.emit(this.fieldConfig); } }))))));
216
+ }
217
+ static get is() { return "snk-config-options"; }
218
+ static get encapsulation() { return "scoped"; }
219
+ static get originalStyleUrls() {
220
+ return {
221
+ "$": ["snk-config-options.css"]
222
+ };
223
+ }
224
+ static get styleUrls() {
225
+ return {
226
+ "$": ["snk-config-options.css"]
227
+ };
228
+ }
229
+ static get properties() {
230
+ return {
231
+ "fieldConfig": {
232
+ "type": "unknown",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "IFieldConfig",
236
+ "resolved": "IFieldConfig",
237
+ "references": {
238
+ "IFieldConfig": {
239
+ "location": "import",
240
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
241
+ }
242
+ }
243
+ },
244
+ "required": false,
245
+ "optional": false,
246
+ "docs": {
247
+ "tags": [],
248
+ "text": "Armazena as propriedades do campo"
249
+ },
250
+ "defaultValue": "{} as IFieldConfig"
251
+ },
252
+ "idConfig": {
253
+ "type": "string",
254
+ "mutable": false,
255
+ "complexType": {
256
+ "original": "string",
257
+ "resolved": "string",
258
+ "references": {}
259
+ },
260
+ "required": false,
261
+ "optional": false,
262
+ "docs": {
263
+ "tags": [],
264
+ "text": "Armazena a chave de op\u00E7\u00F5es de configura\u00E7\u00E3o"
265
+ },
266
+ "attribute": "id-config",
267
+ "reflect": true
268
+ },
269
+ "dataUnit": {
270
+ "type": "unknown",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "DataUnit",
274
+ "resolved": "DataUnit",
275
+ "references": {
276
+ "DataUnit": {
277
+ "location": "import",
278
+ "path": "@sankhyalabs/core"
279
+ }
280
+ }
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": "Reposit\u00F3rio de dados respons\u00E1vel por controlar a manipula\u00E7\u00E3o dos dados"
287
+ }
288
+ }
289
+ };
290
+ }
291
+ static get states() {
292
+ return {
293
+ "_defaultType": {}
294
+ };
295
+ }
296
+ static get events() {
297
+ return [{
298
+ "method": "configOptionsChanged",
299
+ "name": "configOptionsChanged",
300
+ "bubbles": true,
301
+ "cancelable": true,
302
+ "composed": true,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": "Evento disparado ao realizar alguma altera\u00E7\u00E3o nos campos"
306
+ },
307
+ "complexType": {
308
+ "original": "any",
309
+ "resolved": "any",
310
+ "references": {}
311
+ }
312
+ }];
313
+ }
314
+ static get elementRef() { return "_element"; }
315
+ }