@crystaldesign/diva-backoffice 26.13.0-beta.2 → 26.13.0-beta.21

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 (243) hide show
  1. package/build/esm/index.js +32649 -29110
  2. package/build/types/backoffice/src/Configuration.d.ts +2 -4
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/index.d.ts +2 -0
  5. package/build/types/backoffice/src/index.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  7. package/build/types/backoffice/src/layout/DataEngine/views.d.ts.map +1 -1
  8. package/build/types/backoffice/src/layout/Detail.d.ts.map +1 -1
  9. package/build/types/backoffice/src/layout/Navigation/types.d.ts +4 -0
  10. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  11. package/build/types/backoffice/src/layout/ProductOnboarding/Content.d.ts +6 -0
  12. package/build/types/backoffice/src/layout/ProductOnboarding/Content.d.ts.map +1 -0
  13. package/build/types/backoffice/src/layout/ProductOnboarding/Navigation.d.ts +6 -0
  14. package/build/types/backoffice/src/layout/ProductOnboarding/Navigation.d.ts.map +1 -0
  15. package/build/types/backoffice/src/layout/ProductOnboarding/index.d.ts +4 -0
  16. package/build/types/backoffice/src/layout/ProductOnboarding/index.d.ts.map +1 -0
  17. package/build/types/backoffice/src/layout/ProductOnboarding/views.d.ts +10 -0
  18. package/build/types/backoffice/src/layout/ProductOnboarding/views.d.ts.map +1 -0
  19. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +20 -0
  20. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -1
  21. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -1
  22. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -1
  23. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +14 -0
  24. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
  25. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts +8 -2
  26. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/useWysiwygContentItem.d.ts.map +1 -1
  28. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  29. package/build/types/backoffice/src/store/ConfigurationStore.d.ts +0 -2
  30. package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
  31. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  32. package/build/types/backoffice/src/store/DetailStore.d.ts +29 -2
  33. package/build/types/backoffice/src/store/DetailStore.d.ts.map +1 -1
  34. package/build/types/backoffice/src/store/ToolBarStore.d.ts +25 -1
  35. package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
  36. package/build/types/backoffice/src/tests/unit/agentBridge/expectedPath.test.d.ts +2 -0
  37. package/build/types/backoffice/src/tests/unit/agentBridge/expectedPath.test.d.ts.map +1 -0
  38. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/approvalWithdrawn.test.d.ts +2 -0
  39. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/approvalWithdrawn.test.d.ts.map +1 -0
  40. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/backofficeSelectionFacts.test.d.ts +2 -0
  41. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/backofficeSelectionFacts.test.d.ts.map +1 -0
  42. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +8 -0
  43. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
  44. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigateToPaths.test.d.ts +2 -0
  45. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigateToPaths.test.d.ts.map +1 -0
  46. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/openToolbarToolDisabled.test.d.ts +2 -0
  47. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/openToolbarToolDisabled.test.d.ts.map +1 -0
  48. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsRow.test.d.ts +2 -0
  49. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsRow.test.d.ts.map +1 -0
  50. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/reloadSelection.test.d.ts +2 -0
  51. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/reloadSelection.test.d.ts.map +1 -0
  52. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageAfterRemount.test.d.ts +2 -0
  53. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageAfterRemount.test.d.ts.map +1 -0
  54. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts +2 -0
  55. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts.map +1 -0
  56. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts +2 -0
  57. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts.map +1 -0
  58. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts +2 -0
  59. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts.map +1 -0
  60. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts +2 -0
  61. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts.map +1 -0
  62. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts +2 -0
  63. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts.map +1 -0
  64. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleStatusCell/index.d.ts +12 -4
  65. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleStatusCell/index.d.ts.map +1 -1
  66. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts +7 -6
  67. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts.map +1 -1
  68. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ClassificationPanel/ClassificationGroups/index.d.ts +8 -2
  69. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ClassificationPanel/ClassificationGroups/index.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ClassificationPanel/ClassificationReady/index.d.ts +7 -2
  71. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ClassificationPanel/ClassificationReady/index.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ClassificationPanel/index.d.ts.map +1 -1
  73. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/DivaNrCell/index.d.ts +11 -3
  74. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/DivaNrCell/index.d.ts.map +1 -1
  75. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/MarkedArticles/index.d.ts +4 -1
  76. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/MarkedArticles/index.d.ts.map +1 -1
  77. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/MissingRequiredFields/index.d.ts +13 -0
  78. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/MissingRequiredFields/index.d.ts.map +1 -0
  79. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/StatusLegend/index.d.ts.map +1 -1
  80. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/findSupplierArticleDuplicate.d.ts +16 -0
  81. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/findSupplierArticleDuplicate.d.ts.map +1 -0
  82. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/planningTransferApi.d.ts +5 -0
  83. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/planningTransferApi.d.ts.map +1 -1
  84. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useArticlePreFilter.d.ts +2 -2
  85. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useArticlePreFilter.d.ts.map +1 -1
  86. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/usePlanningTransfer.d.ts +12 -2
  87. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/usePlanningTransfer.d.ts.map +1 -1
  88. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useUpdateFromSap.d.ts +16 -0
  89. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useUpdateFromSap.d.ts.map +1 -0
  90. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts +3 -3
  91. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts.map +1 -1
  92. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts +42 -11
  93. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map +1 -1
  94. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleLock.d.ts +7 -1
  95. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleLock.d.ts.map +1 -1
  96. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleSearch.d.ts +22 -0
  97. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleSearch.d.ts.map +1 -0
  98. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/classificationTemplate.d.ts +16 -0
  99. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/classificationTemplate.d.ts.map +1 -0
  100. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/duplicateArticle.d.ts +9 -1
  101. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/duplicateArticle.d.ts.map +1 -1
  102. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerSync.d.ts +4 -0
  103. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerSync.d.ts.map +1 -1
  104. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/planningTransfer.d.ts +35 -0
  105. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/planningTransfer.d.ts.map +1 -1
  106. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/readiness.d.ts +7 -0
  107. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/readiness.d.ts.map +1 -1
  108. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/recommendedFields.d.ts +9 -0
  109. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/recommendedFields.d.ts.map +1 -0
  110. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/requiredFieldJump.d.ts +19 -0
  111. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/requiredFieldJump.d.ts.map +1 -0
  112. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/supplierArticleDuplicate.d.ts +19 -0
  113. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/supplierArticleDuplicate.d.ts.map +1 -0
  114. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliExport/index.d.ts +13 -6
  115. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliExport/index.d.ts.map +1 -1
  116. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliImport/index.d.ts +13 -0
  117. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliImport/index.d.ts.map +1 -0
  118. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliTable/index.d.ts +2 -2
  119. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/components/ColliTable/index.d.ts.map +1 -1
  120. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/index.d.ts +2 -1
  121. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/index.d.ts.map +1 -1
  122. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/logic/colliExportSearch.d.ts +17 -0
  123. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/logic/colliExportSearch.d.ts.map +1 -0
  124. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts +2 -0
  125. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -1
  126. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts +0 -4
  127. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts.map +1 -1
  128. package/build/types/backoffice/src/ui/AssortmentManager/config/articleTransfer.d.ts.map +1 -1
  129. package/build/types/backoffice/src/ui/AssortmentManager/config/colliExport.d.ts +2 -2
  130. package/build/types/backoffice/src/ui/AssortmentManager/config/colliFields.d.ts +4 -3
  131. package/build/types/backoffice/src/ui/AssortmentManager/config/colliFields.d.ts.map +1 -1
  132. package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -1
  133. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +0 -3
  134. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -1
  135. package/build/types/backoffice/src/ui/AssortmentManager/logic/itemRows.d.ts +2 -0
  136. package/build/types/backoffice/src/ui/AssortmentManager/logic/itemRows.d.ts.map +1 -1
  137. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleSearch.test.d.ts +2 -0
  138. package/build/types/backoffice/src/ui/AssortmentManager/tests/articleSearch.test.d.ts.map +1 -0
  139. package/build/types/backoffice/src/ui/AssortmentManager/tests/classificationTemplate.test.d.ts +2 -0
  140. package/build/types/backoffice/src/ui/AssortmentManager/tests/classificationTemplate.test.d.ts.map +1 -0
  141. package/build/types/backoffice/src/ui/AssortmentManager/tests/colliExportSearch.test.d.ts +2 -0
  142. package/build/types/backoffice/src/ui/AssortmentManager/tests/colliExportSearch.test.d.ts.map +1 -0
  143. package/build/types/backoffice/src/ui/AssortmentManager/tests/recommendedFields.test.d.ts +2 -0
  144. package/build/types/backoffice/src/ui/AssortmentManager/tests/recommendedFields.test.d.ts.map +1 -0
  145. package/build/types/backoffice/src/ui/AssortmentManager/tests/requiredFieldJump.test.d.ts +2 -0
  146. package/build/types/backoffice/src/ui/AssortmentManager/tests/requiredFieldJump.test.d.ts.map +1 -0
  147. package/build/types/backoffice/src/ui/AssortmentManager/tests/supplierArticleDuplicate.test.d.ts +2 -0
  148. package/build/types/backoffice/src/ui/AssortmentManager/tests/supplierArticleDuplicate.test.d.ts.map +1 -0
  149. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +67 -4
  150. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -1
  151. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts +2 -0
  152. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts.map +1 -1
  153. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +3 -0
  154. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  155. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts +44 -0
  156. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts.map +1 -0
  157. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/ErrorDisplay.d.ts +3 -1
  158. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/ErrorDisplay.d.ts.map +1 -1
  159. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/index.d.ts +1 -1
  160. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/index.d.ts.map +1 -1
  161. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/types.d.ts +10 -0
  162. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/types.d.ts.map +1 -1
  163. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts +2 -0
  164. package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts.map +1 -1
  165. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts +8 -0
  166. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts.map +1 -0
  167. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts +22 -0
  168. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts.map +1 -0
  169. package/build/types/backoffice/src/ui/ContentItems/api.d.ts +18 -0
  170. package/build/types/backoffice/src/ui/ContentItems/api.d.ts.map +1 -0
  171. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts +21 -0
  172. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts.map +1 -0
  173. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts +11 -0
  174. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts.map +1 -0
  175. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts +2 -0
  176. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts.map +1 -1
  177. package/build/types/backoffice/src/ui/Form/index.d.ts +4 -0
  178. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  179. package/build/types/backoffice/src/ui/Form/useFormData.d.ts +3 -1
  180. package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
  181. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +2 -2
  182. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -1
  183. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  184. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +1 -1
  185. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  186. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +1 -1
  187. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  188. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  189. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
  190. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts +7 -2
  191. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +1 -1
  192. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts +4 -2
  193. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
  194. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  195. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts +6 -3
  196. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts.map +1 -1
  197. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/index.d.ts +7 -1
  198. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/index.d.ts.map +1 -1
  199. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/priceFactorHelpers.d.ts +5 -11
  200. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/priceFactorHelpers.d.ts.map +1 -1
  201. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/usePriceFactor.d.ts +8 -5
  202. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/usePriceFactor.d.ts.map +1 -1
  203. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts +13 -0
  204. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts.map +1 -0
  205. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts +10 -0
  206. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts.map +1 -0
  207. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts +27 -0
  208. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts.map +1 -0
  209. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts +9 -0
  210. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts.map +1 -0
  211. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -1
  212. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts +13 -20
  213. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -1
  214. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts +14 -0
  215. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts.map +1 -0
  216. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  217. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  218. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +20 -0
  219. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +1 -0
  220. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts +16 -0
  221. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts.map +1 -0
  222. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts +11 -0
  223. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts.map +1 -0
  224. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.d.ts.map +1 -1
  225. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +5 -0
  226. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
  227. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts +4 -0
  228. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts.map +1 -1
  229. package/package.json +17 -13
  230. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/types.d.ts +0 -5
  231. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/types.d.ts.map +0 -1
  232. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/types.d.ts +0 -5
  233. package/build/types/backoffice/src/ui/AssortmentManager/ColliData/types.d.ts.map +0 -1
  234. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts +0 -16
  235. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts.map +0 -1
  236. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +0 -22
  237. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +0 -1
  238. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts +0 -3
  239. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts.map +0 -1
  240. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts +0 -15
  241. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts.map +0 -1
  242. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts +0 -3
  243. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +0 -1
@@ -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,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,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,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBA0NA"}
1
+ {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,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,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAwOA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA8PlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA0QlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CollectionMembers.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCollectionEditor/Tables/CollectionMembers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,MAAM,4BAA4B,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAkGA"}
1
+ {"version":3,"file":"CollectionMembers.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCollectionEditor/Tables/CollectionMembers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,MAAM,4BAA4B,CAAC;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAqGA"}
@@ -4,8 +4,9 @@ interface PriceFactorHeaderComponentProps {
4
4
  * Callback to save the price factor value
5
5
  * @param data - The data to save
6
6
  * @param value - The value to save
7
+ * @param isDiscount - Per value whether it is shown as discount ([] when none is)
7
8
  */
8
- onSave: (data: any, value: number[]) => Promise<void>;
9
+ onSave: (data: any, value: number[], isDiscount: boolean[]) => Promise<void>;
9
10
  /**
10
11
  * Callback to save the priority value
11
12
  * @param value - The value to save
@@ -23,6 +24,10 @@ interface PriceFactorHeaderComponentProps {
23
24
  * The value of the price factor
24
25
  */
25
26
  value: number[];
27
+ /**
28
+ * Per value of the price factor whether it is shown as discount
29
+ */
30
+ isDiscount?: boolean[];
26
31
  /**
27
32
  * The tooltip key for the input
28
33
  */
@@ -32,6 +37,6 @@ interface PriceFactorHeaderComponentProps {
32
37
  */
33
38
  checkboxTooltip: string;
34
39
  }
35
- export default function PriceFactorHeaderComponent({ onSave, onPriorityChange, priority, priorityForced, value, inputTooltip, checkboxTooltip, }: PriceFactorHeaderComponentProps): React.JSX.Element;
40
+ export default function PriceFactorHeaderComponent({ onSave, onPriorityChange, priority, priorityForced, value, isDiscount, inputTooltip, checkboxTooltip, }: PriceFactorHeaderComponentProps): React.JSX.Element;
36
41
  export {};
37
42
  //# sourceMappingURL=PriceFactorHeaderComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFactorHeaderComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,+BAA+B;IACvC;;;;OAIG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD;;;OAGG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,KAAK,EACL,YAAY,EACZ,eAAe,GAChB,EAAE,+BAA+B,qBAwBjC"}
1
+ {"version":3,"file":"PriceFactorHeaderComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,+BAA+B;IACvC;;;;;OAKG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E;;;OAGG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EACjD,MAAM,EACN,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,KAAK,EACL,UAAU,EACV,YAAY,EACZ,eAAe,GAChB,EAAE,+BAA+B,qBAwBjC"}
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
2
  interface PriceFactorInputProps {
3
3
  value: number[];
4
- onSave: (data: any, value: number[]) => Promise<void>;
4
+ /** Per value whether it is shown as discount */
5
+ isDiscount?: boolean[];
6
+ onSave: (data: any, value: number[], isDiscount: boolean[]) => Promise<void>;
5
7
  disabled?: boolean;
6
8
  title?: string;
7
9
  tooltip?: string;
8
10
  className?: string;
9
11
  }
10
- export default function PriceFactorInput({ onSave, value, ...props }: PriceFactorInputProps): React.JSX.Element;
12
+ export default function PriceFactorInput({ onSave, value, isDiscount, ...props }: PriceFactorInputProps): React.JSX.Element;
11
13
  export {};
12
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAsB1F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,gDAAgD;IAChD,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC;IACvB,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBA6BtG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAmBvE,UAAU,WAAW;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC;IACF,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,WAAoB,WAAW;;CA4YhD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAmBvE,UAAU,WAAW;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC;IACF,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,WAAoB,WAAW;;CAiZhD,CAAC"}
@@ -7,13 +7,16 @@
7
7
  export type PriceFactorScope = 'article' | 'typeKey' | 'priceFeatureGroup' | 'priceGroup' | 'serie';
8
8
  /** Pricelist field per scope holding the factor map. */
9
9
  export declare const PRICE_FACTOR_FIELDS: Record<PriceFactorScope, string>;
10
+ /** Pricelist field per scope holding, index by index beside the factors, whether each factor is shown as discount. */
11
+ export declare const PRICE_FACTOR_DISCOUNT_FIELDS: Record<PriceFactorScope, string>;
10
12
  /** Pricelist field per scope holding the priority list map — only PFG and PG scopes support priority. */
11
13
  export declare const PRICE_FACTOR_PRIORITY_FIELDS: Partial<Record<PriceFactorScope, string>>;
12
14
  /**
13
- * Computes the single-field `setNodeDataValue` patch that applies — or, with an empty `value`, clears —
14
- * a price factor for a scope/key on a serie. `key` is unused for scope 'serie'.
15
+ * Computes the `setNodeDataValue` patch that applies — or, with an empty `value`, clears — a price factor for a
16
+ * scope/key on a serie. `key` is unused for scope 'serie'. `isDiscount` flags the factors shown as discount, index
17
+ * by index; empty when none is, which also clears flags left from before (e.g. when the agent sets factors).
15
18
  */
16
- export declare function applyPriceFactor(pricelist: Record<string, any>, serieNo: number, scope: PriceFactorScope, key: string | undefined, value: number[]): Record<string, any>;
19
+ export declare function applyPriceFactor(pricelist: Record<string, any>, serieNo: number, scope: PriceFactorScope, key: string | undefined, value: number[], isDiscount?: boolean[]): Record<string, any>;
17
20
  /** Computes the single-field `setNodeDataValue` patch that sets/clears the priority flag of a PFG or price-group factor. */
18
21
  export declare function applyPriceFactorPriority(pricelist: Record<string, any>, serieNo: number, scope: PriceFactorScope, key: string, priority: boolean): Record<string, any>;
19
22
  //# sourceMappingURL=priceFactorMutations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"priceFactorMutations.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,mBAAmB,GAAG,YAAY,GAAG,OAAO,CAAC;AAEpG,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMhE,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAGlF,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,KAAK,EAAE,MAAM,EAAE,GACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAuCrB;AAED,4HAA4H;AAC5H,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,OAAO,GAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAwBrB"}
1
+ {"version":3,"file":"priceFactorMutations.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,mBAAmB,GAAG,YAAY,GAAG,OAAO,CAAC;AAEpG,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMhE,CAAC;AAEF,sHAAsH;AACtH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMzE,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAGlF,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,KAAK,EAAE,MAAM,EAAE,EACf,UAAU,GAAE,OAAO,EAAO,GACzB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAMrB;AAiDD,4HAA4H;AAC5H,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,OAAO,GAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAwBrB"}
@@ -10,7 +10,13 @@ export default function PriceFactorCellRenderer(props: Partial<CustomCellRendere
10
10
  };
11
11
  manualPrices: string[];
12
12
  }, number[], DivaContext>> & {
13
- onSave?: (data: any, value: number[]) => Promise<void>;
13
+ /**
14
+ * Saves the factors and, index by index, whether each is shown as discount ([] when none is).
15
+ * `nodeId` is the grid row of the cell; unset outside a grid.
16
+ */
17
+ onSave: (data: any, value: number[], isDiscount: boolean[], nodeId?: string) => Promise<void>;
18
+ /** Reads the discount flags of the factors of a row; values without a flag are shown as factors */
19
+ getIsDiscount?: (data: any) => boolean[] | null | undefined;
14
20
  /**
15
21
  * if true, the component is used outside of an ag-grid cell, thus we have to handle the click event differently
16
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAQzD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,KAAK,EAAE,OAAO,CACZ,uBAAuB,CACrB;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD,MAAM,EAAE,EACR,WAAW,CACZ,CACF,GAAG;IACF,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvD;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,qBAqLF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAQzD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,KAAK,EAAE,OAAO,CACZ,uBAAuB,CACrB;IACE,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB,EACD,MAAM,EAAE,EACR,WAAW,CACZ,CACF,GAAG;IACF;;;OAGG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,mGAAmG;IACnG,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,qBA4KF"}
@@ -6,27 +6,21 @@ export interface PriceEntry {
6
6
  value: string;
7
7
  /** The text as typed by the user; shown instead of the converted value so typing is not overwritten */
8
8
  input?: string;
9
+ /** Whether the row is entered as factor or as discount; the stored value is always the factor */
10
+ type: PriceType;
9
11
  /** Whether the current value is valid according to type rules */
10
12
  isValid: boolean;
11
13
  }
12
14
  /** Largest discount in percent that can be entered */
13
15
  export declare const MAX_DISCOUNT = 99.99999;
14
- /** State container for both factor and discount entries */
15
- export interface EntryState {
16
- /** List of price factor entries (values > 1) */
17
- factor: PriceEntry[];
18
- /** List of discount entries (values between 0 and 1) */
19
- discount: PriceEntry[];
20
- }
21
16
  /**
22
17
  * Formats a list of values for display in the cell
23
18
  * For both types, displays the actual factor value (e.g., 0.8 for 20% discount)
24
19
  * @param values - The values to format
25
- * @param type - The type of price modification
26
20
  * @param locale - The locale to use for formatting
27
21
  * @returns The formatted string with values separated by semicolons
28
22
  */
29
- export declare const formatListValue: (values: number[], type: PriceType, locale: string) => string;
23
+ export declare const formatListValue: (values: number[], locale: string) => string;
30
24
  /**
31
25
  * Converts an internal value to its display representation
32
26
  * For factors: keeps the decimal value
@@ -48,7 +42,7 @@ export declare const convertToDisplayValue: (value: string, type: PriceType) =>
48
42
  export declare const convertFromDisplayValue: (value: string, type: PriceType) => string;
49
43
  /**
50
44
  * Validates if an input value is valid for the given type
51
- * For factors: must be >= 1
45
+ * For factors: must be > 0 (factors below 1 lower the price, factors above 1 raise it)
52
46
  * For discounts: the discount must be between 0 and 99.99999 percent
53
47
  * @param value - The value to validate
54
48
  * @param type - The type of price modification
@@ -57,7 +51,7 @@ export declare const convertFromDisplayValue: (value: string, type: PriceType) =
57
51
  export declare const isValidInput: (value: string, type: PriceType) => boolean;
58
52
  /**
59
53
  * Checks if a value is effective (should be saved)
60
- * For factors: must be > 1 (1 is valid but not effective)
54
+ * For factors: must not be 1 (1 is valid but leaves the price unchanged)
61
55
  * For discounts: must be < 1 (a 0% discount is valid but not effective)
62
56
  * @param value - The value to check
63
57
  * @param type - The type of price modification
@@ -1 +1 @@
1
- {"version":3,"file":"priceFactorHelpers.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/priceFactorHelpers.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,0EAA0E;AAC1E,MAAM,WAAW,UAAU;IACzB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,sDAAsD;AACtD,eAAO,MAAM,YAAY,WAAW,CAAC;AAKrC,2DAA2D;AAC3D,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,EAAE,QAAQ,SAAS,UAAU,MAAM,KAAG,MASnF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,UAAW,MAAM,QAAQ,SAAS,KAAG,MAItE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,QAAQ,SAAS,KAAG,MAIxE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,UAAW,MAAM,QAAQ,SAAS,KAAG,OAM7D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,UAAW,MAAM,QAAQ,SAAS,KAAG,OAGjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAO,MAAa,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,OAE9C,CAAC"}
1
+ {"version":3,"file":"priceFactorHelpers.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/priceFactorHelpers.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9C,0EAA0E;AAC1E,MAAM,WAAW,UAAU;IACzB,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,uGAAuG;IACvG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,IAAI,EAAE,SAAS,CAAC;IAChB,iEAAiE;IACjE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,sDAAsD;AACtD,eAAO,MAAM,YAAY,WAAW,CAAC;AAKrC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,EAAE,UAAU,MAAM,KAAG,MASlE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,UAAW,MAAM,QAAQ,SAAS,KAAG,MAItE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,UAAW,MAAM,QAAQ,SAAS,KAAG,MAIxE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,UAAW,MAAM,QAAQ,SAAS,KAAG,OAM7D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,UAAW,MAAM,QAAQ,SAAS,KAAG,OAGjE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAO,MAAa,CAAC;AAEjD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,OAE9C,CAAC"}
@@ -2,16 +2,18 @@ import { PriceType, PriceEntry } from './priceFactorHelpers';
2
2
  interface UseFactorProps {
3
3
  data: any;
4
4
  initialValue?: number[] | null;
5
- onSave: (data: any, value: number[]) => Promise<void>;
5
+ /** Per value whether it is shown as discount; values without a flag are shown as factors */
6
+ initialIsDiscount?: boolean[] | null;
7
+ /** Saves the factors and, index by index, whether each is a discount ([] when none is) */
8
+ onSave: (data: any, value: number[], isDiscount: boolean[]) => Promise<void>;
6
9
  onRefreshCell: () => void;
7
10
  }
8
11
  interface UseFactorReturn {
9
- type: PriceType;
10
12
  entries: PriceEntry[];
11
13
  isModalOpen: boolean;
12
14
  handleModalOpen: () => void;
13
15
  handleModalClose: () => void;
14
- handleTypeChange: (newType: PriceType) => void;
16
+ handleEntryTypeChange: (index: number, newType: PriceType) => void;
15
17
  handleAddEntry: () => void;
16
18
  handleRemoveEntry: (index: number) => void;
17
19
  handleEntryValueChange: (index: number, displayValue: string) => void;
@@ -22,9 +24,10 @@ interface UseFactorReturn {
22
24
  * @param props - Hook configuration
23
25
  * @param props.data - Data of the row
24
26
  * @param props.initialValue - Initial array of values
25
- * @param props.onSave - Callback to save values
27
+ * @param props.initialIsDiscount - Initial discount flags of the values
28
+ * @param props.onSave - Callback to save values and their discount flags
26
29
  * @param props.onRefreshCell - Callback to refresh the cell after save
27
30
  */
28
- export declare function usePriceFactor({ data, initialValue, onSave, onRefreshCell }: UseFactorProps): UseFactorReturn;
31
+ export declare function usePriceFactor({ data, initialValue, initialIsDiscount, onSave, onRefreshCell }: UseFactorProps): UseFactorReturn;
29
32
  export {};
30
33
  //# sourceMappingURL=usePriceFactor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePriceFactor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/usePriceFactor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,UAAU,EAOX,MAAM,sBAAsB,CAAC;AAE9B,UAAU,cAAc;IACtB,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,gBAAgB,EAAE,CAAC,OAAO,EAAE,SAAS,KAAK,IAAI,CAAC;IAC/C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,cAAc,GAAG,eAAe,CAmIlH"}
1
+ {"version":3,"file":"usePriceFactor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PriceFactorCellRenderer/usePriceFactor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,UAAU,EAMX,MAAM,sBAAsB,CAAC;AAE9B,UAAU,cAAc;IACtB,IAAI,EAAE,GAAG,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/B,4FAA4F;IAC5F,iBAAiB,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;IACrC,0FAA0F;IAC1F,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,KAAK,IAAI,CAAC;IACnE,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC;AAQD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,cAAc,GAAG,eAAe,CAiGrI"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface MismatchedValueCellProps {
3
+ /** The stored value as a text. */
4
+ text: string;
5
+ /** The type of the property's definition. */
6
+ type: string;
7
+ }
8
+ /**
9
+ * A property value that does not fit the type of its definition - the type changed after the value was stored. It shows
10
+ * with a warning until an edit replaces it with a value of the type.
11
+ */
12
+ export declare function MismatchedValueCell({ text, type }: MismatchedValueCellProps): React.JSX.Element;
13
+ //# sourceMappingURL=MismatchedValueCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MismatchedValueCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,wBAAwB;IACvC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,wBAAwB,qBAc3E"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ /**
3
+ * A property's content item, loaded by its key in the portal's language and shown in the backoffice's theme - without
4
+ * one, a hint in the same frame.
5
+ */
6
+ declare const PropertyInfo: React.FunctionComponent<{
7
+ codexKey?: string;
8
+ }>;
9
+ export default PropertyInfo;
10
+ //# sourceMappingURL=PropertyInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyInfo.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC;;;GAGG;AACH,QAAA,MAAM,YAAY;eAA6D,MAAM;EAuBnF,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ /** Id of the Properties tab of the enrichment tables. */
3
+ export declare const PROPERTY_LIST_TAB = "ENRICHMENT_PROPERTIES";
4
+ export interface PropertyListEntry {
5
+ key: string;
6
+ description?: string;
7
+ codexKey?: string;
8
+ type?: string;
9
+ }
10
+ export interface PropertyListPanelProps {
11
+ /** The properties the table's "add property" picker offers. */
12
+ properties: PropertyListEntry[];
13
+ /** The keys that are a column of the table, in the table's order. */
14
+ shownKeys: string[];
15
+ selectedKey?: string;
16
+ onSelect: (key: string) => void;
17
+ /** Adds the property as a column; missing in a view-only table. */
18
+ onAdd?: (property: PropertyListEntry) => void;
19
+ /** Removes the property's column and its values in every row; missing in a view-only table. */
20
+ onRemove?: (key: string) => void;
21
+ }
22
+ /**
23
+ * The Properties tab of an enrichment table: the properties that are a column of the table, and the ones it can add -
24
+ * with what each is for, searchable by key and description.
25
+ */
26
+ export default function PropertyListPanel({ properties, shownKeys, selectedKey, onSelect, onAdd, onRemove }: PropertyListPanelProps): React.JSX.Element;
27
+ //# sourceMappingURL=PropertyListPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyListPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBA2DlI"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /**
3
+ * Removes a property from an enrichment table after a confirmation - which deletes its values in every row of the
4
+ * table. Clicks stay with the button, so a column header under it does not sort.
5
+ */
6
+ export default function RemovePropertyButton({ onConfirm }: {
7
+ onConfirm: () => void;
8
+ }): React.JSX.Element;
9
+ //# sourceMappingURL=RemovePropertyButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemovePropertyButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,qBA2BpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuEjF,QAAA,MAAM,oBAAoB,yBAEzB,CAAC;AACF,QAAA,MAAM,iBAAiB,yBAEtB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,gBAAgB,yBAErB,CAAC;AAEF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqDjF,QAAA,MAAM,oBAAoB,yBAEzB,CAAC;AACF,QAAA,MAAM,iBAAiB,yBAEtB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,gBAAgB,yBAErB,CAAC;AAEF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
@@ -1,27 +1,20 @@
1
- import { TFunction } from 'i18next';
2
- import { DivaColDef } from '@crystaldesign/spreadsheet';
3
- import { type PropertyEncoding } from '@crystaldesign/web-planner-logic';
4
- /** Column tooltip telling the user the exact text format a non-text property expects: translation key and English default per editor kind. */
5
- export declare const PROPERTY_FORMAT_HINT: {
6
- [kind: string]: {
7
- key: string;
8
- defaultValue: string;
9
- };
10
- };
1
+ import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
2
+ /** The language key of a value that is the same in every language - every type but a text (see the enricher service). */
3
+ export declare const LANGUAGE_NEUTRAL_KEY = "ALL";
11
4
  export interface PropertyColumnArgs {
12
- /** The property key: its own value lives under `translatedProp.<key>.<lang>`, the inherited one under `prop.<key>.<lang>`. */
13
5
  key: string;
14
- lang: string;
15
- encoding: PropertyEncoding;
16
- headerLabel: string;
6
+ /** The definition's type: string, boolean, number, list or object. A key without a definition is a text. */
7
+ type?: string;
8
+ /** The package's languages, the leading one first: a text gets a column per language. */
9
+ languages: string[];
17
10
  viewOnly?: boolean;
18
- t: TFunction;
19
11
  }
20
12
  /**
21
- * The column of a parsed (non-text) property. Every cell reads through the codec and writes back through it, so a
22
- * value stored in ANY historic spelling still displays correctly and a save emits the one spelling this property's
23
- * parser reads - writing 'true' where it tests `== '1'` would silently mean false. A boolean encoding is a checkbox,
24
- * every other kind a text cell with the expanded editor.
13
+ * The column of a property in an enrichment table, as the type of its definition says. A text has a column per
14
+ * language (translatedProp.<key>.<LANG>), every other type one column for all languages (translatedProp.<key>.ALL) with
15
+ * the spreadsheet's standard cell, which stores the value as that type. The cell shows the value in force - the pack's
16
+ * own, else the inherited one - and an edit writes the pack's own. A value stored before its definition's type changed
17
+ * shows with a warning, and an edit replaces it with a value of the type.
25
18
  */
26
- export declare function buildPropertyColumn({ key, lang, encoding, headerLabel, viewOnly, t }: PropertyColumnArgs): DivaColDef<any>;
19
+ export declare function buildPropertyColumn({ key, type, languages, viewOnly }: PropertyColumnArgs): DivaColDef<any> | DivaColGroupDef<any>;
27
20
  //# sourceMappingURL=propertyColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAgC,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAML,KAAK,gBAAgB,EAEtB,MAAM,kCAAkC,CAAC;AAG1C,8IAA8I;AAC9I,eAAO,MAAM,oBAAoB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CASzF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,8HAA8H;IAC9H,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,EAAE,SAAS,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,CAyE1H"}
1
+ {"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAItH,yHAAyH;AACzH,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AA4C1C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,4GAA4G;IAC5G,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAgDlI"}
@@ -0,0 +1,14 @@
1
+ export interface PropertyInfoSelection {
2
+ key: string;
3
+ codexKey?: string;
4
+ }
5
+ /**
6
+ * Shows the content item of the selected property in a drawer left of the Properties tab. Selecting another property
7
+ * swaps the drawer's content instead of opening another drawer; no selection closes the drawer, and so does leaving
8
+ * the table.
9
+ *
10
+ * @param selection - the selected property
11
+ * @param onClose - called when the user closes the drawer
12
+ */
13
+ export declare function usePropertyInfoDrawer(selection: PropertyInfoSelection | undefined, onClose: () => void): void;
14
+ //# sourceMappingURL=usePropertyInfoDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePropertyInfoDrawer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,IAAI,QAkCtG"}
@@ -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;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAukBxB,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;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAykBxB,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;;CA4VzB,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;;CA8YzB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
3
+ /** The selected definition, as far as its content item is concerned. */
4
+ export interface SelectedDefinition {
5
+ /** The grid's row node, to write the content item key into. */
6
+ nodeId: string;
7
+ key?: string;
8
+ codexKey?: string;
9
+ }
10
+ interface Props {
11
+ /** Called with the selected definition - and again when that row changes, e.g. its content item key. */
12
+ onSelectionChange?: (selection: SelectedDefinition | undefined) => void;
13
+ }
14
+ /**
15
+ * The property definition registry, shared by every organization: a definition is either global or released to the
16
+ * chosen organizations, and a release reaches their sub-organizations too - the same way a package release does.
17
+ */
18
+ declare const PropertyDefinitions: React.ForwardRefExoticComponent<Props & React.RefAttributes<SpreadsheetRefProps>>;
19
+ export default PropertyDefinitions;
20
+ //# sourceMappingURL=PropertyDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAuC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAiCtG,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAK;IACb,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,kBAAkB,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE;AAKD;;;GAGG;AACH,QAAA,MAAM,mBAAmB,mFA8LvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { TFunction } from 'i18next';
2
+ import RootStore from '../../../store/RootStore';
3
+ import { ContentItem } from '../../ContentItems/api';
4
+ /**
5
+ * Key of the content item template a property's content item starts from. It is maintained among the content item
6
+ * templates, so the layout of the property help changes without a deployment.
7
+ */
8
+ export declare const PROPERTY_INFO_TEMPLATE_CODEX = "PROPERTY_INFO_TEMPLATE";
9
+ /**
10
+ * Creates a GLOBAL content item, prefilled with the given key. With the template the content item form opens with its
11
+ * blocks - the form the content items table copies a template in; without it, the JSON editor the global content
12
+ * items table creates them in. A second item under a key that is already taken would make the info window show either
13
+ * of them, so a taken key is refused. Resolves to the created item, or to undefined when nothing was created.
14
+ */
15
+ export declare function createGlobalContentItem(root: RootStore, codex: string, t: TFunction): Promise<ContentItem | undefined>;
16
+ //# sourceMappingURL=globalContentItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalContentItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAmB,MAAM,wBAAwB,CAAC;AAGtE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAYrE;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAgC5H"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SelectedDefinition } from '../../Tables/PropertyDefinitions';
3
+ export interface PropertyContentItemPanelProps {
4
+ selection?: SelectedDefinition;
5
+ /** Stores the key of a content item created here on the definition it was created for. */
6
+ onContentItemCreated: (selection: SelectedDefinition, codex: string) => void;
7
+ }
8
+ /** The ContentItem tab of the property definitions: the selected definition's content item, to create or edit. */
9
+ declare const PropertyContentItemPanel: React.FunctionComponent<PropertyContentItemPanelProps>;
10
+ export default PropertyContentItemPanel;
11
+ //# sourceMappingURL=PropertyContentItemPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyContentItemPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,0FAA0F;IAC1F,oBAAoB,EAAE,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9E;AAED,kHAAkH;AAClH,QAAA,MAAM,wBAAwB,wDAoD5B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,CAAC,OAAO,gCASb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAStE,MAAM,CAAC,OAAO,gCAoCb"}
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
2
  import 'jsoneditor/dist/jsoneditor.css';
3
3
  import { BaseModulConfiguration } from '../../Configuration';
4
+ import { Tool } from '../../layout/Navigation/types';
4
5
  export interface JsonEditorConfiguration extends BaseModulConfiguration {
5
6
  type: 'JsonEditor';
6
7
  preview?: string;
7
8
  default?: any;
9
+ /** Tools of the right toolbar that show the edited data, like a form's (parameters: data, submit). */
10
+ tools?: Tool[];
8
11
  }
9
12
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<{
10
13
  id: string;
@@ -16,8 +19,10 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
16
19
  height?: number | string;
17
20
  } & React.RefAttributes<{
18
21
  submit: () => void;
22
+ getData?: () => any;
19
23
  }>, "ref"> & React.RefAttributes<{
20
24
  submit: () => void;
25
+ getData?: () => any;
21
26
  }>>>;
22
27
  export default _default;
23
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM,GAAG,MAAM;;YAED,MAAM,IAAI;;YAAV,MAAM,IAAI;;AAgErC,wBAAsD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAC/E,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAOrD,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,sGAAsG;IACtG,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM,GAAG,MAAM;;YAED,MAAM,IAAI;cAAY,MAAM,GAAG;;YAA/B,MAAM,IAAI;cAAY,MAAM,GAAG;;AAiF1D,wBAAsD"}
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { JsonEditorConfiguration } from '.';
2
3
  export default function (id: string, setCanSave?: (canSave: boolean) => void, onChange?: (data?: any) => void, onError?: (error: string) => void): {
3
4
  save: (original: any) => Promise<void>;
4
5
  init: (div: HTMLDivElement) => void;
6
+ destroy: () => void;
5
7
  previewMode: () => Promise<void>;
6
8
  editMode: () => Promise<void>;
7
9
  counter: number;
@@ -9,5 +11,7 @@ export default function (id: string, setCanSave?: (canSave: boolean) => void, on
9
11
  hasErrors: boolean;
10
12
  setCounter: React.Dispatch<React.SetStateAction<number>>;
11
13
  setData: (data: any) => void;
14
+ curData: any;
15
+ configuration: JsonEditorConfiguration;
12
16
  };
13
17
  //# sourceMappingURL=useJsonEditorData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useJsonEditorData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/useJsonEditorData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAUzD,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;qBA2ChH,GAAG;gBA1Bd,cAAc;;;;;;;oBAoBV,GAAG;EA6D3B"}
1
+ {"version":3,"file":"useJsonEditorData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/useJsonEditorData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAS5C,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;qBAgDhH,GAAG;gBA/Bd,cAAc;;;;;;;;oBAyBV,GAAG;;;EAgE3B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.13.0-beta.2",
4
- "description": "Ant Design backoffice shell (configuration modules) and the Diva Data Engine component hosting the IDM and enricher editors.",
3
+ "version": "26.13.0-beta.21",
4
+ "description": "Ant Design backoffice shell (configuration modules), the Diva Data Engine component hosting the IDM and enricher editors, and the Produkt Onboarding component hosting the Assortment Manager.",
5
5
  "license": "COMMERCIAL",
6
6
  "devDependencies": {
7
7
  "@testing-library/jest-dom": "^7.0.1",
@@ -16,16 +16,16 @@
16
16
  "dependencies": {
17
17
  "@ant-design/icons": "6.3.4",
18
18
  "@babel/runtime": "7.24.7",
19
- "@crystaldesign/classification": "26.13.0-beta.2",
20
- "@crystaldesign/content-box": "26.13.0-beta.2",
21
- "@crystaldesign/content-item": "26.13.0-beta.2",
22
- "@crystaldesign/diva-agent": "26.13.0-beta.2",
23
- "@crystaldesign/diva-core": "26.13.0-beta.2",
24
- "@crystaldesign/diva-utils": "26.13.0-beta.2",
25
- "@crystaldesign/mass-configurator": "26.13.0-beta.2",
26
- "@crystaldesign/media-upload": "26.13.0-beta.2",
27
- "@crystaldesign/rtf-editor": "26.13.0-beta.2",
28
- "@crystaldesign/spreadsheet": "26.13.0-beta.2",
19
+ "@crystaldesign/classification": "26.13.0-beta.21",
20
+ "@crystaldesign/content-box": "26.13.0-beta.21",
21
+ "@crystaldesign/content-item": "26.13.0-beta.21",
22
+ "@crystaldesign/diva-agent": "26.13.0-beta.21",
23
+ "@crystaldesign/diva-core": "26.13.0-beta.21",
24
+ "@crystaldesign/diva-utils": "26.13.0-beta.21",
25
+ "@crystaldesign/mass-configurator": "26.13.0-beta.21",
26
+ "@crystaldesign/media-upload": "26.13.0-beta.21",
27
+ "@crystaldesign/rtf-editor": "26.13.0-beta.21",
28
+ "@crystaldesign/spreadsheet": "26.13.0-beta.21",
29
29
  "@dnd-kit/core": "^6.1.0",
30
30
  "@dnd-kit/sortable": "^8.0.0",
31
31
  "@dnd-kit/utilities": "^3.2.2",
@@ -59,5 +59,9 @@
59
59
  },
60
60
  "module": "build/esm/index.js",
61
61
  "types": "./build/types/backoffice/src/index.d.ts",
62
- "gitHead": "80503e32af3f8fc88ae4f632f1153cc6d0abec08"
62
+ "jest-junit": {
63
+ "suiteName": "diva-backoffice",
64
+ "outputDirectory": "./test-reports"
65
+ },
66
+ "gitHead": "8924c019e83cd44f3f2d2ecf41d0e26143d30128"
63
67
  }