@hexclave/dashboard-ui-components 1.0.22 → 1.0.23
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/components/analytics-chart/analytics-chart.js +2 -2
- package/dist/components/analytics-chart/index.js +2 -2
- package/dist/components/button.d.ts +4 -4
- package/dist/components/chart-legend.d.ts +1 -1
- package/dist/components/data-grid/data-grid.js +2 -2
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-grid/use-url-state.js +1 -1
- package/dist/dashboard-ui-components.global.js +43 -43
- package/dist/dashboard-ui-components.global.js.map +4 -4
- package/dist/esm/components/analytics-chart/analytics-chart.js +2 -2
- package/dist/esm/components/analytics-chart/index.js +2 -2
- package/dist/esm/components/button.d.ts +4 -4
- package/dist/esm/components/chart-legend.d.ts +1 -1
- package/dist/esm/components/data-grid/data-grid.js +2 -2
- package/dist/esm/components/data-grid/index.js +2 -2
- package/dist/esm/components/data-grid/use-url-state.js +1 -1
- package/package.json +3 -3
|
@@ -7,8 +7,6 @@ let _hexclave_ui = require("@hexclave/ui");
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
let recharts = require("recharts");
|
|
10
|
-
let __state_js = require("./state.js");
|
|
11
|
-
let __strings_js = require("./strings.js");
|
|
12
10
|
let ___chart_container_js = require("../chart-container.js");
|
|
13
11
|
let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
|
|
14
12
|
let __format_js = require("./format.js");
|
|
@@ -17,6 +15,8 @@ let ___button_js = require("../button.js");
|
|
|
17
15
|
let __analytics_chart_pie_js = require("./analytics-chart-pie.js");
|
|
18
16
|
let __palette_js = require("./palette.js");
|
|
19
17
|
let __render_data_series_js = require("./render-data-series.js");
|
|
18
|
+
let __state_js = require("./state.js");
|
|
19
|
+
let __strings_js = require("./strings.js");
|
|
20
20
|
|
|
21
21
|
//#region src/components/analytics-chart/analytics-chart.tsx
|
|
22
22
|
const FALLBACK_PRIMARY_STYLE = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
let __state_js = require("./state.js");
|
|
4
|
-
let __strings_js = require("./strings.js");
|
|
5
3
|
let __default_analytics_chart_tooltip_js = require("./default-analytics-chart-tooltip.js");
|
|
6
4
|
let __format_js = require("./format.js");
|
|
7
5
|
let __types_js = require("./types.js");
|
|
8
6
|
let __palette_js = require("./palette.js");
|
|
7
|
+
let __state_js = require("./state.js");
|
|
8
|
+
let __strings_js = require("./strings.js");
|
|
9
9
|
let __analytics_chart_js = require("./analytics-chart.js");
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, 'ANALYTICS_CHART_DEFAULT_LAYERS', {
|
|
@@ -4,8 +4,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/button.d.ts
|
|
6
6
|
declare const designButtonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
8
|
-
size?: "
|
|
7
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
8
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
type DesignOriginalButtonProps = {
|
|
11
11
|
asChild?: boolean;
|
|
@@ -36,8 +36,8 @@ declare const DesignButton: React.FC<{
|
|
|
36
36
|
} & {
|
|
37
37
|
asChild?: boolean;
|
|
38
38
|
} & React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
39
|
-
variant?: "
|
|
40
|
-
size?: "
|
|
39
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "plain" | null | undefined;
|
|
40
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
41
41
|
} & class_variance_authority_types0.ClassProp) | undefined) => string> & {
|
|
42
42
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
43
43
|
}>;
|
|
@@ -2,7 +2,7 @@ import * as React$1 from "react";
|
|
|
2
2
|
import * as RechartsPrimitive from "recharts";
|
|
3
3
|
|
|
4
4
|
//#region src/components/chart-legend.d.ts
|
|
5
|
-
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "
|
|
5
|
+
declare const DesignChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
|
|
6
6
|
hideIcon?: boolean;
|
|
7
7
|
nameKey?: string;
|
|
8
8
|
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,14 +7,14 @@ let _hexclave_ui = require("@hexclave/ui");
|
|
|
7
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
8
|
let react = require("react");
|
|
9
9
|
react = require_chunk.__toESM(react);
|
|
10
|
+
let __state_js = require("./state.js");
|
|
11
|
+
let __strings_js = require("./strings.js");
|
|
10
12
|
let _hexclave_shared_dist_utils_errors = require("@hexclave/shared/dist/utils/errors");
|
|
11
13
|
let _tanstack_react_table = require("@tanstack/react-table");
|
|
12
14
|
let _tanstack_react_virtual = require("@tanstack/react-virtual");
|
|
13
15
|
let ___skeleton_js = require("../skeleton.js");
|
|
14
16
|
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
15
17
|
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
16
|
-
let __state_js = require("./state.js");
|
|
17
|
-
let __strings_js = require("./strings.js");
|
|
18
18
|
|
|
19
19
|
//#region src/components/data-grid/data-grid.tsx
|
|
20
20
|
function getEventTargetElement(target) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
3
|
-
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
4
|
-
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
5
3
|
let __state_js = require("./state.js");
|
|
6
4
|
let __strings_js = require("./strings.js");
|
|
5
|
+
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
6
|
+
let __data_grid_toolbar_js = require("./data-grid-toolbar.js");
|
|
7
7
|
let __data_grid_js = require("./data-grid.js");
|
|
8
8
|
let __use_data_source_js = require("./use-data-source.js");
|
|
9
9
|
let __use_url_state_js = require("./use-url-state.js");
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
const require_chunk = require('../../chunk-BE-pF4vm.js');
|
|
5
5
|
let react = require("react");
|
|
6
|
-
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
7
6
|
let __state_js = require("./state.js");
|
|
7
|
+
let __data_grid_sizing_js = require("./data-grid-sizing.js");
|
|
8
8
|
|
|
9
9
|
//#region src/components/data-grid/use-url-state.ts
|
|
10
10
|
function serializeWidths(widths, columns) {
|
|
@@ -4448,6 +4448,49 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
4448
4448
|
return Object.assign(Result.error(new RetryError(errors)), { attempts: totalAttempts });
|
|
4449
4449
|
}
|
|
4450
4450
|
|
|
4451
|
+
// ../shared/dist/esm/utils/bytes.js
|
|
4452
|
+
function decodeBase64(input) {
|
|
4453
|
+
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
4454
|
+
}
|
|
4455
|
+
function isBase64(input) {
|
|
4456
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
4457
|
+
}
|
|
4458
|
+
|
|
4459
|
+
// ../shared/dist/esm/utils/urls.js
|
|
4460
|
+
function createUrlIfValid(...args) {
|
|
4461
|
+
try {
|
|
4462
|
+
return new URL(...args);
|
|
4463
|
+
} catch (e40) {
|
|
4464
|
+
return null;
|
|
4465
|
+
}
|
|
4466
|
+
}
|
|
4467
|
+
function isValidUrl(url) {
|
|
4468
|
+
return !!createUrlIfValid(url);
|
|
4469
|
+
}
|
|
4470
|
+
function isValidHostname(hostname) {
|
|
4471
|
+
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
4472
|
+
const url = createUrlIfValid(`https://${hostname}`);
|
|
4473
|
+
if (!url) return false;
|
|
4474
|
+
return url.hostname === hostname;
|
|
4475
|
+
}
|
|
4476
|
+
function isValidHostnameWithWildcards(hostname) {
|
|
4477
|
+
if (!hostname) return false;
|
|
4478
|
+
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
4479
|
+
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
4480
|
+
if (hostname.includes("..")) return false;
|
|
4481
|
+
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
4482
|
+
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
4483
|
+
const segments = hostname.split(/\*+/);
|
|
4484
|
+
for (let i = 0; i < segments.length; i++) {
|
|
4485
|
+
const segment = segments[i];
|
|
4486
|
+
if (segment === "") continue;
|
|
4487
|
+
if (i === 0 && segment.startsWith(".")) return false;
|
|
4488
|
+
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
4489
|
+
if (segment.includes("..")) return false;
|
|
4490
|
+
}
|
|
4491
|
+
return true;
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4451
4494
|
// ../shared/dist/esm/known-errors.js
|
|
4452
4495
|
var KnownError = class extends StatusError {
|
|
4453
4496
|
constructor(statusCode, humanReadableMessage, details) {
|
|
@@ -5206,49 +5249,6 @@ This is likely an error in Hexclave. Please make sure you are running the newest
|
|
|
5206
5249
|
knownErrorCodes.add(KnownError2.errorCode);
|
|
5207
5250
|
}
|
|
5208
5251
|
|
|
5209
|
-
// ../shared/dist/esm/utils/bytes.js
|
|
5210
|
-
function decodeBase64(input) {
|
|
5211
|
-
return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
|
|
5212
|
-
}
|
|
5213
|
-
function isBase64(input) {
|
|
5214
|
-
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
|
|
5215
|
-
}
|
|
5216
|
-
|
|
5217
|
-
// ../shared/dist/esm/utils/urls.js
|
|
5218
|
-
function createUrlIfValid(...args) {
|
|
5219
|
-
try {
|
|
5220
|
-
return new URL(...args);
|
|
5221
|
-
} catch (e40) {
|
|
5222
|
-
return null;
|
|
5223
|
-
}
|
|
5224
|
-
}
|
|
5225
|
-
function isValidUrl(url) {
|
|
5226
|
-
return !!createUrlIfValid(url);
|
|
5227
|
-
}
|
|
5228
|
-
function isValidHostname(hostname) {
|
|
5229
|
-
if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
|
|
5230
|
-
const url = createUrlIfValid(`https://${hostname}`);
|
|
5231
|
-
if (!url) return false;
|
|
5232
|
-
return url.hostname === hostname;
|
|
5233
|
-
}
|
|
5234
|
-
function isValidHostnameWithWildcards(hostname) {
|
|
5235
|
-
if (!hostname) return false;
|
|
5236
|
-
if (!hostname.includes("*")) return isValidHostname(hostname);
|
|
5237
|
-
if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
|
|
5238
|
-
if (hostname.includes("..")) return false;
|
|
5239
|
-
const testHostname = hostname.replace(/\*+/g, "wildcard");
|
|
5240
|
-
if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
|
|
5241
|
-
const segments = hostname.split(/\*+/);
|
|
5242
|
-
for (let i = 0; i < segments.length; i++) {
|
|
5243
|
-
const segment = segments[i];
|
|
5244
|
-
if (segment === "") continue;
|
|
5245
|
-
if (i === 0 && segment.startsWith(".")) return false;
|
|
5246
|
-
if (i === segments.length - 1 && segment.endsWith(".")) return false;
|
|
5247
|
-
if (segment.includes("..")) return false;
|
|
5248
|
-
}
|
|
5249
|
-
return true;
|
|
5250
|
-
}
|
|
5251
|
-
|
|
5252
5252
|
// ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
|
|
5253
5253
|
var import_property_expr = __toESM(require_property_expr());
|
|
5254
5254
|
var import_tiny_case = __toESM(require_tiny_case());
|