@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.
- package/CHANGELOG.md +922 -0
- package/README.md +52 -15
- package/dist/DashboardFilterBar.d.ts.map +1 -1
- package/dist/DashboardGridLayout.d.ts +27 -0
- package/dist/DashboardGridLayout.d.ts.map +1 -1
- package/dist/DashboardRenderer.d.ts +46 -4
- package/dist/DashboardRenderer.d.ts.map +1 -1
- package/dist/DashboardWithConfig.d.ts.map +1 -1
- package/dist/DatasetWidget.d.ts +174 -6
- package/dist/DatasetWidget.d.ts.map +1 -1
- package/dist/MetricCard.d.ts +29 -10
- package/dist/MetricCard.d.ts.map +1 -1
- package/dist/MetricWidget.d.ts +82 -17
- package/dist/MetricWidget.d.ts.map +1 -1
- package/dist/ObjectDataTable.d.ts.map +1 -1
- package/dist/ObjectMetricWidget.d.ts +10 -7
- package/dist/ObjectMetricWidget.d.ts.map +1 -1
- package/dist/RecordDetailDrawer.d.ts.map +1 -1
- package/dist/WidgetConfigPanel.d.ts.map +1 -1
- package/dist/colorVariants.d.ts +56 -0
- package/dist/colorVariants.d.ts.map +1 -0
- package/dist/domPassthroughPins.d.ts +9 -0
- package/dist/domPassthroughPins.d.ts.map +1 -0
- package/dist/index.d.ts +9 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1506 -1268
- package/dist/index.umd.cjs +2 -2
- package/dist/legacyRetiredWidget.d.ts +41 -0
- package/dist/legacyRetiredWidget.d.ts.map +1 -0
- package/dist/recordFields.d.ts +1 -1
- package/dist/recordFields.d.ts.map +1 -1
- package/dist/schemaHostProps.d.ts +80 -0
- package/dist/schemaHostProps.d.ts.map +1 -0
- package/dist/utils.d.ts +34 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +13 -12
|
@@ -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
|
/**
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -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;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CAkBhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-dashboard",
|
|
3
|
-
"version": "17.
|
|
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.
|
|
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/
|
|
27
|
-
"@object-ui/
|
|
28
|
-
"@object-ui/
|
|
29
|
-
"@object-ui/
|
|
30
|
-
"@object-ui/react": "17.
|
|
31
|
-
"@object-ui/types": "17.
|
|
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.
|
|
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.
|
|
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
|
}
|