@bagelink/vue 0.0.1092 → 0.0.1096
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/Image.vue.d.ts.map +1 -1
- package/dist/components/TableSchema.vue.d.ts.map +1 -1
- package/dist/index.cjs +12 -8
- package/dist/index.mjs +12 -8
- package/dist/style.css +52 -48
- package/package.json +1 -1
- package/src/components/Image.vue +5 -1
- package/src/components/TableSchema.vue +3 -0
- package/src/components/form/inputs/Upload/upload.ts +4 -4
- package/src/components/form/inputs/Upload/upload.types.d.ts +1 -1
- package/src/styles/theme.css +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AA6GA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;AAED,KAAK,WAAW,GAAG;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AAwJF,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableSchema.vue.d.ts","sourceRoot":"","sources":["../../src/components/TableSchema.vue"],"names":[],"mappings":"AA8iBA,OAAO,EAEN,KAAK,cAAc,EAKnB,MAAM,eAAe,CAAA;AAQtB,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAAA;yBAEtC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAChC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAwa1D,mBAAmB,CAAC;;;;;;;;;;wBAhOV,MAAM,EAAE;;cArMnB,CAAC,EAAE;iBACA,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,CAAC,CAAC,CAAC;qBACzC,MAAM,EAAE;wBACL,OAAO;qBACV,OAAO;4BACA,MAAM,IAAI;oBAga+D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;;;UAnD0E,GAAG;UAqDjF,uXAAoC;OAG/B,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAlbzE,wBAkb4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -19400,7 +19400,11 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
19400
19400
|
setup(__props) {
|
|
19401
19401
|
let imageSrc = vue.ref(null);
|
|
19402
19402
|
const fileBaseUrl = vue.computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19403
|
-
|
|
19403
|
+
function pathToUrl() {
|
|
19404
|
+
var _a2;
|
|
19405
|
+
if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
|
|
19406
|
+
return `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19407
|
+
}
|
|
19404
19408
|
async function loadImage() {
|
|
19405
19409
|
var _a2;
|
|
19406
19410
|
const url = __props.src || pathToUrl();
|
|
@@ -19478,7 +19482,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
19478
19482
|
};
|
|
19479
19483
|
}
|
|
19480
19484
|
});
|
|
19481
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
19485
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-29509e85"]]);
|
|
19482
19486
|
const _hoisted_1$z = { class: "bagel-input" };
|
|
19483
19487
|
const _hoisted_2$o = {
|
|
19484
19488
|
key: 0,
|
|
@@ -30637,18 +30641,18 @@ const files = {
|
|
|
30637
30641
|
axios$1.defaults.baseURL = baseUrl;
|
|
30638
30642
|
},
|
|
30639
30643
|
get: async (pathKey) => {
|
|
30640
|
-
return axios$1.get("/
|
|
30644
|
+
return axios$1.get("/files_v2/", { params: { path_key: pathKey } });
|
|
30641
30645
|
},
|
|
30642
30646
|
put: async (bglFilePatch, pathKey) => {
|
|
30643
|
-
return axios$1.put("/
|
|
30647
|
+
return axios$1.put("/files_v2/", bglFilePatch, { params: { path_key: pathKey } });
|
|
30644
30648
|
},
|
|
30645
30649
|
delete: async (pathKey) => {
|
|
30646
|
-
return axios$1.delete("/
|
|
30650
|
+
return axios$1.delete("/files_v2/", { params: { path_key: pathKey } });
|
|
30647
30651
|
},
|
|
30648
30652
|
upload: async (file, options) => {
|
|
30649
30653
|
const formData = new FormData();
|
|
30650
30654
|
formData.append("upload", file);
|
|
30651
|
-
return axios$1.post("/
|
|
30655
|
+
return axios$1.post("/files_v2/upload", formData, {
|
|
30652
30656
|
headers: { "Content-Type": "multipart/form-data" },
|
|
30653
30657
|
onUploadProgress: options == null ? void 0 : options.onUploadProgress,
|
|
30654
30658
|
params: { dir_path: options == null ? void 0 : options.dirPath, tags: options == null ? void 0 : options.tags }
|
|
@@ -32817,7 +32821,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
32817
32821
|
emits: /* @__PURE__ */ vue.mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
32818
32822
|
setup(__props, { emit: __emit }) {
|
|
32819
32823
|
vue.useCssVars((_ctx) => ({
|
|
32820
|
-
"
|
|
32824
|
+
"7a7099e0": vue.unref(computedItemHeight)
|
|
32821
32825
|
}));
|
|
32822
32826
|
const emit2 = __emit;
|
|
32823
32827
|
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
@@ -33044,7 +33048,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
33044
33048
|
};
|
|
33045
33049
|
}
|
|
33046
33050
|
});
|
|
33047
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
33051
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-966ec7d7"]]);
|
|
33048
33052
|
const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
33049
33053
|
__name: "Title",
|
|
33050
33054
|
props: {
|
package/dist/index.mjs
CHANGED
|
@@ -19398,7 +19398,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
19398
19398
|
setup(__props) {
|
|
19399
19399
|
let imageSrc = ref(null);
|
|
19400
19400
|
const fileBaseUrl = computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19401
|
-
|
|
19401
|
+
function pathToUrl() {
|
|
19402
|
+
var _a2;
|
|
19403
|
+
if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
|
|
19404
|
+
return `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19405
|
+
}
|
|
19402
19406
|
async function loadImage() {
|
|
19403
19407
|
var _a2;
|
|
19404
19408
|
const url = __props.src || pathToUrl();
|
|
@@ -19476,7 +19480,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
19476
19480
|
};
|
|
19477
19481
|
}
|
|
19478
19482
|
});
|
|
19479
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
19483
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-29509e85"]]);
|
|
19480
19484
|
const _hoisted_1$z = { class: "bagel-input" };
|
|
19481
19485
|
const _hoisted_2$o = {
|
|
19482
19486
|
key: 0,
|
|
@@ -30635,18 +30639,18 @@ const files = {
|
|
|
30635
30639
|
axios$1.defaults.baseURL = baseUrl;
|
|
30636
30640
|
},
|
|
30637
30641
|
get: async (pathKey) => {
|
|
30638
|
-
return axios$1.get("/
|
|
30642
|
+
return axios$1.get("/files_v2/", { params: { path_key: pathKey } });
|
|
30639
30643
|
},
|
|
30640
30644
|
put: async (bglFilePatch, pathKey) => {
|
|
30641
|
-
return axios$1.put("/
|
|
30645
|
+
return axios$1.put("/files_v2/", bglFilePatch, { params: { path_key: pathKey } });
|
|
30642
30646
|
},
|
|
30643
30647
|
delete: async (pathKey) => {
|
|
30644
|
-
return axios$1.delete("/
|
|
30648
|
+
return axios$1.delete("/files_v2/", { params: { path_key: pathKey } });
|
|
30645
30649
|
},
|
|
30646
30650
|
upload: async (file, options) => {
|
|
30647
30651
|
const formData = new FormData();
|
|
30648
30652
|
formData.append("upload", file);
|
|
30649
|
-
return axios$1.post("/
|
|
30653
|
+
return axios$1.post("/files_v2/upload", formData, {
|
|
30650
30654
|
headers: { "Content-Type": "multipart/form-data" },
|
|
30651
30655
|
onUploadProgress: options == null ? void 0 : options.onUploadProgress,
|
|
30652
30656
|
params: { dir_path: options == null ? void 0 : options.dirPath, tags: options == null ? void 0 : options.tags }
|
|
@@ -32815,7 +32819,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
32815
32819
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
|
|
32816
32820
|
setup(__props, { emit: __emit }) {
|
|
32817
32821
|
useCssVars((_ctx) => ({
|
|
32818
|
-
"
|
|
32822
|
+
"7a7099e0": unref(computedItemHeight)
|
|
32819
32823
|
}));
|
|
32820
32824
|
const emit2 = __emit;
|
|
32821
32825
|
const NON_DIGIT_REGEX = /[^\d.-]/g;
|
|
@@ -33042,7 +33046,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
33042
33046
|
};
|
|
33043
33047
|
}
|
|
33044
33048
|
});
|
|
33045
|
-
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
33049
|
+
const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-966ec7d7"]]);
|
|
33046
33050
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
33047
33051
|
__name: "Title",
|
|
33048
33052
|
props: {
|
package/dist/style.css
CHANGED
|
@@ -860,7 +860,7 @@ pre code.hljs{
|
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
.img-web-kit[data-v-
|
|
863
|
+
.img-web-kit[data-v-29509e85] {
|
|
864
864
|
max-width: 100%;
|
|
865
865
|
vertical-align: middle;
|
|
866
866
|
border: 0;
|
|
@@ -3496,22 +3496,22 @@ body:has(.bg-dark.is-active) {
|
|
|
3496
3496
|
background: transparent;
|
|
3497
3497
|
}
|
|
3498
3498
|
|
|
3499
|
-
.table-list-wrap[data-v-
|
|
3499
|
+
.table-list-wrap[data-v-966ec7d7] {
|
|
3500
3500
|
min-height: 150px;
|
|
3501
3501
|
}
|
|
3502
|
-
.selected[data-v-
|
|
3502
|
+
.selected[data-v-966ec7d7] {
|
|
3503
3503
|
background: var(--bgl-primary-tint);
|
|
3504
3504
|
}
|
|
3505
|
-
tbody tr.selected[data-v-
|
|
3505
|
+
tbody tr.selected[data-v-966ec7d7]:hover {
|
|
3506
3506
|
background: var(--bgl-primary-light);
|
|
3507
3507
|
}
|
|
3508
|
-
.loading-table[data-v-
|
|
3508
|
+
.loading-table[data-v-966ec7d7] {
|
|
3509
3509
|
position: relative;
|
|
3510
3510
|
}
|
|
3511
|
-
.inset[data-v-
|
|
3511
|
+
.inset[data-v-966ec7d7] {
|
|
3512
3512
|
inset: 0;
|
|
3513
3513
|
}
|
|
3514
|
-
.loading-table-animation[data-v-
|
|
3514
|
+
.loading-table-animation[data-v-966ec7d7] {
|
|
3515
3515
|
--size: 60px;
|
|
3516
3516
|
top: 30vh;
|
|
3517
3517
|
inset-inline-start: calc(50% - var(--size));
|
|
@@ -3519,9 +3519,9 @@ tbody tr.selected[data-v-4c462da5]:hover {
|
|
|
3519
3519
|
border-top: 4px solid var(--bgl-primary);
|
|
3520
3520
|
width: var(--size);
|
|
3521
3521
|
height: var(--size);
|
|
3522
|
-
animation: loading-table-
|
|
3522
|
+
animation: loading-table-966ec7d7 1s linear infinite;
|
|
3523
3523
|
}
|
|
3524
|
-
@keyframes loading-table-
|
|
3524
|
+
@keyframes loading-table-966ec7d7 {
|
|
3525
3525
|
0% {
|
|
3526
3526
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
3527
3527
|
}
|
|
@@ -3529,51 +3529,51 @@ tbody tr.selected[data-v-4c462da5]:hover {
|
|
|
3529
3529
|
transform: translate(-50%, -50%) rotate(360deg);
|
|
3530
3530
|
}
|
|
3531
3531
|
}
|
|
3532
|
-
.list-arrows[data-v-
|
|
3532
|
+
.list-arrows[data-v-966ec7d7] {
|
|
3533
3533
|
opacity: 0;
|
|
3534
3534
|
}
|
|
3535
|
-
.list-arrows .bgl_icon-font[data-v-
|
|
3535
|
+
.list-arrows .bgl_icon-font[data-v-966ec7d7] {
|
|
3536
3536
|
transition: all ease-in-out 0.2s;
|
|
3537
3537
|
}
|
|
3538
|
-
.list-arrows.sorted[data-v-
|
|
3538
|
+
.list-arrows.sorted[data-v-966ec7d7] {
|
|
3539
3539
|
opacity: 1;
|
|
3540
3540
|
}
|
|
3541
|
-
.col img[data-v-
|
|
3541
|
+
.col img[data-v-966ec7d7] {
|
|
3542
3542
|
height: 35px;
|
|
3543
3543
|
margin-top: -14px;
|
|
3544
3544
|
margin-bottom: -14px;
|
|
3545
3545
|
border-radius: 5px;
|
|
3546
3546
|
}
|
|
3547
|
-
.list-arrows.sorted .desc[data-v-
|
|
3547
|
+
.list-arrows.sorted .desc[data-v-966ec7d7] {
|
|
3548
3548
|
transform: rotate(180deg);
|
|
3549
3549
|
display: inline-block;
|
|
3550
3550
|
}
|
|
3551
|
-
table[data-v-
|
|
3551
|
+
table[data-v-966ec7d7] {
|
|
3552
3552
|
border-spacing: 0 15px;
|
|
3553
3553
|
border-collapse: collapse;
|
|
3554
3554
|
width: 100%;
|
|
3555
3555
|
}
|
|
3556
|
-
th[data-v-
|
|
3556
|
+
th[data-v-966ec7d7] {
|
|
3557
3557
|
font-size: 0.8rem;
|
|
3558
3558
|
color: var(--bgl-black-tint);
|
|
3559
3559
|
position: sticky;
|
|
3560
3560
|
top: 0;
|
|
3561
3561
|
z-index: 2;
|
|
3562
3562
|
background: var(--bgl-box-bg);
|
|
3563
|
-
height: var(--
|
|
3563
|
+
height: var(--7a7099e0);
|
|
3564
3564
|
vertical-align: bottom;
|
|
3565
3565
|
font-weight: 400;
|
|
3566
3566
|
text-align: start;
|
|
3567
3567
|
}
|
|
3568
|
-
.embedded-field[data-v-
|
|
3568
|
+
.embedded-field[data-v-966ec7d7] {
|
|
3569
3569
|
margin-bottom: -0.2rem;
|
|
3570
3570
|
margin-top: -0.2rem;
|
|
3571
3571
|
}
|
|
3572
|
-
.row[data-v-
|
|
3572
|
+
.row[data-v-966ec7d7] {
|
|
3573
3573
|
border-bottom: 1px solid var(--border-color);
|
|
3574
3574
|
cursor: pointer;
|
|
3575
3575
|
}
|
|
3576
|
-
.row.first-row[data-v-
|
|
3576
|
+
.row.first-row[data-v-966ec7d7] {
|
|
3577
3577
|
font-size: 0.8rem;
|
|
3578
3578
|
color: var(--bgl-black-tint);
|
|
3579
3579
|
position: sticky;
|
|
@@ -3582,7 +3582,7 @@ th[data-v-4c462da5] {
|
|
|
3582
3582
|
background: var(--bgl-box-bg);
|
|
3583
3583
|
vertical-align: bottom;
|
|
3584
3584
|
}
|
|
3585
|
-
.row.first-row[data-v-
|
|
3585
|
+
.row.first-row[data-v-966ec7d7]::after {
|
|
3586
3586
|
content: '';
|
|
3587
3587
|
border-bottom: 1px solid var(--border-color);
|
|
3588
3588
|
position: absolute;
|
|
@@ -3590,30 +3590,33 @@ th[data-v-4c462da5] {
|
|
|
3590
3590
|
right: 0;
|
|
3591
3591
|
bottom: -1px;
|
|
3592
3592
|
}
|
|
3593
|
-
.first-row .col[data-v-
|
|
3593
|
+
.first-row .col[data-v-966ec7d7] {
|
|
3594
3594
|
cursor: pointer;
|
|
3595
3595
|
background: var(--bgl-box-bg);
|
|
3596
3596
|
}
|
|
3597
|
-
.col[data-v-
|
|
3597
|
+
.col[data-v-966ec7d7] {
|
|
3598
3598
|
white-space: nowrap;
|
|
3599
3599
|
padding: 0.75rem 1rem;
|
|
3600
3600
|
transition: var(--bgl-transition);
|
|
3601
3601
|
line-height: 1;
|
|
3602
3602
|
align-items: center;
|
|
3603
|
+
text-overflow: ellipsis;
|
|
3604
|
+
overflow: hidden;
|
|
3605
|
+
max-width: 30vw;
|
|
3603
3606
|
}
|
|
3604
|
-
.col[data-v-
|
|
3607
|
+
.col[data-v-966ec7d7]:has(.bagel-input) {
|
|
3605
3608
|
padding: 0rem 0.25rem;
|
|
3606
3609
|
}
|
|
3607
|
-
.col > div[data-v-
|
|
3610
|
+
.col > div[data-v-966ec7d7] {
|
|
3608
3611
|
display: flex;
|
|
3609
3612
|
gap: 0.5rem;
|
|
3610
3613
|
}
|
|
3611
|
-
.max-col-width[data-v-
|
|
3614
|
+
.max-col-width[data-v-966ec7d7] {
|
|
3612
3615
|
max-width: 30vw;
|
|
3613
3616
|
overflow: hidden;
|
|
3614
3617
|
text-overflow: ellipsis;
|
|
3615
3618
|
}
|
|
3616
|
-
.col.check .bgl_icon-font[data-v-
|
|
3619
|
+
.col.check .bgl_icon-font[data-v-966ec7d7] {
|
|
3617
3620
|
border-radius: 100%;
|
|
3618
3621
|
background: var(--bgl-blue-20);
|
|
3619
3622
|
color: var(--bgl-primary);
|
|
@@ -3624,35 +3627,35 @@ th[data-v-4c462da5] {
|
|
|
3624
3627
|
justify-content: center;
|
|
3625
3628
|
margin-top: -2px;
|
|
3626
3629
|
}
|
|
3627
|
-
.rows[data-v-
|
|
3630
|
+
.rows[data-v-966ec7d7] {
|
|
3628
3631
|
font-size: 0.88em;
|
|
3629
3632
|
}
|
|
3630
|
-
.table-list[data-v-
|
|
3633
|
+
.table-list[data-v-966ec7d7] {
|
|
3631
3634
|
height: 100%;
|
|
3632
3635
|
position: relative;
|
|
3633
3636
|
padding-left: 0 !important;
|
|
3634
3637
|
padding-right: 0 !important;
|
|
3635
3638
|
overflow: auto;
|
|
3636
3639
|
}
|
|
3637
|
-
.BagelTable .table-list[data-v-
|
|
3640
|
+
.BagelTable .table-list[data-v-966ec7d7] {
|
|
3638
3641
|
overflow: unset;
|
|
3639
3642
|
}
|
|
3640
|
-
.row-item[data-v-
|
|
3641
|
-
height: var(--
|
|
3643
|
+
.row-item[data-v-966ec7d7] {
|
|
3644
|
+
height: var(--7a7099e0);
|
|
3642
3645
|
transition: all 200ms ease;
|
|
3643
3646
|
}
|
|
3644
|
-
.row-item[data-v-
|
|
3647
|
+
.row-item[data-v-966ec7d7]:hover {
|
|
3645
3648
|
background: var(--bgl-gray-light);
|
|
3646
3649
|
}
|
|
3647
|
-
.row-item input[type='checkbox'][data-v-
|
|
3650
|
+
.row-item input[type='checkbox'][data-v-966ec7d7] {
|
|
3648
3651
|
margin-top: 0.45rem !important;
|
|
3649
3652
|
accent-color: var(--bgl-accent-color);
|
|
3650
3653
|
}
|
|
3651
|
-
.infinite-wrapper[data-v-
|
|
3654
|
+
.infinite-wrapper[data-v-966ec7d7] {
|
|
3652
3655
|
overflow-y: auto;
|
|
3653
3656
|
width: 100%;
|
|
3654
3657
|
}
|
|
3655
|
-
input[type='checkbox'][data-v-
|
|
3658
|
+
input[type='checkbox'][data-v-966ec7d7] {
|
|
3656
3659
|
margin-top: 0.3rem !important;
|
|
3657
3660
|
accent-color: var(--bgl-accent-color);
|
|
3658
3661
|
transform: scale(1.2);
|
|
@@ -3664,7 +3667,7 @@ input[type='checkbox'][data-v-4c462da5] {
|
|
|
3664
3667
|
height: 0.85rem;
|
|
3665
3668
|
width: 0.85rem;
|
|
3666
3669
|
}
|
|
3667
|
-
input[type='checkbox'][data-v-
|
|
3670
|
+
input[type='checkbox'][data-v-966ec7d7]::before {
|
|
3668
3671
|
content: '';
|
|
3669
3672
|
height: 0.85rem;
|
|
3670
3673
|
width: 0.85rem;
|
|
@@ -3677,18 +3680,18 @@ input[type='checkbox'][data-v-4c462da5]::before {
|
|
|
3677
3680
|
transform: scale(1);
|
|
3678
3681
|
position: absolute;
|
|
3679
3682
|
}
|
|
3680
|
-
input[type='checkbox'][data-v-
|
|
3683
|
+
input[type='checkbox'][data-v-966ec7d7]:hover::before {
|
|
3681
3684
|
opacity: 0.2;
|
|
3682
3685
|
transform: scale(2);
|
|
3683
3686
|
}
|
|
3684
|
-
[lang='he'] [dir='ltr'][data-v-
|
|
3687
|
+
[lang='he'] [dir='ltr'][data-v-966ec7d7] {
|
|
3685
3688
|
text-align: right;
|
|
3686
3689
|
}
|
|
3687
|
-
th input[type='checkbox'][data-v-
|
|
3690
|
+
th input[type='checkbox'][data-v-966ec7d7] {
|
|
3688
3691
|
transform: translateY(0.2rem) scale(1.2);
|
|
3689
3692
|
accent-color: var(--bgl-accent-color);
|
|
3690
3693
|
}
|
|
3691
|
-
th[data-v-
|
|
3694
|
+
th[data-v-966ec7d7]::after {
|
|
3692
3695
|
content: '';
|
|
3693
3696
|
border-bottom: 1px solid var(--border-color);
|
|
3694
3697
|
position: absolute;
|
|
@@ -3696,24 +3699,24 @@ th[data-v-4c462da5]::after {
|
|
|
3696
3699
|
right: 0;
|
|
3697
3700
|
bottom: -1px;
|
|
3698
3701
|
}
|
|
3699
|
-
tr[data-v-
|
|
3702
|
+
tr[data-v-966ec7d7] {
|
|
3700
3703
|
border-bottom: 1px solid var(--border-color);
|
|
3701
3704
|
cursor: pointer;
|
|
3702
3705
|
align-items: center;
|
|
3703
3706
|
}
|
|
3704
|
-
td[data-v-
|
|
3705
|
-
th[data-v-
|
|
3707
|
+
td[data-v-966ec7d7],
|
|
3708
|
+
th[data-v-966ec7d7] {
|
|
3706
3709
|
white-space: nowrap;
|
|
3707
3710
|
padding: 0.75rem 0.65rem;
|
|
3708
3711
|
transition: var(--bgl-transition);
|
|
3709
3712
|
line-height: 1;
|
|
3710
3713
|
}
|
|
3711
|
-
tbody tr[data-v-
|
|
3714
|
+
tbody tr[data-v-966ec7d7] {
|
|
3712
3715
|
font-size: 0.88em;
|
|
3713
|
-
height: var(--
|
|
3716
|
+
height: var(--7a7099e0);
|
|
3714
3717
|
transition: all 200ms ease;
|
|
3715
3718
|
}
|
|
3716
|
-
tbody tr[data-v-
|
|
3719
|
+
tbody tr[data-v-966ec7d7]:hover {
|
|
3717
3720
|
background: var(--bgl-gray-light);
|
|
3718
3721
|
}
|
|
3719
3722
|
|
|
@@ -16611,8 +16614,9 @@ body:has([class*="slide-fade"])::-webkit-scrollbar {
|
|
|
16611
16614
|
}
|
|
16612
16615
|
[dir='rtl'] .data-row .bgl_icon-font,
|
|
16613
16616
|
[dir='rtl'] .embedded-field .bgl_icon-font,
|
|
16614
|
-
|
|
16617
|
+
[dir='rtl'] .rich-text-editor .toolbar .bgl_icon-font {
|
|
16615
16618
|
transform: rotateY(180deg) !important;
|
|
16619
|
+
|
|
16616
16620
|
}
|
|
16617
16621
|
.copy-url {
|
|
16618
16622
|
background-color: var(--bgl-gray-light);
|
package/package.json
CHANGED
package/src/components/Image.vue
CHANGED
|
@@ -20,7 +20,11 @@ const { height, width, alt = '', src, pathKey } = defineProps<{
|
|
|
20
20
|
let imageSrc = $ref<string | null>(null)
|
|
21
21
|
|
|
22
22
|
const fileBaseUrl = $computed(() => ('https://files.bagel.design').replace(/\/$/, ''))
|
|
23
|
-
|
|
23
|
+
function pathToUrl() {
|
|
24
|
+
if (pathKey?.startsWith('static/')) return `${import.meta.env.VITE_BAGEL_BASE_URL}/${pathKey}`
|
|
25
|
+
|
|
26
|
+
return `${fileBaseUrl}/${pathKey}`
|
|
27
|
+
}
|
|
24
28
|
|
|
25
29
|
async function loadImage() {
|
|
26
30
|
const url = src || pathToUrl()
|
|
@@ -8,13 +8,13 @@ export const files = {
|
|
|
8
8
|
baseUrl = baseUrl.replace(/\/$/, '')
|
|
9
9
|
axios.defaults.baseURL = baseUrl
|
|
10
10
|
},
|
|
11
|
-
get: async (pathKey?: string): Promise<AxiosResponse<BglFile>> => { return axios.get('/
|
|
12
|
-
put: async (bglFilePatch: BglFilePatch, pathKey?: string): Promise<AxiosResponse<BglFile>> => { return axios.put('/
|
|
13
|
-
delete: async (pathKey?: string) => { return axios.delete('/
|
|
11
|
+
get: async (pathKey?: string): Promise<AxiosResponse<BglFile>> => { return axios.get('/files_v2/', { params: { path_key: pathKey } }) },
|
|
12
|
+
put: async (bglFilePatch: BglFilePatch, pathKey?: string): Promise<AxiosResponse<BglFile>> => { return axios.put('/files_v2/', bglFilePatch, { params: { path_key: pathKey } }) },
|
|
13
|
+
delete: async (pathKey?: string) => { return axios.delete('/files_v2/', { params: { path_key: pathKey } }) },
|
|
14
14
|
upload: async (file: File, options?: UploadOptions & { dirPath?: string, tags?: string[] }): Promise<AxiosResponse<BglFile>> => {
|
|
15
15
|
const formData = new FormData()
|
|
16
16
|
formData.append('upload', file)
|
|
17
|
-
return axios.post('/
|
|
17
|
+
return axios.post('/files_v2/upload', formData, {
|
|
18
18
|
headers: { 'Content-Type': 'multipart/form-data' },
|
|
19
19
|
onUploadProgress: options?.onUploadProgress,
|
|
20
20
|
params: { dir_path: options?.dirPath, tags: options?.tags },
|
package/src/styles/theme.css
CHANGED
|
@@ -255,8 +255,9 @@
|
|
|
255
255
|
|
|
256
256
|
[dir='rtl'] .data-row .bgl_icon-font,
|
|
257
257
|
[dir='rtl'] .embedded-field .bgl_icon-font,
|
|
258
|
-
|
|
258
|
+
[dir='rtl'] .rich-text-editor .toolbar .bgl_icon-font {
|
|
259
259
|
transform: rotateY(180deg) !important;
|
|
260
|
+
|
|
260
261
|
}
|
|
261
262
|
|
|
262
263
|
.copy-url {
|