@sankhyalabs/sankhyablocks 10.1.0-rc.16 → 10.1.0-rc.17

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 (787) hide show
  1. package/dist/cjs/AuthorizationConfig-79ffae4b.js.gz +0 -0
  2. package/dist/cjs/ConfigStorage-b96ff235.js.gz +0 -0
  3. package/dist/cjs/DataFetcher-c24cdc3d.js.gz +0 -0
  4. package/dist/cjs/FormConfigHelper-1e8bb464.js.gz +0 -0
  5. package/dist/cjs/GetSelectedRecordsIDsInfo-bd50caf1.js.gz +0 -0
  6. package/dist/cjs/IFetchDataExporterParams-e78ec415.js.gz +0 -0
  7. package/dist/cjs/ISave-f1aecaa6.js.gz +0 -0
  8. package/dist/cjs/ParamType-90b440a0.js.gz +0 -0
  9. package/dist/cjs/PersonalizedFilterUtils-eccb267a.js.gz +0 -0
  10. package/dist/cjs/PrintUtils-bcaeb82f.js.gz +0 -0
  11. package/dist/cjs/ResourceIDUtils-5ff86aa7.js.gz +0 -0
  12. package/dist/cjs/ServicesNumberingConfig-69038a0f.js.gz +0 -0
  13. package/dist/cjs/SnkFormConfigManager-b4f72038.js.gz +0 -0
  14. package/dist/cjs/SnkMultiSelectionListDataSource-850d50ef.js.gz +0 -0
  15. package/dist/cjs/auth-fetcher-33a7361c.js.gz +0 -0
  16. package/dist/cjs/config-header.cjs.entry.js.gz +0 -0
  17. package/dist/cjs/configs-button.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/constants-6d82e405.js.gz +0 -0
  19. package/dist/cjs/css-shim-a27d231b.js.gz +0 -0
  20. package/dist/cjs/dataunit-fetcher-75ba0c0a.js.gz +0 -0
  21. package/dist/cjs/default-filters-a09bf82b.js.gz +0 -0
  22. package/dist/cjs/dom-ff96a4bc.js.gz +0 -0
  23. package/dist/cjs/field-config_2.cjs.entry.js.gz +0 -0
  24. package/dist/cjs/fields-layout.cjs.entry.js.gz +0 -0
  25. package/dist/cjs/fields-selector.cjs.entry.js.gz +0 -0
  26. package/dist/cjs/filter-item-type.enum-a7ffdaa6.js.gz +0 -0
  27. package/dist/cjs/filter-type.enum-2bb46d2a.js.gz +0 -0
  28. package/dist/cjs/filter-validate-cb4ed41a.js.gz +0 -0
  29. package/dist/cjs/filterNumberVariation-d65332da.js.gz +0 -0
  30. package/dist/cjs/form-config-fetcher-6b2f0c28.js.gz +0 -0
  31. package/dist/cjs/guides-configurator.cjs.entry.js.gz +0 -0
  32. package/dist/cjs/index-17105557.js.gz +0 -0
  33. package/dist/cjs/index-22a8223a.js.gz +0 -0
  34. package/dist/cjs/index-62760a9c.js.gz +0 -0
  35. package/dist/cjs/index-8d94b7e0.js.gz +0 -0
  36. package/dist/cjs/index-e3e39724.js.gz +0 -0
  37. package/dist/cjs/index.cjs.js.gz +0 -0
  38. package/dist/cjs/loader.cjs.js.gz +0 -0
  39. package/dist/cjs/pesquisa-grid_2.cjs.entry.js.gz +0 -0
  40. package/dist/cjs/presentationMode-52ec3bdd.js.gz +0 -0
  41. package/dist/cjs/sankhyablocks.cjs.js.gz +0 -0
  42. package/dist/cjs/shadow-css-7e3e0ab1.js.gz +0 -0
  43. package/dist/cjs/snk-actions-button_9.cjs.entry.js.gz +0 -0
  44. package/dist/cjs/snk-actions-form.cjs.entry.js.gz +0 -0
  45. package/dist/cjs/snk-application.cjs.entry.js.gz +0 -0
  46. package/dist/cjs/snk-attach.cjs.entry.js.gz +0 -0
  47. package/dist/cjs/snk-client-confirm.cjs.entry.js.gz +0 -0
  48. package/dist/cjs/snk-configurator.cjs.entry.js.gz +0 -0
  49. package/dist/cjs/snk-crud.cjs.entry.js.gz +0 -0
  50. package/dist/cjs/snk-custom-slot-elements.cjs.entry.js.gz +0 -0
  51. package/dist/cjs/snk-data-exporter.cjs.entry.js.gz +0 -0
  52. package/dist/cjs/snk-data-unit-a1a0f19d.js.gz +0 -0
  53. package/dist/cjs/snk-data-unit.cjs.entry.js.gz +0 -0
  54. package/dist/cjs/snk-default-filter.cjs.entry.js.gz +0 -0
  55. package/dist/cjs/snk-detail-view.cjs.entry.js +1 -1
  56. package/dist/cjs/snk-detail-view.cjs.entry.js.gz +0 -0
  57. package/dist/cjs/snk-entity-list.cjs.entry.js.gz +0 -0
  58. package/dist/cjs/snk-exporter-email-sender.cjs.entry.js.gz +0 -0
  59. package/dist/cjs/snk-expression-group_2.cjs.entry.js.gz +0 -0
  60. package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js.gz +0 -0
  61. package/dist/cjs/snk-filter-bar_4.cjs.entry.js.gz +0 -0
  62. package/dist/cjs/snk-filter-binary-select.cjs.entry.js.gz +0 -0
  63. package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js.gz +0 -0
  64. package/dist/cjs/snk-filter-detail.cjs.entry.js.gz +0 -0
  65. package/dist/cjs/snk-filter-field-search_2.cjs.entry.js.gz +0 -0
  66. package/dist/cjs/snk-filter-modal-item.cjs.entry.js.gz +0 -0
  67. package/dist/cjs/snk-filter-multi-select.cjs.entry.js.gz +0 -0
  68. package/dist/cjs/snk-filter-number.cjs.entry.js.gz +0 -0
  69. package/dist/cjs/snk-filter-period.cjs.entry.js.gz +0 -0
  70. package/dist/cjs/snk-filter-search.cjs.entry.js.gz +0 -0
  71. package/dist/cjs/snk-filter-text.cjs.entry.js.gz +0 -0
  72. package/dist/cjs/snk-form-summary.cjs.entry.js.gz +0 -0
  73. package/dist/cjs/snk-form-view.cjs.entry.js.gz +0 -0
  74. package/dist/cjs/snk-form_2.cjs.entry.js.gz +0 -0
  75. package/dist/cjs/snk-grid.cjs.entry.js.gz +0 -0
  76. package/dist/cjs/{snk-guides-viewer-c98141e5.js → snk-guides-viewer-74bffae8.js} +1 -8
  77. package/dist/cjs/snk-guides-viewer-74bffae8.js.gz +0 -0
  78. package/dist/cjs/snk-guides-viewer.cjs.entry.js +1 -1
  79. package/dist/cjs/snk-guides-viewer.cjs.entry.js.gz +0 -0
  80. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js.gz +0 -0
  81. package/dist/cjs/snk-personalized-filter.cjs.entry.js.gz +0 -0
  82. package/dist/cjs/snk-pesquisa.cjs.entry.js.gz +0 -0
  83. package/dist/cjs/snk-print-selector.cjs.entry.js.gz +0 -0
  84. package/dist/cjs/snk-simple-bar.cjs.entry.js.gz +0 -0
  85. package/dist/cjs/snk-simple-crud.cjs.entry.js.gz +0 -0
  86. package/dist/cjs/snk-taskbar.cjs.entry.js.gz +0 -0
  87. package/dist/cjs/sortable.esm-9a110bb7.js.gz +0 -0
  88. package/dist/cjs/taskbar-elements-f3ecbf5c.js.gz +0 -0
  89. package/dist/cjs/taskbar-processor-2fba34a8.js.gz +0 -0
  90. package/dist/cjs/teste-pesquisa.cjs.entry.js.gz +0 -0
  91. package/dist/collection/components/snk-actions-button/actions/enum/ActionsType.js.gz +0 -0
  92. package/dist/collection/components/snk-actions-button/actions/enum/ParamType.js.gz +0 -0
  93. package/dist/collection/components/snk-actions-button/actions/enum/RefreshType.js.gz +0 -0
  94. package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js.gz +0 -0
  95. package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js.gz +0 -0
  96. package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js.gz +0 -0
  97. package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js.gz +0 -0
  98. package/dist/collection/components/snk-actions-button/actions/factory/executor.factory.js.gz +0 -0
  99. package/dist/collection/components/snk-actions-button/actions/index.js.gz +0 -0
  100. package/dist/collection/components/snk-actions-button/actions/interfaces/IAction.js.gz +0 -0
  101. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecSource.js.gz +0 -0
  102. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActions.js.gz +0 -0
  103. package/dist/collection/components/snk-actions-button/actions/interfaces/IExecuteActionsProps.js.gz +0 -0
  104. package/dist/collection/components/snk-actions-button/actions/interfaces/IResultParam.js.gz +0 -0
  105. package/dist/collection/components/snk-actions-button/clientEvent/index.js.gz +0 -0
  106. package/dist/collection/components/snk-actions-button/clientEvent/interfaces/IClientEventConfirm.js.gz +0 -0
  107. package/dist/collection/components/snk-actions-button/interfaces/index.js.gz +0 -0
  108. package/dist/collection/components/snk-actions-button/snk-actions-button.css.gz +0 -0
  109. package/dist/collection/components/snk-actions-button/snk-actions-button.js.gz +0 -0
  110. package/dist/collection/components/snk-actions-button/subcomponents/snk-actions-form.js.gz +0 -0
  111. package/dist/collection/components/snk-actions-button/subcomponents/snk-client-confirm.js.gz +0 -0
  112. package/dist/collection/components/snk-application/__mocks__/snk-application.js.gz +0 -0
  113. package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js.gz +0 -0
  114. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js.gz +0 -0
  115. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js.gz +0 -0
  116. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js.gz +0 -0
  117. package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js.gz +0 -0
  118. package/dist/collection/components/snk-application/snk-application.css.gz +0 -0
  119. package/dist/collection/components/snk-application/snk-application.js.gz +0 -0
  120. package/dist/collection/components/snk-attach/interfaces/ICrudConfig.js.gz +0 -0
  121. package/dist/collection/components/snk-attach/interfaces/TFetcherType.js.gz +0 -0
  122. package/dist/collection/components/snk-attach/interfaces/index.js.gz +0 -0
  123. package/dist/collection/components/snk-attach/snk-attach.css.gz +0 -0
  124. package/dist/collection/components/snk-attach/snk-attach.js.gz +0 -0
  125. package/dist/collection/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.js.gz +0 -0
  126. package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js.gz +0 -0
  127. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js.gz +0 -0
  128. package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js.gz +0 -0
  129. package/dist/collection/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.js.gz +0 -0
  130. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js.gz +0 -0
  131. package/dist/collection/components/snk-attach/structure/index.js.gz +0 -0
  132. package/dist/collection/components/snk-configurator/AuthorizationConfig.js.gz +0 -0
  133. package/dist/collection/components/snk-configurator/snk-configurator.css.gz +0 -0
  134. package/dist/collection/components/snk-configurator/snk-configurator.js.gz +0 -0
  135. package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js.gz +0 -0
  136. package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js.gz +0 -0
  137. package/dist/collection/components/snk-crud/snk-crud.css.gz +0 -0
  138. package/dist/collection/components/snk-crud/snk-crud.js.gz +0 -0
  139. package/dist/collection/components/snk-crud/subcomponents/CardFormResizeObserver.js.gz +0 -0
  140. package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js.gz +0 -0
  141. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css.gz +0 -0
  142. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js.gz +0 -0
  143. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.css.gz +0 -0
  144. package/dist/collection/components/snk-crud/subcomponents/snk-form-summary.js.gz +0 -0
  145. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.css.gz +0 -0
  146. package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js.gz +0 -0
  147. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css.gz +0 -0
  148. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -8
  149. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js.gz +0 -0
  150. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css.gz +0 -0
  151. package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js.gz +0 -0
  152. package/dist/collection/components/snk-data-exporter/data/attachment.js.gz +0 -0
  153. package/dist/collection/components/snk-data-exporter/data/email.js.gz +0 -0
  154. package/dist/collection/components/snk-data-exporter/data/export-config.js.gz +0 -0
  155. package/dist/collection/components/snk-data-exporter/data/export-result.js.gz +0 -0
  156. package/dist/collection/components/snk-data-exporter/data/report.js.gz +0 -0
  157. package/dist/collection/components/snk-data-exporter/exporter-email-sender/email-info-step.js.gz +0 -0
  158. package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js.gz +0 -0
  159. package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js.gz +0 -0
  160. package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js.gz +0 -0
  161. package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js.gz +0 -0
  162. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js.gz +0 -0
  163. package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js.gz +0 -0
  164. package/dist/collection/components/snk-data-exporter/interfaces/IRecordID.js.gz +0 -0
  165. package/dist/collection/components/snk-data-exporter/interfaces/ISelectedID.js.gz +0 -0
  166. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js.gz +0 -0
  167. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js.gz +0 -0
  168. package/dist/collection/components/snk-data-exporter/snk-data-exporter.css.gz +0 -0
  169. package/dist/collection/components/snk-data-exporter/snk-data-exporter.js.gz +0 -0
  170. package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js.gz +0 -0
  171. package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js.gz +0 -0
  172. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js.gz +0 -0
  173. package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js.gz +0 -0
  174. package/dist/collection/components/snk-data-unit/snk-data-unit.js.gz +0 -0
  175. package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js.gz +0 -0
  176. package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js.gz +0 -0
  177. package/dist/collection/components/snk-entity-list/snk-entity-list.css.gz +0 -0
  178. package/dist/collection/components/snk-entity-list/snk-entity-list.js.gz +0 -0
  179. package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js.gz +0 -0
  180. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js.gz +0 -0
  181. package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/presentationMode.js.gz +0 -0
  182. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js.gz +0 -0
  183. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js.gz +0 -0
  184. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js.gz +0 -0
  185. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js.gz +0 -0
  186. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js.gz +0 -0
  187. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js.gz +0 -0
  188. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js.gz +0 -0
  189. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css.gz +0 -0
  190. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js.gz +0 -0
  191. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type-mask.enum.js.gz +0 -0
  192. package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js.gz +0 -0
  193. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js.gz +0 -0
  194. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css.gz +0 -0
  195. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js.gz +0 -0
  196. package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js.gz +0 -0
  197. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css.gz +0 -0
  198. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js.gz +0 -0
  199. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.css.gz +0 -0
  200. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js.gz +0 -0
  201. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.css.gz +0 -0
  202. package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js.gz +0 -0
  203. package/dist/collection/components/snk-filter-bar/snk-filter-bar.css.gz +0 -0
  204. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js.gz +0 -0
  205. package/dist/collection/components/snk-filter-bar/types/custom-element-filter.js.gz +0 -0
  206. package/dist/collection/components/snk-filter-bar/types/default-filters.js.gz +0 -0
  207. package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js.gz +0 -0
  208. package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js.gz +0 -0
  209. package/dist/collection/components/snk-filter-bar/utils/filter-validate.js.gz +0 -0
  210. package/dist/collection/components/snk-filter-bar/utils/filters-mock.js.gz +0 -0
  211. package/dist/collection/components/snk-filter-field-search/interfaces/index.js.gz +0 -0
  212. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.css.gz +0 -0
  213. package/dist/collection/components/snk-filter-field-search/snk-filter-field-search.js.gz +0 -0
  214. package/dist/collection/components/snk-filter-field-search/subcomponents/index.js.gz +0 -0
  215. package/dist/collection/components/snk-filter-field-search/subcomponents/list-item.js.gz +0 -0
  216. package/dist/collection/components/snk-form/snk-form.css.gz +0 -0
  217. package/dist/collection/components/snk-form/snk-form.js.gz +0 -0
  218. package/dist/collection/components/snk-form-config/FormConfigHelper.js.gz +0 -0
  219. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js.gz +0 -0
  220. package/dist/collection/components/snk-form-config/config-header/config-header.css.gz +0 -0
  221. package/dist/collection/components/snk-form-config/config-header/config-header.js.gz +0 -0
  222. package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css.gz +0 -0
  223. package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js.gz +0 -0
  224. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css.gz +0 -0
  225. package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js.gz +0 -0
  226. package/dist/collection/components/snk-form-config/field-item/field-item.css.gz +0 -0
  227. package/dist/collection/components/snk-form-config/field-item/field-item.js.gz +0 -0
  228. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css.gz +0 -0
  229. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js.gz +0 -0
  230. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css.gz +0 -0
  231. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js.gz +0 -0
  232. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css.gz +0 -0
  233. package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js.gz +0 -0
  234. package/dist/collection/components/snk-form-config/snk-form-config.css.gz +0 -0
  235. package/dist/collection/components/snk-form-config/snk-form-config.js.gz +0 -0
  236. package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js.gz +0 -0
  237. package/dist/collection/components/snk-grid/snk-grid.css.gz +0 -0
  238. package/dist/collection/components/snk-grid/snk-grid.js.gz +0 -0
  239. package/dist/collection/components/snk-grid-config/snk-grid-config.css.gz +0 -0
  240. package/dist/collection/components/snk-grid-config/snk-grid-config.js.gz +0 -0
  241. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css.gz +0 -0
  242. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js.gz +0 -0
  243. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css.gz +0 -0
  244. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js.gz +0 -0
  245. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css.gz +0 -0
  246. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js.gz +0 -0
  247. package/dist/collection/components/snk-numbering-config/services/ServicesNumberingConfig.js.gz +0 -0
  248. package/dist/collection/components/snk-numbering-config/snk-numbering-config.css.gz +0 -0
  249. package/dist/collection/components/snk-numbering-config/snk-numbering-config.js.gz +0 -0
  250. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionGroup.js.gz +0 -0
  251. package/dist/collection/components/snk-personalized-filter/interfaces/IExpressionItem.js.gz +0 -0
  252. package/dist/collection/components/snk-personalized-filter/interfaces/IParameter.js.gz +0 -0
  253. package/dist/collection/components/snk-personalized-filter/interfaces/IPersonalizedFilter.js.gz +0 -0
  254. package/dist/collection/components/snk-personalized-filter/interfaces/ISystemFilterConfig.js.gz +0 -0
  255. package/dist/collection/components/snk-personalized-filter/interfaces/IUserFilterConfig.js.gz +0 -0
  256. package/dist/collection/components/snk-personalized-filter/interfaces/index.js.gz +0 -0
  257. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.css.gz +0 -0
  258. package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js.gz +0 -0
  259. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css.gz +0 -0
  260. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js.gz +0 -0
  261. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js.gz +0 -0
  262. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.css.gz +0 -0
  263. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js.gz +0 -0
  264. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.css.gz +0 -0
  265. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode.js.gz +0 -0
  266. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.css.gz +0 -0
  267. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js.gz +0 -0
  268. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.css.gz +0 -0
  269. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/snk-filter-param-config.js.gz +0 -0
  270. package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js.gz +0 -0
  271. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css.gz +0 -0
  272. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js.gz +0 -0
  273. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css.gz +0 -0
  274. package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js.gz +0 -0
  275. package/dist/collection/components/snk-pesquisa/pesquisaHelper.js.gz +0 -0
  276. package/dist/collection/components/snk-pesquisa/snk-pesquisa.css.gz +0 -0
  277. package/dist/collection/components/snk-pesquisa/snk-pesquisa.js.gz +0 -0
  278. package/dist/collection/components/snk-print-selector/snk-print-selector.css.gz +0 -0
  279. package/dist/collection/components/snk-print-selector/snk-print-selector.js.gz +0 -0
  280. package/dist/collection/components/snk-simple-bar/snk-simple-bar.css.gz +0 -0
  281. package/dist/collection/components/snk-simple-bar/snk-simple-bar.js.gz +0 -0
  282. package/dist/collection/components/snk-simple-crud/snk-simple-crud.constants.js.gz +0 -0
  283. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css.gz +0 -0
  284. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js.gz +0 -0
  285. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css.gz +0 -0
  286. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js.gz +0 -0
  287. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css.gz +0 -0
  288. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js.gz +0 -0
  289. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js.gz +0 -0
  290. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css.gz +0 -0
  291. package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js.gz +0 -0
  292. package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js.gz +0 -0
  293. package/dist/collection/components/snk-taskbar/snk-taskbar.css.gz +0 -0
  294. package/dist/collection/components/snk-taskbar/snk-taskbar.js.gz +0 -0
  295. package/dist/collection/components/teste-pesquisa/teste-pesquisa.css.gz +0 -0
  296. package/dist/collection/components/teste-pesquisa/teste-pesquisa.js.gz +0 -0
  297. package/dist/collection/index.js.gz +0 -0
  298. package/dist/collection/lib/@types/index.js.gz +0 -0
  299. package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js.gz +0 -0
  300. package/dist/collection/lib/applet-caller/applet-caller.js.gz +0 -0
  301. package/dist/collection/lib/auth/mgeauthorization.module.js.gz +0 -0
  302. package/dist/collection/lib/configs/ConfigStorage.js.gz +0 -0
  303. package/dist/collection/lib/configs/LayoutFormConfig.js.gz +0 -0
  304. package/dist/collection/lib/dataUnit/InMemoryLoader.js.gz +0 -0
  305. package/dist/collection/lib/dataUnit/ValueFormatter.js.gz +0 -0
  306. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js.gz +0 -0
  307. package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js.gz +0 -0
  308. package/dist/collection/lib/http/data-fetcher/DataFetcher.js.gz +0 -0
  309. package/dist/collection/lib/http/data-fetcher/custom-xhr-override.js.gz +0 -0
  310. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js.gz +0 -0
  311. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js.gz +0 -0
  312. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js.gz +0 -0
  313. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js.gz +0 -0
  314. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js.gz +0 -0
  315. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js.gz +0 -0
  316. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/ISave.js.gz +0 -0
  317. package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/index.js.gz +0 -0
  318. package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js.gz +0 -0
  319. package/dist/collection/lib/http/data-fetcher/fetchers/auth-fetcher.js.gz +0 -0
  320. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js.gz +0 -0
  321. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js.gz +0 -0
  322. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js.gz +0 -0
  323. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js.gz +0 -0
  324. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js.gz +0 -0
  325. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js.gz +0 -0
  326. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js.gz +0 -0
  327. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js.gz +0 -0
  328. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js.gz +0 -0
  329. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js.gz +0 -0
  330. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js.gz +0 -0
  331. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js.gz +0 -0
  332. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js.gz +0 -0
  333. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js.gz +0 -0
  334. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js.gz +0 -0
  335. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.js.gz +0 -0
  336. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js.gz +0 -0
  337. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterResponse.js.gz +0 -0
  338. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IPersonalizedReport.js.gz +0 -0
  339. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/permission-export-pdf.js.gz +0 -0
  340. package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js.gz +0 -0
  341. package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js.gz +0 -0
  342. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js.gz +0 -0
  343. package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js.gz +0 -0
  344. package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js.gz +0 -0
  345. package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js.gz +0 -0
  346. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js.gz +0 -0
  347. package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js.gz +0 -0
  348. package/dist/collection/lib/http/data-fetcher/fetchers/totals-fetcher.js.gz +0 -0
  349. package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js.gz +0 -0
  350. package/dist/collection/lib/http/data-fetcher/recaller/GraphQLRecaller.js.gz +0 -0
  351. package/dist/collection/lib/http/data-fetcher/recaller/IDataFetcherRecaller.js.gz +0 -0
  352. package/dist/collection/lib/http/data-fetcher/recaller/ServiceBrokerRecaller.js.gz +0 -0
  353. package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js.gz +0 -0
  354. package/dist/collection/lib/index.js.gz +0 -0
  355. package/dist/collection/lib/message/SnkMessageBuilder.js.gz +0 -0
  356. package/dist/collection/lib/message/messageResourceEnUSUtils.js.gz +0 -0
  357. package/dist/collection/lib/message/messageResourceEsESUtils.js.gz +0 -0
  358. package/dist/collection/lib/message/messageResourcePtBRUtils.js.gz +0 -0
  359. package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js.gz +0 -0
  360. package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js.gz +0 -0
  361. package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js.gz +0 -0
  362. package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  363. package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js.gz +0 -0
  364. package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js.gz +0 -0
  365. package/dist/collection/lib/message/resources/en-us/snk-application.msg.js.gz +0 -0
  366. package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js.gz +0 -0
  367. package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js.gz +0 -0
  368. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js.gz +0 -0
  369. package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js.gz +0 -0
  370. package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js.gz +0 -0
  371. package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js.gz +0 -0
  372. package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js.gz +0 -0
  373. package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js.gz +0 -0
  374. package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js.gz +0 -0
  375. package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js.gz +0 -0
  376. package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js.gz +0 -0
  377. package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js.gz +0 -0
  378. package/dist/collection/lib/message/resources/en-us/snk-form.msg.js.gz +0 -0
  379. package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js.gz +0 -0
  380. package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js.gz +0 -0
  381. package/dist/collection/lib/message/resources/en-us/snk-numbering-config.msg.js.gz +0 -0
  382. package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js.gz +0 -0
  383. package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js.gz +0 -0
  384. package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js.gz +0 -0
  385. package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js.gz +0 -0
  386. package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js.gz +0 -0
  387. package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js.gz +0 -0
  388. package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js.gz +0 -0
  389. package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js.gz +0 -0
  390. package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js.gz +0 -0
  391. package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js.gz +0 -0
  392. package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  393. package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js.gz +0 -0
  394. package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js.gz +0 -0
  395. package/dist/collection/lib/message/resources/es-es/snk-application.msg.js.gz +0 -0
  396. package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js.gz +0 -0
  397. package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js.gz +0 -0
  398. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js.gz +0 -0
  399. package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js.gz +0 -0
  400. package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js.gz +0 -0
  401. package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js.gz +0 -0
  402. package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js.gz +0 -0
  403. package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js.gz +0 -0
  404. package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js.gz +0 -0
  405. package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js.gz +0 -0
  406. package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js.gz +0 -0
  407. package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js.gz +0 -0
  408. package/dist/collection/lib/message/resources/es-es/snk-form.msg.js.gz +0 -0
  409. package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js.gz +0 -0
  410. package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js.gz +0 -0
  411. package/dist/collection/lib/message/resources/es-es/snk-numbering-config.msg.js.gz +0 -0
  412. package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js.gz +0 -0
  413. package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js.gz +0 -0
  414. package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js.gz +0 -0
  415. package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js.gz +0 -0
  416. package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js.gz +0 -0
  417. package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js.gz +0 -0
  418. package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js.gz +0 -0
  419. package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js.gz +0 -0
  420. package/dist/collection/lib/message/resources/pt-br/crud-utils.msg.js.gz +0 -0
  421. package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js.gz +0 -0
  422. package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js.gz +0 -0
  423. package/dist/collection/lib/message/resources/pt-br/file-viewer.msg.js.gz +0 -0
  424. package/dist/collection/lib/message/resources/pt-br/snk-actions-button.msg.js.gz +0 -0
  425. package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js.gz +0 -0
  426. package/dist/collection/lib/message/resources/pt-br/snk-attach.msg.js.gz +0 -0
  427. package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js.gz +0 -0
  428. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js.gz +0 -0
  429. package/dist/collection/lib/message/resources/pt-br/snk-data-exporter.msg.js.gz +0 -0
  430. package/dist/collection/lib/message/resources/pt-br/snk-data-unit.msg.js.gz +0 -0
  431. package/dist/collection/lib/message/resources/pt-br/snk-entity-list.msg.js.gz +0 -0
  432. package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js.gz +0 -0
  433. package/dist/collection/lib/message/resources/pt-br/snk-exporter.msg.js.gz +0 -0
  434. package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js.gz +0 -0
  435. package/dist/collection/lib/message/resources/pt-br/snk-filter-field-search.msg.js.gz +0 -0
  436. package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js.gz +0 -0
  437. package/dist/collection/lib/message/resources/pt-br/snk-filter-param-config.msg.js.gz +0 -0
  438. package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js.gz +0 -0
  439. package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js.gz +0 -0
  440. package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js.gz +0 -0
  441. package/dist/collection/lib/message/resources/pt-br/snk-numbering-config.msg.js.gz +0 -0
  442. package/dist/collection/lib/message/resources/pt-br/snk-personalized-filter.msg.js.gz +0 -0
  443. package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js.gz +0 -0
  444. package/dist/collection/lib/message/resources/pt-br/snk-print-selector.msg.js.gz +0 -0
  445. package/dist/collection/lib/message/resources/pt-br/snk-simple-bar.msg.js.gz +0 -0
  446. package/dist/collection/lib/message/resources/pt-br/snk-simple-crud.msg.js.gz +0 -0
  447. package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js.gz +0 -0
  448. package/dist/collection/lib/message/resources/pt-br/snk-taskbar.msg.js.gz +0 -0
  449. package/dist/collection/lib/resourceid/ResourceIDUtils.js.gz +0 -0
  450. package/dist/collection/lib/store/index.js.gz +0 -0
  451. package/dist/collection/lib/utils/ContinuousInsertUtils.js.gz +0 -0
  452. package/dist/collection/lib/utils/CrudUtils.js.gz +0 -0
  453. package/dist/collection/lib/utils/GetSelectedRecordsIDsInfo.js.gz +0 -0
  454. package/dist/collection/lib/utils/PrintUtils.js.gz +0 -0
  455. package/dist/collection/lib/utils/constants.js.gz +0 -0
  456. package/dist/collection/lib/utils/fileViewer/index.js.gz +0 -0
  457. package/dist/collection/lib/utils/fileViewer/interfaces/IFileViewerParams.js.gz +0 -0
  458. package/dist/collection/lib/utils/pesquisa.js.gz +0 -0
  459. package/dist/collection/lib/utils/urlutils.js.gz +0 -0
  460. package/dist/collection/lib/workspace/workspace.js.gz +0 -0
  461. package/dist/collection/sw.js.gz +0 -0
  462. package/dist/components/AuthorizationConfig.js.gz +0 -0
  463. package/dist/components/ConfigStorage.js.gz +0 -0
  464. package/dist/components/ContinuousInsertUtils.js.gz +0 -0
  465. package/dist/components/DataFetcher.js.gz +0 -0
  466. package/dist/components/GetSelectedRecordsIDsInfo.js.gz +0 -0
  467. package/dist/components/ISave.js.gz +0 -0
  468. package/dist/components/ParamType.js.gz +0 -0
  469. package/dist/components/PersonalizedFilterUtils.js.gz +0 -0
  470. package/dist/components/PrintUtils.js.gz +0 -0
  471. package/dist/components/ResourceIDUtils.js.gz +0 -0
  472. package/dist/components/SnkFormConfigManager.js.gz +0 -0
  473. package/dist/components/auth-fetcher.js.gz +0 -0
  474. package/dist/components/config-header.js.gz +0 -0
  475. package/dist/components/config-header2.js.gz +0 -0
  476. package/dist/components/configs-button.js.gz +0 -0
  477. package/dist/components/configs-button2.js.gz +0 -0
  478. package/dist/components/constants.js.gz +0 -0
  479. package/dist/components/dataunit-fetcher.js.gz +0 -0
  480. package/dist/components/field-config.js.gz +0 -0
  481. package/dist/components/field-config2.js.gz +0 -0
  482. package/dist/components/field-item.js.gz +0 -0
  483. package/dist/components/field-item2.js.gz +0 -0
  484. package/dist/components/fields-layout.js.gz +0 -0
  485. package/dist/components/fields-layout2.js.gz +0 -0
  486. package/dist/components/fields-selector.js.gz +0 -0
  487. package/dist/components/fields-selector2.js.gz +0 -0
  488. package/dist/components/filter-item-type.enum.js.gz +0 -0
  489. package/dist/components/filterNumberVariation.js.gz +0 -0
  490. package/dist/components/form-config-fetcher.js.gz +0 -0
  491. package/dist/components/guides-configurator.js.gz +0 -0
  492. package/dist/components/guides-configurator2.js.gz +0 -0
  493. package/dist/components/index.js.gz +0 -0
  494. package/dist/components/index2.js.gz +0 -0
  495. package/dist/components/pesquisa-grid.js.gz +0 -0
  496. package/dist/components/pesquisa-grid2.js.gz +0 -0
  497. package/dist/components/pesquisa-tree.js.gz +0 -0
  498. package/dist/components/pesquisa-tree2.js.gz +0 -0
  499. package/dist/components/presentationMode.js.gz +0 -0
  500. package/dist/components/snk-actions-button.js.gz +0 -0
  501. package/dist/components/snk-actions-button2.js.gz +0 -0
  502. package/dist/components/snk-actions-form.js.gz +0 -0
  503. package/dist/components/snk-application.js.gz +0 -0
  504. package/dist/components/snk-application2.js.gz +0 -0
  505. package/dist/components/snk-attach.js.gz +0 -0
  506. package/dist/components/snk-attach2.js.gz +0 -0
  507. package/dist/components/snk-client-confirm.js.gz +0 -0
  508. package/dist/components/snk-configurator.js.gz +0 -0
  509. package/dist/components/snk-configurator2.js.gz +0 -0
  510. package/dist/components/snk-crud.js.gz +0 -0
  511. package/dist/components/snk-custom-slot-elements.js.gz +0 -0
  512. package/dist/components/snk-data-exporter.js.gz +0 -0
  513. package/dist/components/snk-data-exporter2.js.gz +0 -0
  514. package/dist/components/snk-data-unit.js.gz +0 -0
  515. package/dist/components/snk-data-unit2.js.gz +0 -0
  516. package/dist/components/snk-default-filter.js.gz +0 -0
  517. package/dist/components/snk-default-filter2.js.gz +0 -0
  518. package/dist/components/snk-detail-view.js.gz +0 -0
  519. package/dist/components/snk-detail-view2.js +1 -8
  520. package/dist/components/snk-detail-view2.js.gz +0 -0
  521. package/dist/components/snk-entity-list.js.gz +0 -0
  522. package/dist/components/snk-exporter-email-sender.js.gz +0 -0
  523. package/dist/components/snk-exporter-email-sender2.js.gz +0 -0
  524. package/dist/components/snk-expression-group.js.gz +0 -0
  525. package/dist/components/snk-expression-group2.js.gz +0 -0
  526. package/dist/components/snk-expression-item.js.gz +0 -0
  527. package/dist/components/snk-expression-item2.js.gz +0 -0
  528. package/dist/components/snk-filter-advanced-mode.js.gz +0 -0
  529. package/dist/components/snk-filter-advanced-mode2.js.gz +0 -0
  530. package/dist/components/snk-filter-assistent-mode.js.gz +0 -0
  531. package/dist/components/snk-filter-assistent-mode2.js.gz +0 -0
  532. package/dist/components/snk-filter-bar.js.gz +0 -0
  533. package/dist/components/snk-filter-bar2.js.gz +0 -0
  534. package/dist/components/snk-filter-binary-select.js.gz +0 -0
  535. package/dist/components/snk-filter-checkbox-list.js.gz +0 -0
  536. package/dist/components/snk-filter-detail.js.gz +0 -0
  537. package/dist/components/snk-filter-detail2.js.gz +0 -0
  538. package/dist/components/snk-filter-field-search.js.gz +0 -0
  539. package/dist/components/snk-filter-field-search2.js.gz +0 -0
  540. package/dist/components/snk-filter-item.js.gz +0 -0
  541. package/dist/components/snk-filter-item2.js.gz +0 -0
  542. package/dist/components/snk-filter-list.js.gz +0 -0
  543. package/dist/components/snk-filter-modal-item.js.gz +0 -0
  544. package/dist/components/snk-filter-modal-item2.js.gz +0 -0
  545. package/dist/components/snk-filter-modal.js.gz +0 -0
  546. package/dist/components/snk-filter-modal2.js.gz +0 -0
  547. package/dist/components/snk-filter-multi-select.js.gz +0 -0
  548. package/dist/components/snk-filter-number.js.gz +0 -0
  549. package/dist/components/snk-filter-param-config.js.gz +0 -0
  550. package/dist/components/snk-filter-param-config2.js.gz +0 -0
  551. package/dist/components/snk-filter-period.js.gz +0 -0
  552. package/dist/components/snk-filter-search.js.gz +0 -0
  553. package/dist/components/snk-filter-text.js.gz +0 -0
  554. package/dist/components/snk-form-config.js.gz +0 -0
  555. package/dist/components/snk-form-config2.js.gz +0 -0
  556. package/dist/components/snk-form-summary.js.gz +0 -0
  557. package/dist/components/snk-form-summary2.js.gz +0 -0
  558. package/dist/components/snk-form-view.js.gz +0 -0
  559. package/dist/components/snk-form-view2.js.gz +0 -0
  560. package/dist/components/snk-form.js.gz +0 -0
  561. package/dist/components/snk-grid-config.js.gz +0 -0
  562. package/dist/components/snk-grid-config2.js.gz +0 -0
  563. package/dist/components/snk-grid.js.gz +0 -0
  564. package/dist/components/snk-grid2.js.gz +0 -0
  565. package/dist/components/snk-guides-viewer.js.gz +0 -0
  566. package/dist/components/snk-layout-form-config.js.gz +0 -0
  567. package/dist/components/snk-layout-form-config2.js.gz +0 -0
  568. package/dist/components/snk-numbering-config.js.gz +0 -0
  569. package/dist/components/snk-numbering-config2.js.gz +0 -0
  570. package/dist/components/snk-personalized-filter-editor.js.gz +0 -0
  571. package/dist/components/snk-personalized-filter.js.gz +0 -0
  572. package/dist/components/snk-personalized-filter2.js.gz +0 -0
  573. package/dist/components/snk-pesquisa.js.gz +0 -0
  574. package/dist/components/snk-pesquisa2.js.gz +0 -0
  575. package/dist/components/snk-print-selector.js.gz +0 -0
  576. package/dist/components/snk-select-box.js.gz +0 -0
  577. package/dist/components/snk-select-box2.js.gz +0 -0
  578. package/dist/components/snk-simple-bar.js.gz +0 -0
  579. package/dist/components/snk-simple-bar2.js.gz +0 -0
  580. package/dist/components/snk-simple-crud.js.gz +0 -0
  581. package/dist/components/snk-simple-crud2.js.gz +0 -0
  582. package/dist/components/snk-simple-form-config.js.gz +0 -0
  583. package/dist/components/snk-simple-form-config2.js.gz +0 -0
  584. package/dist/components/snk-taskbar.js.gz +0 -0
  585. package/dist/components/snk-taskbar2.js.gz +0 -0
  586. package/dist/components/snk-view-representation.js.gz +0 -0
  587. package/dist/components/snk-view-representation2.js.gz +0 -0
  588. package/dist/components/sortable.esm.js.gz +0 -0
  589. package/dist/components/taskbar-actions-button.js.gz +0 -0
  590. package/dist/components/taskbar-actions-button2.js.gz +0 -0
  591. package/dist/components/taskbar-split-button.js.gz +0 -0
  592. package/dist/components/taskbar-split-button2.js.gz +0 -0
  593. package/dist/components/teste-pesquisa.js.gz +0 -0
  594. package/dist/esm/AuthorizationConfig-dcbd207a.js.gz +0 -0
  595. package/dist/esm/ConfigStorage-9eb9cd0a.js.gz +0 -0
  596. package/dist/esm/DataFetcher-8c9be33f.js.gz +0 -0
  597. package/dist/esm/FormConfigHelper-b9cf7758.js.gz +0 -0
  598. package/dist/esm/GetSelectedRecordsIDsInfo-9fa41508.js.gz +0 -0
  599. package/dist/esm/IFetchDataExporterParams-d73bed3d.js.gz +0 -0
  600. package/dist/esm/ISave-30cc0eee.js.gz +0 -0
  601. package/dist/esm/ParamType-d5152b06.js.gz +0 -0
  602. package/dist/esm/PersonalizedFilterUtils-d2439a9a.js.gz +0 -0
  603. package/dist/esm/PrintUtils-3e4ff0f5.js.gz +0 -0
  604. package/dist/esm/ResourceIDUtils-a114189a.js.gz +0 -0
  605. package/dist/esm/ServicesNumberingConfig-2f7b050e.js.gz +0 -0
  606. package/dist/esm/SnkFormConfigManager-93ff3178.js.gz +0 -0
  607. package/dist/esm/SnkMultiSelectionListDataSource-21d109ad.js.gz +0 -0
  608. package/dist/esm/auth-fetcher-fbe8792a.js.gz +0 -0
  609. package/dist/esm/config-header.entry.js.gz +0 -0
  610. package/dist/esm/configs-button.entry.js.gz +0 -0
  611. package/dist/esm/constants-7b422de0.js.gz +0 -0
  612. package/dist/esm/css-shim-9f2d321e.js.gz +0 -0
  613. package/dist/esm/dataunit-fetcher-07e525dc.js.gz +0 -0
  614. package/dist/esm/default-filters-50105e43.js.gz +0 -0
  615. package/dist/esm/dom-64053c71.js.gz +0 -0
  616. package/dist/esm/field-config_2.entry.js.gz +0 -0
  617. package/dist/esm/fields-layout.entry.js.gz +0 -0
  618. package/dist/esm/fields-selector.entry.js.gz +0 -0
  619. package/dist/esm/filter-item-type.enum-d45e026f.js.gz +0 -0
  620. package/dist/esm/filter-type.enum-f6a8fe23.js.gz +0 -0
  621. package/dist/esm/filter-validate-faf51fa9.js.gz +0 -0
  622. package/dist/esm/filterNumberVariation-8cee02ea.js.gz +0 -0
  623. package/dist/esm/form-config-fetcher-2da29748.js.gz +0 -0
  624. package/dist/esm/guides-configurator.entry.js.gz +0 -0
  625. package/dist/esm/index-620ac460.js.gz +0 -0
  626. package/dist/esm/index-8acbae97.js.gz +0 -0
  627. package/dist/esm/index-b40568ff.js.gz +0 -0
  628. package/dist/esm/index-c961465b.js.gz +0 -0
  629. package/dist/esm/index-e9c7ceaa.js.gz +0 -0
  630. package/dist/esm/index.js.gz +0 -0
  631. package/dist/esm/loader.js.gz +0 -0
  632. package/dist/esm/pesquisa-grid_2.entry.js.gz +0 -0
  633. package/dist/esm/polyfills/core-js.js.gz +0 -0
  634. package/dist/esm/polyfills/css-shim.js.gz +0 -0
  635. package/dist/esm/polyfills/dom.js.gz +0 -0
  636. package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
  637. package/dist/esm/polyfills/index.js.gz +0 -0
  638. package/dist/esm/polyfills/system.js.gz +0 -0
  639. package/dist/esm/presentationMode-783bbf9d.js.gz +0 -0
  640. package/dist/esm/sankhyablocks.js.gz +0 -0
  641. package/dist/esm/shadow-css-98135883.js.gz +0 -0
  642. package/dist/esm/snk-actions-button_9.entry.js.gz +0 -0
  643. package/dist/esm/snk-actions-form.entry.js.gz +0 -0
  644. package/dist/esm/snk-application.entry.js.gz +0 -0
  645. package/dist/esm/snk-attach.entry.js.gz +0 -0
  646. package/dist/esm/snk-client-confirm.entry.js.gz +0 -0
  647. package/dist/esm/snk-configurator.entry.js.gz +0 -0
  648. package/dist/esm/snk-crud.entry.js.gz +0 -0
  649. package/dist/esm/snk-custom-slot-elements.entry.js.gz +0 -0
  650. package/dist/esm/snk-data-exporter.entry.js.gz +0 -0
  651. package/dist/esm/snk-data-unit-5227615e.js.gz +0 -0
  652. package/dist/esm/snk-data-unit.entry.js.gz +0 -0
  653. package/dist/esm/snk-default-filter.entry.js.gz +0 -0
  654. package/dist/esm/snk-detail-view.entry.js +1 -1
  655. package/dist/esm/snk-detail-view.entry.js.gz +0 -0
  656. package/dist/esm/snk-entity-list.entry.js.gz +0 -0
  657. package/dist/esm/snk-exporter-email-sender.entry.js.gz +0 -0
  658. package/dist/esm/snk-expression-group_2.entry.js.gz +0 -0
  659. package/dist/esm/snk-filter-advanced-mode_2.entry.js.gz +0 -0
  660. package/dist/esm/snk-filter-bar_4.entry.js.gz +0 -0
  661. package/dist/esm/snk-filter-binary-select.entry.js.gz +0 -0
  662. package/dist/esm/snk-filter-checkbox-list.entry.js.gz +0 -0
  663. package/dist/esm/snk-filter-detail.entry.js.gz +0 -0
  664. package/dist/esm/snk-filter-field-search_2.entry.js.gz +0 -0
  665. package/dist/esm/snk-filter-modal-item.entry.js.gz +0 -0
  666. package/dist/esm/snk-filter-multi-select.entry.js.gz +0 -0
  667. package/dist/esm/snk-filter-number.entry.js.gz +0 -0
  668. package/dist/esm/snk-filter-period.entry.js.gz +0 -0
  669. package/dist/esm/snk-filter-search.entry.js.gz +0 -0
  670. package/dist/esm/snk-filter-text.entry.js.gz +0 -0
  671. package/dist/esm/snk-form-summary.entry.js.gz +0 -0
  672. package/dist/esm/snk-form-view.entry.js.gz +0 -0
  673. package/dist/esm/snk-form_2.entry.js.gz +0 -0
  674. package/dist/esm/snk-grid.entry.js.gz +0 -0
  675. package/dist/esm/{snk-guides-viewer-e24d0d2d.js → snk-guides-viewer-826b9f65.js} +1 -8
  676. package/dist/esm/snk-guides-viewer-826b9f65.js.gz +0 -0
  677. package/dist/esm/snk-guides-viewer.entry.js +1 -1
  678. package/dist/esm/snk-guides-viewer.entry.js.gz +0 -0
  679. package/dist/esm/snk-personalized-filter-editor.entry.js.gz +0 -0
  680. package/dist/esm/snk-personalized-filter.entry.js.gz +0 -0
  681. package/dist/esm/snk-pesquisa.entry.js.gz +0 -0
  682. package/dist/esm/snk-print-selector.entry.js.gz +0 -0
  683. package/dist/esm/snk-simple-bar.entry.js.gz +0 -0
  684. package/dist/esm/snk-simple-crud.entry.js.gz +0 -0
  685. package/dist/esm/snk-taskbar.entry.js.gz +0 -0
  686. package/dist/esm/sortable.esm-842f85a3.js.gz +0 -0
  687. package/dist/esm/taskbar-elements-b3c5a3ce.js.gz +0 -0
  688. package/dist/esm/taskbar-processor-3436124c.js.gz +0 -0
  689. package/dist/esm/teste-pesquisa.entry.js.gz +0 -0
  690. package/dist/index.cjs.js.gz +0 -0
  691. package/dist/index.js.gz +0 -0
  692. package/dist/sankhyablocks/index.esm.js.gz +0 -0
  693. package/dist/sankhyablocks/p-04237877.entry.js.gz +0 -0
  694. package/dist/sankhyablocks/{p-4d102770.entry.js → p-0b9a3fbc.entry.js} +1 -1
  695. package/dist/sankhyablocks/p-0b9a3fbc.entry.js.gz +0 -0
  696. package/dist/sankhyablocks/p-0d0299d9.entry.js.gz +0 -0
  697. package/dist/sankhyablocks/p-0f3698af.js.gz +0 -0
  698. package/dist/sankhyablocks/p-0fc59837.entry.js.gz +0 -0
  699. package/dist/sankhyablocks/p-1273039f.js.gz +0 -0
  700. package/dist/sankhyablocks/p-15c07fa9.js.gz +0 -0
  701. package/dist/sankhyablocks/p-15f361a1.entry.js.gz +0 -0
  702. package/dist/sankhyablocks/p-18c49622.entry.js.gz +0 -0
  703. package/dist/sankhyablocks/p-1a0caadb.js.gz +0 -0
  704. package/dist/sankhyablocks/p-1a68fb59.js.gz +0 -0
  705. package/dist/sankhyablocks/p-1d81c1c6.entry.js.gz +0 -0
  706. package/dist/sankhyablocks/p-1fe20cd8.entry.js.gz +0 -0
  707. package/dist/sankhyablocks/p-25f31aa3.entry.js.gz +0 -0
  708. package/dist/sankhyablocks/p-26f833db.entry.js.gz +0 -0
  709. package/dist/sankhyablocks/p-2cf62df9.entry.js.gz +0 -0
  710. package/dist/sankhyablocks/{p-309fedd2.entry.js → p-32596866.entry.js} +1 -1
  711. package/dist/sankhyablocks/p-32596866.entry.js.gz +0 -0
  712. package/dist/sankhyablocks/p-3411e55e.entry.js.gz +0 -0
  713. package/dist/sankhyablocks/p-360c1621.entry.js.gz +0 -0
  714. package/dist/sankhyablocks/p-3810bd66.js.gz +0 -0
  715. package/dist/sankhyablocks/p-3c77a644.entry.js.gz +0 -0
  716. package/dist/sankhyablocks/p-3f4699dc.entry.js.gz +0 -0
  717. package/dist/sankhyablocks/p-403c0168.js.gz +0 -0
  718. package/dist/sankhyablocks/p-42e248cd.js.gz +0 -0
  719. package/dist/sankhyablocks/p-43f41898.js.gz +0 -0
  720. package/dist/sankhyablocks/p-43f4ccb8.entry.js.gz +0 -0
  721. package/dist/sankhyablocks/p-4c8f3b88.entry.js.gz +0 -0
  722. package/dist/sankhyablocks/p-50735892.js.gz +0 -0
  723. package/dist/sankhyablocks/p-51833248.js.gz +0 -0
  724. package/dist/sankhyablocks/p-524cb1e6.entry.js.gz +0 -0
  725. package/dist/sankhyablocks/p-5ef833a9.entry.js.gz +0 -0
  726. package/dist/sankhyablocks/p-688dcb4c.js.gz +0 -0
  727. package/dist/sankhyablocks/p-68c1a093.js.gz +0 -0
  728. package/dist/sankhyablocks/p-6a4b21dd.js.gz +0 -0
  729. package/dist/sankhyablocks/p-6b776c48.entry.js.gz +0 -0
  730. package/dist/sankhyablocks/p-71b1be2e.js.gz +0 -0
  731. package/dist/sankhyablocks/p-76e66fd9.js.gz +0 -0
  732. package/dist/sankhyablocks/p-79533925.entry.js.gz +0 -0
  733. package/dist/sankhyablocks/p-7bcfd67e.entry.js.gz +0 -0
  734. package/dist/sankhyablocks/p-7dd49d15.js.gz +0 -0
  735. package/dist/sankhyablocks/p-7fc98366.entry.js.gz +0 -0
  736. package/dist/sankhyablocks/p-8112e717.entry.js.gz +0 -0
  737. package/dist/sankhyablocks/p-8293629f.entry.js.gz +0 -0
  738. package/dist/sankhyablocks/p-84345e7a.js.gz +0 -0
  739. package/dist/sankhyablocks/p-8d884fab.js.gz +0 -0
  740. package/dist/sankhyablocks/p-8f3f2306.js.gz +0 -0
  741. package/dist/sankhyablocks/p-9019a32f.js.gz +0 -0
  742. package/dist/sankhyablocks/p-969ed695.entry.js.gz +0 -0
  743. package/dist/sankhyablocks/p-973f2144.entry.js.gz +0 -0
  744. package/dist/sankhyablocks/p-9d3c94f9.entry.js.gz +0 -0
  745. package/dist/sankhyablocks/p-a111bedd.entry.js.gz +0 -0
  746. package/dist/sankhyablocks/p-a17e9ecd.js.gz +0 -0
  747. package/dist/sankhyablocks/p-a415da53.entry.js.gz +0 -0
  748. package/dist/sankhyablocks/p-a46ac091.js.gz +0 -0
  749. package/dist/sankhyablocks/p-aaba26e1.entry.js.gz +0 -0
  750. package/dist/sankhyablocks/p-afc69b40.entry.js.gz +0 -0
  751. package/dist/sankhyablocks/p-b568c1d4.js.gz +0 -0
  752. package/dist/sankhyablocks/p-c0cc97c9.entry.js.gz +0 -0
  753. package/dist/sankhyablocks/p-c14c2ccb.entry.js.gz +0 -0
  754. package/dist/sankhyablocks/p-c3ec6642.js.gz +0 -0
  755. package/dist/sankhyablocks/p-ca199896.entry.js.gz +0 -0
  756. package/dist/sankhyablocks/p-cad964b5.js.gz +0 -0
  757. package/dist/sankhyablocks/p-cc78393d.entry.js.gz +0 -0
  758. package/dist/sankhyablocks/p-cdda05e3.js.gz +0 -0
  759. package/dist/sankhyablocks/p-d59bc608.entry.js.gz +0 -0
  760. package/dist/sankhyablocks/p-d68904a9.js.gz +0 -0
  761. package/dist/sankhyablocks/p-da455c82.js.gz +0 -0
  762. package/dist/sankhyablocks/p-dc30c3c4.entry.js.gz +0 -0
  763. package/dist/sankhyablocks/p-dc36cfbf.js.gz +0 -0
  764. package/dist/sankhyablocks/p-ddf5e382.js.gz +0 -0
  765. package/dist/sankhyablocks/p-de27a13b.entry.js.gz +0 -0
  766. package/dist/sankhyablocks/p-e0ef7460.entry.js.gz +0 -0
  767. package/dist/sankhyablocks/p-e60b1bf7.entry.js.gz +0 -0
  768. package/dist/sankhyablocks/{p-c0092d28.js → p-e61b62a3.js} +1 -1
  769. package/dist/sankhyablocks/p-e61b62a3.js.gz +0 -0
  770. package/dist/sankhyablocks/p-e6fbd6a9.js.gz +0 -0
  771. package/dist/sankhyablocks/p-eaad0aa8.js.gz +0 -0
  772. package/dist/sankhyablocks/p-f258c8e0.entry.js.gz +0 -0
  773. package/dist/sankhyablocks/p-f29b134c.entry.js.gz +0 -0
  774. package/dist/sankhyablocks/p-f330789d.entry.js.gz +0 -0
  775. package/dist/sankhyablocks/p-f4184ce7.js.gz +0 -0
  776. package/dist/sankhyablocks/p-f86a394e.entry.js.gz +0 -0
  777. package/dist/sankhyablocks/p-fa80e546.js.gz +0 -0
  778. package/dist/sankhyablocks/p-fcf5cf15.entry.js.gz +0 -0
  779. package/dist/sankhyablocks/p-ff1990ad.js.gz +0 -0
  780. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  781. package/dist/sankhyablocks/sankhyablocks.esm.js.gz +0 -0
  782. package/package.json +1 -1
  783. package/dist/cjs/snk-guides-viewer-c98141e5.js.gz +0 -0
  784. package/dist/esm/snk-guides-viewer-e24d0d2d.js.gz +0 -0
  785. package/dist/sankhyablocks/p-309fedd2.entry.js.gz +0 -0
  786. package/dist/sankhyablocks/p-4d102770.entry.js.gz +0 -0
  787. package/dist/sankhyablocks/p-c0092d28.js.gz +0 -0
Binary file
Binary file
Binary file
@@ -12,7 +12,7 @@ import './filter-item-type.enum-d45e026f.js';
12
12
  import './form-config-fetcher-2da29748.js';
13
13
  import { V as VIEW_MODE } from './constants-7b422de0.js';
14
14
  import { T as TaskbarElement } from './taskbar-elements-b3c5a3ce.js';
15
- import { S as SnkGuidesViewer } from './snk-guides-viewer-e24d0d2d.js';
15
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-826b9f65.js';
16
16
  import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
17
17
  import './ConfigStorage-9eb9cd0a.js';
18
18
  import './PrintUtils-3e4ff0f5.js';
Binary file
Binary file
Binary file
@@ -421,14 +421,7 @@ const SnkGuidesViewer = class {
421
421
  if (!this._guideHasChanged) {
422
422
  return;
423
423
  }
424
- if (this._currentDetail) {
425
- this._currentDetail.showUp();
426
- }
427
- else {
428
- if (this._mainForm) {
429
- this._mainForm.showUp();
430
- }
431
- }
424
+ window.scrollTo(0, 0);
432
425
  this._guideHasChanged = false;
433
426
  }
434
427
  getFieldsSearch(item) {
@@ -1,4 +1,4 @@
1
- export { S as snk_guides_viewer } from './snk-guides-viewer-e24d0d2d.js';
1
+ export { S as snk_guides_viewer } from './snk-guides-viewer-826b9f65.js';
2
2
  import './index-e9c7ceaa.js';
3
3
  import '@sankhyalabs/core';
4
4
  import '@sankhyalabs/core/dist/dataunit/DataUnit';
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.js.gz CHANGED
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as t,e as i,i as s,h as e,f as a,g as o}from"./p-15c07fa9.js";import{Action as h,StringUtils as n,KeyboardManager as r}from"@sankhyalabs/core";import{S as d}from"./p-50735892.js";import{FormMetadata as l,buildFormMetadata as c}from"@sankhyalabs/ezui/dist/collection/utils/form";import{S as u}from"./p-cdda05e3.js";import"./p-403c0168.js";import{P as m}from"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-42e248cd.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import{V as v}from"./p-9019a32f.js";import{T as p}from"./p-ddf5e382.js";import{S as g}from"./p-c0092d28.js";import{buildFieldSearch as f,SHORTCUT_SEARCH_FIELD as b}from"@sankhyalabs/ezui/dist/collection/utils";import"./p-a17e9ecd.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-71b1be2e.js";import"@sankhyalabs/core/dist/dataunit/DataUnit";import"./p-1a0caadb.js";class k{constructor(t,i,s,e){this._parentGuide=t,this._formMetadata=i,this._dataUnit=s,this._messageBuilder=e,this._messageBuilder||(this._messageBuilder=new u)}get id(){return this._parentGuide.id}getMessage(t,i){return this._messageBuilder.getMessage(t,i)}buildGuideItem(t){const i=Object.assign({},this._parentGuide);delete i.expanded,delete i.children;const s=this._dataUnit.getSelectedRecord();if(!s)return i;const e=this._dataUnit.isNewRecord(s.__record__id__),a=Array.from(this._formMetadata.getAllSheets().values()).map((i=>{const{name:s,label:a}=i,o=null!=l.getDetailName(s.split("::").pop()),h=o&&e,n=this._parentGuide.id,r=o?`${n}::${s}`:`${n}__FORM:${s}`;return o&&t.has(r)&&!h?t.get(r).buildGuideItem(t):{id:r,label:a,disabled:h,tooltip:h?this.getMessage("snkCrud.guide.tooltip.disabledDetail"):void 0}})),o=a.shift();return o.label=e?this.getMessage("snkCrud.title.newRecord"):s.__record__label__,o.children=a,i.children=[o],i}}const w=class{constructor(s){t(this,s),this.snkDetailGuidesChange=i(this,"snkDetailGuidesChange",7),this.snkSwitchGuide=i(this,"snkSwitchGuide",7),this.formItemsReady=i(this,"formItemsReady",7),this._disabledButtons=void 0,this._currentView=void 0,this.attachmentRegisterKey=void 0,this._fieldToGetFocus=void 0,this._hasToCreateFieldSearch=!0,this.formConfigManager=void 0,this.dataUnitName=void 0,this.resourceID=void 0,this.guideItemPath=void 0,this.entityName=void 0,this.label=void 0,this.dataUnit=void 0,this.selectedForm=void 0,this.dataState=void 0,this.messagesBuilder=void 0,this.branchGuide=void 0,this.canEdit=!0,this.taskbarCustomContainerId=void 0,this.customEditors=void 0,this.customRenders=void 0,this.presentationMode=m.SECONDARY}observeDataUnit(t,i){null==t||t.subscribe(this.dataUnitActionHandler.bind(this)),null==i||i.unsubscribe(this.dataUnitActionHandler)}observerDataState(t,i){const s=!(null==i?void 0:i.insertionMode)&&(null==t?void 0:t.insertionMode),e=(null==i?void 0:i.insertionMode)&&!(null==t?void 0:t.insertionMode);if((s||e)&&this.loadMetadata(),null==this._formMetadata)return;const a=null==t?void 0:t.selectedRecord,o=null==i?void 0:i.selectedRecord;(null==a?void 0:a.__record__id__)!==(null==o?void 0:o.__record__id__)&&this.snkDetailGuidesChange.emit(new k(this.branchGuide,this._formMetadata,this.dataUnit,this.messagesBuilder)),s&&setTimeout((()=>{this.changeViewMode(v.FORM)}),0),e&&this.changeViewMode(v.GRID);const h=[];this.dataState.hasPrevious||h.push(p.PREVIOUS),this.dataState.hasNext||h.push(p.NEXT),this.dataState.insertionMode&&h.push(p.INSERT),this._disabledButtons=h}async changeViewMode(t){this.emitSwitchEvent(t)}async configGrid(){this._snkGrid&&this._snkGrid.showConfig()}async showUp(){this._snkFormView&&this._snkFormView.showUp(),this._snkGrid&&this._snkGrid.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(t,i){var s;const e=this.normalizeBranchGuideId(null===(s=this.branchGuide)||void 0===s?void 0:s.id);this._snkGrid.addCustomEditor(t,i,e),this._snkFormView.addCustomEditor(t,i,e)}async observerPropsCustomEditor(t){for(const i in t)await this.addCustomEditor(i,t[i])}async addGridCustomRender(t,i){var s;const e=this.normalizeBranchGuideId(null===(s=this.branchGuide)||void 0===s?void 0:s.id);await this._snkGrid.addGridCustomRender(t,i,e)}onContentCardChanged(t){g.updateContentCard(t.detail.formName,t.detail.cardConfig,t.detail.propertyChanged,this.formConfigManager).then((()=>s(this))),t.stopPropagation()}async observeCustomRenders(t){for(const i in t){const s=t[i];await this.addGridCustomRender(i,s)}}updateLabel(){const t=this.guideItemPath?this.guideItemPath.length:0;if(t>0){const i=t>0?this.guideItemPath.map((t=>t.label)):void 0;this.label=i.pop(),this._levelPath=i.length>0?i.join(" / "):void 0}else this.label="",this._levelPath=void 0}getFormGuideId(t){var i;if(!t){if(null==(null===(i=this.dataState)||void 0===i?void 0:i.selectedRecord))return;const s=Array.from(this._formMetadata.getAllSheets().keys());if(!s||0==s.length)return;t=s[0]}return`${this.stripFormPattern(this.branchGuide.id)}__FORM:${t}`}stripFormPattern(t){return t.replace(w.REGEX_FORM_ID,"")}loadMetadata(){if(!this.dataUnit)return;if(!this.formConfigManager.isLoaded)return;const t=this.formConfigManager.getConfig(this.dataUnit);this._formMetadata=c(null==t||0===t.fields.length?void 0:t,this.dataUnit,!0)}dataUnitReadyHandler(t){this.dataUnit=t.detail,this.loadMetadata()}updateViewStack(t){var i,s;this._viewStack=t,this._currentView=this.selectedForm?1:0,null===(s=null===(i=this._viewStack)||void 0===i?void 0:i.show)||void 0===s||s.call(i,this._currentView)}getFormFields(){return this.selectedForm&&this._formMetadata?this._formMetadata.getSheet(this.selectedForm).fields:[]}emitSwitchEvent(t){const i=t===v.GRID?this.stripFormPattern(this.branchGuide.id):this.getFormGuideId();i&&this.snkSwitchGuide.emit(i)}handleAttachBack(){this._viewStack.show(v.GRID)}executeActionHandler(t){t.detail===p.GRID_MODE&&(this.emitSwitchEvent(v.GRID),t.stopPropagation()),t.detail!==p.FORM_MODE&&t.detail!==p.UPDATE||(this.emitSwitchEvent(v.FORM),t.stopPropagation()),t.detail===p.ATTACH&&(this._viewStack.show(v.ATTACHMENT),t.stopPropagation())}async getAttachmentRegisterKey(){if(this._snkDataUnit)return(await this._snkDataUnit.getSelectedRecordsIDsInfo()).map((({value:t})=>t)).join("_")}async handleDataStateChange({detail:t}){this.dataState=t,void 0!==t.selectedRecord&&this._snkDataUnit&&(this.attachmentRegisterKey=await this.getAttachmentRegisterKey())}componentWillLoad(){this._configName=`dynaform.${this.entityName}`,this.formConfigManager=new d(this._configName,this.resourceID,(()=>this.loadMetadata()),this.dataUnit),this.formConfigManager.loadConfig(),null==this.messagesBuilder&&(this.messagesBuilder=new u(this.entityName))}async componentDidLoad(){await this.observerPropsCustomEditor(this.customEditors),await this.observeCustomRenders(this.customRenders),this.initKeyboardManager()}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}async dataUnitActionHandler(t){t.type===h.FIELD_INVALIDATED&&this.addErrorBadgeToBranchGuide()}addErrorBadgeToBranchGuide(){this.branchGuide=Object.assign(Object.assign({},this.branchGuide),{badge:"error"}),this.snkDetailGuidesChange.emit(new k(this.branchGuide,this._formMetadata,this.dataUnit,this.messagesBuilder))}normalizeBranchGuideId(t){return null==t?void 0:t.replace(/child\[(.*?)\]/g,"$1").replace(/::/g,">")}getSettingsListForm(){return[{value:n.generateUUID(),label:this.messagesBuilder.getMessage("snkCrud.findColumn",void 0),disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(t,i)=>this.getFieldsSearch(i)}]}getFieldsSearch(t){return(null==this._fieldSearch||this._hasToCreateFieldSearch)&&(this._hasToCreateFieldSearch=!1,this._fieldSearch=f(t,(({argument:t})=>this.fieldsOptionLoader(t)),(t=>this.onSelectField(t)))),this._fieldSearch}fieldsOptionLoader(t){const i=null==t?void 0:t.toLowerCase(),s=this.getFormFields().map((t=>{var i;return null===(i=this.dataUnit)||void 0===i?void 0:i.getField(t.name)})).filter((t=>{var s,e;return(null===(s=t.name)||void 0===s?void 0:s.toLowerCase().includes(i))||(null===(e=t.label)||void 0===e?void 0:e.toLowerCase().includes(i))})).map((t=>({value:t.name,label:t.label})));return Promise.resolve(s)}onSelectField(t){null!=t&&(this._fieldToGetFocus=t.value)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}async initKeyboardManager(){this._keyboardManager=new r({propagate:!1,element:this._element}),this._keyboardManager.bind(b,(async()=>{await this._snkFormView.showSearchField()}),{description:this.messagesBuilder.getMessage("snkSimpleCrud.findFields"),element:this._element})}render(){return this.updateLabel(),e(a,null,e("snk-data-unit",{ref:t=>this._snkDataUnit=t,dataUnitName:`${this.dataUnitName}`,onDataUnitReady:t=>this.dataUnitReadyHandler(t),entityName:this.entityName,onDataStateChange:this.handleDataStateChange.bind(this),ignoreSaveMessage:this._currentView===v.GRID,messagesBuilder:this.messagesBuilder,configName:this._configName},e("ez-view-stack",{ref:t=>this.updateViewStack(t)},e("stack-item",null,e("div",{class:"ez-box ez-box--shadow grid-container"},e("div",{class:"ez-title--primary ez-size-width--full ez-padding--large detail-header"},e("div",{class:"ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center"},this._levelPath?e("span",{class:"level-path"},this._levelPath+" /"):void 0,this.label)),e("snk-grid",{class:"ez-size-width--full",ref:t=>this._snkGrid=t,configName:this._configName,messagesBuilder:this.messagesBuilder,onGridDoubleClick:()=>this.emitSwitchEvent(v.FORM),onActionClick:t=>this.executeActionHandler(t),presentationMode:this.presentationMode,canEdit:this.canEdit,isDetail:!0,taskbarCustomContainerId:this.taskbarCustomContainerId,gridHeaderCustomSlotId:"DETAIL_GRID_HEADER_CUSTOM_ELEMENTS",topTaskbarCustomSlotId:"DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS",outlineMode:!1}))),e("stack-item",null,e("snk-form-view",{ref:t=>this._snkFormView=t,canExpand:!1,canFix:!1,name:this.selectedForm,formMetadata:this._formMetadata,dataUnit:this.dataUnit,fields:this.getFormFields(),fieldToFocus:this._fieldToGetFocus,label:this.label,levelPath:this._levelPath,onFormItemsReady:({detail:t})=>this.formItemsReady.emit(t),onSnkRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this),fieldSearch:this._fieldSearch},e("snk-taskbar",{key:"guideViewerTaskbar",class:"form-taskbar","data-element-id":"guideViewer",configName:this._configName,messagesBuilder:this.messagesBuilder,disabledButtons:this._disabledButtons,buttons:"INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR",primaryButton:"INSERT",presentationMode:this.presentationMode,onActionClick:t=>this.executeActionHandler(t),dataUnit:this.dataUnit,resourceID:this.resourceID,customContainerId:this.taskbarCustomContainerId,customSlotId:"DETAIL_TASKBAR_CUSTOM_ELEMENTS",actionsSettingsList:this.getSettingsListForm()},e("slot",{name:"DETAIL_TASKBAR_CUSTOM_ELEMENTS"})))),e("stack-item",null,e("snk-attach",{registerKey:this.attachmentRegisterKey,messagesBuilder:this.messagesBuilder,entityName:this.entityName,onBack:this.handleAttachBack.bind(this)})))))}get _element(){return o(this)}static get watchers(){return{dataUnit:["observeDataUnit"],dataState:["observerDataState"],customEditors:["observerPropsCustomEditor"],customRenders:["observeCustomRenders"]}}};w.REGEX_FORM_ID=/__FORM:[^:]+/g,w.style=".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 43px)}";export{w as snk_detail_view}
1
+ import{r as t,e as i,i as s,h as e,f as a,g as o}from"./p-15c07fa9.js";import{Action as h,StringUtils as n,KeyboardManager as r}from"@sankhyalabs/core";import{S as d}from"./p-50735892.js";import{FormMetadata as l,buildFormMetadata as c}from"@sankhyalabs/ezui/dist/collection/utils/form";import{S as u}from"./p-cdda05e3.js";import"./p-403c0168.js";import{P as m}from"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-42e248cd.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import{V as v}from"./p-9019a32f.js";import{T as p}from"./p-ddf5e382.js";import{S as g}from"./p-e61b62a3.js";import{buildFieldSearch as f,SHORTCUT_SEARCH_FIELD as b}from"@sankhyalabs/ezui/dist/collection/utils";import"./p-a17e9ecd.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-71b1be2e.js";import"@sankhyalabs/core/dist/dataunit/DataUnit";import"./p-1a0caadb.js";class k{constructor(t,i,s,e){this._parentGuide=t,this._formMetadata=i,this._dataUnit=s,this._messageBuilder=e,this._messageBuilder||(this._messageBuilder=new u)}get id(){return this._parentGuide.id}getMessage(t,i){return this._messageBuilder.getMessage(t,i)}buildGuideItem(t){const i=Object.assign({},this._parentGuide);delete i.expanded,delete i.children;const s=this._dataUnit.getSelectedRecord();if(!s)return i;const e=this._dataUnit.isNewRecord(s.__record__id__),a=Array.from(this._formMetadata.getAllSheets().values()).map((i=>{const{name:s,label:a}=i,o=null!=l.getDetailName(s.split("::").pop()),h=o&&e,n=this._parentGuide.id,r=o?`${n}::${s}`:`${n}__FORM:${s}`;return o&&t.has(r)&&!h?t.get(r).buildGuideItem(t):{id:r,label:a,disabled:h,tooltip:h?this.getMessage("snkCrud.guide.tooltip.disabledDetail"):void 0}})),o=a.shift();return o.label=e?this.getMessage("snkCrud.title.newRecord"):s.__record__label__,o.children=a,i.children=[o],i}}const w=class{constructor(s){t(this,s),this.snkDetailGuidesChange=i(this,"snkDetailGuidesChange",7),this.snkSwitchGuide=i(this,"snkSwitchGuide",7),this.formItemsReady=i(this,"formItemsReady",7),this._disabledButtons=void 0,this._currentView=void 0,this.attachmentRegisterKey=void 0,this._fieldToGetFocus=void 0,this._hasToCreateFieldSearch=!0,this.formConfigManager=void 0,this.dataUnitName=void 0,this.resourceID=void 0,this.guideItemPath=void 0,this.entityName=void 0,this.label=void 0,this.dataUnit=void 0,this.selectedForm=void 0,this.dataState=void 0,this.messagesBuilder=void 0,this.branchGuide=void 0,this.canEdit=!0,this.taskbarCustomContainerId=void 0,this.customEditors=void 0,this.customRenders=void 0,this.presentationMode=m.SECONDARY}observeDataUnit(t,i){null==t||t.subscribe(this.dataUnitActionHandler.bind(this)),null==i||i.unsubscribe(this.dataUnitActionHandler)}observerDataState(t,i){const s=!(null==i?void 0:i.insertionMode)&&(null==t?void 0:t.insertionMode),e=(null==i?void 0:i.insertionMode)&&!(null==t?void 0:t.insertionMode);if((s||e)&&this.loadMetadata(),null==this._formMetadata)return;const a=null==t?void 0:t.selectedRecord,o=null==i?void 0:i.selectedRecord;(null==a?void 0:a.__record__id__)!==(null==o?void 0:o.__record__id__)&&this.snkDetailGuidesChange.emit(new k(this.branchGuide,this._formMetadata,this.dataUnit,this.messagesBuilder)),s&&setTimeout((()=>{this.changeViewMode(v.FORM)}),0),e&&this.changeViewMode(v.GRID);const h=[];this.dataState.hasPrevious||h.push(p.PREVIOUS),this.dataState.hasNext||h.push(p.NEXT),this.dataState.insertionMode&&h.push(p.INSERT),this._disabledButtons=h}async changeViewMode(t){this.emitSwitchEvent(t)}async configGrid(){this._snkGrid&&this._snkGrid.showConfig()}async showUp(){this._snkFormView&&this._snkFormView.showUp(),this._snkGrid&&this._snkGrid.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(t,i){var s;const e=this.normalizeBranchGuideId(null===(s=this.branchGuide)||void 0===s?void 0:s.id);this._snkGrid.addCustomEditor(t,i,e),this._snkFormView.addCustomEditor(t,i,e)}async observerPropsCustomEditor(t){for(const i in t)await this.addCustomEditor(i,t[i])}async addGridCustomRender(t,i){var s;const e=this.normalizeBranchGuideId(null===(s=this.branchGuide)||void 0===s?void 0:s.id);await this._snkGrid.addGridCustomRender(t,i,e)}onContentCardChanged(t){g.updateContentCard(t.detail.formName,t.detail.cardConfig,t.detail.propertyChanged,this.formConfigManager).then((()=>s(this))),t.stopPropagation()}async observeCustomRenders(t){for(const i in t){const s=t[i];await this.addGridCustomRender(i,s)}}updateLabel(){const t=this.guideItemPath?this.guideItemPath.length:0;if(t>0){const i=t>0?this.guideItemPath.map((t=>t.label)):void 0;this.label=i.pop(),this._levelPath=i.length>0?i.join(" / "):void 0}else this.label="",this._levelPath=void 0}getFormGuideId(t){var i;if(!t){if(null==(null===(i=this.dataState)||void 0===i?void 0:i.selectedRecord))return;const s=Array.from(this._formMetadata.getAllSheets().keys());if(!s||0==s.length)return;t=s[0]}return`${this.stripFormPattern(this.branchGuide.id)}__FORM:${t}`}stripFormPattern(t){return t.replace(w.REGEX_FORM_ID,"")}loadMetadata(){if(!this.dataUnit)return;if(!this.formConfigManager.isLoaded)return;const t=this.formConfigManager.getConfig(this.dataUnit);this._formMetadata=c(null==t||0===t.fields.length?void 0:t,this.dataUnit,!0)}dataUnitReadyHandler(t){this.dataUnit=t.detail,this.loadMetadata()}updateViewStack(t){var i,s;this._viewStack=t,this._currentView=this.selectedForm?1:0,null===(s=null===(i=this._viewStack)||void 0===i?void 0:i.show)||void 0===s||s.call(i,this._currentView)}getFormFields(){return this.selectedForm&&this._formMetadata?this._formMetadata.getSheet(this.selectedForm).fields:[]}emitSwitchEvent(t){const i=t===v.GRID?this.stripFormPattern(this.branchGuide.id):this.getFormGuideId();i&&this.snkSwitchGuide.emit(i)}handleAttachBack(){this._viewStack.show(v.GRID)}executeActionHandler(t){t.detail===p.GRID_MODE&&(this.emitSwitchEvent(v.GRID),t.stopPropagation()),t.detail!==p.FORM_MODE&&t.detail!==p.UPDATE||(this.emitSwitchEvent(v.FORM),t.stopPropagation()),t.detail===p.ATTACH&&(this._viewStack.show(v.ATTACHMENT),t.stopPropagation())}async getAttachmentRegisterKey(){if(this._snkDataUnit)return(await this._snkDataUnit.getSelectedRecordsIDsInfo()).map((({value:t})=>t)).join("_")}async handleDataStateChange({detail:t}){this.dataState=t,void 0!==t.selectedRecord&&this._snkDataUnit&&(this.attachmentRegisterKey=await this.getAttachmentRegisterKey())}componentWillLoad(){this._configName=`dynaform.${this.entityName}`,this.formConfigManager=new d(this._configName,this.resourceID,(()=>this.loadMetadata()),this.dataUnit),this.formConfigManager.loadConfig(),null==this.messagesBuilder&&(this.messagesBuilder=new u(this.entityName))}async componentDidLoad(){await this.observerPropsCustomEditor(this.customEditors),await this.observeCustomRenders(this.customRenders),this.initKeyboardManager()}disconnectedCallback(){var t;null===(t=this._keyboardManager)||void 0===t||t.unbindAllShortcutKeys()}async dataUnitActionHandler(t){t.type===h.FIELD_INVALIDATED&&this.addErrorBadgeToBranchGuide()}addErrorBadgeToBranchGuide(){this.branchGuide=Object.assign(Object.assign({},this.branchGuide),{badge:"error"}),this.snkDetailGuidesChange.emit(new k(this.branchGuide,this._formMetadata,this.dataUnit,this.messagesBuilder))}normalizeBranchGuideId(t){return null==t?void 0:t.replace(/child\[(.*?)\]/g,"$1").replace(/::/g,">")}getSettingsListForm(){return[{value:n.generateUUID(),label:this.messagesBuilder.getMessage("snkCrud.findColumn",void 0),disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(t,i)=>this.getFieldsSearch(i)}]}getFieldsSearch(t){return(null==this._fieldSearch||this._hasToCreateFieldSearch)&&(this._hasToCreateFieldSearch=!1,this._fieldSearch=f(t,(({argument:t})=>this.fieldsOptionLoader(t)),(t=>this.onSelectField(t)))),this._fieldSearch}fieldsOptionLoader(t){const i=null==t?void 0:t.toLowerCase(),s=this.getFormFields().map((t=>{var i;return null===(i=this.dataUnit)||void 0===i?void 0:i.getField(t.name)})).filter((t=>{var s,e;return(null===(s=t.name)||void 0===s?void 0:s.toLowerCase().includes(i))||(null===(e=t.label)||void 0===e?void 0:e.toLowerCase().includes(i))})).map((t=>({value:t.name,label:t.label})));return Promise.resolve(s)}onSelectField(t){null!=t&&(this._fieldToGetFocus=t.value)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}async initKeyboardManager(){this._keyboardManager=new r({propagate:!1,element:this._element}),this._keyboardManager.bind(b,(async()=>{await this._snkFormView.showSearchField()}),{description:this.messagesBuilder.getMessage("snkSimpleCrud.findFields"),element:this._element})}render(){return this.updateLabel(),e(a,null,e("snk-data-unit",{ref:t=>this._snkDataUnit=t,dataUnitName:`${this.dataUnitName}`,onDataUnitReady:t=>this.dataUnitReadyHandler(t),entityName:this.entityName,onDataStateChange:this.handleDataStateChange.bind(this),ignoreSaveMessage:this._currentView===v.GRID,messagesBuilder:this.messagesBuilder,configName:this._configName},e("ez-view-stack",{ref:t=>this.updateViewStack(t)},e("stack-item",null,e("div",{class:"ez-box ez-box--shadow grid-container"},e("div",{class:"ez-title--primary ez-size-width--full ez-padding--large detail-header"},e("div",{class:"ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center"},this._levelPath?e("span",{class:"level-path"},this._levelPath+" /"):void 0,this.label)),e("snk-grid",{class:"ez-size-width--full",ref:t=>this._snkGrid=t,configName:this._configName,messagesBuilder:this.messagesBuilder,onGridDoubleClick:()=>this.emitSwitchEvent(v.FORM),onActionClick:t=>this.executeActionHandler(t),presentationMode:this.presentationMode,canEdit:this.canEdit,isDetail:!0,taskbarCustomContainerId:this.taskbarCustomContainerId,gridHeaderCustomSlotId:"DETAIL_GRID_HEADER_CUSTOM_ELEMENTS",topTaskbarCustomSlotId:"DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS",outlineMode:!1}))),e("stack-item",null,e("snk-form-view",{ref:t=>this._snkFormView=t,canExpand:!1,canFix:!1,name:this.selectedForm,formMetadata:this._formMetadata,dataUnit:this.dataUnit,fields:this.getFormFields(),fieldToFocus:this._fieldToGetFocus,label:this.label,levelPath:this._levelPath,onFormItemsReady:({detail:t})=>this.formItemsReady.emit(t),onSnkRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this),fieldSearch:this._fieldSearch},e("snk-taskbar",{key:"guideViewerTaskbar",class:"form-taskbar","data-element-id":"guideViewer",configName:this._configName,messagesBuilder:this.messagesBuilder,disabledButtons:this._disabledButtons,buttons:"INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR",primaryButton:"INSERT",presentationMode:this.presentationMode,onActionClick:t=>this.executeActionHandler(t),dataUnit:this.dataUnit,resourceID:this.resourceID,customContainerId:this.taskbarCustomContainerId,customSlotId:"DETAIL_TASKBAR_CUSTOM_ELEMENTS",actionsSettingsList:this.getSettingsListForm()},e("slot",{name:"DETAIL_TASKBAR_CUSTOM_ELEMENTS"})))),e("stack-item",null,e("snk-attach",{registerKey:this.attachmentRegisterKey,messagesBuilder:this.messagesBuilder,entityName:this.entityName,onBack:this.handleAttachBack.bind(this)})))))}get _element(){return o(this)}static get watchers(){return{dataUnit:["observeDataUnit"],dataState:["observerDataState"],customEditors:["observerPropsCustomEditor"],customRenders:["observeCustomRenders"]}}};w.REGEX_FORM_ID=/__FORM:[^:]+/g,w.style=".sc-snk-detail-view-h{display:flex;row-gap:24px;flex-direction:column;width:100%;height:100%}.level-path.sc-snk-detail-view{color:var(--color--title-primary, #2B3A54);font-weight:var(--text-weight--medium, 400);padding-right:3px}.form-taskbar.sc-snk-detail-view{padding-bottom:var(--space--medium)}.grid-container.sc-snk-detail-view{background-color:#FFF;min-height:100px;height:100%}.detail-header.sc-snk-detail-view{padding-bottom:0}snk-data-unit.sc-snk-detail-view{flex:1}snk-grid.sc-snk-detail-view{height:calc(100% - 43px)}";export{w as snk_detail_view}
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +1 @@
1
- export{S as snk_guides_viewer}from"./p-c0092d28.js";import"./p-15c07fa9.js";import"@sankhyalabs/core";import"@sankhyalabs/core/dist/dataunit/DataUnit";import"@sankhyalabs/ezui/dist/collection/utils";import"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-cdda05e3.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-403c0168.js";import"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"./p-42e248cd.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import"./p-9019a32f.js";import"./p-50735892.js";import"./p-a17e9ecd.js";import"./p-ddf5e382.js";import"./p-71b1be2e.js";import"./p-1a0caadb.js";
1
+ export{S as snk_guides_viewer}from"./p-e61b62a3.js";import"./p-15c07fa9.js";import"@sankhyalabs/core";import"@sankhyalabs/core/dist/dataunit/DataUnit";import"@sankhyalabs/ezui/dist/collection/utils";import"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-cdda05e3.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-403c0168.js";import"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"./p-42e248cd.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import"./p-9019a32f.js";import"./p-50735892.js";import"./p-a17e9ecd.js";import"./p-ddf5e382.js";import"./p-71b1be2e.js";import"./p-1a0caadb.js";
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +1 @@
1
- import{r as i,e as t,h as e,F as s,g as r}from"./p-15c07fa9.js";import{ObjectUtils as n,StringUtils as a,Action as d,KeyboardManager as o,ElementIDUtils as h}from"@sankhyalabs/core";import{SelectionMode as l}from"@sankhyalabs/core/dist/dataunit/DataUnit";import{buildFieldSearch as u,SHORTCUT_SEARCH_FIELD as v}from"@sankhyalabs/ezui/dist/collection/utils";import{buildFormMetadata as c,FormMetadata as g}from"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-cdda05e3.js";import"./p-403c0168.js";import{P as m}from"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-42e248cd.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import{V as k}from"./p-9019a32f.js";import{S as p}from"./p-50735892.js";import{T as f}from"./p-ddf5e382.js";import{T as w}from"./p-1a0caadb.js";const b="__FORM:",_=class{constructor(e){i(this,e),this.snkMasterFormConfigChange=t(this,"snkMasterFormConfigChange",7),this.exit=t(this,"exit",7),this.actionClick=t(this,"actionClick",7),this.formItemsReady=t(this,"formItemsReady",7),this._guideBuilders=new Map,this.dataUnit=void 0,this.dataState=void 0,this.configName=void 0,this.entityPath=void 0,this.actionsList=void 0,this.recordsValidator=void 0,this.masterFormConfig=void 0,this.selectedGuide=void 0,this.taskbarManager=void 0,this.messagesBuilder=void 0,this.canEdit=!0,this.presentationMode=void 0,this.resourceID=void 0,this.detailTaskbarCustomContainerId=void 0,this.formLegacyConfigName=void 0,this.enableGridInsert=!1,this.ignoreReadOnlyFormFields=void 0,this.getCustomTitle=void 0,this._hasToCreateFieldSearch=!0,this._breadcrumbItems=[],this._guides=void 0,this._formEditorConfigManager=void 0,this._formEditorDataUnit=void 0,this._fieldToGetFocus=void 0,this._customEditors=void 0,this._customRenders=void 0,this._fieldsProps={},this._mainForm=void 0}observeDataUnit(){this.loadGuides(!0)}observeDataState(i,t){var e,s,r,a,d,o;const h=null!==(s=null===(e=null==i?void 0:i.selectionInfo)||void 0===e?void 0:e.recordIds)&&void 0!==s?s:null===(r=null==i?void 0:i.selectedRecord)||void 0===r?void 0:r.__record__id__,l=null!==(d=null===(a=null==t?void 0:t.selectionInfo)||void 0===a?void 0:a.recordIds)&&void 0!==d?d:null===(o=null==t?void 0:t.selectedRecord)||void 0===o?void 0:o.__record__id__;n.equals(h,l)||this.loadGuides((null==t?void 0:t.insertionMode)!=(null==i?void 0:i.insertionMode))}observeMasterFormConfig(){this.loadGuides(this.noGuideSelected()),this.snkMasterFormConfigChange.emit(this.masterFormConfig)}async showFormConfig(i=!1){const t=!i||null==this._currentDetail;this._formEditorConfigManager=t?this._configManager:this._currentDetail.formConfigManager,this._formEditorDataUnit=t?this.dataUnit:this._currentDetail.dataUnit}async addCustomEditor(i,t){this._customEditors=Object.assign(Object.assign({},this._customEditors),{[i]:t})}async addGridCustomRender(i,t){this._customRenders=Object.assign(Object.assign({},this._customRenders),{[i]:t})}async setFieldProp(i,t,e){const s={[i]:Object.assign(Object.assign({},this._fieldsProps[i]),{[t]:e})};this._fieldsProps=Object.assign(Object.assign({},this._fieldsProps),s)}async setFocus(){this._container.focus()}async reloadGuides(){this.loadGuides(!1)}exitViewer(){!this.enableGridInsert&&this.dataUnit.isDirty()?this.dataUnit.cancelEdition({after:()=>this.exit.emit()}):this.exit.emit()}onActionClick(i){i.detail===f.CONFIGURATOR&&"master"!=i.target.dataset.taskbarOwner&&(this._snkConfigurator.open(),i.stopImmediatePropagation(),i.stopPropagation())}onContentCardChanged(i){_.updateContentCard(i.detail.formName,i.detail.cardConfig,i.detail.propertyChanged,this._configManager).then((()=>this.masterFormConfig=this._configManager.getConfig(this.dataUnit)))}getMessage(i){var t,e;if(this.dataUnit.isMultipleEdition){const i=null!==(e=null===(t=this.dataUnit.getSelectionInfo())||void 0===t?void 0:t.records)&&void 0!==e?e:[];return this.messagesBuilder.getMessage("snkCrud.multipleEdition.editing",{COUNT:i.length})}return this.messagesBuilder.getMessage(i,this.dataUnit.getSelectedRecord())}loadGuides(i){if(!this.dataUnit)return;if(!this._configManager.isLoaded)return;this._masterFormMetadata=c(this.masterFormConfig,this.dataUnit,!0);const t=this._masterFormMetadata.getAllSheets(),e=this.dataUnit.getSelectedRecord(),s=this.hasToDisableDetails(e),r=[];Array.from(t.values()).forEach((i=>{const t={id:i.name,label:i.label};this.isDetail(i.name)&&s&&(t.tooltip=this.getMessage("snkCrud.detail.tooltip.needSingleSelection"),t.disabled=!0),r.push(t)})),this._guides=r,this._guideNavigator&&this._guideNavigator.updateItem(this._guides),i&&(this.selectedGuide=this._guides.length>0?this._guides[0]:void 0)}hasToDisableDetails(i){return!i||this.dataUnit.isNewRecord(i.__record__id__)||this.dataUnit.isMultipleEdition}isDetail(i){return null!=g.getDetailName(i)}updateGuide(i){this._guideBuilders.set(i.id,i);const t=i.buildGuideItem(this._guideBuilders);this._guideNavigator&&(this._guideNavigator.updateItem(t).then((()=>{this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i}))})),this._guides=this._guides.map((i=>i.id===t.id?Object.assign(Object.assign(Object.assign({},i),t),void 0!==t.children?{}:{children:void 0}):i)))}getTaskBarId(){var i;return(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?C.FINISH_EDITION:this.dataUnit.isMultipleEdition?C.MUTIPLE_EDITION:C.REGULAR}loadTaskbarProcessor(){const i={};i[C.REGULAR]=this.buildBtnsRegularMode(),i[C.FINISH_EDITION]=[f.CANCEL,f.SAVE,this.handleAddGridMode()],i[C.MUTIPLE_EDITION]=[f.CANCEL],this._taskbarProcessor=new w(i),this._taskbarProcessor.process(this.getTaskBarId(),this.taskbarManager,this.dataState,this.buildDisabledButtons(),this.buildInvisibleButtons())}buildBtnsRegularMode(){var i,t;const e=[f.ATTACH,f.CLONE,f.REMOVE,f.MORE_OPTIONS,f.ACTIONS_BUTTON,f.DIVIDER,f.GRID_MODE,f.CONFIGURATOR];return(null===(t=null===(i=this.dataState)||void 0===i?void 0:i.selectionInfo)||void 0===t?void 0:t.length)<=1&&e.unshift(f.PREVIOUS,f.NEXT,f.DIVIDER),this.presentationMode==m.SECONDARY?e.unshift(f.INSERT):e.push(f.INSERT),e}buildDisabledButtons(){var i,t,e,s,r,n;const a=[];return(null===(i=this.dataState)||void 0===i?void 0:i.hasPrevious)||a.push(f.PREVIOUS),(null===(t=this.dataState)||void 0===t?void 0:t.hasNext)||a.push(f.NEXT),(null===(s=null===(e=this.dataState)||void 0===e?void 0:e.selectionInfo)||void 0===s?void 0:s.length)>1&&a.push(f.CLONE),(null===(n=null===(r=this.dataState)||void 0===r?void 0:r.selectionInfo)||void 0===n?void 0:n.isAllRecords())&&a.push(f.REMOVE),a}handleAddGridMode(){return this.enableGridInsert?f.GRID_MODE:""}buildInvisibleButtons(){const i=[];return this.dataState&&this.dataState.selectionInfo.mode===l.ALL_RECORDS&&i.push(f.ACTIONS_BUTTON),i}static updateContentCard(i,t,e,s){return s.saveCardState(i,t,e)}static buildFixedForms(i){var t;const r=null===(t=i.formConfig)||void 0===t?void 0:t.cardsState;if(null!=r)return e(s,null,Array.from(r.entries()).filter((([t,e])=>(null==e?void 0:e.fixed)&&t!=i.selectedForm)).sort((([,i],[,t])=>((null==i?void 0:i.fixSequence)||0)-((null==t?void 0:t.fixSequence)||0))).map((([t,s])=>{var r,n;const a=i.formMetadata.getSheet(t);if(null!=a)return e("snk-form-view",{levelPath:i.levelPath,label:a.label,name:t,fields:a.fields,formMetadata:i.formMetadata,dataUnit:i.dataUnit,recordsValidator:i.recordsValidator,contracted:"CONTRACTED"===(null==s?void 0:s.presentation),fixed:null==s?void 0:s.fixed,summaryFields:null===(n=null===(r=i.formConfig)||void 0===r?void 0:r.summary)||void 0===n?void 0:n.get(t),fieldToFocus:i.fieldToFocus,key:t,onSnkRequestClearFieldToFocus:()=>{var t;return null===(t=i.onRequestClearFieldToFocus)||void 0===t?void 0:t.call(i)},customEditors:i.propsCustomEditor,fieldsProps:i.fieldsProps})})))}wrapDetail(i,t){if(0===i.length)return t;const s=i.pop(),r=g.getDetailName(s);return r?this.wrapDetail(i,e("snk-data-unit",{dataUnitName:`${this.getDataUnitName(i,r)}`,entityName:r},t)):void 0}getDataUnitName(i,t){if(i.length>0){const e=i.map((i=>g.getDetailName(i)));return`${this.entityPath}/${e.join("/")}/${t}`}return`${this.entityPath}/${t}`}getContent(){var i,t,s,r,n;if(!this.selectedGuide)return;const a=this.selectedGuide.id;let d;const o=a.split("::"),h=o.pop(),l=g.getDetailName(h);let u=a;if(l||o.length>0){let t,s;if(a.includes(b)){[u,t]=a.split(b);const e=(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)||0;s=e>1?this._breadcrumbItems[e-2]:this.selectedGuide}else s=this.selectedGuide;d=this.wrapDetail(o,e("snk-detail-view",{ref:i=>this._currentDetail=i,dataUnitName:this.getDataUnitName(o,l),onSnkDetailGuidesChange:i=>this.updateGuide(i.detail),entityName:l,selectedForm:t,branchGuide:s,guideItemPath:this._breadcrumbItems,key:`detail${u}`,canEdit:this.canEdit,onSnkSwitchGuide:i=>this._guideNavigator.selectGuide(i.detail),resourceID:this.resourceID,taskbarCustomContainerId:this.detailTaskbarCustomContainerId,customEditors:this._customEditors,customRenders:this._customRenders,presentationMode:this.presentationMode}))}else{const i=this.selectedGuide.id,o=this._masterFormMetadata.getSheet(i);if(o){const h=null===(s=null===(t=this.masterFormConfig)||void 0===t?void 0:t.cardsState)||void 0===s?void 0:s.get(i);d=e("snk-form-view",{ref:i=>this._mainForm=i,fixed:null==h?void 0:h.fixed,summaryFields:null===(n=null===(r=this.masterFormConfig)||void 0===r?void 0:r.summary)||void 0===n?void 0:n.get(i),name:i,label:o.label,fields:o.fields,dataUnit:this.dataUnit,formMetadata:this._masterFormMetadata,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,key:a,onSnkRequestClearFieldToFocus:()=>this.clearFieldToFocusHandler(),customEditors:this._customEditors,fieldsProps:this._fieldsProps,fieldSearch:this._fieldSearch},this.presentationMode==m.SECONDARY&&this.buildTaskBar())}}return d}onBreadcrumbClickHandler(i){null!=(null==i?void 0:i.id)&&this._guideNavigator.selectGuide(i.id)}updateSelectedGuideHandler(i){this._guideHasChanged=this.selectedGuide!=i,this.selectedGuide=i,this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i})),this.resetGuideBadge(i)}changeGuideHandler(i){var t;null===(t=this._guideNavigator)||void 0===t||t.selectGuide(i)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}resetGuideBadge(i){var t;this._guides=[...null===(t=this._guides)||void 0===t?void 0:t.map((t=>this.canClearGuideBadge(t,i.id)?Object.assign(Object.assign({},t),{badge:null}):t))]}canClearGuideBadge(i,t){return i.id===t||this.isIncludedInChildrenList(i,t)}isIncludedInChildrenList(i,t){return this.hasChildren(i)&&this.getChildrenIdList(i).includes(t)}hasChildren(i){return i.children&&Array.isArray(i.children)}getChildrenIdList(i){return i.children.map((i=>i.id))}getConfigViewMode(){return k.GRID}changeConfigViewMode(i){this._currentDetail&&this._currentDetail.changeViewMode(i)}openConfig(i){this._snkConfigurator.close(),this._currentDetail&&(i===k.FORM?this.showFormConfig(!0):this._currentDetail.configGrid())}noGuideSelected(){var i;return void 0===this.selectedGuide||"__main"===(null===(i=this.selectedGuide)||void 0===i?void 0:i.id)}addFormLegacyConfigName(){this.formLegacyConfigName&&this._configManager.addFormLegacyConfig(this.formLegacyConfigName)}setMasterFormConfig(i){this.masterFormConfig=i}componentWillLoad(){if(null==this.resourceID)throw new Error(this.getMessage("snkCrud.errors.resourceIDNotProvided"));this._configManager=new p(this.configName,this.resourceID,this.setMasterFormConfig.bind(this),this.dataUnit),this.addFormLegacyConfigName(),this._configManager.loadConfig()}componentDidRender(){this._guideHasChanged&&(this._currentDetail?this._currentDetail.showUp():this._mainForm&&this._mainForm.showUp(),this._guideHasChanged=!1)}getFieldsSearch(i){return(null==this._fieldSearch||this._hasToCreateFieldSearch)&&(this._hasToCreateFieldSearch=!1,this._fieldSearch=u(i,(({argument:i})=>this.fieldsOptionLoader(i)),(i=>this.onSelectField(i)))),this._fieldSearch}fieldsOptionLoader(i){return Promise.resolve(this._configManager.getFieldsList(i).map((i=>({value:i.name,label:i.label}))))}onSelectField(i){if(null==i)return;this._fieldToGetFocus=i.value;const t=this.getGuideName(i.value);t!==this.selectedGuide.id&&this.changeGuideHandler(t)}getActionsList(){var i;return[].concat(null!=this.taskbarManager&&null!=this.taskbarManager.getMoreOptions?null!==(i=this.taskbarManager.getMoreOptions(this.getTaskBarId(),this.configName,this.dataState,this.actionsList))&&void 0!==i?i:[]:this.actionsList)}getSettingsListForm(){return[{value:a.generateUUID(),label:this.getMessage("snkCrud.findColumn"),disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(i,t)=>this.getFieldsSearch(t)}]}buildTaskBar(){var i;return e("div",{class:"snk-guides-viewer__header-taskbar "+(this.presentationMode!=m.SECONDARY?"ez-align--right":"ez-padding-bottom--medium")},e("snk-taskbar",{key:"guideViewerTaskbar","data-element-id":"guideViewer",configName:this.configName,buttons:this._taskbarProcessor.buttons,disabledButtons:this._taskbarProcessor.disabledButtons,customButtons:this._taskbarProcessor.customButtons,actionsList:this.getActionsList(),actionsSettingsList:this.getSettingsListForm(),messagesBuilder:this.messagesBuilder,presentationMode:this.presentationMode,primaryButton:(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?f.SAVE:f.INSERT,"data-taskbar-owner":"master",dataUnit:this.dataUnit,resourceID:this.resourceID,customSlotId:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS",alignRigth:!0},e("slot",{name:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS"})))}async dataUnitActionHandler(i){var t;switch(i.type){case d.EDITION_CANCELED:case d.DATA_SAVED:this.dataUnit.isMultipleEdition&&(this.exitViewer(),this.dataUnit.isMultipleEdition=!1);break;case d.FIELD_INVALIDATED:const e=this.getGuideName(null===(t=i.payload)||void 0===t?void 0:t.fieldName);await this.addErrorBadgeToGuide(e),await this.openGuideNavigator(e);break;case d.METADATA_LOADED:case d.MULTIPLE_EDITION_CHANGED:this.loadGuides(this.noGuideSelected())}}async addErrorBadgeToGuide(i){var t;this._guides=[...null===(t=this._guides)||void 0===t?void 0:t.map((t=>Object.assign(Object.assign({},t),{badge:this.getBadge(t,i)})))]}async openGuideNavigator(i){this.selectedGuide.id!==i&&await this._guideNavigator.openGuideNavidator()}getBadge(i,t){var e;return this.selectedGuide.id===t?null:t===i.id?"error":null!==(e=i.badge)&&void 0!==e?e:null}getGuideName(i){var t;for(const e of this._masterFormMetadata.getAllSheets()){const s=null===(t=e[1])||void 0===t?void 0:t.fields;for(const t of s)if(t.name===i)return e[0]}return""}getTitle(){var i,t;return null!==(t=null===(i=this.getCustomTitle)||void 0===i?void 0:i.call(this))&&void 0!==t?t:this.getMessage("snkCrud.title")}getTitleTooltip(){if(this.dataUnit.isMultipleEdition)return this.buildRecordIdsArray()}buildRecordIdsArray(){var i,t;const e=null!==(t=null===(i=this.dataUnit.getSelectionInfo())||void 0===i?void 0:i.records)&&void 0!==t?t:[];return 0===e.length?"[]":`[${e.map((i=>this.messagesBuilder.getMessage("snkCrud.title",i))).join(", ")}]`}componentDidLoad(){this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this)),this.initKeyboardManager()}disconnectedCallback(){var i;null===(i=this._keyboardManager)||void 0===i||i.unbindAllShortcutKeys()}async initKeyboardManager(){this._keyboardManager=new o({propagate:!1,element:this._element}),this._keyboardManager.bind(v,(async()=>{this._mainForm&&await this._mainForm.showSearchField()}),{description:this.getMessage("snkSimpleCrud.findFields"),element:this._element})}render(){var i,t;if(null!=this._formEditorConfigManager)return e("snk-form-config",{ref:i=>this._container=i,tabindex:-1,dataUnit:this._formEditorDataUnit,messagesBuilder:this.messagesBuilder,configManager:this._formEditorConfigManager,onConfigClose:()=>this._formEditorConfigManager=null});if(!this.dataUnit||!this._configManager.isLoaded)return;this.loadTaskbarProcessor();const s=this._guides&&this._guides.length>1;return e("section",{class:"snk-guides-viewer",ref:i=>this._container=i,tabindex:-1},e("div",{class:"ez-row snk-guides-viewer__header"},e("div",{class:"snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large",key:"header"},e("ez-button",{onClick:()=>this.exitViewer(),title:this.getMessage("snkCrud.goBackTitle"),mode:"icon",iconName:"arrow_back",class:"ez-padding-right--medium",size:"small"}),e("div",{class:"ez-flex ez-flex--column ez-flex-item--auto"},e("h1",{class:"ez-title ez-title--primary ez-title--xlarge",title:this.getTitleTooltip()},this.getTitle()),(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)>1&&e("div",{class:"ez-margin-top--extra-small"},e("ez-breadcrumb",Object.assign({items:this._breadcrumbItems,onSelectedItem:i=>this.onBreadcrumbClickHandler(null==i?void 0:i.detail)},{[h.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${h.getInternalIDInfo("breadcrumb")}`}))))),this.presentationMode!=m.SECONDARY&&this.buildTaskBar()),e("div",{class:"snk-guides-viewer__container"},s?e("ez-guide-navigator",{ref:i=>this._guideNavigator=i,class:"snk-guides-viewer__guide-navigator",items:this._guides,selectedId:this.selectedGuide?this.selectedGuide.id:void 0,onEzSelectionChange:i=>this.updateSelectedGuideHandler(i.detail)}):e("div",null),e("div",{class:"snk-guides-viewer__detail-container"},_.buildFixedForms({formConfig:this.masterFormConfig,formMetadata:this._masterFormMetadata,selectedForm:null===(t=this.selectedGuide)||void 0===t?void 0:t.id,dataUnit:this.dataUnit,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,onRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this),propsCustomEditor:this._customEditors,fieldsProps:this._fieldsProps}),this.getContent())),e("snk-configurator",{ref:i=>this._snkConfigurator=i,viewMode:this.getConfigViewMode(),onConfigSelected:i=>this.changeConfigViewMode(i.detail),messagesBuilder:this.messagesBuilder,onOpenConfig:i=>this.openConfig(i.detail),resourceID:this.resourceID}))}get _element(){return r(this)}static get watchers(){return{dataUnit:["observeDataUnit"],dataState:["observeDataState"],masterFormConfig:["observeMasterFormConfig"]}}};var C;!function(i){i.FINISH_EDITION="snkGuideViewer.finish_edition",i.MUTIPLE_EDITION="snkGuideViewer.multiple_edition",i.REGULAR="snkGuideViewer.regular"}(C||(C={})),_.style=".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";export{_ as S}
1
+ import{r as i,e as t,h as e,F as s,g as r}from"./p-15c07fa9.js";import{ObjectUtils as n,StringUtils as a,Action as d,KeyboardManager as o,ElementIDUtils as h}from"@sankhyalabs/core";import{SelectionMode as l}from"@sankhyalabs/core/dist/dataunit/DataUnit";import{buildFieldSearch as u,SHORTCUT_SEARCH_FIELD as v}from"@sankhyalabs/ezui/dist/collection/utils";import{buildFormMetadata as c,FormMetadata as g}from"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-cdda05e3.js";import"./p-403c0168.js";import{P as m}from"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-42e248cd.js";import"./p-ff1990ad.js";import"./p-1273039f.js";import{V as k}from"./p-9019a32f.js";import{S as p}from"./p-50735892.js";import{T as f}from"./p-ddf5e382.js";import{T as w}from"./p-1a0caadb.js";const b="__FORM:",_=class{constructor(e){i(this,e),this.snkMasterFormConfigChange=t(this,"snkMasterFormConfigChange",7),this.exit=t(this,"exit",7),this.actionClick=t(this,"actionClick",7),this.formItemsReady=t(this,"formItemsReady",7),this._guideBuilders=new Map,this.dataUnit=void 0,this.dataState=void 0,this.configName=void 0,this.entityPath=void 0,this.actionsList=void 0,this.recordsValidator=void 0,this.masterFormConfig=void 0,this.selectedGuide=void 0,this.taskbarManager=void 0,this.messagesBuilder=void 0,this.canEdit=!0,this.presentationMode=void 0,this.resourceID=void 0,this.detailTaskbarCustomContainerId=void 0,this.formLegacyConfigName=void 0,this.enableGridInsert=!1,this.ignoreReadOnlyFormFields=void 0,this.getCustomTitle=void 0,this._hasToCreateFieldSearch=!0,this._breadcrumbItems=[],this._guides=void 0,this._formEditorConfigManager=void 0,this._formEditorDataUnit=void 0,this._fieldToGetFocus=void 0,this._customEditors=void 0,this._customRenders=void 0,this._fieldsProps={},this._mainForm=void 0}observeDataUnit(){this.loadGuides(!0)}observeDataState(i,t){var e,s,r,a,d,o;const h=null!==(s=null===(e=null==i?void 0:i.selectionInfo)||void 0===e?void 0:e.recordIds)&&void 0!==s?s:null===(r=null==i?void 0:i.selectedRecord)||void 0===r?void 0:r.__record__id__,l=null!==(d=null===(a=null==t?void 0:t.selectionInfo)||void 0===a?void 0:a.recordIds)&&void 0!==d?d:null===(o=null==t?void 0:t.selectedRecord)||void 0===o?void 0:o.__record__id__;n.equals(h,l)||this.loadGuides((null==t?void 0:t.insertionMode)!=(null==i?void 0:i.insertionMode))}observeMasterFormConfig(){this.loadGuides(this.noGuideSelected()),this.snkMasterFormConfigChange.emit(this.masterFormConfig)}async showFormConfig(i=!1){const t=!i||null==this._currentDetail;this._formEditorConfigManager=t?this._configManager:this._currentDetail.formConfigManager,this._formEditorDataUnit=t?this.dataUnit:this._currentDetail.dataUnit}async addCustomEditor(i,t){this._customEditors=Object.assign(Object.assign({},this._customEditors),{[i]:t})}async addGridCustomRender(i,t){this._customRenders=Object.assign(Object.assign({},this._customRenders),{[i]:t})}async setFieldProp(i,t,e){const s={[i]:Object.assign(Object.assign({},this._fieldsProps[i]),{[t]:e})};this._fieldsProps=Object.assign(Object.assign({},this._fieldsProps),s)}async setFocus(){this._container.focus()}async reloadGuides(){this.loadGuides(!1)}exitViewer(){!this.enableGridInsert&&this.dataUnit.isDirty()?this.dataUnit.cancelEdition({after:()=>this.exit.emit()}):this.exit.emit()}onActionClick(i){i.detail===f.CONFIGURATOR&&"master"!=i.target.dataset.taskbarOwner&&(this._snkConfigurator.open(),i.stopImmediatePropagation(),i.stopPropagation())}onContentCardChanged(i){_.updateContentCard(i.detail.formName,i.detail.cardConfig,i.detail.propertyChanged,this._configManager).then((()=>this.masterFormConfig=this._configManager.getConfig(this.dataUnit)))}getMessage(i){var t,e;if(this.dataUnit.isMultipleEdition){const i=null!==(e=null===(t=this.dataUnit.getSelectionInfo())||void 0===t?void 0:t.records)&&void 0!==e?e:[];return this.messagesBuilder.getMessage("snkCrud.multipleEdition.editing",{COUNT:i.length})}return this.messagesBuilder.getMessage(i,this.dataUnit.getSelectedRecord())}loadGuides(i){if(!this.dataUnit)return;if(!this._configManager.isLoaded)return;this._masterFormMetadata=c(this.masterFormConfig,this.dataUnit,!0);const t=this._masterFormMetadata.getAllSheets(),e=this.dataUnit.getSelectedRecord(),s=this.hasToDisableDetails(e),r=[];Array.from(t.values()).forEach((i=>{const t={id:i.name,label:i.label};this.isDetail(i.name)&&s&&(t.tooltip=this.getMessage("snkCrud.detail.tooltip.needSingleSelection"),t.disabled=!0),r.push(t)})),this._guides=r,this._guideNavigator&&this._guideNavigator.updateItem(this._guides),i&&(this.selectedGuide=this._guides.length>0?this._guides[0]:void 0)}hasToDisableDetails(i){return!i||this.dataUnit.isNewRecord(i.__record__id__)||this.dataUnit.isMultipleEdition}isDetail(i){return null!=g.getDetailName(i)}updateGuide(i){this._guideBuilders.set(i.id,i);const t=i.buildGuideItem(this._guideBuilders);this._guideNavigator&&(this._guideNavigator.updateItem(t).then((()=>{this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i}))})),this._guides=this._guides.map((i=>i.id===t.id?Object.assign(Object.assign(Object.assign({},i),t),void 0!==t.children?{}:{children:void 0}):i)))}getTaskBarId(){var i;return(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?C.FINISH_EDITION:this.dataUnit.isMultipleEdition?C.MUTIPLE_EDITION:C.REGULAR}loadTaskbarProcessor(){const i={};i[C.REGULAR]=this.buildBtnsRegularMode(),i[C.FINISH_EDITION]=[f.CANCEL,f.SAVE,this.handleAddGridMode()],i[C.MUTIPLE_EDITION]=[f.CANCEL],this._taskbarProcessor=new w(i),this._taskbarProcessor.process(this.getTaskBarId(),this.taskbarManager,this.dataState,this.buildDisabledButtons(),this.buildInvisibleButtons())}buildBtnsRegularMode(){var i,t;const e=[f.ATTACH,f.CLONE,f.REMOVE,f.MORE_OPTIONS,f.ACTIONS_BUTTON,f.DIVIDER,f.GRID_MODE,f.CONFIGURATOR];return(null===(t=null===(i=this.dataState)||void 0===i?void 0:i.selectionInfo)||void 0===t?void 0:t.length)<=1&&e.unshift(f.PREVIOUS,f.NEXT,f.DIVIDER),this.presentationMode==m.SECONDARY?e.unshift(f.INSERT):e.push(f.INSERT),e}buildDisabledButtons(){var i,t,e,s,r,n;const a=[];return(null===(i=this.dataState)||void 0===i?void 0:i.hasPrevious)||a.push(f.PREVIOUS),(null===(t=this.dataState)||void 0===t?void 0:t.hasNext)||a.push(f.NEXT),(null===(s=null===(e=this.dataState)||void 0===e?void 0:e.selectionInfo)||void 0===s?void 0:s.length)>1&&a.push(f.CLONE),(null===(n=null===(r=this.dataState)||void 0===r?void 0:r.selectionInfo)||void 0===n?void 0:n.isAllRecords())&&a.push(f.REMOVE),a}handleAddGridMode(){return this.enableGridInsert?f.GRID_MODE:""}buildInvisibleButtons(){const i=[];return this.dataState&&this.dataState.selectionInfo.mode===l.ALL_RECORDS&&i.push(f.ACTIONS_BUTTON),i}static updateContentCard(i,t,e,s){return s.saveCardState(i,t,e)}static buildFixedForms(i){var t;const r=null===(t=i.formConfig)||void 0===t?void 0:t.cardsState;if(null!=r)return e(s,null,Array.from(r.entries()).filter((([t,e])=>(null==e?void 0:e.fixed)&&t!=i.selectedForm)).sort((([,i],[,t])=>((null==i?void 0:i.fixSequence)||0)-((null==t?void 0:t.fixSequence)||0))).map((([t,s])=>{var r,n;const a=i.formMetadata.getSheet(t);if(null!=a)return e("snk-form-view",{levelPath:i.levelPath,label:a.label,name:t,fields:a.fields,formMetadata:i.formMetadata,dataUnit:i.dataUnit,recordsValidator:i.recordsValidator,contracted:"CONTRACTED"===(null==s?void 0:s.presentation),fixed:null==s?void 0:s.fixed,summaryFields:null===(n=null===(r=i.formConfig)||void 0===r?void 0:r.summary)||void 0===n?void 0:n.get(t),fieldToFocus:i.fieldToFocus,key:t,onSnkRequestClearFieldToFocus:()=>{var t;return null===(t=i.onRequestClearFieldToFocus)||void 0===t?void 0:t.call(i)},customEditors:i.propsCustomEditor,fieldsProps:i.fieldsProps})})))}wrapDetail(i,t){if(0===i.length)return t;const s=i.pop(),r=g.getDetailName(s);return r?this.wrapDetail(i,e("snk-data-unit",{dataUnitName:`${this.getDataUnitName(i,r)}`,entityName:r},t)):void 0}getDataUnitName(i,t){if(i.length>0){const e=i.map((i=>g.getDetailName(i)));return`${this.entityPath}/${e.join("/")}/${t}`}return`${this.entityPath}/${t}`}getContent(){var i,t,s,r,n;if(!this.selectedGuide)return;const a=this.selectedGuide.id;let d;const o=a.split("::"),h=o.pop(),l=g.getDetailName(h);let u=a;if(l||o.length>0){let t,s;if(a.includes(b)){[u,t]=a.split(b);const e=(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)||0;s=e>1?this._breadcrumbItems[e-2]:this.selectedGuide}else s=this.selectedGuide;d=this.wrapDetail(o,e("snk-detail-view",{ref:i=>this._currentDetail=i,dataUnitName:this.getDataUnitName(o,l),onSnkDetailGuidesChange:i=>this.updateGuide(i.detail),entityName:l,selectedForm:t,branchGuide:s,guideItemPath:this._breadcrumbItems,key:`detail${u}`,canEdit:this.canEdit,onSnkSwitchGuide:i=>this._guideNavigator.selectGuide(i.detail),resourceID:this.resourceID,taskbarCustomContainerId:this.detailTaskbarCustomContainerId,customEditors:this._customEditors,customRenders:this._customRenders,presentationMode:this.presentationMode}))}else{const i=this.selectedGuide.id,o=this._masterFormMetadata.getSheet(i);if(o){const h=null===(s=null===(t=this.masterFormConfig)||void 0===t?void 0:t.cardsState)||void 0===s?void 0:s.get(i);d=e("snk-form-view",{ref:i=>this._mainForm=i,fixed:null==h?void 0:h.fixed,summaryFields:null===(n=null===(r=this.masterFormConfig)||void 0===r?void 0:r.summary)||void 0===n?void 0:n.get(i),name:i,label:o.label,fields:o.fields,dataUnit:this.dataUnit,formMetadata:this._masterFormMetadata,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,key:a,onSnkRequestClearFieldToFocus:()=>this.clearFieldToFocusHandler(),customEditors:this._customEditors,fieldsProps:this._fieldsProps,fieldSearch:this._fieldSearch},this.presentationMode==m.SECONDARY&&this.buildTaskBar())}}return d}onBreadcrumbClickHandler(i){null!=(null==i?void 0:i.id)&&this._guideNavigator.selectGuide(i.id)}updateSelectedGuideHandler(i){this._guideHasChanged=this.selectedGuide!=i,this.selectedGuide=i,this._guideNavigator.getCurrentPath().then((i=>{this._breadcrumbItems=i})),this.resetGuideBadge(i)}changeGuideHandler(i){var t;null===(t=this._guideNavigator)||void 0===t||t.selectGuide(i)}clearFieldToFocusHandler(){this._fieldToGetFocus=void 0}resetGuideBadge(i){var t;this._guides=[...null===(t=this._guides)||void 0===t?void 0:t.map((t=>this.canClearGuideBadge(t,i.id)?Object.assign(Object.assign({},t),{badge:null}):t))]}canClearGuideBadge(i,t){return i.id===t||this.isIncludedInChildrenList(i,t)}isIncludedInChildrenList(i,t){return this.hasChildren(i)&&this.getChildrenIdList(i).includes(t)}hasChildren(i){return i.children&&Array.isArray(i.children)}getChildrenIdList(i){return i.children.map((i=>i.id))}getConfigViewMode(){return k.GRID}changeConfigViewMode(i){this._currentDetail&&this._currentDetail.changeViewMode(i)}openConfig(i){this._snkConfigurator.close(),this._currentDetail&&(i===k.FORM?this.showFormConfig(!0):this._currentDetail.configGrid())}noGuideSelected(){var i;return void 0===this.selectedGuide||"__main"===(null===(i=this.selectedGuide)||void 0===i?void 0:i.id)}addFormLegacyConfigName(){this.formLegacyConfigName&&this._configManager.addFormLegacyConfig(this.formLegacyConfigName)}setMasterFormConfig(i){this.masterFormConfig=i}componentWillLoad(){if(null==this.resourceID)throw new Error(this.getMessage("snkCrud.errors.resourceIDNotProvided"));this._configManager=new p(this.configName,this.resourceID,this.setMasterFormConfig.bind(this),this.dataUnit),this.addFormLegacyConfigName(),this._configManager.loadConfig()}componentDidRender(){this._guideHasChanged&&(window.scrollTo(0,0),this._guideHasChanged=!1)}getFieldsSearch(i){return(null==this._fieldSearch||this._hasToCreateFieldSearch)&&(this._hasToCreateFieldSearch=!1,this._fieldSearch=u(i,(({argument:i})=>this.fieldsOptionLoader(i)),(i=>this.onSelectField(i)))),this._fieldSearch}fieldsOptionLoader(i){return Promise.resolve(this._configManager.getFieldsList(i).map((i=>({value:i.name,label:i.label}))))}onSelectField(i){if(null==i)return;this._fieldToGetFocus=i.value;const t=this.getGuideName(i.value);t!==this.selectedGuide.id&&this.changeGuideHandler(t)}getActionsList(){var i;return[].concat(null!=this.taskbarManager&&null!=this.taskbarManager.getMoreOptions?null!==(i=this.taskbarManager.getMoreOptions(this.getTaskBarId(),this.configName,this.dataState,this.actionsList))&&void 0!==i?i:[]:this.actionsList)}getSettingsListForm(){return[{value:a.generateUUID(),label:this.getMessage("snkCrud.findColumn"),disableCloseOnSelect:!0,eagerInitialize:!0,itemBuilder:(i,t)=>this.getFieldsSearch(t)}]}buildTaskBar(){var i;return e("div",{class:"snk-guides-viewer__header-taskbar "+(this.presentationMode!=m.SECONDARY?"ez-align--right":"ez-padding-bottom--medium")},e("snk-taskbar",{key:"guideViewerTaskbar","data-element-id":"guideViewer",configName:this.configName,buttons:this._taskbarProcessor.buttons,disabledButtons:this._taskbarProcessor.disabledButtons,customButtons:this._taskbarProcessor.customButtons,actionsList:this.getActionsList(),actionsSettingsList:this.getSettingsListForm(),messagesBuilder:this.messagesBuilder,presentationMode:this.presentationMode,primaryButton:(null===(i=this.dataState)||void 0===i?void 0:i.isDirty)?f.SAVE:f.INSERT,"data-taskbar-owner":"master",dataUnit:this.dataUnit,resourceID:this.resourceID,customSlotId:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS",alignRigth:!0},e("slot",{name:"GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS"})))}async dataUnitActionHandler(i){var t;switch(i.type){case d.EDITION_CANCELED:case d.DATA_SAVED:this.dataUnit.isMultipleEdition&&(this.exitViewer(),this.dataUnit.isMultipleEdition=!1);break;case d.FIELD_INVALIDATED:const e=this.getGuideName(null===(t=i.payload)||void 0===t?void 0:t.fieldName);await this.addErrorBadgeToGuide(e),await this.openGuideNavigator(e);break;case d.METADATA_LOADED:case d.MULTIPLE_EDITION_CHANGED:this.loadGuides(this.noGuideSelected())}}async addErrorBadgeToGuide(i){var t;this._guides=[...null===(t=this._guides)||void 0===t?void 0:t.map((t=>Object.assign(Object.assign({},t),{badge:this.getBadge(t,i)})))]}async openGuideNavigator(i){this.selectedGuide.id!==i&&await this._guideNavigator.openGuideNavidator()}getBadge(i,t){var e;return this.selectedGuide.id===t?null:t===i.id?"error":null!==(e=i.badge)&&void 0!==e?e:null}getGuideName(i){var t;for(const e of this._masterFormMetadata.getAllSheets()){const s=null===(t=e[1])||void 0===t?void 0:t.fields;for(const t of s)if(t.name===i)return e[0]}return""}getTitle(){var i,t;return null!==(t=null===(i=this.getCustomTitle)||void 0===i?void 0:i.call(this))&&void 0!==t?t:this.getMessage("snkCrud.title")}getTitleTooltip(){if(this.dataUnit.isMultipleEdition)return this.buildRecordIdsArray()}buildRecordIdsArray(){var i,t;const e=null!==(t=null===(i=this.dataUnit.getSelectionInfo())||void 0===i?void 0:i.records)&&void 0!==t?t:[];return 0===e.length?"[]":`[${e.map((i=>this.messagesBuilder.getMessage("snkCrud.title",i))).join(", ")}]`}componentDidLoad(){this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this)),this.initKeyboardManager()}disconnectedCallback(){var i;null===(i=this._keyboardManager)||void 0===i||i.unbindAllShortcutKeys()}async initKeyboardManager(){this._keyboardManager=new o({propagate:!1,element:this._element}),this._keyboardManager.bind(v,(async()=>{this._mainForm&&await this._mainForm.showSearchField()}),{description:this.getMessage("snkSimpleCrud.findFields"),element:this._element})}render(){var i,t;if(null!=this._formEditorConfigManager)return e("snk-form-config",{ref:i=>this._container=i,tabindex:-1,dataUnit:this._formEditorDataUnit,messagesBuilder:this.messagesBuilder,configManager:this._formEditorConfigManager,onConfigClose:()=>this._formEditorConfigManager=null});if(!this.dataUnit||!this._configManager.isLoaded)return;this.loadTaskbarProcessor();const s=this._guides&&this._guides.length>1;return e("section",{class:"snk-guides-viewer",ref:i=>this._container=i,tabindex:-1},e("div",{class:"ez-row snk-guides-viewer__header"},e("div",{class:"snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large",key:"header"},e("ez-button",{onClick:()=>this.exitViewer(),title:this.getMessage("snkCrud.goBackTitle"),mode:"icon",iconName:"arrow_back",class:"ez-padding-right--medium",size:"small"}),e("div",{class:"ez-flex ez-flex--column ez-flex-item--auto"},e("h1",{class:"ez-title ez-title--primary ez-title--xlarge",title:this.getTitleTooltip()},this.getTitle()),(null===(i=this._breadcrumbItems)||void 0===i?void 0:i.length)>1&&e("div",{class:"ez-margin-top--extra-small"},e("ez-breadcrumb",Object.assign({items:this._breadcrumbItems,onSelectedItem:i=>this.onBreadcrumbClickHandler(null==i?void 0:i.detail)},{[h.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${h.getInternalIDInfo("breadcrumb")}`}))))),this.presentationMode!=m.SECONDARY&&this.buildTaskBar()),e("div",{class:"snk-guides-viewer__container"},s?e("ez-guide-navigator",{ref:i=>this._guideNavigator=i,class:"snk-guides-viewer__guide-navigator",items:this._guides,selectedId:this.selectedGuide?this.selectedGuide.id:void 0,onEzSelectionChange:i=>this.updateSelectedGuideHandler(i.detail)}):e("div",null),e("div",{class:"snk-guides-viewer__detail-container"},_.buildFixedForms({formConfig:this.masterFormConfig,formMetadata:this._masterFormMetadata,selectedForm:null===(t=this.selectedGuide)||void 0===t?void 0:t.id,dataUnit:this.dataUnit,recordsValidator:this.recordsValidator,fieldToFocus:this._fieldToGetFocus,onRequestClearFieldToFocus:this.clearFieldToFocusHandler.bind(this),propsCustomEditor:this._customEditors,fieldsProps:this._fieldsProps}),this.getContent())),e("snk-configurator",{ref:i=>this._snkConfigurator=i,viewMode:this.getConfigViewMode(),onConfigSelected:i=>this.changeConfigViewMode(i.detail),messagesBuilder:this.messagesBuilder,onOpenConfig:i=>this.openConfig(i.detail),resourceID:this.resourceID}))}get _element(){return r(this)}static get watchers(){return{dataUnit:["observeDataUnit"],dataState:["observeDataState"],masterFormConfig:["observeMasterFormConfig"]}}};var C;!function(i){i.FINISH_EDITION="snkGuideViewer.finish_edition",i.MUTIPLE_EDITION="snkGuideViewer.multiple_edition",i.REGULAR="snkGuideViewer.regular"}(C||(C={})),_.style=".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";export{_ as S}
Binary file
Binary file
Binary file
Binary file
Binary file