@pitcher/canvas-ui 2025.12.16-082724-beta → 2025.12.16-084534-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 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-06d0d22c] {
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 {
@@ -88834,7 +88838,9 @@ const UI_API_METHOD_TYPES = {
88834
88838
  UI_APP_LOADED: "ui_app_loaded",
88835
88839
  UI_APP_RESIZE: "ui_app_resize",
88836
88840
  UI_CLOSE_CANVAS_SECTION_EXECUTION: "ui_close_canvas_section_execution",
88837
- UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer"
88841
+ UI_CLOSE_CANVAS_DRAWER: "ui_close_canvas_drawer",
88842
+ UI_OPEN_GLOBAL_POPUP: "ui_open_global_popup",
88843
+ UI_CLOSE_GLOBAL_POPUP: "ui_close_global_popup"
88838
88844
  };
88839
88845
  const UI_MESSAGE_TYPES = {
88840
88846
  UI_MEETING_CANCELED: "ui_meeting_canceled",
@@ -88886,10 +88892,25 @@ async function selectAgendaContent$1(payload = {}) {
88886
88892
  const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_SELECT_AGENDA_CONTENT, payload);
88887
88893
  return response.data;
88888
88894
  }
88895
+ async function openGlobalPopup(appName, extraContext) {
88896
+ const pr = await usePostRobot();
88897
+ const payload = {
88898
+ app_name: appName,
88899
+ extra_context: extraContext
88900
+ };
88901
+ const response = await pr.send(window.parent, UI_API_METHOD_TYPES.UI_OPEN_GLOBAL_POPUP, payload);
88902
+ return response.data;
88903
+ }
88904
+ async function closeGlobalPopup() {
88905
+ const pr = await usePostRobot();
88906
+ await pr.send(window.parent, UI_API_METHOD_TYPES.UI_CLOSE_GLOBAL_POPUP, {});
88907
+ }
88889
88908
 
88890
88909
  const contentUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
88891
88910
  __proto__: null,
88911
+ closeGlobalPopup,
88892
88912
  open: open$1,
88913
+ openGlobalPopup,
88893
88914
  preselectSfdcMeetingId,
88894
88915
  selectAgendaContent: selectAgendaContent$1,
88895
88916
  selectCollectionContent: selectCollectionContent$1,
@@ -101012,7 +101033,8 @@ function useFilterSuggestions(options = {}) {
101012
101033
  include_draft_values: options.includeDraftValues,
101013
101034
  owner_id: options.ownerId?.toString(),
101014
101035
  page_size: options.limit || 100,
101015
- and: constraints
101036
+ and: constraints,
101037
+ tags__not_in: options.tagsNotIn?.length ? options.tagsNotIn.join(",") : void 0
101016
101038
  });
101017
101039
  const result = {
101018
101040
  suggestions: response.results?.map((item) => ({
@@ -101104,7 +101126,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101104
101126
  limit: { default: 100 },
101105
101127
  externalFilters: { default: () => ({}) },
101106
101128
  isDependentField: { type: Boolean, default: false },
101107
- systemFilteredIds: { default: void 0 }
101129
+ systemFilteredIds: { default: void 0 },
101130
+ tagsNotIn: { default: () => [] }
101108
101131
  },
101109
101132
  emits: ["update:modelValue", "clear"],
101110
101133
  setup(__props, { emit: __emit }) {
@@ -101130,7 +101153,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101130
101153
  isSection: props.isSection,
101131
101154
  isTemplate: props.isTemplate,
101132
101155
  ownerId: props.ownerId,
101133
- limit: props.limit
101156
+ limit: props.limit,
101157
+ tagsNotIn: props.tagsNotIn
101134
101158
  });
101135
101159
  const { isEnabled, debouncedFetch, cleanup, isLoading } = filterSuggestions;
101136
101160
  const { handleFetch } = useMetadataSearch({ includeSearchTermAsOption: true });
@@ -101208,7 +101232,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101208
101232
  isTemplate: props.isTemplate,
101209
101233
  key: props.filterKey,
101210
101234
  ownerId: props.ownerId,
101211
- fetchAllUnique: true
101235
+ fetchAllUnique: true,
101236
+ tagsNotIn: props.tagsNotIn
101212
101237
  });
101213
101238
  return searchResults;
101214
101239
  }
@@ -101444,7 +101469,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101444
101469
  }
101445
101470
  });
101446
101471
 
101447
- const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-06d0d22c"]]);
101472
+ const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-14ceb850"]]);
101448
101473
 
101449
101474
  const _hoisted_1$4h = ["v-bind"];
101450
101475
  const _hoisted_2$38 = { class: "flex items-center gap-2 px-6 font-size-4" };
@@ -103224,7 +103249,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103224
103249
  customFilterComponents: {},
103225
103250
  enableDependentFilters: { type: Boolean },
103226
103251
  dependentFiltersEntity: { default: "file" },
103227
- contentType: {}
103252
+ contentType: {},
103253
+ tagsNotIn: { default: () => [] }
103228
103254
  },
103229
103255
  emits: ["update:filters", "update:search", "update:searchIn"],
103230
103256
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -103409,7 +103435,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103409
103435
  searchMode: "fuzzy",
103410
103436
  threshold: 0.3,
103411
103437
  fetchAllUnique: true,
103412
- contentType: props.contentType
103438
+ contentType: props.contentType,
103439
+ tagsNotIn: props.tagsNotIn
103413
103440
  });
103414
103441
  }
103415
103442
  function onUpdateModelValue(f, value) {
@@ -103643,8 +103670,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103643
103670
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103644
103671
  "owner-id": _ctx.ownerId,
103645
103672
  "system-filtered-ids": systemFilteredIds.value,
103673
+ "tags-not-in": _ctx.tagsNotIn,
103646
103674
  "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"]);
103675
+ }, 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
103676
  }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
103649
103677
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedCustomFilterComponents.value, (cc) => {
103650
103678
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[cc.componentName]), {
@@ -103665,8 +103693,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103665
103693
  options: cc.options ?? unref(getFilterOptions)(cc.type, cc.options),
103666
103694
  "owner-id": _ctx.ownerId,
103667
103695
  "system-filtered-ids": systemFilteredIds.value,
103696
+ "tags-not-in": _ctx.tagsNotIn,
103668
103697
  "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"]);
103698
+ }, 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
103699
  }), 128)),
103671
103700
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedFilters.value, (f) => {
103672
103701
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[f.componentName]), {
@@ -103687,8 +103716,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103687
103716
  options: unref(getFilterOptions)(f.type, f.options),
103688
103717
  "owner-id": _ctx.ownerId,
103689
103718
  "system-filtered-ids": systemFilteredIds.value,
103719
+ "tags-not-in": _ctx.tagsNotIn,
103690
103720
  "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"]);
103721
+ }, 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
103722
  }), 128))
103693
103723
  ], 64))
103694
103724
  ], 64)) : createCommentVNode("", true),
@@ -103765,8 +103795,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103765
103795
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103766
103796
  "owner-id": _ctx.ownerId,
103767
103797
  "system-filtered-ids": systemFilteredIds.value,
103798
+ "tags-not-in": _ctx.tagsNotIn,
103768
103799
  "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"]);
103800
+ }, 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
103801
  }), 128))
103771
103802
  ]),
103772
103803
  _: 2
@@ -111983,7 +112014,10 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
111983
112014
  order: 'asc'
111984
112015
  })
111985
112016
  },
111986
- viewMode: {}
112017
+ viewMode: {},
112018
+ excludedTags: {
112019
+ default: () => []
112020
+ }
111987
112021
  },
111988
112022
  emits: ["search", "create:template", "create:folder", "convert", "update:filter-values", "breadcrumb:click", "move", "select", "restoreColumns", "sort-changed", "toggle-view-mode"],
111989
112023
  setup(__props, {
@@ -112247,11 +112281,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112247
112281
  "initial-search-value": _ctx.search,
112248
112282
  "is-section": _ctx.canvasType === 'section-template',
112249
112283
  "is-template": "",
112250
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112284
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112285
+ "tags-not-in": _ctx.excludedTags
112251
112286
  }, popularityProps.value, {
112252
112287
  "onUpdate:filters": _cache[4] || (_cache[4] = $event => emit('update:filter-values', $event)),
112253
112288
  "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, {
112289
+ }), 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
112290
  key: 0,
112256
112291
  circle: "",
112257
112292
  onClick: _cache[6] || (_cache[6] = $event => _ctx.$emit('toggle-view-mode'))
@@ -112310,11 +112345,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112310
112345
  "initial-search-value": _ctx.search,
112311
112346
  "is-section": _ctx.canvasType === 'section-template',
112312
112347
  "is-template": "",
112313
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112348
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112349
+ "tags-not-in": _ctx.excludedTags
112314
112350
  }, popularityProps.value, {
112315
112351
  "onUpdate:filters": _cache[12] || (_cache[12] = $event => emit('update:filter-values', $event)),
112316
112352
  "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);
112353
+ }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]))], 2);
112318
112354
  };
112319
112355
  }
112320
112356
  });
@@ -114447,6 +114483,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114447
114483
  }),
114448
114484
  currentSort: currentSort.value,
114449
114485
  "custom-filter-components": unref(dataFilterComponents),
114486
+ "excluded-tags": _ctx.excludedTags,
114450
114487
  "hide-convert": isImpact.value || _ctx.hideConvert,
114451
114488
  "hide-create": isImpact.value,
114452
114489
  "hide-view": !unref(launchDarkly).allow_canvases_tables_columns_settings,
@@ -114468,7 +114505,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114468
114505
  onSortChanged: onSortChanged,
114469
114506
  onToggleViewMode: toggleViewMode,
114470
114507
  "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", {
114508
+ }, 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
114509
  key: 0,
114473
114510
  class: "flex bg-base rounded-2 mr-3",
114474
114511
  style: normalizeStyle({