@crystaldesign/diva-backoffice 25.3.0-beta.37 → 25.3.0-beta.39
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 +10 -14
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/OptionCombinationsExpandedEditor.d.ts +4 -4
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/OptionCombinationsExpandedEditor.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
|
@@ -30284,7 +30284,7 @@ function useModule$1 (currentModules) {
|
|
|
30284
30284
|
children: t('backoffice.menu.items.label.IDMEnricherEditorTablePriceLists')
|
|
30285
30285
|
})
|
|
30286
30286
|
}];
|
|
30287
|
-
}, [packageId]);
|
|
30287
|
+
}, [packageId, selectedPackage, searchParams]);
|
|
30288
30288
|
if (!packageId) throw new Error('packageId is required');
|
|
30289
30289
|
var updateNavigationModule = useCallback(function (currentPackage) {
|
|
30290
30290
|
var modules = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : currentModules;
|
|
@@ -36693,14 +36693,7 @@ function ActionForm(_ref) {
|
|
|
36693
36693
|
|
|
36694
36694
|
function parseMultipleValues(value) {
|
|
36695
36695
|
if (!value) return [];
|
|
36696
|
-
|
|
36697
|
-
// Split by comma and trim whitespace
|
|
36698
|
-
var actionStrings = value.split(',').map(function (s) {
|
|
36699
|
-
return s.trim();
|
|
36700
|
-
}).filter(function (s) {
|
|
36701
|
-
return s;
|
|
36702
|
-
});
|
|
36703
|
-
return actionStrings.map(function (actionString) {
|
|
36696
|
+
return value.map(function (actionString) {
|
|
36704
36697
|
return parseValue(actionString);
|
|
36705
36698
|
});
|
|
36706
36699
|
}
|
|
@@ -36749,7 +36742,7 @@ function parseValue(value) {
|
|
|
36749
36742
|
function createMultipleValueString(valuesArray) {
|
|
36750
36743
|
return valuesArray.map(function (values) {
|
|
36751
36744
|
return createValueString(values);
|
|
36752
|
-
})
|
|
36745
|
+
});
|
|
36753
36746
|
}
|
|
36754
36747
|
function OptionCombinationsExpandedEditor(_ref) {
|
|
36755
36748
|
var value = _ref.value,
|
|
@@ -36809,7 +36802,7 @@ function OptionCombinationsExpandedEditor(_ref) {
|
|
|
36809
36802
|
var handleSubmit = useCallback(function () {
|
|
36810
36803
|
if (actions.length === 0) {
|
|
36811
36804
|
// If there are no actions, set the value to empty string
|
|
36812
|
-
onValueChange(
|
|
36805
|
+
onValueChange([]);
|
|
36813
36806
|
} else {
|
|
36814
36807
|
// Otherwise, create a comma-separated string of actions
|
|
36815
36808
|
var newValue = createMultipleValueString(actions);
|
|
@@ -37009,11 +37002,13 @@ function OptionCombinations(_ref) {
|
|
|
37009
37002
|
cellDataType: 'text',
|
|
37010
37003
|
customParams: {
|
|
37011
37004
|
expandedEditor: OptionCombinationsExpandedEditor
|
|
37012
|
-
}
|
|
37005
|
+
},
|
|
37006
|
+
defaultValue: []
|
|
37013
37007
|
}] : decision.decisionType == 3 ? [{
|
|
37014
37008
|
headerName: 'backoffice.idmCatalog.optionCombinations.label.actions',
|
|
37015
37009
|
field: 'actions',
|
|
37016
|
-
cellDataType: 'text'
|
|
37010
|
+
cellDataType: 'text',
|
|
37011
|
+
defaultValue: []
|
|
37017
37012
|
}] : []), [{
|
|
37018
37013
|
headerName: 'backoffice.idmCatalogEditor.general.label.sequenceNo',
|
|
37019
37014
|
field: 'sequence',
|
|
@@ -37059,7 +37054,8 @@ function OptionCombinations(_ref) {
|
|
|
37059
37054
|
field: 'optionsSetRefs',
|
|
37060
37055
|
hide: true,
|
|
37061
37056
|
lockVisible: true,
|
|
37062
|
-
suppressColumnsToolPanel: true
|
|
37057
|
+
suppressColumnsToolPanel: true,
|
|
37058
|
+
defaultValue: []
|
|
37063
37059
|
}])
|
|
37064
37060
|
};
|
|
37065
37061
|
}, [apiInterface, decision, i18n.language, removeFeature, addFeature]);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormValues } from './ActionForm';
|
|
3
|
-
export declare function parseMultipleValues(value: string): Partial<FormValues>[];
|
|
3
|
+
export declare function parseMultipleValues(value: string[]): Partial<FormValues>[];
|
|
4
4
|
export declare function parseValue(value: string): Partial<FormValues>;
|
|
5
|
-
export declare function createMultipleValueString(valuesArray: FormValues[]): string;
|
|
5
|
+
export declare function createMultipleValueString(valuesArray: FormValues[]): string[];
|
|
6
6
|
interface OptionCombinationsExpandedEditorProps {
|
|
7
|
-
value: string;
|
|
8
|
-
onValueChange: (value: string) => void;
|
|
7
|
+
value: string[];
|
|
8
|
+
onValueChange: (value: string[]) => void;
|
|
9
9
|
onClose: () => void;
|
|
10
10
|
}
|
|
11
11
|
export declare function OptionCombinationsExpandedEditor({ value, onValueChange, onClose }: OptionCombinationsExpandedEditorProps): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionCombinationsExpandedEditor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/OptionCombinationsExpandedEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,OAAO,EAAc,UAAU,EAAqB,MAAM,cAAc,CAAC;AAGzE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"OptionCombinationsExpandedEditor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/OptionCombinationsExpandedEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAe9D,OAAO,EAAc,UAAU,EAAqB,MAAM,cAAc,CAAC;AAGzE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,CAI1E;AAGD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAmC7D;AAGD,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAE7E;AAED,UAAU,qCAAqC;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,gCAAgC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,qCAAqC,qBAkIxH"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC;CAC1D,qBAkLA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.3.0-beta.
|
|
3
|
+
"version": "25.3.0-beta.39",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "5.4.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "25.3.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "25.3.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.3.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.3.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.3.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.3.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.3.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.3.0-beta.39",
|
|
19
|
+
"@crystaldesign/content-item": "25.3.0-beta.39",
|
|
20
|
+
"@crystaldesign/diva-core": "25.3.0-beta.39",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.3.0-beta.39",
|
|
22
|
+
"@crystaldesign/media-upload": "25.3.0-beta.39",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.3.0-beta.39",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.3.0-beta.39",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "1be3622cfdd2a736f19dd91a608975248338915b"
|
|
55
55
|
}
|