@object-ui/plugin-dashboard 17.3.0 → 17.5.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaHostProps.d.ts","sourceRoot":"","sources":["../src/schemaHostProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,2EAA2E;IAC3E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sEAAsE;IACtE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
package/dist/utils.d.ts CHANGED
@@ -12,6 +12,40 @@ export declare function isObjectProvider(widgetData: unknown): widgetData is {
12
12
  aggregate?: any;
13
13
  filter?: any;
14
14
  };
15
+ /**
16
+ * A record key → a human column header: `unit_price` / `unitPrice` → "Unit Price".
17
+ *
18
+ * Single home for the convention, because both halves of the `table` widget
19
+ * family need it and they must agree: the object-bound path normalizes an
20
+ * author's `string[]` shorthand with it (`normalizeColumns`), and the static
21
+ * path derives headers with it when no columns were declared at all.
22
+ */
23
+ export declare function humanizeFieldKey(key: string): string;
24
+ /**
25
+ * Columns for a STATIC (inline `options.data`) table widget whose author
26
+ * declared none — objectui#4618.
27
+ *
28
+ * `DataTableSchema.columns` is a REQUIRED key (`@object-ui/types`
29
+ * `data-display.ts`), and a `data-table` handed rows but no columns draws one
30
+ * empty `tr` per row: no `th`, no `td`, nothing readable. Both dashboard
31
+ * surfaces built exactly that node whenever the widget carried only
32
+ * `options.data`, so a documented authoring surface rendered a silent blank.
33
+ *
34
+ * The object-bound half of the same widget family has always derived columns
35
+ * from the fetched rows when none were declared (`ObjectDataTable`), so this is
36
+ * that behaviour reaching the static half — not a new capability. Keys come
37
+ * from the FIRST row for the same reason it does there: the first record is the
38
+ * shape the author is describing, and scanning every row would let one ragged
39
+ * record widen the table.
40
+ *
41
+ * `_`-prefixed keys are internal bookkeeping and stay out. Non-record rows
42
+ * (strings, numbers, arrays) have no keys to name, so they derive nothing and
43
+ * the table renders its own empty state rather than a header row of noise.
44
+ */
45
+ export declare function deriveStaticTableColumns(rows: unknown): Array<{
46
+ header: string;
47
+ accessorKey: string;
48
+ }>;
15
49
  export { resolveDateMacros, resolveFilterPlaceholders } from '@object-ui/core';
16
50
  export { shiftFilterByCompareTo, compareToTrendLabelKey, type CompareToConfig, } from '@object-ui/core';
17
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,CAAA;CAAE,CAO1I;AAUD,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAG/E,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAClC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,IAAI,CAkBhE"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4FAA4F;AAC5F,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,UAAU,IAAI;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,GAAG,CAAC;IAAC,MAAM,CAAC,EAAE,GAAG,CAAA;CAAE,CAO1I;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CASpD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAOtG;AAUD,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAG/E,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,eAAe,GACrB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAClC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,IAAI,CAkBhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-dashboard",
3
- "version": "17.3.0",
3
+ "version": "17.5.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Dashboard plugin for Object UI",
@@ -19,16 +19,16 @@
19
19
  "@dnd-kit/sortable": "^10.0.0",
20
20
  "@dnd-kit/utilities": "^3.2.2",
21
21
  "clsx": "^2.1.1",
22
- "lucide-react": "^1.28.0",
22
+ "lucide-react": "^1.29.0",
23
23
  "react": "19.2.8",
24
24
  "react-dom": "19.2.8",
25
25
  "tailwind-merge": "^3.6.0",
26
- "@object-ui/components": "17.3.0",
27
- "@object-ui/core": "17.3.0",
28
- "@object-ui/fields": "17.3.0",
29
- "@object-ui/i18n": "17.3.0",
30
- "@object-ui/react": "17.3.0",
31
- "@object-ui/types": "17.3.0"
26
+ "@object-ui/fields": "17.5.0",
27
+ "@object-ui/i18n": "17.5.0",
28
+ "@object-ui/core": "17.5.0",
29
+ "@object-ui/components": "17.5.0",
30
+ "@object-ui/react": "17.5.0",
31
+ "@object-ui/types": "17.5.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^18.0.0 || ^19.0.0",
@@ -36,13 +36,14 @@
36
36
  "react-grid-layout": "^2.2.0 || ^1.4.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@objectstack/spec": "^17.0.0-rc.2",
39
+ "@objectstack/spec": "^17.0.0-rc.6",
40
40
  "@types/react-grid-layout": "^2.1.0",
41
41
  "@vitejs/plugin-react": "^6.0.5",
42
42
  "react-grid-layout": "^2.2.4",
43
43
  "typescript": "^6.0.3",
44
- "vite": "^8.2.0",
45
- "vite-plugin-dts": "^5.0.3"
44
+ "vite": "^8.2.1",
45
+ "vite-plugin-dts": "^5.0.3",
46
+ "@object-ui/plugin-charts": "17.5.0"
46
47
  },
47
48
  "keywords": [
48
49
  "objectui",
@@ -79,7 +80,7 @@
79
80
  ],
80
81
  "scripts": {
81
82
  "build": "vite build",
82
- "type-check": "tsc --noEmit",
83
+ "type-check": "tsc --noEmit && tsc -p tsconfig.test.json",
83
84
  "test": "vitest run",
84
85
  "lint": "eslint ."
85
86
  }