@crystaldesign/diva-backoffice 26.10.0-beta.33 → 26.10.0-beta.34

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 (65) hide show
  1. package/build/esm/index.js +4794 -911
  2. package/build/types/backoffice/src/Configuration.d.ts +3 -2
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/hooks/useUnsavedChanges.d.ts +35 -0
  5. package/build/types/backoffice/src/hooks/useUnsavedChanges.d.ts.map +1 -0
  6. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  7. package/build/types/backoffice/src/store/ContentStore.d.ts +4 -0
  8. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts +17 -0
  10. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts.map +1 -0
  11. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts +38 -0
  12. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts.map +1 -0
  13. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/GroupCard/index.d.ts +13 -0
  14. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/GroupCard/index.d.ts.map +1 -0
  15. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/HeaderField/index.d.ts +21 -0
  16. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/HeaderField/index.d.ts.map +1 -0
  17. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts +24 -0
  18. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts.map +1 -0
  19. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/PagedDropdownSelect/index.d.ts +16 -0
  20. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/PagedDropdownSelect/index.d.ts.map +1 -0
  21. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.d.ts +20 -0
  22. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.d.ts.map +1 -0
  23. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useCreateHeaderData.d.ts +18 -0
  24. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useCreateHeaderData.d.ts.map +1 -0
  25. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts +44 -0
  26. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts +26 -0
  28. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts.map +1 -0
  29. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.d.ts +14 -0
  30. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.d.ts.map +1 -0
  31. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts +25 -0
  32. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts.map +1 -0
  33. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/index.d.ts +7 -0
  34. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/index.d.ts.map +1 -0
  35. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.d.ts +9 -0
  36. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.d.ts.map +1 -0
  37. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts +18 -0
  38. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts.map +1 -0
  39. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.d.ts +18 -0
  40. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.d.ts.map +1 -0
  41. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts +22 -0
  42. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -0
  43. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.d.ts +7 -0
  44. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.d.ts.map +1 -0
  45. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.d.ts +12 -0
  46. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.d.ts.map +1 -0
  47. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts +32 -0
  48. package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts.map +1 -0
  49. package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts +3 -0
  50. package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -0
  51. package/build/types/backoffice/src/ui/AssortmentManager/config/headerTemplate.d.ts +15 -0
  52. package/build/types/backoffice/src/ui/AssortmentManager/config/headerTemplate.d.ts.map +1 -0
  53. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +4 -0
  54. package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -0
  55. package/build/types/backoffice/src/ui/AssortmentManager/tests/dropEmptyRows.test.d.ts +2 -0
  56. package/build/types/backoffice/src/ui/AssortmentManager/tests/dropEmptyRows.test.d.ts.map +1 -0
  57. package/build/types/backoffice/src/ui/AssortmentManager/tests/enabledWhenRules.test.d.ts +2 -0
  58. package/build/types/backoffice/src/ui/AssortmentManager/tests/enabledWhenRules.test.d.ts.map +1 -0
  59. package/build/types/backoffice/src/ui/AssortmentManager/tests/fixedValueRules.test.d.ts +2 -0
  60. package/build/types/backoffice/src/ui/AssortmentManager/tests/fixedValueRules.test.d.ts.map +1 -0
  61. package/build/types/backoffice/src/ui/AssortmentManager/tests/itemGroupColumns.test.d.ts +2 -0
  62. package/build/types/backoffice/src/ui/AssortmentManager/tests/itemGroupColumns.test.d.ts.map +1 -0
  63. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +139 -0
  64. package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -0
  65. package/package.json +9 -9
@@ -35,6 +35,7 @@ import { MaintenanceConfiguration } from './ui/Maintenance/types';
35
35
  import { MetaCampaignJotformSyncConfiguration } from './ui/MetaCampaignJotformSync/types';
36
36
  import { NotificationDetailsConfiguration } from './ui/NotificationDetails/types';
37
37
  import { TableRenderJobsConfiguration, RenderApproveConfiguration } from './ui/TableRenderJobs/types';
38
+ import { AssortmentManagerHeaderDataConfiguration } from './ui/AssortmentManager';
38
39
  export interface Configuration {
39
40
  configuration?: {
40
41
  [id: string]: ModulConfiguration;
@@ -86,7 +87,7 @@ export interface UIBuilder {
86
87
  export type ModulConfiguration = TableConfiguration | GridConfiguration | FormConfiguration | FormListConfiguration | SelectOrCreateConfiguration | GroupConfiguration | DescriptionConfiguration | RoleSelectorConfiguration | MediaUploadConfiguration | FileUploadBetaConfiguration | FileUploadOrdersConfiguration | SendToPIMConfiguration | RelationSelectorConfiguration | JsonEditorConfiguration | ListConfiguration | FilterBoxConfiguration | ImageCropperConfiguration | UIBuilderConfiguration | CustomButtonConfiguration | CustomTextConfiguration | AGGridConfiguration | OrgTreeConfiguration | CustomInputConfiguration | IFrameConfiguration | CatalogEditorConfiguration | IDMEnricherEditorConfiguration | IDMCatalogEditorConfiguration | IDMCollectionEditorConfiguration | IDMPropertyDefinitionsEditorConfiguration | IDMFeaturesEditorConfiguration | IDMOrganizationFeaturesEditorConfiguration | IDMOrganizationOptionsEditorConfiguration | {
87
88
  type: 'CatalogEditorIDM';
88
89
  apiInterface: undefined;
89
- } | MediaTableConfiguration | MaintenanceConfiguration | MetaCampaignJotformSyncConfiguration | RenderApproveConfiguration | NotificationDetailsConfiguration | TableRenderJobsConfiguration;
90
+ } | MediaTableConfiguration | MaintenanceConfiguration | MetaCampaignJotformSyncConfiguration | RenderApproveConfiguration | NotificationDetailsConfiguration | TableRenderJobsConfiguration | AssortmentManagerHeaderDataConfiguration;
90
91
  export interface BaseModulConfiguration {
91
92
  type: ComponentType;
92
93
  apiInterface?: ApiInterface;
@@ -96,7 +97,7 @@ export interface Description {
96
97
  text?: string;
97
98
  field?: string;
98
99
  }
99
- export type ComponentType = 'NotificationDetails' | 'IDMOrganizationOptionsEditor' | 'IDMOrganizationFeaturesEditor' | 'IDMFeaturesEditor' | 'IDMEnricherEditor' | 'IDMCatalogEditor' | 'IDMCollectionEditor' | 'IDMPropertyDefinitionsEditor' | 'MediaTable' | 'CatalogEditorIDM' | 'Form' | 'FormList' | 'Table' | 'SelectOrCreate' | 'RelationSelector' | 'RoleSelector' | 'Group' | 'Grid' | 'Description' | 'MediaUpload' | 'FileUploadBeta' | 'FileUploadOrders' | 'SendToPIM' | 'JsonEditor' | 'ImageCropper' | 'List' | 'Button' | 'UIBuilder' | 'CustomButton' | 'CustomText' | 'CustomInput' | 'FilterBox' | 'AGGrid' | 'OrgTree' | 'CatalogEditor' | 'Maintenance' | 'MetaCampaignJotformSync' | 'RenderApprove' | 'IFrame' | 'RoomSelector' | 'redirect' | 'download' | 'importexportfile' | 'SelectSimple' | 'Chart' | 'TableRenderJobs';
100
+ export type ComponentType = 'NotificationDetails' | 'IDMOrganizationOptionsEditor' | 'IDMOrganizationFeaturesEditor' | 'IDMFeaturesEditor' | 'IDMEnricherEditor' | 'IDMCatalogEditor' | 'IDMCollectionEditor' | 'IDMPropertyDefinitionsEditor' | 'MediaTable' | 'CatalogEditorIDM' | 'Form' | 'FormList' | 'Table' | 'SelectOrCreate' | 'RelationSelector' | 'RoleSelector' | 'Group' | 'Grid' | 'Description' | 'MediaUpload' | 'FileUploadBeta' | 'FileUploadOrders' | 'SendToPIM' | 'JsonEditor' | 'ImageCropper' | 'List' | 'Button' | 'UIBuilder' | 'CustomButton' | 'CustomText' | 'CustomInput' | 'FilterBox' | 'AGGrid' | 'OrgTree' | 'CatalogEditor' | 'Maintenance' | 'MetaCampaignJotformSync' | 'RenderApprove' | 'IFrame' | 'AssortmentManagerHeaderData' | 'RoomSelector' | 'redirect' | 'download' | 'importexportfile' | 'SelectSimple' | 'Chart' | 'TableRenderJobs';
100
101
  export interface Rules {
101
102
  min?: number;
102
103
  match?: {
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../src/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAA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AAG,gBAAgB,CAAC,EAAE,CAAC;CACjG;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,6BAA6B,CAAC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,35 @@
1
+ export interface UnsavedChangesTexts {
2
+ title: string;
3
+ content: string;
4
+ /** Label of the button that leaves and drops the changes. */
5
+ discardText: string;
6
+ cancelText: string;
7
+ }
8
+ export interface UnsavedChanges {
9
+ /**
10
+ * Asks whether the current changes may be dropped, resolving true if so. Exposed for exits the hook
11
+ * cannot know about — switching the record a page is editing, for example.
12
+ */
13
+ confirmDiscard: () => Promise<boolean>;
14
+ }
15
+ /**
16
+ * Protects unsaved changes on the three ways out of a backoffice page, so a page does not have to wire
17
+ * them itself:
18
+ *
19
+ * 1. Menu navigation, via the guard `ContentStore` asks before switching pages.
20
+ * 2. Closing the tab and reloading, via `beforeunload`. The browser shows its own dialog there, the texts
21
+ * below do not apply.
22
+ * 3. Browser back. That one cannot be cancelled — `popstate` arrives after the fact — so it gets absorbed:
23
+ * while the page is mounted an extra history entry with the *same* URL sits on the stack. Back pops that
24
+ * one, the URL is unchanged, react-router therefore keeps the page mounted with its state, and we can
25
+ * ask. Declining re-arms the trap, accepting steps back for real.
26
+ *
27
+ * Not covered: the forward button, `useNavigate()` called straight from a component, `<Link>`, and the
28
+ * organization switch, which remounts the whole tree instead of navigating. Closing those needs a data
29
+ * router (`useBlocker`) — see the note on `ContentStore.setNavigationGuard`.
30
+ *
31
+ * At most one dialog is open at a time. That matters because the exits can fire more than once for a
32
+ * single interaction, and stacked dialogs would have to be dismissed one after another.
33
+ */
34
+ export default function useUnsavedChanges(dirty: boolean, texts: UnsavedChangesTexts): UnsavedChanges;
35
+ //# sourceMappingURL=useUnsavedChanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUnsavedChanges.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useUnsavedChanges.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,cAAc,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,GAAG,cAAc,CA8EpG"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Content/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AA4ErD,QAAA,MAAM,KAAK,YAAqB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;CAiC5C,CAAC;yCA5EoC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE;;;AAmJ/D,wBAAwC;AACxC,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layout/Content/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AA6ErD,QAAA,MAAM,KAAK,YAAqB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;;CAiC5C,CAAC;yCA5EoC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE;;;AAsJ/D,wBAAwC;AACxC,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -10,6 +10,7 @@ export default class {
10
10
  private _menuElement1?;
11
11
  private _menuElement2?;
12
12
  private _additionalMenuElements;
13
+ private _navigationGuard?;
13
14
  readonly rightToolBar: ToolBarStore;
14
15
  readonly bottomToolBar: ToolBarStore;
15
16
  constructor(root: RootStore);
@@ -26,6 +27,9 @@ export default class {
26
27
  element: MenuElement;
27
28
  }[];
28
29
  setTheme(value: 'darkmode' | 'lightmode'): void;
30
+ setNavigationGuard(guard: () => Promise<boolean>): void;
31
+ /** Clears the guard only while it is still the registered one, so a page leaving cannot drop its successor's. */
32
+ clearNavigationGuard(guard: () => Promise<boolean>): void;
29
33
  updateSelectedMenuKeys(key: string[], element: {
30
34
  menu: MenuItem[];
31
35
  pos: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContentStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAI7E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAKnE,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAI1C,MAAM,CAAC,OAAO;IAWA,OAAO,CAAC,IAAI;IAVxB,OAAO,CAAC,MAAM,CAC8F;IAC5G,OAAO,CAAC,KAAK,CAAkB;IAC/B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,OAAO,CAAC,uBAAuB,CAA+C;IAC9E,SAAgB,YAAY,EAAE,YAAY,CAAC;IAC3C,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BAAuB,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,GAAG,MAAM;IAWjD;;;;;;;;;OASG;IACH,OAAO,CAAC,yBAAyB;IAmBjC,OAAO,CAAC,OAAO;IAiCf;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAwBpB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAgBxB;;;;OAIG;IACH,OAAO,CAAC,WAAW;IA2BnB;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAgC/B;AAED,eAAO,MAAM,IAAI,EAAE,QAAQ,EAirB1B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { AffectedProductsState } from '../../hooks/useAffectedProducts';
3
+ interface AffectedCountProps {
4
+ affected: AffectedProductsState;
5
+ /** Unsaved changes present — the number turns into a warning because it is about to take effect. */
6
+ dirty: boolean;
7
+ }
8
+ /**
9
+ * How many articles inherit the header values. Stays quiet while nothing is edited and turns into a warning
10
+ * as soon as there are unsaved changes, since that is the moment the number becomes a consequence.
11
+ *
12
+ * The count is per supplier / EK group and not per field: the filter behind it does not look at individual
13
+ * fields, so a per-field number would be the same one repeated.
14
+ */
15
+ declare function AffectedCount({ affected, dirty }: AffectedCountProps): React.JSX.Element | null;
16
+ export default AffectedCount;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAIxE,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,oGAAoG;IACpG,KAAK,EAAE,OAAO,CAAC;CAChB;AAED;;;;;;GAMG;AACH,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,kBAAkB,4BA6B7D;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { AffectedProductsState } from '../../hooks/useAffectedProducts';
3
+ import { HeaderProduct } from '../../hooks/useHeaderData';
4
+ import { PreparedTableSave } from '../../types';
5
+ interface ContentProps {
6
+ /** The loaded header product (`isHeader: true`) whose values are edited. */
7
+ data?: HeaderProduct;
8
+ /** How many articles a save propagates the header values into. */
9
+ affected: AffectedProductsState;
10
+ /** Group keys (= product paths) of ITEM_GROUP tabs with unsaved changes; drives save button and markers. */
11
+ tableDirtyKeys: string[];
12
+ /**
13
+ * Fixes and validates the grids' data sets for a save (the grids live in the page shell). An
14
+ * error-free preparation must be settled: confirm() after the save request succeeded, abort() after
15
+ * it failed — otherwise the grids stay locked in their saving state.
16
+ */
17
+ prepareTables: () => Promise<PreparedTableSave>;
18
+ /** Reports every single field change so the shell can apply form → table couplings (`copyValueTo`). */
19
+ onValueCoupling?: (key: string, value: unknown) => void;
20
+ /**
21
+ * Reports unsaved changes upwards. The form lives here but the supplier / EK group selects live in the
22
+ * shell, which needs to know before it switches the record away underneath us.
23
+ */
24
+ onDirtyChange?: (dirty: boolean) => void;
25
+ /** Called after a successful save with the written product, so the page can rebase the tabs on it. */
26
+ onSaved?: (saved: HeaderProduct) => void;
27
+ /** Called when the user discards, so the table edits are thrown away too. */
28
+ onDiscard?: () => void;
29
+ }
30
+ /**
31
+ * The editable body of the header data page: one form over a grid of group cards.
32
+ *
33
+ * Form values are kept flat and keyed by the field's full path, so the product is projected through
34
+ * `flatten` on the way in. Saving reverses that with `unflatten`.
35
+ */
36
+ declare function Content({ data, affected, tableDirtyKeys, prepareTables, onValueCoupling, onDirtyChange, onSaved, onDiscard }: ContentProps): React.JSX.Element;
37
+ export default Content;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/Content/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAGxE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AA0ChD,UAAU,YAAY;IACpB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,kEAAkE;IAClE,QAAQ,EAAE,qBAAqB,CAAC;IAChC,4GAA4G;IAC5G,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAChD,uGAAuG;IACvG,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACxD;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,sGAAsG;IACtG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;GAKG;AACH,iBAAS,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,YAAY,qBA0MnI;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { AssortmentManagerFieldConfig } from '../../../types';
3
+ interface GroupCardProps {
4
+ /** Translation key of the card title, the legacy `EditorGroup` (see `group` in the field catalogue). */
5
+ group: string;
6
+ fields: AssortmentManagerFieldConfig[];
7
+ /** Field and ITEM_GROUP keys whose value differs from the loaded header product. */
8
+ changedKeys: Set<string>;
9
+ }
10
+ /** One bordered box of the header data page — the antd equivalent of the legacy `.ccHeaderBox`. */
11
+ declare function GroupCard({ group, fields, changedKeys }: GroupCardProps): React.JSX.Element;
12
+ export default GroupCard;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/GroupCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAE9D,UAAU,cAAc;IACtB,wGAAwG;IACxG,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,4BAA4B,EAAE,CAAC;IACvC,oFAAoF;IACpF,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,mGAAmG;AACnG,iBAAS,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,cAAc,qBAUhE;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { AssortmentManagerFieldConfig } from '../../../types';
3
+ /**
4
+ * Renders one entry of the field catalogue as a `Form.Item`. Mandatory fields get a bold label and
5
+ * read-only ones a disabled editor, matching the legacy header UI. An `ITEM_GROUP` is a repeating table
6
+ * living in the bottom toolbar — its "Öffnen" button jumps to the matching tab.
7
+ *
8
+ * The description shows as a tooltip on the label itself rather than through the antd info icon, which
9
+ * would cost a column of label width in these narrow cards.
10
+ */
11
+ interface HeaderFieldProps {
12
+ field: AssortmentManagerFieldConfig;
13
+ /** Value differs from the loaded header product — the control gets an accented border. */
14
+ changed?: boolean;
15
+ }
16
+ declare function HeaderField({ field, changed }: HeaderFieldProps): React.JSX.Element | null;
17
+ declare const _default: typeof HeaderField & {
18
+ displayName: string;
19
+ };
20
+ export default _default;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/HeaderField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,EAA0B,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AA+HtF;;;;;;;GAOG;AACH,UAAU,gBAAgB;IACxB,KAAK,EAAE,4BAA4B,CAAC;IACpC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gBAAgB,4BA2ExD;;;;AAED,wBAAqC"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
3
+ import { AssortmentManagerItemGroup } from '../../../types';
4
+ interface ItemGroupTableProps {
5
+ group: AssortmentManagerItemGroup;
6
+ /**
7
+ * The rows the grid (re)loads: baseline or coupling seed, read at load time. Identity-stable by
8
+ * contract — a changed identity would re-register the toolbar tools and unmount the open grids.
9
+ */
10
+ getSeedRows: (groupKey: string) => Record<string, unknown>[];
11
+ /** Reports whether this grid holds unsaved changes; drives the page-level dirty state and save button. */
12
+ onPendingChange: (groupKey: string, hasPending: boolean) => void;
13
+ /** Registers the grid's imperative API with the page shell (prepareSave / rollback / couplings). */
14
+ onGridRef: (groupKey: string, grid: SpreadsheetRefProps<Record<string, unknown>> | null) => void;
15
+ }
16
+ /**
17
+ * One ITEM_GROUP of the header product as an editable client-side grid. The grid owns the working
18
+ * copy of the rows and the pending lifecycle; the page shell pulls the data at save time via the
19
+ * registered ref (`prepareSave` → `confirm`/`abort`), discards via `rollback` and triggers reloads
20
+ * explicitly via `refresh` (after a baseline swap or a discard).
21
+ */
22
+ declare function ItemGroupTable({ group, getSeedRows, onPendingChange, onGridRef }: ItemGroupTableProps): React.JSX.Element;
23
+ export default ItemGroupTable;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAuC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAQ5D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;OAGG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC7D,0GAA0G;IAC1G,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,oGAAoG;IACpG,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;CAClG;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,mBAAmB,qBA2D9F;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import type { SelectProps } from 'antd';
3
+ interface PagedDropdownSelectProps extends Omit<SelectProps, 'options' | 'filterOption' | 'onSearch' | 'onPopupScroll' | 'showSearch' | 'loading' | 'notFoundContent'> {
4
+ /** The dropdownItems list the select pages through. */
5
+ dropdownKey: string;
6
+ }
7
+ /**
8
+ * Select over a dropdownItems list that never loads the whole list: the first {@link PAGE_SIZE}
9
+ * entries up front (sorted by code), further pages when the list is scrolled to its end, and a
10
+ * server-side contains-search over code and text while typing (debounced) — lists like the
11
+ * Produkthierarchie (30k+ entries) stay usable without loading minutes. A selected code outside
12
+ * the loaded pages is resolved individually so it still displays as "code – text".
13
+ */
14
+ declare function PagedDropdownSelect({ dropdownKey, value, ...selectProps }: PagedDropdownSelectProps): React.JSX.Element;
15
+ export default PagedDropdownSelect;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/PagedDropdownSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AA0CxC,UAAU,wBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,cAAc,GAAG,UAAU,GAAG,eAAe,GAAG,YAAY,GAAG,SAAS,GAAG,iBAAiB,CAAC;IACnI,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,iBAAS,mBAAmB,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,EAAE,wBAAwB,qBA6F5F;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,20 @@
1
+ import RootStore from '../../../../store/RootStore';
2
+ export interface AffectedProductsState {
3
+ /** Number of articles the header values are inherited into. Undefined while loading or on error. */
4
+ count?: number;
5
+ loading: boolean;
6
+ error?: string;
7
+ }
8
+ /**
9
+ * Counts the articles a change to the header values reaches.
10
+ *
11
+ * The filter mirrors what `ProductModificationService.collectHeaderValueTargetIds` selects server side — the
12
+ * `headerValues._id` reference plus the same two exclusions — so the number reflects what a save actually
13
+ * touches. Deliberately unlike the SAP import path (`PfisterArticleService.updateHeaderValuesInProducts`),
14
+ * articles already sent to SAP (`SentToSAPSuccess: true`) are excluded: editing header data must not change
15
+ * articles that are already transferred.
16
+ * `limit=0` makes this a pure count: the catalog service skips the data pipeline and only runs the count
17
+ * aggregation, so `total` arrives without any documents.
18
+ */
19
+ export default function useAffectedProducts(root: RootStore, headerProductId?: string, reloadToken?: number): AffectedProductsState;
20
+ //# sourceMappingURL=useAffectedProducts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAffectedProducts.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAGpD,MAAM,WAAW,qBAAqB;IACpC,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,eAAe,CAAC,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG,qBAAqB,CAiD7H"}
@@ -0,0 +1,18 @@
1
+ import RootStore from '../../../../store/RootStore';
2
+ import { HeaderProduct } from './useHeaderData';
3
+ export interface CreateHeaderDataState {
4
+ /** Creates the header product for the combination from the template and returns the created product. */
5
+ create: () => Promise<HeaderProduct>;
6
+ creating: boolean;
7
+ }
8
+ /**
9
+ * Creates the header product (`isHeader: true`) of a supplier / EK group combination through the
10
+ * catalog service.
11
+ *
12
+ * `POST /products` only needs `organizationId`, the `isHeader` flag and the template `customData`:
13
+ * the catalog fills `_id` / `created` / `archived` itself and normalizes `customData` into
14
+ * `overrideValues.customData` on persist (`normalizeProductMergeFieldsForPersist`), so later
15
+ * header-value patches find their paths.
16
+ */
17
+ export default function useCreateHeaderData(root: RootStore, supplierNr?: string, ekg?: string): CreateHeaderDataState;
18
+ //# sourceMappingURL=useCreateHeaderData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCreateHeaderData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useCreateHeaderData.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,qBAAqB;IACpC,wGAAwG;IACxG,MAAM,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,qBAAqB,CA2BrH"}
@@ -0,0 +1,44 @@
1
+ import RootStore from '../../../../store/RootStore';
2
+ /** One dropdownItems entry as the catalog service stores it. */
3
+ export interface DropdownItem {
4
+ /** The stored code. */
5
+ valueKey: string;
6
+ /** Descriptive text of the code. */
7
+ value: string;
8
+ }
9
+ /** One entry of an enum cell list — the spreadsheet's `enumData` shape. */
10
+ export interface EnumEntry {
11
+ /** Descriptive text of the code (dropdownItems `value`). */
12
+ name: string;
13
+ /** The stored code (dropdownItems `valueKey`). */
14
+ value: string;
15
+ }
16
+ export declare const PAGE_SIZE = 100;
17
+ /**
18
+ * Loads one page of a dropdownItems list, sorted by code so the pages of the lazy selects are stable,
19
+ * optionally narrowed by a search term. The explicit `limit` matters: without it the catalog service
20
+ * applies its default of 20.
21
+ */
22
+ export declare function fetchDropdownItemsPage(root: RootStore, dropdownKey: string, skip: number, searchTerm?: string): Promise<{
23
+ items: DropdownItem[];
24
+ total: number;
25
+ }>;
26
+ /**
27
+ * Resolves stored codes to their dropdownItems entries — for values outside the loaded pages of the
28
+ * lazy selects (label display, `showAsLabelFor` captions). Unknown codes resolve to undefined.
29
+ */
30
+ export declare function resolveDropdownItems(root: RootStore, dropdownKey: string, codes: string[]): Promise<DropdownItem[]>;
31
+ /** dropdownItems → the select option shape (list label "code – text", stored value = code). */
32
+ export declare function dropdownItemOptions(items: DropdownItem[]): {
33
+ label: string;
34
+ value: string;
35
+ data: DropdownItem;
36
+ }[];
37
+ /**
38
+ * Loads the dropdownItems lists (the same source the header form selects use) for the given keys —
39
+ * they become the `enumData` of the ITEM_GROUP grid columns. Returns undefined while loading so the
40
+ * grid can wait for a stable configuration; a failed load resolves to an empty list, which makes
41
+ * the affected column fall back to a plain text editor.
42
+ */
43
+ export default function useDropdownEnumData(root: RootStore, dropdownKeys: string[]): Record<string, EnumEntry[]> | undefined;
44
+ //# sourceMappingURL=useDropdownEnumData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDropdownEnumData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAKpD,gEAAgE;AAChE,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,2EAA2E;AAC3E,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,MAAM,CAAC;AAyB7B;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAanD;AAKD;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CA4BzH;AAkCD,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE;;;;IAExD;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,SAAS,CAkB5H"}
@@ -0,0 +1,26 @@
1
+ import RootStore from '../../../../store/RootStore';
2
+ /** A catalog product carrying the header values of a supplier / EK group combination. */
3
+ export interface HeaderProduct extends Record<string, unknown> {
4
+ _id: string;
5
+ }
6
+ export interface HeaderDataState {
7
+ /** The loaded header product. Undefined while loading, on error, and when the combination has none. */
8
+ data?: HeaderProduct;
9
+ loading: boolean;
10
+ /** Set when the request itself failed, which is a different situation from "no header row exists". */
11
+ error?: string;
12
+ }
13
+ /**
14
+ * Loads the header product (`isHeader: true`) for a supplier / EK group combination.
15
+ *
16
+ * `type: 'string'` on the two SAP keys is required: `parseFilterParam` casts an unquoted numeric string to
17
+ * a number, which then matches nothing. `archived` is filtered here because the catalog service drops the
18
+ * controller's own `archived: false` on the filter code path — the same reason
19
+ * `PfisterArticleService.getProductHeaderValues` spells it out.
20
+ *
21
+ * `organizationId` belongs in the filter as well: on that same code path the `organizationIds` query
22
+ * parameter only drives the permission check and does not scope the query (`ProductService.search`), so
23
+ * without the clause another organization's header row could be loaded.
24
+ */
25
+ export default function useHeaderData(root: RootStore, supplierNr?: string, ekg?: string): HeaderDataState;
26
+ //# sourceMappingURL=useHeaderData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAGpD,yFAAyF;AACzF,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,uGAAuG;IACvG,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,sGAAsG;IACtG,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,eAAe,CAkDzG"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Supplier and EK group selection, restored on reload.
3
+ *
4
+ * The initial value is read once on mount, which is enough: switching the organization remounts the whole
5
+ * backoffice tree (`BrowserRouter key={organization?._id}` in `index.tsx`), so the hook re-reads with the
6
+ * new key by itself.
7
+ */
8
+ export default function usePersistedFilter(organizationId?: string): {
9
+ supplierNr: string | undefined;
10
+ ekg: string | undefined;
11
+ setSupplierNr: (supplierNr?: string) => void;
12
+ setEkg: (ekg?: string) => void;
13
+ };
14
+ //# sourceMappingURL=usePersistedFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePersistedFilter.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.ts"],"names":[],"mappings":"AA+CA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,cAAc,CAAC,EAAE,MAAM;;;iCAUjC,MAAM;mBACpB,MAAM;EAExB"}
@@ -0,0 +1,25 @@
1
+ import RootStore from '../../../../store/RootStore';
2
+ import { HeaderProduct } from './useHeaderData';
3
+ export interface SaveHeaderDataState {
4
+ /** Writes the changed field paths onto the header product and returns the saved product. */
5
+ save: (changedValues: Record<string, unknown>) => Promise<HeaderProduct>;
6
+ saving: boolean;
7
+ }
8
+ /**
9
+ * Saves the header product through the catalog service.
10
+ *
11
+ * `PATCH /v1/products/:id/headervalues` patches the header row and propagates its values into the
12
+ * `headerValues` of every product referencing it. Both halves live in the catalog because that is where
13
+ * `isHeader`, `headerValues` and `overrideValues` are defined and merged — going through a client specific
14
+ * service is not necessary and would tie the assortment manager to one customer's article service.
15
+ *
16
+ * Only the changed paths are sent, as JSON Patch. That is the reason for using this endpoint over the older
17
+ * route through diva-pfister-article, whose `createProductFromDivaNr` was written to sync whole records out
18
+ * of the legacy SQL database and replaces `customData` wholesale — it forced the client to send the entire
19
+ * object back and silently dropped anything left out.
20
+ *
21
+ * Which products inherit from this header is decided by the backend off the `headerValues._id` they carry;
22
+ * the client sends no filter for it.
23
+ */
24
+ export default function useSaveHeaderData(root: RootStore, data?: HeaderProduct): SaveHeaderDataState;
25
+ //# sourceMappingURL=useSaveHeaderData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSaveHeaderData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAClC,4FAA4F;IAC5F,IAAI,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;IACzE,MAAM,EAAE,OAAO,CAAC;CACjB;AAqBD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,aAAa,GAAG,mBAAmB,CAoCpG"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare function HeaderData(): React.JSX.Element;
3
+ declare const _default: typeof HeaderData & {
4
+ displayName: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/HeaderData/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAyCjF,iBAAS,UAAU,sBAoXlB;;;;AAED,wBAAoC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Drops table rows without a single meaningful value before they are persisted. Such rows occur when
3
+ * a user empties a row cell by cell instead of deleting it (the grid's cell delete action clears
4
+ * fields but keeps the row) — persisted they would land as empty objects in the SAP arrays, which no
5
+ * consumer expects. `0` and `false` are values; only rows where everything is `undefined`, `null` or
6
+ * `''` are dropped.
7
+ */
8
+ export declare function dropEmptyRows(rows: Record<string, unknown>[]): Record<string, unknown>[];
9
+ //# sourceMappingURL=dropEmptyRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropEmptyRows.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAExF"}
@@ -0,0 +1,18 @@
1
+ import { AssortmentManagerFieldConfig } from '../../types';
2
+ /** One collected rule: which field is gated, and the controlling values that enable it. */
3
+ export interface EnabledWhenRule {
4
+ targetKey: string;
5
+ equals: string | string[];
6
+ }
7
+ /** Collects the `enabledWhen` rules of the header page fields, keyed by their controlling field. */
8
+ export declare function collectEnabledWhenRules(fields: AssortmentManagerFieldConfig[]): Map<string, EnabledWhenRule[]>;
9
+ /** Whether the controlling field's current value enables the gated field. */
10
+ export declare function isRuleSatisfied(equals: string | string[], controllingValue: unknown): boolean;
11
+ /**
12
+ * Resolves which fields have to be cleared after a controlling field changed: a gated field must not
13
+ * keep a value while it is disabled
14
+ * Fields that are already empty resolve to nothing, so callers can use "something was cleared" as
15
+ * their dirty signal.
16
+ */
17
+ export declare function resolveEnabledWhenClears(rules: Map<string, EnabledWhenRule[]>, triggerKey: string, triggerValue: unknown, getCurrentValue: (key: string) => unknown): string[];
18
+ //# sourceMappingURL=enabledWhenRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enabledWhenRules.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED,oGAAoG;AACpG,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,4BAA4B,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAQ9G;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,gBAAgB,EAAE,OAAO,GAAG,OAAO,CAG7F;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,EACrC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,OAAO,EACrB,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GACxC,MAAM,EAAE,CAOV"}
@@ -0,0 +1,18 @@
1
+ import { AssortmentManagerFieldConfig } from '../../types';
2
+ /** One collected rule: which field is fixed, and the controlling value → fixed value map. */
3
+ export interface FixedValueRule {
4
+ targetKey: string;
5
+ values: Record<string, number | string>;
6
+ }
7
+ /** A pending write resolved from the rules: set the field at `targetKey` to `value`. */
8
+ export interface FixedValueWrite {
9
+ targetKey: string;
10
+ value: number | string;
11
+ }
12
+ /** Collects the `fixedValueBy` rules of the header page fields, keyed by their controlling field. */
13
+ export declare function collectFixedValueRules(fields: AssortmentManagerFieldConfig[]): Map<string, FixedValueRule[]>;
14
+ /**
15
+ * Resolves which fields have to be rewritten after a controlling field changed.
16
+ */
17
+ export declare function resolveFixedValueWrites(rules: Map<string, FixedValueRule[]>, triggerKey: string, triggerValue: unknown, getCurrentValue: (key: string) => unknown): FixedValueWrite[];
18
+ //# sourceMappingURL=fixedValueRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fixedValueRules.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACzC;AAED,wFAAwF;AACxF,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,qGAAqG;AACrG,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,4BAA4B,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAQ5G;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,EACpC,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,OAAO,EACrB,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GACxC,eAAe,EAAE,CAMnB"}
@@ -0,0 +1,22 @@
1
+ import { DivaColDef } from '@crystaldesign/spreadsheet';
2
+ import { AssortmentManagerItemGroup } from '../../types';
3
+ import { Translate } from '../types';
4
+ import { EnumEntry } from '../hooks/useDropdownEnumData';
5
+ /** How date cells display their values — the same format the form's date pickers use. */
6
+ export declare const DISPLAY_DATE_FORMAT = "DD.MM.YYYY";
7
+ /**
8
+ * Normalizes any date value the grid produces to the SAP `YYYYMMDD` storage format — the dateString
9
+ * cell type itself would store ISO, but the header form writes SAP format, and mixed writers would
10
+ * leave mixed data behind. Accepts ISO strings and SAP dates; anything unparsable clears the cell.
11
+ */
12
+ export declare function toSapDateString(value: unknown): string | undefined;
13
+ /**
14
+ * Builds the column definitions of one ITEM_GROUP grid on the header data page. Article-only sub
15
+ * fields (`showOnHeaderValues: false`, e.g. the dimensions of the Mengen Einheiten — legacy
16
+ * `ShowOnSupplierLevel`) get no column; their values survive untouched inside the row data. Columns
17
+ * whose dropdown list is loaded and non-empty render as `enum` cells in the same shape the IDM
18
+ * tables use (searchable select editor, set filter, "name (code)" display); everything else falls
19
+ * back to the plain cell data types.
20
+ */
21
+ export declare function buildItemGroupColDefs(group: AssortmentManagerItemGroup, enumLists: Record<string, EnumEntry[]>, t: Translate): DivaColDef<Record<string, unknown>>[];
22
+ //# sourceMappingURL=itemGroupColumns.d.ts.map