@deot/vc 1.0.1

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/dist/index.cjs ADDED
@@ -0,0 +1,220 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const vcShared = require('@deot/vc-shared');
6
+ const vcHooks = require('@deot/vc-hooks');
7
+ const vcComponents = require('@deot/vc-components');
8
+
9
+ const Components = {
10
+ ActionSheet: vcComponents.ActionSheet,
11
+ MActionSheet: vcComponents.MActionSheet,
12
+ Alert: vcComponents.Alert,
13
+ MAlert: vcComponents.MAlert,
14
+ Artboard: vcComponents.Artboard,
15
+ MArtboard: vcComponents.MArtboard,
16
+ Button: vcComponents.Button,
17
+ MButton: vcComponents.MButton,
18
+ ButtonGroup: vcComponents.ButtonGroup,
19
+ MButtonGroup: vcComponents.MButtonGroup,
20
+ Calendar: vcComponents.Calendar,
21
+ MCalendar: vcComponents.MCalendar,
22
+ Card: vcComponents.Card,
23
+ MCard: vcComponents.MCard,
24
+ Carousel: vcComponents.Carousel,
25
+ MCarousel: vcComponents.MCarousel,
26
+ // CarouselItem,
27
+ // MCarouselItem,
28
+ Cascader: vcComponents.Cascader,
29
+ MCascader: vcComponents.MCascader,
30
+ // MCascaderView,
31
+ Chart: vcComponents.Chart,
32
+ MChart: vcComponents.MChart,
33
+ Checkbox: vcComponents.Checkbox,
34
+ MCheckbox: vcComponents.MCheckbox,
35
+ // CheckboxGroup,
36
+ // MCheckboxGroup,
37
+ Clipboard: vcComponents.Clipboard,
38
+ MClipboard: vcComponents.MClipboard,
39
+ Collapse: vcComponents.Collapse,
40
+ MCollapse: vcComponents.MCollapse,
41
+ // CollapseItem,
42
+ // MCollapseItem,
43
+ ColorPicker: vcComponents.ColorPicker,
44
+ // ColorPickerView,
45
+ MColorPicker: vcComponents.MColorPicker,
46
+ // MColorPickerView,
47
+ Countdown: vcComponents.Countdown,
48
+ MCountdown: vcComponents.MCountdown,
49
+ Customer: vcComponents.Customer,
50
+ MCustomer: vcComponents.MCustomer,
51
+ DatePicker: vcComponents.DatePicker,
52
+ MDatePicker: vcComponents.MDatePicker,
53
+ // MDatePickerView,
54
+ Debounce: vcComponents.Debounce,
55
+ MDebounce: vcComponents.MDebounce,
56
+ Divider: vcComponents.Divider,
57
+ MDivider: vcComponents.MDivider,
58
+ Drawer: vcComponents.Drawer,
59
+ MDrawer: vcComponents.MDrawer,
60
+ Dropdown: vcComponents.Dropdown,
61
+ MDropdown: vcComponents.MDropdown,
62
+ // DropdownItem,
63
+ // MDropdownItem,
64
+ // DropdownMenu,
65
+ // MDropdownMenu,
66
+ Editor: vcComponents.Editor,
67
+ MEditor: vcComponents.MEditor,
68
+ // EditorView,
69
+ // MEditorView,
70
+ Expand: vcComponents.Expand,
71
+ MExpand: vcComponents.MExpand,
72
+ Form: vcComponents.Form,
73
+ MForm: vcComponents.MForm,
74
+ FormItem: vcComponents.FormItem,
75
+ MFormItem: vcComponents.MFormItem,
76
+ Fragment: vcComponents.Fragment,
77
+ MFragment: vcComponents.MFragment,
78
+ HTMLToImage: vcComponents.HTMLToImage,
79
+ MHTMLToImage: vcComponents.MHTMLToImage,
80
+ Icon: vcComponents.Icon,
81
+ MIcon: vcComponents.MIcon,
82
+ Image: vcComponents.Image,
83
+ MImage: vcComponents.MImage,
84
+ ImageCrop: vcComponents.ImageCrop,
85
+ MImageCrop: vcComponents.MImageCrop,
86
+ ImagePreview: vcComponents.ImagePreview,
87
+ MImagePreview: vcComponents.MImagePreview,
88
+ ImageProcessing: vcComponents.ImageProcessing,
89
+ MImageProcessing: vcComponents.MImageProcessing,
90
+ Input: vcComponents.Input,
91
+ MInput: vcComponents.MInput,
92
+ InputNumber: vcComponents.InputNumber,
93
+ MInputNumber: vcComponents.MInputNumber,
94
+ InputSearch: vcComponents.InputSearch,
95
+ MInputSearch: vcComponents.MInputSearch,
96
+ List: vcComponents.List,
97
+ MList: vcComponents.MList,
98
+ ListItem: vcComponents.ListItem,
99
+ MListItem: vcComponents.MListItem,
100
+ Marquee: vcComponents.Marquee,
101
+ MMarquee: vcComponents.MMarquee,
102
+ Modal: vcComponents.Modal,
103
+ MModal: vcComponents.MModal,
104
+ Notice: vcComponents.Notice,
105
+ MNotice: vcComponents.MNotice,
106
+ Option: vcComponents.Option,
107
+ MOption: vcComponents.MOption,
108
+ Page: vcComponents.Page,
109
+ MPage: vcComponents.MPage,
110
+ Picker: vcComponents.Picker,
111
+ MPicker: vcComponents.MPicker,
112
+ // PickerView,
113
+ // MPickerView,
114
+ // PickerPopup,
115
+ // MPickerPopup,
116
+ Popconfirm: vcComponents.Popconfirm,
117
+ MPopconfirm: vcComponents.MPopconfirm,
118
+ Popover: vcComponents.Popover,
119
+ MPopover: vcComponents.MPopover,
120
+ Popup: vcComponents.Popup,
121
+ MPopup: vcComponents.MPopup,
122
+ Print: vcComponents.Print,
123
+ MPrint: vcComponents.MPrint,
124
+ Progress: vcComponents.Progress,
125
+ MProgress: vcComponents.MProgress,
126
+ Radio: vcComponents.Radio,
127
+ MRadio: vcComponents.MRadio,
128
+ // RadioGroup,
129
+ // MRadioGroup,
130
+ Rate: vcComponents.Rate,
131
+ MRate: vcComponents.MRate,
132
+ RecycleList: vcComponents.RecycleList,
133
+ MRecycleList: vcComponents.MRecycleList,
134
+ Scroller: vcComponents.Scroller,
135
+ MScroller: vcComponents.MScroller,
136
+ Select: vcComponents.Select,
137
+ MSelect: vcComponents.MSelect,
138
+ Slider: vcComponents.Slider,
139
+ MSlider: vcComponents.MSlider,
140
+ SortList: vcComponents.SortList,
141
+ MSortList: vcComponents.MSortList,
142
+ Spin: vcComponents.Spin,
143
+ MSpin: vcComponents.MSpin,
144
+ Steps: vcComponents.Steps,
145
+ MSteps: vcComponents.MSteps,
146
+ // Step,
147
+ // MStep,
148
+ // StepsBar,
149
+ // MStepsBar,
150
+ Switch: vcComponents.Switch,
151
+ MSwitch: vcComponents.MSwitch,
152
+ Table: vcComponents.Table,
153
+ MTable: vcComponents.MTable,
154
+ // TableItem,
155
+ // MTableItem,
156
+ // TableColumn,
157
+ // MTableColumn,
158
+ Tabs: vcComponents.Tabs,
159
+ MTabs: vcComponents.MTabs,
160
+ // TabsPane,
161
+ // MTabsPane,
162
+ Tag: vcComponents.Tag,
163
+ MTag: vcComponents.MTag,
164
+ Text: vcComponents.Text,
165
+ MText: vcComponents.MText,
166
+ Textarea: vcComponents.Textarea,
167
+ MTextarea: vcComponents.MTextarea,
168
+ Timeline: vcComponents.Timeline,
169
+ MTimeline: vcComponents.MTimeline,
170
+ // TimelineItem,
171
+ // MTimelineItem,
172
+ TimePicker: vcComponents.TimePicker,
173
+ MTimePicker: vcComponents.MTimePicker,
174
+ Touch: vcComponents.Touch,
175
+ MTouch: vcComponents.MTouch,
176
+ Transition: vcComponents.Transition,
177
+ MTransition: vcComponents.MTransition,
178
+ TransitionFade: vcComponents.TransitionFade,
179
+ MTransitionFade: vcComponents.MTransitionFade,
180
+ TransitionScale: vcComponents.TransitionScale,
181
+ MTransitionScale: vcComponents.MTransitionScale,
182
+ TransitionSlide: vcComponents.TransitionSlide,
183
+ MTransitionSlide: vcComponents.MTransitionSlide,
184
+ TransitionZoom: vcComponents.TransitionZoom,
185
+ MTransitionZoom: vcComponents.MTransitionZoom,
186
+ TransitionCollapse: vcComponents.TransitionCollapse,
187
+ MTransitionCollapse: vcComponents.MTransitionCollapse,
188
+ Tree: vcComponents.Tree,
189
+ MTree: vcComponents.MTree,
190
+ // TreeSelect,
191
+ // MTreeSelect,
192
+ Upload: vcComponents.Upload,
193
+ MUpload: vcComponents.MUpload,
194
+ UploadPicker: vcComponents.UploadPicker,
195
+ MUploadPicker: vcComponents.MUploadPicker
196
+ };
197
+ const createVcPlugin = (options, transfromComponentKey = (x) => x) => {
198
+ return {
199
+ install: (app) => {
200
+ app.config.globalProperties.$vc = vcComponents.VcInstance.configure(options);
201
+ Object.keys(Components).forEach((key) => {
202
+ key = transfromComponentKey(key) || key;
203
+ app.component(key, Components[key]);
204
+ });
205
+ }
206
+ };
207
+ };
208
+
209
+ Object.defineProperty(exports, "Utils", {
210
+ enumerable: true,
211
+ get: () => vcShared.Utils
212
+ });
213
+ exports.Components = Components;
214
+ exports.createVcPlugin = createVcPlugin;
215
+ Object.keys(vcHooks).forEach(k => {
216
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
217
+ enumerable: true,
218
+ get: () => vcHooks[k]
219
+ });
220
+ });