@pitcher/canvas-ui 2025.12.16-082724-beta → 2025.12.16-082908-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 +1 -1
- package/canvas-ui.js +60 -78
- package/canvas-ui.js.map +1 -1
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +6 -1
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +2 -2
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +6 -1
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +2 -0
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +20 -2
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +8 -1
- package/lib/components/filters/CSearchFilter.vue.d.ts +2 -0
- package/lib/composables/useFilterSuggestions.d.ts +1 -0
- package/lib/composables/useMetadataSearch.d.ts +4 -2
- package/lib/sdk/api/HighLevelApi.d.ts +0 -2
- package/lib/sdk/api/modules/query.d.ts +1 -41
- package/lib/sdk/api/modules/ui/content.ui.d.ts +22 -1
- package/lib/sdk/api/modules/ui/index.d.ts +2 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +12 -0
- package/lib/sdk/main.d.ts +6 -6
- package/lib/sdk/payload.types.d.ts +0 -43
- package/lib/types/app.d.ts +1 -1
- package/lib/types/core/MetadataFilter.d.ts +1 -0
- package/locale/de.json +8 -0
- package/locale/el.json +9 -9
- package/locale/en.json +9 -9
- package/locale/es.json +9 -9
- package/locale/fr.json +9 -9
- package/locale/it.json +8 -0
- package/locale/ja.json +8 -0
- package/locale/nl.json +8 -0
- package/locale/pl.json +8 -0
- package/locale/pt-br.json +8 -0
- package/locale/pt.json +8 -0
- package/locale/th.json +8 -0
- package/locale/tr.json +8 -0
- package/locale/zh.json +8 -0
- package/package.json +1 -1
package/canvas-ui.css
CHANGED
|
@@ -820,7 +820,7 @@ button[data-v-338ca99c]:focus {
|
|
|
820
820
|
.c-virtual-table__footer,
|
|
821
821
|
.c-virtual-table__content {
|
|
822
822
|
border-top: 1px solid var(--4cc1f1b0);
|
|
823
|
-
}.c-search-filter__popover[data-v-
|
|
823
|
+
}.c-search-filter__popover[data-v-14ceb850] {
|
|
824
824
|
box-shadow: 0px 7px 24px 0px rgba(0, 0, 0, 0.1);
|
|
825
825
|
}.c-select-filter__popover[data-v-69bc4c9f] {
|
|
826
826
|
box-shadow: 0px 7px 24px 0px rgba(0, 0, 0, 0.1);
|
package/canvas-ui.js
CHANGED
|
@@ -80326,7 +80326,8 @@ function useMetadataSearch(options = {}) {
|
|
|
80326
80326
|
threshold = void 0,
|
|
80327
80327
|
// only used for fuzzy search
|
|
80328
80328
|
fetchAllUnique = false,
|
|
80329
|
-
contentType = void 0
|
|
80329
|
+
contentType = void 0,
|
|
80330
|
+
tagsNotIn = void 0
|
|
80330
80331
|
} = {}) {
|
|
80331
80332
|
if (!metadataSearch || !searchTerm) {
|
|
80332
80333
|
return [];
|
|
@@ -80346,7 +80347,8 @@ function useMetadataSearch(options = {}) {
|
|
|
80346
80347
|
searchMode,
|
|
80347
80348
|
threshold,
|
|
80348
80349
|
fetch_all_unique: fetchAllUnique,
|
|
80349
|
-
content_type: contentType
|
|
80350
|
+
content_type: contentType,
|
|
80351
|
+
tags_not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
|
|
80350
80352
|
});
|
|
80351
80353
|
const autocompleteOptions = [];
|
|
80352
80354
|
const addedValues = /* @__PURE__ */ new Set();
|
|
@@ -80396,7 +80398,8 @@ function useMetadataSearch(options = {}) {
|
|
|
80396
80398
|
key = "search_data",
|
|
80397
80399
|
ownerId = null,
|
|
80398
80400
|
limit = 100,
|
|
80399
|
-
and = []
|
|
80401
|
+
and = [],
|
|
80402
|
+
tagsNotIn = void 0
|
|
80400
80403
|
} = {}) {
|
|
80401
80404
|
if (!entity) {
|
|
80402
80405
|
return { popular: [], all: [] };
|
|
@@ -80416,7 +80419,8 @@ function useMetadataSearch(options = {}) {
|
|
|
80416
80419
|
include_draft_values: includeDraftValues,
|
|
80417
80420
|
owner_id: ownerId?.toString(),
|
|
80418
80421
|
page_size: limit,
|
|
80419
|
-
and
|
|
80422
|
+
and,
|
|
80423
|
+
tags__not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
|
|
80420
80424
|
});
|
|
80421
80425
|
if (response?.results && Array.isArray(response.results)) {
|
|
80422
80426
|
return {
|
|
@@ -87811,49 +87815,6 @@ function crmSmartDeleteObjects(payload) {
|
|
|
87811
87815
|
}
|
|
87812
87816
|
return highLevelApi.API.request("crm_smart_delete_objects", payload);
|
|
87813
87817
|
}
|
|
87814
|
-
function crmCreate(payload) {
|
|
87815
|
-
if (!payload) {
|
|
87816
|
-
return Promise.reject(new Error("Payload is required"));
|
|
87817
|
-
}
|
|
87818
|
-
if (!payload.sobject || typeof payload.sobject !== "string" || payload.sobject.trim() === "") {
|
|
87819
|
-
return Promise.reject(new Error("sobject is required and must be a non-empty string"));
|
|
87820
|
-
}
|
|
87821
|
-
if (!payload.records || !Array.isArray(payload.records) || payload.records.length === 0) {
|
|
87822
|
-
return Promise.reject(new Error("records is required and must be a non-empty array"));
|
|
87823
|
-
}
|
|
87824
|
-
for (let i = 0; i < payload.records.length; i++) {
|
|
87825
|
-
const record = payload.records[i];
|
|
87826
|
-
if (!record || typeof record !== "object" || Array.isArray(record)) {
|
|
87827
|
-
return Promise.reject(
|
|
87828
|
-
new Error(`records contains invalid element at index ${i}. All records must be valid objects.`)
|
|
87829
|
-
);
|
|
87830
|
-
}
|
|
87831
|
-
}
|
|
87832
|
-
return highLevelApi.API.request("crm_create", payload);
|
|
87833
|
-
}
|
|
87834
|
-
function crmUpsert(payload) {
|
|
87835
|
-
if (!payload) {
|
|
87836
|
-
return Promise.reject(new Error("Payload is required"));
|
|
87837
|
-
}
|
|
87838
|
-
if (!payload.sobject || typeof payload.sobject !== "string" || payload.sobject.trim() === "") {
|
|
87839
|
-
return Promise.reject(new Error("sobject is required and must be a non-empty string"));
|
|
87840
|
-
}
|
|
87841
|
-
if (!payload.records || !Array.isArray(payload.records) || payload.records.length === 0) {
|
|
87842
|
-
return Promise.reject(new Error("records is required and must be a non-empty array"));
|
|
87843
|
-
}
|
|
87844
|
-
if (!payload.external_id_field || typeof payload.external_id_field !== "string" || payload.external_id_field.trim() === "") {
|
|
87845
|
-
return Promise.reject(new Error("external_id_field is required and must be a non-empty string"));
|
|
87846
|
-
}
|
|
87847
|
-
for (let i = 0; i < payload.records.length; i++) {
|
|
87848
|
-
const record = payload.records[i];
|
|
87849
|
-
if (!record || typeof record !== "object" || Array.isArray(record)) {
|
|
87850
|
-
return Promise.reject(
|
|
87851
|
-
new Error(`records contains invalid element at index ${i}. All records must be valid objects.`)
|
|
87852
|
-
);
|
|
87853
|
-
}
|
|
87854
|
-
}
|
|
87855
|
-
return highLevelApi.API.request("crm_upsert", payload);
|
|
87856
|
-
}
|
|
87857
87818
|
|
|
87858
87819
|
function getFolders(payload) {
|
|
87859
87820
|
return this.API.request("get_folders", payload);
|
|
@@ -87950,14 +87911,12 @@ const modules = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
87950
87911
|
createFavorite,
|
|
87951
87912
|
createFile,
|
|
87952
87913
|
createFolder,
|
|
87953
|
-
crmCreate,
|
|
87954
87914
|
crmQuery,
|
|
87955
87915
|
crmSmartDeleteObjects,
|
|
87956
87916
|
crmSmartObjectMetadata,
|
|
87957
87917
|
crmSmartObjectValidationRules,
|
|
87958
87918
|
crmSmartQuery,
|
|
87959
87919
|
crmSmartUpsertObjects,
|
|
87960
|
-
crmUpsert,
|
|
87961
87920
|
deleteCanvas,
|
|
87962
87921
|
deleteEvent,
|
|
87963
87922
|
deleteFavorite,
|
|
@@ -88546,15 +88505,6 @@ function getTopPitcherWindow(current = window) {
|
|
|
88546
88505
|
}
|
|
88547
88506
|
|
|
88548
88507
|
const TRUNCATE_LENGTH_TRIGGER = 10;
|
|
88549
|
-
const RAW_PAYLOAD_METHODS = [
|
|
88550
|
-
"crm_create",
|
|
88551
|
-
"crm_upsert",
|
|
88552
|
-
"crm_smart_query",
|
|
88553
|
-
"crm_smart_object_metadata",
|
|
88554
|
-
"crm_smart_object_validation_rules",
|
|
88555
|
-
"crm_smart_upsert_objects",
|
|
88556
|
-
"crm_smart_delete_objects"
|
|
88557
|
-
];
|
|
88558
88508
|
function updateOnlineHandlersEnv(env) {
|
|
88559
88509
|
env && setEnv(env);
|
|
88560
88510
|
}
|
|
@@ -88620,8 +88570,7 @@ class LowLevelApi extends EventEmitter {
|
|
|
88620
88570
|
throw new Error("unsupported response status");
|
|
88621
88571
|
}
|
|
88622
88572
|
};
|
|
88623
|
-
const
|
|
88624
|
-
const payload = shouldSkipSnakeCase ? cloneDeep(body) : cloneDeep(snakeCaseKeys(body));
|
|
88573
|
+
const payload = cloneDeep(snakeCaseKeys(body));
|
|
88625
88574
|
this.callbacks[id] = {
|
|
88626
88575
|
dispatched_at: Date.now(),
|
|
88627
88576
|
type,
|
|
@@ -88834,7 +88783,9 @@ const UI_API_METHOD_TYPES = {
|
|
|
88834
88783
|
UI_APP_LOADED: "ui_app_loaded",
|
|
88835
88784
|
UI_APP_RESIZE: "ui_app_resize",
|
|
88836
88785
|
UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution",
|
|
88837
|
-
UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer"
|
|
88786
|
+
UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer",
|
|
88787
|
+
UI_OPEN_GLOBAL_POPUP: "ui_open_global_popup",
|
|
88788
|
+
UI_CLOSE_GLOBAL_POPUP: "ui_close_global_popup"
|
|
88838
88789
|
};
|
|
88839
88790
|
const UI_MESSAGE_TYPES = {
|
|
88840
88791
|
UI_MEETING_CANCELED: "ui_meeting_canceled",
|
|
@@ -88886,10 +88837,25 @@ async function selectAgendaContent$1(payload = {}) {
|
|
|
88886
88837
|
const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_AGENDA_CONTENT, payload);
|
|
88887
88838
|
return response.data;
|
|
88888
88839
|
}
|
|
88840
|
+
async function openGlobalPopup(appName, extraContext) {
|
|
88841
|
+
const pr = await usePostRobot();
|
|
88842
|
+
const payload = {
|
|
88843
|
+
app_name: appName,
|
|
88844
|
+
extra_context: extraContext
|
|
88845
|
+
};
|
|
88846
|
+
const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_OPEN_GLOBAL_POPUP, payload);
|
|
88847
|
+
return response.data;
|
|
88848
|
+
}
|
|
88849
|
+
async function closeGlobalPopup() {
|
|
88850
|
+
const pr = await usePostRobot();
|
|
88851
|
+
await pr.send(window.parent, UI_API_METHOD_TYPES.UI_CLOSE_GLOBAL_POPUP, {});
|
|
88852
|
+
}
|
|
88889
88853
|
|
|
88890
88854
|
const contentUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
88891
88855
|
__proto__: null,
|
|
88856
|
+
closeGlobalPopup,
|
|
88892
88857
|
open: open$1,
|
|
88858
|
+
openGlobalPopup,
|
|
88893
88859
|
preselectSfdcMeetingId,
|
|
88894
88860
|
selectAgendaContent: selectAgendaContent$1,
|
|
88895
88861
|
selectCollectionContent: selectCollectionContent$1,
|
|
@@ -101012,7 +100978,8 @@ function useFilterSuggestions(options = {}) {
|
|
|
101012
100978
|
include_draft_values: options.includeDraftValues,
|
|
101013
100979
|
owner_id: options.ownerId?.toString(),
|
|
101014
100980
|
page_size: options.limit || 100,
|
|
101015
|
-
and: constraints
|
|
100981
|
+
and: constraints,
|
|
100982
|
+
tags__not_in: options.tagsNotIn?.length ? options.tagsNotIn.join(",") : void 0
|
|
101016
100983
|
});
|
|
101017
100984
|
const result = {
|
|
101018
100985
|
suggestions: response.results?.map((item) => ({
|
|
@@ -101104,7 +101071,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
|
|
|
101104
101071
|
limit: { default: 100 },
|
|
101105
101072
|
externalFilters: { default: () => ({}) },
|
|
101106
101073
|
isDependentField: { type: Boolean, default: false },
|
|
101107
|
-
systemFilteredIds: { default: void 0 }
|
|
101074
|
+
systemFilteredIds: { default: void 0 },
|
|
101075
|
+
tagsNotIn: { default: () => [] }
|
|
101108
101076
|
},
|
|
101109
101077
|
emits: ["update:modelValue", "clear"],
|
|
101110
101078
|
setup(__props, { emit: __emit }) {
|
|
@@ -101130,7 +101098,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
|
|
|
101130
101098
|
isSection: props.isSection,
|
|
101131
101099
|
isTemplate: props.isTemplate,
|
|
101132
101100
|
ownerId: props.ownerId,
|
|
101133
|
-
limit: props.limit
|
|
101101
|
+
limit: props.limit,
|
|
101102
|
+
tagsNotIn: props.tagsNotIn
|
|
101134
101103
|
});
|
|
101135
101104
|
const { isEnabled, debouncedFetch, cleanup, isLoading } = filterSuggestions;
|
|
101136
101105
|
const { handleFetch } = useMetadataSearch({ includeSearchTermAsOption: true });
|
|
@@ -101208,7 +101177,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
|
|
|
101208
101177
|
isTemplate: props.isTemplate,
|
|
101209
101178
|
key: props.filterKey,
|
|
101210
101179
|
ownerId: props.ownerId,
|
|
101211
|
-
fetchAllUnique: true
|
|
101180
|
+
fetchAllUnique: true,
|
|
101181
|
+
tagsNotIn: props.tagsNotIn
|
|
101212
101182
|
});
|
|
101213
101183
|
return searchResults;
|
|
101214
101184
|
}
|
|
@@ -101444,7 +101414,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
|
|
|
101444
101414
|
}
|
|
101445
101415
|
});
|
|
101446
101416
|
|
|
101447
|
-
const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-
|
|
101417
|
+
const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-14ceb850"]]);
|
|
101448
101418
|
|
|
101449
101419
|
const _hoisted_1$4h = ["v-bind"];
|
|
101450
101420
|
const _hoisted_2$38 = { class: "flex items-center gap-2 px-6 font-size-4" };
|
|
@@ -103224,7 +103194,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103224
103194
|
customFilterComponents: {},
|
|
103225
103195
|
enableDependentFilters: { type: Boolean },
|
|
103226
103196
|
dependentFiltersEntity: { default: "file" },
|
|
103227
|
-
contentType: {}
|
|
103197
|
+
contentType: {},
|
|
103198
|
+
tagsNotIn: { default: () => [] }
|
|
103228
103199
|
},
|
|
103229
103200
|
emits: ["update:filters", "update:search", "update:searchIn"],
|
|
103230
103201
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -103409,7 +103380,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103409
103380
|
searchMode: "fuzzy",
|
|
103410
103381
|
threshold: 0.3,
|
|
103411
103382
|
fetchAllUnique: true,
|
|
103412
|
-
contentType: props.contentType
|
|
103383
|
+
contentType: props.contentType,
|
|
103384
|
+
tagsNotIn: props.tagsNotIn
|
|
103413
103385
|
});
|
|
103414
103386
|
}
|
|
103415
103387
|
function onUpdateModelValue(f, value) {
|
|
@@ -103643,8 +103615,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103643
103615
|
options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
|
|
103644
103616
|
"owner-id": _ctx.ownerId,
|
|
103645
103617
|
"system-filtered-ids": systemFilteredIds.value,
|
|
103618
|
+
"tags-not-in": _ctx.tagsNotIn,
|
|
103646
103619
|
"onUpdate:modelValue": (v) => onUpdateDependentField(f, v)
|
|
103647
|
-
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
|
|
103620
|
+
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
|
|
103648
103621
|
}), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
103649
103622
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedCustomFilterComponents.value, (cc) => {
|
|
103650
103623
|
return openBlock(), createBlock(resolveDynamicComponent(componentMap[cc.componentName]), {
|
|
@@ -103665,8 +103638,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103665
103638
|
options: cc.options ?? unref(getFilterOptions)(cc.type, cc.options),
|
|
103666
103639
|
"owner-id": _ctx.ownerId,
|
|
103667
103640
|
"system-filtered-ids": systemFilteredIds.value,
|
|
103641
|
+
"tags-not-in": _ctx.tagsNotIn,
|
|
103668
103642
|
"onUpdate:modelValue": (v) => onUpdateModelValue(cc, v)
|
|
103669
|
-
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-custom", "is-dependent-field", "is-section", "is-template", "modelValue", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
|
|
103643
|
+
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-custom", "is-dependent-field", "is-section", "is-template", "modelValue", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
|
|
103670
103644
|
}), 128)),
|
|
103671
103645
|
(openBlock(true), createElementBlock(Fragment, null, renderList(computedFilters.value, (f) => {
|
|
103672
103646
|
return openBlock(), createBlock(resolveDynamicComponent(componentMap[f.componentName]), {
|
|
@@ -103687,8 +103661,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103687
103661
|
options: unref(getFilterOptions)(f.type, f.options),
|
|
103688
103662
|
"owner-id": _ctx.ownerId,
|
|
103689
103663
|
"system-filtered-ids": systemFilteredIds.value,
|
|
103664
|
+
"tags-not-in": _ctx.tagsNotIn,
|
|
103690
103665
|
"onUpdate:modelValue": (v) => onUpdateModelValue(f, v)
|
|
103691
|
-
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
|
|
103666
|
+
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
|
|
103692
103667
|
}), 128))
|
|
103693
103668
|
], 64))
|
|
103694
103669
|
], 64)) : createCommentVNode("", true),
|
|
@@ -103765,8 +103740,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
|
|
|
103765
103740
|
options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
|
|
103766
103741
|
"owner-id": _ctx.ownerId,
|
|
103767
103742
|
"system-filtered-ids": systemFilteredIds.value,
|
|
103743
|
+
"tags-not-in": _ctx.tagsNotIn,
|
|
103768
103744
|
"onUpdate:modelValue": (v) => section.are_fields_dependent ? onUpdateDependentField(f, v) : onUpdateModelValue(f, v)
|
|
103769
|
-
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
|
|
103745
|
+
}, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
|
|
103770
103746
|
}), 128))
|
|
103771
103747
|
]),
|
|
103772
103748
|
_: 2
|
|
@@ -111983,7 +111959,10 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
|
|
|
111983
111959
|
order: 'asc'
|
|
111984
111960
|
})
|
|
111985
111961
|
},
|
|
111986
|
-
viewMode: {}
|
|
111962
|
+
viewMode: {},
|
|
111963
|
+
excludedTags: {
|
|
111964
|
+
default: () => []
|
|
111965
|
+
}
|
|
111987
111966
|
},
|
|
111988
111967
|
emits: ["search", "create:template", "create:folder", "convert", "update:filter-values", "breadcrumb:click", "move", "select", "restoreColumns", "sort-changed", "toggle-view-mode"],
|
|
111989
111968
|
setup(__props, {
|
|
@@ -112247,11 +112226,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
|
|
|
112247
112226
|
"initial-search-value": _ctx.search,
|
|
112248
112227
|
"is-section": _ctx.canvasType === 'section-template',
|
|
112249
112228
|
"is-template": "",
|
|
112250
|
-
placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
|
|
112229
|
+
placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
|
|
112230
|
+
"tags-not-in": _ctx.excludedTags
|
|
112251
112231
|
}, popularityProps.value, {
|
|
112252
112232
|
"onUpdate:filters": _cache[4] || (_cache[4] = $event => emit('update:filter-values', $event)),
|
|
112253
112233
|
"onUpdate:search": _cache[5] || (_cache[5] = $event => emit('search', $event))
|
|
112254
|
-
}), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder"])]), createElementVNode("div", _hoisted_6$1m, [unref(launchDarkly).enable_template_folders && _ctx.canvasType !== 'section-template' ? withDirectives((openBlock(), createBlock(CButton, {
|
|
112234
|
+
}), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]), createElementVNode("div", _hoisted_6$1m, [unref(launchDarkly).enable_template_folders && _ctx.canvasType !== 'section-template' ? withDirectives((openBlock(), createBlock(CButton, {
|
|
112255
112235
|
key: 0,
|
|
112256
112236
|
circle: "",
|
|
112257
112237
|
onClick: _cache[6] || (_cache[6] = $event => _ctx.$emit('toggle-view-mode'))
|
|
@@ -112310,11 +112290,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
|
|
|
112310
112290
|
"initial-search-value": _ctx.search,
|
|
112311
112291
|
"is-section": _ctx.canvasType === 'section-template',
|
|
112312
112292
|
"is-template": "",
|
|
112313
|
-
placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
|
|
112293
|
+
placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
|
|
112294
|
+
"tags-not-in": _ctx.excludedTags
|
|
112314
112295
|
}, popularityProps.value, {
|
|
112315
112296
|
"onUpdate:filters": _cache[12] || (_cache[12] = $event => emit('update:filter-values', $event)),
|
|
112316
112297
|
"onUpdate:search": _cache[13] || (_cache[13] = $event => emit('search', $event))
|
|
112317
|
-
}), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder"])]))], 2);
|
|
112298
|
+
}), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]))], 2);
|
|
112318
112299
|
};
|
|
112319
112300
|
}
|
|
112320
112301
|
});
|
|
@@ -114447,6 +114428,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
|
|
|
114447
114428
|
}),
|
|
114448
114429
|
currentSort: currentSort.value,
|
|
114449
114430
|
"custom-filter-components": unref(dataFilterComponents),
|
|
114431
|
+
"excluded-tags": _ctx.excludedTags,
|
|
114450
114432
|
"hide-convert": isImpact.value || _ctx.hideConvert,
|
|
114451
114433
|
"hide-create": isImpact.value,
|
|
114452
114434
|
"hide-view": !unref(launchDarkly).allow_canvases_tables_columns_settings,
|
|
@@ -114468,7 +114450,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
|
|
|
114468
114450
|
onSortChanged: onSortChanged,
|
|
114469
114451
|
onToggleViewMode: toggleViewMode,
|
|
114470
114452
|
"onUpdate:filterValues": _cache[5] || (_cache[5] = $event => onTableChange('filterValuesChanged', $event))
|
|
114471
|
-
}, null, 8, ["breadcrumbs", "canvas-type", "class", "currentSort", "custom-filter-components", "hide-convert", "hide-create", "hide-view", "is-loading-items", "is-template-folder-enabled", "metadata-filter-values", "recommended-ids", "search", "tableColumnsSettings", "viewMode", "onMove", "onRestoreColumns", "onSelect"]), [[vShow, !showBulkToolbar.value]]), (isFetchingData.value || isLoadingTable.value) && isTemplateFolderEnabled.value && unref(viewMode) === 'list' ? (openBlock(), createElementBlock("div", {
|
|
114453
|
+
}, null, 8, ["breadcrumbs", "canvas-type", "class", "currentSort", "custom-filter-components", "excluded-tags", "hide-convert", "hide-create", "hide-view", "is-loading-items", "is-template-folder-enabled", "metadata-filter-values", "recommended-ids", "search", "tableColumnsSettings", "viewMode", "onMove", "onRestoreColumns", "onSelect"]), [[vShow, !showBulkToolbar.value]]), (isFetchingData.value || isLoadingTable.value) && isTemplateFolderEnabled.value && unref(viewMode) === 'list' ? (openBlock(), createElementBlock("div", {
|
|
114472
114454
|
key: 0,
|
|
114473
114455
|
class: "flex bg-base rounded-2 mr-3",
|
|
114474
114456
|
style: normalizeStyle({
|