@embeddable.com/remarkable-ui 2.0.41 → 2.0.43
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.d.ts +2 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
package/dist/index.d.ts
CHANGED
|
@@ -302,6 +302,7 @@ declare const getChartjsAxisOptionsScalesGrid: () => Partial<GridLineOptions>;
|
|
|
302
302
|
declare const getChartjsAxisOptionsScales: () => Partial<ChartOptions["scales"]>;
|
|
303
303
|
declare const getChartjsAxisOptions: () => Partial<ChartOptions>;
|
|
304
304
|
declare const chartjsAxisOptionsLayoutPadding: number;
|
|
305
|
+
declare const chartjsAxisOptionsLayoutPaddingLarge: number;
|
|
305
306
|
declare const getChartjsAxisOptionsScalesGridColor: (ctx: any) => string | undefined;
|
|
306
307
|
|
|
307
308
|
type DateRangePickerProps = {
|
|
@@ -578,4 +579,4 @@ declare const endOfDayUTC: (date: Date) => Date;
|
|
|
578
579
|
|
|
579
580
|
declare const shallowEqual: (object1: any, object2: any) => boolean;
|
|
580
581
|
|
|
581
|
-
export { ActionIcon, BarChart, type BarChartProps, Button, ButtonIcon, Card, CardContent, CardFeedback, CardHeader, type CssSize, DateRangePicker, DateRangePickerField, type DateRangePickerProps, Divider, DonutChart, type DonutLabelChartProps, Dropdown, type DropdownProps, FieldFeedback, type FieldFeedbackProps, FieldHeader, type FieldHeaderProps, GhostButton, HeatMap, type HeatMapProps, type HeatMapPropsDimension, type HeatMapPropsMeasure, type HeatMapPropsThreshold, KpiChart, LineChart, type LineChartProps, MultiSelectField, type MultiSelectFieldProps, NumberField, Overlay, PieChart, type PieChartProps, PivotTable, type PivotTableProps, type PivotTablePropsColumnDimension, type PivotTablePropsMeasure, type PivotTablePropsRowDimension, SelectFieldCategory, SelectFieldContent, SelectFieldContentList, SelectFieldTrigger, SelectListOption, type SelectListOptionProps, type SelectListOptionPropsWithCategory, SingleSelectField, type SingleSelectFieldProps, Skeleton, StylesKeys, Switch, TableBody, TableBodyCellWithCopy, type TableBodyProps, TableHeader, TableHeaderAlign, type TableHeaderCell, type TableHeaderCellStyle, type TableHeaderItem, type TableHeaderItemAlign, type TableHeaderProps, TablePaginated, type TablePaginatedProps, TablePagination, type TablePaginationProps, TableScrollable, type TableScrollableHandle, type TableScrollableProps, type TableSort, TableSortDirection, TextField, Tooltip, Typography, chartjsAxisOptionsLayoutPadding, endOfDayUTC, getBarChartData, getBarChartOptions, getChartColors, getChartjsAxisOptions, getChartjsAxisOptionsPlugins, getChartjsAxisOptionsScales, getChartjsAxisOptionsScalesGrid, getChartjsAxisOptionsScalesGridColor, getChartjsAxisOptionsScalesTicksDefault, getChartjsAxisOptionsScalesTicksMuted, getChartjsAxisOptionsScalesTitle, getDonutChartOptions, getLineChartData, getLineChartOptions, getPieChartData, getPieChartOptions, getStyle, getStyleNumber, getTableTotalPages, isSameDate, isSameDateRange, shallowEqual, useDebounce, useResizeObserver, useTableGetRowsPerPage };
|
|
582
|
+
export { ActionIcon, BarChart, type BarChartProps, Button, ButtonIcon, Card, CardContent, CardFeedback, CardHeader, type CssSize, DateRangePicker, DateRangePickerField, type DateRangePickerProps, Divider, DonutChart, type DonutLabelChartProps, Dropdown, type DropdownProps, FieldFeedback, type FieldFeedbackProps, FieldHeader, type FieldHeaderProps, GhostButton, HeatMap, type HeatMapProps, type HeatMapPropsDimension, type HeatMapPropsMeasure, type HeatMapPropsThreshold, KpiChart, LineChart, type LineChartProps, MultiSelectField, type MultiSelectFieldProps, NumberField, Overlay, PieChart, type PieChartProps, PivotTable, type PivotTableProps, type PivotTablePropsColumnDimension, type PivotTablePropsMeasure, type PivotTablePropsRowDimension, SelectFieldCategory, SelectFieldContent, SelectFieldContentList, SelectFieldTrigger, SelectListOption, type SelectListOptionProps, type SelectListOptionPropsWithCategory, SingleSelectField, type SingleSelectFieldProps, Skeleton, StylesKeys, Switch, TableBody, TableBodyCellWithCopy, type TableBodyProps, TableHeader, TableHeaderAlign, type TableHeaderCell, type TableHeaderCellStyle, type TableHeaderItem, type TableHeaderItemAlign, type TableHeaderProps, TablePaginated, type TablePaginatedProps, TablePagination, type TablePaginationProps, TableScrollable, type TableScrollableHandle, type TableScrollableProps, type TableSort, TableSortDirection, TextField, Tooltip, Typography, chartjsAxisOptionsLayoutPadding, chartjsAxisOptionsLayoutPaddingLarge, endOfDayUTC, getBarChartData, getBarChartOptions, getChartColors, getChartjsAxisOptions, getChartjsAxisOptionsPlugins, getChartjsAxisOptionsScales, getChartjsAxisOptionsScalesGrid, getChartjsAxisOptionsScalesGridColor, getChartjsAxisOptionsScalesTicksDefault, getChartjsAxisOptionsScalesTicksMuted, getChartjsAxisOptionsScalesTitle, getDonutChartOptions, getLineChartData, getLineChartOptions, getPieChartData, getPieChartOptions, getStyle, getStyleNumber, getTableTotalPages, isSameDate, isSameDateRange, shallowEqual, useDebounce, useResizeObserver, useTableGetRowsPerPage };
|
package/dist/index.js
CHANGED
|
@@ -221,6 +221,7 @@ var getChartjsAxisOptions = () => mergician(getChartjsOptions(), {
|
|
|
221
221
|
scales: getChartjsAxisOptionsScales()
|
|
222
222
|
});
|
|
223
223
|
var chartjsAxisOptionsLayoutPadding = 30;
|
|
224
|
+
var chartjsAxisOptionsLayoutPaddingLarge = 60;
|
|
224
225
|
function isMixedValues(values) {
|
|
225
226
|
const hasPos = values.some((v) => v > 0);
|
|
226
227
|
const hasNeg = values.some((v) => v < 0);
|
|
@@ -264,7 +265,7 @@ var getDatalabelTotalFormatter = (_value, context) => {
|
|
|
264
265
|
const val = ds.data[i];
|
|
265
266
|
return sum + (val || 0);
|
|
266
267
|
}, 0);
|
|
267
|
-
return total
|
|
268
|
+
return total === 0 ? "" : total;
|
|
268
269
|
};
|
|
269
270
|
var getBarVerticalChartOptions = (config) => {
|
|
270
271
|
return {
|
|
@@ -280,16 +281,15 @@ var getBarVerticalChartOptions = (config) => {
|
|
|
280
281
|
total: {
|
|
281
282
|
align: (context) => {
|
|
282
283
|
const value = context.dataset.data[context.dataIndex];
|
|
283
|
-
return value >= 0 ? "top" : "
|
|
284
|
+
return value >= 0 ? "top" : "bottom";
|
|
284
285
|
}
|
|
285
286
|
},
|
|
286
287
|
value: {
|
|
287
|
-
align: (
|
|
288
|
+
align: () => {
|
|
288
289
|
if (config.stacked) {
|
|
289
290
|
return "center";
|
|
290
291
|
}
|
|
291
|
-
|
|
292
|
-
return value >= 0 ? "top" : "bottom";
|
|
292
|
+
return "top";
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -326,7 +326,7 @@ var getBarHorizontalChartOptions = (config) => {
|
|
|
326
326
|
indexAxis: "y",
|
|
327
327
|
layout: {
|
|
328
328
|
padding: {
|
|
329
|
-
right: (config.stacked ? config.showTotalLabels : config.showValueLabels) ?
|
|
329
|
+
right: (config.stacked ? config.showTotalLabels : config.showValueLabels) ? chartjsAxisOptionsLayoutPaddingLarge : 0
|
|
330
330
|
}
|
|
331
331
|
},
|
|
332
332
|
plugins: {
|
|
@@ -339,12 +339,11 @@ var getBarHorizontalChartOptions = (config) => {
|
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
value: {
|
|
342
|
-
align: (
|
|
342
|
+
align: () => {
|
|
343
343
|
if (config.stacked) {
|
|
344
344
|
return "center";
|
|
345
345
|
}
|
|
346
|
-
|
|
347
|
-
return value >= 0 ? "right" : "left";
|
|
346
|
+
return "right";
|
|
348
347
|
}
|
|
349
348
|
}
|
|
350
349
|
}
|
|
@@ -3367,6 +3366,7 @@ export {
|
|
|
3367
3366
|
Tooltip5 as Tooltip,
|
|
3368
3367
|
Typography,
|
|
3369
3368
|
chartjsAxisOptionsLayoutPadding,
|
|
3369
|
+
chartjsAxisOptionsLayoutPaddingLarge,
|
|
3370
3370
|
endOfDayUTC,
|
|
3371
3371
|
getBarChartData,
|
|
3372
3372
|
getBarChartOptions,
|