@crystaldesign/diva-backoffice 26.12.0-beta.2 → 26.12.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.
- package/build/esm/index.js +20574 -4577
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/agentMount.d.ts +38 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/agentMount.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts +11 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts +21 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts +47 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts +21 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts +40 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts +147 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts +20 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts +129 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +13 -4
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/contentToolset.d.ts +10 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/contentToolset.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts +2 -4
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/createHeadlessPlanner.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts +121 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +33 -17
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts +15 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ConfigurationStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/DataStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/GridRegistry.d.ts +60 -1
- package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -1
- package/build/types/backoffice/src/store/RootStore.d.ts +1 -1
- package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts +5 -0
- package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts +35 -8
- package/build/types/backoffice/src/store/WebplannerInstanceStore.d.ts.map +1 -1
- package/build/types/backoffice/src/tests/unit/agentBridge/agentBridgePanel.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/agentBridgePanel.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/bridgeStatus.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/agentBridge/bridgeStatus.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsReceipt.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsReceipt.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentToolDefs.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentToolDefs.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/checkCellInput.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/checkCellInput.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/contentToolset.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/contentToolset.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/discardStagedChanges.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/discardStagedChanges.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +206 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/generateImageAsset.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/generateImageAsset.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/getAssetUrls.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/getAssetUrls.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/listGridsCompact.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/listGridsCompact.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowExactMatch.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowExactMatch.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowUnverified.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/locateRowUnverified.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/lookupWrite.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/lookupWrite.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/mediaBatchIsolation.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/mediaBatchIsolation.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigationToolDefs.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigationToolDefs.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/partlistposActions.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/partlistposActions.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/publishCatalogTestManifest.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/publishCatalogTestManifest.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsSearch.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsSearch.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readGridRowsCreatorRow.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readGridRowsCreatorRow.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/recordIdAsRowId.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/recordIdAsRowId.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/runTableAction.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/runTableAction.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/setAssetCellBatch.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/setAssetCellBatch.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEdits.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEdits.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEditsSequentialLookup.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageTableEditsSequentialLookup.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/subtableParentBinding.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/subtableParentBinding.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/uploadAssetSources.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/uploadAssetSources.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventBelongsToView.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventBelongsToView.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/store/WebplannerInstanceStore.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/store/WebplannerInstanceStore.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCollectionEditor/Tables/collectionMemberUtils.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCollectionEditor/Tables/collectionMemberUtils.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TableEnrichment/propertyColumn.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TableEnrichment/propertyColumn.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/publishUtils.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/publishUtils.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/utils/routeCatalogId.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/utils/routeCatalogId.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts +10 -2
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useHeaderProducts.d.ts +15 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useHeaderProducts.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useRefreshHeaderValues.d.ts +9 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useRefreshHeaderValues.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts +5 -2
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts +3 -2
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerLink.d.ts +38 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerLink.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerSync.d.ts +40 -0
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/headerSync.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts +3 -2
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.d.ts +6 -6
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts +14 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts +7 -6
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/tests/headerLink.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/headerLink.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/headerSync.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/headerSync.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +6 -0
- package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/ContentItemPreview.d.ts +7 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/ContentItemPreview.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/libraryContext.d.ts +21 -0
- package/build/types/backoffice/src/ui/CommonComponents/ContentItemLibrary/libraryContext.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.d.ts +61 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryLookup.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +2 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts +16 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts +7 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts +4 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureColumns.d.ts +25 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts +59 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts +66 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts +13 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts +24 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts +4 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/collectionMemberUtils.d.ts +13 -0
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/collectionMemberUtils.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +12 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts +19 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +12 -39
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts +16 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts +27 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.d.ts +23 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts +6 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/contentItemEndpoints.d.ts +11 -0
- package/build/types/backoffice/src/utils/contentItemEndpoints.d.ts.map +1 -0
- package/build/types/backoffice/src/utils/routeCatalogId.d.ts +8 -0
- package/build/types/backoffice/src/utils/routeCatalogId.d.ts.map +1 -0
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts +0 -6
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts.map +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { AgentToolset, ToolDef } from '@crystaldesign/diva-agent';
|
|
2
|
+
import type RootStore from '../../../../store/RootStore';
|
|
3
|
+
import type { GridEntry } from '../../../../store/GridRegistry';
|
|
4
|
+
/** Definitions of the media/asset tools this toolset executes — sent to the backend per turn. */
|
|
5
|
+
export declare const MEDIA_TOOL_DEFS: ToolDef[];
|
|
6
|
+
export interface MediaToolsetContext {
|
|
7
|
+
root: RootStore;
|
|
8
|
+
/** Per-conversation toggle: agent writes commit WITHOUT the approval bar. */
|
|
9
|
+
autoApprove?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** One upload request: exactly one source, already validated into a File. */
|
|
12
|
+
export type ResolvedSource = {
|
|
13
|
+
file: File;
|
|
14
|
+
} | {
|
|
15
|
+
error: string;
|
|
16
|
+
};
|
|
17
|
+
/** Turns one {fileName, url|svg|base64} request into a File — shared by the single-asset call and every batch entry. */
|
|
18
|
+
export declare function resolveUploadSource(args: Record<string, any>, signal?: AbortSignal): Promise<ResolvedSource>;
|
|
19
|
+
export interface UploadedAsset {
|
|
20
|
+
mediaItemId: string;
|
|
21
|
+
url?: string;
|
|
22
|
+
fileName: string;
|
|
23
|
+
mediaType: string;
|
|
24
|
+
mimeType?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Rasterizes SVG markup to a JPEG blob on a WHITE background (JPEG has no alpha); width = sizePx. Browser-only. */
|
|
27
|
+
export declare function svgToJpegBlob(svg: string, sizePx: number): Promise<Blob>;
|
|
28
|
+
/** The 3-step media-service upload (start → PUT presigned → complete); returns the created media item. */
|
|
29
|
+
export declare function uploadToMediaService(root: RootStore, file: File, fileName: string, mediaTypeOverride?: string, signal?: AbortSignal): Promise<UploadedAsset>;
|
|
30
|
+
/** Resolves asset-cell ids to url/name/type — the read the grid cannot answer (its preview cuts the url). */
|
|
31
|
+
export declare function getAssetUrls(root: RootStore, args: Record<string, any>, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
32
|
+
/**
|
|
33
|
+
* Generates ONE image through the DIVA AI service and stores it on the media service. The bytes
|
|
34
|
+
* never leave the browser — the caller only sees the `mediaItemId`, so no size cap applies here.
|
|
35
|
+
*/
|
|
36
|
+
export declare function generateImageAsset(root: RootStore, args: Record<string, any>, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
37
|
+
/**
|
|
38
|
+
* Archives a catalog test manifest on the media service and returns the URL to run it from.
|
|
39
|
+
* Provenance check, history append and upload happen in one call so the archive cannot end up half-updated.
|
|
40
|
+
*/
|
|
41
|
+
export declare function publishCatalogTestManifest(root: RootStore, args: Record<string, any>, signal?: AbortSignal): Promise<{
|
|
42
|
+
error: string;
|
|
43
|
+
missing?: undefined;
|
|
44
|
+
fix?: undefined;
|
|
45
|
+
url?: undefined;
|
|
46
|
+
mediaItemId?: undefined;
|
|
47
|
+
catalogCodex?: undefined;
|
|
48
|
+
suites?: undefined;
|
|
49
|
+
combinations?: undefined;
|
|
50
|
+
sizeKb?: undefined;
|
|
51
|
+
runsRecorded?: undefined;
|
|
52
|
+
lastRun?: undefined;
|
|
53
|
+
note?: undefined;
|
|
54
|
+
hint?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
error: string;
|
|
57
|
+
missing: string[];
|
|
58
|
+
fix: string;
|
|
59
|
+
url?: undefined;
|
|
60
|
+
mediaItemId?: undefined;
|
|
61
|
+
catalogCodex?: undefined;
|
|
62
|
+
suites?: undefined;
|
|
63
|
+
combinations?: undefined;
|
|
64
|
+
sizeKb?: undefined;
|
|
65
|
+
runsRecorded?: undefined;
|
|
66
|
+
lastRun?: undefined;
|
|
67
|
+
note?: undefined;
|
|
68
|
+
hint?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
url: string | undefined;
|
|
71
|
+
mediaItemId: string;
|
|
72
|
+
catalogCodex: any;
|
|
73
|
+
suites: any;
|
|
74
|
+
combinations: any;
|
|
75
|
+
sizeKb: number;
|
|
76
|
+
runsRecorded: any;
|
|
77
|
+
lastRun: string | undefined;
|
|
78
|
+
note: string;
|
|
79
|
+
error?: undefined;
|
|
80
|
+
missing?: undefined;
|
|
81
|
+
fix?: undefined;
|
|
82
|
+
hint?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
error: string;
|
|
85
|
+
hint: string | undefined;
|
|
86
|
+
missing?: undefined;
|
|
87
|
+
fix?: undefined;
|
|
88
|
+
url?: undefined;
|
|
89
|
+
mediaItemId?: undefined;
|
|
90
|
+
catalogCodex?: undefined;
|
|
91
|
+
suites?: undefined;
|
|
92
|
+
combinations?: undefined;
|
|
93
|
+
sizeKb?: undefined;
|
|
94
|
+
runsRecorded?: undefined;
|
|
95
|
+
lastRun?: undefined;
|
|
96
|
+
note?: undefined;
|
|
97
|
+
}>;
|
|
98
|
+
/** Resolves an on-screen grid by gridId first, label second (default: first grid). */
|
|
99
|
+
export declare function findGrid(root: RootStore, gridLabel?: string): GridEntry | undefined;
|
|
100
|
+
export interface AssetCellWrite {
|
|
101
|
+
grid?: string;
|
|
102
|
+
keyColumn: string;
|
|
103
|
+
keyValue: string;
|
|
104
|
+
column: string;
|
|
105
|
+
asset: {
|
|
106
|
+
mediaItemId: string;
|
|
107
|
+
url?: string;
|
|
108
|
+
name?: string;
|
|
109
|
+
decisionNo?: number;
|
|
110
|
+
};
|
|
111
|
+
mode: 'append' | 'replace' | 'remove';
|
|
112
|
+
/** Blocking approval hook (agent approval bar); omitted = pre-approved (human-initiated UI). */
|
|
113
|
+
approve?: (entry: GridEntry) => Promise<boolean>;
|
|
114
|
+
}
|
|
115
|
+
export declare function writeAssetCell(root: RootStore, args: AssetCellWrite): Promise<Record<string, unknown>>;
|
|
116
|
+
/**
|
|
117
|
+
* Media toolset: asset upload plus asset-CELL writes — the surfaces stageTableEdits cannot cover,
|
|
118
|
+
* because asset cells store `{mediaitemId, url, name}` objects that only exist after an upload.
|
|
119
|
+
*/
|
|
120
|
+
export declare function createMediaToolset(ctx: MediaToolsetContext): AgentToolset;
|
|
121
|
+
//# sourceMappingURL=mediaToolset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/mediaToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAMhE,iGAAiG;AACjG,eAAO,MAAM,eAAe,EAAE,OAAO,EA0ZpC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,6EAA6E;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import type { GridApi, IRowNode } from 'ag-grid-enterprise';
|
|
2
3
|
import type RootStore from '../../../../store/RootStore';
|
|
3
4
|
export interface NavigationToolsetContext {
|
|
4
5
|
root: RootStore;
|
|
5
6
|
catalogId?: string;
|
|
6
7
|
packageId?: string;
|
|
8
|
+
/** Per-conversation toggle: agent-staged changes commit WITHOUT the approval bar. */
|
|
9
|
+
autoApprove?: boolean;
|
|
7
10
|
}
|
|
11
|
+
/** Definitions of the navigation/grid tools this toolset executes — sent to the backend per turn. */
|
|
12
|
+
/** Argument names the model tends to use for a table (measured in live sessions) - declared on every tool that takes a `grid`. */
|
|
13
|
+
export declare const GRID_ARG_ALIASES: Record<string, string>;
|
|
14
|
+
export declare const NAVIGATION_TOOL_DEFS: ToolDef[];
|
|
15
|
+
/** Target path of an agent-triggered navigation that has not landed yet — while set, the chat suppresses its auto-'Continue.'. */
|
|
16
|
+
export declare const pendingAgentNavigation: import("mobx").IObservableValue<string | undefined>;
|
|
8
17
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* the tool a moment after navigateTo returns, and a continue-turn started in that gap
|
|
12
|
-
* would be killed mid-stream ("Interrupted"). Cleared by the DivaAgent host once the
|
|
13
|
-
* router reaches the target (or after a safety timeout).
|
|
18
|
+
* Waits until the grid has settled after a filter change: polls until the first row carries data, gives up
|
|
19
|
+
* on a table that stays at 0 rows for STABLE_EMPTY_CHECKS polls or on timeout. Returns the milliseconds waited.
|
|
14
20
|
*/
|
|
15
|
-
export declare
|
|
21
|
+
export declare function waitForRows(api: GridApi<any>, timeoutMs?: number): Promise<number>;
|
|
16
22
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
23
|
+
* Shared locate mechanics for the locateRow tool and clicked `diva://` links: loaded rows are
|
|
24
|
+
* just scrolled to, otherwise a server-side column filter is applied. Either way the row ends up
|
|
25
|
+
* CELL-RANGE selected, so the view's selection context (and its subtable tools) is set.
|
|
19
26
|
*/
|
|
27
|
+
export declare function locateRowCore(api: GridApi<any>, column: string, value: string, select?: boolean,
|
|
28
|
+
/** Epoch ms after which no further wait is started — a bulk caller's budget, honoured INSIDE the lookup. */
|
|
29
|
+
deadline?: number): Promise<{
|
|
30
|
+
node: IRowNode<any> | undefined;
|
|
31
|
+
filterApplied: boolean;
|
|
32
|
+
loadedMatches: number;
|
|
33
|
+
exact: boolean;
|
|
34
|
+
column: string;
|
|
35
|
+
lookupTimedOut?: boolean;
|
|
36
|
+
/** The deadline cut the lookup short before the server could answer — no verdict either way. */
|
|
37
|
+
budgetExhausted?: boolean;
|
|
38
|
+
/** With lookupTimedOut: the EXACT query did answer (no such row) — only the diagnostic loose pass after it went unanswered. */
|
|
39
|
+
exactAnswered?: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
/** Toolset for navigating the backoffice and driving the visible AG Grid tables. */
|
|
20
42
|
export declare function createNavigationToolset(ctx: NavigationToolsetContext): AgentToolset;
|
|
21
43
|
/**
|
|
22
|
-
* Handles a clicked `diva://show?path=…&grid=…&column=…&value=…` entity link
|
|
23
|
-
*
|
|
24
|
-
* locates + highlights (and selects) the row — the same machinery as the agent's
|
|
25
|
-
* navigateTo/locateRow tools, triggered by the user.
|
|
26
|
-
*
|
|
27
|
-
* Subtable deep-links additionally carry `tool`/`subGrid`/`subColumn`/`subValue`: the parent
|
|
28
|
-
* row selection reveals the conditional toolbar tool, which is opened, and the sub-row is
|
|
29
|
-
* located inside its grid (e.g. a decision's combination row in 'optioncombinations').
|
|
44
|
+
* Handles a clicked `diva://show?path=…&grid=…&column=…&value=…` entity link: navigates when needed,
|
|
45
|
+
* waits for the table, then locates + selects the row (subtable deep-links carry tool/subGrid/subColumn/subValue).
|
|
30
46
|
*/
|
|
31
47
|
export declare function showEntityFromLink(root: RootStore, href: string): Promise<void>;
|
|
32
48
|
//# sourceMappingURL=navigationToolset.d.ts.map
|
package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigationToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/navigationToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"navigationToolset.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/DivaAgent/navigationToolset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG5D,OAAO,KAAK,SAAS,MAAM,6BAA6B,CAAC;AAezD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAmED,qGAAqG;AACrG,kIAAkI;AAClI,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAqC,CAAC;AAE1F,eAAO,MAAM,oBAAoB,EAAE,OAAO,EAgTzC,CAAC;AAWF,kIAAkI;AAClI,eAAO,MAAM,sBAAsB,qDAAgD,CAAC;AAqEpF;;;GAGG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,SAAS,SAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAatF;AA6QD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,EACjB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,MAAM,UAAO;AACb,4GAA4G;AAC5G,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC;IACT,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,+HAA+H;IAC/H,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC,CAsFD;AAoBD,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,wBAAwB,GAAG,YAAY,CA4xFnF;AA8ED;;;GAGG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAIzD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAQD,KAAK,KAAK,GAAG;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,CAAC;kFAC6C,KAAK;;;AA+DvF,wBAA0C"}
|
package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Does an `onArticlesLoaded` event describe the serie a configurator view is showing? The event is global
|
|
3
|
+
* and fires per catalog load, so the component serie a partlist pulls in also reaches every handler.
|
|
4
|
+
* Falls back to the catalogCodex, and to `true` when neither identity is present — dropping an
|
|
5
|
+
* unidentifiable load is worse than processing it.
|
|
6
|
+
*/
|
|
7
|
+
export declare function articlesEventBelongsToView(catalogData: {
|
|
8
|
+
serieId?: string;
|
|
9
|
+
catalogCodex?: string | number;
|
|
10
|
+
} | undefined, view: {
|
|
11
|
+
serieId?: string;
|
|
12
|
+
serieNo?: number;
|
|
13
|
+
maskCatalogCodex?: string;
|
|
14
|
+
}): boolean;
|
|
15
|
+
//# sourceMappingURL=articlesEventScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articlesEventScope.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/articlesEventScope.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,WAAW,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAAG,SAAS,EAC7E,IAAI,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,GACtE,OAAO,CAOT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAOtD,QAAA,MAAM,OAAO,sBAAuB,SAAS,sBAoH5C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWysiwygConfigurator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useWysiwygConfigurator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAUtD,MAAM,WAAW,YAAY;IAE3B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAE7C,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,OAAO,EAAE,MAA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AC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACxE,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,YAAY,CAsYrH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Toolbar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6E,MAAM,OAAO,CAAC;wCAiDnE;IAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE;;;AAoL/D,wBAAiC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ConfigurationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ConfigurationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAUpC,MAAM,CAAC,OAAO;IAUA,OAAO,CAAC,IAAI;IATxB,OAAO,CAAC,cAAc,CAAC,CAET;IACd,OAAO,CAAC,UAAU,CAAC,CAAwB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAqB;IAC3C,OAAO,CAAC,4BAA4B,CAAC,CAAsB;IAC3D,OAAO,CAAC,sBAAsB,CAAC,CAAsB;IACrD,OAAO,CAAC,WAAW,CAAC,CAA4B;gBAE5B,IAAI,EAAE,SAAS;IAOnC,IAAI,SAAS,YAEZ;IAED,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,GAAG,kBAAkB;IAe3E,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM;IA8BxF,IAAI,SAAS,cAEZ;IAED,IAAI,YAAY,uBAEf;IACD,IAAI,2BAA2B,wBAE9B;IACD,IAAI,qBAAqB,wBAExB;IACD,IAAI,UAAU,8BAEb;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/DataStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,OAAO;IAQA,OAAO,CAAC,IAAI;IAPxB,OAAO,CAAC,IAAI,CAAC,CA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BAAmB,iCAEtB;IAED,IAAI,YAAY;;;;MAEf;IACK,kBAAkB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAGjE,oBAAoB,CAAC,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;CAG1E"}
|
|
@@ -1,12 +1,71 @@
|
|
|
1
1
|
import type { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
|
|
2
|
+
/**
|
|
3
|
+
* An operation a table offers beyond cell edits - adding a matrix column, a server-side bulk removal. The VIEW
|
|
4
|
+
* declares them on its spreadsheet configuration and the agent tools only carry them through: name, description
|
|
5
|
+
* and the exact input shape travel to the model with listGrids, so a new action needs no change in the toolset.
|
|
6
|
+
* It is also the headless twin of a dialog - the modal a human fills is one way to produce `input`, not the only one.
|
|
7
|
+
*/
|
|
8
|
+
export interface AgentGridAction {
|
|
9
|
+
/** Addressed by this name in runTableAction; unique per table. */
|
|
10
|
+
name: string;
|
|
11
|
+
/** What it does AND the exact `input` string it takes - this is what the model reads before calling. */
|
|
12
|
+
description: string;
|
|
13
|
+
/** Runs it. The returned text is reported back to the model; throw with a readable message to fail. */
|
|
14
|
+
run: (input: string) => Promise<string>;
|
|
15
|
+
/** Whether it changes catalog data - a mutating action asks the user for approval first. Defaults to true. */
|
|
16
|
+
mutating?: boolean;
|
|
17
|
+
/** The values `input` accepts, answered by readColumnOptions under the action's name - the picker a dialog shows. */
|
|
18
|
+
options?: (search: string, limit: number) => Promise<{
|
|
19
|
+
options: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
note?: string;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The parent row a SUBTABLE is bound to - the row its endpoint is scoped by - as the module that opens the subtable
|
|
28
|
+
* declares it. A stageTableEdits without parentRow lands under exactly this row and is refused while there is none;
|
|
29
|
+
* a parentRow call waits until it reports the row that call selected.
|
|
30
|
+
*/
|
|
31
|
+
export interface AgentBoundParent {
|
|
32
|
+
/** The parent grid's label, as listGrids names it. */
|
|
33
|
+
grid: string;
|
|
34
|
+
/** The parent grid's key column. */
|
|
35
|
+
column: string;
|
|
36
|
+
/** The bound row's value in `column`; unset while no parent row is bound. */
|
|
37
|
+
value?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The toolbar tool that opens this subtable - what parentRow.tool names. Its gridId and label can carry other names
|
|
40
|
+
* (finishes under 'priceFeatureGroupFinishes'), so this is how a repeated parentRow call finds it while it is open.
|
|
41
|
+
*/
|
|
42
|
+
tool?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A live table as the agent sees it: registered by the SpreadsheetWrapper on mount (re-registered when its label or
|
|
46
|
+
* description changes), removed on unmount. The callbacks read the current handle and actions at call time, so a
|
|
47
|
+
* re-render never invalidates an entry; `requestAgentApproval` is how a mutating flow gets the user's go-ahead.
|
|
48
|
+
*/
|
|
2
49
|
export interface GridEntry {
|
|
3
50
|
id: number;
|
|
4
51
|
/** Agent-facing handle: the table's author-assigned agentGridId, else its read-endpoint last segment. */
|
|
5
52
|
label: string;
|
|
53
|
+
/** The table's `gridId` prop — unique per grid, unlike the label, so tools resolve by it first. */
|
|
54
|
+
gridId?: string;
|
|
55
|
+
/** The table's read endpoint (template) — lets tools gate service-specific actions. */
|
|
56
|
+
readUrl?: string;
|
|
6
57
|
/** The table's `agentDescription` (what it contains, which subtables a selection reveals). */
|
|
7
58
|
description?: string;
|
|
59
|
+
/** Set when the grid lives inside a right-toolbar tool, so flows can reveal that tool before acting on it. */
|
|
60
|
+
toolbarToolId?: string;
|
|
8
61
|
/** Resolves the live spreadsheet handle — undefined after unmount. */
|
|
9
62
|
getHandle: () => SpreadsheetRefProps | null;
|
|
63
|
+
/** The view-declared agent actions of this table, read live so a re-render never needs a re-registration. */
|
|
64
|
+
getActions: () => AgentGridAction[];
|
|
65
|
+
/** Set only on a SUBTABLE: the parent row it is bound to right now, read live (see AgentBoundParent). */
|
|
66
|
+
getBoundParent?: () => AgentBoundParent | undefined;
|
|
67
|
+
/** Shows the in-grid approval bar and resolves the user's decision; false on discard, unmount or abort. */
|
|
68
|
+
requestAgentApproval: (changeCount: number, actionLabel?: string, signal?: AbortSignal) => Promise<boolean>;
|
|
10
69
|
}
|
|
11
70
|
/**
|
|
12
71
|
* Registry of the AG Grid tables currently on screen. Every SpreadsheetWrapper
|
|
@@ -19,7 +78,7 @@ export default class GridRegistry {
|
|
|
19
78
|
constructor();
|
|
20
79
|
register(entry: Omit<GridEntry, 'id'>): number;
|
|
21
80
|
unregister(id: number): void;
|
|
22
|
-
/** Grids currently mounted, in mount order
|
|
81
|
+
/** Grids currently mounted, in mount order. */
|
|
23
82
|
get entries(): GridEntry[];
|
|
24
83
|
}
|
|
25
84
|
//# sourceMappingURL=GridRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/store/GridRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,yGAAyG;IACzG,KAAK,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,SAAS,EAAE,MAAM,mBAAmB,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"GridRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/store/GridRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,wGAAwG;IACxG,WAAW,EAAE,MAAM,CAAC;IACpB,uGAAuG;IACvG,GA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,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7G;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,OAAO,CAAC,QAAQ,CAAmB;IACnC,OAAO,CAAC,IAAI,CAAK;;IAQjB,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,GAAG,MAAM;IAM9C,UAAU,CAAC,EAAE,EAAE,MAAM;IAIrB,+CAA+C;IAC/C,IAAI,OAAO,IAAI,SAAS,EAAE,CAEzB;CACF"}
|
|
@@ -22,7 +22,7 @@ export default class {
|
|
|
22
22
|
configurationStore: ConfigurationStore;
|
|
23
23
|
downloadStore: DownloadStore;
|
|
24
24
|
contextStore: ContextStore;
|
|
25
|
-
webplannerInstanceStore: WebplannerInstanceStore
|
|
25
|
+
webplannerInstanceStore: WebplannerInstanceStore<import("packages/web-planner-logic/src").default>;
|
|
26
26
|
gridRegistry: GridRegistry;
|
|
27
27
|
actions: Actions;
|
|
28
28
|
handler: CoreHandlers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/RootStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAoB,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MA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ToolBarStore {
|
|
|
92
92
|
setPopoutWindow(toolId: string, win: Window | undefined): void;
|
|
93
93
|
/** Brings a detached tool's window to the front. */
|
|
94
94
|
focusPopout(toolId: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Makes a tool visible without displacing what the user is looking at — a background tool is detached
|
|
97
|
+
* into its own window while another tool is open (a blocked popup redocks it without stealing the selection).
|
|
98
|
+
*/
|
|
99
|
+
revealTool(toolId: string): 'already-visible' | 'focused-window' | 'detached' | 'selected' | 'not-found';
|
|
95
100
|
/**
|
|
96
101
|
* Updates the internal tool state based on available tools.
|
|
97
102
|
* Sets default values for selected tool, pinned state, visibility and width.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ToolBarStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAelD;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IA2B7B,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,eAAe,CAAC;IA3B1B,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,OAAO,CAAiB;IAChC,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,eAAe,CAAqB;IAC5C,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,+IAA+I;IAC/I,OAAO,CAAC,oBAAoB,CAAqB;IACjD,kHAAkH;IAClH,OAAO,CAAC,kBAAkB,CAAoD;IAC9E,uFAAuF;IACvF,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,eAAe,CAA+B;IACtD,gIAAgI;IAChI,OAAO,CAAC,eAAe,CAAS;IAEhC;;;;;OAKG;gBAEO,eAAe,EAAE,MAAM,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oBxG;;;OAGG;IACH,OAAO,CAAC,eAAe;IAgBvB;;;;OAIG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAOzB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,EAIzB;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,CAE5B;IAED,IAAI,eAAe,CAAC,QAAQ,EAAE,MAAM,EAEnC;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,IAAI,GAAG,SAAS,CAEtC;IAED;;;;OAIG;IACH,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EActB;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,cAAc,GAAG,IAAI,CAE1C;IAED,IAAI,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,EAEhD;IAED;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;IAsBrC;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAKlC;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;CAsD/D"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type DivaWebPlanner from '@crystaldesign/web-planner-logic';
|
|
2
|
+
/** What the store itself needs from a planner instance - the full DivaWebPlanner in production, a double in tests. */
|
|
3
|
+
export interface PlannerInstance {
|
|
4
|
+
readonly isDestroyed: boolean;
|
|
5
|
+
destroyWebPlanner(): void;
|
|
6
|
+
clearCache(): void;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Shares DivaWebPlanner LOGIC instances between planner views and other tools (DIVA agent):
|
|
4
10
|
* the MOUNTED instance registered by the WYSIWYG (re-registered on every re-init, so resolve it
|
|
5
11
|
* through this store at call time and never cache it) and HEADLESS instances created on demand,
|
|
6
12
|
* cached per key and LRU-evicted. Keys must come from `webplannerInstanceKey`.
|
|
7
13
|
*/
|
|
8
|
-
export default class WebplannerInstanceStore {
|
|
14
|
+
export default class WebplannerInstanceStore<TPlanner extends PlannerInstance = DivaWebPlanner> {
|
|
9
15
|
private _activeKey?;
|
|
10
16
|
private _activeInstance?;
|
|
11
17
|
private _headless;
|
|
@@ -14,22 +20,42 @@ export default class WebplannerInstanceStore {
|
|
|
14
20
|
private _invalidations;
|
|
15
21
|
private _pinnedKey?;
|
|
16
22
|
private _activeReloadHandler?;
|
|
23
|
+
/**
|
|
24
|
+
* Instances whose catalog data changed. Bound to the INSTANCE, not its key: a replacement can register under the
|
|
25
|
+
* same key before the old view's asynchronous teardown runs, and a key-based mark would then condemn the
|
|
26
|
+
* replacement while leaking the instance it was meant to retire.
|
|
27
|
+
*/
|
|
28
|
+
private _invalidatedInstances;
|
|
17
29
|
constructor();
|
|
18
|
-
register(key: string, instance:
|
|
19
|
-
|
|
30
|
+
register(key: string, instance: TPlanner): void;
|
|
31
|
+
/**
|
|
32
|
+
* Ends the mounted registration. Pass the instance that was registered whenever the caller knows it: both
|
|
33
|
+
* registrations share one key, so a teardown that names no instance can only retire whatever is active —
|
|
34
|
+
* including a replacement whose view is still on screen. With the instance given, a teardown that lost the
|
|
35
|
+
* race is a no-op instead.
|
|
36
|
+
*/
|
|
37
|
+
unregister(key: string, instance?: TPlanner): void;
|
|
38
|
+
/**
|
|
39
|
+
* Destroys an instance whose data went stale, otherwise returns it to the headless pool. An invalidated instance
|
|
40
|
+
* must not be rescued — an adopted planner runs attachAdoptedLogic() and would serve stale data forever.
|
|
41
|
+
*/
|
|
42
|
+
private retire;
|
|
20
43
|
/** Takes a headless instance OUT of the pool so a mounting view can adopt it (a mounted instance must never be LRU-evicted). */
|
|
21
|
-
adoptHeadless(key: string):
|
|
44
|
+
adoptHeadless(key: string): TPlanner | undefined;
|
|
22
45
|
/**
|
|
23
46
|
* The logic instance of the currently mounted planner view, if any
|
|
24
47
|
*/
|
|
25
|
-
get active():
|
|
48
|
+
get active(): TPlanner | undefined;
|
|
49
|
+
/** Keys of every available instance (mounted first, then pooled headless ones); empty means no planner is loaded at all. */
|
|
50
|
+
get loadedKeys(): string[];
|
|
26
51
|
/**
|
|
27
52
|
* Resolves an already available instance for a key: the mounted one wins (UI steering
|
|
28
|
-
* works on it), otherwise a cached headless one.
|
|
53
|
+
* works on it), otherwise a cached headless one. A mounted instance whose key was invalidated is
|
|
54
|
+
* not handed out any more - its view tears it down asynchronously, and until then it serves stale data.
|
|
29
55
|
*/
|
|
30
|
-
resolve(key: string):
|
|
56
|
+
resolve(key: string): TPlanner | undefined;
|
|
31
57
|
/** Resolves the instance for a key, creating a headless one when none exists. Concurrent calls for the same key share one creation. */
|
|
32
|
-
getOrCreateHeadless(key: string, create: () => Promise<
|
|
58
|
+
getOrCreateHeadless(key: string, create: () => Promise<TPlanner>): Promise<TPlanner>;
|
|
33
59
|
/**
|
|
34
60
|
* Builds and caches a headless instance. An invalidation that lands while the instance is being
|
|
35
61
|
* built cannot reach it — it is not in `_headless` yet — so caching it would serve pre-invalidation
|
|
@@ -45,6 +71,7 @@ export default class WebplannerInstanceStore {
|
|
|
45
71
|
invalidateByBase(baseId: string): {
|
|
46
72
|
destroyed: number;
|
|
47
73
|
reloadTriggered: boolean;
|
|
74
|
+
knownKeys: string[];
|
|
48
75
|
};
|
|
49
76
|
/** Protects the instance under this key from LRU eviction while a consumer is actively using it (eviction destroys instances). */
|
|
50
77
|
pin(key: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WebplannerInstanceStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/WebplannerInstanceStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,kCAAkC,CAAC;AAInE;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAuB;
|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MAAM,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;IAkB1F;;;;OAIG;YACW,cAAc;IAgB5B,gHAAgH;IAChH,sBAAsB,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI;IAI3C;;;OAGG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,EAAE,CAAA;KAAE;IAqCtG,kIAAkI;IAClI,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,KAAK,CAAC,GAAG,EAAE,MAAM;IAIjB,sFAAsF;IACtF,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,KAAK;IAUb,OAAO,CAAC,OAAO;CAOhB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentBridgePanel.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/tests/unit/agentBridge/agentBridgePanel.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridgeStatus.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/tests/unit/agentBridge/bridgeStatus.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addRowsDryRun.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addRowsLookupReuse.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addRowsReceipt.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsReceipt.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addRowsRowRule.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addRowsTsv.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentMount.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentMount.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentToolDefs.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/agentToolDefs.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articleSvgMatrix.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articleSvgPlannerIntegration.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articleSvgStyle.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articleSvgTemplates.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.ts"],"names":[],"mappings":""}
|