@uzum-tech/ui 2.3.0 → 2.3.2

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 (80) hide show
  1. package/dist/index.js +564 -499
  2. package/dist/index.mjs +564 -499
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/chat/src/Chat.d.ts +1074 -0
  6. package/es/chat/src/ChatListItems.d.ts +360 -0
  7. package/es/chat/src/ChatMainArea.d.ts +360 -0
  8. package/es/chat/src/ChatMainArea.mjs +1 -0
  9. package/es/chat/src/ChatMessages.d.ts +360 -0
  10. package/es/chat/src/ChatMessages.mjs +30 -3
  11. package/es/chat/src/ChatParts/Sidebar.d.ts +78 -0
  12. package/es/chat/src/interface.d.ts +1 -0
  13. package/es/chat/styles/dark.d.ts +27 -0
  14. package/es/chat/styles/dark.mjs +2 -0
  15. package/es/chat/styles/light.d.ts +27 -0
  16. package/es/chat/styles/light.mjs +2 -0
  17. package/es/components.d.ts +1840 -7
  18. package/es/image/src/ImagePreview.d.ts +1 -0
  19. package/es/image/src/ImagePreview.mjs +7 -35
  20. package/es/image/src/public-types.d.ts +4 -4
  21. package/es/message-bubble/src/MessageBubble.mjs +16 -5
  22. package/es/message-bubble/src/interface.d.ts +2 -0
  23. package/es/message-bubble/src/styles/index.cssr.mjs +5 -7
  24. package/es/upload/index.d.ts +2 -1
  25. package/es/upload/index.mjs +2 -1
  26. package/es/upload/src/Upload.d.ts +73 -1007
  27. package/es/upload/src/Upload.mjs +43 -124
  28. package/es/upload/src/UploadFile.d.ts +1 -1
  29. package/es/upload/src/UploadFile.mjs +8 -2
  30. package/es/upload/src/UploadFileList.mjs +17 -2
  31. package/es/upload/src/UploadProgress.d.ts +3 -2
  32. package/es/upload/src/interface.d.ts +1086 -92
  33. package/es/upload/src/interface.mjs +117 -1
  34. package/es/upload/src/public-types.d.ts +17 -2
  35. package/es/upload/src/useUploadActionsRender.d.ts +2 -27
  36. package/es/upload/src/useUploadActionsRender.mjs +2 -2
  37. package/es/upload/src/useUploadInternals.d.ts +2 -25
  38. package/es/upload/src/utils.d.ts +2 -0
  39. package/es/upload/src/utils.mjs +7 -0
  40. package/es/version.d.ts +1 -1
  41. package/es/version.mjs +1 -1
  42. package/lib/chat/src/Chat.d.ts +1074 -0
  43. package/lib/chat/src/ChatListItems.d.ts +360 -0
  44. package/lib/chat/src/ChatMainArea.d.ts +360 -0
  45. package/lib/chat/src/ChatMainArea.js +1 -0
  46. package/lib/chat/src/ChatMessages.d.ts +360 -0
  47. package/lib/chat/src/ChatMessages.js +10 -3
  48. package/lib/chat/src/ChatParts/Sidebar.d.ts +78 -0
  49. package/lib/chat/src/interface.d.ts +1 -0
  50. package/lib/chat/styles/dark.d.ts +27 -0
  51. package/lib/chat/styles/dark.js +6 -4
  52. package/lib/chat/styles/light.d.ts +27 -0
  53. package/lib/chat/styles/light.js +6 -4
  54. package/lib/components.d.ts +1840 -7
  55. package/lib/image/src/ImagePreview.d.ts +1 -0
  56. package/lib/image/src/ImagePreview.js +3 -19
  57. package/lib/image/src/public-types.d.ts +4 -4
  58. package/lib/message-bubble/src/MessageBubble.js +15 -5
  59. package/lib/message-bubble/src/interface.d.ts +2 -0
  60. package/lib/message-bubble/src/styles/index.cssr.js +5 -7
  61. package/lib/upload/index.d.ts +2 -1
  62. package/lib/upload/index.js +2 -1
  63. package/lib/upload/src/Upload.d.ts +73 -1007
  64. package/lib/upload/src/Upload.js +40 -68
  65. package/lib/upload/src/UploadFile.d.ts +1 -1
  66. package/lib/upload/src/UploadFile.js +12 -4
  67. package/lib/upload/src/UploadFileList.js +8 -1
  68. package/lib/upload/src/UploadProgress.d.ts +3 -2
  69. package/lib/upload/src/interface.d.ts +1086 -92
  70. package/lib/upload/src/interface.js +59 -1
  71. package/lib/upload/src/public-types.d.ts +17 -2
  72. package/lib/upload/src/useUploadActionsRender.d.ts +2 -27
  73. package/lib/upload/src/useUploadActionsRender.js +2 -2
  74. package/lib/upload/src/useUploadInternals.d.ts +2 -25
  75. package/lib/upload/src/utils.d.ts +2 -0
  76. package/lib/upload/src/utils.js +10 -0
  77. package/lib/version.d.ts +1 -1
  78. package/lib/version.js +1 -1
  79. package/package.json +1 -1
  80. package/web-types.json +113 -36
@@ -1,5 +1,63 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadInjectionKey = void 0;
3
+ exports.uploadProps = exports.uploadInjectionKey = void 0;
4
+ const _mixins_1 = require("../../_mixins");
4
5
  const _utils_1 = require("../../_utils");
6
+ const utils_1 = require("./utils");
5
7
  exports.uploadInjectionKey = (0, _utils_1.createInjectionKey)('u-upload');
8
+ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { name: {
9
+ type: String,
10
+ default: 'file'
11
+ }, accept: String, action: String, customRequest: Function, directory: Boolean, directoryDnd: { type: Boolean, default: undefined }, method: {
12
+ type: String,
13
+ default: 'POST'
14
+ }, multiple: Boolean, showFileList: {
15
+ type: Boolean,
16
+ default: true
17
+ }, data: [Object, Function], headers: [Object, Function], withCredentials: Boolean, responseType: {
18
+ type: String,
19
+ default: ''
20
+ }, disabled: {
21
+ type: Boolean,
22
+ default: undefined
23
+ }, vertical: {
24
+ type: Boolean,
25
+ default: false
26
+ }, icon: Object, onChange: Function, onRemove: Function, onFinish: Function, onError: Function, onRetry: Function, onBeforeUpload: Function, isErrorState: Function, onDownload: Function, defaultUpload: {
27
+ type: Boolean,
28
+ default: true
29
+ }, fileList: Array, 'onUpdate:fileList': [Function, Array], onUpdateFileList: [Function, Array], fileListClass: String, fileListStyle: [String, Object], defaultFileList: {
30
+ type: Array,
31
+ default: () => []
32
+ }, showCancelButton: {
33
+ type: Boolean,
34
+ default: true
35
+ }, showRemoveButton: {
36
+ type: Boolean,
37
+ default: true
38
+ }, showDownloadButton: Boolean, showRetryButton: {
39
+ type: Boolean,
40
+ default: true
41
+ }, customDownload: Function, showPreviewButton: {
42
+ type: Boolean,
43
+ default: true
44
+ }, listType: {
45
+ type: String,
46
+ default: 'text'
47
+ }, onPreview: Function, shouldUseThumbnailUrl: {
48
+ type: Function,
49
+ default: (file) => {
50
+ if (!utils_1.environmentSupportFile)
51
+ return false;
52
+ return (0, utils_1.isImageFile)(file);
53
+ }
54
+ }, createThumbnailUrl: Function, abstract: Boolean, max: Number, maxSize: Number, showTrigger: {
55
+ type: Boolean,
56
+ default: true
57
+ }, imageGroupProps: Object, inputProps: Object, triggerClass: String, triggerStyle: [String, Object], renderIcon: Function, label: String, size: {
58
+ type: String,
59
+ default: 'medium'
60
+ }, title: String, subtitle: String, noIcon: {
61
+ type: Boolean,
62
+ default: false
63
+ } });
@@ -1,13 +1,28 @@
1
- import type { CustomRequestOptions, FileInfo, FuncOrRecordOrUndef, OnChange, OnDownload, OnFinish, OnRemove, OnRetry, SettledFileInfo, UploadInst as UploadInstInner } from './interface';
2
- export type { UploadProps } from './Upload';
1
+ import type { CustomRequestOptions, FileInfo, FuncOrRecordOrUndef, IsErrorState, ListType, OnBeforeUpload, OnBeforeUploadPayload, OnChange, OnChangePayload, OnDownload, OnError, OnErrorPayload, OnFinish, OnFinishPayload, OnPreview, OnRemove, OnRemovePayload, OnRetry, OnRetryPayload, OnUpdateFileList, RenderIcon, SettledFileInfo, ShouldUseThumbnailUrl, SubmitOptions, UploadInst as UploadInstInner } from './interface';
2
+ export type { UploadLocale, UploadProps, UploadSize } from './interface';
3
3
  export interface UploadInst extends UploadInstInner {
4
4
  }
5
5
  export type UploadFileInfo = FileInfo;
6
6
  export type UploadCustomRequestOptions = CustomRequestOptions;
7
7
  export type UploadSettledFileInfo = SettledFileInfo;
8
+ export type UploadListType = ListType;
9
+ export type UploadIsErrorState = IsErrorState;
10
+ export type UploadRenderIcon = RenderIcon;
11
+ export type UploadShouldUseThumbnailUrl = ShouldUseThumbnailUrl;
12
+ export type UploadSubmitOptions = SubmitOptions;
8
13
  export type UploadOnChange = OnChange;
14
+ export type UploadOnChangePayload = OnChangePayload;
9
15
  export type UploadOnFinish = OnFinish;
16
+ export type UploadOnFinishPayload = OnFinishPayload;
17
+ export type UploadOnError = OnError;
18
+ export type UploadOnErrorPayload = OnErrorPayload;
10
19
  export type UploadOnRemove = OnRemove;
20
+ export type UploadOnRemovePayload = OnRemovePayload;
11
21
  export type UploadOnDownload = OnDownload;
12
22
  export type UploadOnRetry = OnRetry;
23
+ export type UploadOnRetryPayload = OnRetryPayload;
24
+ export type UploadOnPreview = OnPreview;
25
+ export type UploadOnBeforeUpload = OnBeforeUpload;
26
+ export type UploadOnBeforeUploadPayload = OnBeforeUploadPayload;
27
+ export type UploadOnUpdateFileList = OnUpdateFileList;
13
28
  export type { FuncOrRecordOrUndef };
@@ -1,27 +1,2 @@
1
- import type { VNode } from 'vue';
2
- import type { ListType, RenderIcon, SettledFileInfo } from './interface';
3
- interface Options {
4
- clsPrefix: string;
5
- listType: ListType;
6
- file: SettledFileInfo;
7
- renderIcon?: RenderIcon;
8
- showPreviewButton: string | boolean | null;
9
- showRemoveButton: boolean;
10
- showCancelButton: boolean;
11
- showRetryButton: boolean;
12
- showDownloadButton: boolean;
13
- disabled: boolean;
14
- buttonType: string | undefined;
15
- mergedTheme: any;
16
- buttonThemeOverrides: any;
17
- handlePreviewClick: () => void;
18
- handleRemoveOrCancelClick: (e: MouseEvent) => void;
19
- handleRetryClick: () => void;
20
- handleDownloadClick: (e: MouseEvent) => void;
21
- capitalizeFirstLetter: (text: string) => string;
22
- }
23
- export declare function useUploadActionsRender(opts: Options): {
24
- actionsNode: VNode;
25
- icon: VNode;
26
- };
27
- export {};
1
+ import type { UploadActionsRenderOptions, UploadActionsRenderReturn } from './interface';
2
+ export declare function useUploadActionsRender(options: UploadActionsRenderOptions): UploadActionsRenderReturn;
@@ -5,8 +5,8 @@ const vue_1 = require("vue");
5
5
  const _internal_1 = require("../../_internal");
6
6
  const icons_1 = require("../../_internal/icons");
7
7
  const button_1 = require("../../button");
8
- function useUploadActionsRender(opts) {
9
- const { clsPrefix, listType, file, renderIcon, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = opts;
8
+ function useUploadActionsRender(options) {
9
+ const { clsPrefix, listType, file, renderIcon, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = options;
10
10
  const getExt = (name) => {
11
11
  const i = name.lastIndexOf('.');
12
12
  return i === -1 || i === name.length - 1 ? '' : name.slice(i + 1);
@@ -1,25 +1,2 @@
1
- import type { Slots, VNode } from 'vue';
2
- interface UseUploadInternalsOptions {
3
- mergedClsPrefix: string;
4
- accept?: string;
5
- multiple?: boolean;
6
- inputProps?: Record<string, any>;
7
- directory?: boolean;
8
- onChange?: (e: Event) => void;
9
- label?: string;
10
- title?: string;
11
- subtitle?: string;
12
- vertical?: boolean;
13
- noIcon?: boolean;
14
- icon?: any;
15
- localeRef: {
16
- title: string;
17
- subtitle: string;
18
- };
19
- slots: Slots;
20
- }
21
- export declare function useUploadInternals(options: UseUploadInternalsOptions): {
22
- inputNode: VNode;
23
- renderDefaultTrigger: () => VNode[];
24
- };
25
- export {};
1
+ import type { UseUploadInternalsOptions, UseUploadInternalsReturn } from './interface';
2
+ export declare function useUploadInternals(options: UseUploadInternalsOptions): UseUploadInternalsReturn;
@@ -10,6 +10,8 @@ export declare const environmentSupportFile: false | {
10
10
  export declare function isFileSystemDirectoryEntry(item: FileSystemEntry | FileSystemFileEntry | FileSystemDirectoryEntry): item is FileSystemDirectoryEntry;
11
11
  export declare function isFileSystemFileEntry(item: FileSystemEntry | FileSystemFileEntry | FileSystemDirectoryEntry): item is FileSystemFileEntry;
12
12
  export declare function getFilesFromEntries(entries: readonly FileSystemEntry[] | Array<FileSystemEntry | null>, directory: boolean): Promise<FileAndEntry[]>;
13
+ export declare function getFilePreviewSrc(file: SettledFileInfo): string | null;
14
+ export declare function isFileSizeExceeded(file: File | null | undefined, maxSize: number | undefined): boolean;
13
15
  export declare function createSettledFileInfo(fileInfo: FileInfo): SettledFileInfo;
14
16
  /**
15
17
  * This is a rather simple version. I may fix it later to make it more accurate.
@@ -16,6 +16,8 @@ exports.createImageDataUrl = createImageDataUrl;
16
16
  exports.isFileSystemDirectoryEntry = isFileSystemDirectoryEntry;
17
17
  exports.isFileSystemFileEntry = isFileSystemFileEntry;
18
18
  exports.getFilesFromEntries = getFilesFromEntries;
19
+ exports.getFilePreviewSrc = getFilePreviewSrc;
20
+ exports.isFileSizeExceeded = isFileSizeExceeded;
19
21
  exports.createSettledFileInfo = createSettledFileInfo;
20
22
  exports.matchType = matchType;
21
23
  exports.download = download;
@@ -118,6 +120,14 @@ function getFilesFromEntries(entries, directory) {
118
120
  return fileAndEntries;
119
121
  });
120
122
  }
123
+ function getFilePreviewSrc(file) {
124
+ return file.url || file.thumbnailUrl || null;
125
+ }
126
+ function isFileSizeExceeded(file, maxSize) {
127
+ if (maxSize === undefined || !file)
128
+ return false;
129
+ return file.size > maxSize;
130
+ }
121
131
  function createSettledFileInfo(fileInfo) {
122
132
  const { id, name, percentage, status, url, file, thumbnailUrl, type, fullPath, batchId } = fileInfo;
123
133
  return {
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.3.0";
1
+ declare const _default: "2.3.2";
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.0';
3
+ exports.default = '2.3.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
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": {
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@uzum-tech/ui",
5
- "version": "2.3.0",
5
+ "version": "2.3.2",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -2604,7 +2604,7 @@
2604
2604
  "name": "message-upload-props",
2605
2605
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/chat",
2606
2606
  "type": "Partial<UploadProps>",
2607
- "description": "Props for upload display in messages.",
2607
+ "description": "Props for upload display in messages. Attachments are rendered with `list-type=\"preview-list\"`, so the ones with a `preview`/`thumbnail` image open in the built-in image preview; it can be overridden here.",
2608
2608
  "default": "undefined"
2609
2609
  }
2610
2610
  ],
@@ -10297,6 +10297,11 @@
10297
10297
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/message-bubble",
10298
10298
  "description": "Custom title content."
10299
10299
  },
10300
+ {
10301
+ "name": "afterContent",
10302
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/message-bubble",
10303
+ "description": "Custom content rendered after message content."
10304
+ },
10300
10305
  {
10301
10306
  "name": "service",
10302
10307
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/message-bubble",
@@ -10390,14 +10395,14 @@
10390
10395
  "name": "attachments",
10391
10396
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/message-bubble",
10392
10397
  "type": "MessageBubbleAttachment | MessageBubbleAttachment[]",
10393
- "description": "Attachments rendered through upload file list UI.",
10398
+ "description": "Attachments rendered through upload file list UI. Attachments with a `preview` or `thumbnail` image can be opened in the built-in image preview.",
10394
10399
  "default": "undefined"
10395
10400
  },
10396
10401
  {
10397
10402
  "name": "upload-props",
10398
10403
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/message-bubble",
10399
10404
  "type": "Partial<UploadProps>",
10400
- "description": "Props passed to internal `UUpload`.",
10405
+ "description": "Props passed to internal `UUpload`. It's rendered with `list-type=\"preview-list\"` and a `should-use-thumbnail-url` that marks the attachments with an image as previewable, both can be overridden here.",
10401
10406
  "default": "undefined"
10402
10407
  },
10403
10408
  {
@@ -14461,10 +14466,7 @@
14461
14466
  {
14462
14467
  "name": "icon",
14463
14468
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/tag",
14464
- "description": "Tag'a icon.",
14465
- "description-sections": {
14466
- "since": "2.30.0"
14467
- }
14469
+ "description": "Tag'a icon."
14468
14470
  }
14469
14471
  ],
14470
14472
  "attributes": [],
@@ -14523,27 +14525,21 @@
14523
14525
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/tag",
14524
14526
  "type": "'tiny' | 'small' | 'medium' | 'large'",
14525
14527
  "description": "Size of the tag.",
14526
- "default": "'medium'"
14528
+ "default": "'large'"
14527
14529
  },
14528
14530
  {
14529
14531
  "name": "strong",
14530
14532
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/tag",
14531
14533
  "type": "boolean",
14532
14534
  "description": "Whether to use strong text",
14533
- "default": "false",
14534
- "description-sections": {
14535
- "since": "2.30.0"
14536
- }
14535
+ "default": "false"
14537
14536
  },
14538
14537
  {
14539
14538
  "name": "trigger-click-on-close",
14540
14539
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/tag",
14541
14540
  "type": "boolean",
14542
14541
  "description": "Whether the tag triggers click on close.",
14543
- "default": "false",
14544
- "description-sections": {
14545
- "since": "2.32.2"
14546
- }
14542
+ "default": "false"
14547
14543
  },
14548
14544
  {
14549
14545
  "name": "type",
@@ -16623,6 +16619,28 @@
16623
16619
  "name": "default",
16624
16620
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16625
16621
  "description": "The content of the upload."
16622
+ },
16623
+ {
16624
+ "name": "title",
16625
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16626
+ "description": "Title of the default trigger. Overridden by the `title` prop."
16627
+ },
16628
+ {
16629
+ "name": "subtitle",
16630
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16631
+ "description": "Subtitle of the default trigger. Overridden by the `subtitle` prop."
16632
+ },
16633
+ {
16634
+ "name": "upload-file-title",
16635
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16636
+ "type": "{ file: UploadSettledFileInfo }",
16637
+ "description": "Title of a file item, the file name by default."
16638
+ },
16639
+ {
16640
+ "name": "upload-file-subtitle",
16641
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16642
+ "type": "{ file: UploadSettledFileInfo }",
16643
+ "description": "Subtitle of a file item, empty by default."
16626
16644
  }
16627
16645
  ],
16628
16646
  "attributes": [],
@@ -16754,6 +16772,13 @@
16754
16772
  "description": "The additional HTTP Headers of request.",
16755
16773
  "default": "undefined"
16756
16774
  },
16775
+ {
16776
+ "name": "icon",
16777
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16778
+ "type": "VNodeChild",
16779
+ "description": "Icon of the default trigger.",
16780
+ "default": "undefined"
16781
+ },
16757
16782
  {
16758
16783
  "name": "input-props",
16759
16784
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
@@ -16768,7 +16793,7 @@
16768
16793
  "name": "image-group-props",
16769
16794
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16770
16795
  "type": "ImageGroupProps",
16771
- "description": "Props of `u-image` inside upload. See [ImageGroup Props](image#ImageGroup-Props).",
16796
+ "description": "Props of the `u-image-group` used for image preview. See [ImageGroup Props](image#ImageGroup-Props). With `list-type=\"preview-list\"` the `src-list`, `show` and `current` props of the group are managed by the component.",
16772
16797
  "default": "undefined",
16773
16798
  "description-sections": {
16774
16799
  "since": "2.24.0"
@@ -16784,12 +16809,22 @@
16784
16809
  "since": "2.29.1"
16785
16810
  }
16786
16811
  },
16812
+ {
16813
+ "name": "label",
16814
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16815
+ "type": "string",
16816
+ "description": "Text rendered above the default trigger.",
16817
+ "default": "undefined"
16818
+ },
16787
16819
  {
16788
16820
  "name": "list-type",
16789
16821
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16790
16822
  "type": "string",
16791
- "description": "Built-in styles for file lists, `text`, `image` and `image-card`.",
16792
- "default": "'text'"
16823
+ "description": "Built-in styles for file lists, `text`, `image`, `image-card` and `preview-list`. `preview-list` looks exactly like `text`, but image files are opened in the built-in image preview.",
16824
+ "default": "'text'",
16825
+ "description-sections": {
16826
+ "since": "`preview-list` 2.3.2"
16827
+ }
16793
16828
  },
16794
16829
  {
16795
16830
  "name": "max",
@@ -16798,6 +16833,16 @@
16798
16833
  "description": "Uploaded files limit.",
16799
16834
  "default": "undefined"
16800
16835
  },
16836
+ {
16837
+ "name": "max-size",
16838
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16839
+ "type": "number",
16840
+ "description": "Max size of a single file in bytes. A file that exceeds it isn't uploaded — it's added to the file list with the `error` status.",
16841
+ "default": "undefined",
16842
+ "description-sections": {
16843
+ "since": "2.3.2"
16844
+ }
16845
+ },
16801
16846
  {
16802
16847
  "name": "method",
16803
16848
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
@@ -16819,11 +16864,18 @@
16819
16864
  "description": "The field name for the file(s) in the HTTP request's form data.",
16820
16865
  "default": "'file'"
16821
16866
  },
16867
+ {
16868
+ "name": "no-icon",
16869
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16870
+ "type": "boolean",
16871
+ "description": "Whether to hide the icon of the default trigger.",
16872
+ "default": "false"
16873
+ },
16822
16874
  {
16823
16875
  "name": "render-icon",
16824
16876
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16825
16877
  "type": "(file: UploadSettledFileInfo) => VNodeChild",
16826
- "description": "Render function of file icon. It only works when `list-type=\"image\"` or `list-type=\"image-card\"`.",
16878
+ "description": "Render function of file icon. Replaces the default icon of the file item for any `list-type`.",
16827
16879
  "default": "undefined",
16828
16880
  "description-sections": {
16829
16881
  "since": "2.34.0"
@@ -16843,10 +16895,10 @@
16843
16895
  "name": "should-use-thumbnail-url",
16844
16896
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16845
16897
  "type": "(file: UploadSettledFileInfo) => boolean",
16846
- "description": "A function that determines whether to show thumbnail for the file. It only works when `list-type=\"image\"` or `list-type=\"image-card\"`.",
16898
+ "description": "A function that determines whether to show thumbnail for the file. It only works when `list-type=\"image\"` or `list-type=\"image-card\"`. For `list-type=\"preview-list\"` it determines which files can be opened in the image preview.",
16847
16899
  "default": "A function that only returns `true` for image typed file.",
16848
16900
  "description-sections": {
16849
- "since": "2.34.0"
16901
+ "since": "2.34.0, `preview-list` 2.3.2"
16850
16902
  }
16851
16903
  },
16852
16904
  {
@@ -16874,8 +16926,11 @@
16874
16926
  "name": "show-preview-button",
16875
16927
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16876
16928
  "type": "boolean",
16877
- "description": "Show a preview button (when `list-type` is `image-card`). Use the `on-preview` callback for this event.",
16878
- "default": "true"
16929
+ "description": "Show a preview button (when `list-type` is `image-card` or `preview-list`). Use the `on-preview` callback to replace the built-in preview.",
16930
+ "default": "true",
16931
+ "description-sections": {
16932
+ "since": "`preview-list` 2.3.2"
16933
+ }
16879
16934
  },
16880
16935
  {
16881
16936
  "name": "show-remove-button",
@@ -16901,6 +16956,27 @@
16901
16956
  "since": "2.21.5"
16902
16957
  }
16903
16958
  },
16959
+ {
16960
+ "name": "size",
16961
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16962
+ "type": "'small' | 'medium' | 'large'",
16963
+ "description": "Size of the default trigger, it sets the dragger width from the theme (`small` — 140px, `medium` and `large` — auto). Falls back to the size of the parent form item.",
16964
+ "default": "'medium'"
16965
+ },
16966
+ {
16967
+ "name": "subtitle",
16968
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16969
+ "type": "string",
16970
+ "description": "Subtitle of the default trigger. Falls back to the `subtitle` slot and then to the locale text.",
16971
+ "default": "undefined"
16972
+ },
16973
+ {
16974
+ "name": "title",
16975
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16976
+ "type": "string",
16977
+ "description": "Title of the default trigger. Falls back to the `title` slot and then to the locale text.",
16978
+ "default": "undefined"
16979
+ },
16904
16980
  {
16905
16981
  "name": "trigger-class",
16906
16982
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
@@ -16921,6 +16997,13 @@
16921
16997
  "since": "2.29.1"
16922
16998
  }
16923
16999
  },
17000
+ {
17001
+ "name": "vertical",
17002
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
17003
+ "type": "boolean",
17004
+ "description": "Stack the icon and the text of the default trigger vertically.",
17005
+ "default": "false"
17006
+ },
16924
17007
  {
16925
17008
  "name": "with-credentials",
16926
17009
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
@@ -16972,22 +17055,16 @@
16972
17055
  {
16973
17056
  "name": "preview",
16974
17057
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16975
- "type": "(file: FileInfo, detail: { event: MouseEvent }) => void",
16976
- "description": "Callback for clicking file links or preview buttons. You can use `preventDefault` to prevent default anchor link open behavior.",
16977
- "default": "undefined",
16978
- "description-sections": {
16979
- "since": "`detail.event` 2.39.0"
16980
- }
17058
+ "type": "(file: UploadFileInfo) => void",
17059
+ "description": "Callback for clicking a file name or a preview button. When it's set, it replaces the built-in preview.",
17060
+ "default": "undefined"
16981
17061
  },
16982
17062
  {
16983
17063
  "name": "remove",
16984
17064
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/upload",
16985
- "type": "(options: { file: UploadFileInfo, fileList: Array<UploadFileInfo>, index: number }) => Promise<boolean> | boolean | any",
17065
+ "type": "(options: { file: UploadFileInfo, fileList: Array<UploadFileInfo> }) => Promise<boolean> | boolean | any",
16986
17066
  "description": "File removed callback. Returning `false`, a promise resolved with `false`, or a rejected promise will cancel this removal.",
16987
- "default": "() => true",
16988
- "description-sections": {
16989
- "since": "`index` 2.38.2"
16990
- }
17067
+ "default": "() => true"
16991
17068
  },
16992
17069
  {
16993
17070
  "name": "retry",