@dashboard-designer/core 0.2.0 → 0.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /** Supported database providers (Phase 1 includes SQL Server). */
2
2
  type DbProvider = 'sqlite' | 'postgres' | 'mysql' | 'mssql';
3
- type WidgetType = 'bar' | 'line' | 'pie' | 'table' | 'kpi' | 'listbox' | 'label' | 'labelContainer';
3
+ type WidgetType = 'timeline' | 'bar' | 'line' | 'pie' | 'table' | 'kpi' | 'listbox' | 'label' | 'labelContainer';
4
4
  type FilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin' | 'like' | 'between' | 'is_null' | 'not_null';
5
5
  type JoinType = 'inner' | 'left' | 'right' | 'full';
6
6
  type AuthMode = 'token' | 'anonymous';
@@ -23,6 +23,8 @@ interface GridItem {
23
23
  minH?: number;
24
24
  }
25
25
  interface FilterDef {
26
+ /** Editor control for filter values. Dates are stored as YYYY-MM-DD. */
27
+ dataType?: 'text' | 'date';
26
28
  id: string;
27
29
  field: string;
28
30
  label?: string;
package/dist/index.js CHANGED
@@ -310,6 +310,7 @@ function resolveDashboardVariables(dashboard, predefined = [], runtime = {}) {
310
310
  return result;
311
311
  }
312
312
  var WIDGET_TYPES = [
313
+ "timeline",
313
314
  "bar",
314
315
  "line",
315
316
  "pie",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashboard-designer/core",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",