@evoke-platform/ui-components 1.0.0-dev.117 → 1.0.0-dev.118

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.
@@ -24,6 +24,7 @@ declare type CriteriaInputProps = {
24
24
  dynamicContentInput?: {
25
25
  component: React.ElementType;
26
26
  previousSteps: unknown[];
27
+ trigger?: Record<string, unknown>;
27
28
  };
28
29
  operators?: Operator[];
29
30
  };
@@ -128,14 +128,14 @@ export const customValueEditor = (props) => {
128
128
  return determineValueEditor(valueEditor, props);
129
129
  };
130
130
  const dynamicContentInputEditor = (props) => {
131
- var _a, _b, _c;
131
+ var _a, _b, _c, _d;
132
132
  const { operator, value, handleOnChange } = props;
133
133
  const DynamicContentInput = (_a = props.context) === null || _a === void 0 ? void 0 : _a.dynamicContentInput.component;
134
134
  let valueEditor;
135
135
  if (DynamicContentInput) {
136
136
  valueEditor = (React.createElement(DynamicContentInput, { values: ['null', 'notNull'].includes(operator) ? '' : value, setValues: (e) => {
137
137
  handleOnChange(e !== null && e !== void 0 ? e : '');
138
- }, disabled: ['null', 'notNull'].includes(operator), size: 'small', previousSteps: (_c = (_b = props.context) === null || _b === void 0 ? void 0 : _b.dynamicContentInput.previousSteps) !== null && _c !== void 0 ? _c : [], isSingleValue: true, width: '33%', useStringInterpolation: true }));
138
+ }, disabled: ['null', 'notNull'].includes(operator), size: 'small', previousSteps: (_c = (_b = props.context) === null || _b === void 0 ? void 0 : _b.dynamicContentInput.previousSteps) !== null && _c !== void 0 ? _c : [], trigger: (_d = props.context) === null || _d === void 0 ? void 0 : _d.dynamicContentInput.trigger, isSingleValue: true, width: '33%', useStringInterpolation: true }));
139
139
  }
140
140
  return determineValueEditor(valueEditor, props);
141
141
  };
@@ -5,6 +5,7 @@ import { Grid } from '../../layout';
5
5
  import { IconButton } from '../../core';
6
6
  import UIThemeProvider from '../../../theme';
7
7
  function Toolbar(props) {
8
+ var _a, _b, _c;
8
9
  const { onRefresh, setAnchorEl, loading, theme } = props;
9
10
  const styles = {
10
11
  container: { display: 'flex', justifyContent: 'space-between', margin: '0 0 15px 0' },
@@ -19,7 +20,7 @@ function Toolbar(props) {
19
20
  quickFilter: {
20
21
  '& .MuiOutlinedInput-root': {
21
22
  '&.Mui-focused fieldset': {
22
- borderColor: theme.palette.primary.main,
23
+ borderColor: (_c = (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.main) !== null && _c !== void 0 ? _c : 'primary',
23
24
  },
24
25
  },
25
26
  '& fieldset': {
@@ -8,6 +8,7 @@ declare const _default: ComponentMeta<(props: {
8
8
  dynamicContentInput?: {
9
9
  component: React.ElementType<any>;
10
10
  previousSteps: unknown[];
11
+ trigger?: Record<string, unknown> | undefined;
11
12
  } | undefined;
12
13
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
13
14
  }) => JSX.Element>;
@@ -20,6 +21,7 @@ export declare const CriteriaBuilder: ComponentStory<(props: {
20
21
  dynamicContentInput?: {
21
22
  component: React.ElementType<any>;
22
23
  previousSteps: unknown[];
24
+ trigger?: Record<string, unknown> | undefined;
23
25
  } | undefined;
24
26
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
25
27
  }) => JSX.Element>;
@@ -31,6 +33,7 @@ export declare const CriteriaBuilderPresetValues: ComponentStory<(props: {
31
33
  dynamicContentInput?: {
32
34
  component: React.ElementType<any>;
33
35
  previousSteps: unknown[];
36
+ trigger?: Record<string, unknown> | undefined;
34
37
  } | undefined;
35
38
  operators?: ("endsWith" | "in" | "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "notIn" | "between" | "notBetween")[] | undefined;
36
39
  }) => 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.117",
3
+ "version": "1.0.0-dev.118",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",