@richardmcquiston01/dashboard-widgets-toolkit 0.6.0 → 0.7.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/README.md +6 -1
- package/dist/core.cjs +9 -0
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +9 -0
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +9 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +9 -0
- package/dist/react.js.map +1 -1
- package/dist/{scale-D51ZGIF4.d.cts → scale-W60sXwlI.d.cts} +7 -0
- package/dist/{scale-D51ZGIF4.d.ts → scale-W60sXwlI.d.ts} +7 -0
- package/package.json +1 -1
package/dist/react.cjs
CHANGED
|
@@ -2332,6 +2332,14 @@ function optionalNumber(record, field, path, problems) {
|
|
|
2332
2332
|
requireNumber(record, field, path, problems);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
|
+
function optionalSortValue(record, path, problems) {
|
|
2336
|
+
const value = record["value"];
|
|
2337
|
+
if (value !== void 0 && typeof value !== "string" && !(typeof value === "number" && Number.isFinite(value))) {
|
|
2338
|
+
problems.push(
|
|
2339
|
+
`${path}.value must be a string or a finite number, got ${describeType2(value)}.`
|
|
2340
|
+
);
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2335
2343
|
function optionalBoolean(record, field, path, problems) {
|
|
2336
2344
|
const value = record[field];
|
|
2337
2345
|
if (value !== void 0 && typeof value !== "boolean") {
|
|
@@ -2435,6 +2443,7 @@ function checkPayloadFields(kind, data, problems) {
|
|
|
2435
2443
|
}
|
|
2436
2444
|
eachRecord(row, rowPath, problems, (cell, cellPath) => {
|
|
2437
2445
|
requireString(cell, "text", cellPath, problems);
|
|
2446
|
+
optionalSortValue(cell, cellPath, problems);
|
|
2438
2447
|
optionalUrl(
|
|
2439
2448
|
cell,
|
|
2440
2449
|
"href",
|