knt-shared 1.8.4 → 1.8.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableFileItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Upload/components/SortableFileItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SortableFileItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Upload/components/SortableFileItem.vue"],"names":[],"mappings":"AA6CA;AAQA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAQ7C,UAAU,qBAAqB;IAC7B,WAAW;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,aAAa;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,EAAE,OAAO,CAAC;CACnB;;;;;;;;;;;;;;;;;;;;;;cADW,OAAO;cAFP,MAAM;gBAJJ,OAAO;YAEX,OAAO;;AA4TjB,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -2305,12 +2305,24 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2305
2305
|
},
|
|
2306
2306
|
emits: ["dragstart", "dragend", "preview", "remove"],
|
|
2307
2307
|
setup(__props, { emit: __emit }) {
|
|
2308
|
+
vue.useCssVars((_ctx) => ({
|
|
2309
|
+
"v6adf0568": _ctx.cardSize + 10 + "px"
|
|
2310
|
+
}));
|
|
2308
2311
|
const props = __props;
|
|
2309
2312
|
const emit = __emit;
|
|
2310
2313
|
const isVideoFile = (file) => {
|
|
2311
2314
|
if (!file.url && !file.name) return false;
|
|
2312
2315
|
const fileName = file.name || "";
|
|
2313
|
-
const videoExtensions = [
|
|
2316
|
+
const videoExtensions = [
|
|
2317
|
+
".mp4",
|
|
2318
|
+
".avi",
|
|
2319
|
+
".mov",
|
|
2320
|
+
".wmv",
|
|
2321
|
+
".flv",
|
|
2322
|
+
".mkv",
|
|
2323
|
+
".webm",
|
|
2324
|
+
".m4v"
|
|
2325
|
+
];
|
|
2314
2326
|
return videoExtensions.some((ext) => fileName.toLowerCase().endsWith(ext));
|
|
2315
2327
|
};
|
|
2316
2328
|
const handleDragStart = (event) => {
|
|
@@ -2388,7 +2400,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2388
2400
|
}
|
|
2389
2401
|
return target;
|
|
2390
2402
|
};
|
|
2391
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
2403
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-c8377d24"]]);
|
|
2392
2404
|
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
2393
2405
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2394
2406
|
...{
|