@databrainhq/plugin 0.7.4 → 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 +48 -45
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -82030,18 +82030,18 @@ const BoxPlot = ({
|
|
|
82030
82030
|
})
|
|
82031
82031
|
});
|
|
82032
82032
|
};
|
|
82033
|
-
const tableSection = "
|
|
82034
|
-
const tableContainer = "
|
|
82035
|
-
const tableDiv = "
|
|
82036
|
-
const table$4 = "
|
|
82037
|
-
const tableHead$1 = "
|
|
82038
|
-
const tableHeadColHash = "
|
|
82039
|
-
const tableCol = "
|
|
82040
|
-
const tableColLabel = "
|
|
82041
|
-
const data = "
|
|
82042
|
-
const tableBodyColHash = "
|
|
82043
|
-
const tableBodyColHashLabel = "
|
|
82044
|
-
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";
|
|
82045
82045
|
var style$1 = {
|
|
82046
82046
|
tableSection,
|
|
82047
82047
|
tableContainer,
|
|
@@ -82054,8 +82054,8 @@ var style$1 = {
|
|
|
82054
82054
|
data,
|
|
82055
82055
|
tableBodyColHash,
|
|
82056
82056
|
tableBodyColHashLabel,
|
|
82057
|
-
"table-loader-container": "_table-loader-
|
|
82058
|
-
"table-error-message": "_table-error-
|
|
82057
|
+
"table-loader-container": "_table-loader-container_20k3k_45",
|
|
82058
|
+
"table-error-message": "_table-error-message_20k3k_49",
|
|
82059
82059
|
noData: noData$1
|
|
82060
82060
|
};
|
|
82061
82061
|
var classnames = { exports: {} };
|
|
@@ -88838,35 +88838,35 @@ const ChartSettings = ({
|
|
|
88838
88838
|
})]
|
|
88839
88839
|
});
|
|
88840
88840
|
};
|
|
88841
|
-
const searchCommand$1 = "
|
|
88842
|
-
const chartText = "
|
|
88843
|
-
const charts = "
|
|
88844
|
-
const metricChart = "
|
|
88845
|
-
const metricChartEmpty = "
|
|
88846
|
-
const fullQuery = "
|
|
88847
|
-
const noQuery = "
|
|
88848
|
-
const chartButtonContainer = "
|
|
88849
|
-
const searchWrapper = "
|
|
88850
|
-
const searchIcon = "
|
|
88851
|
-
const chartConfigure = "
|
|
88852
|
-
const chartSettings = "
|
|
88853
|
-
const labels = "
|
|
88854
|
-
const chartButtons = "
|
|
88855
|
-
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";
|
|
88856
88856
|
var styles$d = {
|
|
88857
|
-
"outputTab-header": "_outputTab-
|
|
88857
|
+
"outputTab-header": "_outputTab-header_1jfcs_1",
|
|
88858
88858
|
searchCommand: searchCommand$1,
|
|
88859
|
-
"chartTab-container": "_chartTab-
|
|
88859
|
+
"chartTab-container": "_chartTab-container_1jfcs_17",
|
|
88860
88860
|
chartText,
|
|
88861
88861
|
charts,
|
|
88862
88862
|
metricChart,
|
|
88863
88863
|
metricChartEmpty,
|
|
88864
|
-
"chartTab-wrapper": "_chartTab-
|
|
88865
|
-
"chartTab-wrapper-head": "_chartTab-wrapper-
|
|
88864
|
+
"chartTab-wrapper": "_chartTab-wrapper_1jfcs_57",
|
|
88865
|
+
"chartTab-wrapper-head": "_chartTab-wrapper-head_1jfcs_65",
|
|
88866
88866
|
fullQuery,
|
|
88867
88867
|
noQuery,
|
|
88868
|
-
"tableTab-header": "_tableTab-
|
|
88869
|
-
"chartButton-header": "_chartButton-
|
|
88868
|
+
"tableTab-header": "_tableTab-header_1jfcs_89",
|
|
88869
|
+
"chartButton-header": "_chartButton-header_1jfcs_97",
|
|
88870
88870
|
chartButtonContainer,
|
|
88871
88871
|
searchWrapper,
|
|
88872
88872
|
searchIcon,
|
|
@@ -89393,13 +89393,13 @@ const TableTab = ({
|
|
|
89393
89393
|
})]
|
|
89394
89394
|
});
|
|
89395
89395
|
};
|
|
89396
|
-
const wrapper = "
|
|
89397
|
-
const searchCommand = "
|
|
89398
|
-
const tabButton = "
|
|
89399
|
-
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";
|
|
89400
89400
|
var styles$8 = {
|
|
89401
|
-
"main-container": "_main-
|
|
89402
|
-
"outputTab-header": "_outputTab-
|
|
89401
|
+
"main-container": "_main-container_wy97p_1",
|
|
89402
|
+
"outputTab-header": "_outputTab-header_wy97p_5",
|
|
89403
89403
|
wrapper,
|
|
89404
89404
|
searchCommand,
|
|
89405
89405
|
tabButton,
|
|
@@ -90426,13 +90426,13 @@ const ExternalMetricForm = ({
|
|
|
90426
90426
|
onSubmit,
|
|
90427
90427
|
defaultValues,
|
|
90428
90428
|
onCancel,
|
|
90429
|
-
isEmbedded,
|
|
90429
|
+
isEmbedded = true,
|
|
90430
90430
|
dashboardIds,
|
|
90431
90431
|
onDashboardChange,
|
|
90432
90432
|
companyId,
|
|
90433
90433
|
error: error2
|
|
90434
90434
|
}) => {
|
|
90435
|
-
var _a2, _b2;
|
|
90435
|
+
var _a2, _b2, _c2;
|
|
90436
90436
|
const {
|
|
90437
90437
|
register: register2,
|
|
90438
90438
|
handleSubmit
|
|
@@ -90450,10 +90450,13 @@ const ExternalMetricForm = ({
|
|
|
90450
90450
|
companyId
|
|
90451
90451
|
});
|
|
90452
90452
|
const dashboards = dashboardsData == null ? void 0 : dashboardsData.externalDashboards;
|
|
90453
|
-
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) => ({
|
|
90454
90457
|
value: dash.id,
|
|
90455
90458
|
label: dash.name
|
|
90456
|
-
}))) != null ?
|
|
90459
|
+
}))) != null ? _c2 : [];
|
|
90457
90460
|
return /* @__PURE__ */ jsxs("form", {
|
|
90458
90461
|
className: styles$5.form,
|
|
90459
90462
|
onSubmit: submitMetric,
|