@r2digisolutions/components 0.1.6 → 0.1.7
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/README.md +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.svelte +10 -3
- package/dist/components/atoms/Checkbox/Checkbox.svelte.d.ts +3 -0
- package/dist/components/atoms/Input/Input.svelte +17 -2
- package/dist/components/atoms/Input/Input.svelte.d.ts +6 -1
- package/dist/components/atoms/MarqueeRect/MarqueeRect.svelte +21 -0
- package/dist/components/atoms/MarqueeRect/MarqueeRect.svelte.d.ts +8 -0
- package/dist/components/atoms/Textarea/Textarea.svelte +4 -1
- package/dist/components/atoms/Textarea/Textarea.svelte.d.ts +1 -0
- package/dist/components/atoms/Toggle/Toggle.svelte +1 -1
- package/dist/components/molecules/BulkActionBar/BulkActionBar.svelte +19 -5
- package/dist/components/molecules/CodeEditor/CodeEditor.svelte +13 -10
- package/dist/components/molecules/ColorPicker/ColorPicker.svelte +166 -96
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanel.stories.d.ts +9 -0
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanel.stories.js +8 -0
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanel.svelte +412 -0
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanel.svelte.d.ts +14 -0
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanelStory.svelte +27 -0
- package/dist/components/molecules/ConditionalFormatPanel/ConditionalFormatPanelStory.svelte.d.ts +3 -0
- package/dist/components/molecules/ContextMenu/ContextMenu.svelte +73 -21
- package/dist/components/molecules/ContextMenu/ContextMenu.svelte.d.ts +8 -1
- package/dist/components/molecules/DateTimePicker/DateTimePicker.svelte.d.ts +1 -1
- package/dist/components/molecules/FormDateTimePicker/FormDateTimePicker.svelte.d.ts +1 -1
- package/dist/components/molecules/Gauge/Gauge.stories.d.ts +1 -1
- package/dist/components/molecules/InfiniteScroll/InfiniteScroll.stories.d.ts +1 -1
- package/dist/components/organisms/AssetPickerPage/AssetPickerPage.svelte.d.ts +1 -1
- package/dist/components/organisms/BacklogPage/BacklogPage.svelte.d.ts +1 -1
- package/dist/components/organisms/CalendarApp/CalendarApp.svelte.d.ts +1 -1
- package/dist/components/organisms/DataGrid/DataGrid.stories.d.ts +65 -0
- package/dist/components/organisms/DataGrid/DataGrid.stories.js +95 -0
- package/dist/components/organisms/DataGrid/DataGrid.svelte +2264 -0
- package/dist/components/organisms/DataGrid/DataGrid.svelte.d.ts +99 -0
- package/dist/components/organisms/DataGrid/DataGridStory.svelte +659 -0
- package/dist/components/organisms/DataGrid/DataGridStory.svelte.d.ts +11 -0
- package/dist/components/organisms/DataGrid/breakpoints.d.ts +10 -0
- package/dist/components/organisms/DataGrid/breakpoints.js +20 -0
- package/dist/components/organisms/DataGrid/cellEditors.d.ts +8 -0
- package/dist/components/organisms/DataGrid/cellEditors.js +59 -0
- package/dist/components/organisms/DataGrid/conditionalFormat.d.ts +11 -0
- package/dist/components/organisms/DataGrid/conditionalFormat.js +98 -0
- package/dist/components/organisms/DataGrid/filterRows.d.ts +5 -0
- package/dist/components/organisms/DataGrid/filterRows.js +60 -0
- package/dist/components/organisms/DataGrid/marks.d.ts +9 -0
- package/dist/components/organisms/DataGrid/marks.js +91 -0
- package/dist/components/organisms/DataGrid/types.d.ts +126 -0
- package/dist/components/organisms/DataGrid/types.js +21 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudio.stories.d.ts +33 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudio.stories.js +56 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudio.svelte +830 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudio.svelte.d.ts +68 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudioStory.svelte +600 -0
- package/dist/components/organisms/ResourceStudio/ResourceStudioStory.svelte.d.ts +7 -0
- package/dist/components/organisms/ResourceStudio/fieldsToColumns.d.ts +4 -0
- package/dist/components/organisms/ResourceStudio/fieldsToColumns.js +20 -0
- package/dist/components/organisms/ResourceStudio/fieldsToSchema.d.ts +6 -0
- package/dist/components/organisms/ResourceStudio/fieldsToSchema.js +53 -0
- package/dist/components/organisms/ResourceStudio/types.d.ts +69 -0
- package/dist/components/organisms/ResourceStudio/types.js +15 -0
- package/dist/components/organisms/Scheduler/Scheduler.svelte.d.ts +1 -1
- package/dist/components/organisms/SchemaForm/SchemaForm.svelte +10 -3
- package/dist/components/organisms/SchemaForm/SchemaForm.svelte.d.ts +1 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplate.stories.d.ts +25 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplate.stories.js +18 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplate.svelte +192 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplate.svelte.d.ts +62 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplateStory.svelte +129 -0
- package/dist/components/templates/ResourceStudioTemplate/ResourceStudioTemplateStory.svelte.d.ts +7 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +8 -0
- package/dist/utils/marqueeSelect.d.ts +48 -0
- package/dist/utils/marqueeSelect.js +189 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/svelte';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: import("svelte").Component<{
|
|
5
|
-
example?: "error" | "
|
|
5
|
+
example?: "error" | "ended" | "manual" | "both" | "grid" | "list" | "chat" | "feed";
|
|
6
6
|
mode?: import("./InfiniteScroll.svelte.ts").InfiniteScrollMode;
|
|
7
7
|
rootMargin?: string;
|
|
8
8
|
pageSize?: number;
|
|
@@ -34,6 +34,6 @@ interface AssetPickerPageProps {
|
|
|
34
34
|
onquerychange?: (query: string) => void;
|
|
35
35
|
onviewchange?: (view: AssetPickerView) => void;
|
|
36
36
|
}
|
|
37
|
-
declare const AssetPickerPage: Component<AssetPickerPageProps, {}, "
|
|
37
|
+
declare const AssetPickerPage: Component<AssetPickerPageProps, {}, "view" | "selected" | "query">;
|
|
38
38
|
type AssetPickerPage = ReturnType<typeof AssetPickerPage>;
|
|
39
39
|
export default AssetPickerPage;
|
|
@@ -64,6 +64,6 @@ interface BacklogPageProps {
|
|
|
64
64
|
onviewchange?: (view: BacklogView) => void;
|
|
65
65
|
onsortchange?: (sort: BacklogSort) => void;
|
|
66
66
|
}
|
|
67
|
-
declare const BacklogPage: import("svelte").Component<BacklogPageProps, {}, "sort" | "
|
|
67
|
+
declare const BacklogPage: import("svelte").Component<BacklogPageProps, {}, "sort" | "view" | "selected" | "query" | "filters">;
|
|
68
68
|
type BacklogPage = ReturnType<typeof BacklogPage>;
|
|
69
69
|
export default BacklogPage;
|
|
@@ -58,6 +58,6 @@ interface CalendarAppProps {
|
|
|
58
58
|
endTime: string;
|
|
59
59
|
}) => void;
|
|
60
60
|
}
|
|
61
|
-
declare const CalendarApp: import("svelte").Component<CalendarAppProps, {}, "
|
|
61
|
+
declare const CalendarApp: import("svelte").Component<CalendarAppProps, {}, "date" | "view" | "query" | "events" | "calendars" | "selectedEventId">;
|
|
62
62
|
type CalendarApp = ReturnType<typeof CalendarApp>;
|
|
63
63
|
export default CalendarApp;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/svelte';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("svelte").Component<{
|
|
5
|
+
example?: "loading" | "default" | "marquee" | "readOnly" | "empty" | "pinned" | "editable" | "contextMenu" | "large" | "rowSelection" | "columnAndCell" | "withNotes" | "conditional" | "formatPanel" | "customDock" | "responsive";
|
|
6
|
+
sortable?: boolean;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
striped?: boolean;
|
|
10
|
+
}, {}, "">;
|
|
11
|
+
tags: string[];
|
|
12
|
+
argTypes: {
|
|
13
|
+
example: {
|
|
14
|
+
control: "select";
|
|
15
|
+
options: string[];
|
|
16
|
+
};
|
|
17
|
+
sortable: {
|
|
18
|
+
control: "boolean";
|
|
19
|
+
};
|
|
20
|
+
editable: {
|
|
21
|
+
control: "boolean";
|
|
22
|
+
};
|
|
23
|
+
compact: {
|
|
24
|
+
control: "boolean";
|
|
25
|
+
};
|
|
26
|
+
striped: {
|
|
27
|
+
control: "boolean";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
args: {
|
|
31
|
+
example: "default";
|
|
32
|
+
sortable: true;
|
|
33
|
+
editable: false;
|
|
34
|
+
compact: false;
|
|
35
|
+
striped: false;
|
|
36
|
+
};
|
|
37
|
+
parameters: {
|
|
38
|
+
layout: string;
|
|
39
|
+
docs: {
|
|
40
|
+
story: {
|
|
41
|
+
inline: boolean;
|
|
42
|
+
iframeHeight: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default meta;
|
|
48
|
+
type Story = StoryObj<typeof meta>;
|
|
49
|
+
export declare const Default: Story;
|
|
50
|
+
export declare const RowSelection: Story;
|
|
51
|
+
export declare const ColumnAndCellSelection: Story;
|
|
52
|
+
export declare const MarqueeDragSelect: Story;
|
|
53
|
+
export declare const ContextMenuAndActions: Story;
|
|
54
|
+
export declare const WithNotes: Story;
|
|
55
|
+
export declare const ConditionalFormatting: Story;
|
|
56
|
+
export declare const FormatRulesPanel: Story;
|
|
57
|
+
export declare const EditableCells: Story;
|
|
58
|
+
export declare const PinnedColumns: Story;
|
|
59
|
+
export declare const ResponsiveViewsAndFilters: Story;
|
|
60
|
+
export declare const LargeDataset: Story;
|
|
61
|
+
export declare const EmptyAndLoading: Story;
|
|
62
|
+
export declare const Loading: Story;
|
|
63
|
+
export declare const CustomDockActions: Story;
|
|
64
|
+
export declare const ReadOnly: Story;
|
|
65
|
+
export declare const CompactStriped: Story;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import DataGridStory from './DataGridStory.svelte';
|
|
2
|
+
const meta = {
|
|
3
|
+
title: 'Organisms/DataGrid',
|
|
4
|
+
component: DataGridStory,
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
argTypes: {
|
|
7
|
+
example: {
|
|
8
|
+
control: 'select',
|
|
9
|
+
options: [
|
|
10
|
+
'default',
|
|
11
|
+
'rowSelection',
|
|
12
|
+
'columnAndCell',
|
|
13
|
+
'marquee',
|
|
14
|
+
'contextMenu',
|
|
15
|
+
'withNotes',
|
|
16
|
+
'conditional',
|
|
17
|
+
'formatPanel',
|
|
18
|
+
'editable',
|
|
19
|
+
'pinned',
|
|
20
|
+
'responsive',
|
|
21
|
+
'large',
|
|
22
|
+
'empty',
|
|
23
|
+
'loading',
|
|
24
|
+
'customDock',
|
|
25
|
+
'readOnly'
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
sortable: { control: 'boolean' },
|
|
29
|
+
editable: { control: 'boolean' },
|
|
30
|
+
compact: { control: 'boolean' },
|
|
31
|
+
striped: { control: 'boolean' }
|
|
32
|
+
},
|
|
33
|
+
args: {
|
|
34
|
+
example: 'default',
|
|
35
|
+
sortable: true,
|
|
36
|
+
editable: false,
|
|
37
|
+
compact: false,
|
|
38
|
+
striped: false
|
|
39
|
+
},
|
|
40
|
+
parameters: {
|
|
41
|
+
layout: 'padded',
|
|
42
|
+
docs: {
|
|
43
|
+
// Docs only mounts Default below — other variants are canvas-only.
|
|
44
|
+
story: { inline: false, iframeHeight: 420 }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export default meta;
|
|
49
|
+
/** Keep Docs page light: one live preview. Rest stay available in Canvas. */
|
|
50
|
+
const canvasOnly = {
|
|
51
|
+
parameters: {
|
|
52
|
+
docs: { disable: true }
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export const Default = {};
|
|
56
|
+
export const RowSelection = { args: { example: 'rowSelection' }, ...canvasOnly };
|
|
57
|
+
export const ColumnAndCellSelection = {
|
|
58
|
+
args: { example: 'columnAndCell' },
|
|
59
|
+
...canvasOnly
|
|
60
|
+
};
|
|
61
|
+
export const MarqueeDragSelect = {
|
|
62
|
+
args: { example: 'marquee' },
|
|
63
|
+
...canvasOnly
|
|
64
|
+
};
|
|
65
|
+
export const ContextMenuAndActions = {
|
|
66
|
+
args: { example: 'contextMenu', editable: true },
|
|
67
|
+
...canvasOnly
|
|
68
|
+
};
|
|
69
|
+
export const WithNotes = { args: { example: 'withNotes' }, ...canvasOnly };
|
|
70
|
+
export const ConditionalFormatting = {
|
|
71
|
+
args: { example: 'conditional' },
|
|
72
|
+
...canvasOnly
|
|
73
|
+
};
|
|
74
|
+
export const FormatRulesPanel = {
|
|
75
|
+
args: { example: 'formatPanel' },
|
|
76
|
+
...canvasOnly
|
|
77
|
+
};
|
|
78
|
+
export const EditableCells = {
|
|
79
|
+
args: { example: 'editable', editable: true },
|
|
80
|
+
...canvasOnly
|
|
81
|
+
};
|
|
82
|
+
export const PinnedColumns = { args: { example: 'pinned' }, ...canvasOnly };
|
|
83
|
+
export const ResponsiveViewsAndFilters = {
|
|
84
|
+
args: { example: 'responsive' },
|
|
85
|
+
...canvasOnly
|
|
86
|
+
};
|
|
87
|
+
export const LargeDataset = { args: { example: 'large' }, ...canvasOnly };
|
|
88
|
+
export const EmptyAndLoading = { args: { example: 'empty' }, ...canvasOnly };
|
|
89
|
+
export const Loading = { args: { example: 'loading' }, ...canvasOnly };
|
|
90
|
+
export const CustomDockActions = { args: { example: 'customDock' }, ...canvasOnly };
|
|
91
|
+
export const ReadOnly = { args: { example: 'readOnly' }, ...canvasOnly };
|
|
92
|
+
export const CompactStriped = {
|
|
93
|
+
args: { example: 'default', compact: true, striped: true },
|
|
94
|
+
...canvasOnly
|
|
95
|
+
};
|