@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.
Files changed (149) hide show
  1. package/dist/index.js +5316 -804
  2. package/dist/index.prod.js +12 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
  4. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  5. package/es/cascader/src/Cascader.d.ts +1 -1
  6. package/es/chat/src/ChatListItems.js +16 -1
  7. package/es/chat/src/ChatParts/MainArea.js +31 -21
  8. package/es/components.d.ts +2 -0
  9. package/es/components.js +2 -0
  10. package/es/config-provider/src/internal-interface.d.ts +4 -0
  11. package/es/crop/index.d.ts +3 -0
  12. package/es/crop/index.js +1 -0
  13. package/es/crop/src/Crop.d.ts +222 -0
  14. package/es/crop/src/Crop.js +157 -0
  15. package/es/crop/src/interface.d.ts +6 -0
  16. package/es/crop/src/interface.js +7 -0
  17. package/es/crop/src/styles/index.cssr.d.ts +2 -0
  18. package/es/crop/src/styles/index.cssr.js +333 -0
  19. package/es/crop/styles/_common.d.ts +4 -0
  20. package/es/crop/styles/_common.js +3 -0
  21. package/es/crop/styles/dark.d.ts +3 -0
  22. package/es/crop/styles/dark.js +9 -0
  23. package/es/crop/styles/index.d.ts +3 -0
  24. package/es/crop/styles/index.js +2 -0
  25. package/es/crop/styles/light.d.ts +14 -0
  26. package/es/crop/styles/light.js +14 -0
  27. package/es/date-picker/src/panel/panelMonth.d.ts +1 -1
  28. package/es/date-picker/src/panel/panelYear.d.ts +1 -1
  29. package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
  30. package/es/dynamic-tags/styles/light.d.ts +3 -0
  31. package/es/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  32. package/es/infinite-scroll/src/InfiniteScroll.js +45 -12
  33. package/es/input/src/Input.d.ts +1 -1
  34. package/es/input-number/src/InputNumber.d.ts +1 -1
  35. package/es/legacy-transfer/src/Transfer.d.ts +1 -1
  36. package/es/modal-fullscreen/index.d.ts +2 -0
  37. package/es/modal-fullscreen/index.js +1 -0
  38. package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
  39. package/es/modal-fullscreen/src/ModalFull.js +250 -0
  40. package/es/modal-fullscreen/src/interface.d.ts +0 -0
  41. package/es/modal-fullscreen/src/interface.js +1 -0
  42. package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  43. package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
  44. package/es/modal-fullscreen/styles/_common.d.ts +12 -0
  45. package/es/modal-fullscreen/styles/_common.js +11 -0
  46. package/es/modal-fullscreen/styles/dark.d.ts +3 -0
  47. package/es/modal-fullscreen/styles/dark.js +14 -0
  48. package/es/modal-fullscreen/styles/index.d.ts +3 -0
  49. package/es/modal-fullscreen/styles/index.js +2 -0
  50. package/es/modal-fullscreen/styles/light.d.ts +100 -0
  51. package/es/modal-fullscreen/styles/light.js +19 -0
  52. package/es/rate/src/Rate.d.ts +1 -1
  53. package/es/select/src/Select.d.ts +1 -1
  54. package/es/slider/src/Slider.d.ts +1 -1
  55. package/es/switch/src/Switch.d.ts +1 -1
  56. package/es/tag/index.d.ts +2 -0
  57. package/es/tag/index.js +1 -0
  58. package/es/tag/src/Tag.d.ts +40 -0
  59. package/es/tag/src/Tag.js +3 -0
  60. package/es/tag/src/TagGroup.d.ts +644 -0
  61. package/es/tag/src/TagGroup.js +109 -0
  62. package/es/tag/src/styles/index.cssr.d.ts +1 -0
  63. package/es/tag/src/styles/index.cssr.js +8 -1
  64. package/es/tag/styles/light.d.ts +3 -0
  65. package/es/tag/styles/light.js +5 -0
  66. package/es/themes/dark.js +5 -1
  67. package/es/themes/light.js +5 -1
  68. package/es/time-picker/src/TimePicker.d.ts +1 -1
  69. package/es/transfer/src/Transfer.d.ts +1 -1
  70. package/es/tree-select/src/TreeSelect.d.ts +1 -1
  71. package/es/version.d.ts +1 -1
  72. package/es/version.js +1 -1
  73. package/es/virtual-list/index.d.ts +1 -1
  74. package/es/virtual-list/index.js +1 -1
  75. package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
  76. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  77. package/lib/cascader/src/Cascader.d.ts +1 -1
  78. package/lib/chat/src/ChatListItems.js +16 -1
  79. package/lib/chat/src/ChatParts/MainArea.js +31 -21
  80. package/lib/components.d.ts +2 -0
  81. package/lib/components.js +2 -0
  82. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  83. package/lib/crop/index.d.ts +3 -0
  84. package/lib/crop/index.js +9 -0
  85. package/lib/crop/src/Crop.d.ts +222 -0
  86. package/lib/crop/src/Crop.js +163 -0
  87. package/lib/crop/src/interface.d.ts +6 -0
  88. package/lib/crop/src/interface.js +10 -0
  89. package/lib/crop/src/styles/index.cssr.d.ts +2 -0
  90. package/lib/crop/src/styles/index.cssr.js +338 -0
  91. package/lib/crop/styles/_common.d.ts +4 -0
  92. package/lib/crop/styles/_common.js +5 -0
  93. package/lib/crop/styles/dark.d.ts +3 -0
  94. package/lib/crop/styles/dark.js +11 -0
  95. package/lib/crop/styles/index.d.ts +3 -0
  96. package/lib/crop/styles/index.js +10 -0
  97. package/lib/crop/styles/light.d.ts +14 -0
  98. package/lib/crop/styles/light.js +21 -0
  99. package/lib/date-picker/src/panel/panelMonth.d.ts +1 -1
  100. package/lib/date-picker/src/panel/panelYear.d.ts +1 -1
  101. package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
  102. package/lib/dynamic-tags/styles/light.d.ts +3 -0
  103. package/lib/infinite-scroll/src/InfiniteScroll.d.ts +16 -0
  104. package/lib/infinite-scroll/src/InfiniteScroll.js +44 -11
  105. package/lib/input/src/Input.d.ts +1 -1
  106. package/lib/input-number/src/InputNumber.d.ts +1 -1
  107. package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
  108. package/lib/modal-fullscreen/index.d.ts +2 -0
  109. package/lib/modal-fullscreen/index.js +9 -0
  110. package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
  111. package/lib/modal-fullscreen/src/ModalFull.js +256 -0
  112. package/lib/modal-fullscreen/src/interface.d.ts +0 -0
  113. package/lib/modal-fullscreen/src/interface.js +1 -0
  114. package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  115. package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
  116. package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
  117. package/lib/modal-fullscreen/styles/_common.js +13 -0
  118. package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
  119. package/lib/modal-fullscreen/styles/dark.js +16 -0
  120. package/lib/modal-fullscreen/styles/index.d.ts +3 -0
  121. package/lib/modal-fullscreen/styles/index.js +10 -0
  122. package/lib/modal-fullscreen/styles/light.d.ts +100 -0
  123. package/lib/modal-fullscreen/styles/light.js +26 -0
  124. package/lib/rate/src/Rate.d.ts +1 -1
  125. package/lib/select/src/Select.d.ts +1 -1
  126. package/lib/slider/src/Slider.d.ts +1 -1
  127. package/lib/switch/src/Switch.d.ts +1 -1
  128. package/lib/tag/index.d.ts +2 -0
  129. package/lib/tag/index.js +3 -1
  130. package/lib/tag/src/Tag.d.ts +40 -0
  131. package/lib/tag/src/Tag.js +3 -0
  132. package/lib/tag/src/TagGroup.d.ts +644 -0
  133. package/lib/tag/src/TagGroup.js +112 -0
  134. package/lib/tag/src/styles/index.cssr.d.ts +1 -0
  135. package/lib/tag/src/styles/index.cssr.js +9 -1
  136. package/lib/tag/styles/light.d.ts +3 -0
  137. package/lib/tag/styles/light.js +5 -0
  138. package/lib/themes/dark.js +5 -1
  139. package/lib/themes/light.js +5 -1
  140. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  141. package/lib/transfer/src/Transfer.d.ts +1 -1
  142. package/lib/tree-select/src/TreeSelect.d.ts +1 -1
  143. package/lib/version.d.ts +1 -1
  144. package/lib/version.js +1 -1
  145. package/lib/virtual-list/index.d.ts +1 -1
  146. package/lib/virtual-list/index.js +2 -2
  147. package/package.json +7 -6
  148. package/volar.d.ts +4 -0
  149. package/web-types.json +387 -1
@@ -0,0 +1,157 @@
1
+ import { h, ref, watch, Fragment, computed, onMounted, defineComponent, onBeforeUnmount } from 'vue';
2
+ import Cropper from 'cropperjs';
3
+ import style from './styles/index.cssr';
4
+ import { useConfig, useTheme } from '../../_mixins';
5
+ import { cropLight } from '../styles';
6
+ import { UButton } from '../../button';
7
+ import { UFlex } from '../../flex';
8
+ export const cropProps = Object.assign(Object.assign({}, useTheme.props), { src: String, wrapperWidth: {
9
+ type: [Number, String],
10
+ default: 'auto'
11
+ }, wrapperHeight: {
12
+ type: [Number, String],
13
+ default: 'auto'
14
+ }, viewMode: {
15
+ type: Number,
16
+ default: 0
17
+ }, dragMode: {
18
+ type: String,
19
+ default: 'none'
20
+ }, aspectRatio: {
21
+ type: Number,
22
+ default: NaN
23
+ }, background: {
24
+ type: Boolean,
25
+ default: true
26
+ }, circleShape: {
27
+ type: Boolean,
28
+ default: false
29
+ }, zoomable: {
30
+ type: Boolean,
31
+ default: false
32
+ }, cropperThemeColor: {
33
+ type: String,
34
+ default: '#fff'
35
+ }, cancelButtonText: {
36
+ type: String,
37
+ default: 'Cancel'
38
+ }, confirmButtonText: {
39
+ type: String,
40
+ default: 'Save'
41
+ } });
42
+ export default defineComponent({
43
+ name: 'Crop',
44
+ inheritAttrs: false,
45
+ props: cropProps,
46
+ emits: {
47
+ cancel: () => true,
48
+ confirm: (dataUrl) => true
49
+ },
50
+ setup(props, { emit }) {
51
+ const cropWrapperRef = ref();
52
+ const cropImageRef = ref();
53
+ const cropperInstance = ref(null);
54
+ const { mergedClsPrefixRef } = useConfig(props);
55
+ const themeRef = useTheme('Crop', '-crop', style, cropLight, props, mergedClsPrefixRef);
56
+ const cssVarsRef = computed(() => {
57
+ const width = typeof props.wrapperWidth === 'string'
58
+ ? props.wrapperWidth.endsWith('px')
59
+ ? props.wrapperWidth
60
+ : `${props.wrapperWidth}px`
61
+ : `${props.wrapperWidth}px`;
62
+ const height = typeof props.wrapperHeight === 'string'
63
+ ? props.wrapperHeight.endsWith('px')
64
+ ? props.wrapperHeight
65
+ : `${props.wrapperHeight}px`
66
+ : `${props.wrapperHeight}px`;
67
+ const { self: { wrapperBorderRadius, wrapperBg, wrapperMargin } } = themeRef.value;
68
+ return {
69
+ '--u-wrapper-border-radius': wrapperBorderRadius,
70
+ '--u-wrapper-bg-color': wrapperBg,
71
+ '--u-wrapper-width': width,
72
+ '--u-wrapper-height': height,
73
+ '--u-cropper-theme-color': props.cropperThemeColor,
74
+ '--u-wrapper-margin': wrapperMargin
75
+ };
76
+ });
77
+ const initCrop = () => {
78
+ if (cropperInstance.value) {
79
+ destroyCrop();
80
+ }
81
+ if (props.src && cropWrapperRef.value && cropImageRef.value) {
82
+ cropperInstance.value = new Cropper(cropImageRef.value, {
83
+ viewMode: props.viewMode,
84
+ dragMode: props.dragMode,
85
+ aspectRatio: props.aspectRatio,
86
+ background: props.background,
87
+ guides: false,
88
+ center: false,
89
+ zoomable: props.zoomable
90
+ });
91
+ }
92
+ };
93
+ const destroyCrop = () => {
94
+ var _a;
95
+ (_a = cropperInstance.value) === null || _a === void 0 ? void 0 : _a.destroy();
96
+ cropperInstance.value = null;
97
+ };
98
+ const confirmCrop = () => {
99
+ var _a;
100
+ const sourceCanvas = (_a = cropperInstance.value) === null || _a === void 0 ? void 0 : _a.getCroppedCanvas();
101
+ if (sourceCanvas) {
102
+ if (props.circleShape) {
103
+ const canvas = document.createElement('canvas');
104
+ const context = canvas.getContext('2d');
105
+ if (context) {
106
+ const width = sourceCanvas.width;
107
+ const height = sourceCanvas.height;
108
+ canvas.width = width;
109
+ canvas.height = height;
110
+ context.imageSmoothingEnabled = true;
111
+ context.drawImage(sourceCanvas, 0, 0, width, height);
112
+ context.globalCompositeOperation = 'destination-in';
113
+ context.beginPath();
114
+ context.arc(width / 2, height / 2, Math.min(width, height) / 2, 0, 2 * Math.PI, true);
115
+ context.fill();
116
+ emit('confirm', canvas.toDataURL());
117
+ }
118
+ }
119
+ else {
120
+ emit('confirm', sourceCanvas.toDataURL());
121
+ }
122
+ }
123
+ };
124
+ const cancelCrop = () => {
125
+ emit('cancel');
126
+ };
127
+ watch(props, initCrop);
128
+ onMounted(initCrop);
129
+ onBeforeUnmount(destroyCrop);
130
+ return {
131
+ cropWrapperRef,
132
+ cropImageRef,
133
+ mergedClsPrefix: mergedClsPrefixRef,
134
+ cssVars: cssVarsRef,
135
+ confirmCrop,
136
+ cancelCrop
137
+ };
138
+ },
139
+ render() {
140
+ const { src, cssVars, circleShape, mergedClsPrefix, cancelButtonText, confirmButtonText, confirmCrop, cancelCrop } = this;
141
+ return (h("div", { style: cssVars },
142
+ h("div", { ref: "cropWrapperRef", class: [
143
+ `${mergedClsPrefix}-crop-wrapper`,
144
+ circleShape ? `${mergedClsPrefix}-crop-wrapper--circle` : null
145
+ ] },
146
+ h("img", { ref: "cropImageRef", src: src, class: `${mergedClsPrefix}-crop-img` })),
147
+ h(UFlex, { justify: "end" }, {
148
+ default: () => (h(Fragment, null,
149
+ h(UButton, { secondary: true, onClick: cancelCrop }, {
150
+ default: () => cancelButtonText
151
+ }),
152
+ h(UButton, { tertiary: true, onClick: confirmCrop }, {
153
+ default: () => confirmButtonText
154
+ })))
155
+ })));
156
+ }
157
+ });
@@ -0,0 +1,6 @@
1
+ export declare enum ViewMode {
2
+ v0 = 0,
3
+ v1 = 1,
4
+ v2 = 2,
5
+ v3 = 3
6
+ }
@@ -0,0 +1,7 @@
1
+ export var ViewMode;
2
+ (function (ViewMode) {
3
+ ViewMode[ViewMode["v0"] = 0] = "v0";
4
+ ViewMode[ViewMode["v1"] = 1] = "v1";
5
+ ViewMode[ViewMode["v2"] = 2] = "v2";
6
+ ViewMode[ViewMode["v3"] = 3] = "v3";
7
+ })(ViewMode || (ViewMode = {}));
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;
@@ -0,0 +1,333 @@
1
+ import { c, cB, cM } from '../../../_utils/cssr';
2
+ // vars:
3
+ // --u-wrapper-border-radius
4
+ // --u-wrapper-bg-color
5
+ // --u-wrapper-width
6
+ // --u-wrapper-height
7
+ // --u-cropper-theme-color
8
+ // --u-wrapper-margin
9
+ export default c([c([c('.cropper-container', {
10
+ direction: 'ltr',
11
+ fontSize: '0',
12
+ lineHeight: '0',
13
+ position: 'relative',
14
+ msTouchAction: 'none',
15
+ touchAction: 'none',
16
+ WebkitTouchCallout: 'none',
17
+ WebkitUserSelect: 'none',
18
+ MozUserSelect: 'none',
19
+ msUserSelect: 'none',
20
+ userSelect: 'none'
21
+ }, [c('img', {
22
+ backfaceVisibility: 'hidden',
23
+ display: 'block',
24
+ height: '100%',
25
+ imageOrientation: '0deg',
26
+ maxHeight: 'none !important',
27
+ maxWidth: 'none !important',
28
+ minHeight: '0 !important',
29
+ minWidth: '0 !important',
30
+ width: '100%'
31
+ })]), c('.cropper-wrap-box, .cropper-canvas, .cropper-drag-box, .cropper-crop-box, .cropper-modal', {
32
+ bottom: '0',
33
+ left: '0',
34
+ position: 'absolute',
35
+ right: '0',
36
+ top: '0'
37
+ }), c('.cropper-wrap-box, .cropper-canvas', {
38
+ overflow: 'hidden'
39
+ }), c('.cropper-drag-box', {
40
+ backgroundColor: '#fff',
41
+ opacity: '0'
42
+ }), c('.cropper-modal', {
43
+ backgroundColor: '#000',
44
+ opacity: '0.5'
45
+ }), c('.cropper-view-box', {
46
+ display: 'block',
47
+ height: '100%',
48
+ outline: '1px solid #39f',
49
+ outlineColor: 'rgba(51, 153, 255, 0.75)',
50
+ overflow: 'hidden',
51
+ width: '100%'
52
+ }), c('.cropper-dashed', {
53
+ border: '0 dashed #eee',
54
+ display: 'block',
55
+ opacity: '0.5',
56
+ position: 'absolute'
57
+ }, [c('&.dashed-h', {
58
+ borderBottomWidth: '1px',
59
+ borderTopWidth: '1px',
60
+ height: 'calc(100% / 3)',
61
+ left: '0',
62
+ top: 'calc(100% / 3)',
63
+ width: '100%'
64
+ }), c('&.dashed-v', {
65
+ borderLeftWidth: '1px',
66
+ borderRightWidth: '1px',
67
+ height: '100%',
68
+ left: 'calc(100% / 3)',
69
+ top: '0',
70
+ width: 'calc(100% / 3)'
71
+ })]), c('.cropper-center', {
72
+ display: 'block',
73
+ height: '0',
74
+ left: '50%',
75
+ opacity: '0.75',
76
+ position: 'absolute',
77
+ top: '50%',
78
+ width: '0'
79
+ }, [c('&::before, &::after', {
80
+ backgroundColor: '#eee',
81
+ content: '" "',
82
+ display: 'block',
83
+ position: 'absolute'
84
+ }), c('&::before', {
85
+ height: '1px',
86
+ left: '-3px',
87
+ top: '0',
88
+ width: '7px'
89
+ }), c('&::after', {
90
+ height: '7px',
91
+ left: '0',
92
+ top: '-3px',
93
+ width: '1px'
94
+ })]), c('.cropper-face, .cropper-line, .cropper-point', {
95
+ display: 'block',
96
+ height: '100%',
97
+ opacity: '0.1',
98
+ position: 'absolute',
99
+ width: '100%'
100
+ }), c('.cropper-face', {
101
+ backgroundColor: '#fff',
102
+ left: '0',
103
+ top: '0'
104
+ }), c('.cropper-line', {
105
+ backgroundColor: '#39f'
106
+ }, [c('&.line-e', {
107
+ cursor: 'ew-resize',
108
+ right: '-3px',
109
+ top: '0',
110
+ width: '5px'
111
+ }), c('&.line-n', {
112
+ cursor: 'ns-resize',
113
+ height: '5px',
114
+ left: '0',
115
+ top: '-3px'
116
+ }), c('&.line-w', {
117
+ cursor: 'ew-resize',
118
+ left: '-3px',
119
+ top: '0',
120
+ width: '5px'
121
+ }), c('&.line-s', {
122
+ bottom: '-3px',
123
+ cursor: 'ns-resize',
124
+ height: '5px',
125
+ left: '0'
126
+ })]), c('.cropper-point', {
127
+ backgroundColor: '#39f',
128
+ height: '5px',
129
+ opacity: '0.75',
130
+ width: '5px'
131
+ }, [c('&.point-e', {
132
+ cursor: 'ew-resize',
133
+ marginTop: '-3px',
134
+ right: '-3px',
135
+ top: '50%'
136
+ }), c('&.point-n', {
137
+ cursor: 'ns-resize',
138
+ left: '50%',
139
+ marginLeft: '-3px',
140
+ top: '-3px'
141
+ }), c('&.point-w', {
142
+ cursor: 'ew-resize',
143
+ left: '-3px',
144
+ marginTop: '-3px',
145
+ top: '50%'
146
+ }), c('&.point-s', {
147
+ bottom: '-3px',
148
+ cursor: 's-resize',
149
+ left: '50%',
150
+ marginLeft: '-3px'
151
+ }), c('&.point-ne', {
152
+ cursor: 'nesw-resize',
153
+ right: '-3px',
154
+ top: '-3px'
155
+ }), c('&.point-nw', {
156
+ cursor: 'nwse-resize',
157
+ left: '-3px',
158
+ top: '-3px'
159
+ }), c('&.point-sw', {
160
+ bottom: '-3px',
161
+ cursor: 'nesw-resize',
162
+ left: '-3px'
163
+ }), c('&.point-se', {
164
+ bottom: '-3px',
165
+ cursor: 'nwse-resize',
166
+ height: '20px',
167
+ opacity: '1',
168
+ right: '-3px',
169
+ width: '20px'
170
+ }, [c('&::before', {
171
+ backgroundColor: '#39f',
172
+ bottom: '-50%',
173
+ content: '" "',
174
+ display: 'block',
175
+ height: '200%',
176
+ opacity: '0',
177
+ position: 'absolute',
178
+ right: '-50%',
179
+ width: '200%'
180
+ })])]), c('@media (min-width: 768px)', [c('.cropper-point.point-se', {
181
+ height: '15px',
182
+ width: '15px'
183
+ })]), c('@media (min-width: 992px)', [c('.cropper-point.point-se', {
184
+ height: '10px',
185
+ width: '10px'
186
+ })]), c('@media (min-width: 1200px)', [c('.cropper-point.point-se', {
187
+ height: '5px',
188
+ opacity: '0.75',
189
+ width: '5px'
190
+ })]), c('.cropper-invisible', {
191
+ opacity: '0'
192
+ }), c('.cropper-bg', {
193
+ backgroundImage: 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")'
194
+ }), c('.cropper-hide', {
195
+ display: 'block',
196
+ height: '0',
197
+ position: 'absolute',
198
+ width: '0'
199
+ }), c('.cropper-hidden', {
200
+ display: 'none !important'
201
+ }), c('.cropper-move', {
202
+ cursor: 'move'
203
+ }), c('.cropper-crop', {
204
+ cursor: 'crosshair'
205
+ }), c('.cropper-disabled .cropper-drag-box, .cropper-disabled .cropper-face, .cropper-disabled .cropper-line, .cropper-disabled .cropper-point', {
206
+ cursor: 'not-allowed'
207
+ })]), cB('crop-wrapper', `
208
+ overflow: hidden;
209
+ background-color: var(--u-wrapper-bg-color);
210
+ border-radius: var(--u-wrapper-border-radius);
211
+ width: var(--u-wrapper-width);
212
+ height: var(--u-wrapper-height);
213
+ margin: var(--u-wrapper-margin);
214
+ `, [cM('circle', '', [c(`.cropper-view-box,
215
+ .cropper-face`, `
216
+ border-radius: 50%;
217
+ `)]), c('.cropper-view-box', `
218
+ outline: 0;
219
+ box-shadow: 0 0 0 1px var(--u-cropper-theme-color);
220
+ `), c(`.cropper-line,
221
+ .cropper-point`, `
222
+ background-color: var(--u-cropper-theme-color);
223
+ `), c(`
224
+ .point-e,
225
+ .point-n,
226
+ .point-w,
227
+ .point-s
228
+ `, `
229
+ display: none;
230
+ `), c('.point-se', `
231
+ width: 4px !important;
232
+ height: 4px !important;
233
+ right: -4px !important;
234
+ bottom: -4px !important;
235
+ opacity: 1;
236
+ `, [c('&::before', `
237
+ content: "" !important;
238
+ display: block !important;
239
+ position: absolute !important;
240
+ top: 0 !important;
241
+ left: -16px !important;
242
+ width: 16px !important;
243
+ height: 4px !important;
244
+ background-color: var(--u-cropper-theme-color) !important;
245
+ opacity: 1 !important;
246
+ `), c('&::after', `
247
+ content: "" !important;
248
+ display: block !important;
249
+ position: absolute !important;
250
+ top: -16px !important;
251
+ left: 0px !important;
252
+ width: 4px !important;
253
+ height: 16px !important;
254
+ background-color: var(--u-cropper-theme-color) !important;
255
+ `)]), c('.point-sw', `
256
+ width: 4px !important;
257
+ height: 4px !important;
258
+ left: -4px !important;
259
+ bottom: -4px !important;
260
+ opacity: 1;
261
+ `, [c('&::before', `
262
+ content: "" !important;
263
+ display: block !important;
264
+ position: absolute !important;
265
+ top: 0 !important;
266
+ right: -16px !important;
267
+ width: 16px !important;
268
+ height: 4px !important;
269
+ background-color: var(--u-cropper-theme-color) !important;
270
+ opacity: 1 !important;
271
+ `), c('&::after', `
272
+ content: "" !important;
273
+ display: block !important;
274
+ position: absolute !important;
275
+ top: -16px !important;
276
+ left: 0px !important;
277
+ width: 4px !important;
278
+ height: 16px !important;
279
+ background-color: var(--u-cropper-theme-color) !important;
280
+ `)]), c('.point-nw', `
281
+ width: 4px !important;
282
+ height: 4px !important;
283
+ left: -4px !important;
284
+ top: -4px !important;
285
+ opacity: 1;
286
+ `, [c('&::before', `
287
+ content: "" !important;
288
+ display: block !important;
289
+ position: absolute !important;
290
+ top: 0 !important;
291
+ right: -16px !important;
292
+ width: 16px !important;
293
+ height: 4px !important;
294
+ background-color: var(--u-cropper-theme-color) !important;
295
+ opacity: 1 !important;
296
+ `), c('&::after', `
297
+ content: "" !important;
298
+ display: block !important;
299
+ position: absolute !important;
300
+ bottom: -16px !important;
301
+ left: 0px !important;
302
+ width: 4px !important;
303
+ height: 16px !important;
304
+ background-color: var(--u-cropper-theme-color) !important;
305
+ `)]), c('.point-ne', `
306
+ width: 4px !important;
307
+ height: 4px !important;
308
+ right: -4px !important;
309
+ top: -4px !important;
310
+ opacity: 1;
311
+ `, [c('&::before', `
312
+ content: "" !important;
313
+ display: block !important;
314
+ position: absolute !important;
315
+ top: 0 !important;
316
+ left: -16px !important;
317
+ width: 16px !important;
318
+ height: 4px !important;
319
+ background-color: var(--u-cropper-theme-color) !important;
320
+ opacity: 1 !important;
321
+ `), c('&::after', `
322
+ content: "" !important;
323
+ display: block !important;
324
+ position: absolute !important;
325
+ bottom: -16px !important;
326
+ left: 0px !important;
327
+ width: 4px !important;
328
+ height: 16px !important;
329
+ background-color: var(--u-cropper-theme-color) !important;
330
+ `)])]), cB('crop-img', `
331
+ display: block;
332
+ max-width: 100%;
333
+ `)]);
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ wrapperMargin: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default {
2
+ wrapperMargin: '0 0 20px'
3
+ };
@@ -0,0 +1,3 @@
1
+ import { type CropTheme } from './light';
2
+ declare const cropDark: CropTheme;
3
+ export default cropDark;
@@ -0,0 +1,9 @@
1
+ import { commonDark } from '../../_styles/common';
2
+ import { self } from './light';
3
+ const cropDark = {
4
+ name: 'Crop',
5
+ common: commonDark,
6
+ peers: {},
7
+ self
8
+ };
9
+ export default cropDark;
@@ -0,0 +1,3 @@
1
+ export { default as cropDark } from './dark';
2
+ export { default as cropLight } from './light';
3
+ export type { CropTheme, CropThemeVars } from './light';
@@ -0,0 +1,2 @@
1
+ export { default as cropDark } from './dark';
2
+ export { default as cropLight } from './light';
@@ -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,14 @@
1
+ import { createTheme } from '../../_mixins';
2
+ import { commonLight } from '../../_styles/common';
3
+ import commonVars from './_common';
4
+ export const self = (vars) => {
5
+ const { elementsSenary, borderRadiusLarge } = vars;
6
+ return Object.assign(Object.assign({}, commonVars), { wrapperBg: elementsSenary, wrapperBorderRadius: borderRadiusLarge });
7
+ };
8
+ const cropLight = createTheme({
9
+ name: 'Crop',
10
+ common: commonLight,
11
+ peers: {},
12
+ self
13
+ });
14
+ export 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;