import { ApiSearchParams, ListControlAreaProps } from '../../index';
import { StoryViewType } from '../../templates/IndexPage/stories/hooks';
import { StoryAdditionalActionsType } from '../../templates/IndexPage/stories/hooks/useStoryAdditionalActions';
import { StoryFiltersType } from '../../templates/IndexPage/stories/hooks/useStoryFilters';
import { StorySortType } from '../../templates/IndexPage/stories/hooks/useStorySort';
import { StoryWordSearchType } from '../../templates/IndexPage/stories/hooks/useStoryWordSearch';
import type { BaseResource } from '../../pages/types';
declare const _default: {
title: string;
component:
(props: ListControlAreaProps
) => JSX.Element;
parameters: {
layout: string;
msw: {
handlers: import("node_modules/msw/lib/core/handlers/HttpHandler").HttpHandler[][];
};
};
tags: string[];
};
export default _default;
export declare const Basic: {
render: (args: ListControlAreaProps) => JSX.Element;
args: {
hidden: false;
sortHidden: false;
views: {
systems: ({
id: string;
label: string;
params: {
status: string;
date?: undefined;
category?: undefined;
priority?: undefined;
};
default: true;
badge?: undefined;
} | {
id: string;
label: string;
params: {
status: string;
date: string;
category?: undefined;
priority?: undefined;
};
badge: number;
default?: undefined;
} | {
id: string;
label: string;
params: {
category: string[];
priority: string;
status?: undefined;
date?: undefined;
};
badge: number;
default?: undefined;
})[];
customs: ({
id: number;
label: string;
params: {
status: string;
is_important: string[];
date: string;
text: string;
priority?: undefined;
category?: undefined;
number?: undefined;
};
} | {
id: number;
label: string;
params: {
priority: string;
category: string[];
number: string;
status?: undefined;
is_important?: undefined;
date?: undefined;
text?: undefined;
};
})[];
handlers: {
onCreate: () => Promise<{
data: undefined;
error: undefined;
}>;
onUpdate: () => Promise<{
data: undefined;
error: undefined;
}>;
onDelete: () => Promise<{
data: undefined;
error: undefined;
}>;
};
isLoading: false;
isValidating: false;
isCreating: false;
};
filters: ({
type: "comboBox";
queryKey: string;
dataType: "static";
label: string;
choices: {
value: string;
label: string;
}[];
previewValue?: undefined;
multi?: undefined;
} | {
type: "checkBox";
queryKey: string;
label: string;
choices: {
label: string;
value: string;
}[];
dataType?: undefined;
previewValue?: undefined;
multi?: undefined;
} | {
type: "date";
queryKey: string;
label: string;
dataType?: undefined;
choices?: undefined;
previewValue?: undefined;
multi?: undefined;
} | {
type: "text";
queryKey: string;
label: string;
previewValue: ({ value }: {
value?: string | undefined;
}) => string;
dataType?: undefined;
choices?: undefined;
multi?: undefined;
} | {
type: "radioButton";
queryKey: string;
label: string;
choices: {
value: string;
label: string;
}[];
dataType?: undefined;
previewValue?: undefined;
multi?: undefined;
} | {
type: "number";
queryKey: string;
label: string;
dataType?: undefined;
choices?: undefined;
previewValue?: undefined;
multi?: undefined;
} | {
type: "comboBox";
queryKey: string;
dataType: "static";
label: string;
multi: true;
choices: {
value: string;
label: string;
}[];
previewValue?: undefined;
})[];
wordSearch: {
queryKey: string;
target: string[];
};
additionalActions: ({
type: "query";
queryKey: string;
layout: {
type: "segment";
choices: {
label: string;
value: string;
}[];
label?: undefined;
};
onClick?: undefined;
} | {
type: "operation";
onClick: import("@storybook/addon-actions").HandlerFunction;
layout: {
type: "button";
label: string;
choices?: undefined;
};
queryKey?: undefined;
})[];
};
};
export declare const UserStory: {
render: (args: any) => JSX.Element;
args: {
'IndexPageContainer.sort': StorySortType;
'views.isLoading': boolean;
'views.isValidating': boolean;
'wordSearch.incremental': boolean;
'wordSearch.forceOpen': boolean;
views: StoryViewType;
filters: StoryFiltersType;
wordSearch: StoryWordSearchType;
additionalActions: StoryAdditionalActionsType;
hidden: boolean;
sortHidden: boolean;
};
argTypes: {
'IndexPageContainer.sort': {
options: StorySortType[];
control: {
type: string;
};
};
};
};