@react-querybuilder/antd 8.7.0 → 8.7.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/types/AntDActionElement.d.ts +2 -0
- package/dist/types/AntDDragHandle.d.ts +2 -1
- package/dist/types/dayjs.d.ts +34 -31
- package/dist/types-esm/AntDActionElement.d.mts +2 -0
- package/dist/types-esm/AntDDragHandle.d.mts +2 -1
- package/dist/types-esm/dayjs.d.mts +34 -31
- package/package.json +8 -8
|
@@ -2,6 +2,8 @@ import { Button } from "antd";
|
|
|
2
2
|
import type { ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import type { ActionWithRulesProps } from "react-querybuilder";
|
|
5
|
+
// TODO: This may be unnecessary. Find out if there's a way to allow
|
|
6
|
+
// `data-${string}` index keys without breaking other type contraints.
|
|
5
7
|
type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
|
|
6
8
|
/**
|
|
7
9
|
* @group Props
|
|
@@ -5,8 +5,9 @@ import type { DragHandleProps } from "react-querybuilder";
|
|
|
5
5
|
/**
|
|
6
6
|
* @group Props
|
|
7
7
|
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
9
|
export type AntDDragHandleProps = DragHandleProps & {
|
|
9
|
-
label?: any
|
|
10
|
+
label?: any;
|
|
10
11
|
} & ComponentPropsWithRef<typeof HolderOutlined>;
|
|
11
12
|
/**
|
|
12
13
|
* @group Components
|
package/dist/types/dayjs.d.ts
CHANGED
|
@@ -5,41 +5,44 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Dayjs } from "dayjs";
|
|
7
7
|
type GenerateConfig<DateType> = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
// Get
|
|
9
|
+
getWeekDay: (value: DateType) => number;
|
|
10
|
+
getMillisecond: (value: DateType) => number;
|
|
11
|
+
getSecond: (value: DateType) => number;
|
|
12
|
+
getMinute: (value: DateType) => number;
|
|
13
|
+
getHour: (value: DateType) => number;
|
|
14
|
+
getDate: (value: DateType) => number;
|
|
15
|
+
getMonth: (value: DateType) => number;
|
|
16
|
+
getYear: (value: DateType) => number;
|
|
17
|
+
getNow: () => DateType;
|
|
18
|
+
getFixedDate: (fixed: string) => DateType;
|
|
19
|
+
getEndDate: (value: DateType) => DateType;
|
|
20
|
+
// Set
|
|
21
|
+
addYear: (value: DateType, diff: number) => DateType;
|
|
22
|
+
addMonth: (value: DateType, diff: number) => DateType;
|
|
23
|
+
addDate: (value: DateType, diff: number) => DateType;
|
|
24
|
+
setYear: (value: DateType, year: number) => DateType;
|
|
25
|
+
setMonth: (value: DateType, month: number) => DateType;
|
|
26
|
+
setDate: (value: DateType, date: number) => DateType;
|
|
27
|
+
setHour: (value: DateType, hour: number) => DateType;
|
|
28
|
+
setMinute: (value: DateType, minute: number) => DateType;
|
|
29
|
+
setSecond: (value: DateType, second: number) => DateType;
|
|
30
|
+
setMillisecond: (value: DateType, millisecond: number) => DateType;
|
|
31
|
+
// Compare
|
|
32
|
+
isAfter: (date1: DateType, date2: DateType) => boolean;
|
|
33
|
+
isValidate: (date: DateType) => boolean;
|
|
31
34
|
locale: {
|
|
32
|
-
getWeekFirstDay: (locale: string) => number
|
|
33
|
-
getWeekFirstDate: (locale: string, value: DateType) => DateType
|
|
34
|
-
getWeek: (locale: string, value: DateType) => number
|
|
35
|
-
format: (locale: string, date: DateType, format: string) => string
|
|
35
|
+
getWeekFirstDay: (locale: string) => number;
|
|
36
|
+
getWeekFirstDate: (locale: string, value: DateType) => DateType;
|
|
37
|
+
getWeek: (locale: string, value: DateType) => number;
|
|
38
|
+
format: (locale: string, date: DateType, format: string) => string;
|
|
36
39
|
/** Should only return validate date instance */
|
|
37
|
-
parse: (locale: string, text: string, formats: string[]) => DateType | null
|
|
40
|
+
parse: (locale: string, text: string, formats: string[]) => DateType | null;
|
|
38
41
|
/** A proxy for getting locale with moment or other locale library */
|
|
39
|
-
getShortWeekDays?: (locale: string) => string[]
|
|
42
|
+
getShortWeekDays?: (locale: string) => string[];
|
|
40
43
|
/** A proxy for getting locale with moment or other locale library */
|
|
41
|
-
getShortMonths?: (locale: string) => string[]
|
|
42
|
-
}
|
|
44
|
+
getShortMonths?: (locale: string) => string[];
|
|
45
|
+
};
|
|
43
46
|
};
|
|
44
47
|
declare const generateConfig: GenerateConfig<Dayjs>;
|
|
45
48
|
export default generateConfig;
|
|
@@ -2,6 +2,8 @@ import { Button } from "antd";
|
|
|
2
2
|
import type { ComponentPropsWithoutRef } from "react";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import type { ActionWithRulesProps } from "react-querybuilder";
|
|
5
|
+
// TODO: This may be unnecessary. Find out if there's a way to allow
|
|
6
|
+
// `data-${string}` index keys without breaking other type contraints.
|
|
5
7
|
type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
|
|
6
8
|
/**
|
|
7
9
|
* @group Props
|
|
@@ -5,8 +5,9 @@ import type { DragHandleProps } from "react-querybuilder";
|
|
|
5
5
|
/**
|
|
6
6
|
* @group Props
|
|
7
7
|
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8
9
|
export type AntDDragHandleProps = DragHandleProps & {
|
|
9
|
-
label?: any
|
|
10
|
+
label?: any;
|
|
10
11
|
} & ComponentPropsWithRef<typeof HolderOutlined>;
|
|
11
12
|
/**
|
|
12
13
|
* @group Components
|
|
@@ -5,41 +5,44 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Dayjs } from "dayjs";
|
|
7
7
|
type GenerateConfig<DateType> = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
// Get
|
|
9
|
+
getWeekDay: (value: DateType) => number;
|
|
10
|
+
getMillisecond: (value: DateType) => number;
|
|
11
|
+
getSecond: (value: DateType) => number;
|
|
12
|
+
getMinute: (value: DateType) => number;
|
|
13
|
+
getHour: (value: DateType) => number;
|
|
14
|
+
getDate: (value: DateType) => number;
|
|
15
|
+
getMonth: (value: DateType) => number;
|
|
16
|
+
getYear: (value: DateType) => number;
|
|
17
|
+
getNow: () => DateType;
|
|
18
|
+
getFixedDate: (fixed: string) => DateType;
|
|
19
|
+
getEndDate: (value: DateType) => DateType;
|
|
20
|
+
// Set
|
|
21
|
+
addYear: (value: DateType, diff: number) => DateType;
|
|
22
|
+
addMonth: (value: DateType, diff: number) => DateType;
|
|
23
|
+
addDate: (value: DateType, diff: number) => DateType;
|
|
24
|
+
setYear: (value: DateType, year: number) => DateType;
|
|
25
|
+
setMonth: (value: DateType, month: number) => DateType;
|
|
26
|
+
setDate: (value: DateType, date: number) => DateType;
|
|
27
|
+
setHour: (value: DateType, hour: number) => DateType;
|
|
28
|
+
setMinute: (value: DateType, minute: number) => DateType;
|
|
29
|
+
setSecond: (value: DateType, second: number) => DateType;
|
|
30
|
+
setMillisecond: (value: DateType, millisecond: number) => DateType;
|
|
31
|
+
// Compare
|
|
32
|
+
isAfter: (date1: DateType, date2: DateType) => boolean;
|
|
33
|
+
isValidate: (date: DateType) => boolean;
|
|
31
34
|
locale: {
|
|
32
|
-
getWeekFirstDay: (locale: string) => number
|
|
33
|
-
getWeekFirstDate: (locale: string, value: DateType) => DateType
|
|
34
|
-
getWeek: (locale: string, value: DateType) => number
|
|
35
|
-
format: (locale: string, date: DateType, format: string) => string
|
|
35
|
+
getWeekFirstDay: (locale: string) => number;
|
|
36
|
+
getWeekFirstDate: (locale: string, value: DateType) => DateType;
|
|
37
|
+
getWeek: (locale: string, value: DateType) => number;
|
|
38
|
+
format: (locale: string, date: DateType, format: string) => string;
|
|
36
39
|
/** Should only return validate date instance */
|
|
37
|
-
parse: (locale: string, text: string, formats: string[]) => DateType | null
|
|
40
|
+
parse: (locale: string, text: string, formats: string[]) => DateType | null;
|
|
38
41
|
/** A proxy for getting locale with moment or other locale library */
|
|
39
|
-
getShortWeekDays?: (locale: string) => string[]
|
|
42
|
+
getShortWeekDays?: (locale: string) => string[];
|
|
40
43
|
/** A proxy for getting locale with moment or other locale library */
|
|
41
|
-
getShortMonths?: (locale: string) => string[]
|
|
42
|
-
}
|
|
44
|
+
getShortMonths?: (locale: string) => string[];
|
|
45
|
+
};
|
|
43
46
|
};
|
|
44
47
|
declare const generateConfig: GenerateConfig<Dayjs>;
|
|
45
48
|
export default generateConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-querybuilder/antd",
|
|
3
3
|
"description": "Custom Ant Design components for react-querybuilder",
|
|
4
|
-
"version": "8.7.
|
|
4
|
+
"version": "8.7.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"@ant-design/v5-patch-for-react-19": "^1.0.3",
|
|
57
57
|
"@testing-library/dom": "^10.4.0",
|
|
58
58
|
"@testing-library/react": "^16.3.0",
|
|
59
|
-
"@types/react": "^19.1.
|
|
60
|
-
"@vitejs/plugin-react": "^4.
|
|
61
|
-
"antd": "^5.25.
|
|
59
|
+
"@types/react": "^19.1.6",
|
|
60
|
+
"@vitejs/plugin-react": "^4.5.1",
|
|
61
|
+
"antd": "^5.25.4",
|
|
62
62
|
"dayjs": "^1.11.13",
|
|
63
63
|
"react": "^19.1.0",
|
|
64
64
|
"react-dom": "^19.1.0",
|
|
65
|
-
"react-querybuilder": "8.7.
|
|
66
|
-
"rollup-plugin-visualizer": "^
|
|
65
|
+
"react-querybuilder": "8.7.1",
|
|
66
|
+
"rollup-plugin-visualizer": "^6.0.3",
|
|
67
67
|
"typescript": "^5.8.3",
|
|
68
68
|
"vite": "^6.3.5"
|
|
69
69
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"antd": ">=5.11.0",
|
|
73
73
|
"dayjs": ">=1",
|
|
74
74
|
"react": ">=18",
|
|
75
|
-
"react-querybuilder": "8.7.
|
|
75
|
+
"react-querybuilder": "8.7.1"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a83bfef9b4e76c2c0aac631d83715cd8a87c168c"
|
|
78
78
|
}
|