@embeddable.com/remarkable-ui 3.0.3 → 3.0.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.js
CHANGED
|
@@ -204,16 +204,23 @@ var getChartjsAxisOptionsScalesGrid = () => ({
|
|
|
204
204
|
color: getStyle("--em-chart-grid-line-color--light", "#EDEDF1"),
|
|
205
205
|
lineWidth: getStyleNumber("--em-chart-grid-line-width--thin", "0.0625rem")
|
|
206
206
|
});
|
|
207
|
+
var afterBuildTicks = (scale) => {
|
|
208
|
+
const allValues = scale.chart.data.datasets.flatMap((ds) => ds.data).filter((v) => typeof v === "number");
|
|
209
|
+
if (!allValues.length || !allValues.every((v) => Number.isInteger(v))) return;
|
|
210
|
+
scale.ticks = scale.ticks.filter((tick) => Number.isInteger(tick.value));
|
|
211
|
+
};
|
|
207
212
|
var getChartjsAxisOptionsScales = () => ({
|
|
208
213
|
x: {
|
|
209
214
|
grid: getChartjsAxisOptionsScalesGrid(),
|
|
210
215
|
title: getChartjsAxisOptionsScalesTitle(),
|
|
211
|
-
ticks: getChartjsAxisOptionsScalesTicksDefault()
|
|
216
|
+
ticks: getChartjsAxisOptionsScalesTicksDefault(),
|
|
217
|
+
afterBuildTicks
|
|
212
218
|
},
|
|
213
219
|
y: {
|
|
214
220
|
grid: getChartjsAxisOptionsScalesGrid(),
|
|
215
221
|
title: getChartjsAxisOptionsScalesTitle(),
|
|
216
|
-
ticks: getChartjsAxisOptionsScalesTicksMuted()
|
|
222
|
+
ticks: getChartjsAxisOptionsScalesTicksMuted(),
|
|
223
|
+
afterBuildTicks
|
|
217
224
|
}
|
|
218
225
|
});
|
|
219
226
|
var getChartjsAxisOptions = () => mergician(getChartjsOptions(), {
|
|
@@ -2586,7 +2593,7 @@ import { forwardRef as forwardRef5 } from "react";
|
|
|
2586
2593
|
|
|
2587
2594
|
// src/components/editors/inputs/shared/InputField/InputField.tsx
|
|
2588
2595
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
|
2589
|
-
import styles20 from "./InputField.module-
|
|
2596
|
+
import styles20 from "./InputField.module-JKLU4D4O.module.css";
|
|
2590
2597
|
import clsx16 from "clsx";
|
|
2591
2598
|
import { forwardRef as forwardRef4 } from "react";
|
|
2592
2599
|
import { jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
|