@evoke-platform/ui-components 1.0.0-dev.246 → 1.0.0-dev.247

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.
@@ -84,7 +84,7 @@ const ValueEditor = (props) => {
84
84
  const isMultiple = ['in', 'notIn'].includes(operator);
85
85
  const options = presetValues;
86
86
  if (isMultiple) {
87
- return (React.createElement(Autocomplete, { freeSolo: true, multiple: true, options: options, getOptionLabel: (option) => typeof option === 'object' && option?.label ? option.label : option, value: Array.isArray(value) ? (disabled ? [] : value) : [], disabled: disabled,
87
+ return (React.createElement(Autocomplete, { freeSolo: true, multiple: true, options: options, getOptionLabel: (option) => typeof option === 'object' && option?.label ? option.label : String(option), value: Array.isArray(value) ? (disabled ? [] : value) : [], disabled: disabled,
88
88
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
89
  onChange: (event, newValue) => {
90
90
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -131,7 +131,8 @@ const ValueEditor = (props) => {
131
131
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
132
  getOptionLabel: (option) => {
133
133
  if (typeof option === 'string') {
134
- return options.find((o) => option === o.name || option == o.value?.name)?.label || '';
134
+ const found = options.find((o) => option === o.name || option === o.value?.name);
135
+ return found?.label || option;
135
136
  }
136
137
  return option?.label;
137
138
  },
@@ -183,12 +183,18 @@ CriteriaBuilder.args = {
183
183
  required: false,
184
184
  searchable: false,
185
185
  },
186
+ {
187
+ id: 'amountOfInspections',
188
+ name: 'Inspection Count',
189
+ type: 'integer',
190
+ required: false,
191
+ },
186
192
  ],
187
193
  setCriteria: (criteria) => console.log('criteria= ', criteria),
188
194
  criteria: {
189
195
  $or: [
190
196
  {
191
- name: 'bert',
197
+ name: { $in: ['Jane', 'John', 'Jack'] },
192
198
  },
193
199
  {
194
200
  licensedFor: { $in: ['hot dogs', 'amusements', 'entertainment'] },
@@ -287,6 +293,12 @@ CriteriaBuilderPresetUserID.args = {
287
293
  required: false,
288
294
  searchable: false,
289
295
  },
296
+ {
297
+ id: 'amountOfInspections',
298
+ name: 'Inspection Count',
299
+ type: 'integer',
300
+ required: false,
301
+ },
290
302
  ],
291
303
  setCriteria: (criteria) => console.log('criteria= ', criteria),
292
304
  criteria: {
@@ -325,6 +337,12 @@ CriteriaBuilderGroupedPresetValues.args = {
325
337
  required: false,
326
338
  objectId: '',
327
339
  },
340
+ {
341
+ id: 'amountOfInspections',
342
+ name: 'Inspection Count',
343
+ type: 'integer',
344
+ required: false,
345
+ },
328
346
  {
329
347
  id: 'licensedFor',
330
348
  name: 'licensed for',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.0.0-dev.246",
3
+ "version": "1.0.0-dev.247",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",