@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 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 = "_container_1pzq0_1";
2516
- const fixed = "_fixed_1pzq0_1";
2517
- const absolute = "_absolute_1pzq0_1";
2518
- const flex = "_flex_1pzq0_1";
2519
- const table$4 = "_table_1pzq0_1";
2520
- const grid = "_grid_1pzq0_1";
2521
- const hidden = "_hidden_1pzq0_1";
2522
- const transform = "_transform_1pzq0_1";
2523
- const resize = "_resize_1pzq0_1";
2524
- const truncate = "_truncate_1pzq0_1";
2525
- const border = "_border_1pzq0_1";
2526
- const shadow = "_shadow_1pzq0_1";
2527
- const filter$1 = "_filter_1pzq0_363";
2528
- const floatingFilterButton = "_floatingFilterButton_1pzq0_371";
2529
- const floatingFilterButtonIcon = "_floatingFilterButtonIcon_1pzq0_379";
2530
- const floatingCreateButton = "_floatingCreateButton_1pzq0_387";
2531
- const floatingCreateButtonIcon = "_floatingCreateButtonIcon_1pzq0_395";
2532
- const floatingButton = "_floatingButton_1pzq0_403";
2533
- const staticContainer = "_staticContainer_1pzq0_411";
2534
- const floatingContainer = "_floatingContainer_1pzq0_419";
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": "_static_1pzq0_411",
2537
+ "static": "_static_1o0ns_413",
2538
2538
  fixed,
2539
2539
  absolute,
2540
- "left-2": "_left-2_1pzq0_1",
2541
- "top-1": "_top-1_1pzq0_1",
2542
- "mt-2.5": "_mt-2.5_1pzq0_1",
2543
- "mt-2": "_mt-2_1pzq0_1",
2544
- "mb-3": "_mb-3_1pzq0_1",
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-screen_1pzq0_1",
2550
- "h-[10%]": "_h-[10%]_1pzq0_1",
2551
- "w-screen": "_w-screen_1pzq0_1",
2552
- "w-full": "_w-full_1pzq0_1",
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-hidden_1pzq0_1",
2555
+ "overflow-x-hidden": "_overflow-x-hidden_1o0ns_1",
2556
2556
  truncate,
2557
2557
  border,
2558
- "p-2": "_p-2_1pzq0_1",
2559
- "p-1": "_p-1_1pzq0_1",
2560
- "text-center": "_text-center_1pzq0_1",
2561
- "text-sm": "_text-sm_1pzq0_1",
2562
- "text-xs": "_text-xs_1pzq0_1",
2563
- "text-blue-700": "_text-blue-700_1pzq0_1",
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": "_!filter_1pzq0_1",
2567
- "embedDashboard-container": "_embedDashboard-container_1pzq0_323",
2568
- "embedDashboard-header-static": "_embedDashboard-header-static_1pzq0_331",
2569
- "embedDashboard-header-floating": "_embedDashboard-header-floating_1pzq0_339",
2570
- "embedDashboard-wrapper": "_embedDashboard-wrapper_1pzq0_347",
2571
- "alt-container": "_alt-container_1pzq0_355",
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-pointer_1pzq0_1",
2580
- "hover:cursor-text": "_hover:cursor-text_1pzq0_1",
2581
- "disabled:cursor-text": "_disabled:cursor-text_1pzq0_1"
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 = "_label_15bnc_1";
6347
- const floatingLabel$1 = "_floatingLabel_15bnc_7";
6348
- const checkboxLabel = "_checkboxLabel_15bnc_19";
6349
- const input$2 = "_input_15bnc_13";
6350
- const floatingInput = "_floatingInput_15bnc_31";
6351
- const checkboxField = "_checkboxField_15bnc_37";
6352
- const inputWrapper$1 = "_inputWrapper_15bnc_43";
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-container_15bnc_13",
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 = "_label_1hsdg_1";
6413
- const textarea = "_textarea_1hsdg_9";
6414
- const resizable = "_resizable_1hsdg_17";
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 letters = "0123456789ABCDEF";
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 = "_container_3e9wk_1";
86504
- const tooltip$1 = "_tooltip_3e9wk_7";
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 = "_tab_1xudl_1";
86696
- const button$3 = "_button_1xudl_7";
86697
- const activeTab = "_activeTab_1xudl_15";
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 = "_cardContainer_vcex1_1";
95157
- const listHeader = "_listHeader_vcex1_9";
95158
- const metricName = "_metricName_vcex1_17";
95159
- const metricTitle = "_metricTitle_vcex1_25";
95160
- const metricDescription = "_metricDescription_vcex1_33";
95161
- const popup = "_popup_vcex1_41";
95162
- const metricFilter$1 = "_metricFilter_vcex1_49";
95163
- const popupIcon = "_popupIcon_vcex1_57";
95164
- const popupMenu = "_popupMenu_vcex1_65";
95165
- const popupItem = "_popupItem_vcex1_73";
95166
- const popupItemIcon = "_popupItemIcon_vcex1_81";
95167
- const csvBtn = "_csvBtn_vcex1_89";
95168
- const deleteBtn = "_deleteBtn_vcex1_97";
95169
- const metricData = "_metricData_vcex1_105";
95170
- const singleValueData = "_singleValueData_vcex1_113";
95171
- const singleValue = "_singleValue_vcex1_113";
95172
- const noData = "_noData_vcex1_129";
95173
- const noDataContent = "_noDataContent_vcex1_137";
95174
- const noDataText = "_noDataText_vcex1_145";
95175
- const loading$1 = "_loading_vcex1_153";
95176
- const features = "_features_vcex1_161";
95177
- const fullscreen$1 = "_fullscreen_vcex1_169";
95178
- const deleteModal = "_deleteModal_vcex1_177";
95179
- const cancelBtn = "_cancelBtn_vcex1_185";
95180
- const warningIcon = "_warningIcon_vcex1_193";
95181
- const downloadCsv = "_downloadCsv_vcex1_201";
95182
- const downloadCsvWrapper = "_downloadCsvWrapper_vcex1_209";
95183
- const downloadCsvHeader = "_downloadCsvHeader_vcex1_215";
95184
- const downloadCsvFooter = "_downloadCsvFooter_vcex1_221";
95185
- const downloadCsvCancelBtn = "_downloadCsvCancelBtn_vcex1_229";
95186
- const downloadCsvNote = "_downloadCsvNote_vcex1_237";
95187
- const downloadCsvNoteText = "_downloadCsvNoteText_vcex1_245";
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,