@react-querybuilder/antd 6.6.0-alpha.0 → 7.0.0-alpha.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.
@@ -1,9 +1,26 @@
1
- import * as react_querybuilder from 'react-querybuilder';
2
- import { ActionWithRulesProps, DragHandleProps, NotToggleProps, ValueEditorProps, VersatileSelectorProps, Controls } from 'react-querybuilder';
3
- import { Button, Switch, Select } from 'antd';
4
- import * as React from 'react';
5
- import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
6
1
  import { HolderOutlined } from '@ant-design/icons';
2
+ import * as React from 'react';
3
+ import { ComponentPropsWithRef, ComponentPropsWithoutRef } from 'react';
4
+ import * as react_querybuilder from 'react-querybuilder';
5
+ import { DragHandleProps, NotToggleProps, VersatileSelectorProps, ActionWithRulesProps, ShiftActionsProps, ValueEditorProps } from 'react-querybuilder';
6
+ import { Switch, Select, Button } from 'antd';
7
+
8
+ type AntDDragHandleProps = DragHandleProps & {
9
+ label?: any;
10
+ } & ComponentPropsWithRef<typeof HolderOutlined>;
11
+ declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
12
+
13
+ type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
14
+ declare const AntDNotToggle: {
15
+ ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+
19
+ type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, 'onChange' | 'defaultValue'>;
20
+ declare const AntDValueSelector: {
21
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
22
+ displayName: string;
23
+ };
7
24
 
8
25
  type RemoveDataIndexKeys<T> = {
9
26
  [K in keyof T as `data-${string}` extends K ? never : K]: T[K];
@@ -14,12 +31,8 @@ declare const AntDActionElement: {
14
31
  displayName: string;
15
32
  };
16
33
 
17
- type AntDDragHandleProps = DragHandleProps & ComponentPropsWithRef<typeof HolderOutlined>;
18
- declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
19
-
20
- type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
21
- declare const AntDNotToggle: {
22
- ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
34
+ declare const AntDShiftActions: {
35
+ ({ path, disabled, className, labels, titles, testID, lastInGroup, schema: { combinators, dispatchQuery, getQuery }, }: ShiftActionsProps): React.JSX.Element;
23
36
  displayName: string;
24
37
  };
25
38
 
@@ -28,13 +41,101 @@ declare const AntDValueEditor: {
28
41
  displayName: string;
29
42
  };
30
43
 
31
- type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, 'onChange' | 'defaultValue'>;
32
- declare const AntDValueSelector: {
33
- ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
34
- displayName: string;
44
+ declare const antdControlElements: {
45
+ addGroupAction: {
46
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
47
+ displayName: string;
48
+ };
49
+ addRuleAction: {
50
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
51
+ displayName: string;
52
+ };
53
+ cloneGroupAction: {
54
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
55
+ displayName: string;
56
+ };
57
+ cloneRuleAction: {
58
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
59
+ displayName: string;
60
+ };
61
+ lockGroupAction: {
62
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
63
+ displayName: string;
64
+ };
65
+ lockRuleAction: {
66
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
67
+ displayName: string;
68
+ };
69
+ combinatorSelector: {
70
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
71
+ displayName: string;
72
+ };
73
+ fieldSelector: {
74
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
75
+ displayName: string;
76
+ };
77
+ notToggle: {
78
+ ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
79
+ displayName: string;
80
+ };
81
+ operatorSelector: {
82
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
83
+ displayName: string;
84
+ };
85
+ removeGroupAction: {
86
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
87
+ displayName: string;
88
+ };
89
+ removeRuleAction: {
90
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
91
+ displayName: string;
92
+ };
93
+ valueEditor: {
94
+ ({ fieldData, operator, value, handleOnChange, title, className, type, inputType, values, listsAsArrays, parseNumbers, separator, valueSource: _vs, disabled, testID, selectorComponent: SelectorComponent, ...props }: react_querybuilder.ValueEditorProps<react_querybuilder.Field<string, string, string, react_querybuilder.Option<string>, react_querybuilder.Option<string>>, string>): React.JSX.Element | null;
95
+ displayName: string;
96
+ };
97
+ dragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
98
+ valueSourceSelector: {
99
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
100
+ displayName: string;
101
+ };
102
+ shiftActions: {
103
+ ({ path, disabled, className, labels, titles, testID, lastInGroup, schema: { combinators, dispatchQuery, getQuery }, }: react_querybuilder.ShiftActionsProps): React.JSX.Element;
104
+ displayName: string;
105
+ };
106
+ };
107
+ declare const antdTranslations: {
108
+ removeGroup: {
109
+ label: React.JSX.Element;
110
+ };
111
+ removeRule: {
112
+ label: React.JSX.Element;
113
+ };
114
+ cloneRule: {
115
+ label: React.JSX.Element;
116
+ };
117
+ cloneRuleGroup: {
118
+ label: React.JSX.Element;
119
+ };
120
+ lockGroup: {
121
+ label: React.JSX.Element;
122
+ };
123
+ lockRule: {
124
+ label: React.JSX.Element;
125
+ };
126
+ lockGroupDisabled: {
127
+ label: React.JSX.Element;
128
+ };
129
+ lockRuleDisabled: {
130
+ label: React.JSX.Element;
131
+ };
132
+ shiftActionUp: {
133
+ label: React.JSX.Element;
134
+ };
135
+ shiftActionDown: {
136
+ label: React.JSX.Element;
137
+ };
35
138
  };
36
-
37
- declare const antdControlElements: Partial<Controls>;
38
139
  declare const QueryBuilderAntD: react_querybuilder.QueryBuilderContextProvider<Record<string, any>>;
39
140
 
40
- export { AntDActionElement, AntDActionProps, AntDDragHandle, AntDDragHandleProps, AntDNotToggle, AntDNotToggleProps, AntDValueEditor, AntDValueSelector, AntDValueSelectorProps, QueryBuilderAntD, antdControlElements };
141
+ export { AntDActionElement, AntDActionProps, AntDDragHandle, AntDDragHandleProps, AntDNotToggle, AntDNotToggleProps, AntDShiftActions, AntDValueEditor, AntDValueSelector, AntDValueSelectorProps, QueryBuilderAntD, antdControlElements, antdTranslations };
@@ -1,9 +1,26 @@
1
- import * as react_querybuilder from 'react-querybuilder';
2
- import { ActionWithRulesProps, DragHandleProps, NotToggleProps, ValueEditorProps, VersatileSelectorProps, Controls } from 'react-querybuilder';
3
- import { Button, Switch, Select } from 'antd';
4
- import * as React from 'react';
5
- import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
6
1
  import { HolderOutlined } from '@ant-design/icons';
2
+ import * as React from 'react';
3
+ import { ComponentPropsWithRef, ComponentPropsWithoutRef } from 'react';
4
+ import * as react_querybuilder from 'react-querybuilder';
5
+ import { DragHandleProps, NotToggleProps, VersatileSelectorProps, ActionWithRulesProps, ShiftActionsProps, ValueEditorProps } from 'react-querybuilder';
6
+ import { Switch, Select, Button } from 'antd';
7
+
8
+ type AntDDragHandleProps = DragHandleProps & {
9
+ label?: any;
10
+ } & ComponentPropsWithRef<typeof HolderOutlined>;
11
+ declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
12
+
13
+ type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
14
+ declare const AntDNotToggle: {
15
+ ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+
19
+ type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, 'onChange' | 'defaultValue'>;
20
+ declare const AntDValueSelector: {
21
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
22
+ displayName: string;
23
+ };
7
24
 
8
25
  type RemoveDataIndexKeys<T> = {
9
26
  [K in keyof T as `data-${string}` extends K ? never : K]: T[K];
@@ -14,12 +31,8 @@ declare const AntDActionElement: {
14
31
  displayName: string;
15
32
  };
16
33
 
17
- type AntDDragHandleProps = DragHandleProps & ComponentPropsWithRef<typeof HolderOutlined>;
18
- declare const AntDDragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
19
-
20
- type AntDNotToggleProps = NotToggleProps & ComponentPropsWithoutRef<typeof Switch>;
21
- declare const AntDNotToggle: {
22
- ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
34
+ declare const AntDShiftActions: {
35
+ ({ path, disabled, className, labels, titles, testID, lastInGroup, schema: { combinators, dispatchQuery, getQuery }, }: ShiftActionsProps): React.JSX.Element;
23
36
  displayName: string;
24
37
  };
25
38
 
@@ -28,13 +41,101 @@ declare const AntDValueEditor: {
28
41
  displayName: string;
29
42
  };
30
43
 
31
- type AntDValueSelectorProps = VersatileSelectorProps & Omit<ComponentPropsWithoutRef<typeof Select>, 'onChange' | 'defaultValue'>;
32
- declare const AntDValueSelector: {
33
- ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
34
- displayName: string;
44
+ declare const antdControlElements: {
45
+ addGroupAction: {
46
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
47
+ displayName: string;
48
+ };
49
+ addRuleAction: {
50
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
51
+ displayName: string;
52
+ };
53
+ cloneGroupAction: {
54
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
55
+ displayName: string;
56
+ };
57
+ cloneRuleAction: {
58
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
59
+ displayName: string;
60
+ };
61
+ lockGroupAction: {
62
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
63
+ displayName: string;
64
+ };
65
+ lockRuleAction: {
66
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
67
+ displayName: string;
68
+ };
69
+ combinatorSelector: {
70
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
71
+ displayName: string;
72
+ };
73
+ fieldSelector: {
74
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
75
+ displayName: string;
76
+ };
77
+ notToggle: {
78
+ ({ className, handleOnChange, label, checked, title, disabled, path: _path, context: _context, validation: _validation, testID: _testID, schema: _schema, ruleGroup: _ruleGroup, ...extraProps }: AntDNotToggleProps): React.JSX.Element;
79
+ displayName: string;
80
+ };
81
+ operatorSelector: {
82
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
83
+ displayName: string;
84
+ };
85
+ removeGroupAction: {
86
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
87
+ displayName: string;
88
+ };
89
+ removeRuleAction: {
90
+ ({ className, handleOnClick, label, title, disabled, disabledTranslation, testID: _testID, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, ruleOrGroup: _ruleOrGroup, schema: _schema, ...extraProps }: AntDActionProps): React.JSX.Element;
91
+ displayName: string;
92
+ };
93
+ valueEditor: {
94
+ ({ fieldData, operator, value, handleOnChange, title, className, type, inputType, values, listsAsArrays, parseNumbers, separator, valueSource: _vs, disabled, testID, selectorComponent: SelectorComponent, ...props }: react_querybuilder.ValueEditorProps<react_querybuilder.Field<string, string, string, react_querybuilder.Option<string>, react_querybuilder.Option<string>>, string>): React.JSX.Element | null;
95
+ displayName: string;
96
+ };
97
+ dragHandle: React.ForwardRefExoticComponent<Omit<AntDDragHandleProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
98
+ valueSourceSelector: {
99
+ ({ className, handleOnChange, options, value, title, disabled, multiple, listsAsArrays, testID: _testID, rule: _rule, rules: _rules, level: _level, path: _path, context: _context, validation: _validation, operator: _operator, field: _field, fieldData: _fieldData, schema: _schema, ...extraProps }: AntDValueSelectorProps): React.JSX.Element;
100
+ displayName: string;
101
+ };
102
+ shiftActions: {
103
+ ({ path, disabled, className, labels, titles, testID, lastInGroup, schema: { combinators, dispatchQuery, getQuery }, }: react_querybuilder.ShiftActionsProps): React.JSX.Element;
104
+ displayName: string;
105
+ };
106
+ };
107
+ declare const antdTranslations: {
108
+ removeGroup: {
109
+ label: React.JSX.Element;
110
+ };
111
+ removeRule: {
112
+ label: React.JSX.Element;
113
+ };
114
+ cloneRule: {
115
+ label: React.JSX.Element;
116
+ };
117
+ cloneRuleGroup: {
118
+ label: React.JSX.Element;
119
+ };
120
+ lockGroup: {
121
+ label: React.JSX.Element;
122
+ };
123
+ lockRule: {
124
+ label: React.JSX.Element;
125
+ };
126
+ lockGroupDisabled: {
127
+ label: React.JSX.Element;
128
+ };
129
+ lockRuleDisabled: {
130
+ label: React.JSX.Element;
131
+ };
132
+ shiftActionUp: {
133
+ label: React.JSX.Element;
134
+ };
135
+ shiftActionDown: {
136
+ label: React.JSX.Element;
137
+ };
35
138
  };
36
-
37
- declare const antdControlElements: Partial<Controls>;
38
139
  declare const QueryBuilderAntD: react_querybuilder.QueryBuilderContextProvider<Record<string, any>>;
39
140
 
40
- export { AntDActionElement, AntDActionProps, AntDDragHandle, AntDDragHandleProps, AntDNotToggle, AntDNotToggleProps, AntDValueEditor, AntDValueSelector, AntDValueSelectorProps, QueryBuilderAntD, antdControlElements };
141
+ export { AntDActionElement, AntDActionProps, AntDDragHandle, AntDDragHandleProps, AntDNotToggle, AntDNotToggleProps, AntDShiftActions, AntDValueEditor, AntDValueSelector, AntDValueSelectorProps, QueryBuilderAntD, antdControlElements, antdTranslations };