@crystaldesign/diva-backoffice 26.11.0-beta.3 → 26.11.0-beta.5
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 +712 -580
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +4 -5
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
- package/package.json +10 -10
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessoryCellEdit.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automaticPublishingFilterModelParser.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Translates one edited cell of the accessory matrix into the two group fields of the row. The matrix cells are
|
|
3
|
+
* computed and have no field of their own, so every write the grid hands over - the cell editor, the clipboard and
|
|
4
|
+
* the fill handle alike - goes through here. Only a value the cell could hold is applied; anything else returns
|
|
5
|
+
* undefined and leaves the row untouched, so a stray paste cannot corrupt a relation.
|
|
6
|
+
*/
|
|
7
|
+
export type AccessoryCellKind = 'mandatoryQuantity' | 'optionalQuantity' | 'setNo' | 'active';
|
|
8
|
+
/**
|
|
9
|
+
* Applies one cell value to the row's matrix and returns the rebuilt group fields, or undefined when the value is
|
|
10
|
+
* nothing the cell could hold. Both fields go together because a quantity can move a reference from the mandatory
|
|
11
|
+
* into the optional group and back.
|
|
12
|
+
*/
|
|
13
|
+
export declare function accessoryRowUpdate(data: any, isV4: boolean, accessory: {
|
|
14
|
+
serieNo: string;
|
|
15
|
+
typeNo: string;
|
|
16
|
+
}, kind: AccessoryCellKind, raw: unknown): Record<string, unknown> | undefined;
|
|
17
|
+
//# sourceMappingURL=accessoryCellEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessoryCellEdit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAqC9F;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,GAAG,EACT,IAAI,EAAE,OAAO,EACb,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9C,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE,OAAO,GACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAsBrC"}
|
|
@@ -27,11 +27,10 @@ interface Props {
|
|
|
27
27
|
* The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
|
|
28
28
|
* through the normal item endpoints.
|
|
29
29
|
*
|
|
30
|
-
* A matrix cell has no row field of its own - it is computed from the nested groups - so
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* a value can be dragged onto the rows below it.
|
|
30
|
+
* A matrix cell has no row field of its own - it is computed from the nested groups - so each column carries a
|
|
31
|
+
* cellEditToRowUpdate that turns its edited value back into the two group fields. Everything else is the grid's
|
|
32
|
+
* normal editing: the standard editors, clipboard and fill handle all funnel their writes through that one hook,
|
|
33
|
+
* and the transaction handler commits the staged changes when the row is left.
|
|
35
34
|
*/
|
|
36
35
|
export declare const ArticleRelations: ((props: Props) => React.JSX.Element | null) & {
|
|
37
36
|
displayName: string;
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAKtE,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2GAA2G;IAC3G,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,iGAAiG;IACjG,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,oFAAoF;IACpF,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,WAAoB,KAAK;;CAwOpD,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAgC,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AA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AM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CA03BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdmCatalogs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/IdmCatalogs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAGL,mBAAmB,EAIpB,MAAM,4BAA4B,CAAC;AAYpC,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,WAAW;oBAGG,MAAM;eACX,SAAS;eACT,OAAO;yBACG,oBAAoB;+BACd,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI;IAC/D,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;
|
|
1
|
+
{"version":3,"file":"IdmCatalogs.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/IdmCatalogs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAA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B,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,wFAyfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAkNA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,
|
|
1
|
+
{"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;IACzD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAqNA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AdvancedFilterModel } from 'ag-grid-enterprise';
|
|
2
|
+
/**
|
|
3
|
+
* The facts the filter rewrite needs about the user's organization. They mirror the inputs of
|
|
4
|
+
* `automaticPublishingCheck` in ./index.tsx, which derives the displayed cell value - keep the two in sync.
|
|
5
|
+
*/
|
|
6
|
+
export interface AutomaticPublishingFilterContext {
|
|
7
|
+
/** The colId of the automatic publishing column (settings.<organizationId>.automaticPublishing). */
|
|
8
|
+
colId: string;
|
|
9
|
+
/** The organization whose packages the table shows. */
|
|
10
|
+
organizationId: string;
|
|
11
|
+
/** Whether automatic publishing is enabled on organization level. */
|
|
12
|
+
automaticPublishingEnabled: boolean;
|
|
13
|
+
/** The ids of the parent organizations of the current organization. */
|
|
14
|
+
parentOrganizationIds: string[];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Rewrites a filter on the automatic publishing column so it matches the value the column displays instead of the
|
|
18
|
+
* raw database field. The displayed value is derived (see `automaticPublishingCheck` in ./index.tsx):
|
|
19
|
+
*
|
|
20
|
+
* - a package created in the current organization that is not based on another package always shows false
|
|
21
|
+
* - with automatic publishing enabled on organization level, the value is whether NO package of the user's
|
|
22
|
+
* organizations depends on it - the stored setting is ignored
|
|
23
|
+
* - otherwise the stored setting decides, where a missing value means false
|
|
24
|
+
*
|
|
25
|
+
* The organization-level facts are constant for every row of one request, so the filter can be rewritten into
|
|
26
|
+
* conditions on the fields that drive the displayed value.
|
|
27
|
+
*
|
|
28
|
+
* @param filterModel the full diva filter model
|
|
29
|
+
* @param context the organization facts the rewrite needs
|
|
30
|
+
* @returns the filter model with every condition on the column replaced, or undefined if nothing remains
|
|
31
|
+
*/
|
|
32
|
+
export declare function parseAutomaticPublishingFilterModel(filterModel: AdvancedFilterModel | undefined, context: AutomaticPublishingFilterContext): AdvancedFilterModel | undefined;
|
|
33
|
+
//# sourceMappingURL=automaticPublishingFilterModelParser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automaticPublishingFilterModelParser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsD,MAAM,oBAAoB,CAAC;AAE7G;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,oGAAoG;IACpG,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,cAAc,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,0BAA0B,EAAE,OAAO,CAAC;IACpC,uEAAuE;IACvE,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,mBAAmB,GAAG,SAAS,EAC5C,OAAO,EAAE,gCAAgC,GACxC,mBAAmB,GAAG,SAAS,CAKjC"}
|
package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAgCpD,eAAO,MAAM,aAAa;;CAidxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.11.0-beta.
|
|
3
|
+
"version": "26.11.0-beta.5",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.11.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "26.11.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "26.11.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.11.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "26.11.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.11.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.11.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "26.11.0-beta.5",
|
|
19
|
+
"@crystaldesign/content-item": "26.11.0-beta.5",
|
|
20
|
+
"@crystaldesign/diva-core": "26.11.0-beta.5",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.11.0-beta.5",
|
|
22
|
+
"@crystaldesign/media-upload": "26.11.0-beta.5",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.11.0-beta.5",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.11.0-beta.5",
|
|
25
25
|
"@dnd-kit/core": "^6.1.0",
|
|
26
26
|
"@dnd-kit/sortable": "^8.0.0",
|
|
27
27
|
"@dnd-kit/utilities": "^3.2.2",
|
|
28
|
-
"@google/genai": "^
|
|
28
|
+
"@google/genai": "^2.17.1",
|
|
29
29
|
"@google/model-viewer": "3.5.0",
|
|
30
30
|
"ag-charts-community": "^10.1.0",
|
|
31
31
|
"ag-charts-react": "^10.1.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"module": "build/esm/index.js",
|
|
58
58
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "effe1cbdf1d6a46cfc63b2696ebb7a8d11eb90f8"
|
|
60
60
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|