@jetlinks-web/components 2.0.2-2 → 2.0.2-4

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 (225) hide show
  1. package/es/AMap/Map.js +124 -0
  2. package/es/AMap/index.js +2 -0
  3. package/es/AMap/util.js +56 -0
  4. package/es/BadgeStatus/Badge.js +54 -0
  5. package/es/BadgeStatus/color.js +21 -0
  6. package/es/BadgeStatus/index.js +3 -0
  7. package/es/CardSelect/CardSelect.js +123 -0
  8. package/es/CardSelect/index.js +2 -0
  9. package/es/CheckButton/CheckButton.js +121 -0
  10. package/es/CheckButton/index.js +2 -0
  11. package/es/ConfigProvider/context.js +12 -0
  12. package/es/ConfigProvider/index.js +31 -0
  13. package/es/Echarts/Echarts.js +47 -0
  14. package/es/Echarts/index.js +2 -0
  15. package/es/Ellipsis/Ellipsis.js +189 -0
  16. package/es/Ellipsis/index.js +2 -0
  17. package/es/Empty/Empty.js +56 -0
  18. package/es/Empty/image.js +2 -0
  19. package/es/Empty/index.js +2 -0
  20. package/es/FullPage/FullPage.js +31 -0
  21. package/es/FullPage/index.js +2 -0
  22. package/es/Icon/icon.js +43 -0
  23. package/{src/Icon/index.ts → es/Icon/index.js} +2 -3
  24. package/es/MonacoEditor/Monaco.js +238 -0
  25. package/es/MonacoEditor/index.js +2 -0
  26. package/es/PermissionButton/index.js +117 -0
  27. package/es/ProLayout/Basic/BasicLayout.js +255 -0
  28. package/es/ProLayout/Basic/Header.js +93 -0
  29. package/es/ProLayout/PageContainer/index.js +318 -0
  30. package/es/ProLayout/PageContainer/typings.js +1 -0
  31. package/es/ProLayout/RouteContext.js +22 -0
  32. package/es/ProLayout/SiderMenu/BaseMenu.js +262 -0
  33. package/es/ProLayout/SiderMenu/SiderMenu.js +258 -0
  34. package/es/ProLayout/SiderMenu/index.js +2 -0
  35. package/es/ProLayout/SiderMenu/typings.js +1 -0
  36. package/es/ProLayout/TopHeader/index.js +155 -0
  37. package/es/ProLayout/defaultSettings.js +66 -0
  38. package/{src/ProLayout/index.ts → es/ProLayout/index.js} +4 -6
  39. package/{src → es}/ProLayout/style/default.less +4 -4
  40. package/es/ProLayout/style/index.js +1 -0
  41. package/es/ProLayout/typings.js +1 -0
  42. package/es/ProLayout/util.js +61 -0
  43. package/es/ProTable/index.js +406 -0
  44. package/es/ProTable/proTableTypes.js +11 -0
  45. package/es/ProTable/style/index.css +65 -0
  46. package/es/ProTable/style/index.js +1 -0
  47. package/es/Scrollbar/Bar.js +114 -0
  48. package/es/Scrollbar/Scrollbar.js +100 -0
  49. package/es/Scrollbar/Thumb.js +10 -0
  50. package/es/Scrollbar/constants.js +1 -0
  51. package/es/Scrollbar/index.js +2 -0
  52. package/es/Scrollbar/util.js +30 -0
  53. package/es/Search/Advanced/History.js +183 -0
  54. package/es/Search/Advanced/SaveHistory.js +153 -0
  55. package/es/Search/Advanced/index.js +520 -0
  56. package/es/Search/Item.js +497 -0
  57. package/es/Search/Search.js +249 -0
  58. package/es/Search/hooks/index.js +1 -0
  59. package/es/Search/hooks/useSearchItems.js +40 -0
  60. package/es/Search/index.js +4 -0
  61. package/es/Search/setting.js +91 -0
  62. package/es/Search/typing.js +1 -0
  63. package/es/Search/util.js +234 -0
  64. package/es/ValueItem/ValueItem.js +233 -0
  65. package/es/ValueItem/index.js +2 -0
  66. package/es/ValueItem/util.js +16 -0
  67. package/es/index.js +24 -0
  68. package/es/style/index.js +3 -0
  69. package/es/style/variable.css +0 -0
  70. package/{src → es}/style/variable.less +0 -2
  71. package/lib/AMap/Map.js +124 -0
  72. package/lib/AMap/index.js +9 -0
  73. package/lib/AMap/util.js +62 -0
  74. package/lib/BadgeStatus/Badge.js +54 -0
  75. package/lib/BadgeStatus/color.js +27 -0
  76. package/lib/BadgeStatus/index.js +22 -0
  77. package/lib/CardSelect/CardSelect.js +123 -0
  78. package/lib/CardSelect/index.js +9 -0
  79. package/lib/CheckButton/CheckButton.js +121 -0
  80. package/lib/CheckButton/index.js +9 -0
  81. package/lib/ConfigProvider/context.js +19 -0
  82. package/lib/ConfigProvider/index.js +37 -0
  83. package/lib/Echarts/Echarts.js +47 -0
  84. package/lib/Echarts/index.js +9 -0
  85. package/lib/Ellipsis/Ellipsis.js +189 -0
  86. package/lib/Ellipsis/index.js +9 -0
  87. package/lib/Empty/Empty.js +56 -0
  88. package/lib/Empty/image.js +8 -0
  89. package/lib/Empty/index.js +9 -0
  90. package/lib/FullPage/FullPage.js +31 -0
  91. package/lib/FullPage/index.js +9 -0
  92. package/lib/Icon/icon.js +52 -0
  93. package/lib/Icon/index.js +9 -0
  94. package/lib/MonacoEditor/Monaco.js +238 -0
  95. package/lib/MonacoEditor/index.js +9 -0
  96. package/lib/PermissionButton/index.js +124 -0
  97. package/lib/ProLayout/Basic/BasicLayout.js +264 -0
  98. package/lib/ProLayout/Basic/BasicLayout.less +66 -0
  99. package/lib/ProLayout/Basic/Header.js +99 -0
  100. package/lib/ProLayout/Basic/Header.less +8 -0
  101. package/lib/ProLayout/PageContainer/index.js +323 -0
  102. package/lib/ProLayout/PageContainer/index.less +103 -0
  103. package/lib/ProLayout/PageContainer/typings.js +5 -0
  104. package/lib/ProLayout/RouteContext.js +28 -0
  105. package/lib/ProLayout/SiderMenu/BaseMenu.js +268 -0
  106. package/lib/ProLayout/SiderMenu/SiderMenu.js +267 -0
  107. package/lib/ProLayout/SiderMenu/index.js +20 -0
  108. package/lib/ProLayout/SiderMenu/index.less +212 -0
  109. package/lib/ProLayout/SiderMenu/typings.js +5 -0
  110. package/lib/ProLayout/TopHeader/index.js +161 -0
  111. package/lib/ProLayout/TopHeader/index.less +174 -0
  112. package/lib/ProLayout/defaultSettings.js +72 -0
  113. package/lib/ProLayout/index.js +16 -0
  114. package/lib/ProLayout/style/default.less +4 -0
  115. package/lib/ProLayout/style/index.js +3 -0
  116. package/lib/ProLayout/style/style.less +7 -0
  117. package/lib/ProLayout/typings.js +5 -0
  118. package/lib/ProLayout/util.js +72 -0
  119. package/lib/ProTable/index.js +412 -0
  120. package/lib/ProTable/proTableTypes.js +17 -0
  121. package/lib/ProTable/style/index.css +65 -0
  122. package/lib/ProTable/style/index.js +3 -0
  123. package/lib/ProTable/style/index.less +92 -0
  124. package/lib/Scrollbar/Bar.js +114 -0
  125. package/{src/Scrollbar/scrollbar.ts → lib/Scrollbar/Scrollbar.js} +106 -108
  126. package/lib/Scrollbar/Thumb.js +16 -0
  127. package/lib/Scrollbar/constants.js +7 -0
  128. package/lib/Scrollbar/index.js +9 -0
  129. package/lib/Scrollbar/util.js +37 -0
  130. package/lib/Search/Advanced/History.js +183 -0
  131. package/lib/Search/Advanced/SaveHistory.js +153 -0
  132. package/lib/Search/Advanced/index.js +520 -0
  133. package/lib/Search/Item.js +497 -0
  134. package/lib/Search/Search.js +249 -0
  135. package/lib/Search/hooks/index.js +16 -0
  136. package/lib/Search/hooks/useSearchItems.js +47 -0
  137. package/lib/Search/index.js +16 -0
  138. package/lib/Search/setting.js +97 -0
  139. package/lib/Search/typing.js +5 -0
  140. package/lib/Search/util.js +241 -0
  141. package/lib/ValueItem/ValueItem.js +233 -0
  142. package/lib/ValueItem/index.js +9 -0
  143. package/lib/ValueItem/util.js +22 -0
  144. package/lib/index.js +158 -0
  145. package/lib/style/components.less +1 -0
  146. package/lib/style/index.js +4 -0
  147. package/lib/style/variable.css +0 -0
  148. package/lib/style/variable.less +2 -0
  149. package/package.json +121 -12
  150. package/index.ts +0 -64
  151. package/src/AMap/Map.vue +0 -110
  152. package/src/AMap/index.ts +0 -1
  153. package/src/AMap/util.ts +0 -56
  154. package/src/BadgeStatus/Badge.vue +0 -41
  155. package/src/BadgeStatus/color.ts +0 -25
  156. package/src/BadgeStatus/index.ts +0 -4
  157. package/src/CardSelect/CardSelect.vue +0 -136
  158. package/src/CardSelect/index.ts +0 -3
  159. package/src/CheckButton/CheckButton.vue +0 -146
  160. package/src/CheckButton/index.md +0 -27
  161. package/src/CheckButton/index.ts +0 -3
  162. package/src/ConfigProvider/context.ts +0 -17
  163. package/src/ConfigProvider/index.tsx +0 -40
  164. package/src/Echarts/Echarts.vue +0 -43
  165. package/src/Echarts/index.ts +0 -3
  166. package/src/Ellipsis/Ellipsis.vue +0 -182
  167. package/src/Ellipsis/index.ts +0 -3
  168. package/src/Empty/Empty.vue +0 -43
  169. package/src/Empty/image.ts +0 -3
  170. package/src/Empty/index.ts +0 -2
  171. package/src/FullPage/FullPage.vue +0 -30
  172. package/src/FullPage/index.ts +0 -3
  173. package/src/Icon/icon.tsx +0 -40
  174. package/src/MonacoEditor/Monaco.vue +0 -242
  175. package/src/MonacoEditor/index.md +0 -26
  176. package/src/MonacoEditor/index.ts +0 -2
  177. package/src/PermissionButton/index.tsx +0 -110
  178. package/src/ProLayout/Basic/BasicLayout.tsx +0 -395
  179. package/src/ProLayout/Basic/Header.tsx +0 -115
  180. package/src/ProLayout/PageContainer/index.tsx +0 -441
  181. package/src/ProLayout/PageContainer/typings.ts +0 -56
  182. package/src/ProLayout/RouteContext.ts +0 -87
  183. package/src/ProLayout/SiderMenu/BaseMenu.tsx +0 -296
  184. package/src/ProLayout/SiderMenu/SiderMenu.tsx +0 -320
  185. package/src/ProLayout/SiderMenu/index.ts +0 -2
  186. package/src/ProLayout/SiderMenu/typings.ts +0 -49
  187. package/src/ProLayout/TopHeader/index.tsx +0 -210
  188. package/src/ProLayout/defaultSettings.ts +0 -106
  189. package/src/ProLayout/style/index.ts +0 -1
  190. package/src/ProLayout/typings.ts +0 -87
  191. package/src/ProLayout/util.ts +0 -64
  192. package/src/ProTable/index.md +0 -53
  193. package/src/ProTable/index.tsx +0 -551
  194. package/src/ProTable/proTableTypes.ts +0 -70
  195. package/src/ProTable/style/index.ts +0 -1
  196. package/src/Scrollbar/Bar.vue +0 -75
  197. package/src/Scrollbar/Scrollbar.vue +0 -260
  198. package/src/Scrollbar/Thumb.vue +0 -163
  199. package/src/Scrollbar/constants.ts +0 -10
  200. package/src/Scrollbar/index.ts +0 -4
  201. package/src/Scrollbar/thumb.ts +0 -16
  202. package/src/Scrollbar/util.ts +0 -38
  203. package/src/Search/Advanced/History.vue +0 -140
  204. package/src/Search/Advanced/SaveHistory.vue +0 -108
  205. package/src/Search/Advanced/index.vue +0 -435
  206. package/src/Search/Item.vue +0 -525
  207. package/src/Search/Search.vue +0 -398
  208. package/src/Search/hooks/index.ts +0 -1
  209. package/src/Search/hooks/useSearchItems.ts +0 -68
  210. package/src/Search/index.md +0 -57
  211. package/src/Search/index.ts +0 -5
  212. package/src/Search/setting.ts +0 -55
  213. package/src/Search/typing.ts +0 -76
  214. package/src/Search/util.ts +0 -263
  215. package/src/ValueItem/ValueItem.vue +0 -192
  216. package/src/ValueItem/index.ts +0 -3
  217. package/src/ValueItem/util.ts +0 -16
  218. package/src/style/index.ts +0 -3
  219. /package/{src → es}/ProLayout/Basic/BasicLayout.less +0 -0
  220. /package/{src → es}/ProLayout/Basic/Header.less +0 -0
  221. /package/{src → es}/ProLayout/PageContainer/index.less +0 -0
  222. /package/{src → es}/ProLayout/SiderMenu/index.less +0 -0
  223. /package/{src → es}/ProLayout/TopHeader/index.less +0 -0
  224. /package/{src → es}/ProLayout/style/style.less +0 -0
  225. /package/{src → es}/ProTable/style/index.less +0 -0
@@ -0,0 +1,233 @@
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
17
+ /* Analyzed bindings: {
18
+ "modelValue": "props",
19
+ "itemType": "props",
20
+ "mode": "props",
21
+ "placeholder": "props",
22
+ "options": "props",
23
+ "style": "props",
24
+ "class": "props",
25
+ "valueFormat": "props",
26
+ "action": "props",
27
+ "headers": "props",
28
+ "CSSProperties": "setup-const",
29
+ "PropType": "setup-const",
30
+ "ref": "setup-const",
31
+ "watch": "setup-const",
32
+ "componentsType": "setup-maybe-ref",
33
+ "MonacoEditor": "setup-maybe-ref",
34
+ "Select": "setup-maybe-ref",
35
+ "DatePicker": "setup-maybe-ref",
36
+ "TimePicker": "setup-maybe-ref",
37
+ "Input": "setup-maybe-ref",
38
+ "InputNumber": "setup-maybe-ref",
39
+ "InputPassword": "setup-maybe-ref",
40
+ "Upload": "setup-maybe-ref",
41
+ "Modal": "setup-maybe-ref",
42
+ "emit": "setup-const",
43
+ "props": "setup-reactive-const",
44
+ "typeMap": "setup-maybe-ref",
45
+ "myValue": "setup-ref",
46
+ "modalVisible": "setup-ref",
47
+ "objectValue": "setup-ref",
48
+ "handleItemModalSubmit": "setup-const",
49
+ "onChange": "setup-const",
50
+ "handleFileChange": "setup-const"
51
+ } */
52
+ import { defineComponent as _defineComponent } from 'vue';
53
+ import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock } from "vue";
54
+ const _hoisted_1 = { class: "value-item-warp" };
55
+ const _hoisted_2 = { style: { "width": "100%", "height": "300px" } };
56
+ import { ref, watch } from 'vue';
57
+ import { componentsType } from './util';
58
+ import { MonacoEditor } from '../../';
59
+ import { Select, DatePicker, TimePicker, Input, InputNumber, InputPassword, Upload, Modal, } from 'ant-design-vue';
60
+ const __sfc_main__ = _defineComponent({
61
+ props: {
62
+ // 组件双向绑定的值
63
+ modelValue: {
64
+ type: [Number, String],
65
+ default: '',
66
+ },
67
+ // 组件类型
68
+ itemType: {
69
+ type: String,
70
+ default: () => 'string',
71
+ },
72
+ // 多选框
73
+ mode: {
74
+ type: String,
75
+ default: '',
76
+ },
77
+ placeholder: String,
78
+ options: Array,
79
+ style: Object,
80
+ class: String,
81
+ valueFormat: String,
82
+ action: [String, Promise],
83
+ headers: Object,
84
+ },
85
+ emits: ["update:modelValue", "change"],
86
+ setup(__props, { emit: __emit }) {
87
+ const emit = __emit;
88
+ const props = __props;
89
+ const typeMap = new Map(Object.entries(componentsType));
90
+ const myValue = ref(undefined);
91
+ const modalVisible = ref(false);
92
+ const objectValue = ref('');
93
+ const handleItemModalSubmit = () => {
94
+ myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
95
+ modalVisible.value = false;
96
+ emit('update:modelValue', objectValue.value);
97
+ emit('change', objectValue.value);
98
+ };
99
+ const onChange = (e) => {
100
+ emit('update:modelValue', myValue.value);
101
+ emit('change', e);
102
+ };
103
+ const handleFileChange = (info) => {
104
+ if (info.file.status === 'done') {
105
+ const url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result]);
106
+ myValue.value = url;
107
+ emit('update:modelValue', url);
108
+ emit('change', url);
109
+ }
110
+ };
111
+ watch(() => props.modelValue, () => {
112
+ myValue.value = props.modelValue;
113
+ if (props.itemType === 'object') {
114
+ objectValue.value = props.modelValue;
115
+ }
116
+ }, { immediate: true });
117
+ return (_ctx, _cache) => {
118
+ const _component_AIcon = _resolveComponent("AIcon");
119
+ return (_openBlock(), _createElementBlock("div", _hoisted_1, [
120
+ (_unref(typeMap).get(__props.itemType) === 'select')
121
+ ? (_openBlock(), _createBlock(_unref(Select), _mergeProps({
122
+ key: 0,
123
+ value: myValue.value,
124
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => ((myValue).value = $event)),
125
+ allowClear: ""
126
+ }, props, {
127
+ onChange: _cache[1] || (_cache[1] = (_, options) => onChange(options))
128
+ }), null, 16 /* FULL_PROPS */, ["value"]))
129
+ : (_unref(typeMap).get(__props.itemType) === 'date')
130
+ ? (_openBlock(), _createBlock(_unref(DatePicker), _mergeProps({
131
+ key: 1,
132
+ value: myValue.value,
133
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((myValue).value = $event)),
134
+ valueFormat: __props.valueFormat || 'YYYY-MM-DD HH:mm:ss',
135
+ allowClear: "",
136
+ showTime: ""
137
+ }, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
138
+ : (_unref(typeMap).get(__props.itemType) === 'time')
139
+ ? (_openBlock(), _createBlock(_unref(TimePicker), _mergeProps({
140
+ key: 2,
141
+ value: myValue.value,
142
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => ((myValue).value = $event)),
143
+ valueFormat: __props.valueFormat || 'HH:mm:ss',
144
+ allowClear: ""
145
+ }, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value", "valueFormat"]))
146
+ : (_unref(typeMap).get(__props.itemType) === 'inputNumber')
147
+ ? (_openBlock(), _createBlock(_unref(InputNumber), _mergeProps({
148
+ key: 3,
149
+ value: myValue.value,
150
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => ((myValue).value = $event)),
151
+ allowClear: ""
152
+ }, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
153
+ : (_unref(typeMap).get(__props.itemType) === 'object')
154
+ ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
155
+ key: 4,
156
+ value: myValue.value,
157
+ "onUpdate:value": _cache[6] || (_cache[6] = ($event) => ((myValue).value = $event)),
158
+ allowClear: ""
159
+ }, props, { onChange: onChange }), {
160
+ addonAfter: _withCtx(() => [
161
+ _createVNode(_component_AIcon, {
162
+ type: "FormOutlined",
163
+ onClick: _cache[5] || (_cache[5] = ($event) => (modalVisible.value = true))
164
+ })
165
+ ]),
166
+ _: 1 /* STABLE */
167
+ }, 16 /* FULL_PROPS */, ["value"]))
168
+ : (_unref(typeMap).get(__props.itemType) === 'file')
169
+ ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
170
+ key: 5,
171
+ value: myValue.value,
172
+ "onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
173
+ allowClear: "",
174
+ placeholder: "请输入链接"
175
+ }, props, { onChange: onChange }), {
176
+ addonAfter: _withCtx(() => [
177
+ _createVNode(_unref(Upload), {
178
+ action: __props.action,
179
+ headers: __props.headers,
180
+ showUploadList: false,
181
+ name: "file",
182
+ onChange: handleFileChange
183
+ }, {
184
+ default: _withCtx(() => [
185
+ _createVNode(_component_AIcon, { type: "UploadOutlined" })
186
+ ]),
187
+ _: 1 /* STABLE */
188
+ }, 8 /* PROPS */, ["action", "headers"])
189
+ ]),
190
+ _: 1 /* STABLE */
191
+ }, 16 /* FULL_PROPS */, ["value"]))
192
+ : (_unref(typeMap).get(__props.itemType) === 'password')
193
+ ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
194
+ key: 6,
195
+ value: myValue.value,
196
+ "onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
197
+ allowClear: "",
198
+ type: "password"
199
+ }, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
200
+ : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
201
+ key: 7,
202
+ value: myValue.value,
203
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
204
+ allowClear: "",
205
+ type: "text"
206
+ }, props, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"])),
207
+ _createCommentVNode(" 代码编辑器弹窗 "),
208
+ _createVNode(_unref(Modal), {
209
+ visible: modalVisible.value,
210
+ "onUpdate:visible": _cache[11] || (_cache[11] = ($event) => ((modalVisible).value = $event)),
211
+ zIndex: 1100,
212
+ "cancel-text": "取消",
213
+ "ok-text": "确认",
214
+ title: "编辑",
215
+ width: "700px",
216
+ onCancel: _cache[12] || (_cache[12] = ($event) => (modalVisible.value = false)),
217
+ onOk: handleItemModalSubmit
218
+ }, {
219
+ default: _withCtx(() => [
220
+ _createElementVNode("div", _hoisted_2, [
221
+ _createVNode(_unref(MonacoEditor), {
222
+ modelValue: objectValue.value,
223
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => ((objectValue).value = $event))
224
+ }, null, 8 /* PROPS */, ["modelValue"])
225
+ ])
226
+ ]),
227
+ _: 1 /* STABLE */
228
+ }, 8 /* PROPS */, ["visible"])
229
+ ]));
230
+ };
231
+ }
232
+ });
233
+ export default __sfc_main__;
@@ -0,0 +1,9 @@
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 _ValueItem = _interopRequireDefault(require("./ValueItem.js"));
9
+ var _default = exports.default = _ValueItem.default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.componentsType = void 0;
7
+ var componentsType = exports.componentsType = {
8
+ int: 'inputNumber',
9
+ long: 'inputNumber',
10
+ float: 'inputNumber',
11
+ double: 'inputNumber',
12
+ string: 'input',
13
+ array: 'input',
14
+ password: 'password',
15
+ enum: 'select',
16
+ boolean: 'select',
17
+ date: 'date',
18
+ time: 'time',
19
+ object: 'object',
20
+ geoPoint: 'geoPoint',
21
+ file: 'file'
22
+ };
package/lib/index.js ADDED
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ var _exportNames = {
9
+ BadgeStatus: true,
10
+ CardSelect: true,
11
+ CheckButton: true,
12
+ ConfigProvider: true,
13
+ Echarts: true,
14
+ Ellipsis: true,
15
+ Empty: true,
16
+ FullPage: true,
17
+ AIcon: true,
18
+ MonacoEditor: true,
19
+ PermissionButton: true,
20
+ ProTable: true,
21
+ Scrollbar: true,
22
+ Search: true,
23
+ AdvancedSearch: true,
24
+ ValueItem: true
25
+ };
26
+ Object.defineProperty(exports, "AIcon", {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _Icon.default;
30
+ }
31
+ });
32
+ Object.defineProperty(exports, "AdvancedSearch", {
33
+ enumerable: true,
34
+ get: function get() {
35
+ return _Search.AdvancedSearch;
36
+ }
37
+ });
38
+ Object.defineProperty(exports, "BadgeStatus", {
39
+ enumerable: true,
40
+ get: function get() {
41
+ return _BadgeStatus.default;
42
+ }
43
+ });
44
+ Object.defineProperty(exports, "CardSelect", {
45
+ enumerable: true,
46
+ get: function get() {
47
+ return _CardSelect.default;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, "CheckButton", {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _CheckButton.default;
54
+ }
55
+ });
56
+ Object.defineProperty(exports, "ConfigProvider", {
57
+ enumerable: true,
58
+ get: function get() {
59
+ return _ConfigProvider.default;
60
+ }
61
+ });
62
+ Object.defineProperty(exports, "Echarts", {
63
+ enumerable: true,
64
+ get: function get() {
65
+ return _Echarts.default;
66
+ }
67
+ });
68
+ Object.defineProperty(exports, "Ellipsis", {
69
+ enumerable: true,
70
+ get: function get() {
71
+ return _Ellipsis.default;
72
+ }
73
+ });
74
+ Object.defineProperty(exports, "Empty", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _Empty.default;
78
+ }
79
+ });
80
+ Object.defineProperty(exports, "FullPage", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _FullPage.default;
84
+ }
85
+ });
86
+ Object.defineProperty(exports, "MonacoEditor", {
87
+ enumerable: true,
88
+ get: function get() {
89
+ return _MonacoEditor.default;
90
+ }
91
+ });
92
+ Object.defineProperty(exports, "PermissionButton", {
93
+ enumerable: true,
94
+ get: function get() {
95
+ return _PermissionButton.default;
96
+ }
97
+ });
98
+ Object.defineProperty(exports, "ProTable", {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return _ProTable.default;
102
+ }
103
+ });
104
+ Object.defineProperty(exports, "Scrollbar", {
105
+ enumerable: true,
106
+ get: function get() {
107
+ return _Scrollbar.default;
108
+ }
109
+ });
110
+ Object.defineProperty(exports, "Search", {
111
+ enumerable: true,
112
+ get: function get() {
113
+ return _Search.default;
114
+ }
115
+ });
116
+ Object.defineProperty(exports, "ValueItem", {
117
+ enumerable: true,
118
+ get: function get() {
119
+ return _ValueItem.default;
120
+ }
121
+ });
122
+ exports.default = void 0;
123
+ var _AMap = _interopRequireDefault(require("./AMap"));
124
+ var _BadgeStatus = _interopRequireDefault(require("./BadgeStatus"));
125
+ var _CardSelect = _interopRequireDefault(require("./CardSelect"));
126
+ var _CheckButton = _interopRequireDefault(require("./CheckButton"));
127
+ var _ConfigProvider = _interopRequireDefault(require("./ConfigProvider"));
128
+ var _Echarts = _interopRequireDefault(require("./Echarts"));
129
+ var _Ellipsis = _interopRequireDefault(require("./Ellipsis"));
130
+ var _Empty = _interopRequireDefault(require("./Empty"));
131
+ var _FullPage = _interopRequireDefault(require("./FullPage"));
132
+ var _Icon = _interopRequireDefault(require("./Icon"));
133
+ var _MonacoEditor = _interopRequireDefault(require("./MonacoEditor"));
134
+ var _PermissionButton = _interopRequireDefault(require("./PermissionButton"));
135
+ var _ProLayout = _interopRequireWildcard(require("./ProLayout"));
136
+ var _ProTable = _interopRequireDefault(require("./ProTable"));
137
+ var _Scrollbar = _interopRequireDefault(require("./Scrollbar"));
138
+ var _Search = _interopRequireWildcard(require("./Search"));
139
+ var _ValueItem = _interopRequireDefault(require("./ValueItem"));
140
+ var _style = require("./style");
141
+ Object.keys(_style).forEach(function (key) {
142
+ if (key === "default" || key === "__esModule") return;
143
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
144
+ if (key in exports && exports[key] === _style[key]) return;
145
+ Object.defineProperty(exports, key, {
146
+ enumerable: true,
147
+ get: function get() {
148
+ return _style[key];
149
+ }
150
+ });
151
+ });
152
+ 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); }
153
+ 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; }
154
+ var _default = exports.default = {
155
+ install: function install(app) {
156
+ app.component('JAMap', _AMap.default).component('JBadgeStatus', _BadgeStatus.default).component('JCardSelect', _CardSelect.default).component('JCheckButton', _CheckButton.default).component('JConfigProvider', _ConfigProvider.default).component('JEcharts', _Echarts.default).component('JEllipsis', _Ellipsis.default).component('JEmpty', _Empty.default).component('JFullPage', _FullPage.default).component('AIcon', _Icon.default).component('JMonacoEditor', _MonacoEditor.default).component('JPermissionButton', _PermissionButton.default).component('JProLayout', _ProLayout.default).component('JPageContainer', _ProLayout.PageContainer).component('JProTable', _ProTable.default).component('JScrollbar', _Scrollbar.default).component('JSearch', _Search.default).component('JAdvancedSearch', _Search.AdvancedSearch).component('JValueItem', _ValueItem.default);
157
+ }
158
+ };
@@ -0,0 +1 @@
1
+ @import "../ProTable/style/index-pure.less";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ require("../ProLayout/style");
4
+ require("../ProTable/style");
File without changes
@@ -0,0 +1,2 @@
1
+ @text-color-title: #000;
2
+ @text-color-subtitle: #263237;
package/package.json CHANGED
@@ -1,40 +1,149 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.0.2-2",
3
+ "version": "2.0.2-4",
4
4
  "description": "",
5
- "main": "index.ts",
6
- "module": "index.ts",
5
+ "main": "lib/index.js",
6
+ "module": "es/index.js",
7
7
  "keywords": [],
8
8
  "files": [
9
- "src",
10
- "index.ts"
9
+ "lib",
10
+ "es"
11
11
  ],
12
12
  "private": false,
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
16
  "@ant-design/icons-vue": "^7.0.1",
17
- "@vueuse/core": "^10.2.1",
18
- "@vueuse/router": "^10.9.0",
19
17
  "@vuemap/vue-amap": "^2.0.17",
20
- "sortablejs": "^1.15.2",
18
+ "@vueuse/core": "^9.12.0",
19
+ "@vueuse/router": "^10.9.0",
20
+ "ant-design-vue": "3.2.20",
21
21
  "echarts": "^5.4.3",
22
22
  "monaco-editor": "^0.40.0",
23
+ "sortablejs": "^1.15.2",
23
24
  "@jetlinks-web/constants": "^1.0.2",
24
25
  "@jetlinks-web/hooks": "^1.0.12",
25
26
  "@jetlinks-web/utils": "^1.0.6"
26
27
  },
27
28
  "devDependencies": {
28
- "lodash-es": "^4.17.21",
29
- "pinia": "^2.1.6",
30
- "vue": "^3.3.4",
31
- "vue-router": "^4.2.4"
29
+ "@babel/cli": "^7.8.4",
30
+ "@babel/core": "^7.10.5",
31
+ "@babel/plugin-proposal-class-properties": "^7.8.3",
32
+ "@babel/plugin-proposal-export-default-from": "^7.8.3",
33
+ "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
34
+ "@babel/plugin-proposal-object-rest-spread": "^7.9.6",
35
+ "@babel/plugin-proposal-optional-chaining": "^7.10.1",
36
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
37
+ "@babel/plugin-transform-member-expression-literals": "^7.8.3",
38
+ "@babel/plugin-transform-object-assign": "^7.8.3",
39
+ "@babel/plugin-transform-property-literals": "^7.8.3",
40
+ "@babel/plugin-transform-runtime": "^7.10.5",
41
+ "@babel/plugin-transform-template-literals": "^7.8.3",
42
+ "@babel/plugin-transform-typescript": "^7.12.1",
43
+ "@babel/polyfill": "^7.8.7",
44
+ "@babel/preset-env": "^7.9.6",
45
+ "@babel/preset-typescript": "^7.10.4",
46
+ "@commitlint/cli": "^17.4.2",
47
+ "@commitlint/config-conventional": "^17.4.2",
48
+ "@rollup/plugin-commonjs": "^22.0.1",
49
+ "@rollup/plugin-node-resolve": "^13.3.0",
50
+ "@types/eslint": "^8.21.0",
51
+ "@types/lodash-es": "^4.17.6",
52
+ "@types/node": "^18.13.0",
53
+ "@types/sortablejs": "^1.15.1",
54
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
55
+ "@typescript-eslint/parser": "^5.50.0",
56
+ "@vitejs/plugin-vue": "^2.3.3",
57
+ "@vitejs/plugin-vue-jsx": "^1.3.10",
58
+ "@vue/babel-plugin-jsx": "^1.0.0",
59
+ "@vue/compiler-sfc": "^3.4.21",
60
+ "autoprefixer": "^10.2.0",
61
+ "babel-eslint": "^10.0.1",
62
+ "babel-loader": "^8.0.0",
63
+ "babel-plugin-import": "^1.1.1",
64
+ "babel-plugin-inline-import-data-uri": "^1.0.1",
65
+ "babel-plugin-istanbul": "^6.0.0",
66
+ "babel-plugin-transform-require-context": "^0.1.1",
67
+ "case-sensitive-paths-webpack-plugin": "^2.1.2",
68
+ "child_process": "^1.0.2",
69
+ "codesandbox": "^2.2.3",
70
+ "colorful": "^2.1.0",
71
+ "commander": "^6.1.0",
72
+ "commitlint": "^17.4.2",
73
+ "compute-scroll-into-view": "^3.0.0",
74
+ "css-loader": "^6.7.3",
75
+ "css-minimizer-webpack-plugin": "^3.0.0",
76
+ "diacritics": "^1.3.0",
77
+ "duplicate-package-checker-webpack-plugin": "^3.0.0",
78
+ "esbuild": "~0.12.29",
79
+ "esbuild-loader": "^2.18.0",
80
+ "escape-html": "^1.0.3",
81
+ "eslint": "^8.33.0",
82
+ "eslint-config-prettier": "^8.0.0",
83
+ "eslint-plugin-html": "^6.0.0",
84
+ "eslint-plugin-import": "^2.24.2",
85
+ "eslint-plugin-markdown": "^2.0.0",
86
+ "eslint-plugin-vue": "^8.1.1",
87
+ "fast-glob": "^3.2.12",
88
+ "globby": "^11.1.0",
89
+ "gray-matter": "^4.0.3",
90
+ "gulp": "^4.0.2",
91
+ "gulp-babel": "^8.0.0",
92
+ "gulp-strip-code": "^0.1.4",
93
+ "gulp-typescript": "^6.0.0-alpha.1",
94
+ "is-windows": "^1.0.2",
95
+ "json5": "^2.2.3",
96
+ "less": "^4.1.3",
97
+ "less-loader": "^11.1.0",
98
+ "less-plugin-npm-import": "^2.1.0",
99
+ "less-vars-to-js": "^1.3.0",
100
+ "lint-staged": "^13.1.0",
101
+ "lru-cache": "^7.14.1",
102
+ "marked": "0.3.18",
103
+ "merge2": "^1.4.1",
104
+ "mini-css-extract-plugin": "^2.4.5",
105
+ "minimist": "^1.2.0",
106
+ "mkdirp": "^0.5.1",
107
+ "object-assign": "^4.1.1",
108
+ "postcss": "^8.2.12",
109
+ "postcss-loader": "^6.0.0",
110
+ "prettier": "^2.8.3",
111
+ "prismjs": "^1.29.0",
112
+ "remove-files-webpack-plugin": "^1.5.0",
113
+ "rollup-plugin-esbuild": "^4.9.1",
114
+ "rollup-plugin-typescript2": "^0.34.1",
115
+ "rollup-plugin-vue": "^6.0.0",
116
+ "slash": "^3.0.0",
117
+ "string-replace-loader": "^3.1.0",
118
+ "style-loader": "^3.3.1",
119
+ "sucrase": "^3.29.0",
120
+ "terser-webpack-plugin": "^5.1.1",
121
+ "through2": "^4.0.2",
122
+ "ts-loader": "^9.1.0",
123
+ "ts-morph": "^17.0.1",
124
+ "typescript": "^4.9.3",
125
+ "unplugin-vue-macros": "^0.11.2",
126
+ "url": "^0.11.0",
127
+ "url-loader": "^3.0.0",
128
+ "vite": "^4.0.0",
129
+ "vite-plugin-monaco-editor": "^1.1.0",
130
+ "vite-plugin-vue-setup-extend": "^0.4.0",
131
+ "vue": "^3.2.45",
132
+ "vue-eslint-parser": "^9.1.0",
133
+ "vue-tsc": "^1.0.11",
134
+ "webpack": "^5.75.0",
135
+ "webpack-bundle-analyzer": "^4.4.2",
136
+ "webpack-cli": "^4.6.0",
137
+ "webpack-dev-server": "^4.0.0",
138
+ "webpack-merge": "^5.0.0",
139
+ "webpackbar": "^5.0.2"
32
140
  },
33
141
  "publishConfig": {
34
142
  "registry": "https://registry.npmjs.org/",
35
143
  "access": "public"
36
144
  },
37
145
  "scripts": {
146
+ "compile": "node tools/cli/run.js compile",
38
147
  "clean": "pnpm rimraf node_modules && pnpm rimraf .turbo"
39
148
  }
40
149
  }
package/index.ts DELETED
@@ -1,64 +0,0 @@
1
- import type { App } from 'vue'
2
-
3
- import { InitAMap } from './src/AMap'
4
- import BadgeStatus from './src/BadgeStatus'
5
- import CardSelect from './src/CardSelect'
6
- import CheckButton from './src/CheckButton'
7
- import ConfigProvider from './src/ConfigProvider'
8
- import Echarts from './src/Echarts'
9
- import Ellipsis from './src/Ellipsis'
10
- import Empty from './src/Empty'
11
- import FullPage from './src/FullPage'
12
- import AIcon from './src/Icon'
13
- import MonacoEditor from './src/MonacoEditor'
14
- import PermissionButton from './src/PermissionButton'
15
- import ProLayout, { PageContainer } from './src/ProLayout'
16
- import ProTable from './src/ProTable'
17
- import Scrollbar from './src/Scrollbar'
18
- import Search, { AdvancedSearch } from './src/Search'
19
- import ValueItem from './src/ValueItem'
20
-
21
- export * from './src/style'
22
-
23
- export {
24
- BadgeStatus,
25
- CardSelect,
26
- CheckButton,
27
- Echarts,
28
- Ellipsis,
29
- Empty,
30
- FullPage,
31
- AIcon,
32
- MonacoEditor,
33
- PermissionButton,
34
- ValueItem,
35
- ProTable,
36
- Scrollbar,
37
- Search,
38
- AdvancedSearch,
39
- ConfigProvider,
40
- }
41
- export default {
42
- install(app: App) {
43
- app
44
- .component('JAMap', InitAMap)
45
- .component('JBadgeStatus', BadgeStatus)
46
- .component('JCardSelect', CardSelect)
47
- .component('JCheckButton', CheckButton)
48
- .component('JConfigProvider', ConfigProvider)
49
- .component('JEcharts', Echarts)
50
- .component('JEllipsis', Ellipsis)
51
- .component('JEmpty', Empty)
52
- .component('JFullPage', FullPage)
53
- .component('AIcon', AIcon)
54
- .component('JMonacoEditor', MonacoEditor)
55
- .component('JPermissionButton', PermissionButton)
56
- .component('JProLayout', ProLayout)
57
- .component('JPageContainer', PageContainer)
58
- .component('JProTable', ProTable)
59
- .component('JScrollbar', Scrollbar)
60
- .component('JSearch', Search)
61
- .component('JAdvancedSearch', AdvancedSearch)
62
- .component('JValueItem', ValueItem)
63
- },
64
- }