@lightdash/common 0.1372.4 → 0.1373.1

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.
@@ -47,10 +47,11 @@ export type FilterDashboardToRule = DashboardFilterRule & {
47
47
  };
48
48
  };
49
49
  export type DashboardFilterRuleOverride = Omit<DashboardFilterRule, 'tileTargets'>;
50
- export type DateFilterRule = FilterRule<ConditionalOperator, unknown, any, {
50
+ export type DateFilterSettings = {
51
51
  unitOfTime?: UnitOfTime;
52
52
  completed?: boolean;
53
- }>;
53
+ };
54
+ export type DateFilterRule = FilterRule<ConditionalOperator, unknown, any, DateFilterSettings>;
54
55
  export type FilterGroupItem = FilterGroup | FilterRule;
55
56
  export type OrFilterGroup = {
56
57
  id: string;
@@ -290,7 +290,7 @@ class CartesianChartDataModel {
290
290
  return {};
291
291
  }
292
292
  const { type } = this;
293
- const orgColors = colors;
293
+ const orgColors = colors ?? savedCharts_1.ECHARTS_DEFAULT_COLORS;
294
294
  const DEFAULT_X_AXIS_TYPE = types_1.VizIndexType.CATEGORY;
295
295
  const defaultSeriesType = type === savedCharts_1.ChartKind.VERTICAL_BAR ? 'bar' : 'line';
296
296
  const shouldStack = display?.stack === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1372.4",
3
+ "version": "0.1373.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [