@react-querybuilder/core 8.19.0 → 8.20.0
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 +4 -8
- package/dist/cjs/react-querybuilder_core.cjs.development.js +23 -39
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +4 -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/query-builder-layout.css +1 -1
- package/dist/query-builder-layout.css.map +1 -1
- package/dist/query-builder.css +1 -1
- package/dist/query-builder.css.map +1 -1
- package/dist/react-querybuilder_core.d.mts +4 -8
- package/dist/react-querybuilder_core.legacy-esm.d.ts +4 -8
- package/dist/react-querybuilder_core.legacy-esm.js +31 -46
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +23 -39
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +4 -8
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/styles/_layout.scss +20 -0
- package/dist/utils-BpaOtylk.js.map +1 -1
- package/dist/utils-CJRGiPb-.mjs.map +1 -1
- package/package.json +8 -7
|
@@ -2950,6 +2950,7 @@ declare const standardClassnames: {
|
|
|
2950
2950
|
readonly valueListItem: "rule-value-list-item";
|
|
2951
2951
|
readonly branches: "queryBuilder-branches";
|
|
2952
2952
|
readonly justified: "queryBuilder-justified";
|
|
2953
|
+
readonly responsive: "queryBuilder-responsive";
|
|
2953
2954
|
readonly hasSubQuery: "rule-hasSubQuery";
|
|
2954
2955
|
readonly loading: "queryBuilder-loading";
|
|
2955
2956
|
readonly valueDateTimeRelative: "rule-value-dateTimeRelative";
|
|
@@ -3079,16 +3080,11 @@ declare const toArray: <T>(a: T, {
|
|
|
3079
3080
|
*/
|
|
3080
3081
|
declare const nullFreeArray: <T>(arr: T[]) => arr is Exclude<T, null>[];
|
|
3081
3082
|
//#endregion
|
|
3082
|
-
//#region
|
|
3083
|
-
type ClassDictionary = Record<string, any>;
|
|
3083
|
+
//#region ../../node_modules/clsx/clsx.d.mts
|
|
3084
3084
|
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
3085
|
+
type ClassDictionary = Record<string, any>;
|
|
3085
3086
|
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;
|
|
3087
|
+
declare function clsx(...inputs: ClassValue[]): string;
|
|
3092
3088
|
//#endregion
|
|
3093
3089
|
//#region src/utils/convertQuery.d.ts
|
|
3094
3090
|
/**
|
|
@@ -429,6 +429,7 @@ const standardClassnames = {
|
|
|
429
429
|
valueListItem: "rule-value-list-item",
|
|
430
430
|
branches: "queryBuilder-branches",
|
|
431
431
|
justified: "queryBuilder-justified",
|
|
432
|
+
responsive: "queryBuilder-responsive",
|
|
432
433
|
hasSubQuery: "rule-hasSubQuery",
|
|
433
434
|
loading: "queryBuilder-loading",
|
|
434
435
|
valueDateTimeRelative: "rule-value-dateTimeRelative"
|
|
@@ -621,45 +622,19 @@ const toArray = (a, { retainEmptyStrings } = {}) => Array.isArray(a) ? a.map(tri
|
|
|
621
622
|
*/
|
|
622
623
|
const nullFreeArray = (arr) => arr.every((el) => el === false || (el ?? false) !== false);
|
|
623
624
|
//#endregion
|
|
624
|
-
//#region
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
else
|
|
632
|
-
|
|
633
|
-
const len = mix.length;
|
|
634
|
-
for (k = 0; k < len; k++) if (mix[k] && (y = toVal(mix[k]))) {
|
|
635
|
-
str && (str += " ");
|
|
636
|
-
str += y;
|
|
637
|
-
}
|
|
638
|
-
} else for (y in mix) if (mix[y]) {
|
|
639
|
-
str && (str += " ");
|
|
640
|
-
str += y;
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
return str;
|
|
625
|
+
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
626
|
+
function r(e) {
|
|
627
|
+
var t, f, n = "";
|
|
628
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
629
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
630
|
+
var o = e.length;
|
|
631
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
632
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
633
|
+
return n;
|
|
644
634
|
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
*
|
|
649
|
-
* **NOTE:** Prefer the official package from npm outside the context of React Query Builder.
|
|
650
|
-
*/
|
|
651
|
-
// v8 ignore next
|
|
652
|
-
function clsx(...args) {
|
|
653
|
-
let i = 0;
|
|
654
|
-
let tmp;
|
|
655
|
-
let x;
|
|
656
|
-
let str = "";
|
|
657
|
-
const len = args.length;
|
|
658
|
-
for (; i < len; i++) if ((tmp = args[i]) && (x = toVal(tmp))) {
|
|
659
|
-
str && (str += " ");
|
|
660
|
-
str += x;
|
|
661
|
-
}
|
|
662
|
-
return str;
|
|
635
|
+
function clsx() {
|
|
636
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
637
|
+
return n;
|
|
663
638
|
}
|
|
664
639
|
//#endregion
|
|
665
640
|
//#region src/utils/misc.ts
|
|
@@ -4731,7 +4706,16 @@ const mergeAnyTranslation = (el, keyPropContextMap, defaults) => {
|
|
|
4731
4706
|
};
|
|
4732
4707
|
//#endregion
|
|
4733
4708
|
//#region src/utils/mergeClassnames.ts
|
|
4734
|
-
const joinClassnamesByName = (name, args) =>
|
|
4709
|
+
const joinClassnamesByName = (name, args) => {
|
|
4710
|
+
let result = "";
|
|
4711
|
+
for (let i = 0; i < args.length; i++) {
|
|
4712
|
+
const v = args[i]?.[name];
|
|
4713
|
+
if (!v) continue;
|
|
4714
|
+
const s = typeof v === "string" ? v : clsx(v);
|
|
4715
|
+
if (s) result = result ? `${result} ${s}` : s;
|
|
4716
|
+
}
|
|
4717
|
+
return result;
|
|
4718
|
+
};
|
|
4735
4719
|
/**
|
|
4736
4720
|
* Merges a list of partial {@link Classnames} definitions into a single definition.
|
|
4737
4721
|
*/
|