@finos/legend-query-builder 4.15.0 → 4.15.1
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/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +4 -4
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +2 -1
- package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.d.ts.map +1 -1
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js +4 -4
- package/lib/components/result/tds/QueryBuilderTDSGridResult.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +5 -5
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +2 -2
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +3 -3
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +3 -3
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +7 -7
- package/package.json +17 -17
- package/src/components/QueryBuilderSideBar.tsx +11 -10
- package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +8 -2
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +1 -1
- package/src/components/result/tds/QueryBuilderTDSGridResult.tsx +11 -6
- package/src/components/shared/BasicValueSpecificationEditor.tsx +21 -15
- package/src/components/shared/CustomDatePicker.tsx +10 -17
- package/src/components/workflows/ClassQueryBuilder.tsx +6 -5
- package/src/components/workflows/MappingQueryBuilder.tsx +6 -5
@@ -1007,11 +1007,8 @@ const CustomDateInstanceValueEditor: React.FC<{
|
|
1007
1007
|
value: t.toString(),
|
1008
1008
|
label: t.toString(),
|
1009
1009
|
}))}
|
1010
|
-
onChange={(val: {
|
1011
|
-
|
1012
|
-
value: CUSTOM_DATE_OPTION_UNIT;
|
1013
|
-
}): void => {
|
1014
|
-
setUnitValue(val.value);
|
1010
|
+
onChange={(val: { label: string; value: string }): void => {
|
1011
|
+
setUnitValue(val.value as CUSTOM_DATE_OPTION_UNIT);
|
1015
1012
|
changeValue(
|
1016
1013
|
durationValue,
|
1017
1014
|
val.value,
|
@@ -1032,11 +1029,8 @@ const CustomDateInstanceValueEditor: React.FC<{
|
|
1032
1029
|
value: t.toString(),
|
1033
1030
|
label: t.toString(),
|
1034
1031
|
}))}
|
1035
|
-
onChange={(val: {
|
1036
|
-
|
1037
|
-
value: CUSTOM_DATE_OPTION_DIRECTION;
|
1038
|
-
}): void => {
|
1039
|
-
setDirectionValue(val.value);
|
1032
|
+
onChange={(val: { label: string; value: string }): void => {
|
1033
|
+
setDirectionValue(val.value as CUSTOM_DATE_OPTION_DIRECTION);
|
1040
1034
|
changeValue(
|
1041
1035
|
durationValue,
|
1042
1036
|
unitValue,
|
@@ -1059,11 +1053,10 @@ const CustomDateInstanceValueEditor: React.FC<{
|
|
1059
1053
|
label: t.toString(),
|
1060
1054
|
}),
|
1061
1055
|
)}
|
1062
|
-
onChange={(val: {
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
setReferenceMomentValueValue(val.value);
|
1056
|
+
onChange={(val: { label: string; value: string }): void => {
|
1057
|
+
setReferenceMomentValueValue(
|
1058
|
+
val.value as CUSTOM_DATE_OPTION_REFERENCE_MOMENT,
|
1059
|
+
);
|
1067
1060
|
changeValue(durationValue, unitValue, directionValue, val.value);
|
1068
1061
|
}}
|
1069
1062
|
value={{ value: referenceMomentValue, label: referenceMomentValue }}
|
@@ -1128,7 +1121,7 @@ const CustomFirstDayOfValueSpecificationEditor: React.FC<{
|
|
1128
1121
|
<div className="value-spec-editor__date-picker__custom-date">
|
1129
1122
|
<div className="value-spec-editor__date-picker__custom-date__input">
|
1130
1123
|
<CustomSelectorInput
|
1131
|
-
|
1124
|
+
inputRef={selectorRef}
|
1132
1125
|
placeholder="Choose a unit..."
|
1133
1126
|
className="value-spec-editor__date-picker__custom-date__input-dropdown value-spec-editor__date-picker__custom-date__input-dropdown--full"
|
1134
1127
|
options={Object.values(CUSTOM_DATE_FIRST_DAY_OF_UNIT).map((t) => ({
|
@@ -1197,7 +1190,7 @@ const CustomPreviousDayOfWeekValueSpecificationEditor: React.FC<{
|
|
1197
1190
|
<div className="value-spec-editor__date-picker__custom-date">
|
1198
1191
|
<div className="value-spec-editor__date-picker__custom-date__input">
|
1199
1192
|
<CustomSelectorInput
|
1200
|
-
|
1193
|
+
inputRef={selectorRef}
|
1201
1194
|
placeholder="Choose a day..."
|
1202
1195
|
className="value-spec-editor__date-picker__custom-date__input-dropdown value-spec-editor__date-picker__custom-date__input-dropdown--full"
|
1203
1196
|
options={Object.values(CUSTOM_DATE_DAY_OF_WEEK).map((t) => ({
|
@@ -90,8 +90,9 @@ const ClassQueryBuilderSetupPanelContent = observer(
|
|
90
90
|
const mappingFilterOption = createFilter({
|
91
91
|
ignoreCase: true,
|
92
92
|
ignoreAccents: false,
|
93
|
-
stringify: (option:
|
94
|
-
|
93
|
+
stringify: (option: {
|
94
|
+
data: PackageableElementOption<Mapping>;
|
95
|
+
}): string => option.data.value.path,
|
95
96
|
});
|
96
97
|
|
97
98
|
// runtime
|
@@ -124,9 +125,9 @@ const ClassQueryBuilderSetupPanelContent = observer(
|
|
124
125
|
const runtimeFilterOption = createFilter({
|
125
126
|
ignoreCase: true,
|
126
127
|
ignoreAccents: false,
|
127
|
-
stringify: (option: { value: Runtime }): string =>
|
128
|
-
option.value instanceof RuntimePointer
|
129
|
-
? option.value.packageableRuntime.value.path
|
128
|
+
stringify: (option: { data: { value: Runtime } }): string =>
|
129
|
+
option.data.value instanceof RuntimePointer
|
130
|
+
? option.data.value.packageableRuntime.value.path
|
130
131
|
: 'custom',
|
131
132
|
});
|
132
133
|
|
@@ -76,8 +76,9 @@ const MappingQueryBuilderSetupPanelContent = observer(
|
|
76
76
|
const mappingFilterOption = createFilter({
|
77
77
|
ignoreCase: true,
|
78
78
|
ignoreAccents: false,
|
79
|
-
stringify: (option:
|
80
|
-
|
79
|
+
stringify: (option: {
|
80
|
+
data: PackageableElementOption<Mapping>;
|
81
|
+
}): string => option.data.value.path,
|
81
82
|
});
|
82
83
|
|
83
84
|
// runtime
|
@@ -111,9 +112,9 @@ const MappingQueryBuilderSetupPanelContent = observer(
|
|
111
112
|
const runtimeFilterOption = createFilter({
|
112
113
|
ignoreCase: true,
|
113
114
|
ignoreAccents: false,
|
114
|
-
stringify: (option: { value: Runtime }): string =>
|
115
|
-
guaranteeType(option.value, RuntimePointer).packageableRuntime
|
116
|
-
.path,
|
115
|
+
stringify: (option: { data: { value: Runtime } }): string =>
|
116
|
+
guaranteeType(option.data.value, RuntimePointer).packageableRuntime
|
117
|
+
.value.path,
|
117
118
|
});
|
118
119
|
|
119
120
|
// class
|