@orchestrator-ui/orchestrator-ui-components 8.9.1 → 8.9.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "8.9.1",
3
+ "version": "8.9.2",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Library of UI Components used to display the workflow orchestrator frontend",
6
6
  "author": {
@@ -94,6 +94,7 @@ const OPERATOR_MAP: Record<string, OperatorDisplay> = {
94
94
  has_component: { symbol: '✓', description: 'has component' },
95
95
  not_has_component: { symbol: '✗', description: 'does not have component' },
96
96
  like: { symbol: '∋', description: 'contains' },
97
+ not_regexp: { symbol: '∌', description: 'does not contain' },
97
98
  };
98
99
 
99
100
  const BOOLEAN_OPERATOR_MAP: Record<string, OperatorDisplay> = {
@@ -42,6 +42,7 @@ const SEARCH_OPERATOR_TO_RQB_OPERATOR_MAP: Record<string, string> = {
42
42
  gte: '>=',
43
43
  between: 'between',
44
44
  like: 'contains',
45
+ not_regexp: 'doesNotContain',
45
46
  has_component: 'notNull',
46
47
  not_has_component: 'null',
47
48
  };
@@ -60,6 +61,7 @@ const OPERATOR_MAP: Record<string, OperatorDisplay> = {
60
61
  has_component: { symbol: '✓', description: 'has component' },
61
62
  not_has_component: { symbol: '✗', description: 'does not have component' },
62
63
  like: { symbol: '∋', description: 'contains' },
64
+ not_regexp: { symbol: '∌', description: 'does not contain' },
63
65
  };
64
66
 
65
67
  interface WfoFilterBuilderProps {
@@ -37,7 +37,8 @@ export const TableSettingsModal = <T,>({
37
37
  extraSettings,
38
38
  }: TableSettingsModalProps<T>) => {
39
39
  const t = useTranslations('main');
40
- const { formRowStyle, columnsListStyle, selectFieldStyle } = useWithOrchestratorTheme(getWfoTableSettingsModalStyles);
40
+ const { formStyle, formRowStyle, columnsListStyle, selectFieldStyle } =
41
+ useWithOrchestratorTheme(getWfoTableSettingsModalStyles);
41
42
  const scrollBarStyle = useEuiScrollBar();
42
43
 
43
44
  const [columns, setColumns] = useState(tableConfig.columns);
@@ -72,7 +73,7 @@ export const TableSettingsModal = <T,>({
72
73
  })
73
74
  }
74
75
  >
75
- <EuiForm>
76
+ <EuiForm css={formStyle}>
76
77
  <div css={[columnsListStyle, scrollBarStyle]}>
77
78
  {columns.map(({ field, name, isVisible }) => (
78
79
  <div key={field.toString()}>
@@ -14,6 +14,15 @@ export const getWfoTableSettingsModalStyles = (wfoThemeHelpers: WfoThemeHelpers)
14
14
  },
15
15
  });
16
16
 
17
+ const formStyle = css({
18
+ '.euiFormRow .euiFormRow__labelWrapper': {
19
+ flexBasis: '50%',
20
+ },
21
+ '.euiFormRow .euiFormRow__fieldWrapper': {
22
+ flexBasis: '50%',
23
+ },
24
+ });
25
+
17
26
  const { theme } = wfoThemeHelpers;
18
27
 
19
28
  const columnsListStyle = css({
@@ -30,6 +39,7 @@ export const getWfoTableSettingsModalStyles = (wfoThemeHelpers: WfoThemeHelpers)
30
39
  });
31
40
 
32
41
  return {
42
+ formStyle,
33
43
  formRowStyle,
34
44
  columnsListStyle,
35
45
  selectFieldStyle: formFieldBaseStyle,
@@ -1 +1 @@
1
- export const ORCHESTRATOR_UI_LIBRARY_VERSION = '8.9.1';
1
+ export const ORCHESTRATOR_UI_LIBRARY_VERSION = '8.9.2';
@@ -208,7 +208,8 @@ const useGetComponentMatcherExtender = (): ComponentMatcherExtender => {
208
208
  ...currentMatchers
209
209
  .filter((matcher) => matcher.id !== 'text')
210
210
  .filter((matcher) => matcher.id !== 'array')
211
- .filter((matcher) => matcher.id !== 'object'),
211
+ .filter((matcher) => matcher.id !== 'object')
212
+ .filter((matcher) => matcher.id !== 'list'),
212
213
  {
213
214
  id: 'object',
214
215
  ElementMatch: {
@@ -129,17 +129,17 @@ const resultColumToPropertyMap: ResultColumToPropertyMap<SubscriptionListItem> =
129
129
 
130
130
  /* These options will be added as the first options in the field dropdown in the FieldSelector */
131
131
  const prefilledFieldOptions: FieldToOperatorMap = new Map([
132
- ['subscription.subscription_id', ['eq', 'neq', 'like']],
133
- ['subscription.description', ['eq', 'neq', 'like']],
134
- ['subscription.status', ['eq', 'neq', 'like']],
132
+ ['subscription.subscription_id', ['eq', 'neq', 'like', 'not_regexp']],
133
+ ['subscription.description', ['eq', 'neq', 'like', 'not_regexp']],
134
+ ['subscription.status', ['eq', 'neq', 'like', 'not_regexp']],
135
135
  ['subscription.insync', ['eq', 'neq']],
136
- ['subscription.product.name', ['eq', 'neq', 'like']],
137
- ['subscription.product.tag', ['eq', 'neq', 'like']],
138
- ['subscription.customer_name', ['eq', 'neq', 'like']],
139
- ['subscription.customer_abbreviation', ['eq', 'neq', 'like']],
136
+ ['subscription.product.name', ['eq', 'neq', 'like', 'not_regexp']],
137
+ ['subscription.product.tag', ['eq', 'neq', 'like', 'not_regexp']],
138
+ ['subscription.customer_name', ['eq', 'neq', 'like', 'not_regexp']],
139
+ ['subscription.customer_abbreviation', ['eq', 'neq', 'like', 'not_regexp']],
140
140
  ['subscription.start_date', ['eq', 'neq', 'lt', 'lte', 'gt', 'gte', 'between']],
141
141
  ['subscription.end_date', ['eq', 'neq', 'lt', 'lte', 'gt', 'gte', 'between']],
142
- ['subscription.note', ['eq', 'neq', 'like']],
142
+ ['subscription.note', ['eq', 'neq', 'like', 'not_regexp']],
143
143
  ]);
144
144
 
145
145
  export const WfoSearchPocPage = () => {