From 811f4508d1c29a317807aa6482eb3763995046d3 Mon Sep 17 00:00:00 2001 From: Dan Philibin Date: Thu, 22 Dec 2022 20:01:03 +0000 Subject: [PATCH] change prop names --- src/examples/basic/table.ts | 4 ++-- src/ioSchema.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/examples/basic/table.ts b/src/examples/basic/table.ts index edb8e66..a241ba1 100644 --- a/src/examples/basic/table.ts +++ b/src/examples/basic/table.ts @@ -35,8 +35,8 @@ export const no_pagination: IntervalActionHandler = async io => { await io.display.table('Display users', { data, defaultPageSize: 50, - canFilter: false, - canSort: false, + isFilterable: false, + isSortable: false, }) } diff --git a/src/ioSchema.ts b/src/ioSchema.ts index ea198a4..328f863 100644 --- a/src/ioSchema.ts +++ b/src/ioSchema.ts @@ -420,8 +420,8 @@ const DISPLAY_SCHEMA = { data: z.array(internalTableRow), orientation: z.enum(['vertical', 'horizontal']).default('horizontal'), defaultPageSize: z.number().optional(), - canSort: z.boolean().default(true), - canFilter: z.boolean().default(true), + isSortable: z.boolean().default(true), + isFilterable: z.boolean().default(true), //== private props // added in v0.28, optional until required by all active versions totalRecords: z.optional(z.number().int()), @@ -657,8 +657,8 @@ const INPUT_SCHEMA = { minSelections: z.optional(z.number().int().min(0)), maxSelections: z.optional(z.number().positive().int()), disabled: z.optional(z.boolean().default(false)), - canSort: z.optional(z.boolean().default(true)), - canFilter: z.optional(z.boolean().default(true)), + isSortable: z.optional(z.boolean().default(true)), + isFilterable: z.optional(z.boolean().default(true)), //== private props // added in v0.28, optional until required by all active versions totalRecords: z.optional(z.number().int()),