@next-bricks/advanced 0.42.9 → 0.43.0

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 (31) hide show
  1. package/dist/bricks.json +18 -17
  2. package/dist/chunks/7157.d2e43b0c.js +2 -0
  3. package/dist/chunks/7157.d2e43b0c.js.map +1 -0
  4. package/dist/chunks/eo-table.2d3928a8.js +2 -0
  5. package/dist/chunks/eo-table.2d3928a8.js.map +1 -0
  6. package/dist/chunks/eo-workbench-layout-v2.4b7795b6.js +2 -0
  7. package/dist/chunks/eo-workbench-layout-v2.4b7795b6.js.map +1 -0
  8. package/dist/chunks/main.166e0ca4.js +2 -0
  9. package/dist/chunks/{main.04e42902.js.map → main.166e0ca4.js.map} +1 -1
  10. package/dist/examples.json +5 -5
  11. package/dist/index.9df00b4a.js +2 -0
  12. package/dist/index.9df00b4a.js.map +1 -0
  13. package/dist/manifest.json +241 -241
  14. package/dist/types.json +459 -544
  15. package/dist-types/interfaces/index.d.ts +1 -0
  16. package/dist-types/interfaces/workbench.d.ts +9 -0
  17. package/dist-types/workbench-layout-v2/DraggableComponentMenuItem.d.ts +7 -0
  18. package/dist-types/workbench-layout-v2/DraggableComponentMenuItem.spec.d.ts +1 -0
  19. package/dist-types/workbench-layout-v2/DroppableComponentLayoutItem.d.ts +9 -0
  20. package/dist-types/workbench-layout-v2/DroppableComponentLayoutItem.spec.d.ts +1 -0
  21. package/dist-types/workbench-layout-v2/index.d.ts +3 -10
  22. package/package.json +2 -2
  23. package/dist/chunks/2197.018fe597.js +0 -2
  24. package/dist/chunks/2197.018fe597.js.map +0 -1
  25. package/dist/chunks/eo-table.be1334ae.js +0 -2
  26. package/dist/chunks/eo-table.be1334ae.js.map +0 -1
  27. package/dist/chunks/eo-workbench-layout-v2.f1289e80.js +0 -2
  28. package/dist/chunks/eo-workbench-layout-v2.f1289e80.js.map +0 -1
  29. package/dist/chunks/main.04e42902.js +0 -2
  30. package/dist/index.006ff28e.js +0 -2
  31. package/dist/index.006ff28e.js.map +0 -1
@@ -345,88 +345,216 @@
345
345
  "insider": true
346
346
  },
347
347
  {
348
- "name": "eo-workbench-layout-v2",
348
+ "name": "eo-next-table",
349
349
  "properties": [
350
350
  {
351
- "name": "cardTitle",
351
+ "name": "rowKey",
352
+ "description": "指定表格行的 key",
353
+ "default": "\"key\"",
352
354
  "type": "string"
353
355
  },
354
356
  {
355
- "name": "isEdit",
357
+ "name": "columns",
358
+ "description": "列定义",
359
+ "attribute": false,
360
+ "type": "Column[]"
361
+ },
362
+ {
363
+ "name": "cell",
364
+ "description": "单元格",
365
+ "attribute": false,
366
+ "type": "CellConfig"
367
+ },
368
+ {
369
+ "name": "dataSource",
370
+ "description": "数据源",
371
+ "attribute": false,
372
+ "type": "DataSource"
373
+ },
374
+ {
375
+ "name": "frontSearch",
376
+ "description": "是否前端搜索",
356
377
  "type": "boolean"
357
378
  },
358
379
  {
359
- "name": "layouts",
380
+ "name": "pagination",
381
+ "description": "分页配置",
360
382
  "attribute": false,
361
- "type": "Layout[]"
383
+ "type": "PaginationType"
362
384
  },
363
385
  {
364
- "name": "toolbarBricks",
386
+ "name": "loading",
387
+ "description": "显示加载中状态",
388
+ "type": "boolean"
389
+ },
390
+ {
391
+ "name": "multiSort",
392
+ "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
393
+ "type": "boolean"
394
+ },
395
+ {
396
+ "name": "sort",
397
+ "description": "排序信息",
365
398
  "attribute": false,
366
- "type": "{\n useBrick: UseSingleBrickConf[];\n }"
399
+ "type": "Sort | Sort[]"
367
400
  },
368
401
  {
369
- "name": "componentList",
402
+ "name": "rowSelection",
403
+ "description": "表格行可选择配置",
370
404
  "attribute": false,
371
- "type": "Item[]"
405
+ "type": "RowSelectionType"
372
406
  },
373
407
  {
374
- "name": "showSettingButton",
375
- "description": "description: 用于设置页面样式和布局的按钮",
408
+ "name": "selectedRowKeys",
409
+ "description": "选中项的 key",
410
+ "attribute": false,
411
+ "type": "(string | number)[]"
412
+ },
413
+ {
414
+ "name": "hiddenColumns",
415
+ "description": "隐藏的列(输入对应的 column.key)",
416
+ "attribute": false,
417
+ "type": "(string | number)[]"
418
+ },
419
+ {
420
+ "name": "expandable",
421
+ "description": "表格行展开配置",
422
+ "attribute": false,
423
+ "type": "ExpandableType"
424
+ },
425
+ {
426
+ "name": "expandedRowKeys",
427
+ "description": "展开项的 key",
428
+ "attribute": false,
429
+ "type": "(string | number)[]"
430
+ },
431
+ {
432
+ "name": "childrenColumnName",
433
+ "description": "树形结构的列名",
434
+ "default": "\"children\"",
435
+ "type": "string"
436
+ },
437
+ {
438
+ "name": "rowDraggable",
439
+ "description": "表格行拖拽配置",
440
+ "type": "boolean"
441
+ },
442
+ {
443
+ "name": "searchFields",
444
+ "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
445
+ "attribute": false,
446
+ "type": "(string | string[])[]"
447
+ },
448
+ {
449
+ "name": "size",
450
+ "description": "表格大小",
451
+ "default": "\"large\"",
452
+ "type": "TableProps<RecordType>[\"size\"]"
453
+ },
454
+ {
455
+ "name": "showHeader",
456
+ "description": "是否显示表头",
457
+ "default": "true",
458
+ "type": "boolean"
459
+ },
460
+ {
461
+ "name": "bordered",
462
+ "description": "是否显示边框",
376
463
  "type": "boolean"
464
+ },
465
+ {
466
+ "name": "scrollConfig",
467
+ "description": "滚动配置",
468
+ "default": "{ x: true }",
469
+ "attribute": false,
470
+ "type": "TableProps<RecordType>[\"scroll\"]"
471
+ },
472
+ {
473
+ "name": "optimizedColumns",
474
+ "description": "优化渲染的列(输入对应的 column.key)",
475
+ "attribute": false,
476
+ "type": "(string | number)[]"
377
477
  }
378
478
  ],
379
479
  "events": [
380
480
  {
381
- "name": "change",
481
+ "name": "page.change",
482
+ "description": "page 或 pageSize 改变的回调",
382
483
  "detail": {
383
- "type": "Layout[]"
484
+ "description": "改变后的页码及每页条数",
485
+ "type": "{ page: number; pageSize: number }"
384
486
  }
385
487
  },
386
488
  {
387
- "name": "save",
489
+ "name": "page.size.change",
490
+ "description": "pageSize 变化的回调",
491
+ "deprecated": "统一用 `page.change` 事件",
388
492
  "detail": {
389
- "type": "Layout[]"
493
+ "description": "改变后的页码及每页条数",
494
+ "type": "{\n page: number;\n pageSize: number;\n }"
390
495
  }
391
496
  },
392
497
  {
393
- "name": "cancel",
498
+ "name": "sort.change",
499
+ "description": "排序变化的回调",
394
500
  "detail": {
395
- "type": "void"
501
+ "description": "当前排序的信息",
502
+ "type": "Sort | Sort[] | undefined"
396
503
  }
397
504
  },
398
505
  {
399
- "name": "setting",
506
+ "name": "row.select",
507
+ "description": "行选中项发生变化时的回调",
400
508
  "detail": {
401
- "type": "void"
509
+ "description": "改变后的 rowKey 及行数据",
510
+ "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
402
511
  }
403
512
  },
404
513
  {
405
- "name": "action.click",
406
- "description": "操作点击事件",
514
+ "name": "row.expand",
515
+ "description": "点击展开图标时触发",
407
516
  "detail": {
408
- "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
409
- "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
517
+ "description": "当前行的展开情况及数据",
518
+ "type": "{\n expanded: boolean;\n record: RecordType;\n }"
519
+ }
520
+ },
521
+ {
522
+ "name": "expanded.rows.change",
523
+ "description": "展开的行变化时触发",
524
+ "detail": {
525
+ "description": "所有展开行的 key",
526
+ "type": "(string | number)[]"
527
+ }
528
+ },
529
+ {
530
+ "name": "row.drag",
531
+ "description": "表格行拖拽结束发生的事件",
532
+ "detail": {
533
+ "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
534
+ "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
410
535
  }
411
536
  }
412
537
  ],
413
538
  "slots": [],
414
539
  "methods": [
415
540
  {
416
- "name": "setLayouts",
541
+ "name": "search",
417
542
  "params": [
418
543
  {
419
- "name": "layouts",
420
- "type": "Layout[]"
544
+ "name": "params",
545
+ "type": "{ q: string }"
421
546
  }
422
- ]
547
+ ],
548
+ "description": "前端搜索",
549
+ "returns": {}
423
550
  }
424
551
  ],
425
552
  "parts": [],
426
- "description": "工作台布局V2,未使用shadow dom"
553
+ "description": "大型表格",
554
+ "category": "table"
427
555
  },
428
556
  {
429
- "name": "eo-workbench-layout",
557
+ "name": "eo-workbench-layout-v2",
430
558
  "properties": [
431
559
  {
432
560
  "name": "cardTitle",
@@ -441,10 +569,20 @@
441
569
  "attribute": false,
442
570
  "type": "Layout[]"
443
571
  },
572
+ {
573
+ "name": "toolbarBricks",
574
+ "attribute": false,
575
+ "type": "{ useBrick: UseSingleBrickConf[] }"
576
+ },
444
577
  {
445
578
  "name": "componentList",
446
579
  "attribute": false,
447
- "type": "Item[]"
580
+ "type": "WorkbenchComponent[]"
581
+ },
582
+ {
583
+ "name": "showSettingButton",
584
+ "description": "description: 用于设置页面样式和布局的按钮",
585
+ "type": "boolean"
448
586
  }
449
587
  ],
450
588
  "events": [
@@ -466,6 +604,12 @@
466
604
  "type": "void"
467
605
  }
468
606
  },
607
+ {
608
+ "name": "setting",
609
+ "detail": {
610
+ "type": "void"
611
+ }
612
+ },
469
613
  {
470
614
  "name": "action.click",
471
615
  "description": "操作点击事件",
@@ -488,8 +632,7 @@
488
632
  }
489
633
  ],
490
634
  "parts": [],
491
- "description": "工作台布局",
492
- "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
635
+ "description": "工作台布局V2,未使用shadow dom"
493
636
  },
494
637
  {
495
638
  "name": "eo-cascader",
@@ -598,6 +741,72 @@
598
741
  "description": "级联选择器",
599
742
  "category": "form-input-basic"
600
743
  },
744
+ {
745
+ "name": "eo-workbench-layout",
746
+ "properties": [
747
+ {
748
+ "name": "cardTitle",
749
+ "type": "string"
750
+ },
751
+ {
752
+ "name": "isEdit",
753
+ "type": "boolean"
754
+ },
755
+ {
756
+ "name": "layouts",
757
+ "attribute": false,
758
+ "type": "Layout[]"
759
+ },
760
+ {
761
+ "name": "componentList",
762
+ "attribute": false,
763
+ "type": "Item[]"
764
+ }
765
+ ],
766
+ "events": [
767
+ {
768
+ "name": "change",
769
+ "detail": {
770
+ "type": "Layout[]"
771
+ }
772
+ },
773
+ {
774
+ "name": "save",
775
+ "detail": {
776
+ "type": "Layout[]"
777
+ }
778
+ },
779
+ {
780
+ "name": "cancel",
781
+ "detail": {
782
+ "type": "void"
783
+ }
784
+ },
785
+ {
786
+ "name": "action.click",
787
+ "description": "操作点击事件",
788
+ "detail": {
789
+ "description": "{\naction: SimpleAction;\nlayouts: Layout[];\n}",
790
+ "type": "{\n action: SimpleAction;\n layouts: Layout[];\n }"
791
+ }
792
+ }
793
+ ],
794
+ "slots": [],
795
+ "methods": [
796
+ {
797
+ "name": "setLayouts",
798
+ "params": [
799
+ {
800
+ "name": "layouts",
801
+ "type": "Layout[]"
802
+ }
803
+ ]
804
+ }
805
+ ],
806
+ "parts": [],
807
+ "description": "工作台布局",
808
+ "deprecated": "Please use eo-workbench-layout-v2 which support global styles instead"
809
+ },
601
810
  {
602
811
  "name": "eo-tree",
603
812
  "properties": [
@@ -820,215 +1029,6 @@
820
1029
  "description": "树选择器",
821
1030
  "category": "form-input-basic"
822
1031
  },
823
- {
824
- "name": "eo-next-table",
825
- "properties": [
826
- {
827
- "name": "rowKey",
828
- "description": "指定表格行的 key",
829
- "default": "\"key\"",
830
- "type": "string"
831
- },
832
- {
833
- "name": "columns",
834
- "description": "列定义",
835
- "attribute": false,
836
- "type": "Column[]"
837
- },
838
- {
839
- "name": "cell",
840
- "description": "单元格",
841
- "attribute": false,
842
- "type": "CellConfig"
843
- },
844
- {
845
- "name": "dataSource",
846
- "description": "数据源",
847
- "attribute": false,
848
- "type": "DataSource"
849
- },
850
- {
851
- "name": "frontSearch",
852
- "description": "是否前端搜索",
853
- "type": "boolean"
854
- },
855
- {
856
- "name": "pagination",
857
- "description": "分页配置",
858
- "attribute": false,
859
- "type": "PaginationType"
860
- },
861
- {
862
- "name": "loading",
863
- "description": "显示加载中状态",
864
- "type": "boolean"
865
- },
866
- {
867
- "name": "multiSort",
868
- "description": "是否支持多列排序,前端搜索时需设置 column.sortPriority 优先级",
869
- "type": "boolean"
870
- },
871
- {
872
- "name": "sort",
873
- "description": "排序信息",
874
- "attribute": false,
875
- "type": "Sort | Sort[]"
876
- },
877
- {
878
- "name": "rowSelection",
879
- "description": "表格行可选择配置",
880
- "attribute": false,
881
- "type": "RowSelectionType"
882
- },
883
- {
884
- "name": "selectedRowKeys",
885
- "description": "选中项的 key",
886
- "attribute": false,
887
- "type": "(string | number)[]"
888
- },
889
- {
890
- "name": "hiddenColumns",
891
- "description": "隐藏的列(输入对应的 column.key)",
892
- "attribute": false,
893
- "type": "(string | number)[]"
894
- },
895
- {
896
- "name": "expandable",
897
- "description": "表格行展开配置",
898
- "attribute": false,
899
- "type": "ExpandableType"
900
- },
901
- {
902
- "name": "expandedRowKeys",
903
- "description": "展开项的 key",
904
- "attribute": false,
905
- "type": "(string | number)[]"
906
- },
907
- {
908
- "name": "childrenColumnName",
909
- "description": "树形结构的列名",
910
- "default": "\"children\"",
911
- "type": "string"
912
- },
913
- {
914
- "name": "rowDraggable",
915
- "description": "表格行拖拽配置",
916
- "type": "boolean"
917
- },
918
- {
919
- "name": "searchFields",
920
- "description": "进行前端搜索的字段,支持嵌套的写法。不配置的时候默认为对所有 column.dataIndex 进行前端搜索",
921
- "attribute": false,
922
- "type": "(string | string[])[]"
923
- },
924
- {
925
- "name": "size",
926
- "description": "表格大小",
927
- "default": "\"large\"",
928
- "type": "TableProps<RecordType>[\"size\"]"
929
- },
930
- {
931
- "name": "showHeader",
932
- "description": "是否显示表头",
933
- "default": "true",
934
- "type": "boolean"
935
- },
936
- {
937
- "name": "bordered",
938
- "description": "是否显示边框",
939
- "type": "boolean"
940
- },
941
- {
942
- "name": "scrollConfig",
943
- "description": "滚动配置",
944
- "default": "{ x: true }",
945
- "attribute": false,
946
- "type": "TableProps<RecordType>[\"scroll\"]"
947
- },
948
- {
949
- "name": "optimizedColumns",
950
- "description": "优化渲染的列(输入对应的 column.key)",
951
- "attribute": false,
952
- "type": "(string | number)[]"
953
- }
954
- ],
955
- "events": [
956
- {
957
- "name": "page.change",
958
- "description": "page 或 pageSize 改变的回调",
959
- "detail": {
960
- "description": "改变后的页码及每页条数",
961
- "type": "{ page: number; pageSize: number }"
962
- }
963
- },
964
- {
965
- "name": "page.size.change",
966
- "description": "pageSize 变化的回调",
967
- "deprecated": "统一用 `page.change` 事件",
968
- "detail": {
969
- "description": "改变后的页码及每页条数",
970
- "type": "{\n page: number;\n pageSize: number;\n }"
971
- }
972
- },
973
- {
974
- "name": "sort.change",
975
- "description": "排序变化的回调",
976
- "detail": {
977
- "description": "当前排序的信息",
978
- "type": "Sort | Sort[] | undefined"
979
- }
980
- },
981
- {
982
- "name": "row.select",
983
- "description": "行选中项发生变化时的回调",
984
- "detail": {
985
- "description": "改变后的 rowKey 及行数据",
986
- "type": "{\n keys: (string | number)[];\n rows: RecordType[];\n info: { type: RowSelectMethod };\n }"
987
- }
988
- },
989
- {
990
- "name": "row.expand",
991
- "description": "点击展开图标时触发",
992
- "detail": {
993
- "description": "当前行的展开情况及数据",
994
- "type": "{\n expanded: boolean;\n record: RecordType;\n }"
995
- }
996
- },
997
- {
998
- "name": "expanded.rows.change",
999
- "description": "展开的行变化时触发",
1000
- "detail": {
1001
- "description": "所有展开行的 key",
1002
- "type": "(string | number)[]"
1003
- }
1004
- },
1005
- {
1006
- "name": "row.drag",
1007
- "description": "表格行拖拽结束发生的事件",
1008
- "detail": {
1009
- "description": "重新排序的行数据、拖拽的行数据、放下位置的行数据",
1010
- "type": "{\n list: RecordType[];\n active: RecordType;\n over: RecordType;\n }"
1011
- }
1012
- }
1013
- ],
1014
- "slots": [],
1015
- "methods": [
1016
- {
1017
- "name": "search",
1018
- "params": [
1019
- {
1020
- "name": "params",
1021
- "type": "{ q: string }"
1022
- }
1023
- ],
1024
- "description": "前端搜索",
1025
- "returns": {}
1026
- }
1027
- ],
1028
- "parts": [],
1029
- "description": "大型表格",
1030
- "category": "table"
1031
- },
1032
1032
  {
1033
1033
  "name": "eo-text-tooltip",
1034
1034
  "properties": [