@crystaldesign/diva-backoffice 26.8.0-beta.6 → 26.8.0-beta.61
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 +4302 -1758
- package/build/types/backoffice/src/Configuration.d.ts +2 -1
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/PopoutWindow.d.ts +30 -0
- package/build/types/backoffice/src/layout/Toolbar/PopoutWindow.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts +58 -1
- package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/toolPreferences.d.ts +26 -0
- package/build/types/backoffice/src/store/toolPreferences.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/ActionButton.d.ts +1 -1
- package/build/types/backoffice/src/ui/ActionButton.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/UploadModal/useUploadState.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/commonEnums.d.ts +10 -0
- package/build/types/backoffice/src/ui/CommonComponents/commonEnums.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/createTranslatedColumnConfig.d.ts +2 -1
- package/build/types/backoffice/src/ui/CommonComponents/createTranslatedColumnConfig.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/useLoadingModal.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/CommonComponents/useTools.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.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/ActionsForm.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +2 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +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 +2 -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 +2 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/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/TableFormulas/index.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFormulas/index.d.ts.map +1 -0
- 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/TablePrices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +5 -2
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/FeatureSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishButton.d.ts +20 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishButton.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.d.ts +12 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +7 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/AutomaticPublishingOrganizationsModal.d.ts +12 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/AutomaticPublishingOrganizationsModal.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.d.ts +15 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.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 +30 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts +60 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.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/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMFeaturesEditor/Tables/Features.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/Tables/Options.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/components/StatsRow.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts +18 -0
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/utils.d.ts +1 -0
- package/build/types/backoffice/src/ui/Maintenance/utils.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/utils/mapColumns.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/components/SortableImageRow/index.d.ts +18 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/components/SortableImageRow/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/index.d.ts +24 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ActionBar/index.d.ts +4 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ActionBar/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts +30 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImageSelectionWorkspace/index.d.ts +25 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImageSelectionWorkspace/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts +4 -3
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts +5 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionHeader/index.d.ts +11 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionHeader/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.d.ts +14 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ShortcutLegend/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderApproveSession.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts +3 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/UploadImageModal/index.d.ts +11 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/UploadImageModal/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/config.d.ts +31 -5
- package/build/types/backoffice/src/ui/TableRenderJobs/config.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUploadRenderImage.d.ts +14 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUploadRenderImage.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts +22 -4
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/downloadHandler.d.ts.map +1 -1
- package/build/types/backoffice/src/utils/getIcons.d.ts.map +1 -1
- package/package.json +13 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackagePublishButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAMrD,UAAU,KAAK;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,+GAA+G;IAC/G,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,oBAAoB,2DAA4D,KAAK,sBAiC1F,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { usePackagePublishing } from '../../modules/TablePackages/usePackagePublishing';
|
|
3
|
+
interface Props {
|
|
4
|
+
publishing: ReturnType<typeof usePackagePublishing>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Compact publish/unpublish switch for the currently opened package: the switch carries the publish state
|
|
8
|
+
* (on/off, green when published), a colored tag carries the additional status (current/pending changes/publishing).
|
|
9
|
+
*/
|
|
10
|
+
export default function PackagePublishSwitch({ publishing }: Props): React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PackagePublishSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackagePublishSwitch.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackagePublishSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AAGxF,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrD;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,qBAuEjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PackageSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PackageSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;uCASY;IAAE,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE;;;AA0C3D,wBAAyC"}
|
|
@@ -4,6 +4,7 @@ export declare const useEnricherContext: (currentModules?: string[]) => {
|
|
|
4
4
|
setSelectedItem: (item: any) => void;
|
|
5
5
|
setSelectedFeature: (feature: any) => void;
|
|
6
6
|
setSelectedPackage: (pkg: any | string, modules?: string[], path?: string, reset?: boolean) => void;
|
|
7
|
+
notifyPackageDataChanged: () => void;
|
|
7
8
|
packageId: string;
|
|
8
9
|
selectedPackage: any;
|
|
9
10
|
/**
|
|
@@ -20,5 +21,11 @@ export declare const useEnricherContext: (currentModules?: string[]) => {
|
|
|
20
21
|
selectedSerie: any;
|
|
21
22
|
selectedItem: any;
|
|
22
23
|
selectedFeature: any;
|
|
24
|
+
/**
|
|
25
|
+
* Incremented whenever data of the selected package changed elsewhere (e.g. a table row was saved), so that
|
|
26
|
+
* dependents like the publish button know to refetch — deliberately NOT the same thing as `selectedPackage`,
|
|
27
|
+
* which feeds grid `applicationData`/config; replacing that object on every edit caused the grid to reset itself.
|
|
28
|
+
*/
|
|
29
|
+
packageDataVersion: number;
|
|
23
30
|
};
|
|
24
31
|
//# sourceMappingURL=useEnricherContext.d.ts.map
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"useEnricherContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMEnricherEditor/hooks/useEnricherContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AA4BjG,eAAO,MAAM,kBAAkB,oBAAoB,MAAM,EAAE;8BA2D/C,GAAG;4BAOJ,GAAG;kCAMA,GAAG;8BAgBP,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;;eAhHnF,MAAM;qBACA,GAAG;IACpB;;OAEG;eACQ,OAAO;qBACD,MAAM;oBACP,MAAM;0BACA,iBAAiB;+BACZ,iBAAiB;gCAChB,iBAAiB;sCACX,iBAAiB;uCAChB,iBAAiB;mBACrC,GAAG;kBACJ,GAAG;qBACA,GAAG;IACpB;;;;OAIG;wBACiB,MAAM;CAqK3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMEnricherEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMEnricherEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;;EA6QhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMEnricherEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAIzD,UAAU,KAAK;IACb,aAAa,EAAE,8BAA8B,CAAC;IAC9C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,WAAW;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,WAAW;;CA+JtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { usePackagePublishing } from './usePackagePublishing';
|
|
3
|
+
interface Props {
|
|
4
|
+
publishing: ReturnType<typeof usePackagePublishing>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Modal to select which organizations should get automatic publishing enabled, shown after clicking publish
|
|
8
|
+
* when there are eligible organizations. Shared between the packages list column and the standalone publish button.
|
|
9
|
+
*/
|
|
10
|
+
export default function AutomaticPublishingOrganizationsModal({ publishing }: Props): React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=AutomaticPublishingOrganizationsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AutomaticPublishingOrganizationsModal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/AutomaticPublishingOrganizationsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;CACrD;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qCAAqC,CAAC,EAAE,UAAU,EAAE,EAAE,KAAK,qBAmDlF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { usePackagePublishing } from './usePackagePublishing';
|
|
4
|
+
interface Props {
|
|
5
|
+
publishing: ReturnType<typeof usePackagePublishing>;
|
|
6
|
+
/** Size of the circle buttons (sync/reload/withdrawn); defaults to antd's regular size. */
|
|
7
|
+
buttonSize?: SizeType;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Publish/unpublish checkbox, status icons and automatic-publishing organization modal, shared between the
|
|
11
|
+
* packages list column and the standalone publish button next to the package selector.
|
|
12
|
+
*/
|
|
13
|
+
export default function PackagePublishControls({ publishing, buttonSize }: Props): React.JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=PackagePublishControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackagePublishControls.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PackagePublishControls.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAK/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,UAAU,KAAK;IACb,UAAU,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACpD,2FAA2F;IAC3F,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,KAAK,qBAiC/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"PublishCustomCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAI9E,MAAM,CAAC,OAAO,WAAW,EACvB,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,EACH,UAAU,EACV,cAAc,GACf,EAAE,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC,0BAcxH"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA+BpD,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA+BpD,eAAO,MAAM,aAAa;;CAwcxB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface AutomaticPublishingOrganizationsParams {
|
|
2
|
+
authServiceUrl: string;
|
|
3
|
+
organizationId: string;
|
|
4
|
+
jwt: string;
|
|
5
|
+
packageData: {
|
|
6
|
+
organizationId?: string;
|
|
7
|
+
allowedOrganizationIds?: string[];
|
|
8
|
+
settings?: {
|
|
9
|
+
[organizationId: string]: {
|
|
10
|
+
automaticPublishing?: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fetches organizations related to the given organization and filters them down to the ones eligible
|
|
17
|
+
* for automatic publishing of the package (either explicitly enabled for this package, or having both
|
|
18
|
+
* access to the package and automaticPublishing enabled on their own organization settings).
|
|
19
|
+
*/
|
|
20
|
+
export declare function fetchAutomaticPublishingOrganizations({ authServiceUrl, organizationId, jwt, packageData, }: AutomaticPublishingOrganizationsParams): Promise<Array<{
|
|
21
|
+
_id: string;
|
|
22
|
+
displayName: string;
|
|
23
|
+
}>>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the package was last updated after it was published, meaning the published version
|
|
26
|
+
* is outdated.
|
|
27
|
+
*/
|
|
28
|
+
export declare function hasUnpublishedChanges(publishDateString?: string, lastUpdatedDateString?: string): boolean;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=publishUtils.d.ts.map
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publishUtils.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/publishUtils.ts"],"names":[],"mappings":"AAAA,UAAU,sCAAsC;IAC9C,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE;QACX,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;QAClC,QAAQ,CAAC,EAAE;YAAE,CAAC,cAAc,EAAE,MAAM,GAAG;gBAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;aAAE,CAAA;SAAE,CAAC;KAC5E,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAsB,qCAAqC,CAAC,EAC1D,cAAc,EACd,cAAc,EACd,GAAG,EACH,WAAW,GACZ,EAAE,sCAAsC,GAAG,OAAO,CAAC,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAqD/F;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,qBAAqB,CAAC,EAAE,MAAM,GAAG,OAAO,CASzG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ApiConfig } from '@crystaldesign/diva-core';
|
|
3
|
+
import { LoadingModalState } from '../../../CommonComponents/useLoadingModal';
|
|
4
|
+
export interface PackagePublishData {
|
|
5
|
+
name?: string;
|
|
6
|
+
basedCatalogId?: string;
|
|
7
|
+
basedPackageId?: string;
|
|
8
|
+
organizationId?: string;
|
|
9
|
+
allowedOrganizationIds?: string[];
|
|
10
|
+
settings?: {
|
|
11
|
+
[organizationId: string]: {
|
|
12
|
+
automaticPublishing?: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
removedOrganizationIds?: string[];
|
|
16
|
+
lastUpdatedDate?: string;
|
|
17
|
+
published?: {
|
|
18
|
+
[organizationId: string]: {
|
|
19
|
+
publishing?: boolean;
|
|
20
|
+
publishDate?: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface UsePackagePublishingParams {
|
|
25
|
+
packageId: string;
|
|
26
|
+
data: PackagePublishData;
|
|
27
|
+
organizationId: string;
|
|
28
|
+
apiConfig: ApiConfig;
|
|
29
|
+
modalState: LoadingModalState;
|
|
30
|
+
/** Called after a publish/unpublish request was accepted by the server, so the caller can refresh its data. */
|
|
31
|
+
onPublished: () => void;
|
|
32
|
+
/** Blocks the UI with a loading modal while the request is running (the packages list only shows an inline spinner). */
|
|
33
|
+
blockUiWhilePublishing?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Shared publish/unpublish state and logic for a package, used by both the packages list column and the
|
|
37
|
+
* standalone publish button next to the package selector.
|
|
38
|
+
*/
|
|
39
|
+
export declare function usePackagePublishing({ packageId, data, organizationId, apiConfig, modalState, onPublished, blockUiWhilePublishing, }: UsePackagePublishingParams): {
|
|
40
|
+
loading: boolean;
|
|
41
|
+
pendingAction: "publish" | "unpublish" | null;
|
|
42
|
+
isPublishing: boolean;
|
|
43
|
+
isPublished: boolean | undefined;
|
|
44
|
+
isReleaseWithdrawn: boolean;
|
|
45
|
+
unpublishedChanges: boolean;
|
|
46
|
+
disabled: boolean;
|
|
47
|
+
organizationModalVisible: boolean;
|
|
48
|
+
setOrganizationModalVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
49
|
+
availableOrganizations: {
|
|
50
|
+
_id: string;
|
|
51
|
+
displayName: string;
|
|
52
|
+
}[];
|
|
53
|
+
loadingOrganizations: boolean;
|
|
54
|
+
selectedOrganizationIds: string[];
|
|
55
|
+
setSelectedOrganizationIds: React.Dispatch<React.SetStateAction<string[]>>;
|
|
56
|
+
onChange: (publish: boolean) => Promise<void>;
|
|
57
|
+
handleConfirmPublish: () => Promise<void>;
|
|
58
|
+
};
|
|
59
|
+
export {};
|
|
60
|
+
//# sourceMappingURL=usePackagePublishing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePackagePublishing.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/usePackagePublishing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAG9E,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,mBAAmB,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAC3E,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG;YAAE,UAAU,CAAC,EAAE,OAAO,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC1F;AAED,UAAU,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,kBAAkB,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,+GAA+G;IAC/G,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,wHAAwH;IACxH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,IAAI,EACJ,cAAc,EACd,SAAS,EACT,UAAU,EACV,WAAW,EACX,sBAAsB,GACvB,EAAE,0BAA0B;;;;;;;;;;;aAO6D,MAAM;qBAAe,MAAM;;;;;wBAyFjG,OAAO;;EA2B1B"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,gBAAgB;;CAqN3B,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAevE,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePriceList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAevE,eAAO,MAAM,cAAc;;CA+UzB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,eAAe;;CA2N1B,CAAC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableTabGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableTabGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,eAAO,MAAM,cAAc;;CAuIzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMFeaturesEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMFeaturesEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA2FpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMOrganizationOptionsEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMOrganizationOptionsEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA0PnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatsRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"StatsRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Maintenance/components/StatsRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,UAAU,EAAgB,UAAU,EAAE,MAAM,UAAU,CAAC;AA4ChE,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,OAAO,EACP,QAAQ,EACR,CAAC,GACF,EAAE;IACD,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B,qBA4EA"}
|
|
@@ -6,11 +6,22 @@ export interface MaintenanceConfiguration extends BaseModulConfiguration {
|
|
|
6
6
|
export type RefreshStatus = 'ok' | 'failed' | 'skipped';
|
|
7
7
|
export type RefreshResult = Record<string, RefreshStatus>;
|
|
8
8
|
export type InstancesData<T> = Record<string, T | null>;
|
|
9
|
+
export interface NodeMemoryUsage {
|
|
10
|
+
rss: number;
|
|
11
|
+
heapTotal: number;
|
|
12
|
+
heapUsed: number;
|
|
13
|
+
external: number;
|
|
14
|
+
arrayBuffers: number;
|
|
15
|
+
}
|
|
9
16
|
export interface ServiceStats {
|
|
10
17
|
service: {
|
|
11
18
|
startupTime: string;
|
|
12
19
|
uptimeMs: number;
|
|
13
20
|
};
|
|
21
|
+
/** Present for Node services (via diva-backend-commons); absent for .NET services. */
|
|
22
|
+
runtime?: {
|
|
23
|
+
memory: NodeMemoryUsage;
|
|
24
|
+
};
|
|
14
25
|
configuration: {
|
|
15
26
|
lastLoadedAt: string | null;
|
|
16
27
|
};
|
|
@@ -23,6 +34,13 @@ export interface ServiceStats {
|
|
|
23
34
|
stats: any;
|
|
24
35
|
type: string;
|
|
25
36
|
};
|
|
37
|
+
/** Service-specific: active libvips operations. Should return to ~0 at idle (diva-media). */
|
|
38
|
+
sharp?: {
|
|
39
|
+
queue: number;
|
|
40
|
+
process: number;
|
|
41
|
+
};
|
|
42
|
+
/** Service-specific: tracked in-flight upload temp-file sets. Should return to 0 at idle (diva-media). */
|
|
43
|
+
transformerTempFiles?: number;
|
|
26
44
|
}
|
|
27
45
|
export interface PingResult {
|
|
28
46
|
reachable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Maintenance/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,aAAa,EAAE;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC/C,SAAS,EAAE;QAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAClE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Maintenance/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB;IACtE,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,sFAAsF;IACtF,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,eAAe,CAAA;KAAE,CAAC;IACtC,aAAa,EAAE;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAC/C,SAAS,EAAE;QAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC;IAClE,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACpD,6FAA6F;IAC7F,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,0GAA0G;IAC1G,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,SAAS,CAAC;IACxB,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;CAAE,GAC3D;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,MAAM,MAAM,SAAS,GACjB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;CAAE,GACxD;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,MAAM,MAAM,UAAU,GAClB;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAClB;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GACrB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;CAAE,GAC1D;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InstancesData, InstanceSummary } from './types';
|
|
2
2
|
export declare function formatUptime(ms: number): string;
|
|
3
3
|
export declare function formatDateTime(iso: string | null): string;
|
|
4
|
+
export declare function formatBytes(bytes: number): string;
|
|
4
5
|
export declare function getInstanceSummary<T>(instances: InstancesData<T>, isOk: (data: T) => boolean): InstanceSummary;
|
|
5
6
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Maintenance/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEzD,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAW/C;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGzD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,eAAe,CAK9G"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Maintenance/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEzD,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAW/C;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAGzD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKjD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,eAAe,CAK9G"}
|
package/build/types/backoffice/src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAMxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/Table/BaseTable/cellRenderer/MediaViewerCell/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,IAAI,CAAC;AAMxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,cAAc,EAAE,GAAG,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,kBAAkB,qBAuFhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/mapColumns.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,EAClC,aAAa,EAAE,kBAAkB,EACjC,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,EAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,EAChC,IAAI,CAAC,EAAE,GAAG,EACV,YAAY,CAAC,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"mapColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/utils/mapColumns.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,EAClC,aAAa,EAAE,kBAAkB,EACjC,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,EAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,EAChC,IAAI,CAAC,EAAE,GAAG,EACV,YAAY,CAAC,EAAE,YAAY,0CA+D5B;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAoBjH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RenderApproveMedia } from '../../../../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
id: string;
|
|
5
|
+
media: RenderApproveMedia;
|
|
6
|
+
/** Display name fallback (e.g. preview title) when the media has no own name. */
|
|
7
|
+
fallbackLabel: string;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
/** 1-based order number among selected items; undefined when not selected. */
|
|
10
|
+
orderNumber?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onToggle: () => void;
|
|
13
|
+
/** Opens the image in fullscreen (double-click on the thumbnail). */
|
|
14
|
+
onOpenFullscreen?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export default function SortableImageRow({ id, media, fallbackLabel, selected, orderNumber, disabled, onToggle, onOpenFullscreen }: Props): React.JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/components/SortableImageRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,kBAAkB,CAAC;IAC1B,iFAAiF;IACjF,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAcD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,KAAK,qBAmDxI"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RenderApproveMedia, RenderImage } from '../../../../types';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** All available images (realtime preview + product media), order as loaded. */
|
|
5
|
+
slides: RenderApproveMedia[];
|
|
6
|
+
/** Persisted order/selection from the render job `renderImages` (CDN urls). */
|
|
7
|
+
selectedUrls?: string[];
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Fires with the ordered list of selected images (CDN url + MediaItemRef id) on every user change. */
|
|
10
|
+
onChange?: (orderedImages: RenderImage[]) => void;
|
|
11
|
+
/** Opens an image in fullscreen (double-click on its thumbnail). */
|
|
12
|
+
onOpenFullscreen?: (media: RenderApproveMedia) => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Drag & drop list to pick which product images are sent to the AI and in
|
|
16
|
+
* which order. Selected items are numbered (1, 2, 3, …) in list order; the
|
|
17
|
+
* order is the source of truth for the render job `renderImages`.
|
|
18
|
+
*
|
|
19
|
+
* Selection resets per job - the parent remounts this component on job change
|
|
20
|
+
* (via `key`) so each job starts from its own persisted/default state.
|
|
21
|
+
*/
|
|
22
|
+
export default function AIImageSelector({ slides, selectedUrls, disabled, onChange, onOpenFullscreen }: Props): React.JSX.Element | null;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/AIImageSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAYpE,UAAU,KAAK;IACb,gFAAgF;IAChF,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAClD,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACxD;AAoCD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,KAAK,4BA+E5G"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ShortcutItem } from '../ShortcutLegend';
|
|
2
3
|
interface Props {
|
|
3
4
|
disabled?: boolean;
|
|
4
5
|
busy?: boolean;
|
|
5
6
|
readOnly?: boolean;
|
|
6
7
|
isFirst?: boolean;
|
|
7
|
-
|
|
8
|
+
/** Shortcut hints shown in the legend; the caller decides which apply. */
|
|
9
|
+
shortcutItems: ShortcutItem[];
|
|
8
10
|
onApprove?: () => void;
|
|
9
11
|
onReject?: () => void;
|
|
10
12
|
onPrev?: () => void;
|
|
11
13
|
onNext?: () => void;
|
|
12
14
|
onUpload?: () => void;
|
|
13
15
|
}
|
|
14
|
-
export default function ActionBar({ disabled, busy, readOnly, isFirst,
|
|
16
|
+
export default function ActionBar({ disabled, busy, readOnly, isFirst, shortcutItems, onApprove, onReject, onPrev, onNext, onUpload }: Props): React.JSX.Element;
|
|
15
17
|
export {};
|
|
16
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ActionBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ActionBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAuB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjE,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0EAA0E;IAC1E,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,KAAK,qBAqC3I"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Swiper as SwiperClass } from 'swiper';
|
|
3
|
+
import { ShortcutItem } from '../ShortcutLegend';
|
|
4
|
+
import { SessionAction } from '../../hooks/useRenderApproveSession';
|
|
5
|
+
import { RenderApproveImages } from '../../../../types';
|
|
6
|
+
interface Props {
|
|
7
|
+
images: RenderApproveImages;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
readonlyDecision?: SessionAction;
|
|
10
|
+
onOpenFullscreenLeft: () => void;
|
|
11
|
+
onOpenFullscreenRight: () => void;
|
|
12
|
+
onLeftSwiperInit: (swiper: SwiperClass) => void;
|
|
13
|
+
actionDisabled?: boolean;
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
isFirst?: boolean;
|
|
17
|
+
shortcutItems: ShortcutItem[];
|
|
18
|
+
onApprove: () => void;
|
|
19
|
+
onReject: () => void;
|
|
20
|
+
onPrev: () => void;
|
|
21
|
+
onNext: () => void;
|
|
22
|
+
onUpload?: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Abnahme (approval) use case: side-by-side comparison of preview and result
|
|
26
|
+
* plus the full decision action bar (approve / reject / upload).
|
|
27
|
+
*/
|
|
28
|
+
export default function ApprovalWorkspace({ images, loading, readonlyDecision, onOpenFullscreenLeft, onOpenFullscreenRight, onLeftSwiperInit, actionDisabled, busy, readOnly, isFirst, shortcutItems, onApprove, onReject, onPrev, onNext, onUpload, }: Props): React.JSX.Element;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,UAAU,KAAK;IACb,MAAM,EAAE,mBAAmB,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,gBAAgB,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAChD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,SAAS,EACT,QAAQ,EACR,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,KAAK,qBAyBP"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ShortcutItem } from '../ShortcutLegend';
|
|
3
|
+
import { RenderApproveMedia, RenderImage, RenderJob } from '../../../../types';
|
|
4
|
+
interface Props {
|
|
5
|
+
job: RenderJob;
|
|
6
|
+
slides: RenderApproveMedia[];
|
|
7
|
+
selectionDisabled?: boolean;
|
|
8
|
+
onSelectionChange: (orderedImages: RenderImage[]) => void;
|
|
9
|
+
onOpenFullscreen: (media: RenderApproveMedia) => void;
|
|
10
|
+
onUpload?: () => void;
|
|
11
|
+
actionDisabled?: boolean;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
isFirst?: boolean;
|
|
14
|
+
shortcutItems: ShortcutItem[];
|
|
15
|
+
onPrev: () => void;
|
|
16
|
+
onNext: () => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Image-selector use case (before the initial AI rendering): pick and order the
|
|
20
|
+
* product images sent to the AI. The action bar only carries navigation - no
|
|
21
|
+
* approve / reject / upload, since there is nothing to decide yet.
|
|
22
|
+
*/
|
|
23
|
+
export default function ImageSelectionWorkspace({ job, slides, selectionDisabled, onSelectionChange, onOpenFullscreen, onUpload, actionDisabled, busy, isFirst, shortcutItems, onPrev, onNext, }: Props): React.JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/ImageSelectionWorkspace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE/E,UAAU,KAAK;IACb,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,EAAE,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC1D,gBAAgB,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAC9C,GAAG,EACH,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,IAAI,EACJ,OAAO,EACP,aAAa,EACb,MAAM,EACN,MAAM,GACP,EAAE,KAAK,qBAoBP"}
|
|
@@ -7,14 +7,15 @@ import 'swiper/css/pagination';
|
|
|
7
7
|
interface Props {
|
|
8
8
|
slides: RenderApproveMedia[];
|
|
9
9
|
loading?: boolean;
|
|
10
|
-
/** Fullscreen handler used only for the
|
|
10
|
+
/** Fullscreen handler used only for the realtime preview slide. */
|
|
11
11
|
onOpenFullscreenFirst?: () => void;
|
|
12
12
|
/** Receives the Swiper instance so the parent can drive prev/next from keyboard shortcuts. */
|
|
13
13
|
onSwiperInit?: (swiper: SwiperClass) => void;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Horizontal Swiper for the left RenderApprove panel.
|
|
17
|
-
*
|
|
16
|
+
* Horizontal Swiper for the left RenderApprove panel. Slides are the realtime
|
|
17
|
+
* render preview (flagged via `isPreview`) and the filtered product media, in
|
|
18
|
+
* the order assembled by `useRenderJobData`.
|
|
18
19
|
*
|
|
19
20
|
* Swiper's keyboard module is intentionally disabled because Arrow Left/Right
|
|
20
21
|
* are owned by `useKeyboardShortcuts` for navigating between render jobs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAKpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAE/B,UAAU,KAAK;IACb,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAKpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,YAAY,CAAC;AACpB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAE/B,UAAU,KAAK;IACb,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mEAAmE;IACnE,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,EAAE,KAAK,qBAsCjG"}
|
|
@@ -11,8 +11,12 @@ interface Props {
|
|
|
11
11
|
promptActionDisabled?: boolean;
|
|
12
12
|
promptActionBusy?: boolean;
|
|
13
13
|
onPromptRestart?: (nextPrompt: string) => Promise<void>;
|
|
14
|
+
/** Whether saving the prompt restarts the render production (shows a warning). */
|
|
15
|
+
promptWarningMessage?: string;
|
|
16
|
+
/** Hides the prompt view/button entirely (e.g. during the image-selection phase). */
|
|
17
|
+
hidePrompt?: boolean;
|
|
14
18
|
children: React.ReactNode;
|
|
15
19
|
}
|
|
16
|
-
export default function MetadataPanel({ job, fileSize, mediaType, detailsOpen, onDetailsOpenChange, promptOpen, onPromptOpenChange, promptActionDisabled, promptActionBusy, onPromptRestart, children, }: Props): React.JSX.Element;
|
|
20
|
+
export default function MetadataPanel({ job, fileSize, mediaType, detailsOpen, onDetailsOpenChange, promptOpen, onPromptOpenChange, promptActionDisabled, promptActionBusy, onPromptRestart, promptWarningMessage, hidePrompt, children, }: Props): React.JSX.Element;
|
|
17
21
|
export {};
|
|
18
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAsC9C,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/MetadataPanel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAM5D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAsC9C,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qFAAqF;IACrF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAkHD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,GAAG,EACH,QAAQ,EACR,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,UAAU,EACV,QAAQ,GACT,EAAE,KAAK,qBA4VP"}
|
|
@@ -10,7 +10,17 @@ interface Props {
|
|
|
10
10
|
skipProcessedJobs: boolean;
|
|
11
11
|
onSkipProcessedJobsChange: (value: boolean) => void;
|
|
12
12
|
onBack: () => void;
|
|
13
|
+
/** Whether to show the decision summary stats (approved/rejected/...). */
|
|
14
|
+
showStats?: boolean;
|
|
15
|
+
/** Whether to show the "skip processed jobs" checkbox. */
|
|
16
|
+
showSkip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Drives the progress bar by navigation position instead of decisions
|
|
19
|
+
* (used in the image-selector mode, where there are no approve/reject
|
|
20
|
+
* decisions). It advances as jobs are navigated and reaches 100% on finish.
|
|
21
|
+
*/
|
|
22
|
+
progressByPosition?: boolean;
|
|
13
23
|
}
|
|
14
|
-
export default function SessionHeader({ job, currentIndex, total, isFinished, sessionSummary, skipProcessedJobs, onSkipProcessedJobsChange, onBack, }: Props): React.JSX.Element;
|
|
24
|
+
export default function SessionHeader({ job, currentIndex, total, isFinished, sessionSummary, skipProcessedJobs, onSkipProcessedJobsChange, onBack, showStats, showSkip, progressByPosition, }: Props): React.JSX.Element;
|
|
15
25
|
export {};
|
|
16
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AA4BrE,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yBAAyB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AA4BrE,UAAU,KAAK;IACb,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yBAAyB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAqBD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,GAAG,EACH,YAAY,EACZ,KAAK,EACL,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,yBAAyB,EACzB,MAAM,EACN,SAAgB,EAChB,QAAe,EACf,kBAA0B,GAC3B,EAAE,KAAK,qBAiGP"}
|