dishui 0.0.82 → 0.0.83
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/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/ButtonMenu/index.d.ts +28 -0
- package/dist/components/ButtonMenu/index.js +197 -0
- package/dist/components/ButtonMenu/index.js.map +1 -0
- package/dist/components/Demo/index.d.ts +5 -0
- package/dist/components/Demo/index.js +131 -56
- package/dist/components/Demo/index.js.map +1 -1
- package/dist/components/Demo/source.d.ts +9 -0
- package/dist/components/Demo/source.js +32 -0
- package/dist/components/Demo/source.js.map +1 -0
- package/dist/components/Field/index.d.ts +8 -0
- package/dist/components/Field/index.js +43 -0
- package/dist/components/Field/index.js.map +1 -0
- package/dist/components/LayoutSuite/DashboardSuite.d.ts +35 -0
- package/dist/components/LayoutSuite/DashboardSuite.js +61 -0
- package/dist/components/LayoutSuite/DashboardSuite.js.map +1 -0
- package/dist/components/LayoutSuite/index.d.ts +56 -0
- package/dist/components/LayoutSuite/index.js +101 -0
- package/dist/components/LayoutSuite/index.js.map +1 -0
- package/dist/components/Modal/focusScope.d.ts +1 -0
- package/dist/components/Modal/focusScope.js +81 -0
- package/dist/components/Modal/focusScope.js.map +1 -0
- package/dist/components/Modal/index.d.ts +4 -1
- package/dist/components/Modal/index.js +48 -43
- package/dist/components/Modal/index.js.map +1 -1
- package/dist/components/Page/Float.d.ts +14 -0
- package/dist/components/Page/Float2.js +154 -0
- package/dist/components/Page/Float2.js.map +1 -0
- package/dist/components/Page/index.d.ts +18 -5
- package/dist/components/Page/index.js +103 -34
- package/dist/components/Page/index.js.map +1 -1
- package/dist/components/Page/resize.d.ts +28 -0
- package/dist/components/Page/resize2.js +95 -0
- package/dist/components/Page/resize2.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +10 -3
- package/dist/components/PageHeader/index.js +46 -25
- package/dist/components/PageHeader/index.js.map +1 -1
- package/dist/components/PagePanel/index.d.ts +29 -0
- package/dist/components/PagePanel/index.js +99 -0
- package/dist/components/PagePanel/index.js.map +1 -0
- package/dist/components/Resizable/ResizeGrip.d.ts +5 -0
- package/dist/components/Resizable/ResizeGrip.js +14 -0
- package/dist/components/Resizable/ResizeGrip.js.map +1 -0
- package/dist/components/Resizable/index.js +57 -59
- package/dist/components/Resizable/index.js.map +1 -1
- package/dist/components/Resizable/useResize.d.ts +6 -0
- package/dist/components/Resizable/useResize.js +29 -28
- package/dist/components/Resizable/useResize.js.map +1 -1
- package/dist/components/SidebarToggleButton/index.d.ts +5 -3
- package/dist/components/SidebarToggleButton/index.js +24 -21
- package/dist/components/SidebarToggleButton/index.js.map +1 -1
- package/dist/components/Table/index.d.ts +10 -12
- package/dist/components/Table/index.js +25 -20
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.js +11 -10
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/Textarea/index.d.ts +14 -0
- package/dist/components/Textarea/index.js +44 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/Tree/Tree.d.ts +2 -0
- package/dist/components/Tree/Tree.js +49 -40
- package/dist/components/Tree/Tree.js.map +1 -1
- package/dist/dishui.css +1 -1
- package/dist/index-nostyled.d.ts +9 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +119 -113
- package/dist/layouts/Sidebar.d.ts +12 -1
- package/dist/layouts/Sidebar.js +121 -97
- package/dist/layouts/Sidebar.js.map +1 -1
- package/dist/lite.d.ts +10 -2
- package/dist/lite.js +17 -12
- package/dist/utils/menu.js +14 -16
- package/dist/utils/menu.js.map +1 -1
- package/package.json +3 -1
package/dist/index-nostyled.d.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
export { Resizable, ResizablePanel, ResizableHandle, useResize } from './components/Resizable';
|
|
2
2
|
export type { ResizableProps, ResizablePanelProps, ResizableHandleProps, UseResizeOptions } from './components/Resizable';
|
|
3
|
+
export { default as LayoutSuite, AdminSuite, WikiSuite, BlogSuite, BlankSuite, DashboardSuite } from './components/LayoutSuite';
|
|
4
|
+
export type { AdminSuiteProps, WikiSuiteProps, BlogSuiteProps, BlankSuiteProps, DashboardSuiteProps, LayoutSuiteSidebarProps } from './components/LayoutSuite';
|
|
5
|
+
export { default as ButtonMenu } from './components/ButtonMenu';
|
|
6
|
+
export type { ButtonMenuProps, ButtonMenuItem } from './components/ButtonMenu';
|
|
3
7
|
export { default as Button } from './components/Button';
|
|
4
8
|
export type { ButtonProps, ButtonGroupProps, ButtonGroupSectionProps, ButtonState } from './components/Button';
|
|
5
9
|
export { default as Badge } from './components/Badge';
|
|
6
10
|
export type { BadgeProps } from './components/Badge';
|
|
7
11
|
export { default as Input } from './components/Input';
|
|
8
12
|
export type { InputProps } from './components/Input';
|
|
13
|
+
export { default as Field } from './components/Field';
|
|
14
|
+
export type { FieldProps } from './components/Field';
|
|
15
|
+
export { default as Textarea } from './components/Textarea';
|
|
16
|
+
export type { TextareaProps } from './components/Textarea';
|
|
9
17
|
export { default as Label } from './components/Label';
|
|
10
18
|
export type { LabelProps, LabelState, LabelStyleConfig } from './components/Label';
|
|
11
19
|
export { default as Checkbox } from './components/Checkbox';
|
|
@@ -55,6 +63,7 @@ export type { CodeEditorProps, CodeEditorHandle, LanguageType, EditorTheme, Cont
|
|
|
55
63
|
export type { SearchResult, SearchConfig } from './layouts/headbar/HeadbarSearch';
|
|
56
64
|
export { default as MainLayout } from './layouts/MainLayout';
|
|
57
65
|
export { default as Sidebar } from './layouts/Sidebar';
|
|
66
|
+
export type { SidebarProps, SidebarLevelText } from './layouts/Sidebar';
|
|
58
67
|
export { default as Navbar } from './layouts/Navbar';
|
|
59
68
|
export { Headbar, HeadbarTitle, HeadbarSearch, HeadbarLangSwitcher, HeadbarThemeSwitcher, } from './layouts/headbar';
|
|
60
69
|
export type { HeadbarProps, HeadbarTitleProps, HeadbarSearchProps, HeadbarThemeSwitcherProps } from './layouts/headbar';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,18 @@ export { default as Skeleton } from './components/Skeleton';
|
|
|
10
10
|
export type { SkeletonProps } from './components/Skeleton';
|
|
11
11
|
export { default as Section } from './components/Section';
|
|
12
12
|
export type { SectionProps, SectionSlotProps } from './components/Section';
|
|
13
|
+
export { default as ButtonMenu } from './components/ButtonMenu';
|
|
14
|
+
export type { ButtonMenuProps, ButtonMenuItem } from './components/ButtonMenu';
|
|
13
15
|
export { default as Button } from './components/Button';
|
|
14
16
|
export type { ButtonProps, ButtonGroupProps, ButtonGroupSectionProps, ButtonState } from './components/Button';
|
|
15
17
|
export { default as Badge } from './components/Badge';
|
|
16
18
|
export type { BadgeProps } from './components/Badge';
|
|
17
19
|
export { default as Input } from './components/Input';
|
|
18
20
|
export type { InputProps } from './components/Input';
|
|
21
|
+
export { default as Field } from './components/Field';
|
|
22
|
+
export type { FieldProps } from './components/Field';
|
|
23
|
+
export { default as Textarea } from './components/Textarea';
|
|
24
|
+
export type { TextareaProps } from './components/Textarea';
|
|
19
25
|
export { default as Label } from './components/Label';
|
|
20
26
|
export type { LabelProps, LabelState, LabelStyleConfig } from './components/Label';
|
|
21
27
|
export { default as Checkbox } from './components/Checkbox';
|
|
@@ -32,8 +38,10 @@ export { default as Card } from './components/Card';
|
|
|
32
38
|
export type { CardProps, CardFeatureProps, CardQuoteProps, CardMetaProps, CardInfoProps, CardInfoTone, CardStatProps, CardMetricProps, CardMetricItem, } from './components/Card';
|
|
33
39
|
export { default as PageHeader } from './components/PageHeader';
|
|
34
40
|
export type { PageHeaderProps } from './components/PageHeader';
|
|
35
|
-
export { default as Page, PageBody, PageLeft, PageRight, PageMain } from './components/Page';
|
|
36
|
-
export type { PageProps, PageBodyProps, PageAsideProps, PageMainProps } from './components/Page';
|
|
41
|
+
export { default as Page, PageBody, PageLeft, PageRight, PageMain, PageFooter, PageFloat } from './components/Page';
|
|
42
|
+
export type { PageProps, PageBodyProps, PageAsideProps, PageMainProps, PageFooterProps, PageFloatProps, PagePanelProps } from './components/Page';
|
|
43
|
+
export { default as LayoutSuite, AdminSuite, WikiSuite, BlogSuite, BlankSuite, DashboardSuite } from './components/LayoutSuite';
|
|
44
|
+
export type { AdminSuiteProps, WikiSuiteProps, BlogSuiteProps, BlankSuiteProps, DashboardSuiteProps, LayoutSuiteSidebarProps } from './components/LayoutSuite';
|
|
37
45
|
export { default as EmptyState } from './components/EmptyState';
|
|
38
46
|
export { default as Avatar } from './components/Avatar';
|
|
39
47
|
export type { AvatarProps, AvatarShape, AvatarBorderStyle, AvatarNotificationPosition, } from './components/Avatar';
|
|
@@ -87,6 +95,7 @@ export type { CodeEditorProps, CodeEditorHandle, LanguageType, EditorTheme, Cont
|
|
|
87
95
|
export type { SearchResult, SearchConfig } from './layouts/headbar/HeadbarSearch';
|
|
88
96
|
export { default as MainLayout } from './layouts/MainLayout';
|
|
89
97
|
export { default as Sidebar } from './layouts/Sidebar';
|
|
98
|
+
export type { SidebarProps, SidebarLevelText } from './layouts/Sidebar';
|
|
90
99
|
export { default as Navbar } from './layouts/Navbar';
|
|
91
100
|
export { Headbar, HeadbarTitle, HeadbarSearch, HeadbarLangSwitcher, HeadbarThemeSwitcher, } from './layouts/headbar';
|
|
92
101
|
export type { HeadbarProps, HeadbarTitleProps, HeadbarSearchProps, HeadbarThemeSwitcherProps } from './layouts/headbar';
|
package/dist/index.js
CHANGED
|
@@ -9,116 +9,122 @@ import c from "./components/Skeleton/index.js";
|
|
|
9
9
|
import l from "./components/GroupedTable/index.js";
|
|
10
10
|
import u from "./components/NavigationList/index.js";
|
|
11
11
|
import d from "./components/Section/index.js";
|
|
12
|
-
import f from "./components/
|
|
13
|
-
import p from "./components/
|
|
14
|
-
import m from "./components/
|
|
15
|
-
import h from "./components/
|
|
16
|
-
import g from "./components/
|
|
17
|
-
import _ from "./components/
|
|
18
|
-
import v from "./components/
|
|
19
|
-
import y from "./components/
|
|
20
|
-
import b from "./components/
|
|
21
|
-
import x from "./components/
|
|
22
|
-
import S
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import j from "./components/
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import H from "./components/
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import {
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import {
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import
|
|
73
|
-
import it from "./components/pro/CodeEditor/
|
|
74
|
-
import at from "./components/pro/CodeEditor/
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import {
|
|
98
|
-
import
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import {
|
|
104
|
-
import
|
|
105
|
-
import Qt from "./components/pro/Flow/
|
|
106
|
-
import {
|
|
107
|
-
import
|
|
108
|
-
import
|
|
109
|
-
import
|
|
110
|
-
import
|
|
111
|
-
import
|
|
112
|
-
import {
|
|
113
|
-
import
|
|
114
|
-
import
|
|
115
|
-
import
|
|
116
|
-
import {
|
|
117
|
-
import
|
|
118
|
-
import {
|
|
119
|
-
import
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import
|
|
124
|
-
|
|
12
|
+
import f from "./components/Text/index.js";
|
|
13
|
+
import p from "./components/ButtonMenu/index.js";
|
|
14
|
+
import m from "./components/Badge/index.js";
|
|
15
|
+
import h from "./components/Input/index.js";
|
|
16
|
+
import g from "./components/Field/index.js";
|
|
17
|
+
import _ from "./components/Textarea/index.js";
|
|
18
|
+
import v from "./components/Label/index.js";
|
|
19
|
+
import y from "./components/Checkbox/index.js";
|
|
20
|
+
import b from "./components/Switch/index.js";
|
|
21
|
+
import x from "./components/Tooltip/index.js";
|
|
22
|
+
import S from "./components/Divider/index.js";
|
|
23
|
+
import C from "./components/Select/index.js";
|
|
24
|
+
import w from "./components/Card/index.js";
|
|
25
|
+
import T from "./components/PageHeader/index.js";
|
|
26
|
+
import E from "./components/Page/Float2.js";
|
|
27
|
+
import D, { PageBody as O, PageFooter as k, PageLeft as A, PageMain as j, PageRight as M } from "./components/Page/index.js";
|
|
28
|
+
import { generateSidebarActiveStyles as N, generateTreeActiveStyles as P, themeActiveStyles as F } from "./styles/themeStyles.js";
|
|
29
|
+
import I from "./components/Tree/Tree.js";
|
|
30
|
+
import { DesktopSidebarToggleButton as L, MobileSidebarToggleButton as R, SidebarToggleButtons as z } from "./components/SidebarToggleButton/index.js";
|
|
31
|
+
import B from "./layouts/Sidebar.js";
|
|
32
|
+
import V, { Container as H, Flex as U, Grid as W, GridItem as G, Group as K, Space as q } from "./components/Layout/index.js";
|
|
33
|
+
import { DashboardSuite as J } from "./components/LayoutSuite/DashboardSuite.js";
|
|
34
|
+
import { AdminSuite as Y, BlankSuite as X, BlogSuite as Z, LayoutSuite as Q, WikiSuite as $ } from "./components/LayoutSuite/index.js";
|
|
35
|
+
import ee from "./components/EmptyState/index.js";
|
|
36
|
+
import te from "./components/Avatar/index.js";
|
|
37
|
+
import ne from "./components/Accordion/index.js";
|
|
38
|
+
import re from "./components/Modal/index.js";
|
|
39
|
+
import ie from "./components/Tabs/index.js";
|
|
40
|
+
import ae from "./components/List/index.js";
|
|
41
|
+
import oe from "./components/Row/index.js";
|
|
42
|
+
import se from "./components/Column/index.js";
|
|
43
|
+
import ce from "./components/Image/index.js";
|
|
44
|
+
import le from "./components/Icon/index.js";
|
|
45
|
+
import ue from "./components/Slider/index.js";
|
|
46
|
+
import de from "./components/DateTimeInput/index.js";
|
|
47
|
+
import fe from "./components/MultipleChoice/index.js";
|
|
48
|
+
import pe from "./components/ChoicePicker/index.js";
|
|
49
|
+
import me from "./layouts/headbar/Headbar.js";
|
|
50
|
+
import he from "./layouts/headbar/HeadbarTitle.js";
|
|
51
|
+
import ge from "./layouts/headbar/HeadbarSearch.js";
|
|
52
|
+
import _e from "./layouts/headbar/HeadbarLangSwitcher.js";
|
|
53
|
+
import { getThemes as ve } from "./utils/themes.js";
|
|
54
|
+
import ye from "./layouts/headbar/HeadbarThemeSwitcher.js";
|
|
55
|
+
import { AppLayoutWrapper as be, AppProvider as xe, AppShell as Se, useAppContext as Ce, useAuth as we } from "./contexts/AppContext.js";
|
|
56
|
+
import Te from "./hooks/useTableColumns.js";
|
|
57
|
+
import Ee from "./hooks/useTableData.js";
|
|
58
|
+
import { defineExtension as De } from "./components/pro/DataTable/extension.js";
|
|
59
|
+
import { computePivot as Oe } from "./components/pro/DataTable/pivotEngine.js";
|
|
60
|
+
import { PivotView as ke } from "./components/pro/DataTable/PivotView.js";
|
|
61
|
+
import { PivotPanel as Ae } from "./components/pro/DataTable/PivotPanel.js";
|
|
62
|
+
import { usePivotExtension as je } from "./components/pro/DataTable/pivotExtension.js";
|
|
63
|
+
import { useRowDetailExtension as Me } from "./components/pro/DataTable/rowDetailExtension.js";
|
|
64
|
+
import Ne, { createActionColumn as Pe, createColumn as Fe, createComputedColumn as Ie, createSelectOptions as Le, createSelectionColumn as Re, dateSort as ze, defaultFilterFunctions as Be, extractUniqueOptions as Ve, numericSort as He, stringSort as Ue, treeSort as We } from "./data-table.js";
|
|
65
|
+
import Ge from "./components/Chart/Chart.js";
|
|
66
|
+
import Ke from "./components/Demo/index.js";
|
|
67
|
+
import qe from "./components/pro/ArticleControl/ArticleControl2.js";
|
|
68
|
+
import Je from "./components/pro/ArticleContextMenu/index.js";
|
|
69
|
+
import Ye from "./components/Markdown/Markdown.js";
|
|
70
|
+
import { getDefaultSnippets as Xe, javascriptSnippets as Ze, pythonSnippets as Qe } from "./components/pro/CodeEditor/langs/snippets.js";
|
|
71
|
+
import { jsJumpableKeywords as $e, jsKeywords as et } from "./components/pro/CodeEditor/langs/javascript.js";
|
|
72
|
+
import { pyJumpableKeywords as tt, pyKeywords as nt } from "./components/pro/CodeEditor/langs/python.js";
|
|
73
|
+
import { getJumpableKeywords as rt, getLanguageKeywords as it } from "./components/pro/CodeEditor/langs/index.js";
|
|
74
|
+
import { bracketMatchingStyle as at, jumpTargetHighlight as ot, jumpToDefinition as st, lineHighlightStyle as ct, smartAutocompletion as lt } from "./components/pro/CodeEditor/extensions/index.js";
|
|
75
|
+
import { createThemeExtension as ut } from "./components/pro/CodeEditor/themes.js";
|
|
76
|
+
import { collectVariables as dt, generateOutline as ft } from "./components/pro/CodeEditor/utils.js";
|
|
77
|
+
import { defaultContextMenu as pt } from "./components/pro/CodeEditor/extensions/contextMenu.js";
|
|
78
|
+
import mt from "./components/pro/CodeEditor/editors/CodeEditor.js";
|
|
79
|
+
import ht from "./components/pro/CodeEditor/panels/TableOfContentsPanel.js";
|
|
80
|
+
import gt from "./components/pro/CodeEditor/panels/FootnotePanel.js";
|
|
81
|
+
import _t from "./components/pro/CodeEditor/editors/MarkdownEditor.js";
|
|
82
|
+
import vt from "./components/pro/CodeEditor/panels/OutlinePanel.js";
|
|
83
|
+
import yt from "./components/pro/CodeEditor/panels/VariablePanel.js";
|
|
84
|
+
import bt from "./layouts/MainLayout.js";
|
|
85
|
+
import xt from "./layouts/Navbar.js";
|
|
86
|
+
import { ProtectedRoute as St } from "./components/ProtectedRoute/index.js";
|
|
87
|
+
import { buildRouter as Ct, createRouterFromConfig as wt } from "./utils/routerBuilder.js";
|
|
88
|
+
import { DropZone as Tt, formatFileSize as Et } from "./components/FileUploader/DropZone.js";
|
|
89
|
+
import { FileItem as Dt } from "./components/FileUploader/FileItem.js";
|
|
90
|
+
import { UploadQueue as Ot } from "./components/FileUploader/UploadQueue.js";
|
|
91
|
+
import { FileUploader as kt } from "./components/FileUploader/FileUploader.js";
|
|
92
|
+
import { FileIcon as At } from "./components/pro/FileExplorer/FileIcon.js";
|
|
93
|
+
import { Breadcrumb as jt } from "./components/pro/FileExplorer/Breadcrumb.js";
|
|
94
|
+
import { Toolbar as Mt } from "./components/pro/FileExplorer/Toolbar.js";
|
|
95
|
+
import { ListView as Nt } from "./components/pro/FileExplorer/ListView.js";
|
|
96
|
+
import { GridView as Pt } from "./components/pro/FileExplorer/GridView.js";
|
|
97
|
+
import { CreateDialog as Ft } from "./components/pro/FileExplorer/CreateDialog.js";
|
|
98
|
+
import { FileExplorer as It } from "./components/pro/FileExplorer/FileExplorer.js";
|
|
99
|
+
import { defaultLabels as Lt } from "./components/pro/RichTextEditor/types.js";
|
|
100
|
+
import { MarkdownBlockExtension as Rt } from "./components/pro/RichTextEditor/extensions/MarkdownBlock.js";
|
|
101
|
+
import zt from "./components/pro/RichTextEditor/Toolbar/Toolbar.js";
|
|
102
|
+
import Bt from "./components/pro/RichTextEditor/AIRewrite.js";
|
|
103
|
+
import { CodeBlockExtension as Vt } from "./components/pro/RichTextEditor/extensions/CodeBlockView.js";
|
|
104
|
+
import Ht from "./components/pro/RichTextEditor/RichTextEditor.js";
|
|
105
|
+
import { BORDER_STYLE_OPTIONS as Ut, DASH_DENSITY_OPTIONS as Wt, DEFAULT_EDGE_DATA as Gt, DEFAULT_NODE_DATA as Kt, EDGE_LINE_STYLE_OPTIONS as qt, EDGE_MARKER_OPTIONS as Jt, EDGE_TYPE_OPTIONS as Yt, GRADIENT_DIRECTION_OPTIONS as Xt, PALETTE_ITEMS as Zt, ROOT_CANVAS_ID as Qt, createEmptyDocument as $t } from "./components/pro/Flow/constants.js";
|
|
106
|
+
import { FlowProvider as en, useFlowContext as tn } from "./components/pro/Flow/context/FlowContext.js";
|
|
107
|
+
import { FlowUIProvider as nn, useFlowUI as rn } from "./components/pro/Flow/context/FlowUIContext.js";
|
|
108
|
+
import { downloadDataURL as an, exportCanvasToPNG as on, useFlowImportExport as sn } from "./components/pro/Flow/hooks/useFlowImportExport.js";
|
|
109
|
+
import { useLayoutActions as cn } from "./components/pro/Flow/hooks/useLayoutActions.js";
|
|
110
|
+
import ln from "./components/pro/Flow/panels/FlowToolbar.js";
|
|
111
|
+
import un from "./components/pro/Flow/panels/ShapePalette.js";
|
|
112
|
+
import { FLOW_NODE_TYPES as dn } from "./components/pro/Flow/types.js";
|
|
113
|
+
import fn from "./components/pro/Flow/panels/InspectorPanel.js";
|
|
114
|
+
import pn from "./components/pro/Flow/panels/OutlinePanel.js";
|
|
115
|
+
import mn from "./components/pro/Flow/panels/ContextMenu.js";
|
|
116
|
+
import { useClipboard as hn } from "./components/pro/Flow/hooks/useClipboard.js";
|
|
117
|
+
import gn from "./components/pro/Flow/Flow.js";
|
|
118
|
+
import { useNodeMutations as _n } from "./components/pro/Flow/hooks/useNodeMutations.js";
|
|
119
|
+
import { useEdgeMutations as vn } from "./components/pro/Flow/hooks/useEdgeMutations.js";
|
|
120
|
+
import { useLineMutations as yn } from "./components/pro/Flow/hooks/useLineMutations.js";
|
|
121
|
+
import { useSelection as bn } from "./components/pro/Flow/hooks/useSelection.js";
|
|
122
|
+
import { DEFAULT_CATEGORY_CONFIG as xn, DEFAULT_SCALE_CONFIGS as Sn, DEFAULT_TIME_WINDOW as Cn, addDays as wn, addWorkingDays as Tn, calculateWorkingDays as En, computeDateRange as Dn, dateToX as On, daysBetween as kn, flattenTree as An, formatDate as jn, generateDateRange as Mn, generateHeaderGroups as Nn, getISOWeekNumber as Pn, getISOWeekYear as Fn, isNonWorkingDay as In, isWeekend as Ln, parseDate as Rn, startOfDay as zn, xToDate as Bn } from "./components/pro/Gantt/utils.js";
|
|
123
|
+
import { useGanttState as Vn } from "./components/pro/Gantt/hooks/useGanttState.js";
|
|
124
|
+
import { useGanttDrag as Hn } from "./components/pro/Gantt/hooks/useGanttDrag.js";
|
|
125
|
+
import Un from "./components/pro/Gantt/Gantt.js";
|
|
126
|
+
import { DEFAULT_COLOR_OPTIONS as Wn, LABELS_EN as Gn, LABELS_ZH as Kn, SLOT_HEIGHT as qn, TIME_GRID_HEIGHT as Jn, TIME_SLOTS as Yn, addDays as Xn, clamp as Zn, formatDate as Qn, formatTime as $n, generateId as er, generateTimeSlots as tr, getDaysInMonth as nr, getFirstDayOfMonth as rr, getHolidayEntry as ir, getMonthDates as ar, getWeekDates as or, isHoliday as sr, isNonWorkingDay as cr, isSameDay as lr, isToday as ur, isWeekend as dr, minutesToTime as fr, parseDate as pr, parseTime as mr, timeToMinutes as hr, todayStr as gr } from "./components/pro/Calendar/utils.js";
|
|
127
|
+
import { useCalendarState as _r } from "./components/pro/Calendar/hooks/useCalendarState.js";
|
|
128
|
+
import { useCalendarDrag as vr } from "./components/pro/Calendar/hooks/useCalendarDrag.js";
|
|
129
|
+
import yr from "./components/pro/Calendar/Calendar.js";
|
|
130
|
+
export { Bt as AIRewrite, ne as Accordion, Y as AdminSuite, be as AppLayoutWrapper, xe as AppProvider, Se as AppShell, Je as ArticleContextMenu, qe as ArticleControl, te as Avatar, Ut as BORDER_STYLE_OPTIONS, m as Badge, X as BlankSuite, Z as BlogSuite, jt as Breadcrumb, a as Button, p as ButtonMenu, Wn as CALENDAR_DEFAULT_COLOR_OPTIONS, Gn as CALENDAR_LABELS_EN, Kn as CALENDAR_LABELS_ZH, qn as CALENDAR_SLOT_HEIGHT, Jn as CALENDAR_TIME_GRID_HEIGHT, Yn as CALENDAR_TIME_SLOTS, yr as Calendar, w as Card, Ge as Chart, y as Checkbox, pe as ChoicePicker, Vt as CodeBlockExtension, mt as CodeEditor, se as Column, H as Container, Ft as CreateDialog, Wt as DASH_DENSITY_OPTIONS, xn as DEFAULT_CATEGORY_CONFIG, Gt as DEFAULT_EDGE_DATA, Kt as DEFAULT_NODE_DATA, Sn as DEFAULT_SCALE_CONFIGS, Cn as DEFAULT_TIME_WINDOW, J as DashboardSuite, Ne as DataTable, de as DateTimeInput, Ke as Demo, L as DesktopSidebarToggleButton, S as Divider, Tt as DropZone, qt as EDGE_LINE_STYLE_OPTIONS, Jt as EDGE_MARKER_OPTIONS, Yt as EDGE_TYPE_OPTIONS, ee as EmptyState, dn as FLOW_NODE_TYPES, g as Field, It as FileExplorer, Mt as FileExplorerToolbar, At as FileIcon, kt as FileUploader, U as Flex, gn as Flow, mn as FlowContextMenu, fn as FlowInspectorPanel, pn as FlowOutlinePanel, en as FlowProvider, un as FlowShapePalette, ln as FlowToolbar, nn as FlowUIProvider, gt as FootnotePanel, Xt as GRADIENT_DIRECTION_OPTIONS, Un as Gantt, W as Grid, G as GridItem, Pt as GridView, K as Group, o as GroupButton, l as GroupedTable, me as Headbar, _e as HeadbarLangSwitcher, ge as HeadbarSearch, ye as HeadbarThemeSwitcher, he as HeadbarTitle, le as Icon, ce as Image, h as Input, v as Label, V as Layout, Q as LayoutSuite, ae as List, Nt as ListView, bt as MainLayout, Ye as Markdown, Rt as MarkdownBlockExtension, _t as MarkdownEditor, R as MobileSidebarToggleButton, re as Modal, fe as MultipleChoice, xt as Navbar, u as NavigationList, vt as OutlinePanel, Zt as PALETTE_ITEMS, D as Page, O as PageBody, E as PageFloat, k as PageFooter, T as PageHeader, A as PageLeft, j as PageMain, M as PageRight, Ae as PivotPanel, ke as PivotView, St as ProtectedRoute, Qt as ROOT_CANVAS_ID, t as Resizable, n as ResizableHandle, r as ResizablePanel, Ht as RichTextEditor, zt as RichTextToolbar, oe as Row, d as Section, C as Select, B as Sidebar, z as SidebarToggleButtons, c as Skeleton, ue as Slider, q as Space, b as Switch, s as Table, ht as TableOfContentsPanel, ie as Tabs, f as Text, _ as Textarea, x as Tooltip, I as Tree, Dt as UploadFileItem, Ot as UploadQueue, yt as VariablePanel, $ as WikiSuite, Xn as addCalendarDays, wn as addGanttDays, Tn as addWorkingDays, at as bracketMatchingStyle, Ct as buildRouter, En as calculateWorkingDays, Zn as calendarClamp, fr as calendarMinutesToTime, hr as calendarTimeToMinutes, gr as calendarTodayStr, i as cn, dt as collectVariables, Dn as computeDateRange, Oe as computePivot, Pe as createActionColumn, Fe as createColumn, Ie as createComputedColumn, $t as createEmptyDocument, wt as createRouterFromConfig, Le as createSelectOptions, Re as createSelectionColumn, ut as createThemeExtension, ze as dateSort, kn as daysBetween, pt as defaultContextMenu, Be as defaultFilterFunctions, De as defineExtension, an as downloadDataURL, on as exportCanvasToPNG, Ve as extractUniqueOptions, An as flattenGanttTree, Qn as formatCalendarDate, $n as formatCalendarTime, Et as formatFileSize, jn as formatGanttDate, On as ganttDateToX, Bn as ganttXToDate, er as generateCalendarId, tr as generateCalendarTimeSlots, Mn as generateDateRange, Nn as generateHeaderGroups, ft as generateOutline, N as generateSidebarActiveStyles, P as generateTreeActiveStyles, nr as getCalendarDaysInMonth, rr as getCalendarFirstDayOfMonth, ir as getCalendarHolidayEntry, ar as getCalendarMonthDates, or as getCalendarWeekDates, Xe as getDefaultSnippets, Pn as getISOWeekNumber, Fn as getISOWeekYear, rt as getJumpableKeywords, it as getLanguageKeywords, ve as getThemes, sr as isCalendarHoliday, cr as isCalendarNonWorkingDay, lr as isCalendarSameDay, ur as isCalendarToday, dr as isCalendarWeekend, In as isGanttNonWorkingDay, Ln as isGanttWeekend, Ze as javascriptSnippets, $e as jsJumpableKeywords, et as jsKeywords, ot as jumpTargetHighlight, st as jumpToDefinition, ct as lineHighlightStyle, He as numericSort, pr as parseCalendarDate, mr as parseCalendarTime, Rn as parseGanttDate, tt as pyJumpableKeywords, nt as pyKeywords, Qe as pythonSnippets, Lt as richTextDefaultLabels, lt as smartAutocompletion, zn as startOfGanttDay, Ue as stringSort, F as themeActiveStyles, We as treeSort, Ce as useAppContext, we as useAuth, vr as useCalendarDrag, _r as useCalendarState, vn as useEdgeMutations, hn as useFlowClipboard, tn as useFlowContext, sn as useFlowImportExport, bn as useFlowSelection, rn as useFlowUI, Hn as useGanttDrag, Vn as useGanttState, cn as useLayoutActions, yn as useLineMutations, _n as useNodeMutations, je as usePivotExtension, e as useResize, Me as useRowDetailExtension, Te as useTableColumns, Ee as useTableData };
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MenuItem } from '../types/menu';
|
|
3
|
-
type
|
|
3
|
+
import { type TextProps } from '../components/Text';
|
|
4
|
+
export type SidebarLevelText = Pick<TextProps, 'size' | 'weight' | 'color'>;
|
|
5
|
+
export type SidebarProps = {
|
|
4
6
|
isCollapsed: boolean;
|
|
7
|
+
/** 侧栏所在侧,控制内侧 pill 的位置与调宽方向。 */
|
|
8
|
+
side?: 'left' | 'right';
|
|
5
9
|
language: 'zh' | 'en';
|
|
6
10
|
items?: MenuItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Opt-in typography for levels 1–3; deeper nodes reuse level 3.
|
|
13
|
+
* Omitted: preserve legacy Sidebar/LayoutSuite typography. When supplied,
|
|
14
|
+
* missing values default to base/sm/sm, semibold/medium/normal and inherited color.
|
|
15
|
+
* Selected labels always inherit the active row color.
|
|
16
|
+
*/
|
|
17
|
+
levelText?: readonly [SidebarLevelText?, SidebarLevelText?, SidebarLevelText?];
|
|
7
18
|
getMenuItems?: (language: 'zh' | 'en') => MenuItem[];
|
|
8
19
|
onWidthChange?: (width: number) => void;
|
|
9
20
|
initialWidth?: number;
|