@crystaldesign/diva-backoffice 24.12.0-beta.3 → 24.12.0-beta.30

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 (244) hide show
  1. package/build/esm/index.js +1684 -810
  2. package/build/types/backoffice/src/Configuration.d.ts +1 -0
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Content/index.d.ts +3 -2
  5. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Detail.d.ts +1 -1
  7. package/build/types/backoffice/src/layout/Detail.d.ts.map +1 -1
  8. package/build/types/backoffice/src/layout/ErrorBoundary.d.ts +2 -2
  9. package/build/types/backoffice/src/layout/ErrorBoundary.d.ts.map +1 -1
  10. package/build/types/backoffice/src/layout/IconRain/index.d.ts +2 -1
  11. package/build/types/backoffice/src/layout/IconRain/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/layout/MainLayout.d.ts +2 -1
  13. package/build/types/backoffice/src/layout/MainLayout.d.ts.map +1 -1
  14. package/build/types/backoffice/src/layout/Modal.d.ts +2 -1
  15. package/build/types/backoffice/src/layout/Modal.d.ts.map +1 -1
  16. package/build/types/backoffice/src/layout/Navigation/MenuElement.d.ts +1 -1
  17. package/build/types/backoffice/src/layout/Navigation/MenuElement.d.ts.map +1 -1
  18. package/build/types/backoffice/src/layout/Navigation/MenuLabel.d.ts +2 -1
  19. package/build/types/backoffice/src/layout/Navigation/MenuLabel.d.ts.map +1 -1
  20. package/build/types/backoffice/src/layout/Navigation/index.d.ts +2 -1
  21. package/build/types/backoffice/src/layout/Navigation/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/layout/Navigation/types.d.ts +2 -1
  23. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  24. package/build/types/backoffice/src/layout/Router.d.ts +2 -1
  25. package/build/types/backoffice/src/layout/Router.d.ts.map +1 -1
  26. package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts +2 -1
  27. package/build/types/backoffice/src/layout/Toolbar/Spinner/index.d.ts.map +1 -1
  28. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +2 -1
  29. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
  30. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts +2 -1
  31. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
  32. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts +2 -1
  33. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts.map +1 -1
  34. package/build/types/backoffice/src/layout/Toolbar/index.d.ts +2 -1
  35. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  36. package/build/types/backoffice/src/store/ConfigurationStore.d.ts +1 -1
  37. package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
  38. package/build/types/backoffice/src/store/ContentStore.d.ts +1 -1
  39. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  40. package/build/types/backoffice/src/store/DownloadStore.d.ts.map +1 -1
  41. package/build/types/backoffice/src/store/ModalStore.d.ts.map +1 -1
  42. package/build/types/backoffice/src/store/RootStore.d.ts +1 -1
  43. package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
  44. package/build/types/backoffice/src/store/index.d.ts +1 -1
  45. package/build/types/backoffice/src/store/index.d.ts.map +1 -1
  46. package/build/types/backoffice/src/ui/AGChart/index.d.ts +2 -1
  47. package/build/types/backoffice/src/ui/AGChart/index.d.ts.map +1 -1
  48. package/build/types/backoffice/src/ui/AGGrid/index.d.ts +3 -3
  49. package/build/types/backoffice/src/ui/AGGrid/index.d.ts.map +1 -1
  50. package/build/types/backoffice/src/ui/AGHistogram/index.d.ts +2 -1
  51. package/build/types/backoffice/src/ui/AGHistogram/index.d.ts.map +1 -1
  52. package/build/types/backoffice/src/ui/ActionButton.d.ts +1 -1
  53. package/build/types/backoffice/src/ui/ActionButton.d.ts.map +1 -1
  54. package/build/types/backoffice/src/ui/AssetMananger/MediaItem.d.ts +9 -2
  55. package/build/types/backoffice/src/ui/AssetMananger/MediaItem.d.ts.map +1 -1
  56. package/build/types/backoffice/src/ui/AssetMananger/Upload/FileFromWeb.d.ts +3 -2
  57. package/build/types/backoffice/src/ui/AssetMananger/Upload/FileFromWeb.d.ts.map +1 -1
  58. package/build/types/backoffice/src/ui/AssetMananger/Upload/index.d.ts +2 -1
  59. package/build/types/backoffice/src/ui/AssetMananger/Upload/index.d.ts.map +1 -1
  60. package/build/types/backoffice/src/ui/CatalogEditor/DragDropUpload/index.d.ts +2 -1
  61. package/build/types/backoffice/src/ui/CatalogEditor/DragDropUpload/index.d.ts.map +1 -1
  62. package/build/types/backoffice/src/ui/CatalogEditor/index.d.ts +2 -1
  63. package/build/types/backoffice/src/ui/CatalogEditor/index.d.ts.map +1 -1
  64. package/build/types/backoffice/src/ui/ConfirmationPopup.d.ts +2 -1
  65. package/build/types/backoffice/src/ui/ConfirmationPopup.d.ts.map +1 -1
  66. package/build/types/backoffice/src/ui/CustomButton/Result/index.d.ts +2 -1
  67. package/build/types/backoffice/src/ui/CustomButton/Result/index.d.ts.map +1 -1
  68. package/build/types/backoffice/src/ui/CustomButton/index.d.ts +6 -24
  69. package/build/types/backoffice/src/ui/CustomButton/index.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/CustomInput/index.d.ts +3 -17
  71. package/build/types/backoffice/src/ui/CustomInput/index.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/CustomInput/useInputData.d.ts +0 -1
  73. package/build/types/backoffice/src/ui/CustomInput/useInputData.d.ts.map +1 -1
  74. package/build/types/backoffice/src/ui/CustomText/index.d.ts +2 -6
  75. package/build/types/backoffice/src/ui/CustomText/index.d.ts.map +1 -1
  76. package/build/types/backoffice/src/ui/Description/index.d.ts +2 -1
  77. package/build/types/backoffice/src/ui/Description/index.d.ts.map +1 -1
  78. package/build/types/backoffice/src/ui/FileUploadBeta/index.d.ts +2 -1
  79. package/build/types/backoffice/src/ui/FileUploadBeta/index.d.ts.map +1 -1
  80. package/build/types/backoffice/src/ui/FilterBox/index.d.ts +2 -2
  81. package/build/types/backoffice/src/ui/FilterBox/index.d.ts.map +1 -1
  82. package/build/types/backoffice/src/ui/FilterBox/useFilterBoxData.d.ts +0 -1
  83. package/build/types/backoffice/src/ui/FilterBox/useFilterBoxData.d.ts.map +1 -1
  84. package/build/types/backoffice/src/ui/Form/Fields/ApiKey/index.d.ts +3 -2
  85. package/build/types/backoffice/src/ui/Form/Fields/ApiKey/index.d.ts.map +1 -1
  86. package/build/types/backoffice/src/ui/Form/Fields/FormList/index.d.ts +5 -25
  87. package/build/types/backoffice/src/ui/Form/Fields/FormList/index.d.ts.map +1 -1
  88. package/build/types/backoffice/src/ui/Form/Fields/Input/index.d.ts +4 -5
  89. package/build/types/backoffice/src/ui/Form/Fields/Input/index.d.ts.map +1 -1
  90. package/build/types/backoffice/src/ui/Form/Fields/Media/index.d.ts +2 -1
  91. package/build/types/backoffice/src/ui/Form/Fields/Media/index.d.ts.map +1 -1
  92. package/build/types/backoffice/src/ui/Form/Fields/Object/index.d.ts +5 -4
  93. package/build/types/backoffice/src/ui/Form/Fields/Object/index.d.ts.map +1 -1
  94. package/build/types/backoffice/src/ui/Form/Fields/SubTitle/index.d.ts +2 -1
  95. package/build/types/backoffice/src/ui/Form/Fields/SubTitle/index.d.ts.map +1 -1
  96. package/build/types/backoffice/src/ui/Form/Fields/Translation/index.d.ts +4 -22
  97. package/build/types/backoffice/src/ui/Form/Fields/Translation/index.d.ts.map +1 -1
  98. package/build/types/backoffice/src/ui/Form/Presets/index.d.ts +2 -1
  99. package/build/types/backoffice/src/ui/Form/Presets/index.d.ts.map +1 -1
  100. package/build/types/backoffice/src/ui/Form/elements.d.ts +2 -1
  101. package/build/types/backoffice/src/ui/Form/elements.d.ts.map +1 -1
  102. package/build/types/backoffice/src/ui/Form/index.d.ts +3 -7
  103. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  104. package/build/types/backoffice/src/ui/Form/types.d.ts +2 -1
  105. package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
  106. package/build/types/backoffice/src/ui/Form/useFormData.d.ts +1 -2
  107. package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
  108. package/build/types/backoffice/src/ui/FormList/index.d.ts +3 -7
  109. package/build/types/backoffice/src/ui/FormList/index.d.ts.map +1 -1
  110. package/build/types/backoffice/src/ui/Grid/TooltipInfo/index.d.ts +2 -1
  111. package/build/types/backoffice/src/ui/Grid/TooltipInfo/index.d.ts.map +1 -1
  112. package/build/types/backoffice/src/ui/Grid/index.d.ts +2 -1
  113. package/build/types/backoffice/src/ui/Grid/index.d.ts.map +1 -1
  114. package/build/types/backoffice/src/ui/Grid/useGridData.d.ts +1 -2
  115. package/build/types/backoffice/src/ui/Grid/useGridData.d.ts.map +1 -1
  116. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PackageSelector/index.d.ts +2 -1
  117. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PackageSelector/index.d.ts.map +1 -1
  118. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelector/index.d.ts +2 -1
  119. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelector/index.d.ts.map +1 -1
  120. package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts +2 -1
  121. package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
  122. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts +7 -6
  123. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +1 -1
  124. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts +2 -1
  125. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  126. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts +2 -1
  127. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
  128. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +8 -7
  129. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  130. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts +2 -1
  131. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  132. package/build/types/backoffice/src/ui/IDMEnricherEditor/useModule.d.ts.map +1 -1
  133. package/build/types/backoffice/src/ui/IFrame/index.d.ts +2 -1
  134. package/build/types/backoffice/src/ui/IFrame/index.d.ts.map +1 -1
  135. package/build/types/backoffice/src/ui/ImageCropper/index.d.ts +4 -16
  136. package/build/types/backoffice/src/ui/ImageCropper/index.d.ts.map +1 -1
  137. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +7 -27
  138. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
  139. package/build/types/backoffice/src/ui/List/index.d.ts +3 -7
  140. package/build/types/backoffice/src/ui/List/index.d.ts.map +1 -1
  141. package/build/types/backoffice/src/ui/MediaUpload/useMediaUpload.d.ts +13 -11
  142. package/build/types/backoffice/src/ui/MediaUpload/useMediaUpload.d.ts.map +1 -1
  143. package/build/types/backoffice/src/ui/ModalProgressBar/index.d.ts +2 -1
  144. package/build/types/backoffice/src/ui/ModalProgressBar/index.d.ts.map +1 -1
  145. package/build/types/backoffice/src/ui/RelationSelector/DropDown/index.d.ts +2 -1
  146. package/build/types/backoffice/src/ui/RelationSelector/DropDown/index.d.ts.map +1 -1
  147. package/build/types/backoffice/src/ui/RelationSelector/RelationSelectorApiHandler.d.ts +1 -1
  148. package/build/types/backoffice/src/ui/RelationSelector/RelationSelectorApiHandler.d.ts.map +1 -1
  149. package/build/types/backoffice/src/ui/RelationSelector/filter/index.d.ts +2 -1
  150. package/build/types/backoffice/src/ui/RelationSelector/filter/index.d.ts.map +1 -1
  151. package/build/types/backoffice/src/ui/RelationSelector/index.d.ts +3 -7
  152. package/build/types/backoffice/src/ui/RelationSelector/index.d.ts.map +1 -1
  153. package/build/types/backoffice/src/ui/RelationSelector/useRelationSelectorData.d.ts +9 -10
  154. package/build/types/backoffice/src/ui/RelationSelector/useRelationSelectorData.d.ts.map +1 -1
  155. package/build/types/backoffice/src/ui/RichTextEditor/index.d.ts +3 -2
  156. package/build/types/backoffice/src/ui/RichTextEditor/index.d.ts.map +1 -1
  157. package/build/types/backoffice/src/ui/RoleSelector/index.d.ts +3 -7
  158. package/build/types/backoffice/src/ui/RoleSelector/index.d.ts.map +1 -1
  159. package/build/types/backoffice/src/ui/RoleSelector/useRoleSelectorData.d.ts +2 -3
  160. package/build/types/backoffice/src/ui/RoleSelector/useRoleSelectorData.d.ts.map +1 -1
  161. package/build/types/backoffice/src/ui/SMChart/types.d.ts +0 -1
  162. package/build/types/backoffice/src/ui/SMChart/types.d.ts.map +1 -1
  163. package/build/types/backoffice/src/ui/Select/index.d.ts +2 -2
  164. package/build/types/backoffice/src/ui/Select/index.d.ts.map +1 -1
  165. package/build/types/backoffice/src/ui/Select/useSelectData.d.ts +0 -1
  166. package/build/types/backoffice/src/ui/Select/useSelectData.d.ts.map +1 -1
  167. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/Select/index.d.ts +2 -1
  168. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/Select/index.d.ts.map +1 -1
  169. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/index.d.ts +2 -1
  170. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/index.d.ts.map +1 -1
  171. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/useSelectClientRelationCatalog.d.ts +0 -1
  172. package/build/types/backoffice/src/ui/SelectClientRelationCatalog/useSelectClientRelationCatalog.d.ts.map +1 -1
  173. package/build/types/backoffice/src/ui/SelectOrCreate/index.d.ts +3 -7
  174. package/build/types/backoffice/src/ui/SelectOrCreate/index.d.ts.map +1 -1
  175. package/build/types/backoffice/src/ui/SelectSimple/index.d.ts +1 -3
  176. package/build/types/backoffice/src/ui/SelectSimple/index.d.ts.map +1 -1
  177. package/build/types/backoffice/src/ui/SelectSimple/types.d.ts +0 -1
  178. package/build/types/backoffice/src/ui/SelectSimple/types.d.ts.map +1 -1
  179. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/BooleanCell/index.d.ts +2 -1
  180. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/BooleanCell/index.d.ts.map +1 -1
  181. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/DropdownCell/index.d.ts +2 -1
  182. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/DropdownCell/index.d.ts.map +1 -1
  183. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/IconCell/index.d.ts +2 -1
  184. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/IconCell/index.d.ts.map +1 -1
  185. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/ImageCell/index.d.ts +2 -1
  186. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/ImageCell/index.d.ts.map +1 -1
  187. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaItemViewerCell/index.d.ts +2 -1
  188. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaItemViewerCell/index.d.ts.map +1 -1
  189. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts +2 -1
  190. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts.map +1 -1
  191. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/StringCell/index.d.ts +2 -1
  192. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/StringCell/index.d.ts.map +1 -1
  193. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/TextCell/index.d.ts +2 -1
  194. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/TextCell/index.d.ts.map +1 -1
  195. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/UnixTimeStamCheckCell/index.d.ts +2 -1
  196. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/UnixTimeStamCheckCell/index.d.ts.map +1 -1
  197. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/UnixTimeStampCell/index.d.ts +2 -1
  198. package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/UnixTimeStampCell/index.d.ts.map +1 -1
  199. package/build/types/backoffice/src/ui/Table/BaseTable/getExpandedRowRenderer.d.ts +2 -1
  200. package/build/types/backoffice/src/ui/Table/BaseTable/getExpandedRowRenderer.d.ts.map +1 -1
  201. package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts +2 -1
  202. package/build/types/backoffice/src/ui/Table/BaseTable/index.d.ts.map +1 -1
  203. package/build/types/backoffice/src/ui/Table/CatalogTable/index.d.ts +2 -1
  204. package/build/types/backoffice/src/ui/Table/CatalogTable/index.d.ts.map +1 -1
  205. package/build/types/backoffice/src/ui/Table/CatalogTable/useTableData.d.ts.map +1 -1
  206. package/build/types/backoffice/src/ui/Table/StandardTable/index.d.ts +2 -1
  207. package/build/types/backoffice/src/ui/Table/StandardTable/index.d.ts.map +1 -1
  208. package/build/types/backoffice/src/ui/Table/StandardTable/useTableData.d.ts.map +1 -1
  209. package/build/types/backoffice/src/ui/Table/index.d.ts +2 -1
  210. package/build/types/backoffice/src/ui/Table/index.d.ts.map +1 -1
  211. package/build/types/backoffice/src/ui/Table/types.d.ts +5 -1
  212. package/build/types/backoffice/src/ui/Table/types.d.ts.map +1 -1
  213. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts +108 -0
  214. package/build/types/backoffice/src/ui/Table/utils/applyFilterAndSortation.d.ts.map +1 -0
  215. package/build/types/backoffice/src/ui/Table/utils/mapColumns.d.ts.map +1 -1
  216. package/build/types/backoffice/src/ui/TreeChart/BreadCrumbsTrigger/index.d.ts +2 -1
  217. package/build/types/backoffice/src/ui/TreeChart/BreadCrumbsTrigger/index.d.ts.map +1 -1
  218. package/build/types/backoffice/src/ui/TreeChart/HelpLegend/index.d.ts +2 -1
  219. package/build/types/backoffice/src/ui/TreeChart/HelpLegend/index.d.ts.map +1 -1
  220. package/build/types/backoffice/src/ui/TreeChart/OrgItem/index.d.ts +1 -1
  221. package/build/types/backoffice/src/ui/TreeChart/OrgItem/index.d.ts.map +1 -1
  222. package/build/types/backoffice/src/ui/TreeChart/SearchSelect/index.d.ts +2 -1
  223. package/build/types/backoffice/src/ui/TreeChart/SearchSelect/index.d.ts.map +1 -1
  224. package/build/types/backoffice/src/ui/TreeChart/ZoomWrapper/index.d.ts +2 -1
  225. package/build/types/backoffice/src/ui/TreeChart/ZoomWrapper/index.d.ts.map +1 -1
  226. package/build/types/backoffice/src/ui/TreeChart/index.d.ts +2 -1
  227. package/build/types/backoffice/src/ui/TreeChart/index.d.ts.map +1 -1
  228. package/build/types/backoffice/src/ui/UIBuilder/index.d.ts +2 -1
  229. package/build/types/backoffice/src/ui/UIBuilder/index.d.ts.map +1 -1
  230. package/build/types/backoffice/src/ui/UIBuilder/useUIBuilderData.d.ts +0 -1
  231. package/build/types/backoffice/src/ui/UIBuilder/useUIBuilderData.d.ts.map +1 -1
  232. package/build/types/backoffice/src/utils/{aplyMapping.d.ts → applyMapping.d.ts} +3 -3
  233. package/build/types/backoffice/src/utils/applyMapping.d.ts.map +1 -0
  234. package/build/types/backoffice/src/utils/{aplyRule.d.ts → applyRule.d.ts} +2 -2
  235. package/build/types/backoffice/src/utils/applyRule.d.ts.map +1 -0
  236. package/build/types/backoffice/src/utils/getIcons.d.ts +2 -1
  237. package/build/types/backoffice/src/utils/getIcons.d.ts.map +1 -1
  238. package/build/types/backoffice/src/utils/parseServersideFilters.d.ts +1 -0
  239. package/build/types/backoffice/src/utils/parseServersideFilters.d.ts.map +1 -1
  240. package/package.json +36 -38
  241. package/build/types/backoffice/src/ui/Table/utils/aplyFilterAndSortation.d.ts +0 -53
  242. package/build/types/backoffice/src/ui/Table/utils/aplyFilterAndSortation.d.ts.map +0 -1
  243. package/build/types/backoffice/src/utils/aplyMapping.d.ts.map +0 -1
  244. package/build/types/backoffice/src/utils/aplyRule.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import React, { createElement, createContext, useState, useEffect, useRef, useMemo, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo } from 'react';
2
+ import React, { createElement, createContext, useState, useEffect, useRef, useMemo, forwardRef, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo } from 'react';
3
3
  import 'antd/dist/reset.css';
4
- import { Form as Form$1, Button, Input, Popover, Typography, Divider, Select as Select$1, Avatar, Spin, Radio, Space, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Progress, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Switch, Table as Table$1, Popconfirm, Tabs, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
4
+ import { Form as Form$1, Button, Input, Popover, Typography, Divider, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Switch, Table as Table$1, Popconfirm, Tabs, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
5
5
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
6
  import { observer } from 'mobx-react-lite';
7
7
  import { getLogger, DivaError, useTranslation, useDivaCore, DivaUtils } from '@crystaldesign/diva-core';
@@ -16,12 +16,12 @@ import _get from '@babel/runtime/helpers/get';
16
16
  import _inherits from '@babel/runtime/helpers/inherits';
17
17
  import _regeneratorRuntime from '@babel/runtime/regenerator';
18
18
  import _typeof from '@babel/runtime/helpers/typeof';
19
- import flat, { flatten, unflatten } from 'flat';
19
+ import { flatten, unflatten } from 'flat';
20
20
  import { compare } from 'fast-json-patch';
21
21
  import { io } from 'socket.io-client';
22
22
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
23
23
  import { toJS, makeAutoObservable, observable, action, makeObservable } from 'mobx';
24
- import merge from 'deepmerge';
24
+ import mergeWith from 'lodash/mergeWith';
25
25
  import Tooltip from 'antd/es/tooltip';
26
26
  import RightOutlined from '@ant-design/icons/RightOutlined';
27
27
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -64,8 +64,12 @@ import FileExcelOutlined from '@ant-design/icons/FileExcelOutlined';
64
64
  import FolderOutlined from '@ant-design/icons/FolderOutlined';
65
65
  import SettingOutlined from '@ant-design/icons/SettingOutlined';
66
66
  import PieChartOutlined from '@ant-design/icons/PieChartOutlined';
67
+ import ClockCircleOutlined from '@ant-design/icons/ClockCircleOutlined';
68
+ import FileZipOutlined from '@ant-design/icons/FileZipOutlined';
69
+ import PlaySquareOutlined from '@ant-design/icons/PlaySquareOutlined';
67
70
  import InfoCircleOutlined from '@ant-design/icons/InfoCircleOutlined';
68
- import { cloneDeep, merge as merge$1, mergeWith } from 'lodash';
71
+ import merge from 'lodash/merge';
72
+ import cloneDeep from 'lodash/cloneDeep';
69
73
  import DivaUtils$1, { nanoid, DivaError as DivaError$1 } from '@crystaldesign/diva-utils';
70
74
  import DeleteOutlined from '@ant-design/icons/DeleteOutlined';
71
75
  import JSONEditor from 'jsoneditor';
@@ -73,10 +77,11 @@ import 'jsoneditor/dist/jsoneditor.css';
73
77
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
74
78
  import { MinusCircleOutlined, PlusOutlined, DownloadOutlined as DownloadOutlined$1, PlusSquareOutlined, DeleteOutlined as DeleteOutlined$1, FullscreenOutlined, FileUnknownOutlined, CloseOutlined as CloseOutlined$1, PlusCircleOutlined as PlusCircleOutlined$1, HomeOutlined as HomeOutlined$1, InboxOutlined, PushpinOutlined, PushpinFilled, ReloadOutlined as ReloadOutlined$1 } from '@ant-design/icons';
75
79
  import classnames from 'classnames';
76
- import { Editor } from '@tinymce/tinymce-react';
80
+ import RTFEditor from '@crystaldesign/rtf-editor';
77
81
  import debounce from 'lodash/debounce';
78
82
  import Button$1 from 'antd/es/button';
79
83
  import Upload$1 from 'antd/es/upload';
84
+ import DownOutlined from '@ant-design/icons/lib/icons/DownOutlined';
80
85
  import Space$1 from 'antd/es/space';
81
86
  import { stringify } from 'csv';
82
87
  import InfiniteScroll from 'react-infinite-scroll-component';
@@ -91,8 +96,9 @@ import QuestionCircleOutlined from '@ant-design/icons/QuestionCircleOutlined';
91
96
  import WarningTwoTone from '@ant-design/icons/WarningTwoTone';
92
97
  import CheckOutlined from '@ant-design/icons/lib/icons/CheckOutlined';
93
98
  import CloseOutlined from '@ant-design/icons/lib/icons/CloseOutlined';
99
+ import merge$1 from 'deepmerge';
94
100
  import { ContentBoxComponent } from '@crystaldesign/content-box';
95
- import { AgChartsReact } from 'ag-charts-react';
101
+ import { AgCharts } from 'ag-charts-react';
96
102
  import { Histogram } from '@crystaldesign/analytics';
97
103
  import dayjs from 'dayjs';
98
104
  import advancedFormat from 'dayjs/plugin/advancedFormat';
@@ -142,16 +148,16 @@ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r
142
148
  function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
143
149
  function ownKeys$N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
144
150
  function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
145
- var LOG$c = getLogger('Backoffice', 'AplyMapping');
146
- function aplyMapping (_ref) {
147
- var mapable = _ref.mapable,
151
+ var LOG$d = getLogger('Backoffice', 'ApplyMapping');
152
+ function applyMapping (_ref) {
153
+ var mappable = _ref.mappable,
148
154
  mappingData = _ref.mappingData,
149
155
  mapping = _ref.mapping,
150
156
  rootStore = _ref.rootStore,
151
157
  _ref$fallBackToParams = _ref.fallBackToParams,
152
158
  fallBackToParams = _ref$fallBackToParams === void 0 ? true : _ref$fallBackToParams;
153
159
  var isFormData = false;
154
- var returnValue = mapable;
160
+ var returnValue = mappable;
155
161
  function set(key, value, type) {
156
162
  if (isFormData) {
157
163
  returnValue.set(key, value);
@@ -191,10 +197,10 @@ function aplyMapping (_ref) {
191
197
  return false;
192
198
  }
193
199
  try {
194
- if (mapable && mapping) {
200
+ if (mappable && mapping) {
195
201
  var flatMapping = mappingData ? flatten(mappingData) : {};
196
202
  if (mapping.type == 'filter') {
197
- if (typeof mapable !== 'string') {
203
+ if (typeof mappable !== 'string') {
198
204
  throw new Error('Urls can only be processed with mappings of type "query" or "filter".');
199
205
  }
200
206
  var url = new URL(returnValue);
@@ -222,7 +228,7 @@ function aplyMapping (_ref) {
222
228
  }
223
229
  returnValue = url.toString();
224
230
  } else if (mapping.type == 'query') {
225
- if (typeof mapable !== 'string') {
231
+ if (typeof mappable !== 'string') {
226
232
  throw new Error('Urls can only be processed with mappings of type "query" or "filter".');
227
233
  }
228
234
  var _url = new URL(returnValue);
@@ -265,10 +271,10 @@ function aplyMapping (_ref) {
265
271
  }
266
272
  returnValue = _url.toString();
267
273
  } else if (mapping.type == 'body') {
268
- if (_typeof(mapable) !== 'object') {
274
+ if (_typeof(mappable) !== 'object') {
269
275
  throw new Error('Objects can only be processed with mappings of type "body".');
270
276
  }
271
- if (mapable.entries) {
277
+ if (mappable.entries) {
272
278
  isFormData = true;
273
279
  }
274
280
  for (var _i = 0; _i < mapping.map.length; _i++) {
@@ -286,7 +292,7 @@ function aplyMapping (_ref) {
286
292
  }
287
293
  return returnValue;
288
294
  } catch (e) {
289
- LOG$c.debug('Mapabledata', mapable);
295
+ LOG$d.debug('Mapabledata', mappable);
290
296
  throw e;
291
297
  }
292
298
  }
@@ -317,8 +323,21 @@ function parseServersideFilters (_ref) {
317
323
  if (Object.keys(filters !== null && filters !== void 0 ? filters : {}).length || Object.keys(prefilter !== null && prefilter !== void 0 ? prefilter : {}).length) {
318
324
  if (useFullTextSearch(filters !== null && filters !== void 0 ? filters : {})) {
319
325
  url = "".concat(url, "&search=").concat(encodeURIComponent(parseFilter(filters !== null && filters !== void 0 ? filters : {}, prefilter).replaceAll(' ', '%20')).replaceAll('(', '%28').replaceAll(')', '%29'));
320
- } else {
326
+ } else if (!url.includes('filter=')) {
321
327
  url = "".concat(url, "&filter=").concat(encodeURIComponent(parseFilter(filters !== null && filters !== void 0 ? filters : {}, prefilter).replaceAll(' ', '%20')).replaceAll('(', '%28').replaceAll(')', '%29'));
328
+ } else {
329
+ var urlConstruct = new URL(url);
330
+ var params = new URLSearchParams(urlConstruct.search);
331
+
332
+ // Step 2: Get the existing filter parameter
333
+ var existingFilter = params.get('filter');
334
+
335
+ // Step 3: Add another filter parameter
336
+ params.set('filter', '[' + (existingFilter === null || existingFilter === void 0 ? void 0 : existingFilter.slice(1, -1)) + ',' + parseFilter(filters !== null && filters !== void 0 ? filters : {}, prefilter).replaceAll(' ', '%20').replaceAll('(', '%28').replaceAll(')', '%29').slice(1, -1) + ']');
337
+
338
+ // Step 4: Update the URL
339
+ urlConstruct.search = params.toString();
340
+ url = urlConstruct.toString();
322
341
  }
323
342
  }
324
343
  if (genericProps) {
@@ -355,7 +374,7 @@ function parseFilter(filters, prefilter) {
355
374
  }
356
375
  } else {
357
376
  var or = values[2]; //filter[1][2]; // [field, [value, operator, or?]]
358
- var index = or === true ? 0 : or;
377
+ var index = or === true || or === 0 ? false : or;
359
378
  var inFilter = values[values.length - 1] === 'in';
360
379
  if (index == undefined || index === false || inFilter) {
361
380
  if (inFilter) {
@@ -448,7 +467,7 @@ function getLeafColumns(columns) {
448
467
 
449
468
  function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
450
469
  function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
451
- var LOG$b = getLogger('Backoffice', 'ApiHandler');
470
+ var LOG$c = getLogger('Backoffice', 'ApiHandler');
452
471
  var jp = require('jsonpath');
453
472
  var _default$d = /*#__PURE__*/function () {
454
473
  function _default(configuration, _rootStore) {
@@ -593,8 +612,8 @@ var _default$d = /*#__PURE__*/function () {
593
612
  _context2.next = 10;
594
613
  break;
595
614
  }
596
- data = aplyMapping({
597
- mapable: data,
615
+ data = applyMapping({
616
+ mappable: data,
598
617
  mappingData: data,
599
618
  mapping: mapping,
600
619
  rootStore: this._rootStore,
@@ -607,8 +626,8 @@ var _default$d = /*#__PURE__*/function () {
607
626
  _context2.next = 14;
608
627
  break;
609
628
  }
610
- finalUrl = aplyMapping({
611
- mapable: finalUrl,
629
+ finalUrl = applyMapping({
630
+ mappable: finalUrl,
612
631
  mapping: mapping,
613
632
  rootStore: this._rootStore,
614
633
  fallBackToParams: false
@@ -712,8 +731,8 @@ var _default$d = /*#__PURE__*/function () {
712
731
  if (jwt) header['Authorization'] = 'Bearer ' + jwt;
713
732
  if (sessionGuid) header['SessionGuid'] = sessionGuid;
714
733
  if ((mapping === null || mapping === void 0 ? void 0 : mapping.type) == 'query') {
715
- url = aplyMapping({
716
- mapable: this._createUrl,
734
+ url = applyMapping({
735
+ mappable: this._createUrl,
717
736
  mapping: mapping,
718
737
  mappingData: mappingData,
719
738
  rootStore: this._rootStore,
@@ -721,8 +740,8 @@ var _default$d = /*#__PURE__*/function () {
721
740
  });
722
741
  if (data) createData = _objectSpread$M({}, data);
723
742
  } else if (data !== undefined) {
724
- createData = aplyMapping({
725
- mapable: data,
743
+ createData = applyMapping({
744
+ mappable: data,
726
745
  mapping: mapping,
727
746
  mappingData: mappingData,
728
747
  rootStore: this._rootStore,
@@ -733,8 +752,8 @@ var _default$d = /*#__PURE__*/function () {
733
752
  if (formData !== undefined) {
734
753
  // set metadata doesn't work with content type set
735
754
  delete header['Content-Type'];
736
- createData = aplyMapping({
737
- mapable: formData,
755
+ createData = applyMapping({
756
+ mappable: formData,
738
757
  mappingData: mappingData,
739
758
  mapping: mapping,
740
759
  rootStore: this._rootStore,
@@ -831,8 +850,8 @@ var _default$d = /*#__PURE__*/function () {
831
850
  throw new Error('Delete endpoint is missing in configuration.');
832
851
  case 2:
833
852
  jwt = (_this$_rootStore3 = this._rootStore) === null || _this$_rootStore3 === void 0 ? void 0 : _this$_rootStore3.dataStore.jwt;
834
- url = new URL(aplyMapping({
835
- mapable: this._deleteUrl,
853
+ url = new URL(applyMapping({
854
+ mappable: this._deleteUrl,
836
855
  mapping: mapping,
837
856
  mappingData: mappingData,
838
857
  rootStore: this._rootStore,
@@ -840,8 +859,8 @@ var _default$d = /*#__PURE__*/function () {
840
859
  }));
841
860
  if (id && this._applyIdField) {
842
861
  if (this._deleteUrl.includes("${".concat(this._deleteIdField, "}"))) {
843
- url = new URL(aplyMapping({
844
- mapable: url.toString(),
862
+ url = new URL(applyMapping({
863
+ mappable: url.toString(),
845
864
  mapping: {
846
865
  type: 'query',
847
866
  map: [{
@@ -1029,8 +1048,8 @@ var _default$d = /*#__PURE__*/function () {
1029
1048
  baseUrl: this._readListUrl,
1030
1049
  prefilter: prefilter
1031
1050
  })) : this._readListUrl;
1032
- url = aplyMapping({
1033
- mapable: url,
1051
+ url = applyMapping({
1052
+ mappable: url,
1034
1053
  mapping: mapping,
1035
1054
  mappingData: mappingData,
1036
1055
  rootStore: this._rootStore,
@@ -1046,8 +1065,8 @@ var _default$d = /*#__PURE__*/function () {
1046
1065
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
1047
1066
  while (1) switch (_context9.prev = _context9.next) {
1048
1067
  case 0:
1049
- url = aplyMapping({
1050
- mapable: baseUrl,
1068
+ url = applyMapping({
1069
+ mappable: baseUrl,
1051
1070
  mapping: mapping,
1052
1071
  mappingData: mappingData,
1053
1072
  rootStore: this._rootStore,
@@ -1108,8 +1127,8 @@ var _default$d = /*#__PURE__*/function () {
1108
1127
  value: function createSocket(data, mapping, namespace) {
1109
1128
  var _this$_rootStore7;
1110
1129
  if (!this._socketUrl) throw new Error('no socket url configured');
1111
- var url = new URL(aplyMapping({
1112
- mapable: this._socketUrl,
1130
+ var url = new URL(applyMapping({
1131
+ mappable: this._socketUrl,
1113
1132
  mapping: mapping,
1114
1133
  mappingData: data,
1115
1134
  rootStore: this._rootStore,
@@ -1125,16 +1144,16 @@ var _default$d = /*#__PURE__*/function () {
1125
1144
  }
1126
1145
  });
1127
1146
  this._socket.on('error', function (error) {
1128
- LOG$b.error(new DivaError('Error on connection', error));
1147
+ LOG$c.error(new DivaError('Error on connection', error));
1129
1148
  });
1130
1149
  this._socket.on('connect_error', function (error) {
1131
- LOG$b.log("connect_error due to ".concat(error.message));
1150
+ LOG$c.log("connect_error due to ".concat(error.message));
1132
1151
  });
1133
1152
  this._socket.on('connect', function () {
1134
- LOG$b.debug('Successfully connected to socket');
1153
+ LOG$c.debug('Successfully connected to socket');
1135
1154
  });
1136
1155
  this._socket.on('disconnect', function () {
1137
- LOG$b.debug('Disconnect from socket');
1156
+ LOG$c.debug('Disconnect from socket');
1138
1157
  });
1139
1158
  return this._socket;
1140
1159
  }
@@ -1273,8 +1292,8 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
1273
1292
  _context.next = 8;
1274
1293
  break;
1275
1294
  }
1276
- data = aplyMapping({
1277
- mapable: {},
1295
+ data = applyMapping({
1296
+ mappable: {},
1278
1297
  mapping: this.configuration.targetMapping,
1279
1298
  rootStore: this._rootStore
1280
1299
  });
@@ -1344,8 +1363,8 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
1344
1363
  _context2.next = 10;
1345
1364
  break;
1346
1365
  }
1347
- _data = aplyMapping({
1348
- mapable: {},
1366
+ _data = applyMapping({
1367
+ mappable: {},
1349
1368
  mapping: this.configuration.targetMapping,
1350
1369
  mappingData: {
1351
1370
  url: response.ref.url,
@@ -1389,8 +1408,8 @@ var _default$b = /*#__PURE__*/function (_ApiHandler) {
1389
1408
  _context3.next = 6;
1390
1409
  break;
1391
1410
  }
1392
- data = aplyMapping({
1393
- mapable: {},
1411
+ data = applyMapping({
1412
+ mappable: {},
1394
1413
  mapping: this.configuration.targetMapping,
1395
1414
  mappingData: {
1396
1415
  url: '',
@@ -1580,8 +1599,8 @@ var _default$8 = /*#__PURE__*/function (_ApiHandler) {
1580
1599
  // so we merge them into one in order to aply the mapping
1581
1600
  var mergedMappingData = Object.assign({}, mappingData);
1582
1601
  mergedMappingData = Object.assign(mergedMappingData, data);
1583
- var newEntry = aplyMapping({
1584
- mapable: {},
1602
+ var newEntry = applyMapping({
1603
+ mappable: {},
1585
1604
  mapping: _this2.configuration.actionMapping,
1586
1605
  mappingData: mergedMappingData,
1587
1606
  rootStore: _this2._rootStore
@@ -1715,8 +1734,8 @@ var _default$7 = /*#__PURE__*/function () {
1715
1734
  function _default(root) {
1716
1735
  _classCallCheck(this, _default);
1717
1736
  this.root = root;
1718
- _defineProperty(this, "_configuration", void 0);
1719
- _defineProperty(this, "_apiConfig", void 0);
1737
+ _defineProperty(this, "_configuration", undefined);
1738
+ _defineProperty(this, "_apiConfig", undefined);
1720
1739
  makeAutoObservable(this, {
1721
1740
  root: false,
1722
1741
  fetchConfiguration: false
@@ -1760,10 +1779,9 @@ var _default$7 = /*#__PURE__*/function () {
1760
1779
 
1761
1780
  //merge with configuration so everything can changed by config
1762
1781
  if (config.configuration) {
1763
- configuration = merge(configuration, config.configuration, {
1764
- arrayMerge: function arrayMerge(_, s) {
1765
- return s;
1766
- }
1782
+ configuration = mergeWith(configuration, config.configuration, function (obj, src) {
1783
+ if (Array.isArray(obj) && Array.isArray(src) && obj.length != src.length) return src;
1784
+ return undefined;
1767
1785
  });
1768
1786
  }
1769
1787
 
@@ -2512,210 +2530,816 @@ function loadConfiguration(t, root, config, lang) {
2512
2530
  }
2513
2531
  }
2514
2532
  },
2515
- TableClientRelations: {
2533
+ TableTaskStatusVersioning: {
2516
2534
  type: 'Table',
2517
2535
  canRefresh: true,
2518
- title: t('backoffice.table.clientrelations.title'),
2536
+ title: t('backoffice.table.taskstatusversioning.title.taskstatusversioninglist'),
2519
2537
  columns: [{
2520
- title: t('backoffice.table.clientrelations.columns.name'),
2521
- field: 'name',
2522
- defaultSortOrder: 'ascend',
2523
- sorter: 1,
2538
+ title: 'ID',
2539
+ field: '_id',
2540
+ sorter: 2,
2524
2541
  filter: 'search',
2525
2542
  width: 200
2526
2543
  }, {
2527
- title: t('backoffice.table.clientrelations.columns.nameSource'),
2528
- field: 'nameSource',
2529
- sorter: 1,
2544
+ title: t('backoffice.table.taskstatusversioning.columns.model'),
2545
+ field: 'taskName',
2546
+ sorter: 2,
2547
+ filter: 'search',
2548
+ width: 400
2549
+ }, {
2550
+ title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
2551
+ field: 'organizationId',
2552
+ sorter: 200,
2530
2553
  filter: 'search',
2531
2554
  width: 200
2532
2555
  }, {
2533
- title: t('backoffice.table.clientrelations.columns.nameTarget'),
2534
- field: 'nameTarget',
2535
- sorter: 2,
2556
+ title: t('backoffice.table.taskstatusversioning.columns.organisation'),
2557
+ field: 'organizationDisplayName',
2558
+ sorter: 200,
2536
2559
  filter: 'search',
2537
2560
  width: 200
2538
2561
  }, {
2539
- title: t('backoffice.table.clientrelations.columns.externalCloudName'),
2540
- field: 'externalCloudName',
2562
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2563
+ field: 'user.mainEmail',
2541
2564
  sorter: 3,
2542
2565
  filter: 'search',
2543
2566
  width: 200
2544
2567
  }, {
2545
- title: t('backoffice.table.clientrelations.columns.state'),
2546
- field: 'state',
2547
- sorter: 4,
2568
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2569
+ field: 'cancelledByUser.mainEmail',
2570
+ sorter: 3,
2548
2571
  filter: 'search',
2549
- width: 100
2550
- }, {
2551
- title: t('backoffice.table.clientrelations.columns.created'),
2552
- field: 'created',
2553
- sorter: 5,
2554
2572
  width: 200,
2555
- type: 'unixTimeStamp'
2573
+ hidden: true
2556
2574
  }, {
2557
- title: t('backoffice.table.clientrelations.columns.lastUpdated'),
2558
- field: 'lastUpdated',
2559
- sorter: 6,
2560
- width: 200,
2561
- type: 'unixTimeStamp'
2575
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2576
+ field: 'progress.status',
2577
+ filter: 'search',
2578
+ width: 200
2562
2579
  }, {
2563
- title: 'ID',
2564
- field: '_id',
2565
- sorter: 7,
2566
- width: 50,
2580
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2581
+ field: 'progress.step',
2582
+ filter: 'search',
2583
+ width: 200,
2567
2584
  hidden: true
2568
2585
  }, {
2569
- title: t('backoffice.table.clientrelations.columns.externalCloudId'),
2570
- field: 'externalCloudId',
2571
- sorter: 8,
2572
- width: 50,
2586
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2587
+ field: 'progress.percentage',
2588
+ filter: 'search',
2589
+ width: 200,
2573
2590
  hidden: true
2574
2591
  }, {
2575
- title: t('backoffice.table.clientrelations.columns.type'),
2576
- field: 'type',
2577
- sorter: 9,
2578
- width: 50,
2579
- hidden: true
2592
+ title: t('backoffice.table.taskstatusversioning.columns.created'),
2593
+ field: 'created',
2594
+ sorter: 1,
2595
+ defaultSortOrder: 'descend',
2596
+ type: 'unixTimeStamp',
2597
+ width: 200
2598
+ }, {
2599
+ title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
2600
+ field: 'lastUpdated',
2601
+ type: 'unixTimeStamp',
2602
+ width: 200
2603
+ }, {
2604
+ title: t('backoffice.table.taskstatusversioning.columns.finished'),
2605
+ field: 'endTime',
2606
+ type: 'unixTimeStamp',
2607
+ width: 200
2608
+ }, {
2609
+ title: t('backoffice.table.taskstatusversioning.columns.server'),
2610
+ field: 'serverName',
2611
+ filter: 'search',
2612
+ width: 200
2613
+ }, {
2614
+ title: t('backoffice.table.taskstatusversioning.columns.type'),
2615
+ field: 'taskType',
2616
+ filter: 'search',
2617
+ width: 200
2580
2618
  }],
2619
+ filter: {
2620
+ toggle: {
2621
+ globalValue: 'relevantTypeOrganizationId',
2622
+ fields: ['organizationId'],
2623
+ label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
2624
+ labelOff: t('backoffice.table.taskstatusversioning.filter.labelOff.allorgs'),
2625
+ inverted: true,
2626
+ permission: 'backoffice_taskstatus_allorgs',
2627
+ isAnd: true
2628
+ },
2629
+ search: {
2630
+ fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.mainEmail', 'status', 'serverName', 'taskType']
2631
+ }
2632
+ },
2581
2633
  apiInterface: {
2582
2634
  read: {
2583
- list: '${authService}/clientrelations',
2635
+ list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Ceq%2CSUPPLIER_VERSIONING%7D%5D%5D',
2636
+ fields: true,
2584
2637
  filterServerSide: true
2585
2638
  },
2586
- "delete": {
2587
- url: '${authService}/clientrelation/${_id}/type/${type}',
2588
- applyIdField: false
2589
- }
2590
- },
2591
- onError: {
2592
- AUTH_0030: t('errorcodes._source.labels.error.AUTH_0030'),
2593
- AUTH_0031: t('errorcodes._source.labels.error.AUTH_0031')
2594
- },
2595
- deleteMapping: {
2596
- type: 'query',
2597
- map: [{
2598
- sourceField: '_id',
2599
- targetField: '_id'
2600
- }, {
2601
- targetField: 'type',
2602
- sourceField: 'type'
2603
- }]
2604
- },
2605
- createAction: {
2606
- actionType: 'Detail',
2607
- label: t('backoffice.table.clientrelations.createAction.label.createnewclientrelation'),
2608
- title: t('backoffice.table.clientrelations.createAction.title.ewclientrelation'),
2609
- id: 'FromCreateClientRelation',
2610
- type: 'Form',
2611
- apiInterface: {
2612
- create: '${authService}/clientrelations'
2613
- }
2639
+ "delete": '${adminService}/taskStatus?id=${id}'
2614
2640
  },
2615
2641
  mapping: {
2616
2642
  type: 'query',
2617
2643
  map: [{
2618
- sourceField: 'nameSource',
2619
- targetField: 'nameSource'
2620
- }, {
2621
- sourceField: 'nameTarget',
2622
- targetField: 'nameTarget'
2644
+ globalValue: 'selectedOrganizationId',
2645
+ targetField: 'organizationId'
2623
2646
  }]
2624
2647
  },
2625
- filter: {
2626
- toggle: {
2627
- globalValue: 'relevantTypeOrganizationId',
2628
- fields: ['sourceOrganizationId', 'targetOrganizationId'],
2629
- label: t('backoffice.table.clientrelations.filter.label.allorgs'),
2630
- labelOff: t('backoffice.table.clientrelations.filter.labelOff.allorgs'),
2631
- inverted: true
2632
- },
2633
- search: {
2634
- fields: ['nameSource', 'nameTarget', 'externalCloudName', 'state', 'name']
2648
+ deleteAction: {
2649
+ label: 'backoffice.table.taskstatusversioning.deleteAction.label.cancel',
2650
+ labelDialog: 'backoffice.table.taskstatusversioning.deleteAction.labelDialog.cancel',
2651
+ disabled: function disabled(datas) {
2652
+ return datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
2653
+ return (d === null || d === void 0 ? void 0 : d.progress.status) != 'Created';
2654
+ });
2635
2655
  }
2636
2656
  },
2637
2657
  rowAction: [{
2638
2658
  actionType: 'Detail',
2639
2659
  type: 'Form',
2640
- id: 'FormOrganizationDetailes',
2641
- title: t('backoffice.edit')
2642
- }]
2643
- },
2644
- FormOrganizationDetailes: {
2645
- type: 'Form',
2646
- title: t('backoffice.form.createclientrelation.title'),
2647
- apiInterface: {
2648
- update: {
2649
- url: '${authService}/clientrelation/{_id}/type/{type}',
2650
- method: 'PATCH',
2651
- jsonPatch: true
2652
- }
2653
- },
2654
- triggerRerender: true,
2655
- items: [{
2656
- name: 'name',
2657
- label: t('backoffice.form.createclientrelation.name'),
2658
- type: 'input',
2659
- required: true
2660
- }, {
2661
- label: t('backoffice.form.createclientrelation.aktivate'),
2662
- name: 'state',
2663
- type: 'radio',
2664
- optionType: 'button',
2665
- options: [{
2666
- label: 'INACTIVE',
2667
- value: 'INACTIVE'
2668
- }, {
2669
- label: 'ACTIVE',
2670
- value: 'ACTIVE'
2671
- }],
2672
- required: false
2660
+ id: 'FormTaskStatusDetails',
2661
+ title: t('backoffice.table.taskstatusversioning.rowAction.title')
2673
2662
  }]
2674
2663
  },
2675
- TableExternalClouds: {
2664
+ TableTaskStatusCustom: {
2676
2665
  type: 'Table',
2677
2666
  canRefresh: true,
2678
- title: t('backoffice.table.externalclouds.title.listexternalclouds'),
2667
+ title: t('backoffice.table.taskstatusversioning.title.taskstatuscustom'),
2679
2668
  columns: [{
2680
- title: t('backoffice.table.externalclouds.title.listexternalclouds'),
2681
- field: 'name',
2682
- sorter: 1,
2669
+ title: 'ID',
2670
+ field: '_id',
2671
+ sorter: 2,
2683
2672
  filter: 'search',
2684
2673
  width: 200
2685
2674
  }, {
2686
- title: 'Base URL',
2687
- field: 'url',
2675
+ title: t('backoffice.table.taskstatusversioning.columns.model'),
2676
+ field: 'taskName',
2688
2677
  sorter: 2,
2689
2678
  filter: 'search',
2679
+ width: 400
2680
+ }, {
2681
+ title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
2682
+ field: 'organizationId',
2683
+ sorter: 200,
2684
+ filter: 'search',
2690
2685
  width: 200
2691
2686
  }, {
2692
- title: t('backoffice.table.externalclouds.columns.created'),
2687
+ title: t('backoffice.table.taskstatusversioning.columns.organisation'),
2688
+ field: 'organizationDisplayName',
2689
+ sorter: 200,
2690
+ filter: 'search',
2691
+ width: 200
2692
+ }, {
2693
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2694
+ field: 'user.mainEmail',
2695
+ sorter: 3,
2696
+ filter: 'search',
2697
+ width: 200
2698
+ }, {
2699
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2700
+ field: 'cancelledByUser.mainEmail',
2701
+ sorter: 3,
2702
+ filter: 'search',
2703
+ width: 200,
2704
+ hidden: true
2705
+ }, {
2706
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2707
+ field: 'progress.status',
2708
+ filter: 'search',
2709
+ width: 200
2710
+ }, {
2711
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2712
+ field: 'progress.step',
2713
+ filter: 'search',
2714
+ width: 200,
2715
+ hidden: true
2716
+ }, {
2717
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2718
+ field: 'progress.percentage',
2719
+ filter: 'search',
2720
+ width: 200,
2721
+ hidden: true
2722
+ }, {
2723
+ title: t('backoffice.table.taskstatusversioning.columns.created'),
2693
2724
  field: 'created',
2725
+ sorter: 1,
2726
+ defaultSortOrder: 'descend',
2694
2727
  type: 'unixTimeStamp',
2695
- sorter: 8
2728
+ width: 200
2729
+ }, {
2730
+ title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
2731
+ field: 'lastUpdated',
2732
+ type: 'unixTimeStamp',
2733
+ width: 200
2734
+ }, {
2735
+ title: t('backoffice.table.taskstatusversioning.columns.finished'),
2736
+ field: 'endTime',
2737
+ type: 'unixTimeStamp',
2738
+ width: 200
2739
+ }, {
2740
+ title: t('backoffice.table.taskstatusversioning.columns.server'),
2741
+ field: 'serverName',
2742
+ filter: 'search',
2743
+ width: 200
2744
+ }, {
2745
+ title: t('backoffice.table.taskstatusversioning.columns.type'),
2746
+ field: 'taskType',
2747
+ filter: 'search',
2748
+ width: 200
2696
2749
  }],
2697
2750
  filter: {
2751
+ toggle: {
2752
+ globalValue: 'relevantTypeOrganizationId',
2753
+ fields: ['organizationId'],
2754
+ label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
2755
+ labelOff: t('backoffice.table.taskstatusversioning.filter.labelOff.allorgs'),
2756
+ inverted: true,
2757
+ permission: 'backoffice_taskstatus_allorgs',
2758
+ isAnd: true
2759
+ },
2698
2760
  search: {
2699
- fields: ['_id', 'name', 'url', 'iln']
2761
+ fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.mainEmail', 'status', 'serverName', 'taskType']
2700
2762
  }
2701
2763
  },
2702
2764
  apiInterface: {
2703
2765
  read: {
2704
- list: '${authService}/externalclouds',
2766
+ list: '${adminService}/taskStatus?filter=%5B%2B%5B%7BtaskType%2Ceq%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Ceq%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Ceq%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Ceq%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Ceq%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Ceq%2CSAP_AUSP%7D%2C%7BtaskType%2Ceq%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Ceq%2CSEND_SAP_ARTICLES%7D%5D%5D',
2767
+ fields: true,
2705
2768
  filterServerSide: true
2706
2769
  },
2707
- "delete": '${authService}/externalclouds/${id}'
2770
+ "delete": '${adminService}/taskStatus?id=${id}'
2771
+ },
2772
+ mapping: {
2773
+ type: 'query',
2774
+ map: [{
2775
+ globalValue: 'selectedOrganizationId',
2776
+ targetField: 'organizationId'
2777
+ }]
2778
+ },
2779
+ deleteAction: {
2780
+ label: 'backoffice.table.taskstatusversioning.deleteAction.label.cancel',
2781
+ labelDialog: 'backoffice.table.taskstatusversioning.deleteAction.labelDialog.cancel',
2782
+ disabled: function disabled(datas) {
2783
+ return datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
2784
+ return (d === null || d === void 0 ? void 0 : d.progress.status) != 'Created';
2785
+ });
2786
+ }
2708
2787
  },
2709
2788
  rowAction: [{
2710
2789
  actionType: 'Detail',
2711
2790
  type: 'Form',
2712
- id: 'FormExternalCloudDetail',
2713
- title: t('backoffice.table.externalclouds.rowAction.title.externalcloud'),
2714
- width: '40%',
2715
- footer: true
2716
- }],
2717
- createAction: {
2718
- actionType: 'Detail',
2791
+ id: 'FormTaskStatusDetails',
2792
+ title: t('backoffice.table.taskstatusversioning.rowAction.title')
2793
+ }]
2794
+ },
2795
+ TableTaskStatusCronJobs: {
2796
+ type: 'Table',
2797
+ canRefresh: true,
2798
+ title: t('backoffice.table.taskstatusversioning.title.taskstatusversioninglist'),
2799
+ columns: [{
2800
+ title: 'ID',
2801
+ field: '_id',
2802
+ sorter: 2,
2803
+ filter: 'search',
2804
+ width: 200
2805
+ }, {
2806
+ title: t('backoffice.table.taskstatusversioning.columns.model'),
2807
+ field: 'taskName',
2808
+ sorter: 2,
2809
+ filter: 'search',
2810
+ width: 400
2811
+ }, {
2812
+ title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
2813
+ field: 'organizationId',
2814
+ sorter: 200,
2815
+ filter: 'search',
2816
+ width: 200
2817
+ }, {
2818
+ title: t('backoffice.table.taskstatusversioning.columns.organisation'),
2819
+ field: 'organizationDisplayName',
2820
+ sorter: 200,
2821
+ filter: 'search',
2822
+ width: 200
2823
+ }, {
2824
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2825
+ field: 'user.mainEmail',
2826
+ sorter: 3,
2827
+ filter: 'search',
2828
+ width: 200
2829
+ }, {
2830
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2831
+ field: 'cancelledByUser.mainEmail',
2832
+ sorter: 3,
2833
+ filter: 'search',
2834
+ width: 200,
2835
+ hidden: true
2836
+ }, {
2837
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2838
+ field: 'progress.status',
2839
+ filter: 'search',
2840
+ width: 200
2841
+ }, {
2842
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2843
+ field: 'progress.step',
2844
+ filter: 'search',
2845
+ width: 200,
2846
+ hidden: true
2847
+ }, {
2848
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2849
+ field: 'progress.percentage',
2850
+ filter: 'search',
2851
+ width: 200,
2852
+ hidden: true
2853
+ }, {
2854
+ title: t('backoffice.table.taskstatusversioning.columns.created'),
2855
+ field: 'created',
2856
+ sorter: 1,
2857
+ defaultSortOrder: 'descend',
2858
+ type: 'unixTimeStamp',
2859
+ width: 200
2860
+ }, {
2861
+ title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
2862
+ field: 'lastUpdated',
2863
+ type: 'unixTimeStamp',
2864
+ width: 200
2865
+ }, {
2866
+ title: t('backoffice.table.taskstatusversioning.columns.finished'),
2867
+ field: 'endTime',
2868
+ type: 'unixTimeStamp',
2869
+ width: 200
2870
+ }, {
2871
+ title: t('backoffice.table.taskstatusversioning.columns.server'),
2872
+ field: 'serverName',
2873
+ filter: 'search',
2874
+ width: 200
2875
+ }, {
2876
+ title: t('backoffice.table.taskstatusversioning.columns.type'),
2877
+ field: 'taskType',
2878
+ filter: 'search',
2879
+ width: 200
2880
+ }],
2881
+ filter: {
2882
+ toggle: {
2883
+ globalValue: 'relevantTypeOrganizationId',
2884
+ fields: ['organizationId'],
2885
+ label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
2886
+ labelOff: t('backoffice.table.taskstatusversioning.filter.labelOff.allorgs'),
2887
+ inverted: true,
2888
+ permission: 'backoffice_taskstatus_allorgs',
2889
+ isAnd: true
2890
+ },
2891
+ search: {
2892
+ fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.mainEmail', 'status', 'serverName', 'taskType']
2893
+ }
2894
+ },
2895
+ apiInterface: {
2896
+ read: {
2897
+ list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Ceq%2CCRON%7D%5D',
2898
+ fields: true,
2899
+ filterServerSide: true
2900
+ },
2901
+ "delete": '${adminService}/taskStatus?id=${id}'
2902
+ },
2903
+ mapping: {
2904
+ type: 'query',
2905
+ map: [{
2906
+ globalValue: 'selectedOrganizationId',
2907
+ targetField: 'organizationId'
2908
+ }]
2909
+ },
2910
+ deleteAction: {
2911
+ label: 'backoffice.table.taskstatusversioning.deleteAction.label.cancel',
2912
+ labelDialog: 'backoffice.table.taskstatusversioning.deleteAction.labelDialog.cancel',
2913
+ disabled: function disabled(datas) {
2914
+ return datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
2915
+ return (d === null || d === void 0 ? void 0 : d.progress.status) != 'Created';
2916
+ });
2917
+ }
2918
+ },
2919
+ rowAction: [{
2920
+ actionType: 'Detail',
2921
+ type: 'Form',
2922
+ id: 'FormTaskStatusDetails',
2923
+ title: t('backoffice.table.taskstatusversioning.rowAction.title')
2924
+ }]
2925
+ },
2926
+ TableTaskStatusOthers: {
2927
+ type: 'Table',
2928
+ canRefresh: true,
2929
+ title: t('backoffice.table.taskstatusversioning.title.taskstatusothers'),
2930
+ columns: [{
2931
+ title: 'ID',
2932
+ field: '_id',
2933
+ sorter: 2,
2934
+ filter: 'search',
2935
+ width: 200
2936
+ }, {
2937
+ title: t('backoffice.table.taskstatusversioning.columns.model'),
2938
+ field: 'taskName',
2939
+ sorter: 2,
2940
+ filter: 'search',
2941
+ width: 400
2942
+ }, {
2943
+ title: t('backoffice.table.taskstatusversioning.columns.organisationid'),
2944
+ field: 'organizationId',
2945
+ sorter: 200,
2946
+ filter: 'search',
2947
+ width: 200
2948
+ }, {
2949
+ title: t('backoffice.table.taskstatusversioning.columns.organisation'),
2950
+ field: 'organizationDisplayName',
2951
+ sorter: 200,
2952
+ filter: 'search',
2953
+ width: 200
2954
+ }, {
2955
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2956
+ field: 'user.mainEmail',
2957
+ sorter: 3,
2958
+ filter: 'search',
2959
+ width: 200
2960
+ }, {
2961
+ title: t('backoffice.table.taskstatusversioning.columns.user'),
2962
+ field: 'cancelledByUser.mainEmail',
2963
+ sorter: 3,
2964
+ filter: 'search',
2965
+ width: 200,
2966
+ hidden: true
2967
+ }, {
2968
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2969
+ field: 'progress.status',
2970
+ filter: 'search',
2971
+ width: 200
2972
+ }, {
2973
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2974
+ field: 'progress.step',
2975
+ filter: 'search',
2976
+ width: 200,
2977
+ hidden: true
2978
+ }, {
2979
+ title: t('backoffice.table.taskstatusversioning.columns.status'),
2980
+ field: 'progress.percentage',
2981
+ filter: 'search',
2982
+ width: 200,
2983
+ hidden: true
2984
+ }, {
2985
+ title: t('backoffice.table.taskstatusversioning.columns.created'),
2986
+ field: 'created',
2987
+ sorter: 1,
2988
+ defaultSortOrder: 'descend',
2989
+ type: 'unixTimeStamp',
2990
+ width: 200
2991
+ }, {
2992
+ title: t('backoffice.table.taskstatusversioning.columns.lastUpdated'),
2993
+ field: 'lastUpdated',
2994
+ type: 'unixTimeStamp',
2995
+ width: 200
2996
+ }, {
2997
+ title: t('backoffice.table.taskstatusversioning.columns.finished'),
2998
+ field: 'endTime',
2999
+ type: 'unixTimeStamp',
3000
+ width: 200
3001
+ }, {
3002
+ title: t('backoffice.table.taskstatusversioning.columns.server'),
3003
+ field: 'serverName',
3004
+ filter: 'search',
3005
+ width: 200
3006
+ }, {
3007
+ title: t('backoffice.table.taskstatusversioning.columns.type'),
3008
+ field: 'taskType',
3009
+ filter: 'search',
3010
+ width: 200
3011
+ }],
3012
+ filter: {
3013
+ toggle: {
3014
+ globalValue: 'relevantTypeOrganizationId',
3015
+ fields: ['organizationId'],
3016
+ label: t('backoffice.table.taskstatusversioning.filter.label.allorgs'),
3017
+ labelOff: t('backoffice.table.taskstatusversioning.filter.labelOff.allorgs'),
3018
+ inverted: true,
3019
+ permission: 'backoffice_taskstatus_allorgs',
3020
+ isAnd: true
3021
+ },
3022
+ search: {
3023
+ fields: ['_id', 'progress.dataItems', 'taskName', 'organizationId', 'user.mainEmail', 'status', 'serverName', 'taskType']
3024
+ }
3025
+ },
3026
+ apiInterface: {
3027
+ read: {
3028
+ list: '${adminService}/taskStatus?filter=%5B%7BtaskType%2Cne%2CSAP_XML_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_DROPDOWNITEMS%7D%2C%7BtaskType%2Cne%2CSAP_TEMPLATEARTICLES%7D%2C%7BtaskType%2Cne%2CSAP_ARTICLE_IMPORT%7D%2C%7BtaskType%2Cne%2CSAP_SUPPLIERS%7D%2C%7BtaskType%2Cne%2CSAP_PRODUCTGROUPS%7D%2C%7BtaskType%2Cne%2CSAP_AUSP%7D%2C%7BtaskType%2Cne%2CPIM_SEND_CLASSIFICATION%7D%2C%7BtaskType%2Cne%2CSEND_SAP_ARTICLES%7D%2C%7BtaskType%2Cne%2CCRON%7D%2C%7BtaskType%2Cne%2CRETAIL_VERSIONING%7D%2C%7BtaskType%2Cne%2CSUPPLIER_VERSIONING%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_EXPORT%7D%2C%7BtaskType%2Cne%2CBACKOFFICE_CE_IMPORT%7D%5D',
3029
+ fields: true,
3030
+ filterServerSide: true
3031
+ },
3032
+ "delete": '${adminService}/taskStatus?id=${id}'
3033
+ },
3034
+ mapping: {
3035
+ type: 'query',
3036
+ map: [{
3037
+ globalValue: 'selectedOrganizationId',
3038
+ targetField: 'organizationId'
3039
+ }]
3040
+ },
3041
+ deleteAction: {
3042
+ label: 'backoffice.table.taskstatusversioning.deleteAction.label.cancel',
3043
+ labelDialog: 'backoffice.table.taskstatusversioning.deleteAction.labelDialog.cancel',
3044
+ disabled: function disabled(datas) {
3045
+ return datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
3046
+ return (d === null || d === void 0 ? void 0 : d.progress.status) != 'Created';
3047
+ });
3048
+ }
3049
+ },
3050
+ rowAction: [{
3051
+ actionType: 'Detail',
3052
+ type: 'Form',
3053
+ id: 'FormTaskStatusDetails',
3054
+ title: t('backoffice.table.taskstatusversioning.rowAction.title')
3055
+ }]
3056
+ },
3057
+ FormTaskStatusDetails: {
3058
+ type: 'Form',
3059
+ title: t('backoffice.form.taskstatus.title'),
3060
+ triggerRerender: true,
3061
+ disableSave: true,
3062
+ items: [{
3063
+ name: '_id',
3064
+ label: t('backoffice.form.taskstatus._id'),
3065
+ type: 'input',
3066
+ readonly: true
3067
+ }, {
3068
+ name: 'taskName',
3069
+ label: t('backoffice.form.taskstatus.taskName'),
3070
+ type: 'input',
3071
+ readonly: true
3072
+ }, {
3073
+ name: 'created',
3074
+ label: t('backoffice.form.taskstatus.created'),
3075
+ type: 'dateinput',
3076
+ disabled: true
3077
+ }, {
3078
+ name: 'startTime',
3079
+ label: t('backoffice.form.taskstatus.startTime'),
3080
+ type: 'dateinput',
3081
+ readonly: true
3082
+ }, {
3083
+ name: 'endTime',
3084
+ label: t('backoffice.form.taskstatus.endTime'),
3085
+ type: 'dateinput',
3086
+ readonly: true
3087
+ }, {
3088
+ name: 'lastUpdated',
3089
+ label: t('backoffice.form.taskstatus.lastUpdated'),
3090
+ type: 'dateinput',
3091
+ readonly: true
3092
+ }, {
3093
+ name: ['user', 'mainEmail'],
3094
+ label: t('backoffice.form.taskstatus.user'),
3095
+ type: 'input',
3096
+ readonly: true
3097
+ }, {
3098
+ name: 'organizationDisplayName',
3099
+ label: t('backoffice.form.taskstatus.organizationDisplayName'),
3100
+ type: 'input',
3101
+ readonly: true
3102
+ }, {
3103
+ name: 'taskType',
3104
+ label: t('backoffice.form.taskstatus.taskType'),
3105
+ type: 'input',
3106
+ readonly: true
3107
+ }, {
3108
+ label: t('backoffice.form.taskstatus.progress.status'),
3109
+ name: ['progress', 'status'],
3110
+ type: 'input',
3111
+ readonly: true
3112
+ }, {
3113
+ name: ['progress', 'percentage'],
3114
+ label: t('backoffice.form.taskstatus.progress.percentage'),
3115
+ type: 'progress',
3116
+ readonly: true
3117
+ }, {
3118
+ name: ['progress', 'step'],
3119
+ label: t('backoffice.form.taskstatus.progress.step'),
3120
+ type: 'input',
3121
+ readonly: true
3122
+ }, {
3123
+ name: ['cancelledByUser', 'mainEmail'],
3124
+ label: t('backoffice.form.taskstatus.cancelledByUser.mainEmail'),
3125
+ type: 'input',
3126
+ readonly: true
3127
+ }, {
3128
+ name: 'error',
3129
+ label: t('backoffice.form.taskstatus.error'),
3130
+ type: 'input',
3131
+ readonly: true
3132
+ }, {
3133
+ name: 'warning',
3134
+ label: t('backoffice.form.taskstatus.warning'),
3135
+ type: 'input',
3136
+ readonly: true
3137
+ }]
3138
+ },
3139
+ TableClientRelations: {
3140
+ type: 'Table',
3141
+ canRefresh: true,
3142
+ title: t('backoffice.table.clientrelations.title'),
3143
+ columns: [{
3144
+ title: t('backoffice.table.clientrelations.columns.name'),
3145
+ field: 'name',
3146
+ defaultSortOrder: 'ascend',
3147
+ sorter: 1,
3148
+ filter: 'search',
3149
+ width: 200
3150
+ }, {
3151
+ title: t('backoffice.table.clientrelations.columns.nameSource'),
3152
+ field: 'nameSource',
3153
+ sorter: 1,
3154
+ filter: 'search',
3155
+ width: 200
3156
+ }, {
3157
+ title: t('backoffice.table.clientrelations.columns.nameTarget'),
3158
+ field: 'nameTarget',
3159
+ sorter: 2,
3160
+ filter: 'search',
3161
+ width: 200
3162
+ }, {
3163
+ title: t('backoffice.table.clientrelations.columns.externalCloudName'),
3164
+ field: 'externalCloudName',
3165
+ sorter: 3,
3166
+ filter: 'search',
3167
+ width: 200
3168
+ }, {
3169
+ title: t('backoffice.table.clientrelations.columns.state'),
3170
+ field: 'state',
3171
+ sorter: 4,
3172
+ filter: 'search',
3173
+ width: 100
3174
+ }, {
3175
+ title: t('backoffice.table.clientrelations.columns.created'),
3176
+ field: 'created',
3177
+ sorter: 5,
3178
+ width: 200,
3179
+ type: 'unixTimeStamp'
3180
+ }, {
3181
+ title: t('backoffice.table.clientrelations.columns.lastUpdated'),
3182
+ field: 'lastUpdated',
3183
+ sorter: 6,
3184
+ width: 200,
3185
+ type: 'unixTimeStamp'
3186
+ }, {
3187
+ title: 'ID',
3188
+ field: '_id',
3189
+ sorter: 7,
3190
+ width: 50,
3191
+ hidden: true
3192
+ }, {
3193
+ title: t('backoffice.table.clientrelations.columns.externalCloudId'),
3194
+ field: 'externalCloudId',
3195
+ sorter: 8,
3196
+ width: 50,
3197
+ hidden: true
3198
+ }, {
3199
+ title: t('backoffice.table.clientrelations.columns.type'),
3200
+ field: 'type',
3201
+ sorter: 9,
3202
+ width: 50,
3203
+ hidden: true
3204
+ }],
3205
+ apiInterface: {
3206
+ read: {
3207
+ list: '${authService}/clientrelations',
3208
+ filterServerSide: true
3209
+ },
3210
+ "delete": {
3211
+ url: '${authService}/clientrelation/${_id}/type/${type}',
3212
+ applyIdField: false
3213
+ }
3214
+ },
3215
+ onError: {
3216
+ AUTH_0030: t('errorcodes._source.labels.error.AUTH_0030'),
3217
+ AUTH_0031: t('errorcodes._source.labels.error.AUTH_0031')
3218
+ },
3219
+ deleteMapping: {
3220
+ type: 'query',
3221
+ map: [{
3222
+ sourceField: '_id',
3223
+ targetField: '_id'
3224
+ }, {
3225
+ targetField: 'type',
3226
+ sourceField: 'type'
3227
+ }]
3228
+ },
3229
+ createAction: {
3230
+ actionType: 'Detail',
3231
+ label: t('backoffice.table.clientrelations.createAction.label.createnewclientrelation'),
3232
+ title: t('backoffice.table.clientrelations.createAction.title.ewclientrelation'),
3233
+ id: 'FromCreateClientRelation',
3234
+ type: 'Form',
3235
+ apiInterface: {
3236
+ create: '${authService}/clientrelations'
3237
+ }
3238
+ },
3239
+ mapping: {
3240
+ type: 'query',
3241
+ map: [{
3242
+ sourceField: 'nameSource',
3243
+ targetField: 'nameSource'
3244
+ }, {
3245
+ sourceField: 'nameTarget',
3246
+ targetField: 'nameTarget'
3247
+ }]
3248
+ },
3249
+ filter: {
3250
+ toggle: {
3251
+ globalValue: 'relevantTypeOrganizationId',
3252
+ fields: ['sourceOrganizationId', 'targetOrganizationId'],
3253
+ label: t('backoffice.table.clientrelations.filter.label.allorgs'),
3254
+ labelOff: t('backoffice.table.clientrelations.filter.labelOff.allorgs'),
3255
+ inverted: true
3256
+ },
3257
+ search: {
3258
+ fields: ['nameSource', 'nameTarget', 'externalCloudName', 'state', 'name']
3259
+ }
3260
+ },
3261
+ rowAction: [{
3262
+ actionType: 'Detail',
3263
+ type: 'Form',
3264
+ id: 'FormClientRelationDetails',
3265
+ title: t('backoffice.edit')
3266
+ }]
3267
+ },
3268
+ FormClientRelationDetails: {
3269
+ type: 'Form',
3270
+ title: t('backoffice.form.createclientrelation.title'),
3271
+ apiInterface: {
3272
+ update: {
3273
+ url: '${authService}/clientrelation/{_id}/type/{type}',
3274
+ method: 'PATCH',
3275
+ jsonPatch: true
3276
+ }
3277
+ },
3278
+ triggerRerender: true,
3279
+ items: [{
3280
+ name: 'name',
3281
+ label: t('backoffice.form.createclientrelation.name'),
3282
+ type: 'input',
3283
+ required: true
3284
+ }, {
3285
+ label: t('backoffice.form.createclientrelation.aktivate'),
3286
+ name: 'state',
3287
+ type: 'radio',
3288
+ optionType: 'button',
3289
+ options: [{
3290
+ label: 'INACTIVE',
3291
+ value: 'INACTIVE'
3292
+ }, {
3293
+ label: 'ACTIVE',
3294
+ value: 'ACTIVE'
3295
+ }],
3296
+ required: false
3297
+ }]
3298
+ },
3299
+ TableExternalClouds: {
3300
+ type: 'Table',
3301
+ canRefresh: true,
3302
+ title: t('backoffice.table.externalclouds.title.listexternalclouds'),
3303
+ columns: [{
3304
+ title: t('backoffice.table.externalclouds.title.listexternalclouds'),
3305
+ field: 'name',
3306
+ sorter: 1,
3307
+ filter: 'search',
3308
+ width: 200
3309
+ }, {
3310
+ title: 'Base URL',
3311
+ field: 'url',
3312
+ sorter: 2,
3313
+ filter: 'search',
3314
+ width: 200
3315
+ }, {
3316
+ title: t('backoffice.table.externalclouds.columns.created'),
3317
+ field: 'created',
3318
+ type: 'unixTimeStamp',
3319
+ sorter: 8
3320
+ }],
3321
+ filter: {
3322
+ search: {
3323
+ fields: ['_id', 'name', 'url', 'iln']
3324
+ }
3325
+ },
3326
+ apiInterface: {
3327
+ read: {
3328
+ list: '${authService}/externalclouds',
3329
+ filterServerSide: true
3330
+ },
3331
+ "delete": '${authService}/externalclouds/${id}'
3332
+ },
3333
+ rowAction: [{
3334
+ actionType: 'Detail',
3335
+ type: 'Form',
3336
+ id: 'FormExternalCloudDetail',
3337
+ title: t('backoffice.table.externalclouds.rowAction.title.externalcloud'),
3338
+ width: '40%',
3339
+ footer: true
3340
+ }],
3341
+ createAction: {
3342
+ actionType: 'Detail',
2719
3343
  label: t('backoffice.table.externalclouds.createaction.title.externalcloud'),
2720
3344
  id: 'FormExternalCloudDetail',
2721
3345
  type: 'Form',
@@ -3121,162 +3745,50 @@ function loadConfiguration(t, root, config, lang) {
3121
3745
  sourceField: 'sessionGuID',
3122
3746
  targetField: 'sessionGuID'
3123
3747
  }, {
3124
- sourceField: 'newData',
3125
- targetField: 'newData'
3126
- }]
3127
- },
3128
- downloadAction: {
3129
- actionType: 'Download',
3130
- id: 'DownloadAction',
3131
- rule: [{
3132
- match: {
3133
- sourceField: 'catalogItem',
3134
- value: undefined
3135
- }
3136
- }],
3137
- download: [{
3138
- type: 'prefab',
3139
- prefab: 'connectionFileRetail',
3140
- url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
3141
- }, {
3142
- type: 'url',
3143
- url: 'https://cdn.diva-portal.com/static/xlsx/RETAIL-p.xlsx'
3144
- }]
3145
- }
3146
- },
3147
- GroupContentItems: {
3148
- type: 'Group',
3149
- items: [{
3150
- id: 'ContentItems',
3151
- type: 'Table'
3152
- }, {
3153
- id: 'ContentItemsTemplate',
3154
- type: 'Table'
3155
- }],
3156
- setSelectedOrganization: true
3157
- },
3158
- ContentItems: {
3159
- title: t('backoffice.table.contentitems.title'),
3160
- type: 'Table',
3161
- canRefresh: true,
3162
- pagination: {
3163
- pageSize: 50
3164
- },
3165
- copyAction: {
3166
- actionType: 'Detail',
3167
- type: 'Form',
3168
- id: 'FormEditContentItem',
3169
- title: t('backoffice.table.contentItem.copyAction.title'),
3170
- label: t('backoffice.table.services.copyAction.label'),
3171
- disableOnMultiselect: true,
3172
- mapping: {
3173
- type: 'body',
3174
- map: [{
3175
- targetField: 'content',
3176
- sourceField: 'content'
3177
- }, {
3178
- targetField: 'description',
3179
- sourceField: 'description'
3180
- }, {
3181
- targetField: 'organizationId',
3182
- globalValue: 'organizationId'
3183
- }]
3184
- }
3185
- },
3186
- deleteAction: {
3187
- disabled: function disabled(datas) {
3188
- return (datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
3189
- return !d.organizationId;
3190
- })) && !root.actions.userHasPermission('backoffice_delete_contentitem_template');
3191
- }
3192
- },
3193
- columns: [{
3194
- title: t('backoffice.table.roles.columns.description'),
3195
- field: 'description',
3196
- sorter: 1,
3197
- filter: 'advanced',
3198
- width: 500
3199
- }, {
3200
- title: t('backoffice.table.roles.columns.supplier'),
3201
- field: 'supplierName',
3202
- sorter: 1,
3203
- filter: 'advanced',
3204
- width: 150
3205
- }, {
3206
- title: t('backoffice.table.roles.columns.catalogName'),
3207
- field: 'catalogName',
3208
- sorter: 1,
3209
- filter: 'advanced',
3210
- width: 150
3211
- }, {
3212
- title: t('backoffice._id'),
3213
- field: '_id',
3214
- sorter: 1,
3215
- filter: 'advanced',
3216
- width: 100
3217
- }, {
3218
- title: t('backoffice.table.views.lastUpdated'),
3219
- field: 'lastUpdated',
3220
- type: 'unixTimeStamp',
3221
- sorter: 1,
3222
- filter: 'advanced',
3223
- width: 200
3224
- }, {
3225
- title: t('backoffice.table.views.lastUpdatedBy'),
3226
- field: 'lastUpdatedBy_displayText',
3227
- sorter: 1,
3228
- filter: 'advanced',
3229
- width: 150
3230
- }, {
3231
- title: 'backoffice.content',
3232
- field: 'content',
3233
- hidden: true
3234
- }, {
3235
- title: t('backoffice.table.medien.columns.title.organizationId'),
3236
- field: 'organizationId',
3237
- sorter: 1,
3238
- filter: 'advanced',
3239
- width: 150
3240
- }],
3241
- rowAction: [{
3242
- actionType: 'Detail',
3243
- disabled: function disabled(data) {
3244
- return !(data !== null && data !== void 0 && data.organizationId) && !root.actions.userHasPermission('backoffice_edit_contentitem_template');
3245
- },
3246
- disableOnMultiselect: true,
3247
- type: 'Form',
3248
- id: 'FormEditContentItem',
3249
- title: t('backoffice.table.contentItem.edit'),
3250
- label: t('backoffice.edit')
3251
- }, {
3252
- disableOnMultiselect: true,
3253
- actionType: 'Detail',
3254
- permission: 'backoffice_edit_contentitem_template',
3255
- type: 'JsonEditor',
3256
- label: t('backoffice.table.contentItem.editjson'),
3257
- id: 'JsonEditorEditContentItem',
3258
- title: t('backoffice.table.contentItem.edit')
3259
- }],
3260
- apiInterface: {
3261
- read: {
3262
- list: '${catalogService}/contentItems',
3263
- filterServerSide: true
3264
- },
3265
- "delete": '${catalogService}/contentItems/${id}'
3748
+ sourceField: 'newData',
3749
+ targetField: 'newData'
3750
+ }]
3751
+ },
3752
+ downloadAction: {
3753
+ actionType: 'Download',
3754
+ id: 'DownloadAction',
3755
+ rule: [{
3756
+ match: {
3757
+ sourceField: 'catalogItem',
3758
+ value: undefined
3759
+ }
3760
+ }],
3761
+ download: [{
3762
+ type: 'prefab',
3763
+ prefab: 'connectionFileRetail',
3764
+ url: 'https://gwc-app-p-app-api3.azurewebsites.net/odataretail'
3765
+ }, {
3766
+ type: 'url',
3767
+ url: 'https://cdn.diva-portal.com/static/xlsx/RETAIL-p.xlsx'
3768
+ }]
3266
3769
  }
3267
3770
  },
3268
- ContentItemsTemplate: {
3269
- title: t('backoffice.table.contentitemstemplate.title'),
3771
+ ContentItems: {
3772
+ title: t('backoffice.table.contentitems.title'),
3270
3773
  type: 'Table',
3271
3774
  canRefresh: true,
3272
3775
  pagination: {
3273
3776
  pageSize: 50
3274
3777
  },
3778
+ filter: {
3779
+ toggle: {
3780
+ fields: ['onlyTemplates'],
3781
+ label: t('backoffice.table.contentitemstemplate.title'),
3782
+ labelOff: t('backoffice.table.contentitems.toggleOff'),
3783
+ inQuery: true
3784
+ }
3785
+ },
3275
3786
  copyAction: {
3276
3787
  actionType: 'Detail',
3277
3788
  type: 'Form',
3278
3789
  id: 'FormEditContentItem',
3279
3790
  disableOnMultiselect: true,
3791
+ resetToggleAfter: true,
3280
3792
  title: t('backoffice.table.contentItem.copyAction.title'),
3281
3793
  label: t('backoffice.table.services.copyAction.label'),
3282
3794
  mapping: {
@@ -3284,6 +3796,12 @@ function loadConfiguration(t, root, config, lang) {
3284
3796
  map: [{
3285
3797
  targetField: 'content',
3286
3798
  sourceField: 'content'
3799
+ }, {
3800
+ targetField: 'catalogName',
3801
+ sourceField: 'catalogName'
3802
+ }, {
3803
+ targetField: 'supplierName',
3804
+ sourceField: 'supplierName'
3287
3805
  }, {
3288
3806
  targetField: 'description',
3289
3807
  sourceField: 'description'
@@ -3304,7 +3822,7 @@ function loadConfiguration(t, root, config, lang) {
3304
3822
  deleteAction: {
3305
3823
  disabled: function disabled(datas) {
3306
3824
  return (datas === null || datas === void 0 ? void 0 : datas.find(function (d) {
3307
- return !d.organizationId;
3825
+ return !(d !== null && d !== void 0 && d.organizationId);
3308
3826
  })) && !root.actions.userHasPermission('backoffice_delete_contentitem_template');
3309
3827
  }
3310
3828
  },
@@ -3315,28 +3833,47 @@ function loadConfiguration(t, root, config, lang) {
3315
3833
  filter: 'advanced',
3316
3834
  width: 500
3317
3835
  }, {
3318
- title: t('backoffice.table.views.lastUpdatedBy'),
3319
- field: 'lastUpdatedBy_displayText',
3836
+ title: t('backoffice.table.roles.columns.supplier'),
3837
+ field: 'supplierName',
3838
+ sorter: 1,
3839
+ filter: 'advanced',
3840
+ width: 150
3841
+ }, {
3842
+ title: t('backoffice.table.roles.columns.catalogName'),
3843
+ field: 'catalogName',
3320
3844
  sorter: 1,
3321
3845
  filter: 'advanced',
3322
3846
  width: 150
3847
+ }, {
3848
+ title: t('backoffice._id'),
3849
+ field: '_id',
3850
+ sorter: 1,
3851
+ filter: 'advanced',
3852
+ width: 100
3323
3853
  }, {
3324
3854
  title: t('backoffice.table.views.lastUpdated'),
3325
3855
  field: 'lastUpdated',
3856
+ defaultSortOrder: 'descend',
3326
3857
  type: 'unixTimeStamp',
3327
3858
  sorter: 1,
3328
3859
  filter: 'advanced',
3329
3860
  width: 200
3861
+ }, {
3862
+ title: t('backoffice.table.views.lastUpdatedBy'),
3863
+ field: 'lastUpdatedBy_displayText',
3864
+ sorter: 1,
3865
+ filter: 'advanced',
3866
+ width: 150
3330
3867
  }, {
3331
3868
  title: 'backoffice.content',
3332
3869
  field: 'content',
3333
3870
  hidden: true
3334
3871
  }, {
3335
- title: t('backoffice._id'),
3336
- field: '_id',
3872
+ title: t('backoffice.table.medien.columns.title.organizationId'),
3873
+ field: 'organizationId',
3337
3874
  sorter: 1,
3338
3875
  filter: 'advanced',
3339
- width: 100
3876
+ width: 150
3340
3877
  }],
3341
3878
  rowAction: [{
3342
3879
  actionType: 'Detail',
@@ -3369,7 +3906,7 @@ function loadConfiguration(t, root, config, lang) {
3369
3906
  }],
3370
3907
  apiInterface: {
3371
3908
  read: {
3372
- list: '${catalogService}/contentItems?onlyTemplates=true',
3909
+ list: '${catalogService}/contentItems',
3373
3910
  filterServerSide: true
3374
3911
  },
3375
3912
  "delete": '${catalogService}/contentItems/${id}'
@@ -7624,6 +8161,7 @@ function loadConfiguration(t, root, config, lang) {
7624
8161
  }, {
7625
8162
  name: 'mediaItemImage',
7626
8163
  type: 'media',
8164
+ hideTrash: true,
7627
8165
  allowedTypes: ['image/*'],
7628
8166
  mediaItemRefField: 'mediaItemRefImage',
7629
8167
  urlField: 'image',
@@ -7644,6 +8182,7 @@ function loadConfiguration(t, root, config, lang) {
7644
8182
  }, {
7645
8183
  name: 'mediaItemVideo',
7646
8184
  type: 'media',
8185
+ hideTrash: true,
7647
8186
  allowedTypes: ['video/*'],
7648
8187
  mediaItemRefField: 'mediaItemRefVideo',
7649
8188
  urlField: 'video',
@@ -8214,6 +8753,9 @@ function loadConfiguration(t, root, config, lang) {
8214
8753
  options: [{
8215
8754
  value: 'HQ',
8216
8755
  label: 'HQ'
8756
+ }, {
8757
+ value: 'MASTER',
8758
+ label: 'MASTER'
8217
8759
  }, {
8218
8760
  value: 'SPIN',
8219
8761
  label: 'SPIN'
@@ -8403,7 +8945,7 @@ function loadConfiguration(t, root, config, lang) {
8403
8945
  label: t('backoffice.form.renderjob.itemSelector'),
8404
8946
  mode: 'single',
8405
8947
  type: 'select',
8406
- values: ['HQ', 'AR', 'SPIN', 'CUTOUT'],
8948
+ values: ['HQ', 'AR', 'MASTER', 'SPIN', 'CUTOUT'],
8407
8949
  readonly: {
8408
8950
  field: 'state',
8409
8951
  op: 'gt',
@@ -8514,7 +9056,7 @@ function loadConfiguration(t, root, config, lang) {
8514
9056
  mode: 'single',
8515
9057
  type: 'select',
8516
9058
  marker: true,
8517
- values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx'],
9059
+ values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx', 'blend'],
8518
9060
  readonly: {
8519
9061
  field: 'state',
8520
9062
  op: 'gt',
@@ -8758,6 +9300,148 @@ function loadConfiguration(t, root, config, lang) {
8758
9300
  op: 'gt',
8759
9301
  value: 3
8760
9302
  }
9303
+ }, {
9304
+ name: 'fileFormat',
9305
+ label: t('backoffice.form.renderjob.items.fileFormat'),
9306
+ mode: 'single',
9307
+ type: 'select',
9308
+ marker: true,
9309
+ values: ['glb', 'gltf', 'fbx', 'blend'],
9310
+ readonly: {
9311
+ field: 'state',
9312
+ op: 'gt',
9313
+ value: 3
9314
+ },
9315
+ placeholder: 'z.B.: jpg, png, tif'
9316
+ }, {
9317
+ name: 'fileName',
9318
+ label: t('backoffice.form.renderjob.items.fileName'),
9319
+ type: 'input',
9320
+ readonly: {
9321
+ field: 'state',
9322
+ op: 'gt',
9323
+ value: 3
9324
+ },
9325
+ placeholder: 'z.B.: testrendering',
9326
+ dynamic: {
9327
+ seperator: '_',
9328
+ fields: ['job', 'divaNr', 'divaNrVariantId']
9329
+ }
9330
+ }, {
9331
+ name: 'group',
9332
+ label: t('backoffice.form.renderjob.items.group'),
9333
+ type: 'input',
9334
+ readonly: {
9335
+ field: 'state',
9336
+ op: 'gt',
9337
+ value: 3
9338
+ }
9339
+ }, {
9340
+ name: 'product',
9341
+ label: t('backoffice.form.renderjob.items.product'),
9342
+ type: 'input',
9343
+ readonly: true
9344
+ }, {
9345
+ name: 'organizationName',
9346
+ label: t('backoffice.form.renderjob.items.organizationName'),
9347
+ type: 'input',
9348
+ readonly: true
9349
+ }, {
9350
+ name: 'organization',
9351
+ label: t('backoffice.form.renderjob.items.organization'),
9352
+ type: 'input',
9353
+ readonly: true
9354
+ }, {
9355
+ name: 'createdByName',
9356
+ label: t('backoffice.form.renderjob.items.createdByName'),
9357
+ type: 'input',
9358
+ readonly: true
9359
+ }, {
9360
+ name: 'createdByEmail',
9361
+ label: t('backoffice.form.renderjob.items.createdByEmail'),
9362
+ type: 'input',
9363
+ readonly: true
9364
+ }, {
9365
+ name: 'createdBy',
9366
+ label: t('backoffice.form.renderjob.items.createdBy'),
9367
+ type: 'input',
9368
+ readonly: true
9369
+ }], [{
9370
+ name: '_id',
9371
+ label: 'ID',
9372
+ type: 'input',
9373
+ readonly: true
9374
+ }, {
9375
+ name: 'debugUser',
9376
+ label: t('backoffice.form.renderjob.items.debugUser'),
9377
+ type: 'checkbox',
9378
+ valueOnEnabled: {
9379
+ globalValue: 'userId'
9380
+ }
9381
+ }, {
9382
+ name: 'state',
9383
+ label: t('backoffice.form.renderjob.items.state'),
9384
+ type: 'display',
9385
+ translationPrefix: 'renderjob.state',
9386
+ readonly: true
9387
+ }, {
9388
+ name: 'productName',
9389
+ label: t('backoffice.form.renderjob.items.productName'),
9390
+ type: 'input',
9391
+ readonly: true
9392
+ }, {
9393
+ name: 'functionType',
9394
+ label: t('backoffice.form.renderjob.items.functionType'),
9395
+ type: 'select',
9396
+ mode: 'single',
9397
+ readonly: {
9398
+ field: 'state',
9399
+ op: 'gt',
9400
+ value: 3
9401
+ },
9402
+ allowClear: true,
9403
+ values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
9404
+ }, {
9405
+ name: 'priority',
9406
+ label: t('backoffice.form.renderjob.items.priority'),
9407
+ readonly: {
9408
+ field: 'state',
9409
+ op: 'gt',
9410
+ value: 3
9411
+ }
9412
+ }, {
9413
+ label: t('backoffice.form.renderjob.items.dracoCompression'),
9414
+ name: 'dracoCompression',
9415
+ type: 'checkbox',
9416
+ readonly: {
9417
+ field: 'state',
9418
+ op: 'gt',
9419
+ value: 3
9420
+ }
9421
+ }, {
9422
+ label: t('backoffice.form.renderjob.items.originPosition'),
9423
+ name: 'originPosition',
9424
+ type: 'select',
9425
+ mode: 'single',
9426
+ translationPrefix: 'backoffice.form.renderjob.items',
9427
+ values: ['leftbackbottom', 'center'],
9428
+ readonly: {
9429
+ field: 'state',
9430
+ op: 'gt',
9431
+ value: 3
9432
+ }
9433
+ }, {
9434
+ name: 'engine',
9435
+ label: t('backoffice.form.renderjob.items.engine'),
9436
+ type: 'select',
9437
+ mode: 'single',
9438
+ marker: true,
9439
+ values: ['blender', 'unity', 'max'],
9440
+ readonly: {
9441
+ field: 'state',
9442
+ op: 'gt',
9443
+ value: 3
9444
+ }
8761
9445
  }, {
8762
9446
  name: 'arBakedMapsResolution',
8763
9447
  label: t('backoffice.form.renderjob.items.arBakedMapsResolution'),
@@ -8775,7 +9459,7 @@ function loadConfiguration(t, root, config, lang) {
8775
9459
  mode: 'single',
8776
9460
  type: 'select',
8777
9461
  marker: true,
8778
- values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx'],
9462
+ values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx', 'blend'],
8779
9463
  readonly: {
8780
9464
  field: 'state',
8781
9465
  op: 'gt',
@@ -8910,7 +9594,7 @@ function loadConfiguration(t, root, config, lang) {
8910
9594
  mode: 'single',
8911
9595
  type: 'select',
8912
9596
  marker: true,
8913
- values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx'],
9597
+ values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx', 'blend'],
8914
9598
  readonly: {
8915
9599
  field: 'state',
8916
9600
  op: 'gt',
@@ -9095,7 +9779,7 @@ function loadConfiguration(t, root, config, lang) {
9095
9779
  mode: 'single',
9096
9780
  type: 'select',
9097
9781
  marker: true,
9098
- values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx'],
9782
+ values: ['png', 'jpg', 'tif', 'glb', 'gltf', 'fbx', 'blend'],
9099
9783
  readonly: true,
9100
9784
  placeholder: 'z.B.: jpg, png, tif'
9101
9785
  }, {
@@ -9221,8 +9905,18 @@ function loadConfiguration(t, root, config, lang) {
9221
9905
  },
9222
9906
  requiredFields: ['engine', {
9223
9907
  field: 'fileFormat',
9224
- value: ['glb', 'gltf', 'fbx']
9908
+ value: ['glb', 'gltf', 'fbx', 'blend']
9225
9909
  }, 'arBakedMapsResolution']
9910
+ }, {
9911
+ value: 3,
9912
+ onField: {
9913
+ field: 'job',
9914
+ value: 'MASTER'
9915
+ },
9916
+ requiredFields: ['engine', {
9917
+ field: 'fileFormat',
9918
+ value: ['glb', 'blend', 'fbx', 'glb']
9919
+ }]
9226
9920
  }],
9227
9921
  flow: {
9228
9922
  0: [1, 10],
@@ -11569,7 +12263,7 @@ function MenuLabel (_ref) {
11569
12263
  function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11570
12264
  function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
11571
12265
  function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11572
- function aplyRule(_ref) {
12266
+ function applyRule(_ref) {
11573
12267
  var rules = _ref.rules,
11574
12268
  data = _ref.data,
11575
12269
  rootStore = _ref.rootStore,
@@ -11601,7 +12295,7 @@ function aplyRule(_ref) {
11601
12295
  result = rule.match.value == sourceValue;
11602
12296
  }
11603
12297
  } else if (rule.or) {
11604
- result = aplyRule({
12298
+ result = applyRule({
11605
12299
  rules: rule.or,
11606
12300
  data: data,
11607
12301
  rootStore: rootStore,
@@ -11635,7 +12329,7 @@ function aplyRules(_ref2) {
11635
12329
  try {
11636
12330
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
11637
12331
  var dt = _step2.value;
11638
- if (aplyRule({
12332
+ if (applyRule({
11639
12333
  rules: rules,
11640
12334
  data: dt,
11641
12335
  rootStore: rootStore,
@@ -11654,6 +12348,12 @@ function getIcon(icon) {
11654
12348
  switch (icon) {
11655
12349
  case 'StopFilled':
11656
12350
  return /*#__PURE__*/jsx(StopFilled, {});
12351
+ case 'FileZipOutlined':
12352
+ return /*#__PURE__*/jsx(FileZipOutlined, {});
12353
+ case 'PlaySquareOutlined':
12354
+ return /*#__PURE__*/jsx(PlaySquareOutlined, {});
12355
+ case 'ClockCircleOutlined':
12356
+ return /*#__PURE__*/jsx(ClockCircleOutlined, {});
11657
12357
  case 'ExclamationCircleFilled':
11658
12358
  return /*#__PURE__*/jsx(ExclamationCircleFilled, {});
11659
12359
  case 'ApartmentOutlined':
@@ -12108,7 +12808,7 @@ var _default$6 = /*#__PURE__*/function () {
12108
12808
  value: function getMenuItem(item) {
12109
12809
  var _this3 = this;
12110
12810
  if (item.items) {
12111
- var disabled = item.rules ? !aplyRule({
12811
+ var disabled = item.rules ? !applyRule({
12112
12812
  rules: item.rules,
12113
12813
  data: undefined,
12114
12814
  rootStore: this.root
@@ -12127,7 +12827,7 @@ var _default$6 = /*#__PURE__*/function () {
12127
12827
  };
12128
12828
  return menuItem;
12129
12829
  } else {
12130
- var _disabled = item.rules ? !aplyRule({
12830
+ var _disabled = item.rules ? !applyRule({
12131
12831
  rules: item.rules,
12132
12832
  data: undefined,
12133
12833
  rootStore: this.root
@@ -12250,16 +12950,10 @@ var menu = [{
12250
12950
  }
12251
12951
  }]
12252
12952
  }, {
12253
- id: 'GroupContentItems',
12953
+ id: 'ContentItems',
12254
12954
  path: 'contentitems',
12255
12955
  label: 'backoffice.menu.items.label.ContentItems',
12256
- icon: 'OrderedListOutlined',
12257
- rules: [{
12258
- match: {
12259
- value: ['RETAILER', 'ASSOCIATION'],
12260
- globalValue: 'organization.parentType'
12261
- }
12262
- }]
12956
+ icon: 'OrderedListOutlined'
12263
12957
  }, {
12264
12958
  id: 'idmTables',
12265
12959
  path: 'idm',
@@ -12350,6 +13044,32 @@ var menu = [{
12350
13044
  label: 'backoffice.menu.items.label.organizationAdmin',
12351
13045
  icon: 'ApartmentOutlined',
12352
13046
  permission: 'backoffice_admin_organizations'
13047
+ }, {
13048
+ id: 'taskStatusAdmin',
13049
+ label: 'backoffice.menu.items.label.taskStatusAdmin',
13050
+ icon: 'ClockCircleOutlined',
13051
+ permission: 'backoffice_admin_taskstatus',
13052
+ items: [{
13053
+ id: 'TableTaskStatusVersioning',
13054
+ path: 'taskstatusversioning',
13055
+ label: 'backoffice.menu.items.label.taskStatusAdminVersioning',
13056
+ icon: 'FileZipOutlined'
13057
+ }, {
13058
+ id: 'TableTaskStatusCustom',
13059
+ path: 'taskstatuscustom',
13060
+ label: 'backoffice.table.taskstatusversioning.title.taskstatuscustom',
13061
+ icon: 'SwapOutlined'
13062
+ }, {
13063
+ id: 'TableTaskStatusCronJobs',
13064
+ path: 'taskstatuscronjobs',
13065
+ label: 'backoffice.menu.items.label.taskStatusAdminCronJobs',
13066
+ icon: 'ClockCircleOutlined'
13067
+ }, {
13068
+ id: 'TableTaskStatusOthers',
13069
+ path: 'taskstatuscronothers',
13070
+ label: 'backoffice.table.taskstatusversioning.title.taskstatusothers',
13071
+ icon: 'PlaySquareOutlined'
13072
+ }]
12353
13073
  }, {
12354
13074
  id: 'TableAllUsers',
12355
13075
  path: 'users',
@@ -12787,7 +13507,7 @@ var _default$3 = /*#__PURE__*/function () {
12787
13507
  function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12788
13508
  function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
12789
13509
  function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12790
- var LOG$a = getLogger('Backoffice', 'DownloadStore');
13510
+ var LOG$b = getLogger('Backoffice', 'DownloadStore');
12791
13511
  var DownloadStore = /*#__PURE__*/function () {
12792
13512
  function DownloadStore(_rootStore) {
12793
13513
  var _this = this;
@@ -12817,7 +13537,7 @@ var DownloadStore = /*#__PURE__*/function () {
12817
13537
  _iterator = _createForOfIteratorHelper$k(action.download);
12818
13538
  _context2.prev = 8;
12819
13539
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
12820
- var _download$params, _ref3, _data$fileUrl;
13540
+ var _download$params, _data$fileFormat, _data$fileUrl;
12821
13541
  var url;
12822
13542
  return _regeneratorRuntime.wrap(function _loop$(_context) {
12823
13543
  while (1) switch (_context.prev = _context.next) {
@@ -12847,7 +13567,7 @@ var DownloadStore = /*#__PURE__*/function () {
12847
13567
  url.searchParams.append(param.name, param.value);
12848
13568
  });
12849
13569
  _context.next = 14;
12850
- return _this.donwloadFile(url, (_ref3 = (data === null || data === void 0 ? void 0 : data.fileName) + '.' + data.fileFormat) !== null && _ref3 !== void 0 ? _ref3 : data === null || data === void 0 || (_data$fileUrl = data.fileUrl) === null || _data$fileUrl === void 0 ? void 0 : _data$fileUrl.substring((data === null || data === void 0 ? void 0 : data.fileUrl.lastIndexOf('.')) + 1));
13570
+ return _this.donwloadFile(url, (data === null || data === void 0 ? void 0 : data.fileName) + '.' + ((_data$fileFormat = data.fileFormat) !== null && _data$fileFormat !== void 0 ? _data$fileFormat : data === null || data === void 0 || (_data$fileUrl = data.fileUrl) === null || _data$fileUrl === void 0 ? void 0 : _data$fileUrl.substring((data === null || data === void 0 ? void 0 : data.fileUrl.lastIndexOf('.')) + 1)));
12851
13571
  case 14:
12852
13572
  return _context.abrupt("break", 24);
12853
13573
  case 15:
@@ -13003,7 +13723,7 @@ var DownloadStore = /*#__PURE__*/function () {
13003
13723
  _context5.next = 4;
13004
13724
  break;
13005
13725
  }
13006
- LOG$a.debug("The organization ".concat(data._id, " has no parentType of ").concat(validTypes.join(' or ')));
13726
+ LOG$b.debug("The organization ".concat(data._id, " has no parentType of ").concat(validTypes.join(' or ')));
13007
13727
  throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer, retailer channel or association' : 'supplier or dealer'));
13008
13728
  case 4:
13009
13729
  orgData = data;
@@ -13022,7 +13742,7 @@ var DownloadStore = /*#__PURE__*/function () {
13022
13742
  _context5.next = 14;
13023
13743
  break;
13024
13744
  }
13025
- LOG$a.debug("The organization ".concat(data._id, " has no type of ").concat(validTypes.join(' or '), " nor a parent organization"));
13745
+ LOG$b.debug("The organization ".concat(data._id, " has no type of ").concat(validTypes.join(' or '), " nor a parent organization"));
13026
13746
  throw new Error("Current organization is no ".concat(type == 'RETAILER' ? 'retailer channel or association' : 'supplier or dealer'));
13027
13747
  case 14:
13028
13748
  _context5.prev = 14;
@@ -13063,8 +13783,8 @@ var DownloadStore = /*#__PURE__*/function () {
13063
13783
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
13064
13784
  while (1) switch (_context6.prev = _context6.next) {
13065
13785
  case 0:
13066
- url = aplyMapping({
13067
- mapable: download.request,
13786
+ url = applyMapping({
13787
+ mappable: download.request,
13068
13788
  mapping: download.mapping,
13069
13789
  //download.mapping,
13070
13790
  mappingData: data,
@@ -13638,24 +14358,34 @@ function isExternalVid(file) {
13638
14358
  }
13639
14359
 
13640
14360
  var VIDEO_THUMB_PLACEHOLDER = 'data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiBoZWlnaHQ9IjgwMHB4IiB3aWR0aD0iODAwcHgiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgCgkgdmlld0JveD0iMCAwIDQ5IDQ5IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8Zz4KCQk8cGF0aCBkPSJNMzkuMjU2LDYuNUg5Ljc0NEM0LjM3MSw2LjUsMCwxMC44ODUsMCwxNi4yNzR2MTYuNDUxYzAsNS4zOSw0LjM3MSw5Ljc3NCw5Ljc0NCw5Ljc3NGgyOS41MTIKCQkJYzUuMzczLDAsOS43NDQtNC4zODUsOS43NDQtOS43NzRWMTYuMjc0QzQ5LDEwLjg4NSw0NC42MjksNi41LDM5LjI1Niw2LjV6IE00NywzMi43MjZjMCw0LjI4Ny0zLjQ3NCw3Ljc3NC03Ljc0NCw3Ljc3NEg5Ljc0NAoJCQlDNS40NzQsNDAuNSwyLDM3LjAxMiwyLDMyLjcyNlYxNi4yNzRDMiwxMS45ODgsNS40NzQsOC41LDkuNzQ0LDguNWgyOS41MTJjNC4yNywwLDcuNzQ0LDMuNDg4LDcuNzQ0LDcuNzc0VjMyLjcyNnoiLz4KCQk8cGF0aCBkPSJNMzMuMzYsMjQuMTM4bC0xMy44NTUtOC4xMTVjLTAuMzA4LTAuMTgtMC42OTEtMC4xODMtMS4wMDItMC4wMDVTMTgsMTYuNTI3LDE4LDE2Ljg4NnYxNi4yMjkKCQkJYzAsMC4zNTgsMC4xOTIsMC42OSwwLjUwMiwwLjg2OGMwLjE1NCwwLjA4OCwwLjMyNiwwLjEzMiwwLjQ5OCwwLjEzMmMwLjE3NSwwLDAuMzQ5LTAuMDQ2LDAuNTA1LTAuMTM3bDEzLjg1NS04LjExMwoJCQljMC4zMDYtMC4xNzksMC40OTUtMC41MDgsMC40OTUtMC44NjNTMzMuNjY3LDI0LjMxNywzMy4zNiwyNC4xMzh6IE0yMCwzMS4zN1YxOC42M2wxMC44NzYsNi4zNzFMMjAsMzEuMzd6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+';
14361
+ var LOG$a = getLogger('Backoffice', 'MediaItem');
13641
14362
  var MediaItem = /*#__PURE__*/function () {
13642
- function MediaItem(media, config, mediaItemId, medaItemRefId) {
14363
+ function MediaItem(_ref) {
14364
+ var media = _ref.media,
14365
+ remoteUrl = _ref.remoteUrl,
14366
+ config = _ref.config,
14367
+ mediaItemId = _ref.mediaItemId,
14368
+ mediaItemRefId = _ref.mediaItemRefId;
13643
14369
  _classCallCheck(this, MediaItem);
13644
- this.config = config;
13645
14370
  _defineProperty(this, "_url", void 0);
13646
14371
  _defineProperty(this, "_file", void 0);
13647
14372
  _defineProperty(this, "_mediaItemId", void 0);
13648
14373
  _defineProperty(this, "_mediaItemRefId", void 0);
13649
14374
  _defineProperty(this, "_itemRef", void 0);
13650
14375
  _defineProperty(this, "_isRemoteUrl", void 0);
14376
+ _defineProperty(this, "_config", void 0);
14377
+ this._config = config;
13651
14378
  if (typeof media === 'string') {
13652
14379
  this._url = media;
13653
- this._isRemoteUrl = isExternalVid(media);
14380
+ if (!this._url.startsWith('http')) {
14381
+ this._url = "https://".concat(this._url);
14382
+ }
14383
+ this._isRemoteUrl = remoteUrl ? true : isExternalVid(media);
13654
14384
  } else {
13655
14385
  this._file = media;
13656
14386
  }
13657
14387
  this._mediaItemId = mediaItemId;
13658
- this._mediaItemRefId = medaItemRefId;
14388
+ this._mediaItemRefId = mediaItemRefId;
13659
14389
  }
13660
14390
  return _createClass(MediaItem, [{
13661
14391
  key: "file",
@@ -13680,10 +14410,10 @@ var MediaItem = /*#__PURE__*/function () {
13680
14410
  }, {
13681
14411
  key: "antdFile",
13682
14412
  get: function get() {
13683
- var _this$_itemRef$_id, _this$_itemRef, _ref, _this$_itemRef$fileNa, _this$_itemRef2, _this$_file, _this$_url;
14413
+ var _this$_itemRef$_id, _this$_itemRef, _ref2, _this$_itemRef$fileNa, _this$_itemRef2, _this$_file, _this$_url;
13684
14414
  return {
13685
14415
  uid: (_this$_itemRef$_id = (_this$_itemRef = this._itemRef) === null || _this$_itemRef === void 0 ? void 0 : _this$_itemRef._id) !== null && _this$_itemRef$_id !== void 0 ? _this$_itemRef$_id : nanoid(),
13686
- name: this._isRemoteUrl ? this._url : (_ref = (_this$_itemRef$fileNa = (_this$_itemRef2 = this._itemRef) === null || _this$_itemRef2 === void 0 ? void 0 : _this$_itemRef2.fileName) !== null && _this$_itemRef$fileNa !== void 0 ? _this$_itemRef$fileNa : (_this$_file = this._file) === null || _this$_file === void 0 ? void 0 : _this$_file.name) !== null && _ref !== void 0 ? _ref : nameFromUrl((_this$_url = this._url) !== null && _this$_url !== void 0 ? _this$_url : ''),
14416
+ name: this._isRemoteUrl ? this._url : (_ref2 = (_this$_itemRef$fileNa = (_this$_itemRef2 = this._itemRef) === null || _this$_itemRef2 === void 0 ? void 0 : _this$_itemRef2.fileName) !== null && _this$_itemRef$fileNa !== void 0 ? _this$_itemRef$fileNa : (_this$_file = this._file) === null || _this$_file === void 0 ? void 0 : _this$_file.name) !== null && _ref2 !== void 0 ? _ref2 : nameFromUrl((_this$_url = this._url) !== null && _this$_url !== void 0 ? _this$_url : ''),
13687
14417
  url: this._url,
13688
14418
  thumbUrl: this._isRemoteUrl ? VIDEO_THUMB_PLACEHOLDER : undefined
13689
14419
  };
@@ -13704,7 +14434,7 @@ var MediaItem = /*#__PURE__*/function () {
13704
14434
  return _context.abrupt("return");
13705
14435
  case 4:
13706
14436
  _context.next = 6;
13707
- return removeMediaItemRef(this.config.baseUrl, this.config.jwt, this._mediaItemRefId);
14437
+ return removeMediaItemRef(this._config.baseUrl, this._config.jwt, this._mediaItemRefId);
13708
14438
  case 6:
13709
14439
  this._mediaItemId = undefined;
13710
14440
  this._mediaItemRefId = undefined;
@@ -13728,45 +14458,55 @@ var MediaItem = /*#__PURE__*/function () {
13728
14458
  while (1) switch (_context2.prev = _context2.next) {
13729
14459
  case 0:
13730
14460
  if (!this._mediaItemRefId) {
13731
- _context2.next = 5;
14461
+ _context2.next = 12;
13732
14462
  break;
13733
14463
  }
13734
- _context2.next = 3;
13735
- return getMediaItemRef(this.config.baseUrl, this.config.jwt, this._mediaItemRefId);
13736
- case 3:
14464
+ _context2.prev = 1;
14465
+ _context2.next = 4;
14466
+ return getMediaItemRef(this._config.baseUrl, this._config.jwt, this._mediaItemRefId);
14467
+ case 4:
13737
14468
  this._itemRef = _context2.sent;
13738
14469
  this._url = this._itemRef.url;
13739
- case 5:
14470
+ _context2.next = 12;
14471
+ break;
14472
+ case 8:
14473
+ _context2.prev = 8;
14474
+ _context2.t0 = _context2["catch"](1);
14475
+ this._mediaItemRefId = undefined;
14476
+ LOG$a.error(new DivaError$1('Failed to get media item ref, on next upload a new ref will be created', {
14477
+ cause: _context2.t0
14478
+ }));
14479
+ case 12:
13740
14480
  if (!(this.file && !this._url)) {
13741
- _context2.next = 11;
14481
+ _context2.next = 18;
13742
14482
  break;
13743
14483
  }
13744
- _context2.next = 8;
14484
+ _context2.next = 15;
13745
14485
  return getFileAsDataUri(this.file);
13746
- case 8:
14486
+ case 15:
13747
14487
  this._url = _context2.sent;
13748
- _context2.next = 15;
14488
+ _context2.next = 22;
13749
14489
  break;
13750
- case 11:
14490
+ case 18:
13751
14491
  if (!(this._url && !this._file && !this._isRemoteUrl)) {
13752
- _context2.next = 15;
14492
+ _context2.next = 22;
13753
14493
  break;
13754
14494
  }
13755
- _context2.next = 14;
14495
+ _context2.next = 21;
13756
14496
  return fetchFileData(this._url);
13757
- case 14:
14497
+ case 21:
13758
14498
  this._file = _context2.sent;
13759
- case 15:
14499
+ case 22:
13760
14500
  if (!(this.file && !isFileOfType(this.file, allowedTypes))) {
13761
- _context2.next = 17;
14501
+ _context2.next = 24;
13762
14502
  break;
13763
14503
  }
13764
14504
  throw new Error('File type is not allowed');
13765
- case 17:
14505
+ case 24:
13766
14506
  case "end":
13767
14507
  return _context2.stop();
13768
14508
  }
13769
- }, _callee2, this);
14509
+ }, _callee2, this, [[1, 8]]);
13770
14510
  }));
13771
14511
  function init(_x) {
13772
14512
  return _init.apply(this, arguments);
@@ -13811,7 +14551,7 @@ var MediaItem = /*#__PURE__*/function () {
13811
14551
  }));
13812
14552
  formData.append('file', this._file, this._file.name);
13813
14553
  _context3.next = 12;
13814
- return uploadMediaItem(this.config.baseUrl, this.config.jwt, formData);
14554
+ return uploadMediaItem(this._config.baseUrl, this._config.jwt, formData);
13815
14555
  case 12:
13816
14556
  response = _context3.sent;
13817
14557
  this._mediaItemRefId = response.ref._id;
@@ -13879,6 +14619,7 @@ function useFormData (_ref) {
13879
14619
  removedMedias = _useState12[0],
13880
14620
  setRemovedMedias = _useState12[1];
13881
14621
  var _useMemo = useMemo(function () {
14622
+ setCanSave === null || setCanSave === void 0 || setCanSave(true);
13882
14623
  var c = {
13883
14624
  apiHandler: root.getApiHandler(id, apiInterface),
13884
14625
  configuration: root.configurationStore.getConfiguration(id, 'Form')
@@ -13894,7 +14635,7 @@ function useFormData (_ref) {
13894
14635
  if (configuration.disableSave) setCanSave === null || setCanSave === void 0 || setCanSave(false);
13895
14636
  }, [configuration]);
13896
14637
  var _onLoadFields = function onLoadFields(data) {
13897
- var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items;
14638
+ var items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.itemSelector && Array.isArray(configuration.items[0])) ? configuration.items[0] : configuration.items;
13898
14639
  var _iterator = _createForOfIteratorHelper$j(items),
13899
14640
  _step;
13900
14641
  try {
@@ -13909,10 +14650,15 @@ function useFormData (_ref) {
13909
14650
  var ref = typeof item.mediaItemRefField == 'string' ? [item.mediaItemRefField] : item.mediaItemRefField;
13910
14651
  var media = getData(itemName, data);
13911
14652
  if (media) {
13912
- var mediaItem = new MediaItem(getData(urlName, data), {
13913
- baseUrl: root.configurationStore.apiConfig.mediaService,
13914
- jwt: root.dataStore.jwt
13915
- }, media, getData(ref, data));
14653
+ var mediaItem = new MediaItem({
14654
+ media: getData(urlName, data),
14655
+ config: {
14656
+ baseUrl: root.configurationStore.apiConfig.mediaService,
14657
+ jwt: root.dataStore.jwt
14658
+ },
14659
+ mediaItemId: media,
14660
+ mediaItemRefId: getData(ref, data)
14661
+ });
13916
14662
  mediaItem.init(item.allowedTypes);
13917
14663
  setFieldInObject(itemName, data, mediaItem);
13918
14664
  }
@@ -14015,21 +14761,25 @@ function useFormData (_ref) {
14015
14761
  _context.next = 17;
14016
14762
  break;
14017
14763
  }
14764
+ if (configuration.showProgressBar) setProgressBarPercentage(i > 0 ? Math.floor(i / multipleEditingData.length * 100) : 1);
14018
14765
  original = multipleEditingData[i];
14019
14766
  _newData = setNewData(newData, JSON.parse(JSON.stringify(original)));
14020
14767
  _context.t0 = response;
14021
- _context.next = 11;
14768
+ _context.next = 12;
14022
14769
  return apiHandler.update(_newData, original, configuration.mapping);
14023
- case 11:
14770
+ case 12:
14024
14771
  _context.t1 = _context.sent;
14025
14772
  _context.t0.push.call(_context.t0, _context.t1);
14026
- if (configuration.showProgressBar) setProgressBarPercentage(Math.abs((i + 1 / multipleEditingData.length) * 100));
14027
14773
  case 14:
14028
14774
  i++;
14029
14775
  _context.next = 5;
14030
14776
  break;
14031
14777
  case 17:
14032
- if (configuration.showProgressBar) setProgressBarOpen(false);
14778
+ if (configuration.showProgressBar) {
14779
+ if (configuration.showProgressBar) setProgressBarPercentage(100);
14780
+ setProgressBarOpen(false);
14781
+ setProgressBarPercentage(0);
14782
+ }
14033
14783
  _context.next = 23;
14034
14784
  break;
14035
14785
  case 20:
@@ -14084,34 +14834,44 @@ function useFormData (_ref) {
14084
14834
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
14085
14835
  while (1) switch (_context2.prev = _context2.next) {
14086
14836
  case 0:
14087
- newData = merge$1(_objectSpread$I({}, state.data), values);
14837
+ newData = merge(_objectSpread$I({}, state.data), values);
14088
14838
  if (!skipApi) {
14089
14839
  _context2.next = 3;
14090
14840
  break;
14091
14841
  }
14092
14842
  return _context2.abrupt("return", newData);
14093
14843
  case 3:
14094
- _context2.next = 5;
14844
+ root.actions.toggleLoading('saving_form');
14845
+ _context2.prev = 4;
14846
+ _context2.next = 7;
14095
14847
  return setDynamicFields(_objectSpread$I({}, state.data), newData);
14096
- case 5:
14848
+ case 7:
14097
14849
  newData = _context2.sent;
14098
- _context2.next = 8;
14850
+ _context2.next = 10;
14099
14851
  return preSaveProcess(newData, selectedItems !== null && selectedItems !== void 0 ? selectedItems : configuration.items);
14100
- case 8:
14852
+ case 10:
14101
14853
  newData = removeEmpty(newData);
14854
+ _context2.next = 17;
14855
+ break;
14856
+ case 13:
14857
+ _context2.prev = 13;
14858
+ _context2.t0 = _context2["catch"](4);
14859
+ root.actions.toggleLoading('saving_form');
14860
+ throw _context2.t0;
14861
+ case 17:
14102
14862
  setState(_objectSpread$I(_objectSpread$I({}, state), {}, {
14103
14863
  loading: true
14104
14864
  }));
14105
14865
  finalData = state.data;
14106
- _context2.prev = 11;
14107
- _context2.next = 14;
14866
+ _context2.prev = 19;
14867
+ _context2.next = 22;
14108
14868
  return apiCall(newData);
14109
- case 14:
14869
+ case 22:
14110
14870
  response = _context2.sent;
14111
14871
  i = 0;
14112
- case 16:
14872
+ case 24:
14113
14873
  if (!(i < (((_configuration$additi = configuration.additionals) === null || _configuration$additi === void 0 ? void 0 : _configuration$additi.length) || 0))) {
14114
- _context2.next = 26;
14874
+ _context2.next = 34;
14115
14875
  break;
14116
14876
  }
14117
14877
  // perform additional server actions before returning the data
@@ -14123,47 +14883,52 @@ function useFormData (_ref) {
14123
14883
  if (additional.addBaseUrl) {
14124
14884
  data[additional.addBaseUrl] = window.location.origin;
14125
14885
  }
14126
- _context2.next = 23;
14886
+ _context2.next = 31;
14127
14887
  return additionalApi.create(data, additional.mapping, response);
14128
- case 23:
14888
+ case 31:
14129
14889
  i++;
14130
- _context2.next = 16;
14890
+ _context2.next = 24;
14131
14891
  break;
14132
- case 26:
14892
+ case 34:
14133
14893
  finalData = response;
14134
14894
  return _context2.abrupt("return", response);
14135
- case 30:
14136
- _context2.prev = 30;
14137
- _context2.t0 = _context2["catch"](11);
14138
- if (!(_context2.t0 instanceof DivaError && _context2.t0.name)) {
14139
- _context2.next = 38;
14895
+ case 38:
14896
+ _context2.prev = 38;
14897
+ _context2.t1 = _context2["catch"](19);
14898
+ if (configuration.showProgressBar) {
14899
+ setProgressBarOpen(false);
14900
+ setProgressBarPercentage(0);
14901
+ }
14902
+ if (!(_context2.t1 instanceof DivaError && _context2.t1.name)) {
14903
+ _context2.next = 47;
14140
14904
  break;
14141
14905
  }
14142
- errorCode = _context2.t0.name;
14906
+ errorCode = _context2.t1.name;
14143
14907
  item = selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.find(function (item) {
14144
14908
  var _item$onError;
14145
14909
  return (_item$onError = item.onError) === null || _item$onError === void 0 ? void 0 : _item$onError[errorCode];
14146
14910
  });
14147
14911
  if (!item) {
14148
- _context2.next = 38;
14912
+ _context2.next = 47;
14149
14913
  break;
14150
14914
  }
14151
14915
  setFieldErrors(_objectSpread$I(_objectSpread$I({}, fieldErrors), {}, _defineProperty({}, item.name.toString(), item.onError[errorCode])));
14152
14916
  return _context2.abrupt("return", undefined);
14153
- case 38:
14154
- throw _context2.t0;
14155
- case 39:
14156
- _context2.prev = 39;
14917
+ case 47:
14918
+ throw _context2.t1;
14919
+ case 48:
14920
+ _context2.prev = 48;
14921
+ root.actions.toggleLoading('saving_form');
14157
14922
  setState(_objectSpread$I(_objectSpread$I({}, state), {}, {
14158
14923
  data: finalData,
14159
14924
  loading: false
14160
14925
  }));
14161
- return _context2.finish(39);
14162
- case 42:
14926
+ return _context2.finish(48);
14927
+ case 52:
14163
14928
  case "end":
14164
14929
  return _context2.stop();
14165
14930
  }
14166
- }, _callee2, null, [[11, 30, 39, 42]]);
14931
+ }, _callee2, null, [[4, 13], [19, 38, 48, 52]]);
14167
14932
  }));
14168
14933
  return function onSave(_x2) {
14169
14934
  return _ref3.apply(this, arguments);
@@ -14212,7 +14977,7 @@ function useFormData (_ref) {
14212
14977
 
14213
14978
  //if at an array an entry got added or deleted, its handeled by and so we take the data from the formdata
14214
14979
  var mergeCustomizer = function mergeCustomizer(obj, src) {
14215
- if (Array.isArray(obj) && obj.length != src.length) return src;
14980
+ if (Array.isArray(obj) && Array.isArray(src) && obj.length != src.length) return src;
14216
14981
  return undefined;
14217
14982
  };
14218
14983
  var setNewData = function setNewData(newData, orig) {
@@ -14552,7 +15317,7 @@ function useFormData (_ref) {
14552
15317
  }
14553
15318
  return;
14554
15319
  }, [state.data]);
14555
- var _keepRemovedMeidaItem = /*#__PURE__*/function () {
15320
+ var _keepRemovedMediaItem = /*#__PURE__*/function () {
14556
15321
  var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, items) {
14557
15322
  var _iterator2, _step2, item, itemName, media, arrayData, i;
14558
15323
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
@@ -14582,7 +15347,7 @@ function useFormData (_ref) {
14582
15347
  break;
14583
15348
  }
14584
15349
  _context3.next = 14;
14585
- return _keepRemovedMeidaItem(data, item.items);
15350
+ return _keepRemovedMediaItem(data, item.items);
14586
15351
  case 14:
14587
15352
  _context3.next = 26;
14588
15353
  break;
@@ -14603,7 +15368,7 @@ function useFormData (_ref) {
14603
15368
  break;
14604
15369
  }
14605
15370
  _context3.next = 23;
14606
- return _keepRemovedMeidaItem(arrayData[i], item.items);
15371
+ return _keepRemovedMediaItem(arrayData[i], item.items);
14607
15372
  case 23:
14608
15373
  i++;
14609
15374
  _context3.next = 20;
@@ -14628,7 +15393,7 @@ function useFormData (_ref) {
14628
15393
  }
14629
15394
  }, _callee3, null, [[1, 30, 33, 36]]);
14630
15395
  }));
14631
- return function keepRemovedMeidaItem(_x7, _x8) {
15396
+ return function keepRemovedMediaItem(_x7, _x8) {
14632
15397
  return _ref7.apply(this, arguments);
14633
15398
  };
14634
15399
  }();
@@ -14661,7 +15426,7 @@ function useFormData (_ref) {
14661
15426
  getRules: getRules,
14662
15427
  progressBarOpen: progressBarOpen,
14663
15428
  progressBarPercentage: progressBarPercentage,
14664
- keepRemovedMeidaItem: _keepRemovedMeidaItem,
15429
+ keepRemovedMediaItem: _keepRemovedMediaItem,
14665
15430
  pushRemovedMeidaItem: pushRemovedMeidaItem
14666
15431
  });
14667
15432
  }
@@ -14773,7 +15538,7 @@ var FormList$2 = function FormList(_ref) {
14773
15538
  var remove = function remove(index, r) {
14774
15539
  var _state$getData;
14775
15540
  var data = (_state$getData = state.getData(absoluteName, state.data)) === null || _state$getData === void 0 ? void 0 : _state$getData[index];
14776
- state.keepRemovedMeidaItem(data, item.items);
15541
+ state.keepRemovedMediaItem(data, item.items);
14777
15542
  r(index);
14778
15543
  state.onInputChanged();
14779
15544
  };
@@ -14842,9 +15607,7 @@ var FormList$2 = function FormList(_ref) {
14842
15607
  }
14843
15608
  });
14844
15609
  };
14845
- var FormList$3 = observer(FormList$2, {
14846
- forwardRef: true
14847
- });
15610
+ var FormList$3 = observer(FormList$2);
14848
15611
 
14849
15612
  var ApiKey = function ApiKey(_ref) {
14850
15613
  var value = _ref.value,
@@ -14940,8 +15703,8 @@ function useButtonData (_ref) {
14940
15703
  message: configuration.resultTranslation ? t(configuration.resultTranslation.success) : result !== null && result !== void 0 && result.result ? result.result : 'Success'
14941
15704
  });
14942
15705
  if (callback) {
14943
- newData = aplyMapping({
14944
- mapable: {},
15706
+ newData = applyMapping({
15707
+ mappable: {},
14945
15708
  mappingData: result,
14946
15709
  mapping: configuration.resultMapping,
14947
15710
  rootStore: root,
@@ -15049,9 +15812,7 @@ var CustomButton = function CustomButton(_ref) {
15049
15812
  })
15050
15813
  });
15051
15814
  };
15052
- var CustomButton$1 = observer(CustomButton, {
15053
- forwardRef: true
15054
- });
15815
+ var CustomButton$1 = observer(CustomButton);
15055
15816
 
15056
15817
  var wrapper$5 = "wrapper-GVe2h";
15057
15818
  var buttonGroup = "button-group-GYt-T";
@@ -15089,8 +15850,8 @@ var SubTitle = function SubTitle(_ref) {
15089
15850
  };
15090
15851
  var SubTitle$1 = observer(SubTitle);
15091
15852
 
15092
- var InputComponent = function InputComponent(_ref) {
15093
- var _item$value, _item$value4;
15853
+ var InputComponent = function InputComponent(_ref, ref) {
15854
+ var _item$value, _item$value5, _item$value6;
15094
15855
  var item = _ref.item,
15095
15856
  data = _ref.data,
15096
15857
  value = _ref.value,
@@ -15126,6 +15887,7 @@ var InputComponent = function InputComponent(_ref) {
15126
15887
  };
15127
15888
  if (item.type === 'password') {
15128
15889
  return /*#__PURE__*/jsx(Input.Password, {
15890
+ ref: ref,
15129
15891
  addonBefore: item.prefix,
15130
15892
  addonAfter: item.suffix,
15131
15893
  disabled: isReadonly(item, data),
@@ -15137,20 +15899,25 @@ var InputComponent = function InputComponent(_ref) {
15137
15899
  onBlur: onBlur
15138
15900
  });
15139
15901
  }
15902
+ if (item.type === 'progress') {
15903
+ var _item$value4;
15904
+ return /*#__PURE__*/jsx(Progress, {
15905
+ percent: (_item$value4 = item.value) !== null && _item$value4 !== void 0 ? _item$value4 : value
15906
+ });
15907
+ }
15140
15908
  return /*#__PURE__*/jsx(Input, {
15909
+ ref: ref,
15141
15910
  addonBefore: item.prefix,
15142
15911
  addonAfter: item.suffix,
15143
- disabled: isReadonly(item, data),
15144
- value: (_item$value4 = item.value) !== null && _item$value4 !== void 0 ? _item$value4 : value,
15912
+ disabled: isReadonly(item, data) || (typeof item.disabled === 'function' ? item.disabled(data) : item.disabled),
15913
+ value: item.type === 'dateinput' ? new Date((_item$value5 = item.value) !== null && _item$value5 !== void 0 ? _item$value5 : value).toLocaleString().replace('Invalid Date', '') : (_item$value6 = item.value) !== null && _item$value6 !== void 0 ? _item$value6 : value,
15145
15914
  placeholder: item.placeholder,
15146
15915
  onChange: function onChange(e) {
15147
15916
  return _onChange === null || _onChange === void 0 ? void 0 : _onChange(item.name, e.target.value);
15148
15917
  }
15149
15918
  });
15150
15919
  };
15151
- var InputComponent$1 = observer(InputComponent, {
15152
- forwardRef: true
15153
- });
15920
+ var InputComponent$1 = observer(/*#__PURE__*/React.forwardRef(InputComponent));
15154
15921
 
15155
15922
  function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
15156
15923
  function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
@@ -15166,7 +15933,7 @@ function getCombinedValues(data, pattern) {
15166
15933
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
15167
15934
  var _flatten$match$;
15168
15935
  var match = _step.value;
15169
- value = value.replace(match[0], (_flatten$match$ = flat(data)[match[1]]) !== null && _flatten$match$ !== void 0 ? _flatten$match$ : '');
15936
+ value = value.replace(match[0], (_flatten$match$ = flatten(data)[match[1]]) !== null && _flatten$match$ !== void 0 ? _flatten$match$ : '');
15170
15937
  }
15171
15938
  } catch (err) {
15172
15939
  _iterator.e(err);
@@ -15314,7 +16081,7 @@ styleInject(css_248z$m);
15314
16081
  var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title"];
15315
16082
  function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15316
16083
  function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
15317
- var SelectWrapper$1 = function SelectWrapper(_ref) {
16084
+ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
15318
16085
  var apiInterface = _ref.apiInterface,
15319
16086
  selectMapping = _ref.selectMapping,
15320
16087
  apiMapping = _ref.apiMapping,
@@ -15336,6 +16103,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref) {
15336
16103
  autoSelectFirst: autoSelectFirst
15337
16104
  });
15338
16105
  return /*#__PURE__*/jsxs("div", {
16106
+ ref: ref,
15339
16107
  className: classnames(title ? wrapper$4 : undefined),
15340
16108
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$F(_objectSpread$F({}, selectProps), {}, {
15341
16109
  showSearch: search,
@@ -15348,9 +16116,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref) {
15348
16116
  }))]
15349
16117
  });
15350
16118
  };
15351
- var SimpleSelect = observer(SelectWrapper$1, {
15352
- forwardRef: true
15353
- });
16119
+ var SimpleSelect = observer(/*#__PURE__*/forwardRef(SelectWrapper$1));
15354
16120
  var filterOption = function filterOption(input, option) {
15355
16121
  var _option$label;
15356
16122
  return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').toLowerCase().includes(input.toLowerCase());
@@ -15360,28 +16126,16 @@ var RichTextEditor = function RichTextEditor(_ref) {
15360
16126
  var initValue = _ref.initValue,
15361
16127
  onChange = _ref.onChange,
15362
16128
  name = _ref.name;
15363
- var _useDivaCore = useDivaCore(),
15364
- tinyMceApiKey = _useDivaCore.state.tinyMceApiKey;
15365
16129
  var val = useRef(initValue);
15366
- return /*#__PURE__*/jsx(Editor, {
15367
- apiKey: tinyMceApiKey,
15368
- onEditorChange: function onEditorChange(val, e) {
15369
- onChange === null || onChange === void 0 || onChange(name, val);
15370
- },
16130
+ function handleChange(val) {
16131
+ onChange(name, val);
16132
+ }
16133
+ return /*#__PURE__*/jsx(RTFEditor, {
15371
16134
  initialValue: val.current,
15372
- textareaName: "text",
15373
- init: {
15374
- height: 500,
15375
- menubar: false,
15376
- plugins: ['advlist autolink lists link table paste'],
15377
- contextmenu: '',
15378
- resize: false,
15379
- statusbar: false,
15380
- toolbar: 'undo redo | formatselect | ' + 'bold italic backcolor | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | table ',
15381
- content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
15382
- }
16135
+ onChange: handleChange
15383
16136
  });
15384
16137
  };
16138
+ var RichTextEditor$1 = /*#__PURE__*/React.forwardRef(RichTextEditor);
15385
16139
 
15386
16140
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
15387
16141
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -16204,7 +16958,7 @@ var customSelect = "custom-select-ESUJX";
16204
16958
  var customSelectOption = "custom-select-option-dUA7N";
16205
16959
  var avatarWrapper = "avatar-wrapper-Vg-xe";
16206
16960
  var selectTextWrapper = "select-text-wrapper-hPSZW";
16207
- var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N {\n margin: 0px 12px;\n padding: 5px 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 100%;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
16961
+ var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N {\n margin: 0px 12px;\n padding: 5px 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
16208
16962
  styleInject(css_248z$l);
16209
16963
 
16210
16964
  var Selector = function Selector(_ref) {
@@ -16483,14 +17237,6 @@ function useSelectData (_ref) {
16483
17237
  disabled: false
16484
17238
  };
16485
17239
  });
16486
- var val = value.length == 1 ? value[0].data : value;
16487
- if (Array.isArray(val) && val.length) {
16488
- val = val.map(function (v) {
16489
- return v.data;
16490
- });
16491
- } else if (Array.isArray(val)) {
16492
- val = initData;
16493
- }
16494
17240
  if (flow && initData.length) {
16495
17241
  var _value$, _flow$value$0$value, _value$2;
16496
17242
  if (mode != 'single') {
@@ -16522,7 +17268,7 @@ function useSelectData (_ref) {
16522
17268
  }
16523
17269
  setOptions(_toConsumableArray(flowData));
16524
17270
  }
16525
- onChange === null || onChange === void 0 || onChange(val, applyDefaultValue, defaultValue);
17271
+ onChange === null || onChange === void 0 || onChange(data, applyDefaultValue, defaultValue);
16526
17272
  setSelected(value);
16527
17273
  }
16528
17274
  }
@@ -16807,7 +17553,7 @@ var SelectWrapper = function SelectWrapper(_ref) {
16807
17553
  filterOption: false,
16808
17554
  placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : t('filter.global'),
16809
17555
  allowClear: allowClear !== null && allowClear !== void 0 ? allowClear : filterServerSide,
16810
- showArrow: !filterServerSide || allowCreate || search,
17556
+ suffixIcon: filterServerSide && !allowCreate && !search ? null : undefined,
16811
17557
  mode: mode == 'single' ? undefined : mode,
16812
17558
  showSearch: filterServerSide || allowCreate || search,
16813
17559
  onSearch: filterServerSide || allowCreate || search ? state.fetch : undefined,
@@ -16823,9 +17569,7 @@ var SelectWrapper = function SelectWrapper(_ref) {
16823
17569
  value: selected
16824
17570
  });
16825
17571
  };
16826
- var Select = observer(SelectWrapper, {
16827
- forwardRef: true
16828
- });
17572
+ var Select = observer(SelectWrapper);
16829
17573
 
16830
17574
  var wrapper$3 = "wrapper-WStAk";
16831
17575
  var headerWrapper = "header-wrapper-gWQuH";
@@ -17089,9 +17833,7 @@ var Translation = function Translation(_ref) {
17089
17833
  })]
17090
17834
  });
17091
17835
  };
17092
- var Translation$1 = observer(Translation, {
17093
- forwardRef: true
17094
- });
17836
+ var Translation$1 = observer(Translation);
17095
17837
 
17096
17838
  function FileFromWeb (_ref) {
17097
17839
  var _onEnter = _ref.onEnter;
@@ -17101,8 +17843,8 @@ function FileFromWeb (_ref) {
17101
17843
  setUploadFromWeb = _useState2[1];
17102
17844
  if (uploadFromWeb) {
17103
17845
  return /*#__PURE__*/jsx(FileInput, {
17104
- onEnter: function onEnter(f) {
17105
- _onEnter(f);
17846
+ onEnter: function onEnter(f, copy) {
17847
+ _onEnter(f, copy);
17106
17848
  setUploadFromWeb(false);
17107
17849
  },
17108
17850
  onAbort: function onAbort() {
@@ -17136,6 +17878,8 @@ function FileInput(_ref3) {
17136
17878
  _useState4 = _slicedToArray(_useState3, 2),
17137
17879
  value = _useState4[0],
17138
17880
  setValue = _useState4[1];
17881
+ var _useTranslation2 = useTranslation(),
17882
+ t = _useTranslation2.t;
17139
17883
  return /*#__PURE__*/jsxs(Space, {
17140
17884
  direction: "horizontal",
17141
17885
  onClick: function onClick(e) {
@@ -17151,17 +17895,26 @@ function FileInput(_ref3) {
17151
17895
  value ? onEnter(value) : undefined;
17152
17896
  },
17153
17897
  allowClear: true
17154
- }), /*#__PURE__*/jsx(Button, {
17155
- onClick: function onClick() {
17156
- onEnter(value);
17898
+ }), /*#__PURE__*/jsx(Dropdown.Button, {
17899
+ icon: /*#__PURE__*/jsx(DownOutlined, {}),
17900
+ menu: {
17901
+ items: [{
17902
+ key: 'use',
17903
+ label: t('backoffice.mediaupload.upload'),
17904
+ onClick: function onClick() {
17905
+ onEnter(value);
17906
+ }
17907
+ }],
17908
+ onClick: function onClick() {
17909
+ return onEnter(value, true);
17910
+ }
17157
17911
  },
17158
- disabled: !value,
17159
- children: "\xDCbernehmen"
17912
+ children: t('backoffice.mediaupload.use')
17160
17913
  })]
17161
17914
  }), /*#__PURE__*/jsx(Button, {
17162
17915
  type: "link",
17163
17916
  onClick: onAbort,
17164
- children: "Abbrechen"
17917
+ children: t('backoffice.mediaupload.cancel')
17165
17918
  })]
17166
17919
  });
17167
17920
  }
@@ -17186,6 +17939,12 @@ function Upload (_ref) {
17186
17939
  return f.antdFile;
17187
17940
  });
17188
17941
  }, [files]);
17942
+ var _useState = useState(),
17943
+ _useState2 = _slicedToArray(_useState, 2),
17944
+ error = _useState2[0],
17945
+ setError = _useState2[1];
17946
+ var _useTranslation = useTranslation(),
17947
+ t = _useTranslation.t;
17189
17948
  useEffect(function () {
17190
17949
  _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
17191
17950
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -17234,21 +17993,22 @@ function Upload (_ref) {
17234
17993
  case 4:
17235
17994
  setFiles([media]);
17236
17995
  onAdd === null || onAdd === void 0 || onAdd(media);
17237
- _context2.next = 11;
17996
+ _context2.next = 12;
17238
17997
  break;
17239
17998
  case 8:
17240
17999
  _context2.prev = 8;
17241
18000
  _context2.t0 = _context2["catch"](1);
17242
18001
  onError === null || onError === void 0 || onError(_context2.t0);
17243
- case 11:
17244
- _context2.prev = 11;
18002
+ setError(_context2.t0.message);
18003
+ case 12:
18004
+ _context2.prev = 12;
17245
18005
  setLoading(false);
17246
- return _context2.finish(11);
17247
- case 14:
18006
+ return _context2.finish(12);
18007
+ case 15:
17248
18008
  case "end":
17249
18009
  return _context2.stop();
17250
18010
  }
17251
- }, _callee2, null, [[1, 8, 11, 14]]);
18011
+ }, _callee2, null, [[1, 8, 12, 15]]);
17252
18012
  }));
17253
18013
  return function addMediaItem(_x) {
17254
18014
  return _ref3.apply(this, arguments);
@@ -17262,31 +18022,45 @@ function Upload (_ref) {
17262
18022
  }
17263
18023
  };
17264
18024
  var beforeUpload = function beforeUpload(file) {
17265
- var mediaItem = new MediaItem(file, config);
18025
+ var mediaItem = new MediaItem({
18026
+ media: file,
18027
+ config: config
18028
+ });
17266
18029
  addMediaItem(mediaItem);
17267
18030
  return Upload$1.LIST_IGNORE;
17268
18031
  };
17269
- var onFileFormWeb = function onFileFormWeb(url) {
17270
- var mediaItem = new MediaItem(url, config);
18032
+ var onFileFormWeb = function onFileFormWeb(url, copy) {
18033
+ var mediaItem = new MediaItem({
18034
+ media: url,
18035
+ remoteUrl: !copy,
18036
+ config: config
18037
+ });
17271
18038
  addMediaItem(mediaItem);
17272
18039
  };
17273
- return /*#__PURE__*/jsx(Upload$1, {
17274
- listType: "picture",
17275
- maxCount: 1,
17276
- fileList: fileList,
17277
- beforeUpload: beforeUpload,
17278
- onRemove: onRemoveMedia,
17279
- accept: allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.join(','),
17280
- children: /*#__PURE__*/jsxs(Space$1, {
17281
- direction: "horizontal",
17282
- children: [/*#__PURE__*/jsx(Button$1, {
17283
- type: "primary",
17284
- icon: /*#__PURE__*/jsx(UploadOutlined, {}),
17285
- loading: loading,
17286
- children: "Upload"
17287
- }), /*#__PURE__*/jsx(FileFromWeb, {
17288
- onEnter: onFileFormWeb
17289
- })]
18040
+ return /*#__PURE__*/jsx(Form$1.Item, {
18041
+ validateStatus: error ? 'error' : '',
18042
+ help: error ? t(error) : undefined,
18043
+ children: /*#__PURE__*/jsx(Upload$1, {
18044
+ listType: "picture",
18045
+ maxCount: 1,
18046
+ fileList: fileList,
18047
+ beforeUpload: beforeUpload,
18048
+ onRemove: onRemoveMedia,
18049
+ accept: allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.join(','),
18050
+ showUploadList: {
18051
+ showRemoveIcon: !config.hideTrash
18052
+ },
18053
+ children: /*#__PURE__*/jsxs(Space$1, {
18054
+ direction: "horizontal",
18055
+ children: [/*#__PURE__*/jsx(Button$1, {
18056
+ type: "primary",
18057
+ icon: /*#__PURE__*/jsx(UploadOutlined, {}),
18058
+ loading: loading,
18059
+ children: "Upload"
18060
+ }), /*#__PURE__*/jsx(FileFromWeb, {
18061
+ onEnter: onFileFormWeb
18062
+ })]
18063
+ })
17290
18064
  })
17291
18065
  });
17292
18066
  }
@@ -17300,10 +18074,15 @@ function Media (_ref) {
17300
18074
  var urlPath = item.urlField ? absoluteName.slice(0, -1).concat(item.urlField) : undefined;
17301
18075
  var mediaItemRefId = mediaItemRefIdPath ? state.getData(mediaItemRefIdPath, state.data) : undefined;
17302
18076
  var url = urlPath ? state.getData(urlPath, state.data) : undefined;
17303
- var _React$useState = React.useState(value ? new MediaItem(url, {
17304
- baseUrl: state.root.configurationStore.apiConfig.mediaService,
17305
- jwt: state.root.dataStore.jwt
17306
- }, value, mediaItemRefId) : undefined),
18077
+ var _React$useState = React.useState(value ? new MediaItem({
18078
+ media: url,
18079
+ config: {
18080
+ baseUrl: state.root.configurationStore.apiConfig.mediaService,
18081
+ jwt: state.root.dataStore.jwt
18082
+ },
18083
+ mediaItemId: value,
18084
+ mediaItemRefId: mediaItemRefId
18085
+ }) : undefined),
17307
18086
  _React$useState2 = _slicedToArray(_React$useState, 2),
17308
18087
  media = _React$useState2[0],
17309
18088
  setMedia = _React$useState2[1];
@@ -17339,7 +18118,8 @@ function Media (_ref) {
17339
18118
  onError: onError,
17340
18119
  config: {
17341
18120
  baseUrl: state.root.configurationStore.apiConfig.mediaService,
17342
- jwt: state.root.dataStore.jwt
18121
+ jwt: state.root.dataStore.jwt,
18122
+ hideTrash: item.hideTrash
17343
18123
  }
17344
18124
  });
17345
18125
  }
@@ -17356,6 +18136,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
17356
18136
  switch (item.type) {
17357
18137
  case 'select':
17358
18138
  return /*#__PURE__*/jsx(Select, {
18139
+ value: item.value,
17359
18140
  initialValue: item.defaultValue,
17360
18141
  apiInterface: item.apiInterface,
17361
18142
  mode: item.mode,
@@ -17467,7 +18248,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
17467
18248
  children: item.label
17468
18249
  });
17469
18250
  case 'richText':
17470
- return /*#__PURE__*/jsx(RichTextEditor, {
18251
+ return /*#__PURE__*/jsx(RichTextEditor$1, {
17471
18252
  initValue: state.getData(absoluteName, state.data),
17472
18253
  name: absoluteName,
17473
18254
  onChange: _onChange
@@ -17527,6 +18308,18 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
17527
18308
  return /*#__PURE__*/jsx(DatePicker, {
17528
18309
  disabled: disabled
17529
18310
  });
18311
+ case 'progress':
18312
+ return /*#__PURE__*/jsx(InputComponent$1, {
18313
+ item: item,
18314
+ data: state.data,
18315
+ onChange: state.onInputChanged
18316
+ });
18317
+ case 'dateinput':
18318
+ return /*#__PURE__*/jsx(InputComponent$1, {
18319
+ item: item,
18320
+ data: state.data,
18321
+ onChange: state.onInputChanged
18322
+ });
17530
18323
  case 'subTitle':
17531
18324
  return /*#__PURE__*/jsx(SubTitle$1, {
17532
18325
  item: item,
@@ -17569,6 +18362,7 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
17569
18362
  });
17570
18363
  case 'radio':
17571
18364
  return /*#__PURE__*/jsx(Radio.Group, {
18365
+ defaultValue: item.defaultValue,
17572
18366
  value: item.value,
17573
18367
  options: item.options.map(function (o) {
17574
18368
  var _o$disabled;
@@ -17607,14 +18401,15 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
17607
18401
  return /*#__PURE__*/jsx(Fragment, {});
17608
18402
  }
17609
18403
  }
17610
- function DisplayInput(props) {
18404
+ var DisplayInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
17611
18405
  var _useTranslation = useTranslation(),
17612
18406
  t = _useTranslation.t;
17613
18407
  return /*#__PURE__*/jsx(Input, _objectSpread$A(_objectSpread$A({}, props), {}, {
18408
+ ref: ref,
17614
18409
  disabled: true,
17615
18410
  value: t(props.translationPrefix + '.' + props.value)
17616
18411
  }));
17617
- }
18412
+ });
17618
18413
  function isReadonly(item, data) {
17619
18414
  if (_typeof(item.readonly) != 'object') {
17620
18415
  return item.readonly;
@@ -18025,9 +18820,7 @@ function getLabel(item, t) {
18025
18820
  if (!item.label && item.type === 'button') return undefined;
18026
18821
  return item.label ? t(item.label, item.label) : item.name;
18027
18822
  }
18028
- var Form = observer(FormWrapper$1, {
18029
- forwardRef: true
18030
- });
18823
+ var Form = observer(/*#__PURE__*/React.forwardRef(FormWrapper$1));
18031
18824
 
18032
18825
  function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18033
18826
  function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18781,9 +19574,7 @@ var RoleSelector = function RoleSelector(_ref, ref) {
18781
19574
  })
18782
19575
  });
18783
19576
  };
18784
- var RoleSelector$1 = observer(RoleSelector, {
18785
- forwardRef: true
18786
- });
19577
+ var RoleSelector$1 = observer(/*#__PURE__*/React.forwardRef(RoleSelector));
18787
19578
 
18788
19579
  var permissionButton = "permission-Button-XctsZ";
18789
19580
  var select$1 = "select-lzft-";
@@ -19575,7 +20366,7 @@ function ActionButton (_ref) {
19575
20366
  try {
19576
20367
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
19577
20368
  var dt = _step.value;
19578
- if ((action.rule ? !aplyRule({
20369
+ if ((action.rule ? !applyRule({
19579
20370
  rules: action.rule,
19580
20371
  data: dt,
19581
20372
  rootStore: root
@@ -19590,7 +20381,7 @@ function ActionButton (_ref) {
19590
20381
  _iterator.f();
19591
20382
  }
19592
20383
  } else {
19593
- disable = disabled !== null && disabled !== void 0 ? disabled : action.rule ? !aplyRule({
20384
+ disable = disabled !== null && disabled !== void 0 ? disabled : action.rule ? !applyRule({
19594
20385
  rules: action.rule,
19595
20386
  data: ruleData !== null && ruleData !== void 0 ? ruleData : data,
19596
20387
  rootStore: root
@@ -20285,9 +21076,7 @@ var RelationSelector = function RelationSelector(_ref, ref) {
20285
21076
  })]
20286
21077
  });
20287
21078
  };
20288
- var RelationSelector$1 = observer(RelationSelector, {
20289
- forwardRef: true
20290
- });
21079
+ var RelationSelector$1 = observer(/*#__PURE__*/React.forwardRef(RelationSelector));
20291
21080
 
20292
21081
  function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20293
21082
  function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -20505,9 +21294,7 @@ var FormList = function FormList(_ref, ref) {
20505
21294
  })]
20506
21295
  });
20507
21296
  };
20508
- var FormList$1 = observer(FormList, {
20509
- forwardRef: true
20510
- });
21297
+ var FormList$1 = observer(/*#__PURE__*/React.forwardRef(FormList));
20511
21298
 
20512
21299
  function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20513
21300
  function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -20844,7 +21631,7 @@ var FormWrapper = function FormWrapper(_ref, ref) {
20844
21631
  placeholder: t('filter.global'),
20845
21632
  mode: mode == 'single' ? undefined : mode,
20846
21633
  allowClear: true,
20847
- showArrow: false,
21634
+ suffixIcon: null,
20848
21635
  showSearch: true,
20849
21636
  onSearch: state.fetch,
20850
21637
  notFoundContent: state.fetching ? /*#__PURE__*/jsx(Spin, {
@@ -20864,9 +21651,7 @@ var FormWrapper = function FormWrapper(_ref, ref) {
20864
21651
  })]
20865
21652
  });
20866
21653
  };
20867
- var SelectOrCreate = observer(FormWrapper, {
20868
- forwardRef: true
20869
- });
21654
+ var SelectOrCreate = observer(/*#__PURE__*/React.forwardRef(FormWrapper));
20870
21655
  var Single = function Single(_ref2) {
20871
21656
  var _state$selected$;
20872
21657
  var state = _ref2.state;
@@ -21233,9 +22018,7 @@ var ListWrapper = function ListWrapper(props, ref) {
21233
22018
  }
21234
22019
  });
21235
22020
  };
21236
- var List = observer(ListWrapper, {
21237
- forwardRef: true
21238
- });
22021
+ var List = observer(/*#__PURE__*/React.forwardRef(ListWrapper));
21239
22022
 
21240
22023
  var LOG$5 = getLogger('Backoffice', 'JsonEditor');
21241
22024
  function useJsonEditorData (id, setCanSave, onChange, onError) {
@@ -21485,9 +22268,7 @@ var JsonEditor = function JsonEditor(_ref, ref) {
21485
22268
  })
21486
22269
  });
21487
22270
  };
21488
- var JsonEditor$1 = observer(JsonEditor, {
21489
- forwardRef: true
21490
- });
22271
+ var JsonEditor$1 = observer(/*#__PURE__*/React.forwardRef(JsonEditor));
21491
22272
 
21492
22273
  function ConfirmationPopup(props) {
21493
22274
  var _useTranslation = useTranslation(),
@@ -21728,7 +22509,7 @@ var ImageCropper = function ImageCropper(_ref, ref) {
21728
22509
  onChange: function onChange(e) {
21729
22510
  return aspect ? setKeepAspect(undefined) : setKeepAspect(crop.width / crop.height);
21730
22511
  }
21731
- }), "Echte Gr\xF6\xDFe x: ", realSize.x, "px y: ", realSize.y, "px"]
22512
+ }), "Echte Gr\xF6\xDFe x: ", realSize.x.toString(), "px y: ", realSize.y.toString(), "px"]
21732
22513
  }), /*#__PURE__*/jsx(ReactCrop, {
21733
22514
  crop: crop,
21734
22515
  onChange: function onChange(_, percentCrop) {
@@ -21763,9 +22544,7 @@ var ImageCropper = function ImageCropper(_ref, ref) {
21763
22544
  })]
21764
22545
  });
21765
22546
  };
21766
- var ImageCropper$1 = observer(ImageCropper, {
21767
- forwardRef: true
21768
- });
22547
+ var ImageCropper$1 = observer(/*#__PURE__*/React.forwardRef(ImageCropper));
21769
22548
 
21770
22549
  function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
21771
22550
  function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
@@ -22213,8 +22992,10 @@ var ToolTipInfo = function ToolTipInfo(props) {
22213
22992
  className: wrapper$2,
22214
22993
  children: /*#__PURE__*/jsx(Card, {
22215
22994
  title: t('backoffice.tooltipinfo.useroverview'),
22216
- bodyStyle: {
22217
- padding: 10
22995
+ styles: {
22996
+ body: {
22997
+ padding: 10
22998
+ }
22218
22999
  },
22219
23000
  bordered: false,
22220
23001
  style: {
@@ -22405,7 +23186,7 @@ var useMediaUpload = function useMediaUpload(_ref) {
22405
23186
  var small = "small-NY1-k";
22406
23187
  var medium = "medium---QcO";
22407
23188
  var big = "big--E39S";
22408
- var css_248z$d = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
23189
+ var css_248z$d = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
22409
23190
  styleInject(css_248z$d);
22410
23191
 
22411
23192
  var MediaUpload = observer(function (_ref) {
@@ -22448,8 +23229,8 @@ function getExpandedRowRenderer (config, root) {
22448
23229
  return function (record) {
22449
23230
  var data = record;
22450
23231
  if (config.mapping) {
22451
- data = aplyMapping({
22452
- mapable: {},
23232
+ data = applyMapping({
23233
+ mappable: {},
22453
23234
  mapping: config.mapping,
22454
23235
  mappingData: record,
22455
23236
  rootStore: root
@@ -22769,7 +23550,7 @@ function DropdownCell (_ref) {
22769
23550
  width: column.width - 20
22770
23551
  },
22771
23552
  onChange: save,
22772
- bordered: false,
23553
+ variant: "borderless",
22773
23554
  disabled: !((_column$flow = column.flow) !== null && _column$flow !== void 0 && (_column$flow = _column$flow[children[1]]) !== null && _column$flow !== void 0 && _column$flow.length),
22774
23555
  options: (_column$flow2 = column.flow) === null || _column$flow2 === void 0 || (_column$flow2 = _column$flow2[children[1]]) === null || _column$flow2 === void 0 ? void 0 : _column$flow2.map(function (opt) {
22775
23556
  return {
@@ -22804,6 +23585,8 @@ if (!window.customElements.get('model-viewer')) {
22804
23585
  function MediaViewerCell (_ref) {
22805
23586
  var children = _ref.children,
22806
23587
  column = _ref.column;
23588
+ var _useDivaCore = useDivaCore(),
23589
+ isFirefox = _useDivaCore.state.isFirefox;
22807
23590
  if (!(children !== null && children !== void 0 && children[1])) {
22808
23591
  return /*#__PURE__*/jsx(Fragment, {});
22809
23592
  }
@@ -22849,7 +23632,7 @@ function MediaViewerCell (_ref) {
22849
23632
  src: children[1],
22850
23633
  ar: true,
22851
23634
  "ar-scale": 'fixed',
22852
- "ar-modes": 'webxr quick-look',
23635
+ "ar-modes": !isFirefox ? 'webxr quick-look' : '',
22853
23636
  "shadow-intensity": "1",
22854
23637
  "camera-controls": true,
22855
23638
  "touch-action": "pan-y",
@@ -22915,12 +23698,12 @@ function UnixTimeStampCell (_ref) {
22915
23698
  }
22916
23699
 
22917
23700
  function UnixTimeStampCheckCell (_ref) {
22918
- var _ref2;
23701
+ var _checkTime;
22919
23702
  var children = _ref.children,
22920
23703
  column = _ref.column;
22921
23704
  _ref.dataIndex;
22922
23705
  _ref.save;
22923
- if ((_ref2 = (Date.now() - children[1]) / 1000 / 60 >= column.checkTime) !== null && _ref2 !== void 0 ? _ref2 : 15) {
23706
+ if ((Date.now() - children[1]) / 1000 / 60 >= ((_checkTime = column.checkTime) !== null && _checkTime !== void 0 ? _checkTime : 15)) {
22924
23707
  return /*#__PURE__*/jsx("span", {
22925
23708
  style: {
22926
23709
  whiteSpace: 'nowrap'
@@ -22989,6 +23772,8 @@ function MediaItemViewerCell (_ref) {
22989
23772
  timeStamp = _useState4[0],
22990
23773
  setTimeStamp = _useState4[1];
22991
23774
  var id;
23775
+ var _useDivaCore = useDivaCore(),
23776
+ isFirefox = _useDivaCore.state.isFirefox;
22992
23777
 
22993
23778
  //! for renderjob table mediaItems because can't filter mediaItems.0
22994
23779
  if (Array.isArray(children[1])) {
@@ -23020,9 +23805,9 @@ function MediaItemViewerCell (_ref) {
23020
23805
  });
23021
23806
  }, [timeStamp, id]);
23022
23807
  if (!id) return /*#__PURE__*/jsx(FileUnknownOutlined, {});
23023
- var _useDivaCore = useDivaCore(),
23024
- handler = _useDivaCore.handler,
23025
- actions = _useDivaCore.actions;
23808
+ var _useDivaCore2 = useDivaCore(),
23809
+ handler = _useDivaCore2.handler,
23810
+ actions = _useDivaCore2.actions;
23026
23811
  var openModelViewer = function openModelViewer() {
23027
23812
  actions.openFullscreen({
23028
23813
  content: /*#__PURE__*/jsx("model-viewer", {
@@ -23030,7 +23815,7 @@ function MediaItemViewerCell (_ref) {
23030
23815
  src: children[1],
23031
23816
  ar: true,
23032
23817
  "ar-scale": 'fixed',
23033
- "ar-modes": 'webxr quick-look',
23818
+ "ar-modes": !isFirefox ? 'webxr quick-look' : '',
23034
23819
  "shadow-intensity": "1",
23035
23820
  "camera-controls": true,
23036
23821
  "touch-action": "pan-y",
@@ -23150,7 +23935,7 @@ var CustomCell = function CustomCell(_ref2) {
23150
23935
  return form.validateFields();
23151
23936
  case 3:
23152
23937
  values = _context.sent;
23153
- handleSave(merge(record, values));
23938
+ handleSave(merge$1(record, values));
23154
23939
  _context.next = 10;
23155
23940
  break;
23156
23941
  case 7:
@@ -23463,7 +24248,6 @@ function AGHistogram (_ref) {
23463
24248
  if (subtitle) parseSubTitle = subtitle.text + eval(subtitle.variable);
23464
24249
  setOptions({
23465
24250
  data: data.bulks,
23466
- autoSize: true,
23467
24251
  theme: {
23468
24252
  baseTheme: root.contentStore.theme == 'darkmode' ? 'ag-default-dark' : 'ag-default'
23469
24253
  },
@@ -23534,7 +24318,7 @@ function AGHistogram (_ref) {
23534
24318
  height: height,
23535
24319
  width: width
23536
24320
  },
23537
- children: options && /*#__PURE__*/jsx(AgChartsReact, {
24321
+ children: options && /*#__PURE__*/jsx(AgCharts, {
23538
24322
  options: options
23539
24323
  })
23540
24324
  }), loadingHistogram && /*#__PURE__*/jsx("div", {
@@ -23587,7 +24371,7 @@ dayjs.extend(weekYear);
23587
24371
  Select$1.Option;
23588
24372
  var LOG$3 = getLogger('Backoffice', 'BaseTable');
23589
24373
  var TableWrapper = function TableWrapper(_ref) {
23590
- var _state$configuration$, _state$configuration$2, _state$configuration$3, _state$configuration$4, _state$configuration$5, _state$configuration$6, _state$globalFilter, _state$globalFilter2, _state$globalFilter3, _state$globalFilter4, _state$configuration$7, _state$configuration$8, _state$globalFilter$s, _state$configuration$9, _state$configuration$10, _state$configuration$11, _state$selected2, _state$configuration$12, _state$configuration$13, _state$configuration$14, _state$configuration$17, _state$configuration$18, _state$configuration$19;
24374
+ var _state$configuration$, _toggleConfig$label, _toggleConfig$labelOf, _state$globalFilter, _state$configuration$2, _state$configuration$3, _state$globalFilter2, _state$globalFilter3, _state$globalFilter4, _state$globalFilter5, _state$configuration$4, _state$configuration$5, _state$globalFilter$s, _state$configuration$6, _state$configuration$7, _state$configuration$8, _state$configuration$9, _state$configuration$10, _state$selected2, _state$configuration$11, _state$configuration$12, _state$configuration$13, _state$configuration$16, _state$configuration$17, _state$configuration$18;
23591
24375
  var state = _ref.state;
23592
24376
  var root = useStore();
23593
24377
  var _useState = useState(0),
@@ -23681,6 +24465,7 @@ var TableWrapper = function TableWrapper(_ref) {
23681
24465
  if (!permission) return true;
23682
24466
  return root.actions.userHasPermission(permission);
23683
24467
  }
24468
+ var toggleConfig = (_state$configuration$ = state.configuration.filter) === null || _state$configuration$ === void 0 ? void 0 : _state$configuration$.toggle;
23684
24469
  return /*#__PURE__*/jsxs(Fragment, {
23685
24470
  children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
23686
24471
  children: /*#__PURE__*/jsx(Descriptions, {
@@ -23739,16 +24524,17 @@ var TableWrapper = function TableWrapper(_ref) {
23739
24524
  state.triggerRefresh();
23740
24525
  },
23741
24526
  children: /*#__PURE__*/jsx(ReloadOutlined, {})
23742
- }), ((_state$configuration$ = state.configuration.filter) === null || _state$configuration$ === void 0 ? void 0 : _state$configuration$.toggle) && (!state.configuration.filter.toggle.permission || root.actions.userHasPermission(state.configuration.filter.toggle.permission)) && /*#__PURE__*/jsx("div", {
24527
+ }), toggleConfig && (!toggleConfig.permission || root.actions.userHasPermission(toggleConfig.permission)) && /*#__PURE__*/jsx("div", {
23743
24528
  children: /*#__PURE__*/jsx(Switch, {
23744
- defaultChecked: (_state$configuration$2 = state.configuration.filter) === null || _state$configuration$2 === void 0 ? void 0 : _state$configuration$2.toggle.defaultChecked,
23745
- checkedChildren: (_state$configuration$3 = state.configuration.filter.toggle.label) !== null && _state$configuration$3 !== void 0 ? _state$configuration$3 : 'unfiltered',
23746
- unCheckedChildren: (_state$configuration$4 = state.configuration.filter.toggle.labelOff) !== null && _state$configuration$4 !== void 0 ? _state$configuration$4 : 'filtered',
24529
+ defaultChecked: toggleConfig.defaultChecked,
24530
+ checkedChildren: (_toggleConfig$label = toggleConfig.label) !== null && _toggleConfig$label !== void 0 ? _toggleConfig$label : 'unfiltered',
24531
+ unCheckedChildren: (_toggleConfig$labelOf = toggleConfig.labelOff) !== null && _toggleConfig$labelOf !== void 0 ? _toggleConfig$labelOf : 'filtered',
23747
24532
  onChange: function onChange() {
23748
24533
  return state.onGlobalFilterToggle();
23749
- }
24534
+ },
24535
+ checked: !!((_state$globalFilter = state.globalFilter) !== null && _state$globalFilter !== void 0 && _state$globalFilter.toggle) != !!toggleConfig.inverted
23750
24536
  })
23751
- }), ((_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.search) && /*#__PURE__*/jsx(Input.Search, {
24537
+ }), ((_state$configuration$2 = state.configuration.filter) === null || _state$configuration$2 === void 0 ? void 0 : _state$configuration$2.search) && /*#__PURE__*/jsx(Input.Search, {
23752
24538
  placeholder: t('filter.global'),
23753
24539
  onSearch: function onSearch(v) {
23754
24540
  return state.onGlobalFilterSearch(v);
@@ -23757,17 +24543,17 @@ var TableWrapper = function TableWrapper(_ref) {
23757
24543
  style: {
23758
24544
  width: 200
23759
24545
  }
23760
- }), ((_state$configuration$6 = state.configuration.filter) === null || _state$configuration$6 === void 0 ? void 0 : _state$configuration$6.period) && /*#__PURE__*/jsx(DatePicker.RangePicker, {
24546
+ }), ((_state$configuration$3 = state.configuration.filter) === null || _state$configuration$3 === void 0 ? void 0 : _state$configuration$3.period) && /*#__PURE__*/jsx(DatePicker.RangePicker, {
23761
24547
  onCalendarChange: function onCalendarChange(values) {
23762
24548
  if (values && values[0] && values[1]) {
23763
24549
  state.onGlobalFilterPeriod(values[0].valueOf(), values[1].valueOf());
23764
24550
  }
23765
24551
  },
23766
- value: [(_state$globalFilter = state.globalFilter) !== null && _state$globalFilter !== void 0 && (_state$globalFilter = _state$globalFilter.timeStamp) !== null && _state$globalFilter !== void 0 && (_state$globalFilter = _state$globalFilter['fromTimeStamp']) !== null && _state$globalFilter !== void 0 && _state$globalFilter[0] ? dayjs((_state$globalFilter2 = state.globalFilter) === null || _state$globalFilter2 === void 0 || (_state$globalFilter2 = _state$globalFilter2.timeStamp) === null || _state$globalFilter2 === void 0 || (_state$globalFilter2 = _state$globalFilter2['fromTimeStamp']) === null || _state$globalFilter2 === void 0 ? void 0 : _state$globalFilter2[0]) : dayjs(new Date(Date.now() - 30 * 24 * 60 * 60 * 1000)),
24552
+ value: [(_state$globalFilter2 = state.globalFilter) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2.timeStamp) !== null && _state$globalFilter2 !== void 0 && (_state$globalFilter2 = _state$globalFilter2['fromTimeStamp']) !== null && _state$globalFilter2 !== void 0 && _state$globalFilter2[0] ? dayjs((_state$globalFilter3 = state.globalFilter) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3.timeStamp) === null || _state$globalFilter3 === void 0 || (_state$globalFilter3 = _state$globalFilter3['fromTimeStamp']) === null || _state$globalFilter3 === void 0 ? void 0 : _state$globalFilter3[0]) : dayjs(new Date(Date.now() - 30 * 24 * 60 * 60 * 1000)),
23767
24553
  // Convert to Dayjs
23768
- (_state$globalFilter3 = state.globalFilter) !== null && _state$globalFilter3 !== void 0 && (_state$globalFilter3 = _state$globalFilter3.timeStamp) !== null && _state$globalFilter3 !== void 0 && (_state$globalFilter3 = _state$globalFilter3['toTimeStamp']) !== null && _state$globalFilter3 !== void 0 && _state$globalFilter3[0] ? dayjs((_state$globalFilter4 = state.globalFilter) === null || _state$globalFilter4 === void 0 || (_state$globalFilter4 = _state$globalFilter4.timeStamp) === null || _state$globalFilter4 === void 0 || (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) === null || _state$globalFilter4 === void 0 ? void 0 : _state$globalFilter4[0]) : dayjs(new Date()) // Convert to Dayjs
24554
+ (_state$globalFilter4 = state.globalFilter) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4.timeStamp) !== null && _state$globalFilter4 !== void 0 && (_state$globalFilter4 = _state$globalFilter4['toTimeStamp']) !== null && _state$globalFilter4 !== void 0 && _state$globalFilter4[0] ? dayjs((_state$globalFilter5 = state.globalFilter) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5.timeStamp) === null || _state$globalFilter5 === void 0 || (_state$globalFilter5 = _state$globalFilter5['toTimeStamp']) === null || _state$globalFilter5 === void 0 ? void 0 : _state$globalFilter5[0]) : dayjs(new Date()) // Convert to Dayjs
23769
24555
  ]
23770
- }), ((_state$configuration$7 = state.configuration.filter) === null || _state$configuration$7 === void 0 ? void 0 : _state$configuration$7.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$l(_objectSpread$l({}, (_state$configuration$8 = state.configuration.filter) === null || _state$configuration$8 === void 0 ? void 0 : _state$configuration$8.select.settings), {}, {
24556
+ }), ((_state$configuration$4 = state.configuration.filter) === null || _state$configuration$4 === void 0 ? void 0 : _state$configuration$4.select) && /*#__PURE__*/jsx(SimpleSelect, _objectSpread$l(_objectSpread$l({}, (_state$configuration$5 = state.configuration.filter) === null || _state$configuration$5 === void 0 ? void 0 : _state$configuration$5.select.settings), {}, {
23771
24557
  style: {
23772
24558
  minWidth: '200px'
23773
24559
  },
@@ -23780,17 +24566,19 @@ var TableWrapper = function TableWrapper(_ref) {
23780
24566
  }), state.canDelete && /*#__PURE__*/jsx(DeleteButton, {
23781
24567
  selected: state.selected,
23782
24568
  total: state.pagination.total,
23783
- min: (_state$configuration$9 = state.configuration.rules) === null || _state$configuration$9 === void 0 ? void 0 : _state$configuration$9.min,
24569
+ min: (_state$configuration$6 = state.configuration.rules) === null || _state$configuration$6 === void 0 ? void 0 : _state$configuration$6.min,
23784
24570
  deleting: state.deleting,
23785
24571
  onDelete: state.onDelete,
23786
- disabled: !!((_state$configuration$10 = state.configuration.deleteAction) !== null && _state$configuration$10 !== void 0 && (_state$configuration$11 = _state$configuration$10.disabled) !== null && _state$configuration$11 !== void 0 && _state$configuration$11.call(_state$configuration$10, ((_state$selected2 = state.selected) !== null && _state$selected2 !== void 0 ? _state$selected2 : []).map(function (id) {
24572
+ label: (_state$configuration$7 = state.configuration.deleteAction) === null || _state$configuration$7 === void 0 ? void 0 : _state$configuration$7.label,
24573
+ labelDialog: (_state$configuration$8 = state.configuration.deleteAction) === null || _state$configuration$8 === void 0 ? void 0 : _state$configuration$8.labelDialog,
24574
+ disabled: !!((_state$configuration$9 = state.configuration.deleteAction) !== null && _state$configuration$9 !== void 0 && (_state$configuration$10 = _state$configuration$9.disabled) !== null && _state$configuration$10 !== void 0 && _state$configuration$10.call(_state$configuration$9, ((_state$selected2 = state.selected) !== null && _state$selected2 !== void 0 ? _state$selected2 : []).map(function (id) {
23787
24575
  return state.data.find(function (d) {
23788
24576
  return d._id == id;
23789
24577
  });
23790
24578
  })))
23791
24579
  }), state.configuration.copyAction !== undefined && /*#__PURE__*/jsx(CopyButton, {
23792
24580
  state: state
23793
- }), (_state$configuration$12 = state.configuration.bulkActions) === null || _state$configuration$12 === void 0 ? void 0 : _state$configuration$12.map(function (action) {
24581
+ }), (_state$configuration$11 = state.configuration.bulkActions) === null || _state$configuration$11 === void 0 ? void 0 : _state$configuration$11.map(function (action) {
23794
24582
  return /*#__PURE__*/jsx(BulkAction, {
23795
24583
  action: action,
23796
24584
  state: state,
@@ -23801,26 +24589,26 @@ var TableWrapper = function TableWrapper(_ref) {
23801
24589
  setProgressBarPercentage: setProgressBarPercentage
23802
24590
  } : undefined
23803
24591
  }, action.id);
23804
- }), state.configuration.createAction && checkPermission(state.configuration.createAction.permission) && !((_state$configuration$13 = (_state$configuration$14 = state.configuration.createAction).hidden) !== null && _state$configuration$13 !== void 0 && _state$configuration$13.call(_state$configuration$14, data)) && /*#__PURE__*/jsx(ActionButton, {
24592
+ }), state.configuration.createAction && checkPermission(state.configuration.createAction.permission) && !((_state$configuration$12 = (_state$configuration$13 = state.configuration.createAction).hidden) !== null && _state$configuration$12 !== void 0 && _state$configuration$12.call(_state$configuration$13, data)) && /*#__PURE__*/jsx(ActionButton, {
23805
24593
  action: state.configuration.createAction,
23806
24594
  callback: function callback(data) {
23807
- var _state$onUpdate, _state$configuration$15, _state$configuration$16;
24595
+ var _state$onUpdate, _state$configuration$14, _state$configuration$15;
23808
24596
  (_state$onUpdate = state.onUpdate) === null || _state$onUpdate === void 0 || _state$onUpdate.call(state, data);
23809
- (_state$configuration$15 = state.configuration.createAction) === null || _state$configuration$15 === void 0 || (_state$configuration$16 = _state$configuration$15.callback) === null || _state$configuration$16 === void 0 || _state$configuration$16.call(_state$configuration$15, data);
24597
+ (_state$configuration$14 = state.configuration.createAction) === null || _state$configuration$14 === void 0 || (_state$configuration$15 = _state$configuration$14.callback) === null || _state$configuration$15 === void 0 || _state$configuration$15.call(_state$configuration$14, data);
23810
24598
  },
23811
24599
  type: "Button",
23812
24600
  id: 'create',
23813
24601
  defaultLabel: t('backoffice.table.emailtemplates.createAction.title'),
23814
24602
  isCreateButton: true,
23815
- disabled: state.configuration.createAction.disableOnToggle === !!state.globalFilter.toggle || ((_state$configuration$17 = (_state$configuration$18 = state.configuration.createAction).disabled) === null || _state$configuration$17 === void 0 ? void 0 : _state$configuration$17.call(_state$configuration$18, data)),
23816
- data: state.configuration.createActionMapping ? aplyMapping({
23817
- mapable: {},
24603
+ disabled: state.configuration.createAction.disableOnToggle === !!state.globalFilter.toggle || ((_state$configuration$16 = (_state$configuration$17 = state.configuration.createAction).disabled) === null || _state$configuration$16 === void 0 ? void 0 : _state$configuration$16.call(_state$configuration$17, data)),
24604
+ data: state.configuration.createActionMapping ? applyMapping({
24605
+ mappable: {},
23818
24606
  mapping: state.configuration.createActionMapping,
23819
24607
  mappingData: state.mappingData,
23820
24608
  rootStore: root
23821
24609
  }) : undefined,
23822
- ruleData: state.configuration.createActionRuleMapping ? aplyMapping({
23823
- mapable: {},
24610
+ ruleData: state.configuration.createActionRuleMapping ? applyMapping({
24611
+ mappable: {},
23824
24612
  mapping: state.configuration.createActionRuleMapping,
23825
24613
  mappingData: state.mappingData,
23826
24614
  rootStore: root
@@ -23860,13 +24648,13 @@ var TableWrapper = function TableWrapper(_ref) {
23860
24648
  className: "andt-table",
23861
24649
  scroll: {
23862
24650
  x: '100%',
23863
- y: (_state$configuration$19 = state.configuration.height) !== null && _state$configuration$19 !== void 0 ? _state$configuration$19 : '100%'
24651
+ y: (_state$configuration$18 = state.configuration.height) !== null && _state$configuration$18 !== void 0 ? _state$configuration$18 : '100%'
23864
24652
  },
23865
24653
  rowClassName: editableRow,
23866
24654
  components: cellRenderer,
23867
24655
  rowKey: function rowKey(dataRow) {
23868
- var _state$configuration$20, _state$configuration$21;
23869
- return goTroughObject(dataRow, (_state$configuration$20 = (_state$configuration$21 = state.configuration.rowKey) === null || _state$configuration$21 === void 0 ? void 0 : _state$configuration$21.split('.')) !== null && _state$configuration$20 !== void 0 ? _state$configuration$20 : ['_id'], 0);
24656
+ var _state$configuration$19, _state$configuration$20;
24657
+ return goTroughObject(dataRow, (_state$configuration$19 = (_state$configuration$20 = state.configuration.rowKey) === null || _state$configuration$20 === void 0 ? void 0 : _state$configuration$20.split('.')) !== null && _state$configuration$19 !== void 0 ? _state$configuration$19 : ['_id'], 0);
23870
24658
  },
23871
24659
  dataSource: data,
23872
24660
  loading: state.loading,
@@ -23907,13 +24695,15 @@ function DeleteButton(_ref2) {
23907
24695
  min = _ref2$min === void 0 ? 0 : _ref2$min,
23908
24696
  deleting = _ref2.deleting,
23909
24697
  onDelete = _ref2.onDelete,
23910
- disabled = _ref2.disabled;
24698
+ disabled = _ref2.disabled,
24699
+ label = _ref2.label,
24700
+ labelDialog = _ref2.labelDialog;
23911
24701
  var _useTranslation2 = useTranslation(),
23912
24702
  t = _useTranslation2.t;
23913
24703
  var hasSelected = (selected === null || selected === void 0 ? void 0 : selected.length) > 0;
23914
24704
  var leftAfterDelete = total - selected.length;
23915
24705
  var allowDelete = leftAfterDelete >= min;
23916
- var popupText = !allowDelete ? t('backoffice.basezable.allowdelete-false') + " ".concat(min) : t('backoffice.basezable.allowdelete-true') + " ".concat(selected.length, " ");
24706
+ var popupText = !allowDelete ? t('backoffice.basezable.allowdelete-false') + " ".concat(min) : t(labelDialog !== null && labelDialog !== void 0 ? labelDialog : 'backoffice.basezable.allowdelete-true') + " ".concat(selected.length, " ");
23917
24707
  return /*#__PURE__*/jsx(Fragment, {
23918
24708
  children: /*#__PURE__*/jsx(Popconfirm, {
23919
24709
  title: popupText,
@@ -23930,28 +24720,28 @@ function DeleteButton(_ref2) {
23930
24720
  disabled: !hasSelected || disabled,
23931
24721
  loading: deleting,
23932
24722
  danger: true,
23933
- children: t('action.delete')
24723
+ children: t(label !== null && label !== void 0 ? label : 'action.delete')
23934
24724
  })
23935
24725
  })
23936
24726
  });
23937
24727
  }
23938
24728
  function CopyButton(_ref3) {
23939
- var _state$configuration$25;
24729
+ var _state$configuration$24;
23940
24730
  var state = _ref3.state;
23941
24731
  var root = useStore();
23942
- var apiHandler = new _default$d({
24732
+ new _default$d({
23943
24733
  apiInterface: state.configuration.apiInterface,
23944
24734
  type: 'Table'
23945
24735
  }, root);
23946
24736
  var onCopy = /*#__PURE__*/function () {
23947
24737
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
23948
- var _state$configuration$22;
24738
+ var _state$configuration$21;
23949
24739
  var copyAction, _iterator3, _step3, selectedRow;
23950
24740
  return _regeneratorRuntime.wrap(function _callee$(_context) {
23951
24741
  while (1) switch (_context.prev = _context.next) {
23952
24742
  case 0:
23953
24743
  copyAction = state.configuration.copyAction;
23954
- if (((_state$configuration$22 = state.configuration.copyAction) === null || _state$configuration$22 === void 0 ? void 0 : _state$configuration$22.apiInterface) != undefined) {
24744
+ if (((_state$configuration$21 = state.configuration.copyAction) === null || _state$configuration$21 === void 0 ? void 0 : _state$configuration$21.apiInterface) != undefined) {
23955
24745
  _iterator3 = _createForOfIteratorHelper$4(state.selected);
23956
24746
  try {
23957
24747
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -23986,31 +24776,25 @@ function CopyButton(_ref3) {
23986
24776
  }();
23987
24777
  var onCopyAction = /*#__PURE__*/function () {
23988
24778
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
23989
- var _state$configuration$23, _state$configuration$24;
23990
- var copyAction, id, filter, data;
24779
+ var _state$configuration$22, _state$configuration$23;
24780
+ var copyAction, id, data;
23991
24781
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
23992
24782
  while (1) switch (_context3.prev = _context3.next) {
23993
24783
  case 0:
23994
24784
  copyAction = state.configuration.copyAction;
23995
- if (!(copyAction.id == undefined || copyAction.actionType != 'Detail' || ((_state$configuration$23 = state.configuration.createAction) === null || _state$configuration$23 === void 0 ? void 0 : _state$configuration$23.actionType) != 'Detail')) {
24785
+ if (!(copyAction.id == undefined || copyAction.actionType != 'Detail' || ((_state$configuration$22 = state.configuration.createAction) === null || _state$configuration$22 === void 0 ? void 0 : _state$configuration$22.actionType) != 'Detail')) {
23996
24786
  _context3.next = 3;
23997
24787
  break;
23998
24788
  }
23999
24789
  throw new Error('configuration needs to be of type Detail');
24000
24790
  case 3:
24001
24791
  id = state.selected[0];
24002
- filter = {};
24003
- filter['_id'] = [id, 'eq', false];
24004
- _context3.next = 8;
24005
- return apiHandler.readList(undefined, undefined, {
24006
- pagination: {},
24007
- columns: [],
24008
- filters: filter
24009
- });
24010
- case 8:
24792
+ _context3.next = 6;
24793
+ return state.getDataById(id);
24794
+ case 6:
24011
24795
  data = _context3.sent;
24012
- data.data[0] = aplyMapping({
24013
- mapable: {},
24796
+ data.data[0] = applyMapping({
24797
+ mappable: {},
24014
24798
  mappingData: data.data[0],
24015
24799
  mapping: copyAction.mapping,
24016
24800
  rootStore: root
@@ -24022,7 +24806,7 @@ function CopyButton(_ref3) {
24022
24806
  configurationId: copyAction === null || copyAction === void 0 ? void 0 : copyAction.id,
24023
24807
  data: data.data[0],
24024
24808
  type: copyAction === null || copyAction === void 0 ? void 0 : copyAction.type,
24025
- mapping: (_state$configuration$24 = state.configuration.createAction) === null || _state$configuration$24 === void 0 ? void 0 : _state$configuration$24.mapping,
24809
+ mapping: (_state$configuration$23 = state.configuration.createAction) === null || _state$configuration$23 === void 0 ? void 0 : _state$configuration$23.mapping,
24026
24810
  mappingData: data.data[0],
24027
24811
  callback: function () {
24028
24812
  var _callback = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(e) {
@@ -24032,6 +24816,8 @@ function CopyButton(_ref3) {
24032
24816
  _context2.next = 2;
24033
24817
  return state.onUpdate(e);
24034
24818
  case 2:
24819
+ if (copyAction.resetToggleAfter) state.resetToggle();
24820
+ case 3:
24035
24821
  case "end":
24036
24822
  return _context2.stop();
24037
24823
  }
@@ -24043,7 +24829,7 @@ function CopyButton(_ref3) {
24043
24829
  return callback;
24044
24830
  }()
24045
24831
  });
24046
- case 11:
24832
+ case 9:
24047
24833
  case "end":
24048
24834
  return _context3.stop();
24049
24835
  }
@@ -24058,7 +24844,7 @@ function CopyButton(_ref3) {
24058
24844
  return /*#__PURE__*/jsx(Button, {
24059
24845
  type: "primary",
24060
24846
  onClick: onCopy,
24061
- disabled: state.selected.length == 0 || state.selected.length > 1 && ((_state$configuration$25 = state.configuration.copyAction) === null || _state$configuration$25 === void 0 ? void 0 : _state$configuration$25.disableOnMultiselect),
24847
+ disabled: state.selected.length == 0 || state.selected.length > 1 && ((_state$configuration$24 = state.configuration.copyAction) === null || _state$configuration$24 === void 0 ? void 0 : _state$configuration$24.disableOnMultiselect),
24062
24848
  children: t('backoffice.basetable.copy')
24063
24849
  });
24064
24850
  }
@@ -24210,7 +24996,7 @@ function BulkAction(_ref6) {
24210
24996
  _context4.t5 = _context4.sent;
24211
24997
  _context4.t4.push.call(_context4.t4, _context4.t5);
24212
24998
  case 29:
24213
- if (progressBar) progressBar.setProgressBarPercentage(Math.floor((i + 1 / selectedData.length) * 100));
24999
+ if (progressBar) progressBar.setProgressBarPercentage(Math.floor(i / selectedData.length * 100));
24214
25000
  case 30:
24215
25001
  i++;
24216
25002
  _context4.next = 4;
@@ -24218,22 +25004,27 @@ function BulkAction(_ref6) {
24218
25004
  case 33:
24219
25005
  state.onUpdate(data);
24220
25006
  if (progressBar) {
25007
+ progressBar.setProgressBarPercentage(100);
24221
25008
  progressBar.setProgressBarOpen(false);
24222
25009
  progressBar.setProgressBarPercentage(0);
24223
25010
  }
24224
- _context4.next = 41;
25011
+ _context4.next = 42;
24225
25012
  break;
24226
25013
  case 37:
24227
25014
  _context4.prev = 37;
24228
25015
  _context4.t6 = _context4["catch"](2);
25016
+ if (progressBar) {
25017
+ progressBar.setProgressBarOpen(false);
25018
+ progressBar.setProgressBarPercentage(0);
25019
+ }
24229
25020
  LOG$3.error(new DivaError('Error changing data', {
24230
25021
  cause: _context4.t6,
24231
25022
  code: 'BACKO_0002'
24232
25023
  }));
24233
25024
  setShowPopover(t('errorcodes._source.labels.error.BACKO_0002'));
24234
- case 41:
24235
- (_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, updatedData);
24236
25025
  case 42:
25026
+ (_action$callback = action.callback) === null || _action$callback === void 0 || _action$callback.call(action, updatedData);
25027
+ case 43:
24237
25028
  case "end":
24238
25029
  return _context4.stop();
24239
25030
  }
@@ -24272,6 +25063,8 @@ function BulkAction(_ref6) {
24272
25063
  }
24273
25064
  function SelectionText(_ref8) {
24274
25065
  var selected = _ref8.selected;
25066
+ var _useTranslation5 = useTranslation(),
25067
+ t = _useTranslation5.t;
24275
25068
  if (!(selected !== null && selected !== void 0 && selected.length)) {
24276
25069
  return /*#__PURE__*/jsx(Fragment, {});
24277
25070
  }
@@ -24281,7 +25074,7 @@ function SelectionText(_ref8) {
24281
25074
  fontWeight: 'normal',
24282
25075
  fontSize: 'small'
24283
25076
  },
24284
- children: "".concat(selected.length, " Eintr\xE4ge ausgew\xE4hlt")
25077
+ children: "".concat(selected.length, " ") + t('backoffice.table.selected_entries')
24285
25078
  });
24286
25079
  }
24287
25080
 
@@ -24551,10 +25344,10 @@ var searchProps = function searchProps(title, filter) {
24551
25344
  confirm = _ref4.confirm,
24552
25345
  clearFilters = _ref4.clearFilters,
24553
25346
  visible = _ref4.visible;
24554
- var ref = useRef(null);
25347
+ var ref1 = useRef(null);
24555
25348
  useEffect(function () {
24556
25349
  if (visible) {
24557
- ref.current.select();
25350
+ ref1.current.select();
24558
25351
  }
24559
25352
  }, [visible]);
24560
25353
  return /*#__PURE__*/jsxs("div", {
@@ -24562,7 +25355,7 @@ var searchProps = function searchProps(title, filter) {
24562
25355
  padding: 8
24563
25356
  },
24564
25357
  children: [/*#__PURE__*/jsx(Input, {
24565
- ref: ref,
25358
+ ref: ref1,
24566
25359
  placeholder: "Filter ".concat(title),
24567
25360
  value: selectedKeys[0],
24568
25361
  onChange: function onChange(e) {
@@ -24827,6 +25620,7 @@ function mapColumns(configuration, userHasPermission, onUpdate, data, globalFilt
24827
25620
  function mapColumn(column, onUpdate) {
24828
25621
  var _column$field, _column$children;
24829
25622
  return _objectSpread$j(_objectSpread$j(_objectSpread$j({}, column), {}, {
25623
+ hidden: false,
24830
25624
  width: column.width || 100,
24831
25625
  dataIndex: (_column$field = column.field) === null || _column$field === void 0 ? void 0 : _column$field.split('.'),
24832
25626
  key: column.field || column.title,
@@ -24877,7 +25671,7 @@ function updateData (_ref) {
24877
25671
 
24878
25672
  function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24879
25673
  function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24880
- function aplyFilterAndSortation (_ref) {
25674
+ function applyFilterAndSortation (_ref) {
24881
25675
  var data = _ref.data,
24882
25676
  filters = _ref.filters,
24883
25677
  sorter = _ref.sorter,
@@ -24906,7 +25700,7 @@ function aplyFilterAndSortation (_ref) {
24906
25700
  */
24907
25701
  function sort(s, data) {
24908
25702
  var flatData = data.map(function (d) {
24909
- return flat.flatten(d);
25703
+ return flatten(d);
24910
25704
  });
24911
25705
  var sorters = Array.of(s).flat().sort(function (a, b) {
24912
25706
  var _a$column, _b$column;
@@ -24917,7 +25711,7 @@ function sort(s, data) {
24917
25711
  return d[s.columnKey];
24918
25712
  });
24919
25713
  })).map(function (r) {
24920
- return flat.unflatten(r);
25714
+ return unflatten(r);
24921
25715
  });
24922
25716
  }
24923
25717
 
@@ -24936,7 +25730,7 @@ function filter(f, data) {
24936
25730
  return k.includes('.');
24937
25731
  })) {
24938
25732
  filterableData = data.map(function (d) {
24939
- return flat.flatten(d);
25733
+ return flatten(d);
24940
25734
  });
24941
25735
  isFlatted = true;
24942
25736
  }
@@ -24971,7 +25765,7 @@ function filter(f, data) {
24971
25765
  });
24972
25766
  });
24973
25767
  return isFlatted ? result.map(function (r) {
24974
- return flat.unflatten(r);
25768
+ return unflatten(r);
24975
25769
  }) : result;
24976
25770
  }
24977
25771
 
@@ -25032,7 +25826,7 @@ function useTableData$1 (_ref) {
25032
25826
  var _configuration$create;
25033
25827
  if (!dataRow) return;
25034
25828
  var id = v4();
25035
- var processedDataRow = flat.unflatten(_objectSpread$h({
25829
+ var processedDataRow = unflatten(_objectSpread$h({
25036
25830
  _id: id,
25037
25831
  ID: id
25038
25832
  }, dataRow));
@@ -25048,7 +25842,7 @@ function useTableData$1 (_ref) {
25048
25842
  data: newData
25049
25843
  });
25050
25844
  if (!filterServerSide) {
25051
- var res = aplyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, filterData), {}, {
25845
+ var res = applyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, filterData), {}, {
25052
25846
  data: newData
25053
25847
  }));
25054
25848
  newState.data = res.data;
@@ -25091,11 +25885,10 @@ function useTableData$1 (_ref) {
25091
25885
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
25092
25886
  return c.defaultSortOrder;
25093
25887
  }).map(function (c) {
25094
- var _c$dataIndex;
25095
25888
  return {
25096
25889
  column: c,
25097
25890
  field: c.dataIndex,
25098
- columnKey: (_c$dataIndex = c.dataIndex) === null || _c$dataIndex === void 0 ? void 0 : _c$dataIndex.join('.'),
25891
+ columnKey: c.key,
25099
25892
  order: c.defaultSortOrder
25100
25893
  };
25101
25894
  })
@@ -25108,11 +25901,10 @@ function useTableData$1 (_ref) {
25108
25901
  sorter: mapColumns(configuration, root.actions.userHasPermission, onUpdate).filter(function (c) {
25109
25902
  return c.defaultSortOrder;
25110
25903
  }).map(function (c) {
25111
- var _c$dataIndex2;
25112
25904
  return {
25113
25905
  column: c,
25114
25906
  field: c.dataIndex,
25115
- columnKey: (_c$dataIndex2 = c.dataIndex) === null || _c$dataIndex2 === void 0 ? void 0 : _c$dataIndex2.join('.'),
25907
+ columnKey: c.key,
25116
25908
  order: c.defaultSortOrder
25117
25909
  };
25118
25910
  })
@@ -25125,11 +25917,11 @@ function useTableData$1 (_ref) {
25125
25917
  }));
25126
25918
  if (!filterServerSide) {
25127
25919
  var unfilteredData = dataParam ? dataParam : state.unfilteredData;
25128
- var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, p), {}, {
25920
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$h(_objectSpread$h({}, p), {}, {
25129
25921
  data: unfilteredData
25130
25922
  })),
25131
- data = _aplyFilterAndSortati.data,
25132
- pagination = _aplyFilterAndSortati.pagination;
25923
+ data = _applyFilterAndSortat.data,
25924
+ pagination = _applyFilterAndSortat.pagination;
25133
25925
  setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
25134
25926
  data: data,
25135
25927
  pagination: pagination,
@@ -25165,16 +25957,44 @@ function useTableData$1 (_ref) {
25165
25957
  });
25166
25958
  }
25167
25959
  };
25960
+ var getDataById = /*#__PURE__*/function () {
25961
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(id) {
25962
+ var filters, data;
25963
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
25964
+ while (1) switch (_context.prev = _context.next) {
25965
+ case 0:
25966
+ filters = {};
25967
+ filters['_id'] = [id, 'eq', false];
25968
+ _context.next = 4;
25969
+ return apiHandler.readList(configuration.mapping, {
25970
+ pagination: _objectSpread$h({}, state.pagination),
25971
+ columns: configuration.columns,
25972
+ filters: filters,
25973
+ sorter: filterData.sorter
25974
+ });
25975
+ case 4:
25976
+ data = _context.sent;
25977
+ return _context.abrupt("return", data);
25978
+ case 6:
25979
+ case "end":
25980
+ return _context.stop();
25981
+ }
25982
+ }, _callee);
25983
+ }));
25984
+ return function getDataById(_x) {
25985
+ return _ref2.apply(this, arguments);
25986
+ };
25987
+ }();
25168
25988
  var onSelect = function onSelect(keys) {
25169
25989
  setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
25170
25990
  selected: keys
25171
25991
  }));
25172
25992
  };
25173
25993
  var onDelete = /*#__PURE__*/function () {
25174
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
25994
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
25175
25995
  var newData, deleted, _loop, mappingData, index, total, pages, current, data;
25176
- return _regeneratorRuntime.wrap(function _callee$(_context2) {
25177
- while (1) switch (_context2.prev = _context2.next) {
25996
+ return _regeneratorRuntime.wrap(function _callee2$(_context3) {
25997
+ while (1) switch (_context3.prev = _context3.next) {
25178
25998
  case 0:
25179
25999
  setState(_objectSpread$h(_objectSpread$h({}, state), {}, {
25180
26000
  deleting: true
@@ -25184,24 +26004,24 @@ function useTableData$1 (_ref) {
25184
26004
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop(index) {
25185
26005
  var _newData$filter, _configuration$delete;
25186
26006
  var id, deleteResult, deletedIndex;
25187
- return _regeneratorRuntime.wrap(function _loop$(_context) {
25188
- while (1) switch (_context.prev = _context.next) {
26007
+ return _regeneratorRuntime.wrap(function _loop$(_context2) {
26008
+ while (1) switch (_context2.prev = _context2.next) {
25189
26009
  case 0:
25190
26010
  id = state.selected[index];
25191
26011
  mappingData = (_newData$filter = newData.filter(function (nd) {
25192
26012
  return nd._id === state.selected[index];
25193
26013
  })) === null || _newData$filter === void 0 ? void 0 : _newData$filter[0];
25194
26014
  mappingData = _objectSpread$h(_objectSpread$h({}, mappingData), state.mappingData);
25195
- _context.next = 5;
26015
+ _context2.next = 5;
25196
26016
  return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData, true);
25197
26017
  case 5:
25198
- deleteResult = _context.sent;
26018
+ deleteResult = _context2.sent;
25199
26019
  if (deleteResult) {
25200
- _context.next = 9;
26020
+ _context2.next = 9;
25201
26021
  break;
25202
26022
  }
25203
26023
  setError('Fehler beim löschen eines Elementes.');
25204
- return _context.abrupt("return", 1);
26024
+ return _context2.abrupt("return", 1);
25205
26025
  case 9:
25206
26026
  deletedIndex = newData.findIndex(function (d) {
25207
26027
  return (d === null || d === void 0 ? void 0 : d._id) == id;
@@ -25210,36 +26030,36 @@ function useTableData$1 (_ref) {
25210
26030
  deleted++;
25211
26031
  case 12:
25212
26032
  case "end":
25213
- return _context.stop();
26033
+ return _context2.stop();
25214
26034
  }
25215
26035
  }, _loop);
25216
26036
  });
25217
26037
  index = 0;
25218
26038
  case 5:
25219
26039
  if (!(index < state.selected.length)) {
25220
- _context2.next = 12;
26040
+ _context3.next = 12;
25221
26041
  break;
25222
26042
  }
25223
- return _context2.delegateYield(_loop(index), "t0", 7);
26043
+ return _context3.delegateYield(_loop(index), "t0", 7);
25224
26044
  case 7:
25225
- if (!_context2.t0) {
25226
- _context2.next = 9;
26045
+ if (!_context3.t0) {
26046
+ _context3.next = 9;
25227
26047
  break;
25228
26048
  }
25229
- return _context2.abrupt("continue", 9);
26049
+ return _context3.abrupt("continue", 9);
25230
26050
  case 9:
25231
26051
  index++;
25232
- _context2.next = 5;
26052
+ _context3.next = 5;
25233
26053
  break;
25234
26054
  case 12:
25235
26055
  total = state.pagination.total - deleted;
25236
26056
  pages = Math.ceil(total / state.pagination.pageSize);
25237
26057
  current = state.pagination.current > pages ? pages || 1 : state.pagination.current;
25238
26058
  if (!(pages > 0 && state.pagination.current > pages && filterServerSide || state.selected.length === 0)) {
25239
- _context2.next = 21;
26059
+ _context3.next = 21;
25240
26060
  break;
25241
26061
  }
25242
- _context2.next = 18;
26062
+ _context3.next = 18;
25243
26063
  return apiHandler.readList(configuration.mapping, {
25244
26064
  pagination: _objectSpread$h(_objectSpread$h({}, state.pagination), {}, {
25245
26065
  current: current
@@ -25249,7 +26069,7 @@ function useTableData$1 (_ref) {
25249
26069
  sorter: filterData.sorter
25250
26070
  });
25251
26071
  case 18:
25252
- data = _context2.sent;
26072
+ data = _context3.sent;
25253
26073
  newData = data.data;
25254
26074
  total = data.total;
25255
26075
  case 21:
@@ -25264,12 +26084,12 @@ function useTableData$1 (_ref) {
25264
26084
  }));
25265
26085
  case 22:
25266
26086
  case "end":
25267
- return _context2.stop();
26087
+ return _context3.stop();
25268
26088
  }
25269
- }, _callee);
26089
+ }, _callee2);
25270
26090
  }));
25271
26091
  return function onDelete() {
25272
- return _ref2.apply(this, arguments);
26092
+ return _ref3.apply(this, arguments);
25273
26093
  };
25274
26094
  }();
25275
26095
  function setLoading() {
@@ -25289,6 +26109,10 @@ function useTableData$1 (_ref) {
25289
26109
  onChange: onChange,
25290
26110
  onUpdate: onUpdate,
25291
26111
  onDelete: onDelete,
26112
+ getDataById: getDataById,
26113
+ resetToggle: function resetToggle() {
26114
+ throw new Error('not implemented for CatalogTable');
26115
+ },
25292
26116
  triggerRefresh: function triggerRefresh() {
25293
26117
  throw new Error('not implemented for CatalogTable');
25294
26118
  },
@@ -25423,7 +26247,8 @@ function useTableData (_ref) {
25423
26247
  var toggleConfig = (_configuration$filter = configuration.filter) === null || _configuration$filter === void 0 ? void 0 : _configuration$filter.toggle;
25424
26248
  var toggleFilter = {};
25425
26249
  toggleConfig === null || toggleConfig === void 0 || toggleConfig.fields.forEach(function (f) {
25426
- return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', 1];
26250
+ var _toggleConfig$isAnd;
26251
+ return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', ((_toggleConfig$isAnd = toggleConfig.isAnd) !== null && _toggleConfig$isAnd !== void 0 ? _toggleConfig$isAnd : false) ? 0 : 1];
25427
26252
  });
25428
26253
  var defaultFilter = {};
25429
26254
  (_configuration$filter2 = configuration.filter) === null || _configuration$filter2 === void 0 || (_configuration$filter2 = _configuration$filter2["default"]) === null || _configuration$filter2 === void 0 || _configuration$filter2.fields.forEach(function (f) {
@@ -25539,7 +26364,7 @@ function useTableData (_ref) {
25539
26364
  dataRow: dataRow
25540
26365
  }),
25541
26366
  nextInitData = _updateData2.data;
25542
- var _aplyFilterAndSortati = aplyFilterAndSortation(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData), {}, {
26367
+ var _applyFilterAndSortat = applyFilterAndSortation(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData), {}, {
25543
26368
  filters: _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter5 = configuration.filter) !== null && _configuration$filter5 !== void 0 && (_configuration$filter5 = _configuration$filter5.toggle) !== null && _configuration$filter5 !== void 0 && _configuration$filter5.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"])
25544
26369
  }, configuration !== null && configuration !== void 0 && (_configuration$filter6 = configuration.filter) !== null && _configuration$filter6 !== void 0 && (_configuration$filter6 = _configuration$filter6.toggle) !== null && _configuration$filter6 !== void 0 && _configuration$filter6.inQuery ? {
25545
26370
  genericProps: globalFilter.toggle
@@ -25547,8 +26372,8 @@ function useTableData (_ref) {
25547
26372
  data: nextInitData,
25548
26373
  filterServerSide: filterServerSide
25549
26374
  })),
25550
- _data2 = _aplyFilterAndSortati.data,
25551
- _pagination2 = _aplyFilterAndSortati.pagination;
26375
+ _data2 = _applyFilterAndSortat.data,
26376
+ _pagination2 = _applyFilterAndSortat.pagination;
25552
26377
  newInitData = nextInitData;
25553
26378
  newState = _objectSpread$g(_objectSpread$g({}, newState), {}, {
25554
26379
  pagination: _pagination2,
@@ -25596,11 +26421,10 @@ function useTableData (_ref) {
25596
26421
  var sorter = columns.filter(function (c) {
25597
26422
  return c.defaultSortOrder;
25598
26423
  }).map(function (c) {
25599
- var _c$dataIndex;
25600
26424
  return {
25601
26425
  column: c,
25602
26426
  field: c.dataIndex,
25603
- columnKey: (_c$dataIndex = c.dataIndex) === null || _c$dataIndex === void 0 ? void 0 : _c$dataIndex.join('.'),
26427
+ columnKey: c.key,
25604
26428
  order: c.defaultSortOrder
25605
26429
  };
25606
26430
  });
@@ -25638,38 +26462,77 @@ function useTableData (_ref) {
25638
26462
  }
25639
26463
  return title;
25640
26464
  }, [configuration.title, parentData]);
26465
+ var getDataById = /*#__PURE__*/function () {
26466
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(id) {
26467
+ var _configuration$filter9;
26468
+ var filters, ssf, data;
26469
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
26470
+ while (1) switch (_context2.prev = _context2.next) {
26471
+ case 0:
26472
+ filters = {};
26473
+ filters['_id'] = [id, 'eq', false];
26474
+ ssf = _objectSpread$g({
26475
+ pagination: {
26476
+ current: 1,
26477
+ pageSize: 1
26478
+ },
26479
+ columns: configuration.columns,
26480
+ filters: filters
26481
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter9 = configuration.filter) !== null && _configuration$filter9 !== void 0 && (_configuration$filter9 = _configuration$filter9.toggle) !== null && _configuration$filter9 !== void 0 && _configuration$filter9.inQuery ? {
26482
+ genericProps: globalFilter.toggle
26483
+ } : undefined);
26484
+ _context2.next = 5;
26485
+ return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf);
26486
+ case 5:
26487
+ data = _context2.sent;
26488
+ return _context2.abrupt("return", data);
26489
+ case 7:
26490
+ case "end":
26491
+ return _context2.stop();
26492
+ }
26493
+ }, _callee2);
26494
+ }));
26495
+ return function getDataById(_x2) {
26496
+ return _ref4.apply(this, arguments);
26497
+ };
26498
+ }();
25641
26499
  var onChange = /*#__PURE__*/function () {
25642
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(p) {
25643
- var _configuration$filter9, _configuration$filter10, _configuration$filter11, _prefilter$select, _configuration$filter12, _configuration$filter13;
26500
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(p) {
26501
+ var _configuration$filter10, _configuration$filter11, _prefilter$select, _configuration$filter12, _configuration$filter13;
25644
26502
  var prefilter,
25645
26503
  refresh,
26504
+ clearSelection,
25646
26505
  currentData,
25647
26506
  filterData,
25648
26507
  currentFilterHash,
25649
26508
  currentPagination,
25650
26509
  currentUrl,
25651
26510
  _configuration$filter14,
26511
+ _configuration$filter15,
26512
+ _prefilter$toggle,
26513
+ _parseFilter,
25652
26514
  ssf,
25653
26515
  data,
25654
26516
  _data3,
25655
- _aplyFilterAndSortati2,
26517
+ _applyFilterAndSortat2,
25656
26518
  _data4,
25657
26519
  pagination,
25658
- _args2 = arguments;
25659
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
25660
- while (1) switch (_context2.prev = _context2.next) {
26520
+ _args3 = arguments;
26521
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
26522
+ while (1) switch (_context3.prev = _context3.next) {
25661
26523
  case 0:
25662
- prefilter = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : globalFilter;
25663
- refresh = _args2.length > 2 ? _args2[2] : undefined;
26524
+ prefilter = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : globalFilter;
26525
+ refresh = _args3.length > 2 ? _args3[2] : undefined;
26526
+ clearSelection = _args3.length > 3 ? _args3[3] : undefined;
25664
26527
  setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
25665
26528
  loading: true
25666
26529
  }));
25667
26530
  currentData = initData;
25668
- filterData = _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, p.filters), prefilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter9 = configuration.filter) !== null && _configuration$filter9 !== void 0 && (_configuration$filter9 = _configuration$filter9.toggle) !== null && _configuration$filter9 !== void 0 && _configuration$filter9.inQuery) ? prefilter.toggle : undefined), ((_configuration$filter10 = configuration.filter) === null || _configuration$filter10 === void 0 || (_configuration$filter10 = _configuration$filter10.select) === null || _configuration$filter10 === void 0 ? void 0 : _configuration$filter10.applyDefaultValue) !== false || ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter12 = (_configuration$filter13 = configuration.filter) === null || _configuration$filter13 === void 0 || (_configuration$filter13 = _configuration$filter13.select) === null || _configuration$filter13 === void 0 ? void 0 : _configuration$filter13.filterField) !== null && _configuration$filter12 !== void 0 ? _configuration$filter12 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
25669
- filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref5) {
25670
- var _ref6 = _slicedToArray(_ref5, 2);
25671
- _ref6[0];
25672
- var v = _ref6[1];
26531
+ filterData = _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, prefilter.search), ((_configuration$filter10 = configuration.filter) === null || _configuration$filter10 === void 0 || (_configuration$filter10 = _configuration$filter10.select) === null || _configuration$filter10 === void 0 ? void 0 : _configuration$filter10.applyDefaultValue) !== false || ((_configuration$filter11 = configuration.filter) === null || _configuration$filter11 === void 0 || (_configuration$filter11 = _configuration$filter11.select) === null || _configuration$filter11 === void 0 ? void 0 : _configuration$filter11.defaultValue) !== ((_prefilter$select = prefilter.select) === null || _prefilter$select === void 0 || (_prefilter$select = _prefilter$select[(_configuration$filter12 = (_configuration$filter13 = configuration.filter) === null || _configuration$filter13 === void 0 || (_configuration$filter13 = _configuration$filter13.select) === null || _configuration$filter13 === void 0 ? void 0 : _configuration$filter13.filterField) !== null && _configuration$filter12 !== void 0 ? _configuration$filter12 : '']) === null || _prefilter$select === void 0 ? void 0 : _prefilter$select[0]) ? prefilter.select : undefined), prefilter.timeStamp), prefilter["default"]); //remove all null values
26532
+ filterData = Object.fromEntries(Object.entries(filterData).filter(function (_ref6) {
26533
+ var _ref7 = _slicedToArray(_ref6, 2);
26534
+ _ref7[0];
26535
+ var v = _ref7[1];
25673
26536
  return v != null;
25674
26537
  }));
25675
26538
  currentFilterHash = objectHash(filterData);
@@ -25678,7 +26541,7 @@ function useTableData (_ref) {
25678
26541
  });
25679
26542
  filterHash.current = currentFilterHash;
25680
26543
  if (!filterServerSide) {
25681
- _context2.next = 19;
26544
+ _context3.next = 20;
25682
26545
  break;
25683
26546
  }
25684
26547
  ssf = _objectSpread$g({
@@ -25689,38 +26552,38 @@ function useTableData (_ref) {
25689
26552
  }, configuration !== null && configuration !== void 0 && (_configuration$filter14 = configuration.filter) !== null && _configuration$filter14 !== void 0 && (_configuration$filter14 = _configuration$filter14.toggle) !== null && _configuration$filter14 !== void 0 && _configuration$filter14.inQuery ? {
25690
26553
  genericProps: prefilter.toggle
25691
26554
  } : undefined);
25692
- _context2.next = 13;
25693
- return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf);
25694
- case 13:
25695
- data = _context2.sent;
26555
+ _context3.next = 14;
26556
+ return apiHandler.readList(parentMapping || configuration.mapping, mapping, ssf, undefined, parseFilter(!(configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery) ? (_prefilter$toggle = prefilter.toggle) !== null && _prefilter$toggle !== void 0 ? _prefilter$toggle : {} : {}, (_parseFilter = parseFilter(p.filters, undefined)) === null || _parseFilter === void 0 ? void 0 : _parseFilter.slice(1, -1)));
26557
+ case 14:
26558
+ data = _context3.sent;
25696
26559
  currentUrl = apiHandler.getReadListUrl(parentMapping || configuration.mapping, mapping, ssf);
25697
26560
  currentData = data.data;
25698
26561
  currentPagination = _objectSpread$g(_objectSpread$g({}, currentPagination), {}, {
25699
26562
  total: data.total
25700
26563
  });
25701
- _context2.next = 28;
26564
+ _context3.next = 29;
25702
26565
  break;
25703
- case 19:
26566
+ case 20:
25704
26567
  if (!(!currentData || currentData.length === 0 || refresh)) {
25705
- _context2.next = 25;
26568
+ _context3.next = 26;
25706
26569
  break;
25707
26570
  }
25708
- _context2.next = 22;
26571
+ _context3.next = 23;
25709
26572
  return apiHandler.readList(parentMapping || configuration.mapping, mapping, undefined);
25710
- case 22:
25711
- _data3 = _context2.sent;
26573
+ case 23:
26574
+ _data3 = _context3.sent;
25712
26575
  currentData = _data3.data;
25713
26576
  setInitData(currentData);
25714
- case 25:
25715
- _aplyFilterAndSortati2 = aplyFilterAndSortation(_objectSpread$g(_objectSpread$g({}, p), {}, {
26577
+ case 26:
26578
+ _applyFilterAndSortat2 = applyFilterAndSortation(_objectSpread$g(_objectSpread$g({}, p), {}, {
25716
26579
  pagination: currentPagination,
25717
26580
  filters: filterData,
25718
26581
  data: currentData,
25719
26582
  filterServerSide: filterServerSide
25720
- })), _data4 = _aplyFilterAndSortati2.data, pagination = _aplyFilterAndSortati2.pagination;
26583
+ })), _data4 = _applyFilterAndSortat2.data, pagination = _applyFilterAndSortat2.pagination;
25721
26584
  currentData = _data4;
25722
26585
  currentPagination = pagination;
25723
- case 28:
26586
+ case 29:
25724
26587
  setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
25725
26588
  loading: false,
25726
26589
  data: currentData,
@@ -25729,19 +26592,21 @@ function useTableData (_ref) {
25729
26592
  prefilter: prefilter
25730
26593
  }),
25731
26594
  currentFetchUrl: currentUrl
25732
- }));
26595
+ }, clearSelection ? {
26596
+ selected: []
26597
+ } : {}));
25733
26598
  setFilter({
25734
26599
  filters: p.filters,
25735
26600
  sorter: p.sorter
25736
26601
  });
25737
- case 30:
26602
+ case 31:
25738
26603
  case "end":
25739
- return _context2.stop();
26604
+ return _context3.stop();
25740
26605
  }
25741
- }, _callee2);
26606
+ }, _callee3);
25742
26607
  }));
25743
- return function onChange(_x2) {
25744
- return _ref4.apply(this, arguments);
26608
+ return function onChange(_x3) {
26609
+ return _ref5.apply(this, arguments);
25745
26610
  };
25746
26611
  }();
25747
26612
  var onSelect = function onSelect(keys) {
@@ -25750,11 +26615,11 @@ function useTableData (_ref) {
25750
26615
  }));
25751
26616
  };
25752
26617
  var onDelete = /*#__PURE__*/function () {
25753
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
26618
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
25754
26619
  var _configuration$apiInt2;
25755
- var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$filter15, _configuration$filter16, data;
25756
- return _regeneratorRuntime.wrap(function _callee3$(_context4) {
25757
- while (1) switch (_context4.prev = _context4.next) {
26620
+ var newData, newInitData, deleted, userPermissions, _loop, mappingData, deleteResult, _ret, index, total, pages, current, _configuration$filter16, _configuration$filter17, data;
26621
+ return _regeneratorRuntime.wrap(function _callee4$(_context5) {
26622
+ while (1) switch (_context5.prev = _context5.next) {
25758
26623
  case 0:
25759
26624
  setState(_objectSpread$g(_objectSpread$g({}, state), {}, {
25760
26625
  deleting: true
@@ -25762,15 +26627,15 @@ function useTableData (_ref) {
25762
26627
  newData = _toConsumableArray(state.data);
25763
26628
  newInitData = initData ? _toConsumableArray(initData) : undefined;
25764
26629
  deleted = 0;
25765
- _context4.next = 6;
26630
+ _context5.next = 6;
25766
26631
  return _typeof(configuration.apiInterface) == 'object' && _typeof(configuration.apiInterface["delete"]) == 'object' ? (_configuration$apiInt2 = configuration.apiInterface["delete"]) === null || _configuration$apiInt2 === void 0 ? void 0 : _configuration$apiInt2.permission : undefined;
25767
26632
  case 6:
25768
- userPermissions = _context4.sent;
26633
+ userPermissions = _context5.sent;
25769
26634
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop(index) {
25770
- var _configuration$rowKey, _configuration$filter17, _configuration$filter18;
26635
+ var _configuration$filter18, _configuration$filter19;
25771
26636
  var id, _newData$filter, _newData$filter2, mapToggle, _iterator, _step, _globalFilter$toggle, field, _globalFilter$toggle2, _configuration$delete, _configuration$onErro, _configuration$onErro2, deletedIndex, initDeletedIndex;
25772
- return _regeneratorRuntime.wrap(function _loop$(_context3) {
25773
- while (1) switch (_context3.prev = _context3.next) {
26637
+ return _regeneratorRuntime.wrap(function _loop$(_context4) {
26638
+ while (1) switch (_context4.prev = _context4.next) {
25774
26639
  case 0:
25775
26640
  id = state.selected[index];
25776
26641
  if (configuration.rowKey) {
@@ -25783,7 +26648,7 @@ function useTableData (_ref) {
25783
26648
  })) === null || _newData$filter2 === void 0 ? void 0 : _newData$filter2[0];
25784
26649
  }
25785
26650
  mapToggle = {};
25786
- _iterator = _createForOfIteratorHelper$3((_configuration$filter17 = (_configuration$filter18 = configuration.filter) === null || _configuration$filter18 === void 0 || (_configuration$filter18 = _configuration$filter18.toggle) === null || _configuration$filter18 === void 0 ? void 0 : _configuration$filter18.fields) !== null && _configuration$filter17 !== void 0 ? _configuration$filter17 : []);
26651
+ _iterator = _createForOfIteratorHelper$3((_configuration$filter18 = (_configuration$filter19 = configuration.filter) === null || _configuration$filter19 === void 0 || (_configuration$filter19 = _configuration$filter19.toggle) === null || _configuration$filter19 === void 0 ? void 0 : _configuration$filter19.fields) !== null && _configuration$filter18 !== void 0 ? _configuration$filter18 : []);
25787
26652
  try {
25788
26653
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
25789
26654
  field = _step.value;
@@ -25798,107 +26663,106 @@ function useTableData (_ref) {
25798
26663
  }
25799
26664
  mappingData = _objectSpread$g(_objectSpread$g(_objectSpread$g({}, mappingData), state.mappingData), mapToggle);
25800
26665
  deleteResult = undefined;
25801
- _context3.prev = 7;
26666
+ _context4.prev = 7;
25802
26667
  if (!(userPermissions && !root.actions.userHasPermission(userPermissions))) {
25803
- _context3.next = 11;
26668
+ _context4.next = 11;
25804
26669
  break;
25805
26670
  }
25806
26671
  setError('Sie haben keine Berechtigung ein Mediaitem zu löschen.');
25807
- return _context3.abrupt("return", 0);
26672
+ return _context4.abrupt("return", 0);
25808
26673
  case 11:
25809
- _context3.next = 13;
26674
+ _context4.next = 13;
25810
26675
  return apiHandler["delete"](id, (_configuration$delete = configuration.deleteMapping) !== null && _configuration$delete !== void 0 ? _configuration$delete : configuration.mapping, mappingData);
25811
26676
  case 13:
25812
- deleteResult = _context3.sent;
25813
- _context3.next = 24;
26677
+ deleteResult = _context4.sent;
26678
+ _context4.next = 24;
25814
26679
  break;
25815
26680
  case 16:
25816
- _context3.prev = 16;
25817
- _context3.t0 = _context3["catch"](7);
25818
- if (!(_context3.t0 instanceof DivaError && _context3.t0.name)) {
25819
- _context3.next = 22;
26681
+ _context4.prev = 16;
26682
+ _context4.t0 = _context4["catch"](7);
26683
+ if (!(_context4.t0 instanceof DivaError && _context4.t0.name)) {
26684
+ _context4.next = 22;
25820
26685
  break;
25821
26686
  }
25822
- if (!((_configuration$onErro = configuration.onError) !== null && _configuration$onErro !== void 0 && _configuration$onErro[_context3.t0.name])) {
25823
- _context3.next = 22;
26687
+ if (!((_configuration$onErro = configuration.onError) !== null && _configuration$onErro !== void 0 && _configuration$onErro[_context4.t0.name])) {
26688
+ _context4.next = 22;
25824
26689
  break;
25825
26690
  }
25826
- setError((_configuration$onErro2 = configuration.onError) === null || _configuration$onErro2 === void 0 ? void 0 : _configuration$onErro2[_context3.t0.name]);
25827
- return _context3.abrupt("return", 0);
26691
+ setError((_configuration$onErro2 = configuration.onError) === null || _configuration$onErro2 === void 0 ? void 0 : _configuration$onErro2[_context4.t0.name]);
26692
+ return _context4.abrupt("return", 0);
25828
26693
  case 22:
25829
- setError(_context3.t0.message);
25830
- return _context3.abrupt("return", 0);
26694
+ setError(_context4.t0.message);
26695
+ return _context4.abrupt("return", 0);
25831
26696
  case 24:
25832
26697
  if (deleteResult) {
25833
- _context3.next = 27;
26698
+ _context4.next = 27;
25834
26699
  break;
25835
26700
  }
25836
26701
  setError('Fehler beim löschen eines Elementes.');
25837
- return _context3.abrupt("return", 1);
26702
+ return _context4.abrupt("return", 1);
25838
26703
  case 27:
25839
- (_configuration$rowKey = configuration.rowKey) !== null && _configuration$rowKey !== void 0 ? _configuration$rowKey : '_id';
25840
26704
  deletedIndex = newData.findIndex(function (d) {
25841
- var _configuration$rowKey2, _configuration$rowKey3;
25842
- return goTroughObject(d, (_configuration$rowKey2 = (_configuration$rowKey3 = configuration.rowKey) === null || _configuration$rowKey3 === void 0 ? void 0 : _configuration$rowKey3.split('.')) !== null && _configuration$rowKey2 !== void 0 ? _configuration$rowKey2 : ['_id']) == id;
26705
+ var _configuration$rowKey, _configuration$rowKey2;
26706
+ return goTroughObject(d, (_configuration$rowKey = (_configuration$rowKey2 = configuration.rowKey) === null || _configuration$rowKey2 === void 0 ? void 0 : _configuration$rowKey2.split('.')) !== null && _configuration$rowKey !== void 0 ? _configuration$rowKey : ['_id']) == id;
25843
26707
  });
25844
26708
  newData.splice(deletedIndex, 1);
25845
26709
  initDeletedIndex = newInitData === null || newInitData === void 0 ? void 0 : newInitData.findIndex(function (d) {
25846
- var _configuration$rowKey4, _configuration$rowKey5;
25847
- return goTroughObject(d, (_configuration$rowKey4 = (_configuration$rowKey5 = configuration.rowKey) === null || _configuration$rowKey5 === void 0 ? void 0 : _configuration$rowKey5.split('.')) !== null && _configuration$rowKey4 !== void 0 ? _configuration$rowKey4 : ['_id']) == id;
26710
+ var _configuration$rowKey3, _configuration$rowKey4;
26711
+ return goTroughObject(d, (_configuration$rowKey3 = (_configuration$rowKey4 = configuration.rowKey) === null || _configuration$rowKey4 === void 0 ? void 0 : _configuration$rowKey4.split('.')) !== null && _configuration$rowKey3 !== void 0 ? _configuration$rowKey3 : ['_id']) == id;
25848
26712
  });
25849
26713
  newInitData === null || newInitData === void 0 || newInitData.splice(initDeletedIndex, 1);
25850
26714
  deleted++;
25851
- case 33:
26715
+ case 32:
25852
26716
  case "end":
25853
- return _context3.stop();
26717
+ return _context4.stop();
25854
26718
  }
25855
26719
  }, _loop, null, [[7, 16]]);
25856
26720
  });
25857
26721
  index = 0;
25858
26722
  case 9:
25859
26723
  if (!(index < state.selected.length)) {
25860
- _context4.next = 19;
26724
+ _context5.next = 19;
25861
26725
  break;
25862
26726
  }
25863
- return _context4.delegateYield(_loop(index), "t0", 11);
26727
+ return _context5.delegateYield(_loop(index), "t0", 11);
25864
26728
  case 11:
25865
- _ret = _context4.t0;
26729
+ _ret = _context5.t0;
25866
26730
  if (!(_ret === 0)) {
25867
- _context4.next = 14;
26731
+ _context5.next = 14;
25868
26732
  break;
25869
26733
  }
25870
- return _context4.abrupt("break", 19);
26734
+ return _context5.abrupt("break", 19);
25871
26735
  case 14:
25872
26736
  if (!(_ret === 1)) {
25873
- _context4.next = 16;
26737
+ _context5.next = 16;
25874
26738
  break;
25875
26739
  }
25876
- return _context4.abrupt("continue", 16);
26740
+ return _context5.abrupt("continue", 16);
25877
26741
  case 16:
25878
26742
  index++;
25879
- _context4.next = 9;
26743
+ _context5.next = 9;
25880
26744
  break;
25881
26745
  case 19:
25882
26746
  total = state.pagination.total - deleted;
25883
26747
  pages = Math.ceil(total / state.pagination.pageSize);
25884
26748
  current = state.pagination.current > pages ? pages : state.pagination.current;
25885
26749
  if (!(state.pagination.current > pages && filterServerSide || state.selected.length === 0)) {
25886
- _context4.next = 28;
26750
+ _context5.next = 28;
25887
26751
  break;
25888
26752
  }
25889
- _context4.next = 25;
26753
+ _context5.next = 25;
25890
26754
  return apiHandler.readList(parentMapping || configuration.mapping, mapping, _objectSpread$g({
25891
26755
  pagination: _objectSpread$g(_objectSpread$g({}, state.pagination), {}, {
25892
26756
  current: current
25893
26757
  }),
25894
26758
  columns: configuration.columns,
25895
- filters: _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter15 = configuration.filter) !== null && _configuration$filter15 !== void 0 && (_configuration$filter15 = _configuration$filter15.toggle) !== null && _configuration$filter15 !== void 0 && _configuration$filter15.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
26759
+ filters: _objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g(_objectSpread$g({}, filterData.filters), globalFilter.search), !(configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery) ? globalFilter.toggle : undefined), globalFilter.select), globalFilter.timeStamp), globalFilter["default"]),
25896
26760
  sorter: filterData.sorter
25897
- }, configuration !== null && configuration !== void 0 && (_configuration$filter16 = configuration.filter) !== null && _configuration$filter16 !== void 0 && (_configuration$filter16 = _configuration$filter16.toggle) !== null && _configuration$filter16 !== void 0 && _configuration$filter16.inQuery ? {
26761
+ }, configuration !== null && configuration !== void 0 && (_configuration$filter17 = configuration.filter) !== null && _configuration$filter17 !== void 0 && (_configuration$filter17 = _configuration$filter17.toggle) !== null && _configuration$filter17 !== void 0 && _configuration$filter17.inQuery ? {
25898
26762
  genericProps: globalFilter.toggle
25899
26763
  } : undefined));
25900
26764
  case 25:
25901
- data = _context4.sent;
26765
+ data = _context5.sent;
25902
26766
  newData = data.data;
25903
26767
  total = data.total;
25904
26768
  case 28:
@@ -25914,17 +26778,17 @@ function useTableData (_ref) {
25914
26778
  }));
25915
26779
  case 30:
25916
26780
  case "end":
25917
- return _context4.stop();
26781
+ return _context5.stop();
25918
26782
  }
25919
- }, _callee3);
26783
+ }, _callee4);
25920
26784
  }));
25921
26785
  return function onDelete() {
25922
- return _ref7.apply(this, arguments);
26786
+ return _ref8.apply(this, arguments);
25923
26787
  };
25924
26788
  }();
25925
26789
  var onGlobalFilterSelect = function onGlobalFilterSelect(value) {
25926
- var _configuration$filter19;
25927
- if (!((_configuration$filter19 = configuration.filter) !== null && _configuration$filter19 !== void 0 && _configuration$filter19.select)) {
26790
+ var _configuration$filter20;
26791
+ if (!((_configuration$filter20 = configuration.filter) !== null && _configuration$filter20 !== void 0 && _configuration$filter20.select)) {
25928
26792
  LOG$2.error(new DivaError('No global select filter defiend'));
25929
26793
  return;
25930
26794
  }
@@ -25940,14 +26804,14 @@ function useTableData (_ref) {
25940
26804
  }, filterData), newGlobalFilter);
25941
26805
  };
25942
26806
  var onGlobalFilterToggle = function onGlobalFilterToggle() {
25943
- var _configuration$filter20;
25944
- if (!((_configuration$filter20 = configuration.filter) !== null && _configuration$filter20 !== void 0 && _configuration$filter20.toggle)) {
26807
+ var _configuration$filter21;
26808
+ if (!((_configuration$filter21 = configuration.filter) !== null && _configuration$filter21 !== void 0 && _configuration$filter21.toggle)) {
25945
26809
  LOG$2.error(new DivaError('No global toggle filter defined'));
25946
26810
  return;
25947
26811
  }
25948
26812
  var toggleFilter = {};
25949
26813
  configuration.filter.toggle.fields.forEach(function (f) {
25950
- return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', 1];
26814
+ return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', configuration.filter.toggle.isAnd ? 0 : 1];
25951
26815
  });
25952
26816
  var newGlobalFilter = _objectSpread$g(_objectSpread$g({}, globalFilter), {}, {
25953
26817
  toggle: globalFilter.toggle ? undefined : toggleFilter
@@ -25955,11 +26819,14 @@ function useTableData (_ref) {
25955
26819
  setGlobaFilter(newGlobalFilter);
25956
26820
  onChange(_objectSpread$g({
25957
26821
  pagination: state.pagination
25958
- }, filterData), newGlobalFilter);
26822
+ }, filterData), newGlobalFilter, undefined, true);
26823
+ };
26824
+ var resetToggle = function resetToggle() {
26825
+ if (globalFilter !== null && globalFilter !== void 0 && globalFilter.toggle) onGlobalFilterToggle();
25959
26826
  };
25960
26827
  var onGlobalFilterSearch = function onGlobalFilterSearch(value) {
25961
- var _configuration$filter21;
25962
- if (!((_configuration$filter21 = configuration.filter) !== null && _configuration$filter21 !== void 0 && _configuration$filter21.search)) {
26828
+ var _configuration$filter22;
26829
+ if (!((_configuration$filter22 = configuration.filter) !== null && _configuration$filter22 !== void 0 && _configuration$filter22.search)) {
25963
26830
  LOG$2.error(new DivaError('No global search filter defiend'));
25964
26831
  return;
25965
26832
  }
@@ -25967,12 +26834,12 @@ function useTableData (_ref) {
25967
26834
  search: {}
25968
26835
  });
25969
26836
  if (value) {
25970
- var _configuration$filter22;
25971
- (_configuration$filter22 = configuration.filter) === null || _configuration$filter22 === void 0 || _configuration$filter22.search.fields.forEach(function (f) {
26837
+ var _configuration$filter23;
26838
+ (_configuration$filter23 = configuration.filter) === null || _configuration$filter23 === void 0 || _configuration$filter23.search.fields.forEach(function (f) {
25972
26839
  if (typeof f == 'string') {
25973
- newGlobalFilter.search[f] = [value, 'contains', 0];
26840
+ newGlobalFilter.search[f] = [value, 'contains', 1]; //normally global search should be or, so 1
25974
26841
  } else {
25975
- newGlobalFilter.search[f[0]] = [value, f[1], 0];
26842
+ newGlobalFilter.search[f[0]] = [value, f[1], 1];
25976
26843
  }
25977
26844
  });
25978
26845
  }
@@ -25982,8 +26849,8 @@ function useTableData (_ref) {
25982
26849
  }, filterData), newGlobalFilter);
25983
26850
  };
25984
26851
  var onGlobalFilterPeriod = function onGlobalFilterPeriod(from, to) {
25985
- var _configuration$filter23;
25986
- if (!((_configuration$filter23 = configuration.filter) !== null && _configuration$filter23 !== void 0 && _configuration$filter23.period)) {
26852
+ var _configuration$filter24;
26853
+ if (!((_configuration$filter24 = configuration.filter) !== null && _configuration$filter24 !== void 0 && _configuration$filter24.period)) {
25987
26854
  LOG$2.error(new DivaError('No global period filter defiend'));
25988
26855
  return;
25989
26856
  }
@@ -26005,7 +26872,9 @@ function useTableData (_ref) {
26005
26872
  onUpdate: onUpdate,
26006
26873
  onDelete: onDelete,
26007
26874
  onSelect: onSelect,
26875
+ getDataById: getDataById,
26008
26876
  triggerRefresh: triggerRefresh,
26877
+ resetToggle: resetToggle,
26009
26878
  onSelectedCatalog: onSelectedCatalog,
26010
26879
  error: error,
26011
26880
  catalogItem: catalogItem,
@@ -26324,7 +27193,7 @@ var AGChart = function AGChart(_ref) {
26324
27193
  padding: '50px'
26325
27194
  },
26326
27195
  className: root.contentStore.theme == 'darkmode' ? 'ag-theme-alpine-dark' : 'ag-theme-alpine',
26327
- children: /*#__PURE__*/jsx(AgChartsReact, {
27196
+ children: /*#__PURE__*/jsx(AgCharts, {
26328
27197
  options: {
26329
27198
  data: dt,
26330
27199
  title: {
@@ -26673,9 +27542,7 @@ var CustomInput = function CustomInput(_ref) {
26673
27542
  })]
26674
27543
  });
26675
27544
  };
26676
- var CustomInput$1 = observer(CustomInput, {
26677
- forwardRef: true
26678
- });
27545
+ var CustomInput$1 = observer(CustomInput);
26679
27546
 
26680
27547
  function useTextData (_ref) {
26681
27548
  var id = _ref.id;
@@ -26709,9 +27576,7 @@ var CustomText = function CustomText(_ref) {
26709
27576
  });
26710
27577
  }
26711
27578
  };
26712
- var CustomText$1 = observer(CustomText, {
26713
- forwardRef: true
26714
- });
27579
+ var CustomText$1 = observer(CustomText);
26715
27580
 
26716
27581
  function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26717
27582
  function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -27488,15 +28353,16 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
27488
28353
  return e.stopPropagation();
27489
28354
  },
27490
28355
  children: /*#__PURE__*/jsx(Breadcrumb, {
27491
- children: breadcrumbs.map(function (data) {
27492
- return /*#__PURE__*/jsx(Breadcrumb.Item, {
27493
- className: classnames(breadcrumb, root.dataStore.selectedOrganizationId === data.id ? selected : undefined, !data.readPermission ? disabled : undefined),
28356
+ items: breadcrumbs.map(function (data) {
28357
+ return {
28358
+ key: data.id,
28359
+ breadcrumbName: data.displayName,
27494
28360
  onClick: function onClick() {
27495
28361
  var _root$dataStore;
27496
28362
  return root === null || root === void 0 || (_root$dataStore = root.dataStore) === null || _root$dataStore === void 0 ? void 0 : _root$dataStore.setSelectedOrganizationId(data.id);
27497
28363
  },
27498
- children: data.displayName
27499
- }, data.id);
28364
+ className: classnames(breadcrumb, root.dataStore.selectedOrganizationId === data.id ? selected : undefined, !data.readPermission ? disabled : undefined)
28365
+ };
27500
28366
  })
27501
28367
  })
27502
28368
  })]
@@ -27709,6 +28575,7 @@ var ZoomWrapper = function ZoomWrapper(_ref) {
27709
28575
  }), /*#__PURE__*/jsx(TransformComponent, {
27710
28576
  wrapperStyle: {
27711
28577
  width: '100%',
28578
+ maxHeight: 'calc(60vh - 135px)',
27712
28579
  cursor: isZooming ? 'nesw-resize' : isGrapping ? 'grabbing' : 'grab'
27713
28580
  },
27714
28581
  wrapperProps: {
@@ -28835,7 +29702,8 @@ function useModule (currentModules) {
28835
29702
  },
28836
29703
  type: 'Configurator',
28837
29704
  id: 'WYSIWYG',
28838
- startWidth: 600
29705
+ startWidth: 600,
29706
+ defaultPinned: true
28839
29707
  });
28840
29708
  root.contentStore.tools = tools;
28841
29709
  return function () {
@@ -29960,7 +30828,7 @@ var ExclusivityFeatureOption = function ExclusivityFeatureOption() {
29960
30828
  });
29961
30829
  };
29962
30830
  var ExclusivityTable = function ExclusivityTable(_ref) {
29963
- var _ref2;
30831
+ var _selectedSerie$series;
29964
30832
  var type = _ref.type,
29965
30833
  config = _ref.config;
29966
30834
  var _useTranslation = useTranslation(),
@@ -30024,7 +30892,7 @@ var ExclusivityTable = function ExclusivityTable(_ref) {
30024
30892
  })]
30025
30893
  })
30026
30894
  }), showTable() && /*#__PURE__*/jsx(Spreadsheet, {
30027
- gridId: (_ref2 = 'crud-grid_exclusivity_' + type + (selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.DE)) !== null && _ref2 !== void 0 ? _ref2 : '',
30895
+ gridId: 'crud-grid_exclusivity_' + type + ((_selectedSerie$series = selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.seriesName.DE) !== null && _selectedSerie$series !== void 0 ? _selectedSerie$series : ''),
30028
30896
  jwt: jwt,
30029
30897
  applicationData: applicationData,
30030
30898
  configuration: {
@@ -30401,8 +31269,8 @@ function Detail(_ref) {
30401
31269
  targetField: (_ob$sourceField = ob.sourceField) !== null && _ob$sourceField !== void 0 ? _ob$sourceField : ob.sourceValue
30402
31270
  });
30403
31271
  });
30404
- data = aplyMapping({
30405
- mapable: {},
31272
+ data = applyMapping({
31273
+ mappable: {},
30406
31274
  mappingData: data,
30407
31275
  mapping: {
30408
31276
  map: map,
@@ -30456,8 +31324,10 @@ function Detail(_ref) {
30456
31324
  },
30457
31325
  width: (_info$width = info.width) !== null && _info$width !== void 0 ? _info$width : left ? '800px' : '1000px',
30458
31326
  title: info.title,
30459
- bodyStyle: {
30460
- padding: 0
31327
+ styles: {
31328
+ body: {
31329
+ padding: 0
31330
+ }
30461
31331
  },
30462
31332
  footer: info.footer != false ? /*#__PURE__*/jsxs("div", {
30463
31333
  style: {
@@ -30503,8 +31373,8 @@ function Detail(_ref) {
30503
31373
  apiInterface: info.apiInterface,
30504
31374
  ref: ref,
30505
31375
  id: info.configurationId,
30506
- data: info.mapping ? aplyMapping({
30507
- mapable: {},
31376
+ data: info.mapping ? applyMapping({
31377
+ mappable: {},
30508
31378
  mapping: info.mapping,
30509
31379
  mappingData: info.data,
30510
31380
  rootStore: root
@@ -30515,8 +31385,8 @@ function Detail(_ref) {
30515
31385
  setCanSave: setCanSave
30516
31386
  }), info.type == 'RoleSelector' && /*#__PURE__*/jsx(RoleSelector$1, {
30517
31387
  ref: ref,
30518
- data: info.mapping ? aplyMapping({
30519
- mapable: {},
31388
+ data: info.mapping ? applyMapping({
31389
+ mappable: {},
30520
31390
  mapping: info.mapping,
30521
31391
  mappingData: info.data,
30522
31392
  rootStore: root
@@ -30525,8 +31395,8 @@ function Detail(_ref) {
30525
31395
  onChange: onChange
30526
31396
  }), info.type == 'RelationSelector' && /*#__PURE__*/jsx(RelationSelector$1, {
30527
31397
  ref: ref,
30528
- data: info.mapping ? aplyMapping({
30529
- mapable: {},
31398
+ data: info.mapping ? applyMapping({
31399
+ mappable: {},
30530
31400
  mapping: info.mapping,
30531
31401
  mappingData: info.data,
30532
31402
  rootStore: root
@@ -30539,8 +31409,8 @@ function Detail(_ref) {
30539
31409
  ref: ref,
30540
31410
  id: info.configurationId,
30541
31411
  onChange: onChange,
30542
- data: info.mapping ? aplyMapping({
30543
- mapable: {},
31412
+ data: info.mapping ? applyMapping({
31413
+ mappable: {},
30544
31414
  mapping: info.mapping,
30545
31415
  mappingData: info.data,
30546
31416
  rootStore: root
@@ -30634,8 +31504,8 @@ function Modal() {
30634
31504
  };
30635
31505
  var data = useMemo(function () {
30636
31506
  var _info$action;
30637
- return (_info$action = info.action) !== null && _info$action !== void 0 && _info$action.mapping ? aplyMapping({
30638
- mapable: {},
31507
+ return (_info$action = info.action) !== null && _info$action !== void 0 && _info$action.mapping ? applyMapping({
31508
+ mappable: {},
30639
31509
  mapping: info.action.mapping,
30640
31510
  mappingData: info.data,
30641
31511
  rootStore: root
@@ -30898,7 +31768,8 @@ var ArticleSelection = function ArticleSelection(_ref) {
30898
31768
  }), root.contentStore.toolPinned && /*#__PURE__*/jsx(PushpinFilled, {
30899
31769
  onClick: function onClick() {
30900
31770
  return root.contentStore.toolPinned = !root.contentStore.toolPinned;
30901
- }
31771
+ },
31772
+ className: button
30902
31773
  }), /*#__PURE__*/jsx(Select$2, {
30903
31774
  value: articleList.find(function (a) {
30904
31775
  return a.value == articleCodex;
@@ -31085,6 +31956,7 @@ function useWysiwyg$1(_ref) {
31085
31956
  hideMobileFolder: true,
31086
31957
  showSettingsFolder: true,
31087
31958
  hideRalColorFilter: false,
31959
+ showOptionCodexInOptionHeader: true,
31088
31960
  hideSearchBar: false,
31089
31961
  alwaysShowSearchBar: true,
31090
31962
  displayMetaDatas: ['codex'],
@@ -31445,6 +32317,7 @@ var Toolbar = function Toolbar(_ref) {
31445
32317
  });
31446
32318
  if (_tool) {
31447
32319
  root.contentStore.openedToolId = _tool.id;
32320
+ root.contentStore.toolPinned = !!_tool.defaultPinned;
31448
32321
  root.contentStore.hideTools = false;
31449
32322
  }
31450
32323
  }
@@ -31474,6 +32347,7 @@ var Toolbar = function Toolbar(_ref) {
31474
32347
  onClick: function onClick() {
31475
32348
  if (root.contentStore.openedToolId != t.id) {
31476
32349
  root.contentStore.openedToolId = t.id;
32350
+ root.contentStore.toolPinned = !!t.defaultPinned;
31477
32351
  root.contentStore.hideTools = false;
31478
32352
  } else {
31479
32353
  root.contentStore.hideTools = !root.contentStore.hideTools;