@elliemae/ds-query-builder 3.0.0-alpha.0 → 3.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.
Files changed (80) hide show
  1. package/dist/cjs/components/DragControllerRow/DragControllerRow.js +45 -13
  2. package/dist/cjs/components/DragControllerRow/DragControllerRow.js.map +1 -1
  3. package/dist/cjs/components/Nestable/Nestable.js +18 -8
  4. package/dist/cjs/components/Nestable/Nestable.js.map +1 -1
  5. package/dist/cjs/components/Nestable/NestableItem.js +28 -20
  6. package/dist/cjs/components/Nestable/NestableItem.js.map +1 -1
  7. package/dist/cjs/components/Nestable/actions/events.js +18 -8
  8. package/dist/cjs/components/Nestable/actions/events.js.map +1 -1
  9. package/dist/cjs/components/Nestable/actions/moveItem.js +17 -4
  10. package/dist/cjs/components/Nestable/actions/moveItem.js.map +1 -1
  11. package/dist/cjs/components/QueryBuilderImpl.js +36 -8
  12. package/dist/cjs/components/QueryBuilderImpl.js.map +1 -1
  13. package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js +19 -3
  14. package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +1 -1
  15. package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js +19 -3
  16. package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +1 -1
  17. package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js +19 -3
  18. package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +1 -1
  19. package/dist/cjs/components/helpers/actions.js +23 -12
  20. package/dist/cjs/components/helpers/actions.js.map +1 -1
  21. package/dist/cjs/components/helpers/store.js +26 -14
  22. package/dist/cjs/components/helpers/store.js.map +1 -1
  23. package/dist/esm/components/DragControllerRow/DragControllerRow.js +47 -13
  24. package/dist/esm/components/DragControllerRow/DragControllerRow.js.map +1 -1
  25. package/dist/esm/components/Nestable/Nestable.js +20 -8
  26. package/dist/esm/components/Nestable/Nestable.js.map +1 -1
  27. package/dist/esm/components/Nestable/NestableItem.js +30 -20
  28. package/dist/esm/components/Nestable/NestableItem.js.map +1 -1
  29. package/dist/esm/components/Nestable/actions/events.js +20 -8
  30. package/dist/esm/components/Nestable/actions/events.js.map +1 -1
  31. package/dist/esm/components/Nestable/actions/moveItem.js +19 -4
  32. package/dist/esm/components/Nestable/actions/moveItem.js.map +1 -1
  33. package/dist/esm/components/QueryBuilderImpl.js +38 -8
  34. package/dist/esm/components/QueryBuilderImpl.js.map +1 -1
  35. package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js +21 -3
  36. package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +1 -1
  37. package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js +21 -3
  38. package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +1 -1
  39. package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js +21 -3
  40. package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +1 -1
  41. package/dist/esm/components/helpers/actions.js +25 -12
  42. package/dist/esm/components/helpers/actions.js.map +1 -1
  43. package/dist/esm/components/helpers/store.js +28 -14
  44. package/dist/esm/components/helpers/store.js.map +1 -1
  45. package/package.json +13 -12
  46. package/dist/types/DSQueryBuilder.d.ts +0 -180
  47. package/dist/types/components/AndOrController/AndOrController.d.ts +0 -38
  48. package/dist/types/components/ConditionController/ConditionController.d.ts +0 -16
  49. package/dist/types/components/DisplayOutput/DisplayOutput.d.ts +0 -7
  50. package/dist/types/components/DragContainerController/DragContainerController.d.ts +0 -9
  51. package/dist/types/components/DragControllerRow/DragControllerRow.d.ts +0 -9
  52. package/dist/types/components/FieldControllerRow/FieldControllerRow.d.ts +0 -9
  53. package/dist/types/components/Nestable/Nestable.d.ts +0 -51
  54. package/dist/types/components/Nestable/NestableItem.d.ts +0 -12
  55. package/dist/types/components/Nestable/actions/events.d.ts +0 -6
  56. package/dist/types/components/Nestable/actions/getItemOptions.d.ts +0 -11
  57. package/dist/types/components/Nestable/actions/getPaths.d.ts +0 -5
  58. package/dist/types/components/Nestable/actions/index.d.ts +0 -6
  59. package/dist/types/components/Nestable/actions/moveItem.d.ts +0 -5
  60. package/dist/types/components/Nestable/actions/paths.d.ts +0 -5
  61. package/dist/types/components/Nestable/actions/tryDecreaseDepth.d.ts +0 -1
  62. package/dist/types/components/Nestable/actions/tryIncreaseDepth.d.ts +0 -1
  63. package/dist/types/components/Nestable/index.d.ts +0 -2
  64. package/dist/types/components/QueryBuilderContext/QueryBuilderContext.d.ts +0 -2
  65. package/dist/types/components/QueryBuilderImpl.d.ts +0 -49
  66. package/dist/types/components/QueryBuilderItem/QueryBuilderItem.d.ts +0 -5
  67. package/dist/types/components/QueryBuilderRow/QueryBuilderRow.d.ts +0 -12
  68. package/dist/types/components/ToolBarAnimation/ToolBarAnimation.d.ts +0 -3
  69. package/dist/types/components/format/format.d.ts +0 -26
  70. package/dist/types/components/format/sqlFormat.d.ts +0 -5
  71. package/dist/types/components/format/sqlSafeFormat.d.ts +0 -6
  72. package/dist/types/components/format/xmlFormat.d.ts +0 -5
  73. package/dist/types/components/helpers/actions.d.ts +0 -63
  74. package/dist/types/components/helpers/constants.d.ts +0 -3
  75. package/dist/types/components/helpers/dependencies.d.ts +0 -1
  76. package/dist/types/components/helpers/selectors.d.ts +0 -20
  77. package/dist/types/components/helpers/store.d.ts +0 -144
  78. package/dist/types/components/helpers/types.d.ts +0 -50
  79. package/dist/types/index.d.ts +0 -2
  80. package/dist/types/propTypes.d.ts +0 -156
@@ -1,180 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- /// <reference types="react" />
3
- import { QB_FIELD_TYPES, QB_OPERATOR_TYPES, QB_GROUP_CONDITION_TYPES, QB_DRAG_TYPES, QB_DRAG_LOCATIONS, QB_EXPORT_FORMAT_TYPES, QB_ADD_FILTER_METHOD_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QB_FIELD_SHARED_ACTIONS } from './components/helpers/types';
4
- import { QB_OPERATOR_OPTIONS, QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_SUBJECT_VALUES_OPTIONS } from './components/helpers/selectors';
5
- import QueryBuilderFormat from './components/format/format';
6
- declare const DSQueryBuilder: {
7
- ({ containerProps, addFilterMethod, groupFilterMethod, onChange, fields, fieldsSharedActions, format, init, ruleContainerClassName, handleDrop, handleDropFilter, handleDropGroup, handleFieldChange, handleRuleContainerOperator, handleRuleContainerUnGroup, onAddFilter, onAddRuleContainer, onRemoveFilter, displayFixedOutput, displayOutput, displayOutputLabel, singleRow, toolTipZIndex, }: {
8
- containerProps?: {} | undefined;
9
- addFilterMethod?: string | undefined;
10
- groupFilterMethod?: string | undefined;
11
- onChange?: (() => null) | undefined;
12
- fields?: never[] | undefined;
13
- fieldsSharedActions?: {
14
- onFieldChange: never[];
15
- onOperatorChange: never[];
16
- onValueChange: never[];
17
- } | undefined;
18
- format?: string | undefined;
19
- init?: null | undefined;
20
- ruleContainerClassName?: string | undefined;
21
- handleDrop?: (() => null) | undefined;
22
- handleDropFilter?: (() => null) | undefined;
23
- handleDropGroup?: (() => null) | undefined;
24
- handleFieldChange?: (() => null) | undefined;
25
- handleRuleContainerOperator?: (() => null) | undefined;
26
- handleRuleContainerUnGroup?: (() => null) | undefined;
27
- onAddFilter?: (() => null) | undefined;
28
- onAddRuleContainer?: (() => null) | undefined;
29
- onRemoveFilter?: (() => null) | undefined;
30
- displayFixedOutput: any;
31
- displayOutput?: boolean | undefined;
32
- displayOutputLabel?: {
33
- show: string;
34
- hide: string;
35
- } | undefined;
36
- singleRow?: boolean | undefined;
37
- toolTipZIndex?: number | undefined;
38
- }): JSX.Element;
39
- propTypes: {
40
- containerProps: {
41
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
42
- deprecated: import("react-desc").PropTypesDescValidator;
43
- };
44
- isRequired: import("react-desc").PropTypesDescValue;
45
- };
46
- addFilterMethod: {
47
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
48
- deprecated: import("react-desc").PropTypesDescValidator;
49
- };
50
- isRequired: import("react-desc").PropTypesDescValue;
51
- };
52
- groupFilterMethod: {
53
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
54
- deprecated: import("react-desc").PropTypesDescValidator;
55
- };
56
- isRequired: import("react-desc").PropTypesDescValue;
57
- };
58
- onChange: {
59
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
60
- deprecated: import("react-desc").PropTypesDescValidator;
61
- };
62
- isRequired: import("react-desc").PropTypesDescValue;
63
- };
64
- fields: {
65
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
66
- deprecated: import("react-desc").PropTypesDescValidator;
67
- };
68
- isRequired: import("react-desc").PropTypesDescValue;
69
- };
70
- fieldsSharedActions: {
71
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
72
- deprecated: import("react-desc").PropTypesDescValidator;
73
- };
74
- isRequired: import("react-desc").PropTypesDescValue;
75
- };
76
- format: {
77
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
78
- deprecated: import("react-desc").PropTypesDescValidator;
79
- };
80
- isRequired: import("react-desc").PropTypesDescValue;
81
- };
82
- init: {
83
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
84
- deprecated: import("react-desc").PropTypesDescValidator;
85
- };
86
- isRequired: import("react-desc").PropTypesDescValue;
87
- };
88
- ruleContainerClassName: {
89
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
90
- deprecated: import("react-desc").PropTypesDescValidator;
91
- };
92
- isRequired: import("react-desc").PropTypesDescValue;
93
- };
94
- handleDrop: {
95
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
96
- deprecated: import("react-desc").PropTypesDescValidator;
97
- };
98
- isRequired: import("react-desc").PropTypesDescValue;
99
- };
100
- handleDropFilter: {
101
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
102
- deprecated: import("react-desc").PropTypesDescValidator;
103
- };
104
- isRequired: import("react-desc").PropTypesDescValue;
105
- };
106
- handleDropGroup: {
107
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
108
- deprecated: import("react-desc").PropTypesDescValidator;
109
- };
110
- isRequired: import("react-desc").PropTypesDescValue;
111
- };
112
- handleFieldChange: {
113
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
114
- deprecated: import("react-desc").PropTypesDescValidator;
115
- };
116
- isRequired: import("react-desc").PropTypesDescValue;
117
- };
118
- handleRuleContainerOperator: {
119
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
120
- deprecated: import("react-desc").PropTypesDescValidator;
121
- };
122
- isRequired: import("react-desc").PropTypesDescValue;
123
- };
124
- handleRuleContainerUnGroup: {
125
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
126
- deprecated: import("react-desc").PropTypesDescValidator;
127
- };
128
- isRequired: import("react-desc").PropTypesDescValue;
129
- };
130
- onAddFilter: {
131
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
132
- deprecated: import("react-desc").PropTypesDescValidator;
133
- };
134
- isRequired: import("react-desc").PropTypesDescValue;
135
- };
136
- onAddRuleContainer: {
137
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
138
- deprecated: import("react-desc").PropTypesDescValidator;
139
- };
140
- isRequired: import("react-desc").PropTypesDescValue;
141
- };
142
- onRemoveFilter: {
143
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
144
- deprecated: import("react-desc").PropTypesDescValidator;
145
- };
146
- isRequired: import("react-desc").PropTypesDescValue;
147
- };
148
- displayFixedOutput: {
149
- deprecated: import("react-desc").PropTypesDescValidator;
150
- };
151
- displayOutput: {
152
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
153
- deprecated: import("react-desc").PropTypesDescValidator;
154
- };
155
- isRequired: import("react-desc").PropTypesDescValue;
156
- };
157
- displayOutputLabel: {
158
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
159
- deprecated: import("react-desc").PropTypesDescValidator;
160
- };
161
- isRequired: import("react-desc").PropTypesDescValue;
162
- };
163
- singleRow: {
164
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
165
- deprecated: import("react-desc").PropTypesDescValidator;
166
- };
167
- isRequired: import("react-desc").PropTypesDescValue;
168
- };
169
- toolTipZIndex: {
170
- deprecated: import("react-desc").PropTypesDescValidator;
171
- };
172
- };
173
- };
174
- declare const DSQueryBuilderWithSchema: {
175
- (props?: unknown): JSX.Element;
176
- propTypes: unknown;
177
- toTypescript: () => import("react-desc").TypescriptSchema;
178
- };
179
- export { QB_FIELD_SHARED_ACTIONS, QB_FIELD_TYPES, QB_OPERATOR_TYPES, QB_OPERATOR_OPTIONS, QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_SUBJECT_VALUES_OPTIONS, QB_GROUP_CONDITION_TYPES, QB_DRAG_TYPES, QB_DRAG_LOCATIONS, QB_EXPORT_FORMAT_TYPES, QB_ADD_FILTER_METHOD_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QueryBuilderFormat, DSQueryBuilderWithSchema, DSQueryBuilder, };
180
- export default DSQueryBuilder;
@@ -1,38 +0,0 @@
1
- import { Component } from 'react';
2
- /**
3
- * condition-display-step: required to avoid the cache of the trigger
4
- *
5
- * @param e
6
- * @param isOpen
7
- */
8
- declare class AndOrController extends Component {
9
- static defaultProps: {
10
- isMain: boolean;
11
- handleRuleContainerOperator: () => null;
12
- handleRuleContainerUnGroup: () => null;
13
- handleTooltipGroup: () => null;
14
- labelOn: string;
15
- labelOff: string;
16
- condition: boolean;
17
- showDragController: boolean;
18
- allowUnGroup: boolean;
19
- buttonActionSize: string;
20
- buttonActionType: string;
21
- toogleActionSize: string;
22
- onAddFilter: () => null;
23
- multipleSize: boolean;
24
- delayClose: number;
25
- delayOpen: number;
26
- step: null;
27
- toolBarAnimationDuration: number;
28
- toolBarInteractionType: string;
29
- toolBarPosition: string;
30
- };
31
- constructor(props: any);
32
- handleMouseEnterRow: (e: any) => void;
33
- handleMouseMove: (e: any) => void;
34
- handleMouseLeaveRow: () => void;
35
- handleTooltipRow: (isOpen: any) => void;
36
- render(): JSX.Element;
37
- }
38
- export default AndOrController;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ConditionController: ({ onAddFilter, onAddRuleContainer, onRemoveFilter, handleTooltipRow, buttonTriggerSize, buttonTriggerType, buttonActionSize, buttonActionType, delayClose, delayOpen, isOpen, toolTipZIndex, }: {
3
- onAddFilter?: (() => null) | undefined;
4
- onAddRuleContainer?: (() => null) | undefined;
5
- onRemoveFilter?: (() => null) | undefined;
6
- handleTooltipRow?: (() => null) | undefined;
7
- buttonTriggerSize?: string | undefined;
8
- buttonTriggerType?: string | undefined;
9
- buttonActionSize?: string | undefined;
10
- buttonActionType?: string | undefined;
11
- delayClose?: number | undefined;
12
- delayOpen?: number | undefined;
13
- isOpen?: boolean | undefined;
14
- toolTipZIndex: any;
15
- }) => JSX.Element;
16
- export default ConditionController;
@@ -1,7 +0,0 @@
1
- import { Component } from 'react';
2
- declare class DisplayOutput extends Component {
3
- constructor(props: any);
4
- handleChange: () => void;
5
- render(): JSX.Element;
6
- }
7
- export default DisplayOutput;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const DragContainerController: ({ color, icon: Icon, size, multipleSize, onClick, }: {
3
- color?: string[] | undefined;
4
- icon?: ((rest: any) => JSX.Element) | undefined;
5
- size?: string | undefined;
6
- multipleSize?: boolean | undefined;
7
- onClick: any;
8
- }) => JSX.Element;
9
- export default DragContainerController;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const DragControllerRow: ({ className, color, icon: Icon, size, ...rest }: {
3
- [x: string]: any;
4
- className?: string | undefined;
5
- color?: string[] | undefined;
6
- icon?: ((rest: any) => JSX.Element) | undefined;
7
- size?: string | undefined;
8
- }) => JSX.Element;
9
- export default DragControllerRow;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- declare const FieldControllerRow: ({ className, onChange, options, value, type, }: {
3
- className?: string | undefined;
4
- onChange?: (() => null) | undefined;
5
- options?: never[] | undefined;
6
- value?: string | undefined;
7
- type?: string | undefined;
8
- }) => JSX.Element;
9
- export default FieldControllerRow;
@@ -1,51 +0,0 @@
1
- import { Component } from 'react';
2
- declare class Nestable extends Component {
3
- constructor(props: any);
4
- componentDidMount(): void;
5
- componentWillUnmount(): void;
6
- static getDerivedStateFromProps(props: any, state: any): {
7
- items: any;
8
- dragItem: null;
9
- isDirty: boolean;
10
- oldProps: any;
11
- } | null;
12
- onDragStart: (e: any, item: any) => void;
13
- onDragEnd: (e: any, isCancel: any) => any;
14
- onMouseMove: (e: any) => void;
15
- onMouseEnter: (e: any, item: any) => void;
16
- onToggleCollapse: (item: any, isGetter: any) => any;
17
- onKeyDown: (e: any) => void;
18
- getDefaultItems: () => any;
19
- getPathById(id: any, items?: any): any[];
20
- getItemByPath(path: any, items?: any): null;
21
- getItemDepth: (item: any) => number;
22
- getSplicePath(path: any, options?: {}): {};
23
- getRealNextPath(prevPath: any, nextPath: any): any;
24
- getItemOptions(): {
25
- dragItem: any;
26
- childrenProp: any;
27
- renderItem: any;
28
- renderCollapseIcon: any;
29
- handler: any;
30
- onDragStart: any;
31
- onMouseEnter: any;
32
- isCollapsed: any;
33
- onToggleCollapse: any;
34
- };
35
- startTrackMouse: () => void;
36
- stopTrackMouse: () => void;
37
- isCollapsed: (item: any) => boolean;
38
- checkFilterChildren: (items: any) => any;
39
- dragRevert: () => void;
40
- dragApply(): void;
41
- tryIncreaseDepth(dragItem: any): void;
42
- tryDecreaseDepth(dragItem: any): void;
43
- moveItem({ dragItem, pathFrom, pathTo }: {
44
- dragItem: any;
45
- pathFrom: any;
46
- pathTo: any;
47
- }, extraProps?: {}): void;
48
- renderDragLayer(): JSX.Element;
49
- render(): JSX.Element;
50
- }
51
- export default Nestable;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const NestableItem: ({ item, isCopy, options, index, isAndItem, isOrItem, isDraggableItem, singleRow, }: {
3
- item: any;
4
- isCopy: any;
5
- options: any;
6
- index: any;
7
- isAndItem: any;
8
- isOrItem: any;
9
- isDraggableItem: any;
10
- singleRow: any;
11
- }) => JSX.Element;
12
- export default NestableItem;
@@ -1,6 +0,0 @@
1
- export declare function onDragStart(e: any, item: any): void;
2
- export declare function onDragEnd(e: any, isCancel: any): any;
3
- export declare function onMouseMove(e: any): void;
4
- export declare function onMouseEnter(e: any, item: any): void;
5
- export declare function onToggleCollapse(item: any, isGetter: any): any;
6
- export declare function onKeyDown(e: any): void;
@@ -1,11 +0,0 @@
1
- export declare function getItemOptions(): {
2
- dragItem: any;
3
- childrenProp: any;
4
- renderItem: any;
5
- renderCollapseIcon: any;
6
- handler: any;
7
- onDragStart: any;
8
- onMouseEnter: any;
9
- isCollapsed: any;
10
- onToggleCollapse: any;
11
- };
@@ -1,5 +0,0 @@
1
- export declare function getRealNextPath(prevPath: any, nextPath: any): any;
2
- export declare function getPathById(id: any, items: any): any[];
3
- export declare function getItemByPath(path: any, items: any): null;
4
- export declare function getItemDepth(item: any): number;
5
- export declare function getSplicePath(path: any, options?: {}): {};
@@ -1,6 +0,0 @@
1
- export { tryIncreaseDepth } from './tryIncreaseDepth';
2
- export { tryDecreaseDepth } from './tryDecreaseDepth';
3
- export { moveItem } from './moveItem';
4
- export * from './paths';
5
- export * from './events';
6
- export * from './getItemOptions';
@@ -1,5 +0,0 @@
1
- export declare function moveItem({ dragItem, pathFrom, pathTo }: {
2
- dragItem: any;
3
- pathFrom: any;
4
- pathTo: any;
5
- }, extraProps?: {}): void;
@@ -1,5 +0,0 @@
1
- export declare function getRealNextPath(prevPath: any, nextPath: any): any;
2
- export declare function getPathById(id: any, items?: any): any[];
3
- export declare function getItemByPath(path: any, items?: any): null;
4
- export declare function getItemDepth(item: any): number;
5
- export declare function getSplicePath(path: any, options?: {}): {};
@@ -1 +0,0 @@
1
- export declare function tryDecreaseDepth(dragItem: any): void;
@@ -1 +0,0 @@
1
- export declare function tryIncreaseDepth(dragItem: any): void;
@@ -1,2 +0,0 @@
1
- import Nestable from './Nestable';
2
- export default Nestable;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const QueryBuilderContext: React.Context<{}>;
@@ -1,49 +0,0 @@
1
- import { Component } from 'react';
2
- declare class QueryBuilderImpl extends Component {
3
- isDraggableItem: boolean;
4
- constructor(props: any);
5
- onOrderDragAndDrop: (items: any, item: any) => void;
6
- onAddFilterToGroup: (idGroup: any) => void;
7
- onAddFilter: (idGroup: any, idFilter: any) => void;
8
- onAddRuleContainer: (idGroup: any, idFilter: any) => void;
9
- onRemoveFilter: (idFilter: any) => void;
10
- static getDerivedStateFromProps(props: any, state: any): {
11
- format: any;
12
- step: number;
13
- mapFilters: {};
14
- mapGroups: {};
15
- main: null;
16
- items: never[];
17
- } | null;
18
- componentDidUpdate(): void;
19
- handleFieldChange: (data: any) => void;
20
- handleRuleContainerOperator: (idGroup: any, value: any) => void;
21
- handleRuleContainerUnGroup: (idGroup: any) => void;
22
- /**
23
- * handleFieldChange and handleDropFilter
24
- * are equals right now, but they maybe
25
- * will have diferents logic
26
- *
27
- * @param filter
28
- * @param dragTo
29
- */
30
- handleDropFilter: (filter: any, dragTo: any) => void;
31
- /**
32
- * handleFieldChange and handleDropFilter
33
- * are equals right now, but they maybe
34
- * will have diferents logic
35
- *
36
- * @param group
37
- * @param dragTo
38
- */
39
- handleDropGroup: (group: any, dragTo: any) => void;
40
- handleDrop: (dragElement: any, dragTo: any) => void;
41
- sendChange: ({ format, ...newFilters }: {
42
- [x: string]: any;
43
- format: any;
44
- }) => void;
45
- sendCall: (action: any, data: any) => void;
46
- setDraggableItems: (drag: any) => void;
47
- render(): JSX.Element;
48
- }
49
- export default QueryBuilderImpl;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const QueryBuilderItem: ({ item }: {
3
- item: any;
4
- }) => JSX.Element;
5
- export default QueryBuilderItem;
@@ -1,12 +0,0 @@
1
- import { Component } from 'react';
2
- declare class QueryBuilderRow extends Component<any, any> {
3
- constructor(props: any);
4
- onChangeHandler(e: any, target: any, extraData: any, hasError: any): void;
5
- handleMouseEnterRow: () => void;
6
- handleMouseLeaveRow: () => void;
7
- handleMouseEnterInput: () => void;
8
- handleMouseLeaveInput: () => void;
9
- handleTooltipRow: (isOpen: any) => void;
10
- render(): JSX.Element;
11
- }
12
- export default QueryBuilderRow;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ToolBarAnimation: (props: any) => JSX.Element;
3
- export { ToolBarAnimation };
@@ -1,26 +0,0 @@
1
- declare class QueryBuilderFormat {
2
- format: {
3
- defaultFormat: (query: any) => any;
4
- sqlFormat: ({ main, mapGroups, items }: {
5
- main: any;
6
- mapGroups: any;
7
- items: any;
8
- }) => string;
9
- xmlFormat: ({ main, mapGroups, items }: {
10
- main: any;
11
- mapGroups: any;
12
- items: any;
13
- }) => string;
14
- sqlSafeFormat: ({ main, mapGroups, items }: {
15
- main: any;
16
- mapGroups: any;
17
- items: any;
18
- }) => string;
19
- };
20
- currentFormat: string;
21
- setDefaultFormat: (formatName: any) => void;
22
- addFormat: (formatName: any, format: any) => any;
23
- run: (query: any, formatName: any) => any;
24
- }
25
- declare const _default: QueryBuilderFormat;
26
- export default _default;
@@ -1,5 +0,0 @@
1
- export declare const sqlFormat: ({ main, mapGroups, items }: {
2
- main: any;
3
- mapGroups: any;
4
- items: any;
5
- }) => string;
@@ -1,6 +0,0 @@
1
- export declare const specialChar: RegExp;
2
- export declare const sqlSafeFormat: ({ main, mapGroups, items }: {
3
- main: any;
4
- mapGroups: any;
5
- items: any;
6
- }) => string;
@@ -1,5 +0,0 @@
1
- export declare const xmlFormat: ({ main, mapGroups, items }: {
2
- main: any;
3
- mapGroups: any;
4
- items: any;
5
- }) => string;
@@ -1,63 +0,0 @@
1
- /**
2
- * this is injected. instance of QBStore
3
- *
4
- * @param {*} idGroup: UUID
5
- * @param idGroup
6
- */
7
- export declare const createNewFilter: (idGroup: any) => {
8
- idGroup: any;
9
- field: string;
10
- condition: string;
11
- value: string;
12
- idFilter: string;
13
- type: string;
14
- };
15
- /**
16
- * this is injected. instance of QBStore
17
- *
18
- * @param {*} parentIdGroup: UUID
19
- * @param parentIdGroup
20
- */
21
- export declare const createNewGroup: (parentIdGroup: any) => {
22
- parentIdGroup: any;
23
- idGroup: string;
24
- condition: boolean;
25
- type: string;
26
- };
27
- /**
28
- * this is injected. instance of QBStore
29
- *
30
- * @param {*} newFilter
31
- */
32
- export declare const addFilterToMap: (newFilter: any) => void;
33
- /**
34
- * this is injected. instance of QBStore
35
- *
36
- * @param {*} newFilter
37
- * @param newGroup
38
- */
39
- export declare const addGroupToMap: (newGroup: any) => void;
40
- export declare const addFilterToItem: (item: any, newFilter: any) => void;
41
- export declare const addFilterToMainItem: (items: any, newFilter: any) => void;
42
- export declare const findInChilds: (childs: any, filterId: any) => any;
43
- export declare const findItemFilterById: (filterId: any) => any;
44
- export declare const findParentWithFilterId: (childs: any, filterId: any) => any;
45
- export declare const findParentFilterById: (filterId: any) => any;
46
- export declare const filterInChildren: (childs: any, filterId: any, mainId: any) => any;
47
- export declare const removeFilterItem: (filterId: any) => void;
48
- export declare const addGroupFilterToItem: (idGroup: any, idFilter: any, newGroup: any) => void;
49
- export declare const unGroupFilterToItem: (idGroup: any) => void;
50
- export declare const changeGroupOperator: (idGroup: any, value: any) => void;
51
- export declare const changeFilterItem: ({ idFilter, field, value, operator, additionalInfo, target, fieldsSharedActions: { onFieldChange, onOperatorChange, onValueChange }, }: {
52
- idFilter: any;
53
- field: any;
54
- value: any;
55
- operator: any;
56
- additionalInfo: any;
57
- target: any;
58
- fieldsSharedActions: {
59
- onFieldChange: any;
60
- onOperatorChange: any;
61
- onValueChange: any;
62
- };
63
- }) => void;
@@ -1,3 +0,0 @@
1
- export declare const DELAY_CLOSE = 0.1;
2
- export declare const DELAY_OPEN = 0.1;
3
- export declare const TOOLBAR_ANIMATION_DURATION = 50;
@@ -1 +0,0 @@
1
- export declare const resolveDependencies: (state: any, fields: any) => any;
@@ -1,20 +0,0 @@
1
- export declare const QB_DEFAULT_VALUES_OPTIONS: {
2
- label: string;
3
- value: string;
4
- }[];
5
- export declare const QB_SUBJECT_VALUES_OPTIONS: {
6
- label: string;
7
- value: string;
8
- }[];
9
- export declare const QB_LOAN_VALUES_OPTIONS: {
10
- label: string;
11
- value: string;
12
- }[];
13
- export declare const QB_FIELD_OPTIONS: {
14
- label: string;
15
- value: string;
16
- }[];
17
- export declare const QB_OPERATOR_OPTIONS: {
18
- label: string;
19
- value: string;
20
- }[];