@keemakr/ui-sdk 1.6.0-dev-20261027080125 → 1.6.0-dev-20261027081136
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/schema.d.ts +1 -0
- package/dist/schema.js +23 -0
- package/package.json +1 -1
package/dist/schema.d.ts
CHANGED
|
@@ -954,6 +954,7 @@ declare const leafNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
954
954
|
}, z.core.$strip>>;
|
|
955
955
|
}, z.core.$strip>>;
|
|
956
956
|
empty: z.ZodString;
|
|
957
|
+
hideHeader: z.ZodOptional<z.ZodBoolean>;
|
|
957
958
|
}, z.core.$strip>, z.ZodObject<{
|
|
958
959
|
type: z.ZodLiteral<"timeline">;
|
|
959
960
|
items: z.ZodArray<z.ZodObject<{
|
package/dist/schema.js
CHANGED
|
@@ -2021,9 +2021,32 @@ const leafNodeSchema = z.discriminatedUnion('type', [
|
|
|
2021
2021
|
.optional(),
|
|
2022
2022
|
/** Shown when `rows` is empty — every data-bound surface needs an empty state. */
|
|
2023
2023
|
empty: z.string().max(200),
|
|
2024
|
+
/**
|
|
2025
|
+
* Draw no column header row, so the table reads as a list (My Day's actions, a Red list).
|
|
2026
|
+
* The column labels stay for screen readers. The header holds the sort and filter controls
|
|
2027
|
+
* and the select-all tick, so a headerless table takes no sortable or filtered column and
|
|
2028
|
+
* no `bulk`. Default false.
|
|
2029
|
+
*/
|
|
2030
|
+
hideHeader: z.boolean().optional(),
|
|
2024
2031
|
})
|
|
2025
2032
|
.superRefine((node, ctx) => {
|
|
2033
|
+
if (node.hideHeader && node.bulk) {
|
|
2034
|
+
ctx.addIssue({
|
|
2035
|
+
code: 'custom',
|
|
2036
|
+
path: ['bulk'],
|
|
2037
|
+
message: 'a table with hideHeader has no header for the select-all tick',
|
|
2038
|
+
});
|
|
2039
|
+
}
|
|
2026
2040
|
for (const [i, column] of node.columns.entries()) {
|
|
2041
|
+
for (const control of ['sortable', 'filter']) {
|
|
2042
|
+
if (node.hideHeader && column[control]) {
|
|
2043
|
+
ctx.addIssue({
|
|
2044
|
+
code: 'custom',
|
|
2045
|
+
path: ['columns', i, control],
|
|
2046
|
+
message: `a table with hideHeader has no header for a ${control} column`,
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2027
2050
|
if (column.edit && column.key === 'row') {
|
|
2028
2051
|
ctx.addIssue({
|
|
2029
2052
|
code: 'custom',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keemakr/ui-sdk",
|
|
3
|
-
"version": "1.6.0-dev-
|
|
3
|
+
"version": "1.6.0-dev-20261027081136",
|
|
4
4
|
"description": "Product screens for keemakr marketplace modules: a versioned, server-driven UI tree schema plus defineScreen() handlers. Module code never ships to the browser — keemakr-core validates the tree and renders it with platform components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|