diff --git a/lang/cs/item.php b/lang/cs/item.php index dfdeeab99..22b433810 100644 --- a/lang/cs/item.php +++ b/lang/cs/item.php @@ -26,8 +26,8 @@ 'identifier' => 'inventární číslo', 'author' => 'autor / autorka', 'item_authorities' => 'autoři - vztahy', - 'tags' => 'tagy', - 'tag' => 'tag', + 'tags' => 'klíčová slova', + 'tag' => 'klíčové slovo', 'date_earliest' => 'datace od', 'date_latest' => 'datace do', 'lat' => 'latitúda', @@ -73,7 +73,7 @@ 'search' => 'výsledky vyhledávání pro: ":value"', 'author' => 'autor: :value', 'work_type' => 'výtvarný druh: :value', - 'tag' => 'tagy: :value', + 'tag' => 'klíčové slovo: :value', 'gallery' => 'galerie: :value', 'credit' => 'nabytí: :value', 'topic' => 'námět: :value', diff --git a/lang/en/item.php b/lang/en/item.php index bb3ad1ffb..486ab7b7a 100644 --- a/lang/en/item.php +++ b/lang/en/item.php @@ -26,8 +26,8 @@ 'identifier' => 'identifier', 'author' => 'artist', 'item_authorities' => 'artists - relations', - 'tags' => 'tags', - 'tag' => 'tag', + 'tags' => 'keywords', + 'tag' => 'keyword', 'date_earliest' => 'date earliest', 'date_latest' => 'date latest', 'lat' => 'latitude', @@ -81,7 +81,7 @@ 'search' => 'search results for: ":value"', 'author' => 'artist: :value', 'work_type' => 'work type: :value', - 'tag' => 'tags: :value', + 'tag' => 'keyword: :value', 'gallery' => 'institution: :value', 'credit' => 'credit: :value', 'topic' => 'genre: :value', diff --git a/lang/sk/item.php b/lang/sk/item.php index b7647e70c..f15b18ba6 100644 --- a/lang/sk/item.php +++ b/lang/sk/item.php @@ -26,8 +26,8 @@ 'identifier' => 'inventárne číslo', 'author' => 'autor / autorka', 'item_authorities' => 'autori - vzťahy', - 'tags' => 'tagy', - 'tag' => 'tag', + 'tags' => 'kľúčové slová', + 'tag' => 'kľúčové slovo', 'date_earliest' => 'datovanie najskôr', 'date_latest' => 'datovanie najneskôr', 'lat' => 'latitúda', @@ -73,7 +73,7 @@ 'search' => 'výsledky vyhľadávania pre: ":value"', 'author' => 'autor: :value', 'work_type' => 'výtvarný druh: :value', - 'tag' => 'tag: :value', + 'tag' => 'kľúčové slovo :value', 'gallery' => 'galéria: :value', 'credit' => 'nadobudnutie: :value', 'topic' => 'žáner: :value', diff --git a/package-lock.json b/package-lock.json index 558b4b737..37676ca32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "packages": { "": { "dependencies": { - "@lottiefiles/lottie-player": "^1.7.1", "@popperjs/core": "^2.11.7", "axios": "^1.6.0", "bootstrap": "^3.4.1", @@ -34,7 +33,7 @@ "vue-masonry": "^0.16.0", "vue-select": "^4.0.0-beta.6", "vue-slider-component": "^4.1.0-beta.7", - "vue3-click-away": "^1.2.4" + "vue3-lottie": "^3.3.0" }, "devDependencies": { "@prettier/plugin-php": "^0.22.2", @@ -673,28 +672,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@lit-labs/ssr-dom-shim": { - "version": "1.2.0", - "license": "BSD-3-Clause" - }, - "node_modules/@lit/reactive-element": { - "version": "1.6.3", - "license": "BSD-3-Clause", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.0.0" - } - }, - "node_modules/@lottiefiles/lottie-player": { - "version": "1.7.1", - "license": "MIT", - "dependencies": { - "@types/pako": "^1.0.1", - "lit": "^2.1.2", - "lottie-web": "^5.10.0", - "pako": "^2.0.4", - "resize-observer-polyfill": "^1.5.1" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "dev": true, @@ -1055,14 +1032,6 @@ "undici-types": "~5.26.4" } }, - "node_modules/@types/pako": { - "version": "1.0.7", - "license": "MIT" - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "license": "MIT" - }, "node_modules/@types/web-bluetooth": { "version": "0.0.20", "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", @@ -2644,6 +2613,14 @@ "dev": true, "license": "MIT" }, + "node_modules/klona": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/klona/-/klona-2.0.6.tgz", + "integrity": "sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA==", + "engines": { + "node": ">= 8" + } + }, "node_modules/laravel-vite-plugin": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.2.tgz", @@ -2746,31 +2723,6 @@ "dev": true, "license": "MIT" }, - "node_modules/lit": { - "version": "2.8.0", - "license": "BSD-3-Clause", - "dependencies": { - "@lit/reactive-element": "^1.6.0", - "lit-element": "^3.3.0", - "lit-html": "^2.8.0" - } - }, - "node_modules/lit-element": { - "version": "3.3.3", - "license": "BSD-3-Clause", - "dependencies": { - "@lit-labs/ssr-dom-shim": "^1.1.0", - "@lit/reactive-element": "^1.3.0", - "lit-html": "^2.8.0" - } - }, - "node_modules/lit-html": { - "version": "2.8.0", - "license": "BSD-3-Clause", - "dependencies": { - "@types/trusted-types": "^2.0.2" - } - }, "node_modules/lodash": { "version": "4.17.21", "license": "MIT" @@ -3048,10 +3000,6 @@ "get-size": "^2.0.2" } }, - "node_modules/pako": { - "version": "2.1.0", - "license": "(MIT AND Zlib)" - }, "node_modules/path-key": { "version": "2.0.1", "dev": true, @@ -3479,10 +3427,6 @@ "node": ">=0.10.0" } }, - "node_modules/resize-observer-polyfill": { - "version": "1.5.1", - "license": "MIT" - }, "node_modules/resolve": { "version": "1.22.8", "dev": true, @@ -4322,9 +4266,21 @@ "version": "4.1.0-beta.7", "license": "MIT" }, - "node_modules/vue3-click-away": { - "version": "1.2.4", - "license": "MIT" + "node_modules/vue3-lottie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/vue3-lottie/-/vue3-lottie-3.3.0.tgz", + "integrity": "sha512-Omv26YN3e78fh0QgQooeZcmPo8O2j5mJ5pacZh1mGdHH9ZTGayWlY1Yp6h+wAvfBKAvJ80JXrSgeBOKA4MRBYA==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "klona": "^2.0.6", + "lottie-web": "5.12.2" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "vue": "^3.2" + } }, "node_modules/which": { "version": "1.3.1", diff --git a/package.json b/package.json index be90f7182..f4919f50f 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "vue": "^3.2.47" }, "dependencies": { - "@lottiefiles/lottie-player": "^1.7.1", "@popperjs/core": "^2.11.7", "axios": "^1.6.0", "bootstrap": "^3.4.1", @@ -53,6 +52,6 @@ "vue-masonry": "^0.16.0", "vue-select": "^4.0.0-beta.6", "vue-slider-component": "^4.1.0-beta.7", - "vue3-click-away": "^1.2.4" + "vue3-lottie": "^3.3.0" } } diff --git a/resources/js/app.js b/resources/js/app.js index f1eb3592a..a149614b4 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -13,7 +13,6 @@ import 'lazysizes' import 'lazysizes/plugins/unveilhooks/ls.unveilhooks' import 'lazysizes/plugins/respimg/ls.respimg' import 'jquery.easing' -import '@lottiefiles/lottie-player' // Components import './components/searchbar' @@ -22,7 +21,6 @@ import './components/clipboard-button' // // Vue import { createApp } from 'vue' import { VueMasonryPlugin } from 'vue-masonry' -import VueClickAway from 'vue3-click-away' import { i18nVue } from 'laravel-vue-i18n' import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.es' @@ -30,20 +28,22 @@ import FeaturedPieceClickTracker from './components/FeaturedPieceClickTracker.vu import FilterSortBy from './components/filter/SortBy.vue' import FilterCheckbox from './components/filter/Checkbox.vue' import FilterCustomSelect from './components/filter/CustomSelect.vue' +import CatalogNewAuthorSelectOptions from './components/catalog-new/AuthorSelectOptions.vue' +import CatalogNewEmptyAnimation from './components/catalog-new/EmptyAnimation.vue' import CatalogNewItemsFilterController from './components/catalog-new/ItemsFilterController.vue' -import CatalogNewPopoverGroupController from './components/catalog-new/PopoverGroupController.vue' import CatalogNewNewCustomSelectPopoverLabel from './components/catalog-new/NewCustomSelectPopoverLabel.vue' import CatalogNewNewColorSlider from './components/catalog-new/NewColorSlider.vue' import CatalogNewNewYearSlider from './components/catalog-new/NewYearSlider.vue' import CatalogNewNewCustomCheckbox from './components/catalog-new/NewCustomCheckbox.vue' import CatalogNewDisclosureModalController from './components/catalog-new/DisclosureModalController.vue' -import CatalogNewSearchOptionsController from './components/catalog-new/SearchOptionsController.vue' -import CatalogNewPopoverController from './components/catalog-new/PopoverController.vue' import CatalogNewInfiniteScroll from './components/catalog-new/InfiniteScroll.vue' import CatalogNewArtworkImageController from './components/catalog-new/ArtworkImageController.vue' import CatalogNewNumberFormatter from './components/catalog-new/NumberFormatter.vue' import CatalogNewAuthorFormatter from './components/catalog-new/AuthorFormatter.vue' import CatalogNewPopover from './components/catalog-new/Popover.vue' +import CatalogNewResetButton from './components/catalog-new/ResetButton.vue' +import CatalogNewSortSelect from './components/catalog-new/SortSelect.vue' +import CatalogNewSelectOptions from './components/catalog-new/SelectOptions.vue' import Flickity from './components/Flickity.vue' import HomeShuffleOrchestrator from './components/home/ShuffleOrchestrator.vue' import HomeTransitionInPlace from './components/home/TransitionInPlace.vue' @@ -74,7 +74,6 @@ createApp({ }, }) .use(VueMasonryPlugin) - .use(VueClickAway) .use(i18nVue, { resolve: async (lang) => { const langs = import.meta.glob('../../lang/*.json') @@ -88,7 +87,6 @@ createApp({ .component('filter-checkbox', FilterCheckbox) .component('filter-custom-select', FilterCustomSelect) .component('filter-new-items-controller', CatalogNewItemsFilterController) - .component('filter-new-popover.group-controller', CatalogNewPopoverGroupController) .component('filter-new-custom-select-popover-label', CatalogNewNewCustomSelectPopoverLabel) .component('filter-new-color-slider', CatalogNewNewColorSlider) .component('filter-new-year-slider', CatalogNewNewYearSlider) @@ -96,13 +94,16 @@ createApp({ .component('filter-disclosure-controller', CatalogNewDisclosureModalController) .component('toggle-controller', ToggleController) .component('reload-controller', ReloadController) - .component('filter-search-options-controller', CatalogNewSearchOptionsController) - .component('filter-popover-controller', CatalogNewPopoverController) + .component('catalog.author-select-options', CatalogNewAuthorSelectOptions) + .component('catalog.empty-animation', CatalogNewEmptyAnimation) .component('catalog.infinite-scroll', CatalogNewInfiniteScroll) .component('catalog.artwork-image-controller', CatalogNewArtworkImageController) .component('catalog.number-formatter', CatalogNewNumberFormatter) .component('catalog.author-formatter', CatalogNewAuthorFormatter) .component('catalog.popover', CatalogNewPopover) + .component('catalog.reset-button', CatalogNewResetButton) + .component('catalog.sort-select', CatalogNewSortSelect) + .component('catalog.select-options', CatalogNewSelectOptions) .component('flickity', Flickity) .component('home.shuffle-orchestrator', HomeShuffleOrchestrator) .component('home.transition-in-place', HomeTransitionInPlace) diff --git a/resources/js/components/catalog-new/AuthorSelectOptions.vue b/resources/js/components/catalog-new/AuthorSelectOptions.vue new file mode 100644 index 000000000..e4562678e --- /dev/null +++ b/resources/js/components/catalog-new/AuthorSelectOptions.vue @@ -0,0 +1,8 @@ + + + diff --git a/resources/js/components/catalog-new/EmptyAnimation.vue b/resources/js/components/catalog-new/EmptyAnimation.vue new file mode 100644 index 000000000..5e8569c8c --- /dev/null +++ b/resources/js/components/catalog-new/EmptyAnimation.vue @@ -0,0 +1,7 @@ + + + diff --git a/resources/js/components/catalog-new/NumberFormatter.vue b/resources/js/components/catalog-new/NumberFormatter.vue index 988910d6f..7b660eb79 100644 --- a/resources/js/components/catalog-new/NumberFormatter.vue +++ b/resources/js/components/catalog-new/NumberFormatter.vue @@ -9,7 +9,7 @@ diff --git a/resources/js/components/catalog-new/Popover.vue b/resources/js/components/catalog-new/Popover.vue index 4a70e5bcb..5cd3491b8 100644 --- a/resources/js/components/catalog-new/Popover.vue +++ b/resources/js/components/catalog-new/Popover.vue @@ -1,5 +1,5 @@ diff --git a/resources/js/components/catalog-new/PopoverGroupController.vue b/resources/js/components/catalog-new/PopoverGroupController.vue deleted file mode 100644 index 30cfe1496..000000000 --- a/resources/js/components/catalog-new/PopoverGroupController.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - diff --git a/resources/js/components/catalog-new/ResetButton.vue b/resources/js/components/catalog-new/ResetButton.vue new file mode 100644 index 000000000..f07dda287 --- /dev/null +++ b/resources/js/components/catalog-new/ResetButton.vue @@ -0,0 +1,37 @@ + + diff --git a/resources/js/components/catalog-new/SearchOptionsController.vue b/resources/js/components/catalog-new/SearchOptionsController.vue deleted file mode 100644 index 741f518f0..000000000 --- a/resources/js/components/catalog-new/SearchOptionsController.vue +++ /dev/null @@ -1,40 +0,0 @@ - diff --git a/resources/js/components/catalog-new/SelectOptions.vue b/resources/js/components/catalog-new/SelectOptions.vue new file mode 100644 index 000000000..fb05dcf7d --- /dev/null +++ b/resources/js/components/catalog-new/SelectOptions.vue @@ -0,0 +1,121 @@ + + + diff --git a/resources/js/components/catalog-new/SortSelect.vue b/resources/js/components/catalog-new/SortSelect.vue new file mode 100644 index 000000000..2679a3376 --- /dev/null +++ b/resources/js/components/catalog-new/SortSelect.vue @@ -0,0 +1,88 @@ + + diff --git a/resources/views/components/filter/reset_button.blade.php b/resources/views/components/filter/reset_button.blade.php deleted file mode 100644 index da9c51767..000000000 --- a/resources/views/components/filter/reset_button.blade.php +++ /dev/null @@ -1,20 +0,0 @@ -@props([ - 'sm' => false, -]) - -@php -$class = ['tw-flex tw-items-center tw-border tw-leading-none tw-border-gray-300 tw-bg-white tw-font-normal hover:tw-border-gray-800']; - -if ($sm) { - $class[] = 'tw-px-1.5 tw-py-1 tw-text-xs'; -} else { - $class[] = 'tw-px-1.5 tw-py-1 tw-text-xs md:tw-px-4 md:tw-py-1.5 md:tw-text-sm'; -} -@endphp - - - diff --git a/resources/views/components/filter/search_options.blade.php b/resources/views/components/filter/search_options.blade.php deleted file mode 100644 index bf5d5651b..000000000 --- a/resources/views/components/filter/search_options.blade.php +++ /dev/null @@ -1,42 +0,0 @@ -only(['v-bind:options', 'v-bind:selected']) }} - v-slot="sc"> -
-
- -
- -
-
-
- -
- - - Uuups, nič sme nenašli :( -
-
-
-
- - {{ trans('item.filter.clear') }} - \ No newline at end of file diff --git a/resources/views/components/icons/arrow-counter-clockwise.blade.php b/resources/views/components/icons/arrow-counter-clockwise.blade.php deleted file mode 100644 index a81e07c0e..000000000 --- a/resources/views/components/icons/arrow-counter-clockwise.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/resources/views/components/icons/magnifying-glass.blade.php b/resources/views/components/icons/magnifying-glass.blade.php deleted file mode 100644 index 7846924d9..000000000 --- a/resources/views/components/icons/magnifying-glass.blade.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/resources/views/frontend/catalog-new/index.blade.php b/resources/views/frontend/catalog-new/index.blade.php index 9a30e6976..97945761a 100644 --- a/resources/views/frontend/catalog-new/index.blade.php +++ b/resources/views/frontend/catalog-new/index.blade.php @@ -17,7 +17,7 @@
{{-- Desktop filter --}} - +
- - @slot('label') - - - @endslot - +
@@ -54,7 +50,7 @@ class="tw-hidden tw-gap-x-3 tw-gap-y-2 tw-overflow-x-auto md:tw-flex md:tw-flex-