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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (829) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +75 -0
  3. package/dist/cjs/AuthorizationConfig-79ffae4b.js +7 -0
  4. package/dist/cjs/ConfigStorage-0e4275f5.js +422 -0
  5. package/dist/cjs/DataFetcher-bd3d53a8.js +6985 -0
  6. package/dist/cjs/ISave-d68ce3cd.js +8 -0
  7. package/dist/cjs/ParamType-90b440a0.js +13 -0
  8. package/dist/cjs/PersonalizedFilterUtils-1aeb625d.js +220 -0
  9. package/dist/cjs/PrintUtils-bcaeb82f.js +215 -0
  10. package/dist/cjs/ResourceIDUtils-5ff86aa7.js +12 -0
  11. package/dist/cjs/SnkFormConfigManager-5b485cd4.js +134 -0
  12. package/dist/cjs/SnkMessageBuilder-d0abb63d.js +651 -0
  13. package/dist/cjs/SnkMultiSelectionListDataSource-804ff4c7.js +34 -0
  14. package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
  15. package/dist/cjs/auth-fetcher-1583fe43.js +34 -0
  16. package/dist/cjs/constants-d187e03e.js +101 -0
  17. package/dist/cjs/dataunit-fetcher-910be4ce.js +356 -0
  18. package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
  19. package/dist/cjs/filter-item-type.enum-aa823a00.js +17 -0
  20. package/dist/cjs/filter-type.enum-b14ce507.js +11 -0
  21. package/dist/cjs/form-config-fetcher-f6cb55e6.js +244 -0
  22. package/dist/cjs/index-0e663819.js +33 -0
  23. package/dist/cjs/index-102ba62d.js +201 -0
  24. package/dist/cjs/index-8d94b7e0.js +7 -0
  25. package/dist/cjs/index-c5771aba.js +44 -0
  26. package/dist/cjs/index-f9e81701.js +2332 -0
  27. package/dist/cjs/index.cjs.js +2 -0
  28. package/dist/cjs/loader.cjs.js +22 -0
  29. package/dist/cjs/pesquisa-fetcher-3356b3df.js +167 -0
  30. package/dist/cjs/presentationMode-52ec3bdd.js +7 -0
  31. package/dist/cjs/sankhyablocks.cjs.js +23 -0
  32. package/dist/cjs/snk-actions-button.cjs.entry.js +713 -0
  33. package/dist/cjs/snk-actions-form.cjs.entry.js +200 -0
  34. package/dist/cjs/snk-application.cjs.entry.js +947 -0
  35. package/dist/cjs/snk-attach.cjs.entry.js +447 -0
  36. package/dist/cjs/snk-client-confirm.cjs.entry.js +52 -0
  37. package/dist/cjs/snk-config-options.cjs.entry.js +239 -0
  38. package/dist/cjs/snk-configurator.cjs.entry.js +100 -0
  39. package/dist/cjs/snk-crud.cjs.entry.js +200 -0
  40. package/dist/cjs/snk-data-exporter.cjs.entry.js +521 -0
  41. package/dist/cjs/snk-data-unit-7cc1846d.js +452 -0
  42. package/dist/cjs/snk-data-unit.cjs.entry.js +13 -0
  43. package/dist/cjs/snk-detail-view.cjs.entry.js +273 -0
  44. package/dist/cjs/snk-entity-list.cjs.entry.js +114 -0
  45. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +132 -0
  46. package/dist/cjs/snk-expression-group_2.cjs.entry.js +545 -0
  47. package/dist/cjs/snk-field-config.cjs.entry.js +60 -0
  48. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +60 -0
  49. package/dist/cjs/snk-filter-bar.cjs.entry.js +508 -0
  50. package/dist/cjs/snk-filter-binary-select.cjs.entry.js +91 -0
  51. package/dist/cjs/snk-filter-detail.cjs.entry.js +169 -0
  52. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +408 -0
  53. package/dist/cjs/snk-filter-item.cjs.entry.js +281 -0
  54. package/dist/cjs/snk-filter-list.cjs.entry.js +152 -0
  55. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +113 -0
  56. package/dist/cjs/snk-filter-modal.cjs.entry.js +217 -0
  57. package/dist/cjs/snk-filter-multi-select.cjs.entry.js +43 -0
  58. package/dist/cjs/snk-filter-number.cjs.entry.js +44 -0
  59. package/dist/cjs/snk-filter-period.cjs.entry.js +73 -0
  60. package/dist/cjs/snk-filter-search.cjs.entry.js +54 -0
  61. package/dist/cjs/snk-filter-text.cjs.entry.js +36 -0
  62. package/dist/cjs/snk-form-config.cjs.entry.js +981 -0
  63. package/dist/cjs/snk-form-summary.cjs.entry.js +61 -0
  64. package/dist/cjs/snk-form-view.cjs.entry.js +104 -0
  65. package/dist/cjs/snk-form.cjs.entry.js +92 -0
  66. package/dist/cjs/snk-grid-config.cjs.entry.js +484 -0
  67. package/dist/cjs/snk-grid.cjs.entry.js +333 -0
  68. package/dist/cjs/snk-guides-viewer-5e22097d.js +345 -0
  69. package/dist/cjs/snk-guides-viewer.cjs.entry.js +29 -0
  70. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +210 -0
  71. package/dist/cjs/snk-personalized-filter.cjs.entry.js +303 -0
  72. package/dist/cjs/snk-pesquisa.cjs.entry.js +324 -0
  73. package/dist/cjs/snk-print-selector.cjs.entry.js +167 -0
  74. package/dist/cjs/snk-select-box.cjs.entry.js +25 -0
  75. package/dist/cjs/snk-simple-bar.cjs.entry.js +45 -0
  76. package/dist/cjs/snk-simple-crud.cjs.entry.js +296 -0
  77. package/dist/cjs/snk-tab-config.cjs.entry.js +331 -0
  78. package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +20 -0
  79. package/dist/cjs/snk-taskbar.cjs.entry.js +287 -0
  80. package/dist/cjs/taskbar-elements-39949c7a.js +121 -0
  81. package/dist/cjs/taskbar-processor-bce3f499.js +49 -0
  82. package/dist/cjs/teste-pesquisa.cjs.entry.js +37 -0
  83. package/dist/collection/collection-manifest.json +172 -0
  84. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js +8 -0
  85. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js +11 -0
  86. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js +7 -0
  87. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +22 -0
  88. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +20 -0
  89. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +42 -0
  90. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +26 -0
  91. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js +26 -0
  92. package/dist/collection/components/snk-actions-button/actions/index.js +342 -0
  93. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js +7 -0
  94. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js +1 -0
  95. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js +1 -0
  96. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js +1 -0
  97. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js +1 -0
  98. package/dist/collection/components/snk-actions-button/clientEvent/index.js +87 -0
  99. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js +1 -0
  100. package/dist/collection/components/snk-actions-button/snk-actions-button.css +38 -0
  101. package/dist/collection/components/snk-actions-button/snk-actions-button.js +143 -0
  102. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js +263 -0
  103. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js +134 -0
  104. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +60 -0
  105. package/dist/collection/components/snk-application/snk-application.css +5 -0
  106. package/dist/collection/components/snk-application/snk-application.js +2055 -0
  107. package/dist/collection/components/snk-attach/interfaces/index.js +1 -0
  108. package/dist/collection/components/snk-attach/snk-attach.css +8 -0
  109. package/dist/collection/components/snk-attach/snk-attach.js +203 -0
  110. package/dist/collection/components/snk-attach/structure/crud-config-builder.js +37 -0
  111. package/dist/collection/components/snk-attach/structure/data-unit-builder.js +105 -0
  112. package/dist/collection/components/snk-attach/structure/index.js +3 -0
  113. package/dist/collection/components/snk-attach/structure/taskbar-builder.js +47 -0
  114. package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
  115. package/dist/collection/components/snk-configurator/snk-configurator.css +159 -0
  116. package/dist/collection/components/snk-configurator/snk-configurator.js +311 -0
  117. package/dist/collection/components/snk-crud/snk-crud.css +6 -0
  118. package/dist/collection/components/snk-crud/snk-crud.js +572 -0
  119. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js +26 -0
  120. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +43 -0
  121. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +26 -0
  122. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +606 -0
  123. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css +37 -0
  124. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js +91 -0
  125. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css +52 -0
  126. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +402 -0
  127. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +91 -0
  128. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +727 -0
  129. package/dist/collection/components/snk-data-exporter/data/attachment.js +1 -0
  130. package/dist/collection/components/snk-data-exporter/data/email.js +1 -0
  131. package/dist/collection/components/snk-data-exporter/data/export-config.js +1 -0
  132. package/dist/collection/components/snk-data-exporter/data/export-result.js +1 -0
  133. package/dist/collection/components/snk-data-exporter/data/report.js +1 -0
  134. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js +7 -0
  135. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +21 -0
  136. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +172 -0
  137. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -0
  138. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js +1 -0
  139. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js +1 -0
  140. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +38 -0
  141. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +375 -0
  142. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +140 -0
  143. package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
  144. package/dist/collection/components/snk-data-unit/snk-data-unit.js +836 -0
  145. package/dist/collection/components/snk-entity-list/snk-entity-list.css +35 -0
  146. package/dist/collection/components/snk-entity-list/snk-entity-list.js +234 -0
  147. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +128 -0
  148. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js +5 -0
  149. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +197 -0
  150. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +123 -0
  151. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +124 -0
  152. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +191 -0
  153. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +137 -0
  154. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +96 -0
  155. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +66 -0
  156. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +396 -0
  157. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +13 -0
  158. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +245 -0
  159. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +415 -0
  160. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +323 -0
  161. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +35 -0
  162. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +345 -0
  163. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css +8 -0
  164. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +219 -0
  165. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +184 -0
  166. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +479 -0
  167. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js +1 -0
  168. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +7 -0
  169. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +42 -0
  170. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js +411 -0
  171. package/dist/collection/components/snk-filter-field-search/interfaces/index.js +5 -0
  172. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css +41 -0
  173. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js +335 -0
  174. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js +1 -0
  175. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js +24 -0
  176. package/dist/collection/components/snk-form/SnkFormConfigManager.js +129 -0
  177. package/dist/collection/components/snk-form/snk-form.css +11 -0
  178. package/dist/collection/components/snk-form/snk-form.js +260 -0
  179. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +16 -0
  180. package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +344 -0
  181. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +219 -0
  182. package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +184 -0
  183. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +237 -0
  184. package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1097 -0
  185. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +323 -0
  186. package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +525 -0
  187. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +29 -0
  188. package/dist/collection/components/snk-grid/snk-grid.css +28 -0
  189. package/dist/collection/components/snk-grid/snk-grid.js +774 -0
  190. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +181 -0
  191. package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +634 -0
  192. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
  193. package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
  194. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js +0 -0
  195. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js +5 -0
  196. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js +1 -0
  197. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js +1 -0
  198. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js +1 -0
  199. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js +1 -0
  200. package/dist/collection/components/snk-personalized-filter/interfaces/index.js +39 -0
  201. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css +45 -0
  202. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +456 -0
  203. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +73 -0
  204. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +448 -0
  205. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +26 -0
  206. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css +111 -0
  207. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +412 -0
  208. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css +10 -0
  209. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js +88 -0
  210. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css +66 -0
  211. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +158 -0
  212. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css +12 -0
  213. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js +291 -0
  214. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +215 -0
  215. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +151 -0
  216. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +394 -0
  217. package/dist/collection/components/snk-print-selector/snk-print-selector.css +35 -0
  218. package/dist/collection/components/snk-print-selector/snk-print-selector.js +203 -0
  219. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css +32 -0
  220. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +146 -0
  221. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +22 -0
  222. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +597 -0
  223. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +114 -0
  224. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +45 -0
  225. package/dist/collection/components/snk-taskbar/snk-taskbar-custom-elements.js +43 -0
  226. package/dist/collection/components/snk-taskbar/snk-taskbar.css +7 -0
  227. package/dist/collection/components/snk-taskbar/snk-taskbar.js +548 -0
  228. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css +3 -0
  229. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +36 -0
  230. package/dist/collection/index.js +1 -0
  231. package/dist/collection/lib/@types/index.js +31 -0
  232. package/dist/collection/lib/applet-caller/applet-caller.js +6 -0
  233. package/dist/collection/lib/auth/mgeauthorization.module.js +1 -0
  234. package/dist/collection/lib/configs/ConfigStorage.js +84 -0
  235. package/dist/collection/lib/dataUnit/InMemoryLoader.js +86 -0
  236. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +490 -0
  237. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -0
  238. package/dist/collection/lib/http/data-fetcher/fetchers/attach-fetcher.js +136 -0
  239. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js +29 -0
  240. package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +353 -0
  241. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js +1 -0
  242. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js +1 -0
  243. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.js +6 -0
  244. package/dist/collection/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.js +3 -0
  245. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +33 -0
  246. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js +1 -0
  247. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +1 -0
  248. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js +1 -0
  249. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js +1 -0
  250. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js +7 -0
  251. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +18 -0
  252. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +127 -0
  253. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +177 -0
  254. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +40 -0
  255. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +66 -0
  256. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +169 -0
  257. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +163 -0
  258. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +64 -0
  259. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js +63 -0
  260. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js +1 -0
  261. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js +28 -0
  262. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js +1 -0
  263. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js +15 -0
  264. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -0
  265. package/dist/collection/lib/index.js +14 -0
  266. package/dist/collection/lib/licenses/sankhyalicense.module.js +1 -0
  267. package/dist/collection/lib/message/SnkMessageBuilder.js +163 -0
  268. package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
  269. package/dist/collection/lib/message/resources/file-viewer.msg.js +10 -0
  270. package/dist/collection/lib/message/resources/snk-actions-button.msg.js +27 -0
  271. package/dist/collection/lib/message/resources/snk-attach.msg.js +27 -0
  272. package/dist/collection/lib/message/resources/snk-configurator.msg.js +8 -0
  273. package/dist/collection/lib/message/resources/snk-crud.msg.js +10 -0
  274. package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +32 -0
  275. package/dist/collection/lib/message/resources/snk-data-unit.msg.js +31 -0
  276. package/dist/collection/lib/message/resources/snk-entity-list.msg.js +3 -0
  277. package/dist/collection/lib/message/resources/snk-exporter.msg.js +21 -0
  278. package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +58 -0
  279. package/dist/collection/lib/message/resources/snk-filter-field-search.msg.js +7 -0
  280. package/dist/collection/lib/message/resources/snk-filter-param-config.msg.js +18 -0
  281. package/dist/collection/lib/message/resources/snk-form.msg.js +62 -0
  282. package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
  283. package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +83 -0
  284. package/dist/collection/lib/message/resources/snk-print-selector.msg.js +23 -0
  285. package/dist/collection/lib/message/resources/snk-simple-bar.msg.js +3 -0
  286. package/dist/collection/lib/message/resources/snk-taskbar.msg.js +18 -0
  287. package/dist/collection/lib/resourceid/ResourceIDUtils.js +7 -0
  288. package/dist/collection/lib/store/index.js +6 -0
  289. package/dist/collection/lib/utils/CrudUtils.js +73 -0
  290. package/dist/collection/lib/utils/PrintUtils.js +210 -0
  291. package/dist/collection/lib/utils/constants.js +102 -0
  292. package/dist/collection/lib/utils/fileViewer/index.js +11 -0
  293. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js +1 -0
  294. package/dist/collection/lib/utils/pesquisa.js +16 -0
  295. package/dist/collection/lib/utils/urlutils.js +54 -0
  296. package/dist/collection/lib/workspace/workspace.js +19 -0
  297. package/dist/components/AuthorizationConfig.js +7 -0
  298. package/dist/components/ConfigStorage.js +419 -0
  299. package/dist/components/DataFetcher.js +6981 -0
  300. package/dist/components/ParamType.js +13 -0
  301. package/dist/components/PersonalizedFilterUtils.js +260 -0
  302. package/dist/components/PrintUtils.js +213 -0
  303. package/dist/components/ResourceIDUtils.js +10 -0
  304. package/dist/components/SnkFormConfigManager.js +132 -0
  305. package/dist/components/SnkMessageBuilder.js +629 -0
  306. package/dist/components/SnkMultiSelectionListDataSource.js +78 -0
  307. package/dist/components/_commonjsHelpers.js +17 -0
  308. package/dist/components/auth-fetcher.js +32 -0
  309. package/dist/components/constants.js +90 -0
  310. package/dist/components/dataunit-fetcher.js +354 -0
  311. package/dist/components/filter-item-type.enum.js +15 -0
  312. package/dist/components/form-config-fetcher.js +241 -0
  313. package/dist/components/index.d.ts +80 -0
  314. package/dist/components/index.js +51 -0
  315. package/dist/components/index2.js +33 -0
  316. package/dist/components/index3.js +199 -0
  317. package/dist/components/pesquisa-fetcher.js +165 -0
  318. package/dist/components/presentationMode.js +7 -0
  319. package/dist/components/snk-actions-button.d.ts +11 -0
  320. package/dist/components/snk-actions-button.js +6 -0
  321. package/dist/components/snk-actions-button2.js +732 -0
  322. package/dist/components/snk-actions-form.d.ts +11 -0
  323. package/dist/components/snk-actions-form.js +218 -0
  324. package/dist/components/snk-application.d.ts +11 -0
  325. package/dist/components/snk-application.js +6 -0
  326. package/dist/components/snk-application2.js +1004 -0
  327. package/dist/components/snk-attach.d.ts +11 -0
  328. package/dist/components/snk-attach.js +6 -0
  329. package/dist/components/snk-attach2.js +497 -0
  330. package/dist/components/snk-client-confirm.d.ts +11 -0
  331. package/dist/components/snk-client-confirm.js +71 -0
  332. package/dist/components/snk-config-options.d.ts +11 -0
  333. package/dist/components/snk-config-options.js +6 -0
  334. package/dist/components/snk-config-options2.js +255 -0
  335. package/dist/components/snk-configurator.d.ts +11 -0
  336. package/dist/components/snk-configurator.js +6 -0
  337. package/dist/components/snk-configurator2.js +120 -0
  338. package/dist/components/snk-crud.d.ts +11 -0
  339. package/dist/components/snk-crud.js +410 -0
  340. package/dist/components/snk-data-exporter.d.ts +11 -0
  341. package/dist/components/snk-data-exporter.js +6 -0
  342. package/dist/components/snk-data-exporter2.js +539 -0
  343. package/dist/components/snk-data-unit.d.ts +11 -0
  344. package/dist/components/snk-data-unit.js +6 -0
  345. package/dist/components/snk-data-unit2.js +479 -0
  346. package/dist/components/snk-detail-view.d.ts +11 -0
  347. package/dist/components/snk-detail-view.js +6 -0
  348. package/dist/components/snk-detail-view2.js +943 -0
  349. package/dist/components/snk-entity-list.d.ts +11 -0
  350. package/dist/components/snk-entity-list.js +134 -0
  351. package/dist/components/snk-exporter-email-sender.d.ts +11 -0
  352. package/dist/components/snk-exporter-email-sender.js +6 -0
  353. package/dist/components/snk-exporter-email-sender2.js +149 -0
  354. package/dist/components/snk-expression-group.d.ts +11 -0
  355. package/dist/components/snk-expression-group.js +6 -0
  356. package/dist/components/snk-expression-group2.js +296 -0
  357. package/dist/components/snk-expression-item.d.ts +11 -0
  358. package/dist/components/snk-expression-item.js +6 -0
  359. package/dist/components/snk-expression-item2.js +332 -0
  360. package/dist/components/snk-field-config.d.ts +11 -0
  361. package/dist/components/snk-field-config.js +6 -0
  362. package/dist/components/snk-field-config2.js +76 -0
  363. package/dist/components/snk-filter-advanced-mode.d.ts +11 -0
  364. package/dist/components/snk-filter-advanced-mode.js +6 -0
  365. package/dist/components/snk-filter-advanced-mode2.js +39 -0
  366. package/dist/components/snk-filter-assistent-mode.d.ts +11 -0
  367. package/dist/components/snk-filter-assistent-mode.js +6 -0
  368. package/dist/components/snk-filter-assistent-mode2.js +77 -0
  369. package/dist/components/snk-filter-bar.d.ts +11 -0
  370. package/dist/components/snk-filter-bar.js +6 -0
  371. package/dist/components/snk-filter-bar2.js +583 -0
  372. package/dist/components/snk-filter-binary-select.d.ts +11 -0
  373. package/dist/components/snk-filter-binary-select.js +109 -0
  374. package/dist/components/snk-filter-detail.d.ts +11 -0
  375. package/dist/components/snk-filter-detail.js +6 -0
  376. package/dist/components/snk-filter-detail2.js +182 -0
  377. package/dist/components/snk-filter-field-search.d.ts +11 -0
  378. package/dist/components/snk-filter-field-search.js +6 -0
  379. package/dist/components/snk-filter-field-search2.js +228 -0
  380. package/dist/components/snk-filter-item.d.ts +11 -0
  381. package/dist/components/snk-filter-item.js +6 -0
  382. package/dist/components/snk-filter-item2.js +303 -0
  383. package/dist/components/snk-filter-list.d.ts +11 -0
  384. package/dist/components/snk-filter-list.js +176 -0
  385. package/dist/components/snk-filter-modal-item.d.ts +11 -0
  386. package/dist/components/snk-filter-modal-item.js +6 -0
  387. package/dist/components/snk-filter-modal-item2.js +129 -0
  388. package/dist/components/snk-filter-modal.d.ts +11 -0
  389. package/dist/components/snk-filter-modal.js +242 -0
  390. package/dist/components/snk-filter-multi-select.d.ts +11 -0
  391. package/dist/components/snk-filter-multi-select.js +60 -0
  392. package/dist/components/snk-filter-number.d.ts +11 -0
  393. package/dist/components/snk-filter-number.js +61 -0
  394. package/dist/components/snk-filter-param-config.d.ts +11 -0
  395. package/dist/components/snk-filter-param-config.js +6 -0
  396. package/dist/components/snk-filter-param-config2.js +229 -0
  397. package/dist/components/snk-filter-period.d.ts +11 -0
  398. package/dist/components/snk-filter-period.js +92 -0
  399. package/dist/components/snk-filter-search.d.ts +11 -0
  400. package/dist/components/snk-filter-search.js +71 -0
  401. package/dist/components/snk-filter-text.d.ts +11 -0
  402. package/dist/components/snk-filter-text.js +52 -0
  403. package/dist/components/snk-form-config.d.ts +11 -0
  404. package/dist/components/snk-form-config.js +6 -0
  405. package/dist/components/snk-form-config2.js +1017 -0
  406. package/dist/components/snk-form-summary.d.ts +11 -0
  407. package/dist/components/snk-form-summary.js +6 -0
  408. package/dist/components/snk-form-summary2.js +75 -0
  409. package/dist/components/snk-form-view.d.ts +11 -0
  410. package/dist/components/snk-form-view.js +6 -0
  411. package/dist/components/snk-form-view2.js +134 -0
  412. package/dist/components/snk-form.d.ts +11 -0
  413. package/dist/components/snk-form.js +133 -0
  414. package/dist/components/snk-grid-config.d.ts +11 -0
  415. package/dist/components/snk-grid-config.js +6 -0
  416. package/dist/components/snk-grid-config2.js +501 -0
  417. package/dist/components/snk-grid.d.ts +11 -0
  418. package/dist/components/snk-grid.js +6 -0
  419. package/dist/components/snk-grid2.js +464 -0
  420. package/dist/components/snk-guides-viewer.d.ts +11 -0
  421. package/dist/components/snk-guides-viewer.js +6 -0
  422. package/dist/components/snk-personalized-filter-editor.d.ts +11 -0
  423. package/dist/components/snk-personalized-filter-editor.js +230 -0
  424. package/dist/components/snk-personalized-filter.d.ts +11 -0
  425. package/dist/components/snk-personalized-filter.js +6 -0
  426. package/dist/components/snk-personalized-filter2.js +357 -0
  427. package/dist/components/snk-pesquisa.d.ts +11 -0
  428. package/dist/components/snk-pesquisa.js +6 -0
  429. package/dist/components/snk-pesquisa2.js +340 -0
  430. package/dist/components/snk-print-selector.d.ts +11 -0
  431. package/dist/components/snk-print-selector.js +183 -0
  432. package/dist/components/snk-select-box.d.ts +11 -0
  433. package/dist/components/snk-select-box.js +6 -0
  434. package/dist/components/snk-select-box2.js +38 -0
  435. package/dist/components/snk-simple-bar.d.ts +11 -0
  436. package/dist/components/snk-simple-bar.js +6 -0
  437. package/dist/components/snk-simple-bar2.js +59 -0
  438. package/dist/components/snk-simple-crud.d.ts +11 -0
  439. package/dist/components/snk-simple-crud.js +6 -0
  440. package/dist/components/snk-simple-crud2.js +347 -0
  441. package/dist/components/snk-tab-config.d.ts +11 -0
  442. package/dist/components/snk-tab-config.js +6 -0
  443. package/dist/components/snk-tab-config2.js +7232 -0
  444. package/dist/components/snk-taskbar-custom-elements.d.ts +11 -0
  445. package/dist/components/snk-taskbar-custom-elements.js +35 -0
  446. package/dist/components/snk-taskbar.d.ts +11 -0
  447. package/dist/components/snk-taskbar.js +6 -0
  448. package/dist/components/snk-taskbar2.js +444 -0
  449. package/dist/components/teste-pesquisa.d.ts +11 -0
  450. package/dist/components/teste-pesquisa.js +63 -0
  451. package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
  452. package/dist/esm/ConfigStorage-f359573c.js +419 -0
  453. package/dist/esm/DataFetcher-8daff9ad.js +6981 -0
  454. package/dist/esm/ISave-4412b20c.js +8 -0
  455. package/dist/esm/ParamType-d5152b06.js +13 -0
  456. package/dist/esm/PersonalizedFilterUtils-75fb0106.js +218 -0
  457. package/dist/esm/PrintUtils-3e4ff0f5.js +213 -0
  458. package/dist/esm/ResourceIDUtils-a114189a.js +10 -0
  459. package/dist/esm/SnkFormConfigManager-35876bad.js +132 -0
  460. package/dist/esm/SnkMessageBuilder-68c1c25a.js +629 -0
  461. package/dist/esm/SnkMultiSelectionListDataSource-892f37f9.js +32 -0
  462. package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
  463. package/dist/esm/auth-fetcher-299fed55.js +32 -0
  464. package/dist/esm/constants-3644f1b6.js +90 -0
  465. package/dist/esm/dataunit-fetcher-bd8f9572.js +354 -0
  466. package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
  467. package/dist/esm/filter-item-type.enum-5028ed3f.js +15 -0
  468. package/dist/esm/filter-type.enum-a80c1b6b.js +9 -0
  469. package/dist/esm/form-config-fetcher-8ef7be16.js +241 -0
  470. package/dist/esm/index-1564817d.js +33 -0
  471. package/dist/esm/index-620ac460.js +7 -0
  472. package/dist/esm/index-a7d3d3f1.js +2300 -0
  473. package/dist/esm/index-ae591a44.js +44 -0
  474. package/dist/esm/index-bdf75557.js +199 -0
  475. package/dist/esm/index.js +1 -0
  476. package/dist/esm/loader.js +18 -0
  477. package/dist/esm/pesquisa-fetcher-27819123.js +165 -0
  478. package/dist/esm/polyfills/core-js.js +11 -0
  479. package/dist/esm/polyfills/css-shim.js +1 -0
  480. package/dist/esm/polyfills/dom.js +79 -0
  481. package/dist/esm/polyfills/es5-html-element.js +1 -0
  482. package/dist/esm/polyfills/index.js +34 -0
  483. package/dist/esm/polyfills/system.js +6 -0
  484. package/dist/esm/presentationMode-783bbf9d.js +7 -0
  485. package/dist/esm/sankhyablocks.js +18 -0
  486. package/dist/esm/snk-actions-button.entry.js +709 -0
  487. package/dist/esm/snk-actions-form.entry.js +196 -0
  488. package/dist/esm/snk-application.entry.js +943 -0
  489. package/dist/esm/snk-attach.entry.js +443 -0
  490. package/dist/esm/snk-client-confirm.entry.js +48 -0
  491. package/dist/esm/snk-config-options.entry.js +235 -0
  492. package/dist/esm/snk-configurator.entry.js +96 -0
  493. package/dist/esm/snk-crud.entry.js +196 -0
  494. package/dist/esm/snk-data-exporter.entry.js +517 -0
  495. package/dist/esm/snk-data-unit-1715d2f1.js +450 -0
  496. package/dist/esm/snk-data-unit.entry.js +5 -0
  497. package/dist/esm/snk-detail-view.entry.js +269 -0
  498. package/dist/esm/snk-entity-list.entry.js +110 -0
  499. package/dist/esm/snk-exporter-email-sender.entry.js +128 -0
  500. package/dist/esm/snk-expression-group_2.entry.js +540 -0
  501. package/dist/esm/snk-field-config.entry.js +56 -0
  502. package/dist/esm/snk-filter-advanced-mode_2.entry.js +55 -0
  503. package/dist/esm/snk-filter-bar.entry.js +504 -0
  504. package/dist/esm/snk-filter-binary-select.entry.js +87 -0
  505. package/dist/esm/snk-filter-detail.entry.js +165 -0
  506. package/dist/esm/snk-filter-field-search_2.entry.js +403 -0
  507. package/dist/esm/snk-filter-item.entry.js +277 -0
  508. package/dist/esm/snk-filter-list.entry.js +148 -0
  509. package/dist/esm/snk-filter-modal-item.entry.js +109 -0
  510. package/dist/esm/snk-filter-modal.entry.js +213 -0
  511. package/dist/esm/snk-filter-multi-select.entry.js +39 -0
  512. package/dist/esm/snk-filter-number.entry.js +40 -0
  513. package/dist/esm/snk-filter-period.entry.js +69 -0
  514. package/dist/esm/snk-filter-search.entry.js +50 -0
  515. package/dist/esm/snk-filter-text.entry.js +32 -0
  516. package/dist/esm/snk-form-config.entry.js +977 -0
  517. package/dist/esm/snk-form-summary.entry.js +57 -0
  518. package/dist/esm/snk-form-view.entry.js +100 -0
  519. package/dist/esm/snk-form.entry.js +88 -0
  520. package/dist/esm/snk-grid-config.entry.js +480 -0
  521. package/dist/esm/snk-grid.entry.js +329 -0
  522. package/dist/esm/snk-guides-viewer-b0e32a7d.js +343 -0
  523. package/dist/esm/snk-guides-viewer.entry.js +21 -0
  524. package/dist/esm/snk-personalized-filter-editor.entry.js +206 -0
  525. package/dist/esm/snk-personalized-filter.entry.js +299 -0
  526. package/dist/esm/snk-pesquisa.entry.js +320 -0
  527. package/dist/esm/snk-print-selector.entry.js +159 -0
  528. package/dist/esm/snk-select-box.entry.js +21 -0
  529. package/dist/esm/snk-simple-bar.entry.js +41 -0
  530. package/dist/esm/snk-simple-crud.entry.js +292 -0
  531. package/dist/esm/snk-tab-config.entry.js +327 -0
  532. package/dist/esm/snk-taskbar-custom-elements.entry.js +16 -0
  533. package/dist/esm/snk-taskbar.entry.js +283 -0
  534. package/dist/esm/taskbar-elements-0a6b8b95.js +118 -0
  535. package/dist/esm/taskbar-processor-94402e6e.js +47 -0
  536. package/dist/esm/teste-pesquisa.entry.js +33 -0
  537. package/dist/index.cjs.js +1 -0
  538. package/dist/index.js +1 -0
  539. package/dist/sankhyablocks/index.esm.js +0 -0
  540. package/dist/sankhyablocks/p-0885ed3c.entry.js +1 -0
  541. package/dist/sankhyablocks/p-0df2ead8.entry.js +11 -0
  542. package/dist/sankhyablocks/p-112455b1.js +1 -0
  543. package/dist/sankhyablocks/p-118e769b.entry.js +1 -0
  544. package/dist/sankhyablocks/p-1a68fb59.js +1 -0
  545. package/dist/sankhyablocks/p-219f888d.entry.js +1 -0
  546. package/dist/sankhyablocks/p-247a8b36.entry.js +1 -0
  547. package/dist/sankhyablocks/p-25c5428f.entry.js +1 -0
  548. package/dist/sankhyablocks/p-26ad62b9.entry.js +1 -0
  549. package/dist/sankhyablocks/p-26b0ce3e.entry.js +1 -0
  550. package/dist/sankhyablocks/p-324ce41e.entry.js +1 -0
  551. package/dist/sankhyablocks/p-34604220.entry.js +1 -0
  552. package/dist/sankhyablocks/p-4a78e118.js +1 -0
  553. package/dist/sankhyablocks/p-5534e08c.js +1 -0
  554. package/dist/sankhyablocks/p-584d7212.js +1 -0
  555. package/dist/sankhyablocks/p-5c1aacc7.js +1 -0
  556. package/dist/sankhyablocks/p-5d04ae42.entry.js +1 -0
  557. package/dist/sankhyablocks/p-648a7c72.entry.js +1 -0
  558. package/dist/sankhyablocks/p-688dcb4c.js +1 -0
  559. package/dist/sankhyablocks/p-6a38bda5.entry.js +1 -0
  560. package/dist/sankhyablocks/p-6dc031de.js +1 -0
  561. package/dist/sankhyablocks/p-72fc257b.entry.js +1 -0
  562. package/dist/sankhyablocks/p-7bcd2f89.js +56 -0
  563. package/dist/sankhyablocks/p-7bd5aea7.js +1 -0
  564. package/dist/sankhyablocks/p-8014cc25.entry.js +1 -0
  565. package/dist/sankhyablocks/p-838f8234.entry.js +1 -0
  566. package/dist/sankhyablocks/p-88aa931b.entry.js +1 -0
  567. package/dist/sankhyablocks/p-8d884fab.js +1 -0
  568. package/dist/sankhyablocks/p-928efcaa.entry.js +1 -0
  569. package/dist/sankhyablocks/p-933c0c0b.js +1 -0
  570. package/dist/sankhyablocks/p-9531fd46.entry.js +1 -0
  571. package/dist/sankhyablocks/p-959e0835.entry.js +1 -0
  572. package/dist/sankhyablocks/p-96a89d58.entry.js +1 -0
  573. package/dist/sankhyablocks/p-989937ee.entry.js +1 -0
  574. package/dist/sankhyablocks/p-9a270401.entry.js +1 -0
  575. package/dist/sankhyablocks/p-9d3a025a.entry.js +1 -0
  576. package/dist/sankhyablocks/p-9e7d65a4.js +1 -0
  577. package/dist/sankhyablocks/p-a1e1b305.entry.js +1 -0
  578. package/dist/sankhyablocks/p-a7ee0e6f.entry.js +1 -0
  579. package/dist/sankhyablocks/p-ac0556a3.js +1 -0
  580. package/dist/sankhyablocks/p-ac8d1cd6.entry.js +1 -0
  581. package/dist/sankhyablocks/p-ae6aff81.js +1 -0
  582. package/dist/sankhyablocks/p-b13cb8b5.js +6 -0
  583. package/dist/sankhyablocks/p-b244640b.js +1 -0
  584. package/dist/sankhyablocks/p-b6d6b172.js +1 -0
  585. package/dist/sankhyablocks/p-bba91710.entry.js +1 -0
  586. package/dist/sankhyablocks/p-bd628455.entry.js +1 -0
  587. package/dist/sankhyablocks/p-c2beb95c.js +1 -0
  588. package/dist/sankhyablocks/p-c555075c.entry.js +1 -0
  589. package/dist/sankhyablocks/p-c870b530.js +26 -0
  590. package/dist/sankhyablocks/p-c9841939.js +1 -0
  591. package/dist/sankhyablocks/p-cb37982f.entry.js +1 -0
  592. package/dist/sankhyablocks/p-d2d301a6.js +2 -0
  593. package/dist/sankhyablocks/p-d3ec3586.entry.js +1 -0
  594. package/dist/sankhyablocks/p-d4f9ee17.entry.js +1 -0
  595. package/dist/sankhyablocks/p-d708b4ab.entry.js +1 -0
  596. package/dist/sankhyablocks/p-d84bc5c1.js +1 -0
  597. package/dist/sankhyablocks/p-d9804798.js +1 -0
  598. package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
  599. package/dist/sankhyablocks/p-de76b8a8.js +76 -0
  600. package/dist/sankhyablocks/p-e19014a9.entry.js +1 -0
  601. package/dist/sankhyablocks/p-e1cb1f0b.js +1 -0
  602. package/dist/sankhyablocks/p-e3a82e1c.entry.js +1 -0
  603. package/dist/sankhyablocks/p-e9b53a9a.entry.js +1 -0
  604. package/dist/sankhyablocks/p-eaad0aa8.js +1 -0
  605. package/dist/sankhyablocks/p-eb636e15.entry.js +1 -0
  606. package/dist/sankhyablocks/p-ebf8c5df.entry.js +1 -0
  607. package/dist/sankhyablocks/p-ed5f1204.entry.js +1 -0
  608. package/dist/sankhyablocks/p-f30526a7.entry.js +1 -0
  609. package/dist/sankhyablocks/p-f4184ce7.js +1 -0
  610. package/dist/sankhyablocks/p-f9395c20.entry.js +1 -0
  611. package/dist/sankhyablocks/p-f94b999e.entry.js +1 -0
  612. package/dist/sankhyablocks/p-fa9d3f73.js +1 -0
  613. package/dist/sankhyablocks/p-fb1ecd0b.entry.js +1 -0
  614. package/dist/sankhyablocks/p-fcd09423.entry.js +1 -0
  615. package/dist/sankhyablocks/p-fd15aaac.entry.js +1 -0
  616. package/dist/sankhyablocks/p-fe49067d.entry.js +1 -0
  617. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -0
  618. package/dist/types/components/snk-actions-button/actions/enum/ActionsType.d.ts +7 -0
  619. package/dist/types/components/snk-actions-button/actions/enum/ParamType.d.ts +10 -0
  620. package/dist/types/components/snk-actions-button/actions/enum/RefreshType.d.ts +6 -0
  621. package/dist/types/components/snk-actions-button/actions/executor/java.executor.d.ts +6 -0
  622. package/dist/types/components/snk-actions-button/actions/executor/javascript.executor.d.ts +6 -0
  623. package/dist/types/components/snk-actions-button/actions/executor/launch-screen.executor.d.ts +10 -0
  624. package/dist/types/components/snk-actions-button/actions/executor/procedure.executor.d.ts +6 -0
  625. package/dist/types/components/snk-actions-button/actions/factory/executor.factory.d.ts +7 -0
  626. package/dist/types/components/snk-actions-button/actions/index.d.ts +28 -0
  627. package/dist/types/components/snk-actions-button/actions/interfaces/IAction.d.ts +55 -0
  628. package/dist/types/components/snk-actions-button/actions/interfaces/IExecSource.d.ts +17 -0
  629. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActions.d.ts +4 -0
  630. package/dist/types/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.d.ts +4 -0
  631. package/dist/types/components/snk-actions-button/actions/interfaces/IResultParam.d.ts +14 -0
  632. package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +4 -0
  633. package/dist/types/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.d.ts +35 -0
  634. package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +27 -0
  635. package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +41 -0
  636. package/dist/types/components/snk-actions-button/subcomponents/snk-client-confirm.d.ts +31 -0
  637. package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +9 -0
  638. package/dist/types/components/snk-application/snk-application.d.ts +275 -0
  639. package/dist/types/components/snk-attach/interfaces/index.d.ts +10 -0
  640. package/dist/types/components/snk-attach/snk-attach.d.ts +45 -0
  641. package/dist/types/components/snk-attach/structure/crud-config-builder.d.ts +7 -0
  642. package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +15 -0
  643. package/dist/types/components/snk-attach/structure/index.d.ts +3 -0
  644. package/dist/types/components/snk-attach/structure/taskbar-builder.d.ts +8 -0
  645. package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
  646. package/dist/types/components/snk-configurator/snk-configurator.d.ts +72 -0
  647. package/dist/types/components/snk-crud/snk-crud.d.ts +120 -0
  648. package/dist/types/components/snk-crud/subcomponents/CardFormResizeObserver.d.ts +1 -0
  649. package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +11 -0
  650. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +110 -0
  651. package/dist/types/components/snk-crud/subcomponents/snk-form-summary.d.ts +22 -0
  652. package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +81 -0
  653. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +138 -0
  654. package/dist/types/components/snk-data-exporter/data/attachment.d.ts +4 -0
  655. package/dist/types/components/snk-data-exporter/data/email.d.ts +7 -0
  656. package/dist/types/components/snk-data-exporter/data/export-config.d.ts +10 -0
  657. package/dist/types/components/snk-data-exporter/data/export-result.d.ts +8 -0
  658. package/dist/types/components/snk-data-exporter/data/report.d.ts +4 -0
  659. package/dist/types/components/snk-data-exporter/exporter-email-sender/email-info-step.d.ts +9 -0
  660. package/dist/types/components/snk-data-exporter/exporter-email-sender/options-step.d.ts +9 -0
  661. package/dist/types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.d.ts +40 -0
  662. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +15 -0
  663. package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +6 -0
  664. package/dist/types/components/snk-data-exporter/interfaces/ISelectedID.d.ts +13 -0
  665. package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +52 -0
  666. package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +61 -0
  667. package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +141 -0
  668. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +42 -0
  669. package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
  670. package/dist/types/components/snk-filter-bar/filter-item/editors/enum/presentationMode.d.ts +4 -0
  671. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +43 -0
  672. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +28 -0
  673. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +28 -0
  674. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +47 -0
  675. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +30 -0
  676. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +24 -0
  677. package/dist/types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.d.ts +68 -0
  678. package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +12 -0
  679. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +46 -0
  680. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +80 -0
  681. package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +74 -0
  682. package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +56 -0
  683. package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +34 -0
  684. package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +83 -0
  685. package/dist/types/components/snk-filter-bar/types/custom-element-filter.d.ts +6 -0
  686. package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +6 -0
  687. package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +28 -0
  688. package/dist/types/components/snk-filter-bar/utils/filters-mock.d.ts +263 -0
  689. package/dist/types/components/snk-filter-field-search/interfaces/index.d.ts +39 -0
  690. package/dist/types/components/snk-filter-field-search/snk-filter-field-search.d.ts +68 -0
  691. package/dist/types/components/snk-filter-field-search/subcomponents/index.d.ts +1 -0
  692. package/dist/types/components/snk-filter-field-search/subcomponents/list-item.d.ts +2 -0
  693. package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +24 -0
  694. package/dist/types/components/snk-form/snk-form.d.ts +54 -0
  695. package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +57 -0
  696. package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +43 -0
  697. package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +146 -0
  698. package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +105 -0
  699. package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +12 -0
  700. package/dist/types/components/snk-grid/snk-grid.d.ts +139 -0
  701. package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +78 -0
  702. package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +13 -0
  703. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionGroup.d.ts +0 -0
  704. package/dist/types/components/snk-personalized-filter/interfaces/IExpressionItem.d.ts +35 -0
  705. package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +37 -0
  706. package/dist/types/components/snk-personalized-filter/interfaces/IPersonalizedFilter.d.ts +15 -0
  707. package/dist/types/components/snk-personalized-filter/interfaces/ISystemFilterConfig.d.ts +4 -0
  708. package/dist/types/components/snk-personalized-filter/interfaces/IUserFilterConfig.d.ts +5 -0
  709. package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +35 -0
  710. package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +70 -0
  711. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +85 -0
  712. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.d.ts +9 -0
  713. package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +68 -0
  714. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.d.ts +19 -0
  715. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +31 -0
  716. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.d.ts +52 -0
  717. package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +27 -0
  718. package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +61 -0
  719. package/dist/types/components/snk-print-selector/snk-print-selector.d.ts +46 -0
  720. package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +37 -0
  721. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +84 -0
  722. package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +33 -0
  723. package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
  724. package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +7 -0
  725. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +133 -0
  726. package/dist/types/components/teste-pesquisa/teste-pesquisa.d.ts +6 -0
  727. package/dist/types/components.d.ts +3257 -0
  728. package/dist/types/global.d.ts +9 -0
  729. package/dist/types/index.d.ts +1 -0
  730. package/dist/types/lib/@types/index.d.ts +27 -0
  731. package/dist/types/lib/applet-caller/applet-caller.d.ts +9 -0
  732. package/dist/types/lib/configs/ConfigStorage.d.ts +25 -0
  733. package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +18 -0
  734. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +73 -0
  735. package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -0
  736. package/dist/types/lib/http/data-fetcher/fetchers/attach-fetcher.d.ts +14 -0
  737. package/dist/types/lib/http/data-fetcher/fetchers/auth-fetcher.d.ts +17 -0
  738. package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +16 -0
  739. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.d.ts +9 -0
  740. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.d.ts +13 -0
  741. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/ISave.d.ts +26 -0
  742. package/dist/types/lib/http/data-fetcher/fetchers/fecthAttach/interfaces/index.d.ts +3 -0
  743. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
  744. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +9 -0
  745. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +29 -0
  746. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.d.ts +8 -0
  747. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.d.ts +4 -0
  748. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.d.ts +1 -0
  749. package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.d.ts +4 -0
  750. package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +10 -0
  751. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +26 -0
  752. package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +8 -0
  753. package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -0
  754. package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +13 -0
  755. package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +42 -0
  756. package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +12 -0
  757. package/dist/types/lib/http/data-fetcher/fetchers/totals-fetcher.d.ts +9 -0
  758. package/dist/types/lib/http/data-fetcher/interfaces/IClientEventResponse.d.ts +4 -0
  759. package/dist/types/lib/http/data-fetcher/recaller/GraphQLRecaller.d.ts +10 -0
  760. package/dist/types/lib/http/data-fetcher/recaller/IDataFetcherRecaller.d.ts +3 -0
  761. package/dist/types/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.d.ts +9 -0
  762. package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -0
  763. package/dist/types/lib/index.d.ts +15 -0
  764. package/dist/types/lib/message/SnkMessageBuilder.d.ts +45 -0
  765. package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
  766. package/dist/types/lib/message/resources/file-viewer.msg.d.ts +2 -0
  767. package/dist/types/lib/message/resources/snk-actions-button.msg.d.ts +1 -0
  768. package/dist/types/lib/message/resources/snk-attach.msg.d.ts +2 -0
  769. package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +1 -0
  770. package/dist/types/lib/message/resources/snk-crud.msg.d.ts +2 -0
  771. package/dist/types/lib/message/resources/snk-data-exporter.msg.d.ts +1 -0
  772. package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +2 -0
  773. package/dist/types/lib/message/resources/snk-entity-list.msg.d.ts +1 -0
  774. package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +2 -0
  775. package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
  776. package/dist/types/lib/message/resources/snk-filter-field-search.msg.d.ts +1 -0
  777. package/dist/types/lib/message/resources/snk-filter-param-config.msg.d.ts +1 -0
  778. package/dist/types/lib/message/resources/snk-form.msg.d.ts +4 -0
  779. package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
  780. package/dist/types/lib/message/resources/snk-personalized-filter.msg.d.ts +1 -0
  781. package/dist/types/lib/message/resources/snk-print-selector.msg.d.ts +1 -0
  782. package/dist/types/lib/message/resources/snk-simple-bar.msg.d.ts +1 -0
  783. package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +2 -0
  784. package/dist/types/lib/resourceid/ResourceIDUtils.d.ts +3 -0
  785. package/dist/types/lib/store/index.d.ts +5 -0
  786. package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
  787. package/dist/types/lib/utils/PrintUtils.d.ts +55 -0
  788. package/dist/types/lib/utils/constants.d.ts +103 -0
  789. package/dist/types/lib/utils/fileViewer/index.d.ts +2 -0
  790. package/dist/types/lib/utils/fileViewer/interfaces/IFileViewerParams.d.ts +4 -0
  791. package/dist/types/lib/utils/pesquisa.d.ts +3 -0
  792. package/dist/types/lib/utils/urlutils.d.ts +18 -0
  793. package/dist/types/lib/workspace/workspace.d.ts +5 -0
  794. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  795. package/loader/cdn.js +3 -0
  796. package/loader/index.cjs.js +3 -0
  797. package/loader/index.d.ts +21 -0
  798. package/loader/index.es2017.js +3 -0
  799. package/loader/index.js +4 -0
  800. package/loader/package.json +11 -0
  801. package/package.json +71 -0
  802. package/react/.keepfolder +1 -0
  803. package/react/components.d.ts +52 -0
  804. package/react/components.js +55 -0
  805. package/react/components.js.map +1 -0
  806. package/react/react-component-lib/createComponent.d.ts +10 -0
  807. package/react/react-component-lib/createComponent.js +59 -0
  808. package/react/react-component-lib/createComponent.js.map +1 -0
  809. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  810. package/react/react-component-lib/createOverlayComponent.js +89 -0
  811. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  812. package/react/react-component-lib/index.d.ts +2 -0
  813. package/react/react-component-lib/index.js +3 -0
  814. package/react/react-component-lib/index.js.map +1 -0
  815. package/react/react-component-lib/interfaces.d.ts +29 -0
  816. package/react/react-component-lib/interfaces.js +2 -0
  817. package/react/react-component-lib/interfaces.js.map +1 -0
  818. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  819. package/react/react-component-lib/utils/attachProps.js +96 -0
  820. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  821. package/react/react-component-lib/utils/case.d.ts +2 -0
  822. package/react/react-component-lib/utils/case.js +7 -0
  823. package/react/react-component-lib/utils/case.js.map +1 -0
  824. package/react/react-component-lib/utils/dev.d.ts +2 -0
  825. package/react/react-component-lib/utils/dev.js +13 -0
  826. package/react/react-component-lib/utils/dev.js.map +1 -0
  827. package/react/react-component-lib/utils/index.d.ts +7 -0
  828. package/react/react-component-lib/utils/index.js +21 -0
  829. package/react/react-component-lib/utils/index.js.map +1 -0
@@ -0,0 +1,292 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
+ import { DataUnit, defaultDataLoader, StringUtils, ChangeOperation, ObjectUtils, ApplicationContext, DataType, UserInterface } from '@sankhyalabs/core';
3
+ import { c as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-3644f1b6.js';
4
+ import { T as TaskbarElement } from './taskbar-elements-0a6b8b95.js';
5
+ import './DataFetcher-8daff9ad.js';
6
+ import './pesquisa-fetcher-27819123.js';
7
+ import { P as PresentationMode } from './index-1564817d.js';
8
+ import './ISave-4412b20c.js';
9
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
+ import './filter-item-type.enum-5028ed3f.js';
12
+ import './form-config-fetcher-8ef7be16.js';
13
+ import { T as TaskbarProcessor } from './taskbar-processor-94402e6e.js';
14
+ import { S as SnkMultiSelectionListDataSource } from './SnkMultiSelectionListDataSource-892f37f9.js';
15
+ import './index-bdf75557.js';
16
+ import './_commonjsHelpers-9943807e.js';
17
+ import './PrintUtils-3e4ff0f5.js';
18
+
19
+ class InMemoryLoader {
20
+ constructor(metadata, records) {
21
+ this.records = records;
22
+ this.metadata = metadata;
23
+ this._dataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
24
+ this._dataUnit.metadataLoader = () => this.metadaLoader();
25
+ this._dataUnit.dataLoader = (dataUnit, request) => defaultDataLoader(dataUnit, request, this.getRecordsToLoad());
26
+ this._dataUnit.saveLoader = (_dataUnit, changes) => this.saveLoader(_dataUnit, changes);
27
+ this._dataUnit.removeLoader = (_dataUnit, recordIds) => this.removeLoader(_dataUnit, recordIds);
28
+ this.dataUnit.loadMetadata().then(() => this.dataUnit.loadData());
29
+ }
30
+ getRecordsToLoad() {
31
+ if (this._initialRecords) {
32
+ try {
33
+ return this._initialRecords;
34
+ }
35
+ finally {
36
+ this._initialRecords = undefined;
37
+ }
38
+ }
39
+ return this.dataUnit.records;
40
+ }
41
+ get dataUnit() {
42
+ return this._dataUnit;
43
+ }
44
+ get records() {
45
+ return this.dataUnit.records;
46
+ }
47
+ set records(records) {
48
+ const newRecords = records === null || records === void 0 ? void 0 : records.map(record => {
49
+ if (!record["__record__id__"]) {
50
+ record["__record__id__"] = this.generateUniqueId();
51
+ }
52
+ return record;
53
+ });
54
+ if (this._dataUnit) {
55
+ this._dataUnit.records = newRecords;
56
+ }
57
+ else {
58
+ this._initialRecords = newRecords;
59
+ }
60
+ }
61
+ get metadata() {
62
+ return this._metadata;
63
+ }
64
+ set metadata(metadata) {
65
+ this._metadata = metadata;
66
+ if (this._dataUnit) {
67
+ this._dataUnit.metadata = this._metadata;
68
+ }
69
+ }
70
+ generateUniqueId() {
71
+ return StringUtils.generateUUID();
72
+ }
73
+ metadaLoader() {
74
+ return Promise.resolve(this._metadata);
75
+ }
76
+ saveLoader(_dataUnit, changes) {
77
+ return new Promise((resolve) => {
78
+ let dataUnitRecords = [];
79
+ changes.forEach(change => {
80
+ let { record, updatingFields, operation } = change;
81
+ const changedRecord = Object.assign(Object.assign({}, record), updatingFields);
82
+ if (operation === ChangeOperation.INSERT ||
83
+ operation === ChangeOperation.COPY) {
84
+ changedRecord["__old__id__"] = record["__record__id__"];
85
+ changedRecord["__record__id__"] = this.generateUniqueId();
86
+ this.records.push(changedRecord);
87
+ }
88
+ else {
89
+ const recordIndex = this.records.findIndex(r => r["__record__id__"] == changedRecord["__record__id__"]);
90
+ this.records[recordIndex] = changedRecord;
91
+ }
92
+ dataUnitRecords.push(changedRecord);
93
+ });
94
+ resolve(dataUnitRecords);
95
+ });
96
+ }
97
+ removeLoader(_dataUnit, recordIds) {
98
+ return new Promise((resolve) => {
99
+ resolve(recordIds);
100
+ });
101
+ }
102
+ }
103
+ InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME = "InMemoryDataUnit";
104
+
105
+ const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto;row-gap:12px;height:100%;width:100%}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;min-height:300px}ez-form.sc-snk-simple-crud{min-height:300px}";
106
+
107
+ const SnkSimpleCrud = class {
108
+ constructor(hostRef) {
109
+ registerInstance(this, hostRef);
110
+ this.dataStateChange = createEvent(this, "dataStateChange", 3);
111
+ this.dataUnitReady = createEvent(this, "dataUnitReady", 3);
112
+ this.actionClick = createEvent(this, "actionClick", 7);
113
+ this.formItemsReady = createEvent(this, "formItemsReady", 7);
114
+ this.REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER"];
115
+ this.REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER"];
116
+ this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
117
+ this._taskbarProcessor = new TaskbarProcessor({
118
+ "snkSimpleCrudTaskbar.form_regular": this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(TaskbarElement.GRID_MODE),
119
+ "snkSimpleCrudTaskbar.grid_regular": this.resolveInMemoryBtns(this.REGULAR_DEFAULT_BTNS).concat(TaskbarElement.FORM_MODE),
120
+ "snkSimpleCrudTaskbar.form_selected": this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(TaskbarElement.GRID_MODE),
121
+ "snkSimpleCrudTaskbar.grid_selected": this.resolveInMemoryBtns(this.REGULAR_SELECTED_BTNS).concat(TaskbarElement.FORM_MODE),
122
+ "snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
123
+ });
124
+ this._currentViewMode = VIEW_MODE.GRID;
125
+ this._config = undefined;
126
+ this.dataState = undefined;
127
+ this.dataUnit = undefined;
128
+ this.mode = SIMPLE_CRUD_MODE.SERVER;
129
+ this.gridConfig = undefined;
130
+ this.formConfig = undefined;
131
+ this.multipleSelection = undefined;
132
+ this.useCancelConfirm = true;
133
+ this.taskbarManager = undefined;
134
+ this.messagesBuilder = undefined;
135
+ this.useEnterLikeTab = false;
136
+ }
137
+ resolveInMemoryBtns(taskbarButtons) {
138
+ const newTaskBarConfig = [...taskbarButtons];
139
+ if (this.mode === SIMPLE_CRUD_MODE.IN_MEMORY) {
140
+ newTaskBarConfig.splice(1, 1);
141
+ }
142
+ return newTaskBarConfig;
143
+ }
144
+ /**
145
+ * Usado para alternar a visão entre GRID e FORM externamente.
146
+ */
147
+ async goToView(view) {
148
+ this._currentViewMode = view;
149
+ if (this._viewStack) {
150
+ this._viewStack.show(view);
151
+ }
152
+ }
153
+ actionClickListener(evt) {
154
+ const act = evt.detail;
155
+ if (act === TaskbarElement.GRID_MODE) {
156
+ this.goToView(VIEW_MODE.GRID);
157
+ }
158
+ else if (act === TaskbarElement.FORM_MODE) {
159
+ this.goToView(VIEW_MODE.FORM);
160
+ }
161
+ evt.stopPropagation();
162
+ }
163
+ onModeChange() {
164
+ if (this.mode == SIMPLE_CRUD_MODE.IN_MEMORY) {
165
+ this.initInMemoryDataUnit();
166
+ }
167
+ }
168
+ observeDataState(newValue, oldValue) {
169
+ if (ObjectUtils.objectToString(oldValue) != ObjectUtils.objectToString(newValue)) {
170
+ this.dataStateChange.emit(newValue);
171
+ }
172
+ }
173
+ componentWillRender() {
174
+ this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
175
+ }
176
+ componentWillLoad() {
177
+ this.processMetadata();
178
+ this.onModeChange();
179
+ this.configDatasource();
180
+ }
181
+ configDatasource() {
182
+ const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
183
+ this._multiSelectionListDataSource.setApplication(application);
184
+ this._multiSelectionListDataSource.setDataUnit(this.dataUnit);
185
+ }
186
+ getTaskBarId() {
187
+ var _a, _b, _c;
188
+ if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
189
+ return "snkSimpleCrudTaskbar.finish_edition";
190
+ }
191
+ if (((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) &&
192
+ !this.dataState.selectionInfo.isAllRecords() &&
193
+ ((_c = this.dataState.selectionInfo.records) === null || _c === void 0 ? void 0 : _c.length) > 0) {
194
+ return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_selected" : "snkSimpleCrudTaskbar.form_selected";
195
+ }
196
+ return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_regular" : "snkSimpleCrudTaskbar.form_regular";
197
+ }
198
+ initInMemoryDataUnit() {
199
+ this._inMemoryLoader = new InMemoryLoader(this._metadata);
200
+ this.dataUnit = this._inMemoryLoader.dataUnit;
201
+ this.dataUnitReady.emit(this.dataUnit);
202
+ }
203
+ setMetadata(metadata) {
204
+ if (this._inMemoryLoader) {
205
+ this._inMemoryLoader.metadata = metadata;
206
+ }
207
+ else if (this.dataUnit) {
208
+ this.dataUnit.metadata = metadata;
209
+ }
210
+ return Promise.resolve();
211
+ }
212
+ setRecords(records) {
213
+ if (this._inMemoryLoader) {
214
+ this._inMemoryLoader.records = records;
215
+ }
216
+ else if (this.dataUnit) {
217
+ this.dataUnit.records = records;
218
+ }
219
+ return Promise.resolve();
220
+ }
221
+ getRecords() {
222
+ return Promise.resolve(this.dataUnit.records);
223
+ }
224
+ processMetadata() {
225
+ const fieldsMetadataElem = this._element.querySelectorAll("snk-field-metadata");
226
+ const fieldMetadata = [];
227
+ const formConfig = { fields: [], emptyConfig: false };
228
+ fieldsMetadataElem.forEach(fieldElem => {
229
+ const field = {
230
+ name: fieldElem.getAttribute("name") || fieldElem.getAttribute("label"),
231
+ label: fieldElem.getAttribute("label"),
232
+ dataType: DataType[fieldElem.getAttribute("dataType")] || DataType.TEXT,
233
+ userInterface: UserInterface[fieldElem.getAttribute("userInterface")] || UserInterface.SHORTTEXT,
234
+ readOnly: fieldElem.getAttribute("readOnly") == "true",
235
+ required: fieldElem.getAttribute("required") == "true",
236
+ tab: fieldElem.getAttribute("tab") || undefined,
237
+ visible: fieldElem.getAttribute("visible") != "false"
238
+ };
239
+ const fieldConfig = { name: field.name, tab: field.tab, visible: field.visible };
240
+ formConfig.fields.push(fieldConfig);
241
+ fieldMetadata.push(field);
242
+ });
243
+ if (fieldMetadata.length > 0) {
244
+ if (!this.formConfig) {
245
+ this.formConfig = formConfig;
246
+ }
247
+ this._metadata = {
248
+ name: "SimpleCrud",
249
+ label: "SimpleCrud",
250
+ fields: fieldMetadata
251
+ };
252
+ }
253
+ }
254
+ onDataStateChange(evt) {
255
+ this.dataState = Object.assign({}, evt.detail);
256
+ }
257
+ getTaskBarDisabledButtons() {
258
+ var _a, _b, _c, _d;
259
+ const disabledButtons = [];
260
+ if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasNext)) {
261
+ disabledButtons.push(TaskbarElement.NEXT);
262
+ }
263
+ if (!((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.hasPrevious)) {
264
+ disabledButtons.push(TaskbarElement.PREVIOUS);
265
+ }
266
+ if ((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.isEmpty()) {
267
+ disabledButtons.push(TaskbarElement.FORM_MODE);
268
+ }
269
+ return disabledButtons;
270
+ }
271
+ handleCancelEdit() {
272
+ var _a;
273
+ if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.recordsIsEmpty) {
274
+ this.goToView(VIEW_MODE.GRID);
275
+ this.dataUnit.clearSelection();
276
+ }
277
+ }
278
+ render() {
279
+ var _a;
280
+ return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-flex ez-box ez-box--shadow" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium ez-margin-bottom--large", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { class: "ez-flex ez-flex--column", ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), columnfilterDataSource: this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
281
+ ? undefined
282
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { dataUnit: this.dataUnit, config: this.formConfig }))))));
283
+ }
284
+ get _element() { return getElement(this); }
285
+ static get watchers() { return {
286
+ "mode": ["onModeChange"],
287
+ "dataState": ["observeDataState"]
288
+ }; }
289
+ };
290
+ SnkSimpleCrud.style = snkSimpleCrudCss;
291
+
292
+ export { SnkSimpleCrud as snk_simple_crud };
@@ -0,0 +1,327 @@
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
+ import { d as draggable_bundle } from './draggable.bundle-41d56f06.js';
3
+ import { ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
4
+ import { C as CONFIG_EVENTS, K as KEY_EVENTS, b as TYPE_ACTIONS, T as TAB_NAMES } from './constants-3644f1b6.js';
5
+ import './_commonjsHelpers-9943807e.js';
6
+
7
+ const snkTabConfigCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}.sc-snk-tab-config-h{--snk-tab-config--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--snk-tab-config--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--snk-tab-config__lower-bar--background-color:var(--color--disable-primary, #e5eaf0);--snk-tab-config__lower-bar--border:2px solid var(--color--disable-primary, #e5eaf0);--snk-tab-config__tab--color:var(--text--primary, #626e82);--snk-tab-config__tab--font-family:var(--font-pattern, \"Roboto\");--snk-tab-config__tab--font-size:var(--title--small, 14px);--snk-tab-config__tab--padding:var(--space--small, 6px) var(--space--medium, 12px);--snk-tab-config__tab-is-active--color:var(--color--primary, #008561);--snk-tab-config__tab-hover--color:var(--color--secondary, #383c45);--snk-tab-config__tab-is-focused--border:1px dashed var(--color--primary, #008561);--snk-tab-config__tab-label--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--snk-tab-config__tab-label--margin-bottom:var(--space--extra-small, 3px);--snk-tab-config__new-button-icon--color:var(--color--secondary-700, #1C1D22);--snk-tab-config__forward-button--background-color:var(--text--primary, #626e82);--snk-tab-config__forward-button-hover--background-color:var(--color--primary, #008561);--snk-tab-config__left-icon--padding-right:var(--space--small, 6px);--snk-tab-config__left-icon--color:var(--text--disable, #AFB6C0);--snk-tab-config__tab-label-disabled--color:var(--text--disable, #AFB6C0);--snk-tab-config__slot--margin-left:var(--space--small, 6px);display:flex;position:relative;width:100%;overflow:hidden}.tab-config__scroll.sc-snk-tab-config{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.tab-config__lower-bar.sc-snk-tab-config{position:absolute;left:0%;right:0%;top:91%;bottom:0%;border-radius:2px;background-color:var(--snk-tab-config__lower-bar--background-color);border:var(--snk-tab-config__lower-bar--border)}.tab-config__tab.sc-snk-tab-config{display:flex;border:none;background-color:unset;cursor:pointer;align-items:center;justify-content:center;min-width:fit-content;color:var(--snk-tab-config__tab--color);font-family:var(--snk-tab-config__tab--font-family);font-size:var(--snk-tab-config__tab--font-size);padding:var(--snk-tab-config__tab--padding)}.tab-config__tab.sc-snk-tab-config:focus,.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{outline:none}.tab-config__tab--is-active.sc-snk-tab-config{position:relative;color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-active.sc-snk-tab-config::after{content:\"\";position:absolute;width:100%;height:100%;clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out;background-color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-focused.sc-snk-tab-config{border:var(--snk-tab-config__tab-is-focused--border)}.tab-config__tab-label.sc-snk-tab-config{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--snk-tab-config__tab-label--text-shadow);margin-bottom:var(--snk-tab-config__tab-label--margin-bottom)}.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__new-button-icon--color)}.tab-config__backward-button.sc-snk-tab-config{left:0px;box-shadow:10px 10px 5px 5px white;background:white}.tab-config__forward-button.sc-snk-tab-config{box-shadow:10px 10px 5px 20px white;background:white}.tab-config__forward-button.sc-snk-tab-config::after,.tab-config__backward-button.sc-snk-tab-config::after{content:'';display:flex;width:10px;height:16px;background-color:var(--snk-tab-config__forward-button--background-color)}.tab-config__forward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--forward-icon);mask-image:var(--snk-tab-config--forward-icon)}.tab-config__backward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--backward-icon);mask-image:var(--snk-tab-config--backward-icon)}.tab-config__forward-button.sc-snk-tab-config:hover::after,.tab-config__backward-button.sc-snk-tab-config:hover::after{background-color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__new-button.sc-snk-tab-config:hover ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__hidden.sc-snk-tab-config{display:none}.tab-config__scroll.sc-snk-tab-config::-webkit-scrollbar{display:none}.tab-config__left-icon.sc-snk-tab-config{padding-right:var(--snk-tab-config__left-icon--padding-right);--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__left-icon--eye-off.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__right-icon.sc-snk-tab-config{visibility:hidden;padding-left:var(--snk-tab-config__left-icon--padding-right)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{visibility:visible}.tab-config__tab--is-active.sc-snk-tab-config .tab-config__right-icon.sc-snk-tab-config{visibility:visible;--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__actions-button.sc-snk-tab-config{--ez-actions-button__btn-action--min-width:100px;visibility:hidden;opacity:0;transition:visibility 1s linear, opacity 0.3s linear}.tab-config__tab.sc-snk-tab-config:hover .tab-config__actions-button.sc-snk-tab-config{visibility:visible;opacity:1;transition:visibility 0.2s linear, opacity 0.10s linear}[data-draggable-element].sc-snk-tab-config{cursor:grab}.tab-config__tab-label-disabled.sc-snk-tab-config{color:var(--snk-tab-config__tab-label-disabled--color)}.tab-config__slot.sc-snk-tab-config{margin-left:var(--snk-tab-config__slot--margin-left)}";
8
+
9
+ const SnkTabConfig = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ this.ezTabChange = createEvent(this, "ezTabChange", 7);
13
+ this.editionTitleTab = createEvent(this, "editionTitleTab", 7);
14
+ this.deleteTab = createEvent(this, "deleteTab", 7);
15
+ this.hideTab = createEvent(this, "hideTab", 7);
16
+ this.ezOrderChange = createEvent(this, "ezOrderChange", 7);
17
+ this.canStartDrag = createEvent(this, "canStartDrag", 7);
18
+ this._refTabActions = [];
19
+ this._processedTabs = undefined;
20
+ this._activeEditText = undefined;
21
+ this._activeEditTextIndex = undefined;
22
+ this._actionsHide = [];
23
+ this._actionsShow = [];
24
+ this.selectedIndex = undefined;
25
+ this.selectedTab = undefined;
26
+ this.tabs = undefined;
27
+ this.tabItems = undefined;
28
+ this.messagesBuilder = undefined;
29
+ }
30
+ /**
31
+ * Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
32
+ * através de um pequeno modulo na estrutura da aplicação:
33
+ * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
34
+ * Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-form.msg.ts"
35
+ */
36
+ getMessage(key, params) {
37
+ return this.messagesBuilder.getMessage(key, params);
38
+ }
39
+ controlSortableTab() {
40
+ if (this._sortableTab) {
41
+ this._sortableTab.destroy();
42
+ }
43
+ this._sortableTab = new draggable_bundle.Sortable(this._hostElem.querySelectorAll('[data-draggable-parent="tab"]'), {
44
+ draggable: '[data-draggable-element="tab"]',
45
+ mirror: {
46
+ constrainDimensions: true
47
+ }
48
+ });
49
+ this._sortableTab.on(CONFIG_EVENTS.dragStart, (evt) => this.controlStartDraggingTab(evt));
50
+ this._sortableTab.on(CONFIG_EVENTS.dragStop, (evt) => this.controlStopDraggingTab(evt));
51
+ }
52
+ controlStartDraggingTab(evt) {
53
+ var _a, _b;
54
+ const mouseEvent = (_a = evt === null || evt === void 0 ? void 0 : evt.dragEvent) === null || _a === void 0 ? void 0 : _a.originalEvent;
55
+ const targetElement = mouseEvent === null || mouseEvent === void 0 ? void 0 : mouseEvent.target;
56
+ const targetName = (_b = targetElement === null || targetElement === void 0 ? void 0 : targetElement.tagName) === null || _b === void 0 ? void 0 : _b.toUpperCase();
57
+ if (this._activeEditText === true || targetName === "EZ-ACTIONS-BUTTON") {
58
+ evt === null || evt === void 0 ? void 0 : evt.cancel();
59
+ }
60
+ else {
61
+ this.canStartDrag.emit();
62
+ }
63
+ }
64
+ controlStopDraggingTab(evt) {
65
+ const updateTimer = 500;
66
+ if (evt.data.newIndex !== evt.data.oldIndex) {
67
+ setTimeout(() => {
68
+ const newIndex = (evt.data.newIndex || 0) + 1;
69
+ this.ezOrderChange.emit(newIndex);
70
+ }, updateTimer);
71
+ }
72
+ }
73
+ handleTabClick(tab) {
74
+ this.selectedIndex = tab.index;
75
+ this._focusedIndex = tab.index;
76
+ this.selectedTab = tab.tabKey;
77
+ this.ezTabChange.emit(tab);
78
+ this.setFocusedBtn(false, tab.index);
79
+ this.setFocusedTab(tab.index);
80
+ }
81
+ handleSlotChange(ev) {
82
+ const slot = ev.target;
83
+ const content = slot.assignedElements()[0];
84
+ if (content) {
85
+ content.classList.add("tab-config__slot");
86
+ }
87
+ }
88
+ scrollBackward() {
89
+ const container = this._scrollContainer;
90
+ if (container) {
91
+ container.scrollLeft -= container.clientWidth;
92
+ }
93
+ }
94
+ scrollFoward() {
95
+ const container = this._scrollContainer;
96
+ if (container) {
97
+ let lastTab = null;
98
+ container.querySelectorAll(".tab-config__tab").forEach((tab) => {
99
+ if (tab.getBoundingClientRect().right < container.clientWidth) {
100
+ lastTab = tab;
101
+ }
102
+ });
103
+ container.scrollLeft = lastTab.offsetLeft + lastTab.offsetWidth;
104
+ }
105
+ }
106
+ updateScroll() {
107
+ const container = this._scrollContainer;
108
+ if (container) {
109
+ const { scrollWidth, clientWidth, scrollLeft } = container;
110
+ const remainingScroll = scrollWidth - clientWidth - Math.ceil(scrollLeft);
111
+ this._startHidden = container.scrollLeft > 0;
112
+ this._endHidden = remainingScroll > 0;
113
+ if (this._startHidden) {
114
+ this._backwardButton.classList.remove("tab-config__hidden");
115
+ }
116
+ else {
117
+ this._backwardButton.classList.add("tab-config__hidden");
118
+ }
119
+ if (this._endHidden) {
120
+ this._forwardButton.classList.remove("tab-config__hidden");
121
+ }
122
+ else {
123
+ this._forwardButton.classList.add("tab-config__hidden");
124
+ }
125
+ }
126
+ }
127
+ domScrollHandler() {
128
+ window.clearTimeout(this._scrollCallBackScroll);
129
+ this._scrollCallBackScroll = window.setTimeout(() => { this.updateScroll(); }, 200);
130
+ }
131
+ setFocusedTab(index) {
132
+ window.clearTimeout(this._scrollCallBackFocus);
133
+ this._scrollCallBackFocus = window.setTimeout(() => {
134
+ const tabtoscroll = this._scrollContainer.querySelector(`#tab${index}`);
135
+ tabtoscroll === null || tabtoscroll === void 0 ? void 0 : tabtoscroll.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
136
+ }, 200);
137
+ }
138
+ controlKeyEventEnter(evt) {
139
+ evt.preventDefault();
140
+ const selectedTab = this._processedTabs[this._focusedIndex];
141
+ this.handleTabClick(selectedTab);
142
+ this.setFocusedTab(selectedTab.index);
143
+ }
144
+ controlKeyEventArrow(evt) {
145
+ let operator = undefined;
146
+ if (evt.key === KEY_EVENTS.arrowLeft) {
147
+ operator = false;
148
+ }
149
+ else if (evt.key === KEY_EVENTS.arrowRight) {
150
+ operator = true;
151
+ }
152
+ else {
153
+ return;
154
+ }
155
+ if (this._focusedIndex === undefined) {
156
+ if (operator === false) {
157
+ this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex - 1 : undefined;
158
+ }
159
+ else {
160
+ this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex + 1 : undefined;
161
+ }
162
+ }
163
+ else {
164
+ if (operator === false) {
165
+ this._focusedIndex = this._focusedIndex - 1;
166
+ }
167
+ else {
168
+ this._focusedIndex = this._focusedIndex + 1;
169
+ }
170
+ }
171
+ if (this._focusedIndex < 0) {
172
+ this._focusedIndex = 0;
173
+ }
174
+ else if (this._focusedIndex > this._processedTabs.length - 1) {
175
+ this._focusedIndex = this._processedTabs.length - 1;
176
+ }
177
+ this.setFocusedBtn(true, this._focusedIndex);
178
+ this.setFocusedTab(this._focusedIndex);
179
+ }
180
+ controlKeyEventEscape(evt) {
181
+ evt.preventDefault();
182
+ const currentTab = this._processedTabs[this.selectedIndex];
183
+ this._focusedIndex = undefined;
184
+ this.handleTabClick(currentTab);
185
+ this.setFocusedTab(this.selectedIndex);
186
+ }
187
+ setFocusedParam(evt) {
188
+ if (this._activeEditText === true || evt == undefined) {
189
+ return;
190
+ }
191
+ if (evt.key === KEY_EVENTS.enter) {
192
+ this.controlKeyEventEnter(evt);
193
+ return;
194
+ }
195
+ if (evt.key === KEY_EVENTS.arrowLeft || evt.key === KEY_EVENTS.arrowRight) {
196
+ this.controlKeyEventArrow(evt);
197
+ return;
198
+ }
199
+ if (evt.key === KEY_EVENTS.tab || evt.key === KEY_EVENTS.escape) {
200
+ this.controlKeyEventEscape(evt);
201
+ return;
202
+ }
203
+ }
204
+ setFocusedBtn(visible, parameter) {
205
+ const tabsButtons = this._scrollContainer.querySelectorAll(".tab-config__tab");
206
+ tabsButtons.forEach((el) => {
207
+ el.classList.remove("tab-config__tab--is-focused");
208
+ if (el.id === "tab" + parameter && visible) {
209
+ el.classList.add("tab-config__tab--is-focused");
210
+ }
211
+ });
212
+ }
213
+ getStyledLabel(tabId) {
214
+ const tabElem = this._hostElem.querySelector(`#${tabId}`);
215
+ if (tabElem == undefined) {
216
+ return;
217
+ }
218
+ let styledLabel = {
219
+ fontSize: window.getComputedStyle(tabElem).getPropertyValue('font-size'),
220
+ fontWeight: window.getComputedStyle(tabElem).getPropertyValue('font-weight'),
221
+ fontFamily: window.getComputedStyle(tabElem).getPropertyValue('font-family')
222
+ };
223
+ return styledLabel;
224
+ }
225
+ cancelEditText() {
226
+ var _a;
227
+ this._activeEditText = false;
228
+ if (this._scrollContainer != undefined) {
229
+ (_a = this._scrollContainer.querySelector('.tab-config__tab--is-active')) === null || _a === void 0 ? void 0 : _a.focus();
230
+ }
231
+ }
232
+ handleActions(actionSelect, tab) {
233
+ const { value: typeAction } = actionSelect.detail;
234
+ if (typeAction === TYPE_ACTIONS.rename) {
235
+ this._activeEditText = true;
236
+ this._activeEditTextIndex = tab.index;
237
+ }
238
+ else if (typeAction === TYPE_ACTIONS.hide || typeAction === TYPE_ACTIONS.show) {
239
+ this.hideTab.emit(tab);
240
+ }
241
+ else if (typeAction === TYPE_ACTIONS.delete) {
242
+ this.deleteTab.emit(tab);
243
+ }
244
+ }
245
+ handleSaveEditionText(editDetails) {
246
+ const { value, newValue } = editDetails.detail;
247
+ if (value === newValue) {
248
+ this.cancelEditText();
249
+ return;
250
+ }
251
+ this._processedTabs.forEach((tab) => {
252
+ if (tab.label === value) {
253
+ tab.label = newValue;
254
+ this.cancelEditText();
255
+ this.editionTitleTab.emit(editDetails);
256
+ }
257
+ });
258
+ }
259
+ onHideActions(index) {
260
+ const elementActionsBtn = this._refTabActions[index];
261
+ if (elementActionsBtn) {
262
+ elementActionsBtn.isOpened().then((isOpened) => {
263
+ if (isOpened) {
264
+ elementActionsBtn === null || elementActionsBtn === void 0 ? void 0 : elementActionsBtn.hideActions();
265
+ }
266
+ });
267
+ }
268
+ }
269
+ componentWillLoad() {
270
+ this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
271
+ if (this._application != undefined) {
272
+ this._actionsHide = [
273
+ { value: TYPE_ACTIONS.rename, label: this.getMessage("snkTabConfig.labelRename") },
274
+ { value: TYPE_ACTIONS.hide, label: this.getMessage("snkTabConfig.labelHide") },
275
+ { value: TYPE_ACTIONS.delete, label: this.getMessage("snkTabConfig.labelDelete") }
276
+ ];
277
+ this._actionsShow = [
278
+ { value: TYPE_ACTIONS.rename, label: this.getMessage("snkTabConfig.labelRename") },
279
+ { value: TYPE_ACTIONS.show, label: this.getMessage("snkTabConfig.labelShow") },
280
+ { value: TYPE_ACTIONS.delete, label: this.getMessage("snkTabConfig.labelDelete") }
281
+ ];
282
+ }
283
+ }
284
+ componentWillRender() {
285
+ this._processedTabs = [];
286
+ if (this.tabs) {
287
+ this.tabs.split(",").forEach((label) => {
288
+ label = label.trim();
289
+ this._processedTabs.push({ label, tabKey: label, index: this._processedTabs.length });
290
+ });
291
+ }
292
+ this.tabItems.forEach((tab) => {
293
+ tab.label = tab.label !== TAB_NAMES.main ? tab.label : this.getMessage("snkFormConfig.form.mainArea");
294
+ tab.index = this._processedTabs.length;
295
+ this._processedTabs.push(tab);
296
+ });
297
+ }
298
+ componentDidRender() {
299
+ this.updateScroll();
300
+ this.controlSortableTab();
301
+ }
302
+ componentDidLoad() {
303
+ ElementIDUtils.addIDInfo(this._hostElem, "itemConfig");
304
+ this._processedTabs.forEach((tab, index) => {
305
+ const dataID = { id: tab.label };
306
+ ElementIDUtils.addIDInfo(this._hostElem.querySelector(`#tab${index}`), "itemConfig", dataID);
307
+ });
308
+ }
309
+ render() {
310
+ return (h(Host, null, h("button", { class: "tab-config__backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), h("div", { class: "tab-config__lower-bar" }), h("div", { class: "tab-config__scroll", ref: (el) => this._scrollContainer = el, onScroll: () => this.domScrollHandler(), onKeyDown: (ev) => this.setFocusedParam(ev), "data-draggable-parent": "tab" }, this._processedTabs.map((tab, index) => {
311
+ const tabId = "tab" + index;
312
+ const isSelected = index === this.selectedIndex || (this.selectedTab && tab.tabKey === this.selectedTab);
313
+ if (isSelected) {
314
+ this.selectedTab = tab.tabKey;
315
+ this.selectedIndex = index;
316
+ }
317
+ return h("button", { id: tabId, class: `tab-config__tab${isSelected ? " tab-config__tab--is-active" : ""}`, onClick: () => this.handleTabClick(tab), onDblClick: () => { this._activeEditText = true; this._activeEditTextIndex = index; }, "data-draggable-element": index > 0 ? "tab" : "", onMouseLeave: () => this.onHideActions(index), key: tab.label }, (this._activeEditText === true && this._activeEditTextIndex === index && index > 0) ||
318
+ h(Fragment, null, index > 0 && h("ez-icon", { iconName: tab.leftIcon || "drag-indicator", class: "tab-config__left-icon" }), (tab.visible === false && index > 0) && h("ez-icon", { iconName: tab.leftIcon || "eye-off", class: "tab-config__left-icon tab-config__left-icon--eye-off" }), h("span", { class: "tab-config__tab-label" + (tab.visible === false && index > 0 ? " tab-config__tab-label-disabled" : ""), title: tab.label }, tab.label), index > 0 &&
319
+ h("ez-actions-button", { class: "tab-config__actions-button", size: "small", ref: elem => this._refTabActions[index] = elem, actions: tab.visible === false ? this._actionsShow : this._actionsHide, isTransparent: true, arrowActive: true, onEzAction: (ev) => this.handleActions(ev, tab) }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } })), (this._activeEditText === true && index > 0 && this._activeEditTextIndex === index) &&
320
+ h("ez-text-edit", { value: tab.label, styled: this.getStyledLabel(tabId), class: "tab-config__edit-text", onSaveEdition: (ev) => this.handleSaveEditionText(ev), onCancelEdition: () => this.cancelEditText() }));
321
+ })), h("button", { class: "tab-config__forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
322
+ }
323
+ get _hostElem() { return getElement(this); }
324
+ };
325
+ SnkTabConfig.style = snkTabConfigCss;
326
+
327
+ export { SnkTabConfig as snk_tab_config };
@@ -0,0 +1,16 @@
1
+ import { r as registerInstance, h, H as Host } from './index-a7d3d3f1.js';
2
+
3
+ const snkTaskbarCss = ".sc-snk-taskbar-custom-elements-h{display:flex}.taskbar-custom-elements-container.sc-snk-taskbar-custom-elements{display:none}";
4
+
5
+ const SnkTaskbarCustomElements = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.slot = 'TASKBAR_CUSTOM_ELEMENTS';
9
+ }
10
+ render() {
11
+ return (h(Host, { slot: this.slot }, h("div", { id: this.slot, class: "taskbar-custom-elements-container" }, h("slot", null))));
12
+ }
13
+ };
14
+ SnkTaskbarCustomElements.style = snkTaskbarCss;
15
+
16
+ export { SnkTaskbarCustomElements as snk_taskbar_custom_elements };