knt-shared 1.8.4 → 1.8.6
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":"AA8CA;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;;AA6TjB,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
|
@@ -2310,7 +2310,16 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2310
2310
|
const isVideoFile = (file) => {
|
|
2311
2311
|
if (!file.url && !file.name) return false;
|
|
2312
2312
|
const fileName = file.name || "";
|
|
2313
|
-
const videoExtensions = [
|
|
2313
|
+
const videoExtensions = [
|
|
2314
|
+
".mp4",
|
|
2315
|
+
".avi",
|
|
2316
|
+
".mov",
|
|
2317
|
+
".wmv",
|
|
2318
|
+
".flv",
|
|
2319
|
+
".mkv",
|
|
2320
|
+
".webm",
|
|
2321
|
+
".m4v"
|
|
2322
|
+
];
|
|
2314
2323
|
return videoExtensions.some((ext) => fileName.toLowerCase().endsWith(ext));
|
|
2315
2324
|
};
|
|
2316
2325
|
const handleDragStart = (event) => {
|
|
@@ -2344,7 +2353,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
2344
2353
|
draggable: !__props.disabled,
|
|
2345
2354
|
style: vue.normalizeStyle({
|
|
2346
2355
|
width: `${__props.cardSize}px`,
|
|
2347
|
-
height: `${__props.cardSize}px
|
|
2356
|
+
height: `${__props.cardSize}px`,
|
|
2357
|
+
"--indicator-height": `${__props.cardSize + 10}px`
|
|
2348
2358
|
}),
|
|
2349
2359
|
onDragstart: handleDragStart,
|
|
2350
2360
|
onDragend: handleDragEnd
|
|
@@ -2388,7 +2398,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
2388
2398
|
}
|
|
2389
2399
|
return target;
|
|
2390
2400
|
};
|
|
2391
|
-
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
2401
|
+
const SortableFileItem = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b7fe69e3"]]);
|
|
2392
2402
|
const _hoisted_1$b = { class: "sortable-file-list" };
|
|
2393
2403
|
const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
|
|
2394
2404
|
...{
|