@bagelink/vue 0.0.724 → 0.0.726
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/components/form/inputs/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/lightbox/index.d.ts.map +1 -1
- package/dist/index.cjs +15 -8
- package/dist/index.mjs +16 -9
- package/dist/style.css +32 -32
- package/package.json +1 -1
- package/src/components/form/inputs/FileUpload.vue +2 -2
- package/src/components/lightbox/index.ts +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAqfA,OAAO,EAAkD,KAAK,WAAW,EAAY,MAAM,eAAe,CAAA;AA8B1G,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;AAqGzC,iBAAS,MAAM,SAgBd;AA8BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;sBA3JZ,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;
|
|
1
|
+
{"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAqfA,OAAO,EAAkD,KAAK,WAAW,EAAY,MAAM,eAAe,CAAA;AA8B1G,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAA;AAqGzC,iBAAS,MAAM,SAgBd;AA8BD,iBAAS,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;sBA3JZ,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;QAgcQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;sBAncnB,MAAM;wBACJ,OAAO;mBACZ,MAAM;uBACF,OAAO;;;QAice,GAAG;EA2BpC;AACD,QAAA,MAAM,eAAe;YAnfZ,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;;;;;YATN,MAAM;eACH,OAAO;YACV,WAAW,GAAG,WAAW,EAAE;cACzB,MAAM;iBACH,OAAO;YACZ,MAAM;aACL,MAAM,GAAG,MAAM;YAChB,MAAM;WACP,OAAO;WACP,OAAO;;;;UAifb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAoB,MAAM,KAAK,CAAA;;iBA2DlC,GAAG;;AADjB,wBAIC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5328,13 +5328,15 @@ const lightboxDirective = {
|
|
|
5328
5328
|
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5329
5329
|
if (binding.value.group) {
|
|
5330
5330
|
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5331
|
+
const src = binding.value.src || binding.value || el.getAttribute("src") || "";
|
|
5331
5332
|
groups[binding.value.group].push({
|
|
5332
|
-
src
|
|
5333
|
-
type: binding.value.type || determineFileType(
|
|
5333
|
+
src,
|
|
5334
|
+
type: binding.value.type || determineFileType(src),
|
|
5334
5335
|
name: binding.value.name || ""
|
|
5335
5336
|
});
|
|
5336
5337
|
}
|
|
5337
|
-
el.addEventListener("click", () => {
|
|
5338
|
+
el.addEventListener("click", (e) => {
|
|
5339
|
+
e.stopPropagation();
|
|
5338
5340
|
const group = binding.value.group || null;
|
|
5339
5341
|
const item = {
|
|
5340
5342
|
src: binding.value.src || binding.value,
|
|
@@ -19934,6 +19936,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19934
19936
|
flushQueue();
|
|
19935
19937
|
}
|
|
19936
19938
|
return (_ctx, _cache) => {
|
|
19939
|
+
const _directive_lightbox = vue.resolveDirective("lightbox");
|
|
19937
19940
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
|
|
19938
19941
|
vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
|
|
19939
19942
|
vue.createElementVNode("div", {
|
|
@@ -19958,12 +19961,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
19958
19961
|
key: file.id,
|
|
19959
19962
|
class: "multi-image-item-preview"
|
|
19960
19963
|
}, [
|
|
19961
|
-
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
19964
|
+
isImage(file.extension || file.url) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("img", {
|
|
19962
19965
|
key: 0,
|
|
19963
19966
|
class: "multi-preview",
|
|
19964
19967
|
src: file.url,
|
|
19965
19968
|
alt: ""
|
|
19966
|
-
}, null, 8, _hoisted_3$b))
|
|
19969
|
+
}, null, 8, _hoisted_3$b)), [
|
|
19970
|
+
[_directive_lightbox]
|
|
19971
|
+
]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
|
|
19967
19972
|
key: 1,
|
|
19968
19973
|
icon: "draft",
|
|
19969
19974
|
class: "multi-preview"
|
|
@@ -20016,12 +20021,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
20016
20021
|
key: file.id,
|
|
20017
20022
|
class: vue.normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
|
|
20018
20023
|
}, [
|
|
20019
|
-
isImage(file.extension || file.url) ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
20024
|
+
isImage(file.extension || file.url) ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("img", {
|
|
20020
20025
|
key: 0,
|
|
20021
20026
|
class: "single-preview",
|
|
20022
20027
|
src: file.url,
|
|
20023
20028
|
alt: ""
|
|
20024
|
-
}, null, 8, _hoisted_9))
|
|
20029
|
+
}, null, 8, _hoisted_9)), [
|
|
20030
|
+
[_directive_lightbox]
|
|
20031
|
+
]) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Q), {
|
|
20025
20032
|
key: 1,
|
|
20026
20033
|
size: 4,
|
|
20027
20034
|
weight: "2",
|
|
@@ -20071,7 +20078,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
|
|
|
20071
20078
|
};
|
|
20072
20079
|
}
|
|
20073
20080
|
});
|
|
20074
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
20081
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a17ec6"]]);
|
|
20075
20082
|
const _withScopeId$1 = (n2) => (vue.pushScopeId("data-v-06b95183"), n2 = n2(), vue.popScopeId(), n2);
|
|
20076
20083
|
const _hoisted_1$j = ["title"];
|
|
20077
20084
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp2 = Object.defineProperty;
|
|
2
2
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, onBeforeUnmount, watchEffect, customRef
|
|
4
|
+
import { pushScopeId, popScopeId, defineComponent, nextTick, openBlock, createBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps, withScopeId, resolveComponent, normalizeStyle, withKeys, createElementVNode, Fragment as Fragment$1, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h as h$2, toDisplayString, watch, unref, withModifiers, renderList, markRaw, reactive, computed, inject, resolveDynamicComponent, useCssVars, useSlots, createTextVNode, onMounted, onUnmounted, mergeModels, useModel, createSlots, Transition, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, withDirectives, isRef, vModelCheckbox, provide, toRef, Teleport, render as render$f, onBeforeUpdate, vShow, TransitionGroup, vModelDynamic, vModelText, vModelRadio, resolveDirective, onBeforeUnmount, watchEffect, customRef } from "vue";
|
|
5
5
|
const sides = ["top", "right", "bottom", "left"];
|
|
6
6
|
const alignments = ["start", "end"];
|
|
7
7
|
const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
@@ -5326,13 +5326,15 @@ const lightboxDirective = {
|
|
|
5326
5326
|
if (!lightboxInstance || !lightboxInstance.open) return;
|
|
5327
5327
|
if (binding.value.group) {
|
|
5328
5328
|
if (!groups[binding.value.group]) groups[binding.value.group] = [];
|
|
5329
|
+
const src = binding.value.src || binding.value || el.getAttribute("src") || "";
|
|
5329
5330
|
groups[binding.value.group].push({
|
|
5330
|
-
src
|
|
5331
|
-
type: binding.value.type || determineFileType(
|
|
5331
|
+
src,
|
|
5332
|
+
type: binding.value.type || determineFileType(src),
|
|
5332
5333
|
name: binding.value.name || ""
|
|
5333
5334
|
});
|
|
5334
5335
|
}
|
|
5335
|
-
el.addEventListener("click", () => {
|
|
5336
|
+
el.addEventListener("click", (e) => {
|
|
5337
|
+
e.stopPropagation();
|
|
5336
5338
|
const group = binding.value.group || null;
|
|
5337
5339
|
const item = {
|
|
5338
5340
|
src: binding.value.src || binding.value,
|
|
@@ -19932,6 +19934,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19932
19934
|
flushQueue();
|
|
19933
19935
|
}
|
|
19934
19936
|
return (_ctx, _cache) => {
|
|
19937
|
+
const _directive_lightbox = resolveDirective("lightbox");
|
|
19935
19938
|
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
19936
19939
|
createElementVNode("label", null, toDisplayString(_ctx.label), 1),
|
|
19937
19940
|
createElementVNode("div", {
|
|
@@ -19956,12 +19959,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
19956
19959
|
key: file.id,
|
|
19957
19960
|
class: "multi-image-item-preview"
|
|
19958
19961
|
}, [
|
|
19959
|
-
isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
|
|
19962
|
+
isImage(file.extension || file.url) ? withDirectives((openBlock(), createElementBlock("img", {
|
|
19960
19963
|
key: 0,
|
|
19961
19964
|
class: "multi-preview",
|
|
19962
19965
|
src: file.url,
|
|
19963
19966
|
alt: ""
|
|
19964
|
-
}, null, 8, _hoisted_3$b))
|
|
19967
|
+
}, null, 8, _hoisted_3$b)), [
|
|
19968
|
+
[_directive_lightbox]
|
|
19969
|
+
]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
19965
19970
|
key: 1,
|
|
19966
19971
|
icon: "draft",
|
|
19967
19972
|
class: "multi-preview"
|
|
@@ -20014,12 +20019,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20014
20019
|
key: file.id,
|
|
20015
20020
|
class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
|
|
20016
20021
|
}, [
|
|
20017
|
-
isImage(file.extension || file.url) ? (openBlock(), createElementBlock("img", {
|
|
20022
|
+
isImage(file.extension || file.url) ? withDirectives((openBlock(), createElementBlock("img", {
|
|
20018
20023
|
key: 0,
|
|
20019
20024
|
class: "single-preview",
|
|
20020
20025
|
src: file.url,
|
|
20021
20026
|
alt: ""
|
|
20022
|
-
}, null, 8, _hoisted_9))
|
|
20027
|
+
}, null, 8, _hoisted_9)), [
|
|
20028
|
+
[_directive_lightbox]
|
|
20029
|
+
]) : (openBlock(), createBlock(unref(_sfc_main$Q), {
|
|
20023
20030
|
key: 1,
|
|
20024
20031
|
size: 4,
|
|
20025
20032
|
weight: "2",
|
|
@@ -20069,7 +20076,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
20069
20076
|
};
|
|
20070
20077
|
}
|
|
20071
20078
|
});
|
|
20072
|
-
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
20079
|
+
const $el = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d4a17ec6"]]);
|
|
20073
20080
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-06b95183"), n2 = n2(), popScopeId(), n2);
|
|
20074
20081
|
const _hoisted_1$j = ["title"];
|
|
20075
20082
|
const _hoisted_2$e = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
|
package/dist/style.css
CHANGED
|
@@ -1813,7 +1813,7 @@ display: block;
|
|
|
1813
1813
|
color: var(--bgl-white);
|
|
1814
1814
|
}
|
|
1815
1815
|
|
|
1816
|
-
.fileUploadWrap[data-v-
|
|
1816
|
+
.fileUploadWrap[data-v-d4a17ec6] {
|
|
1817
1817
|
outline: 1px solid var(--border-color);
|
|
1818
1818
|
border-radius: var(--input-border-radius);
|
|
1819
1819
|
text-align: center;
|
|
@@ -1825,7 +1825,7 @@ display: block;
|
|
|
1825
1825
|
background: var(--input-bg);
|
|
1826
1826
|
height: 215px;
|
|
1827
1827
|
}
|
|
1828
|
-
.bagel-input .fileUploadWrap.fileDropZone[data-v-
|
|
1828
|
+
.bagel-input .fileUploadWrap.fileDropZone[data-v-d4a17ec6] {
|
|
1829
1829
|
background: var(--input-bg);
|
|
1830
1830
|
display: flex;
|
|
1831
1831
|
align-items: center;
|
|
@@ -1833,14 +1833,14 @@ display: block;
|
|
|
1833
1833
|
color: var(--bgl-gray);
|
|
1834
1834
|
flex-direction: column;
|
|
1835
1835
|
}
|
|
1836
|
-
.fileUploadWrap.dragover[data-v-
|
|
1837
|
-
.fileUploadWrap[data-v-
|
|
1836
|
+
.fileUploadWrap.dragover[data-v-d4a17ec6],
|
|
1837
|
+
.fileUploadWrap[data-v-d4a17ec6]:hover {
|
|
1838
1838
|
box-shadow: inset 0 0 10px #00000012;
|
|
1839
1839
|
}
|
|
1840
|
-
.fileUploadWrap[style*="height: auto;"][data-v-
|
|
1840
|
+
.fileUploadWrap[style*="height: auto;"][data-v-d4a17ec6] {
|
|
1841
1841
|
min-height: 215px;
|
|
1842
1842
|
}
|
|
1843
|
-
.multi-image-item-preview[data-v-
|
|
1843
|
+
.multi-image-item-preview[data-v-d4a17ec6] {
|
|
1844
1844
|
border: 1px solid var(--border-color) !important;
|
|
1845
1845
|
border-radius: var(--input-border-radius);
|
|
1846
1846
|
margin: 0.5rem !important;
|
|
@@ -1854,12 +1854,12 @@ display: block;
|
|
|
1854
1854
|
gap: 1rem;
|
|
1855
1855
|
align-items: center;
|
|
1856
1856
|
}
|
|
1857
|
-
.multi-image-item-preview p[data-v-
|
|
1857
|
+
.multi-image-item-preview p[data-v-d4a17ec6] {
|
|
1858
1858
|
overflow: hidden;
|
|
1859
1859
|
text-overflow: ellipsis;
|
|
1860
1860
|
white-space: nowrap;
|
|
1861
1861
|
}
|
|
1862
|
-
.multi-preview[data-v-
|
|
1862
|
+
.multi-preview[data-v-d4a17ec6]{
|
|
1863
1863
|
width: 40px;
|
|
1864
1864
|
height: 40px;
|
|
1865
1865
|
border-radius: var(--input-border-radius);
|
|
@@ -1870,17 +1870,17 @@ display: block;
|
|
|
1870
1870
|
align-items: center;
|
|
1871
1871
|
display: flex;
|
|
1872
1872
|
}
|
|
1873
|
-
.bgl-single-preview[data-v-
|
|
1873
|
+
.bgl-single-preview[data-v-d4a17ec6]{
|
|
1874
1874
|
height: 100%;
|
|
1875
1875
|
position: relative;
|
|
1876
1876
|
}
|
|
1877
|
-
.bgl-single-preview + .fileUploadPlaceHolder[data-v-
|
|
1877
|
+
.bgl-single-preview + .fileUploadPlaceHolder[data-v-d4a17ec6]{
|
|
1878
1878
|
position: absolute;
|
|
1879
1879
|
inset: 0;
|
|
1880
1880
|
margin: auto;
|
|
1881
1881
|
top: calc(50% - 2rem);
|
|
1882
1882
|
}
|
|
1883
|
-
.single-image-item-preview[data-v-
|
|
1883
|
+
.single-image-item-preview[data-v-d4a17ec6] {
|
|
1884
1884
|
height: 100%;
|
|
1885
1885
|
min-height: 100%;
|
|
1886
1886
|
position: relative;
|
|
@@ -1888,13 +1888,13 @@ display: block;
|
|
|
1888
1888
|
align-items: center;
|
|
1889
1889
|
justify-content: center;
|
|
1890
1890
|
}
|
|
1891
|
-
.fileUploadWrap[style*="height: auto"] .single-image-item-preview[data-v-
|
|
1891
|
+
.fileUploadWrap[style*="height: auto"] .single-image-item-preview[data-v-d4a17ec6] {
|
|
1892
1892
|
min-height: 215px;
|
|
1893
1893
|
}
|
|
1894
|
-
.fileUploadWrap[style*="height: auto"] .single-preview[data-v-
|
|
1894
|
+
.fileUploadWrap[style*="height: auto"] .single-preview[data-v-d4a17ec6] {
|
|
1895
1895
|
margin: 0rem !important;
|
|
1896
1896
|
}
|
|
1897
|
-
.single-preview[data-v-
|
|
1897
|
+
.single-preview[data-v-d4a17ec6]{
|
|
1898
1898
|
border-radius: var(--input-border-radius);
|
|
1899
1899
|
margin: 1rem;
|
|
1900
1900
|
padding: 0px;
|
|
@@ -1904,17 +1904,17 @@ display: block;
|
|
|
1904
1904
|
background: var(--bgl-gray-light);
|
|
1905
1905
|
box-shadow: 0 0 10px #00000012;
|
|
1906
1906
|
}
|
|
1907
|
-
.bgl_fill-image.single-image-item-preview[data-v-
|
|
1907
|
+
.bgl_fill-image.single-image-item-preview[data-v-d4a17ec6] {
|
|
1908
1908
|
height: 100%;
|
|
1909
1909
|
}
|
|
1910
|
-
.bgl_fill-image.single-image-item-preview .single-preview[data-v-
|
|
1910
|
+
.bgl_fill-image.single-image-item-preview .single-preview[data-v-d4a17ec6]{
|
|
1911
1911
|
border-radius: unset;
|
|
1912
1912
|
object-fit: cover;
|
|
1913
1913
|
box-shadow: unset;
|
|
1914
1914
|
width: 100%;
|
|
1915
1915
|
height: auto;
|
|
1916
1916
|
}
|
|
1917
|
-
.single-image-item-preview .pie[data-v-
|
|
1917
|
+
.single-image-item-preview .pie[data-v-d4a17ec6] {
|
|
1918
1918
|
transform-origin: top;
|
|
1919
1919
|
transform: scale(1.4);
|
|
1920
1920
|
position: absolute;
|
|
@@ -1928,31 +1928,31 @@ display: block;
|
|
|
1928
1928
|
border: none !important;
|
|
1929
1929
|
padding: 0 !important;
|
|
1930
1930
|
}
|
|
1931
|
-
.bgl_oval-upload[data-v-
|
|
1931
|
+
.bgl_oval-upload[data-v-d4a17ec6] {
|
|
1932
1932
|
border-radius: 100% !important;
|
|
1933
1933
|
overflow: hidden;
|
|
1934
1934
|
}
|
|
1935
|
-
.bgl_oval-upload p[data-v-
|
|
1935
|
+
.bgl_oval-upload p[data-v-d4a17ec6] {
|
|
1936
1936
|
padding: 0.75rem !important;
|
|
1937
1937
|
font-size: 12px
|
|
1938
1938
|
}
|
|
1939
|
-
.bgl_oval-upload .fileUploadPlaceHolder[data-v-
|
|
1939
|
+
.bgl_oval-upload .fileUploadPlaceHolder[data-v-d4a17ec6]{
|
|
1940
1940
|
top: 0;
|
|
1941
1941
|
}
|
|
1942
|
-
.bgl_oval-upload .pie[data-v-
|
|
1942
|
+
.bgl_oval-upload .pie[data-v-d4a17ec6] {
|
|
1943
1943
|
transform: scale(1);
|
|
1944
1944
|
}
|
|
1945
|
-
.bgl_oval-upload span.bgl_icon-font.color-primary[data-v-
|
|
1945
|
+
.bgl_oval-upload span.bgl_icon-font.color-primary[data-v-d4a17ec6] {
|
|
1946
1946
|
transform: scale(0.4) !important;
|
|
1947
1947
|
}
|
|
1948
|
-
.bgl_oval-upload .single-image-item-preview[data-v-
|
|
1948
|
+
.bgl_oval-upload .single-image-item-preview[data-v-d4a17ec6]{
|
|
1949
1949
|
height: 100%;
|
|
1950
1950
|
}
|
|
1951
|
-
.bgl_oval-upload .single-preview[data-v-
|
|
1951
|
+
.bgl_oval-upload .single-preview[data-v-d4a17ec6] {
|
|
1952
1952
|
margin: 0;
|
|
1953
1953
|
height: 100% !important;
|
|
1954
1954
|
}
|
|
1955
|
-
.pie[data-v-
|
|
1955
|
+
.pie[data-v-d4a17ec6] {
|
|
1956
1956
|
width: 30px;
|
|
1957
1957
|
height: 30px;
|
|
1958
1958
|
position: relative;
|
|
@@ -1960,7 +1960,7 @@ display: block;
|
|
|
1960
1960
|
align-items: center;
|
|
1961
1961
|
justify-content: center;
|
|
1962
1962
|
}
|
|
1963
|
-
.pie[data-v-
|
|
1963
|
+
.pie[data-v-d4a17ec6]:before {
|
|
1964
1964
|
content: '';
|
|
1965
1965
|
position: absolute;
|
|
1966
1966
|
border-radius: 50%;
|
|
@@ -1978,26 +1978,26 @@ display: block;
|
|
|
1978
1978
|
#000 calc(100% - var(--b))
|
|
1979
1979
|
);
|
|
1980
1980
|
}
|
|
1981
|
-
.pie .success[data-v-
|
|
1981
|
+
.pie .success[data-v-d4a17ec6] {
|
|
1982
1982
|
transform: scale(0);
|
|
1983
1983
|
opacity: 0;
|
|
1984
1984
|
transition: all 0.3s ease-in-out;
|
|
1985
1985
|
}
|
|
1986
|
-
.pie .progress[data-v-
|
|
1986
|
+
.pie .progress[data-v-d4a17ec6] {
|
|
1987
1987
|
position: absolute;
|
|
1988
1988
|
font-size: 10px;
|
|
1989
1989
|
}
|
|
1990
|
-
.pie.complete .progress[data-v-
|
|
1990
|
+
.pie.complete .progress[data-v-d4a17ec6] {
|
|
1991
1991
|
display: none;
|
|
1992
1992
|
}
|
|
1993
|
-
.pie.complete .success[data-v-
|
|
1993
|
+
.pie.complete .success[data-v-d4a17ec6] {
|
|
1994
1994
|
transform: scale(1.3);
|
|
1995
1995
|
opacity: 1;
|
|
1996
1996
|
}
|
|
1997
|
-
.pie.complete[data-v-
|
|
1997
|
+
.pie.complete[data-v-d4a17ec6]:before {
|
|
1998
1998
|
background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
|
|
1999
1999
|
}
|
|
2000
|
-
.pie.complete[data-v-
|
|
2000
|
+
.pie.complete[data-v-d4a17ec6] {
|
|
2001
2001
|
color: var(--bgl-green);
|
|
2002
2002
|
}
|
|
2003
2003
|
|
package/package.json
CHANGED
|
@@ -196,7 +196,7 @@ function drop(e: DragEvent) {
|
|
|
196
196
|
:key="file.id"
|
|
197
197
|
class="multi-image-item-preview"
|
|
198
198
|
>
|
|
199
|
-
<img v-if="isImage(file.extension || file.url)" class="multi-preview" :src="file.url" alt="">
|
|
199
|
+
<img v-if="isImage(file.extension || file.url)" v-lightbox class="multi-preview" :src="file.url" alt="">
|
|
200
200
|
<Icon v-else icon="draft" class="multi-preview" />
|
|
201
201
|
<p class="m-0">
|
|
202
202
|
{{ file.name }}
|
|
@@ -250,7 +250,7 @@ function drop(e: DragEvent) {
|
|
|
250
250
|
class="single-image-item-preview"
|
|
251
251
|
:class="{ 'bgl_fill-image': fill }"
|
|
252
252
|
>
|
|
253
|
-
<img v-if="isImage(file.extension || file.url)" class="single-preview" :src="file.url" alt="">
|
|
253
|
+
<img v-if="isImage(file.extension || file.url)" v-lightbox class="single-preview" :src="file.url" alt="">
|
|
254
254
|
<Icon v-else :size="4" weight="2" icon="draft" class="color-primary w-100" />
|
|
255
255
|
</div>
|
|
256
256
|
|
|
@@ -12,13 +12,15 @@ const lightboxDirective = {
|
|
|
12
12
|
if (!lightboxInstance || !lightboxInstance.open) return
|
|
13
13
|
if (binding.value.group) {
|
|
14
14
|
if (!groups[binding.value.group]) groups[binding.value.group] = []
|
|
15
|
+
const src = binding.value.src || binding.value || el.getAttribute('src') || ''
|
|
15
16
|
groups[binding.value.group].push({
|
|
16
|
-
src
|
|
17
|
-
type: binding.value.type || determineFileType(
|
|
17
|
+
src,
|
|
18
|
+
type: binding.value.type || determineFileType(src),
|
|
18
19
|
name: binding.value.name || ''
|
|
19
20
|
})
|
|
20
21
|
}
|
|
21
|
-
el.addEventListener('click', () => {
|
|
22
|
+
el.addEventListener('click', (e) => {
|
|
23
|
+
e.stopPropagation()
|
|
22
24
|
const group = binding.value.group || null
|
|
23
25
|
const item: LightboxItem = {
|
|
24
26
|
src: binding.value.src || binding.value,
|