More value validation stuff
This commit is contained in:
parent
24862213d0
commit
30fb5a96ce
@ -51,6 +51,12 @@
|
|||||||
<option value="false" i18n>False</option>
|
<option value="false" i18n>False</option>
|
||||||
</select>
|
</select>
|
||||||
}
|
}
|
||||||
|
@case (CustomFieldQueryOperator.IsNull) {
|
||||||
|
<select class="w-25 form-select rounded-end" [(ngModel)]="query.value" [disabled]="disabled">
|
||||||
|
<option value="true" i18n>True</option>
|
||||||
|
<option value="false" i18n>False</option>
|
||||||
|
</select>
|
||||||
|
}
|
||||||
@default {
|
@default {
|
||||||
<input class="w-25 form-control rounded-end" type="text" [(ngModel)]="query.value" [disabled]="disabled">
|
<input class="w-25 form-control rounded-end" type="text" [(ngModel)]="query.value" [disabled]="disabled">
|
||||||
}
|
}
|
||||||
|
@ -109,15 +109,15 @@ export const CUSTOM_FIELD_QUERY_VALUE_TYPES_BY_OPERATOR = {
|
|||||||
[CustomFieldQueryOperator.IsNull]: 'boolean',
|
[CustomFieldQueryOperator.IsNull]: 'boolean',
|
||||||
[CustomFieldQueryOperator.Exists]: 'boolean',
|
[CustomFieldQueryOperator.Exists]: 'boolean',
|
||||||
[CustomFieldQueryOperator.IContains]: 'string',
|
[CustomFieldQueryOperator.IContains]: 'string',
|
||||||
|
[CustomFieldQueryOperator.GreaterThanOrEqual]: 'string',
|
||||||
|
[CustomFieldQueryOperator.LessThanOrEqual]: 'string',
|
||||||
// TODO: Implement these
|
// TODO: Implement these
|
||||||
// [CustomFieldQueryOperator.In]: 'array',
|
// [CustomFieldQueryOperator.In]: 'array',
|
||||||
// [CustomFieldQueryOperator.Contains]: 'string',
|
// [CustomFieldQueryOperator.Contains]: 'string',
|
||||||
// [CustomFieldQueryOperator.IStartsWith]: 'string',
|
// [CustomFieldQueryOperator.IStartsWith]: 'string',
|
||||||
// [CustomFieldQueryOperator.IEndsWith]: 'string',
|
// [CustomFieldQueryOperator.IEndsWith]: 'string',
|
||||||
// [CustomFieldQueryOperator.GreaterThan]: 'number',
|
// [CustomFieldQueryOperator.GreaterThan]: 'number',
|
||||||
// [CustomFieldQueryOperator.GreaterThanOrEqual]: 'number',
|
|
||||||
// [CustomFieldQueryOperator.LessThan]: 'number',
|
// [CustomFieldQueryOperator.LessThan]: 'number',
|
||||||
// [CustomFieldQueryOperator.LessThanOrEqual]: 'number',
|
|
||||||
// [CustomFieldQueryOperator.Range]: 'array',
|
// [CustomFieldQueryOperator.Range]: 'array',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user