@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,222 @@
1
+ import { PropType } from 'vue';
2
+ import { ExtractPublicPropTypes } from '../../_utils';
3
+ import { ViewMode } from './interface';
4
+ export declare const cropProps: {
5
+ src: StringConstructor;
6
+ wrapperWidth: {
7
+ type: (StringConstructor | NumberConstructor)[];
8
+ default: string;
9
+ };
10
+ wrapperHeight: {
11
+ type: (StringConstructor | NumberConstructor)[];
12
+ default: string;
13
+ };
14
+ viewMode: {
15
+ type: PropType<ViewMode>;
16
+ default: number;
17
+ };
18
+ dragMode: {
19
+ type: PropType<"crop" | "move" | "none">;
20
+ default: string;
21
+ };
22
+ aspectRatio: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ background: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ circleShape: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ zoomable: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ cropperThemeColor: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
42
+ cancelButtonText: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ confirmButtonText: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ theme: PropType<import("../../_mixins").Theme<"Crop", {
51
+ wrapperBg: string;
52
+ wrapperBorderRadius: string;
53
+ wrapperMargin: string;
54
+ }, {}>>;
55
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
56
+ wrapperBg: string;
57
+ wrapperBorderRadius: string;
58
+ wrapperMargin: string;
59
+ }, {}>>>;
60
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
61
+ wrapperBg: string;
62
+ wrapperBorderRadius: string;
63
+ wrapperMargin: string;
64
+ }, {}>>>;
65
+ };
66
+ export type CropProps = ExtractPublicPropTypes<typeof cropProps>;
67
+ declare const _default: import("vue").DefineComponent<{
68
+ src: StringConstructor;
69
+ wrapperWidth: {
70
+ type: (StringConstructor | NumberConstructor)[];
71
+ default: string;
72
+ };
73
+ wrapperHeight: {
74
+ type: (StringConstructor | NumberConstructor)[];
75
+ default: string;
76
+ };
77
+ viewMode: {
78
+ type: PropType<ViewMode>;
79
+ default: number;
80
+ };
81
+ dragMode: {
82
+ type: PropType<"crop" | "move" | "none">;
83
+ default: string;
84
+ };
85
+ aspectRatio: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ background: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ circleShape: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ zoomable: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ cropperThemeColor: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ cancelButtonText: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ confirmButtonText: {
110
+ type: StringConstructor;
111
+ default: string;
112
+ };
113
+ theme: PropType<import("../../_mixins").Theme<"Crop", {
114
+ wrapperBg: string;
115
+ wrapperBorderRadius: string;
116
+ wrapperMargin: string;
117
+ }, {}>>;
118
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
119
+ wrapperBg: string;
120
+ wrapperBorderRadius: string;
121
+ wrapperMargin: string;
122
+ }, {}>>>;
123
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
124
+ wrapperBg: string;
125
+ wrapperBorderRadius: string;
126
+ wrapperMargin: string;
127
+ }, {}>>>;
128
+ }, {
129
+ cropWrapperRef: import("vue").Ref<HTMLDivElement | undefined>;
130
+ cropImageRef: import("vue").Ref<HTMLImageElement | undefined>;
131
+ mergedClsPrefix: import("vue").Ref<string>;
132
+ cssVars: import("vue").ComputedRef<{
133
+ '--u-wrapper-border-radius': string;
134
+ '--u-wrapper-bg-color': string;
135
+ '--u-wrapper-width': string;
136
+ '--u-wrapper-height': string;
137
+ '--u-cropper-theme-color': string;
138
+ '--u-wrapper-margin': string;
139
+ }>;
140
+ confirmCrop: () => void;
141
+ cancelCrop: () => void;
142
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
143
+ cancel: () => true;
144
+ confirm: (dataUrl: string) => true;
145
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
146
+ src: StringConstructor;
147
+ wrapperWidth: {
148
+ type: (StringConstructor | NumberConstructor)[];
149
+ default: string;
150
+ };
151
+ wrapperHeight: {
152
+ type: (StringConstructor | NumberConstructor)[];
153
+ default: string;
154
+ };
155
+ viewMode: {
156
+ type: PropType<ViewMode>;
157
+ default: number;
158
+ };
159
+ dragMode: {
160
+ type: PropType<"crop" | "move" | "none">;
161
+ default: string;
162
+ };
163
+ aspectRatio: {
164
+ type: NumberConstructor;
165
+ default: number;
166
+ };
167
+ background: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ circleShape: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ zoomable: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ cropperThemeColor: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ cancelButtonText: {
184
+ type: StringConstructor;
185
+ default: string;
186
+ };
187
+ confirmButtonText: {
188
+ type: StringConstructor;
189
+ default: string;
190
+ };
191
+ theme: PropType<import("../../_mixins").Theme<"Crop", {
192
+ wrapperBg: string;
193
+ wrapperBorderRadius: string;
194
+ wrapperMargin: string;
195
+ }, {}>>;
196
+ themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
197
+ wrapperBg: string;
198
+ wrapperBorderRadius: string;
199
+ wrapperMargin: string;
200
+ }, {}>>>;
201
+ builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Crop", {
202
+ wrapperBg: string;
203
+ wrapperBorderRadius: string;
204
+ wrapperMargin: string;
205
+ }, {}>>>;
206
+ }>> & {
207
+ onConfirm?: ((dataUrl: string) => any) | undefined;
208
+ onCancel?: (() => any) | undefined;
209
+ }, {
210
+ aspectRatio: number;
211
+ background: boolean;
212
+ wrapperWidth: string | number;
213
+ wrapperHeight: string | number;
214
+ viewMode: ViewMode;
215
+ dragMode: "none" | "move" | "crop";
216
+ circleShape: boolean;
217
+ zoomable: boolean;
218
+ cropperThemeColor: string;
219
+ cancelButtonText: string;
220
+ confirmButtonText: string;
221
+ }, {}>;
222
+ export default _default;
@@ -0,0 +1,163 @@
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.cropProps = void 0;
7
+ const vue_1 = require("vue");
8
+ const cropperjs_1 = __importDefault(require("cropperjs"));
9
+ const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
10
+ const _mixins_1 = require("../../_mixins");
11
+ const styles_1 = require("../styles");
12
+ const button_1 = require("../../button");
13
+ const flex_1 = require("../../flex");
14
+ exports.cropProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { src: String, wrapperWidth: {
15
+ type: [Number, String],
16
+ default: 'auto'
17
+ }, wrapperHeight: {
18
+ type: [Number, String],
19
+ default: 'auto'
20
+ }, viewMode: {
21
+ type: Number,
22
+ default: 0
23
+ }, dragMode: {
24
+ type: String,
25
+ default: 'none'
26
+ }, aspectRatio: {
27
+ type: Number,
28
+ default: NaN
29
+ }, background: {
30
+ type: Boolean,
31
+ default: true
32
+ }, circleShape: {
33
+ type: Boolean,
34
+ default: false
35
+ }, zoomable: {
36
+ type: Boolean,
37
+ default: false
38
+ }, cropperThemeColor: {
39
+ type: String,
40
+ default: '#fff'
41
+ }, cancelButtonText: {
42
+ type: String,
43
+ default: 'Cancel'
44
+ }, confirmButtonText: {
45
+ type: String,
46
+ default: 'Save'
47
+ } });
48
+ exports.default = (0, vue_1.defineComponent)({
49
+ name: 'Crop',
50
+ inheritAttrs: false,
51
+ props: exports.cropProps,
52
+ emits: {
53
+ cancel: () => true,
54
+ confirm: (dataUrl) => true
55
+ },
56
+ setup(props, { emit }) {
57
+ const cropWrapperRef = (0, vue_1.ref)();
58
+ const cropImageRef = (0, vue_1.ref)();
59
+ const cropperInstance = (0, vue_1.ref)(null);
60
+ const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
61
+ const themeRef = (0, _mixins_1.useTheme)('Crop', '-crop', index_cssr_1.default, styles_1.cropLight, props, mergedClsPrefixRef);
62
+ const cssVarsRef = (0, vue_1.computed)(() => {
63
+ const width = typeof props.wrapperWidth === 'string'
64
+ ? props.wrapperWidth.endsWith('px')
65
+ ? props.wrapperWidth
66
+ : `${props.wrapperWidth}px`
67
+ : `${props.wrapperWidth}px`;
68
+ const height = typeof props.wrapperHeight === 'string'
69
+ ? props.wrapperHeight.endsWith('px')
70
+ ? props.wrapperHeight
71
+ : `${props.wrapperHeight}px`
72
+ : `${props.wrapperHeight}px`;
73
+ const { self: { wrapperBorderRadius, wrapperBg, wrapperMargin } } = themeRef.value;
74
+ return {
75
+ '--u-wrapper-border-radius': wrapperBorderRadius,
76
+ '--u-wrapper-bg-color': wrapperBg,
77
+ '--u-wrapper-width': width,
78
+ '--u-wrapper-height': height,
79
+ '--u-cropper-theme-color': props.cropperThemeColor,
80
+ '--u-wrapper-margin': wrapperMargin
81
+ };
82
+ });
83
+ const initCrop = () => {
84
+ if (cropperInstance.value) {
85
+ destroyCrop();
86
+ }
87
+ if (props.src && cropWrapperRef.value && cropImageRef.value) {
88
+ cropperInstance.value = new cropperjs_1.default(cropImageRef.value, {
89
+ viewMode: props.viewMode,
90
+ dragMode: props.dragMode,
91
+ aspectRatio: props.aspectRatio,
92
+ background: props.background,
93
+ guides: false,
94
+ center: false,
95
+ zoomable: props.zoomable
96
+ });
97
+ }
98
+ };
99
+ const destroyCrop = () => {
100
+ var _a;
101
+ (_a = cropperInstance.value) === null || _a === void 0 ? void 0 : _a.destroy();
102
+ cropperInstance.value = null;
103
+ };
104
+ const confirmCrop = () => {
105
+ var _a;
106
+ const sourceCanvas = (_a = cropperInstance.value) === null || _a === void 0 ? void 0 : _a.getCroppedCanvas();
107
+ if (sourceCanvas) {
108
+ if (props.circleShape) {
109
+ const canvas = document.createElement('canvas');
110
+ const context = canvas.getContext('2d');
111
+ if (context) {
112
+ const width = sourceCanvas.width;
113
+ const height = sourceCanvas.height;
114
+ canvas.width = width;
115
+ canvas.height = height;
116
+ context.imageSmoothingEnabled = true;
117
+ context.drawImage(sourceCanvas, 0, 0, width, height);
118
+ context.globalCompositeOperation = 'destination-in';
119
+ context.beginPath();
120
+ context.arc(width / 2, height / 2, Math.min(width, height) / 2, 0, 2 * Math.PI, true);
121
+ context.fill();
122
+ emit('confirm', canvas.toDataURL());
123
+ }
124
+ }
125
+ else {
126
+ emit('confirm', sourceCanvas.toDataURL());
127
+ }
128
+ }
129
+ };
130
+ const cancelCrop = () => {
131
+ emit('cancel');
132
+ };
133
+ (0, vue_1.watch)(props, initCrop);
134
+ (0, vue_1.onMounted)(initCrop);
135
+ (0, vue_1.onBeforeUnmount)(destroyCrop);
136
+ return {
137
+ cropWrapperRef,
138
+ cropImageRef,
139
+ mergedClsPrefix: mergedClsPrefixRef,
140
+ cssVars: cssVarsRef,
141
+ confirmCrop,
142
+ cancelCrop
143
+ };
144
+ },
145
+ render() {
146
+ const { src, cssVars, circleShape, mergedClsPrefix, cancelButtonText, confirmButtonText, confirmCrop, cancelCrop } = this;
147
+ return ((0, vue_1.h)("div", { style: cssVars },
148
+ (0, vue_1.h)("div", { ref: "cropWrapperRef", class: [
149
+ `${mergedClsPrefix}-crop-wrapper`,
150
+ circleShape ? `${mergedClsPrefix}-crop-wrapper--circle` : null
151
+ ] },
152
+ (0, vue_1.h)("img", { ref: "cropImageRef", src: src, class: `${mergedClsPrefix}-crop-img` })),
153
+ (0, vue_1.h)(flex_1.UFlex, { justify: "end" }, {
154
+ default: () => ((0, vue_1.h)(vue_1.Fragment, null,
155
+ (0, vue_1.h)(button_1.UButton, { secondary: true, onClick: cancelCrop }, {
156
+ default: () => cancelButtonText
157
+ }),
158
+ (0, vue_1.h)(button_1.UButton, { tertiary: true, onClick: confirmCrop }, {
159
+ default: () => confirmButtonText
160
+ })))
161
+ })));
162
+ }
163
+ });
@@ -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,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewMode = void 0;
4
+ var ViewMode;
5
+ (function (ViewMode) {
6
+ ViewMode[ViewMode["v0"] = 0] = "v0";
7
+ ViewMode[ViewMode["v1"] = 1] = "v1";
8
+ ViewMode[ViewMode["v2"] = 2] = "v2";
9
+ ViewMode[ViewMode["v3"] = 3] = "v3";
10
+ })(ViewMode || (exports.ViewMode = ViewMode = {}));
@@ -0,0 +1,2 @@
1
+ declare const _default: import("css-render").CNode;
2
+ export default _default;