@1money/component-ui 0.0.46 → 0.0.47
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/es/components/Table/Table.d.ts +2 -2
- package/es/components/Table/Table.js +25 -148
- package/es/components/Table/VirtualTable.d.ts +2 -2
- package/es/components/Table/VirtualTable.js +30 -143
- package/es/components/Table/core/useTableColumns.d.ts +21 -7
- package/es/components/Table/core/useTableColumns.js +65 -13
- package/es/components/Table/core/useTableDataPipeline.d.ts +13 -6
- package/es/components/Table/core/useTableDataPipeline.js +193 -27
- package/es/components/Table/core/useTableExpand.d.ts +2 -2
- package/es/components/Table/core/useTableSelection.d.ts +3 -5
- package/es/components/Table/core/useTableSelection.js +1 -1
- package/es/components/Table/core/useTableSetup.d.ts +42 -0
- package/es/components/Table/core/useTableSetup.js +175 -0
- package/es/components/Table/features/ExpandTrigger.js +2 -1
- package/es/components/Table/features/FilterTrigger.d.ts +9 -0
- package/es/components/Table/features/FilterTrigger.js +157 -0
- package/es/components/Table/features/SelectionColumn.d.ts +3 -2
- package/es/components/Table/features/SelectionColumn.js +19 -6
- package/es/components/Table/interface.d.ts +102 -21
- package/es/components/Table/renderers/BodyCell.d.ts +4 -4
- package/es/components/Table/renderers/BodyCell.js +1 -1
- package/es/components/Table/renderers/HeaderCell.d.ts +8 -4
- package/es/components/Table/renderers/HeaderCell.js +13 -3
- package/es/components/Table/style/Table.css +1 -1
- package/es/index.css +1 -1
- package/lib/components/Table/Table.d.ts +2 -2
- package/lib/components/Table/Table.js +24 -150
- package/lib/components/Table/VirtualTable.d.ts +2 -2
- package/lib/components/Table/VirtualTable.js +28 -144
- package/lib/components/Table/core/useTableColumns.d.ts +21 -7
- package/lib/components/Table/core/useTableColumns.js +65 -13
- package/lib/components/Table/core/useTableDataPipeline.d.ts +13 -6
- package/lib/components/Table/core/useTableDataPipeline.js +192 -26
- package/lib/components/Table/core/useTableExpand.d.ts +2 -2
- package/lib/components/Table/core/useTableSelection.d.ts +3 -5
- package/lib/components/Table/core/useTableSelection.js +1 -1
- package/lib/components/Table/core/useTableSetup.d.ts +42 -0
- package/lib/components/Table/core/useTableSetup.js +184 -0
- package/lib/components/Table/features/ExpandTrigger.js +2 -1
- package/lib/components/Table/features/FilterTrigger.d.ts +9 -0
- package/lib/components/Table/features/FilterTrigger.js +164 -0
- package/lib/components/Table/features/SelectionColumn.d.ts +3 -2
- package/lib/components/Table/features/SelectionColumn.js +19 -6
- package/lib/components/Table/interface.d.ts +102 -21
- package/lib/components/Table/renderers/BodyCell.d.ts +4 -4
- package/lib/components/Table/renderers/BodyCell.js +1 -1
- package/lib/components/Table/renderers/HeaderCell.d.ts +8 -4
- package/lib/components/Table/renderers/HeaderCell.js +13 -3
- package/lib/components/Table/style/Table.css +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/scripts/mcp-server/examples.generated.json +120 -0
- package/scripts/mcp-server/index.generated.json +336 -14
|
@@ -13590,15 +13590,228 @@
|
|
|
13590
13590
|
},
|
|
13591
13591
|
{
|
|
13592
13592
|
"name": "Table",
|
|
13593
|
-
"kind": "
|
|
13594
|
-
"category": "
|
|
13593
|
+
"kind": "component",
|
|
13594
|
+
"category": "display",
|
|
13595
13595
|
"summary": "",
|
|
13596
13596
|
"importPath": "@1money/component-ui",
|
|
13597
|
-
"subpathImport":
|
|
13598
|
-
"sourceFile": "src/components/Table/
|
|
13599
|
-
"props": [
|
|
13600
|
-
|
|
13601
|
-
|
|
13597
|
+
"subpathImport": "@1money/component-ui/Table",
|
|
13598
|
+
"sourceFile": "src/components/Table/Table.tsx",
|
|
13599
|
+
"props": [
|
|
13600
|
+
{
|
|
13601
|
+
"name": "prefixCls",
|
|
13602
|
+
"type": "string",
|
|
13603
|
+
"optional": true,
|
|
13604
|
+
"default": null,
|
|
13605
|
+
"description": "",
|
|
13606
|
+
"inheritedFrom": null
|
|
13607
|
+
},
|
|
13608
|
+
{
|
|
13609
|
+
"name": "columns",
|
|
13610
|
+
"type": "TableColumnType<T>[]",
|
|
13611
|
+
"optional": false,
|
|
13612
|
+
"default": null,
|
|
13613
|
+
"description": "",
|
|
13614
|
+
"inheritedFrom": null
|
|
13615
|
+
},
|
|
13616
|
+
{
|
|
13617
|
+
"name": "dataSource",
|
|
13618
|
+
"type": "T[]",
|
|
13619
|
+
"optional": false,
|
|
13620
|
+
"default": null,
|
|
13621
|
+
"description": "",
|
|
13622
|
+
"inheritedFrom": null
|
|
13623
|
+
},
|
|
13624
|
+
{
|
|
13625
|
+
"name": "rowKey",
|
|
13626
|
+
"type": "string | keyof T | ((record: T) => Key)",
|
|
13627
|
+
"optional": true,
|
|
13628
|
+
"default": null,
|
|
13629
|
+
"description": "Row key for tracking.",
|
|
13630
|
+
"inheritedFrom": null
|
|
13631
|
+
},
|
|
13632
|
+
{
|
|
13633
|
+
"name": "size",
|
|
13634
|
+
"type": "TableSize",
|
|
13635
|
+
"optional": true,
|
|
13636
|
+
"default": null,
|
|
13637
|
+
"description": "",
|
|
13638
|
+
"inheritedFrom": null
|
|
13639
|
+
},
|
|
13640
|
+
{
|
|
13641
|
+
"name": "variant",
|
|
13642
|
+
"type": "TableVariant",
|
|
13643
|
+
"optional": true,
|
|
13644
|
+
"default": null,
|
|
13645
|
+
"description": "",
|
|
13646
|
+
"inheritedFrom": null
|
|
13647
|
+
},
|
|
13648
|
+
{
|
|
13649
|
+
"name": "bordered",
|
|
13650
|
+
"type": "boolean",
|
|
13651
|
+
"optional": true,
|
|
13652
|
+
"default": null,
|
|
13653
|
+
"description": "",
|
|
13654
|
+
"inheritedFrom": null
|
|
13655
|
+
},
|
|
13656
|
+
{
|
|
13657
|
+
"name": "scroll",
|
|
13658
|
+
"type": "{ x?: number | true | string; y?: number | string }",
|
|
13659
|
+
"optional": true,
|
|
13660
|
+
"default": null,
|
|
13661
|
+
"description": "",
|
|
13662
|
+
"inheritedFrom": null
|
|
13663
|
+
},
|
|
13664
|
+
{
|
|
13665
|
+
"name": "sticky",
|
|
13666
|
+
"type": "boolean | { offsetHeader?: number; offsetScroll?: number }",
|
|
13667
|
+
"optional": true,
|
|
13668
|
+
"default": null,
|
|
13669
|
+
"description": "",
|
|
13670
|
+
"inheritedFrom": null
|
|
13671
|
+
},
|
|
13672
|
+
{
|
|
13673
|
+
"name": "pagination",
|
|
13674
|
+
"type": "false | TablePaginationConfig",
|
|
13675
|
+
"optional": true,
|
|
13676
|
+
"default": null,
|
|
13677
|
+
"description": "",
|
|
13678
|
+
"inheritedFrom": null
|
|
13679
|
+
},
|
|
13680
|
+
{
|
|
13681
|
+
"name": "rowSelection",
|
|
13682
|
+
"type": "TableRowSelection<T>",
|
|
13683
|
+
"optional": true,
|
|
13684
|
+
"default": null,
|
|
13685
|
+
"description": "",
|
|
13686
|
+
"inheritedFrom": null
|
|
13687
|
+
},
|
|
13688
|
+
{
|
|
13689
|
+
"name": "expandable",
|
|
13690
|
+
"type": "TableExpandableConfig<T>",
|
|
13691
|
+
"optional": true,
|
|
13692
|
+
"default": null,
|
|
13693
|
+
"description": "",
|
|
13694
|
+
"inheritedFrom": null
|
|
13695
|
+
},
|
|
13696
|
+
{
|
|
13697
|
+
"name": "childrenColumnName",
|
|
13698
|
+
"type": "string",
|
|
13699
|
+
"optional": true,
|
|
13700
|
+
"default": null,
|
|
13701
|
+
"description": "",
|
|
13702
|
+
"inheritedFrom": null
|
|
13703
|
+
},
|
|
13704
|
+
{
|
|
13705
|
+
"name": "indentSize",
|
|
13706
|
+
"type": "number",
|
|
13707
|
+
"optional": true,
|
|
13708
|
+
"default": null,
|
|
13709
|
+
"description": "",
|
|
13710
|
+
"inheritedFrom": null
|
|
13711
|
+
},
|
|
13712
|
+
{
|
|
13713
|
+
"name": "loading",
|
|
13714
|
+
"type": "boolean",
|
|
13715
|
+
"optional": true,
|
|
13716
|
+
"default": null,
|
|
13717
|
+
"description": "",
|
|
13718
|
+
"inheritedFrom": null
|
|
13719
|
+
},
|
|
13720
|
+
{
|
|
13721
|
+
"name": "empty",
|
|
13722
|
+
"type": "EmptyProps | ReactNode",
|
|
13723
|
+
"optional": true,
|
|
13724
|
+
"default": null,
|
|
13725
|
+
"description": "",
|
|
13726
|
+
"inheritedFrom": null
|
|
13727
|
+
},
|
|
13728
|
+
{
|
|
13729
|
+
"name": "showHeader",
|
|
13730
|
+
"type": "boolean",
|
|
13731
|
+
"optional": true,
|
|
13732
|
+
"default": null,
|
|
13733
|
+
"description": "",
|
|
13734
|
+
"inheritedFrom": null
|
|
13735
|
+
},
|
|
13736
|
+
{
|
|
13737
|
+
"name": "tableLayout",
|
|
13738
|
+
"type": "TableLayout",
|
|
13739
|
+
"optional": true,
|
|
13740
|
+
"default": null,
|
|
13741
|
+
"description": "",
|
|
13742
|
+
"inheritedFrom": null
|
|
13743
|
+
},
|
|
13744
|
+
{
|
|
13745
|
+
"name": "components",
|
|
13746
|
+
"type": "TableComponents<T>",
|
|
13747
|
+
"optional": true,
|
|
13748
|
+
"default": null,
|
|
13749
|
+
"description": "",
|
|
13750
|
+
"inheritedFrom": null
|
|
13751
|
+
},
|
|
13752
|
+
{
|
|
13753
|
+
"name": "direction",
|
|
13754
|
+
"type": "TableDirection",
|
|
13755
|
+
"optional": true,
|
|
13756
|
+
"default": null,
|
|
13757
|
+
"description": "",
|
|
13758
|
+
"inheritedFrom": null
|
|
13759
|
+
},
|
|
13760
|
+
{
|
|
13761
|
+
"name": "rowHoverable",
|
|
13762
|
+
"type": "boolean",
|
|
13763
|
+
"optional": true,
|
|
13764
|
+
"default": null,
|
|
13765
|
+
"description": "",
|
|
13766
|
+
"inheritedFrom": null
|
|
13767
|
+
},
|
|
13768
|
+
{
|
|
13769
|
+
"name": "onRow",
|
|
13770
|
+
"type": "TableGetComponentProps<T>",
|
|
13771
|
+
"optional": true,
|
|
13772
|
+
"default": null,
|
|
13773
|
+
"description": "",
|
|
13774
|
+
"inheritedFrom": null
|
|
13775
|
+
},
|
|
13776
|
+
{
|
|
13777
|
+
"name": "rowClassName",
|
|
13778
|
+
"type": "TableRowClassName<T>",
|
|
13779
|
+
"optional": true,
|
|
13780
|
+
"default": null,
|
|
13781
|
+
"description": "",
|
|
13782
|
+
"inheritedFrom": null
|
|
13783
|
+
},
|
|
13784
|
+
{
|
|
13785
|
+
"name": "summary",
|
|
13786
|
+
"type": "(data: readonly T[]) => ReactNode",
|
|
13787
|
+
"optional": true,
|
|
13788
|
+
"default": null,
|
|
13789
|
+
"description": "",
|
|
13790
|
+
"inheritedFrom": null
|
|
13791
|
+
},
|
|
13792
|
+
{
|
|
13793
|
+
"name": "onChange",
|
|
13794
|
+
"type": "(meta: TableChangeMeta<T>) => void",
|
|
13795
|
+
"optional": true,
|
|
13796
|
+
"default": null,
|
|
13797
|
+
"description": "",
|
|
13798
|
+
"inheritedFrom": null
|
|
13799
|
+
}
|
|
13800
|
+
],
|
|
13801
|
+
"extends": [
|
|
13802
|
+
"Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>"
|
|
13803
|
+
],
|
|
13804
|
+
"relatedSymbols": [
|
|
13805
|
+
"TableChangeMeta",
|
|
13806
|
+
"TableColumn",
|
|
13807
|
+
"TableExpandableConfig",
|
|
13808
|
+
"TablePaginationConfig",
|
|
13809
|
+
"TableProps",
|
|
13810
|
+
"TableRef",
|
|
13811
|
+
"TableRowSelection",
|
|
13812
|
+
"VirtualTable",
|
|
13813
|
+
"VirtualTableProps"
|
|
13814
|
+
],
|
|
13602
13815
|
"searchTags": [
|
|
13603
13816
|
"table"
|
|
13604
13817
|
],
|
|
@@ -13607,6 +13820,86 @@
|
|
|
13607
13820
|
{
|
|
13608
13821
|
"hash": "c8bb2acc504d9189611763df8eebcb47062fe8c1c4ae3990fe6d9495cac88285",
|
|
13609
13822
|
"source": "canonical"
|
|
13823
|
+
},
|
|
13824
|
+
{
|
|
13825
|
+
"hash": "f59241468963f180aad8e4bfdf87c64b8defd166186019821c0a5462fcd36f72",
|
|
13826
|
+
"source": "readme"
|
|
13827
|
+
},
|
|
13828
|
+
{
|
|
13829
|
+
"hash": "83d457fb7d2b3478dda19b79185daa8909a55b9786ff1b3cf560cec95743926d",
|
|
13830
|
+
"source": "readme"
|
|
13831
|
+
},
|
|
13832
|
+
{
|
|
13833
|
+
"hash": "2bfe01695a2d2aa890db17bef359b1c81761ad66301c5c548fe2e23750a8e5c8",
|
|
13834
|
+
"source": "readme"
|
|
13835
|
+
},
|
|
13836
|
+
{
|
|
13837
|
+
"hash": "e507eed4788971490bf4cdd4a72e99bbbbb78635073b89a32022fdb2055c6a3b",
|
|
13838
|
+
"source": "readme"
|
|
13839
|
+
},
|
|
13840
|
+
{
|
|
13841
|
+
"hash": "0e53815284d097cccdcb6cdff3952b42734dda8b58b4cdeac1948e5f1d2b3587",
|
|
13842
|
+
"source": "stories"
|
|
13843
|
+
},
|
|
13844
|
+
{
|
|
13845
|
+
"hash": "9c1283e9fdf9b6890dff56e79eee2e25f49c665934a1a11e56ef9e636b23642d",
|
|
13846
|
+
"source": "stories"
|
|
13847
|
+
},
|
|
13848
|
+
{
|
|
13849
|
+
"hash": "1c879c8d080ccdc8a79261e997d29861634e6ae8f74d950f7305a1167ddb1fb5",
|
|
13850
|
+
"source": "stories"
|
|
13851
|
+
},
|
|
13852
|
+
{
|
|
13853
|
+
"hash": "a5a0117d707475ad307fab2299eec3c085bafe1954ddc3724c5fdd67f326f19d",
|
|
13854
|
+
"source": "stories"
|
|
13855
|
+
},
|
|
13856
|
+
{
|
|
13857
|
+
"hash": "5b6e430e96dfe718f6bd3291f933d68b2a94eed3e1bd87766079d71544d56592",
|
|
13858
|
+
"source": "stories"
|
|
13859
|
+
},
|
|
13860
|
+
{
|
|
13861
|
+
"hash": "6f1ac382a21af48aded6d900902e14d386aec026b6a51b8efa0fbac1f515290a",
|
|
13862
|
+
"source": "stories"
|
|
13863
|
+
},
|
|
13864
|
+
{
|
|
13865
|
+
"hash": "082ec26c8081a863c586ce7bb5d2c1fc35a0e901d02e7fe1a7e0d66fe526848e",
|
|
13866
|
+
"source": "stories"
|
|
13867
|
+
},
|
|
13868
|
+
{
|
|
13869
|
+
"hash": "c23b54aeab8234b5665b9182a68e75b1d9b5ea969d997e08e1d4a41b85679209",
|
|
13870
|
+
"source": "stories"
|
|
13871
|
+
},
|
|
13872
|
+
{
|
|
13873
|
+
"hash": "b9cc21db46c34c1f749ec2f5cc996c0eb92608376b07b2eb61f2bc427f045927",
|
|
13874
|
+
"source": "stories"
|
|
13875
|
+
},
|
|
13876
|
+
{
|
|
13877
|
+
"hash": "0b1bd0a0c931658fda5287f712844f21f5f69c50228164f8c97deeb385ed9187",
|
|
13878
|
+
"source": "stories"
|
|
13879
|
+
},
|
|
13880
|
+
{
|
|
13881
|
+
"hash": "1622196bc98fc696224e0af42f3858aefbb46ae0237ebd7ed753d40c2e0f87d6",
|
|
13882
|
+
"source": "stories"
|
|
13883
|
+
},
|
|
13884
|
+
{
|
|
13885
|
+
"hash": "b8db243638e9c756f8cc0fc389226284ba74cf2edceef451b608cb3ab9bfc07e",
|
|
13886
|
+
"source": "stories"
|
|
13887
|
+
},
|
|
13888
|
+
{
|
|
13889
|
+
"hash": "da280e337376d16711ea44dd2d411fa903a7b572376669f415c392652b3c6142",
|
|
13890
|
+
"source": "stories"
|
|
13891
|
+
},
|
|
13892
|
+
{
|
|
13893
|
+
"hash": "96217a515862bd694993e67890c003764d3d7dae09ba8304339664ed91eb84ac",
|
|
13894
|
+
"source": "stories"
|
|
13895
|
+
},
|
|
13896
|
+
{
|
|
13897
|
+
"hash": "da7b2e8d26561713d8946001e3c1ba6ea8c38e7fe99e4982b9eadd4fec64215d",
|
|
13898
|
+
"source": "stories"
|
|
13899
|
+
},
|
|
13900
|
+
{
|
|
13901
|
+
"hash": "ef4904f8e094b98c456651c4a86b1a206b470678f945596a762b38b9855c76ae",
|
|
13902
|
+
"source": "stories"
|
|
13610
13903
|
}
|
|
13611
13904
|
]
|
|
13612
13905
|
},
|
|
@@ -15865,15 +16158,44 @@
|
|
|
15865
16158
|
},
|
|
15866
16159
|
{
|
|
15867
16160
|
"name": "VirtualTable",
|
|
15868
|
-
"kind": "
|
|
15869
|
-
"category": "
|
|
16161
|
+
"kind": "component",
|
|
16162
|
+
"category": "display",
|
|
15870
16163
|
"summary": "",
|
|
15871
16164
|
"importPath": "@1money/component-ui",
|
|
15872
|
-
"subpathImport":
|
|
15873
|
-
"sourceFile": "src/components/Table/
|
|
15874
|
-
"props": [
|
|
15875
|
-
|
|
15876
|
-
|
|
16165
|
+
"subpathImport": "@1money/component-ui/Table",
|
|
16166
|
+
"sourceFile": "src/components/Table/VirtualTable.tsx",
|
|
16167
|
+
"props": [
|
|
16168
|
+
{
|
|
16169
|
+
"name": "scroll",
|
|
16170
|
+
"type": "{ x: number; y: number }",
|
|
16171
|
+
"optional": false,
|
|
16172
|
+
"default": null,
|
|
16173
|
+
"description": "",
|
|
16174
|
+
"inheritedFrom": null
|
|
16175
|
+
},
|
|
16176
|
+
{
|
|
16177
|
+
"name": "listItemHeight",
|
|
16178
|
+
"type": "number",
|
|
16179
|
+
"optional": true,
|
|
16180
|
+
"default": null,
|
|
16181
|
+
"description": "",
|
|
16182
|
+
"inheritedFrom": null
|
|
16183
|
+
}
|
|
16184
|
+
],
|
|
16185
|
+
"extends": [
|
|
16186
|
+
"Omit<TableProps<T>, 'scroll'>"
|
|
16187
|
+
],
|
|
16188
|
+
"relatedSymbols": [
|
|
16189
|
+
"Table",
|
|
16190
|
+
"TableChangeMeta",
|
|
16191
|
+
"TableColumn",
|
|
16192
|
+
"TableExpandableConfig",
|
|
16193
|
+
"TablePaginationConfig",
|
|
16194
|
+
"TableProps",
|
|
16195
|
+
"TableRef",
|
|
16196
|
+
"TableRowSelection",
|
|
16197
|
+
"VirtualTableProps"
|
|
16198
|
+
],
|
|
15877
16199
|
"searchTags": [
|
|
15878
16200
|
"table"
|
|
15879
16201
|
],
|