@crystaldesign/diva-backoffice 26.11.0-beta.2 → 26.11.0-beta.4
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 +529 -315
- 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/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/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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"automaticPublishingFilterModelParser.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMEnricherEditor/TablePackages/automaticPublishingFilterModelParser.test.ts"],"names":[],"mappings":""}
|
|
@@ -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,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A;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,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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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,wFAyfT,CAAC;AAIH,eAAe,KAAK,CAAC"}
|
|
@@ -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.4",
|
|
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.4",
|
|
19
|
+
"@crystaldesign/content-item": "26.11.0-beta.4",
|
|
20
|
+
"@crystaldesign/diva-core": "26.11.0-beta.4",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.11.0-beta.4",
|
|
22
|
+
"@crystaldesign/media-upload": "26.11.0-beta.4",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.11.0-beta.4",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.11.0-beta.4",
|
|
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": "666f93903a47a845a2a184b0b263e02533ddef4b"
|
|
60
60
|
}
|