@pitcher/canvas-ui 2025.12.12-135125-beta → 2025.12.12-75200

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-14ceb850] {
823
+ }.c-search-filter__popover[data-v-06d0d22c] {
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,8 +80326,7 @@ function useMetadataSearch(options = {}) {
80326
80326
  threshold = void 0,
80327
80327
  // only used for fuzzy search
80328
80328
  fetchAllUnique = false,
80329
- contentType = void 0,
80330
- tagsNotIn = void 0
80329
+ contentType = void 0
80331
80330
  } = {}) {
80332
80331
  if (!metadataSearch || !searchTerm) {
80333
80332
  return [];
@@ -80347,8 +80346,7 @@ function useMetadataSearch(options = {}) {
80347
80346
  searchMode,
80348
80347
  threshold,
80349
80348
  fetch_all_unique: fetchAllUnique,
80350
- content_type: contentType,
80351
- tags_not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
80349
+ content_type: contentType
80352
80350
  });
80353
80351
  const autocompleteOptions = [];
80354
80352
  const addedValues = /* @__PURE__ */ new Set();
@@ -80398,8 +80396,7 @@ function useMetadataSearch(options = {}) {
80398
80396
  key = "search_data",
80399
80397
  ownerId = null,
80400
80398
  limit = 100,
80401
- and = [],
80402
- tagsNotIn = void 0
80399
+ and = []
80403
80400
  } = {}) {
80404
80401
  if (!entity) {
80405
80402
  return { popular: [], all: [] };
@@ -80419,8 +80416,7 @@ function useMetadataSearch(options = {}) {
80419
80416
  include_draft_values: includeDraftValues,
80420
80417
  owner_id: ownerId?.toString(),
80421
80418
  page_size: limit,
80422
- and,
80423
- tags__not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
80419
+ and
80424
80420
  });
80425
80421
  if (response?.results && Array.isArray(response.results)) {
80426
80422
  return {
@@ -100961,8 +100957,7 @@ function useFilterSuggestions(options = {}) {
100961
100957
  include_draft_values: options.includeDraftValues,
100962
100958
  owner_id: options.ownerId?.toString(),
100963
100959
  page_size: options.limit || 100,
100964
- and: constraints,
100965
- tags__not_in: options.tagsNotIn?.length ? options.tagsNotIn.join(",") : void 0
100960
+ and: constraints
100966
100961
  });
100967
100962
  const result = {
100968
100963
  suggestions: response.results?.map((item) => ({
@@ -101054,8 +101049,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101054
101049
  limit: { default: 100 },
101055
101050
  externalFilters: { default: () => ({}) },
101056
101051
  isDependentField: { type: Boolean, default: false },
101057
- systemFilteredIds: { default: void 0 },
101058
- tagsNotIn: { default: () => [] }
101052
+ systemFilteredIds: { default: void 0 }
101059
101053
  },
101060
101054
  emits: ["update:modelValue", "clear"],
101061
101055
  setup(__props, { emit: __emit }) {
@@ -101081,8 +101075,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101081
101075
  isSection: props.isSection,
101082
101076
  isTemplate: props.isTemplate,
101083
101077
  ownerId: props.ownerId,
101084
- limit: props.limit,
101085
- tagsNotIn: props.tagsNotIn
101078
+ limit: props.limit
101086
101079
  });
101087
101080
  const { isEnabled, debouncedFetch, cleanup, isLoading } = filterSuggestions;
101088
101081
  const { handleFetch } = useMetadataSearch({ includeSearchTermAsOption: true });
@@ -101160,8 +101153,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101160
101153
  isTemplate: props.isTemplate,
101161
101154
  key: props.filterKey,
101162
101155
  ownerId: props.ownerId,
101163
- fetchAllUnique: true,
101164
- tagsNotIn: props.tagsNotIn
101156
+ fetchAllUnique: true
101165
101157
  });
101166
101158
  return searchResults;
101167
101159
  }
@@ -101397,7 +101389,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101397
101389
  }
101398
101390
  });
101399
101391
 
101400
- const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-14ceb850"]]);
101392
+ const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-06d0d22c"]]);
101401
101393
 
101402
101394
  const _hoisted_1$4h = ["v-bind"];
101403
101395
  const _hoisted_2$38 = { class: "flex items-center gap-2 px-6 font-size-4" };
@@ -103177,8 +103169,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103177
103169
  customFilterComponents: {},
103178
103170
  enableDependentFilters: { type: Boolean },
103179
103171
  dependentFiltersEntity: { default: "file" },
103180
- contentType: {},
103181
- tagsNotIn: { default: () => [] }
103172
+ contentType: {}
103182
103173
  },
103183
103174
  emits: ["update:filters", "update:search", "update:searchIn"],
103184
103175
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -103363,8 +103354,7 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103363
103354
  searchMode: "fuzzy",
103364
103355
  threshold: 0.3,
103365
103356
  fetchAllUnique: true,
103366
- contentType: props.contentType,
103367
- tagsNotIn: props.tagsNotIn
103357
+ contentType: props.contentType
103368
103358
  });
103369
103359
  }
103370
103360
  function onUpdateModelValue(f, value) {
@@ -103598,9 +103588,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103598
103588
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103599
103589
  "owner-id": _ctx.ownerId,
103600
103590
  "system-filtered-ids": systemFilteredIds.value,
103601
- "tags-not-in": _ctx.tagsNotIn,
103602
103591
  "onUpdate:modelValue": (v) => onUpdateDependentField(f, v)
103603
- }, 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"]);
103592
+ }, 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"]);
103604
103593
  }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
103605
103594
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedCustomFilterComponents.value, (cc) => {
103606
103595
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[cc.componentName]), {
@@ -103621,9 +103610,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103621
103610
  options: cc.options ?? unref(getFilterOptions)(cc.type, cc.options),
103622
103611
  "owner-id": _ctx.ownerId,
103623
103612
  "system-filtered-ids": systemFilteredIds.value,
103624
- "tags-not-in": _ctx.tagsNotIn,
103625
103613
  "onUpdate:modelValue": (v) => onUpdateModelValue(cc, v)
103626
- }, 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"]);
103614
+ }, 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"]);
103627
103615
  }), 128)),
103628
103616
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedFilters.value, (f) => {
103629
103617
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[f.componentName]), {
@@ -103644,9 +103632,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103644
103632
  options: unref(getFilterOptions)(f.type, f.options),
103645
103633
  "owner-id": _ctx.ownerId,
103646
103634
  "system-filtered-ids": systemFilteredIds.value,
103647
- "tags-not-in": _ctx.tagsNotIn,
103648
103635
  "onUpdate:modelValue": (v) => onUpdateModelValue(f, v)
103649
- }, 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"]);
103636
+ }, 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"]);
103650
103637
  }), 128))
103651
103638
  ], 64))
103652
103639
  ], 64)) : createCommentVNode("", true),
@@ -103723,9 +103710,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103723
103710
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103724
103711
  "owner-id": _ctx.ownerId,
103725
103712
  "system-filtered-ids": systemFilteredIds.value,
103726
- "tags-not-in": _ctx.tagsNotIn,
103727
103713
  "onUpdate:modelValue": (v) => section.are_fields_dependent ? onUpdateDependentField(f, v) : onUpdateModelValue(f, v)
103728
- }, 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"]);
103714
+ }, 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"]);
103729
103715
  }), 128))
103730
103716
  ]),
103731
103717
  _: 2
@@ -111942,10 +111928,7 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
111942
111928
  order: 'asc'
111943
111929
  })
111944
111930
  },
111945
- viewMode: {},
111946
- excludedTags: {
111947
- default: () => []
111948
- }
111931
+ viewMode: {}
111949
111932
  },
111950
111933
  emits: ["search", "create:template", "create:folder", "convert", "update:filter-values", "breadcrumb:click", "move", "select", "restoreColumns", "sort-changed", "toggle-view-mode"],
111951
111934
  setup(__props, {
@@ -112209,12 +112192,11 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112209
112192
  "initial-search-value": _ctx.search,
112210
112193
  "is-section": _ctx.canvasType === 'section-template',
112211
112194
  "is-template": "",
112212
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112213
- "tags-not-in": _ctx.excludedTags
112195
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112214
112196
  }, popularityProps.value, {
112215
112197
  "onUpdate:filters": _cache[4] || (_cache[4] = $event => emit('update:filter-values', $event)),
112216
112198
  "onUpdate:search": _cache[5] || (_cache[5] = $event => emit('search', $event))
112217
- }), 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, {
112199
+ }), 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, {
112218
112200
  key: 0,
112219
112201
  circle: "",
112220
112202
  onClick: _cache[6] || (_cache[6] = $event => _ctx.$emit('toggle-view-mode'))
@@ -112273,12 +112255,11 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112273
112255
  "initial-search-value": _ctx.search,
112274
112256
  "is-section": _ctx.canvasType === 'section-template',
112275
112257
  "is-template": "",
112276
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112277
- "tags-not-in": _ctx.excludedTags
112258
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112278
112259
  }, popularityProps.value, {
112279
112260
  "onUpdate:filters": _cache[12] || (_cache[12] = $event => emit('update:filter-values', $event)),
112280
112261
  "onUpdate:search": _cache[13] || (_cache[13] = $event => emit('search', $event))
112281
- }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]))], 2);
112262
+ }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder"])]))], 2);
112282
112263
  };
112283
112264
  }
112284
112265
  });
@@ -114411,7 +114392,6 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114411
114392
  }),
114412
114393
  currentSort: currentSort.value,
114413
114394
  "custom-filter-components": unref(dataFilterComponents),
114414
- "excluded-tags": _ctx.excludedTags,
114415
114395
  "hide-convert": isImpact.value || _ctx.hideConvert,
114416
114396
  "hide-create": isImpact.value,
114417
114397
  "hide-view": !unref(launchDarkly).allow_canvases_tables_columns_settings,
@@ -114433,7 +114413,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114433
114413
  onSortChanged: onSortChanged,
114434
114414
  onToggleViewMode: toggleViewMode,
114435
114415
  "onUpdate:filterValues": _cache[5] || (_cache[5] = $event => onTableChange('filterValuesChanged', $event))
114436
- }, 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", {
114416
+ }, 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", {
114437
114417
  key: 0,
114438
114418
  class: "flex bg-base rounded-2 mr-3",
114439
114419
  style: normalizeStyle({