@cmstops/pro-compo 0.1.17 → 0.1.19

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 (96) hide show
  1. package/dist/index.css +70 -82
  2. package/dist/index.min.css +1 -1
  3. package/es/contentDetailList/component.js +7 -7
  4. package/es/contentDetailList/components/Content/CompoItem/index.js +3 -2
  5. package/es/contentDetailList/components/Content/ContentListItem/index.js +21 -13
  6. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -3
  7. package/es/contentDetailList/components/Content/DocItem/index.js +4 -2
  8. package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +9 -8
  9. package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
  10. package/es/contentDetailList/components/Content/LiveItem/index.js +3 -2
  11. package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
  12. package/es/contentDetailList/components/Content/index.js +17 -19
  13. package/es/contentDetailList/scripts/index.d.ts +0 -10
  14. package/es/contentDetailList/style/ComoItem.less +7 -19
  15. package/es/contentDetailList/style/ContentListItem.less +28 -28
  16. package/es/contentDetailList/style/DocItem.less +10 -16
  17. package/es/contentDetailList/style/DocTags.less +2 -1
  18. package/es/contentDetailList/style/KongoNavItem.less +6 -19
  19. package/es/contentDetailList/style/LiveItem.less +8 -20
  20. package/es/contentDetailList/style/MaccountItem.less +8 -16
  21. package/es/contentDetailList/style/index.css +68 -82
  22. package/es/contentDetailList/style/index.less +10 -0
  23. package/es/emptyData/component.js +55 -11
  24. package/es/emptyData/svg/acount.js +19 -0
  25. package/es/emptyData/svg/add.d.ts +0 -0
  26. package/es/emptyData/svg/add.js +22 -0
  27. package/es/emptyData/svg/analize.js +19 -0
  28. package/es/emptyData/svg/analize_fail.js +19 -0
  29. package/es/emptyData/svg/empty.js +19 -0
  30. package/es/emptyData/svg/file.js +19 -0
  31. package/es/emptyData/svg/manager.js +19 -0
  32. package/es/emptyData/svg/message.js +31 -0
  33. package/es/emptyData/svg/noanalize.js +19 -0
  34. package/es/emptyData/svg/null.js +19 -0
  35. package/es/emptyData/svg/search.js +19 -0
  36. package/es/emptyData/svg/star.js +19 -0
  37. package/es/emptyData/svg/trash.js +19 -0
  38. package/es/emptyData/svg/user.js +19 -0
  39. package/es/index.css +70 -82
  40. package/es/mediaFilter/style/index.css +1 -0
  41. package/es/mediaFilter/style/index.less +1 -0
  42. package/es/style.css +1 -0
  43. package/es/typeIcons/style/index.css +1 -0
  44. package/es/typeIcons/style/index.less +1 -0
  45. package/es/utils/doc.d.ts +1 -0
  46. package/es/utils/doc.js +27 -1
  47. package/es/utils/index.d.ts +2 -0
  48. package/es/utils/index.js +16 -1
  49. package/es/utils/typeMap.d.ts +19 -0
  50. package/es/utils/typeMap.js +65 -1
  51. package/lib/contentDetailList/component.js +7 -7
  52. package/lib/contentDetailList/components/Content/CompoItem/index.js +4 -3
  53. package/lib/contentDetailList/components/Content/ContentListItem/index.js +22 -14
  54. package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +8 -9
  55. package/lib/contentDetailList/components/Content/DocItem/index.js +8 -6
  56. package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +16 -15
  57. package/lib/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
  58. package/lib/contentDetailList/components/Content/LiveItem/index.js +3 -2
  59. package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
  60. package/lib/contentDetailList/components/Content/index.js +16 -18
  61. package/lib/contentDetailList/style/ComoItem.less +7 -19
  62. package/lib/contentDetailList/style/ContentListItem.less +28 -28
  63. package/lib/contentDetailList/style/DocItem.less +10 -16
  64. package/lib/contentDetailList/style/DocTags.less +2 -1
  65. package/lib/contentDetailList/style/KongoNavItem.less +6 -19
  66. package/lib/contentDetailList/style/LiveItem.less +8 -20
  67. package/lib/contentDetailList/style/MaccountItem.less +8 -16
  68. package/lib/contentDetailList/style/index.css +68 -82
  69. package/lib/contentDetailList/style/index.less +10 -0
  70. package/lib/emptyData/component.js +85 -10
  71. package/lib/emptyData/svg/acount.js +20 -0
  72. package/lib/emptyData/svg/add.js +23 -0
  73. package/lib/emptyData/svg/analize.js +20 -0
  74. package/lib/emptyData/svg/analize_fail.js +20 -0
  75. package/lib/emptyData/svg/empty.js +20 -0
  76. package/lib/emptyData/svg/file.js +20 -0
  77. package/lib/emptyData/svg/manager.js +20 -0
  78. package/lib/emptyData/svg/message.js +32 -0
  79. package/lib/emptyData/svg/noanalize.js +20 -0
  80. package/lib/emptyData/svg/null.js +20 -0
  81. package/lib/emptyData/svg/search.js +20 -0
  82. package/lib/emptyData/svg/star.js +20 -0
  83. package/lib/emptyData/svg/trash.js +20 -0
  84. package/lib/emptyData/svg/user.js +20 -0
  85. package/lib/index.css +70 -82
  86. package/lib/mediaFilter/style/index.css +1 -0
  87. package/lib/mediaFilter/style/index.less +1 -0
  88. package/lib/typeIcons/style/index.css +1 -0
  89. package/lib/typeIcons/style/index.less +1 -0
  90. package/lib/utils/doc.js +29 -0
  91. package/lib/utils/index.js +17 -0
  92. package/lib/utils/typeMap.js +71 -0
  93. package/package.json +1 -1
  94. package/es/contentDetailList/scripts/data.d.ts +0 -254
  95. package/es/contentDetailList/scripts/index.js +0 -137
  96. package/lib/contentDetailList/scripts/index.js +0 -153
package/es/index.css CHANGED
@@ -205,6 +205,7 @@
205
205
  .type-icons-container {
206
206
  display: inline-block;
207
207
  vertical-align: middle;
208
+ line-height: 12px;
208
209
  font-size: 18px;
209
210
  }
210
211
  .tooltip-button {
@@ -1810,15 +1811,6 @@
1810
1811
  .content-common-detail-list-container .d_time {
1811
1812
  color: #7da8ff;
1812
1813
  }
1813
- .gray_for_hide {
1814
- -webkit-filter: grayscale(100%);
1815
- -moz-filter: grayscale(100%);
1816
- -ms-filter: grayscale(100%);
1817
- -o-filter: grayscale(100%);
1818
- filter: grayscale(100%);
1819
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
1820
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
1821
- }
1822
1814
  .medialist-component-item-view {
1823
1815
  display: flex;
1824
1816
  padding: 10px;
@@ -1857,12 +1849,15 @@
1857
1849
  padding: 2px 0;
1858
1850
  }
1859
1851
  .medialist-component-item-view .info-view .title {
1860
- display: -webkit-box;
1852
+ display: flex;
1853
+ align-items: center;
1861
1854
  margin-bottom: 10px;
1862
1855
  overflow: hidden;
1863
1856
  color: #1d2129;
1864
1857
  font-size: 14px;
1865
- line-height: 1.5;
1858
+ font-style: normal;
1859
+ font-weight: 400;
1860
+ line-height: 22px;
1866
1861
  cursor: pointer;
1867
1862
  -webkit-line-clamp: 2;
1868
1863
  -webkit-box-orient: vertical;
@@ -1890,21 +1885,13 @@
1890
1885
  width: 240px;
1891
1886
  }
1892
1887
  .medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
1893
- display: inline-block;
1888
+ display: flex;
1889
+ align-items: center;
1894
1890
  width: 175px;
1895
1891
  }
1896
1892
  .medialist-component-item-view .info-view .abttrite-v .right {
1897
1893
  margin-right: 20px;
1898
1894
  }
1899
- .gray_for_hide {
1900
- -webkit-filter: grayscale(100%);
1901
- -moz-filter: grayscale(100%);
1902
- -ms-filter: grayscale(100%);
1903
- -o-filter: grayscale(100%);
1904
- filter: grayscale(100%);
1905
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
1906
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
1907
- }
1908
1895
  .medialist-component-item-view {
1909
1896
  display: flex;
1910
1897
  padding: 10px;
@@ -1921,7 +1908,7 @@
1921
1908
  margin-right: 20px;
1922
1909
  background: #edf3ff;
1923
1910
  }
1924
- .medialist-component-item-view .cover-view .arco-image-img {
1911
+ .medialist-component-item-view .cover-view .image {
1925
1912
  width: 100%;
1926
1913
  height: 100%;
1927
1914
  border-radius: 4px;
@@ -1943,12 +1930,15 @@
1943
1930
  padding: 2px 0;
1944
1931
  }
1945
1932
  .medialist-component-item-view .info-view .title {
1946
- display: -webkit-box;
1933
+ display: flex;
1934
+ align-items: center;
1947
1935
  margin-bottom: 10px;
1948
1936
  overflow: hidden;
1949
1937
  color: #1d2129;
1950
1938
  font-size: 14px;
1951
- line-height: 1.5;
1939
+ font-style: normal;
1940
+ font-weight: 400;
1941
+ line-height: 22px;
1952
1942
  cursor: pointer;
1953
1943
  -webkit-line-clamp: 2;
1954
1944
  -webkit-box-orient: vertical;
@@ -1983,32 +1973,30 @@
1983
1973
  width: 240px;
1984
1974
  }
1985
1975
  .medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
1986
- display: inline-block;
1976
+ display: flex;
1977
+ align-items: center;
1987
1978
  width: 175px;
1988
1979
  }
1980
+ .medialist-component-item-view .info-view .abttrite-v .left .icon {
1981
+ margin-right: 10px;
1982
+ }
1989
1983
  .medialist-component-item-view .info-view .abttrite-v .right {
1990
1984
  margin-right: 20px;
1991
1985
  }
1992
- .lbs_tips {
1986
+ .medialist-component-item-view .title-tips {
1987
+ display: flex;
1988
+ align-items: center;
1993
1989
  color: #a3a3a3;
1994
- font-size: 8px;
1990
+ font-size: 10px;
1991
+ margin-left: 10px;
1995
1992
  }
1996
- .lbs_tips .icon-xiangqing1 {
1997
- margin-right: 3px;
1993
+ .medialist-component-item-view .title-tips .icon {
1994
+ margin-right: 5px;
1998
1995
  font-size: 10px;
1999
1996
  }
2000
- .lbs_tips.red {
1997
+ .medialist-component-item-view .title-tips.red {
2001
1998
  color: red;
2002
1999
  }
2003
- .gray_for_hide {
2004
- -webkit-filter: grayscale(100%);
2005
- -moz-filter: grayscale(100%);
2006
- -ms-filter: grayscale(100%);
2007
- -o-filter: grayscale(100%);
2008
- filter: grayscale(100%);
2009
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
2010
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2011
- }
2012
2000
  .medialist-kongo-item-view {
2013
2001
  display: flex;
2014
2002
  padding: 10px;
@@ -2025,7 +2013,7 @@
2025
2013
  margin-right: 20px;
2026
2014
  background: #edf3ff;
2027
2015
  }
2028
- .medialist-kongo-item-view .cover-view .arco-image-img {
2016
+ .medialist-kongo-item-view .cover-view .image {
2029
2017
  width: 100%;
2030
2018
  height: 100%;
2031
2019
  border-radius: 4px;
@@ -2047,12 +2035,15 @@
2047
2035
  padding: 2px 0;
2048
2036
  }
2049
2037
  .medialist-kongo-item-view .info-view .title {
2050
- display: -webkit-box;
2038
+ display: flex;
2039
+ align-items: center;
2051
2040
  margin-bottom: 10px;
2052
2041
  overflow: hidden;
2053
2042
  color: #1d2129;
2054
2043
  font-size: 14px;
2055
- line-height: 1.5;
2044
+ font-style: normal;
2045
+ font-weight: 400;
2046
+ line-height: 22px;
2056
2047
  cursor: pointer;
2057
2048
  -webkit-line-clamp: 2;
2058
2049
  -webkit-box-orient: vertical;
@@ -2092,9 +2083,10 @@
2092
2083
  .no-margin span {
2093
2084
  margin-right: 0 !important;
2094
2085
  }
2095
- .doc-tags-container .a-tag {
2086
+ .doc-tags-container .arco-tag {
2096
2087
  font-weight: 600;
2097
2088
  border: none;
2089
+ margin-right: 5px;
2098
2090
  }
2099
2091
  .doc-tags-container .yuanchuang {
2100
2092
  color: #4886ff;
@@ -2136,15 +2128,6 @@
2136
2128
  .doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
2137
2129
  margin-left: 2px;
2138
2130
  }
2139
- .gray_for_hide {
2140
- -webkit-filter: grayscale(100%);
2141
- -moz-filter: grayscale(100%);
2142
- -ms-filter: grayscale(100%);
2143
- -o-filter: grayscale(100%);
2144
- filter: grayscale(100%);
2145
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
2146
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2147
- }
2148
2131
  .medialist-ilive-item-view {
2149
2132
  display: flex;
2150
2133
  padding: 10px;
@@ -2161,7 +2144,7 @@
2161
2144
  margin-right: 20px;
2162
2145
  background: #edf3ff;
2163
2146
  }
2164
- .medialist-ilive-item-view .cover-view .arco-image-img {
2147
+ .medialist-ilive-item-view .cover-view .image {
2165
2148
  width: 100%;
2166
2149
  height: 100%;
2167
2150
  border-radius: 4px;
@@ -2183,12 +2166,15 @@
2183
2166
  padding: 2px 0;
2184
2167
  }
2185
2168
  .medialist-ilive-item-view .info-view .title {
2186
- display: -webkit-box;
2169
+ display: flex;
2170
+ align-items: center;
2187
2171
  margin-bottom: 10px;
2188
2172
  overflow: hidden;
2189
2173
  color: #1d2129;
2190
2174
  font-size: 14px;
2191
- line-height: 1.5;
2175
+ font-style: normal;
2176
+ font-weight: 400;
2177
+ line-height: 22px;
2192
2178
  cursor: pointer;
2193
2179
  -webkit-line-clamp: 2;
2194
2180
  -webkit-box-orient: vertical;
@@ -2219,7 +2205,8 @@
2219
2205
  width: 250px;
2220
2206
  }
2221
2207
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.tags {
2222
- display: inline-block;
2208
+ display: flex;
2209
+ align-items: center;
2223
2210
  width: 160px;
2224
2211
  }
2225
2212
  .medialist-ilive-item-view .info-view .abttrite-v .left .abttr.type {
@@ -2229,15 +2216,6 @@
2229
2216
  .medialist-ilive-item-view .info-view .abttrite-v .right {
2230
2217
  margin-right: 20px;
2231
2218
  }
2232
- .gray_for_hide {
2233
- -webkit-filter: grayscale(100%);
2234
- -moz-filter: grayscale(100%);
2235
- -ms-filter: grayscale(100%);
2236
- -o-filter: grayscale(100%);
2237
- filter: grayscale(100%);
2238
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
2239
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2240
- }
2241
2219
  .medialist-account-item-view {
2242
2220
  display: flex;
2243
2221
  padding: 10px;
@@ -2256,7 +2234,7 @@
2256
2234
  background: #edf3ff;
2257
2235
  border-radius: 50%;
2258
2236
  }
2259
- .medialist-account-item-view .cover-view .arco-image-img {
2237
+ .medialist-account-item-view .cover-view .image {
2260
2238
  width: 100%;
2261
2239
  height: 100%;
2262
2240
  border-radius: 4px;
@@ -2278,12 +2256,15 @@
2278
2256
  padding: 2px 0;
2279
2257
  }
2280
2258
  .medialist-account-item-view .info-view .title {
2281
- display: -webkit-box;
2259
+ display: flex;
2260
+ align-items: center;
2282
2261
  margin-bottom: 10px;
2283
2262
  overflow: hidden;
2284
2263
  color: #1d2129;
2285
2264
  font-size: 14px;
2286
- line-height: 1.5;
2265
+ font-style: normal;
2266
+ font-weight: 400;
2267
+ line-height: 22px;
2287
2268
  cursor: pointer;
2288
2269
  -webkit-line-clamp: 2;
2289
2270
  -webkit-box-orient: vertical;
@@ -2319,7 +2300,8 @@
2319
2300
  width: 240px;
2320
2301
  }
2321
2302
  .medialist-account-item-view .info-view .abttrite-v .left .abttr.tags {
2322
- display: inline-block;
2303
+ display: flex;
2304
+ align-items: center;
2323
2305
  width: 175px;
2324
2306
  }
2325
2307
  .medialist-account-item-view .info-view .abttrite-v .right {
@@ -2331,15 +2313,6 @@
2331
2313
  .media-common-detail-list-container .data-ul {
2332
2314
  height: 100%;
2333
2315
  }
2334
- .gray_for_hide {
2335
- -webkit-filter: grayscale(100%);
2336
- -moz-filter: grayscale(100%);
2337
- -ms-filter: grayscale(100%);
2338
- -o-filter: grayscale(100%);
2339
- filter: grayscale(100%);
2340
- filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
2341
- filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2342
- }
2343
2316
  .medialist-doc-item-view {
2344
2317
  display: flex;
2345
2318
  padding: 10px;
@@ -2356,6 +2329,11 @@
2356
2329
  margin-right: 20px;
2357
2330
  background: #edf3ff;
2358
2331
  }
2332
+ .medialist-doc-item-view .cover-view .image {
2333
+ width: 100%;
2334
+ height: 100%;
2335
+ border-radius: 4px;
2336
+ }
2359
2337
  .medialist-doc-item-view .cover-view .batch-select {
2360
2338
  position: absolute;
2361
2339
  top: 3px;
@@ -2383,15 +2361,15 @@
2383
2361
  padding: 2px 0;
2384
2362
  }
2385
2363
  .medialist-doc-item-view .info-view .title {
2386
- display: -webkit-box;
2387
2364
  display: flex;
2388
2365
  align-items: center;
2389
2366
  margin-bottom: 10px;
2390
2367
  overflow: hidden;
2391
2368
  color: #1d2129;
2392
- font-size: 17px;
2393
- line-height: 1.5;
2394
- word-break: break-all;
2369
+ font-size: 14px;
2370
+ font-style: normal;
2371
+ font-weight: 400;
2372
+ line-height: 22px;
2395
2373
  cursor: pointer;
2396
2374
  -webkit-line-clamp: 2;
2397
2375
  -webkit-box-orient: vertical;
@@ -2452,6 +2430,15 @@
2452
2430
  .popper-categories {
2453
2431
  max-width: 600px;
2454
2432
  }
2433
+ .gray-for-state-hide {
2434
+ -webkit-filter: grayscale(100%);
2435
+ -moz-filter: grayscale(100%);
2436
+ -ms-filter: grayscale(100%);
2437
+ -o-filter: grayscale(100%);
2438
+ filter: grayscale(100%);
2439
+ filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
2440
+ filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2441
+ }
2455
2442
  .empty-data-container {
2456
2443
  position: absolute;
2457
2444
  top: 50%;
@@ -2526,6 +2513,7 @@
2526
2513
  background: white;
2527
2514
  }
2528
2515
  .filter-wrp .more-btn {
2516
+ z-index: 10;
2529
2517
  margin-right: 10px;
2530
2518
  }
2531
2519
  .filter-wrp .right-prefix {
@@ -46,6 +46,7 @@
46
46
  background: white;
47
47
  }
48
48
  .filter-wrp .more-btn {
49
+ z-index: 10;
49
50
  margin-right: 10px;
50
51
  }
51
52
  .filter-wrp .right-prefix {
@@ -57,6 +57,7 @@
57
57
  }
58
58
 
59
59
  .more-btn {
60
+ z-index: 10;
60
61
  margin-right: 10px;
61
62
  }
62
63
 
package/es/style.css CHANGED
@@ -1,5 +1,6 @@
1
1
  .type-icons-container {
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
+ line-height: 12px;
4
5
  font-size: 18px;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  .type-icons-container {
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
+ line-height: 12px;
4
5
  font-size: 18px;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  .type-icons-container {
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
+ line-height: 12px;
4
5
  font-size: 18px;
5
6
  }
package/es/utils/doc.d.ts CHANGED
@@ -56,6 +56,7 @@ export declare const editDocTypeToRouteMap: {
56
56
  special_v3: string;
57
57
  h5: string;
58
58
  };
59
+ export declare const approvalItem: (item: any) => any;
59
60
  export declare const getPublishParmas: (categories: any[], categories_with: any[], docData: any) => {
60
61
  category: {
61
62
  id: any;
package/es/utils/doc.js CHANGED
@@ -1,3 +1,15 @@
1
+ const docStateMap = {
2
+ 0: "\u8349\u7A3F",
3
+ 10: "\u5BA1\u6838\u4E2D",
4
+ 12: "\u5BA1\u6838\u4E2D",
5
+ 13: "\u88AB\u9A73\u56DE",
6
+ 14: "\u5DF2\u53D1\u5E03",
7
+ 15: "\u5DF2\u53D1\u5E03",
8
+ 16: "\u5DF2\u4E0B\u7EBF",
9
+ 17: "\u5DF2\u5220\u9664",
10
+ 19: "\u5B9A\u65F6\u53D1\u5E03",
11
+ 22: "\u5DF2\u4E0B\u7EBF"
12
+ };
1
13
  const docPubStateMap = {
2
14
  "14|15|19": "\u5DF2\u53D1\u5E03",
3
15
  "16|22": "\u5DF2\u4E0B\u7EBF",
@@ -43,6 +55,14 @@ const docThumbRatioMap = () => {
43
55
  const docThumbArrMap = () => {
44
56
  return Object.values(docThumbObjMap);
45
57
  };
58
+ const docThumbMap = () => {
59
+ const obj = {};
60
+ Object.keys(docThumbObjMap).map((key) => {
61
+ obj[key] = docThumbObjMap[key].alias;
62
+ return {};
63
+ });
64
+ return obj;
65
+ };
46
66
  const docThumbTypeMap = () => {
47
67
  const arr = Object.keys(docThumbObjMap).map((key) => {
48
68
  return {
@@ -72,4 +92,10 @@ const typeOptions = () => {
72
92
  });
73
93
  return [{ value: "", label: "\u5168\u90E8" }, ...arr];
74
94
  };
75
- export { docPubStateMap, docSeries, docThumbArrMap, docThumbObjMap, docThumbRatioMap, docThumbTypeMap, stateOptions, typeOptions };
95
+ const approvalItem = (item) => {
96
+ if (!(item.approval_status && item.approval_status.current_processes)) {
97
+ return null;
98
+ }
99
+ return item.approval_status;
100
+ };
101
+ export { approvalItem, docPubStateMap, docSeries, docStateMap, docThumbArrMap, docThumbMap, docThumbObjMap, docThumbRatioMap, docThumbTypeMap, stateOptions, typeOptions };
@@ -8,3 +8,5 @@ export declare const generateUUID: () => string;
8
8
  */
9
9
  export declare const to: <T, U = Error>(promise: Promise<T>, errorExt?: any) => Promise<[U, undefined] | [null, T]>;
10
10
  export declare function replaceSuffix(str: string, insert: string): string;
11
+ export declare const noCoverText: (item: any) => any;
12
+ export declare const timeFormat: (value: any) => string;
package/es/utils/index.js CHANGED
@@ -30,4 +30,19 @@ function replaceSuffix(str, insert) {
30
30
  const match = str.match(reg);
31
31
  return match ? str.replace(reg, insert + match) : str + insert;
32
32
  }
33
- export { dateYYYYDDMMHHmm, generateUUID, replaceSuffix, to };
33
+ const noCoverText = (item) => {
34
+ const text = item.alias || item.title;
35
+ return text.substring(0, 2);
36
+ };
37
+ const timeFormat = (value) => {
38
+ if (value === 0)
39
+ return "--";
40
+ if (!value)
41
+ return "--";
42
+ if (typeof value === "number" && String(value).length === 10) {
43
+ value *= 1e3;
44
+ }
45
+ const date = new Date(value);
46
+ return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`;
47
+ };
48
+ export { dateYYYYDDMMHHmm, generateUUID, noCoverText, replaceSuffix, timeFormat, to };
@@ -67,6 +67,16 @@ export declare const key_target_type_map: {
67
67
  12: string;
68
68
  13: string;
69
69
  };
70
+ export declare const approveFlowStatusMap: {
71
+ 1: string;
72
+ 2: string;
73
+ 3: string;
74
+ 4: string;
75
+ 5: string;
76
+ 6: string;
77
+ 7: string;
78
+ 8: string;
79
+ };
70
80
  export declare const componentsColumns: any;
71
81
  export declare const compoColumnsWithKeyMap: {
72
82
  top: string;
@@ -114,3 +124,12 @@ export declare const mp_type_map: {
114
124
  1: string;
115
125
  2: string;
116
126
  };
127
+ export declare const kongo_source_map: {
128
+ app: string;
129
+ url: string;
130
+ document: string;
131
+ category_list: string;
132
+ service: string;
133
+ };
134
+ export declare const calcApprovingUser: (data: any) => any;
135
+ export declare const calcApprovingDependent: (data: any) => string;
@@ -1,3 +1,13 @@
1
+ const approveFlowStatusMap = {
2
+ 1: "\u5BA1\u6838\u4E2D",
3
+ 2: "\u5DF2\u62D2\u7EDD",
4
+ 3: "\u5DF2\u901A\u8FC7",
5
+ 4: "\u5DF2\u64A4\u9500",
6
+ 5: "\u5DF2\u901A\u8FC7",
7
+ 6: "\u5DF2\u9A73\u56DE",
8
+ 7: "\u91CD\u65B0\u53D1\u8D77",
9
+ 8: "\u5DF2\u7ED3\u675F"
10
+ };
1
11
  const componentsColumns = {
2
12
  banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
3
13
  top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
@@ -20,4 +30,58 @@ const compoColumnsMap = () => {
20
30
  });
21
31
  return obj;
22
32
  };
23
- export { compoColumnsMap, componentsColumns };
33
+ const contentList_list_type_map = {
34
+ 1: "\u624B\u52A8\u5217\u8868",
35
+ 2: "\u81EA\u52A8\u5217\u8868",
36
+ 3: "\u63A8\u8350\u5217\u8868",
37
+ 4: "\u9891\u9053",
38
+ 5: "\u4E13\u9898",
39
+ 6: "\u5FEB\u8BAF",
40
+ 7: "\u7EC4\u4EF6"
41
+ };
42
+ const contentList_relation_type_map = {
43
+ 0: "\u624B\u52A8",
44
+ 1: "\u94FE\u63A5",
45
+ 2: "\u5F15\u7528",
46
+ 3: "\u7EA7\u8054",
47
+ 4: "\u5E94\u7528",
48
+ 10: "\u81EA\u52A8"
49
+ };
50
+ const contentList_layout_map = {
51
+ blank: "\u6807\u51C6\u4FE1\u606F\u6D41",
52
+ svideo: "\u53CC\u5411\u5C0F\u89C6\u9891",
53
+ fly_card: "\u98DE\u5361\u9605\u8BFB",
54
+ video: "\u89C6\u9891\u98CE\u683C",
55
+ immersive_video: "\u6C89\u6D78\u5C0F\u89C6\u9891",
56
+ timeline: "\u65F6\u95F4\u94FE",
57
+ lbs: "LBS\u9891\u9053"
58
+ };
59
+ const kongo_source_map = {
60
+ app: "\u5E94\u7528",
61
+ url: "\u94FE\u63A5",
62
+ document: "\u7A3F\u4EF6",
63
+ category_list: "\u9891\u9053",
64
+ service: "\u670D\u52A1"
65
+ };
66
+ const calcApprovingUser = (data) => {
67
+ if (data.current_processes[0] && data.current_processes[0].users && data.current_processes[0].users[0]) {
68
+ const ApvUser = data.current_processes[0].users[0];
69
+ let alias = ApvUser.user_alias || "";
70
+ if (ApvUser.uid === "__smart_robot") {
71
+ alias = "AI\u52A9\u624B";
72
+ }
73
+ if (data.current_processes[0].users.length > 1) {
74
+ alias += "\u7B49";
75
+ }
76
+ return alias;
77
+ }
78
+ return "";
79
+ };
80
+ const calcApprovingDependent = (data) => {
81
+ let alias = "";
82
+ if (data.current_processes && data.current_processes.length && data.current_processes[0] && (data.current_processes[0].users && data.current_processes[0].users.length > 1 || data.current_processes[0].uid && data.current_processes[0].uid.length > 1)) {
83
+ alias = !data.current_processes[0].dependent ? "\uFF08\u4F1A\u7B7E\uFF09" : "\uFF08\u6216\u7B7E\uFF09";
84
+ }
85
+ return alias;
86
+ };
87
+ export { approveFlowStatusMap, calcApprovingDependent, calcApprovingUser, compoColumnsMap, componentsColumns, contentList_layout_map, contentList_list_type_map, contentList_relation_type_map, kongo_source_map };
@@ -8,8 +8,8 @@ const _sfc_main = vue.defineComponent({
8
8
  __name: "component",
9
9
  props: {
10
10
  type: {},
11
- contentsMediaFileData: {},
12
- query: {},
11
+ data: {},
12
+ parmas: {},
13
13
  disdragalbe: { type: Boolean },
14
14
  abttrites: {}
15
15
  },
@@ -22,7 +22,7 @@ const _sfc_main = vue.defineComponent({
22
22
  ],
23
23
  setup(__props, { emit }) {
24
24
  const props = __props;
25
- const queryProps = props.query || "";
25
+ const parmasProps = props.parmas || {};
26
26
  const disdragalbeProps = props.disdragalbe || false;
27
27
  const abttritesProps = props.abttrites || [];
28
28
  const sortMediaFileData = (e) => {
@@ -44,10 +44,10 @@ const _sfc_main = vue.defineComponent({
44
44
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
45
45
  props.type === "content" ? (vue.openBlock(), vue.createBlock(index, {
46
46
  key: 0,
47
- "media-file-data": _ctx.contentsMediaFileData,
47
+ "media-file-data": _ctx.data,
48
48
  disdragalbe: vue.unref(disdragalbeProps),
49
49
  abttrites: vue.unref(abttritesProps),
50
- query: vue.unref(queryProps),
50
+ parmas: vue.unref(parmasProps),
51
51
  onSortChange: sortMediaFileData,
52
52
  onDragstart: dragStart,
53
53
  onClickTitle: detail
@@ -59,10 +59,10 @@ const _sfc_main = vue.defineComponent({
59
59
  })
60
60
  ]),
61
61
  _: 3
62
- }, 8, ["media-file-data", "disdragalbe", "abttrites", "query"])) : vue.createCommentVNode("v-if", true),
62
+ }, 8, ["media-file-data", "disdragalbe", "abttrites", "parmas"])) : vue.createCommentVNode("v-if", true),
63
63
  props.type === "doc" ? (vue.openBlock(), vue.createBlock(index$1, {
64
64
  key: 1,
65
- "get-data": _ctx.contentsMediaFileData,
65
+ "get-data": _ctx.data,
66
66
  abttrites: vue.unref(abttritesProps),
67
67
  onCellMouseEnter: tableCellMouseEnter,
68
68
  onCellMouseLeave: tableCellMouseLeave,
@@ -2,7 +2,8 @@
2
2
  var vue = require("vue");
3
3
  var webVue = require("@arco-design/web-vue");
4
4
  var component = require("../../../../typeIcons/component.js");
5
- var index = require("../../../scripts/index.js");
5
+ var index = require("../../../../utils/index.js");
6
+ var typeMap = require("../../../../utils/typeMap.js");
6
7
  const _hoisted_1 = { class: "cover-view" };
7
8
  const _hoisted_2 = {
8
9
  key: 1,
@@ -23,7 +24,7 @@ const _sfc_main = vue.defineComponent({
23
24
  emits: ["clickTitle"],
24
25
  setup(__props, { emit }) {
25
26
  const props = __props;
26
- const comColumnsMap = vue.ref(index.compoColumnsMap().value);
27
+ const comColumnsMap = vue.ref(typeMap.compoColumnsMap().value);
27
28
  const hide = vue.computed(() => {
28
29
  const { hide: hide2 } = props.item;
29
30
  return hide2 === 7 || hide2 === 6;
@@ -33,7 +34,7 @@ const _sfc_main = vue.defineComponent({
33
34
  };
34
35
  return (_ctx, _cache) => {
35
36
  return vue.openBlock(), vue.createElementBlock("div", {
36
- class: vue.normalizeClass(["medialist-component-item-view", { gray_for_hide: hide.value }])
37
+ class: vue.normalizeClass(["medialist-component-item-view", { "gray-for-state-hide": hide.value }])
37
38
  }, [
38
39
  vue.createElementVNode("div", _hoisted_1, [
39
40
  _ctx.item.cover && _ctx.item.cover.data && _ctx.item.cover.data[0] ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {