63afd34eb2
* Add data-utils with filters
* Create data-utils
* Add data-utils to compiled code
* Reuse constants
* Fix tests
* Rename package to shared-core
* Namespace export shared-core
* Rely on rollup to bundle shared-core
* Revert "Rely on rollup to bundle shared-core"
This reverts commit e8b5a2bb9a
.
* Updating version and removing private.
* Update version
* Increment versions.
* Implement sort
* Enabling sort
* v2.3.21-alpha.2
* Fix build
* Improve readability
* Move deepGet to shared helper
* Better type usage
* Fix types
* Configure types
* Fix vite refs
* Add dep
* Fixing depencencies on client
* Add missing dev command
* Fix loading issues
* Update versions to latest
* Multiple es6 and commonjs configs
* Config
* Use local packages on rollup for client
* Change shared-core and types entry points
---------
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
69 lines
1.1 KiB
TypeScript
69 lines
1.1 KiB
TypeScript
export const OperatorOptions = {
|
|
Equals: {
|
|
value: "equal",
|
|
label: "Equals",
|
|
},
|
|
NotEquals: {
|
|
value: "notEqual",
|
|
label: "Not equals",
|
|
},
|
|
Empty: {
|
|
value: "empty",
|
|
label: "Is empty",
|
|
},
|
|
NotEmpty: {
|
|
value: "notEmpty",
|
|
label: "Is not empty",
|
|
},
|
|
StartsWith: {
|
|
value: "string",
|
|
label: "Starts with",
|
|
},
|
|
Like: {
|
|
value: "fuzzy",
|
|
label: "Like",
|
|
},
|
|
MoreThan: {
|
|
value: "rangeLow",
|
|
label: "More than or equal to",
|
|
},
|
|
LessThan: {
|
|
value: "rangeHigh",
|
|
label: "Less than or equal to",
|
|
},
|
|
Contains: {
|
|
value: "contains",
|
|
label: "Contains",
|
|
},
|
|
NotContains: {
|
|
value: "notContains",
|
|
label: "Does not contain",
|
|
},
|
|
In: {
|
|
value: "oneOf",
|
|
label: "Is in",
|
|
},
|
|
ContainsAny: {
|
|
value: "containsAny",
|
|
label: "Has any",
|
|
},
|
|
}
|
|
|
|
export const SqlNumberTypeRangeMap = {
|
|
integer: {
|
|
max: 2147483647,
|
|
min: -2147483648,
|
|
},
|
|
int: {
|
|
max: 2147483647,
|
|
min: -2147483648,
|
|
},
|
|
smallint: {
|
|
max: 32767,
|
|
min: -32768,
|
|
},
|
|
mediumint: {
|
|
max: 8388607,
|
|
min: -8388608,
|
|
},
|
|
}
|