@internetarchive/collection-browser 4.8.0 → 4.8.1-webdev-9227.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.
- package/README.md +33 -0
- package/dist/src/collection-browser.d.ts +2 -1
- package/dist/src/collection-browser.js +3 -3
- package/dist/src/collection-browser.js.map +1 -1
- package/dist/src/collection-facets/more-facets-content.js +3 -2
- package/dist/src/collection-facets/more-facets-content.js.map +1 -1
- package/dist/src/collection-facets/more-facets-scroller.js +3 -2
- package/dist/src/collection-facets/more-facets-scroller.js.map +1 -1
- package/dist/src/collection-facets.js +3 -2
- package/dist/src/collection-facets.js.map +1 -1
- package/dist/src/empty-placeholder.d.ts +7 -7
- package/dist/src/empty-placeholder.js +29 -15
- package/dist/src/empty-placeholder.js.map +1 -1
- package/dist/src/expanded-date-picker.js +3 -2
- package/dist/src/expanded-date-picker.js.map +1 -1
- package/dist/src/locales/es.d.ts +94 -0
- package/dist/src/locales/es.js +109 -0
- package/dist/src/locales/es.js.map +1 -0
- package/dist/src/manage/manage-bar.d.ts +3 -2
- package/dist/src/manage/manage-bar.js +6 -7
- package/dist/src/manage/manage-bar.js.map +1 -1
- package/dist/src/manage/remove-items-modal-content.js +3 -2
- package/dist/src/manage/remove-items-modal-content.js.map +1 -1
- package/dist/src/models.js +6 -2
- package/dist/src/models.js.map +1 -1
- package/dist/src/sort-filter-bar/sort-filter-bar.js +3 -2
- package/dist/src/sort-filter-bar/sort-filter-bar.js.map +1 -1
- package/dist/src/tiles/grid/account-tile.js +3 -2
- package/dist/src/tiles/grid/account-tile.js.map +1 -1
- package/dist/src/tiles/grid/collection-tile.js +3 -2
- package/dist/src/tiles/grid/collection-tile.js.map +1 -1
- package/dist/src/tiles/grid/item-tile.js +3 -2
- package/dist/src/tiles/grid/item-tile.js.map +1 -1
- package/dist/src/tiles/grid/tile-stats.js +3 -2
- package/dist/src/tiles/grid/tile-stats.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact-header.js +3 -2
- package/dist/src/tiles/list/tile-list-compact-header.js.map +1 -1
- package/dist/src/tiles/list/tile-list-compact.js +3 -1
- package/dist/src/tiles/list/tile-list-compact.js.map +1 -1
- package/dist/src/tiles/list/tile-list.js +3 -2
- package/dist/src/tiles/list/tile-list.js.map +1 -1
- package/dist/src/tiles/overlay/text-overlay.js +3 -1
- package/dist/src/tiles/overlay/text-overlay.js.map +1 -1
- package/dist/src/tiles/review-block.js +3 -2
- package/dist/src/tiles/review-block.js.map +1 -1
- package/dist/src/tiles/tile-dispatcher.d.ts +2 -1
- package/dist/src/tiles/tile-dispatcher.js +5 -4
- package/dist/src/tiles/tile-dispatcher.js.map +1 -1
- package/locales/es.d.ts +1 -0
- package/locales/es.js +1 -0
- package/package.json +13 -1
- package/.editorconfig +0 -29
- package/.github/workflows/ci.yml +0 -29
- package/.github/workflows/gh-pages-main.yml +0 -41
- package/.github/workflows/npm-publish.yml +0 -42
- package/.github/workflows/pr-preview.yml +0 -40
- package/.husky/pre-commit +0 -1
- package/.prettierignore +0 -1
- package/dist/test/collection-browser.test.d.ts +0 -1
- package/dist/test/collection-browser.test.js +0 -1815
- package/dist/test/collection-browser.test.js.map +0 -1
- package/dist/test/collection-facets/facet-row.test.d.ts +0 -1
- package/dist/test/collection-facets/facet-row.test.js +0 -291
- package/dist/test/collection-facets/facet-row.test.js.map +0 -1
- package/dist/test/collection-facets/facets-template.test.d.ts +0 -1
- package/dist/test/collection-facets/facets-template.test.js +0 -95
- package/dist/test/collection-facets/facets-template.test.js.map +0 -1
- package/dist/test/collection-facets/more-facets-content.test.d.ts +0 -1
- package/dist/test/collection-facets/more-facets-content.test.js +0 -509
- package/dist/test/collection-facets/more-facets-content.test.js.map +0 -1
- package/dist/test/collection-facets/more-facets-scroller.test.d.ts +0 -1
- package/dist/test/collection-facets/more-facets-scroller.test.js +0 -288
- package/dist/test/collection-facets/more-facets-scroller.test.js.map +0 -1
- package/dist/test/collection-facets/page-window.test.d.ts +0 -1
- package/dist/test/collection-facets/page-window.test.js +0 -175
- package/dist/test/collection-facets/page-window.test.js.map +0 -1
- package/dist/test/collection-facets/toggle-switch.test.d.ts +0 -1
- package/dist/test/collection-facets/toggle-switch.test.js +0 -99
- package/dist/test/collection-facets/toggle-switch.test.js.map +0 -1
- package/dist/test/collection-facets.test.d.ts +0 -2
- package/dist/test/collection-facets.test.js +0 -728
- package/dist/test/collection-facets.test.js.map +0 -1
- package/dist/test/data-source/collection-browser-data-source.test.d.ts +0 -1
- package/dist/test/data-source/collection-browser-data-source.test.js +0 -154
- package/dist/test/data-source/collection-browser-data-source.test.js.map +0 -1
- package/dist/test/empty-placeholder.test.d.ts +0 -1
- package/dist/test/empty-placeholder.test.js +0 -57
- package/dist/test/empty-placeholder.test.js.map +0 -1
- package/dist/test/expanded-date-picker.test.d.ts +0 -1
- package/dist/test/expanded-date-picker.test.js +0 -124
- package/dist/test/expanded-date-picker.test.js.map +0 -1
- package/dist/test/icon-overlay.test.d.ts +0 -1
- package/dist/test/icon-overlay.test.js +0 -31
- package/dist/test/icon-overlay.test.js.map +0 -1
- package/dist/test/image-block.test.d.ts +0 -1
- package/dist/test/image-block.test.js +0 -208
- package/dist/test/image-block.test.js.map +0 -1
- package/dist/test/item-image.test.d.ts +0 -1
- package/dist/test/item-image.test.js +0 -187
- package/dist/test/item-image.test.js.map +0 -1
- package/dist/test/manage/manage-bar.test.d.ts +0 -3
- package/dist/test/manage/manage-bar.test.js +0 -216
- package/dist/test/manage/manage-bar.test.js.map +0 -1
- package/dist/test/manage/remove-items-modal-content.test.d.ts +0 -1
- package/dist/test/manage/remove-items-modal-content.test.js +0 -60
- package/dist/test/manage/remove-items-modal-content.test.js.map +0 -1
- package/dist/test/mediatype-config.test.d.ts +0 -1
- package/dist/test/mediatype-config.test.js +0 -11
- package/dist/test/mediatype-config.test.js.map +0 -1
- package/dist/test/mocks/mock-analytics-handler.d.ts +0 -10
- package/dist/test/mocks/mock-analytics-handler.js +0 -16
- package/dist/test/mocks/mock-analytics-handler.js.map +0 -1
- package/dist/test/mocks/mock-search-responses.d.ts +0 -37
- package/dist/test/mocks/mock-search-responses.js +0 -1293
- package/dist/test/mocks/mock-search-responses.js.map +0 -1
- package/dist/test/mocks/mock-search-service.d.ts +0 -16
- package/dist/test/mocks/mock-search-service.js +0 -65
- package/dist/test/mocks/mock-search-service.js.map +0 -1
- package/dist/test/restoration-state-handler.test.d.ts +0 -1
- package/dist/test/restoration-state-handler.test.js +0 -335
- package/dist/test/restoration-state-handler.test.js.map +0 -1
- package/dist/test/review-block.test.d.ts +0 -1
- package/dist/test/review-block.test.js +0 -46
- package/dist/test/review-block.test.js.map +0 -1
- package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.d.ts +0 -1
- package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.js +0 -12
- package/dist/test/sort-filter-bar/alpha-bar-tooltip.test.js.map +0 -1
- package/dist/test/sort-filter-bar/alpha-bar.test.d.ts +0 -1
- package/dist/test/sort-filter-bar/alpha-bar.test.js +0 -68
- package/dist/test/sort-filter-bar/alpha-bar.test.js.map +0 -1
- package/dist/test/sort-filter-bar/sort-filter-bar.test.d.ts +0 -1
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js +0 -304
- package/dist/test/sort-filter-bar/sort-filter-bar.test.js.map +0 -1
- package/dist/test/text-overlay.test.d.ts +0 -1
- package/dist/test/text-overlay.test.js +0 -43
- package/dist/test/text-overlay.test.js.map +0 -1
- package/dist/test/text-snippet-block.test.d.ts +0 -1
- package/dist/test/text-snippet-block.test.js +0 -58
- package/dist/test/text-snippet-block.test.js.map +0 -1
- package/dist/test/tile-stats.test.d.ts +0 -1
- package/dist/test/tile-stats.test.js +0 -167
- package/dist/test/tile-stats.test.js.map +0 -1
- package/dist/test/tiles/grid/account-tile.test.d.ts +0 -1
- package/dist/test/tiles/grid/account-tile.test.js +0 -96
- package/dist/test/tiles/grid/account-tile.test.js.map +0 -1
- package/dist/test/tiles/grid/collection-tile.test.d.ts +0 -1
- package/dist/test/tiles/grid/collection-tile.test.js +0 -90
- package/dist/test/tiles/grid/collection-tile.test.js.map +0 -1
- package/dist/test/tiles/grid/item-tile.test.d.ts +0 -1
- package/dist/test/tiles/grid/item-tile.test.js +0 -400
- package/dist/test/tiles/grid/item-tile.test.js.map +0 -1
- package/dist/test/tiles/grid/search-tile.test.d.ts +0 -1
- package/dist/test/tiles/grid/search-tile.test.js +0 -62
- package/dist/test/tiles/grid/search-tile.test.js.map +0 -1
- package/dist/test/tiles/hover/hover-pane-controller.test.d.ts +0 -1
- package/dist/test/tiles/hover/hover-pane-controller.test.js +0 -351
- package/dist/test/tiles/hover/hover-pane-controller.test.js.map +0 -1
- package/dist/test/tiles/hover/tile-hover-pane.test.d.ts +0 -1
- package/dist/test/tiles/hover/tile-hover-pane.test.js +0 -53
- package/dist/test/tiles/hover/tile-hover-pane.test.js.map +0 -1
- package/dist/test/tiles/list/tile-list-compact-header.test.d.ts +0 -1
- package/dist/test/tiles/list/tile-list-compact-header.test.js +0 -36
- package/dist/test/tiles/list/tile-list-compact-header.test.js.map +0 -1
- package/dist/test/tiles/list/tile-list-compact.test.d.ts +0 -1
- package/dist/test/tiles/list/tile-list-compact.test.js +0 -237
- package/dist/test/tiles/list/tile-list-compact.test.js.map +0 -1
- package/dist/test/tiles/list/tile-list.test.d.ts +0 -1
- package/dist/test/tiles/list/tile-list.test.js +0 -460
- package/dist/test/tiles/list/tile-list.test.js.map +0 -1
- package/dist/test/tiles/tile-dispatcher.test.d.ts +0 -1
- package/dist/test/tiles/tile-dispatcher.test.js +0 -246
- package/dist/test/tiles/tile-dispatcher.test.js.map +0 -1
- package/dist/test/tiles/tile-display-value-provider.test.d.ts +0 -1
- package/dist/test/tiles/tile-display-value-provider.test.js +0 -142
- package/dist/test/tiles/tile-display-value-provider.test.js.map +0 -1
- package/dist/test/tiles/tile-mediatype-icon.test.d.ts +0 -1
- package/dist/test/tiles/tile-mediatype-icon.test.js +0 -133
- package/dist/test/tiles/tile-mediatype-icon.test.js.map +0 -1
- package/dist/test/utils/array-equals.test.d.ts +0 -1
- package/dist/test/utils/array-equals.test.js +0 -27
- package/dist/test/utils/array-equals.test.js.map +0 -1
- package/dist/test/utils/format-count.test.d.ts +0 -1
- package/dist/test/utils/format-count.test.js +0 -24
- package/dist/test/utils/format-count.test.js.map +0 -1
- package/dist/test/utils/format-date.test.d.ts +0 -1
- package/dist/test/utils/format-date.test.js +0 -61
- package/dist/test/utils/format-date.test.js.map +0 -1
- package/dist/test/utils/format-unit-size.test.d.ts +0 -1
- package/dist/test/utils/format-unit-size.test.js +0 -18
- package/dist/test/utils/format-unit-size.test.js.map +0 -1
- package/dist/test/utils/local-date-from-utc.test.d.ts +0 -1
- package/dist/test/utils/local-date-from-utc.test.js +0 -27
- package/dist/test/utils/local-date-from-utc.test.js.map +0 -1
- package/dist/test/utils/normalize-filter-text.test.d.ts +0 -1
- package/dist/test/utils/normalize-filter-text.test.js +0 -69
- package/dist/test/utils/normalize-filter-text.test.js.map +0 -1
- package/docs/design/column-virtualization.md +0 -214
- package/eslint.config.mjs +0 -53
- package/index.html +0 -24
- package/index.ts +0 -29
- package/local.archive.org.cert +0 -86
- package/local.archive.org.key +0 -27
- package/pnpm-workspace.yaml +0 -30
- package/renovate.json +0 -6
- package/src/app-root.ts +0 -1282
- package/src/assets/img/icons/arrow-left.ts +0 -10
- package/src/assets/img/icons/arrow-right.ts +0 -10
- package/src/assets/img/icons/check.ts +0 -5
- package/src/assets/img/icons/chevron.ts +0 -4
- package/src/assets/img/icons/close-circle-dark.ts +0 -5
- package/src/assets/img/icons/contract.ts +0 -9
- package/src/assets/img/icons/empty-query.ts +0 -5
- package/src/assets/img/icons/expand.ts +0 -9
- package/src/assets/img/icons/eye-closed.ts +0 -5
- package/src/assets/img/icons/eye.ts +0 -5
- package/src/assets/img/icons/favorite-filled.ts +0 -10
- package/src/assets/img/icons/favorite-unfilled.ts +0 -9
- package/src/assets/img/icons/filter.ts +0 -10
- package/src/assets/img/icons/login-required.ts +0 -18
- package/src/assets/img/icons/mediatype/account.ts +0 -14
- package/src/assets/img/icons/mediatype/audio.ts +0 -14
- package/src/assets/img/icons/mediatype/collection.ts +0 -12
- package/src/assets/img/icons/mediatype/data.ts +0 -15
- package/src/assets/img/icons/mediatype/etree.ts +0 -14
- package/src/assets/img/icons/mediatype/film.ts +0 -14
- package/src/assets/img/icons/mediatype/images.ts +0 -13
- package/src/assets/img/icons/mediatype/radio.ts +0 -15
- package/src/assets/img/icons/mediatype/search.ts +0 -14
- package/src/assets/img/icons/mediatype/software.ts +0 -13
- package/src/assets/img/icons/mediatype/texts.ts +0 -13
- package/src/assets/img/icons/mediatype/tv-commercial.ts +0 -12
- package/src/assets/img/icons/mediatype/tv-fact-check.ts +0 -12
- package/src/assets/img/icons/mediatype/tv-quote.ts +0 -12
- package/src/assets/img/icons/mediatype/tv.ts +0 -14
- package/src/assets/img/icons/mediatype/video.ts +0 -14
- package/src/assets/img/icons/mediatype/web.ts +0 -13
- package/src/assets/img/icons/null-result.ts +0 -5
- package/src/assets/img/icons/quote.ts +0 -7
- package/src/assets/img/icons/restricted.ts +0 -13
- package/src/assets/img/icons/reviews.ts +0 -11
- package/src/assets/img/icons/upload.ts +0 -12
- package/src/assets/img/icons/views.ts +0 -11
- package/src/circular-activity-indicator.ts +0 -64
- package/src/collection-browser.ts +0 -3165
- package/src/collection-facets/facet-row-template.ts +0 -242
- package/src/collection-facets/facet-row.ts +0 -122
- package/src/collection-facets/facet-tombstone-row.ts +0 -40
- package/src/collection-facets/facets-template.ts +0 -85
- package/src/collection-facets/models.ts +0 -16
- package/src/collection-facets/more-facets-content.ts +0 -951
- package/src/collection-facets/more-facets-scroller.ts +0 -485
- package/src/collection-facets/page-window.ts +0 -247
- package/src/collection-facets/smart-facets/dedupe.ts +0 -44
- package/src/collection-facets/smart-facets/heuristics/browser-language/browser-language-heuristic.ts +0 -27
- package/src/collection-facets/smart-facets/heuristics/index.ts +0 -3
- package/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-heuristic.ts +0 -17
- package/src/collection-facets/smart-facets/heuristics/query-keywords/query-keywords-map.ts +0 -70
- package/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-entity-map.ts +0 -79
- package/src/collection-facets/smart-facets/heuristics/wikidata/wikidata-heuristic.ts +0 -93
- package/src/collection-facets/smart-facets/models.ts +0 -36
- package/src/collection-facets/smart-facets/smart-facet-bar.ts +0 -437
- package/src/collection-facets/smart-facets/smart-facet-button.ts +0 -145
- package/src/collection-facets/smart-facets/smart-facet-dropdown.ts +0 -185
- package/src/collection-facets/smart-facets/smart-facet-equals.ts +0 -16
- package/src/collection-facets/smart-facets/smart-facet-heuristics.ts +0 -26
- package/src/collection-facets/toggle-switch.ts +0 -175
- package/src/collection-facets.ts +0 -1013
- package/src/data-source/collection-browser-data-source-interface.ts +0 -351
- package/src/data-source/collection-browser-data-source.ts +0 -1474
- package/src/data-source/collection-browser-query-state.ts +0 -60
- package/src/data-source/models.ts +0 -56
- package/src/empty-placeholder.ts +0 -192
- package/src/expanded-date-picker.ts +0 -191
- package/src/language-code-handler/language-code-handler.ts +0 -64
- package/src/language-code-handler/language-code-mapping.ts +0 -564
- package/src/manage/manage-bar.ts +0 -276
- package/src/manage/remove-items-modal-content.ts +0 -102
- package/src/mediatype/mediatype-config.ts +0 -146
- package/src/models.ts +0 -912
- package/src/restoration-state-handler.ts +0 -550
- package/src/sort-filter-bar/alpha-bar-tooltip.ts +0 -53
- package/src/sort-filter-bar/alpha-bar.ts +0 -252
- package/src/sort-filter-bar/img/compact.ts +0 -5
- package/src/sort-filter-bar/img/list.ts +0 -5
- package/src/sort-filter-bar/img/sort-toggle-disabled.ts +0 -15
- package/src/sort-filter-bar/img/sort-toggle-down.ts +0 -17
- package/src/sort-filter-bar/img/sort-toggle-up.ts +0 -17
- package/src/sort-filter-bar/img/sort-triangle.ts +0 -5
- package/src/sort-filter-bar/img/tile.ts +0 -5
- package/src/sort-filter-bar/sort-filter-bar.ts +0 -733
- package/src/styles/ia-button.ts +0 -139
- package/src/styles/item-image-styles.ts +0 -124
- package/src/styles/sr-only.ts +0 -18
- package/src/styles/tile-action-styles.ts +0 -59
- package/src/tiles/base-tile-component.ts +0 -124
- package/src/tiles/collection-browser-loading-tile.ts +0 -26
- package/src/tiles/grid/account-tile.ts +0 -113
- package/src/tiles/grid/collection-tile.ts +0 -184
- package/src/tiles/grid/item-tile.ts +0 -347
- package/src/tiles/grid/search-tile.ts +0 -90
- package/src/tiles/grid/styles/tile-grid-shared-styles.ts +0 -130
- package/src/tiles/grid/tile-stats.ts +0 -211
- package/src/tiles/hover/hover-pane-controller.ts +0 -638
- package/src/tiles/hover/tile-hover-pane.ts +0 -184
- package/src/tiles/image-block.ts +0 -162
- package/src/tiles/item-image.ts +0 -214
- package/src/tiles/list/tile-list-compact-header.ts +0 -112
- package/src/tiles/list/tile-list-compact.ts +0 -278
- package/src/tiles/list/tile-list.ts +0 -718
- package/src/tiles/models.ts +0 -21
- package/src/tiles/overlay/icon-overlay.ts +0 -57
- package/src/tiles/overlay/text-overlay.ts +0 -79
- package/src/tiles/review-block.ts +0 -130
- package/src/tiles/text-snippet-block.ts +0 -132
- package/src/tiles/tile-dispatcher.ts +0 -637
- package/src/tiles/tile-display-value-provider.ts +0 -133
- package/src/tiles/tile-mediatype-icon.ts +0 -133
- package/src/utils/analytics-events.ts +0 -29
- package/src/utils/array-equals.ts +0 -8
- package/src/utils/collapse-repeated-quotes.ts +0 -13
- package/src/utils/date-filter-field.ts +0 -11
- package/src/utils/facet-utils.ts +0 -183
- package/src/utils/format-count.ts +0 -95
- package/src/utils/format-date.ts +0 -62
- package/src/utils/format-unit-size.ts +0 -43
- package/src/utils/local-date-from-utc.ts +0 -15
- package/src/utils/log.ts +0 -14
- package/src/utils/normalize-filter-text.ts +0 -54
- package/src/utils/resolve-mediatype.ts +0 -26
- package/src/utils/sha1.ts +0 -9
- package/test/collection-browser.test.ts +0 -2639
- package/test/collection-facets/facet-row.test.ts +0 -421
- package/test/collection-facets/facets-template.test.ts +0 -139
- package/test/collection-facets/more-facets-content.test.ts +0 -716
- package/test/collection-facets/more-facets-scroller.test.ts +0 -401
- package/test/collection-facets/page-window.test.ts +0 -208
- package/test/collection-facets/toggle-switch.test.ts +0 -164
- package/test/collection-facets.test.ts +0 -928
- package/test/data-source/collection-browser-data-source.test.ts +0 -193
- package/test/empty-placeholder.test.ts +0 -88
- package/test/expanded-date-picker.test.ts +0 -201
- package/test/icon-overlay.test.ts +0 -38
- package/test/image-block.test.ts +0 -247
- package/test/item-image.test.ts +0 -220
- package/test/manage/manage-bar.test.ts +0 -347
- package/test/manage/remove-items-modal-content.test.ts +0 -81
- package/test/mediatype-config.test.ts +0 -11
- package/test/mocks/mock-analytics-handler.ts +0 -30
- package/test/mocks/mock-search-responses.ts +0 -1420
- package/test/mocks/mock-search-service.ts +0 -136
- package/test/restoration-state-handler.test.ts +0 -480
- package/test/review-block.test.ts +0 -62
- package/test/sort-filter-bar/alpha-bar-tooltip.test.ts +0 -17
- package/test/sort-filter-bar/alpha-bar.test.ts +0 -101
- package/test/sort-filter-bar/sort-filter-bar.test.ts +0 -443
- package/test/text-overlay.test.ts +0 -55
- package/test/text-snippet-block.test.ts +0 -85
- package/test/tile-stats.test.ts +0 -191
- package/test/tiles/grid/account-tile.test.ts +0 -121
- package/test/tiles/grid/collection-tile.test.ts +0 -114
- package/test/tiles/grid/item-tile.test.ts +0 -520
- package/test/tiles/grid/search-tile.test.ts +0 -75
- package/test/tiles/hover/hover-pane-controller.test.ts +0 -482
- package/test/tiles/hover/tile-hover-pane.test.ts +0 -80
- package/test/tiles/list/tile-list-compact-header.test.ts +0 -43
- package/test/tiles/list/tile-list-compact.test.ts +0 -282
- package/test/tiles/list/tile-list.test.ts +0 -576
- package/test/tiles/tile-dispatcher.test.ts +0 -320
- package/test/tiles/tile-display-value-provider.test.ts +0 -172
- package/test/tiles/tile-mediatype-icon.test.ts +0 -160
- package/test/utils/array-equals.test.ts +0 -31
- package/test/utils/format-count.test.ts +0 -32
- package/test/utils/format-date.test.ts +0 -89
- package/test/utils/format-unit-size.test.ts +0 -21
- package/test/utils/local-date-from-utc.test.ts +0 -37
- package/test/utils/normalize-filter-text.test.ts +0 -87
- package/tsconfig.json +0 -25
- package/types/dompurify.d.ts +0 -1
- package/vite.config.ts +0 -29
- package/web-dev-server.config.mjs +0 -30
- package/web-test-runner.config.mjs +0 -57
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { css, html, nothing, TemplateResult } from 'lit';
|
|
2
|
-
import eyeIcon from '../assets/img/icons/eye';
|
|
3
|
-
import eyeClosedIcon from '../assets/img/icons/eye-closed';
|
|
4
|
-
import type { FacetOption, FacetBucket, FacetState } from '../models';
|
|
5
|
-
import type { CollectionTitles } from '../data-source/models';
|
|
6
|
-
|
|
7
|
-
export type FacetRowTemplateOptions = {
|
|
8
|
-
/** The name of the facet group to which this facet belongs (e.g., "mediatype") */
|
|
9
|
-
facetType: FacetOption;
|
|
10
|
-
|
|
11
|
-
/** The facet bucket containing details about the state, count, and key for this row */
|
|
12
|
-
bucket: FacetBucket;
|
|
13
|
-
|
|
14
|
-
/** The collection name cache for converting collection identifiers to titles */
|
|
15
|
-
collectionTitles?: CollectionTitles;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Whether to omit the negative/hide button from this facet row if possible.
|
|
19
|
-
* Has no effect if the facet bucket is itself hidden, in which case the hide
|
|
20
|
-
* button *must* be shown to represent the state accurately.
|
|
21
|
-
*/
|
|
22
|
-
omitHideButton?: boolean;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Called when either checkbox is clicked. Leave it out when an ancestor
|
|
26
|
-
* handles the rows' clicks by delegation instead.
|
|
27
|
-
*/
|
|
28
|
-
onCheckboxClick?: (e: Event, negative: boolean) => void;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Returns the composed facet state corresponding to a positive or negative facet's checked state
|
|
33
|
-
*/
|
|
34
|
-
export function getFacetState(checked: boolean, negative: boolean): FacetState {
|
|
35
|
-
if (!checked) return 'none';
|
|
36
|
-
return negative ? 'hidden' : 'selected';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Template for a full facet row, including the positive/negative checks,
|
|
41
|
-
* the display name, and the count. The row is plain DOM so that long lists
|
|
42
|
-
* (e.g. the More... dialog) can render many rows without creating an
|
|
43
|
-
* element per row. Render it inside a shadow root that includes
|
|
44
|
-
* `facetRowStyles`.
|
|
45
|
-
*/
|
|
46
|
-
export function facetRowTemplate({
|
|
47
|
-
facetType,
|
|
48
|
-
bucket,
|
|
49
|
-
collectionTitles,
|
|
50
|
-
omitHideButton = false,
|
|
51
|
-
onCheckboxClick,
|
|
52
|
-
}: FacetRowTemplateOptions): TemplateResult {
|
|
53
|
-
const showOnlyCheckboxId = `${facetType}:${bucket.key}-show-only`;
|
|
54
|
-
const negativeCheckboxId = `${facetType}:${bucket.key}-negative`;
|
|
55
|
-
|
|
56
|
-
const extraNoteSpan = bucket.extraNote
|
|
57
|
-
? html`<span class="facet-note">${bucket.extraNote}</span>`
|
|
58
|
-
: nothing;
|
|
59
|
-
|
|
60
|
-
// For collections, we render the collection title as a link.
|
|
61
|
-
// For other facet types, we just have a static value to use.
|
|
62
|
-
const bucketTextDisplay =
|
|
63
|
-
facetType !== 'collection'
|
|
64
|
-
? html`${bucket.displayText ?? bucket.key} ${extraNoteSpan}`
|
|
65
|
-
: html`<a href="/details/${bucket.key}">
|
|
66
|
-
${collectionTitles?.get(bucket.key) ?? bucket.key}
|
|
67
|
-
</a> `;
|
|
68
|
-
|
|
69
|
-
const bucketCountText = bucket.count > 0 ? bucket.count.toLocaleString() : '';
|
|
70
|
-
|
|
71
|
-
const facetHidden = bucket.state === 'hidden';
|
|
72
|
-
const facetSelected = bucket.state === 'selected';
|
|
73
|
-
|
|
74
|
-
const titleText = `${facetType}: ${bucket.displayText ?? bucket.key}`;
|
|
75
|
-
const onlyShowText = facetSelected
|
|
76
|
-
? `Show all ${facetType}s`
|
|
77
|
-
: `Only show ${titleText}`;
|
|
78
|
-
const hideText = `Hide ${titleText}`;
|
|
79
|
-
const unhideText = `Unhide ${titleText}`;
|
|
80
|
-
const showHideText = facetHidden ? unhideText : hideText;
|
|
81
|
-
const ariaLabel = `${titleText}, ${bucket.count} results`;
|
|
82
|
-
|
|
83
|
-
const showOnlyClicked = onCheckboxClick
|
|
84
|
-
? (e: Event) => onCheckboxClick(e, false)
|
|
85
|
-
: undefined;
|
|
86
|
-
const hideClicked = onCheckboxClick
|
|
87
|
-
? (e: Event) => onCheckboxClick(e, true)
|
|
88
|
-
: undefined;
|
|
89
|
-
|
|
90
|
-
// Added data-testid for Playwright testing
|
|
91
|
-
return html`
|
|
92
|
-
<div class="facet-row-container">
|
|
93
|
-
<div class="facet-checkboxes">
|
|
94
|
-
<input
|
|
95
|
-
type="checkbox"
|
|
96
|
-
.name=${facetType}
|
|
97
|
-
.value=${bucket.key}
|
|
98
|
-
@click=${showOnlyClicked}
|
|
99
|
-
.checked=${facetSelected}
|
|
100
|
-
class="select-facet-checkbox"
|
|
101
|
-
title=${onlyShowText}
|
|
102
|
-
id=${showOnlyCheckboxId}
|
|
103
|
-
data-testid=${showOnlyCheckboxId}
|
|
104
|
-
/>
|
|
105
|
-
<div
|
|
106
|
-
class="hide-facet-container"
|
|
107
|
-
?hidden=${omitHideButton && !facetHidden}
|
|
108
|
-
>
|
|
109
|
-
<input
|
|
110
|
-
type="checkbox"
|
|
111
|
-
id=${negativeCheckboxId}
|
|
112
|
-
.name=${facetType}
|
|
113
|
-
.value=${bucket.key}
|
|
114
|
-
@click=${hideClicked}
|
|
115
|
-
.checked=${facetHidden}
|
|
116
|
-
class="hide-facet-checkbox"
|
|
117
|
-
/>
|
|
118
|
-
<label
|
|
119
|
-
for=${negativeCheckboxId}
|
|
120
|
-
class="hide-facet-icon${facetHidden ? ' active' : ''}"
|
|
121
|
-
title=${showHideText}
|
|
122
|
-
data-testid=${negativeCheckboxId}
|
|
123
|
-
>
|
|
124
|
-
<span class="sr-only">${showHideText}</span>
|
|
125
|
-
<span class="eye eye-open">${eyeIcon}</span>
|
|
126
|
-
<span class="eye eye-closed">${eyeClosedIcon}</span>
|
|
127
|
-
</label>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
<label
|
|
131
|
-
for=${showOnlyCheckboxId}
|
|
132
|
-
class="facet-info-display"
|
|
133
|
-
title=${onlyShowText}
|
|
134
|
-
aria-label=${ariaLabel}
|
|
135
|
-
>
|
|
136
|
-
<div class="facet-title">${bucketTextDisplay}</div>
|
|
137
|
-
<div class="facet-count">${bucketCountText}</div>
|
|
138
|
-
</label>
|
|
139
|
-
</div>
|
|
140
|
-
`;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const facetRowBorderTop = css`var(--facet-row-border-top, 1px solid transparent)`;
|
|
144
|
-
const facetRowBorderBottom = css`var(--facet-row-border-bottom, 1px solid transparent)`;
|
|
145
|
-
const checkboxHeight = css`15px`;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Styles for `facetRowTemplate`. Include `srOnlyStyle` alongside these.
|
|
149
|
-
*/
|
|
150
|
-
export const facetRowStyles = css`
|
|
151
|
-
.facet-checkboxes {
|
|
152
|
-
margin: 0 5px 0 0;
|
|
153
|
-
display: flex;
|
|
154
|
-
height: ${checkboxHeight};
|
|
155
|
-
}
|
|
156
|
-
.facet-checkboxes input:first-child {
|
|
157
|
-
margin-right: 5px;
|
|
158
|
-
}
|
|
159
|
-
.facet-checkboxes input {
|
|
160
|
-
height: ${checkboxHeight};
|
|
161
|
-
width: ${checkboxHeight};
|
|
162
|
-
margin: 0;
|
|
163
|
-
}
|
|
164
|
-
.facet-row-container {
|
|
165
|
-
display: flex;
|
|
166
|
-
font-weight: 500;
|
|
167
|
-
font-size: 1.2rem;
|
|
168
|
-
margin: 0 auto;
|
|
169
|
-
padding: 0.25rem 0;
|
|
170
|
-
height: auto;
|
|
171
|
-
border-top: ${facetRowBorderTop};
|
|
172
|
-
border-bottom: ${facetRowBorderBottom};
|
|
173
|
-
}
|
|
174
|
-
.facet-info-display {
|
|
175
|
-
display: flex;
|
|
176
|
-
flex: 1 1 0%;
|
|
177
|
-
cursor: pointer;
|
|
178
|
-
flex-wrap: wrap;
|
|
179
|
-
}
|
|
180
|
-
.facet-title {
|
|
181
|
-
word-break: break-word;
|
|
182
|
-
display: inline-block;
|
|
183
|
-
flex: 1 1 0%;
|
|
184
|
-
}
|
|
185
|
-
.facet-note {
|
|
186
|
-
color: #bbb;
|
|
187
|
-
}
|
|
188
|
-
.facet-count {
|
|
189
|
-
text-align: right;
|
|
190
|
-
}
|
|
191
|
-
.select-facet-checkbox {
|
|
192
|
-
cursor: pointer;
|
|
193
|
-
display: inline-block;
|
|
194
|
-
}
|
|
195
|
-
.hide-facet-checkbox {
|
|
196
|
-
position: absolute;
|
|
197
|
-
clip: rect(0, 0, 0, 0);
|
|
198
|
-
pointer-events: none;
|
|
199
|
-
}
|
|
200
|
-
.hide-facet-checkbox:focus-visible + .hide-facet-icon {
|
|
201
|
-
outline-style: auto;
|
|
202
|
-
outline-offset: 2px;
|
|
203
|
-
}
|
|
204
|
-
.hide-facet-icon {
|
|
205
|
-
width: ${checkboxHeight};
|
|
206
|
-
height: ${checkboxHeight};
|
|
207
|
-
cursor: pointer;
|
|
208
|
-
display: flex;
|
|
209
|
-
}
|
|
210
|
-
.eye {
|
|
211
|
-
width: ${checkboxHeight};
|
|
212
|
-
height: ${checkboxHeight};
|
|
213
|
-
opacity: 0.3;
|
|
214
|
-
}
|
|
215
|
-
.hide-facet-icon:hover .eye,
|
|
216
|
-
.active .eye {
|
|
217
|
-
opacity: 1;
|
|
218
|
-
}
|
|
219
|
-
.hide-facet-icon:hover .eye-open,
|
|
220
|
-
.hide-facet-icon .eye-closed {
|
|
221
|
-
display: none;
|
|
222
|
-
}
|
|
223
|
-
.hide-facet-icon:hover .eye-closed,
|
|
224
|
-
.hide-facet-icon.active .eye-closed {
|
|
225
|
-
display: inline;
|
|
226
|
-
}
|
|
227
|
-
.hide-facet-icon.active .eye-open {
|
|
228
|
-
display: none;
|
|
229
|
-
}
|
|
230
|
-
.sorting-icon {
|
|
231
|
-
cursor: pointer;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
a:link,
|
|
235
|
-
a:visited {
|
|
236
|
-
text-decoration: none;
|
|
237
|
-
color: var(--ia-theme-link-color, #4b64ff);
|
|
238
|
-
}
|
|
239
|
-
a:hover {
|
|
240
|
-
text-decoration: underline;
|
|
241
|
-
}
|
|
242
|
-
`;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { html, LitElement, TemplateResult, CSSResultGroup, nothing } from 'lit';
|
|
2
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
3
|
-
import type {
|
|
4
|
-
FacetOption,
|
|
5
|
-
FacetBucket,
|
|
6
|
-
FacetEventDetails,
|
|
7
|
-
FacetState,
|
|
8
|
-
} from '../models';
|
|
9
|
-
import type { CollectionTitles } from '../data-source/models';
|
|
10
|
-
import { srOnlyStyle } from '../styles/sr-only';
|
|
11
|
-
import {
|
|
12
|
-
facetRowStyles,
|
|
13
|
-
facetRowTemplate,
|
|
14
|
-
getFacetState,
|
|
15
|
-
} from './facet-row-template';
|
|
16
|
-
|
|
17
|
-
@customElement('facet-row')
|
|
18
|
-
export class FacetRow extends LitElement {
|
|
19
|
-
//
|
|
20
|
-
// UI STATE
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
/** The name of the facet group to which this facet belongs (e.g., "mediatype") */
|
|
24
|
-
@property({ type: String }) facetType?: FacetOption;
|
|
25
|
-
|
|
26
|
-
/** The facet bucket containing details about the state, count, and key for this row */
|
|
27
|
-
@property({ type: Object }) bucket?: FacetBucket;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Whether to omit the negative/hide button from this facet row if possible.
|
|
31
|
-
* Has no effect if the facet bucket is itself hidden, in which case the hide
|
|
32
|
-
* button *must* be shown to represent the state accurately.
|
|
33
|
-
*/
|
|
34
|
-
@property({ type: Boolean, reflect: true }) omitHideButton = false;
|
|
35
|
-
|
|
36
|
-
/** The collection name cache for converting collection identifiers to titles */
|
|
37
|
-
@property({ type: Object })
|
|
38
|
-
collectionTitles?: CollectionTitles;
|
|
39
|
-
|
|
40
|
-
//
|
|
41
|
-
// COMPONENT LIFECYCLE METHODS
|
|
42
|
-
//
|
|
43
|
-
|
|
44
|
-
render() {
|
|
45
|
-
return html`${this.facetRowTemplate}`;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
// TEMPLATE GETTERS
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Template for the full facet row, including the positive/negative checks,
|
|
54
|
-
* the display name, and the count.
|
|
55
|
-
*/
|
|
56
|
-
private get facetRowTemplate(): TemplateResult | typeof nothing {
|
|
57
|
-
const { bucket, facetType } = this;
|
|
58
|
-
if (!bucket || !facetType) return nothing;
|
|
59
|
-
|
|
60
|
-
return facetRowTemplate({
|
|
61
|
-
facetType,
|
|
62
|
-
bucket,
|
|
63
|
-
collectionTitles: this.collectionTitles,
|
|
64
|
-
omitHideButton: this.omitHideButton,
|
|
65
|
-
onCheckboxClick: (e, negative) => this.facetClicked(e, negative),
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
//
|
|
70
|
-
// EVENT HANDLERS & DISPATCHERS
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Handler for whenever this facet is clicked & its state changes
|
|
75
|
-
*/
|
|
76
|
-
private facetClicked(e: Event, negative: boolean) {
|
|
77
|
-
const { bucket, facetType } = this;
|
|
78
|
-
if (!bucket || !facetType) return;
|
|
79
|
-
|
|
80
|
-
const target = e.target as HTMLInputElement;
|
|
81
|
-
const { checked } = target;
|
|
82
|
-
this.bucket = {
|
|
83
|
-
...bucket,
|
|
84
|
-
state: FacetRow.getFacetState(checked, negative),
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
this.dispatchFacetClickEvent({
|
|
88
|
-
facetType,
|
|
89
|
-
bucket: this.bucket,
|
|
90
|
-
negative,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Emits a `facetClick` event with details about this facet & its current state
|
|
96
|
-
*/
|
|
97
|
-
private dispatchFacetClickEvent(detail: FacetEventDetails) {
|
|
98
|
-
const event = new CustomEvent<FacetEventDetails>('facetClick', {
|
|
99
|
-
detail,
|
|
100
|
-
});
|
|
101
|
-
this.dispatchEvent(event);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
//
|
|
105
|
-
// OTHER METHODS
|
|
106
|
-
//
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Returns the composed facet state corresponding to a positive or negative facet's checked state
|
|
110
|
-
*/
|
|
111
|
-
static getFacetState(checked: boolean, negative: boolean): FacetState {
|
|
112
|
-
return getFacetState(checked, negative);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//
|
|
116
|
-
// STYLES
|
|
117
|
-
//
|
|
118
|
-
|
|
119
|
-
static get styles(): CSSResultGroup {
|
|
120
|
-
return [srOnlyStyle, facetRowStyles];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { css, html, LitElement, CSSResultGroup } from 'lit';
|
|
2
|
-
import { customElement } from 'lit/decorators.js';
|
|
3
|
-
|
|
4
|
-
@customElement('facet-tombstone-row')
|
|
5
|
-
export class FacetTombstoneRow extends LitElement {
|
|
6
|
-
render() {
|
|
7
|
-
return html`
|
|
8
|
-
<div id="row">
|
|
9
|
-
<input type="checkbox" disabled />
|
|
10
|
-
<div class="tombstone-line"></div>
|
|
11
|
-
<div class="tombstone-line"></div>
|
|
12
|
-
</div>
|
|
13
|
-
`;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static get styles(): CSSResultGroup {
|
|
17
|
-
return css`
|
|
18
|
-
#row {
|
|
19
|
-
display: grid;
|
|
20
|
-
grid-template-columns: 15px 1fr 36px;
|
|
21
|
-
grid-gap: 9px 6px;
|
|
22
|
-
align-items: center;
|
|
23
|
-
margin: 2.5px auto;
|
|
24
|
-
border: 1px solid transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.tombstone-line {
|
|
28
|
-
background: #ddd;
|
|
29
|
-
height: 6px;
|
|
30
|
-
border-radius: 50px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
input[type='checkbox'] {
|
|
34
|
-
width: 15px;
|
|
35
|
-
height: 15px;
|
|
36
|
-
margin: 0;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
css,
|
|
3
|
-
html,
|
|
4
|
-
LitElement,
|
|
5
|
-
TemplateResult,
|
|
6
|
-
CSSResultGroup,
|
|
7
|
-
nothing,
|
|
8
|
-
} from 'lit';
|
|
9
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
-
import { repeat } from 'lit/directives/repeat.js';
|
|
11
|
-
import type { FacetGroup, FacetBucket, FacetEventDetails } from '../models';
|
|
12
|
-
import type { CollectionTitles } from '../data-source/models';
|
|
13
|
-
import './facet-row';
|
|
14
|
-
|
|
15
|
-
@customElement('facets-template')
|
|
16
|
-
export class FacetsTemplate extends LitElement {
|
|
17
|
-
@property({ type: Object }) facetGroup?: FacetGroup;
|
|
18
|
-
|
|
19
|
-
@property({ type: Object })
|
|
20
|
-
collectionTitles?: CollectionTitles;
|
|
21
|
-
|
|
22
|
-
private facetClicked(e: CustomEvent<FacetEventDetails>) {
|
|
23
|
-
this.dispatchFacetClickEvent(e.detail);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
private dispatchFacetClickEvent(detail: FacetEventDetails) {
|
|
27
|
-
const event = new CustomEvent<FacetEventDetails>('facetClick', {
|
|
28
|
-
detail,
|
|
29
|
-
composed: true,
|
|
30
|
-
});
|
|
31
|
-
this.dispatchEvent(event);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
private get facetsTemplate(): TemplateResult | typeof nothing {
|
|
35
|
-
const { facetGroup } = this;
|
|
36
|
-
if (!facetGroup) return nothing;
|
|
37
|
-
|
|
38
|
-
const facetBuckets = facetGroup.buckets as FacetBucket[];
|
|
39
|
-
const isLoneBucket = facetBuckets.length === 1;
|
|
40
|
-
|
|
41
|
-
// Added data-testid for Playwright testing
|
|
42
|
-
// Using className and aria-labels is not ideal for Playwright locator
|
|
43
|
-
return html`
|
|
44
|
-
<div class="facet-rows" data-testid="facets-on-${facetGroup.key}">
|
|
45
|
-
${repeat(
|
|
46
|
-
facetBuckets,
|
|
47
|
-
bucket => `${facetGroup.key}:${bucket.key}`,
|
|
48
|
-
bucket =>
|
|
49
|
-
html`<facet-row
|
|
50
|
-
.facetType=${facetGroup.key}
|
|
51
|
-
.bucket=${bucket}
|
|
52
|
-
.collectionTitles=${this.collectionTitles}
|
|
53
|
-
?omitHideButton=${isLoneBucket}
|
|
54
|
-
@facetClick=${this.facetClicked}
|
|
55
|
-
></facet-row>`,
|
|
56
|
-
)}
|
|
57
|
-
</div>
|
|
58
|
-
`;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
render() {
|
|
62
|
-
return html`${this.facetsTemplate}`;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
static get styles(): CSSResultGroup {
|
|
66
|
-
const columnCount = css`var(--facetsColumnCount, 1)`;
|
|
67
|
-
const columnGap = css`var(--facetsColumnGap, 15px)`;
|
|
68
|
-
|
|
69
|
-
return css`
|
|
70
|
-
.facet-rows {
|
|
71
|
-
column-count: ${columnCount};
|
|
72
|
-
column-gap: ${columnGap};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
a:link,
|
|
76
|
-
a:visited {
|
|
77
|
-
text-decoration: none;
|
|
78
|
-
color: var(--ia-theme-link-color, #4b64ff);
|
|
79
|
-
}
|
|
80
|
-
a:hover {
|
|
81
|
-
text-decoration: underline;
|
|
82
|
-
}
|
|
83
|
-
`;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maximum number of aggregations to include in the More... facet dialogs.
|
|
3
|
-
*/
|
|
4
|
-
export const MORE_FACETS__MAX_AGGREGATIONS = 10000;
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Width in px of each column of facets in the More... facet dialogs. Every
|
|
8
|
-
* column is this wide; the number of columns per page is however many fit.
|
|
9
|
-
*/
|
|
10
|
-
export const MORE_FACETS__COLUMN_WIDTH = 250;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Default number of facets stacked in each column of the More... facet dialogs.
|
|
14
|
-
* Can be overridden via component property.
|
|
15
|
-
*/
|
|
16
|
-
export const MORE_FACETS__ROWS_PER_COLUMN = 12;
|