@jetlinks-web/components 3.0.0-rc → 3.0.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 (286) hide show
  1. package/es/AutoComplete/AutoComplete.js +13 -9
  2. package/es/BadgeStatus/Badge.js +1 -2
  3. package/es/BadgeStatus/color.js +3 -3
  4. package/es/CardSelect/CardSelect.js +23 -13
  5. package/es/CardSelect/style/index.js +25 -1
  6. package/es/CheckButton/CheckButton.js +12 -4
  7. package/es/CheckButton/style/index.js +41 -1
  8. package/es/DragModal/DragModal.js +14 -8
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +13 -7
  12. package/es/EditTable/FormItem.js +18 -19
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +11 -5
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +23 -18
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/body.js +53 -0
  20. package/es/EditTable/style/form.js +24 -0
  21. package/es/EditTable/style/group.js +25 -0
  22. package/es/EditTable/style/header.js +58 -0
  23. package/es/EditTable/style/index.js +42 -1
  24. package/es/EditTable/style/menu.js +27 -0
  25. package/es/EditTable/style/table.js +46 -0
  26. package/es/EditTable/utils.js +30 -3
  27. package/es/Ellipsis/Ellipsis.js +10 -2
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/FullPage/FullPage.js +1 -2
  30. package/es/LocaleProvider/index.js +1 -2
  31. package/es/PermissionButton/index.js +3 -4
  32. package/es/ProLayout/Basic/BasicLayout.js +45 -41
  33. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  34. package/es/ProLayout/Basic/Header.js +3 -7
  35. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  36. package/es/ProLayout/PageContainer/index.js +21 -17
  37. package/es/ProLayout/PageContainer/style.js +46 -0
  38. package/es/ProLayout/SiderMenu/BaseMenu.js +13 -37
  39. package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
  40. package/es/ProLayout/SiderMenu/style.js +166 -0
  41. package/es/ProLayout/TopHeader/index.js +13 -12
  42. package/es/ProLayout/TopHeader/style.js +126 -0
  43. package/es/ProLayout/style/index.js +7 -1
  44. package/es/ProLayout/util.js +5 -5
  45. package/es/ProTable/Alert.js +12 -4
  46. package/es/ProTable/Content.js +108 -28
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +12 -4
  49. package/es/ProTable/ProTable.js +42 -26
  50. package/es/ProTable/hooks/index.js +2 -0
  51. package/es/ProTable/hooks/useTableInject.js +5 -0
  52. package/es/ProTable/hooks/useTableSelection.js +95 -0
  53. package/es/ProTable/setting.js +1 -1
  54. package/es/ProTable/style/index.js +109 -1
  55. package/es/RadioButton/RadioButton.js +10 -4
  56. package/es/RadioButton/style/index.js +23 -1
  57. package/es/Scrollbar/Scrollbar.js +10 -3
  58. package/es/Scrollbar/Thumb.js +36 -25
  59. package/es/Scrollbar/style/index.js +63 -1
  60. package/es/Search/Advanced/History.js +23 -16
  61. package/es/Search/Advanced/SaveHistory.js +1 -2
  62. package/es/Search/Advanced/index.js +213 -292
  63. package/es/Search/Item.js +175 -415
  64. package/es/Search/Search.js +78 -172
  65. package/es/Search/hooks/index.js +108 -1
  66. package/es/Search/hooks/useRouteQuery.js +57 -0
  67. package/es/Search/setting.js +132 -14
  68. package/es/Search/style/index.js +4 -2
  69. package/es/Search/style/item.js +28 -0
  70. package/es/Search/style/search.js +133 -0
  71. package/es/Search/util.js +116 -124
  72. package/es/Skeleton/components/DashBoardCard.js +64 -0
  73. package/es/Skeleton/components/DashBoardChart.js +96 -0
  74. package/es/Skeleton/components/Detail.js +110 -0
  75. package/es/Skeleton/components/Drawer.js +91 -0
  76. package/es/Skeleton/components/Item.js +68 -0
  77. package/es/Skeleton/components/List.js +45 -0
  78. package/es/Skeleton/components/ListCard.js +63 -0
  79. package/es/Skeleton/components/ListCardItem.js +86 -0
  80. package/es/Skeleton/components/ListTable.js +76 -0
  81. package/es/Skeleton/components/Page.js +62 -0
  82. package/es/Skeleton/components/Search.js +54 -0
  83. package/es/Skeleton/components/Tree.js +72 -0
  84. package/es/Skeleton/index.js +15 -0
  85. package/es/Skeleton/skeleton.js +58 -0
  86. package/es/Skeleton/style/index.js +132 -0
  87. package/es/Title/style/index.js +29 -1
  88. package/es/Title/title.js +13 -5
  89. package/es/ValueItem/ValueItem.js +44 -39
  90. package/es/components.js +1 -4
  91. package/es/locale/en-US.js +3 -7
  92. package/es/locale/zh-CN.js +3 -7
  93. package/es/style/index.js +0 -3
  94. package/es/style/styleRegister.js +21 -0
  95. package/es/style/variable.js +4 -0
  96. package/es/style.js +0 -12
  97. package/lib/AutoComplete/AutoComplete.js +13 -9
  98. package/lib/BadgeStatus/Badge.js +1 -2
  99. package/lib/BadgeStatus/color.js +3 -3
  100. package/lib/CardSelect/CardSelect.js +23 -13
  101. package/lib/CardSelect/style/index.js +30 -1
  102. package/lib/CheckButton/CheckButton.js +12 -4
  103. package/lib/CheckButton/style/index.js +46 -1
  104. package/lib/DragModal/DragModal.js +14 -8
  105. package/lib/DragModal/style/index.js +69 -1
  106. package/lib/EditTable/Body.js +10 -3
  107. package/lib/EditTable/EditTable.js +13 -7
  108. package/lib/EditTable/FormItem.js +18 -19
  109. package/lib/EditTable/Header.js +16 -6
  110. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  111. package/lib/EditTable/components/Search/search.js +1 -2
  112. package/lib/EditTable/components/Search/sort.js +1 -3
  113. package/lib/EditTable/group.js +23 -18
  114. package/lib/EditTable/hooks/useValidate.js +1 -1
  115. package/lib/EditTable/style/body.js +60 -0
  116. package/lib/EditTable/style/form.js +31 -0
  117. package/lib/EditTable/style/group.js +32 -0
  118. package/lib/EditTable/style/header.js +65 -0
  119. package/lib/EditTable/style/index.js +47 -1
  120. package/lib/EditTable/style/menu.js +33 -0
  121. package/lib/EditTable/style/table.js +52 -0
  122. package/lib/EditTable/utils.js +31 -3
  123. package/lib/Ellipsis/Ellipsis.js +10 -2
  124. package/lib/Ellipsis/style/index.js +29 -1
  125. package/lib/FullPage/FullPage.js +1 -2
  126. package/lib/LocaleProvider/index.js +1 -2
  127. package/lib/PermissionButton/index.js +3 -4
  128. package/lib/ProLayout/Basic/BasicLayout.js +44 -40
  129. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  130. package/lib/ProLayout/Basic/Header.js +2 -6
  131. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  132. package/lib/ProLayout/PageContainer/index.js +19 -15
  133. package/lib/ProLayout/PageContainer/style.js +53 -0
  134. package/lib/ProLayout/SiderMenu/BaseMenu.js +14 -37
  135. package/lib/ProLayout/SiderMenu/SiderMenu.js +23 -35
  136. package/lib/ProLayout/SiderMenu/style.js +173 -0
  137. package/lib/ProLayout/TopHeader/index.js +14 -12
  138. package/lib/ProLayout/TopHeader/style.js +133 -0
  139. package/lib/ProLayout/style/index.js +12 -1
  140. package/lib/ProLayout/util.js +5 -5
  141. package/lib/ProTable/Alert.js +12 -4
  142. package/lib/ProTable/Content.js +108 -28
  143. package/lib/ProTable/Header.js +21 -11
  144. package/lib/ProTable/Pagination.js +12 -4
  145. package/lib/ProTable/ProTable.js +42 -26
  146. package/lib/ProTable/hooks/index.js +27 -0
  147. package/lib/ProTable/hooks/useTableInject.js +11 -0
  148. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  149. package/lib/ProTable/setting.js +1 -1
  150. package/lib/ProTable/style/index.js +114 -1
  151. package/lib/RadioButton/RadioButton.js +10 -4
  152. package/lib/RadioButton/style/index.js +28 -1
  153. package/lib/Scrollbar/Scrollbar.js +10 -3
  154. package/lib/Scrollbar/Thumb.js +36 -25
  155. package/lib/Scrollbar/style/index.js +68 -1
  156. package/lib/Search/Advanced/History.js +23 -16
  157. package/lib/Search/Advanced/SaveHistory.js +1 -2
  158. package/lib/Search/Advanced/index.js +213 -292
  159. package/lib/Search/Item.js +175 -415
  160. package/lib/Search/Search.js +78 -172
  161. package/lib/Search/hooks/index.js +130 -1
  162. package/lib/Search/hooks/useRouteQuery.js +64 -0
  163. package/lib/Search/setting.js +133 -15
  164. package/lib/Search/style/index.js +9 -2
  165. package/lib/Search/style/item.js +35 -0
  166. package/lib/Search/style/search.js +140 -0
  167. package/lib/Search/util.js +116 -124
  168. package/lib/Skeleton/components/DashBoardCard.js +64 -0
  169. package/lib/Skeleton/components/DashBoardChart.js +96 -0
  170. package/lib/Skeleton/components/Detail.js +110 -0
  171. package/lib/Skeleton/components/Drawer.js +91 -0
  172. package/lib/Skeleton/components/Item.js +68 -0
  173. package/lib/Skeleton/components/List.js +45 -0
  174. package/lib/Skeleton/components/ListCard.js +63 -0
  175. package/lib/Skeleton/components/ListCardItem.js +86 -0
  176. package/lib/Skeleton/components/ListTable.js +76 -0
  177. package/lib/Skeleton/components/Page.js +62 -0
  178. package/lib/Skeleton/components/Search.js +54 -0
  179. package/lib/Skeleton/components/Tree.js +72 -0
  180. package/lib/Skeleton/index.js +75 -0
  181. package/lib/Skeleton/skeleton.js +58 -0
  182. package/lib/Skeleton/style/index.js +139 -0
  183. package/lib/Title/style/index.js +34 -1
  184. package/lib/Title/title.js +13 -5
  185. package/lib/ValueItem/ValueItem.js +44 -39
  186. package/lib/components.js +0 -21
  187. package/lib/locale/en-US.js +3 -7
  188. package/lib/locale/zh-CN.js +3 -7
  189. package/lib/style/components.less +0 -1
  190. package/lib/style/index.js +1 -4
  191. package/lib/style/styleRegister.js +28 -0
  192. package/lib/style/variable.js +10 -0
  193. package/lib/style.js +1 -14
  194. package/package.json +10 -13
  195. package/es/AMap/Map.js +0 -133
  196. package/es/AMap/index.js +0 -5
  197. package/es/AMap/util.js +0 -56
  198. package/es/CardSelect/style/index.css +0 -24
  199. package/es/CardSelect/style/index.less +0 -26
  200. package/es/CheckButton/style/index.css +0 -37
  201. package/es/CheckButton/style/index.less +0 -40
  202. package/es/DragModal/style/index.css +0 -82
  203. package/es/DragModal/style/index.less +0 -97
  204. package/es/Echarts/Echarts.js +0 -48
  205. package/es/Echarts/index.js +0 -5
  206. package/es/EditTable/style/body.less +0 -66
  207. package/es/EditTable/style/form.less +0 -33
  208. package/es/EditTable/style/group.less +0 -32
  209. package/es/EditTable/style/header.less +0 -77
  210. package/es/EditTable/style/index.css +0 -267
  211. package/es/EditTable/style/index.less +0 -41
  212. package/es/EditTable/style/menu.less +0 -25
  213. package/es/EditTable/style/table.less +0 -47
  214. package/es/Ellipsis/style/index.css +0 -17
  215. package/es/Ellipsis/style/index.less +0 -20
  216. package/es/FlameGraph/FlameGraph.js +0 -136
  217. package/es/FlameGraph/index.js +0 -5
  218. package/es/FlameGraph/style/index.css +0 -43
  219. package/es/FlameGraph/style/index.js +0 -1
  220. package/es/FlameGraph/style/index.less +0 -52
  221. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  222. package/es/ProLayout/Basic/Header.less +0 -8
  223. package/es/ProLayout/PageContainer/index.less +0 -103
  224. package/es/ProLayout/SiderMenu/index.less +0 -231
  225. package/es/ProLayout/TopHeader/index.less +0 -174
  226. package/es/ProLayout/style/default.less +0 -4
  227. package/es/ProLayout/style/style.less +0 -7
  228. package/es/ProTable/style/ProTable.less +0 -139
  229. package/es/RadioButton/style/index.css +0 -20
  230. package/es/RadioButton/style/index.less +0 -19
  231. package/es/Scrollbar/style/index.css +0 -65
  232. package/es/Scrollbar/style/index.less +0 -83
  233. package/es/Search/style/Item.less +0 -33
  234. package/es/Search/style/Search.less +0 -179
  235. package/es/Title/style/index.css +0 -23
  236. package/es/Title/style/index.less +0 -25
  237. package/es/style/index.css +0 -5234
  238. package/es/style/index.less +0 -13
  239. package/es/style/variable.css +0 -4
  240. package/es/style/variable.less +0 -4
  241. package/lib/AMap/Map.js +0 -133
  242. package/lib/AMap/index.js +0 -12
  243. package/lib/AMap/util.js +0 -62
  244. package/lib/CardSelect/style/index.css +0 -24
  245. package/lib/CardSelect/style/index.less +0 -26
  246. package/lib/CheckButton/style/index.css +0 -37
  247. package/lib/CheckButton/style/index.less +0 -40
  248. package/lib/DragModal/style/index.css +0 -82
  249. package/lib/DragModal/style/index.less +0 -97
  250. package/lib/Echarts/Echarts.js +0 -48
  251. package/lib/Echarts/index.js +0 -12
  252. package/lib/EditTable/style/body.less +0 -66
  253. package/lib/EditTable/style/form.less +0 -33
  254. package/lib/EditTable/style/group.less +0 -32
  255. package/lib/EditTable/style/header.less +0 -77
  256. package/lib/EditTable/style/index.css +0 -267
  257. package/lib/EditTable/style/index.less +0 -41
  258. package/lib/EditTable/style/menu.less +0 -25
  259. package/lib/EditTable/style/table.less +0 -47
  260. package/lib/Ellipsis/style/index.css +0 -17
  261. package/lib/Ellipsis/style/index.less +0 -20
  262. package/lib/FlameGraph/FlameGraph.js +0 -136
  263. package/lib/FlameGraph/index.js +0 -12
  264. package/lib/FlameGraph/style/index.css +0 -43
  265. package/lib/FlameGraph/style/index.js +0 -3
  266. package/lib/FlameGraph/style/index.less +0 -52
  267. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  268. package/lib/ProLayout/Basic/Header.less +0 -8
  269. package/lib/ProLayout/PageContainer/index.less +0 -103
  270. package/lib/ProLayout/SiderMenu/index.less +0 -231
  271. package/lib/ProLayout/TopHeader/index.less +0 -174
  272. package/lib/ProLayout/style/default.less +0 -4
  273. package/lib/ProLayout/style/style.less +0 -7
  274. package/lib/ProTable/style/ProTable.less +0 -139
  275. package/lib/RadioButton/style/index.css +0 -20
  276. package/lib/RadioButton/style/index.less +0 -19
  277. package/lib/Scrollbar/style/index.css +0 -65
  278. package/lib/Scrollbar/style/index.less +0 -83
  279. package/lib/Search/style/Item.less +0 -33
  280. package/lib/Search/style/Search.less +0 -179
  281. package/lib/Title/style/index.css +0 -23
  282. package/lib/Title/style/index.less +0 -25
  283. package/lib/style/index.css +0 -5234
  284. package/lib/style/index.less +0 -13
  285. package/lib/style/variable.css +0 -4
  286. package/lib/style/variable.less +0 -4
@@ -34,6 +34,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
34
34
  "watch": "setup-const",
35
35
  "computed": "setup-const",
36
36
  "componentsType": "setup-maybe-ref",
37
+ "MonacoEditor": "setup-maybe-ref",
37
38
  "Select": "setup-maybe-ref",
38
39
  "DatePicker": "setup-maybe-ref",
39
40
  "TimePicker": "setup-maybe-ref",
@@ -41,6 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
42
  "InputNumber": "setup-maybe-ref",
42
43
  "InputPassword": "setup-maybe-ref",
43
44
  "Upload": "setup-maybe-ref",
45
+ "Modal": "setup-maybe-ref",
44
46
  "omit": "setup-maybe-ref",
45
47
  "emit": "setup-const",
46
48
  "props": "setup-reactive-const",
@@ -48,7 +50,9 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
48
50
  "myValue": "setup-ref",
49
51
  "objectValue": "setup-ref",
50
52
  "bindProps": "setup-ref",
51
- "onChange": "setup-const"
53
+ "handleItemModalSubmit": "setup-const",
54
+ "onChange": "setup-const",
55
+ "monacoCancel": "setup-const"
52
56
  } */
53
57
  import { defineComponent as _defineComponent } from 'vue';
54
58
  import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementBlock as _createElementBlock } from "vue";
@@ -103,10 +107,18 @@ const __sfc_main__ = _defineComponent({
103
107
  const bindProps = computed(() => {
104
108
  return Object.assign(omit(props, ['extraProps']), props.extraProps);
105
109
  });
110
+ const handleItemModalSubmit = () => {
111
+ myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
112
+ emit('update:modelValue', objectValue.value);
113
+ emit('change', objectValue.value);
114
+ };
106
115
  const onChange = (e) => {
107
116
  emit('update:modelValue', myValue.value);
108
117
  emit('change', e && e.target ? e.target.value : e);
109
118
  };
119
+ const monacoCancel = () => {
120
+ objectValue.value = props.modelValue;
121
+ };
110
122
  const handleFileChange = async (info) => {
111
123
  if (info.file.status === 'done') {
112
124
  let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
@@ -182,52 +194,45 @@ const __sfc_main__ = _defineComponent({
182
194
  min: -999999999999999,
183
195
  style: { "width": "100%" }
184
196
  }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
185
- : (_unref(typeMap).get(__props.itemType) === 'object')
197
+ : (_unref(typeMap).get(__props.itemType) === 'file')
186
198
  ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
187
199
  key: 6,
188
200
  value: myValue.value,
189
201
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
190
- allowClear: ""
191
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
192
- : (_unref(typeMap).get(__props.itemType) === 'file')
193
- ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
202
+ allowClear: "",
203
+ placeholder: "请输入链接"
204
+ }, bindProps.value, { onChange: onChange }), {
205
+ addonAfter: _withCtx(() => [
206
+ _createVNode(_unref(Upload), {
207
+ action: __props.action,
208
+ headers: __props.headers,
209
+ showUploadList: false,
210
+ name: "file",
211
+ onChange: handleFileChange
212
+ }, {
213
+ default: _withCtx(() => [
214
+ _createVNode(_component_AIcon, { type: "UploadOutlined" })
215
+ ]),
216
+ _: 1 /* STABLE */
217
+ }, 8 /* PROPS */, ["action", "headers"])
218
+ ]),
219
+ _: 1 /* STABLE */
220
+ }, 16 /* FULL_PROPS */, ["value"]))
221
+ : (_unref(typeMap).get(__props.itemType) === 'password')
222
+ ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
194
223
  key: 7,
195
224
  value: myValue.value,
196
225
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
197
226
  allowClear: "",
198
- placeholder: "请输入链接"
199
- }, bindProps.value, { onChange: onChange }), {
200
- addonAfter: _withCtx(() => [
201
- _createVNode(_unref(Upload), {
202
- action: __props.action,
203
- headers: __props.headers,
204
- showUploadList: false,
205
- name: "file",
206
- onChange: handleFileChange
207
- }, {
208
- default: _withCtx(() => [
209
- _createVNode(_component_AIcon, { type: "UploadOutlined" })
210
- ]),
211
- _: 1 /* STABLE */
212
- }, 8 /* PROPS */, ["action", "headers"])
213
- ]),
214
- _: 1 /* STABLE */
215
- }, 16 /* FULL_PROPS */, ["value"]))
216
- : (_unref(typeMap).get(__props.itemType) === 'password')
217
- ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
218
- key: 8,
219
- value: myValue.value,
220
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
221
- allowClear: "",
222
- type: "password"
223
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
224
- : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
225
- key: 9,
226
- value: myValue.value,
227
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
228
- allowClear: "",
229
- type: "text"
230
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
227
+ type: "password"
228
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
229
+ : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
230
+ key: 8,
231
+ value: myValue.value,
232
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
233
+ allowClear: "",
234
+ type: "text"
235
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
231
236
  ]));
232
237
  };
233
238
  }
package/lib/components.js CHANGED
@@ -53,12 +53,6 @@ Object.defineProperty(exports, "DragModal", {
53
53
  return _DragModal.default;
54
54
  }
55
55
  });
56
- Object.defineProperty(exports, "Echarts", {
57
- enumerable: true,
58
- get: function get() {
59
- return _Echarts.default;
60
- }
61
- });
62
56
  Object.defineProperty(exports, "EditTable", {
63
57
  enumerable: true,
64
58
  get: function get() {
@@ -77,24 +71,12 @@ Object.defineProperty(exports, "Empty", {
77
71
  return _Empty.default;
78
72
  }
79
73
  });
80
- Object.defineProperty(exports, "FlameGraph", {
81
- enumerable: true,
82
- get: function get() {
83
- return _FlameGraph.default;
84
- }
85
- });
86
74
  Object.defineProperty(exports, "FullPage", {
87
75
  enumerable: true,
88
76
  get: function get() {
89
77
  return _FullPage.default;
90
78
  }
91
79
  });
92
- Object.defineProperty(exports, "Map", {
93
- enumerable: true,
94
- get: function get() {
95
- return _AMap.default;
96
- }
97
- });
98
80
  Object.defineProperty(exports, "Markdown", {
99
81
  enumerable: true,
100
82
  get: function get() {
@@ -155,12 +137,10 @@ Object.defineProperty(exports, "ValueItem", {
155
137
  return _ValueItem.default;
156
138
  }
157
139
  });
158
- var _AMap = _interopRequireDefault(require("./AMap"));
159
140
  var _BadgeStatus = _interopRequireDefault(require("./BadgeStatus"));
160
141
  var _CardSelect = _interopRequireDefault(require("./CardSelect"));
161
142
  var _CheckButton = _interopRequireDefault(require("./CheckButton"));
162
143
  var _ConfigProvider = _interopRequireDefault(require("./ConfigProvider"));
163
- var _Echarts = _interopRequireDefault(require("./Echarts"));
164
144
  var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
165
145
  var _Empty = _interopRequireDefault(require("./Empty"));
166
146
  var _FullPage = _interopRequireDefault(require("./FullPage"));
@@ -177,6 +157,5 @@ var _EditTable = _interopRequireDefault(require("./EditTable"));
177
157
  var _Markdown = _interopRequireDefault(require("./Markdown"));
178
158
  var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
179
159
  var _Title = _interopRequireDefault(require("./Title"));
180
- var _FlameGraph = _interopRequireDefault(require("./FlameGraph"));
181
160
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
182
161
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -57,6 +57,9 @@ var _default = exports.default = {
57
57
  alert: {
58
58
  cancelChoose: 'Cancel selection',
59
59
  selectItem: 'Select {0} items'
60
+ },
61
+ select: {
62
+ all: 'Select all'
60
63
  }
61
64
  },
62
65
  ProLayout: {
@@ -64,9 +67,6 @@ var _default = exports.default = {
64
67
  back: 'Back'
65
68
  }
66
69
  },
67
- AMap: {
68
- description: 'Please configure the Amap key for Gaode'
69
- },
70
70
  EditTable: {
71
71
  serial: 'Serial',
72
72
  columns: {
@@ -120,9 +120,5 @@ var _default = exports.default = {
120
120
  },
121
121
  PermissionButton: {
122
122
  hasPermission: 'No permission, please contact the administrator'
123
- },
124
- FlameGraph: {
125
- placeholder: 'Please input',
126
- revert: 'Revert'
127
123
  }
128
124
  };
@@ -57,6 +57,9 @@ var _default = exports.default = {
57
57
  alert: {
58
58
  cancelChoose: '取消选择',
59
59
  selectItem: '已选择 {0} 项'
60
+ },
61
+ select: {
62
+ all: '全选'
60
63
  }
61
64
  },
62
65
  ProLayout: {
@@ -64,9 +67,6 @@ var _default = exports.default = {
64
67
  back: '返回'
65
68
  }
66
69
  },
67
- AMap: {
68
- description: '请配置高德地图key'
69
- },
70
70
  EditTable: {
71
71
  serial: '序号',
72
72
  columns: {
@@ -120,9 +120,5 @@ var _default = exports.default = {
120
120
  },
121
121
  PermissionButton: {
122
122
  hasPermission: '暂无权限,请联系管理员'
123
- },
124
- FlameGraph: {
125
- placeholder: '请输入',
126
- revert: '反转'
127
123
  }
128
124
  };
@@ -3,7 +3,6 @@
3
3
  @import "../DragModal/style/index-pure.less";
4
4
  @import "../EditTable/style/index-pure.less";
5
5
  @import "../Ellipsis/style/index-pure.less";
6
- @import "../FlameGraph/style/index-pure.less";
7
6
  @import "../RadioButton/style/index-pure.less";
8
7
  @import "../Scrollbar/style/index-pure.less";
9
8
  @import "../Title/style/index-pure.less";
@@ -1,4 +1 @@
1
- "use strict";
2
-
3
- require("../ProLayout/style");
4
- require("../ProTable/style");
1
+ "use strict";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
10
+ var _internal = require("ant-design-vue/es/theme/internal");
11
+ var _antDesignVue = require("ant-design-vue");
12
+ var _variable = _interopRequireDefault(require("./variable"));
13
+ var genCompoentStyle = function genCompoentStyle(styleFn) {
14
+ return (0, _internal.genComponentStyleHook)('jetlinks-components', function (_token) {
15
+ var _theme$useToken = _antDesignVue.theme.useToken(),
16
+ token = _theme$useToken.token,
17
+ hashId = _theme$useToken.hashId;
18
+ var componentToken = {
19
+ token: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _token), _variable.default),
20
+ hashId: hashId.value,
21
+ componentCls: ".".concat(_token.prefixCls)
22
+ };
23
+ return (0, _toConsumableArray2.default)(styleFn.map(function (item) {
24
+ return item(componentToken);
25
+ }));
26
+ });
27
+ };
28
+ var _default = exports.default = genCompoentStyle;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ textColorTitle: '#000',
9
+ textColorSubtitle: '#263237'
10
+ };
package/lib/style.js CHANGED
@@ -1,14 +1 @@
1
- "use strict";
2
-
3
- require("./Ellipsis/style");
4
- require("./CheckButton/style");
5
- require("./ProLayout/style");
6
- require("./ProTable/style");
7
- require("./Search/style");
8
- require("./CardSelect/style");
9
- require("./DragModal/style");
10
- require("./EditTable/style");
11
- require("./Scrollbar/style");
12
- require("./Title/style");
13
- require("./RadioButton/style");
14
- require("./FlameGraph/style");
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "3.0.0-rc",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,14 +20,9 @@
20
20
  "author": "",
21
21
  "license": "ISC",
22
22
  "dependencies": {
23
- "@ant-design/icons-vue": "^7.0.1",
24
- "@vuemap/vue-amap": "^2.0.17",
25
23
  "@vueuse/core": "^10.2.1",
26
24
  "@vueuse/router": "^12.1.0",
27
25
  "async-validator": "^4.2.5",
28
- "d3": "^7.9.0",
29
- "d3-flame-graph": "^4.1.3",
30
- "echarts": "^5.4.3",
31
26
  "markdown-it": "^14.1.0",
32
27
  "markdown-it-abbr": "^2.0.0",
33
28
  "markdown-it-anchor": "^9.1.0",
@@ -41,11 +36,10 @@
41
36
  "markdown-it-sup": "^2.0.0",
42
37
  "markdown-it-task-lists": "^2.1.1",
43
38
  "markdown-it-toc-done-right": "^4.2.0",
44
- "monaco-editor": "^0.51.0",
45
- "resize-observer-polyfill": "^1.5.1",
46
- "sortablejs": "^1.15.2"
39
+ "resize-observer-polyfill": "^1.5.1"
47
40
  },
48
41
  "devDependencies": {
42
+ "@ant-design/icons-vue": "^7.0.1",
49
43
  "@babel/cli": "^7.8.4",
50
44
  "@babel/core": "^7.10.5",
51
45
  "@babel/plugin-proposal-class-properties": "^7.8.3",
@@ -71,14 +65,13 @@
71
65
  "@types/eslint": "^8.21.0",
72
66
  "@types/lodash-es": "^4.17.6",
73
67
  "@types/node": "^18.13.0",
74
- "@types/sortablejs": "^1.15.1",
75
68
  "@typescript-eslint/eslint-plugin": "^5.50.0",
76
69
  "@typescript-eslint/parser": "^5.50.0",
77
70
  "@vitejs/plugin-vue": "^2.3.3",
78
71
  "@vitejs/plugin-vue-jsx": "^1.3.10",
79
72
  "@vue/babel-plugin-jsx": "^1.0.0",
80
73
  "@vue/compiler-sfc": "^3.4.21",
81
- "ant-design-vue": "3.2.20",
74
+ "ant-design-vue": "^4.0.0",
82
75
  "autoprefixer": "^10.2.0",
83
76
  "babel-eslint": "^10.0.1",
84
77
  "babel-loader": "^8.0.0",
@@ -106,6 +99,7 @@
106
99
  "eslint-plugin-markdown": "^2.0.0",
107
100
  "eslint-plugin-vue": "^8.1.1",
108
101
  "fast-glob": "^3.2.12",
102
+ "glob": "^11.0.3",
109
103
  "globby": "^11.1.0",
110
104
  "gray-matter": "^4.0.3",
111
105
  "gulp": "^4.0.2",
@@ -144,13 +138,15 @@
144
138
  "ts-morph": "^17.0.1",
145
139
  "typescript": "^4.9.3",
146
140
  "unplugin-vue-macros": "^0.11.2",
141
+ "unplugin-vue-setup-extend": "^0.3.5",
147
142
  "url": "^0.11.0",
148
143
  "url-loader": "^3.0.0",
149
144
  "vite": "^4.0.0",
150
- "vite-plugin-monaco-editor": "^1.1.0",
151
145
  "vite-plugin-vue-setup-extend": "^0.4.0",
152
146
  "vue": "^3.2.45",
147
+ "vue-loader": "^17.4.2",
153
148
  "vue-eslint-parser": "^9.1.0",
149
+ "vue-router": "4",
154
150
  "vue-tsc": "^1.0.11",
155
151
  "webpack": "^5.75.0",
156
152
  "webpack-bundle-analyzer": "^4.4.2",
@@ -158,8 +154,8 @@
158
154
  "webpack-dev-server": "^4.0.0",
159
155
  "webpack-merge": "^5.0.0",
160
156
  "webpackbar": "^5.0.2",
157
+ "@jetlinks-web/hooks": "^1.1.1",
161
158
  "@jetlinks-web/constants": "^1.0.9",
162
- "@jetlinks-web/hooks": "^1.0.28",
163
159
  "@jetlinks-web/utils": "^1.2.12"
164
160
  },
165
161
  "publishConfig": {
@@ -168,6 +164,7 @@
168
164
  },
169
165
  "scripts": {
170
166
  "compile": "node tools/cli/run.js compile",
167
+ "dist": "node --max_old_space_size=8192 tools/cli/run.js dist",
171
168
  "clean": "pnpm rimraf node_modules && pnpm rimraf .turbo"
172
169
  }
173
170
  }
package/es/AMap/Map.js DELETED
@@ -1,133 +0,0 @@
1
- /* Analyzed bindings: {
2
- "style": "props",
3
- "class": "props",
4
- "AMapUI": "props",
5
- "center": "props",
6
- "plugins": "props",
7
- "zooms": "props",
8
- "JSKey": "props",
9
- "WebKey": "props",
10
- "ref": "setup-const",
11
- "computed": "setup-const",
12
- "inject": "setup-const",
13
- "defineOptions": "setup-const",
14
- "initAMapApiLoader": "setup-maybe-ref",
15
- "ElAmap": "setup-maybe-ref",
16
- "getAMapUiPromise": "setup-maybe-ref",
17
- "MapProps": "setup-maybe-ref",
18
- "MAPConfig": "setup-maybe-ref",
19
- "Empty": "setup-maybe-ref",
20
- "useLocaleReceiver": "setup-maybe-ref",
21
- "emit": "setup-const",
22
- "props": "setup-reactive-const",
23
- "contextLocale": "setup-maybe-ref",
24
- "config": "setup-maybe-ref",
25
- "_mapStyle": "setup-ref",
26
- "hasAMapKey": "setup-ref",
27
- "uiLoading": "setup-ref",
28
- "map": "setup-ref",
29
- "isOpenUi": "setup-ref",
30
- "getAMapUI": "setup-const",
31
- "initMap": "setup-const"
32
- } */
33
- import { defineComponent as _defineComponent } from 'vue';
34
- import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
35
- import { ref, computed, inject, } from 'vue';
36
- import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
37
- import { getAMapUiPromise } from '@jetlinks-web/utils';
38
- import { MapProps } from './util';
39
- import { MAPConfig } from "../utils/constants";
40
- import Empty from '../Empty';
41
- import '@vuemap/vue-amap/dist/style.css';
42
- import { useLocaleReceiver } from "../LocaleReciver/index";
43
- const __sfc_main__ = _defineComponent({
44
- ...{
45
- name: 'JAMap'
46
- },
47
- props: {
48
- ...MapProps(),
49
- style: Object,
50
- class: String,
51
- AMapUI: [String, Boolean],
52
- center: Array,
53
- plugins: Array,
54
- zooms: {
55
- type: Array,
56
- default: () => [3, 20]
57
- },
58
- JSKey: String,
59
- WebKey: String,
60
- },
61
- emits: [
62
- 'initMap',
63
- ],
64
- setup(__props, { emit: __emit }) {
65
- const emit = __emit;
66
- const props = __props;
67
- const [contextLocale] = useLocaleReceiver('AMap');
68
- const config = inject(MAPConfig);
69
- const _mapStyle = computed(() => {
70
- if (props.mapStyle) {
71
- return `amap://styles/${props.mapStyle}`;
72
- }
73
- if (config.mapStyle) {
74
- return config.mapStyle;
75
- }
76
- return undefined;
77
- });
78
- const hasAMapKey = computed(() => {
79
- return !!(props.JSKey || config.JSKey);
80
- });
81
- initAMapApiLoader({
82
- key: props.JSKey || config.JSKey || '',
83
- securityJsCode: props.WebKey || config.WebKey,
84
- plugins: props.plugins
85
- });
86
- const uiLoading = ref(false);
87
- const map = ref(null);
88
- const isOpenUi = computed(() => {
89
- return 'AMapUI' in props || props.AMapUI;
90
- });
91
- const getAMapUI = () => {
92
- const version = typeof props.AMapUI === 'string' ? props.AMapUI : '1.1';
93
- getAMapUiPromise(version).then(() => {
94
- uiLoading.value = true;
95
- });
96
- };
97
- const initMap = (e) => {
98
- map.value = e;
99
- emit('initMap', e);
100
- if (isOpenUi.value) {
101
- getAMapUI();
102
- }
103
- };
104
- return (_ctx, _cache) => {
105
- return (_openBlock(), _createElementBlock("div", {
106
- style: _normalizeStyle(props.style || { width: '100%', height: '100%' }),
107
- class: _normalizeClass(props.class)
108
- }, [
109
- (hasAMapKey.value)
110
- ? (_openBlock(), _createBlock(_unref(ElAmap), _mergeProps({
111
- key: 0,
112
- "map-style": _mapStyle.value
113
- }, {
114
- ...props,
115
- ..._ctx.$attrs
116
- }, { onInit: initMap }), {
117
- default: _withCtx(() => [
118
- (uiLoading.value)
119
- ? _renderSlot(_ctx.$slots, "default", { key: 0 })
120
- : _renderSlot(_ctx.$slots, "default", { key: 1 })
121
- ]),
122
- _: 3 /* FORWARDED */
123
- }, 16 /* FULL_PROPS */, ["map-style"]))
124
- : (_openBlock(), _createBlock(_unref(Empty), {
125
- key: 1,
126
- description: _unref(contextLocale).description,
127
- style: { "padding": "20%" }
128
- }, null, 8 /* PROPS */, ["description"]))
129
- ], 6 /* CLASS, STYLE */));
130
- };
131
- }
132
- });
133
- export default __sfc_main__;
package/es/AMap/index.js DELETED
@@ -1,5 +0,0 @@
1
- import Map from './Map.js';
2
- Map.install = function (app) {
3
- app.component(Map.name, Map);
4
- };
5
- export default Map;
package/es/AMap/util.js DELETED
@@ -1,56 +0,0 @@
1
- export var MapProps = function MapProps() {
2
- return {
3
- // 响应式
4
- center: Array,
5
- labelzIndex: Number,
6
- lang: String,
7
- mapStyle: String,
8
- // 静态属性
9
- vid: String,
10
- amapManager: Object,
11
- defaultCursor: String,
12
- animateEnable: {
13
- type: Boolean,
14
- default: true
15
- },
16
- isHotspot: Boolean,
17
- rotateEnable: {
18
- type: Boolean,
19
- default: true
20
- },
21
- resizeEnable: {
22
- type: Boolean,
23
- default: true
24
- },
25
- showIndoorMap: Boolean,
26
- expandZoomRange: Boolean,
27
- dragEnable: {
28
- type: Boolean,
29
- default: true
30
- },
31
- zoomEnable: {
32
- type: Boolean,
33
- default: true
34
- },
35
- doubleClickZoom: {
36
- type: Boolean,
37
- default: true
38
- },
39
- keyboardEnable: {
40
- type: Boolean,
41
- default: true
42
- },
43
- jogEnable: {
44
- type: Boolean,
45
- default: true
46
- },
47
- scrollWheel: {
48
- type: Boolean,
49
- default: true
50
- },
51
- touchZoom: {
52
- type: Boolean,
53
- default: true
54
- }
55
- };
56
- };
@@ -1,24 +0,0 @@
1
- /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
- /* stylelint-disable no-duplicate-selectors */
3
- /* stylelint-disable */
4
- /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .j-card-select {
6
- display: grid;
7
- gap: 12px;
8
- }
9
- .j-card-select .j-card-select-item {
10
- padding: 12px;
11
- border: 1px solid #e6e6e6;
12
- border-radius: 2px;
13
- cursor: pointer;
14
- }
15
- .j-card-select .j-card-select-item.active {
16
- border-color: #1890ff;
17
- }
18
- .j-card-select .j-card-select-item.disabled {
19
- cursor: not-allowed;
20
- opacity: 0.75;
21
- }
22
- .j-card-select .j-card-select-item .j-card-select-describe {
23
- color: #263237;
24
- }
@@ -1,26 +0,0 @@
1
- @import '../../style/variable.less';
2
-
3
- .j-card-select {
4
- display: grid;
5
- gap: 12px;
6
-
7
- .j-card-select-item {
8
- padding: 12px;
9
- border: 1px solid #e6e6e6;
10
- border-radius: @border-radius-base;
11
- cursor: pointer;
12
-
13
- &.active {
14
- border-color: @primary-color;
15
- }
16
-
17
- &.disabled {
18
- cursor: not-allowed;
19
- opacity: 0.75;
20
- }
21
-
22
- .j-card-select-describe {
23
- color: @text-color-subtitle;
24
- }
25
- }
26
- }