@databrainhq/plugin 0.8.14 → 0.8.15
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/index.es.js +104 -102
- package/dist/index.umd.js +51 -51
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2512,63 +2512,63 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
2512
2512
|
var parsedOptions = parseQueryArgs(arg1, arg2, arg3);
|
|
2513
2513
|
return useBaseQuery(parsedOptions, QueryObserver);
|
|
2514
2514
|
}
|
|
2515
|
-
const container$h = "
|
|
2516
|
-
const fixed = "
|
|
2517
|
-
const absolute = "
|
|
2518
|
-
const flex = "
|
|
2519
|
-
const table$4 = "
|
|
2520
|
-
const grid = "
|
|
2521
|
-
const hidden = "
|
|
2522
|
-
const transform = "
|
|
2523
|
-
const resize = "
|
|
2524
|
-
const truncate = "
|
|
2525
|
-
const border = "
|
|
2526
|
-
const shadow = "
|
|
2527
|
-
const filter$1 = "
|
|
2528
|
-
const floatingFilterButton = "
|
|
2529
|
-
const floatingFilterButtonIcon = "
|
|
2530
|
-
const floatingCreateButton = "
|
|
2531
|
-
const floatingCreateButtonIcon = "
|
|
2532
|
-
const floatingButton = "
|
|
2533
|
-
const staticContainer = "
|
|
2534
|
-
const floatingContainer = "
|
|
2515
|
+
const container$h = "_container_1o0ns_1";
|
|
2516
|
+
const fixed = "_fixed_1o0ns_1";
|
|
2517
|
+
const absolute = "_absolute_1o0ns_1";
|
|
2518
|
+
const flex = "_flex_1o0ns_1";
|
|
2519
|
+
const table$4 = "_table_1o0ns_1";
|
|
2520
|
+
const grid = "_grid_1o0ns_1";
|
|
2521
|
+
const hidden = "_hidden_1o0ns_1";
|
|
2522
|
+
const transform = "_transform_1o0ns_1";
|
|
2523
|
+
const resize = "_resize_1o0ns_1";
|
|
2524
|
+
const truncate = "_truncate_1o0ns_1";
|
|
2525
|
+
const border = "_border_1o0ns_1";
|
|
2526
|
+
const shadow = "_shadow_1o0ns_1";
|
|
2527
|
+
const filter$1 = "_filter_1o0ns_365";
|
|
2528
|
+
const floatingFilterButton = "_floatingFilterButton_1o0ns_373";
|
|
2529
|
+
const floatingFilterButtonIcon = "_floatingFilterButtonIcon_1o0ns_381";
|
|
2530
|
+
const floatingCreateButton = "_floatingCreateButton_1o0ns_389";
|
|
2531
|
+
const floatingCreateButtonIcon = "_floatingCreateButtonIcon_1o0ns_397";
|
|
2532
|
+
const floatingButton = "_floatingButton_1o0ns_405";
|
|
2533
|
+
const staticContainer = "_staticContainer_1o0ns_413";
|
|
2534
|
+
const floatingContainer = "_floatingContainer_1o0ns_421";
|
|
2535
2535
|
var styles$G = {
|
|
2536
2536
|
container: container$h,
|
|
2537
|
-
"static": "
|
|
2537
|
+
"static": "_static_1o0ns_413",
|
|
2538
2538
|
fixed,
|
|
2539
2539
|
absolute,
|
|
2540
|
-
"left-2": "_left-
|
|
2541
|
-
"top-1": "_top-
|
|
2542
|
-
"mt-2.5": "_mt-2.
|
|
2543
|
-
"mt-2": "_mt-
|
|
2544
|
-
"mb-3": "_mb-
|
|
2540
|
+
"left-2": "_left-2_1o0ns_1",
|
|
2541
|
+
"top-1": "_top-1_1o0ns_1",
|
|
2542
|
+
"mt-2.5": "_mt-2.5_1o0ns_1",
|
|
2543
|
+
"mt-2": "_mt-2_1o0ns_1",
|
|
2544
|
+
"mb-3": "_mb-3_1o0ns_1",
|
|
2545
2545
|
flex,
|
|
2546
2546
|
table: table$4,
|
|
2547
2547
|
grid,
|
|
2548
2548
|
hidden,
|
|
2549
|
-
"h-screen": "_h-
|
|
2550
|
-
"h-[10%]": "_h-[10%]
|
|
2551
|
-
"w-screen": "_w-
|
|
2552
|
-
"w-full": "_w-
|
|
2549
|
+
"h-screen": "_h-screen_1o0ns_1",
|
|
2550
|
+
"h-[10%]": "_h-[10%]_1o0ns_1",
|
|
2551
|
+
"w-screen": "_w-screen_1o0ns_1",
|
|
2552
|
+
"w-full": "_w-full_1o0ns_1",
|
|
2553
2553
|
transform,
|
|
2554
2554
|
resize,
|
|
2555
|
-
"overflow-x-hidden": "_overflow-x-
|
|
2555
|
+
"overflow-x-hidden": "_overflow-x-hidden_1o0ns_1",
|
|
2556
2556
|
truncate,
|
|
2557
2557
|
border,
|
|
2558
|
-
"p-2": "_p-
|
|
2559
|
-
"p-1": "_p-
|
|
2560
|
-
"text-center": "_text-
|
|
2561
|
-
"text-sm": "_text-
|
|
2562
|
-
"text-xs": "_text-
|
|
2563
|
-
"text-blue-700": "_text-blue-
|
|
2558
|
+
"p-2": "_p-2_1o0ns_1",
|
|
2559
|
+
"p-1": "_p-1_1o0ns_1",
|
|
2560
|
+
"text-center": "_text-center_1o0ns_1",
|
|
2561
|
+
"text-sm": "_text-sm_1o0ns_1",
|
|
2562
|
+
"text-xs": "_text-xs_1o0ns_1",
|
|
2563
|
+
"text-blue-700": "_text-blue-700_1o0ns_1",
|
|
2564
2564
|
shadow,
|
|
2565
2565
|
filter: filter$1,
|
|
2566
|
-
"!filter": "_!
|
|
2567
|
-
"embedDashboard-container": "_embedDashboard-
|
|
2568
|
-
"embedDashboard-header-static": "_embedDashboard-header-
|
|
2569
|
-
"embedDashboard-header-floating": "_embedDashboard-header-
|
|
2570
|
-
"embedDashboard-wrapper": "_embedDashboard-
|
|
2571
|
-
"alt-container": "_alt-
|
|
2566
|
+
"!filter": "_!filter_1o0ns_1",
|
|
2567
|
+
"embedDashboard-container": "_embedDashboard-container_1o0ns_325",
|
|
2568
|
+
"embedDashboard-header-static": "_embedDashboard-header-static_1o0ns_333",
|
|
2569
|
+
"embedDashboard-header-floating": "_embedDashboard-header-floating_1o0ns_341",
|
|
2570
|
+
"embedDashboard-wrapper": "_embedDashboard-wrapper_1o0ns_349",
|
|
2571
|
+
"alt-container": "_alt-container_1o0ns_357",
|
|
2572
2572
|
floatingFilterButton,
|
|
2573
2573
|
floatingFilterButtonIcon,
|
|
2574
2574
|
floatingCreateButton,
|
|
@@ -2576,9 +2576,9 @@ var styles$G = {
|
|
|
2576
2576
|
floatingButton,
|
|
2577
2577
|
staticContainer,
|
|
2578
2578
|
floatingContainer,
|
|
2579
|
-
"hover:cursor-pointer": "_hover:cursor-
|
|
2580
|
-
"hover:cursor-text": "_hover:cursor-
|
|
2581
|
-
"disabled:cursor-text": "_disabled:cursor-
|
|
2579
|
+
"hover:cursor-pointer": "_hover:cursor-pointer_1o0ns_1",
|
|
2580
|
+
"hover:cursor-text": "_hover:cursor-text_1o0ns_1",
|
|
2581
|
+
"disabled:cursor-text": "_disabled:cursor-text_1o0ns_1"
|
|
2582
2582
|
};
|
|
2583
2583
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2584
2584
|
function getAugmentedNamespace(n2) {
|
|
@@ -6343,17 +6343,17 @@ var styles$y = {
|
|
|
6343
6343
|
cancel,
|
|
6344
6344
|
error: error$2
|
|
6345
6345
|
};
|
|
6346
|
-
const label$6 = "
|
|
6347
|
-
const floatingLabel$1 = "
|
|
6348
|
-
const checkboxLabel = "
|
|
6349
|
-
const input$2 = "
|
|
6350
|
-
const floatingInput = "
|
|
6351
|
-
const checkboxField = "
|
|
6352
|
-
const inputWrapper$1 = "
|
|
6346
|
+
const label$6 = "_label_l6nql_1";
|
|
6347
|
+
const floatingLabel$1 = "_floatingLabel_l6nql_7";
|
|
6348
|
+
const checkboxLabel = "_checkboxLabel_l6nql_19";
|
|
6349
|
+
const input$2 = "_input_l6nql_13";
|
|
6350
|
+
const floatingInput = "_floatingInput_l6nql_31";
|
|
6351
|
+
const checkboxField = "_checkboxField_l6nql_37";
|
|
6352
|
+
const inputWrapper$1 = "_inputWrapper_l6nql_43";
|
|
6353
6353
|
var styles$x = {
|
|
6354
6354
|
label: label$6,
|
|
6355
6355
|
floatingLabel: floatingLabel$1,
|
|
6356
|
-
"inputField-container": "_inputField-
|
|
6356
|
+
"inputField-container": "_inputField-container_l6nql_13",
|
|
6357
6357
|
checkboxLabel,
|
|
6358
6358
|
input: input$2,
|
|
6359
6359
|
floatingInput,
|
|
@@ -6409,9 +6409,9 @@ const InputField = ({
|
|
|
6409
6409
|
})]
|
|
6410
6410
|
});
|
|
6411
6411
|
};
|
|
6412
|
-
const label$5 = "
|
|
6413
|
-
const textarea = "
|
|
6414
|
-
const resizable = "
|
|
6412
|
+
const label$5 = "_label_1h21t_1";
|
|
6413
|
+
const textarea = "_textarea_1h21t_9";
|
|
6414
|
+
const resizable = "_resizable_1h21t_17";
|
|
6415
6415
|
var styles$w = {
|
|
6416
6416
|
label: label$5,
|
|
6417
6417
|
textarea,
|
|
@@ -80528,6 +80528,14 @@ const BubbleChart = ({
|
|
|
80528
80528
|
}) => {
|
|
80529
80529
|
var _a2;
|
|
80530
80530
|
const modifiedData = [];
|
|
80531
|
+
const bubbleColor = () => {
|
|
80532
|
+
const letters = "0123456789ABCDEF";
|
|
80533
|
+
let color2 = "#";
|
|
80534
|
+
for (let i = 0; i < 6; i += 1) {
|
|
80535
|
+
color2 += letters[Math.floor(Math.random() * 16)];
|
|
80536
|
+
}
|
|
80537
|
+
return color2;
|
|
80538
|
+
};
|
|
80531
80539
|
let size = 8;
|
|
80532
80540
|
(_a2 = data == null ? void 0 : data.datasets) == null ? void 0 : _a2.map((item) => {
|
|
80533
80541
|
const set2 = [];
|
|
@@ -80606,11 +80614,7 @@ const BubbleChart = ({
|
|
|
80606
80614
|
},
|
|
80607
80615
|
series: modifiedData.map((val) => {
|
|
80608
80616
|
size += 3;
|
|
80609
|
-
const
|
|
80610
|
-
let color2 = "#";
|
|
80611
|
-
for (let i = 0; i < 6; i += 1) {
|
|
80612
|
-
color2 += letters[Math.floor(Math.random() * 16)];
|
|
80613
|
-
}
|
|
80617
|
+
const color2 = bubbleColor();
|
|
80614
80618
|
return {
|
|
80615
80619
|
name: val[0][2],
|
|
80616
80620
|
data: val.map((item) => {
|
|
@@ -80625,9 +80629,6 @@ const BubbleChart = ({
|
|
|
80625
80629
|
focus: "series"
|
|
80626
80630
|
},
|
|
80627
80631
|
itemStyle: {
|
|
80628
|
-
shadowBlur: 10,
|
|
80629
|
-
shadowColor: "rgba(120, 36, 50, 0.5)",
|
|
80630
|
-
shadowOffsetY: 5,
|
|
80631
80632
|
color: color2
|
|
80632
80633
|
},
|
|
80633
80634
|
label: {
|
|
@@ -85628,6 +85629,7 @@ const Table = ({
|
|
|
85628
85629
|
children: (tableSettings == null ? void 0 : tableSettings.enableSorting) ? /* @__PURE__ */ jsx("div", {
|
|
85629
85630
|
className: header2.column.getCanSort() ? styles$p.sortButton : "",
|
|
85630
85631
|
onClick: header2.column.getToggleSortingHandler(),
|
|
85632
|
+
onMouseOver: header2.column.getToggleSortingHandler(),
|
|
85631
85633
|
children: header2.isPlaceholder ? null : /* @__PURE__ */ jsxs("div", {
|
|
85632
85634
|
style: {
|
|
85633
85635
|
width: "100%"
|
|
@@ -86500,8 +86502,8 @@ const GlobalFilters = ({
|
|
|
86500
86502
|
})
|
|
86501
86503
|
});
|
|
86502
86504
|
};
|
|
86503
|
-
const container$8 = "
|
|
86504
|
-
const tooltip$1 = "
|
|
86505
|
+
const container$8 = "_container_1sd6f_1";
|
|
86506
|
+
const tooltip$1 = "_tooltip_1sd6f_7";
|
|
86505
86507
|
var styles$l = {
|
|
86506
86508
|
container: container$8,
|
|
86507
86509
|
tooltip: tooltip$1
|
|
@@ -86692,9 +86694,9 @@ var styles$h = {
|
|
|
86692
86694
|
seriesCheck,
|
|
86693
86695
|
seriesCheckContainer
|
|
86694
86696
|
};
|
|
86695
|
-
const tab$1 = "
|
|
86696
|
-
const button$3 = "
|
|
86697
|
-
const activeTab = "
|
|
86697
|
+
const tab$1 = "_tab_4ecdh_1";
|
|
86698
|
+
const button$3 = "_button_4ecdh_7";
|
|
86699
|
+
const activeTab = "_activeTab_4ecdh_15";
|
|
86698
86700
|
var styles$g = {
|
|
86699
86701
|
tab: tab$1,
|
|
86700
86702
|
button: button$3,
|
|
@@ -95153,38 +95155,38 @@ var styles$6 = {
|
|
|
95153
95155
|
"noMetric-wrapper": "_noMetric-wrapper_1jw09_25",
|
|
95154
95156
|
"alt-container": "_alt-container_1jw09_33"
|
|
95155
95157
|
};
|
|
95156
|
-
const cardContainer = "
|
|
95157
|
-
const listHeader = "
|
|
95158
|
-
const metricName = "
|
|
95159
|
-
const metricTitle = "
|
|
95160
|
-
const metricDescription = "
|
|
95161
|
-
const popup = "
|
|
95162
|
-
const metricFilter$1 = "
|
|
95163
|
-
const popupIcon = "
|
|
95164
|
-
const popupMenu = "
|
|
95165
|
-
const popupItem = "
|
|
95166
|
-
const popupItemIcon = "
|
|
95167
|
-
const csvBtn = "
|
|
95168
|
-
const deleteBtn = "
|
|
95169
|
-
const metricData = "
|
|
95170
|
-
const singleValueData = "
|
|
95171
|
-
const singleValue = "
|
|
95172
|
-
const noData = "
|
|
95173
|
-
const noDataContent = "
|
|
95174
|
-
const noDataText = "
|
|
95175
|
-
const loading$1 = "
|
|
95176
|
-
const features = "
|
|
95177
|
-
const fullscreen$1 = "
|
|
95178
|
-
const deleteModal = "
|
|
95179
|
-
const cancelBtn = "
|
|
95180
|
-
const warningIcon = "
|
|
95181
|
-
const downloadCsv = "
|
|
95182
|
-
const downloadCsvWrapper = "
|
|
95183
|
-
const downloadCsvHeader = "
|
|
95184
|
-
const downloadCsvFooter = "
|
|
95185
|
-
const downloadCsvCancelBtn = "
|
|
95186
|
-
const downloadCsvNote = "
|
|
95187
|
-
const downloadCsvNoteText = "
|
|
95158
|
+
const cardContainer = "_cardContainer_hxh6o_1";
|
|
95159
|
+
const listHeader = "_listHeader_hxh6o_9";
|
|
95160
|
+
const metricName = "_metricName_hxh6o_17";
|
|
95161
|
+
const metricTitle = "_metricTitle_hxh6o_25";
|
|
95162
|
+
const metricDescription = "_metricDescription_hxh6o_33";
|
|
95163
|
+
const popup = "_popup_hxh6o_41";
|
|
95164
|
+
const metricFilter$1 = "_metricFilter_hxh6o_49";
|
|
95165
|
+
const popupIcon = "_popupIcon_hxh6o_57";
|
|
95166
|
+
const popupMenu = "_popupMenu_hxh6o_65";
|
|
95167
|
+
const popupItem = "_popupItem_hxh6o_73";
|
|
95168
|
+
const popupItemIcon = "_popupItemIcon_hxh6o_81";
|
|
95169
|
+
const csvBtn = "_csvBtn_hxh6o_89";
|
|
95170
|
+
const deleteBtn = "_deleteBtn_hxh6o_97";
|
|
95171
|
+
const metricData = "_metricData_hxh6o_105";
|
|
95172
|
+
const singleValueData = "_singleValueData_hxh6o_113";
|
|
95173
|
+
const singleValue = "_singleValue_hxh6o_113";
|
|
95174
|
+
const noData = "_noData_hxh6o_129";
|
|
95175
|
+
const noDataContent = "_noDataContent_hxh6o_137";
|
|
95176
|
+
const noDataText = "_noDataText_hxh6o_145";
|
|
95177
|
+
const loading$1 = "_loading_hxh6o_153";
|
|
95178
|
+
const features = "_features_hxh6o_161";
|
|
95179
|
+
const fullscreen$1 = "_fullscreen_hxh6o_169";
|
|
95180
|
+
const deleteModal = "_deleteModal_hxh6o_177";
|
|
95181
|
+
const cancelBtn = "_cancelBtn_hxh6o_185";
|
|
95182
|
+
const warningIcon = "_warningIcon_hxh6o_193";
|
|
95183
|
+
const downloadCsv = "_downloadCsv_hxh6o_201";
|
|
95184
|
+
const downloadCsvWrapper = "_downloadCsvWrapper_hxh6o_209";
|
|
95185
|
+
const downloadCsvHeader = "_downloadCsvHeader_hxh6o_215";
|
|
95186
|
+
const downloadCsvFooter = "_downloadCsvFooter_hxh6o_221";
|
|
95187
|
+
const downloadCsvCancelBtn = "_downloadCsvCancelBtn_hxh6o_229";
|
|
95188
|
+
const downloadCsvNote = "_downloadCsvNote_hxh6o_237";
|
|
95189
|
+
const downloadCsvNoteText = "_downloadCsvNoteText_hxh6o_245";
|
|
95188
95190
|
var styles$5 = {
|
|
95189
95191
|
cardContainer,
|
|
95190
95192
|
listHeader,
|