@crystaldesign/diva-backoffice 26.14.0-beta.3 → 26.14.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=featureMeanings.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureMeanings.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/featureMeanings.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=featuresMeaningHint.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featuresMeaningHint.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/featuresMeaningHint.test.tsx"],"names":[],"mappings":""}
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ArticleReadiness } from '../../logic/readiness';
3
3
  type ArticleRow = Record<string, unknown>;
4
- /** The grid's notification setup (`SpreadsheetComponent`), so the action toasts look like the grid's own. */
5
- export declare const NOTIFICATION_CONFIG: {
6
- stack: {
7
- threshold: number;
8
- };
9
- showProgress: boolean;
10
- pauseOnHover: boolean;
11
- placement: "bottomRight";
12
- };
13
4
  /** What the buttons need to know about the current selection to decide whether they can start. */
14
5
  export interface BulkActionSelection {
15
6
  /** Number of marked rows — none disables every button. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/ArticleData/components/BulkActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,OAAO,EAAE,gBAAgB,EAAc,MAAM,uBAAuB,CAAC;AAErE,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAS1C,6GAA6G;AAC7G,eAAO,MAAM,mBAAmB;;;;;;;CAAyG,CAAC;AAE1I,kGAAkG;AAClG,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,kEAAkE;IAClE,YAAY,EAAE,MAAM,UAAU,EAAE,CAAC;IACjC,wFAAwF;IACxF,SAAS,EAAE,mBAAmB,CAAC;IAC/B,6GAA6G;IAC7G,SAAS,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,gBAAgB,CAAC;IACjD,sHAAsH;IACtH,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,gBAAgB,qBAwQnH"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/ArticleData/components/BulkActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,OAAO,EAAE,gBAAgB,EAAc,MAAM,uBAAuB,CAAC;AAGrE,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAS1C,kGAAkG;AAClG,MAAM,WAAW,mBAAmB;IAClC,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,gBAAgB;IACxB,kEAAkE;IAClE,YAAY,EAAE,MAAM,UAAU,EAAE,CAAC;IACjC,wFAAwF;IACxF,SAAS,EAAE,mBAAmB,CAAC;IAC/B,6GAA6G;IAC7G,SAAS,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,gBAAgB,CAAC;IACjD,sHAAsH;IACtH,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACnC;;;OAGG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/C;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,gBAAgB,qBAwQnH"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/ArticleData/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AA8DtE;;;;;;;;GAQG;AACH,iBAAS,WAAW,sBAmuBnB;;;;AAED,wBAAqC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/ArticleData/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AA+DtE;;;;;;;;GAQG;AACH,iBAAS,WAAW,sBAmuBnB;;;;AAED,wBAAqC"}
@@ -0,0 +1,10 @@
1
+ /** The grid's notification setup (`SpreadsheetComponent`), so a page's own toasts look like the grid's. */
2
+ export declare const NOTIFICATION_CONFIG: {
3
+ stack: {
4
+ threshold: number;
5
+ };
6
+ showProgress: boolean;
7
+ pauseOnHover: boolean;
8
+ placement: "bottomRight";
9
+ };
10
+ //# sourceMappingURL=notificationConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/CommonComponents/notificationConfig.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,eAAO,MAAM,mBAAmB;;;;;;;CAAyG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAkLnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Features.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,SAAS,EAA+B,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAiBvC,QAAA,MAAM,QAAQ;oBAGM,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CA8TnC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A common feature, as the idm-service returns it: of the global list "IDM Variantenarten" (`GET /features`) or of an
3
+ * organization's own list (`GET /{organizationId}/features`).
4
+ */
5
+ export interface CommonFeature {
6
+ featureNo?: string;
7
+ featureText?: Record<string, string | undefined>;
8
+ }
9
+ /** Which list a meaning comes from: the global list "IDM Variantenarten", or the organization's own list. */
10
+ export type FeatureMeaningSource = 'global' | 'organization';
11
+ /** The meaning of each feature number with a fixed meaning: its feature text per language (DE, EN, IT, FR) and its list. */
12
+ export type FeatureMeanings = Map<number, {
13
+ texts: Record<string, string | undefined>;
14
+ source: FeatureMeaningSource;
15
+ }>;
16
+ /** The meaning of one feature number in the UI language. */
17
+ export interface FeatureMeaning {
18
+ featureNo: number;
19
+ meaning: string;
20
+ source: FeatureMeaningSource;
21
+ }
22
+ /** The numbers IDM Living 4.x keeps free for a manufacturer's own features (DCC documentation, "Variantenarten"). */
23
+ export declare const IDM_LIVING_FREE_RANGE = "2300\u20132999";
24
+ /**
25
+ * The feature numbers with a fixed meaning from a list of common features; the global list "IDM Variantenarten" numbers
26
+ * its features like IDM Living 4.x. Free numbers ("Freies FEATURE") and entries without a number are left out.
27
+ */
28
+ export declare function buildFeatureMeanings(features: CommonFeature[], source: FeatureMeaningSource): FeatureMeanings;
29
+ /**
30
+ * The fixed meaning of a feature number in the given UI language (`de`, also as `de-CH` and the like), falling back to
31
+ * German, with the list it comes from; undefined for a free or unknown number and a value that is no number.
32
+ */
33
+ export declare function featureMeaning(meanings: FeatureMeanings | undefined, featureNo: unknown, language: string): FeatureMeaning | undefined;
34
+ /**
35
+ * The feature number meanings for a catalog of the organization: those of the global list "IDM Variantenarten", and for
36
+ * the numbers it leaves free the organization's own list. Each list loads once per session: the global one per idm-service,
37
+ * an organization's per idm-service and organization. A failed load gives no meanings from that list (the hint is only a
38
+ * help) and is retried on the next call.
39
+ */
40
+ export declare function loadFeatureMeanings(idmService: string, organizationId: string, jwt: string | undefined): Promise<FeatureMeanings>;
41
+ //# sourceMappingURL=featureMeanings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureMeanings.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/featureMeanings.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED,6GAA6G;AAC7G,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,cAAc,CAAC;AAE7D,4HAA4H;AAC5H,MAAM,MAAM,eAAe,GAAG,GAAG,CAAC,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,CAAC,CAAC;AAEvH,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,qHAAqH;AACrH,eAAO,MAAM,qBAAqB,mBAAc,CAAC;AAKjD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,eAAe,CAS7G;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAOtI;AAWD;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,eAAe,CAAC,CAOvI"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA2CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAykBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TablePackages/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AA4CpD;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;CAokBxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.14.0-beta.3",
3
+ "version": "26.14.0-beta.5",
4
4
  "description": "Ant Design backoffice shell (configuration modules), the Diva Data Engine component hosting the IDM and enricher editors, and the Produkt Onboarding component hosting the Assortment Manager.",
5
5
  "license": "COMMERCIAL",
6
6
  "devDependencies": {
@@ -16,16 +16,16 @@
16
16
  "dependencies": {
17
17
  "@ant-design/icons": "6.3.4",
18
18
  "@babel/runtime": "7.24.7",
19
- "@crystaldesign/classification": "26.14.0-beta.3",
20
- "@crystaldesign/content-box": "26.14.0-beta.3",
21
- "@crystaldesign/content-item": "26.14.0-beta.3",
22
- "@crystaldesign/diva-agent": "26.14.0-beta.3",
23
- "@crystaldesign/diva-core": "26.14.0-beta.3",
24
- "@crystaldesign/diva-utils": "26.14.0-beta.3",
25
- "@crystaldesign/mass-configurator": "26.14.0-beta.3",
26
- "@crystaldesign/media-upload": "26.14.0-beta.3",
27
- "@crystaldesign/rtf-editor": "26.14.0-beta.3",
28
- "@crystaldesign/spreadsheet": "26.14.0-beta.3",
19
+ "@crystaldesign/classification": "26.14.0-beta.5",
20
+ "@crystaldesign/content-box": "26.14.0-beta.5",
21
+ "@crystaldesign/content-item": "26.14.0-beta.5",
22
+ "@crystaldesign/diva-agent": "26.14.0-beta.5",
23
+ "@crystaldesign/diva-core": "26.14.0-beta.5",
24
+ "@crystaldesign/diva-utils": "26.14.0-beta.5",
25
+ "@crystaldesign/mass-configurator": "26.14.0-beta.5",
26
+ "@crystaldesign/media-upload": "26.14.0-beta.5",
27
+ "@crystaldesign/rtf-editor": "26.14.0-beta.5",
28
+ "@crystaldesign/spreadsheet": "26.14.0-beta.5",
29
29
  "@dnd-kit/core": "^6.1.0",
30
30
  "@dnd-kit/sortable": "^8.0.0",
31
31
  "@dnd-kit/utilities": "^3.2.2",
@@ -63,5 +63,5 @@
63
63
  "suiteName": "diva-backoffice",
64
64
  "outputDirectory": "./test-reports"
65
65
  },
66
- "gitHead": "b8182044116706b992a3be697f3cb083168ba850"
66
+ "gitHead": "dcd87033c3feb0022c23db95dd0df6ed16172c56"
67
67
  }