@nubase/frontend 0.1.20 → 0.1.22
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/index.d.mts +193 -9
- package/dist/index.d.ts +193 -9
- package/dist/index.js +4389 -3777
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4348 -3737
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +12 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -463,6 +463,85 @@ declare function useResourceViewQuery<TData = any>(resourceId: string, view: {
|
|
|
463
463
|
}) => Promise<HttpResponse<TData>>;
|
|
464
464
|
}, params?: Record<string, any>, options?: Omit<UseQueryOptions<HttpResponse<TData>>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<HttpResponse<TData>, Error>;
|
|
465
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Describes how a schema field maps to a filter control.
|
|
468
|
+
*/
|
|
469
|
+
type FilterFieldDescriptor = {
|
|
470
|
+
/** Field name from the schema */
|
|
471
|
+
name: string;
|
|
472
|
+
/** Display label (from metadata or derived from name) */
|
|
473
|
+
label: string;
|
|
474
|
+
/** The filter type to render */
|
|
475
|
+
filterType: "text" | "lookup" | "boolean";
|
|
476
|
+
/** For lookup filters: the resource ID to search */
|
|
477
|
+
lookupResource?: string;
|
|
478
|
+
/** The underlying schema type (string, number, boolean) */
|
|
479
|
+
schemaType: string;
|
|
480
|
+
/** Original field metadata */
|
|
481
|
+
metadata: SchemaMetadata;
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* Filter state derived from schema - a partial object matching the schema shape.
|
|
485
|
+
* For lookup fields with multi-select, the value is an array.
|
|
486
|
+
*/
|
|
487
|
+
type SchemaFilterState<TSchema extends ObjectSchema<any>> = {
|
|
488
|
+
[K in keyof TSchema["_shape"]]?: TSchema["_shape"][K]["_outputType"] extends number | string ? TSchema["_shape"][K]["_outputType"] | TSchema["_shape"][K]["_outputType"][] : TSchema["_shape"][K]["_outputType"];
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Configuration options for schema filter introspection.
|
|
492
|
+
*/
|
|
493
|
+
type SchemaFilterConfig = {
|
|
494
|
+
/** Fields to exclude from filters */
|
|
495
|
+
excludeFields?: string[];
|
|
496
|
+
/** Custom labels for fields (overrides metadata.label) */
|
|
497
|
+
labels?: Record<string, string>;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
type UseSchemaFiltersOptions = SchemaFilterConfig;
|
|
501
|
+
type UseSchemaFiltersReturn<TSchema extends ObjectSchema<any>> = {
|
|
502
|
+
/** Current filter values */
|
|
503
|
+
filterState: SchemaFilterState<TSchema>;
|
|
504
|
+
/** Update a single filter value */
|
|
505
|
+
setFilterValue: (field: string, value: unknown) => void;
|
|
506
|
+
/** Update multiple filter values at once */
|
|
507
|
+
setFilterValues: (values: Partial<SchemaFilterState<TSchema>>) => void;
|
|
508
|
+
/** Clear all filters */
|
|
509
|
+
clearFilters: () => void;
|
|
510
|
+
/** Whether any filters are active */
|
|
511
|
+
hasActiveFilters: boolean;
|
|
512
|
+
/** Filter field descriptors for rendering */
|
|
513
|
+
filterDescriptors: FilterFieldDescriptor[];
|
|
514
|
+
/** Get params for API call (removes empty/undefined values) */
|
|
515
|
+
getRequestParams: () => Record<string, unknown>;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Hook for managing schema-derived filter state.
|
|
519
|
+
*
|
|
520
|
+
* @param schema The ObjectSchema to derive filters from (typically endpoint.requestParams)
|
|
521
|
+
* @param options Optional configuration for filtering and customization
|
|
522
|
+
* @returns Filter state and methods for managing filters
|
|
523
|
+
*
|
|
524
|
+
* @example
|
|
525
|
+
* ```typescript
|
|
526
|
+
* const filterSchema = apiEndpoints.getTickets.requestParams;
|
|
527
|
+
* const {
|
|
528
|
+
* filterState,
|
|
529
|
+
* setFilterValue,
|
|
530
|
+
* clearFilters,
|
|
531
|
+
* hasActiveFilters,
|
|
532
|
+
* filterDescriptors,
|
|
533
|
+
* getRequestParams,
|
|
534
|
+
* } = useSchemaFilters(filterSchema);
|
|
535
|
+
*
|
|
536
|
+
* // Use getRequestParams() for API calls
|
|
537
|
+
* const { data } = useQuery({
|
|
538
|
+
* queryKey: ["tickets", getRequestParams()],
|
|
539
|
+
* queryFn: () => api.getTickets({ params: getRequestParams() }),
|
|
540
|
+
* });
|
|
541
|
+
* ```
|
|
542
|
+
*/
|
|
543
|
+
declare function useSchemaFilters<TSchema extends ObjectSchema<any>>(schema: TSchema | undefined, options?: UseSchemaFiltersOptions): UseSchemaFiltersReturn<TSchema>;
|
|
544
|
+
|
|
466
545
|
interface SchemaFormBodyProps {
|
|
467
546
|
form: SchemaFormConfiguration<any>;
|
|
468
547
|
className?: string;
|
|
@@ -593,7 +672,7 @@ type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TAp
|
|
|
593
672
|
context: NubaseContextData<TApiEndpoints, TParamsSchema>;
|
|
594
673
|
}) => Promise<HttpResponse<any>>;
|
|
595
674
|
};
|
|
596
|
-
type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ViewBase<TApiEndpoints, TParamsSchema> & {
|
|
675
|
+
type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string, TFilterSchema extends ObjectSchema<any> | undefined = undefined> = ViewBase<TApiEndpoints, TParamsSchema> & {
|
|
597
676
|
type: "resource-search";
|
|
598
677
|
/**
|
|
599
678
|
* Schema for the search results data retrieved from the server.
|
|
@@ -603,6 +682,11 @@ type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TAp
|
|
|
603
682
|
* Optional schema for URL parameters this view expects.
|
|
604
683
|
*/
|
|
605
684
|
schemaParams?: TParamsSchema;
|
|
685
|
+
/**
|
|
686
|
+
* Optional schema for filter parameters (typically endpoint.requestParams).
|
|
687
|
+
* When provided, a filter bar will be automatically generated.
|
|
688
|
+
*/
|
|
689
|
+
schemaFilter?: TFilterSchema;
|
|
606
690
|
/**
|
|
607
691
|
* Optional actions to display above the table for bulk operations on selected items.
|
|
608
692
|
*/
|
|
@@ -618,7 +702,7 @@ type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TAp
|
|
|
618
702
|
context: NubaseContextData<TApiEndpoints, TParamsSchema>;
|
|
619
703
|
}) => Promise<HttpResponse<Infer<TSchema>>>;
|
|
620
704
|
};
|
|
621
|
-
type View<TSchema extends ObjectSchema<any> | ArraySchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ResourceCreateView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceViewView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceSearchView<TSchema extends ArraySchema<any> ? TSchema : ArraySchema<any>, TApiEndpoints, TParamsSchema, TActionIds>;
|
|
705
|
+
type View<TSchema extends ObjectSchema<any> | ArraySchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string, TFilterSchema extends ObjectSchema<any> | undefined = undefined> = ResourceCreateView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceViewView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceSearchView<TSchema extends ArraySchema<any> ? TSchema : ArraySchema<any>, TApiEndpoints, TParamsSchema, TActionIds, TFilterSchema>;
|
|
622
706
|
|
|
623
707
|
/**
|
|
624
708
|
* Configuration for lookup/search behavior of a resource.
|
|
@@ -651,7 +735,7 @@ type ResourceLookupConfig = {
|
|
|
651
735
|
* Views are directly accessible without an intermediate operation wrapper.
|
|
652
736
|
* Can be extended with additional properties as needed.
|
|
653
737
|
*/
|
|
654
|
-
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>> = Record<string, View<any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action>, TLookup extends ResourceLookupConfig | undefined = undefined> = {
|
|
738
|
+
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any, any>> = Record<string, View<any, any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action>, TLookup extends ResourceLookupConfig | undefined = undefined> = {
|
|
655
739
|
id: string;
|
|
656
740
|
views: TViews;
|
|
657
741
|
/**
|
|
@@ -2185,8 +2269,10 @@ interface TreeDataGridProps<R, SR = unknown, K extends Key = Key> extends Omit$1
|
|
|
2185
2269
|
declare function TreeDataGrid<R, SR = unknown, K extends Key = Key>({ columns: rawColumns, rows: rawRows, rowHeight: rawRowHeight, rowKeyGetter: rawRowKeyGetter, onCellKeyDown: rawOnCellKeyDown, onCellCopy: rawOnCellCopy, onCellPaste: rawOnCellPaste, onRowsChange, selectedRows: rawSelectedRows, onSelectedRowsChange: rawOnSelectedRowsChange, renderers, groupBy: rawGroupBy, rowGrouper, expandedGroupIds, onExpandedGroupIdsChange, groupIdGetter: rawGroupIdGetter, ...props }: TreeDataGridProps<R, SR, K>): react_jsx_runtime.JSX.Element;
|
|
2186
2270
|
|
|
2187
2271
|
type DataStateProps = {
|
|
2188
|
-
/** Whether data is currently loading */
|
|
2272
|
+
/** Whether data is currently loading (initial load with no cached data) */
|
|
2189
2273
|
isLoading?: boolean;
|
|
2274
|
+
/** Whether data is being fetched (refetch with existing data visible) */
|
|
2275
|
+
isFetching?: boolean;
|
|
2190
2276
|
/** Error that occurred during data fetching */
|
|
2191
2277
|
error?: Error | null;
|
|
2192
2278
|
/** Whether the data set is empty (after successful load) */
|
|
@@ -2204,10 +2290,15 @@ type DataStateProps = {
|
|
|
2204
2290
|
* A component that handles common data fetching states: loading, error, and empty.
|
|
2205
2291
|
* Renders children only when data is successfully loaded and not empty.
|
|
2206
2292
|
*
|
|
2293
|
+
* Supports two loading modes:
|
|
2294
|
+
* - `isLoading`: Initial load - shows spinner, hides children (use when no cached data)
|
|
2295
|
+
* - `isFetching`: Refetch - shows subtle overlay on top of children (use during refetches)
|
|
2296
|
+
*
|
|
2207
2297
|
* @example
|
|
2208
2298
|
* ```tsx
|
|
2209
2299
|
* <DataState
|
|
2210
2300
|
* isLoading={isLoading}
|
|
2301
|
+
* isFetching={isFetching && !isLoading}
|
|
2211
2302
|
* error={error}
|
|
2212
2303
|
* isEmpty={data.length === 0}
|
|
2213
2304
|
* emptyMessage="No items found"
|
|
@@ -2606,7 +2697,8 @@ declare const unorderedListCommand: MarkdownCommand;
|
|
|
2606
2697
|
declare const orderedListCommand: MarkdownCommand;
|
|
2607
2698
|
declare const checkListCommand: MarkdownCommand;
|
|
2608
2699
|
|
|
2609
|
-
|
|
2700
|
+
declare const markdownTextAreaVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2701
|
+
interface MarkdownTextAreaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement>, VariantProps<typeof markdownTextAreaVariants> {
|
|
2610
2702
|
className?: string;
|
|
2611
2703
|
}
|
|
2612
2704
|
interface MarkdownTextAreaHandle {
|
|
@@ -2731,6 +2823,93 @@ type NubaseAppProps = {
|
|
|
2731
2823
|
};
|
|
2732
2824
|
declare const NubaseApp: FC<NubaseAppProps>;
|
|
2733
2825
|
|
|
2826
|
+
/**
|
|
2827
|
+
* Introspects an ObjectSchema and returns filter descriptors for each field.
|
|
2828
|
+
*
|
|
2829
|
+
* @param schema The ObjectSchema to introspect (typically endpoint.requestParams)
|
|
2830
|
+
* @param config Optional configuration for filtering and customization
|
|
2831
|
+
* @returns Array of filter field descriptors
|
|
2832
|
+
*
|
|
2833
|
+
* @example
|
|
2834
|
+
* ```typescript
|
|
2835
|
+
* const filterSchema = apiEndpoints.getTickets.requestParams;
|
|
2836
|
+
* const descriptors = introspectSchemaForFilters(filterSchema, {
|
|
2837
|
+
* excludeFields: ["createdAt"],
|
|
2838
|
+
* labels: { assigneeId: "Assigned To" }
|
|
2839
|
+
* });
|
|
2840
|
+
* ```
|
|
2841
|
+
*/
|
|
2842
|
+
declare function introspectSchemaForFilters<TSchema extends ObjectSchema<any>>(schema: TSchema, config?: SchemaFilterConfig): FilterFieldDescriptor[];
|
|
2843
|
+
|
|
2844
|
+
type SchemaFilterBarProps<TSchema extends ObjectSchema<any>> = {
|
|
2845
|
+
/** Filter field descriptors from introspection */
|
|
2846
|
+
filterDescriptors: FilterFieldDescriptor[];
|
|
2847
|
+
/** Current filter state */
|
|
2848
|
+
filterState: SchemaFilterState<TSchema>;
|
|
2849
|
+
/** Callback when a filter value changes */
|
|
2850
|
+
onFilterChange: (field: string, value: unknown) => void;
|
|
2851
|
+
/** Global search value (optional) */
|
|
2852
|
+
searchValue?: string;
|
|
2853
|
+
/** Callback when search changes */
|
|
2854
|
+
onSearchChange?: (value: string) => void;
|
|
2855
|
+
/** Search placeholder */
|
|
2856
|
+
searchPlaceholder?: string;
|
|
2857
|
+
/** Callback for clear filters button */
|
|
2858
|
+
onClearFilters?: () => void;
|
|
2859
|
+
/** Whether to show the clear filters button (default: true) */
|
|
2860
|
+
showClearFilters?: boolean;
|
|
2861
|
+
/** Debounce delay for search input (default: 300) */
|
|
2862
|
+
searchDebounceMs?: number;
|
|
2863
|
+
/** Whether the filter bar is disabled */
|
|
2864
|
+
disabled?: boolean;
|
|
2865
|
+
/** Additional className for the container */
|
|
2866
|
+
className?: string;
|
|
2867
|
+
};
|
|
2868
|
+
/**
|
|
2869
|
+
* Renders a filter bar based on schema-derived filter descriptors.
|
|
2870
|
+
*
|
|
2871
|
+
* @example
|
|
2872
|
+
* ```tsx
|
|
2873
|
+
* const { filterState, setFilterValue, clearFilters, filterDescriptors } =
|
|
2874
|
+
* useSchemaFilters(filterSchema);
|
|
2875
|
+
*
|
|
2876
|
+
* <SchemaFilterBar
|
|
2877
|
+
* filterDescriptors={filterDescriptors}
|
|
2878
|
+
* filterState={filterState}
|
|
2879
|
+
* onFilterChange={setFilterValue}
|
|
2880
|
+
* onClearFilters={clearFilters}
|
|
2881
|
+
* />
|
|
2882
|
+
* ```
|
|
2883
|
+
*/
|
|
2884
|
+
declare function SchemaFilterBar<TSchema extends ObjectSchema<any>>({ filterDescriptors, filterState, onFilterChange, searchValue, onSearchChange, searchPlaceholder, onClearFilters, showClearFilters, searchDebounceMs, disabled, className, }: SchemaFilterBarProps<TSchema>): react_jsx_runtime.JSX.Element | null;
|
|
2885
|
+
declare namespace SchemaFilterBar {
|
|
2886
|
+
var displayName: string;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
type LookupSelectFilterProps = {
|
|
2890
|
+
/** Label for the filter button */
|
|
2891
|
+
label: string;
|
|
2892
|
+
/** Resource ID for lookup (e.g., "user") */
|
|
2893
|
+
lookupResource: string;
|
|
2894
|
+
/** Currently selected IDs */
|
|
2895
|
+
value: (string | number)[];
|
|
2896
|
+
/** Callback when selection changes */
|
|
2897
|
+
onChange: (value: (string | number)[]) => void;
|
|
2898
|
+
/** Minimum characters before search (default: 0 for loading all on open) */
|
|
2899
|
+
minQueryLength?: number;
|
|
2900
|
+
/** Debounce delay for search (default: 300) */
|
|
2901
|
+
debounceMs?: number;
|
|
2902
|
+
/** Width of the dropdown */
|
|
2903
|
+
dropdownWidth?: number;
|
|
2904
|
+
/** Maximum height of options list */
|
|
2905
|
+
maxHeight?: number;
|
|
2906
|
+
/** Whether the filter is disabled */
|
|
2907
|
+
disabled?: boolean;
|
|
2908
|
+
/** Additional className for the trigger button */
|
|
2909
|
+
className?: string;
|
|
2910
|
+
};
|
|
2911
|
+
declare const LookupSelectFilter: React$1.ForwardRefExoticComponent<LookupSelectFilterProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2912
|
+
|
|
2734
2913
|
declare const searchFilterBarVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2735
2914
|
declare const searchFilterBarInputVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2736
2915
|
declare const searchFilterBarClearButtonVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
@@ -3195,12 +3374,17 @@ type InlineViewViewConfig<TApiEndpoints, TActionIds extends string, TSchema exte
|
|
|
3195
3374
|
/**
|
|
3196
3375
|
* Inline view definition for search views
|
|
3197
3376
|
*/
|
|
3198
|
-
type InlineSearchViewConfig<TApiEndpoints, TActionIds extends string, TSchema extends ArraySchema<any> = ArraySchema<any>, TParamsSchema extends ObjectSchema<any> | undefined = undefined> = {
|
|
3377
|
+
type InlineSearchViewConfig<TApiEndpoints, TActionIds extends string, TSchema extends ArraySchema<any> = ArraySchema<any>, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TFilterSchema extends ObjectSchema<any> | undefined = undefined> = {
|
|
3199
3378
|
type: "resource-search";
|
|
3200
3379
|
id: string;
|
|
3201
3380
|
title: string;
|
|
3202
3381
|
schemaGet: (api: TApiEndpoints) => TSchema;
|
|
3203
3382
|
schemaParams?: (api: TApiEndpoints) => TParamsSchema;
|
|
3383
|
+
/**
|
|
3384
|
+
* Optional schema for filter parameters (typically endpoint.requestParams).
|
|
3385
|
+
* When provided, a filter bar will be automatically generated.
|
|
3386
|
+
*/
|
|
3387
|
+
schemaFilter?: (api: TApiEndpoints) => TFilterSchema;
|
|
3204
3388
|
tableActions?: ActionLayout<TActionIds>;
|
|
3205
3389
|
rowActions?: ActionLayout<TActionIds>;
|
|
3206
3390
|
breadcrumbs?: BreadcrumbDefinition<TApiEndpoints, TParamsSchema>;
|
|
@@ -3211,7 +3395,7 @@ type InlineSearchViewConfig<TApiEndpoints, TActionIds extends string, TSchema ex
|
|
|
3211
3395
|
/**
|
|
3212
3396
|
* Union type for all inline view configs
|
|
3213
3397
|
*/
|
|
3214
|
-
type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateViewConfig<TApiEndpoints, TActionIds, any, any> | InlineViewViewConfig<TApiEndpoints, TActionIds, any, any> | InlineSearchViewConfig<TApiEndpoints, TActionIds, any, any>;
|
|
3398
|
+
type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateViewConfig<TApiEndpoints, TActionIds, any, any> | InlineViewViewConfig<TApiEndpoints, TActionIds, any, any> | InlineSearchViewConfig<TApiEndpoints, TActionIds, any, any, any>;
|
|
3215
3399
|
/**
|
|
3216
3400
|
* Inline lookup configuration for the resource builder.
|
|
3217
3401
|
* Uses a callback to search for lookup items.
|
|
@@ -3284,7 +3468,7 @@ declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TAction
|
|
|
3284
3468
|
* This is the final step that produces the ResourceDescriptor.
|
|
3285
3469
|
*/
|
|
3286
3470
|
withViews<TViews extends Record<string, InlineViewConfig<TApiEndpoints, keyof TActions & string>>>(views: TViews): ResourceDescriptor<{
|
|
3287
|
-
[K in keyof TViews]: TViews[K] extends InlineViewConfig<TApiEndpoints, any> ? TViews[K] extends InlineCreateViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema> ? ResourceCreateView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string> : TViews[K] extends InlineViewViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema> ? ResourceViewView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string> : TViews[K] extends InlineSearchViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema> ? ResourceSearchView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string> : never : never;
|
|
3471
|
+
[K in keyof TViews]: TViews[K] extends InlineViewConfig<TApiEndpoints, any> ? TViews[K] extends InlineCreateViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema> ? ResourceCreateView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string> : TViews[K] extends InlineViewViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema> ? ResourceViewView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string> : TViews[K] extends InlineSearchViewConfig<TApiEndpoints, any, infer TSchema, infer TParamsSchema, infer TFilterSchema> ? ResourceSearchView<TSchema, TApiEndpoints, TParamsSchema, keyof TActions & string, TFilterSchema> : never : never;
|
|
3288
3472
|
}, {
|
|
3289
3473
|
[K in keyof TActions]: TActions[K] extends InlineResourceActionConfig<TApiEndpoints> ? {
|
|
3290
3474
|
type: "resource";
|
|
@@ -3807,4 +3991,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
|
|
|
3807
3991
|
*/
|
|
3808
3992
|
declare function getNetworkErrorMessage(error: unknown): string;
|
|
3809
3993
|
|
|
3810
|
-
export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type FillEvent, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, type LookupSelectProps, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|
|
3994
|
+
export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type FillEvent, type FilterFieldDescriptor, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaFilterBar, type SchemaFilterBarProps, type SchemaFilterConfig, type SchemaFilterState, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFiltersOptions, type UseSchemaFiltersReturn, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, introspectSchemaForFilters, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|