@crystaldesign/diva-seller 25.14.0-beta.47 → 25.14.0-beta.49
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
CHANGED
|
@@ -11405,6 +11405,7 @@ function VariantTable (_ref) {
|
|
|
11405
11405
|
accessor: f.field,
|
|
11406
11406
|
customRenderer: getCustomRenderer(classMap[f.field]),
|
|
11407
11407
|
sortable: true,
|
|
11408
|
+
dataType: f.dataType,
|
|
11408
11409
|
editable: !f.readOnly,
|
|
11409
11410
|
hidden: f.hidden
|
|
11410
11411
|
});
|
|
@@ -11416,6 +11417,7 @@ function VariantTable (_ref) {
|
|
|
11416
11417
|
accessor: 'customData.' + f.field,
|
|
11417
11418
|
customRenderer: getCustomRenderer(additionalBaseFields[f.field]),
|
|
11418
11419
|
sortable: true,
|
|
11420
|
+
dataType: f.dataType,
|
|
11419
11421
|
editable: !f.readOnly,
|
|
11420
11422
|
hidden: f.hidden
|
|
11421
11423
|
});
|
|
@@ -11424,6 +11426,7 @@ function VariantTable (_ref) {
|
|
|
11424
11426
|
label: getDisplayText(f, t),
|
|
11425
11427
|
accessor: f.field + '.name',
|
|
11426
11428
|
type: f.type,
|
|
11429
|
+
dataType: f.dataType,
|
|
11427
11430
|
sortable: true,
|
|
11428
11431
|
editable: !f.readOnly,
|
|
11429
11432
|
hidden: f.hidden
|
|
@@ -11434,6 +11437,7 @@ function VariantTable (_ref) {
|
|
|
11434
11437
|
label: getDisplayText(myfield, t),
|
|
11435
11438
|
accessor: myfield.field,
|
|
11436
11439
|
type: myfield.type,
|
|
11440
|
+
dataType: myfield.dataType,
|
|
11437
11441
|
sortable: false,
|
|
11438
11442
|
editable: !myfield.readOnly,
|
|
11439
11443
|
preUpdateData: function preUpdateData(value, row) {
|
|
@@ -11447,6 +11451,7 @@ function VariantTable (_ref) {
|
|
|
11447
11451
|
accessor: f.field,
|
|
11448
11452
|
type: f.type,
|
|
11449
11453
|
sortable: true,
|
|
11454
|
+
dataType: f.dataType,
|
|
11450
11455
|
editable: !f.readOnly,
|
|
11451
11456
|
hidden: f.hidden
|
|
11452
11457
|
});
|
|
@@ -11461,6 +11466,7 @@ function VariantTable (_ref) {
|
|
|
11461
11466
|
accessor: f.field,
|
|
11462
11467
|
type: f.type,
|
|
11463
11468
|
sortable: true,
|
|
11469
|
+
dataType: f.dataType,
|
|
11464
11470
|
hidden: f.hideInSelection || f.hidden,
|
|
11465
11471
|
editable: !f.readOnly,
|
|
11466
11472
|
maxLength: (_f$maxLength = f.maxLength) !== null && _f$maxLength !== void 0 ? _f$maxLength : undefined
|
|
@@ -13047,7 +13053,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
13047
13053
|
for (var j = 0; j < allBaseFields.length; j++) {
|
|
13048
13054
|
var field = allBaseFields[j].field;
|
|
13049
13055
|
var custom = allBaseFields[j].custom;
|
|
13050
|
-
if (field == 'shortDescription' || field == '
|
|
13056
|
+
if (field == 'shortDescription' || field == 'customData') {
|
|
13051
13057
|
//updated shortDescription as last value
|
|
13052
13058
|
continue;
|
|
13053
13059
|
} else if (field == 'discountedPrice' && (newVariant === null || newVariant === void 0 ? void 0 : newVariant['percentageDiscount']) === 0 && (newVariant === null || newVariant === void 0 ? void 0 : newVariant[field]) === undefined) {
|
|
@@ -13070,11 +13076,7 @@ function updateVariants(prevState, currentState, configurationData, baseDataFiel
|
|
|
13070
13076
|
var prevValue = getData(path, variant);
|
|
13071
13077
|
var newValue = getData(path, newVariant);
|
|
13072
13078
|
if (prevValue !== newValue) {
|
|
13073
|
-
|
|
13074
|
-
setData(path, [variant.organizationId], finalVariant);
|
|
13075
|
-
} else {
|
|
13076
|
-
setData(path, [], finalVariant);
|
|
13077
|
-
}
|
|
13079
|
+
setData(path, newValue, finalVariant);
|
|
13078
13080
|
}
|
|
13079
13081
|
} else if (field.includes('.')) {
|
|
13080
13082
|
var _currentState$modifie2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKtH,MAAM,CAAC,OAAO,WAAW,EACvB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,GACb,EAAE;IACD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;IACzB,iBAAiB,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC1F,oBAAoB,EAAE;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAKtH,MAAM,CAAC,OAAO,WAAW,EACvB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,SAAS,EACT,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,GACb,EAAE;IACD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;IACzB,iBAAiB,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE;QACT,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC1F,oBAAoB,EAAE;QACpB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,qBAmLA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.14.0-beta.
|
|
3
|
+
"version": "25.14.0-beta.49",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-dom": "^18.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@crystaldesign/analytics": "25.14.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "25.14.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.14.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "25.14.0-beta.49",
|
|
33
|
+
"@crystaldesign/products-component": "25.14.0-beta.49",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.14.0-beta.49",
|
|
35
35
|
"@emotion/react": "^11.4.1",
|
|
36
36
|
"@emotion/styled": "^11.3.0",
|
|
37
37
|
"@mui/icons-material": "^6.1.5",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"types": "./build/types/seller/src/index.d.ts",
|
|
45
45
|
"module": "build/esm/index.js",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "95d60504c9597fbc66fc14a46a697e9bb7475e93"
|
|
47
47
|
}
|