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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/esm/index.js +1189 -686
  2. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts +2 -0
  3. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.test.d.ts.map +1 -0
  4. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts +2 -0
  5. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.d.ts.map +1 -0
  6. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts +2 -0
  7. package/build/types/backoffice/src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.d.ts.map +1 -0
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts +3 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts +17 -0
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryCellEdit.d.ts.map +1 -0
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts +28 -0
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.d.ts.map +1 -0
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts +2 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/additionalItemsCodec.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts +15 -8
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/IdmCatalogs.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  22. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts +5 -0
  24. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useAdditionalItemRefs.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts +2 -1
  26. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts +33 -0
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/automaticPublishingFilterModelParser.d.ts.map +1 -0
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  30. package/package.json +11 -10
  31. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts +0 -31
  32. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/ArticleRelations/AccessoryCellRenderer/index.d.ts.map +0 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accessoryCellEdit.test.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accessoryFilters.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessoryFilters.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=automaticPublishingFilterModelParser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automaticPublishingFilterModelParser.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.ts"],"names":[],"mappings":""}
@@ -3,6 +3,8 @@ import { AdditionalItemRef } from '../../hooks/useAdditionalItemRefs';
3
3
  interface Props {
4
4
  open: boolean;
5
5
  catalogId?: string;
6
+ /** Serie being edited - accessories usually come from it, so it is the default of the picker. */
7
+ serieId?: string;
6
8
  language: string;
7
9
  onCancel: () => void;
8
10
  onAdd: (columns: AdditionalItemRef[]) => void;
@@ -11,6 +13,6 @@ interface Props {
11
13
  * Picks the articles new accessory columns of the Zusatzartikel grid point at. A type no is only unique inside
12
14
  * its serie, so a serie is selected first.
13
15
  */
14
- export default function AddAccessoryModal({ open, catalogId, language, onCancel, onAdd }: Props): React.JSX.Element;
16
+ export default function AddAccessoryModal({ open, catalogId, serieId, language, onCancel, onAdd }: Props): React.JSX.Element;
15
17
  export {};
16
18
  //# sourceMappingURL=AddAccessoryModal.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"AddAccessoryModal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/AddAccessoryModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAQzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGtE,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,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,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,qBAiJvG"}
@@ -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"}
@@ -0,0 +1,28 @@
1
+ import { AdvancedFilterModel } from 'ag-grid-enterprise';
2
+ import { AdditionalItemRef } from '../../hooks/useAdditionalItemRefs';
3
+ /**
4
+ * Filter of a quantity column: the same condition, asked of the group the quantity belongs to.
5
+ */
6
+ export declare function quantityFilterParser(colId: string, accessory: AdditionalItemRef, side: 'mandatory' | 'optional'): ({ filterModel }: {
7
+ filterModel?: AdvancedFilterModel;
8
+ }) => AdvancedFilterModel | undefined;
9
+ /**
10
+ * Filter of the Set No column: the grid shows one set per accessory although the IDM numbers both sides on their
11
+ * own, so a set matches as soon as one of the two groups carries it.
12
+ *
13
+ * OR holds for a negated condition too: the item endpoint answers each side as an existence check over its groups,
14
+ * so the side an accessory does not sit on is false rather than "no value". AND would drop every accessory that
15
+ * only exists on one side, whatever its set.
16
+ */
17
+ export declare function setNoFilterParser(colId: string, accessory: AdditionalItemRef): ({ filterModel }: {
18
+ filterModel?: AdvancedFilterModel;
19
+ }) => AdvancedFilterModel | undefined;
20
+ /**
21
+ * Filter of the Aktiv column: a checked cell means the article references the accessory at all, which the catalog
22
+ * only holds as a quantity on one of the two sides. Unchecked is the absence of both, so the conditions have to
23
+ * hold together.
24
+ */
25
+ export declare function activeFilterParser(colId: string, accessory: AdditionalItemRef): ({ filterModel }: {
26
+ filterModel?: AdvancedFilterModel;
27
+ }) => AdvancedFilterModel | undefined;
28
+ //# sourceMappingURL=accessoryFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessoryFilters.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/ArticleRelations/accessoryFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA2B,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAwDtE;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,qBAGrF;IAAE,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAAE,qCAE/D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,qBAClD;IAAE,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAAE,qCAU/D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,qBACnD;IAAE,WAAW,CAAC,EAAE,mBAAmB,CAAA;CAAE,qCAqB/D"}
@@ -33,7 +33,8 @@ export declare function accessoryKey(serieNo: string, typeNo: string): string;
33
33
  export declare function readCells(item: any, isV4: boolean): Record<string, AccessoryCell>;
34
34
  /**
35
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.
36
+ * existing accessory keeps its checkbox. Each side's set no defaults while its quantity is set and clears with it -
37
+ * to the set the other side already uses, because the grid edits one set no per accessory.
37
38
  */
38
39
  export declare function applyCellChange(cells: Record<string, AccessoryCell>, accessory: {
39
40
  serieNo: string;
@@ -1 +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"}
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,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AAM,EAAE,OAAO,CAAC,CAS7E;AAED,0FAA0F;AAC1F,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,YAIjD"}
@@ -4,28 +4,35 @@ interface Props {
4
4
  idmService: string;
5
5
  catalogId?: string;
6
6
  serieId?: string;
7
+ /** Serie number of the serie being edited - an accessory of another one names its origin in the header. */
8
+ serieNo?: string;
7
9
  isV4: boolean;
8
10
  languages?: string[];
9
11
  /** Accessory columns of the serie, including the ones added in the editor but not referenced yet. */
10
12
  accessories: AdditionalItemRef[];
13
+ /** Quick filter of the module: shows only articles that have at least one accessory relation. */
14
+ onlyWithRelations?: boolean;
15
+ /** Drops the column of an accessory whose relations were deleted from the serie. */
16
+ onRemoved?: (key: string) => void;
11
17
  viewOnly?: boolean;
12
18
  }
13
19
  /**
14
20
  * Zusatzartikel of a serie: rows are its articles, the dynamic columns their accessories. A checked cell makes the
15
21
  * 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.
22
+ * The IDM numbers the mandatory and the optional groups independently (SET_NO 1-9), but a relation belongs to one
23
+ * set here: the grid has a single Set No dropdown per accessory and writes it to both sides, each keeping it only
24
+ * while it has a quantity. It is filled as soon as a quantity is (defaulting to set 1) and empty and disabled
25
+ * without any, because a set without a quantity has nothing to publish.
19
26
  *
20
27
  * The relations live on the articles themselves (ITEM.ADDITIONAL_ITEMS), so a row is an item and every edit goes
21
28
  * through the normal item endpoints.
22
29
  *
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.
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.
27
34
  */
28
- export declare const ArticleRelations: (({ idmService, catalogId, serieId, isV4, languages, accessories, viewOnly }: Props) => React.JSX.Element | null) & {
35
+ export declare const ArticleRelations: ((props: Props) => React.JSX.Element | null) & {
29
36
  displayName: string;
30
37
  };
31
38
  export default ArticleRelations;
@@ -1 +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"}
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;IACn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ACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CAw3BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
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;AAYjH,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,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,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,M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AAM,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;6CAuZzB,CAAC;AAEH,eAAe,WAAW,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,wFAmfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
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"}
@@ -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;AAKrE,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,qBAyMA"}
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,qBAmNA"}
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"}
@@ -6,6 +6,10 @@ export interface AdditionalItemRef {
6
6
  shortText?: {
7
7
  [language: string]: string;
8
8
  };
9
+ /** Name of the accessory's serie, sent only while that is not the serie being edited. */
10
+ serieName?: {
11
+ [language: string]: string;
12
+ };
9
13
  }
10
14
  /**
11
15
  * The accessory columns of the Zusatzartikel grid, fetched serie-wide from idm-service (rows are paged, so the
@@ -14,5 +18,6 @@ export interface AdditionalItemRef {
14
18
  export default function useAdditionalItemRefs(catalogId?: string, serieId?: string): {
15
19
  columns: AdditionalItemRef[];
16
20
  addColumns: (added: AdditionalItemRef[]) => void;
21
+ removeColumn: (key: string) => void;
17
22
  };
18
23
  //# sourceMappingURL=useAdditionalItemRefs.d.ts.map
@@ -1 +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
+ {"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;IAC3C,yFAAyF;IACzF,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;wBAiBnB,MAAM;EAK9C"}
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  /**
3
3
  * Zusatzartikel of the selected serie. The relations are catalog data on the articles themselves
4
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.
5
+ * a mandatory and an optional quantity and one IDM set no. The checkbox of the title bar reduces the rows to the
6
+ * articles that have at least one relation.
6
7
  */
7
8
  export declare const TableArticleRelations: (() => React.JSX.Element) & {
8
9
  displayName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;CAoDhC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableArticleRelations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAsBxC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;CAgEhC,CAAC"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA+BpD,eAAO,MAAM,aAAa;;CAwcxB,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,7 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.11.0-beta.1",
3
+ "version": "26.11.0-beta.11",
4
+ "description": "Ant Design backoffice shell: configuration plus the IDM and enricher editors.",
4
5
  "license": "COMMERCIAL",
5
6
  "devDependencies": {
6
7
  "@testing-library/jest-dom": "^6.5.0",
@@ -15,17 +16,17 @@
15
16
  "dependencies": {
16
17
  "@ant-design/icons": "6.1.0",
17
18
  "@babel/runtime": "7.24.7",
18
- "@crystaldesign/content-box": "26.11.0-beta.1",
19
- "@crystaldesign/content-item": "26.11.0-beta.1",
20
- "@crystaldesign/diva-core": "26.11.0-beta.1",
21
- "@crystaldesign/diva-utils": "26.11.0-beta.1",
22
- "@crystaldesign/media-upload": "26.11.0-beta.1",
23
- "@crystaldesign/rtf-editor": "26.11.0-beta.1",
24
- "@crystaldesign/spreadsheet": "26.11.0-beta.1",
19
+ "@crystaldesign/content-box": "26.11.0-beta.11",
20
+ "@crystaldesign/content-item": "26.11.0-beta.11",
21
+ "@crystaldesign/diva-core": "26.11.0-beta.11",
22
+ "@crystaldesign/diva-utils": "26.11.0-beta.11",
23
+ "@crystaldesign/media-upload": "26.11.0-beta.11",
24
+ "@crystaldesign/rtf-editor": "26.11.0-beta.11",
25
+ "@crystaldesign/spreadsheet": "26.11.0-beta.11",
25
26
  "@dnd-kit/core": "^6.1.0",
26
27
  "@dnd-kit/sortable": "^8.0.0",
27
28
  "@dnd-kit/utilities": "^3.2.2",
28
- "@google/genai": "^1.22.0",
29
+ "@google/genai": "^2.17.1",
29
30
  "@google/model-viewer": "3.5.0",
30
31
  "ag-charts-community": "^10.1.0",
31
32
  "ag-charts-react": "^10.1.0",
@@ -56,5 +57,5 @@
56
57
  },
57
58
  "module": "build/esm/index.js",
58
59
  "types": "./build/types/backoffice/src/index.d.ts",
59
- "gitHead": "1948c3a5e76d15f1a3fad311a5f7eef2824b7a11"
60
+ "gitHead": "42b4c00606dcbf4d1d647850bdcfff0545a314e1"
60
61
  }
@@ -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"}