code-monkey-ui 1.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.
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/component.ts +211 -0
- package/defaults.ts +5 -0
- package/index.ts +13 -0
- package/locales.ts +1 -0
- package/make-installer.ts +22 -0
- package/package.json +117 -0
- package/plugin.ts +17 -0
- package/version.ts +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-PRESENT Element Plus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/component.ts
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { ElAffix } from '@element-plus/components/affix'
|
|
2
|
+
import { ElAlert } from '@element-plus/components/alert'
|
|
3
|
+
import { ElAutocomplete } from '@element-plus/components/autocomplete'
|
|
4
|
+
import { ElAvatar } from '@element-plus/components/avatar'
|
|
5
|
+
import { ElBacktop } from '@element-plus/components/backtop'
|
|
6
|
+
import { ElBadge } from '@element-plus/components/badge'
|
|
7
|
+
import {
|
|
8
|
+
ElBreadcrumb,
|
|
9
|
+
ElBreadcrumbItem,
|
|
10
|
+
} from '@element-plus/components/breadcrumb'
|
|
11
|
+
import { ElButton, ElButtonGroup } from '@element-plus/components/button'
|
|
12
|
+
import { ElCalendar } from '@element-plus/components/calendar'
|
|
13
|
+
import { ElCard } from '@element-plus/components/card'
|
|
14
|
+
import { ElCarousel, ElCarouselItem } from '@element-plus/components/carousel'
|
|
15
|
+
import { ElCascader } from '@element-plus/components/cascader'
|
|
16
|
+
import { DshCascader } from '@element-plus/components/dsh-cascader'
|
|
17
|
+
import { ElCascaderPanel } from '@element-plus/components/cascader-panel'
|
|
18
|
+
import { ElCheckTag } from '@element-plus/components/check-tag'
|
|
19
|
+
import {
|
|
20
|
+
ElCheckbox,
|
|
21
|
+
ElCheckboxButton,
|
|
22
|
+
ElCheckboxGroup,
|
|
23
|
+
} from '@element-plus/components/checkbox'
|
|
24
|
+
import { ElCol } from '@element-plus/components/col'
|
|
25
|
+
import { ElCollapse, ElCollapseItem } from '@element-plus/components/collapse'
|
|
26
|
+
import { ElCollapseTransition } from '@element-plus/components/collapse-transition'
|
|
27
|
+
import { ElColorPicker } from '@element-plus/components/color-picker'
|
|
28
|
+
import { ElConfigProvider } from '@element-plus/components/config-provider'
|
|
29
|
+
import {
|
|
30
|
+
ElAside,
|
|
31
|
+
ElContainer,
|
|
32
|
+
ElFooter,
|
|
33
|
+
ElHeader,
|
|
34
|
+
ElMain,
|
|
35
|
+
} from '@element-plus/components/container'
|
|
36
|
+
import { ElDatePicker } from '@element-plus/components/date-picker'
|
|
37
|
+
import {
|
|
38
|
+
ElDescriptions,
|
|
39
|
+
ElDescriptionsItem,
|
|
40
|
+
} from '@element-plus/components/descriptions'
|
|
41
|
+
import { ElDialog } from '@element-plus/components/dialog'
|
|
42
|
+
import { ElDivider } from '@element-plus/components/divider'
|
|
43
|
+
import { ElDrawer } from '@element-plus/components/drawer'
|
|
44
|
+
import {
|
|
45
|
+
ElDropdown,
|
|
46
|
+
ElDropdownItem,
|
|
47
|
+
ElDropdownMenu,
|
|
48
|
+
} from '@element-plus/components/dropdown'
|
|
49
|
+
import { ElEmpty } from '@element-plus/components/empty'
|
|
50
|
+
import { ElForm, ElFormItem } from '@element-plus/components/form'
|
|
51
|
+
import { ElIcon } from '@element-plus/components/icon'
|
|
52
|
+
import { ElImage } from '@element-plus/components/image'
|
|
53
|
+
import { ElImageViewer } from '@element-plus/components/image-viewer'
|
|
54
|
+
import { ElInput } from '@element-plus/components/input'
|
|
55
|
+
import { ElInputNumber } from '@element-plus/components/input-number'
|
|
56
|
+
import { ElLink } from '@element-plus/components/link'
|
|
57
|
+
import {
|
|
58
|
+
ElMenu,
|
|
59
|
+
ElMenuItem,
|
|
60
|
+
ElMenuItemGroup,
|
|
61
|
+
ElSubMenu,
|
|
62
|
+
} from '@element-plus/components/menu'
|
|
63
|
+
import { ElPageHeader } from '@element-plus/components/page-header'
|
|
64
|
+
import { ElPagination } from '@element-plus/components/pagination'
|
|
65
|
+
import { ElPopconfirm } from '@element-plus/components/popconfirm'
|
|
66
|
+
import { ElPopover } from '@element-plus/components/popover'
|
|
67
|
+
import { ElPopper } from '@element-plus/components/popper'
|
|
68
|
+
import { ElProgress } from '@element-plus/components/progress'
|
|
69
|
+
import {
|
|
70
|
+
ElRadio,
|
|
71
|
+
ElRadioButton,
|
|
72
|
+
ElRadioGroup,
|
|
73
|
+
} from '@element-plus/components/radio'
|
|
74
|
+
import { ElRate } from '@element-plus/components/rate'
|
|
75
|
+
import { ElResult } from '@element-plus/components/result'
|
|
76
|
+
import { ElRow } from '@element-plus/components/row'
|
|
77
|
+
import { ElScrollbar } from '@element-plus/components/scrollbar'
|
|
78
|
+
import {
|
|
79
|
+
ElOption,
|
|
80
|
+
ElOptionGroup,
|
|
81
|
+
ElSelect,
|
|
82
|
+
} from '@element-plus/components/select'
|
|
83
|
+
import { ElSelectV2 } from '@element-plus/components/select-v2'
|
|
84
|
+
import { ElSkeleton, ElSkeletonItem } from '@element-plus/components/skeleton'
|
|
85
|
+
import { ElSlider } from '@element-plus/components/slider'
|
|
86
|
+
import { ElSpace } from '@element-plus/components/space'
|
|
87
|
+
import { ElStatistic } from '@element-plus/components/statistic'
|
|
88
|
+
import { ElCountdown } from '@element-plus/components/countdown'
|
|
89
|
+
import { ElStep, ElSteps } from '@element-plus/components/steps'
|
|
90
|
+
import { ElSwitch } from '@element-plus/components/switch'
|
|
91
|
+
import { ElTable, ElTableColumn } from '@element-plus/components/table'
|
|
92
|
+
import { ElAutoResizer, ElTableV2 } from '@element-plus/components/table-v2'
|
|
93
|
+
import { ElTabPane, ElTabs } from '@element-plus/components/tabs'
|
|
94
|
+
import { ElTag } from '@element-plus/components/tag'
|
|
95
|
+
import { ElText } from '@element-plus/components/text'
|
|
96
|
+
import { ElTimePicker } from '@element-plus/components/time-picker'
|
|
97
|
+
import { ElTimeSelect } from '@element-plus/components/time-select'
|
|
98
|
+
import { ElTimeline, ElTimelineItem } from '@element-plus/components/timeline'
|
|
99
|
+
import { ElTooltip } from '@element-plus/components/tooltip'
|
|
100
|
+
import { ElTooltipV2 } from '@element-plus/components/tooltip-v2'
|
|
101
|
+
import { ElTransfer } from '@element-plus/components/transfer'
|
|
102
|
+
import { ElTree } from '@element-plus/components/tree'
|
|
103
|
+
import { ElTreeSelect } from '@element-plus/components/tree-select'
|
|
104
|
+
import { ElTreeV2 } from '@element-plus/components/tree-v2'
|
|
105
|
+
import { ElUpload } from '@element-plus/components/upload'
|
|
106
|
+
import { ElWatermark } from '@element-plus/components/watermark'
|
|
107
|
+
|
|
108
|
+
import type { Plugin } from 'vue'
|
|
109
|
+
|
|
110
|
+
export default [
|
|
111
|
+
ElAffix,
|
|
112
|
+
ElAlert,
|
|
113
|
+
ElAutocomplete,
|
|
114
|
+
ElAutoResizer,
|
|
115
|
+
ElAvatar,
|
|
116
|
+
ElBacktop,
|
|
117
|
+
ElBadge,
|
|
118
|
+
ElBreadcrumb,
|
|
119
|
+
ElBreadcrumbItem,
|
|
120
|
+
ElButton,
|
|
121
|
+
ElButtonGroup,
|
|
122
|
+
ElCalendar,
|
|
123
|
+
ElCard,
|
|
124
|
+
ElCarousel,
|
|
125
|
+
ElCarouselItem,
|
|
126
|
+
DshCascader,
|
|
127
|
+
ElCascader,
|
|
128
|
+
ElCascaderPanel,
|
|
129
|
+
ElCheckTag,
|
|
130
|
+
ElCheckbox,
|
|
131
|
+
ElCheckboxButton,
|
|
132
|
+
ElCheckboxGroup,
|
|
133
|
+
ElCol,
|
|
134
|
+
ElCollapse,
|
|
135
|
+
ElCollapseItem,
|
|
136
|
+
ElCollapseTransition,
|
|
137
|
+
ElColorPicker,
|
|
138
|
+
ElConfigProvider,
|
|
139
|
+
ElContainer,
|
|
140
|
+
ElAside,
|
|
141
|
+
ElFooter,
|
|
142
|
+
ElHeader,
|
|
143
|
+
ElMain,
|
|
144
|
+
ElDatePicker,
|
|
145
|
+
ElDescriptions,
|
|
146
|
+
ElDescriptionsItem,
|
|
147
|
+
ElDialog,
|
|
148
|
+
ElDivider,
|
|
149
|
+
ElDrawer,
|
|
150
|
+
ElDropdown,
|
|
151
|
+
ElDropdownItem,
|
|
152
|
+
ElDropdownMenu,
|
|
153
|
+
ElEmpty,
|
|
154
|
+
ElForm,
|
|
155
|
+
ElFormItem,
|
|
156
|
+
ElIcon,
|
|
157
|
+
ElImage,
|
|
158
|
+
ElImageViewer,
|
|
159
|
+
ElInput,
|
|
160
|
+
ElInputNumber,
|
|
161
|
+
ElLink,
|
|
162
|
+
ElMenu,
|
|
163
|
+
ElMenuItem,
|
|
164
|
+
ElMenuItemGroup,
|
|
165
|
+
ElSubMenu,
|
|
166
|
+
ElPageHeader,
|
|
167
|
+
ElPagination,
|
|
168
|
+
ElPopconfirm,
|
|
169
|
+
ElPopover,
|
|
170
|
+
ElPopper,
|
|
171
|
+
ElProgress,
|
|
172
|
+
ElRadio,
|
|
173
|
+
ElRadioButton,
|
|
174
|
+
ElRadioGroup,
|
|
175
|
+
ElRate,
|
|
176
|
+
ElResult,
|
|
177
|
+
ElRow,
|
|
178
|
+
ElScrollbar,
|
|
179
|
+
ElSelect,
|
|
180
|
+
ElOption,
|
|
181
|
+
ElOptionGroup,
|
|
182
|
+
ElSelectV2,
|
|
183
|
+
ElSkeleton,
|
|
184
|
+
ElSkeletonItem,
|
|
185
|
+
ElSlider,
|
|
186
|
+
ElSpace,
|
|
187
|
+
ElStatistic,
|
|
188
|
+
ElCountdown,
|
|
189
|
+
ElSteps,
|
|
190
|
+
ElStep,
|
|
191
|
+
ElSwitch,
|
|
192
|
+
ElTable,
|
|
193
|
+
ElTableColumn,
|
|
194
|
+
ElTableV2,
|
|
195
|
+
ElTabs,
|
|
196
|
+
ElTabPane,
|
|
197
|
+
ElTag,
|
|
198
|
+
ElText,
|
|
199
|
+
ElTimePicker,
|
|
200
|
+
ElTimeSelect,
|
|
201
|
+
ElTimeline,
|
|
202
|
+
ElTimelineItem,
|
|
203
|
+
ElTooltip,
|
|
204
|
+
ElTooltipV2,
|
|
205
|
+
ElTransfer,
|
|
206
|
+
ElTree,
|
|
207
|
+
ElTreeSelect,
|
|
208
|
+
ElTreeV2,
|
|
209
|
+
ElUpload,
|
|
210
|
+
ElWatermark,
|
|
211
|
+
] as Plugin[]
|
package/defaults.ts
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import installer from './defaults'
|
|
2
|
+
export * from '@element-plus/components'
|
|
3
|
+
export * from '@element-plus/components/dshIndex'
|
|
4
|
+
export * from '@element-plus/constants'
|
|
5
|
+
export * from '@element-plus/directives'
|
|
6
|
+
export * from '@element-plus/hooks'
|
|
7
|
+
export * from './make-installer'
|
|
8
|
+
|
|
9
|
+
export const install = installer.install
|
|
10
|
+
export const version = installer.version
|
|
11
|
+
export default installer
|
|
12
|
+
|
|
13
|
+
export { default as dayjs } from 'dayjs'
|
package/locales.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@element-plus/locale'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { provideGlobalConfig } from '@element-plus/components/config-provider'
|
|
2
|
+
import { INSTALLED_KEY } from '@element-plus/constants'
|
|
3
|
+
import { version } from './version'
|
|
4
|
+
|
|
5
|
+
import type { App, Plugin } from '@vue/runtime-core'
|
|
6
|
+
import type { ConfigProviderContext } from '@element-plus/components/config-provider'
|
|
7
|
+
|
|
8
|
+
export const makeInstaller = (components: Plugin[] = []) => {
|
|
9
|
+
const install = (app: App, options?: ConfigProviderContext) => {
|
|
10
|
+
if (app[INSTALLED_KEY]) return
|
|
11
|
+
|
|
12
|
+
app[INSTALLED_KEY] = true
|
|
13
|
+
components.forEach((c) => app.use(c))
|
|
14
|
+
|
|
15
|
+
if (options) provideGlobalConfig(options, app, true)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
version,
|
|
20
|
+
install,
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "code-monkey-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A Component Library for Vue 3",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"element-plus",
|
|
7
|
+
"element",
|
|
8
|
+
"component library",
|
|
9
|
+
"ui framework",
|
|
10
|
+
"ui",
|
|
11
|
+
"vue",
|
|
12
|
+
"dsh",
|
|
13
|
+
"code-monkey"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://element-plus.org/",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/element-plus/element-plus/issues"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"main": "lib/index.js",
|
|
21
|
+
"module": "es/index.mjs",
|
|
22
|
+
"types": "es/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./es/index.d.ts",
|
|
26
|
+
"import": "./es/index.mjs",
|
|
27
|
+
"require": "./lib/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./global": {
|
|
30
|
+
"types": "./global.d.ts"
|
|
31
|
+
},
|
|
32
|
+
"./es": {
|
|
33
|
+
"types": "./es/index.d.ts",
|
|
34
|
+
"import": "./es/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./lib": {
|
|
37
|
+
"types": "./lib/index.d.ts",
|
|
38
|
+
"require": "./lib/index.js"
|
|
39
|
+
},
|
|
40
|
+
"./es/*.mjs": {
|
|
41
|
+
"types": "./es/*.d.ts",
|
|
42
|
+
"import": "./es/*.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./es/*": {
|
|
45
|
+
"types": [
|
|
46
|
+
"./es/*.d.ts",
|
|
47
|
+
"./es/*/index.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"import": "./es/*.mjs"
|
|
50
|
+
},
|
|
51
|
+
"./lib/*.js": {
|
|
52
|
+
"types": "./lib/*.d.ts",
|
|
53
|
+
"require": "./lib/*.js"
|
|
54
|
+
},
|
|
55
|
+
"./lib/*": {
|
|
56
|
+
"types": [
|
|
57
|
+
"./lib/*.d.ts",
|
|
58
|
+
"./lib/*/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"require": "./lib/*.js"
|
|
61
|
+
},
|
|
62
|
+
"./*": "./*"
|
|
63
|
+
},
|
|
64
|
+
"unpkg": "dist/index.full.js",
|
|
65
|
+
"jsdelivr": "dist/index.full.js",
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git+https://github.com/element-plus/element-plus.git"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"style": "dist/index.css",
|
|
74
|
+
"sideEffects": [
|
|
75
|
+
"dist/*",
|
|
76
|
+
"theme-chalk/**/*.css",
|
|
77
|
+
"theme-chalk/src/**/*.scss",
|
|
78
|
+
"es/components/*/style/*",
|
|
79
|
+
"lib/components/*/style/*"
|
|
80
|
+
],
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"vue": "^3.2.0"
|
|
83
|
+
},
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"@ctrl/tinycolor": "^3.4.1",
|
|
86
|
+
"@element-plus/icons-vue": "^2.0.6",
|
|
87
|
+
"@floating-ui/dom": "^1.0.1",
|
|
88
|
+
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.7",
|
|
89
|
+
"@types/lodash": "^4.14.182",
|
|
90
|
+
"@types/lodash-es": "^4.17.6",
|
|
91
|
+
"@vueuse/core": "^9.1.0",
|
|
92
|
+
"async-validator": "^4.2.5",
|
|
93
|
+
"dayjs": "^1.11.3",
|
|
94
|
+
"escape-html": "^1.0.3",
|
|
95
|
+
"lodash": "^4.17.21",
|
|
96
|
+
"lodash-es": "^4.17.21",
|
|
97
|
+
"lodash-unified": "^1.0.2",
|
|
98
|
+
"memoize-one": "^6.0.0",
|
|
99
|
+
"normalize-wheel-es": "^1.2.0"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@types/node": "*",
|
|
103
|
+
"csstype": "^2.6.20",
|
|
104
|
+
"vue": "^3.2.37",
|
|
105
|
+
"vue-router": "^4.0.16"
|
|
106
|
+
},
|
|
107
|
+
"vetur": {
|
|
108
|
+
"tags": "tags.json",
|
|
109
|
+
"attributes": "attributes.json"
|
|
110
|
+
},
|
|
111
|
+
"web-types": "web-types.json",
|
|
112
|
+
"browserslist": [
|
|
113
|
+
"> 1%",
|
|
114
|
+
"not ie 11",
|
|
115
|
+
"not op_mini all"
|
|
116
|
+
]
|
|
117
|
+
}
|
package/plugin.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElInfiniteScroll } from '@element-plus/components/infinite-scroll'
|
|
2
|
+
import { ElLoading } from '@element-plus/components/loading'
|
|
3
|
+
import { ElMessage } from '@element-plus/components/message'
|
|
4
|
+
import { ElMessageBox } from '@element-plus/components/message-box'
|
|
5
|
+
import { ElNotification } from '@element-plus/components/notification'
|
|
6
|
+
import { ElPopoverDirective } from '@element-plus/components/popover'
|
|
7
|
+
|
|
8
|
+
import type { Plugin } from 'vue'
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
ElInfiniteScroll,
|
|
12
|
+
ElLoading,
|
|
13
|
+
ElMessage,
|
|
14
|
+
ElMessageBox,
|
|
15
|
+
ElNotification,
|
|
16
|
+
ElPopoverDirective,
|
|
17
|
+
] as Plugin[]
|
package/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const version = '1.0.0'
|