@pitcher/canvas-ui 2025.12.5-123108-beta → 2025.12.5-130919-beta
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/canvas-ui.css +17 -17
- package/canvas-ui.js +158 -148
- package/canvas-ui.js.map +1 -1
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +2 -0
- package/lib/types/canvases.d.ts +1 -1
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -94474,119 +94474,115 @@ const _hoisted_5$1M = {
|
|
|
94474
94474
|
key: 1,
|
|
94475
94475
|
class: "flex items-center mt-4"
|
|
94476
94476
|
};
|
|
94477
|
-
const _hoisted_6$1w = { class: "flex space-x-0
|
|
94477
|
+
const _hoisted_6$1w = { class: "flex space-x-0" };
|
|
94478
94478
|
const _hoisted_7$18 = { class: "uppercase" };
|
|
94479
94479
|
const _hoisted_8$Z = {
|
|
94480
|
-
key: 1,
|
|
94481
|
-
class: "h-16px w-1px bg-gray-300 mx-2"
|
|
94482
|
-
};
|
|
94483
|
-
const _hoisted_9$O = {
|
|
94484
94480
|
key: 0,
|
|
94485
94481
|
class: "flex items-center space-x-1 ml-2"
|
|
94486
94482
|
};
|
|
94487
|
-
const
|
|
94488
|
-
const
|
|
94489
|
-
const
|
|
94490
|
-
const
|
|
94491
|
-
const
|
|
94483
|
+
const _hoisted_9$O = { class: "flex items-center" };
|
|
94484
|
+
const _hoisted_10$C = { key: 0 };
|
|
94485
|
+
const _hoisted_11$x = { class: "c-select-filter__popover w-[350px] rounded flex flex-col bg-base" };
|
|
94486
|
+
const _hoisted_12$p = { class: "pa-2 max-h-[300px] overflow-y-auto" };
|
|
94487
|
+
const _hoisted_13$k = {
|
|
94492
94488
|
key: 0,
|
|
94493
94489
|
class: "flex items-center ml-2"
|
|
94494
94490
|
};
|
|
94495
|
-
const
|
|
94491
|
+
const _hoisted_14$h = {
|
|
94496
94492
|
key: 0,
|
|
94497
94493
|
class: "flex items-center ml-2"
|
|
94498
94494
|
};
|
|
94499
|
-
const
|
|
94500
|
-
const
|
|
94495
|
+
const _hoisted_15$f = { class: "flex flex-col w-full flex-1 min-h-0" };
|
|
94496
|
+
const _hoisted_16$e = {
|
|
94501
94497
|
key: 0,
|
|
94502
94498
|
class: "flex-1 overflow-y-auto bg-white w-full pl-1 pr-6 py-0"
|
|
94503
94499
|
};
|
|
94504
|
-
const
|
|
94505
|
-
const
|
|
94506
|
-
const
|
|
94507
|
-
const
|
|
94508
|
-
const
|
|
94509
|
-
const
|
|
94510
|
-
const
|
|
94500
|
+
const _hoisted_17$c = { class: "space-y-1 mt-4" };
|
|
94501
|
+
const _hoisted_18$a = ["onClick"];
|
|
94502
|
+
const _hoisted_19$a = { class: "text-sm text-gray-700" };
|
|
94503
|
+
const _hoisted_20$9 = { class: "flex items-center mb-0" };
|
|
94504
|
+
const _hoisted_21$7 = { class: "text-sm font-bold text-gray-700" };
|
|
94505
|
+
const _hoisted_22$5 = ["onClick"];
|
|
94506
|
+
const _hoisted_23$5 = {
|
|
94511
94507
|
key: 0,
|
|
94512
94508
|
class: "relative mr-4"
|
|
94513
94509
|
};
|
|
94514
|
-
const
|
|
94510
|
+
const _hoisted_24$5 = {
|
|
94515
94511
|
key: 0,
|
|
94516
94512
|
class: "absolute inset-0 flex items-center justify-center bg-gray-200 bg-opacity-75 border-rounded-1"
|
|
94517
94513
|
};
|
|
94518
|
-
const
|
|
94514
|
+
const _hoisted_25$5 = {
|
|
94519
94515
|
key: 1,
|
|
94520
94516
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94521
94517
|
};
|
|
94522
|
-
const
|
|
94523
|
-
const
|
|
94524
|
-
const
|
|
94525
|
-
const
|
|
94518
|
+
const _hoisted_26$5 = { class: "flex-1 min-w-0" };
|
|
94519
|
+
const _hoisted_27$5 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94520
|
+
const _hoisted_28$5 = { class: "text-xs text-gray-500" };
|
|
94521
|
+
const _hoisted_29$5 = {
|
|
94526
94522
|
key: 1,
|
|
94527
94523
|
class: "flex-1 overflow-y-auto bg-white w-full"
|
|
94528
94524
|
};
|
|
94529
|
-
const
|
|
94530
|
-
const
|
|
94525
|
+
const _hoisted_30$4 = { class: "w-full px-0" };
|
|
94526
|
+
const _hoisted_31$4 = {
|
|
94531
94527
|
key: 0,
|
|
94532
94528
|
class: "mb-0"
|
|
94533
94529
|
};
|
|
94534
|
-
const
|
|
94535
|
-
const
|
|
94536
|
-
const
|
|
94537
|
-
const
|
|
94538
|
-
const
|
|
94530
|
+
const _hoisted_32$4 = { class: "flex items-center px-0 pt-2 pb-1" };
|
|
94531
|
+
const _hoisted_33$4 = { class: "text-m font-semibold text-gray-900" };
|
|
94532
|
+
const _hoisted_34$4 = { class: "ml-2 text-sm text-gray-500" };
|
|
94533
|
+
const _hoisted_35$4 = ["data-result-selected", "onClick"];
|
|
94534
|
+
const _hoisted_36$4 = {
|
|
94539
94535
|
key: 1,
|
|
94540
94536
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94541
94537
|
};
|
|
94542
|
-
const
|
|
94543
|
-
const
|
|
94544
|
-
const
|
|
94545
|
-
const
|
|
94546
|
-
const
|
|
94538
|
+
const _hoisted_37$4 = { class: "flex-1 min-w-0" };
|
|
94539
|
+
const _hoisted_38$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94540
|
+
const _hoisted_39$4 = { class: "text-xs text-gray-500" };
|
|
94541
|
+
const _hoisted_40$4 = { class: "text-xs text-gray-400" };
|
|
94542
|
+
const _hoisted_41$4 = {
|
|
94547
94543
|
key: 0,
|
|
94548
94544
|
class: "px-0 py-0"
|
|
94549
94545
|
};
|
|
94550
|
-
const
|
|
94551
|
-
const
|
|
94552
|
-
const
|
|
94553
|
-
const
|
|
94554
|
-
const
|
|
94555
|
-
const
|
|
94556
|
-
const
|
|
94557
|
-
const
|
|
94558
|
-
const
|
|
94559
|
-
const
|
|
94560
|
-
const
|
|
94546
|
+
const _hoisted_42$4 = { key: 1 };
|
|
94547
|
+
const _hoisted_43$4 = { class: "flex items-center px-0 pt-4 pb-1" };
|
|
94548
|
+
const _hoisted_44$4 = { class: "text-m font-semibold text-gray-900" };
|
|
94549
|
+
const _hoisted_45$4 = { class: "ml-2 text-sm text-gray-500" };
|
|
94550
|
+
const _hoisted_46$4 = ["data-result-selected", "onClick"];
|
|
94551
|
+
const _hoisted_47$4 = { class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center" };
|
|
94552
|
+
const _hoisted_48$4 = { class: "flex-1 min-w-0" };
|
|
94553
|
+
const _hoisted_49$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94554
|
+
const _hoisted_50$4 = { class: "text-xs text-gray-500" };
|
|
94555
|
+
const _hoisted_51$2 = { class: "text-xs text-gray-400" };
|
|
94556
|
+
const _hoisted_52$2 = {
|
|
94561
94557
|
key: 0,
|
|
94562
94558
|
class: "px-0 py-0"
|
|
94563
94559
|
};
|
|
94564
|
-
const
|
|
94560
|
+
const _hoisted_53$2 = {
|
|
94565
94561
|
key: 0,
|
|
94566
94562
|
class: "flex flex-col items-center justify-center text-center p-8 gap-4"
|
|
94567
94563
|
};
|
|
94568
|
-
const
|
|
94564
|
+
const _hoisted_54$1 = {
|
|
94569
94565
|
key: 2,
|
|
94570
94566
|
class: "flex-1 overflow-y-auto bg-white w-full"
|
|
94571
94567
|
};
|
|
94572
|
-
const
|
|
94573
|
-
const
|
|
94574
|
-
const
|
|
94575
|
-
const
|
|
94576
|
-
const
|
|
94577
|
-
const
|
|
94568
|
+
const _hoisted_55$1 = { class: "w-full px-0" };
|
|
94569
|
+
const _hoisted_56$1 = { class: "flex items-center px-0 pt-2 pb-1" };
|
|
94570
|
+
const _hoisted_57$1 = { class: "text-m font-semibold text-gray-900" };
|
|
94571
|
+
const _hoisted_58$1 = { class: "ml-2 text-sm text-gray-500" };
|
|
94572
|
+
const _hoisted_59$1 = ["data-result-selected", "onClick"];
|
|
94573
|
+
const _hoisted_60$1 = {
|
|
94578
94574
|
key: 1,
|
|
94579
94575
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94580
94576
|
};
|
|
94581
|
-
const
|
|
94582
|
-
const
|
|
94583
|
-
const
|
|
94584
|
-
const
|
|
94585
|
-
const
|
|
94577
|
+
const _hoisted_61$1 = { class: "flex-1 min-w-0" };
|
|
94578
|
+
const _hoisted_62$1 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94579
|
+
const _hoisted_63$1 = { class: "text-xs text-gray-500" };
|
|
94580
|
+
const _hoisted_64$1 = { class: "text-xs text-gray-400" };
|
|
94581
|
+
const _hoisted_65$1 = {
|
|
94586
94582
|
key: 0,
|
|
94587
94583
|
class: "flex flex-col items-center justify-center text-center p-8 gap-4"
|
|
94588
94584
|
};
|
|
94589
|
-
const
|
|
94585
|
+
const _hoisted_66$1 = {
|
|
94590
94586
|
key: 0,
|
|
94591
94587
|
class: "flex flex-wrap line-height-6 pt-4 pb-2 px-6 border-t border-gray-200 gap-y-4 gap-x-4"
|
|
94592
94588
|
};
|
|
@@ -95381,8 +95377,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95381
95377
|
createElementVNode("div", _hoisted_6$1w, [
|
|
95382
95378
|
createElementVNode("button", {
|
|
95383
95379
|
class: normalizeClass([
|
|
95384
|
-
"h-
|
|
95385
|
-
searchType.value === null ? "bg-
|
|
95380
|
+
"h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
|
|
95381
|
+
searchType.value === null ? "bg-primary border-primary text-white px-12px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
|
|
95386
95382
|
]),
|
|
95387
95383
|
onClick: handleEverywhereClick
|
|
95388
95384
|
}, [
|
|
@@ -95391,26 +95387,25 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95391
95387
|
searchType.value !== "canvases" ? (openBlock(), createElementBlock("button", {
|
|
95392
95388
|
key: 0,
|
|
95393
95389
|
class: normalizeClass([
|
|
95394
|
-
"h-
|
|
95395
|
-
searchType.value === "content" ? "bg-
|
|
95390
|
+
"h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
|
|
95391
|
+
searchType.value === "content" ? "bg-primary border-primary text-white px-16px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
|
|
95396
95392
|
]),
|
|
95397
95393
|
onClick: _cache[4] || (_cache[4] = ($event) => searchType.value === "content" ? handleEverywhereClick() : searchType.value = "content")
|
|
95398
95394
|
}, [
|
|
95399
95395
|
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.content")), 1)
|
|
95400
95396
|
], 2)) : createCommentVNode("", true),
|
|
95401
|
-
searchType.value !== "content" && searchType.value !== "canvases" ? (openBlock(), createElementBlock("div", _hoisted_8$Z)) : createCommentVNode("", true),
|
|
95402
95397
|
searchType.value !== "content" ? (openBlock(), createElementBlock("button", {
|
|
95403
|
-
key:
|
|
95398
|
+
key: 1,
|
|
95404
95399
|
class: normalizeClass([
|
|
95405
|
-
"h-
|
|
95406
|
-
searchType.value === "canvases" ? "bg-
|
|
95400
|
+
"h-32px text-14px font-500 border rounded-4px transition-colors duration-200 flex items-center",
|
|
95401
|
+
searchType.value === "canvases" ? "bg-primary border-primary text-white px-16px" : "bg-primary6 border-transparent text-primary hover:bg-primary5 px-16px"
|
|
95407
95402
|
]),
|
|
95408
95403
|
onClick: _cache[5] || (_cache[5] = ($event) => searchType.value === "canvases" ? handleEverywhereClick() : searchType.value = "canvases")
|
|
95409
95404
|
}, [
|
|
95410
95405
|
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.pitchDecks")), 1)
|
|
95411
95406
|
], 2)) : createCommentVNode("", true)
|
|
95412
95407
|
]),
|
|
95413
|
-
searchType.value ? (openBlock(), createElementBlock("div",
|
|
95408
|
+
searchType.value ? (openBlock(), createElementBlock("div", _hoisted_8$Z, [
|
|
95414
95409
|
searchType.value === "content" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
95415
95410
|
createVNode(unref(NPopover), {
|
|
95416
95411
|
class: "c-select-filter",
|
|
@@ -95427,7 +95422,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95427
95422
|
style: normalizeStyle({
|
|
95428
95423
|
"--n-color": selectedFileTypes.value.length ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95429
95424
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95430
|
-
"--n-height": "
|
|
95425
|
+
"--n-height": "32px"
|
|
95431
95426
|
}),
|
|
95432
95427
|
themeOverrides: {
|
|
95433
95428
|
borderRadius: "4px"
|
|
@@ -95435,9 +95430,11 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95435
95430
|
onClick: _cache[7] || (_cache[7] = ($event) => showFileTypeDropdown.value = !showFileTypeDropdown.value)
|
|
95436
95431
|
}, {
|
|
95437
95432
|
default: withCtx(() => [
|
|
95438
|
-
createElementVNode("div",
|
|
95439
|
-
createElementVNode("span",
|
|
95440
|
-
|
|
95433
|
+
createElementVNode("div", _hoisted_9$O, [
|
|
95434
|
+
createElementVNode("span", {
|
|
95435
|
+
class: normalizeClass({ "font-bold": selectedFileTypes.value.length })
|
|
95436
|
+
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 3),
|
|
95437
|
+
selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_10$C, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
|
|
95441
95438
|
selectedFileTypes.value.length ? (openBlock(), createBlock(CIcon, {
|
|
95442
95439
|
key: 1,
|
|
95443
95440
|
class: "ml-1",
|
|
@@ -95452,8 +95449,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95452
95449
|
}, 8, ["style"])
|
|
95453
95450
|
]),
|
|
95454
95451
|
default: withCtx(() => [
|
|
95455
|
-
createElementVNode("div",
|
|
95456
|
-
createElementVNode("div",
|
|
95452
|
+
createElementVNode("div", _hoisted_11$x, [
|
|
95453
|
+
createElementVNode("div", _hoisted_12$p, [
|
|
95457
95454
|
(openBlock(), createElementBlock(Fragment, null, renderList(fileTypeOptions, (option) => {
|
|
95458
95455
|
return createElementVNode("div", {
|
|
95459
95456
|
key: option.value,
|
|
@@ -95493,7 +95490,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95493
95490
|
]),
|
|
95494
95491
|
_: 1
|
|
95495
95492
|
}, 8, ["show"]),
|
|
95496
|
-
hasActiveFilters.value ? (openBlock(), createElementBlock("div",
|
|
95493
|
+
hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_13$k, [
|
|
95497
95494
|
_cache[17] || (_cache[17] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
|
|
95498
95495
|
createElementVNode("span", {
|
|
95499
95496
|
class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
|
|
@@ -95506,7 +95503,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95506
95503
|
style: normalizeStyle({
|
|
95507
95504
|
"--n-color": selectedCanvasFilters.value.includes("saved_canvas") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95508
95505
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95509
|
-
"--n-height": "
|
|
95506
|
+
"--n-height": "32px"
|
|
95510
95507
|
}),
|
|
95511
95508
|
themeOverrides: {
|
|
95512
95509
|
borderRadius: "4px"
|
|
@@ -95514,7 +95511,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95514
95511
|
onClick: _cache[9] || (_cache[9] = ($event) => toggleCanvasFilter("saved_canvas"))
|
|
95515
95512
|
}, {
|
|
95516
95513
|
default: withCtx(() => [
|
|
95517
|
-
createElementVNode("span",
|
|
95514
|
+
createElementVNode("span", {
|
|
95515
|
+
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("saved_canvas") })
|
|
95516
|
+
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 3)
|
|
95518
95517
|
]),
|
|
95519
95518
|
_: 1
|
|
95520
95519
|
}, 8, ["style"]),
|
|
@@ -95523,7 +95522,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95523
95522
|
style: normalizeStyle({
|
|
95524
95523
|
"--n-color": selectedCanvasFilters.value.includes("template") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95525
95524
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95526
|
-
"--n-height": "
|
|
95525
|
+
"--n-height": "32px"
|
|
95527
95526
|
}),
|
|
95528
95527
|
themeOverrides: {
|
|
95529
95528
|
borderRadius: "4px"
|
|
@@ -95531,7 +95530,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95531
95530
|
onClick: _cache[10] || (_cache[10] = ($event) => toggleCanvasFilter("template"))
|
|
95532
95531
|
}, {
|
|
95533
95532
|
default: withCtx(() => [
|
|
95534
|
-
createElementVNode("span",
|
|
95533
|
+
createElementVNode("span", {
|
|
95534
|
+
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("template") })
|
|
95535
|
+
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 3)
|
|
95535
95536
|
]),
|
|
95536
95537
|
_: 1
|
|
95537
95538
|
}, 8, ["style"]),
|
|
@@ -95540,7 +95541,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95540
95541
|
style: normalizeStyle({
|
|
95541
95542
|
"--n-color": selectedCanvasFilters.value.includes("section") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95542
95543
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95543
|
-
"--n-height": "
|
|
95544
|
+
"--n-height": "32px"
|
|
95544
95545
|
}),
|
|
95545
95546
|
themeOverrides: {
|
|
95546
95547
|
borderRadius: "4px"
|
|
@@ -95548,7 +95549,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95548
95549
|
onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("section"))
|
|
95549
95550
|
}, {
|
|
95550
95551
|
default: withCtx(() => [
|
|
95551
|
-
createElementVNode("span",
|
|
95552
|
+
createElementVNode("span", {
|
|
95553
|
+
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("section") })
|
|
95554
|
+
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 3)
|
|
95552
95555
|
]),
|
|
95553
95556
|
_: 1
|
|
95554
95557
|
}, 8, ["style"]),
|
|
@@ -95557,7 +95560,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95557
95560
|
style: normalizeStyle({
|
|
95558
95561
|
"--n-color": selectedCanvasFilters.value.includes("block") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95559
95562
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95560
|
-
"--n-height": "
|
|
95563
|
+
"--n-height": "32px"
|
|
95561
95564
|
}),
|
|
95562
95565
|
themeOverrides: {
|
|
95563
95566
|
borderRadius: "4px"
|
|
@@ -95565,11 +95568,13 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95565
95568
|
onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("block"))
|
|
95566
95569
|
}, {
|
|
95567
95570
|
default: withCtx(() => [
|
|
95568
|
-
createElementVNode("span",
|
|
95571
|
+
createElementVNode("span", {
|
|
95572
|
+
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("block") })
|
|
95573
|
+
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 3)
|
|
95569
95574
|
]),
|
|
95570
95575
|
_: 1
|
|
95571
95576
|
}, 8, ["style"]),
|
|
95572
|
-
selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95577
|
+
selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
|
|
95573
95578
|
_cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
|
|
95574
95579
|
createElementVNode("span", {
|
|
95575
95580
|
class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
|
|
@@ -95580,9 +95585,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95580
95585
|
])) : createCommentVNode("", true)
|
|
95581
95586
|
])) : createCommentVNode("", true)
|
|
95582
95587
|
]),
|
|
95583
|
-
createElementVNode("div",
|
|
95584
|
-
showRecentView.value ? (openBlock(), createElementBlock("div",
|
|
95585
|
-
createElementVNode("div",
|
|
95588
|
+
createElementVNode("div", _hoisted_15$f, [
|
|
95589
|
+
showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_16$e, [
|
|
95590
|
+
createElementVNode("div", _hoisted_17$c, [
|
|
95586
95591
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recentSearches.value, (search) => {
|
|
95587
95592
|
return openBlock(), createElementBlock("div", {
|
|
95588
95593
|
key: search,
|
|
@@ -95595,14 +95600,14 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95595
95600
|
icon: "clock-rotate-left",
|
|
95596
95601
|
size: "16"
|
|
95597
95602
|
}),
|
|
95598
|
-
createElementVNode("span",
|
|
95599
|
-
], 8,
|
|
95603
|
+
createElementVNode("span", _hoisted_19$a, toDisplayString(search), 1)
|
|
95604
|
+
], 8, _hoisted_18$a);
|
|
95600
95605
|
}), 128))
|
|
95601
95606
|
]),
|
|
95602
95607
|
recentlyOpenedDocs.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
95603
95608
|
_cache[19] || (_cache[19] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
|
|
95604
|
-
createElementVNode("div",
|
|
95605
|
-
createElementVNode("span",
|
|
95609
|
+
createElementVNode("div", _hoisted_20$9, [
|
|
95610
|
+
createElementVNode("span", _hoisted_21$7, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
|
|
95606
95611
|
]),
|
|
95607
95612
|
createElementVNode("div", {
|
|
95608
95613
|
class: normalizeClass(_ctx.isAdmin ? "space-y-2" : "space-y-0")
|
|
@@ -95616,7 +95621,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95616
95621
|
]),
|
|
95617
95622
|
onClick: ($event) => handleRecentDocClick(doc, doc.type)
|
|
95618
95623
|
}, [
|
|
95619
|
-
doc.type === "file" ? (openBlock(), createElementBlock("div",
|
|
95624
|
+
doc.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_23$5, [
|
|
95620
95625
|
createVNode(_sfc_main$6I, {
|
|
95621
95626
|
class: "h-14 border-rounded-1 overflow-hidden flex-0",
|
|
95622
95627
|
cover: "",
|
|
@@ -95625,7 +95630,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95625
95630
|
src: recentThumbnails.value[doc.id] || "",
|
|
95626
95631
|
width: "72"
|
|
95627
95632
|
}, null, 8, ["file-data", "src"]),
|
|
95628
|
-
isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div",
|
|
95633
|
+
isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div", _hoisted_24$5, [
|
|
95629
95634
|
createVNode(CIcon, {
|
|
95630
95635
|
class: "animate-spin",
|
|
95631
95636
|
color: "var(--p-primary)",
|
|
@@ -95633,7 +95638,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95633
95638
|
size: "20"
|
|
95634
95639
|
})
|
|
95635
95640
|
])) : createCommentVNode("", true)
|
|
95636
|
-
])) : (openBlock(), createElementBlock("div",
|
|
95641
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_25$5, [
|
|
95637
95642
|
doc.type === "canvas" ? (openBlock(), createBlock(CIcon, {
|
|
95638
95643
|
key: 0,
|
|
95639
95644
|
color: "var(--p-text2)",
|
|
@@ -95646,26 +95651,26 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95646
95651
|
size: "32"
|
|
95647
95652
|
}))
|
|
95648
95653
|
])),
|
|
95649
|
-
createElementVNode("div",
|
|
95650
|
-
createElementVNode("h3",
|
|
95651
|
-
createElementVNode("p",
|
|
95654
|
+
createElementVNode("div", _hoisted_26$5, [
|
|
95655
|
+
createElementVNode("h3", _hoisted_27$5, toDisplayString(doc.name), 1),
|
|
95656
|
+
createElementVNode("p", _hoisted_28$5, toDisplayString(doc.type === "canvas" ? formatCanvasType(doc.content_type) : doc.type === "folder" ? "Folder" : doc.file_category || "File"), 1)
|
|
95652
95657
|
])
|
|
95653
|
-
], 10,
|
|
95658
|
+
], 10, _hoisted_22$5);
|
|
95654
95659
|
}), 128))
|
|
95655
95660
|
], 2)
|
|
95656
95661
|
], 64)) : createCommentVNode("", true)
|
|
95657
|
-
])) : !searchType.value ? (openBlock(), createElementBlock("div",
|
|
95658
|
-
createElementVNode("div",
|
|
95659
|
-
filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95660
|
-
createElementVNode("div",
|
|
95662
|
+
])) : !searchType.value ? (openBlock(), createElementBlock("div", _hoisted_29$5, [
|
|
95663
|
+
createElementVNode("div", _hoisted_30$4, [
|
|
95664
|
+
filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_31$4, [
|
|
95665
|
+
createElementVNode("div", _hoisted_32$4, [
|
|
95661
95666
|
createVNode(CIcon, {
|
|
95662
95667
|
class: "mr-2",
|
|
95663
95668
|
color: "var(--p-text2)",
|
|
95664
95669
|
icon: "folder",
|
|
95665
95670
|
size: "16"
|
|
95666
95671
|
}),
|
|
95667
|
-
createElementVNode("span",
|
|
95668
|
-
createElementVNode("span",
|
|
95672
|
+
createElementVNode("span", _hoisted_33$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.content")), 1),
|
|
95673
|
+
createElementVNode("span", _hoisted_34$4, "(" + toDisplayString(filteredContentFiles.value.length) + ")", 1)
|
|
95669
95674
|
]),
|
|
95670
95675
|
createElementVNode("div", null, [
|
|
95671
95676
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredContentFiles.value.slice(0, 5), (item) => {
|
|
@@ -95687,22 +95692,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95687
95692
|
"object-fit": "cover",
|
|
95688
95693
|
src: item.picture_url || "",
|
|
95689
95694
|
width: "72"
|
|
95690
|
-
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div",
|
|
95695
|
+
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_36$4, [
|
|
95691
95696
|
createVNode(CIcon, {
|
|
95692
95697
|
color: "var(--p-text2)",
|
|
95693
95698
|
icon: "folder",
|
|
95694
95699
|
size: "32"
|
|
95695
95700
|
})
|
|
95696
95701
|
])),
|
|
95697
|
-
createElementVNode("div",
|
|
95698
|
-
createElementVNode("h3",
|
|
95699
|
-
createElementVNode("p",
|
|
95702
|
+
createElementVNode("div", _hoisted_37$4, [
|
|
95703
|
+
createElementVNode("h3", _hoisted_38$4, toDisplayString(item.name), 1),
|
|
95704
|
+
createElementVNode("p", _hoisted_39$4, toDisplayString(item.type === "folder" ? "Folder" : item.content_type || "PDF"), 1)
|
|
95700
95705
|
]),
|
|
95701
|
-
createElementVNode("div",
|
|
95702
|
-
], 10,
|
|
95706
|
+
createElementVNode("div", _hoisted_40$4, toDisplayString(item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
|
|
95707
|
+
], 10, _hoisted_35$4);
|
|
95703
95708
|
}), 128))
|
|
95704
95709
|
]),
|
|
95705
|
-
filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div",
|
|
95710
|
+
filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_41$4, [
|
|
95706
95711
|
createElementVNode("span", {
|
|
95707
95712
|
class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
|
|
95708
95713
|
onClick: _cache[13] || (_cache[13] = ($event) => searchType.value = "content")
|
|
@@ -95716,16 +95721,16 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95716
95721
|
])
|
|
95717
95722
|
])) : createCommentVNode("", true)
|
|
95718
95723
|
])) : createCommentVNode("", true),
|
|
95719
|
-
filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95720
|
-
createElementVNode("div",
|
|
95724
|
+
filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_42$4, [
|
|
95725
|
+
createElementVNode("div", _hoisted_43$4, [
|
|
95721
95726
|
createVNode(CIcon, {
|
|
95722
95727
|
class: "mr-2",
|
|
95723
95728
|
color: "var(--p-text2)",
|
|
95724
95729
|
icon: "presentation",
|
|
95725
95730
|
size: "16"
|
|
95726
95731
|
}),
|
|
95727
|
-
createElementVNode("span",
|
|
95728
|
-
createElementVNode("span",
|
|
95732
|
+
createElementVNode("span", _hoisted_44$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
|
|
95733
|
+
createElementVNode("span", _hoisted_45$4, "(" + toDisplayString(filteredCanvasFiles.value.length) + ")", 1)
|
|
95729
95734
|
]),
|
|
95730
95735
|
createElementVNode("div", null, [
|
|
95731
95736
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredCanvasFiles.value.slice(0, 5), (item) => {
|
|
@@ -95739,22 +95744,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95739
95744
|
"data-result-selected": isResultSelected(item),
|
|
95740
95745
|
onClick: ($event) => handleResultClick(item, "canvas")
|
|
95741
95746
|
}, [
|
|
95742
|
-
createElementVNode("div",
|
|
95747
|
+
createElementVNode("div", _hoisted_47$4, [
|
|
95743
95748
|
createVNode(CIcon, {
|
|
95744
95749
|
color: "var(--p-text2)",
|
|
95745
95750
|
icon: "presentation",
|
|
95746
95751
|
size: "32"
|
|
95747
95752
|
})
|
|
95748
95753
|
]),
|
|
95749
|
-
createElementVNode("div",
|
|
95750
|
-
createElementVNode("h3",
|
|
95751
|
-
createElementVNode("p",
|
|
95754
|
+
createElementVNode("div", _hoisted_48$4, [
|
|
95755
|
+
createElementVNode("h3", _hoisted_49$4, toDisplayString(item.name), 1),
|
|
95756
|
+
createElementVNode("p", _hoisted_50$4, toDisplayString(formatCanvasType(item.content_type)), 1)
|
|
95752
95757
|
]),
|
|
95753
|
-
createElementVNode("div",
|
|
95754
|
-
], 10,
|
|
95758
|
+
createElementVNode("div", _hoisted_51$2, toDisplayString(item.folder?.name || ""), 1)
|
|
95759
|
+
], 10, _hoisted_46$4);
|
|
95755
95760
|
}), 128))
|
|
95756
95761
|
]),
|
|
95757
|
-
filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div",
|
|
95762
|
+
filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_52$2, [
|
|
95758
95763
|
createElementVNode("span", {
|
|
95759
95764
|
class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
|
|
95760
95765
|
onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "canvases")
|
|
@@ -95769,7 +95774,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95769
95774
|
])) : createCommentVNode("", true)
|
|
95770
95775
|
])) : createCommentVNode("", true)
|
|
95771
95776
|
]),
|
|
95772
|
-
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div",
|
|
95777
|
+
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_53$2, [
|
|
95773
95778
|
createVNode(CIcon, {
|
|
95774
95779
|
class: "text-6xl",
|
|
95775
95780
|
color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
|
|
@@ -95780,9 +95785,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95780
95785
|
class: normalizeClass(searchError.value ? "text-error font-semibold" : "text-text2")
|
|
95781
95786
|
}, toDisplayString(searchError.value || unref(t)("canvasUI.CGlobalSearch.noResults")), 3)
|
|
95782
95787
|
])) : createCommentVNode("", true)
|
|
95783
|
-
])) : (openBlock(), createElementBlock("div",
|
|
95784
|
-
createElementVNode("div",
|
|
95785
|
-
createElementVNode("div",
|
|
95788
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_54$1, [
|
|
95789
|
+
createElementVNode("div", _hoisted_55$1, [
|
|
95790
|
+
createElementVNode("div", _hoisted_56$1, [
|
|
95786
95791
|
searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
|
|
95787
95792
|
key: 0,
|
|
95788
95793
|
class: "mr-2",
|
|
@@ -95796,8 +95801,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95796
95801
|
icon: "presentation",
|
|
95797
95802
|
size: "16"
|
|
95798
95803
|
})),
|
|
95799
|
-
createElementVNode("span",
|
|
95800
|
-
createElementVNode("span",
|
|
95804
|
+
createElementVNode("span", _hoisted_57$1, toDisplayString(searchType.value === "content" ? unref(t)("canvasUI.CAlgoliaSearch.sections.content") : unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
|
|
95805
|
+
createElementVNode("span", _hoisted_58$1, " (" + toDisplayString(searchType.value === "content" ? filteredContentFiles.value.length : filteredCanvasFiles.value.length) + ") ", 1)
|
|
95801
95806
|
]),
|
|
95802
95807
|
createElementVNode("div", null, [
|
|
95803
95808
|
(openBlock(true), createElementBlock(Fragment, null, renderList(searchType.value === "content" ? filteredContentFiles.value : filteredCanvasFiles.value, (item) => {
|
|
@@ -95822,7 +95827,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95822
95827
|
"object-fit": "cover",
|
|
95823
95828
|
src: item.picture_url || "",
|
|
95824
95829
|
width: "72"
|
|
95825
|
-
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div",
|
|
95830
|
+
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_60$1, [
|
|
95826
95831
|
searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
|
|
95827
95832
|
key: 0,
|
|
95828
95833
|
color: "var(--p-text2)",
|
|
@@ -95835,15 +95840,15 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95835
95840
|
size: "32"
|
|
95836
95841
|
}))
|
|
95837
95842
|
])),
|
|
95838
|
-
createElementVNode("div",
|
|
95839
|
-
createElementVNode("h3",
|
|
95840
|
-
createElementVNode("p",
|
|
95843
|
+
createElementVNode("div", _hoisted_61$1, [
|
|
95844
|
+
createElementVNode("h3", _hoisted_62$1, toDisplayString(item.name), 1),
|
|
95845
|
+
createElementVNode("p", _hoisted_63$1, toDisplayString(searchType.value === "content" ? item.type === "folder" ? "Folder" : item.content_type || "PDF" : formatCanvasType(item.content_type)), 1)
|
|
95841
95846
|
]),
|
|
95842
|
-
createElementVNode("div",
|
|
95843
|
-
], 10,
|
|
95847
|
+
createElementVNode("div", _hoisted_64$1, toDisplayString(searchType.value === "content" && item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
|
|
95848
|
+
], 10, _hoisted_59$1);
|
|
95844
95849
|
}), 128))
|
|
95845
95850
|
]),
|
|
95846
|
-
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div",
|
|
95851
|
+
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_65$1, [
|
|
95847
95852
|
createVNode(CIcon, {
|
|
95848
95853
|
class: "text-6xl",
|
|
95849
95854
|
color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
|
|
@@ -95857,7 +95862,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95857
95862
|
])
|
|
95858
95863
|
]))
|
|
95859
95864
|
]),
|
|
95860
|
-
!showRecentView.value ? (openBlock(), createElementBlock("div",
|
|
95865
|
+
!showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_66$1, [
|
|
95861
95866
|
createVNode(CShortcut, null, {
|
|
95862
95867
|
default: withCtx(() => [
|
|
95863
95868
|
createVNode(CShortcutIcon, { icon: "arrow-up" }),
|
|
@@ -95899,7 +95904,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95899
95904
|
}
|
|
95900
95905
|
});
|
|
95901
95906
|
|
|
95902
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-
|
|
95907
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-14d06208"]]);
|
|
95903
95908
|
|
|
95904
95909
|
const BulletListExtended = BulletList.extend({
|
|
95905
95910
|
addOptions() {
|
|
@@ -113049,7 +113054,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113049
113054
|
},
|
|
113050
113055
|
isAnyTypeOfAdmin: {
|
|
113051
113056
|
type: Boolean
|
|
113052
|
-
}
|
|
113057
|
+
},
|
|
113058
|
+
excludedTags: {}
|
|
113053
113059
|
},
|
|
113054
113060
|
emits: ["open", "details", "edit", "create", "convert", "createFromTemplate", "move", "manageDistribution"],
|
|
113055
113061
|
setup(__props, {
|
|
@@ -113173,8 +113179,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113173
113179
|
const isLoadingTable = computed(() => isLoading.value || isBulkDeleting.value);
|
|
113174
113180
|
const filteredData = computed(() => {
|
|
113175
113181
|
if (!search.value) return fetchedData.value;
|
|
113176
|
-
const currSearch =
|
|
113177
|
-
return fetchedData.value.filter(
|
|
113182
|
+
const currSearch = search.value.toLowerCase();
|
|
113183
|
+
return fetchedData.value.filter(item => item.name.toLowerCase().includes(currSearch) || item.tags?.some(tag => tag.toLowerCase().includes(currSearch)));
|
|
113178
113184
|
});
|
|
113179
113185
|
const showBulkToolbar = computed(() => isTemplateFolderEnabled.value ? selectedItemIds.value.length > 0 : tableRef.value?.selectedRowsCount);
|
|
113180
113186
|
const bulkToolbarCount = computed(() => isTemplateFolderEnabled.value ? totalCount.value : tableRef.value?.pageRowsCount ?? 0);
|
|
@@ -113835,7 +113841,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113835
113841
|
isFetchingData.value = true;
|
|
113836
113842
|
const response = await props.folderFetcher?.({
|
|
113837
113843
|
folder_id: params.folder_id,
|
|
113838
|
-
entity: CoreFolderEntityType.Template
|
|
113844
|
+
entity: CoreFolderEntityType.Template,
|
|
113845
|
+
tags__not_in: props.excludedTags?.length ? props.excludedTags.join(',') : undefined
|
|
113839
113846
|
});
|
|
113840
113847
|
fetchedData.value = [...(response.folders ?? []).map(folder => ({
|
|
113841
113848
|
type: 'folder',
|
|
@@ -113902,7 +113909,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113902
113909
|
is_template: props.canvasType === 'template' || props.canvasType === 'section-template',
|
|
113903
113910
|
is_section: props.canvasType === 'section-template',
|
|
113904
113911
|
fields: fetchFields.join(','),
|
|
113905
|
-
id__in: idsToInclude?.length ? idsToInclude.slice(0, requestParams.page_size).join(',') : undefined
|
|
113912
|
+
id__in: idsToInclude?.length ? idsToInclude.slice(0, requestParams.page_size).join(',') : undefined,
|
|
113913
|
+
tags__not_in: props.excludedTags?.length ? props.excludedTags.join(',') : undefined
|
|
113906
113914
|
})];
|
|
113907
113915
|
|
|
113908
113916
|
// only show all recommended sections if on the first page
|
|
@@ -113913,7 +113921,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113913
113921
|
is_template: props.canvasType === 'template' || props.canvasType === 'section-template',
|
|
113914
113922
|
is_section: props.canvasType === 'section-template',
|
|
113915
113923
|
fields: fetchFields.join(','),
|
|
113916
|
-
id__in: recommendedIds.value.join(',')
|
|
113924
|
+
id__in: recommendedIds.value.join(','),
|
|
113925
|
+
tags__not_in: props.excludedTags?.length ? props.excludedTags.join(',') : undefined
|
|
113917
113926
|
}));
|
|
113918
113927
|
const [response, recommendedResponse] = await Promise.all(requestPromises);
|
|
113919
113928
|
if (recommendedResponse && recommendedResponse.results?.length) {
|
|
@@ -113945,7 +113954,8 @@ const _sfc_main$4E = /*@__PURE__*/defineComponent({
|
|
|
113945
113954
|
isFetchingLevel.value = true;
|
|
113946
113955
|
const response = await props.folderFetcher?.({
|
|
113947
113956
|
folder_id: folderId,
|
|
113948
|
-
entity: CoreFolderEntityType.Template
|
|
113957
|
+
entity: CoreFolderEntityType.Template,
|
|
113958
|
+
tags__not_in: props.excludedTags?.length ? props.excludedTags.join(',') : undefined
|
|
113949
113959
|
});
|
|
113950
113960
|
if (response?.id) {
|
|
113951
113961
|
// TODO: filter out selected items once bulk actions are implemented
|