forked from ukrbublik/react-awesome-query-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.js
More file actions
58 lines (51 loc) · 1.46 KB
/
default.js
File metadata and controls
58 lines (51 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export const settings = {
formatField: (field, parts, label2, fieldDefinition, config, isForDisplay) => {
if (isForDisplay)
return label2;
else
return field;
},
valueSourcesInfo: {
value: {},
},
fieldSeparator: ".",
fieldSeparatorDisplay: ".",
canReorder: true,
canRegroup: true,
canDeleteLocked: false,
canLeaveEmptyGroup: true,
shouldCreateEmptyGroup: false,
canShortMongoQuery: true,
removeEmptyGroupsOnLoad: true,
removeIncompleteRulesOnLoad: true,
removeInvalidMultiSelectValuesOnLoad: true,
setOpOnChangeField: ["keep", "default"], // 'default' (default if present), 'keep' (keep prev from last field), 'first', 'none'
groupOperators: ["some", "all", "none"],
defaultGroupConjunction: "AND",
// localization
locale: {
moment: "en",
},
valueLabel: "Value",
valuePlaceholder: "Value",
fieldLabel: "Field",
operatorLabel: "Operator",
funcLabel: "Function",
fieldPlaceholder: "Select field",
funcPlaceholder: "Select function",
operatorPlaceholder: "Select operator",
lockLabel: "Lock",
lockedLabel: "Locked",
deleteLabel: null,
addGroupLabel: "Add group",
addCaseLabel: "Add condition",
addDefaultCaseLabel: "Add default condition",
defaultCaseLabel: "Default:",
addRuleLabel: "Add rule",
addSubRuleLabel: "Add sub rule",
delGroupLabel: "",
notLabel: "Not",
valueSourcesPopupTitle: "Select value source",
removeRuleConfirmOptions: null,
removeGroupConfirmOptions: null,
};