You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for empty/error/valid states on QueryBuilder
* query testing
* adjustements on member changing and updating
* query builder timedimesions
* Query builder member changes
* changes to queryBuilder
* implement slots on query builder as well
* remove overloaded props from renderer
* change slot for empty but loaded meta
* fix duplicate dependency issue and granularity to members
* update docs
* mantain full backwards compatibility
* use only default slot if no other slot is present and add extra props
* remove classes
-`query`: analytic query. [Learn more about it's format](query-format).
19
19
-`cubejsApi`: `CubejsApi` instance to use.
20
20
21
-
### Scoped Slot Props
21
+
### Slots
22
22
23
-
-`resultSet`: A `resultSet` is an object containing data obtained from the query. If this object is not defined, it means that the data is still being fetched. [ResultSet](@cubejs-client-core#result-set) object provides a convient interface for data munipulation.
24
-
-`error`: Error will be defined if an error has occurred while fetching the query.
25
-
-`loadingState`: Provides information about the state of the query loading.
23
+
#### Default Slot
24
+
25
+
##### Slot Props
26
+
27
+
-`resultSet`: A `resultSet` is an object containing data obtained from the query. [ResultSet](@cubejs-client-core#result-set) object provides a convient interface for data munipulation.
28
+
29
+
#### Empty Slot
30
+
31
+
This slot functions as a empty/loading state in which if the query is loading or empty you can show
`<QueryBuilder />` is used to build interactive analytics query builders. It abstracts state management and API calls to Cube.js Backend. It uses scoped slot props technique.
@@ -33,7 +101,27 @@ into Vue.js app.
33
101
-`cubejsApi`: `CubejsApi` instance to use. Required.
34
102
-`defaultChartType`: default value of chart type. Default: 'line'.
35
103
36
-
### Scoped Slot Props
104
+
### Slots
105
+
106
+
#### Default Slot
107
+
108
+
##### Slot Props
109
+
110
+
-`resultSet`: A `resultSet` is an object containing data obtained from the query. [ResultSet](@cubejs-client-core#result-set) object provides a convient interface for data munipulation.
111
+
112
+
#### Empty Slot
113
+
114
+
This slot functions as a empty/loading state in which if the query is loading or empty you can show
115
+
something in the meantime
116
+
117
+
#### Error Slot
118
+
119
+
##### Slot Props
120
+
121
+
-`error`: will show the details from error.
122
+
-`sqlQuery`: will show tried query
123
+
124
+
#### Builder Slot
37
125
38
126
-`measures`, `dimensions`, `segments`, `timeDimensions`, `filters` - arrays of
39
127
selected query builder members.
@@ -49,15 +137,35 @@ API from Cube.js Backend.
49
137
-`isQueryPresent` - Bool indicating whether is query ready to be displayed or
50
138
not.
51
139
-`query` - current query, based on selected members.
52
-
-`resultSet`, `error`, `loadingState` - same as `<QueryRenderer />`[Scoped slot params.](#query-scoped-slot-props)
53
140
54
141
### Example
55
142
[Open in CodeSandbox](https://codesandbox.io/s/3rlxjkv2p)
0 commit comments