@finos/legend-query-builder 4.14.40 → 4.14.43
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -5
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +5 -10
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +3 -35
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +1 -11
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.js +6 -2
- package/lib/components/filter/QueryBuilderFilterPanel.js.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts +11 -9
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +160 -143
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +0 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +0 -8
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +4 -3
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +2 -2
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js +3 -9
- package/lib/stores/milestoning/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts +1 -0
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +48 -0
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/package.json +8 -8
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +46 -60
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +3 -53
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +19 -116
- package/src/components/filter/QueryBuilderFilterPanel.tsx +13 -5
- package/src/components/shared/BasicValueSpecificationEditor.tsx +299 -285
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +0 -11
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +2 -2
- package/src/stores/filter/QueryBuilderFilterState.ts +6 -3
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -2
- package/src/stores/milestoning/QueryBuilderMilestoningState.ts +7 -11
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +63 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderFilterPanel.js","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE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EvC,WAAW,CAAC,OAAO,IAAI,CACtB,KAAC,qBAAqB,IACpB,IAAI,EAAC,wBAAwB,EAC7B,WAAW,EAAC,+BAA+B,GAC3C,CACH,EACA,CAAC,WAAW,CAAC,OAAO,IAAI,CACvB,8BACE,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA2C,EACnC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EACvC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,6BAA6B,CAAC,GACnD,EACF,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC/D,CACJ,EACA,WAAW,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,CACtC,cACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,0BAA0B,YAEhC,mBAAK,GACyB,GAC5B,CACP,IACa,GACH,IACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderFilterPanel.js","sourceRoot":"","sources":["../../../src/components/filter/QueryBuilderFilterPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAGL,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,UAAU,EACV,SAAS,EACT,aAAa,EACb,UAAU,EACV,aAAa,EACb,QAAQ,EACR,cAAc,EACd,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,6BAA6B,EAC7B,mBAAmB,EACnB,YAAY,EAC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B,GAC3C,CACH,EACA,CAAC,WAAW,CAAC,OAAO,IAAI,CACvB,8BACE,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA2C,EACnC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EACvC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,6BAA6B,CAAC,GACnD,EACF,KAAC,sBAAsB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,IAC/D,CACJ,EACA,WAAW,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,CACtC,cACE,GAAG,EAAE,YAAY,EACjB,SAAS,EAAC,sDAAsD,YAEhE,KAAC,6BAA6B,IAC5B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,2CAA2C,EACrD,KAAK,EAAC,0BAA0B,YAEhC,mBAAK,GACyB,GAC5B,CACP,IACa,GACH,IACX,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,10 +13,11 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
/// <reference types="
|
16
|
+
/// <reference types="lodash" resolution-mode="require"/>
|
17
17
|
import { type TooltipPlacement } from '@finos/legend-art';
|
18
18
|
import { type Type, type ValueSpecification, type PureModel, VariableExpression, type ObserverContext } from '@finos/legend-graph';
|
19
19
|
import { type DebouncedFunc, type GeneratorFn } from '@finos/legend-shared';
|
20
|
+
import React from 'react';
|
20
21
|
type TypeCheckOption = {
|
21
22
|
expectedType: Type;
|
22
23
|
/**
|
@@ -37,13 +38,19 @@ export declare const QUERY_BUILDER_VARIABLE_DND_TYPE = "VARIABLE";
|
|
37
38
|
export interface QueryBuilderVariableDragSource {
|
38
39
|
variable: VariableExpression;
|
39
40
|
}
|
41
|
+
interface BasicValueSpecificationEditorSelectorConfig {
|
42
|
+
values: string[] | undefined;
|
43
|
+
isLoading: boolean;
|
44
|
+
reloadValues: DebouncedFunc<(inputValue: string) => GeneratorFn<void>> | undefined;
|
45
|
+
cleanUpReloadValues?: () => void;
|
46
|
+
}
|
40
47
|
/**
|
41
48
|
* TODO we should pass in the props `resetValueSpecification`. Reset
|
42
49
|
* should be part of this editor. Also through here we can call `observe_` accordingly.
|
43
50
|
*
|
44
51
|
* See https://github.com/finos/legend-studio/pull/1021
|
45
52
|
*/
|
46
|
-
export declare const BasicValueSpecificationEditor:
|
53
|
+
export declare const BasicValueSpecificationEditor: React.ForwardRefExoticComponent<{
|
47
54
|
valueSpecification: ValueSpecification;
|
48
55
|
graph: PureModel;
|
49
56
|
obseverContext: ObserverContext;
|
@@ -52,12 +59,7 @@ export declare const BasicValueSpecificationEditor: import("react").ForwardRefEx
|
|
52
59
|
setValueSpecification: (val: ValueSpecification) => void;
|
53
60
|
resetValue: () => void;
|
54
61
|
isConstant?: boolean;
|
55
|
-
selectorConfig?:
|
56
|
-
|
57
|
-
isLoading: boolean;
|
58
|
-
reloadValues: DebouncedFunc<(inputValue: string) => GeneratorFn<void>> | undefined;
|
59
|
-
cleanUpReloadValues?: () => void;
|
60
|
-
} | undefined;
|
61
|
-
} & import("react").RefAttributes<HTMLInputElement>>;
|
62
|
+
selectorConfig?: BasicValueSpecificationEditorSelectorConfig | undefined;
|
63
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
62
64
|
export {};
|
63
65
|
//# sourceMappingURL=BasicValueSpecificationEditor.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BasicValueSpecificationEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;
|
1
|
+
{"version":3,"file":"BasicValueSpecificationEditor.d.ts","sourceRoot":"","sources":["../../../src/components/shared/BasicValueSpecificationEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAMH,OAAO,EACL,KAAK,gBAAgB,EAgBtB,MAAM,mBAAmB,CAAC;AAC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fragment } from "react/jsx-run
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { useApplicationStore } from '@finos/legend-application';
|
18
|
-
import { Tooltip, DollarIcon, clsx, InfoCircleIcon, RefreshIcon, CheckSquareIcon, SquareIcon, CustomSelectorInput, SaveIcon, PencilIcon, DragPreviewLayer,
|
19
|
-
import { PrimitiveInstanceValue, CollectionInstanceValue, EnumValueInstanceValue, INTERNAL__PropagatedValue, SimpleFunctionExpression, VariableExpression, EnumValueExplicitReference, PrimitiveType, PRIMITIVE_TYPE, GenericTypeExplicitReference, GenericType, Enumeration,
|
20
|
-
import { guaranteeNonNullable, isNonNullable,
|
17
|
+
import { DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, useApplicationStore, } from '@finos/legend-application';
|
18
|
+
import { Tooltip, DollarIcon, clsx, InfoCircleIcon, RefreshIcon, CheckSquareIcon, SquareIcon, CustomSelectorInput, SaveIcon, PencilIcon, DragPreviewLayer, CalculateIcon, InputWithInlineValidation, } from '@finos/legend-art';
|
19
|
+
import { PrimitiveInstanceValue, CollectionInstanceValue, EnumValueInstanceValue, INTERNAL__PropagatedValue, SimpleFunctionExpression, VariableExpression, EnumValueExplicitReference, PrimitiveType, PRIMITIVE_TYPE, GenericTypeExplicitReference, GenericType, Enumeration, getMultiplicityDescription, matchFunctionName, isSubType, } from '@finos/legend-graph';
|
20
|
+
import { guaranteeNonNullable, isNonNullable, guaranteeIsNumber, csvStringify, guaranteeType, isNonEmptyString, parseCSVString, uniq, } from '@finos/legend-shared';
|
21
21
|
import { flowResult } from 'mobx';
|
22
22
|
import { observer } from 'mobx-react-lite';
|
23
|
-
import { forwardRef, useEffect, useImperativeHandle, useRef, useState, } from 'react';
|
23
|
+
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState, } from 'react';
|
24
24
|
import { instanceValue_setValue, instanceValue_setValues, } from '../../stores/shared/ValueSpecificationModifierHelper.js';
|
25
25
|
import { CustomDatePicker } from './CustomDatePicker.js';
|
26
26
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../graph/QueryBuilderMetaModelConst.js';
|
27
27
|
import { isValidInstanceValue, simplifyValueExpression, } from '../../stores/QueryBuilderValueSpecificationHelper.js';
|
28
28
|
import { evaluate } from 'mathjs';
|
29
29
|
import { isUsedDateFunctionSupportedInFormMode } from '../../stores/QueryBuilderStateBuilder.js';
|
30
|
+
import { convertTextToPrimitiveInstanceValue, getValueSpecificationStringValue, } from '../../stores/shared/ValueSpecificationEditorHelper.js';
|
30
31
|
export const VariableInfoTooltip = (props) => {
|
31
32
|
const { variable, children, placement } = props;
|
32
33
|
const type = variable.genericType?.value.rawType;
|
@@ -227,97 +228,164 @@ const stringifyValue = (values) => {
|
|
227
228
|
.filter(isNonNullable),
|
228
229
|
]).trim();
|
229
230
|
};
|
230
|
-
|
231
|
-
* NOTE: We attempt to be less disruptive here by not throwing errors left and right, instead
|
232
|
-
* we silently remove values which are not valid or parsable. But perhaps, we can consider
|
233
|
-
* passing in logger or notifier to show give the users some idea of what went wrong instead
|
234
|
-
* of silently swallow parts of their inputs like this.
|
235
|
-
*/
|
236
|
-
const setCollectionValue = (valueSpecification, expectedType, value, obseverContext) => {
|
237
|
-
if (value.trim().length === 0) {
|
238
|
-
instanceValue_setValues(valueSpecification, [], obseverContext);
|
239
|
-
return;
|
240
|
-
}
|
241
|
-
let result = [];
|
242
|
-
const parseData = parseCSVString(value);
|
243
|
-
if (!parseData) {
|
244
|
-
return;
|
245
|
-
}
|
231
|
+
const getPlaceHolder = (expectedType) => {
|
246
232
|
if (expectedType instanceof PrimitiveType) {
|
247
233
|
switch (expectedType.path) {
|
248
|
-
case PRIMITIVE_TYPE.STRING: {
|
249
|
-
result = uniq(parseData)
|
250
|
-
.map((item) => {
|
251
|
-
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
|
252
|
-
instanceValue_setValues(primitiveInstanceValue, [item.toString()], obseverContext);
|
253
|
-
return primitiveInstanceValue;
|
254
|
-
})
|
255
|
-
.filter(isNonNullable);
|
256
|
-
break;
|
257
|
-
}
|
258
|
-
case PRIMITIVE_TYPE.NUMBER:
|
259
|
-
case PRIMITIVE_TYPE.FLOAT:
|
260
|
-
case PRIMITIVE_TYPE.DECIMAL:
|
261
|
-
case PRIMITIVE_TYPE.INTEGER: {
|
262
|
-
result = uniq(parseData
|
263
|
-
.filter((val) => !isNaN(Number(val)))
|
264
|
-
.map((val) => Number(val)))
|
265
|
-
.map((item) => {
|
266
|
-
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
|
267
|
-
instanceValue_setValues(primitiveInstanceValue, [item], obseverContext);
|
268
|
-
return primitiveInstanceValue;
|
269
|
-
})
|
270
|
-
.filter(isNonNullable);
|
271
|
-
break;
|
272
|
-
}
|
273
234
|
case PRIMITIVE_TYPE.DATE:
|
274
|
-
case PRIMITIVE_TYPE.STRICTDATE:
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
.map((item) => {
|
279
|
-
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
|
280
|
-
instanceValue_setValues(primitiveInstanceValue, [item], obseverContext);
|
281
|
-
return primitiveInstanceValue;
|
282
|
-
})
|
283
|
-
.filter(isNonNullable);
|
284
|
-
break;
|
285
|
-
}
|
286
|
-
case PRIMITIVE_TYPE.DATETIME: {
|
287
|
-
result = uniq(parseData
|
288
|
-
.filter((val) => (!isNaN(Date.parse(val)) && new Date(val).getTime()) ||
|
289
|
-
(val.includes('%') &&
|
290
|
-
!isNaN(Date.parse(val.slice(1))) &&
|
291
|
-
new Date(val.slice(1)).getTime()))
|
292
|
-
.map((val) => val.trim()))
|
293
|
-
.map((item) => {
|
294
|
-
const primitiveInstanceValue = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(expectedType)));
|
295
|
-
instanceValue_setValues(primitiveInstanceValue, [item], obseverContext);
|
296
|
-
return primitiveInstanceValue;
|
297
|
-
})
|
298
|
-
.filter(isNonNullable);
|
299
|
-
break;
|
300
|
-
}
|
235
|
+
case PRIMITIVE_TYPE.STRICTDATE:
|
236
|
+
return 'yyyy-mm-dd';
|
237
|
+
case PRIMITIVE_TYPE.DATETIME:
|
238
|
+
return 'yyyy-mm-ddThh:mm:ss';
|
301
239
|
default:
|
302
|
-
|
303
|
-
return;
|
240
|
+
return 'Add';
|
304
241
|
}
|
305
242
|
}
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
243
|
+
return 'Add';
|
244
|
+
};
|
245
|
+
const PrimitiveCollectionInstanceValueEditor = observer((props) => {
|
246
|
+
const { valueSpecification, expectedType, saveEdit, selectorConfig, observerContext, } = props;
|
247
|
+
// local state and variables
|
248
|
+
const applicationStore = useApplicationStore();
|
249
|
+
const inputRef = useRef(null);
|
250
|
+
const [inputValue, setInputValue] = useState('');
|
251
|
+
const [inputValueIsError, setInputValueIsError] = useState(false);
|
252
|
+
const [selectedOptions, setSelectedOptions] = useState(valueSpecification.values
|
253
|
+
.map((valueSpec) => getValueSpecificationStringValue(valueSpec))
|
254
|
+
.filter(isNonEmptyString)
|
255
|
+
.map((value) => ({
|
256
|
+
label: value,
|
257
|
+
value,
|
258
|
+
})));
|
259
|
+
// typehead search setup
|
260
|
+
const isTypeaheadSearchEnabled = expectedType === PrimitiveType.STRING && Boolean(selectorConfig);
|
261
|
+
const reloadValuesFunc = isTypeaheadSearchEnabled
|
262
|
+
? selectorConfig?.reloadValues
|
263
|
+
: undefined;
|
264
|
+
const cleanUpReloadValuesFunc = isTypeaheadSearchEnabled
|
265
|
+
? selectorConfig?.cleanUpReloadValues
|
266
|
+
: undefined;
|
267
|
+
const isLoading = isTypeaheadSearchEnabled
|
268
|
+
? selectorConfig?.isLoading
|
269
|
+
: undefined;
|
270
|
+
const queryOptions = isTypeaheadSearchEnabled && selectorConfig?.values?.length
|
271
|
+
? selectorConfig.values.map((e) => ({
|
272
|
+
value: e,
|
273
|
+
label: e.toString(),
|
274
|
+
}))
|
275
|
+
: undefined;
|
276
|
+
const noMatchMessage = isTypeaheadSearchEnabled && isLoading ? 'Loading...' : undefined;
|
277
|
+
// helper functions
|
278
|
+
const buildOptionForValueSpec = (value) => {
|
279
|
+
const stringValue = guaranteeNonNullable(getValueSpecificationStringValue(value));
|
280
|
+
return {
|
281
|
+
label: stringValue,
|
282
|
+
value: stringValue,
|
283
|
+
};
|
284
|
+
};
|
285
|
+
const isValueAlreadySelected = (value) => selectedOptions.map((option) => option.value).includes(value);
|
286
|
+
/**
|
287
|
+
* NOTE: We attempt to be less disruptive here by not throwing errors left and right, instead
|
288
|
+
* we simply return null for values which are not valid or parsable. But perhaps, we can consider
|
289
|
+
* passing in logger or notifier to give the users some idea of what went wrong instead of ignoring
|
290
|
+
* their input.
|
291
|
+
*/
|
292
|
+
const convertInputValueToValueSpec = () => {
|
293
|
+
const trimmedInputValue = inputValue.trim();
|
294
|
+
if (trimmedInputValue.length) {
|
295
|
+
const newValueSpec = convertTextToPrimitiveInstanceValue(expectedType, trimmedInputValue, observerContext);
|
296
|
+
if (newValueSpec === null ||
|
297
|
+
getValueSpecificationStringValue(newValueSpec) === undefined ||
|
298
|
+
isValueAlreadySelected(guaranteeNonNullable(getValueSpecificationStringValue(newValueSpec)))) {
|
299
|
+
return null;
|
312
300
|
}
|
313
|
-
|
314
|
-
|
315
|
-
|
301
|
+
return newValueSpec;
|
302
|
+
}
|
303
|
+
return null;
|
304
|
+
};
|
305
|
+
const addInputValueToSelectedOptions = () => {
|
306
|
+
const newValueSpec = convertInputValueToValueSpec();
|
307
|
+
if (newValueSpec !== null) {
|
308
|
+
setSelectedOptions([
|
309
|
+
...selectedOptions,
|
310
|
+
buildOptionForValueSpec(newValueSpec),
|
311
|
+
]);
|
312
|
+
setInputValue('');
|
313
|
+
reloadValuesFunc?.cancel();
|
314
|
+
}
|
315
|
+
else if (inputValue.trim().length) {
|
316
|
+
setInputValueIsError(true);
|
317
|
+
}
|
318
|
+
};
|
319
|
+
// event handlers
|
320
|
+
const changeValue = (newSelectedOptions, actionChange) => {
|
321
|
+
setSelectedOptions(newSelectedOptions);
|
322
|
+
if (actionChange.action === 'select-option') {
|
323
|
+
setInputValue('');
|
324
|
+
}
|
325
|
+
else if (actionChange.action === 'remove-value' &&
|
326
|
+
actionChange.removedValue.value === inputValue) {
|
327
|
+
setInputValueIsError(false);
|
328
|
+
}
|
329
|
+
};
|
330
|
+
const handleInputChange = (newInputValue, actionChange) => {
|
331
|
+
if (actionChange.action === 'input-change') {
|
332
|
+
setInputValue(newInputValue);
|
333
|
+
setInputValueIsError(false);
|
334
|
+
reloadValuesFunc?.cancel();
|
335
|
+
const reloadValuesFuncTransformation = reloadValuesFunc?.(newInputValue);
|
336
|
+
if (reloadValuesFuncTransformation) {
|
337
|
+
flowResult(reloadValuesFuncTransformation).catch(applicationStore.alertUnhandledError);
|
338
|
+
}
|
339
|
+
}
|
340
|
+
if (actionChange.action === 'input-blur') {
|
341
|
+
reloadValuesFunc?.cancel();
|
342
|
+
cleanUpReloadValuesFunc?.();
|
343
|
+
}
|
344
|
+
};
|
345
|
+
const updateValueSpecAndSaveEdit = () => {
|
346
|
+
const newValueSpec = convertInputValueToValueSpec();
|
347
|
+
const finalSelectedOptions = newValueSpec !== null
|
348
|
+
? [...selectedOptions, buildOptionForValueSpec(newValueSpec)]
|
349
|
+
: selectedOptions;
|
350
|
+
instanceValue_setValues(valueSpecification, finalSelectedOptions
|
351
|
+
.map((option) => option.value)
|
352
|
+
.map((value) => convertTextToPrimitiveInstanceValue(expectedType, value, observerContext))
|
353
|
+
.filter(isNonNullable), observerContext);
|
354
|
+
saveEdit();
|
355
|
+
};
|
356
|
+
const handleKeyDown = (event) => {
|
357
|
+
if ((event.key === 'Enter' || event.key === ',') && !event.shiftKey) {
|
358
|
+
addInputValueToSelectedOptions();
|
359
|
+
event.preventDefault();
|
360
|
+
}
|
361
|
+
};
|
362
|
+
const handlePaste = (event) => {
|
363
|
+
const pastedText = event.clipboardData.getData('text');
|
364
|
+
const parsedData = parseCSVString(pastedText);
|
365
|
+
if (!parsedData) {
|
366
|
+
return;
|
367
|
+
}
|
368
|
+
const newValues = uniq(uniq(parsedData)
|
369
|
+
.map((value) => {
|
370
|
+
const newValueSpec = convertTextToPrimitiveInstanceValue(expectedType, value, observerContext);
|
371
|
+
return newValueSpec
|
372
|
+
? getValueSpecificationStringValue(newValueSpec)
|
373
|
+
: null;
|
316
374
|
})
|
317
|
-
.filter(isNonNullable);
|
318
|
-
|
319
|
-
|
320
|
-
}
|
375
|
+
.filter(isNonNullable)).filter((value) => !isValueAlreadySelected(value));
|
376
|
+
setSelectedOptions([
|
377
|
+
...selectedOptions,
|
378
|
+
...newValues.map((value) => ({ label: value, value })),
|
379
|
+
]);
|
380
|
+
event.preventDefault();
|
381
|
+
};
|
382
|
+
return (_jsxs(_Fragment, { children: [_jsx(CustomSelectorInput, { className: clsx('value-spec-editor__primitive-collection-selector', {
|
383
|
+
'value-spec-editor__primitive-collection-selector--error': inputValueIsError,
|
384
|
+
}), options: queryOptions, inputValue: inputValue, isMulti: true, menuIsOpen: isTypeaheadSearchEnabled &&
|
385
|
+
inputValue.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, autoFocus: true, inputRef: inputRef, onChange: changeValue, onInputChange: handleInputChange, onBlur: () => updateValueSpecAndSaveEdit(), onKeyDown: handleKeyDown, onPaste: handlePaste, value: selectedOptions, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, isLoading: isLoading, noMatchMessage: noMatchMessage, placeholder: null, inputPlaceholder: getPlaceHolder(expectedType), components: {
|
386
|
+
DropdownIndicator: null,
|
387
|
+
} }), _jsx("button", { className: "value-spec-editor__list-editor__save-button btn--dark", onClick: updateValueSpecAndSaveEdit, children: _jsx(SaveIcon, {}) })] }));
|
388
|
+
});
|
321
389
|
const EnumCollectionInstanceValueEditor = observer((props) => {
|
322
390
|
const { valueSpecification, observerContext, saveEdit } = props;
|
323
391
|
const applicationStore = useApplicationStore();
|
@@ -352,29 +420,12 @@ const EnumCollectionInstanceValueEditor = observer((props) => {
|
|
352
420
|
if (event.key === 'Enter' && !event.shiftKey) {
|
353
421
|
updateValueSpecAndSaveEdit();
|
354
422
|
}
|
355
|
-
}, value: selectedOptions, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, placeholder:
|
423
|
+
}, value: selectedOptions, darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, placeholder: null, inputPlaceholder: "Add", autoFocus: true, menuIsOpen: true }), _jsx("button", { className: "value-spec-editor__list-editor__save-button btn--dark", onClick: updateValueSpecAndSaveEdit, children: _jsx(SaveIcon, {}) })] }));
|
356
424
|
});
|
357
425
|
const COLLECTION_PREVIEW_CHAR_LIMIT = 50;
|
358
|
-
const getPlaceHolder = (expectedType) => {
|
359
|
-
if (expectedType instanceof PrimitiveType) {
|
360
|
-
switch (expectedType.path) {
|
361
|
-
case PRIMITIVE_TYPE.DATE:
|
362
|
-
case PRIMITIVE_TYPE.STRICTDATE:
|
363
|
-
return 'yyyy-mm-dd';
|
364
|
-
case PRIMITIVE_TYPE.DATETIME:
|
365
|
-
return 'yyyy-mm-ddThh:mm:ss';
|
366
|
-
default:
|
367
|
-
return '(empty)';
|
368
|
-
}
|
369
|
-
}
|
370
|
-
return '(empty)';
|
371
|
-
};
|
372
426
|
const CollectionValueInstanceValueEditor = observer((props) => {
|
373
|
-
const { valueSpecification, expectedType, className, resetValue, setValueSpecification, obseverContext, } = props;
|
374
|
-
const inputRef = useRef(null);
|
375
|
-
const [text, setText] = useState(stringifyValue(valueSpecification.values));
|
427
|
+
const { valueSpecification, expectedType, className, resetValue, setValueSpecification, selectorConfig, obseverContext, } = props;
|
376
428
|
const [editable, setEditable] = useState(false);
|
377
|
-
const [showAdvancedEditorPopover, setShowAdvancedEditorPopover] = useState(false);
|
378
429
|
const valueText = stringifyValue(valueSpecification.values);
|
379
430
|
const previewText = `List(${valueSpecification.values.length === 0
|
380
431
|
? 'empty'
|
@@ -387,45 +438,11 @@ const CollectionValueInstanceValueEditor = observer((props) => {
|
|
387
438
|
const saveEdit = () => {
|
388
439
|
if (editable) {
|
389
440
|
setEditable(false);
|
390
|
-
setShowAdvancedEditorPopover(false);
|
391
441
|
setValueSpecification(valueSpecification);
|
392
442
|
}
|
393
443
|
};
|
394
|
-
const updateValueSpecAndSaveEdit = () => {
|
395
|
-
if (editable) {
|
396
|
-
setCollectionValue(valueSpecification, expectedType, text, obseverContext);
|
397
|
-
setText(stringifyValue(valueSpecification.values));
|
398
|
-
saveEdit();
|
399
|
-
}
|
400
|
-
};
|
401
|
-
const changeValueTextArea = (event) => {
|
402
|
-
setText(event.target.value);
|
403
|
-
};
|
404
|
-
const expandButtonName = `${valueSpecification.hashCode}ExpandButton`;
|
405
|
-
const handleOnBlur = (event) => {
|
406
|
-
// disable save if target is expand button
|
407
|
-
if (event.relatedTarget?.name !==
|
408
|
-
expandButtonName) {
|
409
|
-
updateValueSpecAndSaveEdit();
|
410
|
-
}
|
411
|
-
};
|
412
|
-
const placeholder = text === '' ? getPlaceHolder(expectedType) : undefined;
|
413
|
-
// focus the input box when edit is enabled
|
414
|
-
useEffect(() => {
|
415
|
-
if (editable) {
|
416
|
-
inputRef.current?.focus();
|
417
|
-
}
|
418
|
-
}, [editable]);
|
419
444
|
if (editable) {
|
420
|
-
return (
|
421
|
-
if (event.key === 'Enter' && !event.shiftKey) {
|
422
|
-
updateValueSpecAndSaveEdit();
|
423
|
-
}
|
424
|
-
} }), _jsx(PanelFormSection, { children: _jsx("div", { className: "value-spec-editor__list-editor__textarea__description", children: "Hit Enter to Apply Change" }) })] })), _jsxs("div", { className: clsx('value-spec-editor', className), children: [expectedType instanceof Enumeration ? (_jsx(EnumCollectionInstanceValueEditor, { valueSpecification: valueSpecification, observerContext: obseverContext, saveEdit: saveEdit })) : (_jsxs(_Fragment, { children: [_jsx("textarea", { ref: inputRef, className: clsx('panel__content__form__section__input value-spec-editor__input value-spec-editor__textarea '), spellCheck: false, value: text, placeholder: placeholder, onChange: changeValueTextArea, onKeyDown: (event) => {
|
425
|
-
if (event.key === 'Enter' && !event.shiftKey) {
|
426
|
-
updateValueSpecAndSaveEdit();
|
427
|
-
}
|
428
|
-
}, onBlur: handleOnBlur }), _jsx("button", { className: "value-spec-editor__list-editor__expand-button btn--dark", onClick: () => setShowAdvancedEditorPopover(true), tabIndex: -1, name: expandButtonName, title: "Expand window...", children: _jsx(FilledWindowMaximizeIcon, {}) }), _jsx("button", { className: "value-spec-editor__list-editor__save-button btn--dark", onClick: saveEdit, children: _jsx(SaveIcon, {}) })] })), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] })] }));
|
445
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: clsx('value-spec-editor', className), children: [expectedType instanceof Enumeration ? (_jsx(EnumCollectionInstanceValueEditor, { valueSpecification: valueSpecification, observerContext: obseverContext, saveEdit: saveEdit })) : (_jsx(PrimitiveCollectionInstanceValueEditor, { valueSpecification: valueSpecification, expectedType: expectedType, saveEdit: saveEdit, selectorConfig: selectorConfig, observerContext: obseverContext })), _jsx("button", { className: "value-spec-editor__reset-btn", name: "Reset", title: "Reset", onClick: resetValue, children: _jsx(RefreshIcon, {}) })] }) }));
|
429
446
|
}
|
430
447
|
return (_jsxs("div", { className: clsx('value-spec-editor', className), onClick: enableEdit, title: "Click to edit", children: [_jsx("div", { className: clsx('value-spec-editor__list-editor__preview', {
|
431
448
|
'value-spec-editor__list-editor__preview--error': !isValidInstanceValue(valueSpecification),
|
@@ -476,7 +493,7 @@ export const BasicValueSpecificationEditor = forwardRef(function BasicValueSpeci
|
|
476
493
|
// NOTE: since when we fill in the arguments, `[]` (or `nullish` value in Pure)
|
477
494
|
// is used for parameters we don't handle, we should not attempt to support empty collection
|
478
495
|
// without generic type here as that is equivalent to `[]`
|
479
|
-
return (_jsx(CollectionValueInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, expectedType: typeCheckOption.expectedType, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification, obseverContext: obseverContext }));
|
496
|
+
return (_jsx(CollectionValueInstanceValueEditor, { valueSpecification: valueSpecification, graph: graph, expectedType: typeCheckOption.expectedType, className: className, resetValue: resetValue, setValueSpecification: setValueSpecification, selectorConfig: selectorConfig, obseverContext: obseverContext }));
|
480
497
|
}
|
481
498
|
// property expression
|
482
499
|
else if (valueSpecification instanceof VariableExpression) {
|