@evoke-platform/ui-components 1.0.0-dev.103 → 1.0.0-dev.105

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.
@@ -15,7 +15,7 @@ export declare type ObjectProperty = {
15
15
  declare type CustomValueEditorProps = ValueEditorProps & {
16
16
  values?: AutocompleteOption[] | any[];
17
17
  };
18
- declare type Operator = ('=' | '=!' | '<' | '>' | '<=' | '>=' | 'contains' | 'beginsWith' | 'endsWith' | 'doesNotContain' | 'doesNotBeginWith' | 'doesNotEndWith' | 'null' | 'notNull' | 'in' | 'notIn' | 'between' | 'notBetween');
18
+ declare type Operator = ('=' | '!=' | '<' | '>' | '<=' | '>=' | 'contains' | 'beginsWith' | 'endsWith' | 'doesNotContain' | 'doesNotBeginWith' | 'doesNotEndWith' | 'null' | 'notNull' | 'in' | 'notIn' | 'between' | 'notBetween');
19
19
  declare type CriteriaInputProps = {
20
20
  properties: ObjectProperty[];
21
21
  setCriteria: Function;
@@ -132,7 +132,7 @@ const dynamicContentInputEditor = (props) => {
132
132
  const DynamicContentInput = (_a = props.context) === null || _a === void 0 ? void 0 : _a.dynamicContentInput.component;
133
133
  let valueEditor;
134
134
  if (DynamicContentInput) {
135
- valueEditor = (React.createElement(DynamicContentInput, { values: ['null', 'notNull'].includes(operator) ? '' : value, setValues: handleOnChange, disabled: ['null', 'notNull'].includes(operator), isSingleValue: true, size: 'small', previousSteps: (_c = (_b = props.context) === null || _b === void 0 ? void 0 : _b.previousSteps) !== null && _c !== void 0 ? _c : [] }));
135
+ valueEditor = (React.createElement(DynamicContentInput, { values: ['null', 'notNull'].includes(operator) ? '' : value, setValues: handleOnChange, disabled: ['null', 'notNull'].includes(operator), size: 'small', previousSteps: (_c = (_b = props.context) === null || _b === void 0 ? void 0 : _b.previousSteps) !== null && _c !== void 0 ? _c : [] }));
136
136
  }
137
137
  return determineValueEditor(valueEditor, props);
138
138
  };
@@ -169,11 +169,13 @@ const determineValueEditor = (baseValueEditor, props) => {
169
169
  }, renderInput: (params) => React.createElement(TextField, Object.assign({ label: params.label }, params, { size: "small" })), style: { width: '33%' } }));
170
170
  }
171
171
  else if (type === 'select' && values) {
172
- valueEditor = (React.createElement(Autocomplete, { options: values, multiple: ['in', 'notIn'].includes(operator), value: disabled ? '' : value, onChange: (event, newValue) => {
172
+ valueEditor = (React.createElement(Autocomplete, { freeSolo: true, options: values, multiple: ['in', 'notIn'].includes(operator), value: disabled ? '' : value, onChange: (event, newValue) => {
173
173
  handleOnChange(newValue === null || newValue === void 0 ? void 0 : newValue.label);
174
174
  }, disabled: disabled, isOptionEqualToValue: (option, value) => {
175
175
  return option === value;
176
- }, renderInput: (params) => React.createElement(TextField, Object.assign({}, params, { size: "small" })), style: { width: '33%' }, disableClearable: true }));
176
+ }, renderInput: (params) => (React.createElement(TextField, Object.assign({}, params, { size: "small", placeholder: 'Value', readOnly: value === '{{user.id}}', onChange: (event) => {
177
+ handleOnChange(event.target.value);
178
+ } }))), style: { width: '33%' }, disableClearable: true }));
177
179
  }
178
180
  break;
179
181
  }
@@ -9,7 +9,7 @@ declare const _default: ComponentMeta<(props: {
9
9
  component: React.ElementType<any>;
10
10
  previousSteps: unknown[];
11
11
  } | undefined;
12
- operators?: ("endsWith" | "in" | "=" | "=!" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
12
+ operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
13
13
  }) => JSX.Element>;
14
14
  export default _default;
15
15
  export declare const CriteriaBuilder: ComponentStory<(props: {
@@ -21,7 +21,7 @@ export declare const CriteriaBuilder: ComponentStory<(props: {
21
21
  component: React.ElementType<any>;
22
22
  previousSteps: unknown[];
23
23
  } | undefined;
24
- operators?: ("endsWith" | "in" | "=" | "=!" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
24
+ operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
25
25
  }) => JSX.Element>;
26
26
  export declare const CriteriaBuilderPresetValues: ComponentStory<(props: {
27
27
  properties: import("../components/custom/CriteriaBuilder/CriteriaBuilder").ObjectProperty[];
@@ -32,5 +32,5 @@ export declare const CriteriaBuilderPresetValues: ComponentStory<(props: {
32
32
  component: React.ElementType<any>;
33
33
  previousSteps: unknown[];
34
34
  } | undefined;
35
- operators?: ("endsWith" | "in" | "=" | "=!" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
35
+ operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
36
36
  }) => JSX.Element>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.103",
3
+ "version": "1.0.0-dev.105",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",