@crystaldesign/diva-backoffice 26.12.0-beta.6 → 26.12.0-beta.7
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 +11463 -3098
- 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/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 +115 -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 +26 -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 +39 -0
- 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/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/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/fakeGridEnvironment.d.ts +161 -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/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/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/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/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/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/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/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/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/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 +5 -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/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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/modules/TableArticleRelations/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/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/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +8 -1
- 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/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/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
|
@@ -5,7 +5,7 @@ export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup
|
|
|
5
5
|
catalogId: string;
|
|
6
6
|
defaultLanguage?: string;
|
|
7
7
|
apiConfig: ApiConfig;
|
|
8
|
-
setNodeDataValue: (data: Record<string, any>) =>
|
|
8
|
+
setNodeDataValue: (data: Record<string, any>) => void;
|
|
9
9
|
setIsPercentage: (isPercentage?: boolean) => void;
|
|
10
10
|
}): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=PriceFeatureGroupPercentageSurcharge.d.ts.map
|
|
@@ -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;
|
|
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;AAOrE,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,IAAI,CAAC;IACtD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAsNA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared column bookkeeping for the IDM catalog tables that render one column per referenced
|
|
3
|
+
* feature (`OptionCombinations`, `PartlistPos`, `PriceFeatureGroupFinishes`,
|
|
4
|
+
* `PriceFeatureGroupPercentageSurcharge`).
|
|
5
|
+
*/
|
|
6
|
+
export interface FeatureColumns {
|
|
7
|
+
refs: string[];
|
|
8
|
+
displayTexts: Record<string, string>[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Drops the feature `value` from the parallel refs / display-text arrays.
|
|
12
|
+
*
|
|
13
|
+
* Returns `null` when the arrays do not hold the key, so the caller writes nothing: `findIndex`
|
|
14
|
+
* answers `-1` and `splice(-1, 1)` would drop the last feature instead of doing nothing. Missing
|
|
15
|
+
* display texts are treated as an empty list, the way the tables treat them when rendering.
|
|
16
|
+
*/
|
|
17
|
+
export declare function removeFeatureAt(refs: string[] | undefined, displayTexts: Record<string, string>[] | undefined, value: string): FeatureColumns | null;
|
|
18
|
+
/**
|
|
19
|
+
* Appends a feature to the parallel refs / display-text arrays.
|
|
20
|
+
*
|
|
21
|
+
* Missing arrays start as empty lists, so the two stay aligned on the first feature of a record
|
|
22
|
+
* that carries neither yet.
|
|
23
|
+
*/
|
|
24
|
+
export declare function addFeatureAt(refs: string[] | undefined, displayTexts: Record<string, string>[] | undefined, ref: string, displayText: Record<string, string>): FeatureColumns;
|
|
25
|
+
//# sourceMappingURL=featureColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"featureColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/featureColumns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CACxC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,EAClD,KAAK,EAAE,MAAM,GACZ,cAAc,GAAG,IAAI,CAYvB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,EAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,EAClD,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAClC,cAAc,CAEhB"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { SharedSelectState } from '@crystaldesign/diva-backoffice/ui/SelectSimple/types';
|
|
2
|
+
/**
|
|
3
|
+
* Owns the `catalog` slice of the context store: the open catalog plus the serie/item/feature the user
|
|
4
|
+
* drilled into, and the shared option/loading state of the four selectors above the tables.
|
|
5
|
+
*
|
|
6
|
+
* The slice is seeded from the `catalogId` route param and survives navigation between the catalog
|
|
7
|
+
* modules, which is why the selectors keep their options when the user switches tables. The setters
|
|
8
|
+
* cascade downwards - picking a serie clears item and feature, picking an item clears the feature -
|
|
9
|
+
* because the narrower selection cannot outlive the wider one it was read from. `setSelectedCatalog`
|
|
10
|
+
* additionally reconciles the stored `catalogId` against the route, since the selector first delivers
|
|
11
|
+
* the bare id and only later the full record.
|
|
12
|
+
*/
|
|
2
13
|
export declare const useCatalogContext: (currentModules?: string[]) => {
|
|
3
14
|
setSelectedSerie: (serie: any | undefined) => void;
|
|
4
15
|
setSelectedItem: (item: any | undefined) => void;
|
|
@@ -1 +1 @@
|
|
|
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;;;
|
|
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;;;;;;;;;;GAUG;AACH,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;;;eAlGvF,MAAM;qBACA,GAAG;gBACR,MAAM;oBACF,MAAM;0BACA,iBAAiB;oBACvB,GAAG;yBACE,iBAAiB;mBACvB,GAAG;uBACC,iBAAiB;sBAClB,GAAG;0BACC,iBAAiB;CAsLxC,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsBxC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsBxC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;CAiEhC,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Route view for the catalog's items table: the selectors, the grid, and the import/export actions.
|
|
4
|
+
*
|
|
5
|
+
* Its `useTools` call is the view's toolbar contract - it hands the toolbar the current catalog, serie
|
|
6
|
+
* and item plus the setters, so the docked tools act on what is selected here. A single-cell selection is
|
|
7
|
+
* written back into the module context for the same reason; a multi-cell selection is not, because it has
|
|
8
|
+
* no one row to point at.
|
|
9
|
+
*/
|
|
2
10
|
export declare const TableItems: (() => React.JSX.Element) & {
|
|
3
11
|
displayName: string;
|
|
4
12
|
};
|
|
@@ -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;;CA4FrB,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;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;CA4FrB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Route view for the catalog's series table, including the goods-group ("Programm") column: classifying a
|
|
4
|
+
* serie, persisting a manual override and clearing it again all run from here through the goods-group API.
|
|
5
|
+
*/
|
|
2
6
|
export declare const TableSeries: (() => React.JSX.Element) & {
|
|
3
7
|
displayName: string;
|
|
4
8
|
};
|
|
@@ -1 +1 @@
|
|
|
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;;
|
|
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;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAskBtB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCollectionEditor/modules/TableCollections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCollectionEditor/modules/TableCollections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AASlD,MAAM,CAAC,OAAO,gCAwNb"}
|
|
@@ -8,9 +8,16 @@ interface PricesProps {
|
|
|
8
8
|
};
|
|
9
9
|
apiConfig: ApiConfig;
|
|
10
10
|
pricelist: any;
|
|
11
|
-
setNodeDataValue: (data: Record<string, any>) =>
|
|
11
|
+
setNodeDataValue: (data: Record<string, any>) => void;
|
|
12
12
|
viewOnly?: boolean;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* The prices grid of one pricelist and serie, plus the price-factor and priority maps beside it.
|
|
16
|
+
*
|
|
17
|
+
* Scoped to the serie from the enricher context, so it follows the selection the user made in the
|
|
18
|
+
* pricelists module rather than taking one of its own. Export runs through the enricher's own api2
|
|
19
|
+
* endpoint instead of the grid's excel export, because the served file is a report, not the grid content.
|
|
20
|
+
*/
|
|
14
21
|
export declare const Prices: (({ organizationId, selectedPackage, apiConfig, pricelist, setNodeDataValue, viewOnly }: PricesProps) => React.JSX.Element) & {
|
|
15
22
|
displayName: string;
|
|
16
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAyBrE,UAAU,WAAW;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,EAAE,CAAC;KAC1B,CAAC;IACF,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,2FAAoG,WAAW;;CAmYhI,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure mutation helpers for the serie-scoped price-factor maps on a pricelist record, shared by the
|
|
3
|
+
* PriceFactor modal and the agent's table actions so both prune the same way: an empty value drops
|
|
4
|
+
* the entry, an empty serie its key, and an empty map writes `undefined` to drop the field.
|
|
5
|
+
*/
|
|
6
|
+
/** Scope of a price factor; determines which map field on the pricelist is mutated. */
|
|
7
|
+
export type PriceFactorScope = 'article' | 'typeKey' | 'priceFeatureGroup' | 'priceGroup' | 'serie';
|
|
8
|
+
/** Pricelist field per scope holding the factor map. */
|
|
9
|
+
export declare const PRICE_FACTOR_FIELDS: Record<PriceFactorScope, string>;
|
|
10
|
+
/** Pricelist field per scope holding the priority list map — only PFG and PG scopes support priority. */
|
|
11
|
+
export declare const PRICE_FACTOR_PRIORITY_FIELDS: Partial<Record<PriceFactorScope, string>>;
|
|
12
|
+
/**
|
|
13
|
+
* Computes the single-field `setNodeDataValue` patch that applies — or, with an empty `value`, clears —
|
|
14
|
+
* a price factor for a scope/key on a serie. `key` is unused for scope 'serie'.
|
|
15
|
+
*/
|
|
16
|
+
export declare function applyPriceFactor(pricelist: Record<string, any>, serieNo: number, scope: PriceFactorScope, key: string | undefined, value: number[]): Record<string, any>;
|
|
17
|
+
/** Computes the single-field `setNodeDataValue` patch that sets/clears the priority flag of a PFG or price-group factor. */
|
|
18
|
+
export declare function applyPriceFactorPriority(pricelist: Record<string, any>, serieNo: number, scope: PriceFactorScope, key: string, priority: boolean): Record<string, any>;
|
|
19
|
+
//# sourceMappingURL=priceFactorMutations.d.ts.map
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priceFactorMutations.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/Tables/Prices/priceFactorMutations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,uFAAuF;AACvF,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,mBAAmB,GAAG,YAAY,GAAG,OAAO,CAAC;AAEpG,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAMhE,CAAC;AAEF,yGAAyG;AACzG,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAGlF,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,KAAK,EAAE,MAAM,EAAE,GACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAuCrB;AAED,4HAA4H;AAC5H,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,gBAAgB,EACvB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,OAAO,GAChB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAwBrB"}
|
|
@@ -1,50 +1,26 @@
|
|
|
1
1
|
import { SharedSelectState } from '@crystaldesign/diva-backoffice/ui/SelectSimple/types';
|
|
2
|
+
/**
|
|
3
|
+
* Owns the `enricher` slice of the context store: the open package, the serie/item/feature drilled into,
|
|
4
|
+
* the shared state of the lookup and exclusivity selectors, and whether the tables may be edited at all.
|
|
5
|
+
*
|
|
6
|
+
* The slice is seeded from the `packageId` route param, and a deep link therefore starts on a placeholder
|
|
7
|
+
* whose organization is not known yet - `viewOnly` starts `true` so no table offers edits before
|
|
8
|
+
* `setSelectedPackage` has replaced it with the loaded package's real permission. The setters cascade
|
|
9
|
+
* downwards like the catalog ones, and `notifyPackageDataChanged` exists so a save can announce new data
|
|
10
|
+
* without replacing `selectedPackage` itself.
|
|
11
|
+
*/
|
|
2
12
|
export declare const useEnricherContext: (currentModules?: string[]) => {
|
|
13
|
+
packageId: string;
|
|
3
14
|
setSelectedSerie: (serie: any) => void;
|
|
4
15
|
setSelectedItem: (item: any) => void;
|
|
5
16
|
setSelectedFeature: (feature: any) => void;
|
|
6
17
|
setSelectedPackage: (pkg: any | string, modules?: string[], path?: string, reset?: boolean) => void;
|
|
7
18
|
notifyPackageDataChanged: () => void;
|
|
8
|
-
|
|
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
|
+
selectedPackage: any;
|
|
19
20
|
viewOnly?: boolean;
|
|
20
|
-
enricherService: string;
|
|
21
|
-
organizationId: string;
|
|
22
|
-
packageSelectorState: SharedSelectState;
|
|
23
|
-
lookupSeriesSelectorState: SharedSelectState;
|
|
24
|
-
lookupFeatureSelectorState: SharedSelectState;
|
|
25
|
-
exclusivitiesSeriesSelectorState: SharedSelectState;
|
|
26
|
-
exclusivitiesFeatureSelectorState: SharedSelectState;
|
|
27
21
|
selectedSerie: any;
|
|
28
22
|
selectedItem: any;
|
|
29
23
|
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
|
-
} | {
|
|
37
|
-
setSelectedSerie: (serie: any) => void;
|
|
38
|
-
setSelectedItem: (item: any) => void;
|
|
39
|
-
setSelectedFeature: (feature: any) => void;
|
|
40
|
-
setSelectedPackage: (pkg: any | string, modules?: string[], path?: string, reset?: boolean) => void;
|
|
41
|
-
notifyPackageDataChanged: () => void;
|
|
42
|
-
packageId: string;
|
|
43
|
-
selectedPackage: any;
|
|
44
|
-
/**
|
|
45
|
-
* If true, the package can only be viewed
|
|
46
|
-
*/
|
|
47
|
-
viewOnly?: boolean;
|
|
48
24
|
enricherService: string;
|
|
49
25
|
organizationId: string;
|
|
50
26
|
packageSelectorState: SharedSelectState;
|
|
@@ -52,9 +28,6 @@ export declare const useEnricherContext: (currentModules?: string[]) => {
|
|
|
52
28
|
lookupFeatureSelectorState: SharedSelectState;
|
|
53
29
|
exclusivitiesSeriesSelectorState: SharedSelectState;
|
|
54
30
|
exclusivitiesFeatureSelectorState: SharedSelectState;
|
|
55
|
-
selectedSerie: any;
|
|
56
|
-
selectedItem: any;
|
|
57
|
-
selectedFeature: any;
|
|
58
31
|
/**
|
|
59
32
|
* Incremented whenever data of the selected package changed elsewhere (e.g. a table row was saved), so that
|
|
60
33
|
* dependents like the publish button know to refetch — deliberately NOT the same thing as `selectedPackage`,
|
|
@@ -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;AA+BjG,eAAO,MAAM,kBAAkB,oBAAoB,MAAM,EAAE
|
|
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;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,oBAAoB,MAAM,EAAE;;8BA+D/C,GAAG;4BAOJ,GAAG;kCAMA,GAAG;8BAgBP,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;qBA7H7E,GAAG;eAIT,OAAO;mBAQH,GAAG;kBACJ,GAAG;qBACA,GAAG;qBATH,MAAM;oBACP,MAAM;0BACA,iBAAiB;+BACZ,iBAAiB;gCAChB,iBAAiB;sCACX,iBAAiB;uCAChB,iBAAiB;IAIpD;;;;OAIG;wBACiB,MAAM;CAgO3B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExpandedComponentProps } from '@crystaldesign/spreadsheet';
|
|
3
|
+
import { type PropertyEncoding } from '@crystaldesign/web-planner-logic';
|
|
4
|
+
import 'jsoneditor/dist/jsoneditor.css';
|
|
5
|
+
/**
|
|
6
|
+
* Props of the expanded property editor: the grid's own expanded-cell contract plus what this editor needs
|
|
7
|
+
* to store the value in the encoding the property's parser reads back.
|
|
8
|
+
*/
|
|
9
|
+
export interface PropertyValueExpandedEditorProps extends ExpandedComponentProps<unknown> {
|
|
10
|
+
/** How this property's string is read - decides the control and what counts as invalid. */
|
|
11
|
+
encoding?: PropertyEncoding;
|
|
12
|
+
/** One line telling the user the exact format, shown above the editor. */
|
|
13
|
+
formatHint?: string;
|
|
14
|
+
}
|
|
15
|
+
export default function PropertyValueExpandedEditor({ value, onValueChange, onClose, encoding, formatHint, }: PropertyValueExpandedEditorProps): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=PropertyValueExpandedEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyValueExpandedEditor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAkE,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzI,OAAO,gCAAgC,CAAC;AAwCxC;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB,CAAC,OAAO,CAAC;IACvF,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAmB,EACnB,UAAU,GACX,EAAE,gCAAgC,qBAwGlC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAyEjF,QAAA,MAAM,oBAAoB,yBAEzB,CAAC;AACF,QAAA,MAAM,iBAAiB,yBAEtB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,gBAAgB,yBAErB,CAAC;AAEF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TFunction } from 'i18next';
|
|
2
|
+
import { DivaColDef } from '@crystaldesign/spreadsheet';
|
|
3
|
+
import { type PropertyEncoding } from '@crystaldesign/web-planner-logic';
|
|
4
|
+
/** Column tooltip telling the user the exact text format a non-text property expects: translation key and English default per editor kind. */
|
|
5
|
+
export declare const PROPERTY_FORMAT_HINT: {
|
|
6
|
+
[kind: string]: {
|
|
7
|
+
key: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export interface PropertyColumnArgs {
|
|
12
|
+
/** The property key: its own value lives under `translatedProp.<key>.<lang>`, the inherited one under `prop.<key>.<lang>`. */
|
|
13
|
+
key: string;
|
|
14
|
+
lang: string;
|
|
15
|
+
encoding: PropertyEncoding;
|
|
16
|
+
headerLabel: string;
|
|
17
|
+
viewOnly?: boolean;
|
|
18
|
+
t: TFunction;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The column of a parsed (non-text) property. Every cell reads through the codec and writes back through it, so a
|
|
22
|
+
* value stored in ANY historic spelling still displays correctly and a save emits the one spelling this property's
|
|
23
|
+
* parser reads - writing 'true' where it tests `== '1'` would silently mean false. A boolean encoding is a checkbox,
|
|
24
|
+
* every other kind a text cell with the expanded editor.
|
|
25
|
+
*/
|
|
26
|
+
export declare function buildPropertyColumn({ key, lang, encoding, headerLabel, viewOnly, t }: PropertyColumnArgs): DivaColDef<any>;
|
|
27
|
+
//# sourceMappingURL=propertyColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAgC,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAML,KAAK,gBAAgB,EAEtB,MAAM,kCAAkC,CAAC;AAG1C,8IAA8I;AAC9I,eAAO,MAAM,oBAAoB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAQzF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,8HAA8H;IAC9H,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,EAAE,SAAS,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,CAyE1H"}
|
package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMFeaturesEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMFeaturesEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,gHAAgH;AAChH,eAAO,MAAM,aAAa;;CASxB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Route view for the organization's own features table. Docks the GLOBAL features table read-only on the
|
|
4
|
+
* right as well, so the org's features can be compared against them without leaving the view.
|
|
5
|
+
*/
|
|
2
6
|
export declare const TableFeatures: (() => React.JSX.Element) & {
|
|
3
7
|
displayName: string;
|
|
4
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMOrganizationFeaturesEditor/modules/TableFeatures/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B;;;GAGG;AACH,eAAO,MAAM,aAAa;;CAqBxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMOrganizationOptionsEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,uHAAuH;AACvH,eAAO,MAAM,YAAY;;CAUvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAWhD,MAAM,CAAC,OAAO,gCAyBb"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The catalog service's content-item endpoints in one place. Two table systems read the same collection - the
|
|
3
|
+
* legacy CRUD table `TableContentItems` in the ConfigurationStore and the toolbar's `ContentItemLibrary` grid -
|
|
4
|
+
* and each resolves the row id with its own placeholder (`${id}` there, `${_id}` here), so the id is passed in
|
|
5
|
+
* instead of baked in. Everything before it is shared, which is the part that moves when the service does.
|
|
6
|
+
*/
|
|
7
|
+
/** The organization's content items. The caller prefixes the catalog service. */
|
|
8
|
+
export declare const CONTENT_ITEMS_LIST_PATH = "/contentItems?organizationId=${organizationId}";
|
|
9
|
+
/** One content item, addressed with the caller's own row-id placeholder. The caller prefixes the catalog service. */
|
|
10
|
+
export declare const contentItemPath: (idPlaceholder: string) => string;
|
|
11
|
+
//# sourceMappingURL=contentItemEndpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentItemEndpoints.d.ts","sourceRoot":"","sources":["../../../../../src/utils/contentItemEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,iFAAiF;AACjF,eAAO,MAAM,uBAAuB,mDAAmD,CAAC;AAExF,qHAAqH;AACrH,eAAO,MAAM,eAAe,kBAAmB,MAAM,KAAG,MAA0C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IDM catalog the editor ROUTE names (`/catalogs/idmeditor/catalogs/<24-hex>`), if any.
|
|
3
|
+
*
|
|
4
|
+
* The route is the only source that never lags behind a catalog switch: a tool registered for the
|
|
5
|
+
* previously opened catalog keeps its record-derived id until it is re-registered.
|
|
6
|
+
*/
|
|
7
|
+
export declare function routeCatalogIdOf(path: string | undefined): string | undefined;
|
|
8
|
+
//# sourceMappingURL=routeCatalogId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routeCatalogId.d.ts","sourceRoot":"","sources":["../../../../../src/utils/routeCatalogId.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAE7E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.12.0-beta.
|
|
3
|
+
"version": "26.12.0-beta.7",
|
|
4
4
|
"description": "Ant Design backoffice shell: configuration plus the IDM and enricher editors.",
|
|
5
5
|
"license": "COMMERCIAL",
|
|
6
6
|
"devDependencies": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/icons": "6.3.4",
|
|
18
18
|
"@babel/runtime": "7.24.7",
|
|
19
|
-
"@crystaldesign/content-box": "26.12.0-beta.
|
|
20
|
-
"@crystaldesign/content-item": "26.12.0-beta.
|
|
21
|
-
"@crystaldesign/diva-agent": "26.12.0-beta.
|
|
22
|
-
"@crystaldesign/diva-core": "26.12.0-beta.
|
|
23
|
-
"@crystaldesign/diva-utils": "26.12.0-beta.
|
|
24
|
-
"@crystaldesign/media-upload": "26.12.0-beta.
|
|
25
|
-
"@crystaldesign/rtf-editor": "26.12.0-beta.
|
|
26
|
-
"@crystaldesign/spreadsheet": "26.12.0-beta.
|
|
19
|
+
"@crystaldesign/content-box": "26.12.0-beta.7",
|
|
20
|
+
"@crystaldesign/content-item": "26.12.0-beta.7",
|
|
21
|
+
"@crystaldesign/diva-agent": "26.12.0-beta.7",
|
|
22
|
+
"@crystaldesign/diva-core": "26.12.0-beta.7",
|
|
23
|
+
"@crystaldesign/diva-utils": "26.12.0-beta.7",
|
|
24
|
+
"@crystaldesign/media-upload": "26.12.0-beta.7",
|
|
25
|
+
"@crystaldesign/rtf-editor": "26.12.0-beta.7",
|
|
26
|
+
"@crystaldesign/spreadsheet": "26.12.0-beta.7",
|
|
27
27
|
"@dnd-kit/core": "^6.1.0",
|
|
28
28
|
"@dnd-kit/sortable": "^8.0.0",
|
|
29
29
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
},
|
|
58
58
|
"module": "build/esm/index.js",
|
|
59
59
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "44f239b0a163eeb1fd9c7521dddef62259d46597"
|
|
61
61
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExpandedComponentProps } from '@crystaldesign/spreadsheet';
|
|
3
|
-
import 'jsoneditor/dist/jsoneditor.css';
|
|
4
|
-
export type PropertyObjectExpandedEditorProps = ExpandedComponentProps<unknown>;
|
|
5
|
-
export default function PropertyObjectExpandedEditor({ value, onValueChange, onClose }: PropertyObjectExpandedEditorProps): React.JSX.Element;
|
|
6
|
-
//# sourceMappingURL=PropertyObjectExpandedEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyObjectExpandedEditor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,gCAAgC,CAAC;AAkBxC,MAAM,MAAM,iCAAiC,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,iCAAiC,qBAoDxH"}
|