@3squared/forge-ui-3 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/forge-ui-3.js
CHANGED
|
@@ -3166,7 +3166,7 @@ const hl = { class: "d-flex justify-content-between" }, wl = ["accept", "disable
|
|
|
3166
3166
|
}),
|
|
3167
3167
|
emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
|
|
3168
3168
|
setup(e, { emit: t }) {
|
|
3169
|
-
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), c = P(), v = k(() => e.acceptedFileTypes.
|
|
3169
|
+
const l = U(e, "file"), o = U(e, "blobFileName"), a = U(e, "uploadStatus"), n = t, d = P(l.value.name), i = P(""), u = P(0), c = P(), v = k(() => e.acceptedFileTypes.some(({ fileType: I }) => I === l.value.type)), s = k(() => l.value.size <= e.maxFileSize), C = () => {
|
|
3170
3170
|
l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
|
|
3171
3171
|
}, T = async () => {
|
|
3172
3172
|
if (!v.value || !s.value) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FileUploadStatus } from '../utilities/utilities';
|
|
2
2
|
import { TypedSchema } from 'vee-validate';
|
|
3
|
+
import { ForgeFileType } from '../../../types/forge-types';
|
|
3
4
|
|
|
4
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
6
|
file: {
|
|
@@ -19,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
20
|
required: true;
|
|
20
21
|
};
|
|
21
22
|
acceptedFileTypes: {
|
|
22
|
-
type: import('vue').PropType<
|
|
23
|
+
type: import('vue').PropType<ForgeFileType[]>;
|
|
23
24
|
required: true;
|
|
24
25
|
};
|
|
25
26
|
maxFileSize: {
|
|
@@ -56,7 +57,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
56
57
|
required: true;
|
|
57
58
|
};
|
|
58
59
|
acceptedFileTypes: {
|
|
59
|
-
type: import('vue').PropType<
|
|
60
|
+
type: import('vue').PropType<ForgeFileType[]>;
|
|
60
61
|
required: true;
|
|
61
62
|
};
|
|
62
63
|
maxFileSize: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@3squared/forge-ui-3",
|
|
3
3
|
"repository": "https://github.com/3Squared/ForgeUI-3",
|
|
4
4
|
"description": "ForgeUI 3 is Vue 3 UI Library which combines a variety of popular packages to create a consistent UI for your application.",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.3",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"contributors": [
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"yup": "^1.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@cypress/code-coverage": "3.13.
|
|
44
|
+
"@cypress/code-coverage": "3.13.6",
|
|
45
45
|
"@vitejs/plugin-vue": "5.1.4",
|
|
46
46
|
"@vitest/coverage-v8": "1.6.0",
|
|
47
47
|
"@vitest/ui": "1.6.0",
|
|
48
|
-
"cypress": "13.15.
|
|
48
|
+
"cypress": "13.15.2",
|
|
49
49
|
"cypress-real-events": "1.13.0",
|
|
50
|
-
"sass": "1.80.
|
|
50
|
+
"sass": "1.80.6",
|
|
51
51
|
"typescript": "5.6.3",
|
|
52
52
|
"unplugin-vue-components": "0.27.4",
|
|
53
53
|
"rollup-plugin-visualizer": "5.12.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"vite-plugin-dts": "3.9.1"
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@rollup/rollup-linux-x64-gnu": "4.24.
|
|
61
|
+
"@rollup/rollup-linux-x64-gnu": "4.24.4"
|
|
62
62
|
},
|
|
63
63
|
"nyc": {
|
|
64
64
|
"all": true,
|