@crystaldesign/diva-backoffice 26.10.0-beta.9 → 26.11.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/index.js +18499 -13648
- package/build/types/backoffice/src/Configuration.d.ts +5 -3
- package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
- package/build/types/backoffice/src/hooks/useUnsavedChanges.d.ts +35 -0
- package/build/types/backoffice/src/hooks/useUnsavedChanges.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.test.d.ts +2 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.test.d.ts.map +1 -0
- package/build/types/backoffice/src/store/ContentStore.d.ts +4 -0
- package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/DataStore.d.ts.map +1 -1
- package/build/types/backoffice/src/store/RootStore.d.ts +4 -1
- package/build/types/backoffice/src/store/RootStore.d.ts.map +1 -1
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts +17 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/AffectedCount/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts +38 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/Content/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/GroupCard/index.d.ts +13 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/GroupCard/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/HeaderField/index.d.ts +21 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/HeaderField/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts +24 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/PagedDropdownSelect/index.d.ts +16 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/PagedDropdownSelect/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.d.ts +20 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useAffectedProducts.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useCreateHeaderData.d.ts +18 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useCreateHeaderData.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts +44 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts +26 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useHeaderData.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.d.ts +14 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/usePersistedFilter.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts +25 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useSaveHeaderData.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/index.d.ts +7 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.d.ts +9 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts +18 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.d.ts +18 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts +22 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.d.ts +7 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.d.ts +12 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts +32 -0
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts +3 -0
- package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/config/headerTemplate.d.ts +15 -0
- package/build/types/backoffice/src/ui/AssortmentManager/config/headerTemplate.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts +4 -0
- package/build/types/backoffice/src/ui/AssortmentManager/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/dropEmptyRows.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/dropEmptyRows.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/enabledWhenRules.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/enabledWhenRules.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/fixedValueRules.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/fixedValueRules.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/itemGroupColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/itemGroupColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts +139 -0
- package/build/types/backoffice/src/ui/AssortmentManager/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/CommonComponents/commonEnums.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +31 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts +16 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +51 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +32 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts +18 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts +10 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDetailInfos/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts +6 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyObjectExpandedEditor.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts +9 -0
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts +3 -0
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/types.d.ts +5 -0
- package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/types.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/Maintenance/components/StatsRow.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/components/StatusBadges.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts +11 -1
- package/build/types/backoffice/src/ui/Maintenance/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/Table/utils/getColumnFilterProps.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ApprovalWorkspace/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/FullscreenViewer/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts +2 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/ImagePanel/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/LeftSlider/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/SideBySideViewer/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantCompareView/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantPanel/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts +1 -2
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/components/VariantSlider/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts +17 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/hooks/useRenderJobData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/components/RenderApprove/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts +2 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/types.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts +14 -0
- package/build/types/backoffice/src/ui/TableRenderJobs/utils.d.ts.map +1 -0
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts +8 -0
- package/build/types/backoffice/src/utils/isRelatedRoutePath.d.ts.map +1 -0
- package/package.json +9 -9
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts +0 -5
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableProperties/index.d.ts.map +0 -1
|
@@ -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
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/dropEmptyRows.d.ts.map
ADDED
|
@@ -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"}
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts
ADDED
|
@@ -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
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/enabledWhenRules.d.ts.map
ADDED
|
@@ -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
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/fixedValueRules.d.ts.map
ADDED
|
@@ -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"}
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts
ADDED
|
@@ -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
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemGroupColumns.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAA8B,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAOzD,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAWhD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKlE;AAsBD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,EACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,EACtC,CAAC,EAAE,SAAS,GACX,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CA6BvC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool id of an ITEM_GROUP tab in the bottom toolbar — shared by the tab registration in the
|
|
3
|
+
* header data page and the "Öffnen" buttons in the header value cards, so both always address the
|
|
4
|
+
* same tool.
|
|
5
|
+
*/
|
|
6
|
+
export declare function itemGroupToolId(groupKey: string): string;
|
|
7
|
+
//# sourceMappingURL=itemGroupToolId.d.ts.map
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemGroupToolId.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/itemGroupToolId.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The spreadsheet requires every loaded row to carry a value in its id column (`_id` by default,
|
|
3
|
+
* see the grid's `getRowId`); the SAP table rows have no natural id. The load adapter therefore
|
|
4
|
+
* injects synthetic positional ids — they only identify rows within one grid load, a re-load
|
|
5
|
+
* re-ids from scratch. Before rows are persisted the ids are stripped again: the SAP arrays on
|
|
6
|
+
* the product must stay id-free.
|
|
7
|
+
*/
|
|
8
|
+
/** The grid row id of the `index`-th seeded row — also the target for host writes via setNodeDataValue. */
|
|
9
|
+
export declare function syntheticRowId(index: number): string;
|
|
10
|
+
export declare function withSyntheticRowIds(rows: Record<string, unknown>[]): Record<string, unknown>[];
|
|
11
|
+
export declare function stripSyntheticRowIds(rows: Record<string, unknown>[]): Record<string, unknown>[];
|
|
12
|
+
//# sourceMappingURL=syntheticRowIds.d.ts.map
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntheticRowIds.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/syntheticRowIds.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,2GAA2G;AAC3G,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAE9F;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAG/F"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseModulConfiguration } from '../../../Configuration';
|
|
2
|
+
export interface AssortmentManagerHeaderDataConfiguration extends BaseModulConfiguration {
|
|
3
|
+
type: 'AssortmentManagerHeaderData';
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The i18next `t` the pure logic modules receive from their calling component. `name`, `description`
|
|
7
|
+
* and `group` of [../config/fields.ts](../config/fields.ts) are translation keys, so they are passed
|
|
8
|
+
* without a default value; the UI messages of this module pass one.
|
|
9
|
+
*/
|
|
10
|
+
export interface Translate {
|
|
11
|
+
(key: string): string;
|
|
12
|
+
(key: string, options: {
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
} & Record<string, unknown>): string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The table half of a save, produced by the page shell from the grids' prepared saves: the data
|
|
18
|
+
* sets are fixed and the grids keep showing their pending state until the caller settles the save.
|
|
19
|
+
* With `errors` non-empty the grids were already released — only `changes` of an error-free
|
|
20
|
+
* preparation may be persisted, and then exactly one of confirm/abort must be called.
|
|
21
|
+
*/
|
|
22
|
+
export interface PreparedTableSave {
|
|
23
|
+
/** Group key (= product path) → rows to write; only groups whose rows differ from the baseline. */
|
|
24
|
+
changes: Record<string, Record<string, unknown>[]>;
|
|
25
|
+
/** Validation errors; non-empty means the save is blocked and the grids are released again. */
|
|
26
|
+
errors: string[];
|
|
27
|
+
/** The host persisted `changes` — finalizes the grids, their state counts as saved. */
|
|
28
|
+
confirm: () => Promise<void>;
|
|
29
|
+
/** The persist failed — every grid keeps its pending changes. */
|
|
30
|
+
abort: (error?: unknown) => void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/HeaderData/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,wCAAyC,SAAQ,sBAAsB;IACtF,IAAI,EAAE,6BAA6B,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;CACpF;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,mGAAmG;IACnG,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACnD,+FAA+F;IAC/F,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uFAAuF;IACvF,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,iEAAiE;IACjE,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/config/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,yBAAyB,EAAE,4BAA4B,EAy2CnE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Template for a freshly created header product of a supplier / EK group combination.
|
|
3
|
+
*/
|
|
4
|
+
export interface HeaderTemplateParams {
|
|
5
|
+
/** The supplier number (`MT_LIEFERANTEN` key) the header belongs to. */
|
|
6
|
+
supplierNr: string;
|
|
7
|
+
/** The EK group (`EKGRP` key) the header belongs to. */
|
|
8
|
+
ekg: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Builds the initial `customData` of a new header product. Every call returns fresh row objects, so
|
|
12
|
+
* the result can be handed to the grids / a create request without sharing state.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createHeaderTemplate({ supplierNr, ekg }: HeaderTemplateParams): Record<string, unknown>;
|
|
15
|
+
//# sourceMappingURL=headerTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headerTemplate.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/config/headerTemplate.ts"],"names":[],"mappings":"AAAA;;GAEG;AA0CH,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiCvG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/AssortmentManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,wCAAwC,EAAE,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,wCAAwC,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropEmptyRows.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/tests/dropEmptyRows.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enabledWhenRules.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/tests/enabledWhenRules.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixedValueRules.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/tests/fixedValueRules.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemGroupColumns.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/tests/itemGroupColumns.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/** Editor type of a single field, derived from the legacy `Datatype` column. */
|
|
2
|
+
export type AssortmentManagerFieldType = 'string' | 'number' | 'decimal' | 'boolean' | 'date';
|
|
3
|
+
/** Rule enabling a field only for certain values of another form field, see `AssortmentManagerField.enabledWhen`. */
|
|
4
|
+
export interface AssortmentManagerEnabledWhenRule {
|
|
5
|
+
/** Full path of the controlling form field (e.g. `customData.SAP.SAP_MAW1_ZZSHOP`). */
|
|
6
|
+
field: string;
|
|
7
|
+
/** Value(s) of the controlling field for which this field is editable. */
|
|
8
|
+
equals: string | string[];
|
|
9
|
+
}
|
|
10
|
+
/** Rule fixing a field's value depending on another form field, see `AssortmentManagerField.fixedValueBy`. */
|
|
11
|
+
export interface AssortmentManagerFixedValueRule {
|
|
12
|
+
/** Full path of the controlling form field (e.g. `customData.SAP.SAP_EINE_WAERS`). */
|
|
13
|
+
field: string;
|
|
14
|
+
/**
|
|
15
|
+
* Controlling value → fixed value. While the controlling field holds one of these values, the
|
|
16
|
+
* field is set to the mapped value and locked; any other value leaves it freely editable.
|
|
17
|
+
*/
|
|
18
|
+
values: Record<string, number | string>;
|
|
19
|
+
}
|
|
20
|
+
/** One target of a form → table value coupling, see `AssortmentManagerField.copyValueTo`. */
|
|
21
|
+
export interface AssortmentManagerCopyTarget {
|
|
22
|
+
/** Full path of the ITEM_GROUP whose rows receive the value (e.g. `customData.SAP.SAP_KONP_EK`). */
|
|
23
|
+
itemGroup: string;
|
|
24
|
+
/** Row column that identifies the receiving row(s) (e.g. `SAP_KONP_KSCHL`). */
|
|
25
|
+
matchColumn: string;
|
|
26
|
+
/** Value `matchColumn` must have for a row to be updated (e.g. `PB00`). */
|
|
27
|
+
matchValue: string;
|
|
28
|
+
/** Row column the field's value is written into (e.g. `SAP_KONP_KONWA`). */
|
|
29
|
+
column: string;
|
|
30
|
+
}
|
|
31
|
+
interface AssortmentManagerEntryBase {
|
|
32
|
+
/** Display label in German (legacy `FieldName`, with `<br>` resolved). */
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Full path of the field inside the product, e.g. `customData.SAP.SAP_MARA_MTART`.
|
|
36
|
+
* Must be unique and must resolve against `PfisterArticleCustomData` in diva-pfister-article.
|
|
37
|
+
*/
|
|
38
|
+
key: string;
|
|
39
|
+
/** Show as a column in the article table (legacy `ShowOnArticleLevel` combined with `Visible`). */
|
|
40
|
+
showOnArticle: boolean;
|
|
41
|
+
/** Show and edit on the header data page (legacy `ShowOnSupplierLevel` combined with `Visible`). */
|
|
42
|
+
showOnHeaderValues: boolean;
|
|
43
|
+
/** Help text shown as a tooltip (legacy `ToolTip`, falling back to `Description`). */
|
|
44
|
+
description?: string;
|
|
45
|
+
/** Card title on the header data page; entries sharing a group land in the same card (legacy `EditorGroup`). */
|
|
46
|
+
group: string;
|
|
47
|
+
}
|
|
48
|
+
/** A single editable field. */
|
|
49
|
+
export interface AssortmentManagerField extends AssortmentManagerEntryBase {
|
|
50
|
+
type: AssortmentManagerFieldType;
|
|
51
|
+
/** When set, the field renders as a select fed by `/v1/dropdownItems` (legacy `DropdownKey`). */
|
|
52
|
+
dropDownKey?: string;
|
|
53
|
+
/**
|
|
54
|
+
* When set, the field renders as a multi select fed by `/v1/dropdownItems`; the selected codes are
|
|
55
|
+
* stored semicolon-joined in one string value (e.g. Marketplace `A;B`).
|
|
56
|
+
*/
|
|
57
|
+
multiselectKey?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Mandatory field — empty values block saving, the label renders in bold (legacy `Required`).
|
|
60
|
+
* Can be limited to the article level via `notRequiredOnHeaderValues`.
|
|
61
|
+
*/
|
|
62
|
+
required?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Limits `required` to the article level: on the header page the field stays optional. E.g. the
|
|
65
|
+
* condition amount (SAP_KONP_KBETR) — the template rows legitimately carry no amount on the
|
|
66
|
+
* header, every article fills in its own.
|
|
67
|
+
*/
|
|
68
|
+
notRequiredOnHeaderValues?: boolean;
|
|
69
|
+
/** Maximum input length for string fields, enforced by the editors (legacy `MaxLength`). */
|
|
70
|
+
maxLength?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Renders the field as a growing textarea instead of a single-line input (legacy `Multiline` > 1,
|
|
73
|
+
* which opened a modal editor because its form inputs were single-line only).
|
|
74
|
+
*/
|
|
75
|
+
multiline?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Full path of a sibling dropdown field this field is the descriptive label of. The field then
|
|
78
|
+
* renders read-only, always showing the label text of the referenced field's current selection,
|
|
79
|
+
* and carries no form value of its own.
|
|
80
|
+
*/
|
|
81
|
+
showAsLabelFor?: string;
|
|
82
|
+
/**
|
|
83
|
+
* When this form field changes, its new value is also written into matching rows of the listed
|
|
84
|
+
* ITEM_GROUP tables. Replaces the legacy hard-coded coupling that wrote the purchasing currency
|
|
85
|
+
* into the first EK condition row (`SAP_EINE_WAERS` → `SAP_KONP_EK[0].SAP_KONP_KONWA`) — rows are
|
|
86
|
+
* matched by column value here instead of by index.
|
|
87
|
+
*/
|
|
88
|
+
copyValueTo?: AssortmentManagerCopyTarget[];
|
|
89
|
+
/**
|
|
90
|
+
* Fixes this field's value depending on another form field and locks the editor while the rule
|
|
91
|
+
* matches (legacy `ValidateExtraHeaderValues`: HausKurs 100 for USD / 112 for EUR, free otherwise).
|
|
92
|
+
*/
|
|
93
|
+
fixedValueBy?: AssortmentManagerFixedValueRule;
|
|
94
|
+
/**
|
|
95
|
+
* Enables this field only while another form field holds one of the given values; otherwise the
|
|
96
|
+
* editor is locked and the value cleared. Legacy `VisibilityRule` (e.g. Marketplace only when
|
|
97
|
+
* `SAP_MAW1_ZZSHOP == '1'`) — despite that name the legacy disabled the field, it never hid it.
|
|
98
|
+
*/
|
|
99
|
+
enabledWhen?: AssortmentManagerEnabledWhenRule;
|
|
100
|
+
/**
|
|
101
|
+
* `false` = not editable, e.g. because the value is derived from the supplier / EK group filter.
|
|
102
|
+
* Named after the spreadsheet column definition; this used to be `readOnly` (legacy `ReadOnly`),
|
|
103
|
+
* so the semantics are inverted: legacy `ReadOnly: true` is `editable: false` here.
|
|
104
|
+
*/
|
|
105
|
+
editable?: boolean;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* A repeating table inside the product — `key` points at an array (e.g. `customData.SAP.SAP_MARM`) and
|
|
109
|
+
* `fields` describes the columns of one row. Replaces the legacy `Datatype: 'SUBITEMS'` + `SubFields`.
|
|
110
|
+
*/
|
|
111
|
+
export interface AssortmentManagerItemGroup extends AssortmentManagerEntryBase {
|
|
112
|
+
type: 'ITEM_GROUP';
|
|
113
|
+
fields: AssortmentManagerField[];
|
|
114
|
+
/**
|
|
115
|
+
* `false` = the table does not offer adding rows (context menu insert/duplicate and the row
|
|
116
|
+
* growth on multi-row paste). Named after the spreadsheet configuration.
|
|
117
|
+
*/
|
|
118
|
+
canCreate?: boolean;
|
|
119
|
+
canDelete?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Minimum number of rows (legacy `SubItemMinQuantity`), enforced by the grid: the delete entries
|
|
122
|
+
* lock at the bound (spreadsheet `minRows`), so the remaining rows are edited in place.
|
|
123
|
+
*/
|
|
124
|
+
minItems?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Maximum number of rows (legacy `SubItemMaxQuantity`), enforced by the grid: row creation stops
|
|
127
|
+
* once reached (spreadsheet `maxRows`).
|
|
128
|
+
*/
|
|
129
|
+
maxItems?: number;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* One entry of the assortment manager field catalogue, describing both how it is rendered on the
|
|
133
|
+
* header data page and whether it belongs in the article table.
|
|
134
|
+
*
|
|
135
|
+
* Replaces the legacy runtime field metadata fetched from `function=getjsonflatarticlefields`.
|
|
136
|
+
*/
|
|
137
|
+
export type AssortmentManagerFieldConfig = AssortmentManagerField | AssortmentManagerItemGroup;
|
|
138
|
+
export {};
|
|
139
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/AssortmentManager/types.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE9F,qHAAqH;AACrH,MAAM,WAAW,gCAAgC;IAC/C,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED,8GAA8G;AAC9G,MAAM,WAAW,+BAA+B;IAC9C,sFAAsF;IACtF,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CACzC;AAED,6FAA6F;AAC7F,MAAM,WAAW,2BAA2B;IAC1C,oGAAoG;IACpG,SAAS,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,0BAA0B;IAClC,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,mGAAmG;IACnG,aAAa,EAAE,OAAO,CAAC;IACvB,oGAAoG;IACpG,kBAAkB,EAAE,OAAO,CAAC;IAC5B,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+BAA+B;AAC/B,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACxE,IAAI,EAAE,0BAA0B,CAAC;IACjC,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAC5C;;;OAGG;IACH,YAAY,CAAC,EAAE,+BAA+B,CAAC;IAC/C;;;;OAIG;IACH,WAAW,CAAC,EAAE,gCAAgC,CAAC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC5E,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,sBAAsB,EAAE,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;
|
|
1
|
+
{"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GA8CzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GAG/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAOzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAkB1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GA2B1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,MAAO,SAAS;;;GAsD5C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GA8C/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,MAAO,SAAS;;;GAU9C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CustomCellRendererProps } from 'ag-grid-react';
|
|
3
|
+
export interface AccessoryCellParams {
|
|
4
|
+
kind: 'boolean' | 'number' | 'select';
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
/** Options of a 'select' cell. */
|
|
8
|
+
options?: {
|
|
9
|
+
value: number;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Additionally disables the cell depending on the row - e.g. a set no without its quantity. */
|
|
14
|
+
isDisabled?: (node: any) => boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Writes the new value back. The table owns the mapping to the IDM groups; the transaction handler only stages
|
|
17
|
+
* the change, the grid commits it once the row is left.
|
|
18
|
+
*/
|
|
19
|
+
onSave: (node: any, value: boolean | number | undefined, transactionHandler: any) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Renders one cell of the Zusatzartikel matrix and stages its own changes.
|
|
23
|
+
*
|
|
24
|
+
* The matrix cells have no row field of their own - they are computed from the item's ADDITIONAL_ITEMS groups - so
|
|
25
|
+
* they cannot use the grid's normal editing path: it keys every commit on `colDef.field` and drops an edit without
|
|
26
|
+
* one. Writing through the transaction handler of the grid context is the route the lookup and asset cells take;
|
|
27
|
+
* unlike the grid api's setNodeDataValue it does not force an immediate commit, so the changes of a row are sent
|
|
28
|
+
* together when the selection leaves it.
|
|
29
|
+
*/
|
|
30
|
+
export default function AccessoryCellRenderer(props: CustomCellRendererProps<any> & AccessoryCellParams): React.JSX.Element | null;
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAGxD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gGAAgG;IAChG,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;IACpC;;;OAGG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,EAAE,kBAAkB,EAAE,GAAG,KAAK,IAAI,CAAC;CAC3F;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,GAAG,mBAAmB,4BA2DtG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AdditionalItemRef } from '../../hooks/useAdditionalItemRefs';
|
|
3
|
+
interface Props {
|
|
4
|
+
open: boolean;
|
|
5
|
+
catalogId?: string;
|
|
6
|
+
language: string;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onAdd: (columns: AdditionalItemRef[]) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Picks the articles new accessory columns of the Zusatzartikel grid point at. A type no is only unique inside
|
|
12
|
+
* its serie, so a serie is selected first.
|
|
13
|
+
*/
|
|
14
|
+
export default function AddAccessoryModal({ open, catalogId, language, onCancel, onAdd }: Props): React.JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=AddAccessoryModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddAccessoryModal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAO5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;CAC/C;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,qBA6F9F"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts between the nested IDM ADDITIONAL_ITEMS groups of an item (mandatory/optional selection groups,
|
|
3
|
+
* SET_NO 1-9 per side) and the flat one-cell-per-accessory matrix the Zusatzartikel grid edits.
|
|
4
|
+
*/
|
|
5
|
+
/** Lowest and default IDM set number. A group without a set no is treated as this one. */
|
|
6
|
+
export declare const DEFAULT_SET_NO = 1;
|
|
7
|
+
/** Highest set number IDM allows per article (SET_NO is restricted to 1-9). */
|
|
8
|
+
export declare const MAX_SET_NO = 9;
|
|
9
|
+
export interface AccessoryCell {
|
|
10
|
+
serieNo: string;
|
|
11
|
+
typeNo: string;
|
|
12
|
+
/** Whether the relation is active at all - the checkbox of the grid cell. */
|
|
13
|
+
active: boolean;
|
|
14
|
+
/** Minimum count, published as MANDATORY_QUANTITY. */
|
|
15
|
+
mandatoryQuantity?: number;
|
|
16
|
+
/** IDM set (MANDATORY_ITEM_GROUP.SET_NO) the mandatory reference belongs to - set iff a quantity is. */
|
|
17
|
+
mandatorySetNo?: number;
|
|
18
|
+
/** Maximum count, published as OPTIONAL_QUANTITY. */
|
|
19
|
+
optionalQuantity?: number;
|
|
20
|
+
/** IDM set (OPTIONAL_ITEM_GROUP.SET_NO) the optional reference belongs to - set iff a quantity is. */
|
|
21
|
+
optionalSetNo?: number;
|
|
22
|
+
}
|
|
23
|
+
/** Settings of an optional set besides its accessories, which writeCells carries over when rebuilding groups. */
|
|
24
|
+
export interface SetMeta {
|
|
25
|
+
multipleChoice?: boolean;
|
|
26
|
+
groupTitle?: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
export declare function accessoryKey(serieNo: string, typeNo: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Flattens the item's groups into one cell per accessory, merging mandatory and optional references of the same
|
|
31
|
+
* accessory. An accessory referenced by several groups of the same side collapses to its first occurrence.
|
|
32
|
+
*/
|
|
33
|
+
export declare function readCells(item: any, isV4: boolean): Record<string, AccessoryCell>;
|
|
34
|
+
/**
|
|
35
|
+
* Applies one cell edit to the matrix, in place. Filling a quantity on a new accessory also activates it; an
|
|
36
|
+
* existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it.
|
|
37
|
+
*/
|
|
38
|
+
export declare function applyCellChange(cells: Record<string, AccessoryCell>, accessory: {
|
|
39
|
+
serieNo: string;
|
|
40
|
+
typeNo: string;
|
|
41
|
+
}, property: keyof AccessoryCell, value: boolean | number | undefined): Record<string, AccessoryCell>;
|
|
42
|
+
/**
|
|
43
|
+
* Rebuilds both group arrays of the item from the cells, in place. Only active cells with at least one quantity
|
|
44
|
+
* are written; groups that would run empty are omitted.
|
|
45
|
+
*/
|
|
46
|
+
export declare function writeCells(item: any, isV4: boolean, cells: Record<string, AccessoryCell>, setMeta: Record<number, SetMeta>): void;
|
|
47
|
+
/** Per-set settings of the item's optional groups that writeCells has to carry over, keyed by set no. */
|
|
48
|
+
export declare function readSetMeta(item: any, isV4: boolean): Record<number, SetMeta>;
|
|
49
|
+
/** The field names the grid has to request and send so the groups are part of the row. */
|
|
50
|
+
export declare function additionalItemFields(isV4: boolean): string[];
|
|
51
|
+
//# sourceMappingURL=additionalItemsCodec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"additionalItemsCodec.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,IAAI,CAAC;AAEhC,+EAA+E;AAC/E,eAAO,MAAM,UAAU,IAAI,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,MAAM,EAAE,OAAO,CAAC;IAChB,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sGAAsG;IACtG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAgBD,iHAAiH;AACjH,MAAM,WAAW,OAAO;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAcD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAE3D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CA6BjF;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EACpC,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9C,QAAQ,EAAE,MAAM,aAAa,EAC7B,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,iCAoBpC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAqC1H;AAED,yGAAyG;AACzG,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAS7E;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,YAIjD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AdditionalItemRef } from '../../hooks/useAdditionalItemRefs';
|
|
3
|
+
interface Props {
|
|
4
|
+
idmService: string;
|
|
5
|
+
catalogId?: string;
|
|
6
|
+
serieId?: string;
|
|
7
|
+
isV4: boolean;
|
|
8
|
+
languages?: string[];
|
|
9
|
+
/** Accessory columns of the serie, including the ones added in the editor but not referenced yet. */
|
|
10
|
+
accessories: AdditionalItemRef[];
|
|
11
|
+
viewOnly?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Zusatzartikel of a serie: rows are its articles, the dynamic columns their accessories. A checked cell makes the
|
|
15
|
+
* relation active, the two quantities become the IDM MANDATORY_QUANTITY (minimum) and OPTIONAL_QUANTITY (maximum).
|
|
16
|
+
* Each quantity carries its own IDM set (SET_NO 1-9): mandatory and optional groups are numbered independently, so
|
|
17
|
+
* both sides have their own dropdown - filled as soon as the quantity is (defaulting to set 1) and empty and
|
|
18
|
+
* disabled without one, because a set without a quantity has nothing to publish.
|
|
19
|
+
*
|
|
20
|
+
* The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
|
|
21
|
+
* through the normal item endpoints.
|
|
22
|
+
*
|
|
23
|
+
* A matrix cell has no row field of its own - it is computed from the nested groups - so the cells render their own
|
|
24
|
+
* input and stage the rebuilt groups through the grid's transaction handler. The grid's normal editing path is not
|
|
25
|
+
* usable here: it keys each commit on `colDef.field` and drops an edit that has none. Staging keeps the save on the
|
|
26
|
+
* row: the grid commits the pending changes when the selection leaves it.
|
|
27
|
+
*/
|
|
28
|
+
export declare const ArticleRelations: (({ idmService, catalogId, serieId, isV4, languages, accessories, viewOnly }: Props) => React.JSX.Element | null) & {
|
|
29
|
+
displayName: string;
|
|
30
|
+
};
|
|
31
|
+
export default ArticleRelations;
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAKpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AActE,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,qGAAqG;IACrG,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,gFAAyF,KAAK;;CAgKzH,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map
CHANGED
|
@@ -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,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,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,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAiKnC,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,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,wFAmfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAenH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,
|
|
1
|
+
{"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAenH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,qBAoaA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface AdditionalItemRef {
|
|
2
|
+
/** Stable column id of the accessory, identical across all rows. */
|
|
3
|
+
key: string;
|
|
4
|
+
serieNo: string;
|
|
5
|
+
typeNo: string;
|
|
6
|
+
shortText?: {
|
|
7
|
+
[language: string]: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The accessory columns of the Zusatzartikel grid, fetched serie-wide from idm-service (rows are paged, so the
|
|
12
|
+
* column set cannot be derived from loaded rows). Columns added via `addColumns` live locally until a cell is filled.
|
|
13
|
+
*/
|
|
14
|
+
export default function useAdditionalItemRefs(catalogId?: string, serieId?: string): {
|
|
15
|
+
columns: AdditionalItemRef[];
|
|
16
|
+
addColumns: (added: AdditionalItemRef[]) => void;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useAdditionalItemRefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAdditionalItemRefs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;;wBAsCzC,iBAAiB,EAAE;EAiB3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;EA0LhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAgBxD,UAAU,KAAK;IACb,aAAa,EAAE,6BAA6B,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,KAAK,qBAMjC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Zusatzartikel of the selected serie. The relations are catalog data on the articles themselves
|
|
4
|
+
* (ITEM.ADDITIONAL_ITEMS), so a row is an item of the serie and the accessories are its dynamic columns - each with
|
|
5
|
+
* its own IDM set no per mandatory/optional side.
|
|
6
|
+
*/
|
|
7
|
+
export declare const TableArticleRelations: (() => React.JSX.Element) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|