@cmstops/pro-compo 0.1.7 → 0.1.9

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 (121) hide show
  1. package/dist/index.css +858 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/script/apps.d.ts +2 -11
  4. package/es/appCenter/script/apps.js +1 -41
  5. package/es/appCenter/script/routeMap.d.ts +1 -1
  6. package/es/config.d.ts +2 -2
  7. package/es/config.js +2 -2
  8. package/es/contentModal/component.js +5 -2
  9. package/es/contentModal/components/CompoList/index.js +12 -1
  10. package/es/contentModal/components/storeBox/index.js +1 -1
  11. package/es/contentModal/style/ViewAllColumn.less +1 -0
  12. package/es/contentModal/style/index.css +1 -0
  13. package/es/index.css +858 -0
  14. package/es/index.d.ts +2 -0
  15. package/es/index.js +2 -0
  16. package/es/index.less +2 -0
  17. package/es/previousVersion/component.d.ts +0 -0
  18. package/es/previousVersion/component.js +378 -0
  19. package/es/previousVersion/index.d.ts +2 -0
  20. package/es/previousVersion/index.js +7 -0
  21. package/es/previousVersion/script/api.d.ts +15 -0
  22. package/es/previousVersion/script/api.js +39 -0
  23. package/es/previousVersion/script/tool.d.ts +6 -0
  24. package/es/previousVersion/script/tool.js +22 -0
  25. package/es/previousVersion/style/css.js +1 -0
  26. package/es/previousVersion/style/index.css +166 -0
  27. package/es/previousVersion/style/index.d.ts +1 -0
  28. package/es/previousVersion/style/index.js +1 -0
  29. package/es/previousVersion/style/index.less +208 -0
  30. package/es/resourceModal/assets/images/unknown.js +2 -0
  31. package/es/resourceModal/assets/selection/null.js +2 -0
  32. package/es/resourceModal/component.js +65 -4
  33. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  34. package/es/resourceModal/components/MediaPreviewer/index.js +69 -0
  35. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  36. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +111 -0
  37. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  38. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +85 -0
  39. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  40. package/es/resourceModal/components/MediaSelection/MainContent/index.js +171 -0
  41. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  42. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +211 -0
  43. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  44. package/es/resourceModal/components/MediaSelection/index.js +272 -0
  45. package/es/resourceModal/script/api.d.ts +8 -0
  46. package/es/resourceModal/script/api.js +30 -0
  47. package/es/resourceModal/script/filter.d.ts +8 -0
  48. package/es/resourceModal/script/filter.js +22 -0
  49. package/es/resourceModal/script/mediaSelection.d.ts +10 -0
  50. package/es/resourceModal/style/DocAiMediaSelected.less +56 -0
  51. package/es/resourceModal/style/FileTypeThumb.less +183 -0
  52. package/es/resourceModal/style/MainContent.less +200 -0
  53. package/es/resourceModal/style/MediaPreviewer.less +71 -0
  54. package/es/resourceModal/style/MediaSelection.less +59 -0
  55. package/es/resourceModal/style/ToolbarSearch.less +40 -0
  56. package/es/resourceModal/style/index.css +514 -3
  57. package/es/resourceModal/style/index.less +16 -3
  58. package/es/selectGategory/component.d.ts +0 -0
  59. package/es/selectGategory/component.js +95 -0
  60. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  61. package/es/selectGategory/components/ColumnSelection/index.js +273 -0
  62. package/es/selectGategory/index.d.ts +2 -0
  63. package/es/selectGategory/index.js +7 -0
  64. package/es/selectGategory/script/api.d.ts +6 -0
  65. package/es/selectGategory/script/api.js +15 -0
  66. package/es/selectGategory/style/ColumnSelection.less +190 -0
  67. package/es/selectGategory/style/css.js +1 -0
  68. package/es/selectGategory/style/index.css +180 -0
  69. package/es/selectGategory/style/index.d.ts +1 -0
  70. package/es/selectGategory/style/index.js +1 -0
  71. package/es/selectGategory/style/index.less +40 -0
  72. package/es/utils/doc.d.ts +69 -0
  73. package/es/utils/typeMap.js +2 -1
  74. package/lib/appCenter/script/apps.js +1 -41
  75. package/lib/config.js +2 -2
  76. package/lib/contentModal/component.js +5 -2
  77. package/lib/contentModal/components/CompoList/index.js +11 -0
  78. package/lib/contentModal/components/storeBox/index.js +1 -1
  79. package/lib/contentModal/style/ViewAllColumn.less +1 -0
  80. package/lib/contentModal/style/index.css +1 -0
  81. package/lib/index.css +858 -0
  82. package/lib/index.js +4 -0
  83. package/lib/index.less +2 -0
  84. package/lib/previousVersion/component.js +379 -0
  85. package/lib/previousVersion/index.js +8 -0
  86. package/lib/previousVersion/script/api.js +43 -0
  87. package/lib/previousVersion/script/tool.js +24 -0
  88. package/lib/previousVersion/style/css.js +2 -0
  89. package/lib/previousVersion/style/index.css +166 -0
  90. package/lib/previousVersion/style/index.js +2 -0
  91. package/lib/previousVersion/style/index.less +208 -0
  92. package/lib/resourceModal/assets/images/unknown.js +3 -0
  93. package/lib/resourceModal/assets/selection/null.js +3 -0
  94. package/lib/resourceModal/component.js +64 -3
  95. package/lib/resourceModal/components/MediaPreviewer/index.js +70 -0
  96. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +112 -0
  97. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +86 -0
  98. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +172 -0
  99. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +212 -0
  100. package/lib/resourceModal/components/MediaSelection/index.js +273 -0
  101. package/lib/resourceModal/script/api.js +35 -0
  102. package/lib/resourceModal/script/filter.js +25 -0
  103. package/lib/resourceModal/style/DocAiMediaSelected.less +56 -0
  104. package/lib/resourceModal/style/FileTypeThumb.less +183 -0
  105. package/lib/resourceModal/style/MainContent.less +200 -0
  106. package/lib/resourceModal/style/MediaPreviewer.less +71 -0
  107. package/lib/resourceModal/style/MediaSelection.less +59 -0
  108. package/lib/resourceModal/style/ToolbarSearch.less +40 -0
  109. package/lib/resourceModal/style/index.css +514 -3
  110. package/lib/resourceModal/style/index.less +16 -3
  111. package/lib/selectGategory/component.js +96 -0
  112. package/lib/selectGategory/components/ColumnSelection/index.js +274 -0
  113. package/lib/selectGategory/index.js +8 -0
  114. package/lib/selectGategory/script/api.js +18 -0
  115. package/lib/selectGategory/style/ColumnSelection.less +190 -0
  116. package/lib/selectGategory/style/css.js +2 -0
  117. package/lib/selectGategory/style/index.css +180 -0
  118. package/lib/selectGategory/style/index.js +2 -0
  119. package/lib/selectGategory/style/index.less +40 -0
  120. package/lib/utils/typeMap.js +2 -1
  121. package/package.json +2 -2
@@ -0,0 +1,40 @@
1
+ @import './ColumnSelection.less';
2
+
3
+ .add-category-modal-wrapper {
4
+ .arco-modal-header {
5
+ border-bottom: none;
6
+ }
7
+
8
+ .arco-modal-body {
9
+ min-height: 200px;
10
+ padding: 20px;
11
+ padding-bottom: 0;
12
+
13
+ .form-view {
14
+ padding: 0 20px;
15
+
16
+ .title {
17
+ padding: 20px 0;
18
+ font-weight: bold;
19
+ font-size: 14px;
20
+ }
21
+
22
+ .item-title {
23
+ display: inline-block;
24
+ color: #4e5969;
25
+ font-weight: 700;
26
+ font-size: 14px;
27
+ line-height: 40px;
28
+ text-align: left;
29
+
30
+ &.big {
31
+ line-height: 60px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ .arco-modal-footer {
38
+ border-top: 0;
39
+ }
40
+ }
@@ -0,0 +1,69 @@
1
+ export declare const docStateMap: {
2
+ 0: string;
3
+ 10: string;
4
+ 12: string;
5
+ 13: string;
6
+ 14: string;
7
+ 15: string;
8
+ 16: string;
9
+ 17: string;
10
+ 19: string;
11
+ 22: string;
12
+ };
13
+ export declare const docPubStateMap: {
14
+ '14|15|19': string;
15
+ '16|22': string;
16
+ '17': string;
17
+ };
18
+ export declare const docThumbObjMap: any;
19
+ export declare const docThumbRatioMap: () => any;
20
+ export declare const docThumbArrMap: () => unknown[];
21
+ export declare const docThumbOptions: () => {
22
+ label: any;
23
+ value: string;
24
+ }[];
25
+ export declare const docThumbMap: () => any;
26
+ export declare const docSeries: {
27
+ imagetext: string;
28
+ atlas: string;
29
+ video: string;
30
+ video_album: string;
31
+ svideo: string;
32
+ audio: string;
33
+ audio_album: string;
34
+ h5: string;
35
+ special_v3: string;
36
+ };
37
+ export declare const otherSeries: {
38
+ wechat: string;
39
+ ad: string;
40
+ activity: string;
41
+ booklink: string;
42
+ vote_activity: string;
43
+ vote: string;
44
+ cloud_lottery: string;
45
+ cloud_form: string;
46
+ };
47
+ export declare const editDocTypeToRouteMap: {
48
+ imagetext: string;
49
+ atlas: string;
50
+ video: string;
51
+ video_album: string;
52
+ svideo: string;
53
+ audio: string;
54
+ audio_album: string;
55
+ special_v3: string;
56
+ h5: string;
57
+ };
58
+ export declare const getPublishParmas: (categories: any[], categories_with: any[], docData: any) => {
59
+ category: {
60
+ id: any;
61
+ repo_id: any;
62
+ };
63
+ category_with: {
64
+ id: any;
65
+ repo_id: any;
66
+ }[];
67
+ clean_offline_time: boolean;
68
+ id: any;
69
+ };
@@ -9,7 +9,8 @@ const componentsColumns = {
9
9
  radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
10
10
  tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
11
11
  mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
12
- column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" }
12
+ column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" },
13
+ kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" }
13
14
  };
14
15
  const compoColumnsMap = () => {
15
16
  const obj = {};
@@ -2,27 +2,7 @@
2
2
  var appList = [
3
3
  {
4
4
  alias: "\u8FD0\u8425\u7BA1\u7406",
5
- actions: [
6
- {
7
- id: 13,
8
- key: "push",
9
- alias: "\u63A8\u9001\u7BA1\u7406",
10
- brief: "\u63A8\u9001\u7BA1\u7406",
11
- type: 3,
12
- icon: "tuisongguanli",
13
- target_url: ""
14
- },
15
- {
16
- id: 14,
17
- key: "pop",
18
- alias: "\u63A8\u5E7F\u7BA1\u7406",
19
- brief: "\u63A8\u5E7F\u7BA1\u7406",
20
- real: "appcenter/app-promote:entry",
21
- type: 3,
22
- icon: "tuiguang",
23
- target_url: ""
24
- }
25
- ]
5
+ actions: []
26
6
  },
27
7
  {
28
8
  alias: "\u4FE1\u606F\u7BA1\u7406",
@@ -71,16 +51,6 @@ var appList = [
71
51
  type: 3,
72
52
  icon: "app_commentList",
73
53
  target_url: ""
74
- },
75
- {
76
- id: 24,
77
- key: "operatingRecord",
78
- alias: "\u64CD\u4F5C\u8BB0\u5F55",
79
- brief: "\u64CD\u4F5C\u8BB0\u5F55",
80
- real: "appcenter/app-comment:entry",
81
- type: 3,
82
- icon: "app_operatingRecord",
83
- target_url: ""
84
54
  }
85
55
  ]
86
56
  },
@@ -97,16 +67,6 @@ var appList = [
97
67
  icon: "app_warningList",
98
68
  target_url: ""
99
69
  },
100
- {
101
- id: 26,
102
- key: "reportRecord",
103
- alias: "\u4E3E\u62A5\u64CD\u4F5C\u8BB0\u5F55",
104
- brief: "\u4E3E\u62A5\u64CD\u4F5C\u8BB0\u5F55",
105
- real: "appcenter/app-report:entry",
106
- type: 3,
107
- icon: "app_reportRecord",
108
- target_url: ""
109
- },
110
70
  {
111
71
  id: 27,
112
72
  key: "feedbackList",
package/lib/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const DEFAULT_BASE_API = "https://site-x.cmstop.net/";
4
- const DEFAULT_BASE_ACCOUNT_HOST = "https://account-x.cmstop.net/";
3
+ const DEFAULT_BASE_API = (process == null ? void 0 : process.env.STORYBOOK_ENV) === "dev" ? "https://site.cmstop.xyz" : "https://site.cmstop.xyz";
4
+ const DEFAULT_BASE_ACCOUNT_HOST = (process == null ? void 0 : process.env.STORYBOOK_ENV) === "dev" ? "https://account.cmstop.xyz" : "";
5
5
  exports.DEFAULT_BASE_ACCOUNT_HOST = DEFAULT_BASE_ACCOUNT_HOST;
6
6
  exports.DEFAULT_BASE_API = DEFAULT_BASE_API;
@@ -14,6 +14,7 @@ const _sfc_main = vue.defineComponent({
14
14
  BASE_API: {},
15
15
  visible: { type: Boolean },
16
16
  title: {},
17
+ outsideSelectData: {},
17
18
  defaultSelectedData: {},
18
19
  maxSelect: {},
19
20
  typeData: {},
@@ -53,6 +54,7 @@ const _sfc_main = vue.defineComponent({
53
54
  };
54
55
  const { userInfo, getUserInfoHandle } = user["default"](BASE_API);
55
56
  const HandleOpen = () => {
57
+ console.log(props.outsideSelectData);
56
58
  selectedData.value = props.defaultSelectedData || [];
57
59
  };
58
60
  const HandleClose = () => {
@@ -136,6 +138,7 @@ const _sfc_main = vue.defineComponent({
136
138
  key: 0,
137
139
  "max-select": _ctx.maxSelect,
138
140
  "default-selected-data": selectedData.value,
141
+ "outside-select-data": _ctx.outsideSelectData || [],
139
142
  "type-data": typeDataController.value,
140
143
  columns: typeDataController.value.compoType,
141
144
  "user-info": vue.unref(userInfo),
@@ -154,13 +157,13 @@ const _sfc_main = vue.defineComponent({
154
157
  onClick: comfirm
155
158
  }, {
156
159
  default: vue.withCtx(() => [
157
- vue.createTextVNode("\u6DFB\u52A0")
160
+ vue.createTextVNode(" \u6DFB\u52A0 ")
158
161
  ]),
159
162
  _: 1
160
163
  }, 8, ["disabled"])
161
164
  ]),
162
165
  _: 1
163
- }, 8, ["max-select", "default-selected-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
166
+ }, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
164
167
  ]),
165
168
  _: 1
166
169
  })) : vue.createCommentVNode("v-if", true)
@@ -19,6 +19,7 @@ const _sfc_main = vue.defineComponent({
19
19
  __name: "index",
20
20
  props: {
21
21
  maxSelect: {},
22
+ outsideSelectData: {},
22
23
  defaultSelectedData: {},
23
24
  typeData: {},
24
25
  userInfo: {}
@@ -53,8 +54,18 @@ const _sfc_main = vue.defineComponent({
53
54
  selectData(record);
54
55
  };
55
56
  const selectData = (record) => {
57
+ if (checkSameAdd(record)) {
58
+ webVue.Message.warning({ content: "\u8BF7\u52FF\u6DFB\u52A0\u91CD\u590D\u6570\u636E", duration: 3e3 });
59
+ return;
60
+ }
56
61
  addDataToSelectedList(record);
57
62
  };
63
+ const checkSameAdd = (record) => {
64
+ const selected = props.outsideSelectData;
65
+ if (!selected.length)
66
+ return false;
67
+ return selected.map((row) => row.id).includes(record.id);
68
+ };
58
69
  const addDataToSelectedList = async (record) => {
59
70
  const index2 = selectedData.value.findIndex((v) => v.id === record.id);
60
71
  if (selectedData.value.length < _maxSelect) {
@@ -38,7 +38,7 @@ const _sfc_main = vue.defineComponent({
38
38
  vue.createElementVNode("div", _hoisted_2, [
39
39
  vue.createVNode(vue.unref(webVue.Scrollbar), {
40
40
  "outer-class": "batch-section-scrollbar",
41
- style: { "height": "100%", "overflow": "auto" }
41
+ style: { "max-height": "350px", "overflow": "auto" }
42
42
  }, {
43
43
  default: vue.withCtx(() => [
44
44
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.selectData, (item, index) => {
@@ -12,6 +12,7 @@
12
12
  width: 20px;
13
13
  height: 25px;
14
14
  margin-right: 8px;
15
+ padding-left: 0;
15
16
  font-size: 18px;
16
17
  vertical-align: middle;
17
18
  display: inline-block;
@@ -76,6 +76,7 @@
76
76
  width: 20px;
77
77
  height: 25px;
78
78
  margin-right: 8px;
79
+ padding-left: 0;
79
80
  font-size: 18px;
80
81
  vertical-align: middle;
81
82
  display: inline-block;