@nubase/frontend 0.1.34 → 0.1.37
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.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +295 -42
- package/dist/index.d.ts +295 -42
- package/dist/index.js +13504 -12236
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12542 -11292
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +230 -38
- package/package.json +25 -25
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,9 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
|
15
15
|
import { ReactFormExtendedApi, AnyFieldApi } from '@tanstack/react-form';
|
|
16
16
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
17
17
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
18
|
+
import * as monaco from 'monaco-editor';
|
|
18
19
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
20
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
19
21
|
import { ZodError } from 'zod';
|
|
20
22
|
|
|
21
23
|
/**
|
|
@@ -178,6 +180,7 @@ type ModalConfig = {
|
|
|
178
180
|
type ModalInstance = {
|
|
179
181
|
id: string;
|
|
180
182
|
config: ModalConfig;
|
|
183
|
+
open: boolean;
|
|
181
184
|
};
|
|
182
185
|
|
|
183
186
|
type DialogProps = {
|
|
@@ -227,6 +230,7 @@ type ModalProps = {
|
|
|
227
230
|
showBackdrop?: boolean;
|
|
228
231
|
size?: ModalSize;
|
|
229
232
|
zIndex?: number;
|
|
233
|
+
onExited?: () => void;
|
|
230
234
|
};
|
|
231
235
|
declare const Modal: FC<ModalProps>;
|
|
232
236
|
|
|
@@ -286,16 +290,48 @@ interface UseComputedMetadataResult<TShape extends ObjectShape> {
|
|
|
286
290
|
declare function useComputedMetadata<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, formData: Partial<ObjectOutput<TShape>>, options?: UseComputedMetadataOptions): UseComputedMetadataResult<TShape>;
|
|
287
291
|
|
|
288
292
|
/**
|
|
289
|
-
*
|
|
290
|
-
*
|
|
293
|
+
* Returns a debounced copy of `value`: every change to `value` resets a
|
|
294
|
+
* timer, and the debounced result updates only after `delayMs` have
|
|
295
|
+
* elapsed without further changes.
|
|
296
|
+
*
|
|
297
|
+
* The component re-renders with `value` immediately (for live display)
|
|
298
|
+
* while the returned value lags, which is the usual pattern for
|
|
299
|
+
* "react-to-typing" APIs like search or query filters.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```ts
|
|
303
|
+
* const [query, setQuery] = useState("");
|
|
304
|
+
* const debouncedQuery = useDebouncedValue(query, 300);
|
|
305
|
+
* useEffect(() => { fetchResults(debouncedQuery); }, [debouncedQuery]);
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
declare function useDebouncedValue<T>(value: T, delayMs: number): T;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* "Sticky" value hook: returns `value` when it is defined, otherwise the
|
|
312
|
+
* most recent defined value this hook has seen. Useful when rendering
|
|
313
|
+
* data from a source that may transiently go `undefined` — e.g. a
|
|
314
|
+
* TanStack Query that errored out and dropped its `placeholderData` —
|
|
315
|
+
* and you'd rather show the last good snapshot than an empty state.
|
|
316
|
+
*
|
|
317
|
+
* @example
|
|
318
|
+
* ```ts
|
|
319
|
+
* const data = useLastDefined(response?.data) ?? [];
|
|
320
|
+
* // On error: keeps the last successful rows instead of flashing empty.
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
declare function useLastDefined<T>(value: T | undefined | null): T | undefined;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Returns the form layout attached to the schema via `withFormLayout`. If
|
|
327
|
+
* none is attached, a default layout is built with all fields in a single
|
|
328
|
+
* full-width group.
|
|
291
329
|
*/
|
|
292
|
-
declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape
|
|
330
|
+
declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
|
|
293
331
|
/**
|
|
294
|
-
* Hook
|
|
295
|
-
* returns that layout. Otherwise, returns a default layout with all fields in a single group
|
|
296
|
-
* with size 12 (full width).
|
|
332
|
+
* Hook wrapper around `getLayout` — returns the form layout for rendering.
|
|
297
333
|
*/
|
|
298
|
-
declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape
|
|
334
|
+
declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
|
|
299
335
|
|
|
300
336
|
interface HttpResponse<T = any> {
|
|
301
337
|
status: number;
|
|
@@ -464,6 +500,19 @@ declare function useResourceViewQuery<TData = any>(resourceId: string, view: {
|
|
|
464
500
|
}) => Promise<HttpResponse<TData>>;
|
|
465
501
|
}, params?: Record<string, any>, options?: Omit<UseQueryOptions<HttpResponse<TData>>, "queryKey" | "queryFn">): _tanstack_react_query.UseQueryResult<HttpResponse<TData>, Error>;
|
|
466
502
|
|
|
503
|
+
type Overlay = {
|
|
504
|
+
resource: string;
|
|
505
|
+
operation: string;
|
|
506
|
+
params: Record<string, string>;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
type UseOverlaysResult = {
|
|
510
|
+
overlay: Overlay | null;
|
|
511
|
+
openOverlay: (overlay: Overlay) => void;
|
|
512
|
+
closeOverlay: () => void;
|
|
513
|
+
};
|
|
514
|
+
declare function useOverlays(): UseOverlaysResult;
|
|
515
|
+
|
|
467
516
|
/**
|
|
468
517
|
* Describes how a schema field maps to a filter control.
|
|
469
518
|
*/
|
|
@@ -520,6 +569,14 @@ type UseSchemaFiltersReturn<TSchema extends ObjectSchema<any>> = {
|
|
|
520
569
|
setSearchValue: (value: string) => void;
|
|
521
570
|
/** Whether the schema supports global text search (has "q" field) */
|
|
522
571
|
hasTextSearch: boolean;
|
|
572
|
+
/** Whether the filter bar is in NQL mode (text DSL) or structured mode. */
|
|
573
|
+
nqlMode: boolean;
|
|
574
|
+
/** Toggle NQL mode on/off. Switching off clears the NQL value. */
|
|
575
|
+
setNqlMode: (enabled: boolean) => void;
|
|
576
|
+
/** Current NQL expression text (only meaningful when nqlMode is true). */
|
|
577
|
+
nqlValue: string;
|
|
578
|
+
/** Update the NQL expression text. */
|
|
579
|
+
setNqlValue: (value: string) => void;
|
|
523
580
|
};
|
|
524
581
|
/**
|
|
525
582
|
* Hook for managing schema-derived filter state.
|
|
@@ -552,13 +609,23 @@ declare function useSchemaFilters<TSchema extends ObjectSchema<any>>(schema: TSc
|
|
|
552
609
|
interface SchemaFormBodyProps {
|
|
553
610
|
form: SchemaFormConfiguration<any>;
|
|
554
611
|
className?: string;
|
|
555
|
-
layoutName?: string;
|
|
556
612
|
computedMetadata?: {
|
|
557
613
|
debounceMs?: number;
|
|
558
614
|
};
|
|
559
615
|
}
|
|
560
616
|
declare const SchemaFormBody: React__default.FC<SchemaFormBodyProps>;
|
|
561
617
|
|
|
618
|
+
type ModalFrameStructuredVariant = "card" | "drawer";
|
|
619
|
+
type ModalFrameStructuredProps = {
|
|
620
|
+
onClose?: () => void;
|
|
621
|
+
header?: ReactNode;
|
|
622
|
+
body?: ReactNode;
|
|
623
|
+
footer?: ReactNode;
|
|
624
|
+
className?: string;
|
|
625
|
+
variant?: ModalFrameStructuredVariant;
|
|
626
|
+
};
|
|
627
|
+
declare const ModalFrameStructured: FC<ModalFrameStructuredProps>;
|
|
628
|
+
|
|
562
629
|
type ModalFrameSchemaFormProps<TSchema extends ObjectSchema<any>> = {
|
|
563
630
|
onClose?: () => void;
|
|
564
631
|
title?: ReactNode;
|
|
@@ -567,17 +634,9 @@ type ModalFrameSchemaFormProps<TSchema extends ObjectSchema<any>> = {
|
|
|
567
634
|
submitText?: string;
|
|
568
635
|
renderCustomFooter?: (form: SchemaFormConfiguration<TSchema>) => ReactNode;
|
|
569
636
|
className?: string;
|
|
637
|
+
variant?: ModalFrameStructuredVariant;
|
|
570
638
|
};
|
|
571
|
-
declare const ModalFrameSchemaForm: <TSchema extends ObjectSchema<any>>({ onClose, title, form, schemaFormProps, submitText, renderCustomFooter, className, }: ModalFrameSchemaFormProps<TSchema>) => ReturnType<FC>;
|
|
572
|
-
|
|
573
|
-
type ModalFrameStructuredProps = {
|
|
574
|
-
onClose?: () => void;
|
|
575
|
-
header?: ReactNode;
|
|
576
|
-
body?: ReactNode;
|
|
577
|
-
footer?: ReactNode;
|
|
578
|
-
className?: string;
|
|
579
|
-
};
|
|
580
|
-
declare const ModalFrameStructured: FC<ModalFrameStructuredProps>;
|
|
639
|
+
declare const ModalFrameSchemaForm: <TSchema extends ObjectSchema<any>>({ onClose, title, form, schemaFormProps, submitText, renderCustomFooter, className, variant, }: ModalFrameSchemaFormProps<TSchema>) => ReturnType<FC>;
|
|
581
640
|
|
|
582
641
|
declare const ModalProvider: FC<{
|
|
583
642
|
children: ReactNode;
|
|
@@ -920,6 +979,33 @@ type ResourceCreateView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, T
|
|
|
920
979
|
context: NubaseContextData<TApiEndpoints, TParamsSchema>;
|
|
921
980
|
}) => Promise<HttpResponse<any>>;
|
|
922
981
|
};
|
|
982
|
+
/**
|
|
983
|
+
* Per-field handler for a virtual relationship field (declared on the
|
|
984
|
+
* schema via `nu.relation(...)`). The schema declares *what* the
|
|
985
|
+
* relationship is (target resource, row shape, label); this handler
|
|
986
|
+
* declares *how* to fetch the related rows at runtime.
|
|
987
|
+
*
|
|
988
|
+
* Lives on the view rather than the schema because it needs `context.http`,
|
|
989
|
+
* which is frontend-only — schemas live in `common/`.
|
|
990
|
+
*/
|
|
991
|
+
type RelationshipFieldHandler<TParent = any, TApiEndpoints = any, TRow = any> = {
|
|
992
|
+
/**
|
|
993
|
+
* Loads the related rows for a "searchable" relationship. Called whenever
|
|
994
|
+
* the (debounced) query changes. `parent` is the loaded record from the
|
|
995
|
+
* parent view's `onLoad`.
|
|
996
|
+
*/
|
|
997
|
+
onSearch: (args: {
|
|
998
|
+
parent: TParent;
|
|
999
|
+
query: string;
|
|
1000
|
+
context: NubaseContextData<TApiEndpoints>;
|
|
1001
|
+
}) => Promise<HttpResponse<TRow[]>>;
|
|
1002
|
+
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Map of field-name → handler for virtual relationship fields on the view's
|
|
1005
|
+
* schema. Each key must match a field declared via `nu.relation(...)` in
|
|
1006
|
+
* the schema shape.
|
|
1007
|
+
*/
|
|
1008
|
+
type FieldHandlers<TParent = any, TApiEndpoints = any> = Record<string, RelationshipFieldHandler<TParent, TApiEndpoints>>;
|
|
923
1009
|
type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ViewBase<TApiEndpoints, TParamsSchema, Infer<TSchema>> & {
|
|
924
1010
|
type: "resource-view";
|
|
925
1011
|
/**
|
|
@@ -947,6 +1033,12 @@ type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TAp
|
|
|
947
1033
|
data: Partial<Infer<TSchema>>;
|
|
948
1034
|
context: NubaseContextData<TApiEndpoints, TParamsSchema>;
|
|
949
1035
|
}) => Promise<HttpResponse<any>>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Optional handlers for virtual relationship fields declared on the
|
|
1038
|
+
* schema via `nu.relation(...)`. Keyed by field name. Each handler
|
|
1039
|
+
* provides the runtime fetch logic for its field.
|
|
1040
|
+
*/
|
|
1041
|
+
fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
|
|
950
1042
|
};
|
|
951
1043
|
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, TPatchSchema extends ObjectSchema<any> | undefined = undefined> = ViewBase<TApiEndpoints, TParamsSchema> & {
|
|
952
1044
|
type: "resource-search";
|
|
@@ -1898,6 +1990,14 @@ interface ButtonBarProps extends React__default.HTMLAttributes<HTMLDivElement>,
|
|
|
1898
1990
|
}
|
|
1899
1991
|
declare const ButtonBar: React__default.ForwardRefExoticComponent<ButtonBarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1900
1992
|
|
|
1993
|
+
type ButtonGroupProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Groups Buttons (or any interactive elements) into a single visually-joined
|
|
1996
|
+
* unit: inner borders collapse, outer corners stay rounded. Inspired by the
|
|
1997
|
+
* shadcn/ui button-group primitive.
|
|
1998
|
+
*/
|
|
1999
|
+
declare const ButtonGroup: React__default.ForwardRefExoticComponent<ButtonGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2000
|
+
|
|
1901
2001
|
declare const calloutVariants: (props?: ({
|
|
1902
2002
|
variant?: "info" | "danger" | null | undefined;
|
|
1903
2003
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -2543,7 +2643,6 @@ declare function ActionCellRendererGroup<R>(_props: RenderGroupCellProps<R> & {
|
|
|
2543
2643
|
declare function renderCheckbox({ onChange, indeterminate, ...props }: RenderCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
2544
2644
|
|
|
2545
2645
|
declare function renderToggleGroup<R, SR>(props: RenderGroupCellProps<R, SR>): react_jsx_runtime.JSX.Element;
|
|
2546
|
-
declare function ToggleGroup<R, SR>({ groupKey, isExpanded, tabIndex, toggleGroup, }: RenderGroupCellProps<R, SR>): react_jsx_runtime.JSX.Element;
|
|
2547
2646
|
|
|
2548
2647
|
declare function renderValue<R, SR>(props: RenderCellProps<R, SR>): React$1.ReactNode;
|
|
2549
2648
|
|
|
@@ -2821,6 +2920,18 @@ interface ThemeToggleProps {
|
|
|
2821
2920
|
}
|
|
2822
2921
|
declare const ThemeToggle: ({ className }: ThemeToggleProps) => react_jsx_runtime.JSX.Element;
|
|
2823
2922
|
|
|
2923
|
+
type DrawerProps = {
|
|
2924
|
+
open: boolean;
|
|
2925
|
+
onClose: () => void;
|
|
2926
|
+
content: ReactElement<BaseModalFrameProps>;
|
|
2927
|
+
/** Optional content rendered at the top of the drawer (e.g. a command bar). */
|
|
2928
|
+
header?: ReactNode;
|
|
2929
|
+
/** Fires after the exit animation completes and the drawer unmounts its surface. */
|
|
2930
|
+
onExited?: () => void;
|
|
2931
|
+
zIndex?: number;
|
|
2932
|
+
};
|
|
2933
|
+
declare const Drawer: FC<DrawerProps>;
|
|
2934
|
+
|
|
2824
2935
|
interface ToastProps {
|
|
2825
2936
|
toast: ToastData;
|
|
2826
2937
|
onClose: () => void;
|
|
@@ -2879,6 +2990,21 @@ interface SchemaFormButtonBarProps {
|
|
|
2879
2990
|
}
|
|
2880
2991
|
declare const SchemaFormButtonBar: React__default.FC<SchemaFormButtonBarProps>;
|
|
2881
2992
|
|
|
2993
|
+
declare const SchemaFormLabelSplitter: () => react_jsx_runtime.JSX.Element;
|
|
2994
|
+
|
|
2995
|
+
declare const DEFAULT_LABEL_WIDTH = 128;
|
|
2996
|
+
declare const MIN_LABEL_WIDTH = 60;
|
|
2997
|
+
declare const MAX_LABEL_WIDTH = 400;
|
|
2998
|
+
interface SchemaFormLayoutContextValue {
|
|
2999
|
+
labelWidth: number;
|
|
3000
|
+
setLabelWidth: (width: number) => void;
|
|
3001
|
+
}
|
|
3002
|
+
interface SchemaFormLayoutProviderProps {
|
|
3003
|
+
children: React__default.ReactNode;
|
|
3004
|
+
}
|
|
3005
|
+
declare const SchemaFormLayoutProvider: ({ children, }: SchemaFormLayoutProviderProps) => react_jsx_runtime.JSX.Element;
|
|
3006
|
+
declare const useSchemaFormLayout: () => SchemaFormLayoutContextValue;
|
|
3007
|
+
|
|
2882
3008
|
type SchemaFormValidationErrorsProps = {
|
|
2883
3009
|
form: SchemaFormConfiguration<any>;
|
|
2884
3010
|
className?: string;
|
|
@@ -2890,7 +3016,8 @@ type SchemaFormValidationErrorsProps = {
|
|
|
2890
3016
|
declare const SchemaFormValidationErrors: React__default.FC<SchemaFormValidationErrorsProps>;
|
|
2891
3017
|
|
|
2892
3018
|
declare const buttonVariants: (props?: ({
|
|
2893
|
-
variant?: "secondary" | "default" | "destructive" | null | undefined;
|
|
3019
|
+
variant?: "secondary" | "default" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
3020
|
+
size?: "sm" | "default" | "icon" | "icon-sm" | null | undefined;
|
|
2894
3021
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2895
3022
|
interface ButtonProps extends React__default.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
2896
3023
|
asChild?: boolean;
|
|
@@ -3047,9 +3174,9 @@ interface TextInputProps extends Omit<React__default.ComponentProps<"input">, "s
|
|
|
3047
3174
|
}
|
|
3048
3175
|
declare const TextInput: React__default.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
3049
3176
|
|
|
3050
|
-
declare const toggleVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
3177
|
+
declare const toggleVariants$1: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
3051
3178
|
declare const toggleThumbVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
3052
|
-
interface ToggleProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root>, VariantProps<typeof toggleVariants> {
|
|
3179
|
+
interface ToggleProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root>, VariantProps<typeof toggleVariants$1> {
|
|
3053
3180
|
hasError?: boolean;
|
|
3054
3181
|
}
|
|
3055
3182
|
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3175,15 +3302,6 @@ declare const flattenNavItems: (items: NavItem[], level?: number) => (NavItem &
|
|
|
3175
3302
|
})[];
|
|
3176
3303
|
declare const filterNavItems: (items: NavItem[], query: string) => NavItem[];
|
|
3177
3304
|
|
|
3178
|
-
type ControllableSearchableTreeProps = {
|
|
3179
|
-
items: MenuItem[];
|
|
3180
|
-
placeHolder: string;
|
|
3181
|
-
height?: "full" | number | string;
|
|
3182
|
-
selectedItemId: string;
|
|
3183
|
-
onSelectionChange: (itemId: string) => void;
|
|
3184
|
-
};
|
|
3185
|
-
declare const ControllableSearchableTree: React$1.ForwardRefExoticComponent<ControllableSearchableTreeProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
3186
|
-
|
|
3187
3305
|
type SearchableTreeNavigatorProps = {
|
|
3188
3306
|
items: MenuItem[];
|
|
3189
3307
|
placeHolder: string;
|
|
@@ -3212,10 +3330,6 @@ interface MenuItemComponentProps {
|
|
|
3212
3330
|
"data-testid"?: string;
|
|
3213
3331
|
}
|
|
3214
3332
|
declare const MenuItemComponent: ({ item, isSelected, onToggleExpanded, itemRef, "data-testid": testId, }: MenuItemComponentProps) => react_jsx_runtime.JSX.Element;
|
|
3215
|
-
/** @deprecated Use MenuItem from '../../menu/types' instead */
|
|
3216
|
-
type TreeNavigatorItem = MenuItem;
|
|
3217
|
-
/** @deprecated Use FlatMenuItem instead */
|
|
3218
|
-
type FlatItem = FlatMenuItem;
|
|
3219
3333
|
|
|
3220
3334
|
interface TreeNavigatorProps {
|
|
3221
3335
|
items: MenuItem[];
|
|
@@ -3226,17 +3340,53 @@ interface TreeNavigatorProps {
|
|
|
3226
3340
|
"data-testid"?: string;
|
|
3227
3341
|
}
|
|
3228
3342
|
declare const TreeNavigator: ({ items, searchInputRef, "data-testid": testId, }: TreeNavigatorProps) => react_jsx_runtime.JSX.Element;
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
/**
|
|
3232
|
-
|
|
3233
|
-
|
|
3343
|
+
|
|
3344
|
+
interface NqlEditorProps {
|
|
3345
|
+
/** The schema that defines which fields are queryable. */
|
|
3346
|
+
schema: ObjectSchema<any>;
|
|
3347
|
+
/** Current NQL source value. */
|
|
3348
|
+
value: string;
|
|
3349
|
+
/** Called on every content change. */
|
|
3350
|
+
onChange: (value: string) => void;
|
|
3351
|
+
/** Optional error message shown below the editor (e.g. from backend 400). */
|
|
3352
|
+
errorMessage?: string;
|
|
3353
|
+
/** Placeholder-like hint text when value is empty. */
|
|
3354
|
+
placeholder?: string;
|
|
3355
|
+
/** Extra classes for the outer container. */
|
|
3356
|
+
className?: string;
|
|
3357
|
+
}
|
|
3358
|
+
/**
|
|
3359
|
+
* Monaco-backed NQL input. Mounts Monaco imperatively (no `react-monaco-editor`)
|
|
3360
|
+
* so that `import * as monaco from "monaco-editor"` actually loads the full
|
|
3361
|
+
* editor bundle with the suggest and snippet controllers, and our schema-driven
|
|
3362
|
+
* completion provider is attached to the exact same Monaco instance the
|
|
3363
|
+
* editor is created from.
|
|
3364
|
+
*/
|
|
3365
|
+
declare function NqlEditor({ schema, value, onChange, errorMessage, placeholder, className, }: NqlEditorProps): react_jsx_runtime.JSX.Element;
|
|
3366
|
+
declare namespace NqlEditor {
|
|
3367
|
+
var displayName: string;
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
declare const NQL_LANGUAGE_ID = "nql";
|
|
3371
|
+
/**
|
|
3372
|
+
* Register the NQL language (tokens provider, bracket config) with Monaco.
|
|
3373
|
+
* Safe to call multiple times — only the first call has effect.
|
|
3374
|
+
*/
|
|
3375
|
+
declare function ensureNqlLanguageRegistered(): void;
|
|
3376
|
+
/**
|
|
3377
|
+
* Register a completion provider that offers schema-driven field
|
|
3378
|
+
* suggestions plus NQL keyword snippets. Returns a disposable; call
|
|
3379
|
+
* `.dispose()` when the consuming editor unmounts.
|
|
3380
|
+
*/
|
|
3381
|
+
declare function registerNqlCompletionProvider(schema: ObjectSchema<any>): monaco.IDisposable;
|
|
3234
3382
|
|
|
3235
3383
|
type NubaseAppProps = {
|
|
3236
3384
|
config: NubaseFrontendConfig;
|
|
3237
3385
|
};
|
|
3238
3386
|
declare const NubaseApp: FC<NubaseAppProps>;
|
|
3239
3387
|
|
|
3388
|
+
declare const OverlayStack: FC;
|
|
3389
|
+
|
|
3240
3390
|
/**
|
|
3241
3391
|
* Introspects an ObjectSchema and returns filter descriptors for each field.
|
|
3242
3392
|
*
|
|
@@ -3256,6 +3406,8 @@ declare const NubaseApp: FC<NubaseAppProps>;
|
|
|
3256
3406
|
declare function introspectSchemaForFilters<TSchema extends ObjectSchema<any>>(schema: TSchema, config?: SchemaFilterConfig): FilterFieldDescriptor[];
|
|
3257
3407
|
|
|
3258
3408
|
type SchemaFilterBarProps<TSchema extends ObjectSchema<any>> = {
|
|
3409
|
+
/** The schema the filter bar is driven by. Used for NQL field completion. */
|
|
3410
|
+
schema?: TSchema;
|
|
3259
3411
|
/** Filter field descriptors from introspection */
|
|
3260
3412
|
filterDescriptors: FilterFieldDescriptor[];
|
|
3261
3413
|
/** Current filter state */
|
|
@@ -3278,6 +3430,24 @@ type SchemaFilterBarProps<TSchema extends ObjectSchema<any>> = {
|
|
|
3278
3430
|
disabled?: boolean;
|
|
3279
3431
|
/** Additional className for the container */
|
|
3280
3432
|
className?: string;
|
|
3433
|
+
/**
|
|
3434
|
+
* NQL mode toggle state. When `true`, the structured filter controls are
|
|
3435
|
+
* hidden and an NQL text editor is shown in their place. When `false`
|
|
3436
|
+
* (default), the structured controls behave as before and the NQL input
|
|
3437
|
+
* is not rendered.
|
|
3438
|
+
*/
|
|
3439
|
+
nqlMode?: boolean;
|
|
3440
|
+
/** Called when the user flips the NQL/Filters toggle. */
|
|
3441
|
+
onNqlModeChange?: (enabled: boolean) => void;
|
|
3442
|
+
/** Current NQL expression text (only used when nqlMode is true). */
|
|
3443
|
+
nqlValue?: string;
|
|
3444
|
+
/** Called on every NQL text change. */
|
|
3445
|
+
onNqlValueChange?: (value: string) => void;
|
|
3446
|
+
/**
|
|
3447
|
+
* Inline error message shown under the NQL input. Typically populated
|
|
3448
|
+
* from a 400 response from the backend's NQL compiler.
|
|
3449
|
+
*/
|
|
3450
|
+
nqlErrorMessage?: string;
|
|
3281
3451
|
};
|
|
3282
3452
|
/**
|
|
3283
3453
|
* Renders a filter bar based on schema-derived filter descriptors.
|
|
@@ -3295,7 +3465,7 @@ type SchemaFilterBarProps<TSchema extends ObjectSchema<any>> = {
|
|
|
3295
3465
|
* />
|
|
3296
3466
|
* ```
|
|
3297
3467
|
*/
|
|
3298
|
-
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;
|
|
3468
|
+
declare function SchemaFilterBar<TSchema extends ObjectSchema<any>>({ schema, filterDescriptors, filterState, onFilterChange, searchValue, onSearchChange, searchPlaceholder, onClearFilters, showClearFilters, searchDebounceMs, disabled, className, nqlMode, onNqlModeChange, nqlValue, onNqlValueChange, nqlErrorMessage, }: SchemaFilterBarProps<TSchema>): react_jsx_runtime.JSX.Element | null;
|
|
3299
3469
|
declare namespace SchemaFilterBar {
|
|
3300
3470
|
var displayName: string;
|
|
3301
3471
|
}
|
|
@@ -3338,6 +3508,12 @@ type SearchFilterBarProps = {
|
|
|
3338
3508
|
searchWidth?: number | string;
|
|
3339
3509
|
/** Debounce delay in ms for search input (default: 300, set to 0 to disable) */
|
|
3340
3510
|
searchDebounceMs?: number;
|
|
3511
|
+
/**
|
|
3512
|
+
* Content rendered before the search input, inside the same flex-wrap
|
|
3513
|
+
* container so everything reflows as one row when the viewport narrows.
|
|
3514
|
+
* Useful for mode toggles that should sit at the leading edge.
|
|
3515
|
+
*/
|
|
3516
|
+
leading?: React$1.ReactNode;
|
|
3341
3517
|
/** Filter components to render between search and clear button */
|
|
3342
3518
|
children?: React$1.ReactNode;
|
|
3343
3519
|
/** Callback when clear filters is clicked */
|
|
@@ -3453,6 +3629,35 @@ type TextFilterProps = {
|
|
|
3453
3629
|
};
|
|
3454
3630
|
declare const TextFilter: React$1.ForwardRefExoticComponent<TextFilterProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3455
3631
|
|
|
3632
|
+
type SearchableTableProps<TRow extends Record<string, any>> = {
|
|
3633
|
+
/** Object schema describing the row shape. Used to derive columns from its `default` (or `table`) layout. */
|
|
3634
|
+
schema: ObjectSchema<any>;
|
|
3635
|
+
/** Rows to display. */
|
|
3636
|
+
rows: readonly TRow[];
|
|
3637
|
+
/** Current value of the search input. */
|
|
3638
|
+
searchValue: string;
|
|
3639
|
+
/** Called when the (debounced) search input changes. */
|
|
3640
|
+
onSearchChange: (value: string) => void;
|
|
3641
|
+
/** Whether the table is loading data. Shown as an overlay over the grid. */
|
|
3642
|
+
loading?: boolean;
|
|
3643
|
+
/** Called when a row is clicked. */
|
|
3644
|
+
onRowClick?: (row: TRow) => void;
|
|
3645
|
+
/** Placeholder for the search input. */
|
|
3646
|
+
searchPlaceholder?: string;
|
|
3647
|
+
/** Debounce delay for the search input in ms. Defaults to 200. */
|
|
3648
|
+
searchDebounceMs?: number;
|
|
3649
|
+
/** Additional className for the container. */
|
|
3650
|
+
className?: string;
|
|
3651
|
+
};
|
|
3652
|
+
/**
|
|
3653
|
+
* A general-purpose searchable table: a debounced text-search input above a
|
|
3654
|
+
* `DataGrid`. Columns are derived from the schema's table layout.
|
|
3655
|
+
*
|
|
3656
|
+
* Search is controlled by the parent — `onSearchChange` is called with the
|
|
3657
|
+
* (debounced) query string and the parent decides how to fetch / filter rows.
|
|
3658
|
+
*/
|
|
3659
|
+
declare const SearchableTable: <TRow extends Record<string, any>>({ schema, rows, searchValue, onSearchChange, loading, onRowClick, searchPlaceholder, searchDebounceMs, className, }: SearchableTableProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
3660
|
+
|
|
3456
3661
|
declare function Pagination({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
3457
3662
|
declare function PaginationContent({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
|
|
3458
3663
|
declare function PaginationItem({ ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
@@ -3494,6 +3699,16 @@ declare function TabsTrigger({ className, ...props }: TabsTriggerProps): react_j
|
|
|
3494
3699
|
type TabsContentProps = React$1.ComponentProps<typeof TabsPrimitive.Content>;
|
|
3495
3700
|
declare function TabsContent({ className, ...props }: TabsContentProps): react_jsx_runtime.JSX.Element;
|
|
3496
3701
|
|
|
3702
|
+
declare const toggleVariants: (props?: ({
|
|
3703
|
+
variant?: "default" | "outline" | null | undefined;
|
|
3704
|
+
size?: "sm" | "lg" | "default" | null | undefined;
|
|
3705
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3706
|
+
|
|
3707
|
+
type ToggleGroupProps = React$1.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
3708
|
+
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
3709
|
+
type ToggleGroupItemProps = React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
3710
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
3711
|
+
|
|
3497
3712
|
interface SearchBarProps extends Omit<React__default.ComponentProps<"button">, "onClick"> {
|
|
3498
3713
|
context: NubaseContextData;
|
|
3499
3714
|
placeholder?: string;
|
|
@@ -3549,6 +3764,20 @@ interface UserMenuProps {
|
|
|
3549
3764
|
*/
|
|
3550
3765
|
declare function UserMenu({ name, email, onSignOut, className }: UserMenuProps): react_jsx_runtime.JSX.Element;
|
|
3551
3766
|
|
|
3767
|
+
type ResourceViewHeaderProps = {
|
|
3768
|
+
title: string;
|
|
3769
|
+
breadcrumbs?: BreadcrumbDefinition;
|
|
3770
|
+
context: NubaseContextData;
|
|
3771
|
+
params?: Record<string, any>;
|
|
3772
|
+
data?: unknown;
|
|
3773
|
+
};
|
|
3774
|
+
/**
|
|
3775
|
+
* Single source of truth for a resource view's header (breadcrumbs + title).
|
|
3776
|
+
* Rendered at the top of every resource view body so the full-page, overlay
|
|
3777
|
+
* drawer, and modal variants all look identical.
|
|
3778
|
+
*/
|
|
3779
|
+
declare const ResourceViewHeader: FC<ResourceViewHeaderProps>;
|
|
3780
|
+
|
|
3552
3781
|
type ModalViewRendererProps = {
|
|
3553
3782
|
view: View;
|
|
3554
3783
|
context: NubaseContextData;
|
|
@@ -3557,6 +3786,7 @@ type ModalViewRendererProps = {
|
|
|
3557
3786
|
onClose?: () => void;
|
|
3558
3787
|
onRowClick?: (row: any) => void;
|
|
3559
3788
|
onError?: (error: Error) => void;
|
|
3789
|
+
frameVariant?: ModalFrameStructuredVariant;
|
|
3560
3790
|
};
|
|
3561
3791
|
declare const ModalViewRenderer: FC<ModalViewRendererProps>;
|
|
3562
3792
|
|
|
@@ -3567,7 +3797,13 @@ type ResourceCreateViewModalRendererProps = {
|
|
|
3567
3797
|
onClose?: () => void;
|
|
3568
3798
|
onCreate?: (data: ObjectOutput<any>) => void;
|
|
3569
3799
|
onError?: (error: Error) => void;
|
|
3800
|
+
frameVariant?: ModalFrameStructuredVariant;
|
|
3570
3801
|
};
|
|
3802
|
+
/**
|
|
3803
|
+
* Thin wrapper that renders the shared ResourceCreateViewRenderer inside a
|
|
3804
|
+
* ModalFrameStructured. The renderer provides its own header (title +
|
|
3805
|
+
* breadcrumbs) so this wrapper only supplies chrome.
|
|
3806
|
+
*/
|
|
3571
3807
|
declare const ResourceCreateViewModalRenderer: FC<ResourceCreateViewModalRendererProps>;
|
|
3572
3808
|
|
|
3573
3809
|
type ResourceSearchViewModalRendererProps = {
|
|
@@ -3578,7 +3814,13 @@ type ResourceSearchViewModalRendererProps = {
|
|
|
3578
3814
|
onClose?: () => void;
|
|
3579
3815
|
onRowClick?: (row: any) => void;
|
|
3580
3816
|
onError?: (error: Error) => void;
|
|
3817
|
+
frameVariant?: ModalFrameStructuredVariant;
|
|
3581
3818
|
};
|
|
3819
|
+
/**
|
|
3820
|
+
* Thin wrapper that renders the shared ResourceSearchViewRenderer inside a
|
|
3821
|
+
* ModalFrameStructured. The renderer provides its own header (title +
|
|
3822
|
+
* breadcrumbs) so this wrapper only supplies chrome.
|
|
3823
|
+
*/
|
|
3582
3824
|
declare const ResourceSearchViewModalRenderer: FC<ResourceSearchViewModalRendererProps>;
|
|
3583
3825
|
|
|
3584
3826
|
type ResourceViewViewModalRendererProps = {
|
|
@@ -3589,7 +3831,13 @@ type ResourceViewViewModalRendererProps = {
|
|
|
3589
3831
|
onClose?: () => void;
|
|
3590
3832
|
onPatch?: (data: ObjectOutput<any>) => void;
|
|
3591
3833
|
onError?: (error: Error) => void;
|
|
3834
|
+
frameVariant?: ModalFrameStructuredVariant;
|
|
3592
3835
|
};
|
|
3836
|
+
/**
|
|
3837
|
+
* Thin wrapper that renders the shared ResourceViewViewRenderer inside a
|
|
3838
|
+
* ModalFrameStructured. The renderer provides its own header (title +
|
|
3839
|
+
* breadcrumbs) so this wrapper only supplies chrome.
|
|
3840
|
+
*/
|
|
3593
3841
|
declare const ResourceViewViewModalRenderer: FC<ResourceViewViewModalRendererProps>;
|
|
3594
3842
|
|
|
3595
3843
|
type ResourceCreateViewRendererProps = {
|
|
@@ -3786,6 +4034,11 @@ type InlineViewViewConfig<TApiEndpoints, TActionIds extends string, TSchema exte
|
|
|
3786
4034
|
data: Partial<Infer<TSchema>>;
|
|
3787
4035
|
context: NubaseContextData<TApiEndpoints, TParamsSchema>;
|
|
3788
4036
|
}) => Promise<HttpResponse<any>>;
|
|
4037
|
+
/**
|
|
4038
|
+
* Optional handlers for virtual relationship fields declared on the
|
|
4039
|
+
* schema via `nu.relation(...)`. Keyed by field name.
|
|
4040
|
+
*/
|
|
4041
|
+
fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
|
|
3789
4042
|
};
|
|
3790
4043
|
/**
|
|
3791
4044
|
* Inline view definition for search views
|
|
@@ -4423,4 +4676,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
|
|
|
4423
4676
|
*/
|
|
4424
4677
|
declare function getNetworkErrorMessage(error: unknown): string;
|
|
4425
4678
|
|
|
4426
|
-
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, BooleanCellEditRenderer, 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 CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, 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, type CreatePatchableColumnOptions, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, 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 ErrorPayload, type EventListener, type EventSource, 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, NAVIGATE_COLUMN_KEY, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, 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 ResourceEventPayload, 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, StringCellEditRenderer, 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, Toggle, ToggleGroup, type ToggleProps, 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, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, eventManager, 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, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants, 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 };
|
|
4679
|
+
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, BooleanCellEditRenderer, 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, ButtonGroup, type ButtonGroupProps, 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 CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, 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, type CreatePatchableColumnOptions, DEFAULT_LABEL_WIDTH, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, Drawer, type DrawerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type ErrorPayload, type EventListener, type EventSource, type FieldHandlers, type FillEvent, type FilterFieldDescriptor, 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, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MAX_LABEL_WIDTH, MIN_LABEL_WIDTH, 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, NAVIGATE_COLUMN_KEY, NQL_LANGUAGE_ID, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NqlEditor, type NqlEditorProps, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, OverlayStack, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RelationshipFieldHandler, 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 ResourceEventPayload, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, ResourceViewHeader, type ResourceViewHeaderProps, 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, SchemaFormLabelSplitter, type SchemaFormLayoutContextValue, SchemaFormLayoutProvider, type SchemaFormLayoutProviderProps, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTable, type SearchableTableProps, 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, StringCellEditRenderer, 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, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseOverlaysResult, 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, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, ensureNqlLanguageRegistered, eventManager, 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, registerNqlCompletionProvider, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants$1 as toggleVariants, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDebouncedValue, useDialog, useHeaderRowSelection, useLastDefined, useLayout, useModal, useNubaseMutation, useNubaseQuery, useOverlays, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useSchemaFormLayout, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|