@uzum-tech/ui 1.9.1 → 1.10.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.js +5316 -804
- package/dist/index.prod.js +12 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +1 -1
- package/es/chat/src/ChatListItems.js +16 -1
- package/es/chat/src/ChatParts/MainArea.js +31 -21
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/crop/index.d.ts +3 -0
- package/es/crop/index.js +1 -0
- package/es/crop/src/Crop.d.ts +222 -0
- package/es/crop/src/Crop.js +157 -0
- package/es/crop/src/interface.d.ts +6 -0
- package/es/crop/src/interface.js +7 -0
- package/es/crop/src/styles/index.cssr.d.ts +2 -0
- package/es/crop/src/styles/index.cssr.js +333 -0
- package/es/crop/styles/_common.d.ts +4 -0
- package/es/crop/styles/_common.js +3 -0
- package/es/crop/styles/dark.d.ts +3 -0
- package/es/crop/styles/dark.js +9 -0
- package/es/crop/styles/index.d.ts +3 -0
- package/es/crop/styles/index.js +2 -0
- package/es/crop/styles/light.d.ts +14 -0
- package/es/crop/styles/light.js +14 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +1 -1
- package/es/date-picker/src/panel/panelYear.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/es/dynamic-tags/styles/light.d.ts +3 -0
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
- package/es/infinite-scroll/src/InfiniteScroll.js +45 -12
- package/es/input/src/Input.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/modal-fullscreen/index.d.ts +2 -0
- package/es/modal-fullscreen/index.js +1 -0
- package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/es/modal-fullscreen/src/ModalFull.js +250 -0
- package/es/modal-fullscreen/src/interface.d.ts +0 -0
- package/es/modal-fullscreen/src/interface.js +1 -0
- package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
- package/es/modal-fullscreen/styles/_common.d.ts +12 -0
- package/es/modal-fullscreen/styles/_common.js +11 -0
- package/es/modal-fullscreen/styles/dark.d.ts +3 -0
- package/es/modal-fullscreen/styles/dark.js +14 -0
- package/es/modal-fullscreen/styles/index.d.ts +3 -0
- package/es/modal-fullscreen/styles/index.js +2 -0
- package/es/modal-fullscreen/styles/light.d.ts +100 -0
- package/es/modal-fullscreen/styles/light.js +19 -0
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/select/src/Select.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tag/index.d.ts +2 -0
- package/es/tag/index.js +1 -0
- package/es/tag/src/Tag.d.ts +40 -0
- package/es/tag/src/Tag.js +3 -0
- package/es/tag/src/TagGroup.d.ts +644 -0
- package/es/tag/src/TagGroup.js +109 -0
- package/es/tag/src/styles/index.cssr.d.ts +1 -0
- package/es/tag/src/styles/index.cssr.js +8 -1
- package/es/tag/styles/light.d.ts +3 -0
- package/es/tag/styles/light.js +5 -0
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +1 -1
- package/es/virtual-list/index.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +1 -1
- package/lib/chat/src/ChatListItems.js +16 -1
- package/lib/chat/src/ChatParts/MainArea.js +31 -21
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/crop/index.d.ts +3 -0
- package/lib/crop/index.js +9 -0
- package/lib/crop/src/Crop.d.ts +222 -0
- package/lib/crop/src/Crop.js +163 -0
- package/lib/crop/src/interface.d.ts +6 -0
- package/lib/crop/src/interface.js +10 -0
- package/lib/crop/src/styles/index.cssr.d.ts +2 -0
- package/lib/crop/src/styles/index.cssr.js +338 -0
- package/lib/crop/styles/_common.d.ts +4 -0
- package/lib/crop/styles/_common.js +5 -0
- package/lib/crop/styles/dark.d.ts +3 -0
- package/lib/crop/styles/dark.js +11 -0
- package/lib/crop/styles/index.d.ts +3 -0
- package/lib/crop/styles/index.js +10 -0
- package/lib/crop/styles/light.d.ts +14 -0
- package/lib/crop/styles/light.js +21 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +1 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
- package/lib/dynamic-tags/styles/light.d.ts +3 -0
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
- package/lib/infinite-scroll/src/InfiniteScroll.js +44 -11
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/modal-fullscreen/index.d.ts +2 -0
- package/lib/modal-fullscreen/index.js +9 -0
- package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
- package/lib/modal-fullscreen/src/ModalFull.js +256 -0
- package/lib/modal-fullscreen/src/interface.d.ts +0 -0
- package/lib/modal-fullscreen/src/interface.js +1 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
- package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
- package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
- package/lib/modal-fullscreen/styles/_common.js +13 -0
- package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
- package/lib/modal-fullscreen/styles/dark.js +16 -0
- package/lib/modal-fullscreen/styles/index.d.ts +3 -0
- package/lib/modal-fullscreen/styles/index.js +10 -0
- package/lib/modal-fullscreen/styles/light.d.ts +100 -0
- package/lib/modal-fullscreen/styles/light.js +26 -0
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/select/src/Select.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tag/index.d.ts +2 -0
- package/lib/tag/index.js +3 -1
- package/lib/tag/src/Tag.d.ts +40 -0
- package/lib/tag/src/Tag.js +3 -0
- package/lib/tag/src/TagGroup.d.ts +644 -0
- package/lib/tag/src/TagGroup.js +112 -0
- package/lib/tag/src/styles/index.cssr.d.ts +1 -0
- package/lib/tag/src/styles/index.cssr.js +9 -1
- package/lib/tag/styles/light.d.ts +3 -0
- package/lib/tag/styles/light.js +5 -0
- package/lib/themes/dark.js +5 -1
- package/lib/themes/light.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +1 -1
- package/lib/virtual-list/index.js +2 -2
- package/package.json +7 -6
- package/volar.d.ts +4 -0
- package/web-types.json +387 -1
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const cssr_1 = require("../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
|
+
// --u-wrapper-border-radius
|
|
9
|
+
// --u-wrapper-bg-color
|
|
10
|
+
// --u-wrapper-width
|
|
11
|
+
// --u-wrapper-height
|
|
12
|
+
// --u-cropper-theme-color
|
|
13
|
+
// --u-wrapper-margin
|
|
14
|
+
exports.default = (0, cssr_1.c)([(0, cssr_1.c)([(0, cssr_1.c)('.cropper-container', {
|
|
15
|
+
direction: 'ltr',
|
|
16
|
+
fontSize: '0',
|
|
17
|
+
lineHeight: '0',
|
|
18
|
+
position: 'relative',
|
|
19
|
+
msTouchAction: 'none',
|
|
20
|
+
touchAction: 'none',
|
|
21
|
+
WebkitTouchCallout: 'none',
|
|
22
|
+
WebkitUserSelect: 'none',
|
|
23
|
+
MozUserSelect: 'none',
|
|
24
|
+
msUserSelect: 'none',
|
|
25
|
+
userSelect: 'none'
|
|
26
|
+
}, [(0, cssr_1.c)('img', {
|
|
27
|
+
backfaceVisibility: 'hidden',
|
|
28
|
+
display: 'block',
|
|
29
|
+
height: '100%',
|
|
30
|
+
imageOrientation: '0deg',
|
|
31
|
+
maxHeight: 'none !important',
|
|
32
|
+
maxWidth: 'none !important',
|
|
33
|
+
minHeight: '0 !important',
|
|
34
|
+
minWidth: '0 !important',
|
|
35
|
+
width: '100%'
|
|
36
|
+
})]), (0, cssr_1.c)('.cropper-wrap-box, .cropper-canvas, .cropper-drag-box, .cropper-crop-box, .cropper-modal', {
|
|
37
|
+
bottom: '0',
|
|
38
|
+
left: '0',
|
|
39
|
+
position: 'absolute',
|
|
40
|
+
right: '0',
|
|
41
|
+
top: '0'
|
|
42
|
+
}), (0, cssr_1.c)('.cropper-wrap-box, .cropper-canvas', {
|
|
43
|
+
overflow: 'hidden'
|
|
44
|
+
}), (0, cssr_1.c)('.cropper-drag-box', {
|
|
45
|
+
backgroundColor: '#fff',
|
|
46
|
+
opacity: '0'
|
|
47
|
+
}), (0, cssr_1.c)('.cropper-modal', {
|
|
48
|
+
backgroundColor: '#000',
|
|
49
|
+
opacity: '0.5'
|
|
50
|
+
}), (0, cssr_1.c)('.cropper-view-box', {
|
|
51
|
+
display: 'block',
|
|
52
|
+
height: '100%',
|
|
53
|
+
outline: '1px solid #39f',
|
|
54
|
+
outlineColor: 'rgba(51, 153, 255, 0.75)',
|
|
55
|
+
overflow: 'hidden',
|
|
56
|
+
width: '100%'
|
|
57
|
+
}), (0, cssr_1.c)('.cropper-dashed', {
|
|
58
|
+
border: '0 dashed #eee',
|
|
59
|
+
display: 'block',
|
|
60
|
+
opacity: '0.5',
|
|
61
|
+
position: 'absolute'
|
|
62
|
+
}, [(0, cssr_1.c)('&.dashed-h', {
|
|
63
|
+
borderBottomWidth: '1px',
|
|
64
|
+
borderTopWidth: '1px',
|
|
65
|
+
height: 'calc(100% / 3)',
|
|
66
|
+
left: '0',
|
|
67
|
+
top: 'calc(100% / 3)',
|
|
68
|
+
width: '100%'
|
|
69
|
+
}), (0, cssr_1.c)('&.dashed-v', {
|
|
70
|
+
borderLeftWidth: '1px',
|
|
71
|
+
borderRightWidth: '1px',
|
|
72
|
+
height: '100%',
|
|
73
|
+
left: 'calc(100% / 3)',
|
|
74
|
+
top: '0',
|
|
75
|
+
width: 'calc(100% / 3)'
|
|
76
|
+
})]), (0, cssr_1.c)('.cropper-center', {
|
|
77
|
+
display: 'block',
|
|
78
|
+
height: '0',
|
|
79
|
+
left: '50%',
|
|
80
|
+
opacity: '0.75',
|
|
81
|
+
position: 'absolute',
|
|
82
|
+
top: '50%',
|
|
83
|
+
width: '0'
|
|
84
|
+
}, [(0, cssr_1.c)('&::before, &::after', {
|
|
85
|
+
backgroundColor: '#eee',
|
|
86
|
+
content: '" "',
|
|
87
|
+
display: 'block',
|
|
88
|
+
position: 'absolute'
|
|
89
|
+
}), (0, cssr_1.c)('&::before', {
|
|
90
|
+
height: '1px',
|
|
91
|
+
left: '-3px',
|
|
92
|
+
top: '0',
|
|
93
|
+
width: '7px'
|
|
94
|
+
}), (0, cssr_1.c)('&::after', {
|
|
95
|
+
height: '7px',
|
|
96
|
+
left: '0',
|
|
97
|
+
top: '-3px',
|
|
98
|
+
width: '1px'
|
|
99
|
+
})]), (0, cssr_1.c)('.cropper-face, .cropper-line, .cropper-point', {
|
|
100
|
+
display: 'block',
|
|
101
|
+
height: '100%',
|
|
102
|
+
opacity: '0.1',
|
|
103
|
+
position: 'absolute',
|
|
104
|
+
width: '100%'
|
|
105
|
+
}), (0, cssr_1.c)('.cropper-face', {
|
|
106
|
+
backgroundColor: '#fff',
|
|
107
|
+
left: '0',
|
|
108
|
+
top: '0'
|
|
109
|
+
}), (0, cssr_1.c)('.cropper-line', {
|
|
110
|
+
backgroundColor: '#39f'
|
|
111
|
+
}, [(0, cssr_1.c)('&.line-e', {
|
|
112
|
+
cursor: 'ew-resize',
|
|
113
|
+
right: '-3px',
|
|
114
|
+
top: '0',
|
|
115
|
+
width: '5px'
|
|
116
|
+
}), (0, cssr_1.c)('&.line-n', {
|
|
117
|
+
cursor: 'ns-resize',
|
|
118
|
+
height: '5px',
|
|
119
|
+
left: '0',
|
|
120
|
+
top: '-3px'
|
|
121
|
+
}), (0, cssr_1.c)('&.line-w', {
|
|
122
|
+
cursor: 'ew-resize',
|
|
123
|
+
left: '-3px',
|
|
124
|
+
top: '0',
|
|
125
|
+
width: '5px'
|
|
126
|
+
}), (0, cssr_1.c)('&.line-s', {
|
|
127
|
+
bottom: '-3px',
|
|
128
|
+
cursor: 'ns-resize',
|
|
129
|
+
height: '5px',
|
|
130
|
+
left: '0'
|
|
131
|
+
})]), (0, cssr_1.c)('.cropper-point', {
|
|
132
|
+
backgroundColor: '#39f',
|
|
133
|
+
height: '5px',
|
|
134
|
+
opacity: '0.75',
|
|
135
|
+
width: '5px'
|
|
136
|
+
}, [(0, cssr_1.c)('&.point-e', {
|
|
137
|
+
cursor: 'ew-resize',
|
|
138
|
+
marginTop: '-3px',
|
|
139
|
+
right: '-3px',
|
|
140
|
+
top: '50%'
|
|
141
|
+
}), (0, cssr_1.c)('&.point-n', {
|
|
142
|
+
cursor: 'ns-resize',
|
|
143
|
+
left: '50%',
|
|
144
|
+
marginLeft: '-3px',
|
|
145
|
+
top: '-3px'
|
|
146
|
+
}), (0, cssr_1.c)('&.point-w', {
|
|
147
|
+
cursor: 'ew-resize',
|
|
148
|
+
left: '-3px',
|
|
149
|
+
marginTop: '-3px',
|
|
150
|
+
top: '50%'
|
|
151
|
+
}), (0, cssr_1.c)('&.point-s', {
|
|
152
|
+
bottom: '-3px',
|
|
153
|
+
cursor: 's-resize',
|
|
154
|
+
left: '50%',
|
|
155
|
+
marginLeft: '-3px'
|
|
156
|
+
}), (0, cssr_1.c)('&.point-ne', {
|
|
157
|
+
cursor: 'nesw-resize',
|
|
158
|
+
right: '-3px',
|
|
159
|
+
top: '-3px'
|
|
160
|
+
}), (0, cssr_1.c)('&.point-nw', {
|
|
161
|
+
cursor: 'nwse-resize',
|
|
162
|
+
left: '-3px',
|
|
163
|
+
top: '-3px'
|
|
164
|
+
}), (0, cssr_1.c)('&.point-sw', {
|
|
165
|
+
bottom: '-3px',
|
|
166
|
+
cursor: 'nesw-resize',
|
|
167
|
+
left: '-3px'
|
|
168
|
+
}), (0, cssr_1.c)('&.point-se', {
|
|
169
|
+
bottom: '-3px',
|
|
170
|
+
cursor: 'nwse-resize',
|
|
171
|
+
height: '20px',
|
|
172
|
+
opacity: '1',
|
|
173
|
+
right: '-3px',
|
|
174
|
+
width: '20px'
|
|
175
|
+
}, [(0, cssr_1.c)('&::before', {
|
|
176
|
+
backgroundColor: '#39f',
|
|
177
|
+
bottom: '-50%',
|
|
178
|
+
content: '" "',
|
|
179
|
+
display: 'block',
|
|
180
|
+
height: '200%',
|
|
181
|
+
opacity: '0',
|
|
182
|
+
position: 'absolute',
|
|
183
|
+
right: '-50%',
|
|
184
|
+
width: '200%'
|
|
185
|
+
})])]), (0, cssr_1.c)('@media (min-width: 768px)', [(0, cssr_1.c)('.cropper-point.point-se', {
|
|
186
|
+
height: '15px',
|
|
187
|
+
width: '15px'
|
|
188
|
+
})]), (0, cssr_1.c)('@media (min-width: 992px)', [(0, cssr_1.c)('.cropper-point.point-se', {
|
|
189
|
+
height: '10px',
|
|
190
|
+
width: '10px'
|
|
191
|
+
})]), (0, cssr_1.c)('@media (min-width: 1200px)', [(0, cssr_1.c)('.cropper-point.point-se', {
|
|
192
|
+
height: '5px',
|
|
193
|
+
opacity: '0.75',
|
|
194
|
+
width: '5px'
|
|
195
|
+
})]), (0, cssr_1.c)('.cropper-invisible', {
|
|
196
|
+
opacity: '0'
|
|
197
|
+
}), (0, cssr_1.c)('.cropper-bg', {
|
|
198
|
+
backgroundImage: 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")'
|
|
199
|
+
}), (0, cssr_1.c)('.cropper-hide', {
|
|
200
|
+
display: 'block',
|
|
201
|
+
height: '0',
|
|
202
|
+
position: 'absolute',
|
|
203
|
+
width: '0'
|
|
204
|
+
}), (0, cssr_1.c)('.cropper-hidden', {
|
|
205
|
+
display: 'none !important'
|
|
206
|
+
}), (0, cssr_1.c)('.cropper-move', {
|
|
207
|
+
cursor: 'move'
|
|
208
|
+
}), (0, cssr_1.c)('.cropper-crop', {
|
|
209
|
+
cursor: 'crosshair'
|
|
210
|
+
}), (0, cssr_1.c)('.cropper-disabled .cropper-drag-box, .cropper-disabled .cropper-face, .cropper-disabled .cropper-line, .cropper-disabled .cropper-point', {
|
|
211
|
+
cursor: 'not-allowed'
|
|
212
|
+
})]), (0, cssr_1.cB)('crop-wrapper', `
|
|
213
|
+
overflow: hidden;
|
|
214
|
+
background-color: var(--u-wrapper-bg-color);
|
|
215
|
+
border-radius: var(--u-wrapper-border-radius);
|
|
216
|
+
width: var(--u-wrapper-width);
|
|
217
|
+
height: var(--u-wrapper-height);
|
|
218
|
+
margin: var(--u-wrapper-margin);
|
|
219
|
+
`, [(0, cssr_1.cM)('circle', '', [(0, cssr_1.c)(`.cropper-view-box,
|
|
220
|
+
.cropper-face`, `
|
|
221
|
+
border-radius: 50%;
|
|
222
|
+
`)]), (0, cssr_1.c)('.cropper-view-box', `
|
|
223
|
+
outline: 0;
|
|
224
|
+
box-shadow: 0 0 0 1px var(--u-cropper-theme-color);
|
|
225
|
+
`), (0, cssr_1.c)(`.cropper-line,
|
|
226
|
+
.cropper-point`, `
|
|
227
|
+
background-color: var(--u-cropper-theme-color);
|
|
228
|
+
`), (0, cssr_1.c)(`
|
|
229
|
+
.point-e,
|
|
230
|
+
.point-n,
|
|
231
|
+
.point-w,
|
|
232
|
+
.point-s
|
|
233
|
+
`, `
|
|
234
|
+
display: none;
|
|
235
|
+
`), (0, cssr_1.c)('.point-se', `
|
|
236
|
+
width: 4px !important;
|
|
237
|
+
height: 4px !important;
|
|
238
|
+
right: -4px !important;
|
|
239
|
+
bottom: -4px !important;
|
|
240
|
+
opacity: 1;
|
|
241
|
+
`, [(0, cssr_1.c)('&::before', `
|
|
242
|
+
content: "" !important;
|
|
243
|
+
display: block !important;
|
|
244
|
+
position: absolute !important;
|
|
245
|
+
top: 0 !important;
|
|
246
|
+
left: -16px !important;
|
|
247
|
+
width: 16px !important;
|
|
248
|
+
height: 4px !important;
|
|
249
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
250
|
+
opacity: 1 !important;
|
|
251
|
+
`), (0, cssr_1.c)('&::after', `
|
|
252
|
+
content: "" !important;
|
|
253
|
+
display: block !important;
|
|
254
|
+
position: absolute !important;
|
|
255
|
+
top: -16px !important;
|
|
256
|
+
left: 0px !important;
|
|
257
|
+
width: 4px !important;
|
|
258
|
+
height: 16px !important;
|
|
259
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
260
|
+
`)]), (0, cssr_1.c)('.point-sw', `
|
|
261
|
+
width: 4px !important;
|
|
262
|
+
height: 4px !important;
|
|
263
|
+
left: -4px !important;
|
|
264
|
+
bottom: -4px !important;
|
|
265
|
+
opacity: 1;
|
|
266
|
+
`, [(0, cssr_1.c)('&::before', `
|
|
267
|
+
content: "" !important;
|
|
268
|
+
display: block !important;
|
|
269
|
+
position: absolute !important;
|
|
270
|
+
top: 0 !important;
|
|
271
|
+
right: -16px !important;
|
|
272
|
+
width: 16px !important;
|
|
273
|
+
height: 4px !important;
|
|
274
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
275
|
+
opacity: 1 !important;
|
|
276
|
+
`), (0, cssr_1.c)('&::after', `
|
|
277
|
+
content: "" !important;
|
|
278
|
+
display: block !important;
|
|
279
|
+
position: absolute !important;
|
|
280
|
+
top: -16px !important;
|
|
281
|
+
left: 0px !important;
|
|
282
|
+
width: 4px !important;
|
|
283
|
+
height: 16px !important;
|
|
284
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
285
|
+
`)]), (0, cssr_1.c)('.point-nw', `
|
|
286
|
+
width: 4px !important;
|
|
287
|
+
height: 4px !important;
|
|
288
|
+
left: -4px !important;
|
|
289
|
+
top: -4px !important;
|
|
290
|
+
opacity: 1;
|
|
291
|
+
`, [(0, cssr_1.c)('&::before', `
|
|
292
|
+
content: "" !important;
|
|
293
|
+
display: block !important;
|
|
294
|
+
position: absolute !important;
|
|
295
|
+
top: 0 !important;
|
|
296
|
+
right: -16px !important;
|
|
297
|
+
width: 16px !important;
|
|
298
|
+
height: 4px !important;
|
|
299
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
300
|
+
opacity: 1 !important;
|
|
301
|
+
`), (0, cssr_1.c)('&::after', `
|
|
302
|
+
content: "" !important;
|
|
303
|
+
display: block !important;
|
|
304
|
+
position: absolute !important;
|
|
305
|
+
bottom: -16px !important;
|
|
306
|
+
left: 0px !important;
|
|
307
|
+
width: 4px !important;
|
|
308
|
+
height: 16px !important;
|
|
309
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
310
|
+
`)]), (0, cssr_1.c)('.point-ne', `
|
|
311
|
+
width: 4px !important;
|
|
312
|
+
height: 4px !important;
|
|
313
|
+
right: -4px !important;
|
|
314
|
+
top: -4px !important;
|
|
315
|
+
opacity: 1;
|
|
316
|
+
`, [(0, cssr_1.c)('&::before', `
|
|
317
|
+
content: "" !important;
|
|
318
|
+
display: block !important;
|
|
319
|
+
position: absolute !important;
|
|
320
|
+
top: 0 !important;
|
|
321
|
+
left: -16px !important;
|
|
322
|
+
width: 16px !important;
|
|
323
|
+
height: 4px !important;
|
|
324
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
325
|
+
opacity: 1 !important;
|
|
326
|
+
`), (0, cssr_1.c)('&::after', `
|
|
327
|
+
content: "" !important;
|
|
328
|
+
display: block !important;
|
|
329
|
+
position: absolute !important;
|
|
330
|
+
bottom: -16px !important;
|
|
331
|
+
left: 0px !important;
|
|
332
|
+
width: 4px !important;
|
|
333
|
+
height: 16px !important;
|
|
334
|
+
background-color: var(--u-cropper-theme-color) !important;
|
|
335
|
+
`)])]), (0, cssr_1.cB)('crop-img', `
|
|
336
|
+
display: block;
|
|
337
|
+
max-width: 100%;
|
|
338
|
+
`)]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("../../_styles/common");
|
|
4
|
+
const light_1 = require("./light");
|
|
5
|
+
const cropDark = {
|
|
6
|
+
name: 'Crop',
|
|
7
|
+
common: common_1.commonDark,
|
|
8
|
+
peers: {},
|
|
9
|
+
self: light_1.self
|
|
10
|
+
};
|
|
11
|
+
exports.default = cropDark;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cropLight = exports.cropDark = void 0;
|
|
7
|
+
var dark_1 = require("./dark");
|
|
8
|
+
Object.defineProperty(exports, "cropDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
|
+
var light_1 = require("./light");
|
|
10
|
+
Object.defineProperty(exports, "cropLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ThemeCommonVars } from '../../config-provider';
|
|
2
|
+
export declare const self: (vars: ThemeCommonVars) => {
|
|
3
|
+
wrapperBg: string;
|
|
4
|
+
wrapperBorderRadius: string;
|
|
5
|
+
wrapperMargin: string;
|
|
6
|
+
};
|
|
7
|
+
export type CropThemeVars = ReturnType<typeof self>;
|
|
8
|
+
declare const cropLight: import("../../_mixins").Theme<"Crop", {
|
|
9
|
+
wrapperBg: string;
|
|
10
|
+
wrapperBorderRadius: string;
|
|
11
|
+
wrapperMargin: string;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default cropLight;
|
|
14
|
+
export type CropTheme = typeof cropLight;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.self = void 0;
|
|
7
|
+
const _mixins_1 = require("../../_mixins");
|
|
8
|
+
const common_1 = require("../../_styles/common");
|
|
9
|
+
const _common_1 = __importDefault(require("./_common"));
|
|
10
|
+
const self = (vars) => {
|
|
11
|
+
const { elementsSenary, borderRadiusLarge } = vars;
|
|
12
|
+
return Object.assign(Object.assign({}, _common_1.default), { wrapperBg: elementsSenary, wrapperBorderRadius: borderRadiusLarge });
|
|
13
|
+
};
|
|
14
|
+
exports.self = self;
|
|
15
|
+
const cropLight = (0, _mixins_1.createTheme)({
|
|
16
|
+
name: 'Crop',
|
|
17
|
+
common: common_1.commonLight,
|
|
18
|
+
peers: {},
|
|
19
|
+
self: exports.self
|
|
20
|
+
});
|
|
21
|
+
exports.default = cropLight;
|
|
@@ -51,8 +51,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
readonly onRender?: (() => void) | undefined;
|
|
52
52
|
readonly onTabOut?: Function | undefined;
|
|
53
53
|
readonly onClose?: import("../interface").OnClose | undefined;
|
|
54
|
-
readonly onClear?: Function | undefined;
|
|
55
54
|
readonly onUpdateValue: OnPanelUpdateValue;
|
|
55
|
+
readonly onClear?: Function | undefined;
|
|
56
56
|
readonly onConfirm?: ((value: import("../interface").Value | null) => void) | undefined;
|
|
57
57
|
readonly timeFormat?: string | undefined;
|
|
58
58
|
readonly shortcuts?: import("../interface").Shortcuts | undefined;
|
|
@@ -51,8 +51,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
readonly onRender?: (() => void) | undefined;
|
|
52
52
|
readonly onTabOut?: Function | undefined;
|
|
53
53
|
readonly onClose?: import("../interface").OnClose | undefined;
|
|
54
|
-
readonly onClear?: Function | undefined;
|
|
55
54
|
readonly onUpdateValue: OnPanelUpdateValue;
|
|
55
|
+
readonly onClear?: Function | undefined;
|
|
56
56
|
readonly onConfirm?: ((value: import("../interface").Value | null) => void) | undefined;
|
|
57
57
|
readonly timeFormat?: string | undefined;
|
|
58
58
|
readonly shortcuts?: import("../interface").Shortcuts | undefined;
|
|
@@ -325,6 +325,9 @@ export declare const dynamicTagsProps: {
|
|
|
325
325
|
rippleDuration: string;
|
|
326
326
|
}, any>;
|
|
327
327
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
328
|
+
gapSmall: string;
|
|
329
|
+
gapMedium: string;
|
|
330
|
+
gapLarge: string;
|
|
328
331
|
closeIconSizeTiny: string;
|
|
329
332
|
closeIconSizeSmall: string;
|
|
330
333
|
closeIconSizeMedium: string;
|
|
@@ -676,6 +679,9 @@ export declare const dynamicTagsProps: {
|
|
|
676
679
|
rippleDuration: string;
|
|
677
680
|
}, any>;
|
|
678
681
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
682
|
+
gapSmall: string;
|
|
683
|
+
gapMedium: string;
|
|
684
|
+
gapLarge: string;
|
|
679
685
|
closeIconSizeTiny: string;
|
|
680
686
|
closeIconSizeSmall: string;
|
|
681
687
|
closeIconSizeMedium: string;
|
|
@@ -1027,6 +1033,9 @@ export declare const dynamicTagsProps: {
|
|
|
1027
1033
|
rippleDuration: string;
|
|
1028
1034
|
}, any>;
|
|
1029
1035
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
1036
|
+
gapSmall: string;
|
|
1037
|
+
gapMedium: string;
|
|
1038
|
+
gapLarge: string;
|
|
1030
1039
|
closeIconSizeTiny: string;
|
|
1031
1040
|
closeIconSizeSmall: string;
|
|
1032
1041
|
closeIconSizeMedium: string;
|
|
@@ -1416,6 +1425,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1416
1425
|
rippleDuration: string;
|
|
1417
1426
|
}, any>;
|
|
1418
1427
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
1428
|
+
gapSmall: string;
|
|
1429
|
+
gapMedium: string;
|
|
1430
|
+
gapLarge: string;
|
|
1419
1431
|
closeIconSizeTiny: string;
|
|
1420
1432
|
closeIconSizeSmall: string;
|
|
1421
1433
|
closeIconSizeMedium: string;
|
|
@@ -1767,6 +1779,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1767
1779
|
rippleDuration: string;
|
|
1768
1780
|
}, any>;
|
|
1769
1781
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
1782
|
+
gapSmall: string;
|
|
1783
|
+
gapMedium: string;
|
|
1784
|
+
gapLarge: string;
|
|
1770
1785
|
closeIconSizeTiny: string;
|
|
1771
1786
|
closeIconSizeSmall: string;
|
|
1772
1787
|
closeIconSizeMedium: string;
|
|
@@ -2118,6 +2133,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2118
2133
|
rippleDuration: string;
|
|
2119
2134
|
}, any>;
|
|
2120
2135
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
2136
|
+
gapSmall: string;
|
|
2137
|
+
gapMedium: string;
|
|
2138
|
+
gapLarge: string;
|
|
2121
2139
|
closeIconSizeTiny: string;
|
|
2122
2140
|
closeIconSizeSmall: string;
|
|
2123
2141
|
closeIconSizeMedium: string;
|
|
@@ -2502,6 +2520,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2502
2520
|
rippleDuration: string;
|
|
2503
2521
|
}, any>;
|
|
2504
2522
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
2523
|
+
gapSmall: string;
|
|
2524
|
+
gapMedium: string;
|
|
2525
|
+
gapLarge: string;
|
|
2505
2526
|
closeIconSizeTiny: string;
|
|
2506
2527
|
closeIconSizeSmall: string;
|
|
2507
2528
|
closeIconSizeMedium: string;
|
|
@@ -2918,6 +2939,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2918
2939
|
rippleDuration: string;
|
|
2919
2940
|
}, any>;
|
|
2920
2941
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
2942
|
+
gapSmall: string;
|
|
2943
|
+
gapMedium: string;
|
|
2944
|
+
gapLarge: string;
|
|
2921
2945
|
closeIconSizeTiny: string;
|
|
2922
2946
|
closeIconSizeSmall: string;
|
|
2923
2947
|
closeIconSizeMedium: string;
|
|
@@ -3269,6 +3293,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3269
3293
|
rippleDuration: string;
|
|
3270
3294
|
}, any>;
|
|
3271
3295
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
3296
|
+
gapSmall: string;
|
|
3297
|
+
gapMedium: string;
|
|
3298
|
+
gapLarge: string;
|
|
3272
3299
|
closeIconSizeTiny: string;
|
|
3273
3300
|
closeIconSizeSmall: string;
|
|
3274
3301
|
closeIconSizeMedium: string;
|
|
@@ -3620,6 +3647,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3620
3647
|
rippleDuration: string;
|
|
3621
3648
|
}, any>;
|
|
3622
3649
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
3650
|
+
gapSmall: string;
|
|
3651
|
+
gapMedium: string;
|
|
3652
|
+
gapLarge: string;
|
|
3623
3653
|
closeIconSizeTiny: string;
|
|
3624
3654
|
closeIconSizeSmall: string;
|
|
3625
3655
|
closeIconSizeMedium: string;
|
|
@@ -285,6 +285,9 @@ declare const dynamicTagsLight: import("../../_mixins").Theme<"DynamicTags", {
|
|
|
285
285
|
rippleDuration: string;
|
|
286
286
|
}, any>;
|
|
287
287
|
Tag: import("../../_mixins").Theme<"Tag", {
|
|
288
|
+
gapSmall: string;
|
|
289
|
+
gapMedium: string;
|
|
290
|
+
gapLarge: string;
|
|
288
291
|
closeIconSizeTiny: string;
|
|
289
292
|
closeIconSizeSmall: string;
|
|
290
293
|
closeIconSizeMedium: string;
|
|
@@ -6,7 +6,12 @@ export declare const infiniteScrollProps: {
|
|
|
6
6
|
readonly type: NumberConstructor;
|
|
7
7
|
readonly default: 0;
|
|
8
8
|
};
|
|
9
|
+
readonly topDistance: {
|
|
10
|
+
readonly type: NumberConstructor;
|
|
11
|
+
readonly default: 0;
|
|
12
|
+
};
|
|
9
13
|
readonly onLoad: PropType<() => Promise<void> | void>;
|
|
14
|
+
readonly onLoadTop: PropType<() => Promise<void> | void>;
|
|
10
15
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
11
16
|
};
|
|
12
17
|
export type InfiniteScrollProps = ExtractPublicPropTypes<typeof infiniteScrollProps>;
|
|
@@ -15,7 +20,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
20
|
readonly type: NumberConstructor;
|
|
16
21
|
readonly default: 0;
|
|
17
22
|
};
|
|
23
|
+
readonly topDistance: {
|
|
24
|
+
readonly type: NumberConstructor;
|
|
25
|
+
readonly default: 0;
|
|
26
|
+
};
|
|
18
27
|
readonly onLoad: PropType<() => Promise<void> | void>;
|
|
28
|
+
readonly onLoadTop: PropType<() => Promise<void> | void>;
|
|
19
29
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
20
30
|
}, {
|
|
21
31
|
scrollbarInstRef: import("vue").Ref<{
|
|
@@ -37,9 +47,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
47
|
readonly type: NumberConstructor;
|
|
38
48
|
readonly default: 0;
|
|
39
49
|
};
|
|
50
|
+
readonly topDistance: {
|
|
51
|
+
readonly type: NumberConstructor;
|
|
52
|
+
readonly default: 0;
|
|
53
|
+
};
|
|
40
54
|
readonly onLoad: PropType<() => Promise<void> | void>;
|
|
55
|
+
readonly onLoadTop: PropType<() => Promise<void> | void>;
|
|
41
56
|
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
42
57
|
}>>, {
|
|
43
58
|
readonly distance: number;
|
|
59
|
+
readonly topDistance: number;
|
|
44
60
|
}, {}>;
|
|
45
61
|
export default _default;
|
|
@@ -18,7 +18,12 @@ exports.infiniteScrollProps = {
|
|
|
18
18
|
type: Number,
|
|
19
19
|
default: 0
|
|
20
20
|
},
|
|
21
|
+
topDistance: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 0
|
|
24
|
+
},
|
|
21
25
|
onLoad: Function,
|
|
26
|
+
onLoadTop: Function,
|
|
22
27
|
scrollbarProps: Object
|
|
23
28
|
};
|
|
24
29
|
exports.default = (0, vue_1.defineComponent)({
|
|
@@ -26,7 +31,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
26
31
|
props: exports.infiniteScrollProps,
|
|
27
32
|
setup(props) {
|
|
28
33
|
const scrollbarInstRef = (0, vue_1.ref)(null);
|
|
29
|
-
let
|
|
34
|
+
let loadingBottom = false;
|
|
35
|
+
let loadingTop = false;
|
|
30
36
|
const handleCheckBottom = () => __awaiter(this, void 0, void 0, function* () {
|
|
31
37
|
var _a;
|
|
32
38
|
const { value: scrollbarInst } = scrollbarInstRef;
|
|
@@ -40,30 +46,57 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
40
46
|
clientHeight !== undefined &&
|
|
41
47
|
scrollTop !== undefined) {
|
|
42
48
|
if (scrollTop + clientHeight >= scrollHeight - props.distance) {
|
|
43
|
-
|
|
49
|
+
loadingBottom = true;
|
|
44
50
|
try {
|
|
45
51
|
yield ((_a = props.onLoad) === null || _a === void 0 ? void 0 : _a.call(props));
|
|
46
52
|
}
|
|
47
53
|
catch (_b) { }
|
|
48
|
-
|
|
54
|
+
loadingBottom = false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
const handleCheckTop = () => __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
var _a;
|
|
61
|
+
const { value: scrollbarInst } = scrollbarInstRef;
|
|
62
|
+
if (scrollbarInst) {
|
|
63
|
+
const { containerRef } = scrollbarInst;
|
|
64
|
+
const scrollTop = containerRef === null || containerRef === void 0 ? void 0 : containerRef.scrollTop;
|
|
65
|
+
if (containerRef && scrollTop !== undefined) {
|
|
66
|
+
if (scrollTop <= props.topDistance) {
|
|
67
|
+
loadingTop = true;
|
|
68
|
+
const oldScrollHeight = containerRef.scrollHeight;
|
|
69
|
+
const oldScrollTop = containerRef.scrollTop;
|
|
70
|
+
try {
|
|
71
|
+
yield ((_a = props.onLoadTop) === null || _a === void 0 ? void 0 : _a.call(props));
|
|
72
|
+
yield (0, vue_1.nextTick)();
|
|
73
|
+
const newScrollHeight = containerRef.scrollHeight;
|
|
74
|
+
const heightDiff = newScrollHeight - oldScrollHeight;
|
|
75
|
+
if (heightDiff > 0) {
|
|
76
|
+
containerRef.scrollTop = oldScrollTop + heightDiff;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (_b) { }
|
|
80
|
+
loadingTop = false;
|
|
49
81
|
}
|
|
50
82
|
}
|
|
51
83
|
}
|
|
52
84
|
});
|
|
53
85
|
const handleScroll = () => {
|
|
54
|
-
if (
|
|
55
|
-
|
|
86
|
+
if (!loadingBottom) {
|
|
87
|
+
void handleCheckBottom();
|
|
88
|
+
}
|
|
89
|
+
if (!loadingTop) {
|
|
90
|
+
void handleCheckTop();
|
|
56
91
|
}
|
|
57
|
-
void handleCheckBottom();
|
|
58
92
|
};
|
|
59
93
|
const handleWheel = (e) => {
|
|
60
|
-
if (e.deltaY
|
|
61
|
-
|
|
94
|
+
if (e.deltaY > 0 && !loadingBottom) {
|
|
95
|
+
void handleCheckBottom();
|
|
62
96
|
}
|
|
63
|
-
if (
|
|
64
|
-
|
|
97
|
+
if (e.deltaY < 0 && !loadingTop) {
|
|
98
|
+
void handleCheckTop();
|
|
65
99
|
}
|
|
66
|
-
void handleCheckBottom();
|
|
67
100
|
};
|
|
68
101
|
return {
|
|
69
102
|
scrollbarInstRef,
|