react-autoql 8.28.1 → 8.29.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/dist/autoql.cjs.js +2 -2
- package/dist/autoql.cjs.js.gz +0 -0
- package/dist/autoql.esm.css +1 -1
- package/dist/autoql.esm.css.gz +0 -0
- package/dist/autoql.esm.js +2 -2
- package/dist/autoql.esm.js.gz +0 -0
- package/package.json +13 -10
- package/src/index.d.ts +279 -0
package/dist/autoql.esm.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-autoql",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.29.0",
|
|
4
4
|
"description": "React Widget Library",
|
|
5
5
|
"main": "dist/autoql.cjs.js",
|
|
6
6
|
"module": "dist/autoql.esm.js",
|
|
7
|
+
"types": "src/index.d.ts",
|
|
7
8
|
"sideEffects": [
|
|
8
9
|
"*.css"
|
|
9
10
|
],
|
|
10
11
|
"files": [
|
|
11
|
-
"dist"
|
|
12
|
+
"dist",
|
|
13
|
+
"src/index.d.ts"
|
|
12
14
|
],
|
|
13
15
|
"watch": {
|
|
14
16
|
"devscript": {
|
|
@@ -62,8 +64,8 @@
|
|
|
62
64
|
},
|
|
63
65
|
"dependencies": {
|
|
64
66
|
"@react-icons/all-files": "4.1.0",
|
|
65
|
-
"autoql-fe-utils": "1.11.
|
|
66
|
-
"axios": "1.
|
|
67
|
+
"autoql-fe-utils": "1.11.17",
|
|
68
|
+
"axios": "^1.16.0",
|
|
67
69
|
"caniuse-lite": "1.0.30001692",
|
|
68
70
|
"classnames": "2.5.1",
|
|
69
71
|
"d3-array": "2.3.3",
|
|
@@ -132,10 +134,11 @@
|
|
|
132
134
|
"@rollup/plugin-commonjs": "25.0.4",
|
|
133
135
|
"@rollup/plugin-image": "2.0.5",
|
|
134
136
|
"@rollup/plugin-node-resolve": "13.3.0",
|
|
135
|
-
"@rollup/plugin-
|
|
137
|
+
"@rollup/plugin-replace": "^6.0.3",
|
|
138
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
136
139
|
"@testing-library/jest-dom": "6.4.2",
|
|
137
140
|
"@testing-library/react": "12.1.2",
|
|
138
|
-
"ajv": "
|
|
141
|
+
"ajv": "^8.20.0",
|
|
139
142
|
"autoprefixer": "10.4.16",
|
|
140
143
|
"axios-mock-adapter": "1.18.1",
|
|
141
144
|
"babel-core": "7.0.0-bridge.0",
|
|
@@ -153,14 +156,14 @@
|
|
|
153
156
|
"husky": "2.7.0",
|
|
154
157
|
"jest": "29.7.0",
|
|
155
158
|
"jest-css-modules": "2.0.0",
|
|
156
|
-
"jest-environment-jsdom": "
|
|
157
|
-
"jsdom": "
|
|
159
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
160
|
+
"jsdom": "^29.1.1",
|
|
158
161
|
"lint-staged": "13.0.2",
|
|
159
162
|
"npm-watch": "0.11.0",
|
|
160
|
-
"postcss": "8.
|
|
163
|
+
"postcss": "^8.5.14",
|
|
161
164
|
"prettier": "2.7.1",
|
|
162
165
|
"rimraf": "2.7.1",
|
|
163
|
-
"rollup": "2.
|
|
166
|
+
"rollup": "^2.80.0",
|
|
164
167
|
"rollup-plugin-gzip": "3.0.0",
|
|
165
168
|
"rollup-plugin-scss": "4.0.0",
|
|
166
169
|
"rollup-plugin-svg": "2.0.0",
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import * as React from 'react'
|
|
2
|
+
|
|
3
|
+
export * from 'autoql-fe-utils'
|
|
4
|
+
|
|
5
|
+
// ─── Shared config interfaces ────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
export interface Authentication {
|
|
8
|
+
token?: string
|
|
9
|
+
apiKey?: string
|
|
10
|
+
domain?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface AutoQLConfig {
|
|
14
|
+
translation?: string
|
|
15
|
+
test?: boolean
|
|
16
|
+
enableAutocomplete?: boolean
|
|
17
|
+
enableQueryValidation?: boolean
|
|
18
|
+
enableDrilldowns?: boolean
|
|
19
|
+
enableQuerySuggestions?: boolean
|
|
20
|
+
enableColumnVisibilityManager?: boolean
|
|
21
|
+
enableNotifications?: boolean
|
|
22
|
+
projectId?: string
|
|
23
|
+
enableProjectSelect?: boolean
|
|
24
|
+
enableEditReverseTranslation?: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface DataFormatting {
|
|
28
|
+
currencyCode?: string
|
|
29
|
+
languageCode?: string
|
|
30
|
+
currencyDecimals?: number
|
|
31
|
+
quantityDecimals?: number
|
|
32
|
+
ratioDecimals?: number
|
|
33
|
+
comparisonDisplay?: string
|
|
34
|
+
monthYearFormat?: string
|
|
35
|
+
dayMonthYearFormat?: string
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// ─── Dashboard ───────────────────────────────────────────────────────────────
|
|
39
|
+
|
|
40
|
+
export interface DashboardTile {
|
|
41
|
+
key?: string
|
|
42
|
+
i?: string | number
|
|
43
|
+
query?: string
|
|
44
|
+
secondQuery?: string
|
|
45
|
+
title?: string
|
|
46
|
+
displayType?: string
|
|
47
|
+
w?: number
|
|
48
|
+
h?: number
|
|
49
|
+
x?: number
|
|
50
|
+
y?: number
|
|
51
|
+
queryResponse?: any
|
|
52
|
+
dataConfig?: any
|
|
53
|
+
aggConfig?: any
|
|
54
|
+
[key: string]: any
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface DashboardProps {
|
|
58
|
+
authentication?: Authentication
|
|
59
|
+
autoQLConfig?: AutoQLConfig
|
|
60
|
+
dataFormatting?: DataFormatting
|
|
61
|
+
tiles?: DashboardTile[]
|
|
62
|
+
isEditing?: boolean
|
|
63
|
+
isEditable?: boolean
|
|
64
|
+
executeOnMount?: boolean
|
|
65
|
+
executeOnStopEditing?: boolean
|
|
66
|
+
dataPageSize?: number
|
|
67
|
+
notExecutedText?: string | React.ReactElement
|
|
68
|
+
onChange?: (tiles: DashboardTile[], slicers?: any[]) => void
|
|
69
|
+
onErrorCallback?: (error: any) => void
|
|
70
|
+
onSuccessCallback?: (response: any) => void
|
|
71
|
+
autoChartAggregations?: boolean
|
|
72
|
+
enableDynamicCharting?: boolean
|
|
73
|
+
disableAggregationMenu?: boolean
|
|
74
|
+
allowCustomColumnsOnDrilldown?: boolean
|
|
75
|
+
onCSVDownloadStart?: () => void
|
|
76
|
+
onCSVDownloadProgress?: (progress: number) => void
|
|
77
|
+
onCSVDownloadFinish?: () => void
|
|
78
|
+
onPNGDownloadFinish?: () => void
|
|
79
|
+
cancelQueriesOnUnmount?: boolean
|
|
80
|
+
startEditingCallback?: () => void
|
|
81
|
+
stopEditingCallback?: () => void
|
|
82
|
+
onSaveCallback?: () => void
|
|
83
|
+
onDeleteCallback?: () => void
|
|
84
|
+
showToolbar?: boolean
|
|
85
|
+
refreshInterval?: number
|
|
86
|
+
dashboardId?: string
|
|
87
|
+
enableAutoRefresh?: boolean
|
|
88
|
+
enableSlicers?: boolean
|
|
89
|
+
initialSlicers?: Array<{ type: string; data: any }>
|
|
90
|
+
slicerSuggestion?: string
|
|
91
|
+
enableCyclicalDates?: boolean
|
|
92
|
+
enableMagicWand?: boolean
|
|
93
|
+
showMagicWandQuoteButton?: boolean
|
|
94
|
+
enableCustomColumns?: boolean
|
|
95
|
+
preferRegularTableInitialDisplayType?: boolean
|
|
96
|
+
source?: string | string[]
|
|
97
|
+
scope?: string
|
|
98
|
+
offline?: boolean
|
|
99
|
+
[key: string]: any
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare class Dashboard extends React.Component<DashboardProps> {}
|
|
103
|
+
|
|
104
|
+
// ─── DataMessenger ───────────────────────────────────────────────────────────
|
|
105
|
+
|
|
106
|
+
export interface DataMessengerProps {
|
|
107
|
+
authentication?: Authentication
|
|
108
|
+
autoQLConfig?: AutoQLConfig
|
|
109
|
+
dataFormatting?: DataFormatting
|
|
110
|
+
placement?: 'left' | 'right' | 'top' | 'bottom'
|
|
111
|
+
maskClosable?: boolean
|
|
112
|
+
width?: string | number
|
|
113
|
+
height?: string | number
|
|
114
|
+
showHandle?: boolean
|
|
115
|
+
handleImage?: string
|
|
116
|
+
handleStyles?: React.CSSProperties
|
|
117
|
+
shiftScreen?: boolean
|
|
118
|
+
userDisplayName?: string
|
|
119
|
+
clearOnClose?: boolean
|
|
120
|
+
enableVoiceRecord?: boolean
|
|
121
|
+
title?: string
|
|
122
|
+
maxMessages?: number
|
|
123
|
+
introMessage?: string
|
|
124
|
+
enableExploreQueriesTab?: boolean
|
|
125
|
+
enableNotificationsTab?: boolean
|
|
126
|
+
resizable?: boolean
|
|
127
|
+
inputPlaceholder?: string
|
|
128
|
+
enableDPRTab?: boolean
|
|
129
|
+
dataPageSize?: number
|
|
130
|
+
notificationCount?: number
|
|
131
|
+
defaultOpen?: boolean
|
|
132
|
+
popoverParentElement?: React.ReactElement
|
|
133
|
+
enableDynamicCharting?: boolean
|
|
134
|
+
defaultTab?: string
|
|
135
|
+
autoChartAggregations?: boolean
|
|
136
|
+
enableFilterLocking?: boolean
|
|
137
|
+
enableQueryQuickStartTopics?: boolean
|
|
138
|
+
enableQueryInputTopics?: boolean
|
|
139
|
+
disableColumnSelectionForDataExplorer?: boolean
|
|
140
|
+
enableMagicWand?: boolean
|
|
141
|
+
showMagicWandQuoteButton?: boolean
|
|
142
|
+
enableCyclicalDates?: boolean
|
|
143
|
+
projectSelectList?: Array<{ projectId: string; displayName: string }>
|
|
144
|
+
selectedProjectId?: string
|
|
145
|
+
onNotificationExpandCallback?: (notification: any) => void
|
|
146
|
+
onNewNotification?: (notification: any) => void
|
|
147
|
+
onNotificationCount?: (count: number) => void
|
|
148
|
+
onVisibleChange?: (visible: boolean) => void
|
|
149
|
+
onErrorCallback?: (error: any) => void
|
|
150
|
+
onSuccessAlert?: (message: string) => void
|
|
151
|
+
onProjectSelectChange?: (projectId: string) => void
|
|
152
|
+
source?: string | string[]
|
|
153
|
+
[key: string]: any
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export declare class DataMessenger extends React.Component<DataMessengerProps> {}
|
|
157
|
+
|
|
158
|
+
// ─── QueryOutput ─────────────────────────────────────────────────────────────
|
|
159
|
+
|
|
160
|
+
export interface QueryOutputProps {
|
|
161
|
+
authentication?: Authentication
|
|
162
|
+
autoQLConfig?: AutoQLConfig
|
|
163
|
+
dataFormatting?: DataFormatting
|
|
164
|
+
queryResponse?: any
|
|
165
|
+
initialDisplayType?: string
|
|
166
|
+
initialTableConfigs?: {
|
|
167
|
+
tableConfig?: any
|
|
168
|
+
pivotTableConfig?: any
|
|
169
|
+
columnOverrides?: Record<string, any>
|
|
170
|
+
}
|
|
171
|
+
initialAggConfig?: Record<string, any>
|
|
172
|
+
isResizing?: boolean
|
|
173
|
+
shouldRender?: boolean
|
|
174
|
+
enableDynamicCharting?: boolean
|
|
175
|
+
autoChartAggregations?: boolean
|
|
176
|
+
autoSelectQueryValidationSuggestion?: boolean
|
|
177
|
+
queryValidationSelections?: any[]
|
|
178
|
+
renderSuggestionsAsDropdown?: boolean
|
|
179
|
+
defaultSelectedSuggestion?: string
|
|
180
|
+
reverseTranslationPlacement?: string
|
|
181
|
+
reverseTranslationCompact?: boolean
|
|
182
|
+
allowDisplayTypeChange?: boolean
|
|
183
|
+
allowColumnAddition?: boolean
|
|
184
|
+
enableTableSorting?: boolean
|
|
185
|
+
useInfiniteScroll?: boolean
|
|
186
|
+
showQueryInterpretation?: boolean
|
|
187
|
+
mutable?: boolean
|
|
188
|
+
height?: string | number
|
|
189
|
+
width?: string | number
|
|
190
|
+
autoHeight?: boolean
|
|
191
|
+
source?: string | string[]
|
|
192
|
+
scope?: string
|
|
193
|
+
tooltipID?: string
|
|
194
|
+
chartTooltipID?: string
|
|
195
|
+
onTableConfigChange?: (config: any) => void
|
|
196
|
+
onAggConfigChange?: (config: any) => void
|
|
197
|
+
onColumnChange?: (...args: any[]) => void
|
|
198
|
+
onDisplayTypeChange?: (displayType: string) => void
|
|
199
|
+
onSuggestionClick?: (params: any) => void
|
|
200
|
+
onNoneOfTheseClick?: () => void
|
|
201
|
+
onDrilldownStart?: (params: any) => void
|
|
202
|
+
onDrilldownEnd?: () => void
|
|
203
|
+
onErrorCallback?: (error: any) => void
|
|
204
|
+
[key: string]: any
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export declare class QueryOutput extends React.Component<QueryOutputProps> {
|
|
208
|
+
changeDisplayType(displayType: string): void
|
|
209
|
+
getCurrentSupportedDisplayTypes(): string[]
|
|
210
|
+
readonly state: { displayType: string; [key: string]: any }
|
|
211
|
+
readonly _isMounted: boolean
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// ─── QueryInput ──────────────────────────────────────────────────────────────
|
|
215
|
+
|
|
216
|
+
export interface QueryInputProps {
|
|
217
|
+
authentication?: Authentication
|
|
218
|
+
autoQLConfig?: AutoQLConfig
|
|
219
|
+
dataFormatting?: DataFormatting
|
|
220
|
+
onSubmit?: (query: string) => void
|
|
221
|
+
onResponseCallback?: (response: any) => void
|
|
222
|
+
placeholder?: string
|
|
223
|
+
inputValue?: string
|
|
224
|
+
clearQueryOnSubmit?: boolean
|
|
225
|
+
enableVoiceRecord?: boolean
|
|
226
|
+
isDisabled?: boolean
|
|
227
|
+
enableQuerySuggestions?: boolean
|
|
228
|
+
enableQueryInputTopics?: boolean
|
|
229
|
+
dataPageSize?: number
|
|
230
|
+
shouldRender?: boolean
|
|
231
|
+
source?: string | string[]
|
|
232
|
+
[key: string]: any
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare class QueryInput extends React.Component<QueryInputProps> {}
|
|
236
|
+
|
|
237
|
+
// ─── DataExplorer ────────────────────────────────────────────────────────────
|
|
238
|
+
|
|
239
|
+
export interface DataExplorerProps {
|
|
240
|
+
authentication?: Authentication
|
|
241
|
+
autoQLConfig?: AutoQLConfig
|
|
242
|
+
dataFormatting?: DataFormatting
|
|
243
|
+
inputPlaceholder?: string
|
|
244
|
+
introMessage?: string | React.ReactElement
|
|
245
|
+
enableQuerySuggestions?: boolean
|
|
246
|
+
disableColumnSelection?: boolean
|
|
247
|
+
source?: string | string[]
|
|
248
|
+
[key: string]: any
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export declare class DataExplorer extends React.Component<DataExplorerProps> {}
|
|
252
|
+
|
|
253
|
+
// ─── Miscellaneous components ─────────────────────────────────────────────────
|
|
254
|
+
|
|
255
|
+
export declare const Icon: React.FC<{ type: string; className?: string; [key: string]: any }>
|
|
256
|
+
export declare const LoadingDots: React.FC<{ [key: string]: any }>
|
|
257
|
+
|
|
258
|
+
export declare const DataAlerts: React.ComponentType<any>
|
|
259
|
+
export declare const DataAlertModal: React.ComponentType<any>
|
|
260
|
+
export declare const DataAlertDeleteDialog: React.ComponentType<any>
|
|
261
|
+
export declare const DataAlertListItem: React.ComponentType<any>
|
|
262
|
+
export declare const CustomFilteredAlertModal: React.ComponentType<any>
|
|
263
|
+
export declare const ScheduleBuilder: React.ComponentType<any>
|
|
264
|
+
export declare const ConditionBuilder: React.ComponentType<any>
|
|
265
|
+
export declare const NotificationIcon: React.ComponentType<any>
|
|
266
|
+
export declare const NotificationFeed: React.ComponentType<any>
|
|
267
|
+
export declare const NotificationItem: React.ComponentType<any>
|
|
268
|
+
export declare const JoinColumnSelectionTable: React.ComponentType<any>
|
|
269
|
+
export declare const SelectableTable: React.ComponentType<any>
|
|
270
|
+
export declare const ExpressionBuilder: React.ComponentType<any>
|
|
271
|
+
export declare const ChatContent: React.ComponentType<any>
|
|
272
|
+
export declare const AppearanceSection: React.ComponentType<any>
|
|
273
|
+
export declare const SlicerChip: React.ComponentType<any>
|
|
274
|
+
export declare const FilterLockPopover: React.ComponentType<any>
|
|
275
|
+
export declare const ReverseTranslation: React.ComponentType<any>
|
|
276
|
+
export declare const SpeechToTextButton: React.ComponentType<any>
|
|
277
|
+
export declare const ExploreQueries: React.ComponentType<any>
|
|
278
|
+
export declare const VizToolbar: React.ComponentType<any>
|
|
279
|
+
export declare const OptionsToolbar: React.ComponentType<any>
|