@crystaldesign/diva-backoffice 24.12.0-rc.7 → 24.12.0-rc.9
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
|
@@ -356,6 +356,7 @@ function useFullTextSearch(filters) {
|
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
function parseFilter(filters, prefilter) {
|
|
359
|
+
var _prefilter, _prefilter2;
|
|
359
360
|
var ors = [];
|
|
360
361
|
var ands = [];
|
|
361
362
|
var res = '';
|
|
@@ -424,14 +425,18 @@ function parseFilter(filters, prefilter) {
|
|
|
424
425
|
return "{".concat(field, ",").concat(type, ",").concat(value, "}");
|
|
425
426
|
}).join(','));
|
|
426
427
|
}
|
|
427
|
-
|
|
428
|
-
|
|
428
|
+
|
|
429
|
+
//remove enclosing brackets so it can be added to the existing filter
|
|
430
|
+
if ((_prefilter = prefilter) !== null && _prefilter !== void 0 && _prefilter.startsWith('[') && (_prefilter2 = prefilter) !== null && _prefilter2 !== void 0 && _prefilter2.endsWith(']')) {
|
|
431
|
+
prefilter = prefilter.slice(1, -1);
|
|
429
432
|
}
|
|
430
|
-
if (prefilter) {
|
|
431
|
-
|
|
433
|
+
if (prefilter && res) {
|
|
434
|
+
res = res + ',' + prefilter;
|
|
435
|
+
} else if (prefilter) {
|
|
436
|
+
res = prefilter;
|
|
432
437
|
}
|
|
433
438
|
if (res) {
|
|
434
|
-
|
|
439
|
+
res = '[' + res + ']';
|
|
435
440
|
}
|
|
436
441
|
return res;
|
|
437
442
|
}
|
|
@@ -17094,7 +17099,7 @@ var customSelect = "custom-select-ESUJX";
|
|
|
17094
17099
|
var customSelectOption = "custom-select-option-dUA7N";
|
|
17095
17100
|
var avatarWrapper = "avatar-wrapper-Vg-xe";
|
|
17096
17101
|
var selectTextWrapper = "select-text-wrapper-hPSZW";
|
|
17097
|
-
var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N {\n margin: 0px 12px;\n padding:
|
|
17102
|
+
var css_248z$l = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
|
|
17098
17103
|
styleInject(css_248z$l);
|
|
17099
17104
|
|
|
17100
17105
|
var Selector = function Selector(_ref) {
|
|
@@ -26428,8 +26433,7 @@ function useTableData (_ref) {
|
|
|
26428
26433
|
var toggleConfig = (_configuration$filter = configuration.filter) === null || _configuration$filter === void 0 ? void 0 : _configuration$filter.toggle;
|
|
26429
26434
|
var toggleFilter = {};
|
|
26430
26435
|
toggleConfig === null || toggleConfig === void 0 || toggleConfig.fields.forEach(function (f) {
|
|
26431
|
-
|
|
26432
|
-
return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', ((_toggleConfig$isAnd = toggleConfig.isAnd) !== null && _toggleConfig$isAnd !== void 0 ? _toggleConfig$isAnd : false) ? 0 : 1];
|
|
26436
|
+
return toggleFilter[f] = [toggleConfig.globalValue ? root.getGlobalValue(toggleConfig.globalValue) : true, 'eq', !toggleConfig.isAnd];
|
|
26433
26437
|
});
|
|
26434
26438
|
var defaultFilter = {};
|
|
26435
26439
|
(_configuration$filter2 = configuration.filter) === null || _configuration$filter2 === void 0 || (_configuration$filter2 = _configuration$filter2["default"]) === null || _configuration$filter2 === void 0 || _configuration$filter2.fields.forEach(function (f) {
|
|
@@ -26992,7 +26996,7 @@ function useTableData (_ref) {
|
|
|
26992
26996
|
}
|
|
26993
26997
|
var toggleFilter = {};
|
|
26994
26998
|
configuration.filter.toggle.fields.forEach(function (f) {
|
|
26995
|
-
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', configuration.filter.toggle.isAnd
|
|
26999
|
+
return toggleFilter[f] = [configuration.filter.toggle.globalValue ? root.getGlobalValue(configuration.filter.toggle.globalValue) : true, 'eq', !configuration.filter.toggle.isAnd];
|
|
26996
27000
|
});
|
|
26997
27001
|
var newGlobalFilter = _objectSpread$h(_objectSpread$h({}, globalFilter), {}, {
|
|
26998
27002
|
toggle: globalFilter.toggle ? undefined : toggleFilter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/StandardTable/useTableData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,EAAc,UAAU,EAA8B,MAAM,UAAU,CAAC;AAuBzG,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/StandardTable/useTableData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,EAAc,UAAU,EAA8B,MAAM,UAAU,CAAC;AAuBzG,MAAM,CAAC,OAAO,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CA+iBzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseServersideFilters.d.ts","sourceRoot":"","sources":["../../../../../src/utils/parseServersideFilters.ts"],"names":[],"mappings":"AACA,O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AAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,eAAe,UA2DnH;AAQD,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,EAAE,SAAS,CAAC,EAAE,MAAM,UA2FpF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.12.0-rc.
|
|
3
|
+
"version": "24.12.0-rc.9",
|
|
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": "24.12.0-rc.
|
|
19
|
-
"@crystaldesign/content-item": "24.12.0-rc.
|
|
20
|
-
"@crystaldesign/diva-core": "24.12.0-rc.
|
|
21
|
-
"@crystaldesign/diva-utils": "24.12.0-rc.
|
|
22
|
-
"@crystaldesign/media-upload": "24.12.0-rc.
|
|
23
|
-
"@crystaldesign/rtf-editor": "24.12.0-rc.
|
|
24
|
-
"@crystaldesign/spreadsheet": "24.12.0-rc.
|
|
18
|
+
"@crystaldesign/content-box": "24.12.0-rc.9",
|
|
19
|
+
"@crystaldesign/content-item": "24.12.0-rc.9",
|
|
20
|
+
"@crystaldesign/diva-core": "24.12.0-rc.9",
|
|
21
|
+
"@crystaldesign/diva-utils": "24.12.0-rc.9",
|
|
22
|
+
"@crystaldesign/media-upload": "24.12.0-rc.9",
|
|
23
|
+
"@crystaldesign/rtf-editor": "24.12.0-rc.9",
|
|
24
|
+
"@crystaldesign/spreadsheet": "24.12.0-rc.9",
|
|
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": "4f6977c9b6a78576cd6d8041773a17957bfc5fa9"
|
|
55
55
|
}
|