@zealicsolutions/web-ui 1.0.99-beta.54 → 1.0.99-beta.56
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/cjs/components/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/components/Input/helpers.d.ts +3 -3
- package/dist/cjs/index.js +1582 -1582
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
- package/dist/cjs/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
- package/dist/cjs/organisms/DataGrid/DataGridOrganism.d.ts +1 -1
- package/dist/cjs/organisms/DataGrid/ListView/ListView.d.ts +21 -0
- package/dist/cjs/organisms/DataGrid/ListView/hooks/useListColumns.d.ts +10 -0
- package/dist/cjs/organisms/DataGrid/ListView/hooks/useListItemTemplate.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/ListView/stories/ListView.stories.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/components/Custom.d.ts +25 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/components/FourItems.d.ts +24 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/components/VisitCard.d.ts +9 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/components/VisitCardCheck.d.ts +9 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/registry.d.ts +15 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/stories/Custom.stories.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/stories/VisitCard.stories.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/stories/VisitCardCheck.stories.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/types.d.ts +46 -0
- package/dist/cjs/organisms/DataGrid/ListView/templates/utils.d.ts +20 -0
- package/dist/cjs/organisms/DataGrid/TableView/TableView.d.ts +20 -0
- package/dist/{esm/organisms/DataGrid/hooks/useDataGridColumns.d.ts → cjs/organisms/DataGrid/TableView/hooks/useTableColumns.d.ts} +5 -3
- package/dist/cjs/organisms/DataGrid/TableView/stories/TableView.stories.d.ts +6 -0
- package/dist/cjs/organisms/DataGrid/Toolbar/Toolbar.d.ts +25 -0
- package/dist/cjs/organisms/DataGrid/Toolbar/components/DensityToggle.d.ts +16 -0
- package/dist/cjs/organisms/DataGrid/Toolbar/components/ExportCsvButton.d.ts +18 -0
- package/dist/cjs/organisms/DataGrid/Toolbar/components/QuickFilters.d.ts +25 -0
- package/dist/cjs/organisms/DataGrid/Toolbar/components/SearchControl.d.ts +19 -0
- package/dist/cjs/organisms/DataGrid/config/descriptors.d.ts +36 -1
- package/dist/cjs/organisms/DataGrid/config/toolDescriptor/view.d.ts +36 -0
- package/dist/cjs/organisms/DataGrid/config/types.d.ts +1 -1
- package/dist/cjs/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +5 -2
- package/dist/cjs/organisms/DataGrid/index.d.ts +1 -1
- package/dist/cjs/organisms/DataGrid/queries/useDataGridRows.d.ts +1 -1
- package/dist/cjs/organisms/DataGrid/stories/DataGridOrganism.list.stories.d.ts +7 -0
- package/dist/cjs/organisms/DataGrid/stories/DataGridOrganism.stories.d.ts +6 -0
- package/dist/{esm/organisms/DataGrid → cjs/organisms/DataGrid/types}/hostTypes.d.ts +1 -1
- package/dist/cjs/organisms/DataGrid/{types.d.ts → types/types.d.ts} +24 -0
- package/dist/cjs/organisms/index.d.ts +3 -1
- package/dist/cjs/organisms/organismConfigurators.d.ts +3 -2
- package/dist/esm/components/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/components/Buttons/TextButton.js +1 -1
- package/dist/esm/components/Buttons/TextButton.js.map +1 -1
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Input/helpers.d.ts +3 -3
- package/dist/esm/components/Input/helpers.js +1 -1
- package/dist/esm/components/Select/styles.js +1 -1
- package/dist/esm/components/Select/styles.js.map +1 -1
- package/dist/esm/containers/FormStepContainer.js +1 -1
- package/dist/esm/containers/FormStepContainer.js.map +1 -1
- package/dist/esm/contexts/ApiContext/ApiContext.js.map +1 -1
- package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js +2 -0
- package/dist/esm/contexts/ApiContext/globalQueries/form/useSubmitForm.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Button/Button.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
- package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js +2 -0
- package/dist/esm/node_modules/date-fns/eachDayOfInterval.mjs.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.d.ts +4 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/CalendarDataGridOrganism.stories.d.ts +5 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.d.ts +412 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/descriptors.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.d.ts +27 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/config/toolDescriptor/timeline.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/index.d.ts +4 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.d.ts +27 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/queries/useCalendarDataGridData.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.d.ts +10 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/DayCell.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.d.ts +9 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/renderers/ResourceCell.js.map +1 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/types.d.ts +94 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.d.ts +47 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js +2 -0
- package/dist/esm/organisms/CalendarDataGridOrganism/useCalendarDataGridOrganism.js.map +1 -0
- package/dist/esm/organisms/DataGrid/DataGridOrganism.d.ts +1 -1
- package/dist/esm/organisms/DataGrid/DataGridOrganism.js +1 -1
- package/dist/esm/organisms/DataGrid/DataGridOrganism.js.map +1 -1
- package/dist/esm/organisms/DataGrid/ListView/ListView.d.ts +21 -0
- package/dist/esm/organisms/DataGrid/ListView/ListView.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/ListView.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListColumns.d.ts +10 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListColumns.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListColumns.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListItemTemplate.d.ts +6 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListItemTemplate.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/hooks/useListItemTemplate.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/stories/ListView.stories.d.ts +7 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/Custom.d.ts +25 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/Custom.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/Custom.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/FourItems.d.ts +24 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/FourItems.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/FourItems.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCard.d.ts +9 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCard.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCard.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCardCheck.d.ts +9 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCardCheck.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/components/VisitCardCheck.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/registry.d.ts +15 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/registry.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/registry.js.map +1 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/stories/Custom.stories.d.ts +7 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/stories/VisitCard.stories.d.ts +6 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/stories/VisitCardCheck.stories.d.ts +6 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/types.d.ts +46 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/utils.d.ts +20 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/utils.js +2 -0
- package/dist/esm/organisms/DataGrid/ListView/templates/utils.js.map +1 -0
- package/dist/esm/organisms/DataGrid/TableView/TableView.d.ts +20 -0
- package/dist/esm/organisms/DataGrid/TableView/TableView.js +2 -0
- package/dist/esm/organisms/DataGrid/TableView/TableView.js.map +1 -0
- package/dist/{cjs/organisms/DataGrid/hooks/useDataGridColumns.d.ts → esm/organisms/DataGrid/TableView/hooks/useTableColumns.d.ts} +5 -3
- package/dist/esm/organisms/DataGrid/TableView/hooks/useTableColumns.js +2 -0
- package/dist/esm/organisms/DataGrid/TableView/hooks/useTableColumns.js.map +1 -0
- package/dist/esm/organisms/DataGrid/TableView/stories/TableView.stories.d.ts +6 -0
- package/dist/esm/organisms/DataGrid/Toolbar/Toolbar.d.ts +25 -0
- package/dist/esm/organisms/DataGrid/Toolbar/Toolbar.js +2 -0
- package/dist/esm/organisms/DataGrid/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/DensityToggle.d.ts +16 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/DensityToggle.js +2 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/DensityToggle.js.map +1 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/ExportCsvButton.d.ts +18 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/ExportCsvButton.js +2 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/ExportCsvButton.js.map +1 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/QuickFilters.d.ts +25 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/QuickFilters.js +2 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/QuickFilters.js.map +1 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/SearchControl.d.ts +19 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/SearchControl.js +2 -0
- package/dist/esm/organisms/DataGrid/Toolbar/components/SearchControl.js.map +1 -0
- package/dist/esm/organisms/DataGrid/config/descriptors.d.ts +36 -1
- package/dist/esm/organisms/DataGrid/config/descriptors.js +1 -1
- package/dist/esm/organisms/DataGrid/config/descriptors.js.map +1 -1
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.d.ts +36 -0
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js +2 -0
- package/dist/esm/organisms/DataGrid/config/toolDescriptor/view.js.map +1 -0
- package/dist/esm/organisms/DataGrid/config/types.d.ts +1 -1
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.d.ts +5 -2
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js +1 -1
- package/dist/esm/organisms/DataGrid/hooks/useDataGridOrganism.js.map +1 -1
- package/dist/esm/organisms/DataGrid/index.d.ts +1 -1
- package/dist/esm/organisms/DataGrid/queries/useDataGridRows.d.ts +1 -1
- package/dist/esm/organisms/DataGrid/queries/useDataGridRows.js.map +1 -1
- package/dist/esm/organisms/DataGrid/stories/DataGridOrganism.list.stories.d.ts +7 -0
- package/dist/esm/organisms/DataGrid/stories/DataGridOrganism.stories.d.ts +6 -0
- package/dist/{cjs/organisms/DataGrid → esm/organisms/DataGrid/types}/hostTypes.d.ts +1 -1
- package/dist/esm/organisms/DataGrid/{types.d.ts → types/types.d.ts} +24 -0
- package/dist/esm/organisms/index.d.ts +3 -1
- package/dist/esm/organisms/organismConfigurators.d.ts +3 -2
- package/dist/esm/organisms/organismConfigurators.js +1 -1
- package/dist/esm/organisms/organismConfigurators.js.map +1 -1
- package/dist/index.d.ts +601 -4
- package/package.json +1 -1
- package/dist/cjs/organisms/DataGrid/DataGridOrganism.actions.stories.d.ts +0 -5
- package/dist/cjs/organisms/DataGrid/DataGridOrganism.stories.d.ts +0 -9
- package/dist/esm/organisms/DataGrid/DataGridOrganism.actions.stories.d.ts +0 -5
- package/dist/esm/organisms/DataGrid/DataGridOrganism.stories.d.ts +0 -9
- package/dist/esm/organisms/DataGrid/hooks/useDataGridColumns.js +0 -2
- package/dist/esm/organisms/DataGrid/hooks/useDataGridColumns.js.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
rows: Array<Record<string, unknown>>;
|
|
5
|
+
total: number;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error?: Error | null;
|
|
8
|
+
page: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
density: 'compact' | 'comfortable';
|
|
11
|
+
filterModel: any;
|
|
12
|
+
listViewColumn: any;
|
|
13
|
+
hiddenColumns: GridColDef[];
|
|
14
|
+
columnsKey: string;
|
|
15
|
+
apiRef: any;
|
|
16
|
+
setPage: (p: number) => void;
|
|
17
|
+
setPageSize: (s: number) => void;
|
|
18
|
+
gridStyles: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
export declare const ListView: FC<Props>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GridColDef, GridListViewColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
export type UseListColumnsParams = {
|
|
3
|
+
organism?: any;
|
|
4
|
+
density: 'compact' | 'comfortable';
|
|
5
|
+
};
|
|
6
|
+
export declare const useListColumns: ({ organism, density }: UseListColumnsParams) => {
|
|
7
|
+
hiddenColumns: GridColDef[];
|
|
8
|
+
listViewColumn: GridListViewColDef;
|
|
9
|
+
columnsKey: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GridColDef, GridListViewColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { Density } from '../templates/types';
|
|
3
|
+
export declare const useListItemTemplate: (params: {
|
|
4
|
+
organism?: any;
|
|
5
|
+
density: Density;
|
|
6
|
+
}, hiddenColumns: GridColDef[]) => GridListViewColDef;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ListView } from '../ListView';
|
|
3
|
+
declare const meta: Meta<typeof ListView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ListView>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const VisitCheckRow: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { ColumnCfg } from '../types';
|
|
3
|
+
type Layout = {
|
|
4
|
+
gap: number;
|
|
5
|
+
verticalGap: number;
|
|
6
|
+
trailingDirection: 'horizontal' | 'vertical';
|
|
7
|
+
templateColumns?: string;
|
|
8
|
+
item?: {
|
|
9
|
+
padding?: number;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderRadius?: number;
|
|
13
|
+
boxShadow?: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
type Props = {
|
|
17
|
+
params: GridRenderCellParams;
|
|
18
|
+
cfgCols: ColumnCfg[];
|
|
19
|
+
columns: Array<{
|
|
20
|
+
field: string;
|
|
21
|
+
}>;
|
|
22
|
+
layout: Layout;
|
|
23
|
+
};
|
|
24
|
+
export declare const Custom: ({ params, cfgCols, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { ColumnCfg } from '../types';
|
|
3
|
+
type Layout = {
|
|
4
|
+
gap: number;
|
|
5
|
+
verticalGap: number;
|
|
6
|
+
trailingDirection: 'horizontal' | 'vertical';
|
|
7
|
+
item?: {
|
|
8
|
+
padding?: number;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
borderRadius?: number;
|
|
12
|
+
boxShadow?: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
type Props = {
|
|
16
|
+
params: GridRenderCellParams;
|
|
17
|
+
cfgCols: ColumnCfg[];
|
|
18
|
+
columns: Array<{
|
|
19
|
+
field: string;
|
|
20
|
+
}>;
|
|
21
|
+
layout: Layout;
|
|
22
|
+
};
|
|
23
|
+
export declare const FourItems: ({ params, cfgCols, layout }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
type Props = {
|
|
3
|
+
params: GridRenderCellParams;
|
|
4
|
+
columns: Array<{
|
|
5
|
+
field: string;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
export declare const VisitCard: ({ params, columns }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { GridRenderCellParams } from '@mui/x-data-grid-pro';
|
|
2
|
+
type Props = {
|
|
3
|
+
params: GridRenderCellParams;
|
|
4
|
+
columns: Array<{
|
|
5
|
+
field: string;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
export declare const VisitCardCheck: ({ params, columns }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { GridColDef, GridListViewColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { ColumnCfg, ListTemplateId, TemplateAreas } from './types';
|
|
3
|
+
export declare const buildTemplateRenderer: (templateType: ListTemplateId, _areas: TemplateAreas, _layout: {
|
|
4
|
+
gap: number;
|
|
5
|
+
verticalGap: number;
|
|
6
|
+
trailingDirection: 'horizontal' | 'vertical';
|
|
7
|
+
templateColumns?: string;
|
|
8
|
+
item?: {
|
|
9
|
+
padding?: number;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
borderColor?: string;
|
|
12
|
+
borderRadius?: number;
|
|
13
|
+
boxShadow?: string;
|
|
14
|
+
};
|
|
15
|
+
}, cfgCols: ColumnCfg[], hiddenColumns: GridColDef[]) => GridListViewColDef | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ListView } from '../../ListView';
|
|
3
|
+
declare const meta: Meta<typeof ListView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ListView>;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export declare const FancyCard: Story;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export type Density = 'compact' | 'comfortable';
|
|
2
|
+
export type ColumnCfg = {
|
|
3
|
+
id: string;
|
|
4
|
+
kind: 'data' | 'component';
|
|
5
|
+
headerName: string;
|
|
6
|
+
field?: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
renderer?: string;
|
|
9
|
+
rendererProps?: Record<string, unknown>;
|
|
10
|
+
componentRenderer?: string;
|
|
11
|
+
componentProps?: Record<string, unknown>;
|
|
12
|
+
sortable?: boolean;
|
|
13
|
+
filterable?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ListTemplateId = 'compact' | 'mediaLeft' | 'titleSubtitleMeta' | 'twoColumn' | 'custom' | 'visitCard' | 'visitCardCheck' | 'fourItems';
|
|
16
|
+
export type TemplateAreas = {
|
|
17
|
+
primary?: ColumnCfg | undefined;
|
|
18
|
+
secondary?: ColumnCfg | undefined;
|
|
19
|
+
meta?: ColumnCfg[];
|
|
20
|
+
trailing?: ColumnCfg[];
|
|
21
|
+
topLeft?: ColumnCfg | undefined;
|
|
22
|
+
topRight?: ColumnCfg | undefined;
|
|
23
|
+
bottomLeft?: ColumnCfg | undefined;
|
|
24
|
+
bottomRight?: ColumnCfg | undefined;
|
|
25
|
+
};
|
|
26
|
+
export type Mapping = {
|
|
27
|
+
primaryFieldId?: string;
|
|
28
|
+
secondaryFieldId?: string;
|
|
29
|
+
metaFieldIds?: string[];
|
|
30
|
+
trailingComponentIds?: string[];
|
|
31
|
+
topLeftFieldId?: string;
|
|
32
|
+
topRightFieldId?: string;
|
|
33
|
+
bottomLeftFieldId?: string;
|
|
34
|
+
bottomRightFieldId?: string;
|
|
35
|
+
};
|
|
36
|
+
export type LayoutCfg = {
|
|
37
|
+
templateColumns?: string;
|
|
38
|
+
gap?: number;
|
|
39
|
+
verticalGap?: number;
|
|
40
|
+
trailingDirection?: 'horizontal' | 'vertical';
|
|
41
|
+
itemPadding?: number;
|
|
42
|
+
itemBackgroundColor?: string;
|
|
43
|
+
itemBorderColor?: string;
|
|
44
|
+
itemBorderRadius?: number;
|
|
45
|
+
itemBoxShadow?: string;
|
|
46
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { ColumnCfg, LayoutCfg, ListTemplateId, Mapping, TemplateAreas } from './types';
|
|
3
|
+
export declare const pickById: (cols: ColumnCfg[], id?: string) => ColumnCfg | undefined;
|
|
4
|
+
export declare const getTemplateAreas: (templateType: ListTemplateId, cfgCols: ColumnCfg[], mapping: Mapping) => TemplateAreas;
|
|
5
|
+
export declare const getTemplateLayout: (templateType: ListTemplateId, layoutCfg: LayoutCfg) => {
|
|
6
|
+
gap: number;
|
|
7
|
+
verticalGap: number;
|
|
8
|
+
trailingDirection: 'horizontal' | 'vertical';
|
|
9
|
+
templateColumns?: string | undefined;
|
|
10
|
+
item?: {
|
|
11
|
+
padding?: number | undefined;
|
|
12
|
+
backgroundColor?: string | undefined;
|
|
13
|
+
borderColor?: string | undefined;
|
|
14
|
+
borderRadius?: number | undefined;
|
|
15
|
+
boxShadow?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const hiddenToSimpleColumns: (hiddenColumns: GridColDef[]) => Array<{
|
|
19
|
+
field: string;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
rows: Array<Record<string, unknown>>;
|
|
5
|
+
total: number;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error?: Error | null;
|
|
8
|
+
page: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
density: 'compact' | 'comfortable';
|
|
11
|
+
filterModel: any;
|
|
12
|
+
columns: GridColDef[];
|
|
13
|
+
columnsKey: string;
|
|
14
|
+
apiRef: any;
|
|
15
|
+
setPage: (p: number) => void;
|
|
16
|
+
setPageSize: (s: number) => void;
|
|
17
|
+
gridStyles: Record<string, unknown>;
|
|
18
|
+
};
|
|
19
|
+
export declare const TableView: FC<Props>;
|
|
20
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridColDef } from '@mui/x-data-grid-pro';
|
|
2
|
-
type
|
|
2
|
+
export type UseTableColumnsParams = {
|
|
3
3
|
organism?: any;
|
|
4
4
|
density: 'compact' | 'comfortable';
|
|
5
5
|
onAction?: (payload: {
|
|
@@ -10,5 +10,7 @@ type Params = {
|
|
|
10
10
|
current?: any;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
13
|
+
export declare const useTableColumns: ({ organism, density, onAction, apiRef, }: UseTableColumnsParams) => {
|
|
14
|
+
columns: GridColDef[];
|
|
15
|
+
columnsKey: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { QuickFilterConfig } from './components/QuickFilters';
|
|
3
|
+
type Density = 'compact' | 'comfortable';
|
|
4
|
+
type Props = {
|
|
5
|
+
cfgRoot: any;
|
|
6
|
+
densityToggle: boolean;
|
|
7
|
+
quickFiltersCfg: Array<QuickFilterConfig>;
|
|
8
|
+
showSearchControl: boolean;
|
|
9
|
+
showExport: boolean;
|
|
10
|
+
search: string;
|
|
11
|
+
showSearch: boolean;
|
|
12
|
+
density: Density;
|
|
13
|
+
apiRef: {
|
|
14
|
+
current?: {
|
|
15
|
+
exportDataAsCsv?: () => void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
quickFilters: Record<string, string | string[]>;
|
|
19
|
+
setQuickFilter: (field: string, value: string) => void;
|
|
20
|
+
setDensity: (d: Density) => void;
|
|
21
|
+
setSearch: (s: string) => void;
|
|
22
|
+
setShowSearch: (v: boolean) => void;
|
|
23
|
+
};
|
|
24
|
+
export declare const Toolbar: FC<Props>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export type Density = 'compact' | 'comfortable';
|
|
3
|
+
export type DensityStyles = {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
borderRadius?: number;
|
|
6
|
+
selectedTextColor?: string;
|
|
7
|
+
selectedBackgroundColor?: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
controlHeight: number;
|
|
11
|
+
density: Density;
|
|
12
|
+
styles?: DensityStyles;
|
|
13
|
+
setDensity: (d: Density) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const DensityToggle: FC<Props>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export type ExportButtonStyles = {
|
|
3
|
+
borderRadius?: number;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
borderColor?: string;
|
|
6
|
+
iconColor?: string;
|
|
7
|
+
};
|
|
8
|
+
type Props = {
|
|
9
|
+
controlHeight: number;
|
|
10
|
+
styles?: ExportButtonStyles;
|
|
11
|
+
apiRef: {
|
|
12
|
+
current?: {
|
|
13
|
+
exportDataAsCsv?: () => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare const ExportCsvButton: FC<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export type Density = 'compact' | 'comfortable';
|
|
3
|
+
export type QuickFilterConfig = {
|
|
4
|
+
label: string;
|
|
5
|
+
columnField: string;
|
|
6
|
+
value: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
export type QuickFiltersStyles = {
|
|
10
|
+
chipGap?: number;
|
|
11
|
+
chipBackgroundColor?: string;
|
|
12
|
+
selectedChipColor?: string;
|
|
13
|
+
chipTextColor?: string;
|
|
14
|
+
chipBorderColor?: string;
|
|
15
|
+
chipBorderRadius?: number;
|
|
16
|
+
};
|
|
17
|
+
type Props = {
|
|
18
|
+
controlHeight: number;
|
|
19
|
+
quickFiltersCfg: QuickFilterConfig[];
|
|
20
|
+
quickFilters: Record<string, string | string[]>;
|
|
21
|
+
styles?: QuickFiltersStyles;
|
|
22
|
+
setQuickFilter: (field: string, value: string) => void;
|
|
23
|
+
};
|
|
24
|
+
export declare const QuickFilters: FC<Props>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
export type SearchControlConfig = {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
autoFocus?: boolean;
|
|
5
|
+
borderRadius?: number;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
borderColor?: string;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
controlHeight: number;
|
|
11
|
+
searchWidth: number;
|
|
12
|
+
search: string;
|
|
13
|
+
showSearch: boolean;
|
|
14
|
+
config?: SearchControlConfig;
|
|
15
|
+
setSearch: (s: string) => void;
|
|
16
|
+
setShowSearch: (v: boolean) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const SearchControl: FC<Props>;
|
|
19
|
+
export {};
|
|
@@ -1,7 +1,42 @@
|
|
|
1
1
|
export declare const dataGridConfiguratorDescriptor: {
|
|
2
2
|
readonly component: "DataGridOrganism";
|
|
3
|
-
readonly version: "1.
|
|
3
|
+
readonly version: "1.2.0";
|
|
4
4
|
readonly toolGroups: readonly [{
|
|
5
|
+
readonly id: "view";
|
|
6
|
+
readonly tool: "dataGridListConfigurator";
|
|
7
|
+
readonly titleKey: "config.datagrid.group.view";
|
|
8
|
+
readonly collapsible: true;
|
|
9
|
+
readonly initiallyExpanded: true;
|
|
10
|
+
readonly pathBase: "view";
|
|
11
|
+
readonly defaultView: "listView";
|
|
12
|
+
readonly toolConfig: {
|
|
13
|
+
readonly templates: readonly [{
|
|
14
|
+
readonly id: "custom";
|
|
15
|
+
readonly labelKey: "config.datagrid.list.template.custom";
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "visitCard";
|
|
18
|
+
readonly labelKey: "config.datagrid.list.template.visitCard";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "visitCardCheck";
|
|
21
|
+
readonly labelKey: "config.datagrid.list.template.visitCardCheck";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "fourItems";
|
|
24
|
+
readonly labelKey: "config.datagrid.list.template.fourItems";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "compact";
|
|
27
|
+
readonly labelKey: "config.datagrid.list.template.compact";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "mediaLeft";
|
|
30
|
+
readonly labelKey: "config.datagrid.list.template.mediaLeft";
|
|
31
|
+
}, {
|
|
32
|
+
readonly id: "titleSubtitleMeta";
|
|
33
|
+
readonly labelKey: "config.datagrid.list.template.titleSubtitleMeta";
|
|
34
|
+
}, {
|
|
35
|
+
readonly id: "twoColumn";
|
|
36
|
+
readonly labelKey: "config.datagrid.list.template.twoColumn";
|
|
37
|
+
}];
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
5
40
|
readonly id: "columns";
|
|
6
41
|
readonly tool: "dataGridColumns";
|
|
7
42
|
readonly titleKey: "config.datagrid.group.columns";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const viewGroup: {
|
|
2
|
+
readonly id: "view";
|
|
3
|
+
readonly tool: "dataGridListConfigurator";
|
|
4
|
+
readonly titleKey: "config.datagrid.group.view";
|
|
5
|
+
readonly collapsible: true;
|
|
6
|
+
readonly initiallyExpanded: true;
|
|
7
|
+
readonly pathBase: "view";
|
|
8
|
+
readonly defaultView: "listView";
|
|
9
|
+
readonly toolConfig: {
|
|
10
|
+
readonly templates: readonly [{
|
|
11
|
+
readonly id: "custom";
|
|
12
|
+
readonly labelKey: "config.datagrid.list.template.custom";
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: "visitCard";
|
|
15
|
+
readonly labelKey: "config.datagrid.list.template.visitCard";
|
|
16
|
+
}, {
|
|
17
|
+
readonly id: "visitCardCheck";
|
|
18
|
+
readonly labelKey: "config.datagrid.list.template.visitCardCheck";
|
|
19
|
+
}, {
|
|
20
|
+
readonly id: "fourItems";
|
|
21
|
+
readonly labelKey: "config.datagrid.list.template.fourItems";
|
|
22
|
+
}, {
|
|
23
|
+
readonly id: "compact";
|
|
24
|
+
readonly labelKey: "config.datagrid.list.template.compact";
|
|
25
|
+
}, {
|
|
26
|
+
readonly id: "mediaLeft";
|
|
27
|
+
readonly labelKey: "config.datagrid.list.template.mediaLeft";
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: "titleSubtitleMeta";
|
|
30
|
+
readonly labelKey: "config.datagrid.list.template.titleSubtitleMeta";
|
|
31
|
+
}, {
|
|
32
|
+
readonly id: "twoColumn";
|
|
33
|
+
readonly labelKey: "config.datagrid.list.template.twoColumn";
|
|
34
|
+
}];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { GridColDef, GridFilterModel } from '@mui/x-data-grid-pro';
|
|
3
|
-
import type { DataGridOrganismConfig } from '../types';
|
|
3
|
+
import type { DataGridOrganismConfig } from '../types/types';
|
|
4
4
|
type Params = {
|
|
5
5
|
organism?: {
|
|
6
6
|
id?: string;
|
|
@@ -16,6 +16,7 @@ type Params = {
|
|
|
16
16
|
export declare const useDataGridOrganism: (params: Params) => {
|
|
17
17
|
organismId: string;
|
|
18
18
|
configuration: DataGridOrganismConfig;
|
|
19
|
+
usingLegacyListConfig: boolean;
|
|
19
20
|
rows: Record<string, unknown>[];
|
|
20
21
|
total: number;
|
|
21
22
|
isLoading: boolean;
|
|
@@ -34,12 +35,14 @@ export declare const useDataGridOrganism: (params: Params) => {
|
|
|
34
35
|
columnsKey: string;
|
|
35
36
|
apiRef: import("react").MutableRefObject<import("@mui/x-data-grid-pro").GridApiPro | null>;
|
|
36
37
|
columns: GridColDef<any, any, any>[];
|
|
38
|
+
listViewColumn: import("@mui/x-data-grid-pro").GridListViewColDef<any, any, any>;
|
|
39
|
+
resolvedView: "table" | "list";
|
|
37
40
|
setPage: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
38
41
|
setPageSize: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
39
42
|
setSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
40
43
|
setQuickFilter: (columnField: string, value: string) => void;
|
|
41
44
|
setDensity: import("react").Dispatch<import("react").SetStateAction<"compact" | "comfortable">>;
|
|
42
45
|
setShowSearch: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
43
|
-
refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<import("../types").DataGridPage, Error>>;
|
|
46
|
+
refetch: (options?: import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").al | undefined) => Promise<import("@tanstack/query-core/build/legacy/hydration-BlEK5ylC").aC<import("../types/types").DataGridPage, Error>>;
|
|
44
47
|
};
|
|
45
48
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { DataGridOrganism } from '../DataGridOrganism';
|
|
3
|
+
declare const meta: Meta<typeof DataGridOrganism>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const ListView: StoryFn<typeof DataGridOrganism>;
|
|
6
|
+
export declare const ListViewBasic: StoryFn<typeof DataGridOrganism>;
|
|
7
|
+
export declare const ListViewCustomItem: StoryFn<typeof DataGridOrganism>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { DataGridOrganism } from '../DataGridOrganism';
|
|
3
|
+
declare const meta: Meta<typeof DataGridOrganism>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Basic: StoryFn<typeof DataGridOrganism>;
|
|
6
|
+
export declare const Loading: StoryFn<typeof DataGridOrganism>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { OrganismDTO } from '
|
|
2
|
+
import type { OrganismDTO } from '../../types';
|
|
3
3
|
import type { ColumnActionConfig, DataGridOrganismConfig } from './types';
|
|
4
4
|
export interface DataGridOrganismHostProps {
|
|
5
5
|
organism: OrganismDTO & {
|
|
@@ -80,8 +80,32 @@ export interface ComponentColumnConfig extends ColumnBaseConfig {
|
|
|
80
80
|
componentProps?: Record<string, unknown>;
|
|
81
81
|
}
|
|
82
82
|
export type ColumnConfig = DataColumnConfig | ComponentColumnConfig;
|
|
83
|
+
export type DataGridViewMode = 'table' | 'list' | 'auto';
|
|
84
|
+
export interface DataGridListMappingConfig {
|
|
85
|
+
primaryFieldId?: string;
|
|
86
|
+
secondaryFieldId?: string;
|
|
87
|
+
metaFieldIds?: string[];
|
|
88
|
+
trailingComponentIds?: string[];
|
|
89
|
+
}
|
|
90
|
+
export interface DataGridListLayoutConfig {
|
|
91
|
+
templateColumns?: string;
|
|
92
|
+
gap?: number;
|
|
93
|
+
verticalGap?: number;
|
|
94
|
+
}
|
|
95
|
+
export interface DataGridListA11yConfig {
|
|
96
|
+
primarySlot?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface DataGridListConfig {
|
|
99
|
+
mapping?: DataGridListMappingConfig;
|
|
100
|
+
layout?: DataGridListLayoutConfig;
|
|
101
|
+
a11y?: DataGridListA11yConfig;
|
|
102
|
+
}
|
|
83
103
|
export interface DataGridOrganismConfig {
|
|
84
104
|
columns: ColumnConfig[];
|
|
105
|
+
/** Optional view mode for the grid: table (default), list, or auto (responsive) */
|
|
106
|
+
view?: DataGridViewMode;
|
|
107
|
+
/** Optional list configuration used when view is set to 'list' */
|
|
108
|
+
list?: DataGridListConfig;
|
|
85
109
|
toolbar?: {
|
|
86
110
|
search?: boolean;
|
|
87
111
|
exportCsv?: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './DataGrid';
|
|
2
|
+
export * from './CalendarDataGridOrganism';
|
|
2
3
|
export { CalendarOrganism, CalendarOrganismProps } from './CalendarOrganism';
|
|
4
|
+
export * from './DataGrid/DataGridOrganism';
|
|
3
5
|
export { useDataGridOrganism } from './DataGrid/hooks/useDataGridOrganism';
|
|
4
|
-
export { DataGridOrganismHostProps } from './DataGrid/hostTypes';
|
|
6
|
+
export { DataGridOrganismHostProps } from './DataGrid/types/hostTypes';
|
|
5
7
|
export { Organism } from './Organism/Organism';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { calendarDataGridConfiguratorDescriptor } from './CalendarDataGridOrganism/config/descriptors';
|
|
1
2
|
import { calendarConfiguratorDescriptor } from './CalendarOrganism/config/descriptors';
|
|
2
3
|
import { dataGridConfiguratorDescriptor } from './DataGrid/config/descriptors';
|
|
3
|
-
export type OrganismConfiguratorDescriptor = typeof calendarConfiguratorDescriptor | typeof dataGridConfiguratorDescriptor;
|
|
4
|
+
export type OrganismConfiguratorDescriptor = typeof calendarConfiguratorDescriptor | typeof dataGridConfiguratorDescriptor | typeof calendarDataGridConfiguratorDescriptor;
|
|
4
5
|
export declare const organismConfiguratorsMap: Record<string, OrganismConfiguratorDescriptor>;
|
|
5
|
-
export { calendarConfiguratorDescriptor, dataGridConfiguratorDescriptor };
|
|
6
|
+
export { calendarConfiguratorDescriptor, calendarDataGridConfiguratorDescriptor, dataGridConfiguratorDescriptor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BaseButtonProps } from 'molecules';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import type { StylesType } from 'typescript';
|
|
3
|
-
import { BaseButtonProps } from 'molecules';
|
|
4
4
|
export type LinkVariant = 'link' | 'custom';
|
|
5
5
|
export type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children' | 'colorTheme' | 'size'> & Partial<{
|
|
6
6
|
buttonLink: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n,__rest as o,__assign as r}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import t
|
|
1
|
+
import{__makeTemplateObject as n,__rest as o,__assign as r}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{css as t}from"../../node_modules/@emotion/react/dist/emotion-react.esm.js";import i from"../../node_modules/@emotion/styled/dist/emotion-styled.esm.js";import{getShadeColor as l,getTintColor as c}from"../../helpers/styles.js";import{alpha as s}from"../../node_modules/@mui/system/esm/colorManipulator/colorManipulator.js";var a,m,d,u,v,g=function(n){var t=n.href,i=o(n,["href"]),l={target:"_blank"};return t&&""!==t&&(l.href=t),e("a",r({},l,i))},y=i(g)(v||(v=n(["\n ","\n"],["\n ","\n"])),function(o){var r=o.theme,e=r.colors,i=r.fonts,v=o.disabled,g=o.size,y=void 0===g?"medium":g,h=o.colorTheme,k=void 0===h?"light":h,p=o.$styles,f=o.$variant,b=void 0===f?"link":f,j=o.textColor,x=e["light"===k?"gray4":"indigoTint2"],_=t(a||(a=n(["\n ","\n\n &:visited {\n ","\n }\n "],["\n ","\n\n &:visited {\n ","\n }\n "])),p,p),M=j||e.blue,T=l(M,-.3),$=c(M,.3),z=s(M,.4);return t(u||(u=n(["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n "],["\n ",";\n cursor: pointer;\n text-decoration: none;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n background-color: ",";\n }\n\n ","\n\n ","\n\n ","\n "])),i["medium"===y?"M":"S"],j,j,z,T,$,x,"small"===y&&t(m||(m=n(["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "],["\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: ",";\n color: ",";\n }\n "])),e.gray2,e.gray2,e.gray3,e.gray1,e.gray4,e.gray1),v&&t(d||(d=n(["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "],["\n cursor: auto;\n color: ",";\n\n &:link {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n background-color: transparent;\n }\n "])),e.gray3,e.gray3,e.gray3),"custom"===b&&p&&_)});export{g as BaseTextButton,y as TextButton};
|
|
2
2
|
//# sourceMappingURL=TextButton.js.map
|