@databrainhq/plugin 0.7.3 → 0.7.5
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 +52 -61
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8256,22 +8256,10 @@ const operatorList = [
|
|
|
8256
8256
|
}
|
|
8257
8257
|
];
|
|
8258
8258
|
const RowLimitList = [
|
|
8259
|
-
{
|
|
8260
|
-
value: "10",
|
|
8261
|
-
label: "10"
|
|
8262
|
-
},
|
|
8263
|
-
{
|
|
8264
|
-
value: "50",
|
|
8265
|
-
label: "50"
|
|
8266
|
-
},
|
|
8267
8259
|
{
|
|
8268
8260
|
value: "100",
|
|
8269
8261
|
label: "100"
|
|
8270
8262
|
},
|
|
8271
|
-
{
|
|
8272
|
-
value: "250",
|
|
8273
|
-
label: "250"
|
|
8274
|
-
},
|
|
8275
8263
|
{
|
|
8276
8264
|
value: "500",
|
|
8277
8265
|
label: "500"
|
|
@@ -8281,12 +8269,12 @@ const RowLimitList = [
|
|
|
8281
8269
|
label: "1000"
|
|
8282
8270
|
},
|
|
8283
8271
|
{
|
|
8284
|
-
value: "
|
|
8285
|
-
label: "
|
|
8272
|
+
value: "2000",
|
|
8273
|
+
label: "2000"
|
|
8286
8274
|
},
|
|
8287
8275
|
{
|
|
8288
|
-
value: "
|
|
8289
|
-
label: "
|
|
8276
|
+
value: "5000",
|
|
8277
|
+
label: "5000"
|
|
8290
8278
|
}
|
|
8291
8279
|
];
|
|
8292
8280
|
const AggregateList = [
|
|
@@ -82042,18 +82030,18 @@ const BoxPlot = ({
|
|
|
82042
82030
|
})
|
|
82043
82031
|
});
|
|
82044
82032
|
};
|
|
82045
|
-
const tableSection = "
|
|
82046
|
-
const tableContainer = "
|
|
82047
|
-
const tableDiv = "
|
|
82048
|
-
const table$4 = "
|
|
82049
|
-
const tableHead$1 = "
|
|
82050
|
-
const tableHeadColHash = "
|
|
82051
|
-
const tableCol = "
|
|
82052
|
-
const tableColLabel = "
|
|
82053
|
-
const data = "
|
|
82054
|
-
const tableBodyColHash = "
|
|
82055
|
-
const tableBodyColHashLabel = "
|
|
82056
|
-
const noData$1 = "
|
|
82033
|
+
const tableSection = "_tableSection_20k3k_1";
|
|
82034
|
+
const tableContainer = "_tableContainer_20k3k_5";
|
|
82035
|
+
const tableDiv = "_tableDiv_20k3k_9";
|
|
82036
|
+
const table$4 = "_table_20k3k_1";
|
|
82037
|
+
const tableHead$1 = "_tableHead_20k3k_17";
|
|
82038
|
+
const tableHeadColHash = "_tableHeadColHash_20k3k_21";
|
|
82039
|
+
const tableCol = "_tableCol_20k3k_25";
|
|
82040
|
+
const tableColLabel = "_tableColLabel_20k3k_29";
|
|
82041
|
+
const data = "_data_20k3k_33";
|
|
82042
|
+
const tableBodyColHash = "_tableBodyColHash_20k3k_37";
|
|
82043
|
+
const tableBodyColHashLabel = "_tableBodyColHashLabel_20k3k_41";
|
|
82044
|
+
const noData$1 = "_noData_20k3k_53";
|
|
82057
82045
|
var style$1 = {
|
|
82058
82046
|
tableSection,
|
|
82059
82047
|
tableContainer,
|
|
@@ -82066,8 +82054,8 @@ var style$1 = {
|
|
|
82066
82054
|
data,
|
|
82067
82055
|
tableBodyColHash,
|
|
82068
82056
|
tableBodyColHashLabel,
|
|
82069
|
-
"table-loader-container": "_table-loader-
|
|
82070
|
-
"table-error-message": "_table-error-
|
|
82057
|
+
"table-loader-container": "_table-loader-container_20k3k_45",
|
|
82058
|
+
"table-error-message": "_table-error-message_20k3k_49",
|
|
82071
82059
|
noData: noData$1
|
|
82072
82060
|
};
|
|
82073
82061
|
var classnames = { exports: {} };
|
|
@@ -88850,35 +88838,35 @@ const ChartSettings = ({
|
|
|
88850
88838
|
})]
|
|
88851
88839
|
});
|
|
88852
88840
|
};
|
|
88853
|
-
const searchCommand$1 = "
|
|
88854
|
-
const chartText = "
|
|
88855
|
-
const charts = "
|
|
88856
|
-
const metricChart = "
|
|
88857
|
-
const metricChartEmpty = "
|
|
88858
|
-
const fullQuery = "
|
|
88859
|
-
const noQuery = "
|
|
88860
|
-
const chartButtonContainer = "
|
|
88861
|
-
const searchWrapper = "
|
|
88862
|
-
const searchIcon = "
|
|
88863
|
-
const chartConfigure = "
|
|
88864
|
-
const chartSettings = "
|
|
88865
|
-
const labels = "
|
|
88866
|
-
const chartButtons = "
|
|
88867
|
-
const chartButton = "
|
|
88841
|
+
const searchCommand$1 = "_searchCommand_1jfcs_9";
|
|
88842
|
+
const chartText = "_chartText_1jfcs_25";
|
|
88843
|
+
const charts = "_charts_1jfcs_33";
|
|
88844
|
+
const metricChart = "_metricChart_1jfcs_41";
|
|
88845
|
+
const metricChartEmpty = "_metricChartEmpty_1jfcs_49";
|
|
88846
|
+
const fullQuery = "_fullQuery_1jfcs_73";
|
|
88847
|
+
const noQuery = "_noQuery_1jfcs_81";
|
|
88848
|
+
const chartButtonContainer = "_chartButtonContainer_1jfcs_105";
|
|
88849
|
+
const searchWrapper = "_searchWrapper_1jfcs_113";
|
|
88850
|
+
const searchIcon = "_searchIcon_1jfcs_121";
|
|
88851
|
+
const chartConfigure = "_chartConfigure_1jfcs_129";
|
|
88852
|
+
const chartSettings = "_chartSettings_1jfcs_137";
|
|
88853
|
+
const labels = "_labels_1jfcs_145";
|
|
88854
|
+
const chartButtons = "_chartButtons_1jfcs_153";
|
|
88855
|
+
const chartButton = "_chartButton_1jfcs_97";
|
|
88868
88856
|
var styles$d = {
|
|
88869
|
-
"outputTab-header": "_outputTab-
|
|
88857
|
+
"outputTab-header": "_outputTab-header_1jfcs_1",
|
|
88870
88858
|
searchCommand: searchCommand$1,
|
|
88871
|
-
"chartTab-container": "_chartTab-
|
|
88859
|
+
"chartTab-container": "_chartTab-container_1jfcs_17",
|
|
88872
88860
|
chartText,
|
|
88873
88861
|
charts,
|
|
88874
88862
|
metricChart,
|
|
88875
88863
|
metricChartEmpty,
|
|
88876
|
-
"chartTab-wrapper": "_chartTab-
|
|
88877
|
-
"chartTab-wrapper-head": "_chartTab-wrapper-
|
|
88864
|
+
"chartTab-wrapper": "_chartTab-wrapper_1jfcs_57",
|
|
88865
|
+
"chartTab-wrapper-head": "_chartTab-wrapper-head_1jfcs_65",
|
|
88878
88866
|
fullQuery,
|
|
88879
88867
|
noQuery,
|
|
88880
|
-
"tableTab-header": "_tableTab-
|
|
88881
|
-
"chartButton-header": "_chartButton-
|
|
88868
|
+
"tableTab-header": "_tableTab-header_1jfcs_89",
|
|
88869
|
+
"chartButton-header": "_chartButton-header_1jfcs_97",
|
|
88882
88870
|
chartButtonContainer,
|
|
88883
88871
|
searchWrapper,
|
|
88884
88872
|
searchIcon,
|
|
@@ -89405,13 +89393,13 @@ const TableTab = ({
|
|
|
89405
89393
|
})]
|
|
89406
89394
|
});
|
|
89407
89395
|
};
|
|
89408
|
-
const wrapper = "
|
|
89409
|
-
const searchCommand = "
|
|
89410
|
-
const tabButton = "
|
|
89411
|
-
const tabActive = "
|
|
89396
|
+
const wrapper = "_wrapper_wy97p_9";
|
|
89397
|
+
const searchCommand = "_searchCommand_wy97p_12";
|
|
89398
|
+
const tabButton = "_tabButton_wy97p_15";
|
|
89399
|
+
const tabActive = "_tabActive_wy97p_18";
|
|
89412
89400
|
var styles$8 = {
|
|
89413
|
-
"main-container": "_main-
|
|
89414
|
-
"outputTab-header": "_outputTab-
|
|
89401
|
+
"main-container": "_main-container_wy97p_1",
|
|
89402
|
+
"outputTab-header": "_outputTab-header_wy97p_5",
|
|
89415
89403
|
wrapper,
|
|
89416
89404
|
searchCommand,
|
|
89417
89405
|
tabButton,
|
|
@@ -90438,13 +90426,13 @@ const ExternalMetricForm = ({
|
|
|
90438
90426
|
onSubmit,
|
|
90439
90427
|
defaultValues,
|
|
90440
90428
|
onCancel,
|
|
90441
|
-
isEmbedded,
|
|
90429
|
+
isEmbedded = true,
|
|
90442
90430
|
dashboardIds,
|
|
90443
90431
|
onDashboardChange,
|
|
90444
90432
|
companyId,
|
|
90445
90433
|
error: error2
|
|
90446
90434
|
}) => {
|
|
90447
|
-
var _a2, _b2;
|
|
90435
|
+
var _a2, _b2, _c2;
|
|
90448
90436
|
const {
|
|
90449
90437
|
register: register2,
|
|
90450
90438
|
handleSubmit
|
|
@@ -90462,10 +90450,13 @@ const ExternalMetricForm = ({
|
|
|
90462
90450
|
companyId
|
|
90463
90451
|
});
|
|
90464
90452
|
const dashboards = dashboardsData == null ? void 0 : dashboardsData.externalDashboards;
|
|
90465
|
-
const options2 = (_b2 = dashboards == null ? void 0 : dashboards.filter((d2) => d2.id === dashboardIds[0]).map((dash) => ({
|
|
90453
|
+
const options2 = isEmbedded ? (_b2 = dashboards == null ? void 0 : dashboards.filter((d2) => d2.id === dashboardIds[0]).map((dash) => ({
|
|
90454
|
+
value: dash.id,
|
|
90455
|
+
label: dash.name
|
|
90456
|
+
}))) != null ? _b2 : [] : (_c2 = dashboards == null ? void 0 : dashboards.map((dash) => ({
|
|
90466
90457
|
value: dash.id,
|
|
90467
90458
|
label: dash.name
|
|
90468
|
-
}))) != null ?
|
|
90459
|
+
}))) != null ? _c2 : [];
|
|
90469
90460
|
return /* @__PURE__ */ jsxs("form", {
|
|
90470
90461
|
className: styles$5.form,
|
|
90471
90462
|
onSubmit: submitMetric,
|