@izara_project/izara-shared-search-and-sort 1.0.5 → 1.0.7
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/index.js +0 -2
- package/package.json +1 -1
- package/src/DataFieldsSharedLib.js +10 -1
- package/src/FiltersSharedLib.js +0 -1
- package/src/LogicalStructureSharedLib.js +710 -101
- package/src/SearchSortSharedLib.js +40 -19
- package/src/ChangeLevelSharedLib.js +0 -610
package/index.js
CHANGED
|
@@ -19,13 +19,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
19
19
|
import SearchSortSharedLib from './src/SearchSortSharedLib.js';
|
|
20
20
|
import FiltersSharedLib from './src/FiltersSharedLib.js'
|
|
21
21
|
import DataFieldsSharedLib from './src/DataFieldsSharedLib.js'
|
|
22
|
-
import ChangeLevelSharedLib from './src/ChangeLevelSharedLib.js';
|
|
23
22
|
import LogicalStructureSharedLib from './src/LogicalStructureSharedLib.js';
|
|
24
23
|
|
|
25
24
|
export {
|
|
26
25
|
SearchSortSharedLib,
|
|
27
26
|
FiltersSharedLib,
|
|
28
27
|
DataFieldsSharedLib,
|
|
29
|
-
ChangeLevelSharedLib,
|
|
30
28
|
LogicalStructureSharedLib
|
|
31
29
|
}
|
package/package.json
CHANGED
|
@@ -35,6 +35,7 @@ async function createRequiredData(
|
|
|
35
35
|
requiredDataLinkStepObjects,
|
|
36
36
|
requiredDataLinkSteps,
|
|
37
37
|
values,
|
|
38
|
+
// getSchemaFn
|
|
38
39
|
) {
|
|
39
40
|
console.log('createRequiredData: ', {
|
|
40
41
|
objType,
|
|
@@ -43,6 +44,7 @@ async function createRequiredData(
|
|
|
43
44
|
perParentCombinations,
|
|
44
45
|
requiredDataLinkStepObjects,
|
|
45
46
|
values,
|
|
47
|
+
// getSchemaFn
|
|
46
48
|
});
|
|
47
49
|
|
|
48
50
|
let errorsObject = {};
|
|
@@ -73,6 +75,7 @@ async function createRequiredData(
|
|
|
73
75
|
perParentCombinations,
|
|
74
76
|
complexFilterCombinations,
|
|
75
77
|
values,
|
|
78
|
+
// getSchemaFn,
|
|
76
79
|
errorsObject,
|
|
77
80
|
errorsFound
|
|
78
81
|
);
|
|
@@ -266,6 +269,7 @@ async function createLinkPath(
|
|
|
266
269
|
perParentCombinations,
|
|
267
270
|
complexFilterCombinations,
|
|
268
271
|
values,
|
|
272
|
+
// getSchemaFn,
|
|
269
273
|
errorsObject,
|
|
270
274
|
errorsFound,
|
|
271
275
|
index = 0,
|
|
@@ -325,6 +329,7 @@ async function createLinkPath(
|
|
|
325
329
|
linkSteps,
|
|
326
330
|
requiredDataLinkStepObjects,
|
|
327
331
|
requiredDataLinkSteps,
|
|
332
|
+
// getSchemaFn,
|
|
328
333
|
errorsObject,
|
|
329
334
|
errorsFound
|
|
330
335
|
);
|
|
@@ -336,6 +341,7 @@ async function createLinkPath(
|
|
|
336
341
|
perParentCombinations,
|
|
337
342
|
complexFilterCombinations,
|
|
338
343
|
values,
|
|
344
|
+
// getSchemaFn,
|
|
339
345
|
errorsObject,
|
|
340
346
|
errorsFound,
|
|
341
347
|
index + 1
|
|
@@ -576,6 +582,7 @@ async function checkConditionsLink(
|
|
|
576
582
|
linkSteps,
|
|
577
583
|
requiredDataLinkStepObjects,
|
|
578
584
|
requiredDataLinkSteps,
|
|
585
|
+
// getSchemaFn,
|
|
579
586
|
errorsObject,
|
|
580
587
|
errorsFound
|
|
581
588
|
) {
|
|
@@ -588,6 +595,7 @@ async function checkConditionsLink(
|
|
|
588
595
|
linkSteps,
|
|
589
596
|
requiredDataLinkStepObjects,
|
|
590
597
|
requiredDataLinkSteps,
|
|
598
|
+
// getSchemaFn,
|
|
591
599
|
errorsObject,
|
|
592
600
|
errorsFound
|
|
593
601
|
});
|
|
@@ -660,6 +668,7 @@ async function checkConditionsLink(
|
|
|
660
668
|
perParentCombinations,
|
|
661
669
|
complexFilterCombinations,
|
|
662
670
|
values,
|
|
671
|
+
// getSchemaFn,
|
|
663
672
|
errorsObject,
|
|
664
673
|
errorsFound
|
|
665
674
|
);
|
|
@@ -967,7 +976,7 @@ function checkConditionsLinkStep(
|
|
|
967
976
|
canCombine: canCombine,
|
|
968
977
|
canPerParent: canPerParent,
|
|
969
978
|
canFilters: canFilters,
|
|
970
|
-
requestProperties: requestProperties //use when linkConfig has request but set no set perParent : false, use requestPropertyType: value
|
|
979
|
+
// requestProperties: requestProperties //use when linkConfig has request but set no set perParent : false, use requestPropertyType: value
|
|
971
980
|
}
|
|
972
981
|
}
|
|
973
982
|
|
package/src/FiltersSharedLib.js
CHANGED
|
@@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20
20
|
import { objectHash as hash } from '@izara_project/izara-shared-core'; //const hash = require('@izara_project/izara-shared-core').objectHash;
|
|
21
21
|
import lodash from 'lodash';
|
|
22
22
|
const { isEmpty } = lodash;
|
|
23
|
-
import complexFilterShared from '@izara_project/izara-core-library-complex-filter';
|
|
24
23
|
|
|
25
24
|
function validateFilterElement(
|
|
26
25
|
filterElements,
|