@react-querybuilder/core 8.19.0 → 8.19.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/cjs/react-querybuilder_core.cjs.development.d.ts +3 -8
- package/dist/cjs/react-querybuilder_core.cjs.development.js +22 -39
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +3 -8
- package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
- package/dist/react-querybuilder_core.d.mts +3 -8
- package/dist/react-querybuilder_core.legacy-esm.d.ts +3 -8
- package/dist/react-querybuilder_core.legacy-esm.js +23 -39
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +22 -39
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +3 -8
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/package.json +5 -4
|
@@ -3079,16 +3079,11 @@ declare const toArray: <T>(a: T, {
|
|
|
3079
3079
|
*/
|
|
3080
3080
|
declare const nullFreeArray: <T>(arr: T[]) => arr is Exclude<T, null>[];
|
|
3081
3081
|
//#endregion
|
|
3082
|
-
//#region
|
|
3083
|
-
type ClassDictionary = Record<string, any>;
|
|
3082
|
+
//#region ../../node_modules/clsx/clsx.d.mts
|
|
3084
3083
|
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
3084
|
+
type ClassDictionary = Record<string, any>;
|
|
3085
3085
|
type ClassArray = ClassValue[];
|
|
3086
|
-
|
|
3087
|
-
* Vendored/adapted version of the `clsx` package.
|
|
3088
|
-
*
|
|
3089
|
-
* **NOTE:** Prefer the official package from npm outside the context of React Query Builder.
|
|
3090
|
-
*/
|
|
3091
|
-
declare function clsx(...args: ClassValue[]): string;
|
|
3086
|
+
declare function clsx(...inputs: ClassValue[]): string;
|
|
3092
3087
|
//#endregion
|
|
3093
3088
|
//#region src/utils/convertQuery.d.ts
|
|
3094
3089
|
/**
|
|
@@ -3079,16 +3079,11 @@ declare const toArray: <T>(a: T, {
|
|
|
3079
3079
|
*/
|
|
3080
3080
|
declare const nullFreeArray: <T>(arr: T[]) => arr is Exclude<T, null>[];
|
|
3081
3081
|
//#endregion
|
|
3082
|
-
//#region
|
|
3083
|
-
type ClassDictionary = Record<string, any>;
|
|
3082
|
+
//#region ../../node_modules/clsx/clsx.d.mts
|
|
3084
3083
|
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
3084
|
+
type ClassDictionary = Record<string, any>;
|
|
3085
3085
|
type ClassArray = ClassValue[];
|
|
3086
|
-
|
|
3087
|
-
* Vendored/adapted version of the `clsx` package.
|
|
3088
|
-
*
|
|
3089
|
-
* **NOTE:** Prefer the official package from npm outside the context of React Query Builder.
|
|
3090
|
-
*/
|
|
3091
|
-
declare function clsx(...args: ClassValue[]): string;
|
|
3086
|
+
declare function clsx(...inputs: ClassValue[]): string;
|
|
3092
3087
|
//#endregion
|
|
3093
3088
|
//#region src/utils/convertQuery.d.ts
|
|
3094
3089
|
/**
|
|
@@ -620,45 +620,19 @@ const toArray = (a, { retainEmptyStrings } = {}) => Array.isArray(a) ? a.map(tri
|
|
|
620
620
|
*/
|
|
621
621
|
const nullFreeArray = (arr) => arr.every((el) => el === false || (el !== null && el !== void 0 ? el : false) !== false);
|
|
622
622
|
//#endregion
|
|
623
|
-
//#region
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
else
|
|
631
|
-
|
|
632
|
-
const len = mix.length;
|
|
633
|
-
for (k = 0; k < len; k++) if (mix[k] && (y = toVal(mix[k]))) {
|
|
634
|
-
str && (str += " ");
|
|
635
|
-
str += y;
|
|
636
|
-
}
|
|
637
|
-
} else for (y in mix) if (mix[y]) {
|
|
638
|
-
str && (str += " ");
|
|
639
|
-
str += y;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
return str;
|
|
623
|
+
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
624
|
+
function r(e) {
|
|
625
|
+
var t, f, n = "";
|
|
626
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
627
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
628
|
+
var o = e.length;
|
|
629
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
630
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
631
|
+
return n;
|
|
643
632
|
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
*
|
|
648
|
-
* **NOTE:** Prefer the official package from npm outside the context of React Query Builder.
|
|
649
|
-
*/
|
|
650
|
-
// v8 ignore next
|
|
651
|
-
function clsx(...args) {
|
|
652
|
-
let i = 0;
|
|
653
|
-
let tmp;
|
|
654
|
-
let x;
|
|
655
|
-
let str = "";
|
|
656
|
-
const len = args.length;
|
|
657
|
-
for (; i < len; i++) if ((tmp = args[i]) && (x = toVal(tmp))) {
|
|
658
|
-
str && (str += " ");
|
|
659
|
-
str += x;
|
|
660
|
-
}
|
|
661
|
-
return str;
|
|
633
|
+
function clsx() {
|
|
634
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
635
|
+
return n;
|
|
662
636
|
}
|
|
663
637
|
//#endregion
|
|
664
638
|
//#region src/utils/misc.ts
|
|
@@ -4795,7 +4769,17 @@ const mergeAnyTranslation = (el, keyPropContextMap, defaults) => {
|
|
|
4795
4769
|
};
|
|
4796
4770
|
//#endregion
|
|
4797
4771
|
//#region src/utils/mergeClassnames.ts
|
|
4798
|
-
const joinClassnamesByName = (name, args) =>
|
|
4772
|
+
const joinClassnamesByName = (name, args) => {
|
|
4773
|
+
let result = "";
|
|
4774
|
+
for (let i = 0; i < args.length; i++) {
|
|
4775
|
+
var _args$i;
|
|
4776
|
+
const v = (_args$i = args[i]) === null || _args$i === void 0 ? void 0 : _args$i[name];
|
|
4777
|
+
if (!v) continue;
|
|
4778
|
+
const s = typeof v === "string" ? v : clsx(v);
|
|
4779
|
+
if (s) result = result ? `${result} ${s}` : s;
|
|
4780
|
+
}
|
|
4781
|
+
return result;
|
|
4782
|
+
};
|
|
4799
4783
|
/**
|
|
4800
4784
|
* Merges a list of partial {@link Classnames} definitions into a single definition.
|
|
4801
4785
|
*/
|