dishui 0.0.79 → 0.0.80

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.
Files changed (42) hide show
  1. package/dist/components/Avatar/index.d.ts +6 -4
  2. package/dist/components/Avatar/index.js +39 -28
  3. package/dist/components/Avatar/index.js.map +1 -1
  4. package/dist/components/Card/index.d.ts +16 -8
  5. package/dist/components/Card/index.js +81 -99
  6. package/dist/components/Card/index.js.map +1 -1
  7. package/dist/components/DateTimeInput/index.js +3 -2
  8. package/dist/components/DateTimeInput/index.js.map +1 -1
  9. package/dist/components/GroupedTable/index.d.ts +2 -1
  10. package/dist/components/GroupedTable/index.js +96 -37
  11. package/dist/components/GroupedTable/index.js.map +1 -1
  12. package/dist/components/Input/index.d.ts +2 -2
  13. package/dist/components/Input/index.js +129 -111
  14. package/dist/components/Input/index.js.map +1 -1
  15. package/dist/components/Label/index.js +1 -1
  16. package/dist/components/Label/index.js.map +1 -1
  17. package/dist/components/NavigationList/index.js +55 -24
  18. package/dist/components/NavigationList/index.js.map +1 -1
  19. package/dist/components/Resizable/index.d.ts +28 -0
  20. package/dist/components/Resizable/index.js +128 -0
  21. package/dist/components/Resizable/index.js.map +1 -0
  22. package/dist/components/Resizable/useResize.d.ts +21 -0
  23. package/dist/components/Resizable/useResize.js +60 -0
  24. package/dist/components/Resizable/useResize.js.map +1 -0
  25. package/dist/components/SidebarToggleButton/index.js +51 -43
  26. package/dist/components/SidebarToggleButton/index.js.map +1 -1
  27. package/dist/components/Slider/index.d.ts +17 -3
  28. package/dist/components/Slider/index.js +131 -28
  29. package/dist/components/Slider/index.js.map +1 -1
  30. package/dist/dishui.css +1 -1
  31. package/dist/index-nostyled.d.ts +2 -0
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +123 -121
  34. package/dist/layouts/Sidebar.js +34 -45
  35. package/dist/layouts/Sidebar.js.map +1 -1
  36. package/dist/lite.d.ts +2 -0
  37. package/dist/lite.js +20 -18
  38. package/dist/utils/i18n.js +145 -75
  39. package/dist/utils/i18n.js.map +1 -1
  40. package/dist/utils/menu.js +85 -8
  41. package/dist/utils/menu.js.map +1 -1
  42. package/package.json +1 -1
package/dist/lite.js CHANGED
@@ -1,18 +1,20 @@
1
- import e from "./components/Button/index.js";
2
- import t from "./components/GroupButton/index.js";
3
- import n from "./components/Skeleton/index.js";
4
- import r from "./components/GroupedTable/index.js";
5
- import i from "./components/NavigationList/index.js";
6
- import a from "./components/Section/index.js";
7
- import o from "./components/Badge/index.js";
8
- import s from "./components/Input/index.js";
9
- import c from "./components/Label/index.js";
10
- import l from "./components/Checkbox/index.js";
11
- import u from "./components/Select/index.js";
12
- import d from "./components/Card/index.js";
13
- import f from "./components/Page/index.js";
14
- import p from "./components/EmptyState/index.js";
15
- import m, { Container as h, Flex as g, Grid as _, GridItem as v, Group as y, Space as b } from "./components/Layout/index.js";
16
- import x from "./components/Text/index.js";
17
- import S from "./components/Tree/Tree.js";
18
- export { o as Badge, e as Button, d as Card, l as Checkbox, h as Container, p as EmptyState, g as Flex, _ as Grid, v as GridItem, y as Group, t as GroupButton, r as GroupedTable, s as Input, c as Label, m as Layout, i as NavigationList, f as Page, a as Section, u as Select, n as Skeleton, b as Space, x as Text, S as Tree };
1
+ import { useResize as e } from "./components/Resizable/useResize.js";
2
+ import { Resizable as t, ResizableHandle as n, ResizablePanel as r } from "./components/Resizable/index.js";
3
+ import i from "./components/Button/index.js";
4
+ import a from "./components/GroupButton/index.js";
5
+ import o from "./components/Skeleton/index.js";
6
+ import s from "./components/GroupedTable/index.js";
7
+ import c from "./components/NavigationList/index.js";
8
+ import l from "./components/Section/index.js";
9
+ import u from "./components/Badge/index.js";
10
+ import d from "./components/Input/index.js";
11
+ import f from "./components/Label/index.js";
12
+ import p from "./components/Checkbox/index.js";
13
+ import m from "./components/Select/index.js";
14
+ import h from "./components/Card/index.js";
15
+ import g from "./components/Page/index.js";
16
+ import _ from "./components/EmptyState/index.js";
17
+ import v, { Container as y, Flex as b, Grid as x, GridItem as S, Group as C, Space as w } from "./components/Layout/index.js";
18
+ import T from "./components/Text/index.js";
19
+ import E from "./components/Tree/Tree.js";
20
+ export { u as Badge, i as Button, h as Card, p as Checkbox, y as Container, _ as EmptyState, b as Flex, x as Grid, S as GridItem, C as Group, a as GroupButton, s as GroupedTable, d as Input, f as Label, v as Layout, c as NavigationList, g as Page, t as Resizable, n as ResizableHandle, r as ResizablePanel, l as Section, m as Select, o as Skeleton, w as Space, T as Text, E as Tree, e as useResize };
@@ -18,295 +18,310 @@ var e = {
18
18
  children: {
19
19
  button: {
20
20
  id: "button",
21
- label: "按钮 Button",
21
+ label: "按钮",
22
22
  path: "/components/button"
23
23
  },
24
24
  badge: {
25
25
  id: "badge",
26
- label: "徽章 Badge",
26
+ label: "徽章",
27
27
  path: "/components/badge"
28
28
  },
29
29
  groupbutton: {
30
30
  id: "groupbutton",
31
- label: "选择按钮组 GroupButton",
31
+ label: "选择按钮组",
32
32
  path: "/components/group-button"
33
33
  },
34
+ cardinfo: {
35
+ id: "cardinfo",
36
+ label: "信息卡",
37
+ path: "/components/card/info"
38
+ },
39
+ cardstat: {
40
+ id: "cardstat",
41
+ label: "统计卡",
42
+ path: "/components/card/stat"
43
+ },
34
44
  cardmetric: {
35
45
  id: "cardmetric",
36
- label: "指标卡 Card.Metric",
46
+ label: "指标卡",
37
47
  path: "/components/card-metric"
38
48
  },
39
49
  groupedtable: {
40
50
  id: "groupedtable",
41
- label: "分组表格 GroupedTable",
51
+ label: "分组表格",
42
52
  path: "/components/grouped-table"
43
53
  },
44
54
  navigationlist: {
45
55
  id: "navigationlist",
46
- label: "导航列表 NavigationList",
56
+ label: "导航列表",
47
57
  path: "/components/navigation-list"
48
58
  },
49
59
  skeleton: {
50
60
  id: "skeleton",
51
- label: "骨架 Skeleton",
61
+ label: "骨架",
52
62
  path: "/components/skeleton"
53
63
  },
54
64
  input: {
55
65
  id: "input",
56
- label: "输入框 Input",
66
+ label: "输入框",
57
67
  path: "/components/input"
58
68
  },
59
69
  label: {
60
70
  id: "label",
61
- label: "标签 Label",
71
+ label: "标签",
62
72
  path: "/components/label"
63
73
  },
64
74
  checkbox: {
65
75
  id: "checkbox",
66
- label: "复选框 Checkbox",
76
+ label: "复选框",
67
77
  path: "/components/checkbox"
68
78
  },
69
79
  select: {
70
80
  id: "select",
71
- label: "选择器 Select",
81
+ label: "选择器",
72
82
  path: "/components/select"
73
83
  },
74
84
  card: {
75
85
  id: "card",
76
- label: "卡片 Card",
86
+ label: "卡片",
77
87
  path: "/components/card"
78
88
  },
79
89
  avatar: {
80
90
  id: "avatar",
81
- label: "头像 Avatar",
91
+ label: "头像",
82
92
  path: "/components/avatar"
83
93
  },
84
94
  accordion: {
85
95
  id: "accordion",
86
- label: "手风琴 Accordion",
96
+ label: "手风琴",
87
97
  path: "/components/accordion"
88
98
  },
89
99
  emptystate: {
90
100
  id: "emptystate",
91
- label: "空状态 EmptyState",
101
+ label: "空状态",
92
102
  path: "/components/emptystate"
93
103
  },
94
104
  modal: {
95
105
  id: "modal",
96
- label: "模态框 Modal",
106
+ label: "模态框",
97
107
  path: "/components/modal"
98
108
  },
99
109
  tabs: {
100
110
  id: "tabs",
101
- label: "标签页 Tabs",
111
+ label: "标签页",
102
112
  path: "/components/tabs"
103
113
  },
104
114
  list: {
105
115
  id: "list",
106
- label: "列表 List",
116
+ label: "列表",
107
117
  path: "/components/list"
108
118
  },
109
119
  table: {
110
120
  id: "table",
111
- label: "表格 Table",
121
+ label: "表格",
112
122
  path: "/components/table"
113
123
  },
114
124
  markdown: {
115
125
  id: "markdown",
116
- label: "文档 Markdown",
126
+ label: "Markdown文档",
117
127
  path: "/components/markdown"
118
128
  },
119
129
  tree: {
120
130
  id: "tree",
121
- label: "树形控件 Tree",
131
+ label: "树形控件",
122
132
  path: "/components/tree"
123
133
  },
124
134
  fileuploader: {
125
135
  id: "fileuploader",
126
- label: "文件上传 FileUploader",
136
+ label: "文件上传",
127
137
  path: "/components/fileuploader"
128
138
  },
129
139
  text: {
130
140
  id: "text",
131
- label: "文本 Text",
141
+ label: "文本",
132
142
  path: "/components/text"
133
143
  },
134
144
  image: {
135
145
  id: "image",
136
- label: "图片 Image",
146
+ label: "图片",
137
147
  path: "/components/image"
138
148
  },
139
149
  icon: {
140
150
  id: "icon",
141
- label: "图标 Icon",
151
+ label: "图标",
142
152
  path: "/components/icon"
143
153
  },
144
154
  slider: {
145
155
  id: "slider",
146
- label: "滑块 Slider",
156
+ label: "滑块",
147
157
  path: "/components/slider"
148
158
  },
149
159
  datetimeinput: {
150
160
  id: "datetimeinput",
151
- label: "日期时间 DateTimeInput",
161
+ label: "日期时间",
152
162
  path: "/components/datetime-input"
153
163
  },
154
164
  multiplechoice: {
155
165
  id: "multiplechoice",
156
- label: "多选组 MultipleChoice",
166
+ label: "多选组",
157
167
  path: "/components/multiple-choice"
158
168
  },
159
169
  choicepicker: {
160
170
  id: "choicepicker",
161
- label: "单选组 ChoicePicker",
171
+ label: "单选组",
162
172
  path: "/components/choice-picker"
163
173
  }
164
174
  }
165
175
  },
166
176
  layouts: {
167
177
  id: "layouts",
168
- label: "布局 Layout",
178
+ label: "布局",
169
179
  children: {
170
180
  layout: {
171
181
  id: "layout",
172
- label: "布局总览 Layout",
182
+ label: "布局总览",
173
183
  path: "/layouts/layout"
174
184
  },
185
+ resizable: {
186
+ id: "resizable",
187
+ label: "可调节布局",
188
+ path: "/layouts/resizable"
189
+ },
175
190
  container: {
176
191
  id: "container",
177
- label: "容器 Container",
192
+ label: "容器",
178
193
  path: "/layouts/container"
179
194
  },
180
195
  grid: {
181
196
  id: "grid",
182
- label: "栅格 Grid",
197
+ label: "栅格",
183
198
  path: "/layouts/grid"
184
199
  },
185
200
  flex: {
186
201
  id: "flex",
187
- label: "弹性布局 Flex",
202
+ label: "弹性布局",
188
203
  path: "/layouts/flex"
189
204
  },
190
205
  group: {
191
206
  id: "group",
192
- label: "布局组 Group",
207
+ label: "布局组",
193
208
  path: "/layouts/group"
194
209
  },
195
210
  space: {
196
211
  id: "space",
197
- label: "占位 Space",
212
+ label: "占位",
198
213
  path: "/layouts/space"
199
214
  },
200
215
  page: {
201
216
  id: "page",
202
- label: "页面布局 Page",
217
+ label: "页面布局",
203
218
  path: "/layouts/page"
204
219
  },
205
220
  row: {
206
221
  id: "row",
207
- label: "行布局 Row",
222
+ label: "行布局",
208
223
  path: "/layouts/row"
209
224
  },
210
225
  column: {
211
226
  id: "column",
212
- label: "列布局 Column",
227
+ label: "列布局",
213
228
  path: "/layouts/column"
214
229
  }
215
230
  }
216
231
  },
217
232
  charts: {
218
233
  id: "charts",
219
- label: "图表 Charts",
234
+ label: "图表",
220
235
  path: "/components/chart",
221
236
  children: [
222
237
  {
223
238
  id: "chart-line",
224
- label: "折线图 Line",
239
+ label: "折线图",
225
240
  path: "/components/chart/line"
226
241
  },
227
242
  {
228
243
  id: "chart-area",
229
- label: "面积图 Area",
244
+ label: "面积图",
230
245
  path: "/components/chart/area"
231
246
  },
232
247
  {
233
248
  id: "chart-bar",
234
- label: "柱状图 Bar",
249
+ label: "柱状图",
235
250
  path: "/components/chart/bar"
236
251
  },
237
252
  {
238
253
  id: "chart-pie",
239
- label: "饼图 Pie",
254
+ label: "饼图",
240
255
  path: "/components/chart/pie"
241
256
  },
242
257
  {
243
258
  id: "chart-scatter",
244
- label: "散点图 Scatter",
259
+ label: "散点图",
245
260
  path: "/components/chart/scatter"
246
261
  },
247
262
  {
248
263
  id: "chart-combo",
249
- label: "组合图 Combo",
264
+ label: "组合图",
250
265
  path: "/components/chart/complex/combo"
251
266
  },
252
267
  {
253
268
  id: "chart-stacked",
254
- label: "堆叠面积图 Stacked Area",
269
+ label: "堆叠面积图",
255
270
  path: "/components/chart/complex/stacked"
256
271
  },
257
272
  {
258
273
  id: "chart-heatmap",
259
- label: "热力图 Heatmap",
274
+ label: "热力图",
260
275
  path: "/components/chart/complex/heatmap"
261
276
  },
262
277
  {
263
278
  id: "chart-regression",
264
- label: "回归分析 Regression",
279
+ label: "回归分析",
265
280
  path: "/components/chart/complex/regression"
266
281
  },
267
282
  {
268
283
  id: "chart-radar",
269
- label: "雷达图 Radar",
284
+ label: "雷达图",
270
285
  path: "/components/chart/special/radar"
271
286
  },
272
287
  {
273
288
  id: "chart-sankey",
274
- label: "桑基图 Sankey",
289
+ label: "桑基图",
275
290
  path: "/components/chart/special/sankey"
276
291
  },
277
292
  {
278
293
  id: "chart-network",
279
- label: "网络图 Network",
294
+ label: "网络图",
280
295
  path: "/components/chart/special/network"
281
296
  },
282
297
  {
283
298
  id: "chart-calendar",
284
- label: "日历热力图 Calendar",
299
+ label: "日历热力图",
285
300
  path: "/components/chart/special/calendar"
286
301
  },
287
302
  {
288
303
  id: "chart-stacked-pie",
289
- label: "堆叠饼图 Stacked Pie",
304
+ label: "堆叠饼图",
290
305
  path: "/components/chart/special/stacked-pie"
291
306
  },
292
307
  {
293
308
  id: "chart-funnel",
294
- label: "销售漏斗图 Funnel",
309
+ label: "销售漏斗图",
295
310
  path: "/components/chart/special/funnel"
296
311
  },
297
312
  {
298
313
  id: "chart-treemap",
299
- label: "矩形树图 Treemap",
314
+ label: "矩形树图",
300
315
  path: "/components/chart/special/treemap"
301
316
  },
302
317
  {
303
318
  id: "chart-globe",
304
- label: "地球 Globe",
319
+ label: "地球",
305
320
  path: "/components/chart/special/globe"
306
321
  },
307
322
  {
308
323
  id: "chart-world-map",
309
- label: "世界地图 World Map",
324
+ label: "世界地图",
310
325
  path: "/components/chart/special/world-map"
311
326
  }
312
327
  ]
@@ -317,42 +332,62 @@ var e = {
317
332
  children: {
318
333
  datatable: {
319
334
  id: "datatable",
320
- label: "数据表格 DataTable",
335
+ label: "数据表格",
321
336
  path: "/components/datatable"
322
337
  },
338
+ datatableAdvanced: {
339
+ id: "datatableadvanced",
340
+ label: "高级表格",
341
+ path: "/components/datatable/advanced"
342
+ },
343
+ datatableAdvancedTree: {
344
+ id: "datatableadvancedtree",
345
+ label: "高级树形表格",
346
+ path: "/components/datatable/advancedTreeTable"
347
+ },
348
+ datatableHooks: {
349
+ id: "datatablehooks",
350
+ label: "钩子简化示例",
351
+ path: "/components/datatable/hooks"
352
+ },
353
+ datatablePivot: {
354
+ id: "datatablepivot",
355
+ label: "透视与扩展",
356
+ path: "/components/datatable/pivot"
357
+ },
323
358
  jukebox: {
324
359
  id: "jukebox",
325
- label: "音乐播放器 Jukebox",
360
+ label: "音乐播放器",
326
361
  path: "/components/jukebox"
327
362
  },
328
363
  articlecontrol: {
329
364
  id: "articlecontrol",
330
- label: "文档悬浮控件 ArticleControl",
365
+ label: "文档悬浮控件",
331
366
  path: "/components/articlecontrol"
332
367
  },
333
368
  codeeditor: {
334
369
  id: "codeeditor",
335
- label: "代码编辑器 CodeEditor",
370
+ label: "代码编辑器",
336
371
  path: "/components/codeeditor"
337
372
  },
338
373
  markdowneditor: {
339
374
  id: "markdowneditor",
340
- label: "Markdown编辑器 MarkdownEditor",
375
+ label: "文档编辑器",
341
376
  path: "/components/markdowneditor"
342
377
  },
343
378
  sidebar: {
344
379
  id: "sidebar-demo",
345
- label: "侧边栏 Sidebar",
380
+ label: "侧边栏",
346
381
  path: "/components/sidebar"
347
382
  },
348
383
  fileexplorer: {
349
384
  id: "fileexplorer",
350
- label: "文件浏览器 FileExplorer",
385
+ label: "文件浏览器",
351
386
  path: "/components/fileexplorer"
352
387
  },
353
388
  richtexteditor: {
354
389
  id: "richtexteditor",
355
- label: "富文本编辑器 RichTextEditor",
390
+ label: "富文本编辑器",
356
391
  path: "/components/richtexteditor"
357
392
  },
358
393
  richtexteditorMobile: {
@@ -362,47 +397,47 @@ var e = {
362
397
  },
363
398
  flow: {
364
399
  id: "flow",
365
- label: "流程图编辑器 Flow",
400
+ label: "流程图编辑器",
366
401
  path: "/components/flow"
367
402
  },
368
403
  flowUsage: {
369
404
  id: "flow-usage",
370
- label: "Flow 使用示例",
405
+ label: "流程图使用示例",
371
406
  path: "/components/flow/usage"
372
407
  },
373
408
  flowMobile: {
374
409
  id: "flow-mobile",
375
- label: "Flow 移动端示例",
410
+ label: "流程图移动端示例",
376
411
  path: "/components/flow/mobile"
377
412
  },
378
413
  gantt: {
379
414
  id: "gantt",
380
- label: "甘特图 Gantt",
415
+ label: "甘特图",
381
416
  path: "/components/gantt"
382
417
  },
383
418
  ganttScenarios: {
384
419
  id: "gantt-scenarios",
385
- label: "Gantt 场景示例",
420
+ label: "甘特图场景示例",
386
421
  path: "/components/gantt/scenarios"
387
422
  },
388
423
  calendar: {
389
424
  id: "calendar",
390
- label: "日历 Calendar",
425
+ label: "日历",
391
426
  path: "/components/calendar"
392
427
  },
393
428
  calendarScenarios: {
394
429
  id: "calendar-scenarios",
395
- label: "Calendar 场景示例",
430
+ label: "日历场景示例",
396
431
  path: "/components/calendar/scenarios"
397
432
  }
398
433
  }
399
434
  },
400
435
  showcase: {
401
436
  id: "showcase",
402
- label: "案例 Showcase",
437
+ label: "案例",
403
438
  children: { itbudget: {
404
439
  id: "showcase-it-budget",
405
- label: "IT 预算 IT Budget",
440
+ label: "信息技术预算",
406
441
  path: "/showcase/it-budget"
407
442
  } }
408
443
  }
@@ -439,6 +474,16 @@ var e = {
439
474
  label: "GroupButton",
440
475
  path: "/components/group-button"
441
476
  },
477
+ cardinfo: {
478
+ id: "cardinfo",
479
+ label: "Card.Info",
480
+ path: "/components/card/info"
481
+ },
482
+ cardstat: {
483
+ id: "cardstat",
484
+ label: "Card.Stat",
485
+ path: "/components/card/stat"
486
+ },
442
487
  cardmetric: {
443
488
  id: "cardmetric",
444
489
  label: "Card.Metric",
@@ -580,6 +625,11 @@ var e = {
580
625
  label: "Layout Overview",
581
626
  path: "/layouts/layout"
582
627
  },
628
+ resizable: {
629
+ id: "resizable",
630
+ label: "Resizable",
631
+ path: "/layouts/resizable"
632
+ },
583
633
  container: {
584
634
  id: "container",
585
635
  label: "Container",
@@ -728,6 +778,26 @@ var e = {
728
778
  label: "DataTable",
729
779
  path: "/components/datatable"
730
780
  },
781
+ datatableAdvanced: {
782
+ id: "datatableadvanced",
783
+ label: "Advanced Table",
784
+ path: "/components/datatable/advanced"
785
+ },
786
+ datatableAdvancedTree: {
787
+ id: "datatableadvancedtree",
788
+ label: "Advanced Tree Table",
789
+ path: "/components/datatable/advancedTreeTable"
790
+ },
791
+ datatableHooks: {
792
+ id: "datatablehooks",
793
+ label: "Hooks Simplification",
794
+ path: "/components/datatable/hooks"
795
+ },
796
+ datatablePivot: {
797
+ id: "datatablepivot",
798
+ label: "Pivot & Extensions",
799
+ path: "/components/datatable/pivot"
800
+ },
731
801
  jukebox: {
732
802
  id: "jukebox",
733
803
  label: "Jukebox",