@next-bricks/presentational 1.19.0 → 1.20.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.
@@ -169,6 +169,12 @@
169
169
  "description": "图标是否放置在卡片封面",
170
170
  "type": "\"content\" | \"cover\""
171
171
  },
172
+ {
173
+ "name": "avatarPlacement",
174
+ "description": "图标位置,在 avatarPosition 不为 cover 时有效",
175
+ "default": "\"left\"",
176
+ "type": "\"left\" | \"title-left\""
177
+ },
172
178
  {
173
179
  "name": "tagConfig",
174
180
  "attribute": false,
@@ -307,63 +313,6 @@
307
313
  "description": "分页",
308
314
  "category": "navigation"
309
315
  },
310
- {
311
- "name": "eo-code-display",
312
- "alias": [
313
- "presentational.code-display"
314
- ],
315
- "properties": [
316
- {
317
- "name": "value",
318
- "description": "代码内容",
319
- "default": "\"\"",
320
- "type": "string"
321
- },
322
- {
323
- "name": "language",
324
- "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
325
- "type": "string"
326
- },
327
- {
328
- "name": "hideLineNumber",
329
- "description": "是否隐藏行号",
330
- "type": "boolean"
331
- },
332
- {
333
- "name": "maxLines",
334
- "description": "最大行数",
335
- "type": "number"
336
- },
337
- {
338
- "name": "minLines",
339
- "description": "最小行数",
340
- "type": "number"
341
- },
342
- {
343
- "name": "showCopyButton",
344
- "description": "是否显示复制按钮",
345
- "default": "true",
346
- "type": "boolean"
347
- },
348
- {
349
- "name": "showExportButton",
350
- "description": "是否显示导出按钮",
351
- "type": "boolean"
352
- },
353
- {
354
- "name": "exportFileName",
355
- "description": "导出的文件名",
356
- "default": "download.txt",
357
- "type": "string"
358
- }
359
- ],
360
- "events": [],
361
- "slots": [],
362
- "methods": [],
363
- "parts": [],
364
- "description": "代码展示",
365
- "category": "display-component"
366
- },
367
316
  {
368
317
  "name": "eo-alert",
369
318
  "alias": [
@@ -423,6 +372,91 @@
423
372
  "description": "告警提示",
424
373
  "category": "display-component"
425
374
  },
375
+ {
376
+ "name": "eo-info-card-item",
377
+ "properties": [
378
+ {
379
+ "name": "cardTitle",
380
+ "description": "title",
381
+ "type": "string"
382
+ },
383
+ {
384
+ "name": "description",
385
+ "description": "description",
386
+ "type": "string"
387
+ },
388
+ {
389
+ "name": "url",
390
+ "description": "链接地址",
391
+ "type": "string"
392
+ },
393
+ {
394
+ "name": "cardIcon",
395
+ "description": "图标",
396
+ "attribute": false,
397
+ "type": "IconAvatar"
398
+ },
399
+ {
400
+ "name": "detailList",
401
+ "description": "详细列表",
402
+ "attribute": false,
403
+ "type": "InfoCardDetail[]"
404
+ },
405
+ {
406
+ "name": "target",
407
+ "description": "链接跳转目标",
408
+ "type": "LinkProps[\"target\"]"
409
+ }
410
+ ],
411
+ "events": [],
412
+ "slots": [],
413
+ "methods": [],
414
+ "parts": [],
415
+ "description": "信息卡片",
416
+ "category": "card-info"
417
+ },
418
+ {
419
+ "name": "eo-divider",
420
+ "properties": [
421
+ {
422
+ "name": "orientation",
423
+ "description": "标题位置,在horizontal类型的分割线中使用",
424
+ "default": "center",
425
+ "attribute": false,
426
+ "type": "OrientationType"
427
+ },
428
+ {
429
+ "name": "dashed",
430
+ "description": "是否虚线",
431
+ "default": "false",
432
+ "type": "boolean"
433
+ },
434
+ {
435
+ "name": "type",
436
+ "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
437
+ "default": "\"horizontal\"",
438
+ "type": "dividerType"
439
+ },
440
+ {
441
+ "name": "proportion",
442
+ "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
443
+ "attribute": false,
444
+ "type": "[number, number]"
445
+ },
446
+ {
447
+ "name": "dividerStyle",
448
+ "description": "分割线自定义样式",
449
+ "attribute": false,
450
+ "type": "CSSProperties"
451
+ }
452
+ ],
453
+ "events": [],
454
+ "slots": [],
455
+ "methods": [],
456
+ "parts": [],
457
+ "description": "分割线",
458
+ "category": "container-display"
459
+ },
426
460
  {
427
461
  "name": "eo-humanize-time",
428
462
  "alias": [
@@ -489,89 +523,61 @@
489
523
  "description": "人性化时间展示,可显示完整时间、相对时间、未来时间、耗时等,支持自定义输入值格式和输出格式。"
490
524
  },
491
525
  {
492
- "name": "eo-info-card-item",
526
+ "name": "eo-code-display",
527
+ "alias": [
528
+ "presentational.code-display"
529
+ ],
493
530
  "properties": [
494
531
  {
495
- "name": "cardTitle",
496
- "description": "title",
497
- "type": "string"
498
- },
499
- {
500
- "name": "description",
501
- "description": "description",
532
+ "name": "value",
533
+ "description": "代码内容",
534
+ "default": "\"\"",
502
535
  "type": "string"
503
536
  },
504
537
  {
505
- "name": "url",
506
- "description": "链接地址",
538
+ "name": "language",
539
+ "description": "语言,具体查阅 [Supported languages](https://prismjs.com/#supported-languages)",
507
540
  "type": "string"
508
541
  },
509
542
  {
510
- "name": "cardIcon",
511
- "description": "图标",
512
- "attribute": false,
513
- "type": "IconAvatar"
543
+ "name": "hideLineNumber",
544
+ "description": "是否隐藏行号",
545
+ "type": "boolean"
514
546
  },
515
547
  {
516
- "name": "detailList",
517
- "description": "详细列表",
518
- "attribute": false,
519
- "type": "InfoCardDetail[]"
548
+ "name": "maxLines",
549
+ "description": "最大行数",
550
+ "type": "number"
520
551
  },
521
552
  {
522
- "name": "target",
523
- "description": "链接跳转目标",
524
- "type": "LinkProps[\"target\"]"
525
- }
526
- ],
527
- "events": [],
528
- "slots": [],
529
- "methods": [],
530
- "parts": [],
531
- "description": "信息卡片",
532
- "category": "card-info"
533
- },
534
- {
535
- "name": "eo-divider",
536
- "properties": [
537
- {
538
- "name": "orientation",
539
- "description": "标题位置,在horizontal类型的分割线中使用",
540
- "default": "center",
541
- "attribute": false,
542
- "type": "OrientationType"
553
+ "name": "minLines",
554
+ "description": "最小行数",
555
+ "type": "number"
543
556
  },
544
557
  {
545
- "name": "dashed",
546
- "description": "是否虚线",
547
- "default": "false",
558
+ "name": "showCopyButton",
559
+ "description": "是否显示复制按钮",
560
+ "default": "true",
548
561
  "type": "boolean"
549
562
  },
550
563
  {
551
- "name": "type",
552
- "description": "水平|垂直|放射类型,注意radiation是个特殊的类型,该样式是特定的",
553
- "default": "\"horizontal\"",
554
- "type": "dividerType"
555
- },
556
- {
557
- "name": "proportion",
558
- "description": "当用于数值显示的情况,eg: 如果要展示\"1/3\",那么传入就是[1,3], 该字段只适配于 type 为 radiation",
559
- "attribute": false,
560
- "type": "[number, number]"
564
+ "name": "showExportButton",
565
+ "description": "是否显示导出按钮",
566
+ "type": "boolean"
561
567
  },
562
568
  {
563
- "name": "dividerStyle",
564
- "description": "分割线自定义样式",
565
- "attribute": false,
566
- "type": "CSSProperties"
569
+ "name": "exportFileName",
570
+ "description": "导出的文件名",
571
+ "default": "download.txt",
572
+ "type": "string"
567
573
  }
568
574
  ],
569
575
  "events": [],
570
576
  "slots": [],
571
577
  "methods": [],
572
578
  "parts": [],
573
- "description": "分割线",
574
- "category": "container-display"
579
+ "description": "代码展示",
580
+ "category": "display-component"
575
581
  },
576
582
  {
577
583
  "name": "eo-statistics-card",
package/dist/types.json CHANGED
@@ -442,6 +442,22 @@
442
442
  ]
443
443
  }
444
444
  },
445
+ {
446
+ "name": "avatarPlacement",
447
+ "annotation": {
448
+ "type": "union",
449
+ "types": [
450
+ {
451
+ "type": "jsLiteral",
452
+ "value": "left"
453
+ },
454
+ {
455
+ "type": "jsLiteral",
456
+ "value": "title-left"
457
+ }
458
+ ]
459
+ }
460
+ },
445
461
  {
446
462
  "name": "tagConfig",
447
463
  "annotation": {
@@ -1660,6 +1676,197 @@
1660
1676
  "events": [],
1661
1677
  "methods": []
1662
1678
  },
1679
+ "eo-humanize-time": {
1680
+ "properties": [
1681
+ {
1682
+ "name": "value",
1683
+ "annotation": {
1684
+ "type": "union",
1685
+ "types": [
1686
+ {
1687
+ "type": "keyword",
1688
+ "value": "number"
1689
+ },
1690
+ {
1691
+ "type": "keyword",
1692
+ "value": "string"
1693
+ }
1694
+ ]
1695
+ }
1696
+ },
1697
+ {
1698
+ "name": "inputFormat",
1699
+ "annotation": {
1700
+ "type": "keyword",
1701
+ "value": "string"
1702
+ }
1703
+ },
1704
+ {
1705
+ "name": "outputFormat",
1706
+ "annotation": {
1707
+ "type": "keyword",
1708
+ "value": "string"
1709
+ }
1710
+ },
1711
+ {
1712
+ "name": "type",
1713
+ "annotation": {
1714
+ "type": "union",
1715
+ "types": [
1716
+ {
1717
+ "type": "jsLiteral",
1718
+ "value": "datetime"
1719
+ },
1720
+ {
1721
+ "type": "jsLiteral",
1722
+ "value": "date"
1723
+ }
1724
+ ]
1725
+ }
1726
+ },
1727
+ {
1728
+ "name": "isCostTime",
1729
+ "annotation": {
1730
+ "type": "keyword",
1731
+ "value": "boolean"
1732
+ }
1733
+ },
1734
+ {
1735
+ "name": "formatter",
1736
+ "annotation": {
1737
+ "type": "reference",
1738
+ "typeName": {
1739
+ "type": "identifier",
1740
+ "name": "HumanizeTimeFormat"
1741
+ }
1742
+ }
1743
+ },
1744
+ {
1745
+ "name": "isMicrosecond",
1746
+ "annotation": {
1747
+ "type": "keyword",
1748
+ "value": "boolean"
1749
+ }
1750
+ },
1751
+ {
1752
+ "name": "isMillisecond",
1753
+ "annotation": {
1754
+ "type": "keyword",
1755
+ "value": "boolean"
1756
+ }
1757
+ },
1758
+ {
1759
+ "name": "link",
1760
+ "annotation": {
1761
+ "type": "reference",
1762
+ "typeName": {
1763
+ "type": "identifier",
1764
+ "name": "LinkInfo"
1765
+ }
1766
+ }
1767
+ }
1768
+ ],
1769
+ "events": [],
1770
+ "methods": [],
1771
+ "types": [
1772
+ {
1773
+ "type": "interface",
1774
+ "name": "LinkInfo",
1775
+ "body": [
1776
+ {
1777
+ "type": "propertySignature",
1778
+ "key": {
1779
+ "type": "identifier",
1780
+ "name": "url"
1781
+ },
1782
+ "annotation": {
1783
+ "type": "keyword",
1784
+ "value": "string"
1785
+ },
1786
+ "computed": false
1787
+ },
1788
+ {
1789
+ "type": "propertySignature",
1790
+ "key": {
1791
+ "type": "identifier",
1792
+ "name": "target"
1793
+ },
1794
+ "annotation": {
1795
+ "type": "reference",
1796
+ "typeName": {
1797
+ "type": "identifier",
1798
+ "name": "Target"
1799
+ }
1800
+ },
1801
+ "optional": true,
1802
+ "computed": false
1803
+ }
1804
+ ]
1805
+ }
1806
+ ]
1807
+ },
1808
+ "eo-code-display": {
1809
+ "properties": [
1810
+ {
1811
+ "name": "value",
1812
+ "annotation": {
1813
+ "type": "keyword",
1814
+ "value": "string"
1815
+ }
1816
+ },
1817
+ {
1818
+ "name": "language",
1819
+ "annotation": {
1820
+ "type": "keyword",
1821
+ "value": "string"
1822
+ }
1823
+ },
1824
+ {
1825
+ "name": "hideLineNumber",
1826
+ "annotation": {
1827
+ "type": "keyword",
1828
+ "value": "boolean"
1829
+ }
1830
+ },
1831
+ {
1832
+ "name": "maxLines",
1833
+ "annotation": {
1834
+ "type": "keyword",
1835
+ "value": "number"
1836
+ }
1837
+ },
1838
+ {
1839
+ "name": "minLines",
1840
+ "annotation": {
1841
+ "type": "keyword",
1842
+ "value": "number"
1843
+ }
1844
+ },
1845
+ {
1846
+ "name": "showCopyButton",
1847
+ "annotation": {
1848
+ "type": "keyword",
1849
+ "value": "boolean"
1850
+ }
1851
+ },
1852
+ {
1853
+ "name": "showExportButton",
1854
+ "annotation": {
1855
+ "type": "keyword",
1856
+ "value": "boolean"
1857
+ }
1858
+ },
1859
+ {
1860
+ "name": "exportFileName",
1861
+ "annotation": {
1862
+ "type": "keyword",
1863
+ "value": "string"
1864
+ }
1865
+ }
1866
+ ],
1867
+ "events": [],
1868
+ "methods": []
1869
+ },
1663
1870
  "eo-pagination": {
1664
1871
  "properties": [
1665
1872
  {
@@ -1853,68 +2060,6 @@
1853
2060
  }
1854
2061
  ]
1855
2062
  },
1856
- "eo-code-display": {
1857
- "properties": [
1858
- {
1859
- "name": "value",
1860
- "annotation": {
1861
- "type": "keyword",
1862
- "value": "string"
1863
- }
1864
- },
1865
- {
1866
- "name": "language",
1867
- "annotation": {
1868
- "type": "keyword",
1869
- "value": "string"
1870
- }
1871
- },
1872
- {
1873
- "name": "hideLineNumber",
1874
- "annotation": {
1875
- "type": "keyword",
1876
- "value": "boolean"
1877
- }
1878
- },
1879
- {
1880
- "name": "maxLines",
1881
- "annotation": {
1882
- "type": "keyword",
1883
- "value": "number"
1884
- }
1885
- },
1886
- {
1887
- "name": "minLines",
1888
- "annotation": {
1889
- "type": "keyword",
1890
- "value": "number"
1891
- }
1892
- },
1893
- {
1894
- "name": "showCopyButton",
1895
- "annotation": {
1896
- "type": "keyword",
1897
- "value": "boolean"
1898
- }
1899
- },
1900
- {
1901
- "name": "showExportButton",
1902
- "annotation": {
1903
- "type": "keyword",
1904
- "value": "boolean"
1905
- }
1906
- },
1907
- {
1908
- "name": "exportFileName",
1909
- "annotation": {
1910
- "type": "keyword",
1911
- "value": "string"
1912
- }
1913
- }
1914
- ],
1915
- "events": [],
1916
- "methods": []
1917
- },
1918
2063
  "eo-alert": {
1919
2064
  "properties": [
1920
2065
  {
@@ -2024,134 +2169,5 @@
2024
2169
  ]
2025
2170
  }
2026
2171
  ]
2027
- },
2028
- "eo-humanize-time": {
2029
- "properties": [
2030
- {
2031
- "name": "value",
2032
- "annotation": {
2033
- "type": "union",
2034
- "types": [
2035
- {
2036
- "type": "keyword",
2037
- "value": "number"
2038
- },
2039
- {
2040
- "type": "keyword",
2041
- "value": "string"
2042
- }
2043
- ]
2044
- }
2045
- },
2046
- {
2047
- "name": "inputFormat",
2048
- "annotation": {
2049
- "type": "keyword",
2050
- "value": "string"
2051
- }
2052
- },
2053
- {
2054
- "name": "outputFormat",
2055
- "annotation": {
2056
- "type": "keyword",
2057
- "value": "string"
2058
- }
2059
- },
2060
- {
2061
- "name": "type",
2062
- "annotation": {
2063
- "type": "union",
2064
- "types": [
2065
- {
2066
- "type": "jsLiteral",
2067
- "value": "datetime"
2068
- },
2069
- {
2070
- "type": "jsLiteral",
2071
- "value": "date"
2072
- }
2073
- ]
2074
- }
2075
- },
2076
- {
2077
- "name": "isCostTime",
2078
- "annotation": {
2079
- "type": "keyword",
2080
- "value": "boolean"
2081
- }
2082
- },
2083
- {
2084
- "name": "formatter",
2085
- "annotation": {
2086
- "type": "reference",
2087
- "typeName": {
2088
- "type": "identifier",
2089
- "name": "HumanizeTimeFormat"
2090
- }
2091
- }
2092
- },
2093
- {
2094
- "name": "isMicrosecond",
2095
- "annotation": {
2096
- "type": "keyword",
2097
- "value": "boolean"
2098
- }
2099
- },
2100
- {
2101
- "name": "isMillisecond",
2102
- "annotation": {
2103
- "type": "keyword",
2104
- "value": "boolean"
2105
- }
2106
- },
2107
- {
2108
- "name": "link",
2109
- "annotation": {
2110
- "type": "reference",
2111
- "typeName": {
2112
- "type": "identifier",
2113
- "name": "LinkInfo"
2114
- }
2115
- }
2116
- }
2117
- ],
2118
- "events": [],
2119
- "methods": [],
2120
- "types": [
2121
- {
2122
- "type": "interface",
2123
- "name": "LinkInfo",
2124
- "body": [
2125
- {
2126
- "type": "propertySignature",
2127
- "key": {
2128
- "type": "identifier",
2129
- "name": "url"
2130
- },
2131
- "annotation": {
2132
- "type": "keyword",
2133
- "value": "string"
2134
- },
2135
- "computed": false
2136
- },
2137
- {
2138
- "type": "propertySignature",
2139
- "key": {
2140
- "type": "identifier",
2141
- "name": "target"
2142
- },
2143
- "annotation": {
2144
- "type": "reference",
2145
- "typeName": {
2146
- "type": "identifier",
2147
- "name": "Target"
2148
- }
2149
- },
2150
- "optional": true,
2151
- "computed": false
2152
- }
2153
- ]
2154
- }
2155
- ]
2156
2172
  }
2157
2173
  }