@ai-matrx/records-ui 0.115.75 → 0.115.77
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 +22 -1
- package/dist/index.cjs +1511 -1299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +1471 -1259
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +132 -14
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +137 -19
- package/dist/pickers.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -3504,7 +3504,7 @@ declare const SUBSCRIPTION_CADENCE_LABEL: Record<SubscriptionCadence, string>;
|
|
|
3504
3504
|
declare const SUBSCRIPTION_CHANNEL_VALUES: readonly ["in_app", "email", "sms"];
|
|
3505
3505
|
type SubscriptionChannel = (typeof SUBSCRIPTION_CHANNEL_VALUES)[number];
|
|
3506
3506
|
declare const SUBSCRIPTION_CHANNEL_LABEL: Record<SubscriptionChannel, string>;
|
|
3507
|
-
declare const ROLLUP_AGG_VALUES: readonly ["count", "sum", "avg", "min", "max"];
|
|
3507
|
+
declare const ROLLUP_AGG_VALUES: readonly ["count", "sum", "avg", "min", "max", "countall", "counta", "and", "or", "xor", "arrayjoin", "concatenate", "arrayunique", "arraycompact"];
|
|
3508
3508
|
type RollupAgg = (typeof ROLLUP_AGG_VALUES)[number];
|
|
3509
3509
|
declare const ROLLUP_AGG_LABEL: Record<RollupAgg, string>;
|
|
3510
3510
|
declare const FORMULA_OP_VALUES: readonly ["concat", "add", "sub", "mul", "div"];
|
|
@@ -3794,10 +3794,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
|
|
|
3794
3794
|
|
|
3795
3795
|
/** What a look may hold, with this package's grid look. */
|
|
3796
3796
|
type ViewLook = base.ViewLook<GridPresentation>;
|
|
3797
|
-
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3798
|
-
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3799
|
-
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3800
|
-
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3797
|
+
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>) => Record<string, unknown>;
|
|
3798
|
+
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>;
|
|
3799
|
+
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>>>>;
|
|
3800
|
+
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
|
|
3801
3801
|
/** The words of the look bar. One sentence, then the doors. */
|
|
3802
3802
|
declare const LOOK_WORDS: {
|
|
3803
3803
|
/** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
|
|
@@ -6836,6 +6836,8 @@ interface ViewActionHost {
|
|
|
6836
6836
|
togglePersonal?: () => void | Promise<void>;
|
|
6837
6837
|
/** Move the view to a named section of the list. Left out, no such verb. */
|
|
6838
6838
|
moveToSection?: () => void | Promise<void>;
|
|
6839
|
+
/** Copy another view's settings onto this one (AT-RECORD, Airtable's "Copy view configuration"). Left out, no such verb. */
|
|
6840
|
+
copySettings?: () => void | Promise<void>;
|
|
6839
6841
|
}
|
|
6840
6842
|
/** `whyNot`: the person's reason they may not change this table's views, or null when they may. */
|
|
6841
6843
|
declare function viewActions(whyNot: string | null, host: ViewActionHost, locked?: boolean, personal?: boolean): ObjectAction[];
|
|
@@ -6955,12 +6957,14 @@ declare function duplicateProgressWords(p: TableDuplicateProgress): string;
|
|
|
6955
6957
|
interface TableDuplicateDialogProps {
|
|
6956
6958
|
tableId: Uuid;
|
|
6957
6959
|
name: string;
|
|
6960
|
+
/** The table's own organization: every write says which organization it is for (the copy stays in it). */
|
|
6961
|
+
organizationId?: Uuid | null | undefined;
|
|
6958
6962
|
open: boolean;
|
|
6959
6963
|
onOpenChange: (open: boolean) => void;
|
|
6960
6964
|
/** The copy landed: the host opens it (a list re-reads). Absent, "Open the copy" follows its path. */
|
|
6961
6965
|
onDuplicated?: ((copy: TableDuplicated) => void) | undefined;
|
|
6962
6966
|
}
|
|
6963
|
-
declare function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
|
|
6967
|
+
declare function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
|
|
6964
6968
|
|
|
6965
6969
|
declare function CalendarLinkOnce({ url }: {
|
|
6966
6970
|
url: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -3504,7 +3504,7 @@ declare const SUBSCRIPTION_CADENCE_LABEL: Record<SubscriptionCadence, string>;
|
|
|
3504
3504
|
declare const SUBSCRIPTION_CHANNEL_VALUES: readonly ["in_app", "email", "sms"];
|
|
3505
3505
|
type SubscriptionChannel = (typeof SUBSCRIPTION_CHANNEL_VALUES)[number];
|
|
3506
3506
|
declare const SUBSCRIPTION_CHANNEL_LABEL: Record<SubscriptionChannel, string>;
|
|
3507
|
-
declare const ROLLUP_AGG_VALUES: readonly ["count", "sum", "avg", "min", "max"];
|
|
3507
|
+
declare const ROLLUP_AGG_VALUES: readonly ["count", "sum", "avg", "min", "max", "countall", "counta", "and", "or", "xor", "arrayjoin", "concatenate", "arrayunique", "arraycompact"];
|
|
3508
3508
|
type RollupAgg = (typeof ROLLUP_AGG_VALUES)[number];
|
|
3509
3509
|
declare const ROLLUP_AGG_LABEL: Record<RollupAgg, string>;
|
|
3510
3510
|
declare const FORMULA_OP_VALUES: readonly ["concat", "add", "sub", "mul", "div"];
|
|
@@ -3794,10 +3794,10 @@ declare function announceTableArchived({ notify, client, tableId, name, onRestor
|
|
|
3794
3794
|
|
|
3795
3795
|
/** What a look may hold, with this package's grid look. */
|
|
3796
3796
|
type ViewLook = base.ViewLook<GridPresentation>;
|
|
3797
|
-
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3798
|
-
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3799
|
-
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3800
|
-
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "
|
|
3797
|
+
declare const lookDocument: (look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>) => Record<string, unknown>;
|
|
3798
|
+
declare const lookFromDocument: (doc: Record<string, unknown> | null | undefined) => Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>;
|
|
3799
|
+
declare const readLooks: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookRead">, tableId: _ai_matrx_records.Uuid) => Promise<_ai_matrx_records.RecordsResult<Record<string, Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">>>>>;
|
|
3800
|
+
declare const keepLook: (client: Pick<_ai_matrx_records_core.RecordsClient, "viewLookSet">, tableId: _ai_matrx_records.Uuid, viewId: _ai_matrx_records.Uuid, look: Partial<Pick<base.SavedViewSpec<GridPresentation>, "presentation" | "layout" | "measure" | "where" | "sorts" | "groupField" | "swimlaneField" | "collapsedColumns" | "dateField" | "startField" | "endField" | "imageField">> | null) => Promise<_ai_matrx_records.RecordsResult<Record<string, unknown> | null>>;
|
|
3801
3801
|
/** The words of the look bar. One sentence, then the doors. */
|
|
3802
3802
|
declare const LOOK_WORDS: {
|
|
3803
3803
|
/** The reason, for a tooltip or a screen reader — never a line on the page (interface-text). */
|
|
@@ -6836,6 +6836,8 @@ interface ViewActionHost {
|
|
|
6836
6836
|
togglePersonal?: () => void | Promise<void>;
|
|
6837
6837
|
/** Move the view to a named section of the list. Left out, no such verb. */
|
|
6838
6838
|
moveToSection?: () => void | Promise<void>;
|
|
6839
|
+
/** Copy another view's settings onto this one (AT-RECORD, Airtable's "Copy view configuration"). Left out, no such verb. */
|
|
6840
|
+
copySettings?: () => void | Promise<void>;
|
|
6839
6841
|
}
|
|
6840
6842
|
/** `whyNot`: the person's reason they may not change this table's views, or null when they may. */
|
|
6841
6843
|
declare function viewActions(whyNot: string | null, host: ViewActionHost, locked?: boolean, personal?: boolean): ObjectAction[];
|
|
@@ -6955,12 +6957,14 @@ declare function duplicateProgressWords(p: TableDuplicateProgress): string;
|
|
|
6955
6957
|
interface TableDuplicateDialogProps {
|
|
6956
6958
|
tableId: Uuid;
|
|
6957
6959
|
name: string;
|
|
6960
|
+
/** The table's own organization: every write says which organization it is for (the copy stays in it). */
|
|
6961
|
+
organizationId?: Uuid | null | undefined;
|
|
6958
6962
|
open: boolean;
|
|
6959
6963
|
onOpenChange: (open: boolean) => void;
|
|
6960
6964
|
/** The copy landed: the host opens it (a list re-reads). Absent, "Open the copy" follows its path. */
|
|
6961
6965
|
onDuplicated?: ((copy: TableDuplicated) => void) | undefined;
|
|
6962
6966
|
}
|
|
6963
|
-
declare function TableDuplicateDialog({ tableId, name, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
|
|
6967
|
+
declare function TableDuplicateDialog({ tableId, name, organizationId, open, onOpenChange, onDuplicated }: TableDuplicateDialogProps): react.JSX.Element;
|
|
6964
6968
|
|
|
6965
6969
|
declare function CalendarLinkOnce({ url }: {
|
|
6966
6970
|
url: string;
|