@sustaina/shared-ui 1.30.0 → 1.30.1
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/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3103,6 +3103,9 @@ var normalizeBetween = (startValue, endValue) => {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
var DatetimeBuilder = class {
|
|
3105
3105
|
build(row) {
|
|
3106
|
+
if (Array.isArray(row.value)) {
|
|
3107
|
+
return {};
|
|
3108
|
+
}
|
|
3106
3109
|
try {
|
|
3107
3110
|
const baseDate = new Date(row.value);
|
|
3108
3111
|
if (Number.isNaN(baseDate.getTime())) return {};
|
|
@@ -3161,6 +3164,9 @@ var parseMonth = (value) => {
|
|
|
3161
3164
|
var toMonthToken = (date) => format(date, "yyyy-MM");
|
|
3162
3165
|
var DateMonthBuilder = class {
|
|
3163
3166
|
build(row) {
|
|
3167
|
+
if (Array.isArray(row.value)) {
|
|
3168
|
+
return {};
|
|
3169
|
+
}
|
|
3164
3170
|
const month = parseMonth(row.value);
|
|
3165
3171
|
const sharedOptions = { multiTableSearch: row.multiTableSearch };
|
|
3166
3172
|
switch (row.operator) {
|
|
@@ -3331,7 +3337,7 @@ var TextBuilder = class {
|
|
|
3331
3337
|
{ equals: row.value },
|
|
3332
3338
|
{
|
|
3333
3339
|
multiTableSearch: row.multiTableSearch,
|
|
3334
|
-
insensitive:
|
|
3340
|
+
insensitive: false
|
|
3335
3341
|
}
|
|
3336
3342
|
)
|
|
3337
3343
|
};
|
|
@@ -3361,7 +3367,7 @@ var TextBuilder = class {
|
|
|
3361
3367
|
{ not: row.value },
|
|
3362
3368
|
{
|
|
3363
3369
|
multiTableSearch: row.multiTableSearch,
|
|
3364
|
-
insensitive:
|
|
3370
|
+
insensitive: false
|
|
3365
3371
|
}
|
|
3366
3372
|
)
|
|
3367
3373
|
};
|
|
@@ -3405,6 +3411,9 @@ var TextBuilder = class {
|
|
|
3405
3411
|
var regex = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
3406
3412
|
var UUIDBuilder = class {
|
|
3407
3413
|
build(row) {
|
|
3414
|
+
if (Array.isArray(row.value)) {
|
|
3415
|
+
return {};
|
|
3416
|
+
}
|
|
3408
3417
|
if (!regex.test(row.value)) {
|
|
3409
3418
|
return { [row.fieldName]: {} };
|
|
3410
3419
|
}
|