@internetarchive/collection-browser 2.13.2-alpha-webdev5427.0 → 2.13.2-alpha-webdev7687.1

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.
@@ -7,7 +7,7 @@ import '@internetarchive/infinite-scroller';
7
7
  import type { ModalManagerInterface } from '@internetarchive/modal-manager';
8
8
  import type { FeatureFeedbackServiceInterface } from '@internetarchive/feature-feedback';
9
9
  import type { RecaptchaManagerInterface } from '@internetarchive/recaptcha-manager';
10
- import { SelectedFacets, SortField, CollectionBrowserContext, TileModel, CollectionDisplayMode, FacetEventDetails, FacetLoadStrategy } from './models';
10
+ import { SelectedFacets, SortField, CollectionBrowserContext, TileModel, CollectionDisplayMode, FacetEventDetails, FacetLoadStrategy, TvClipFilterType } from './models';
11
11
  import { RestorationStateHandlerInterface } from './restoration-state-handler';
12
12
  import type { CollectionBrowserQueryState, CollectionBrowserSearchInterface } from './data-source/collection-browser-query-state';
13
13
  import type { CollectionBrowserDataSourceInterface } from './data-source/collection-browser-data-source-interface';
@@ -50,6 +50,7 @@ export declare class CollectionBrowser extends LitElement implements InfiniteScr
50
50
  selectedSort: SortField;
51
51
  selectedTitleFilter: string | null;
52
52
  selectedCreatorFilter: string | null;
53
+ tvClipFilter: TvClipFilterType;
53
54
  sortDirection: SortDirection | null;
54
55
  defaultSortField: Exclude<SortField, SortField.default>;
55
56
  defaultSortDirection: SortDirection | null;
@@ -33,6 +33,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
33
33
  this.selectedSort = SortField.default;
34
34
  this.selectedTitleFilter = null;
35
35
  this.selectedCreatorFilter = null;
36
+ this.tvClipFilter = 'all';
36
37
  this.sortDirection = null;
37
38
  this.defaultSortField = SortField.relevance;
38
39
  this.defaultSortDirection = null;
@@ -1025,7 +1026,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1025
1026
  * represent, such as the search query, sort option, and any filters applied.
1026
1027
  */
1027
1028
  async installDataSourceAndQueryState(dataSource, queryState) {
1028
- var _a, _b;
1029
+ var _a, _b, _c;
1029
1030
  log('Installing data source & query state in CB:', dataSource, queryState);
1030
1031
  if (this.dataSource)
1031
1032
  this.removeController(this.dataSource);
@@ -1042,6 +1043,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1042
1043
  this.sortDirection = queryState.sortDirection;
1043
1044
  this.selectedTitleFilter = queryState.selectedTitleFilter;
1044
1045
  this.selectedCreatorFilter = queryState.selectedCreatorFilter;
1046
+ this.tvClipFilter = (_c = queryState.tvClipFilter) !== null && _c !== void 0 ? _c : 'all';
1045
1047
  // We set this flag during the update to prevent the URL state persistence
1046
1048
  // from creating an unwanted extra history entry.
1047
1049
  this.dataSourceInstallInProgress = true;
@@ -1356,6 +1358,7 @@ let CollectionBrowser = class CollectionBrowser extends LitElement {
1356
1358
  sortDirection: this.sortDirection,
1357
1359
  selectedTitleFilter: this.selectedTitleFilter,
1358
1360
  selectedCreatorFilter: this.selectedCreatorFilter,
1361
+ tvClipFilter: this.tvClipFilter,
1359
1362
  },
1360
1363
  }));
1361
1364
  }
@@ -2220,6 +2223,9 @@ __decorate([
2220
2223
  __decorate([
2221
2224
  property({ type: String })
2222
2225
  ], CollectionBrowser.prototype, "selectedCreatorFilter", void 0);
2226
+ __decorate([
2227
+ property({ type: String })
2228
+ ], CollectionBrowser.prototype, "tvClipFilter", void 0);
2223
2229
  __decorate([
2224
2230
  property({ type: String })
2225
2231
  ], CollectionBrowser.prototype, "sortDirection", void 0);