@databrainhq/plugin 0.13.0-beta.8 → 0.14.0
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/README.md +233 -233
- package/dist/components/ChartSettingsPopup/components/ChartConfigure/index.d.ts +2 -2
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DraggableItem/index.d.ts +2 -2
- package/dist/components/FilterDropDown/index.d.ts +1 -0
- package/dist/components/FloatingDropDown/index.d.ts +3 -2
- package/dist/components/GlobalFilters/Filters.d.ts +6 -0
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +6 -0
- package/dist/components/GlobalFilters/NumberFilterField.d.ts +2 -1
- package/dist/components/GlobalFilters/index.d.ts +12 -0
- package/dist/components/Icons/Logos/index.d.ts +1 -1
- package/dist/components/Icons/icons.d.ts +1 -0
- package/dist/components/InputField/index.d.ts +2 -1
- package/dist/components/Menu/index.d.ts +2 -1
- package/dist/components/MetricChart/RawCsvDownloadButton.d.ts +11 -0
- package/dist/components/MetricChart/index.d.ts +2 -0
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/Panels/ChartAppearancePanel.d.ts +2 -1
- package/dist/components/MetricFilterDropDown/index.d.ts +10 -4
- package/dist/components/MetricList/MetricList.d.ts +6 -0
- package/dist/components/MetricList/components/FullScreenView/DownloadButton.d.ts +4 -1
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +2 -2
- package/dist/components/MetricList/components/MetricCards/MetricCard.d.ts +7 -1
- package/dist/components/MultiSelectDropdown/index.d.ts +4 -2
- package/dist/components/PopoverMenu/index.d.ts +1 -0
- package/dist/components/SkeletonLoader/index.d.ts +8 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Tabs/index.d.ts +4 -1
- package/dist/components/TextAreaField/index.d.ts +5 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/consts/api.d.ts +2 -0
- package/dist/consts/app.d.ts +2 -0
- package/dist/containers/Dashboard/Dashboard.d.ts +4 -1
- package/dist/containers/Dashboard/EmbededDashboard.d.ts +2 -0
- package/dist/containers/Metric/EmbeddedMetric.d.ts +2 -1
- package/dist/containers/Metric/index.d.ts +1 -0
- package/dist/helpers/getModifiedQuery.d.ts +10 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useDashboardContext.d.ts +1 -0
- package/dist/hooks/useDatasetMetric.d.ts +1 -7
- package/dist/hooks/useDrag.d.ts +1 -0
- package/dist/hooks/useDrop.d.ts +1 -0
- package/dist/hooks/useEmbeddedMetric.d.ts +5 -0
- package/dist/hooks/useMetricCard.d.ts +2 -1
- package/dist/hooks/useMetricConfig.d.ts +1 -0
- package/dist/hooks/useNewEmbeddedDashboard.d.ts +1 -0
- package/dist/types/app.d.ts +13 -4
- package/dist/types/dragAndDropProps.d.ts +19 -8
- package/dist/types/metricCreate.d.ts +2 -7
- package/dist/types/queryTypes.d.ts +2 -0
- package/dist/utils/getChartAttributes.d.ts +6 -8
- package/dist/webcomponents.es.js +71325 -69638
- package/dist/webcomponents.umd.js +921 -220
- package/package.json +1 -1
- package/src/index.ts +7 -7
- package/dist/components/InternetFailure/index.d.ts +0 -2
- package/dist/utils/checkIsOnline.d.ts +0 -2
package/README.md
CHANGED
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
# @databrainhq/plugin
|
|
2
|
-
|
|
3
|
-
> Databrain app ui web component plugin.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @databrainhq/plugin
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
React/Solidjs
|
|
16
|
-
|
|
17
|
-
Import in main/index/App
|
|
18
|
-
```tsx
|
|
19
|
-
import '@databrainhq/plugin/web';
|
|
20
|
-
```
|
|
21
|
-
Then use it anywhere in your app
|
|
22
|
-
|
|
23
|
-
Integrating Dashboard
|
|
24
|
-
|
|
25
|
-
```tsx
|
|
26
|
-
const Example = () => {
|
|
27
|
-
return (
|
|
28
|
-
<dbn-dashboard
|
|
29
|
-
token="Your Guest Token"
|
|
30
|
-
dashboardId="Your Dashboard Id"
|
|
31
|
-
options={{
|
|
32
|
-
disableMetricCreation: false,
|
|
33
|
-
disableMetricUpdation: false,
|
|
34
|
-
disableMetricDeletion: false,
|
|
35
|
-
disableLayoutCustomization: false,
|
|
36
|
-
chartColors: [
|
|
37
|
-
'violet',
|
|
38
|
-
'indigo',
|
|
39
|
-
'blue',
|
|
40
|
-
'green',
|
|
41
|
-
'yellow',
|
|
42
|
-
'orange',
|
|
43
|
-
'red',
|
|
44
|
-
'pink',
|
|
45
|
-
'gray',
|
|
46
|
-
],
|
|
47
|
-
}}
|
|
48
|
-
theme={YOUR_THEME}
|
|
49
|
-
/>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Integrating Metric
|
|
55
|
-
|
|
56
|
-
```tsx
|
|
57
|
-
const Example = () => {
|
|
58
|
-
return (
|
|
59
|
-
<Metric
|
|
60
|
-
token="Your Guest Token"
|
|
61
|
-
metricId="Your Metric Id"
|
|
62
|
-
width="500px"
|
|
63
|
-
height="300px"
|
|
64
|
-
chartRendererType="canvas"
|
|
65
|
-
chartColors={[
|
|
66
|
-
'violet',
|
|
67
|
-
'indigo',
|
|
68
|
-
'blue',
|
|
69
|
-
'green',
|
|
70
|
-
'yellow',
|
|
71
|
-
'orange',
|
|
72
|
-
'red',
|
|
73
|
-
'pink',
|
|
74
|
-
'gray',
|
|
75
|
-
]}
|
|
76
|
-
theme={YOUR_THEME}
|
|
77
|
-
/>
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Vue
|
|
83
|
-
|
|
84
|
-
Import in main/index/App
|
|
85
|
-
```vue
|
|
86
|
-
<script setup lang="ts">
|
|
87
|
-
import '@databrainhq/plugin/web';
|
|
88
|
-
</script>
|
|
89
|
-
```
|
|
90
|
-
Then use it anywhere in your app
|
|
91
|
-
|
|
92
|
-
Integrating Dashboard
|
|
93
|
-
|
|
94
|
-
```vue
|
|
95
|
-
<script setup lang="ts">
|
|
96
|
-
// your component logic
|
|
97
|
-
</script>
|
|
98
|
-
<template>
|
|
99
|
-
<dbn-dashboard
|
|
100
|
-
:token="/*YOUR GUEST TOKEN*/"
|
|
101
|
-
:options="/*YOUR ACCESS PERMISSION OPTIONS*/"
|
|
102
|
-
:theme="/*YOUR THEME*/"
|
|
103
|
-
:dashboardId="/*YOUR DASHBORD ID*/"
|
|
104
|
-
></dbn-dashboard>
|
|
105
|
-
</template>
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Integrating Metric
|
|
109
|
-
|
|
110
|
-
```vue
|
|
111
|
-
<script setup lang="ts">
|
|
112
|
-
// your component logic
|
|
113
|
-
</script>
|
|
114
|
-
<template>
|
|
115
|
-
<dbn-metric
|
|
116
|
-
:token="/*YOUR GUEST TOKEN*/"
|
|
117
|
-
chartRendererType="canvas"
|
|
118
|
-
:theme="/*YOUR THEME*/"
|
|
119
|
-
:dashboardId="/*YOUR DASHBORD ID*/"
|
|
120
|
-
width="500"
|
|
121
|
-
height="400"
|
|
122
|
-
:style="/* YOUR STYLEs */"
|
|
123
|
-
className="YOUR CLASS"
|
|
124
|
-
></dbn-metric>
|
|
125
|
-
</template>
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Svelte
|
|
129
|
-
|
|
130
|
-
Import in main/index/App
|
|
131
|
-
|
|
132
|
-
```svelte
|
|
133
|
-
<script lang="ts">
|
|
134
|
-
import '@databrainhq/plugin/web';
|
|
135
|
-
</script>
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Then use it anywhere in your app
|
|
139
|
-
|
|
140
|
-
Integrating Dashboard
|
|
141
|
-
|
|
142
|
-
```svelte
|
|
143
|
-
<script lang="ts">
|
|
144
|
-
// your component logic
|
|
145
|
-
</script>
|
|
146
|
-
<main>
|
|
147
|
-
<dbn-dashboard
|
|
148
|
-
token={/*YOUR GUEST TOKEN*/}
|
|
149
|
-
options={/*YOUR ACCESS PERMISSION OPTIONS*/}
|
|
150
|
-
theme={/*YOUR THEME*/}
|
|
151
|
-
dashboardId={/*YOUR DASHBORD ID*/}
|
|
152
|
-
></dbn-dashboard>
|
|
153
|
-
</main>
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
Integrating Metric
|
|
157
|
-
|
|
158
|
-
```svelte
|
|
159
|
-
<script lang="ts">
|
|
160
|
-
// your component logic
|
|
161
|
-
</script>
|
|
162
|
-
<main>
|
|
163
|
-
<dbn-metric
|
|
164
|
-
token={/*YOUR GUEST TOKEN*/}
|
|
165
|
-
chartRendererType="canvas"
|
|
166
|
-
theme={/*YOUR THEME*/}
|
|
167
|
-
dashboardId="/*YOUR DASHBORD ID*/"
|
|
168
|
-
width="500"
|
|
169
|
-
height="400"
|
|
170
|
-
style={/* YOUR STYLEs */}
|
|
171
|
-
className="YOUR CLASS"
|
|
172
|
-
></dbn-metric>
|
|
173
|
-
</main>
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Angular
|
|
177
|
-
|
|
178
|
-
Add suport for custom elements/web components in app.module.ts
|
|
179
|
-
|
|
180
|
-
```ts
|
|
181
|
-
// app.module.ts
|
|
182
|
-
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
183
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
184
|
-
|
|
185
|
-
import { AppComponent } from './app.component';
|
|
186
|
-
|
|
187
|
-
@NgModule({
|
|
188
|
-
declarations: [AppComponent],
|
|
189
|
-
imports: [BrowserModule],
|
|
190
|
-
providers: [],
|
|
191
|
-
bootstrap: [AppComponent],
|
|
192
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
193
|
-
})
|
|
194
|
-
|
|
195
|
-
export class AppModule {}
|
|
196
|
-
```
|
|
197
|
-
Import in app.component.ts
|
|
198
|
-
|
|
199
|
-
```ts
|
|
200
|
-
import '@databrainhq/plugin/web';
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
Then use it anywhere in your app
|
|
204
|
-
|
|
205
|
-
Integrating Dashboard
|
|
206
|
-
|
|
207
|
-
```html
|
|
208
|
-
<dbn-dashboard
|
|
209
|
-
token="YOUR GUEST TOKEN"
|
|
210
|
-
options="YOUR ACCESS PERMISSION OPTIONS"
|
|
211
|
-
theme="YOUR THEME"
|
|
212
|
-
dashboardId="YOUR DASHBORD ID"
|
|
213
|
-
></dbn-dashboard>
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
Integrating Metric
|
|
217
|
-
|
|
218
|
-
```html
|
|
219
|
-
<dbn-metric
|
|
220
|
-
token="YOUR GUEST TOKEN"
|
|
221
|
-
chartRendererType="canvas"
|
|
222
|
-
theme="YOUR THEME"
|
|
223
|
-
dashboardId="YOUR DASHBORD ID"
|
|
224
|
-
width="500"
|
|
225
|
-
height="400"
|
|
226
|
-
style="YOUR STYLE"
|
|
227
|
-
className="YOUR CLASS"
|
|
228
|
-
></dbn-metric>
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
## License
|
|
232
|
-
|
|
233
|
-
MIT © [databrainhq](https://github.com/databrainhq)
|
|
1
|
+
# @databrainhq/plugin
|
|
2
|
+
|
|
3
|
+
> Databrain app ui web component plugin.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @databrainhq/plugin
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
React/Solidjs
|
|
16
|
+
|
|
17
|
+
Import in main/index/App
|
|
18
|
+
```tsx
|
|
19
|
+
import '@databrainhq/plugin/web';
|
|
20
|
+
```
|
|
21
|
+
Then use it anywhere in your app
|
|
22
|
+
|
|
23
|
+
Integrating Dashboard
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
const Example = () => {
|
|
27
|
+
return (
|
|
28
|
+
<dbn-dashboard
|
|
29
|
+
token="Your Guest Token"
|
|
30
|
+
dashboardId="Your Dashboard Id"
|
|
31
|
+
options={{
|
|
32
|
+
disableMetricCreation: false,
|
|
33
|
+
disableMetricUpdation: false,
|
|
34
|
+
disableMetricDeletion: false,
|
|
35
|
+
disableLayoutCustomization: false,
|
|
36
|
+
chartColors: [
|
|
37
|
+
'violet',
|
|
38
|
+
'indigo',
|
|
39
|
+
'blue',
|
|
40
|
+
'green',
|
|
41
|
+
'yellow',
|
|
42
|
+
'orange',
|
|
43
|
+
'red',
|
|
44
|
+
'pink',
|
|
45
|
+
'gray',
|
|
46
|
+
],
|
|
47
|
+
}}
|
|
48
|
+
theme={YOUR_THEME}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Integrating Metric
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
const Example = () => {
|
|
58
|
+
return (
|
|
59
|
+
<Metric
|
|
60
|
+
token="Your Guest Token"
|
|
61
|
+
metricId="Your Metric Id"
|
|
62
|
+
width="500px"
|
|
63
|
+
height="300px"
|
|
64
|
+
chartRendererType="canvas"
|
|
65
|
+
chartColors={[
|
|
66
|
+
'violet',
|
|
67
|
+
'indigo',
|
|
68
|
+
'blue',
|
|
69
|
+
'green',
|
|
70
|
+
'yellow',
|
|
71
|
+
'orange',
|
|
72
|
+
'red',
|
|
73
|
+
'pink',
|
|
74
|
+
'gray',
|
|
75
|
+
]}
|
|
76
|
+
theme={YOUR_THEME}
|
|
77
|
+
/>
|
|
78
|
+
);
|
|
79
|
+
};
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Vue
|
|
83
|
+
|
|
84
|
+
Import in main/index/App
|
|
85
|
+
```vue
|
|
86
|
+
<script setup lang="ts">
|
|
87
|
+
import '@databrainhq/plugin/web';
|
|
88
|
+
</script>
|
|
89
|
+
```
|
|
90
|
+
Then use it anywhere in your app
|
|
91
|
+
|
|
92
|
+
Integrating Dashboard
|
|
93
|
+
|
|
94
|
+
```vue
|
|
95
|
+
<script setup lang="ts">
|
|
96
|
+
// your component logic
|
|
97
|
+
</script>
|
|
98
|
+
<template>
|
|
99
|
+
<dbn-dashboard
|
|
100
|
+
:token="/*YOUR GUEST TOKEN*/"
|
|
101
|
+
:options="/*YOUR ACCESS PERMISSION OPTIONS*/"
|
|
102
|
+
:theme="/*YOUR THEME*/"
|
|
103
|
+
:dashboardId="/*YOUR DASHBORD ID*/"
|
|
104
|
+
></dbn-dashboard>
|
|
105
|
+
</template>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Integrating Metric
|
|
109
|
+
|
|
110
|
+
```vue
|
|
111
|
+
<script setup lang="ts">
|
|
112
|
+
// your component logic
|
|
113
|
+
</script>
|
|
114
|
+
<template>
|
|
115
|
+
<dbn-metric
|
|
116
|
+
:token="/*YOUR GUEST TOKEN*/"
|
|
117
|
+
chartRendererType="canvas"
|
|
118
|
+
:theme="/*YOUR THEME*/"
|
|
119
|
+
:dashboardId="/*YOUR DASHBORD ID*/"
|
|
120
|
+
width="500"
|
|
121
|
+
height="400"
|
|
122
|
+
:style="/* YOUR STYLEs */"
|
|
123
|
+
className="YOUR CLASS"
|
|
124
|
+
></dbn-metric>
|
|
125
|
+
</template>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Svelte
|
|
129
|
+
|
|
130
|
+
Import in main/index/App
|
|
131
|
+
|
|
132
|
+
```svelte
|
|
133
|
+
<script lang="ts">
|
|
134
|
+
import '@databrainhq/plugin/web';
|
|
135
|
+
</script>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Then use it anywhere in your app
|
|
139
|
+
|
|
140
|
+
Integrating Dashboard
|
|
141
|
+
|
|
142
|
+
```svelte
|
|
143
|
+
<script lang="ts">
|
|
144
|
+
// your component logic
|
|
145
|
+
</script>
|
|
146
|
+
<main>
|
|
147
|
+
<dbn-dashboard
|
|
148
|
+
token={/*YOUR GUEST TOKEN*/}
|
|
149
|
+
options={/*YOUR ACCESS PERMISSION OPTIONS*/}
|
|
150
|
+
theme={/*YOUR THEME*/}
|
|
151
|
+
dashboardId={/*YOUR DASHBORD ID*/}
|
|
152
|
+
></dbn-dashboard>
|
|
153
|
+
</main>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Integrating Metric
|
|
157
|
+
|
|
158
|
+
```svelte
|
|
159
|
+
<script lang="ts">
|
|
160
|
+
// your component logic
|
|
161
|
+
</script>
|
|
162
|
+
<main>
|
|
163
|
+
<dbn-metric
|
|
164
|
+
token={/*YOUR GUEST TOKEN*/}
|
|
165
|
+
chartRendererType="canvas"
|
|
166
|
+
theme={/*YOUR THEME*/}
|
|
167
|
+
dashboardId="/*YOUR DASHBORD ID*/"
|
|
168
|
+
width="500"
|
|
169
|
+
height="400"
|
|
170
|
+
style={/* YOUR STYLEs */}
|
|
171
|
+
className="YOUR CLASS"
|
|
172
|
+
></dbn-metric>
|
|
173
|
+
</main>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Angular
|
|
177
|
+
|
|
178
|
+
Add suport for custom elements/web components in app.module.ts
|
|
179
|
+
|
|
180
|
+
```ts
|
|
181
|
+
// app.module.ts
|
|
182
|
+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
183
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
184
|
+
|
|
185
|
+
import { AppComponent } from './app.component';
|
|
186
|
+
|
|
187
|
+
@NgModule({
|
|
188
|
+
declarations: [AppComponent],
|
|
189
|
+
imports: [BrowserModule],
|
|
190
|
+
providers: [],
|
|
191
|
+
bootstrap: [AppComponent],
|
|
192
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
export class AppModule {}
|
|
196
|
+
```
|
|
197
|
+
Import in app.component.ts
|
|
198
|
+
|
|
199
|
+
```ts
|
|
200
|
+
import '@databrainhq/plugin/web';
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Then use it anywhere in your app
|
|
204
|
+
|
|
205
|
+
Integrating Dashboard
|
|
206
|
+
|
|
207
|
+
```html
|
|
208
|
+
<dbn-dashboard
|
|
209
|
+
token="YOUR GUEST TOKEN"
|
|
210
|
+
options="YOUR ACCESS PERMISSION OPTIONS"
|
|
211
|
+
theme="YOUR THEME"
|
|
212
|
+
dashboardId="YOUR DASHBORD ID"
|
|
213
|
+
></dbn-dashboard>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Integrating Metric
|
|
217
|
+
|
|
218
|
+
```html
|
|
219
|
+
<dbn-metric
|
|
220
|
+
token="YOUR GUEST TOKEN"
|
|
221
|
+
chartRendererType="canvas"
|
|
222
|
+
theme="YOUR THEME"
|
|
223
|
+
dashboardId="YOUR DASHBORD ID"
|
|
224
|
+
width="500"
|
|
225
|
+
height="400"
|
|
226
|
+
style="YOUR STYLE"
|
|
227
|
+
className="YOUR CLASS"
|
|
228
|
+
></dbn-metric>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## License
|
|
232
|
+
|
|
233
|
+
MIT © [databrainhq](https://github.com/databrainhq)
|
|
@@ -15,7 +15,7 @@ type Props = {
|
|
|
15
15
|
bottomRadius: number;
|
|
16
16
|
}>>;
|
|
17
17
|
comparisonLagProps?: ComparisonLagProps;
|
|
18
|
-
|
|
18
|
+
setResetPallete?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
19
19
|
};
|
|
20
|
-
export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps,
|
|
20
|
+
export declare const ChartConfigure: ({ chartSettings, setChartSettings, setBarRadius, comparisonLagProps, setResetPallete, }: Props) => React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -3,5 +3,5 @@ import { UseDragProps } from '@/types';
|
|
|
3
3
|
type DraggableItemProps = UseDragProps & {
|
|
4
4
|
renderItem: (DragNodeRef: React.MutableRefObject<any>, isDragging?: boolean) => JSX.Element;
|
|
5
5
|
};
|
|
6
|
-
declare const DraggableItem: React.FC<DraggableItemProps>;
|
|
7
|
-
export
|
|
6
|
+
export declare const DraggableItem: React.FC<DraggableItemProps>;
|
|
7
|
+
export {};
|
|
@@ -20,5 +20,6 @@ export type FilterDropDownProps = Omit<FloatingDropDownProps, 'options'> & {
|
|
|
20
20
|
export declare const FilterDropDown: ({ filter, onChange, selectedOption, autoSelected, workspaceId, filterClause, isDisableLabel, customTable, ...rest }: FilterDropDownProps) => React.JSX.Element;
|
|
21
21
|
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'filter' | 'label' | 'workspaceId' | 'filterClause' | 'customTable'> & Omit<MultiSelectDropdownProps, 'options'> & {
|
|
22
22
|
isDisablelabel?: boolean;
|
|
23
|
+
radius?: string;
|
|
23
24
|
};
|
|
24
25
|
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
@@ -4,7 +4,7 @@ export type FloatingDropDownProps = {
|
|
|
4
4
|
onChange: (option: FloatingDropDownOption) => void;
|
|
5
5
|
selectedOption: FloatingDropDownOption;
|
|
6
6
|
options: FloatingDropDownOption[];
|
|
7
|
-
button?: JSX.Element;
|
|
7
|
+
button?: JSX.Element | React.ReactNode;
|
|
8
8
|
label?: string;
|
|
9
9
|
labelVariant?: 'floating' | 'static';
|
|
10
10
|
isDisabled?: boolean;
|
|
@@ -17,5 +17,6 @@ export type FloatingDropDownProps = {
|
|
|
17
17
|
customButton?: JSX.Element;
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
disableAutoClose?: boolean;
|
|
20
|
+
radius?: string;
|
|
20
21
|
};
|
|
21
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, disableAutoClose, }: FloatingDropDownProps) => React.JSX.Element;
|
|
22
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, button, options, isDisabled, customButton, icon, buttonWidth, menuWidth, isSearchEnabled, searchPlaceholder, placeholder, children, radius, disableAutoClose, }: FloatingDropDownProps) => React.JSX.Element;
|
|
@@ -28,6 +28,12 @@ type FiltersProps = {
|
|
|
28
28
|
};
|
|
29
29
|
clientId?: string;
|
|
30
30
|
filterClauses: FilterClausesType;
|
|
31
|
+
isAllClient?: boolean;
|
|
32
|
+
theme: {
|
|
33
|
+
width: string;
|
|
34
|
+
variant: 'static' | 'floating';
|
|
35
|
+
radius: string;
|
|
36
|
+
};
|
|
31
37
|
};
|
|
32
38
|
export declare const Filters: React.FC<FiltersProps>;
|
|
33
39
|
export {};
|
|
@@ -11,6 +11,12 @@ type HorizontalFiltersProps = {
|
|
|
11
11
|
};
|
|
12
12
|
clientId?: string;
|
|
13
13
|
filterClauses: FilterClausesType;
|
|
14
|
+
isAllClient?: boolean;
|
|
15
|
+
theme: {
|
|
16
|
+
width: string;
|
|
17
|
+
variant: 'static' | 'floating';
|
|
18
|
+
radius: string;
|
|
19
|
+
};
|
|
14
20
|
};
|
|
15
21
|
export declare const HorizontalFilters: React.FC<HorizontalFiltersProps>;
|
|
16
22
|
export {};
|
|
@@ -21,6 +21,7 @@ type NumberFieldProps = {
|
|
|
21
21
|
label?: string;
|
|
22
22
|
variant?: 'static' | 'floating';
|
|
23
23
|
buttonWidth?: string;
|
|
24
|
+
radius?: string;
|
|
24
25
|
};
|
|
25
|
-
export declare const NumberFilterField: ({ setAppliedFilters, column, defaultValues, className, onChange, label, variant, buttonWidth, }: NumberFieldProps) => React.JSX.Element;
|
|
26
|
+
export declare const NumberFilterField: ({ setAppliedFilters, column, defaultValues, className, onChange, label, variant, buttonWidth, radius, }: NumberFieldProps) => React.JSX.Element;
|
|
26
27
|
export default NumberFilterField;
|
|
@@ -12,6 +12,12 @@ type GlobalFiltersProps = {
|
|
|
12
12
|
};
|
|
13
13
|
clientId?: string;
|
|
14
14
|
globalFilters?: MetricCardProps['globalFilters'];
|
|
15
|
+
isAllClient?: boolean;
|
|
16
|
+
theme: {
|
|
17
|
+
width: string;
|
|
18
|
+
variant: 'static' | 'floating';
|
|
19
|
+
radius: string;
|
|
20
|
+
};
|
|
15
21
|
};
|
|
16
22
|
export declare const getFormattedFilterValue: (obj: {
|
|
17
23
|
operator: string;
|
|
@@ -34,6 +40,12 @@ type FilterPopupProps = {
|
|
|
34
40
|
};
|
|
35
41
|
clientId?: string;
|
|
36
42
|
filterClauses: FilterClausesType;
|
|
43
|
+
isAllClient?: boolean;
|
|
44
|
+
theme: {
|
|
45
|
+
width: string;
|
|
46
|
+
variant: 'static' | 'floating';
|
|
47
|
+
radius: string;
|
|
48
|
+
};
|
|
37
49
|
};
|
|
38
50
|
export declare const FilterPopup: React.FC<FilterPopupProps>;
|
|
39
51
|
export {};
|