@crystaldesign/diva-backoffice 26.11.0-beta.2 → 26.11.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 (110) hide show
  1. package/build/esm/index.js +10416 -6406
  2. package/build/types/backoffice/src/Configuration.d.ts +1 -0
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Navigation/types.d.ts +1 -1
  5. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +19 -0
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -0
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts +30 -0
  9. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts.map +1 -0
  10. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts +8 -0
  11. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -0
  12. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +32 -0
  13. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -0
  14. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
  15. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
  16. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/wysiwygSettings.d.ts +12 -0
  17. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/wysiwygSettings.d.ts.map +1 -0
  18. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  19. package/build/types/backoffice/src/store/ConfigurationStore.d.ts +2 -0
  20. package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
  21. package/build/types/backoffice/src/store/ContentStore.d.ts +1 -0
  22. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  23. package/build/types/backoffice/src/store/GridRegistry.d.ts +25 -0
  24. package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -0
  25. package/build/types/backoffice/src/store/RootStore.d.ts +4 -0
  26. package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
  27. package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts +68 -0
  28. package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts.map +1 -0
  29. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
  30. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
  31. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts +2 -0
  32. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/api/goodsGroups.test.d.ts.map +1 -0
  33. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts +2 -0
  34. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.test.d.ts.map +1 -0
  35. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
  36. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
  37. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +2 -3
  38. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -1
  39. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +11 -2
  40. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  41. package/build/types/backoffice/src/ui/CommonComponents/editorViews.d.ts +34 -0
  42. package/build/types/backoffice/src/ui/CommonComponents/editorViews.d.ts.map +1 -0
  43. package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts +3 -1
  44. package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
  46. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
  47. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +4 -5
  48. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  50. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
  51. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +5 -1
  52. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  53. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
  54. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  55. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  56. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts +129 -0
  57. package/build/types/backoffice/src/ui/IDMCatalogEditor/api/goodsGroups.d.ts.map +1 -0
  58. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts +10 -0
  59. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/ClassifyTrigger.d.ts.map +1 -0
  60. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts +36 -0
  61. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/GoodsGroups/index.d.ts.map +1 -0
  62. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  63. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts +21 -0
  64. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupRun.d.ts.map +1 -0
  65. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts +9 -0
  66. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useGoodsGroupVocabulary.d.ts.map +1 -0
  67. package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
  68. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  69. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  71. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts +4 -0
  73. package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -0
  74. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +34 -0
  75. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
  76. package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
  77. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
  78. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
  79. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
  80. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  81. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map +1 -1
  82. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  83. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts +3 -7
  84. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  85. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +2 -1
  86. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  87. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/createAssetOverrideColumn.d.ts +59 -0
  88. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/createAssetOverrideColumn.d.ts.map +1 -0
  89. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +2 -1
  90. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  91. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +2 -1
  92. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  93. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +2 -1
  94. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  95. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +2 -1
  96. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  97. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  98. package/build/types/backoffice/src/ui/IDMEnricherEditor/views.d.ts +4 -0
  99. package/build/types/backoffice/src/ui/IDMEnricherEditor/views.d.ts.map +1 -0
  100. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +1 -1
  101. package/build/types/backoffice/src/utils/ApiHandler.d.ts +1 -1
  102. package/build/types/backoffice/src/utils/ApiHandler.d.ts.map +1 -1
  103. package/build/types/backoffice/src/utils/getIcons.d.ts.map +1 -1
  104. package/package.json +12 -11
  105. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
  106. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
  107. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts +0 -8
  108. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/index.d.ts.map +0 -1
  109. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts +0 -258
  110. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableExclusivity/tableConfiguration.d.ts.map +0 -1
@@ -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,OAAO,EAAiB,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAYlG,MAAM,MAAM,oBAAoB,GAAG,CAA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AEhI,QAAA,MAAM,WAAW;oBAGG,MAAM;eACX,SAAS;eACT,OAAO;yBACG,oBAAoB;+BACd,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI;IAC/D,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CAqZzB,CAAC;AAEH,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"IdmCatalogs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/IdmCatalogs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAEL,mBAAmB,EAIpB,MAAM,4BAA4B,CAAC;AAYpC,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,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,WAAW;oBAGG,MAAM;eACX,SAAS;eACT,OAAO;yBACG,oBAAoB;+BACd,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI;IAC/D,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CA0ZzB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -8,7 +8,11 @@ interface 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,CAAC;IAClC,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,Y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Aa,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,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO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M,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"}
@@ -1,6 +1,7 @@
1
+ import { ApiConfig } from '@crystaldesign/diva-core';
1
2
  import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
2
3
  import { TFunction } from 'i18next';
3
- declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly?: boolean) => {
4
+ declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly: boolean | undefined, apiConfig: ApiConfig) => {
4
5
  colDef: (DivaColDef<any> | DivaColGroupDef<any>)[];
5
6
  };
6
7
  export default getConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"catalogConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,aAAa,OAAO,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CAmenI,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"catalogConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,YAAY,OAAO,GAAG,SAAS,aAAa,SAAS,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CA2epK,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { ApiConfig } from '@crystaldesign/diva-core';
2
+ interface AssetOverrideColumnOptions {
3
+ /** Multi-asset list column; single asset otherwise */
4
+ multiple?: boolean;
5
+ allowedTypes: string[];
6
+ /** Metadata form fields per asset (asset cell customParams.additionalFields, multiple mode only) */
7
+ assetMetadataFields?: {
8
+ type: 'enum';
9
+ field: string;
10
+ label: string;
11
+ enumData: {
12
+ name: string;
13
+ value: number;
14
+ }[];
15
+ }[];
16
+ /** Read-only table (foreign package): the cell must not accept uploads/removals */
17
+ viewOnly?: boolean;
18
+ }
19
+ /**
20
+ * Column for overriding entity assets in the enricher: the cell edits the translated field and shows the
21
+ * synced orig snapshot as inherited placeholder (the spreadsheet asset cell's placeHolderField semantics -
22
+ * uploads create the override, removing back to the originals reverts to inherit).
23
+ */
24
+ export default function createAssetOverrideColumn(headerName: string, field: string, placeHolderField: string, apiConfig: ApiConfig, { multiple, allowedTypes, assetMetadataFields, viewOnly }: AssetOverrideColumnOptions): {
25
+ headerName: string;
26
+ field: string;
27
+ cellDataType: string;
28
+ editable: boolean;
29
+ excludeFromExcelExport: boolean;
30
+ additionalFields: string[];
31
+ customParams: {
32
+ allowedTypes: string[];
33
+ additionalFields?: {
34
+ type: "enum";
35
+ field: string;
36
+ label: string;
37
+ enumData: {
38
+ name: string;
39
+ value: number;
40
+ }[];
41
+ }[] | undefined;
42
+ multiple?: boolean | undefined;
43
+ isObject: boolean;
44
+ urlField: string;
45
+ fileNameField: string;
46
+ mediaItemIdField: string;
47
+ placeHolderField: string;
48
+ combinedField: string;
49
+ apiInterface: {
50
+ create: {
51
+ upload: string;
52
+ externalUpload: string;
53
+ completeUpload: string;
54
+ };
55
+ };
56
+ };
57
+ };
58
+ export {};
59
+ //# sourceMappingURL=createAssetOverrideColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAssetOverrideColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/createAssetOverrideColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,UAAU,0BAA0B;IAClC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,oGAAoG;IACpG,mBAAmB,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,EAAE,CAAC;IACpH,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAC/C,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,SAAS,EACpB,EAAE,QAAQ,EAAE,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,EAAE,0BAA0B;;;;;;;;;;kBAfvD,MAAM;mBAAS,MAAM;mBAAS,MAAM;sBAAY;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE,EAAE;;;;;;;;;;;;;;;;;EA8ChH"}
@@ -1,6 +1,7 @@
1
+ import { ApiConfig } from '@crystaldesign/diva-core';
1
2
  import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
2
3
  import { TFunction } from 'i18next';
3
- declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly?: boolean) => {
4
+ declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly: boolean | undefined, apiConfig: ApiConfig) => {
4
5
  colDef: (DivaColDef<any> | DivaColGroupDef<any>)[];
5
6
  };
6
7
  export default getConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"detailInfosConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,aAAa,OAAO,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CAiDnI,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"detailInfosConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,YAAY,OAAO,GAAG,SAAS,aAAa,SAAS,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CAsDpK,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
+ import { ApiConfig } from '@crystaldesign/diva-core';
1
2
  import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
2
3
  import { TFunction } from 'i18next';
3
- declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly?: boolean) => {
4
+ declare const getConfig: (isoLanguageIds: string[], t: TFunction, viewOnly: boolean | undefined, apiConfig: ApiConfig) => {
4
5
  colDef: (DivaColDef<any> | DivaColGroupDef<any>)[];
5
6
  };
6
7
  export default getConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"itemConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,aAAa,OAAO,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CA0FnI,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"itemConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,QAAA,MAAM,SAAS,mBAAoB,MAAM,EAAE,KAAK,SAAS,YAAY,OAAO,GAAG,SAAS,aAAa,SAAS,KAAG;IAAE,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,CAAA;CAoGpK,CAAC;AAEF,eAAe,SAAS,CAAC"}