@elliemae/ds-query-builder 2.3.0-alpha.2 → 2.3.0-alpha.7

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 (176) hide show
  1. package/{cjs → dist/cjs}/DSQueryBuilder.js +0 -0
  2. package/{cjs → dist/cjs}/DSQueryBuilder.js.map +0 -0
  3. package/{cjs → dist/cjs}/components/AndOrController/AndOrController.js +0 -0
  4. package/{cjs → dist/cjs}/components/AndOrController/AndOrController.js.map +0 -0
  5. package/{cjs → dist/cjs}/components/ConditionController/ConditionController.js +0 -0
  6. package/{cjs → dist/cjs}/components/ConditionController/ConditionController.js.map +0 -0
  7. package/{cjs → dist/cjs}/components/DisplayOutput/DisplayOutput.js +7 -3
  8. package/{cjs → dist/cjs}/components/DisplayOutput/DisplayOutput.js.map +2 -2
  9. package/{cjs → dist/cjs}/components/DragContainerController/DragContainerController.js +0 -0
  10. package/{cjs → dist/cjs}/components/DragContainerController/DragContainerController.js.map +0 -0
  11. package/{cjs → dist/cjs}/components/DragControllerRow/DragControllerRow.js +0 -0
  12. package/{cjs → dist/cjs}/components/DragControllerRow/DragControllerRow.js.map +0 -0
  13. package/{cjs → dist/cjs}/components/FieldControllerRow/FieldControllerRow.js +0 -0
  14. package/{cjs → dist/cjs}/components/FieldControllerRow/FieldControllerRow.js.map +0 -0
  15. package/{cjs → dist/cjs}/components/Nestable/Nestable.js +0 -0
  16. package/{cjs → dist/cjs}/components/Nestable/Nestable.js.map +0 -0
  17. package/{cjs → dist/cjs}/components/Nestable/NestableItem.js +0 -0
  18. package/{cjs → dist/cjs}/components/Nestable/NestableItem.js.map +0 -0
  19. package/{cjs → dist/cjs}/components/Nestable/actions/events.js +0 -0
  20. package/{cjs → dist/cjs}/components/Nestable/actions/events.js.map +0 -0
  21. package/{cjs → dist/cjs}/components/Nestable/actions/getItemOptions.js +0 -0
  22. package/{cjs → dist/cjs}/components/Nestable/actions/getItemOptions.js.map +0 -0
  23. package/{cjs → dist/cjs}/components/Nestable/actions/getPaths.js +0 -0
  24. package/{cjs → dist/cjs}/components/Nestable/actions/getPaths.js.map +0 -0
  25. package/{cjs → dist/cjs}/components/Nestable/actions/index.js +0 -0
  26. package/{cjs → dist/cjs}/components/Nestable/actions/index.js.map +0 -0
  27. package/{cjs → dist/cjs}/components/Nestable/actions/moveItem.js +0 -0
  28. package/{cjs → dist/cjs}/components/Nestable/actions/moveItem.js.map +0 -0
  29. package/{cjs → dist/cjs}/components/Nestable/actions/paths.js +0 -0
  30. package/{cjs → dist/cjs}/components/Nestable/actions/paths.js.map +0 -0
  31. package/{cjs → dist/cjs}/components/Nestable/actions/tryDecreaseDepth.js +0 -0
  32. package/{cjs → dist/cjs}/components/Nestable/actions/tryDecreaseDepth.js.map +0 -0
  33. package/{cjs → dist/cjs}/components/Nestable/actions/tryIncreaseDepth.js +0 -0
  34. package/{cjs → dist/cjs}/components/Nestable/actions/tryIncreaseDepth.js.map +0 -0
  35. package/{cjs → dist/cjs}/components/Nestable/index.js +0 -0
  36. package/{cjs → dist/cjs}/components/Nestable/index.js.map +0 -0
  37. package/{cjs → dist/cjs}/components/QueryBuilderContext/QueryBuilderContext.js +0 -0
  38. package/{cjs → dist/cjs}/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -0
  39. package/{cjs → dist/cjs}/components/QueryBuilderImpl.js +0 -0
  40. package/{cjs → dist/cjs}/components/QueryBuilderImpl.js.map +0 -0
  41. package/{cjs → dist/cjs}/components/QueryBuilderItem/QueryBuilderItem.js +0 -0
  42. package/{cjs → dist/cjs}/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -0
  43. package/{cjs → dist/cjs}/components/QueryBuilderRow/QueryBuilderRow.js +0 -0
  44. package/{cjs → dist/cjs}/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -0
  45. package/{cjs → dist/cjs}/components/ToolBarAnimation/ToolBarAnimation.js +0 -0
  46. package/{cjs → dist/cjs}/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -0
  47. package/{cjs → dist/cjs}/components/format/format.js +0 -0
  48. package/{cjs → dist/cjs}/components/format/format.js.map +0 -0
  49. package/{cjs → dist/cjs}/components/format/sqlFormat.js +0 -0
  50. package/{cjs → dist/cjs}/components/format/sqlFormat.js.map +0 -0
  51. package/{cjs → dist/cjs}/components/format/sqlSafeFormat.js +0 -0
  52. package/{cjs → dist/cjs}/components/format/sqlSafeFormat.js.map +0 -0
  53. package/{cjs → dist/cjs}/components/format/xmlFormat.js +0 -0
  54. package/{cjs → dist/cjs}/components/format/xmlFormat.js.map +0 -0
  55. package/{cjs → dist/cjs}/components/helpers/actions.js +0 -0
  56. package/{cjs → dist/cjs}/components/helpers/actions.js.map +0 -0
  57. package/{cjs → dist/cjs}/components/helpers/constants.js +0 -0
  58. package/{cjs → dist/cjs}/components/helpers/constants.js.map +0 -0
  59. package/{cjs → dist/cjs}/components/helpers/dependencies.js +0 -0
  60. package/{cjs → dist/cjs}/components/helpers/dependencies.js.map +0 -0
  61. package/{cjs → dist/cjs}/components/helpers/selectors.js +0 -0
  62. package/{cjs → dist/cjs}/components/helpers/selectors.js.map +0 -0
  63. package/{cjs → dist/cjs}/components/helpers/store.js +0 -0
  64. package/{cjs → dist/cjs}/components/helpers/store.js.map +0 -0
  65. package/{cjs → dist/cjs}/components/helpers/types.js +0 -0
  66. package/{cjs → dist/cjs}/components/helpers/types.js.map +0 -0
  67. package/{cjs → dist/cjs}/index.js +0 -0
  68. package/{cjs → dist/cjs}/index.js.map +0 -0
  69. package/{cjs → dist/cjs}/propTypes.js +0 -0
  70. package/{cjs → dist/cjs}/propTypes.js.map +0 -0
  71. package/{esm → dist/esm}/DSQueryBuilder.js +0 -0
  72. package/{esm → dist/esm}/DSQueryBuilder.js.map +0 -0
  73. package/{esm → dist/esm}/components/AndOrController/AndOrController.js +0 -0
  74. package/{esm → dist/esm}/components/AndOrController/AndOrController.js.map +0 -0
  75. package/{esm → dist/esm}/components/ConditionController/ConditionController.js +0 -0
  76. package/{esm → dist/esm}/components/ConditionController/ConditionController.js.map +0 -0
  77. package/{esm → dist/esm}/components/DisplayOutput/DisplayOutput.js +7 -3
  78. package/{esm → dist/esm}/components/DisplayOutput/DisplayOutput.js.map +2 -2
  79. package/{esm → dist/esm}/components/DragContainerController/DragContainerController.js +0 -0
  80. package/{esm → dist/esm}/components/DragContainerController/DragContainerController.js.map +0 -0
  81. package/{esm → dist/esm}/components/DragControllerRow/DragControllerRow.js +0 -0
  82. package/{esm → dist/esm}/components/DragControllerRow/DragControllerRow.js.map +0 -0
  83. package/{esm → dist/esm}/components/FieldControllerRow/FieldControllerRow.js +0 -0
  84. package/{esm → dist/esm}/components/FieldControllerRow/FieldControllerRow.js.map +0 -0
  85. package/{esm → dist/esm}/components/Nestable/Nestable.js +0 -0
  86. package/{esm → dist/esm}/components/Nestable/Nestable.js.map +0 -0
  87. package/{esm → dist/esm}/components/Nestable/NestableItem.js +0 -0
  88. package/{esm → dist/esm}/components/Nestable/NestableItem.js.map +0 -0
  89. package/{esm → dist/esm}/components/Nestable/actions/events.js +0 -0
  90. package/{esm → dist/esm}/components/Nestable/actions/events.js.map +0 -0
  91. package/{esm → dist/esm}/components/Nestable/actions/getItemOptions.js +0 -0
  92. package/{esm → dist/esm}/components/Nestable/actions/getItemOptions.js.map +0 -0
  93. package/{esm → dist/esm}/components/Nestable/actions/getPaths.js +0 -0
  94. package/{esm → dist/esm}/components/Nestable/actions/getPaths.js.map +0 -0
  95. package/{esm → dist/esm}/components/Nestable/actions/index.js +0 -0
  96. package/{esm → dist/esm}/components/Nestable/actions/index.js.map +0 -0
  97. package/{esm → dist/esm}/components/Nestable/actions/moveItem.js +0 -0
  98. package/{esm → dist/esm}/components/Nestable/actions/moveItem.js.map +0 -0
  99. package/{esm → dist/esm}/components/Nestable/actions/paths.js +0 -0
  100. package/{esm → dist/esm}/components/Nestable/actions/paths.js.map +0 -0
  101. package/{esm → dist/esm}/components/Nestable/actions/tryDecreaseDepth.js +0 -0
  102. package/{esm → dist/esm}/components/Nestable/actions/tryDecreaseDepth.js.map +0 -0
  103. package/{esm → dist/esm}/components/Nestable/actions/tryIncreaseDepth.js +0 -0
  104. package/{esm → dist/esm}/components/Nestable/actions/tryIncreaseDepth.js.map +0 -0
  105. package/{esm → dist/esm}/components/Nestable/index.js +0 -0
  106. package/{esm → dist/esm}/components/Nestable/index.js.map +0 -0
  107. package/{esm → dist/esm}/components/QueryBuilderContext/QueryBuilderContext.js +0 -0
  108. package/{esm → dist/esm}/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -0
  109. package/{esm → dist/esm}/components/QueryBuilderImpl.js +0 -0
  110. package/{esm → dist/esm}/components/QueryBuilderImpl.js.map +0 -0
  111. package/{esm → dist/esm}/components/QueryBuilderItem/QueryBuilderItem.js +0 -0
  112. package/{esm → dist/esm}/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -0
  113. package/{esm → dist/esm}/components/QueryBuilderRow/QueryBuilderRow.js +0 -0
  114. package/{esm → dist/esm}/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -0
  115. package/{esm → dist/esm}/components/ToolBarAnimation/ToolBarAnimation.js +0 -0
  116. package/{esm → dist/esm}/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -0
  117. package/{esm → dist/esm}/components/format/format.js +0 -0
  118. package/{esm → dist/esm}/components/format/format.js.map +0 -0
  119. package/{esm → dist/esm}/components/format/sqlFormat.js +0 -0
  120. package/{esm → dist/esm}/components/format/sqlFormat.js.map +0 -0
  121. package/{esm → dist/esm}/components/format/sqlSafeFormat.js +0 -0
  122. package/{esm → dist/esm}/components/format/sqlSafeFormat.js.map +0 -0
  123. package/{esm → dist/esm}/components/format/xmlFormat.js +0 -0
  124. package/{esm → dist/esm}/components/format/xmlFormat.js.map +0 -0
  125. package/{esm → dist/esm}/components/helpers/actions.js +0 -0
  126. package/{esm → dist/esm}/components/helpers/actions.js.map +0 -0
  127. package/{esm → dist/esm}/components/helpers/constants.js +0 -0
  128. package/{esm → dist/esm}/components/helpers/constants.js.map +0 -0
  129. package/{esm → dist/esm}/components/helpers/dependencies.js +0 -0
  130. package/{esm → dist/esm}/components/helpers/dependencies.js.map +0 -0
  131. package/{esm → dist/esm}/components/helpers/selectors.js +0 -0
  132. package/{esm → dist/esm}/components/helpers/selectors.js.map +0 -0
  133. package/{esm → dist/esm}/components/helpers/store.js +0 -0
  134. package/{esm → dist/esm}/components/helpers/store.js.map +0 -0
  135. package/{esm → dist/esm}/components/helpers/types.js +0 -0
  136. package/{esm → dist/esm}/components/helpers/types.js.map +0 -0
  137. package/{esm → dist/esm}/index.js +0 -0
  138. package/{esm → dist/esm}/index.js.map +0 -0
  139. package/{esm → dist/esm}/propTypes.js +0 -0
  140. package/{esm → dist/esm}/propTypes.js.map +0 -0
  141. package/package.json +97 -95
  142. package/types/DSQueryBuilder.d.ts +0 -180
  143. package/types/components/AndOrController/AndOrController.d.ts +0 -38
  144. package/types/components/ConditionController/ConditionController.d.ts +0 -16
  145. package/types/components/DisplayOutput/DisplayOutput.d.ts +0 -7
  146. package/types/components/DragContainerController/DragContainerController.d.ts +0 -9
  147. package/types/components/DragControllerRow/DragControllerRow.d.ts +0 -9
  148. package/types/components/FieldControllerRow/FieldControllerRow.d.ts +0 -9
  149. package/types/components/Nestable/Nestable.d.ts +0 -51
  150. package/types/components/Nestable/NestableItem.d.ts +0 -12
  151. package/types/components/Nestable/actions/events.d.ts +0 -6
  152. package/types/components/Nestable/actions/getItemOptions.d.ts +0 -11
  153. package/types/components/Nestable/actions/getPaths.d.ts +0 -5
  154. package/types/components/Nestable/actions/index.d.ts +0 -6
  155. package/types/components/Nestable/actions/moveItem.d.ts +0 -5
  156. package/types/components/Nestable/actions/paths.d.ts +0 -5
  157. package/types/components/Nestable/actions/tryDecreaseDepth.d.ts +0 -1
  158. package/types/components/Nestable/actions/tryIncreaseDepth.d.ts +0 -1
  159. package/types/components/Nestable/index.d.ts +0 -2
  160. package/types/components/QueryBuilderContext/QueryBuilderContext.d.ts +0 -2
  161. package/types/components/QueryBuilderImpl.d.ts +0 -49
  162. package/types/components/QueryBuilderItem/QueryBuilderItem.d.ts +0 -5
  163. package/types/components/QueryBuilderRow/QueryBuilderRow.d.ts +0 -12
  164. package/types/components/ToolBarAnimation/ToolBarAnimation.d.ts +0 -3
  165. package/types/components/format/format.d.ts +0 -26
  166. package/types/components/format/sqlFormat.d.ts +0 -5
  167. package/types/components/format/sqlSafeFormat.d.ts +0 -6
  168. package/types/components/format/xmlFormat.d.ts +0 -5
  169. package/types/components/helpers/actions.d.ts +0 -63
  170. package/types/components/helpers/constants.d.ts +0 -3
  171. package/types/components/helpers/dependencies.d.ts +0 -1
  172. package/types/components/helpers/selectors.d.ts +0 -20
  173. package/types/components/helpers/store.d.ts +0 -144
  174. package/types/components/helpers/types.d.ts +0 -50
  175. package/types/index.d.ts +0 -2
  176. package/types/propTypes.d.ts +0 -156
@@ -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
- }[];
@@ -1,144 +0,0 @@
1
- /**
2
- * Fluent interface: https://en.wikipedia.org/wiki/Fluent_interface
3
- *
4
- * @param idGroup
5
- * @param parentIdGroup
6
- * @param items
7
- * @param idFilter
8
- * @param value
9
- * @param data
10
- * @class QueryBuilderStore
11
- */
12
- declare class QueryBuilderStore {
13
- items: never[];
14
- step: number;
15
- steps: {};
16
- mapFilters: {};
17
- mapGroups: {};
18
- main: null;
19
- format: null;
20
- constructor(init: any, format: any);
21
- initSetupUp(init: any): void;
22
- createNewFilter: (idGroup: any) => {
23
- idGroup: any;
24
- field: string;
25
- condition: string;
26
- /**
27
- * Fluent interface: https://en.wikipedia.org/wiki/Fluent_interface
28
- *
29
- * @param idGroup
30
- * @param parentIdGroup
31
- * @param items
32
- * @param idFilter
33
- * @param value
34
- * @param data
35
- * @class QueryBuilderStore
36
- */
37
- value: string;
38
- idFilter: string;
39
- type: string;
40
- };
41
- createNewGroup: (parentIdGroup: any) => {
42
- parentIdGroup: any;
43
- idGroup: string;
44
- condition: boolean;
45
- type: string;
46
- };
47
- onOrderDragAndDrop: (items: any) => {
48
- format: any;
49
- step: number;
50
- mapFilters: {};
51
- mapGroups: {};
52
- main: null;
53
- items: never[];
54
- };
55
- addFilterNextToFilterId: (idGroup: any, idFilter: any) => {
56
- format: any;
57
- step: number;
58
- mapFilters: {};
59
- mapGroups: {};
60
- main: null;
61
- items: never[];
62
- };
63
- addFilter: (idGroup: any) => {
64
- format: any;
65
- step: number;
66
- mapFilters: {};
67
- mapGroups: {};
68
- main: null;
69
- items: never[];
70
- };
71
- onRemoveFilter: (idFilter: any) => {
72
- format: any;
73
- step: number;
74
- mapFilters: {};
75
- mapGroups: {};
76
- main: null;
77
- items: never[];
78
- };
79
- addRuleContainerInPlace: (idGroup: any, idFilter: any) => {
80
- format: any;
81
- step: number;
82
- mapFilters: {};
83
- mapGroups: {};
84
- main: null;
85
- items: never[];
86
- };
87
- /**
88
- * Group a filter inside a new Group
89
- *
90
- * @param idGroup
91
- * @param idFilter
92
- */
93
- addRuleContainer: (idGroup: any, idFilter: any) => {
94
- format: any;
95
- step: number;
96
- mapFilters: {};
97
- mapGroups: {};
98
- main: null;
99
- items: never[];
100
- };
101
- unGroup: (idGroup: any) => {
102
- format: any;
103
- step: number;
104
- mapFilters: {};
105
- mapGroups: {};
106
- main: null;
107
- items: never[];
108
- };
109
- changeGroupOperator: (idGroup: any, value: any) => {
110
- format: any;
111
- step: number;
112
- mapFilters: {};
113
- mapGroups: {};
114
- main: null;
115
- items: never[];
116
- };
117
- changeFilter: (data: any) => {
118
- format: any;
119
- step: number;
120
- mapFilters: {};
121
- mapGroups: {};
122
- main: null;
123
- items: never[];
124
- };
125
- getGroupById: (idGroup: any) => any;
126
- getFilterById: (idFilter: any) => any;
127
- getInitialState: () => {
128
- format: any;
129
- step: number;
130
- mapFilters: {};
131
- mapGroups: {};
132
- main: null;
133
- items: never[];
134
- };
135
- getState: () => {
136
- format: any;
137
- step: number;
138
- mapFilters: {};
139
- mapGroups: {};
140
- main: null;
141
- items: never[];
142
- };
143
- }
144
- export default QueryBuilderStore;
@@ -1,50 +0,0 @@
1
- export declare const QB_FIELD_TYPES: {
2
- LOAN_VALUES: string;
3
- LTV_VALUES: string;
4
- SUBJECT_VALUES: string;
5
- LAST_VALUES: string;
6
- CREDIT_VALUES: string;
7
- };
8
- export declare const QB_OPERATOR_TYPES: {
9
- EQUAL: string;
10
- NOT_EQUAL: string;
11
- GREATER_THAN: string;
12
- LESS_THAN: string;
13
- CONTAINS: string;
14
- NOT_CONTAINS: string;
15
- BETWEEN: string;
16
- GREATER_THAN_OR_EQUAL: string;
17
- LESS_THAN_OR_EQUAL: string;
18
- START_WITH: string;
19
- };
20
- export declare const QB_GROUP_CONDITION_TYPES: {
21
- AND: boolean;
22
- OR: boolean;
23
- };
24
- export declare const QB_DRAG_TYPES: {
25
- FILTER: string;
26
- GROUP: string;
27
- };
28
- export declare const QB_DRAG_LOCATIONS: {
29
- ABOVE: string;
30
- BELOW: string;
31
- };
32
- export declare const QB_EXPORT_FORMAT_TYPES: {
33
- DEFAULT: string;
34
- XML: string;
35
- SQL: string;
36
- SAFESQL: string;
37
- };
38
- export declare const QB_ADD_FILTER_METHOD_TYPES: {
39
- IN_PLACE: string;
40
- APPEND: string;
41
- };
42
- export declare const QB_GROUP_FILTER_METHOD_TYPES: {
43
- IN_PLACE: string;
44
- APPEND: string;
45
- };
46
- export declare const QB_FIELD_SHARED_ACTIONS: {
47
- RESET_FIELD: string;
48
- RESET_OPERATOR: string;
49
- RESET_VALUE: string;
50
- };
package/types/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default } from './DSQueryBuilder';
2
- export * from './DSQueryBuilder';
@@ -1,156 +0,0 @@
1
- /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
- export declare const props: {
3
- /** inpect props to component wrapper */
4
- containerProps: {
5
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
6
- deprecated: import("react-desc").PropTypesDescValidator;
7
- };
8
- isRequired: import("react-desc").PropTypesDescValue;
9
- };
10
- /** add filter strategy */
11
- addFilterMethod: {
12
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
13
- deprecated: import("react-desc").PropTypesDescValidator;
14
- };
15
- isRequired: import("react-desc").PropTypesDescValue;
16
- };
17
- /** group filter strategy */
18
- groupFilterMethod: {
19
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
20
- deprecated: import("react-desc").PropTypesDescValidator;
21
- };
22
- isRequired: import("react-desc").PropTypesDescValue;
23
- };
24
- /** change callback */
25
- onChange: {
26
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
27
- deprecated: import("react-desc").PropTypesDescValidator;
28
- };
29
- isRequired: import("react-desc").PropTypesDescValue;
30
- };
31
- /** fields to query */
32
- fields: {
33
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
34
- deprecated: import("react-desc").PropTypesDescValidator;
35
- };
36
- isRequired: import("react-desc").PropTypesDescValue;
37
- };
38
- /** fields actions */
39
- fieldsSharedActions: {
40
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
41
- deprecated: import("react-desc").PropTypesDescValidator;
42
- };
43
- isRequired: import("react-desc").PropTypesDescValue;
44
- };
45
- /** query builder format */
46
- format: {
47
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
48
- deprecated: import("react-desc").PropTypesDescValidator;
49
- };
50
- isRequired: import("react-desc").PropTypesDescValue;
51
- };
52
- /** initial values */
53
- init: {
54
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
55
- deprecated: import("react-desc").PropTypesDescValidator;
56
- };
57
- isRequired: import("react-desc").PropTypesDescValue;
58
- };
59
- /** class for rule container */
60
- ruleContainerClassName: {
61
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
62
- deprecated: import("react-desc").PropTypesDescValidator;
63
- };
64
- isRequired: import("react-desc").PropTypesDescValue;
65
- };
66
- /** handle field change */
67
- handleDrop: {
68
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
69
- deprecated: import("react-desc").PropTypesDescValidator;
70
- };
71
- isRequired: import("react-desc").PropTypesDescValue;
72
- };
73
- /** handle field change drop */
74
- handleDropFilter: {
75
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
76
- deprecated: import("react-desc").PropTypesDescValidator;
77
- };
78
- isRequired: import("react-desc").PropTypesDescValue;
79
- };
80
- /** handle field group change */
81
- handleDropGroup: {
82
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
83
- deprecated: import("react-desc").PropTypesDescValidator;
84
- };
85
- isRequired: import("react-desc").PropTypesDescValue;
86
- };
87
- /** handle field change */
88
- handleFieldChange: {
89
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
90
- deprecated: import("react-desc").PropTypesDescValidator;
91
- };
92
- isRequired: import("react-desc").PropTypesDescValue;
93
- };
94
- /** handle rule container operator change */
95
- handleRuleContainerOperator: {
96
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
97
- deprecated: import("react-desc").PropTypesDescValidator;
98
- };
99
- isRequired: import("react-desc").PropTypesDescValue;
100
- };
101
- /** handle rule container grouping change */
102
- handleRuleContainerUnGroup: {
103
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
104
- deprecated: import("react-desc").PropTypesDescValidator;
105
- };
106
- isRequired: import("react-desc").PropTypesDescValue;
107
- };
108
- /** filter add callback */
109
- onAddFilter: {
110
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
111
- deprecated: import("react-desc").PropTypesDescValidator;
112
- };
113
- isRequired: import("react-desc").PropTypesDescValue;
114
- };
115
- /** rule container add callback */
116
- onAddRuleContainer: {
117
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
118
- deprecated: import("react-desc").PropTypesDescValidator;
119
- };
120
- isRequired: import("react-desc").PropTypesDescValue;
121
- };
122
- /** remove filter callback */
123
- onRemoveFilter: {
124
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
125
- deprecated: import("react-desc").PropTypesDescValidator;
126
- };
127
- isRequired: import("react-desc").PropTypesDescValue;
128
- };
129
- displayFixedOutput: {
130
- deprecated: import("react-desc").PropTypesDescValidator;
131
- };
132
- /** show output */
133
- displayOutput: {
134
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
135
- deprecated: import("react-desc").PropTypesDescValidator;
136
- };
137
- isRequired: import("react-desc").PropTypesDescValue;
138
- };
139
- /** show output label */
140
- displayOutputLabel: {
141
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
142
- deprecated: import("react-desc").PropTypesDescValidator;
143
- };
144
- isRequired: import("react-desc").PropTypesDescValue;
145
- };
146
- /** one or multiple rows for query */
147
- singleRow: {
148
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
149
- deprecated: import("react-desc").PropTypesDescValidator;
150
- };
151
- isRequired: import("react-desc").PropTypesDescValue;
152
- };
153
- toolTipZIndex: {
154
- deprecated: import("react-desc").PropTypesDescValidator;
155
- };
156
- };