@uzum-tech/ui 2.3.4 → 2.3.5

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.
@@ -1,168 +1,34 @@
1
- import type { PropType, VNode } from 'vue';
2
- import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
3
- export declare const imagePreviewProps: {
4
- src: StringConstructor;
5
- show: {
6
- type: BooleanConstructor;
7
- default: undefined;
1
+ import type { SlotsType, VNode } from 'vue';
2
+ import type { ImagePreviewSlots } from './public-types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ readonly src: StringConstructor;
5
+ readonly show: {
6
+ readonly type: BooleanConstructor;
7
+ readonly default: undefined;
8
8
  };
9
- defaultShow: BooleanConstructor;
10
- 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
11
- onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
12
- onNext: PropType<() => void>;
13
- onPrev: PropType<() => void>;
14
- onClose: PropType<MaybeArray<() => void>>;
15
- onPreviewPrev: PropType<() => void>;
16
- onPreviewNext: PropType<() => void>;
17
- showToolbar: {
18
- type: BooleanConstructor;
19
- default: boolean;
9
+ readonly defaultShow: BooleanConstructor;
10
+ readonly 'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
11
+ readonly loading: {
12
+ readonly type: BooleanConstructor;
13
+ readonly default: false;
20
14
  };
21
- showToolbarTooltip: BooleanConstructor;
22
- renderToolbar: PropType<import("./public-types").ImageRenderToolbar>;
23
- theme: PropType<import("../../_mixins").Theme<"Image", {
24
- toolbarIconColor: string;
25
- toolbarColor: string;
26
- toolbarBoxShadow: string;
27
- toolbarBorderRadius: string;
28
- overlayColor: string;
29
- }, {
30
- Tooltip: import("../../_mixins").Theme<"Tooltip", {
31
- padding: string;
32
- textPadding: string;
33
- titleSize: string;
34
- titleWeight: string;
35
- titleLineHeight: string;
36
- subtitleSize: string;
37
- subtitleMargin: string;
38
- subtitleWeight: string;
39
- subtitleLineHeight: string;
40
- iconSize: string;
41
- arrowSpace: string;
42
- noArrowSpace: string;
43
- borderRadius: string;
44
- color: string;
45
- textColor: string;
46
- }, {
47
- Popover: import("../../_mixins").Theme<"Popover", {
48
- space: string;
49
- spaceArrow: string;
50
- arrowOffset: string;
51
- arrowOffsetVertical: string;
52
- arrowHeight: string;
53
- padding: string;
54
- fontSize: string;
55
- borderRadius: string;
56
- color: string;
57
- dividerColor: string;
58
- textColor: string;
59
- boxShadow: string;
60
- }, any>;
61
- }>;
62
- }>>;
63
- themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
64
- toolbarIconColor: string;
65
- toolbarColor: string;
66
- toolbarBoxShadow: string;
67
- toolbarBorderRadius: string;
68
- overlayColor: string;
69
- }, {
70
- Tooltip: import("../../_mixins").Theme<"Tooltip", {
71
- padding: string;
72
- textPadding: string;
73
- titleSize: string;
74
- titleWeight: string;
75
- titleLineHeight: string;
76
- subtitleSize: string;
77
- subtitleMargin: string;
78
- subtitleWeight: string;
79
- subtitleLineHeight: string;
80
- iconSize: string;
81
- arrowSpace: string;
82
- noArrowSpace: string;
83
- borderRadius: string;
84
- color: string;
85
- textColor: string;
86
- }, {
87
- Popover: import("../../_mixins").Theme<"Popover", {
88
- space: string;
89
- spaceArrow: string;
90
- arrowOffset: string;
91
- arrowOffsetVertical: string;
92
- arrowHeight: string;
93
- padding: string;
94
- fontSize: string;
95
- borderRadius: string;
96
- color: string;
97
- dividerColor: string;
98
- textColor: string;
99
- boxShadow: string;
100
- }, any>;
101
- }>;
102
- }>>>;
103
- builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
104
- toolbarIconColor: string;
105
- toolbarColor: string;
106
- toolbarBoxShadow: string;
107
- toolbarBorderRadius: string;
108
- overlayColor: string;
109
- }, {
110
- Tooltip: import("../../_mixins").Theme<"Tooltip", {
111
- padding: string;
112
- textPadding: string;
113
- titleSize: string;
114
- titleWeight: string;
115
- titleLineHeight: string;
116
- subtitleSize: string;
117
- subtitleMargin: string;
118
- subtitleWeight: string;
119
- subtitleLineHeight: string;
120
- iconSize: string;
121
- arrowSpace: string;
122
- noArrowSpace: string;
123
- borderRadius: string;
124
- color: string;
125
- textColor: string;
126
- }, {
127
- Popover: import("../../_mixins").Theme<"Popover", {
128
- space: string;
129
- spaceArrow: string;
130
- arrowOffset: string;
131
- arrowOffsetVertical: string;
132
- arrowHeight: string;
133
- padding: string;
134
- fontSize: string;
135
- borderRadius: string;
136
- color: string;
137
- dividerColor: string;
138
- textColor: string;
139
- boxShadow: string;
140
- }, any>;
141
- }>;
142
- }>>>;
143
- };
144
- export type ImagePreviewProps = ExtractPublicPropTypes<typeof imagePreviewProps>;
145
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
146
- src: StringConstructor;
147
- show: {
148
- type: BooleanConstructor;
149
- default: undefined;
15
+ readonly spinProps: {
16
+ readonly type: import("vue").PropType<Partial<import("../../spin").SpinProps>>;
17
+ readonly default: undefined;
150
18
  };
151
- defaultShow: BooleanConstructor;
152
- 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
153
- onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
154
- onNext: PropType<() => void>;
155
- onPrev: PropType<() => void>;
156
- onClose: PropType<MaybeArray<() => void>>;
157
- onPreviewPrev: PropType<() => void>;
158
- onPreviewNext: PropType<() => void>;
159
- showToolbar: {
19
+ readonly onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
20
+ readonly onNext: import("vue").PropType<() => void>;
21
+ readonly onPrev: import("vue").PropType<() => void>;
22
+ readonly onClose: import("vue").PropType<import("../../_utils").MaybeArray<() => void>>;
23
+ readonly onPreviewPrev: import("vue").PropType<() => void>;
24
+ readonly onPreviewNext: import("vue").PropType<() => void>;
25
+ readonly showToolbar: {
160
26
  type: BooleanConstructor;
161
27
  default: boolean;
162
28
  };
163
- showToolbarTooltip: BooleanConstructor;
164
- renderToolbar: PropType<import("./public-types").ImageRenderToolbar>;
165
- theme: PropType<import("../../_mixins").Theme<"Image", {
29
+ readonly showToolbarTooltip: BooleanConstructor;
30
+ readonly renderToolbar: import("vue").PropType<import("./public-types").ImageRenderToolbar>;
31
+ readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
166
32
  toolbarIconColor: string;
167
33
  toolbarColor: string;
168
34
  toolbarBoxShadow: string;
@@ -202,7 +68,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
202
68
  }, any>;
203
69
  }>;
204
70
  }>>;
205
- themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
71
+ readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
206
72
  toolbarIconColor: string;
207
73
  toolbarColor: string;
208
74
  toolbarBoxShadow: string;
@@ -242,7 +108,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
242
108
  }, any>;
243
109
  }>;
244
110
  }>>>;
245
- builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
111
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
246
112
  toolbarIconColor: string;
247
113
  toolbarColor: string;
248
114
  toolbarBoxShadow: string;
@@ -320,26 +186,34 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
320
186
  doUpdateShow: (value: boolean) => void;
321
187
  close: () => void;
322
188
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
323
- src: StringConstructor;
324
- show: {
325
- type: BooleanConstructor;
326
- default: undefined;
189
+ readonly src: StringConstructor;
190
+ readonly show: {
191
+ readonly type: BooleanConstructor;
192
+ readonly default: undefined;
193
+ };
194
+ readonly defaultShow: BooleanConstructor;
195
+ readonly 'onUpdate:show': import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
196
+ readonly loading: {
197
+ readonly type: BooleanConstructor;
198
+ readonly default: false;
199
+ };
200
+ readonly spinProps: {
201
+ readonly type: import("vue").PropType<Partial<import("../../spin").SpinProps>>;
202
+ readonly default: undefined;
327
203
  };
328
- defaultShow: BooleanConstructor;
329
- 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
330
- onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
331
- onNext: PropType<() => void>;
332
- onPrev: PropType<() => void>;
333
- onClose: PropType<MaybeArray<() => void>>;
334
- onPreviewPrev: PropType<() => void>;
335
- onPreviewNext: PropType<() => void>;
336
- showToolbar: {
204
+ readonly onUpdateShow: import("vue").PropType<import("../../_utils").MaybeArray<(show: boolean) => void>>;
205
+ readonly onNext: import("vue").PropType<() => void>;
206
+ readonly onPrev: import("vue").PropType<() => void>;
207
+ readonly onClose: import("vue").PropType<import("../../_utils").MaybeArray<() => void>>;
208
+ readonly onPreviewPrev: import("vue").PropType<() => void>;
209
+ readonly onPreviewNext: import("vue").PropType<() => void>;
210
+ readonly showToolbar: {
337
211
  type: BooleanConstructor;
338
212
  default: boolean;
339
213
  };
340
- showToolbarTooltip: BooleanConstructor;
341
- renderToolbar: PropType<import("./public-types").ImageRenderToolbar>;
342
- theme: PropType<import("../../_mixins").Theme<"Image", {
214
+ readonly showToolbarTooltip: BooleanConstructor;
215
+ readonly renderToolbar: import("vue").PropType<import("./public-types").ImageRenderToolbar>;
216
+ readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Image", {
343
217
  toolbarIconColor: string;
344
218
  toolbarColor: string;
345
219
  toolbarBoxShadow: string;
@@ -379,7 +253,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
379
253
  }, any>;
380
254
  }>;
381
255
  }>>;
382
- themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
256
+ readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
383
257
  toolbarIconColor: string;
384
258
  toolbarColor: string;
385
259
  toolbarBoxShadow: string;
@@ -419,7 +293,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
419
293
  }, any>;
420
294
  }>;
421
295
  }>>>;
422
- builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
296
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
423
297
  toolbarIconColor: string;
424
298
  toolbarColor: string;
425
299
  toolbarBoxShadow: string;
@@ -460,9 +334,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
460
334
  }>;
461
335
  }>>>;
462
336
  }>> & Readonly<{}>, {
463
- show: boolean;
464
- defaultShow: boolean;
465
- showToolbar: boolean;
466
- showToolbarTooltip: boolean;
467
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
337
+ readonly loading: boolean;
338
+ readonly show: boolean;
339
+ readonly spinProps: Partial<import("../../spin").SpinProps>;
340
+ readonly defaultShow: boolean;
341
+ readonly showToolbar: boolean;
342
+ readonly showToolbarTooltip: boolean;
343
+ }, SlotsType<ImagePreviewSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
468
344
  export default _default;
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.imagePreviewProps = void 0;
7
6
  const evtd_1 = require("evtd");
8
7
  const lodash_es_1 = require("lodash-es");
9
8
  const seemly_1 = require("seemly");
@@ -15,19 +14,16 @@ const _internal_1 = require("../../_internal");
15
14
  const icons_1 = require("../../_internal/icons");
16
15
  const _mixins_1 = require("../../_mixins");
17
16
  const _utils_1 = require("../../_utils");
17
+ const spin_1 = require("../../spin");
18
18
  const tooltip_1 = require("../../tooltip");
19
19
  const styles_1 = require("../styles");
20
20
  const icons_2 = require("./icons");
21
21
  const interface_1 = require("./interface");
22
22
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
23
- const BLEEDING = 32;
24
- exports.imagePreviewProps = Object.assign(Object.assign({}, interface_1.imagePreviewSharedProps), { src: String, show: {
25
- type: Boolean,
26
- default: undefined
27
- }, defaultShow: Boolean, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], onNext: Function, onPrev: Function, onClose: [Function, Array] });
28
23
  exports.default = (0, vue_1.defineComponent)({
29
24
  name: 'ImagePreview',
30
- props: exports.imagePreviewProps,
25
+ props: interface_1.imagePreviewProps,
26
+ slots: Object,
31
27
  setup(props) {
32
28
  const { src } = (0, vue_1.toRefs)(props);
33
29
  const { mergedClsPrefixRef } = (0, _mixins_1.useConfig)(props);
@@ -243,8 +239,8 @@ exports.default = (0, vue_1.defineComponent)({
243
239
  if (!preview)
244
240
  return 1;
245
241
  const { innerWidth, innerHeight } = window;
246
- const heightMaxScale = Math.max(1, preview.naturalHeight / (innerHeight - BLEEDING));
247
- const widthMaxScale = Math.max(1, preview.naturalWidth / (innerWidth - BLEEDING));
242
+ const heightMaxScale = Math.max(1, preview.naturalHeight / (innerHeight - interface_1.BLEEDING));
243
+ const widthMaxScale = Math.max(1, preview.naturalWidth / (innerWidth - interface_1.BLEEDING));
248
244
  return Math.max(3, heightMaxScale * 2, widthMaxScale * 2);
249
245
  }
250
246
  function getOrignalImageSizeScale() {
@@ -252,8 +248,8 @@ exports.default = (0, vue_1.defineComponent)({
252
248
  if (!preview)
253
249
  return 1;
254
250
  const { innerWidth, innerHeight } = window;
255
- const heightScale = preview.naturalHeight / (innerHeight - BLEEDING);
256
- const widthScale = preview.naturalWidth / (innerWidth - BLEEDING);
251
+ const heightScale = preview.naturalHeight / (innerHeight - interface_1.BLEEDING);
252
+ const widthScale = preview.naturalWidth / (innerWidth - interface_1.BLEEDING);
257
253
  if (heightScale < 1 && widthScale < 1) {
258
254
  return 1;
259
255
  }
@@ -447,13 +443,18 @@ exports.default = (0, vue_1.defineComponent)({
447
443
  onEnter: this.syncTransformOrigin, onBeforeLeave: this.syncTransformOrigin }, {
448
444
  default: () => {
449
445
  const { previewedImgProps = {} } = this;
450
- return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-wrapper`, ref: "previewWrapperRef" },
451
- (0, vue_1.h)("img", Object.assign({}, previewedImgProps, { draggable: false, onMousedown: this.handlePreviewMousedown, onDblclick: this.handlePreviewDblclick, class: [
452
- `${clsPrefix}-image-preview`,
453
- previewedImgProps.class
454
- ], key: this.previewSrc, src: this.previewSrc, ref: "previewRef", onDragstart: this.handleDragStart }))), [[vue_1.vShow, this.mergedShow]]);
446
+ return (0, vue_1.withDirectives)((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-wrapper`, ref: "previewWrapperRef" }, !this.loading ? ((0, vue_1.h)("img", Object.assign({}, previewedImgProps, { draggable: false, onMousedown: this.handlePreviewMousedown, onDblclick: this.handlePreviewDblclick, class: [
447
+ `${clsPrefix}-image-preview`,
448
+ previewedImgProps.class
449
+ ], key: this.previewSrc, src: this.previewSrc, ref: "previewRef", onDragstart: this.handleDragStart }))) : null), [[vue_1.vShow, this.mergedShow]]);
455
450
  }
456
- })), [[vdirs_1.zindexable, { enabled: this.mergedShow }]]);
451
+ }),
452
+ this.mergedShow && this.loading && ((0, vue_1.h)("div", { class: `${clsPrefix}-image-preview-loading` },
453
+ (0, vue_1.h)(spin_1.USpin, Object.assign({}, this.spinProps), {
454
+ default: this.$slots['spin-default'],
455
+ icon: this.$slots['spin-icon'],
456
+ description: this.$slots['spin-description']
457
+ })))), [[vdirs_1.zindexable, { enabled: this.mergedShow }]]);
457
458
  }
458
459
  })));
459
460
  }
@@ -1,4 +1,6 @@
1
1
  import type { ImgHTMLAttributes, PropType, Ref } from 'vue';
2
+ import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
3
+ import type { SpinProps } from '../../spin';
2
4
  import type { ImageRenderToolbar } from './public-types';
3
5
  export interface MoveStrategy {
4
6
  moveVerticalDirection: 'verticalTop' | 'verticalBottom';
@@ -6,6 +8,10 @@ export interface MoveStrategy {
6
8
  deltaHorizontal: number;
7
9
  deltaVertical: number;
8
10
  }
11
+ export interface ImageContext {
12
+ previewedImgPropsRef: Ref<ImgHTMLAttributes | undefined>;
13
+ }
14
+ export type ImagePreviewProps = ExtractPublicPropTypes<typeof imagePreviewProps>;
9
15
  export declare const imagePreviewSharedProps: {
10
16
  onPreviewPrev: PropType<() => void>;
11
17
  onPreviewNext: PropType<() => void>;
@@ -136,7 +142,154 @@ export declare const imagePreviewSharedProps: {
136
142
  }>;
137
143
  }>>>;
138
144
  };
139
- export interface ImageContext {
140
- previewedImgPropsRef: Ref<ImgHTMLAttributes | undefined>;
141
- }
142
145
  export declare const imageContextKey: import("vue").InjectionKey<ImageContext>;
146
+ export declare const BLEEDING = 32;
147
+ export declare const imagePreviewProps: {
148
+ readonly src: StringConstructor;
149
+ readonly show: {
150
+ readonly type: BooleanConstructor;
151
+ readonly default: undefined;
152
+ };
153
+ readonly defaultShow: BooleanConstructor;
154
+ readonly 'onUpdate:show': PropType<MaybeArray<(show: boolean) => void>>;
155
+ readonly loading: {
156
+ readonly type: BooleanConstructor;
157
+ readonly default: false;
158
+ };
159
+ readonly spinProps: {
160
+ readonly type: PropType<Partial<SpinProps>>;
161
+ readonly default: undefined;
162
+ };
163
+ readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
164
+ readonly onNext: PropType<() => void>;
165
+ readonly onPrev: PropType<() => void>;
166
+ readonly onClose: PropType<MaybeArray<() => void>>;
167
+ readonly onPreviewPrev: PropType<() => void>;
168
+ readonly onPreviewNext: PropType<() => void>;
169
+ readonly showToolbar: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ readonly showToolbarTooltip: BooleanConstructor;
174
+ readonly renderToolbar: PropType<ImageRenderToolbar>;
175
+ readonly theme: PropType<import("../../_mixins").Theme<"Image", {
176
+ toolbarIconColor: string;
177
+ toolbarColor: string;
178
+ toolbarBoxShadow: string;
179
+ toolbarBorderRadius: string;
180
+ overlayColor: string;
181
+ }, {
182
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
183
+ padding: string;
184
+ textPadding: string;
185
+ titleSize: string;
186
+ titleWeight: string;
187
+ titleLineHeight: string;
188
+ subtitleSize: string;
189
+ subtitleMargin: string;
190
+ subtitleWeight: string;
191
+ subtitleLineHeight: string;
192
+ iconSize: string;
193
+ arrowSpace: string;
194
+ noArrowSpace: string;
195
+ borderRadius: string;
196
+ color: string;
197
+ textColor: string;
198
+ }, {
199
+ Popover: import("../../_mixins").Theme<"Popover", {
200
+ space: string;
201
+ spaceArrow: string;
202
+ arrowOffset: string;
203
+ arrowOffsetVertical: string;
204
+ arrowHeight: string;
205
+ padding: string;
206
+ fontSize: string;
207
+ borderRadius: string;
208
+ color: string;
209
+ dividerColor: string;
210
+ textColor: string;
211
+ boxShadow: string;
212
+ }, any>;
213
+ }>;
214
+ }>>;
215
+ readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
216
+ toolbarIconColor: string;
217
+ toolbarColor: string;
218
+ toolbarBoxShadow: string;
219
+ toolbarBorderRadius: string;
220
+ overlayColor: string;
221
+ }, {
222
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
223
+ padding: string;
224
+ textPadding: string;
225
+ titleSize: string;
226
+ titleWeight: string;
227
+ titleLineHeight: string;
228
+ subtitleSize: string;
229
+ subtitleMargin: string;
230
+ subtitleWeight: string;
231
+ subtitleLineHeight: string;
232
+ iconSize: string;
233
+ arrowSpace: string;
234
+ noArrowSpace: string;
235
+ borderRadius: string;
236
+ color: string;
237
+ textColor: string;
238
+ }, {
239
+ Popover: import("../../_mixins").Theme<"Popover", {
240
+ space: string;
241
+ spaceArrow: string;
242
+ arrowOffset: string;
243
+ arrowOffsetVertical: string;
244
+ arrowHeight: string;
245
+ padding: string;
246
+ fontSize: string;
247
+ borderRadius: string;
248
+ color: string;
249
+ dividerColor: string;
250
+ textColor: string;
251
+ boxShadow: string;
252
+ }, any>;
253
+ }>;
254
+ }>>>;
255
+ readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Image", {
256
+ toolbarIconColor: string;
257
+ toolbarColor: string;
258
+ toolbarBoxShadow: string;
259
+ toolbarBorderRadius: string;
260
+ overlayColor: string;
261
+ }, {
262
+ Tooltip: import("../../_mixins").Theme<"Tooltip", {
263
+ padding: string;
264
+ textPadding: string;
265
+ titleSize: string;
266
+ titleWeight: string;
267
+ titleLineHeight: string;
268
+ subtitleSize: string;
269
+ subtitleMargin: string;
270
+ subtitleWeight: string;
271
+ subtitleLineHeight: string;
272
+ iconSize: string;
273
+ arrowSpace: string;
274
+ noArrowSpace: string;
275
+ borderRadius: string;
276
+ color: string;
277
+ textColor: string;
278
+ }, {
279
+ Popover: import("../../_mixins").Theme<"Popover", {
280
+ space: string;
281
+ spaceArrow: string;
282
+ arrowOffset: string;
283
+ arrowOffsetVertical: string;
284
+ arrowHeight: string;
285
+ padding: string;
286
+ fontSize: string;
287
+ borderRadius: string;
288
+ color: string;
289
+ dividerColor: string;
290
+ textColor: string;
291
+ boxShadow: string;
292
+ }, any>;
293
+ }>;
294
+ }>>>;
295
+ };
@@ -1,7 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.imageContextKey = exports.imagePreviewSharedProps = void 0;
3
+ exports.imagePreviewProps = exports.BLEEDING = exports.imageContextKey = exports.imagePreviewSharedProps = void 0;
4
4
  const _mixins_1 = require("../../_mixins");
5
5
  const _utils_1 = require("../../_utils");
6
6
  exports.imagePreviewSharedProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { onPreviewPrev: Function, onPreviewNext: Function, showToolbar: { type: Boolean, default: true }, showToolbarTooltip: Boolean, renderToolbar: Function });
7
7
  exports.imageContextKey = (0, _utils_1.createInjectionKey)('u-image');
8
+ exports.BLEEDING = 32;
9
+ exports.imagePreviewProps = Object.assign(Object.assign({}, exports.imagePreviewSharedProps), { src: String, show: {
10
+ type: Boolean,
11
+ default: undefined
12
+ }, defaultShow: Boolean, 'onUpdate:show': [Function, Array], loading: {
13
+ type: Boolean,
14
+ default: false
15
+ }, spinProps: {
16
+ type: Object,
17
+ default: undefined
18
+ }, onUpdateShow: [Function, Array], onNext: Function, onPrev: Function, onClose: [Function, Array] });
@@ -12,9 +12,6 @@ export interface ImageRenderToolbarProps {
12
12
  close: VNode;
13
13
  };
14
14
  }
15
- export type ImageRenderToolbar = (props: ImageRenderToolbarProps) => VNodeChild;
16
- export type ImageGroupRenderToolbarProps = ImageRenderToolbarProps;
17
- export type ImageGroupRenderToolbar = ImageRenderToolbar;
18
15
  export interface ImageInst {
19
16
  /** @deprecated Use `showPreview` instead */
20
17
  click: () => void;
@@ -24,8 +21,17 @@ export interface ImageSlots {
24
21
  placeholder?: ImagePlaceholderSlot;
25
22
  error?: ImageErrorSlot;
26
23
  }
27
- export type ImagePlaceholderSlot = () => VNode[];
28
- export type ImageErrorSlot = () => VNode[];
29
24
  export interface ImagePreviewInst {
30
25
  setThumbnailEl: (e: HTMLImageElement | null) => void;
31
26
  }
27
+ export interface ImagePreviewSlots {
28
+ default?: () => VNode[];
29
+ 'spin-default'?: () => VNode[];
30
+ 'spin-icon'?: () => VNode[];
31
+ 'spin-description'?: () => VNode[];
32
+ }
33
+ export type ImageRenderToolbar = (props: ImageRenderToolbarProps) => VNodeChild;
34
+ export type ImageGroupRenderToolbarProps = ImageRenderToolbarProps;
35
+ export type ImageGroupRenderToolbar = ImageRenderToolbar;
36
+ export type ImagePlaceholderSlot = () => VNode[];
37
+ export type ImageErrorSlot = () => VNode[];
@@ -46,7 +46,17 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.c)('body >', [(0, cssr_1.cB)('image-
46
46
  padding: 0 8px;
47
47
  font-size: 28px;
48
48
  cursor: pointer;
49
- `), (0, fade_in_cssr_1.fadeInTransition)()]), (0, cssr_1.cB)('image-preview-wrapper', `
49
+ `), (0, fade_in_cssr_1.fadeInTransition)()]), (0, cssr_1.cB)('image-preview-loading', `
50
+ position: absolute;
51
+ left: 0;
52
+ right: 0;
53
+ top: 0;
54
+ bottom: 0;
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ pointer-events: none;
59
+ `), (0, cssr_1.cB)('image-preview-wrapper', `
50
60
  position: absolute;
51
61
  left: 0;
52
62
  right: 0;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.3.4";
1
+ declare const _default: "2.3.5";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.3.4';
3
+ exports.default = '2.3.5';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "packageManager": "pnpm@10.33.0",
5
5
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
6
6
  "author": {