@crystaldesign/diva-seller 25.5.0-beta.24 → 25.5.0-beta.26
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
|
@@ -10606,6 +10606,12 @@ function FieldSelection (_ref) {
|
|
|
10606
10606
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
10607
10607
|
search = _useState10[0],
|
|
10608
10608
|
setSearch = _useState10[1];
|
|
10609
|
+
useEffect(function () {
|
|
10610
|
+
setSelectedFiltered(selectedFields);
|
|
10611
|
+
if (search) {
|
|
10612
|
+
filterFields(search);
|
|
10613
|
+
}
|
|
10614
|
+
}, [selectedFields]);
|
|
10609
10615
|
var remove = function remove(index) {
|
|
10610
10616
|
var newSelectedFiltered = _toConsumableArray(selectedFiltered);
|
|
10611
10617
|
var removed = newSelectedFiltered.splice(index, 1);
|
|
@@ -10634,15 +10640,18 @@ function FieldSelection (_ref) {
|
|
|
10634
10640
|
};
|
|
10635
10641
|
var onSearch = function onSearch(e) {
|
|
10636
10642
|
setSearch(e.target.value);
|
|
10643
|
+
filterFields(e.target.value);
|
|
10644
|
+
};
|
|
10645
|
+
var filterFields = function filterFields(text) {
|
|
10637
10646
|
setSelectedFiltered(selectedFields.filter(function (s) {
|
|
10638
|
-
return getDisplayText(s, t).toLocaleLowerCase().includes(
|
|
10647
|
+
return getDisplayText(s, t).toLocaleLowerCase().includes(text.toLocaleLowerCase());
|
|
10639
10648
|
}));
|
|
10640
10649
|
setAllFiltered(all.filter(function (f) {
|
|
10641
10650
|
return !selectedFields.includes(f);
|
|
10642
10651
|
}).filter(function (s) {
|
|
10643
10652
|
return (s.custom == true ? t("productcreator.fields.".concat(s.field, ".name"), {
|
|
10644
10653
|
defaultValue: s.field
|
|
10645
|
-
}) : getDisplayText(s, t)).toLocaleLowerCase().includes(
|
|
10654
|
+
}) : getDisplayText(s, t)).toLocaleLowerCase().includes(text.toLocaleLowerCase());
|
|
10646
10655
|
}));
|
|
10647
10656
|
};
|
|
10648
10657
|
return /*#__PURE__*/jsxs("div", {
|
package/build/types/seller/src/components/ProductCreator/tabs/VariantTable/FieldSelection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldSelection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/FieldSelection.tsx"],"names":[],"mappings":"AAUA,OAAO,
|
|
1
|
+
{"version":3,"file":"FieldSelection.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/ProductCreator/tabs/VariantTable/FieldSelection.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAK3G,MAAM,CAAC,OAAO,WAAW,EACvB,oBAAyB,EACzB,UAAe,EACf,cAAmB,EACnB,SAAc,EACd,WAAW,GACZ,EAAE;IACD,cAAc,CAAC,EAAE,KAAK,EAAE,CAAC;IACzB,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC7C,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;CACzC,qBAkIA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.5.0-beta.
|
|
3
|
+
"version": "25.5.0-beta.26",
|
|
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.5.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "25.5.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.5.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "25.5.0-beta.26",
|
|
33
|
+
"@crystaldesign/products-component": "25.5.0-beta.26",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.5.0-beta.26",
|
|
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": "bb719db1ab379e72b2a06f5e4539db9a8207fe63"
|
|
47
47
|
}
|