@crystaldesign/diva-backoffice 26.14.0-beta.1 → 26.14.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/build/esm/index.js +9692 -7810
  2. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -1
  3. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +2 -0
  4. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
  5. package/build/types/backoffice/src/store/GridRegistry.d.ts +7 -0
  6. package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -1
  7. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +13 -0
  8. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
  9. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/keyChangeApproval.test.d.ts +2 -0
  10. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/keyChangeApproval.test.d.ts.map +1 -0
  11. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/inUseUsageTables.test.d.ts +2 -0
  12. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/inUseUsageTables.test.d.ts.map +1 -0
  13. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/publishedKeyChangeReview.test.d.ts +2 -0
  14. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/publishedKeyChangeReview.test.d.ts.map +1 -0
  15. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureMeanings.test.d.ts +2 -0
  16. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featureMeanings.test.d.ts.map +1 -0
  17. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featuresMeaningHint.test.d.ts +2 -0
  18. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/featuresMeaningHint.test.d.ts.map +1 -0
  19. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/parseSlotConflict.test.d.ts +2 -0
  20. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/parseSlotConflict.test.d.ts.map +1 -0
  21. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/runPerProduct.test.d.ts +2 -0
  22. package/build/types/backoffice/src/tests/unit/ui/TableRenderJobs/runPerProduct.test.d.ts.map +1 -0
  23. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleStatusCell/index.d.ts.map +1 -1
  24. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts +3 -1
  25. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/ArticleTable/index.d.ts.map +1 -1
  26. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/BulkActions/index.d.ts +0 -9
  27. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/components/BulkActions/index.d.ts.map +1 -1
  28. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useEanOwners.d.ts +19 -0
  29. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/hooks/useEanOwners.d.ts.map +1 -0
  30. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/index.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/eanOwners.d.ts +39 -0
  33. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/eanOwners.d.ts.map +1 -0
  34. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/readiness.d.ts +6 -2
  35. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/readiness.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/requiredFieldJump.d.ts +4 -1
  37. package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/requiredFieldJump.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/SapDateCellEditor/index.d.ts +13 -0
  39. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/SapDateCellEditor/index.d.ts.map +1 -0
  40. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts +6 -0
  41. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -1
  42. package/build/types/backoffice/src/ui/AssortmentManager/config/readiness.d.ts.map +1 -1
  43. package/build/types/backoffice/src/ui/AssortmentManager/tests/eanOwners.test.d.ts +2 -0
  44. package/build/types/backoffice/src/ui/AssortmentManager/tests/eanOwners.test.d.ts.map +1 -0
  45. package/build/types/backoffice/src/ui/AssortmentManager/tests/sapDateCellEditor.test.d.ts +2 -0
  46. package/build/types/backoffice/src/ui/AssortmentManager/tests/sapDateCellEditor.test.d.ts.map +1 -0
  47. package/build/types/backoffice/src/ui/AssortmentManager/tests/useEanOwners.test.d.ts +2 -0
  48. package/build/types/backoffice/src/ui/AssortmentManager/tests/useEanOwners.test.d.ts.map +1 -0
  49. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +12 -0
  50. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -1
  51. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/catalogPublished.d.ts +15 -0
  52. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/catalogPublished.d.ts.map +1 -0
  53. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts +22 -0
  54. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts.map +1 -1
  55. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +9 -1
  56. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  57. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/publishedKeyChangeReview.d.ts +41 -0
  58. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/publishedKeyChangeReview.d.ts.map +1 -0
  59. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts +22 -2
  60. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts.map +1 -1
  61. package/build/types/backoffice/src/ui/CommonComponents/notificationConfig.d.ts +10 -0
  62. package/build/types/backoffice/src/ui/CommonComponents/notificationConfig.d.ts.map +1 -0
  63. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
  64. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
  65. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  66. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  67. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  68. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureMeanings.d.ts +41 -0
  69. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/featureMeanings.d.ts.map +1 -0
  70. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/measureUnitValidator.d.ts +9 -0
  71. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/measureUnitValidator.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/measureUnits.d.ts +3 -0
  73. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/measureUnits.d.ts.map +1 -0
  74. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  75. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
  76. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  77. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFormulas/index.d.ts.map +1 -1
  78. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
  79. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  80. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  81. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  82. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts +4 -1
  83. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts.map +1 -1
  84. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  85. package/build/types/backoffice/src/ui/IDMFeaturesEditor/Tables/Features.d.ts.map +1 -1
  86. package/build/types/backoffice/src/ui/IDMOrganizationFeaturesEditor/Tables/Features.d.ts.map +1 -1
  87. package/build/types/backoffice/src/ui/IDMOrganizationOptionsEditor/Tables/Options.d.ts.map +1 -1
  88. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/SlotConflictModal.d.ts +18 -0
  89. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/SlotConflictModal.d.ts.map +1 -0
  90. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/index.d.ts +5 -2
  91. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/index.d.ts.map +1 -1
  92. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/runPerProduct.d.ts +30 -0
  93. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/runPerProduct.d.ts.map +1 -0
  94. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.d.ts +7 -2
  95. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.d.ts.map +1 -1
  96. package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
  97. package/build/types/backoffice/src/ui/TableRenderJobs/config.d.ts.map +1 -1
  98. package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUpdateRenderJobState.d.ts +15 -1
  99. package/build/types/backoffice/src/ui/TableRenderJobs/hooks/useUpdateRenderJobState.d.ts.map +1 -1
  100. package/package.json +13 -13
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { TFunction } from 'i18next';
2
3
  import type { HookAPI } from 'antd/es/modal/useModal';
3
4
  import type { AgentWriteScope } from '../../../store/GridRegistry';
@@ -37,6 +38,27 @@ export interface InUseReviewDeps {
37
38
  }
38
39
  /** The heading of a kind of place in the in-use dialog, for tables without their own. */
39
40
  export declare const defaultUsageTypeLabel: (type: string, t: TFunction) => string;
41
+ /** The places of a refusal grouped by their kind, as the in-use dialogs list them. */
42
+ export declare function usageGroups(usages: InUseUsage[], options: InUseReviewOptions): {
43
+ type: string;
44
+ heading: string;
45
+ labels: string[];
46
+ }[];
47
+ /**
48
+ * The places of a refusal per table, each record once, as the in-use dialogs show them: by its number and id together
49
+ * (the labels of one record's places differ, e.g. a decision's column and row; an article number repeats across series),
50
+ * shown by its number - an article's with its serie - else its first label.
51
+ */
52
+ export declare function usageTables(usages: InUseUsage[], options: InUseReviewOptions): {
53
+ type: string;
54
+ heading: string;
55
+ keys: string[];
56
+ }[];
57
+ /** One line per table that still references a record: how many of its records do, and their numbers. */
58
+ export declare function UsageTables({ usages, options }: {
59
+ usages: InUseUsage[];
60
+ options: InUseReviewOptions;
61
+ }): React.JSX.Element;
40
62
  /** Fills `${path}` placeholders from the first source that holds a value. */
41
63
  export declare function resolveTemplate(template: string, ...sources: unknown[]): string;
42
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"inUseDeleteReview.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,iGAAiG;AACjG,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gGAAgG;AAChG,MAAM,WAAW,kBAAkB;IACjC,oFAAoF;IACpF,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,GAAG,SAAS,CAAC;IAC5C,+CAA+C;IAC/C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IAC3C,6EAA6E;IAC7E,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,OAAO,CAAC,CAAC;CAC3D;AA6BD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,CAAC,EAAE,SAAS,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,UAAU,EAAE,MAAM,eAAe,GAAG,SAAS,CAAC;IAC9C,yDAAyD;IACzD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK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AAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,CAOpI;AAQD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,kBAAkB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,CAalI;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;IAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAA;CAAE,qBAarG;AAoBD,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAQ/E;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IAC/B,GAAG,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC/B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAsClC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CA0I5G"}
@@ -11,13 +11,21 @@ export type AgentGridConfiguration<TData = any> = Configuration<TData> & {
11
11
  agentGridId?: string;
12
12
  /** Operations this table offers beyond cell edits, carried to the agent as-is (see AgentGridAction). */
13
13
  agentActions?: AgentGridAction[];
14
- /** Deleting a still referenced record (`<ENTITY>_IN_USE`) shows its places and can remove them (`?cleanReferences=true`). */
14
+ /**
15
+ * Deleting a still referenced record (`<ENTITY>_IN_USE`) shows its places and can remove them (`?cleanReferences=true`);
16
+ * changing the key they address it by shows them too and can change them along (`?updateReferences=true`, bulk only).
17
+ */
15
18
  inUseReview?: boolean | InUseReviewOptions;
16
19
  /**
17
20
  * An update the server refuses until it is confirmed shows its places and can be sent again confirmed (bulk only) -
18
21
  * one entry per errorCode the server refuses with.
19
22
  */
20
23
  updateConfirmation?: UpdateConfirmationOptions | UpdateConfirmationOptions[];
24
+ /**
25
+ * The record's own keys other records, baskets and products address it by (a feature number, an option key - not a
26
+ * reference to another record). In a published IDM catalog a change of one is asked before it is sent (bulk only).
27
+ */
28
+ keyFields?: string[];
21
29
  };
22
30
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<SpreadsheetProps<any>, "jwt" | "configuration"> & {
23
31
  configuration: AgentGridConfiguration;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAe,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE/G,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAA2D,MAAM,OAAO,CAAC;AAKhF,OAAO,EAAkD,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAA0D,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAG/H,gHAAgH;AAEhH,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,GAAG;IACvE,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iGAAiG;IACjG,WAAW,CAAC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;oBAC1E,MAAM;IACtB,kGAAkG;uBAC/E,gBAAgB;;AAySrC,wBAA4C"}
@@ -0,0 +1,41 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { HookAPI } from 'antd/es/modal/useModal';
3
+ /** One update of a bulk request: the record id and the JSON patch the grid sends for it. */
4
+ interface UpdateRow {
5
+ _id?: string;
6
+ patch?: {
7
+ op: string;
8
+ path: string;
9
+ value?: unknown;
10
+ }[];
11
+ }
12
+ /** A changed key of one update row: the column and its new value. */
13
+ interface KeyChange {
14
+ field: string;
15
+ value: unknown;
16
+ }
17
+ interface PublishedKeyChangeDeps {
18
+ /** The record's own keys other records, baskets and products address it by (a feature number, an option key). */
19
+ keyFields: string[];
20
+ catalogPublished: () => Promise<boolean>;
21
+ /** Set while the agent writes: its approval bar (or the auto-approve hold) has warned already. */
22
+ isAgentWrite: () => boolean;
23
+ t: TFunction;
24
+ modal: HookAPI;
25
+ }
26
+ /** The keys an update row changes: a patch operation on a key column or below it. */
27
+ export declare const changedKeys: (row: UpdateRow, keyFields: string[]) => KeyChange[];
28
+ /**
29
+ * A key change in a published IDM catalog is asked before it is sent: baskets and products saved with the old key cannot
30
+ * find it any more, whether or not anything in the catalog still references it. Returns the bulk request review (the
31
+ * positions the user did not confirm, held back) and whether an update row was confirmed with that warning already, so
32
+ * the in-use dialog that may follow does not ask about it twice.
33
+ */
34
+ export declare function createPublishedKeyChangeReview(deps: PublishedKeyChangeDeps): {
35
+ review: (request: {
36
+ update?: UpdateRow[];
37
+ }, originals?: unknown[]) => Promise<number[]>;
38
+ wasConfirmed: (row: UpdateRow) => boolean;
39
+ };
40
+ export {};
41
+ //# sourceMappingURL=publishedKeyChangeReview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishedKeyChangeReview.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/publishedKeyChangeReview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGtD,4FAA4F;AAC5F,UAAU,SAAS;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;CACzD;AAED,qEAAqE;AACrE,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB;AAKD,UAAU,sBAAsB;IAC9B,iHAAiH;IACjH,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,gBAAgB,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,kGAAkG;IAClG,YAAY,EAAE,MAAM,OAAO,CAAC;IAC5B,CAAC,EAAE,SAAS,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAKD,qFAAqF;AACrF,eAAO,MAAM,WAAW,QAAS,SAAS,aAAa,MAAM,EAAE,KAAG,SAAS,EAKvE,CAAC;AAKL;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,sBAAsB;sBAI1C;QAAE,MAAM,CAAC,EAAE,SAAS,EAAE,CAAA;KAAE,cAAa,OAAO,EAAE,KAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;wBA6BjE,SAAS;EAC/C"}
@@ -1,14 +1,15 @@
1
1
  import type { TFunction } from 'i18next';
2
2
  import type { HookAPI } from 'antd/es/modal/useModal';
3
3
  import type { AgentWriteScope } from '../../../store/GridRegistry';
4
+ import { InUseReviewOptions, InUseUsage } from './inUseDeleteReview';
4
5
  /**
5
6
  * An update the server refuses until it is confirmed, listing the places it affects - e.g. changing the type of a
6
7
  * property definition whose key has values. The user sees the places and may confirm, which sends the update again
7
8
  * with `?<confirmParam>=true`; the agent gets the places in its answer, and the user confirms in the table.
8
9
  */
9
10
  export interface UpdateConfirmationOptions {
10
- /** The errorCode of the refused update. */
11
- errorCode: string;
11
+ /** The errorCode of the refused update, or a pattern for a family of them. */
12
+ errorCode: string | RegExp;
12
13
  /** The query parameter that confirms it. */
13
14
  confirmParam: string;
14
15
  title: string;
@@ -16,8 +17,27 @@ export interface UpdateConfirmationOptions {
16
17
  entry: (name: string, count: number) => string;
17
18
  /** What confirming does, under the places. */
18
19
  question: string;
20
+ /** A warning under the question for the refused update rows, looked up when the dialog opens; none when it resolves to nothing. */
21
+ warning?: (rows: unknown[]) => Promise<string | undefined>;
19
22
  okText: string;
23
+ /** Groups the places under a heading per kind; without it they are one list. */
24
+ usageTypeLabel?: (type: string) => string;
25
+ /** How one place reads; default: its label. */
26
+ usageLabel?: (usage: InUseUsage) => string;
27
+ /** Lets the agent confirm through a flag of its write; without it only the user confirms, in the table. */
28
+ agentConfirms?: (agentWrite: AgentWriteScope) => boolean;
29
+ /** How the agent confirms, for its answer when it did not. */
30
+ agentHint?: string;
20
31
  }
32
+ /** The warning for a key change in a published catalog: baskets and products saved with the old key cannot find it any more. */
33
+ export declare const publishedCatalogKeyChangeWarning: (t: TFunction) => string;
34
+ /**
35
+ * The change of a key other records address a record by (a feature number, an option key) while it is still used: the
36
+ * server refuses it with `<ENTITY>_IN_USE` and the places, confirmed with `?updateReferences=true` it changes them too.
37
+ * Every table with the in-use review gets it; `catalogPublished` adds the warning for a published catalog, unless every
38
+ * refused row was confirmed with it before it was sent (`warnedBefore`).
39
+ */
40
+ export declare const referencedKeyChangeConfirmation: (t: TFunction, inUse?: InUseReviewOptions, catalogPublished?: () => Promise<boolean>, warnedBefore?: (row: any) => boolean) => UpdateConfirmationOptions;
21
41
  export interface UpdateConfirmationDeps {
22
42
  options: UpdateConfirmationOptions;
23
43
  t: TFunction;
@@ -1 +1 @@
1
- {"version":3,"file":"updateConfirmationReview.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/update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;IACzB,GAAG,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC/B,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAmBvC"}
1
+ {"version":3,"file":"updateConfirmationReview.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAyB,kBAAkB,EAAE,UAAU,EAAgC,MAAM,qBAAqB,CAAC;AAG1H;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,mIAAmI;IACnI,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3D,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,+CAA+C;IAC/C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC;IAC3C,2GAA2G;IAC3G,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,eAAe,KAAK,OAAO,CAAC;IACzD,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gIAAgI;AAChI,eAAO,MAAM,gCAAgC,MAAO,SAAS,WAIzD,CAAC;AAEL;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B,MACvC,SAAS,UACJ,kBAAkB,qBACP,MAAM,OAAO,CAAC,OAAO,CAAC,iBAC1B,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,KACnC,yBAeD,CAAC;AAoBH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,yBAAyB,CAAC;IACnC,CAAC,EAAE,SAAS,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,UAAU,EAAE,MAAM,eAAe,GAAG,SAAS,CAAC;IAC9C,yEAAyE;IACzE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C,oFAAoF;IACpF,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACrD;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,sBAAsB,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,CAoH1H;AAED,uFAAuF;AACvF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC/B,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAmBvC"}
@@ -0,0 +1,10 @@
1
+ /** The grid's notification setup (`SpreadsheetComponent`), so a page's own toasts look like the grid's. */
2
+ export declare const NOTIFICATION_CONFIG: {
3
+ stack: {
4
+ threshold: number;
5
+ };
6
+ showProgress: boolean;
7
+ pauseOnHover: boolean;
8
+ placement: "bottomRight";
9
+ };
10
+ //# sourceMappingURL=notificationConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/notificationConfig.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,eAAO,MAAM,mBAAmB;;;;;;;CAAyG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAiLnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,SAAS,EAA+B,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkBvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAkUnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;IACjC,iFAAiF;uBAC9D,gBAAgB;6CAmKrC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;IACjC,iFAAiF;uBAC9D,gBAAgB;6CAoKrC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,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AG,CAAC,CAAC;IAClC,sLAAsL;IACtL,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+NAA+N;IAC/N,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAmpBD,QAAA,MAAM,KAAK,2KAAuB,CAAC;AAEnC,eAAe,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA4VnC,CAAC;AAEH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAKvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA8TnC,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAkPA"}
1
+ {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAmPA"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A common feature, as the idm-service returns it: of the global list "IDM Variantenarten" (`GET /features`) or of an
3
+ * organization's own list (`GET /{organizationId}/features`).
4
+ */
5
+ export interface CommonFeature {
6
+ featureNo?: string;
7
+ featureText?: Record<string, string | undefined>;
8
+ }
9
+ /** Which list a meaning comes from: the global list "IDM Variantenarten", or the organization's own list. */
10
+ export type FeatureMeaningSource = 'global' | 'organization';
11
+ /** The meaning of each feature number with a fixed meaning: its feature text per language (DE, EN, IT, FR) and its list. */
12
+ export type FeatureMeanings = Map<number, {
13
+ texts: Record<string, string | undefined>;
14
+ source: FeatureMeaningSource;
15
+ }>;
16
+ /** The meaning of one feature number in the UI language. */
17
+ export interface FeatureMeaning {
18
+ featureNo: number;
19
+ meaning: string;
20
+ source: FeatureMeaningSource;
21
+ }
22
+ /** The numbers IDM Living 4.x keeps free for a manufacturer's own features (DCC documentation, "Variantenarten"). */
23
+ export declare const IDM_LIVING_FREE_RANGE = "2300\u20132999";
24
+ /**
25
+ * The feature numbers with a fixed meaning from a list of common features; the global list "IDM Variantenarten" numbers
26
+ * its features like IDM Living 4.x. Free numbers ("Freies FEATURE") and entries without a number are left out.
27
+ */
28
+ export declare function buildFeatureMeanings(features: CommonFeature[], source: FeatureMeaningSource): FeatureMeanings;
29
+ /**
30
+ * The fixed meaning of a feature number in the given UI language (`de`, also as `de-CH` and the like), falling back to
31
+ * German, with the list it comes from; undefined for a free or unknown number and a value that is no number.
32
+ */
33
+ export declare function featureMeaning(meanings: FeatureMeanings | undefined, featureNo: unknown, language: string): FeatureMeaning | undefined;
34
+ /**
35
+ * The feature number meanings for a catalog of the organization: those of the global list "IDM Variantenarten", and for
36
+ * the numbers it leaves free the organization's own list. Each list loads once per session: the global one per idm-service,
37
+ * an organization's per idm-service and organization. A failed load gives no meanings from that list (the hint is only a
38
+ * help) and is retried on the next call.
39
+ */
40
+ export declare function loadFeatureMeanings(idmService: string, organizationId: string, jwt: string | undefined): Promise<FeatureMeanings>;
41
+ //# sourceMappingURL=featureMeanings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureMeanings.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/featureMeanings.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED,6GAA6G;AAC7G,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,cAAc,CAAC;AAE7D,4HAA4H;AAC5H,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,CAAC,CAAC;AAEvH,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,qHAAqH;AACrH,eAAO,MAAM,qBAAqB,mBAAc,CAAC;AAKjD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,eAAe,CAS7G;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAOtI;AAWD;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CAOvI"}
@@ -7,4 +7,13 @@ export declare function measureUnitValidator(t: (key: string, options: {
7
7
  measureParameter?: string | null;
8
8
  } | undefined;
9
9
  }) => string | undefined;
10
+ /** IDM requires OPTION_MEASURE/MEASURE_UNIT: a measure value means nothing without its unit, and the service refuses it. */
11
+ export declare function optionMeasureUnitValidator(t: (key: string, options: {
12
+ defaultValue: string;
13
+ }) => string): ({ value, data }: {
14
+ value: unknown;
15
+ data: {
16
+ measureValue?: number | null;
17
+ } | undefined;
18
+ }) => string | undefined;
10
19
  //# sourceMappingURL=measureUnitValidator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"measureUnitValidator.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/measureUnitValidator.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,qBAGvE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAA;CAAE,wBAMpG"}
1
+ {"version":3,"file":"measureUnitValidator.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/measureUnitValidator.ts"],"names":[],"mappings":"AAGA,8GAA8G;AAC9G,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,qBACvE;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAA;CAAE,wBAMpG;AAED,4HAA4H;AAC5H,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,qBAC7E;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAA;CAAE,wBAMhG"}
@@ -0,0 +1,3 @@
1
+ /** The UN/ECE codes of the IDM 4.1 code list measure_unit, which option and feature units must use; the service refuses others. */
2
+ export declare const IDM_MEASURE_UNITS: string[];
3
+ //# sourceMappingURL=measureUnits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measureUnits.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/measureUnits.ts"],"names":[],"mappings":"AAAA,mIAAmI;AACnI,eAAO,MAAM,iBAAiB,UAgC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA8CvE,eAAO,MAAM,cAAc;;CAkdzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AA8CvE,eAAO,MAAM,cAAc;;CAmdzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAgBlD,eAAO,MAAM,gBAAgB;;CAyN3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAgBlD,eAAO,MAAM,gBAAgB;;CA0N3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAc/C,eAAO,MAAM,mBAAmB;;CA+K9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAc/C,eAAO,MAAM,mBAAmB;;CAgL9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFormulas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,aAAa;;CAiHxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableFormulas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,aAAa;;CAkHxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAclD,eAAO,MAAM,iBAAiB;;CAiI5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAclD,eAAO,MAAM,iBAAiB;;CAkI5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,eAAO,MAAM,cAAc;;CAiPzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAc5D,eAAO,MAAM,cAAc;;CAkPzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA4QlC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA6QlC,CAAC"}
@@ -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;AAmCtE;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAkkBtB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableSeries/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAmCtE;;;GAGG;AACH,eAAO,MAAM,WAAW;;CAmkBtB,CAAC"}
@@ -15,7 +15,10 @@ export interface PropertyListPanelProps {
15
15
  /** The keys that are a column of the table, in the table's order. */
16
16
  shownKeys: string[];
17
17
  selectedKey?: string;
18
+ /** Opens or closes the property's content item. */
18
19
  onSelect: (key: string) => void;
20
+ /** Scrolls the table to the property's column. */
21
+ onReveal: (key: string) => void;
19
22
  /** Adds the property as a column; missing in a view-only table. */
20
23
  onAdd?: (property: PropertyListEntry) => void;
21
24
  /** Removes the property's column and its values in every row; missing in a view-only table. */
@@ -25,5 +28,5 @@ export interface PropertyListPanelProps {
25
28
  * The Properties tab of an enrichment table: the properties that are a column of the table, and the ones it can add -
26
29
  * with what each is for, searchable by key and description.
27
30
  */
28
- export default function PropertyListPanel({ properties, shownKeys, selectedKey, onSelect, onAdd, onRemove }: PropertyListPanelProps): React.JSX.Element;
31
+ export default function PropertyListPanel({ properties, shownKeys, selectedKey, onSelect, onReveal, onAdd, onRemove }: PropertyListPanelProps): React.JSX.Element;
29
32
  //# sourceMappingURL=PropertyListPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyListPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBA2DlI"}
1
+ {"version":3,"file":"PropertyListPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,kDAAkD;IAClD,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBA8D5I"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAykBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA4CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAokBxB,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,qBA2FpE"}
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMFeaturesEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA+FpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMOrganizationFeaturesEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAMvC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA8HpE"}
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMOrganizationFeaturesEditor/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,qBAkIpE"}
@@ -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;AAMvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA2PnE"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMOrganizationOptionsEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAQvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBA4NnE"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { RenderJobSlotConflictError } from '../../../../hooks/useUpdateRenderJobState';
3
+ import { OverviewItem } from '../../hooks/useSessionOverviewData';
4
+ interface Props {
5
+ conflicts: RenderJobSlotConflictError[];
6
+ items: OverviewItem[];
7
+ busy: boolean;
8
+ /** The image each job may replace (its ref id), for the jobs an image was chosen for. */
9
+ onConfirm: (choices: Record<string, string>) => void;
10
+ onCancel: () => void;
11
+ }
12
+ /**
13
+ * Asks which image a job may replace when its slot on the product is taken. Not replacing is preselected:
14
+ * an image is never replaced without being chosen, and a job left without a choice stays approved.
15
+ */
16
+ export default function SlotConflictModal({ conflicts, items, busy, onConfirm, onCancel }: Props): React.JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=SlotConflictModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlotConflictModal.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/SlotConflictModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAMlE,UAAU,KAAK;IACb,SAAS,EAAE,0BAA0B,EAAE,CAAC;IACxC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,yFAAyF;IACzF,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,qBA6D/F"}
@@ -5,8 +5,11 @@ interface Props {
5
5
  items: OverviewItem[];
6
6
  loading: boolean;
7
7
  error?: string;
8
- /** PATCH one job to a new state. Rejects on failure so callers can surface it. */
9
- onApplyState: (id: string, targetState: number, message?: string) => Promise<void>;
8
+ /**
9
+ * PATCH one job to a new state. Rejects on failure so callers can surface it - a finish whose slot is
10
+ * taken with a `RenderJobSlotConflictError`; `replaceRef` is the decision for it.
11
+ */
12
+ onApplyState: (id: string, targetState: number, message?: string, replaceRef?: string) => Promise<void>;
10
13
  /** Ask the host to open the reject-reason modal for this job. */
11
14
  onRequestReject: (id: string) => void;
12
15
  /** Open a medium in the fullscreen viewer. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AA+DlE,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,iEAAiE;IACjE,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,8CAA8C;IAC9C,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,qDAAqD;IACrD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC7D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;CACrB;AAwFD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,OAAO,EACP,KAAK,EACL,YAAY,EACZ,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,UAAU,GACX,EAAE,KAAK,qBA2eP"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAoElE,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxG,iEAAiE;IACjE,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,8CAA8C;IAC9C,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,qDAAqD;IACrD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAC7D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;CACrB;AAwFD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,OAAO,EACP,KAAK,EACL,YAAY,EACZ,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,UAAU,GACX,EAAE,KAAK,qBAyhBP"}
@@ -0,0 +1,30 @@
1
+ /** Outcome of one job: done, or the error it failed with. */
2
+ export interface JobOutcome {
3
+ id: string;
4
+ error?: unknown;
5
+ }
6
+ /** Outcomes of a finish run, split by what the user is told: slot conflicts are asked about, failures reported. */
7
+ export interface SplitOutcomes<C> {
8
+ conflicts: C[];
9
+ failed: number;
10
+ done: number;
11
+ }
12
+ /**
13
+ * Splits finish outcomes into the slot conflicts to ask about, the failures and the jobs done.
14
+ *
15
+ * @param outcomes - The outcomes of runPerProduct
16
+ * @param isConflict - Whether an error is a slot conflict
17
+ */
18
+ export declare function splitOutcomes<C>(outcomes: JobOutcome[], isConflict: (error: unknown) => error is C): SplitOutcomes<C>;
19
+ /**
20
+ * Runs an action for several render jobs: the jobs of one product one after the other, different products
21
+ * in parallel. Finishing a job reads the images of its product to give it a slot and removes images by
22
+ * their position in the product's list - two finishes of one product at once would get in each other's way.
23
+ *
24
+ * @param ids - The jobs to run the action for
25
+ * @param productOf - The product of a job; a job without one runs on its own
26
+ * @param run - The action
27
+ * @returns The outcome of every job, in the order of `ids`
28
+ */
29
+ export declare function runPerProduct(ids: string[], productOf: (id: string) => string | undefined, run: (id: string) => Promise<void>): Promise<JobOutcome[]>;
30
+ //# sourceMappingURL=runPerProduct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runPerProduct.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/components/SessionOverview/runPerProduct.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,mHAAmH;AACnH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,EAAE,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAIrH;AAED;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EAAE,EACb,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EAC7C,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GACjC,OAAO,CAAC,UAAU,EAAE,CAAC,CAoBvB"}
@@ -2,6 +2,8 @@ import { RenderApproveMedia, RenderJob } from '../../../types';
2
2
  export interface OverviewItem {
3
3
  id: string;
4
4
  state: number;
5
+ /** The product the job's image is attached to; finishes of one product run one after the other. */
6
+ product?: string;
5
7
  productName?: string;
6
8
  divaNr?: string;
7
9
  divaNrVariantId?: number;
@@ -31,8 +33,11 @@ export interface SessionOverviewData {
31
33
  items: OverviewItem[];
32
34
  loading: boolean;
33
35
  error?: string;
34
- /** Persists a new state for one job (PATCH) with optimistic local update + rollback on failure. */
35
- applyState: (id: string, targetState: number, message?: string) => Promise<void>;
36
+ /**
37
+ * Persists a new state for one job (PATCH) with optimistic local update + rollback on failure. A finish
38
+ * whose slot is taken rejects with a `RenderJobSlotConflictError`; `replaceRef` is the decision for it.
39
+ */
40
+ applyState: (id: string, targetState: number, message?: string, replaceRef?: string) => Promise<void>;
36
41
  /** Loads the full render job for the details view (on demand). */
37
42
  fetchJobDetails: (id: string) => Promise<RenderJob | null>;
38
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useSessionOverviewData.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM/D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,OAAO,EAAE,kBAAkB,CAAC;IAC5B,wFAAwF;IACxF,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,8EAA8E;IAC9E,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mGAAmG;IACnG,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjF,kEAAkE;IAClE,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CAC5D;AA6ED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAwInG"}
1
+ {"version":3,"file":"useSessionOverviewData.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/hooks/useSessionOverviewData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM/D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uFAAuF;IACvF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,OAAO,EAAE,kBAAkB,CAAC;IAC5B,wFAAwF;IACxF,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,8EAA8E;IAC9E,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtG,kEAAkE;IAClE,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;CAC5D;AA6ED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,mBAAmB,CA4InG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAyDpE,MAAM,CAAC,OAAO,UAAU,aAAa,sBAuxBpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/TableRenderJobs/components/RenderApprove/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAyDpE,MAAM,CAAC,OAAO,UAAU,aAAa,sBA0xBpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/TableRenderJobs/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA+Q1E,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;uCA0BH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAqFjB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B3B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/TableRenderJobs/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA+Q1E,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;uCA4BH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAuFjB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B3B"}
@@ -1,7 +1,21 @@
1
+ import { ProductSlotImage } from '@crystaldesign/diva-core';
2
+ /**
3
+ * A finish needs a decision: the job's slot on the product is held by other images. Nothing changed, the job
4
+ * keeps its state; finishing it again with `replaceRef` naming one of `occupiedBy` replaces that image.
5
+ */
6
+ export declare class RenderJobSlotConflictError extends Error {
7
+ readonly renderJob: string;
8
+ readonly slot: string;
9
+ readonly occupiedBy: ProductSlotImage[];
10
+ constructor(renderJob: string, slot: string, occupiedBy: ProductSlotImage[]);
11
+ }
12
+ /** Reads diva-media's answer to a finish whose slot is taken; anything else is no slot conflict. */
13
+ export declare function parseSlotConflict(body: string): RenderJobSlotConflictError | undefined;
1
14
  /**
2
15
  * Thin wrapper around `PATCH ${mediaService}/renderjobs/:id/state`.
3
16
  * Lives in its own hook so the session orchestrator can stay independent of
4
17
  * `useRenderJobData` (which is bound to a single currently-loaded job).
18
+ * A finish whose slot is taken rejects with a {@link RenderJobSlotConflictError}.
5
19
  */
6
- export default function useUpdateRenderJobState(): (id: string, state: number, message?: string, keepalive?: boolean) => Promise<any>;
20
+ export default function useUpdateRenderJobState(): (id: string, state: number, message?: string, keepalive?: boolean, replaceRef?: string) => Promise<any>;
7
21
  //# sourceMappingURL=useUpdateRenderJobState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUpdateRenderJobState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useUpdateRenderJobState.ts"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,SAMhC,MAAM,SAAS,MAAM,YAAY,MAAM,cAAc,OAAO,kBAgC1E"}
1
+ {"version":3,"file":"useUpdateRenderJobState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/TableRenderJobs/hooks/useUpdateRenderJobState.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQlF;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IAEjD,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,UAAU,EAAE,gBAAgB,EAAE;gBAF9B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,gBAAgB,EAAE;CAI1C;AAED,oGAAoG;AACpG,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,0BAA0B,GAAG,SAAS,CAQtF;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,SAMhC,MAAM,SAAS,MAAM,YAAY,MAAM,cAAc,OAAO,eAAe,MAAM,kBAkC/F"}