@crystaldesign/diva-backoffice 26.11.0-beta.3 → 26.11.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 (192) hide show
  1. package/build/esm/index.js +14502 -8122
  2. package/build/types/backoffice/src/Configuration.d.ts +11 -5
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  5. package/build/types/backoffice/src/layout/Navigation/types.d.ts +1 -1
  6. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +19 -0
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -0
  9. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts +30 -0
  10. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts.map +1 -0
  11. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts +8 -0
  12. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -0
  13. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +32 -0
  14. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -0
  15. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
  17. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/wysiwygSettings.d.ts +12 -0
  18. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/wysiwygSettings.d.ts.map +1 -0
  19. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  20. package/build/types/backoffice/src/store/ConfigurationStore.d.ts +5 -1
  21. package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
  22. package/build/types/backoffice/src/store/ContentStore.d.ts +1 -0
  23. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  24. package/build/types/backoffice/src/store/GridRegistry.d.ts +25 -0
  25. package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -0
  26. package/build/types/backoffice/src/store/RootStore.d.ts +4 -0
  27. package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
  28. package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts +68 -0
  29. package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts.map +1 -0
  30. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
  31. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
  32. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts +2 -0
  33. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts.map +1 -0
  34. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts +2 -0
  35. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts.map +1 -0
  36. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
  37. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
  38. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/inputImagesModalUtils.test.d.ts +2 -0
  39. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/inputImagesModalUtils.test.d.ts.map +1 -0
  40. package/build/types/backoffice/src/tests/unit/utils/parseServersideFilters.test.d.ts +2 -0
  41. package/build/types/backoffice/src/tests/unit/utils/parseServersideFilters.test.d.ts.map +1 -0
  42. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleSubTable/index.d.ts +30 -0
  43. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleSubTable/index.d.ts.map +1 -0
  44. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts +18 -0
  45. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts.map +1 -0
  46. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/CommonColumnCell/index.d.ts +19 -0
  47. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/CommonColumnCell/index.d.ts.map +1 -0
  48. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useAllowedFieldValues.d.ts +11 -0
  49. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useAllowedFieldValues.d.ts.map +1 -0
  50. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts +13 -0
  51. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts.map +1 -0
  52. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/allowedFieldValues.d.ts +28 -0
  53. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/allowedFieldValues.d.ts.map +1 -0
  54. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts +55 -0
  55. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map +1 -0
  56. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articlePayloads.d.ts +16 -0
  57. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articlePayloads.d.ts.map +1 -0
  58. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/sapLock.d.ts +7 -0
  59. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/sapLock.d.ts.map +1 -0
  60. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/types.d.ts +5 -0
  61. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/types.d.ts.map +1 -0
  62. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts.map +1 -1
  63. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts +5 -1
  64. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts.map +1 -1
  65. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts +8 -4
  66. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts.map +1 -1
  67. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts +1 -12
  68. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts.map +1 -1
  69. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts +18 -8
  71. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -1
  73. package/build/types/backoffice/src/ui/AssortmentManager/{HeaderData/hooks → hooks}/usePersistedFilter.d.ts +4 -2
  74. package/build/types/backoffice/src/ui/AssortmentManager/hooks/usePersistedFilter.d.ts.map +1 -0
  75. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +4 -3
  76. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -1
  77. package/build/types/backoffice/src/ui/AssortmentManager/logic/jsonPointer.d.ts +7 -0
  78. package/build/types/backoffice/src/ui/AssortmentManager/logic/jsonPointer.d.ts.map +1 -0
  79. package/build/types/backoffice/src/ui/AssortmentManager/tests/allowedFieldValues.test.d.ts +2 -0
  80. package/build/types/backoffice/src/ui/AssortmentManager/tests/allowedFieldValues.test.d.ts.map +1 -0
  81. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleColumns.test.d.ts +2 -0
  82. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleColumns.test.d.ts.map +1 -0
  83. package/build/types/backoffice/src/ui/AssortmentManager/tests/articlePayloads.test.d.ts +2 -0
  84. package/build/types/backoffice/src/ui/AssortmentManager/tests/articlePayloads.test.d.ts.map +1 -0
  85. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleSubTable.test.d.ts +2 -0
  86. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleSubTable.test.d.ts.map +1 -0
  87. package/build/types/backoffice/src/ui/AssortmentManager/tests/sapLock.test.d.ts +2 -0
  88. package/build/types/backoffice/src/ui/AssortmentManager/tests/sapLock.test.d.ts.map +1 -0
  89. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +69 -5
  90. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -1
  91. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +11 -2
  92. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  93. package/build/types/backoffice/src/ui/CommonComponents/editorViews.d.ts +34 -0
  94. package/build/types/backoffice/src/ui/CommonComponents/editorViews.d.ts.map +1 -0
  95. package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts +3 -1
  96. package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
  97. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
  98. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
  99. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +4 -5
  100. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
  101. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  102. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
  103. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +5 -1
  104. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  105. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
  106. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  107. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  108. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts +129 -0
  109. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts.map +1 -0
  110. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts +10 -0
  111. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts.map +1 -0
  112. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts +36 -0
  113. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts.map +1 -0
  114. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  115. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts +21 -0
  116. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts.map +1 -0
  117. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts +9 -0
  118. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts.map +1 -0
  119. package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
  120. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  121. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  122. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  123. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  124. package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts +4 -0
  125. package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -0
  126. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +34 -0
  127. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
  128. package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
  129. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  130. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
  131. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
  132. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  133. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
  134. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  135. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +3 -7
  136. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  137. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +2 -1
  138. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  139. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/createAssetOverrideColumn.d.ts +59 -0
  140. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/createAssetOverrideColumn.d.ts.map +1 -0
  141. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +2 -1
  142. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  143. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +2 -1
  144. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  145. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +2 -1
  146. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  147. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +2 -1
  148. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  149. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  150. package/build/types/backoffice/src/ui/IDMEnricherEditor/views.d.ts +4 -0
  151. package/build/types/backoffice/src/ui/IDMEnricherEditor/views.d.ts.map +1 -0
  152. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +1 -1
  153. package/build/types/backoffice/src/ui/Table/StandardTable/useTableData.d.ts.map +1 -1
  154. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts +3 -1
  155. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts.map +1 -1
  156. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts +3 -1
  157. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts.map +1 -1
  158. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/InputImagesModal/index.d.ts +23 -0
  159. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/InputImagesModal/index.d.ts.map +1 -0
  160. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/InputImagesModal/utils.d.ts +10 -0
  161. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/InputImagesModal/utils.d.ts.map +1 -0
  162. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts.map +1 -1
  163. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts +16 -1
  164. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts.map +1 -1
  165. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ReferenceImageTag/index.d.ts +4 -0
  166. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ReferenceImageTag/index.d.ts.map +1 -0
  167. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/index.d.ts.map +1 -1
  168. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts +3 -1
  169. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts.map +1 -1
  170. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useKeyboardShortcuts.d.ts.map +1 -1
  171. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts.map +1 -1
  172. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.d.ts +2 -0
  173. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.d.ts.map +1 -1
  174. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
  175. package/build/types/backoffice/src/ui/TableRenderJobs/config.d.ts +23 -0
  176. package/build/types/backoffice/src/ui/TableRenderJobs/config.d.ts.map +1 -1
  177. package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUpdateRenderJobPatch.d.ts.map +1 -1
  178. package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts +4 -0
  179. package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts.map +1 -1
  180. package/build/types/backoffice/src/utils/ApiHandler.d.ts +1 -1
  181. package/build/types/backoffice/src/utils/ApiHandler.d.ts.map +1 -1
  182. package/build/types/backoffice/src/utils/getIcons.d.ts.map +1 -1
  183. package/build/types/backoffice/src/utils/parseServersideFilters.d.ts +7 -0
  184. package/build/types/backoffice/src/utils/parseServersideFilters.d.ts.map +1 -1
  185. package/package.json +12 -11
  186. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.d.ts.map +0 -1
  187. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
  188. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
  189. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts +0 -8
  190. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +0 -1
  191. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +0 -258
  192. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +0 -1
@@ -0,0 +1,34 @@
1
+ import type { ComponentType } from 'react';
2
+ /** Subtable revealed by selecting a row in the view's main table. */
3
+ export interface EditorSubtableLink {
4
+ /** conditionalTools id that opens it */
5
+ tool: string;
6
+ /** grid label (agentGridId / read-endpoint last segment) */
7
+ grid: string;
8
+ /** key column for entity links inside the subtable */
9
+ keyColumn?: string;
10
+ }
11
+ /** Agent-facing metadata of one editor sub-view — the DIVA agent's navigation context is generated from it. */
12
+ export interface EditorViewAgentMeta {
13
+ /** entity type the main table hosts, as named towards the user (e.g. "Decision (Entscheidung)") */
14
+ entity?: string;
15
+ /** main grid label (agentGridId / read-endpoint last segment) */
16
+ grid: string;
17
+ /** key column for diva:// entity links; omit when the table has no stable key column */
18
+ keyColumn?: string;
19
+ subtable?: EditorSubtableLink;
20
+ /** linking/scoping caveats (prefilters, preferred link route) */
21
+ note?: string;
22
+ }
23
+ /**
24
+ * One editor sub-view: the route segment, the component the router mounts there, and the
25
+ * agent metadata. Adding a module here wires the route AND the agent's navigation context —
26
+ * there is no second list to keep in sync.
27
+ */
28
+ export interface EditorViewDef {
29
+ /** route segment under the editor's base path (e.g. 'decisions', 'enrichment/series') */
30
+ path: string;
31
+ component: ComponentType;
32
+ agent?: EditorViewAgentMeta;
33
+ }
34
+ //# sourceMappingURL=editorViews.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editorViews.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/editorViews.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+GAA+G;AAC/G,MAAM,WAAW,mBAAmB;IAClC,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,yFAAyF;IACzF,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,CAAC;IACzB,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B"}
@@ -34,6 +34,8 @@ export type UseToolsProps = {
34
34
  isApi2?: boolean;
35
35
  /** Whether to use only placeholder */
36
36
  onlyPlaceholder?: boolean;
37
+ /** Mount the DIVA agent tool even without a catalog/package context (editor list views). */
38
+ divaAgent?: boolean;
37
39
  /** Main information window codex */
38
40
  mainInformationWindowCodex?: string;
39
41
  /** Function to set serie */
@@ -66,7 +68,7 @@ export type UseToolsProps = {
66
68
  * @returns {Function} addSecondaryTables - Function to add secondary tables
67
69
  * @returns {Function} removeSecondaryTables - Function to remove secondary tables
68
70
  */
69
- export declare const useTools: ({ catalog, enricherPackage, isApi2, onlyPlaceholder, mainInformationWindowCodex, serie, item, setSerie, setArticle, conditionalTools, }: UseToolsProps) => {
71
+ export declare const useTools: ({ catalog, enricherPackage, isApi2, onlyPlaceholder, divaAgent, mainInformationWindowCodex, serie, item, setSerie, setArticle, conditionalTools, }: UseToolsProps) => {
70
72
  updateConfigurator: (parameters?: Partial<WysiwygParameters>) => void;
71
73
  updateInformationWindow: (codex: string, open: boolean) => void;
72
74
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useTools.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/useTools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,M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C;IAC1B,4FAA4F;IAC5F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACnE,8BAA8B;IAC9B,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,uBAAuB;IACvB,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,uJAYlB,aAAa;sCA8E2B,OAAO,CAAC,iBAAiB,CAAC;qCAd3B,MAAM,QAAQ,OAAO;CA2E9D,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Translates one edited cell of the accessory matrix into the two group fields of the row. The matrix cells are
3
+ * computed and have no field of their own, so every write the grid hands over - the cell editor, the clipboard and
4
+ * the fill handle alike - goes through here. Only a value the cell could hold is applied; anything else returns
5
+ * undefined and leaves the row untouched, so a stray paste cannot corrupt a relation.
6
+ */
7
+ export type AccessoryCellKind = 'mandatoryQuantity' | 'optionalQuantity' | 'setNo' | 'active';
8
+ /**
9
+ * Applies one cell value to the row's matrix and returns the rebuilt group fields, or undefined when the value is
10
+ * nothing the cell could hold. Both fields go together because a quantity can move a reference from the mandatory
11
+ * into the optional group and back.
12
+ */
13
+ export declare function accessoryRowUpdate(data: any, isV4: boolean, accessory: {
14
+ serieNo: string;
15
+ typeNo: string;
16
+ }, kind: AccessoryCellKind, raw: unknown): Record<string, unknown> | undefined;
17
+ //# sourceMappingURL=accessoryCellEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessoryCellEdit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAqC9F;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,OAAO,EACb,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9C,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE,OAAO,GACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAsBrC"}
@@ -27,11 +27,10 @@ interface Props {
27
27
  * The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
28
28
  * through the normal item endpoints.
29
29
  *
30
- * A matrix cell has no row field of its own - it is computed from the nested groups - so the cells render their own
31
- * input and stage the rebuilt groups through the grid's transaction handler. The grid's normal editing path is not
32
- * usable here: it keys each commit on `colDef.field` and drops an edit that has none. Staging keeps the save on the
33
- * row: the grid commits the pending changes when the selection leaves it. The fill handle takes the same route, so
34
- * a value can be dragged onto the rows below it.
30
+ * A matrix cell has no row field of its own - it is computed from the nested groups - so each column carries a
31
+ * cellEditToRowUpdate that turns its edited value back into the two group fields. Everything else is the grid's
32
+ * normal editing: the standard editors, clipboard and fill handle all funnel their writes through that one hook,
33
+ * and the transaction handler commits the staged changes when the row is left.
35
34
  */
36
35
  export declare const ArticleRelations: ((props: Props) => React.JSX.Element | null) & {
37
36
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAetE,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,qGAAqG;IACrG,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,iGAAiG;IACjG,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oFAAoF;IACpF,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAQD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,WAAoB,KAAK;;CA8RpD,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAKtE,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,qGAAqG;IACrG,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,iGAAiG;IACjG,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oFAAoF;IACpF,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,WAAoB,KAAK;;CAwOpD,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAYjH,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CAw3BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAA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face ItemsProps {
8
8
  selectedSerie: any;
9
9
  apiConfig: ApiConfig;
10
10
  hooks?: DivaSpreadsheetHooks<any>;
11
+ /** True while the whole serie's classification run is in progress - every item cell then shows as running too, since the run classifies (and can overwrite) every item as it goes. */
12
+ serieRunActive?: boolean;
13
+ /** Bumped by the owner whenever something outside this component changed the items' classification (e.g. a serie run just settled) - included in the grid's key so it remounts and refetches instead of showing stale rows. */
14
+ refreshToken?: string | number;
11
15
  }
12
- declare const Items: React.ForwardRefExoticComponent<ItemsProps & React.RefAttributes<SpreadsheetRefProps>>;
16
+ declare const Items: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<ItemsProps & React.RefAttributes<SpreadsheetRefProps>, "ref"> & React.RefAttributes<SpreadsheetRefProps>>>;
13
17
  export default Items;
14
18
  //# sourceMappingURL=Items.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,wFAmfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAA4C,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjI,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAwBvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,sLAAsL;IACtL,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+NAA+N;IAC/N,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAgpBD,QAAA,MAAM,KAAK,2KAAuB,CAAC;AAEnC,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAQrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBA2MA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAQrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBA8MA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAKrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAyMA"}
1
+ {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAkNA"}
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAmNA"}
1
+ {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAqNA"}
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Types and access helpers for the goods-group vocabulary (Warengruppen-Programme / Wohnwelten) that idm-service
3
+ * joins onto a serie under `goodsGroup` when the `goodsGroup` field is requested.
4
+ */
5
+ /** One vocabulary entry (a program/catalog group, a living world, or a product group) with its translated name. */
6
+ export interface VocabularyEntry {
7
+ code: string;
8
+ /** Translated display name, keyed by lowercase language code (e.g. 'de', 'en', 'fr', 'it'). */
9
+ name: Record<string, string>;
10
+ }
11
+ /** A living world, nesting the catalog groups (programs) that belong to it. */
12
+ export interface LivingWorldEntry extends VocabularyEntry {
13
+ catalogGroups: VocabularyEntry[];
14
+ }
15
+ /** The full goods-group vocabulary, as returned by idm-service. */
16
+ export interface GoodsGroupVocabulary {
17
+ livingWorlds: LivingWorldEntry[];
18
+ /** Catalog groups (programs) that do not belong to any living world - always 4 entries. */
19
+ catalogGroupsWithoutWorld: VocabularyEntry[];
20
+ productGroups: VocabularyEntry[];
21
+ }
22
+ /** The `goodsGroup` join idm-service attaches to a serie row when the AI enrichment has classified it. */
23
+ export interface SerieGoodsGroupSummary {
24
+ id: string;
25
+ effectiveCatalogGroupCode?: string;
26
+ effectiveLivingWorldCode?: string;
27
+ source: 'ai' | 'manual';
28
+ needsReview: boolean;
29
+ runningRunId?: string;
30
+ }
31
+ /** The `goodsGroup` join idm-service attaches to an item row when the AI enrichment has classified it. */
32
+ export interface ItemGoodsGroupSummary {
33
+ id: string;
34
+ effectiveCode?: string;
35
+ source: 'ai' | 'manual';
36
+ needsReview: boolean;
37
+ changedSinceClassified: boolean;
38
+ }
39
+ /**
40
+ * Resolves the translated display label of a vocabulary entry. Accepts a raw code instead of an entry (e.g. while
41
+ * the vocabulary has not loaded yet, or the code is not one it lists) and returns it unchanged, so callers can
42
+ * pass either without a separate lookup step.
43
+ */
44
+ export declare function vocabularyLabel(entry: VocabularyEntry | string | undefined, language: string): string;
45
+ /**
46
+ * Flattens the vocabulary's catalog groups (programs) into one list - the ones nested under a living world plus
47
+ * the ones without one - for use as the enum editor's option list and for code-to-entry lookups.
48
+ */
49
+ export declare function flattenCatalogGroups(vocabulary: GoodsGroupVocabulary | undefined): VocabularyEntry[];
50
+ /** Identifies the idm-service instance (and, optionally, the caller's auth) to fetch the vocabulary from. */
51
+ export interface GoodsGroupVocabularyContext {
52
+ idmService: string;
53
+ jwt?: string;
54
+ }
55
+ /** The goods-group classification of one serie, as persisted by idm-service - the AI run plus an optional manual correction. */
56
+ export interface GoodsGroupDocument {
57
+ id: string;
58
+ aiGoodsGroupCode?: string;
59
+ aiCatalogGroupCode?: string;
60
+ aiLivingWorldCode?: string;
61
+ aiConfidence?: number;
62
+ aiRationale?: string;
63
+ needsReview: boolean;
64
+ manualCatalogGroupCode?: string;
65
+ manualLivingWorldCode?: string;
66
+ manualGoodsGroupCode?: string;
67
+ correctedBy?: string;
68
+ correctedAt?: string;
69
+ }
70
+ /** Clears the manual correction, reverting the serie's goods-group classification back to the AI value. */
71
+ export declare function deleteGoodsGroupManual(ctx: GoodsGroupVocabularyContext, id: string): Promise<void>;
72
+ /** Fetches a serie's current goods-group classification document. */
73
+ export declare function getGoodsGroup(ctx: GoodsGroupVocabularyContext, id: string): Promise<GoodsGroupDocument>;
74
+ /**
75
+ * Derives the serie-row summary (effective codes, source, review flag) from a goods-group document -
76
+ * the same shape idm-service joins onto a serie row under `goodsGroup`. `previous` carries forward
77
+ * `runningRunId`, which is not part of the document itself and would otherwise be lost on a writeback.
78
+ */
79
+ export declare function toSerieGoodsGroupSummary(doc: GoodsGroupDocument, previous?: SerieGoodsGroupSummary): SerieGoodsGroupSummary;
80
+ /**
81
+ * Derives the item-row summary (effective code, source, review flag) from a goods-group document - the same
82
+ * shape idm-service joins onto an item row under `goodsGroup`. The document has no notion of the item's own
83
+ * change date, so `changedSinceClassified` cannot be derived from it; it is carried forward from `previous`
84
+ * instead, and defaults to false when there is no previous summary to carry it from.
85
+ */
86
+ export declare function toItemGoodsGroupSummary(doc: GoodsGroupDocument, previous?: ItemGoodsGroupSummary): ItemGoodsGroupSummary;
87
+ /**
88
+ * Sets the manual correction by business key (catalog/serie/optional item) instead of the goods-group
89
+ * document id, so it also works for a serie or item that has never been classified yet and therefore has
90
+ * no document (and no id) to address.
91
+ */
92
+ export declare function putGoodsGroupManualByKey(ctx: GoodsGroupVocabularyContext, body: {
93
+ catalogId: string;
94
+ serieId: string;
95
+ typeNo?: string;
96
+ } & ({
97
+ manualCatalogGroupCode: string;
98
+ } | {
99
+ manualGoodsGroupCode: string;
100
+ })): Promise<GoodsGroupDocument>;
101
+ /** The status idm-service reports for a goods-group classification run. */
102
+ export type GoodsGroupRunStatus = 'running' | 'done' | 'error' | 'stopped';
103
+ /** A goods-group classification run for a whole serie, as tracked by idm-service. */
104
+ export interface GoodsGroupRun {
105
+ runId?: string;
106
+ status: GoodsGroupRunStatus;
107
+ error?: string;
108
+ }
109
+ /**
110
+ * Starts a goods-group classification run for a serie. If a run for this serie is already in progress,
111
+ * idm-service returns that run's id instead of starting a second one - depending on how idm-service signals
112
+ * it, either as a normal response or as a non-2xx response that still carries the runId in its body. Both
113
+ * are treated the same here: either way there is now a run for the returned id, ready to poll.
114
+ */
115
+ export declare function startGoodsGroupRun(ctx: GoodsGroupVocabularyContext, body: {
116
+ catalogId: string;
117
+ serieId: string;
118
+ }): Promise<{
119
+ runId: string;
120
+ }>;
121
+ /** Fetches a classification run's current status. */
122
+ export declare function getGoodsGroupRun(ctx: GoodsGroupVocabularyContext, runId: string): Promise<GoodsGroupRun>;
123
+ /** Synchronously classifies a single item and returns its resulting goods-group document. */
124
+ export declare function classifyGoodsGroupItem(ctx: GoodsGroupVocabularyContext, body: {
125
+ catalogId: string;
126
+ serieId: string;
127
+ typeNo: string;
128
+ }): Promise<GoodsGroupDocument>;
129
+ //# sourceMappingURL=goodsGroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goodsGroups.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/api/goodsGroups.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,mHAAmH;AACnH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,+FAA+F;IAC/F,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED,+EAA+E;AAC/E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,aAAa,EAAE,eAAe,EAAE,CAAC;CAClC;AAED,mEAAmE;AACnE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,2FAA2F;IAC3F,yBAAyB,EAAE,eAAe,EAAE,CAAC;IAC7C,aAAa,EAAE,eAAe,EAAE,CAAC;CAClC;AAED,0GAA0G;AAC1G,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,wBAAwB,CAAC,EAAE,MAAM,CAA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sB,gBAAgB,CAAC,GAAG,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAM9G;AAED,6FAA6F;AAC7F,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,2BAA2B,EAChC,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3D,OAAO,CAAC,kBAAkB,CAAC,CAQ7B"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface ClassifyTriggerProps {
3
+ /** Whether this cell's classification is currently running - swaps the icon for a spinner and blocks the click. */
4
+ running: boolean;
5
+ onClick: () => void | Promise<void>;
6
+ }
7
+ /** The AI classification trigger shown at the end of a goods-group cell - see GoodsGroupCellRenderer. */
8
+ export default function ClassifyTrigger({ running, onClick }: ClassifyTriggerProps): React.JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=ClassifyTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClassifyTrigger.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,UAAU,oBAAoB;IAC5B,mHAAmH;IACnH,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAeD,yGAAyG;AACzG,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,oBAAoB,qBAwDjF"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { CustomCellRendererProps } from 'ag-grid-react';
3
+ import { IRowNode } from 'ag-grid-enterprise';
4
+ import { DivaContext } from '@crystaldesign/spreadsheet';
5
+ import { GoodsGroupVocabulary, ItemGoodsGroupSummary, SerieGoodsGroupSummary } from '../../api/goodsGroups';
6
+ export interface RowData {
7
+ /** The row's Mongo id - onClassify needs it (catalogId/serieId/typeNo lookups all key off it), and an
8
+ * add-pending row has none yet. */
9
+ _id?: string;
10
+ goodsGroup?: SerieGoodsGroupSummary | ItemGoodsGroupSummary;
11
+ }
12
+ export type GoodsGroupField = 'catalogGroup' | 'livingWorld' | 'goodsGroup';
13
+ export interface GoodsGroupCellRendererParams {
14
+ /** Which part of the vocabulary the cell's value (a code) is looked up in. */
15
+ field: GoodsGroupField;
16
+ /** The vocabulary, fetched once by the column owner (TableSeries/Items) - undefined while it is loading. */
17
+ vocabulary: GoodsGroupVocabulary | undefined;
18
+ /**
19
+ * Triggers an AI classification for this cell's row. Only set on the columns that support triggering one
20
+ * (Programm/Warengruppe) - left undefined on the readonly Wohnwelt column, which then renders without the
21
+ * icon.
22
+ */
23
+ onClassify?: (data: RowData, node: IRowNode<RowData>) => void | Promise<void>;
24
+ /** Whether this specific cell's classification is currently running - swaps the icon for a spinner and blocks the click. */
25
+ isRunning?: (data: RowData) => boolean;
26
+ }
27
+ /**
28
+ * Renders a serie's or item's goods-group vocabulary value (catalog group/program, living world, or product
29
+ * group) as its translated name, plus - on the columns that pass `onClassify` - an AI classify trigger pinned
30
+ * to the cell's end. Values the AI enrichment run set (`goodsGroup.source === 'ai'`) render greyed out - in the
31
+ * same style as the spreadsheet package's withPlaceholder cells - to mark them as unconfirmed; manually set
32
+ * values render as normal text. The vocabulary is passed in via props rather than fetched here, so the cell
33
+ * shows the raw code until the owner's fetch resolves.
34
+ */
35
+ export default function GoodsGroupCellRenderer(props: CustomCellRendererProps<RowData, string, DivaContext> & GoodsGroupCellRendererParams): React.JSX.Element;
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/GoodsGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA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,SAAS;4BAOhB,GAAG,GAAG,SAAS;kCAOZ,GAAG,GAAG,SAAS;kCAOf,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;;eAvFvF,MAAM;qBACA,GAAG;gBACR,MAAM;oBACF,MAAM;0BACA,iBAAiB;oBACvB,GAAG;yBACE,iBAAiB;mBACvB,GAAG;uBACC,iBAAiB;sBAClB,GAAG;0BACC,iBAAiB;CAoJxC,CAAC"}
1
+ {"version":3,"file":"useCatalogContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useCatalogContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAiBjG,eAAO,MAAM,iBAAiB,oBAAoB,MAAM,EAAE;8BAqD9C,GAAG,GAAG,SAAS;4BAOhB,GAAG,GAAG,SAAS;kCAOZ,GAAG,GAAG,SAAS;kCAOf,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;;eAvFvF,MAAM;qBACA,GAAG;gBACR,MAAM;oBACF,MAAM;0BACA,iBAAiB;oBACvB,GAAG;yBACE,iBAAiB;mBACvB,GAAG;uBACC,iBAAiB;sBAClB,GAAG;0BACC,iBAAiB;CAoKxC,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { GoodsGroupRunStatus, GoodsGroupVocabularyContext } from '../api/goodsGroups';
2
+ /** The result a run settles with - 'running' is excluded, since that is what keeps it being polled. */
3
+ export interface GoodsGroupRunResult {
4
+ status: Exclude<GoodsGroupRunStatus, 'running'>;
5
+ error?: string;
6
+ }
7
+ /**
8
+ * Starts and polls goods-group classification runs - several at once, one per serie. Each tracked run is
9
+ * polled every 2s until it leaves the 'running' status, then onSettled fires once and polling for that run
10
+ * stops; all intervals are cleared on unmount. `ctx` and `onSettled` are read from refs kept current on every
11
+ * render, so `start` and `resume` stay referentially stable and never see stale values.
12
+ */
13
+ export default function useGoodsGroupRun(ctx: GoodsGroupVocabularyContext, onSettled: (runId: string, result: GoodsGroupRunResult) => void): {
14
+ start: (params: {
15
+ catalogId: string;
16
+ serieId: string;
17
+ }) => Promise<string>;
18
+ resume: (runId: string) => void;
19
+ isSettled: (runId: string) => boolean;
20
+ };
21
+ //# sourceMappingURL=useGoodsGroupRun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGoodsGroupRun.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAwC,MAAM,oBAAoB,CAAC;AAI5H,uGAAuG;AACvG,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,OAAO,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,GAAG,EAAE,2BAA2B,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,KAAK,IAAI;oBA6DvH;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;oBAU7C,MAAM;uBAOsB,MAAM;EAM7C"}
@@ -0,0 +1,9 @@
1
+ import { GoodsGroupVocabulary, GoodsGroupVocabularyContext } from '../api/goodsGroups';
2
+ /**
3
+ * Fetches the goods-group vocabulary once per mount (re-fetching only if the service URL or JWT changes), and
4
+ * returns it - or undefined while loading, or after a failed fetch. TableSeries calls this once and passes the
5
+ * result down to the Programm/Wohnwelt columns and their shared cell renderer, so the vocabulary is fetched once
6
+ * instead of once per consumer.
7
+ */
8
+ export default function useGoodsGroupVocabulary(ctx: GoodsGroupVocabularyContext): GoodsGroupVocabulary | undefined;
9
+ //# sourceMappingURL=useGoodsGroupVocabulary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGoodsGroupVocabulary.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,GAAG,EAAE,2BAA2B,GAAG,oBAAoB,GAAG,SAAS,CA6BlH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAgBxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAIxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAmBzD,eAAO,MAAM,aAAa;;CAyIxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAmBzD,eAAO,MAAM,aAAa;;CA0IxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;CA6OzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;CAgPzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAe/C,eAAO,MAAM,UAAU;;CAwFrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAe/C,eAAO,MAAM,UAAU;;CA4FrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAe5D,eAAO,MAAM,WAAW;;CAuXtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAkCtE,eAAO,MAAM,WAAW;;CAukBtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { EditorViewDef } from '../CommonComponents/editorViews';
2
+ /** Sub-views of the IDM catalog editor (routes under catalogs/idmeditor/catalogs/:catalogId). */
3
+ export declare const IDM_CATALOG_EDITOR_VIEWS: EditorViewDef[];
4
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/views.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAehE,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,EAAE,aAAa,EA4GnD,CAAC"}
@@ -1,5 +1,39 @@
1
1
  import { SharedSelectState } from '@crystaldesign/diva-backoffice/ui/SelectSimple/types';
2
2
  export declare const useEnricherContext: (currentModules?: string[]) => {
3
+ setSelectedSerie: (serie: any) => void;
4
+ setSelectedItem: (item: any) => void;
5
+ setSelectedFeature: (feature: any) => void;
6
+ setSelectedPackage: (pkg: any | string, modules?: string[], path?: string, reset?: boolean) => void;
7
+ notifyPackageDataChanged: () => void;
8
+ packageId: string;
9
+ selectedPackage: {
10
+ _id: string;
11
+ name: string;
12
+ isoLanguageIds: never[];
13
+ isApi: boolean;
14
+ onlyPlaceholder: boolean;
15
+ };
16
+ /**
17
+ * If true, the package can only be viewed
18
+ */
19
+ viewOnly?: boolean;
20
+ enricherService: string;
21
+ organizationId: string;
22
+ packageSelectorState: SharedSelectState;
23
+ lookupSeriesSelectorState: SharedSelectState;
24
+ lookupFeatureSelectorState: SharedSelectState;
25
+ exclusivitiesSeriesSelectorState: SharedSelectState;
26
+ exclusivitiesFeatureSelectorState: SharedSelectState;
27
+ selectedSerie: any;
28
+ selectedItem: any;
29
+ selectedFeature: any;
30
+ /**
31
+ * Incremented whenever data of the selected package changed elsewhere (e.g. a table row was saved), so that
32
+ * dependents like the publish button know to refetch — deliberately NOT the same thing as `selectedPackage`,
33
+ * which feeds grid `applicationData`/config; replacing that object on every edit caused the grid to reset itself.
34
+ */
35
+ packageDataVersion: number;
36
+ } | {
3
37
  setSelectedSerie: (serie: any) => void;
4
38
  setSelectedItem: (item: any) => void;
5
39
  setSelectedFeature: (feature: any) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useEnricherContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMEnricherEditor/hooks/useEnricherContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AA4BjG,eAAO,MAAM,kBAAkB,oBAAoB,MAAM,EAAE;8BA2D/C,GAAG;4BAOJ,GAAG;kCAMA,GAAG;8BAgBP,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;eAhHnF,MAAM;qBACA,GAAG;IACpB;;OAEG;eACQ,OAAO;qBACD,MAAM;oBACP,MAAM;0BACA,iBAAiB;+BACZ,iBAAiB;gCAChB,iBAAiB;sCACX,iBAAiB;uCAChB,iBAAiB;mBACrC,GAAG;kBACJ,GAAG;qBACA,GAAG;IACpB;;;;OAIG;wBACiB,MAAM;CAqK3B,CAAC"}
1
+ {"version":3,"file":"useEnricherContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMEnricherEditor/hooks/useEnricherContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AA+BjG,eAAO,MAAM,kBAAkB,oBAAoB,MAAM,EAAE;8BA2D/C,GAAG;4BAOJ,GAAG;kCAMA,GAAG;8BAgBP,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;;;;;;;;;IA9G9F;;OAEG;eACQ,OAAO;qBACD,MAAM;oBACP,MAAM;0BACA,iBAAiB;+BACZ,iBAAiB;gCAChB,iBAAiB;sCACX,iBAAiB;uCAChB,iBAAiB;mBACrC,GAAG;kBACJ,GAAG;qBACA,GAAG;IACpB;;;;OAIG;wBACiB,MAAM;;8BA8DhB,GAAG;4BAOJ,GAAG;kCAMA,GAAG;8BAgBP,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;eAhHnF,MAAM;qBACA,GAAG;IACpB;;OAEG;eACQ,OAAO;qBACD,MAAM;oBACP,MAAM;0BACA,iBAAiB;+BACZ,iBAAiB;gCAChB,iBAAiB;sCACX,iBAAiB;uCAChB,iBAAiB;mBACrC,GAAG;kBACJ,GAAG;qBACA,GAAG;IACpB;;;;OAIG;wBACiB,MAAM;CA0M3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAIzD,UAAU,KAAK;IACb,aAAa,EAAE,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAGzD,UAAU,KAAK;IACb,aAAa,EAAE,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,WAAW;;CAyLtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,WAAW;;CA2LtB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { AdvancedFilterModel } from 'ag-grid-enterprise';
2
+ /**
3
+ * The facts the filter rewrite needs about the user's organization. They mirror the inputs of
4
+ * `automaticPublishingCheck` in ./index.tsx, which derives the displayed cell value - keep the two in sync.
5
+ */
6
+ export interface AutomaticPublishingFilterContext {
7
+ /** The colId of the automatic publishing column (settings.<organizationId>.automaticPublishing). */
8
+ colId: string;
9
+ /** The organization whose packages the table shows. */
10
+ organizationId: string;
11
+ /** Whether automatic publishing is enabled on organization level. */
12
+ automaticPublishingEnabled: boolean;
13
+ /** The ids of the parent organizations of the current organization. */
14
+ parentOrganizationIds: string[];
15
+ }
16
+ /**
17
+ * Rewrites a filter on the automatic publishing column so it matches the value the column displays instead of the
18
+ * raw database field. The displayed value is derived (see `automaticPublishingCheck` in ./index.tsx):
19
+ *
20
+ * - a package created in the current organization that is not based on another package always shows false
21
+ * - with automatic publishing enabled on organization level, the value is whether NO package of the user's
22
+ * organizations depends on it - the stored setting is ignored
23
+ * - otherwise the stored setting decides, where a missing value means false
24
+ *
25
+ * The organization-level facts are constant for every row of one request, so the filter can be rewritten into
26
+ * conditions on the fields that drive the displayed value.
27
+ *
28
+ * @param filterModel the full diva filter model
29
+ * @param context the organization facts the rewrite needs
30
+ * @returns the filter model with every condition on the column replaced, or undefined if nothing remains
31
+ */
32
+ export declare function parseAutomaticPublishingFilterModel(filterModel: AdvancedFilterModel | undefined, context: AutomaticPublishingFilterContext): AdvancedFilterModel | undefined;
33
+ //# sourceMappingURL=automaticPublishingFilterModelParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automaticPublishingFilterModelParser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsD,MAAM,oBAAoB,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,oGAAoG;IACpG,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,0BAA0B,EAAE,OAAO,CAAC;IACpC,uEAAuE;IACvE,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,mBAAmB,GAAG,SAAS,EAC5C,OAAO,EAAE,gCAAgC,GACxC,mBAAmB,GAAG,SAAS,CAKjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA+BpD,eAAO,MAAM,aAAa;;CAwcxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAgCpD,eAAO,MAAM,aAAa;;CAqdxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,gBAAgB;;CAqN3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAUvC,eAAO,MAAM,gBAAgB;;CAwN3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAevE,eAAO,MAAM,cAAc;;CA+UzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAevE,eAAO,MAAM,cAAc;;CAkVzB,CAAC"}
@@ -1,9 +1,5 @@
1
1
  import React from 'react';
2
- declare const RenamingCatalog: () => React.JSX.Element;
3
- declare const RenamingDetailInfo: () => React.JSX.Element;
4
- declare const RenamingFeature: () => React.JSX.Element;
5
- declare const RenamingItem: () => React.JSX.Element;
6
- declare const RenamingOption: () => React.JSX.Element;
7
- declare const RenamingSerie: () => React.JSX.Element;
8
- export { RenamingCatalog, RenamingDetailInfo, RenamingFeature, RenamingItem, RenamingOption, RenamingSerie };
2
+ export declare const RenamingCatalog: (() => React.JSX.Element) & {
3
+ displayName: string;
4
+ };
9
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAwB/C,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,QAAA,MAAM,kBAAkB,yBAEvB,CAAC;AACF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,QAAA,MAAM,YAAY,yBAEjB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,aAAa,yBAElB,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAevC,eAAO,MAAM,eAAe;;CA8F1B,CAAC"}