@empathyco/x-components 6.0.0-alpha.60 → 6.0.0-alpha.62
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/CHANGELOG.md +24 -1
- package/core/index.js +46 -45
- package/core/index.js.map +1 -1
- package/design-system/deprecated-full-theme.css +368 -308
- package/docs/API-reference/api/x-components.addquerytohistory.md +1 -1
- package/docs/API-reference/api/x-components.addquerytohistoryaction.addquerytohistory.md +1 -1
- package/docs/API-reference/api/x-components.addquerytohistoryaction.md +2 -2
- package/docs/API-reference/api/x-components.basecolumnpickerdropdown.md +4 -4
- package/docs/API-reference/api/x-components.baseresultlink.md +1 -0
- package/docs/API-reference/api/x-components.baseresultrating.md +1 -0
- package/docs/API-reference/api/x-components.baseteleport.md +21 -0
- package/docs/API-reference/api/x-components.bus.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaveidentifierresults.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaveidentifierresultswire.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavenextqueries.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavepopularsearches.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavequerysuggestions.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaverecommendations.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaverelatedprompts.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaverelatedtags.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsaverelatedtagswire.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavesearchresponse.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavesearchresponsewire.md +1 -1
- package/docs/API-reference/api/x-components.cancelfetchandsavesuggestionswire.md +1 -1
- package/docs/API-reference/api/x-components.configmutations.md +2 -7
- package/docs/API-reference/api/x-components.configmutations.mergeconfig.md +2 -13
- package/docs/API-reference/api/x-components.configmutations.setconfig.md +2 -13
- package/docs/API-reference/api/x-components.createfetchandsaveactions.md +2 -2
- package/docs/API-reference/api/x-components.createrelatedtagsquerygetter.md +2 -2
- package/docs/API-reference/api/x-components.createstoreemitters.md +2 -2
- package/docs/API-reference/api/x-components.debouncedfunction.cancel.md +2 -6
- package/docs/API-reference/api/x-components.debouncedfunction.md +4 -4
- package/docs/API-reference/api/x-components.defaultfacetsservice.clearfilterswithmetadata.md +2 -2
- package/docs/API-reference/api/x-components.defaultfacetsservice.md +1 -1
- package/docs/API-reference/api/x-components.devicemutations.md +4 -4
- package/docs/API-reference/api/x-components.devicemutations.setname.md +2 -13
- package/docs/API-reference/api/x-components.devicexevents.deviceprovided.md +1 -1
- package/docs/API-reference/api/x-components.devicexevents.md +1 -1
- package/docs/API-reference/api/x-components.empathizemutations.md +4 -4
- package/docs/API-reference/api/x-components.empathizemutations.setisopen.md +2 -13
- package/docs/API-reference/api/x-components.empathizexevents.empathizeclosed.md +1 -1
- package/docs/API-reference/api/x-components.empathizexevents.empathizeopened.md +1 -1
- package/docs/API-reference/api/x-components.empathizexevents.md +3 -3
- package/docs/API-reference/api/x-components.empathizexevents.userclosedempathize.md +1 -1
- package/docs/API-reference/api/x-components.experiencecontrolsactions.cancelfetchandsavecontrols.md +1 -1
- package/docs/API-reference/api/x-components.experiencecontrolsactions.fetchandsaveexperiencecontrolsresponse.md +2 -13
- package/docs/API-reference/api/x-components.experiencecontrolsactions.fetchexperiencecontrolsresponse.md +2 -15
- package/docs/API-reference/api/x-components.experiencecontrolsactions.md +3 -8
- package/docs/API-reference/api/x-components.experiencecontrolsmutations.md +6 -6
- package/docs/API-reference/api/x-components.experiencecontrolsmutations.setcontrols.md +2 -13
- package/docs/API-reference/api/x-components.experiencecontrolsmutations.setevents.md +2 -13
- package/docs/API-reference/api/x-components.experiencecontrolsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.externaltaggingservice.md +8 -8
- package/docs/API-reference/api/x-components.externaltaggingservice.movetosessionstorage.md +2 -13
- package/docs/API-reference/api/x-components.externaltaggingservice.storeaddtocart.md +2 -13
- package/docs/API-reference/api/x-components.externaltaggingservice.storeresultclicked.md +2 -13
- package/docs/API-reference/api/x-components.externaltaggingservice.trackaddtocart.md +2 -13
- package/docs/API-reference/api/x-components.extraparamsmutations.md +4 -4
- package/docs/API-reference/api/x-components.extraparamsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.extraparamsxevents.extraparamschanged.md +1 -1
- package/docs/API-reference/api/x-components.extraparamsxevents.extraparamsinitialized.md +1 -1
- package/docs/API-reference/api/x-components.extraparamsxevents.extraparamsprovided.md +1 -1
- package/docs/API-reference/api/x-components.extraparamsxevents.md +4 -4
- package/docs/API-reference/api/x-components.extraparamsxevents.userchangedextraparams.md +1 -1
- package/docs/API-reference/api/x-components.facetsmutations.clearstickyfilters.md +2 -6
- package/docs/API-reference/api/x-components.facetsmutations.md +15 -15
- package/docs/API-reference/api/x-components.facetsmutations.mutatefilter.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.removefacet.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.removefilter.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.removefilters.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.removestickyfilter.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.setfacet.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.setfacetgroup.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.setfilters.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.setpreselectedfilters.md +2 -13
- package/docs/API-reference/api/x-components.facetsmutations.setstickyfilter.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.clearfilters.md +2 -14
- package/docs/API-reference/api/x-components.facetsservice.clearfilterswithmetadata.md +3 -14
- package/docs/API-reference/api/x-components.facetsservice.deselect.md +2 -14
- package/docs/API-reference/api/x-components.facetsservice.md +14 -14
- package/docs/API-reference/api/x-components.facetsservice.select.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.selectpreselectedfilters.md +2 -6
- package/docs/API-reference/api/x-components.facetsservice.setfacets.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.setquery.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.toggle.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.updatefacets.md +2 -13
- package/docs/API-reference/api/x-components.facetsservice.updatepreselectedfilters.md +2 -13
- package/docs/API-reference/api/x-components.fetchandsavehooks.fetch.md +2 -16
- package/docs/API-reference/api/x-components.fetchandsavehooks.md +8 -8
- package/docs/API-reference/api/x-components.fetchandsavehooks.oncancel.md +2 -6
- package/docs/API-reference/api/x-components.fetchandsavehooks.onerror.md +3 -14
- package/docs/API-reference/api/x-components.fetchandsavehooks.onsuccess.md +3 -15
- package/docs/API-reference/api/x-components.fetchandsaveidentifierresults.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavenextqueries.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavepopularsearches.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavequerypreview.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavequerysuggestions.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsaverecommendations.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsaverelatedprompts.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsaverelatedtags.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavesearchresponse.md +1 -1
- package/docs/API-reference/api/x-components.fetchandsavesemanticquery.md +1 -1
- package/docs/API-reference/api/x-components.fetchexperiencecontrolsresponse.md +1 -1
- package/docs/API-reference/api/x-components.fetchidentifierresults.md +1 -1
- package/docs/API-reference/api/x-components.fetchnextqueries.md +1 -1
- package/docs/API-reference/api/x-components.fetchpopularsearches.md +1 -1
- package/docs/API-reference/api/x-components.fetchquerypreview.md +1 -1
- package/docs/API-reference/api/x-components.fetchquerysuggestions.md +1 -1
- package/docs/API-reference/api/x-components.fetchrecommendations.md +1 -1
- package/docs/API-reference/api/x-components.fetchrelatedprompts.md +1 -1
- package/docs/API-reference/api/x-components.fetchrelatedtags.md +1 -1
- package/docs/API-reference/api/x-components.fetchsearchresponse.md +1 -1
- package/docs/API-reference/api/x-components.fetchsemanticquery.md +1 -1
- package/docs/API-reference/api/x-components.historyqueriesactions.addquerytohistory.md +2 -12
- package/docs/API-reference/api/x-components.historyqueriesactions.loadhistoryqueriesfrombrowserstorage.md +2 -6
- package/docs/API-reference/api/x-components.historyqueriesactions.md +12 -12
- package/docs/API-reference/api/x-components.historyqueriesactions.refreshsession.md +2 -6
- package/docs/API-reference/api/x-components.historyqueriesactions.removefromhistory.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesactions.sethistoryqueries.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesactions.togglehistoryqueries.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesactions.updatehistoryquerieswithsearchresponse.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesmutations.md +8 -8
- package/docs/API-reference/api/x-components.historyqueriesmutations.sethistoryqueries.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesmutations.setisenabled.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesmutations.setsearchselectedfilters.md +2 -13
- package/docs/API-reference/api/x-components.historyqueriesmutations.setsessiontimestamp.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsactions.cancelfetchandsaveidentifierresults.md +3 -7
- package/docs/API-reference/api/x-components.identifierresultsactions.fetchandsaveidentifierresults.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsactions.fetchidentifierresults.md +2 -15
- package/docs/API-reference/api/x-components.identifierresultsactions.md +9 -9
- package/docs/API-reference/api/x-components.identifierresultsactions.saveorigin.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsactions.savequery.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsmutations.md +6 -6
- package/docs/API-reference/api/x-components.identifierresultsmutations.setidentifierresults.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsmutations.setorigin.md +2 -13
- package/docs/API-reference/api/x-components.identifierresultsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.increasepageappendingresults.md +1 -1
- package/docs/API-reference/api/x-components.initwrapper.bus.md +1 -1
- package/docs/API-reference/api/x-components.initwrapper.md +1 -1
- package/docs/API-reference/api/x-components.installxoptions.bus.md +1 -1
- package/docs/API-reference/api/x-components.installxoptions.installextraplugins.md +3 -14
- package/docs/API-reference/api/x-components.installxoptions.md +2 -7
- package/docs/API-reference/api/x-components.loadhistoryqueriesfrombrowserstorage.md +1 -1
- package/docs/API-reference/api/x-components.md +62 -61
- package/docs/API-reference/api/x-components.nextqueriesactions.cancelfetchandsavenextqueries.md +3 -7
- package/docs/API-reference/api/x-components.nextqueriesactions.fetchandsavenextqueries.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesactions.fetchandsavenextquerypreview.md +3 -14
- package/docs/API-reference/api/x-components.nextqueriesactions.fetchnextqueries.md +2 -15
- package/docs/API-reference/api/x-components.nextqueriesactions.fetchnextquerypreview.md +3 -16
- package/docs/API-reference/api/x-components.nextqueriesactions.md +11 -11
- package/docs/API-reference/api/x-components.nextqueriesactions.setqueryfromlasthistoryquery.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesmutations.md +10 -10
- package/docs/API-reference/api/x-components.nextqueriesmutations.resetresultspreview.md +2 -6
- package/docs/API-reference/api/x-components.nextqueriesmutations.setnextqueries.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesmutations.setrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesmutations.setresultspreview.md +2 -13
- package/docs/API-reference/api/x-components.nextqueriesmutations.setsearchedqueries.md +2 -13
- package/docs/API-reference/api/x-components.popularsearchesactions.cancelfetchandsavesuggestions.md +3 -7
- package/docs/API-reference/api/x-components.popularsearchesactions.fetchandsavesuggestions.md +2 -13
- package/docs/API-reference/api/x-components.popularsearchesactions.fetchsuggestions.md +2 -15
- package/docs/API-reference/api/x-components.popularsearchesactions.md +6 -6
- package/docs/API-reference/api/x-components.popularsearchesmutations.md +6 -6
- package/docs/API-reference/api/x-components.popularsearchesmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.popularsearchesmutations.setsearchedqueries.md +2 -13
- package/docs/API-reference/api/x-components.popularsearchesmutations.setsuggestions.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewactions.fetchandsavequerypreview.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewactions.fetchquerypreview.md +2 -15
- package/docs/API-reference/api/x-components.queriespreviewactions.md +5 -5
- package/docs/API-reference/api/x-components.queriespreviewmutations.addquerypreviewinstance.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.clearquerypreview.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.md +12 -12
- package/docs/API-reference/api/x-components.queriespreviewmutations.removequerypreviewinstance.md +3 -14
- package/docs/API-reference/api/x-components.queriespreviewmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.setquerypreviewcached.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.setselectedquerypreview.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.setstatus.md +2 -13
- package/docs/API-reference/api/x-components.queriespreviewmutations.updateaquerypreviewresult.md +3 -14
- package/docs/API-reference/api/x-components.querymutations.md +4 -4
- package/docs/API-reference/api/x-components.querymutations.setquery.md +2 -13
- package/docs/API-reference/api/x-components.querysuggestionsactions.cancelfetchandsavesuggestions.md +3 -7
- package/docs/API-reference/api/x-components.querysuggestionsactions.fetchandsavesuggestions.md +2 -13
- package/docs/API-reference/api/x-components.querysuggestionsactions.fetchsuggestions.md +2 -15
- package/docs/API-reference/api/x-components.querysuggestionsactions.md +8 -8
- package/docs/API-reference/api/x-components.querysuggestionsactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.querysuggestionsgetter.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestionsgetter.querysuggestions.md +2 -2
- package/docs/API-reference/api/x-components.querysuggestionsmutations.md +6 -6
- package/docs/API-reference/api/x-components.querysuggestionsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.querysuggestionsmutations.setsearchedqueries.md +2 -13
- package/docs/API-reference/api/x-components.querysuggestionsmutations.setsuggestions.md +2 -13
- package/docs/API-reference/api/x-components.recommendationsactions.cancelfetchandsaverecommendations.md +3 -7
- package/docs/API-reference/api/x-components.recommendationsactions.fetchandsaverecommendations.md +2 -13
- package/docs/API-reference/api/x-components.recommendationsactions.fetchrecommendations.md +2 -15
- package/docs/API-reference/api/x-components.recommendationsactions.md +6 -6
- package/docs/API-reference/api/x-components.recommendationsmutations.md +6 -6
- package/docs/API-reference/api/x-components.recommendationsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.recommendationsmutations.setrecommendations.md +2 -13
- package/docs/API-reference/api/x-components.recommendationsmutations.updaterecommendation.md +2 -13
- package/docs/API-reference/api/x-components.refreshsession.md +1 -1
- package/docs/API-reference/api/x-components.relatedpromptsactions.cancelfetchandsaverelatedprompts.md +3 -7
- package/docs/API-reference/api/x-components.relatedpromptsactions.fetchandsaverelatedprompts.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsactions.fetchrelatedprompts.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsactions.md +8 -8
- package/docs/API-reference/api/x-components.relatedpromptsactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsmutations.md +11 -11
- package/docs/API-reference/api/x-components.relatedpromptsmutations.resetrelatedpromptsstate.md +2 -6
- package/docs/API-reference/api/x-components.relatedpromptsmutations.resetselectedprompt.md +2 -6
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsproducts.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setselectedprompt.md +2 -13
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setselectedquery.md +2 -13
- package/docs/API-reference/api/x-components.relatedtags.md +1 -1
- package/docs/API-reference/api/x-components.relatedtagsactions.cancelfetchandsaverelatedtags.md +3 -7
- package/docs/API-reference/api/x-components.relatedtagsactions.fetchandsaverelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.relatedtagsactions.fetchrelatedtags.md +2 -15
- package/docs/API-reference/api/x-components.relatedtagsactions.md +9 -9
- package/docs/API-reference/api/x-components.relatedtagsactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.relatedtagsactions.togglerelatedtag.md +2 -13
- package/docs/API-reference/api/x-components.relatedtagsmutations.md +6 -6
- package/docs/API-reference/api/x-components.relatedtagsmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.relatedtagsmutations.setrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.relatedtagsmutations.setselectedrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.removefromhistory.md +1 -1
- package/docs/API-reference/api/x-components.resetrequestonrefinement.md +1 -1
- package/docs/API-reference/api/x-components.resetstateifnorequestwire.md +1 -1
- package/docs/API-reference/api/x-components.saveidentifierresultsorigin.md +1 -1
- package/docs/API-reference/api/x-components.savequery.md +1 -1
- package/docs/API-reference/api/x-components.savesearchorigin.md +1 -1
- package/docs/API-reference/api/x-components.savesearchresponse.md +1 -1
- package/docs/API-reference/api/x-components.scrollmutations.md +5 -5
- package/docs/API-reference/api/x-components.scrollmutations.setpendingscrollto.md +2 -13
- package/docs/API-reference/api/x-components.scrollmutations.setscrollcomponentstate.md +2 -13
- package/docs/API-reference/api/x-components.scrollvisibilityobserver.md +5 -5
- package/docs/API-reference/api/x-components.scrollvisibilityobserver.observe.md +2 -13
- package/docs/API-reference/api/x-components.scrollvisibilityobserver.unobserve.md +2 -13
- package/docs/API-reference/api/x-components.scrollxevents.md +8 -8
- package/docs/API-reference/api/x-components.scrollxevents.scrollrestorefailed.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.scrollrestoresucceeded.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.useralmostreachedscrollend.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.userchangedscrolldirection.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.userreachedscrollend.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.userreachedscrollstart.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.userscrolled.md +1 -1
- package/docs/API-reference/api/x-components.scrollxevents.userscrolledtoelement.md +1 -1
- package/docs/API-reference/api/x-components.searchactions.cancelfetchandsavesearchresponse.md +3 -7
- package/docs/API-reference/api/x-components.searchactions.fetchandsavesearchresponse.md +2 -13
- package/docs/API-reference/api/x-components.searchactions.fetchsearchresponse.md +2 -15
- package/docs/API-reference/api/x-components.searchactions.increasepageappendingresults.md +3 -6
- package/docs/API-reference/api/x-components.searchactions.md +12 -12
- package/docs/API-reference/api/x-components.searchactions.resetrequestonrefinement.md +2 -13
- package/docs/API-reference/api/x-components.searchactions.saveorigin.md +2 -13
- package/docs/API-reference/api/x-components.searchactions.savesearchresponse.md +2 -13
- package/docs/API-reference/api/x-components.searchactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.searchboxactions.md +5 -5
- package/docs/API-reference/api/x-components.searchboxactions.setinputstatus.md +2 -13
- package/docs/API-reference/api/x-components.searchboxactions.seturlparams.md +2 -13
- package/docs/API-reference/api/x-components.searchboxmutations.md +4 -4
- package/docs/API-reference/api/x-components.searchboxmutations.setinputstatus.md +2 -13
- package/docs/API-reference/api/x-components.searchboxxevents.md +12 -12
- package/docs/API-reference/api/x-components.searchboxxevents.searchboxquerychanged.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userblurredsearchbox.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userclearedquery.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userclickedsearchbox.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userfocusedsearchbox.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userhoveredinsearchbox.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userhoveredoutsearchbox.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.useristypingaquery.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userpressedclearsearchboxbutton.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userpressedenterkey.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.userpressedsearchbutton.md +1 -1
- package/docs/API-reference/api/x-components.searchboxxevents.usertalked.md +1 -1
- package/docs/API-reference/api/x-components.searchmutations.appendresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.md +28 -28
- package/docs/API-reference/api/x-components.searchmutations.resetstate.md +3 -7
- package/docs/API-reference/api/x-components.searchmutations.resetstateforreload.md +3 -7
- package/docs/API-reference/api/x-components.searchmutations.setbanners.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setdisplaytagging.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setfacets.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setfromnoresultswithfilters.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setisappendresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setisnoresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setorigin.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setpage.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setpartialresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setpromoteds.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setquerytagging.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setredirections.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setselectedfilters.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setsort.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setspellcheck.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.setstats.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.settotalresults.md +2 -13
- package/docs/API-reference/api/x-components.searchmutations.updateresult.md +2 -13
- package/docs/API-reference/api/x-components.semanticqueriesactions.fetchandsavesemanticquery.md +2 -13
- package/docs/API-reference/api/x-components.semanticqueriesactions.fetchsemanticquery.md +2 -15
- package/docs/API-reference/api/x-components.semanticqueriesactions.md +5 -5
- package/docs/API-reference/api/x-components.semanticqueriesmutations.md +8 -8
- package/docs/API-reference/api/x-components.semanticqueriesmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.semanticqueriesmutations.setsemanticqueries.md +2 -13
- package/docs/API-reference/api/x-components.semanticqueriesmutations.setsemanticqueriesrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.semanticqueriesmutations.settotalresults.md +2 -13
- package/docs/API-reference/api/x-components.sethistoryqueries.md +1 -1
- package/docs/API-reference/api/x-components.setqueryfromlasthistoryquery.md +1 -1
- package/docs/API-reference/api/x-components.setsearchurlparams.md +1 -1
- package/docs/API-reference/api/x-components.sortdropdown.md +4 -4
- package/docs/API-reference/api/x-components.sortlist.md +4 -4
- package/docs/API-reference/api/x-components.sortpickerlist.md +4 -4
- package/docs/API-reference/api/x-components.spatialnavigation.md +4 -4
- package/docs/API-reference/api/x-components.spatialnavigation.navigateto.md +2 -15
- package/docs/API-reference/api/x-components.stateselector.filter.md +2 -16
- package/docs/API-reference/api/x-components.stateselector.md +1 -6
- package/docs/API-reference/api/x-components.statusmutations.md +4 -4
- package/docs/API-reference/api/x-components.statusmutations.setstatus.md +2 -13
- package/docs/API-reference/api/x-components.storemodulestateandgetters.getters.md +11 -0
- package/docs/API-reference/api/x-components.storemodulestateandgetters.md +9 -6
- package/docs/API-reference/api/x-components.storemodulestateandgetters.state.md +11 -0
- package/docs/API-reference/api/x-components.taggingactions.md +4 -4
- package/docs/API-reference/api/x-components.taggingactions.track.md +2 -13
- package/docs/API-reference/api/x-components.taggingmutations.md +6 -6
- package/docs/API-reference/api/x-components.taggingmutations.setconsent.md +2 -13
- package/docs/API-reference/api/x-components.taggingmutations.setnoresultstaggingenabled.md +2 -13
- package/docs/API-reference/api/x-components.taggingmutations.setquerytagginginfo.md +2 -13
- package/docs/API-reference/api/x-components.takenavigationcontrol.direction.md +11 -0
- package/docs/API-reference/api/x-components.takenavigationcontrol.md +10 -7
- package/docs/API-reference/api/x-components.takenavigationcontrol.modulename.md +11 -0
- package/docs/API-reference/api/x-components.takenavigationcontrol.xevent.md +11 -0
- package/docs/API-reference/api/x-components.togglerelatedtag.md +1 -1
- package/docs/API-reference/api/x-components.track.md +1 -1
- package/docs/API-reference/api/x-components.urlmutations.md +12 -12
- package/docs/API-reference/api/x-components.urlmutations.setfilters.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setinitialextraparams.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setpage.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setparams.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setprompt.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setrelatedtags.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setscroll.md +2 -13
- package/docs/API-reference/api/x-components.urlmutations.setsort.md +2 -13
- package/docs/API-reference/api/x-components.urlxevents.extraparamsloadedfromurl.md +1 -1
- package/docs/API-reference/api/x-components.urlxevents.md +4 -4
- package/docs/API-reference/api/x-components.urlxevents.paramsloadedfromurl.md +1 -1
- package/docs/API-reference/api/x-components.urlxevents.pushableurlstateupdated.md +1 -1
- package/docs/API-reference/api/x-components.urlxevents.replaceableurlstateupdated.md +1 -1
- package/docs/API-reference/api/x-components.useemitdisplayevent.md +2 -2
- package/docs/API-reference/api/x-components.useondisplay.md +2 -2
- package/docs/API-reference/api/x-components.xactioncontext.commit.md +2 -13
- package/docs/API-reference/api/x-components.xactioncontext.dispatch.md +2 -13
- package/docs/API-reference/api/x-components.xactioncontext.md +2 -9
- package/docs/API-reference/api/x-components.xapi.addproducttocart.md +2 -12
- package/docs/API-reference/api/x-components.xapi.getsnippetconfig.md +2 -8
- package/docs/API-reference/api/x-components.xapi.init.md +2 -13
- package/docs/API-reference/api/x-components.xapi.md +9 -9
- package/docs/API-reference/api/x-components.xapi.search.md +2 -13
- package/docs/API-reference/api/x-components.xapi.setsnippetconfig.md +2 -13
- package/docs/API-reference/api/x-components.xcomponentapi.md +1 -1
- package/docs/API-reference/api/x-components.xcomponentbusapi.emit.md +2 -13
- package/docs/API-reference/api/x-components.xcomponentbusapi.md +2 -8
- package/docs/API-reference/api/x-components.xinstaller.init.md +1 -1
- package/docs/API-reference/api/x-components.xplugin._constructor_.md +1 -1
- package/docs/API-reference/api/x-components.xplugin.adapter.md +1 -1
- package/docs/API-reference/api/x-components.xplugin.bus.md +1 -1
- package/docs/API-reference/components/common/animations/x-components.animate-width.md +14 -14
- package/docs/API-reference/components/common/animations/x-components.collapse-height.md +2 -2
- package/docs/API-reference/components/common/animations/x-components.collapse-width.md +2 -2
- package/docs/API-reference/components/common/animations/x-components.cross-fade.md +2 -2
- package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +2 -2
- package/docs/API-reference/components/common/animations/x-components.fade.md +11 -11
- package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +2 -2
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +36 -35
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +53 -53
- package/docs/API-reference/components/common/currency/x-components.base-currency.md +130 -129
- package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +13 -13
- package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +2 -1
- package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +18 -18
- package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +18 -18
- package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +33 -36
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +20 -18
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +19 -19
- package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +22 -22
- package/docs/API-reference/components/common/modals/x-components.base-modal.md +44 -44
- package/docs/API-reference/components/common/modals/x-components.close-main-modal.md +10 -10
- package/docs/API-reference/components/common/modals/x-components.main-modal.md +30 -30
- package/docs/API-reference/components/common/modals/x-components.open-main-modal.md +10 -10
- package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +2 -2
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +18 -17
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +18 -18
- package/docs/API-reference/components/common/panels/x-components.base-tabs-panel.md +70 -70
- package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +2 -2
- package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +2 -1
- package/docs/API-reference/components/common/result/x-components.base-result-image.md +18 -18
- package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +16 -16
- package/docs/API-reference/components/common/result/x-components.base-result-rating.md +118 -118
- package/docs/API-reference/components/common/result/x-components.result-variant-selector.md +149 -149
- package/docs/API-reference/components/common/result/x-components.result-variants-provider.md +102 -102
- package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +62 -62
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +50 -49
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +84 -84
- package/docs/API-reference/components/common/x-components.auto-progress-bar.md +21 -21
- package/docs/API-reference/components/common/x-components.base-dropdown.md +19 -19
- package/docs/API-reference/components/common/x-components.base-event-button.md +5 -4
- package/docs/API-reference/components/common/x-components.base-grid.md +6 -5
- package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +10 -10
- package/docs/API-reference/components/common/x-components.base-rating.md +2 -1
- package/docs/API-reference/components/common/x-components.base-slider.md +70 -69
- package/docs/API-reference/components/common/x-components.base-switch.md +27 -26
- package/docs/API-reference/components/common/x-components.base-teleport.md +19 -0
- package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +86 -85
- package/docs/API-reference/components/common/x-components.display-emitter.md +7 -7
- package/docs/API-reference/components/common/x-components.global-x-bus.md +14 -13
- package/docs/API-reference/components/common/x-components.highlight.md +26 -26
- package/docs/API-reference/components/common/x-components.items-list.md +2 -2
- package/docs/API-reference/components/common/x-components.location-provider.md +11 -10
- package/docs/API-reference/components/common/x-components.page-loader-button.md +39 -39
- package/docs/API-reference/components/common/x-components.page-selector.md +43 -42
- package/docs/API-reference/components/common/x-components.sliding-panel.md +106 -105
- package/docs/API-reference/components/common/x-components.snippet-callbacks.md +7 -7
- package/docs/API-reference/components/device/x-components.device-detector.md +57 -57
- package/docs/API-reference/components/empathize/x-components.empathize.md +7 -7
- package/docs/API-reference/components/experience-controls/x-components.experience-controls.md +8 -8
- package/docs/API-reference/components/extra-params/x-components.extra-params.md +16 -15
- package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +17 -16
- package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +23 -23
- package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +40 -39
- package/docs/API-reference/components/facets/x-components.facets/facets.md +46 -46
- package/docs/API-reference/components/facets/x-components.filters/all-filter.md +5 -4
- package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +87 -87
- package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +105 -105
- package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +66 -66
- package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +15 -14
- package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +78 -78
- package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +84 -84
- package/docs/API-reference/components/facets/x-components.lists/filters-list.md +2 -1
- package/docs/API-reference/components/facets/x-components.lists/filters-search.md +1 -1
- package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +22 -22
- package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +4 -4
- package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +15 -14
- package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +19 -19
- package/docs/API-reference/components/facets/x-components.preselected-filters.md +24 -24
- package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +18 -17
- package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +35 -35
- package/docs/API-reference/components/history-queries/x-components.history-queries.md +70 -70
- package/docs/API-reference/components/history-queries/x-components.history-query.md +67 -67
- package/docs/API-reference/components/history-queries/x-components.my-history.md +74 -74
- package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +3 -2
- package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +2 -2
- package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +14 -13
- package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +52 -52
- package/docs/API-reference/components/next-queries/x-components.next-queries.md +53 -53
- package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +80 -80
- package/docs/API-reference/components/next-queries/x-components.next-query.md +37 -37
- package/docs/API-reference/components/popular-searches/x-components.popular-search.md +35 -35
- package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +45 -44
- package/docs/API-reference/components/queries-preview/x-components.query-preview-button.md +29 -28
- package/docs/API-reference/components/queries-preview/x-components.query-preview-list.md +43 -42
- package/docs/API-reference/components/queries-preview/x-components.query-preview.md +60 -60
- package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +53 -53
- package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +58 -58
- package/docs/API-reference/components/recommendations/x-components.recommendations.md +41 -40
- package/docs/API-reference/components/related-prompts/x-components.related-prompts-list.md +52 -52
- package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +2 -2
- package/docs/API-reference/components/related-tags/x-components.related-tag.md +59 -59
- package/docs/API-reference/components/related-tags/x-components.related-tags.md +72 -71
- package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +18 -17
- package/docs/API-reference/components/scroll/x-components.main-scroll.md +49 -48
- package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +10 -10
- package/docs/API-reference/components/scroll/x-components.scroll.md +59 -59
- package/docs/API-reference/components/search/x-components.banner.md +36 -36
- package/docs/API-reference/components/search/x-components.banners-list.md +59 -58
- package/docs/API-reference/components/search/x-components.fallback-disclaimer.md +8 -8
- package/docs/API-reference/components/search/x-components.partial-query-button.md +9 -9
- package/docs/API-reference/components/search/x-components.partial-results-list.md +5 -5
- package/docs/API-reference/components/search/x-components.promoted.md +42 -42
- package/docs/API-reference/components/search/x-components.promoteds-list.md +61 -60
- package/docs/API-reference/components/search/x-components.redirection.md +21 -21
- package/docs/API-reference/components/search/x-components.results-list.md +62 -61
- package/docs/API-reference/components/search/x-components.sort-dropdown.md +24 -24
- package/docs/API-reference/components/search/x-components.sort-list.md +24 -24
- package/docs/API-reference/components/search/x-components.sort-picker-list.md +34 -34
- package/docs/API-reference/components/search/x-components.spellcheck-button.md +3 -3
- package/docs/API-reference/components/search/x-components.spellcheck.md +10 -10
- package/docs/API-reference/components/search-box/x-components.clear-search-input.md +38 -38
- package/docs/API-reference/components/search-box/x-components.search-button.md +43 -43
- package/docs/API-reference/components/search-box/x-components.search-input-placeholder.md +36 -36
- package/docs/API-reference/components/search-box/x-components.search-input.md +43 -43
- package/docs/API-reference/components/semantic-queries/x-components.semantic-queries.md +52 -52
- package/docs/API-reference/components/semantic-queries/x-components.semantic-query.md +36 -35
- package/docs/API-reference/components/tagging/x-components.tagging.md +24 -24
- package/docs/API-reference/components/url/x-components.url-handler.md +18 -18
- package/extra-params/index.js +1 -1
- package/facets/index.js +23 -23
- package/history-queries/index.js +1 -1
- package/js/components/animations/animate-clip-path/animate-clip-path.factory.js +1 -1
- package/js/components/animations/animate-clip-path/animate-clip-path.factory.js.map +1 -1
- package/js/components/animations/animate-scale/animate-scale.factory.js +1 -1
- package/js/components/animations/animate-scale/animate-scale.factory.js.map +1 -1
- package/js/components/animations/animate-translate/animate-translate.factory.js +1 -1
- package/js/components/animations/animate-translate/animate-translate.factory.js.map +1 -1
- package/js/components/animations/animate-width.vue.js.map +1 -1
- package/js/components/animations/animate-width.vue2.js +1 -1
- package/js/components/animations/animate-width.vue2.js.map +1 -1
- package/js/components/animations/collapse-height.vue.js +4 -4
- package/js/components/animations/collapse-height.vue.js.map +1 -1
- package/js/components/animations/collapse-height.vue2.js +4 -4
- package/js/components/animations/collapse-height.vue2.js.map +1 -1
- package/js/components/animations/collapse-width.vue.js +4 -4
- package/js/components/animations/collapse-width.vue.js.map +1 -1
- package/js/components/animations/collapse-width.vue2.js +4 -4
- package/js/components/animations/collapse-width.vue2.js.map +1 -1
- package/js/components/animations/create-directional-animation-factory.js +2 -2
- package/js/components/animations/create-directional-animation-factory.js.map +1 -1
- package/js/components/animations/cross-fade.vue.js.map +1 -1
- package/js/components/animations/cross-fade.vue2.js +3 -3
- package/js/components/animations/cross-fade.vue2.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue2.js +4 -4
- package/js/components/animations/fade-and-slide.vue2.js.map +1 -1
- package/js/components/animations/fade.vue.js.map +1 -1
- package/js/components/animations/fade.vue2.js +3 -3
- package/js/components/animations/fade.vue2.js.map +1 -1
- package/js/components/animations/no-animation.vue.js +1 -1
- package/js/components/animations/no-animation.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue.js +4 -4
- package/js/components/animations/staggered-fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue2.js +6 -6
- package/js/components/animations/staggered-fade-and-slide.vue2.js.map +1 -1
- package/js/components/animations/use-collapse-animation.js +3 -1
- package/js/components/animations/use-collapse-animation.js.map +1 -1
- package/js/components/animations/use-disable-animation.js.map +1 -1
- package/js/components/auto-progress-bar.vue.js.map +1 -1
- package/js/components/auto-progress-bar.vue2.js +6 -6
- package/js/components/auto-progress-bar.vue2.js.map +1 -1
- package/js/components/base-dropdown.vue.js +15 -15
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/base-dropdown.vue2.js +14 -14
- package/js/components/base-dropdown.vue2.js.map +1 -1
- package/js/components/base-event-button.vue.js +2 -2
- package/js/components/base-event-button.vue.js.map +1 -1
- package/js/components/base-event-button.vue2.js +5 -5
- package/js/components/base-event-button.vue2.js.map +1 -1
- package/js/components/base-grid.vue.js.map +1 -1
- package/js/components/base-grid.vue2.js +12 -13
- package/js/components/base-grid.vue2.js.map +1 -1
- package/js/components/base-keyboard-navigation.vue.js +2 -2
- package/js/components/base-keyboard-navigation.vue.js.map +1 -1
- package/js/components/base-keyboard-navigation.vue2.js +7 -7
- package/js/components/base-keyboard-navigation.vue2.js.map +1 -1
- package/js/components/base-rating.vue.js.map +1 -1
- package/js/components/base-rating.vue2.js +6 -6
- package/js/components/base-rating.vue2.js.map +1 -1
- package/js/components/base-slider.vue.js.map +1 -1
- package/js/components/base-slider.vue2.js +7 -7
- package/js/components/base-slider.vue2.js.map +1 -1
- package/js/components/base-switch.vue.js +2 -2
- package/js/components/base-switch.vue.js.map +1 -1
- package/js/components/base-switch.vue2.js +5 -5
- package/js/components/base-switch.vue2.js.map +1 -1
- package/js/components/base-teleport.vue.js +17 -0
- package/js/components/base-teleport.vue.js.map +1 -0
- package/js/components/base-teleport.vue2.js +14 -0
- package/js/components/base-teleport.vue2.js.map +1 -0
- package/js/components/base-teleport.vue3.js +7 -0
- package/js/components/base-teleport.vue3.js.map +1 -0
- package/js/components/base-variable-column-grid.vue.js.map +1 -1
- package/js/components/base-variable-column-grid.vue2.js +7 -7
- package/js/components/base-variable-column-grid.vue2.js.map +1 -1
- package/js/components/column-picker/base-column-picker-dropdown.vue.js +4 -4
- package/js/components/column-picker/base-column-picker-dropdown.vue.js.map +1 -1
- package/js/components/column-picker/base-column-picker-dropdown.vue2.js +4 -4
- package/js/components/column-picker/base-column-picker-dropdown.vue2.js.map +1 -1
- package/js/components/column-picker/base-column-picker-list.vue.js.map +1 -1
- package/js/components/column-picker/base-column-picker-list.vue2.js +6 -6
- package/js/components/column-picker/base-column-picker-list.vue2.js.map +1 -1
- package/js/components/currency/base-currency.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue2.js +5 -5
- package/js/components/currency/base-currency.vue2.js.map +1 -1
- package/js/components/decorators/injection.consts.js.map +1 -1
- package/js/components/display-click-provider.vue.js +13 -14
- package/js/components/display-click-provider.vue.js.map +1 -1
- package/js/components/display-emitter.vue.js +5 -5
- package/js/components/display-emitter.vue.js.map +1 -1
- package/js/components/filters/labels/base-price-filter-label.vue.js +10 -10
- package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
- package/js/components/filters/labels/base-rating-filter-label.vue.js.map +1 -1
- package/js/components/filters/labels/base-rating-filter-label.vue2.js +7 -7
- package/js/components/filters/labels/base-rating-filter-label.vue2.js.map +1 -1
- package/js/components/global-x-bus.vue.js +3 -3
- package/js/components/global-x-bus.vue.js.map +1 -1
- package/js/components/highlight.vue.js +6 -6
- package/js/components/highlight.vue.js.map +1 -1
- package/js/components/highlight.vue2.js +11 -11
- package/js/components/highlight.vue2.js.map +1 -1
- package/js/components/items-list.vue.js.map +1 -1
- package/js/components/items-list.vue2.js +6 -6
- package/js/components/items-list.vue2.js.map +1 -1
- package/js/components/layouts/fixed-header-and-asides-layout.vue.js +8 -8
- package/js/components/layouts/fixed-header-and-asides-layout.vue.js.map +1 -1
- package/js/components/layouts/fixed-header-and-asides-layout.vue2.js +5 -5
- package/js/components/layouts/fixed-header-and-asides-layout.vue2.js.map +1 -1
- package/js/components/layouts/fixed-header-and-asides-layout.vue3.js +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue2.js +5 -5
- package/js/components/layouts/multi-column-max-width-layout.vue2.js.map +1 -1
- package/js/components/layouts/single-column-layout.vue.js +8 -8
- package/js/components/layouts/single-column-layout.vue.js.map +1 -1
- package/js/components/layouts/single-column-layout.vue2.js +5 -5
- package/js/components/layouts/single-column-layout.vue2.js.map +1 -1
- package/js/components/location-provider.vue.js +3 -3
- package/js/components/location-provider.vue.js.map +1 -1
- package/js/components/modals/base-events-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-events-modal-close.vue2.js +5 -5
- package/js/components/modals/base-events-modal-close.vue2.js.map +1 -1
- package/js/components/modals/base-events-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-events-modal-open.vue2.js +5 -5
- package/js/components/modals/base-events-modal-open.vue2.js.map +1 -1
- package/js/components/modals/base-events-modal.vue.js +4 -4
- package/js/components/modals/base-events-modal.vue.js.map +1 -1
- package/js/components/modals/base-events-modal.vue2.js +9 -9
- package/js/components/modals/base-events-modal.vue2.js.map +1 -1
- package/js/components/modals/base-id-modal-close.vue.js +2 -2
- package/js/components/modals/base-id-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-close.vue2.js +5 -4
- package/js/components/modals/base-id-modal-close.vue2.js.map +1 -1
- package/js/components/modals/base-id-modal-open.vue.js +2 -2
- package/js/components/modals/base-id-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-open.vue2.js +5 -4
- package/js/components/modals/base-id-modal-open.vue2.js.map +1 -1
- package/js/components/modals/base-id-modal.vue.js +4 -4
- package/js/components/modals/base-id-modal.vue.js.map +1 -1
- package/js/components/modals/base-id-modal.vue2.js +6 -6
- package/js/components/modals/base-id-modal.vue2.js.map +1 -1
- package/js/components/modals/base-modal.vue.js +3 -3
- package/js/components/modals/base-modal.vue.js.map +1 -1
- package/js/components/modals/base-modal.vue2.js +13 -11
- package/js/components/modals/base-modal.vue2.js.map +1 -1
- package/js/components/modals/close-main-modal.vue.js +2 -2
- package/js/components/modals/close-main-modal.vue.js.map +1 -1
- package/js/components/modals/close-main-modal.vue2.js +3 -3
- package/js/components/modals/close-main-modal.vue2.js.map +1 -1
- package/js/components/modals/main-modal.vue.js +5 -5
- package/js/components/modals/main-modal.vue.js.map +1 -1
- package/js/components/modals/main-modal.vue2.js +8 -8
- package/js/components/modals/main-modal.vue2.js.map +1 -1
- package/js/components/modals/open-main-modal.vue.js +2 -2
- package/js/components/modals/open-main-modal.vue.js.map +1 -1
- package/js/components/modals/open-main-modal.vue2.js +3 -3
- package/js/components/modals/open-main-modal.vue2.js.map +1 -1
- package/js/components/page-loader-button.vue.js.map +1 -1
- package/js/components/page-loader-button.vue2.js +5 -5
- package/js/components/page-loader-button.vue2.js.map +1 -1
- package/js/components/page-selector.vue.js +7 -7
- package/js/components/page-selector.vue.js.map +1 -1
- package/js/components/page-selector.vue2.js +12 -12
- package/js/components/page-selector.vue2.js.map +1 -1
- package/js/components/panels/base-header-toggle-panel.vue.js +2 -2
- package/js/components/panels/base-header-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-header-toggle-panel.vue2.js +10 -10
- package/js/components/panels/base-header-toggle-panel.vue2.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel-button.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel-button.vue2.js +7 -6
- package/js/components/panels/base-id-toggle-panel-button.vue2.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel.vue2.js +13 -13
- package/js/components/panels/base-id-toggle-panel.vue2.js.map +1 -1
- package/js/components/panels/base-tabs-panel.vue.js +4 -4
- package/js/components/panels/base-tabs-panel.vue.js.map +1 -1
- package/js/components/panels/base-tabs-panel.vue2.js +13 -13
- package/js/components/panels/base-tabs-panel.vue2.js.map +1 -1
- package/js/components/panels/base-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-toggle-panel.vue2.js +4 -4
- package/js/components/panels/base-toggle-panel.vue2.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue2.js +4 -4
- package/js/components/result/base-result-add-to-cart.vue2.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue2.js +6 -6
- package/js/components/result/base-result-current-price.vue2.js.map +1 -1
- package/js/components/result/base-result-image.vue.js +6 -6
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue2.js +15 -15
- package/js/components/result/base-result-image.vue2.js.map +1 -1
- package/js/components/result/base-result-link.vue.js +5 -5
- package/js/components/result/base-result-link.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue2.js +6 -5
- package/js/components/result/base-result-link.vue2.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue2.js +4 -4
- package/js/components/result/base-result-previous-price.vue2.js.map +1 -1
- package/js/components/result/base-result-rating.vue.js +4 -4
- package/js/components/result/base-result-rating.vue.js.map +1 -1
- package/js/components/result/base-result-rating.vue2.js +10 -9
- package/js/components/result/base-result-rating.vue2.js.map +1 -1
- package/js/components/result/result-variant-selector.vue.js +2 -2
- package/js/components/result/result-variant-selector.vue.js.map +1 -1
- package/js/components/result/result-variant-selector.vue2.js +5 -5
- package/js/components/result/result-variant-selector.vue2.js.map +1 -1
- package/js/components/result/result-variants-provider.vue.js +7 -7
- package/js/components/result/result-variants-provider.vue.js.map +1 -1
- package/js/components/scroll/base-scroll.vue.js +2 -2
- package/js/components/scroll/base-scroll.vue.js.map +1 -1
- package/js/components/scroll/base-scroll.vue2.js +10 -10
- package/js/components/scroll/base-scroll.vue2.js.map +1 -1
- package/js/components/scroll/use-scroll.js +7 -7
- package/js/components/scroll/use-scroll.js.map +1 -1
- package/js/components/sliding-panel.vue.js +7 -7
- package/js/components/sliding-panel.vue.js.map +1 -1
- package/js/components/sliding-panel.vue2.js +9 -9
- package/js/components/sliding-panel.vue2.js.map +1 -1
- package/js/components/snippet-callbacks.vue.js.map +1 -1
- package/js/components/snippet-callbacks.vue2.js +2 -2
- package/js/components/snippet-callbacks.vue2.js.map +1 -1
- package/js/components/suggestions/base-suggestion.vue.js +2 -2
- package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestion.vue2.js +12 -12
- package/js/components/suggestions/base-suggestion.vue2.js.map +1 -1
- package/js/components/suggestions/base-suggestions.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestions.vue2.js +9 -9
- package/js/components/suggestions/base-suggestions.vue2.js.map +1 -1
- package/js/components/x-component.utils.js +1 -0
- package/js/components/x-component.utils.js.map +1 -1
- package/js/composables/create-use-device.js +2 -2
- package/js/composables/create-use-device.js.map +1 -1
- package/js/composables/use-_x.js.map +1 -1
- package/js/composables/use-alias-api.js +8 -6
- package/js/composables/use-alias-api.js.map +1 -1
- package/js/composables/use-debounce.js.map +1 -1
- package/js/composables/use-getter.js +1 -0
- package/js/composables/use-getter.js.map +1 -1
- package/js/composables/use-on-display.js +7 -11
- package/js/composables/use-on-display.js.map +1 -1
- package/js/composables/use-state.js +1 -0
- package/js/composables/use-state.js.map +1 -1
- package/js/composables/use-x-bus.js +9 -11
- package/js/composables/use-x-bus.js.map +1 -1
- package/js/directives/infinite-scroll.js +3 -3
- package/js/directives/infinite-scroll.js.map +1 -1
- package/js/directives/typing.js +1 -2
- package/js/directives/typing.js.map +1 -1
- package/js/index.js +95 -94
- package/js/index.js.map +1 -1
- package/js/plugins/devtools/colors.utils.js +2 -2
- package/js/plugins/devtools/colors.utils.js.map +1 -1
- package/js/plugins/devtools/devtools.plugin.js +2 -1
- package/js/plugins/devtools/devtools.plugin.js.map +1 -1
- package/js/plugins/devtools/timeline.devtools.js +14 -13
- package/js/plugins/devtools/timeline.devtools.js.map +1 -1
- package/js/plugins/devtools/wiring.devtools.js +14 -10
- package/js/plugins/devtools/wiring.devtools.js.map +1 -1
- package/js/plugins/x-bus.js +3 -3
- package/js/plugins/x-bus.js.map +1 -1
- package/js/plugins/x-emitters.js +8 -6
- package/js/plugins/x-emitters.js.map +1 -1
- package/js/plugins/x-plugin.js +15 -15
- package/js/plugins/x-plugin.js.map +1 -1
- package/js/plugins/x-plugin.utils.js +2 -6
- package/js/plugins/x-plugin.utils.js.map +1 -1
- package/js/services/directional-focus-navigation.service.js +7 -9
- package/js/services/directional-focus-navigation.service.js.map +1 -1
- package/js/services/state-machine.service.js.map +1 -1
- package/js/store/utils/config-store.utils.js.map +1 -1
- package/js/store/utils/fetch-and-save-action.utils.js +5 -9
- package/js/store/utils/fetch-and-save-action.utils.js.map +1 -1
- package/js/store/utils/getters-proxy.utils.js +2 -1
- package/js/store/utils/getters-proxy.utils.js.map +1 -1
- package/js/store/utils/query.utils.js +1 -1
- package/js/store/utils/query.utils.js.map +1 -1
- package/js/store/utils/status-store.utils.js.map +1 -1
- package/js/store/utils/store-emitters.utils.js +2 -2
- package/js/store/utils/store-emitters.utils.js.map +1 -1
- package/js/store/x.module.js +1 -1
- package/js/store/x.module.js.map +1 -1
- package/js/types/animation-prop.js.map +1 -1
- package/js/utils/array.js +1 -0
- package/js/utils/array.js.map +1 -1
- package/js/utils/cancellable-promise.js +1 -1
- package/js/utils/cancellable-promise.js.map +1 -1
- package/js/utils/clone.js +1 -0
- package/js/utils/clone.js.map +1 -1
- package/js/utils/currency-formatter.js +8 -5
- package/js/utils/currency-formatter.js.map +1 -1
- package/js/utils/debounce.js +0 -2
- package/js/utils/debounce.js.map +1 -1
- package/js/utils/filters.js +1 -1
- package/js/utils/filters.js.map +1 -1
- package/js/utils/focus.js +1 -3
- package/js/utils/focus.js.map +1 -1
- package/js/utils/function.js +0 -1
- package/js/utils/function.js.map +1 -1
- package/js/utils/get-url-parameters.js.map +1 -1
- package/js/utils/html.js.map +1 -1
- package/js/utils/is-new-query.js.map +1 -1
- package/js/utils/normalize.js +1 -1
- package/js/utils/normalize.js.map +1 -1
- package/js/utils/number.js +0 -1
- package/js/utils/number.js.map +1 -1
- package/js/utils/origin.js +1 -3
- package/js/utils/origin.js.map +1 -1
- package/js/utils/sanitize.js.map +1 -1
- package/js/utils/storage.js +1 -1
- package/js/utils/storage.js.map +1 -1
- package/js/utils/string.js.map +1 -1
- package/js/utils/throttle.js.map +1 -1
- package/js/wiring/namespaced-wires.factory.js +4 -2
- package/js/wiring/namespaced-wires.factory.js.map +1 -1
- package/js/wiring/namespaced-wires.operators.js.map +1 -1
- package/js/wiring/wires-operators.utils.js +3 -1
- package/js/wiring/wires-operators.utils.js.map +1 -1
- package/js/wiring/wires.factory.js +17 -10
- package/js/wiring/wires.factory.js.map +1 -1
- package/js/wiring/wires.operators.js +2 -2
- package/js/wiring/wires.operators.js.map +1 -1
- package/js/wiring/wiring.utils.js +1 -1
- package/js/wiring/wiring.utils.js.map +1 -1
- package/js/x-installer/api/base-api.js +6 -7
- package/js/x-installer/api/base-api.js.map +1 -1
- package/js/x-installer/x-installer/x-installer.js +7 -6
- package/js/x-installer/x-installer/x-installer.js.map +1 -1
- package/js/x-modules/device/components/device-detector.vue.js +2 -2
- package/js/x-modules/device/components/device-detector.vue.js.map +1 -1
- package/js/x-modules/device/components/device-detector.vue2.js +6 -6
- package/js/x-modules/device/components/device-detector.vue2.js.map +1 -1
- package/js/x-modules/device/store/emitters.js.map +1 -1
- package/js/x-modules/device/store/module.js +3 -3
- package/js/x-modules/device/store/module.js.map +1 -1
- package/js/x-modules/device/wiring.js +2 -2
- package/js/x-modules/device/wiring.js.map +1 -1
- package/js/x-modules/device/x-module.js +1 -1
- package/js/x-modules/device/x-module.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue.js +3 -3
- package/js/x-modules/empathize/components/empathize.vue.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue2.js +50 -48
- package/js/x-modules/empathize/components/empathize.vue2.js.map +1 -1
- package/js/x-modules/empathize/store/emitters.js.map +1 -1
- package/js/x-modules/empathize/store/module.js +3 -3
- package/js/x-modules/empathize/store/module.js.map +1 -1
- package/js/x-modules/empathize/wiring.js +3 -3
- package/js/x-modules/empathize/wiring.js.map +1 -1
- package/js/x-modules/empathize/x-module.js +1 -1
- package/js/x-modules/empathize/x-module.js.map +1 -1
- package/js/x-modules/experience-controls/components/experience-controls.vue.js +2 -3
- package/js/x-modules/experience-controls/components/experience-controls.vue.js.map +1 -1
- package/js/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.js +2 -2
- package/js/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.js.map +1 -1
- package/js/x-modules/experience-controls/store/actions/fetch-experience-controls.action.js +1 -2
- package/js/x-modules/experience-controls/store/actions/fetch-experience-controls.action.js.map +1 -1
- package/js/x-modules/experience-controls/store/emitters.js +2 -2
- package/js/x-modules/experience-controls/store/emitters.js.map +1 -1
- package/js/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.js +1 -2
- package/js/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.js.map +1 -1
- package/js/x-modules/experience-controls/store/module.js +5 -7
- package/js/x-modules/experience-controls/store/module.js.map +1 -1
- package/js/x-modules/experience-controls/wiring.js +3 -3
- package/js/x-modules/experience-controls/wiring.js.map +1 -1
- package/js/x-modules/experience-controls/x-module.js +1 -1
- package/js/x-modules/experience-controls/x-module.js.map +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue.js +4 -5
- package/js/x-modules/extra-params/components/extra-params.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue.js +4 -4
- package/js/x-modules/extra-params/components/renderless-extra-param.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue2.js +8 -8
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue2.js.map +1 -1
- package/js/x-modules/extra-params/store/emitters.js +2 -2
- package/js/x-modules/extra-params/store/emitters.js.map +1 -1
- package/js/x-modules/extra-params/store/module.js +3 -3
- package/js/x-modules/extra-params/store/module.js.map +1 -1
- package/js/x-modules/extra-params/wiring.js +4 -4
- package/js/x-modules/extra-params/wiring.js.map +1 -1
- package/js/x-modules/extra-params/x-module.js +1 -1
- package/js/x-modules/extra-params/x-module.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue2.js +6 -6
- package/js/x-modules/facets/components/clear-filters.vue2.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue2.js +6 -6
- package/js/x-modules/facets/components/facets/facets-provider.vue2.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue2.js +8 -10
- package/js/x-modules/facets/components/facets/facets.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue2.js +7 -7
- package/js/x-modules/facets/components/filters/all-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js +8 -8
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js +9 -9
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js +31 -21
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue2.js +10 -11
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue.js +12 -13
- package/js/x-modules/facets/components/filters/number-range-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue2.js +8 -8
- package/js/x-modules/facets/components/filters/number-range-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue.js +7 -7
- package/js/x-modules/facets/components/filters/renderless-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue.js +12 -13
- package/js/x-modules/facets/components/filters/simple-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue2.js +7 -7
- package/js/x-modules/facets/components/filters/simple-filter.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.js +4 -4
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue2.js +7 -7
- package/js/x-modules/facets/components/lists/filters-list.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue.js +2 -2
- package/js/x-modules/facets/components/lists/filters-search.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue2.js +7 -7
- package/js/x-modules/facets/components/lists/filters-search.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue.js +49 -55
- package/js/x-modules/facets/components/lists/selected-filters-list.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue2.js +7 -7
- package/js/x-modules/facets/components/lists/selected-filters-list.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue.js +5 -5
- package/js/x-modules/facets/components/lists/selected-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue.js +4 -4
- package/js/x-modules/facets/components/lists/sliced-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue2.js +8 -8
- package/js/x-modules/facets/components/lists/sliced-filters.vue2.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue.js +4 -4
- package/js/x-modules/facets/components/lists/sorted-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/preselected-filters.vue.js +5 -5
- package/js/x-modules/facets/components/preselected-filters.vue.js.map +1 -1
- package/js/x-modules/facets/composables/use-facets.js +3 -4
- package/js/x-modules/facets/composables/use-facets.js.map +1 -1
- package/js/x-modules/facets/composables/use-filters-injection.js +0 -2
- package/js/x-modules/facets/composables/use-filters-injection.js.map +1 -1
- package/js/x-modules/facets/entities/add-facet-if-not-present.js +1 -1
- package/js/x-modules/facets/entities/add-facet-if-not-present.js.map +1 -1
- package/js/x-modules/facets/entities/editable-number-range-filter.entity.js +11 -8
- package/js/x-modules/facets/entities/editable-number-range-filter.entity.js.map +1 -1
- package/js/x-modules/facets/entities/filter-entity.factory.js +7 -4
- package/js/x-modules/facets/entities/filter-entity.factory.js.map +1 -1
- package/js/x-modules/facets/entities/hierarchical-filter.entity.js +6 -4
- package/js/x-modules/facets/entities/hierarchical-filter.entity.js.map +1 -1
- package/js/x-modules/facets/entities/number-range-filter.entity.js +6 -4
- package/js/x-modules/facets/entities/number-range-filter.entity.js.map +1 -1
- package/js/x-modules/facets/entities/raw-filter.entity.js +6 -4
- package/js/x-modules/facets/entities/raw-filter.entity.js.map +1 -1
- package/js/x-modules/facets/entities/simple-filter.entity.js +6 -4
- package/js/x-modules/facets/entities/simple-filter.entity.js.map +1 -1
- package/js/x-modules/facets/entities/single-select.modifier.js +3 -1
- package/js/x-modules/facets/entities/single-select.modifier.js.map +1 -1
- package/js/x-modules/facets/entities/sticky.modifier.js.map +1 -1
- package/js/x-modules/facets/entities/types.js.map +1 -1
- package/js/x-modules/facets/service/facets.service.js +2 -2
- package/js/x-modules/facets/service/facets.service.js.map +1 -1
- package/js/x-modules/facets/store/constants.js.map +1 -1
- package/js/x-modules/facets/store/emitters.js +6 -6
- package/js/x-modules/facets/store/emitters.js.map +1 -1
- package/js/x-modules/facets/store/getters/facets.getter.js +1 -1
- package/js/x-modules/facets/store/getters/facets.getter.js.map +1 -1
- package/js/x-modules/facets/store/getters/selected-filters-by-facet.getter.js.map +1 -1
- package/js/x-modules/facets/store/getters/selected-filters-for-request.getter.js.map +1 -1
- package/js/x-modules/facets/store/getters/selected-filters.getter.js.map +1 -1
- package/js/x-modules/facets/store/module.js +6 -6
- package/js/x-modules/facets/store/module.js.map +1 -1
- package/js/x-modules/facets/utils.js.map +1 -1
- package/js/x-modules/facets/wiring.js +22 -22
- package/js/x-modules/facets/wiring.js.map +1 -1
- package/js/x-modules/facets/x-module.js +1 -1
- package/js/x-modules/facets/x-module.js.map +1 -1
- package/js/x-modules/history-queries/components/clear-history-queries.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/clear-history-queries.vue2.js +6 -6
- package/js/x-modules/history-queries/components/clear-history-queries.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries-switch.vue.js +4 -4
- package/js/x-modules/history-queries/components/history-queries-switch.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries-switch.vue2.js +6 -6
- package/js/x-modules/history-queries/components/history-queries-switch.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue.js +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue2.js +5 -7
- package/js/x-modules/history-queries/components/history-queries.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/history-query.vue.js +4 -4
- package/js/x-modules/history-queries/components/history-query.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-query.vue2.js +6 -6
- package/js/x-modules/history-queries/components/history-query.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/my-history.vue.js +2 -2
- package/js/x-modules/history-queries/components/my-history.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/my-history.vue2.js +10 -10
- package/js/x-modules/history-queries/components/my-history.vue2.js.map +1 -1
- package/js/x-modules/history-queries/components/remove-history-query.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/remove-history-query.vue2.js +5 -5
- package/js/x-modules/history-queries/components/remove-history-query.vue2.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/add-query-to-history.action.js +2 -4
- package/js/x-modules/history-queries/store/actions/add-query-to-history.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.js +0 -1
- package/js/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/refresh-session.action.js +1 -1
- package/js/x-modules/history-queries/store/actions/refresh-session.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/remove-query-from-history.action.js +1 -1
- package/js/x-modules/history-queries/store/actions/remove-query-from-history.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/set-history-queries.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/set-url-params.action.js +0 -1
- package/js/x-modules/history-queries/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/toggle-history-queries.action.js.map +1 -1
- package/js/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.js +2 -6
- package/js/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.js.map +1 -1
- package/js/x-modules/history-queries/store/constants.js.map +1 -1
- package/js/x-modules/history-queries/store/emitters.js +2 -2
- package/js/x-modules/history-queries/store/emitters.js.map +1 -1
- package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js +0 -4
- package/js/x-modules/history-queries/store/getters/history-queries-with-results.getter.js.map +1 -1
- package/js/x-modules/history-queries/store/getters/history-queries.getter.js.map +1 -1
- package/js/x-modules/history-queries/store/getters/normalized-query.getter.js +2 -1
- package/js/x-modules/history-queries/store/getters/normalized-query.getter.js.map +1 -1
- package/js/x-modules/history-queries/store/getters/session-history-queries.getter.js.map +1 -1
- package/js/x-modules/history-queries/store/getters/storage-key.getter.js.map +1 -1
- package/js/x-modules/history-queries/store/module.js +8 -8
- package/js/x-modules/history-queries/store/module.js.map +1 -1
- package/js/x-modules/history-queries/wiring.js +16 -16
- package/js/x-modules/history-queries/wiring.js.map +1 -1
- package/js/x-modules/history-queries/x-module.js +1 -1
- package/js/x-modules/history-queries/x-module.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-result.vue.js +2 -2
- package/js/x-modules/identifier-results/components/identifier-result.vue.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-result.vue2.js +7 -7
- package/js/x-modules/identifier-results/components/identifier-result.vue2.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-results.vue.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-results.vue2.js +8 -8
- package/js/x-modules/identifier-results/components/identifier-results.vue2.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js +2 -2
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/fetch-identifier-results.action.js +1 -2
- package/js/x-modules/identifier-results/store/actions/fetch-identifier-results.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/save-origin.action.js +0 -1
- package/js/x-modules/identifier-results/store/actions/save-origin.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/save-query.action.js +0 -1
- package/js/x-modules/identifier-results/store/actions/save-query.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/emitters.js +2 -2
- package/js/x-modules/identifier-results/store/emitters.js.map +1 -1
- package/js/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.js +0 -1
- package/js/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.js.map +1 -1
- package/js/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.js +0 -1
- package/js/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.js.map +1 -1
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js +1 -2
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js.map +1 -1
- package/js/x-modules/identifier-results/store/module.js +7 -7
- package/js/x-modules/identifier-results/store/module.js.map +1 -1
- package/js/x-modules/identifier-results/wiring.js +10 -10
- package/js/x-modules/identifier-results/wiring.js.map +1 -1
- package/js/x-modules/identifier-results/x-module.js +1 -1
- package/js/x-modules/identifier-results/x-module.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue.js +12 -12
- package/js/x-modules/next-queries/components/next-queries-list.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue.js +2 -2
- package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue2.js +5 -5
- package/js/x-modules/next-queries/components/next-queries.vue2.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query-preview.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query-preview.vue2.js +5 -5
- package/js/x-modules/next-queries/components/next-query-preview.vue2.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query.vue.js +2 -2
- package/js/x-modules/next-queries/components/next-query.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query.vue2.js +5 -5
- package/js/x-modules/next-queries/components/next-query.vue2.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js +2 -3
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.js +3 -5
- package/js/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-next-queries.action.js +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-next-queries.action.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/fetch-next-query-preview.action.js +6 -3
- package/js/x-modules/next-queries/store/actions/fetch-next-query-preview.action.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.js +0 -1
- package/js/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.js.map +1 -1
- package/js/x-modules/next-queries/store/actions/set-url-params.action.js +0 -1
- package/js/x-modules/next-queries/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/next-queries/store/emitters.js +2 -2
- package/js/x-modules/next-queries/store/emitters.js.map +1 -1
- package/js/x-modules/next-queries/store/getters/next-queries-query.getter.js +1 -3
- package/js/x-modules/next-queries/store/getters/next-queries-query.getter.js.map +1 -1
- package/js/x-modules/next-queries/store/getters/next-queries.getter.js +1 -2
- package/js/x-modules/next-queries/store/getters/next-queries.getter.js.map +1 -1
- package/js/x-modules/next-queries/store/getters/request.getter.js +1 -3
- package/js/x-modules/next-queries/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/next-queries/store/module.js +10 -10
- package/js/x-modules/next-queries/store/module.js.map +1 -1
- package/js/x-modules/next-queries/wiring.js +11 -11
- package/js/x-modules/next-queries/wiring.js.map +1 -1
- package/js/x-modules/next-queries/x-module.js +1 -1
- package/js/x-modules/next-queries/x-module.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-search.vue.js +2 -2
- package/js/x-modules/popular-searches/components/popular-search.vue.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-search.vue2.js +3 -3
- package/js/x-modules/popular-searches/components/popular-search.vue2.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue2.js +3 -3
- package/js/x-modules/popular-searches/components/popular-searches.vue2.js.map +1 -1
- package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js +2 -3
- package/js/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
- package/js/x-modules/popular-searches/store/actions/fetch-suggestions.action.js +1 -1
- package/js/x-modules/popular-searches/store/actions/fetch-suggestions.action.js.map +1 -1
- package/js/x-modules/popular-searches/store/emitters.js +2 -2
- package/js/x-modules/popular-searches/store/emitters.js.map +1 -1
- package/js/x-modules/popular-searches/store/getters/popular-searches.getter.js +1 -2
- package/js/x-modules/popular-searches/store/getters/popular-searches.getter.js.map +1 -1
- package/js/x-modules/popular-searches/store/getters/request.getter.js +1 -3
- package/js/x-modules/popular-searches/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/popular-searches/store/module.js +7 -7
- package/js/x-modules/popular-searches/store/module.js.map +1 -1
- package/js/x-modules/popular-searches/wiring.js +4 -4
- package/js/x-modules/popular-searches/wiring.js.map +1 -1
- package/js/x-modules/popular-searches/x-module.js +1 -1
- package/js/x-modules/popular-searches/x-module.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js +50 -48
- package/js/x-modules/queries-preview/components/query-preview-button.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-list.vue.js +7 -7
- package/js/x-modules/queries-preview/components/query-preview-list.vue.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-list.vue2.js +12 -12
- package/js/x-modules/queries-preview/components/query-preview-list.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview.vue.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview.vue2.js +64 -66
- package/js/x-modules/queries-preview/components/query-preview.vue2.js.map +1 -1
- package/js/x-modules/queries-preview/composables/use-queries-preview.composable.js +4 -2
- package/js/x-modules/queries-preview/composables/use-queries-preview.composable.js.map +1 -1
- package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js +3 -5
- package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js.map +1 -1
- package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js +2 -2
- package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js.map +1 -1
- package/js/x-modules/queries-preview/store/emitters.js +2 -2
- package/js/x-modules/queries-preview/store/emitters.js.map +1 -1
- package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js +0 -1
- package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js.map +1 -1
- package/js/x-modules/queries-preview/store/module.js +7 -7
- package/js/x-modules/queries-preview/store/module.js.map +1 -1
- package/js/x-modules/queries-preview/utils/get-hash-from-query-preview.js.map +1 -1
- package/js/x-modules/queries-preview/wiring.js +11 -11
- package/js/x-modules/queries-preview/wiring.js.map +1 -1
- package/js/x-modules/queries-preview/x-module.js +1 -1
- package/js/x-modules/queries-preview/x-module.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js +6 -6
- package/js/x-modules/query-suggestions/components/query-suggestion.vue2.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue2.js.map +1 -1
- package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js +2 -3
- package/js/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.js.map +1 -1
- package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js +1 -1
- package/js/x-modules/query-suggestions/store/actions/fetch-suggestions.action.js.map +1 -1
- package/js/x-modules/query-suggestions/store/actions/set-url-params.action.js +0 -1
- package/js/x-modules/query-suggestions/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/query-suggestions/store/emitters.js +1 -1
- package/js/x-modules/query-suggestions/store/emitters.js.map +1 -1
- package/js/x-modules/query-suggestions/store/getters/normalized-query.getter.js +1 -3
- package/js/x-modules/query-suggestions/store/getters/normalized-query.getter.js.map +1 -1
- package/js/x-modules/query-suggestions/store/getters/query-suggestions.getter.js +1 -1
- package/js/x-modules/query-suggestions/store/getters/query-suggestions.getter.js.map +1 -1
- package/js/x-modules/query-suggestions/store/getters/request.getter.js +2 -4
- package/js/x-modules/query-suggestions/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/query-suggestions/store/module.js +7 -7
- package/js/x-modules/query-suggestions/store/module.js.map +1 -1
- package/js/x-modules/query-suggestions/wiring.js +12 -12
- package/js/x-modules/query-suggestions/wiring.js.map +1 -1
- package/js/x-modules/query-suggestions/x-module.js +1 -1
- package/js/x-modules/query-suggestions/x-module.js.map +1 -1
- package/js/x-modules/recommendations/components/recommendations.vue.js.map +1 -1
- package/js/x-modules/recommendations/components/recommendations.vue2.js +8 -8
- package/js/x-modules/recommendations/components/recommendations.vue2.js.map +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js +2 -3
- package/js/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.js.map +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js +1 -1
- package/js/x-modules/recommendations/store/actions/fetch-recommendations.action.js.map +1 -1
- package/js/x-modules/recommendations/store/constants.js.map +1 -1
- package/js/x-modules/recommendations/store/emitters.js +2 -2
- package/js/x-modules/recommendations/store/emitters.js.map +1 -1
- package/js/x-modules/recommendations/store/getters/request.getter.js +2 -2
- package/js/x-modules/recommendations/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/recommendations/store/module.js +7 -7
- package/js/x-modules/recommendations/store/module.js.map +1 -1
- package/js/x-modules/recommendations/wiring.js +3 -3
- package/js/x-modules/recommendations/wiring.js.map +1 -1
- package/js/x-modules/recommendations/x-module.js +1 -1
- package/js/x-modules/recommendations/x-module.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js +6 -6
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-list.vue.js +13 -13
- package/js/x-modules/related-prompts/components/related-prompts-list.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +9 -9
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +9 -9
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js +2 -2
- package/js/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js.map +1 -1
- package/js/x-modules/related-prompts/store/actions/fetch-related-prompts.action.js +1 -1
- package/js/x-modules/related-prompts/store/actions/fetch-related-prompts.action.js.map +1 -1
- package/js/x-modules/related-prompts/store/actions/set-url-params.action.js +0 -1
- package/js/x-modules/related-prompts/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/related-prompts/store/emitters.js +1 -1
- package/js/x-modules/related-prompts/store/emitters.js.map +1 -1
- package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js +1 -1
- package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js.map +1 -1
- package/js/x-modules/related-prompts/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/related-prompts/store/module.js +7 -7
- package/js/x-modules/related-prompts/store/module.js.map +1 -1
- package/js/x-modules/related-prompts/wiring.js +12 -12
- package/js/x-modules/related-prompts/wiring.js.map +1 -1
- package/js/x-modules/related-prompts/x-module.js +2 -2
- package/js/x-modules/related-prompts/x-module.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tag.vue.js +2 -2
- package/js/x-modules/related-tags/components/related-tag.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tag.vue2.js +8 -8
- package/js/x-modules/related-tags/components/related-tag.vue2.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue.js +5 -5
- package/js/x-modules/related-tags/components/related-tags.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue2.js +10 -10
- package/js/x-modules/related-tags/components/related-tags.vue2.js.map +1 -1
- package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js +2 -3
- package/js/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.js.map +1 -1
- package/js/x-modules/related-tags/store/actions/fetch-related-tags.action.js +1 -1
- package/js/x-modules/related-tags/store/actions/fetch-related-tags.action.js.map +1 -1
- package/js/x-modules/related-tags/store/actions/set-url-params.action.js +4 -1
- package/js/x-modules/related-tags/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/related-tags/store/actions/toggle-related-tag.action.js +0 -1
- package/js/x-modules/related-tags/store/actions/toggle-related-tag.action.js.map +1 -1
- package/js/x-modules/related-tags/store/emitters.js +2 -2
- package/js/x-modules/related-tags/store/emitters.js.map +1 -1
- package/js/x-modules/related-tags/store/getters/query.getter.js +1 -3
- package/js/x-modules/related-tags/store/getters/query.getter.js.map +1 -1
- package/js/x-modules/related-tags/store/getters/related-tags.getter.js +1 -2
- package/js/x-modules/related-tags/store/getters/related-tags.getter.js.map +1 -1
- package/js/x-modules/related-tags/store/getters/request.getter.js +1 -3
- package/js/x-modules/related-tags/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/related-tags/store/module.js +7 -7
- package/js/x-modules/related-tags/store/module.js.map +1 -1
- package/js/x-modules/related-tags/wiring.js +12 -12
- package/js/x-modules/related-tags/wiring.js.map +1 -1
- package/js/x-modules/related-tags/x-module.js +1 -1
- package/js/x-modules/related-tags/x-module.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue2.js +14 -16
- package/js/x-modules/scroll/components/main-scroll-item.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll.vue.js +10 -10
- package/js/x-modules/scroll/components/main-scroll.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js +50 -48
- package/js/x-modules/scroll/components/scroll-to-top.vue2.js.map +1 -1
- package/js/x-modules/scroll/components/scroll.const.js.map +1 -1
- package/js/x-modules/scroll/components/scroll.vue.js +3 -3
- package/js/x-modules/scroll/components/scroll.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll.vue2.js +6 -6
- package/js/x-modules/scroll/components/scroll.vue2.js.map +1 -1
- package/js/x-modules/scroll/store/emitters.js.map +1 -1
- package/js/x-modules/scroll/store/module.js +4 -4
- package/js/x-modules/scroll/store/module.js.map +1 -1
- package/js/x-modules/scroll/wiring.js +14 -14
- package/js/x-modules/scroll/wiring.js.map +1 -1
- package/js/x-modules/scroll/x-module.js +1 -1
- package/js/x-modules/scroll/x-module.js.map +1 -1
- package/js/x-modules/search/components/banner.vue.js +5 -4
- package/js/x-modules/search/components/banner.vue.js.map +1 -1
- package/js/x-modules/search/components/banner.vue2.js +5 -5
- package/js/x-modules/search/components/banner.vue2.js.map +1 -1
- package/js/x-modules/search/components/banners-list.vue.js +9 -8
- package/js/x-modules/search/components/banners-list.vue.js.map +1 -1
- package/js/x-modules/search/components/fallback-disclaimer.vue.js.map +1 -1
- package/js/x-modules/search/components/fallback-disclaimer.vue2.js +3 -3
- package/js/x-modules/search/components/fallback-disclaimer.vue2.js.map +1 -1
- package/js/x-modules/search/components/partial-query-button.vue.js +2 -2
- package/js/x-modules/search/components/partial-query-button.vue.js.map +1 -1
- package/js/x-modules/search/components/partial-query-button.vue2.js +6 -6
- package/js/x-modules/search/components/partial-query-button.vue2.js.map +1 -1
- package/js/x-modules/search/components/partial-results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/partial-results-list.vue2.js +8 -8
- package/js/x-modules/search/components/partial-results-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue.js +2 -2
- package/js/x-modules/search/components/promoted.vue.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue2.js +5 -5
- package/js/x-modules/search/components/promoted.vue2.js.map +1 -1
- package/js/x-modules/search/components/promoteds-list.vue.js +6 -6
- package/js/x-modules/search/components/promoteds-list.vue.js.map +1 -1
- package/js/x-modules/search/components/redirection.vue.js.map +1 -1
- package/js/x-modules/search/components/redirection.vue2.js +7 -8
- package/js/x-modules/search/components/redirection.vue2.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue.js +5 -5
- package/js/x-modules/search/components/results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-dropdown.vue.js +4 -4
- package/js/x-modules/search/components/sort-dropdown.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-dropdown.vue2.js +5 -5
- package/js/x-modules/search/components/sort-dropdown.vue2.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue2.js +8 -8
- package/js/x-modules/search/components/sort-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/sort-picker-list.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-picker-list.vue2.js +8 -8
- package/js/x-modules/search/components/sort-picker-list.vue2.js.map +1 -1
- package/js/x-modules/search/components/spellcheck-button.vue.js +2 -2
- package/js/x-modules/search/components/spellcheck-button.vue.js.map +1 -1
- package/js/x-modules/search/components/spellcheck-button.vue2.js +4 -4
- package/js/x-modules/search/components/spellcheck-button.vue2.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue2.js +3 -3
- package/js/x-modules/search/components/spellcheck.vue2.js.map +1 -1
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +5 -5
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
- package/js/x-modules/search/store/actions/fetch-search-response.action.js +1 -1
- package/js/x-modules/search/store/actions/fetch-search-response.action.js.map +1 -1
- package/js/x-modules/search/store/actions/increase-page-apending-results.action.js +0 -1
- package/js/x-modules/search/store/actions/increase-page-apending-results.action.js.map +1 -1
- package/js/x-modules/search/store/actions/reset-request-on-refinement.action.js +0 -1
- package/js/x-modules/search/store/actions/reset-request-on-refinement.action.js.map +1 -1
- package/js/x-modules/search/store/actions/save-origin.action.js +0 -1
- package/js/x-modules/search/store/actions/save-origin.action.js.map +1 -1
- package/js/x-modules/search/store/actions/save-search-response.action.js +1 -2
- package/js/x-modules/search/store/actions/save-search-response.action.js.map +1 -1
- package/js/x-modules/search/store/actions/set-url-params.action.js +0 -2
- package/js/x-modules/search/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/search/store/emitters.js +5 -5
- package/js/x-modules/search/store/emitters.js.map +1 -1
- package/js/x-modules/search/store/getters/query.getter.js +1 -1
- package/js/x-modules/search/store/getters/query.getter.js.map +1 -1
- package/js/x-modules/search/store/getters/request.getter.js +1 -2
- package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/search/store/module.js +10 -10
- package/js/x-modules/search/store/module.js.map +1 -1
- package/js/x-modules/search/wiring.js +26 -26
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/search/x-module.js +1 -1
- package/js/x-modules/search/x-module.js.map +1 -1
- package/js/x-modules/search-box/components/clear-search-input.vue.js.map +1 -1
- package/js/x-modules/search-box/components/clear-search-input.vue2.js +5 -5
- package/js/x-modules/search-box/components/clear-search-input.vue2.js.map +1 -1
- package/js/x-modules/search-box/components/search-button.vue.js +2 -2
- package/js/x-modules/search-box/components/search-button.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-button.vue2.js +5 -5
- package/js/x-modules/search-box/components/search-button.vue2.js.map +1 -1
- package/js/x-modules/search-box/components/search-input-placeholder.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-input-placeholder.vue2.js +8 -8
- package/js/x-modules/search-box/components/search-input-placeholder.vue2.js.map +1 -1
- package/js/x-modules/search-box/components/search-input.vue.js +10 -10
- package/js/x-modules/search-box/components/search-input.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-input.vue2.js +10 -10
- package/js/x-modules/search-box/components/search-input.vue2.js.map +1 -1
- package/js/x-modules/search-box/store/actions/set-input-status.action.js +8 -8
- package/js/x-modules/search-box/store/actions/set-input-status.action.js.map +1 -1
- package/js/x-modules/search-box/store/actions/set-url-params.action.js +0 -1
- package/js/x-modules/search-box/store/actions/set-url-params.action.js.map +1 -1
- package/js/x-modules/search-box/store/emitters.js +1 -1
- package/js/x-modules/search-box/store/emitters.js.map +1 -1
- package/js/x-modules/search-box/store/module.js +6 -6
- package/js/x-modules/search-box/store/module.js.map +1 -1
- package/js/x-modules/search-box/wiring.js +13 -12
- package/js/x-modules/search-box/wiring.js.map +1 -1
- package/js/x-modules/search-box/x-module.js +1 -1
- package/js/x-modules/search-box/x-module.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-queries.vue.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js +5 -5
- package/js/x-modules/semantic-queries/components/semantic-queries.vue2.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue.js +2 -2
- package/js/x-modules/semantic-queries/components/semantic-query.vue.js.map +1 -1
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js +6 -6
- package/js/x-modules/semantic-queries/components/semantic-query.vue2.js.map +1 -1
- package/js/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.js +1 -3
- package/js/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.js.map +1 -1
- package/js/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.js +1 -1
- package/js/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.js.map +1 -1
- package/js/x-modules/semantic-queries/store/emitters.js +1 -1
- package/js/x-modules/semantic-queries/store/emitters.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js +1 -1
- package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/request.getter.js +2 -2
- package/js/x-modules/semantic-queries/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js +1 -1
- package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js.map +1 -1
- package/js/x-modules/semantic-queries/store/module.js +8 -8
- package/js/x-modules/semantic-queries/store/module.js.map +1 -1
- package/js/x-modules/semantic-queries/wiring.js +7 -7
- package/js/x-modules/semantic-queries/wiring.js.map +1 -1
- package/js/x-modules/semantic-queries/x-module.js +1 -1
- package/js/x-modules/semantic-queries/x-module.js.map +1 -1
- package/js/x-modules/tagging/components/tagging.vue.js +10 -11
- package/js/x-modules/tagging/components/tagging.vue.js.map +1 -1
- package/js/x-modules/tagging/service/external-tagging.service.js +5 -4
- package/js/x-modules/tagging/service/external-tagging.service.js.map +1 -1
- package/js/x-modules/tagging/store/actions/track.action.js +3 -4
- package/js/x-modules/tagging/store/actions/track.action.js.map +1 -1
- package/js/x-modules/tagging/store/emitters.js +2 -2
- package/js/x-modules/tagging/store/emitters.js.map +1 -1
- package/js/x-modules/tagging/store/module.js +6 -6
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +31 -27
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/js/x-modules/tagging/x-module.js +1 -1
- package/js/x-modules/tagging/x-module.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue.js +2 -2
- package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue2.js +8 -9
- package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
- package/js/x-modules/url/store/emitters.js +3 -3
- package/js/x-modules/url/store/emitters.js.map +1 -1
- package/js/x-modules/url/store/getters/url-params.getter.js +0 -1
- package/js/x-modules/url/store/getters/url-params.getter.js.map +1 -1
- package/js/x-modules/url/store/initial-state.js +1 -1
- package/js/x-modules/url/store/initial-state.js.map +1 -1
- package/js/x-modules/url/store/module.js +4 -4
- package/js/x-modules/url/store/module.js.map +1 -1
- package/js/x-modules/url/store/mutations/set-params.mutation.js.map +1 -1
- package/js/x-modules/url/wiring.js +14 -14
- package/js/x-modules/url/wiring.js.map +1 -1
- package/js/x-modules/url/x-module.js +1 -1
- package/js/x-modules/url/x-module.js.map +1 -1
- package/next-queries/index.js +4 -4
- package/package.json +30 -25
- package/popular-searches/index.js +2 -2
- package/queries-preview/index.js +4 -4
- package/query-suggestions/index.js +1 -1
- package/related-tags/index.js +1 -1
- package/report/x-components.api.json +2828 -5263
- package/report/x-components.api.md +297 -281
- package/scroll/index.js +2 -2
- package/search/index.js +2 -2
- package/search-box/index.js +1 -1
- package/semantic-queries/index.js +2 -2
- package/tools/inject-css.js +4 -4
- package/types/adapter/e2e-adapter.d.ts +4 -2
- package/types/adapter/e2e-adapter.d.ts.map +1 -1
- package/types/adapter/mocked-responses.d.ts +1 -1
- package/types/adapter/mocked-responses.d.ts.map +1 -1
- package/types/components/animations/animate-clip-path/animate-clip-path.factory.d.ts.map +1 -1
- package/types/components/animations/animate-scale/animate-scale.factory.d.ts.map +1 -1
- package/types/components/animations/animate-translate/animate-translate.factory.d.ts.map +1 -1
- package/types/components/animations/animate-width.vue.d.ts.map +1 -1
- package/types/components/animations/collapse-height.vue.d.ts.map +1 -1
- package/types/components/animations/collapse-width.vue.d.ts.map +1 -1
- package/types/components/animations/create-directional-animation-factory.d.ts +1 -1
- package/types/components/animations/create-directional-animation-factory.d.ts.map +1 -1
- package/types/components/animations/cross-fade.vue.d.ts.map +1 -1
- package/types/components/animations/fade-and-slide.vue.d.ts.map +1 -1
- package/types/components/animations/fade.vue.d.ts.map +1 -1
- package/types/components/animations/index.d.ts +5 -5
- package/types/components/animations/index.d.ts.map +1 -1
- package/types/components/animations/no-animation.vue.d.ts.map +1 -1
- package/types/components/animations/staggered-fade-and-slide.vue.d.ts.map +1 -1
- package/types/components/animations/use-collapse-animation.d.ts.map +1 -1
- package/types/components/auto-progress-bar.vue.d.ts +1 -1
- package/types/components/auto-progress-bar.vue.d.ts.map +1 -1
- package/types/components/base-dropdown.vue.d.ts +2 -2
- package/types/components/base-dropdown.vue.d.ts.map +1 -1
- package/types/components/base-event-button.vue.d.ts +3 -3
- package/types/components/base-event-button.vue.d.ts.map +1 -1
- package/types/components/base-grid.vue.d.ts +2 -2
- package/types/components/base-grid.vue.d.ts.map +1 -1
- package/types/components/base-keyboard-navigation.vue.d.ts +2 -2
- package/types/components/base-keyboard-navigation.vue.d.ts.map +1 -1
- package/types/components/base-rating.vue.d.ts.map +1 -1
- package/types/components/base-slider.vue.d.ts +1 -1
- package/types/components/base-slider.vue.d.ts.map +1 -1
- package/types/components/base-switch.vue.d.ts +1 -1
- package/types/components/base-switch.vue.d.ts.map +1 -1
- package/types/components/base-teleport.vue.d.ts +13 -0
- package/types/components/base-teleport.vue.d.ts.map +1 -0
- package/types/components/base-variable-column-grid.vue.d.ts +2 -2
- package/types/components/base-variable-column-grid.vue.d.ts.map +1 -1
- package/types/components/column-picker/base-column-picker-dropdown.vue.d.ts +6 -5
- package/types/components/column-picker/base-column-picker-dropdown.vue.d.ts.map +1 -1
- package/types/components/column-picker/base-column-picker-list.vue.d.ts +3 -3
- package/types/components/column-picker/base-column-picker-list.vue.d.ts.map +1 -1
- package/types/components/column-picker/index.d.ts.map +1 -1
- package/types/components/currency/base-currency.vue.d.ts.map +1 -1
- package/types/components/currency/index.d.ts.map +1 -1
- package/types/components/decorators/injection.consts.d.ts +2 -2
- package/types/components/decorators/injection.consts.d.ts.map +1 -1
- package/types/components/display-click-provider.vue.d.ts.map +1 -1
- package/types/components/display-emitter.vue.d.ts +3 -3
- package/types/components/display-emitter.vue.d.ts.map +1 -1
- package/types/components/filters/index.d.ts.map +1 -1
- package/types/components/filters/labels/base-price-filter-label.vue.d.ts +2 -2
- package/types/components/filters/labels/base-price-filter-label.vue.d.ts.map +1 -1
- package/types/components/filters/labels/base-rating-filter-label.vue.d.ts +2 -2
- package/types/components/filters/labels/base-rating-filter-label.vue.d.ts.map +1 -1
- package/types/components/global-x-bus.vue.d.ts +1 -1
- package/types/components/global-x-bus.vue.d.ts.map +1 -1
- package/types/components/highlight.vue.d.ts.map +1 -1
- package/types/components/icons/index.d.ts +12 -12
- package/types/components/icons/index.d.ts.map +1 -1
- package/types/components/index.d.ts +15 -14
- package/types/components/index.d.ts.map +1 -1
- package/types/components/items-list.vue.d.ts +2 -2
- package/types/components/items-list.vue.d.ts.map +1 -1
- package/types/components/layouts/fixed-header-and-asides-layout.vue.d.ts.map +1 -1
- package/types/components/layouts/index.d.ts.map +1 -1
- package/types/components/layouts/multi-column-max-width-layout.vue.d.ts.map +1 -1
- package/types/components/layouts/single-column-layout.vue.d.ts.map +1 -1
- package/types/components/location-provider.vue.d.ts +2 -2
- package/types/components/location-provider.vue.d.ts.map +1 -1
- package/types/components/modals/base-events-modal-close.vue.d.ts +2 -2
- package/types/components/modals/base-events-modal-close.vue.d.ts.map +1 -1
- package/types/components/modals/base-events-modal-open.vue.d.ts +2 -2
- package/types/components/modals/base-events-modal-open.vue.d.ts.map +1 -1
- package/types/components/modals/base-events-modal.vue.d.ts +2 -2
- package/types/components/modals/base-events-modal.vue.d.ts.map +1 -1
- package/types/components/modals/base-id-modal-close.vue.d.ts.map +1 -1
- package/types/components/modals/base-id-modal-open.vue.d.ts.map +1 -1
- package/types/components/modals/base-id-modal.vue.d.ts.map +1 -1
- package/types/components/modals/base-modal.vue.d.ts.map +1 -1
- package/types/components/modals/close-main-modal.vue.d.ts.map +1 -1
- package/types/components/modals/index.d.ts +3 -3
- package/types/components/modals/index.d.ts.map +1 -1
- package/types/components/modals/main-modal.vue.d.ts +1 -1
- package/types/components/modals/main-modal.vue.d.ts.map +1 -1
- package/types/components/modals/open-main-modal.vue.d.ts.map +1 -1
- package/types/components/page-loader-button.vue.d.ts +3 -3
- package/types/components/page-loader-button.vue.d.ts.map +1 -1
- package/types/components/page-selector.vue.d.ts +2 -2
- package/types/components/page-selector.vue.d.ts.map +1 -1
- package/types/components/panels/base-header-toggle-panel.vue.d.ts.map +1 -1
- package/types/components/panels/base-id-toggle-panel-button.vue.d.ts +1 -1
- package/types/components/panels/base-id-toggle-panel-button.vue.d.ts.map +1 -1
- package/types/components/panels/base-id-toggle-panel.vue.d.ts.map +1 -1
- package/types/components/panels/base-tabs-panel.vue.d.ts.map +1 -1
- package/types/components/panels/base-toggle-panel.vue.d.ts.map +1 -1
- package/types/components/panels/index.d.ts +2 -2
- package/types/components/panels/index.d.ts.map +1 -1
- package/types/components/result/base-result-add-to-cart.vue.d.ts +4 -4
- package/types/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
- package/types/components/result/base-result-current-price.vue.d.ts +3 -3
- package/types/components/result/base-result-current-price.vue.d.ts.map +1 -1
- package/types/components/result/base-result-image.vue.d.ts +2 -2
- package/types/components/result/base-result-image.vue.d.ts.map +1 -1
- package/types/components/result/base-result-link.vue.d.ts +3 -2
- package/types/components/result/base-result-link.vue.d.ts.map +1 -1
- package/types/components/result/base-result-previous-price.vue.d.ts +2 -2
- package/types/components/result/base-result-previous-price.vue.d.ts.map +1 -1
- package/types/components/result/base-result-rating.vue.d.ts +3 -2
- package/types/components/result/base-result-rating.vue.d.ts.map +1 -1
- package/types/components/result/index.d.ts +3 -3
- package/types/components/result/index.d.ts.map +1 -1
- package/types/components/result/result-variant-selector.vue.d.ts +2 -2
- package/types/components/result/result-variant-selector.vue.d.ts.map +1 -1
- package/types/components/result/result-variants-provider.vue.d.ts +2 -2
- package/types/components/result/result-variants-provider.vue.d.ts.map +1 -1
- package/types/components/scroll/base-scroll.vue.d.ts +1 -1
- package/types/components/scroll/base-scroll.vue.d.ts.map +1 -1
- package/types/components/scroll/index.d.ts.map +1 -1
- package/types/components/scroll/scroll.types.d.ts.map +1 -1
- package/types/components/scroll/use-scroll.d.ts +2 -2
- package/types/components/scroll/use-scroll.d.ts.map +1 -1
- package/types/components/sliding-panel.vue.d.ts +2 -2
- package/types/components/sliding-panel.vue.d.ts.map +1 -1
- package/types/components/snippet-callbacks.vue.d.ts +1 -1
- package/types/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/components/suggestions/base-suggestion.vue.d.ts +5 -5
- package/types/components/suggestions/base-suggestion.vue.d.ts.map +1 -1
- package/types/components/suggestions/base-suggestions.vue.d.ts +2 -2
- package/types/components/suggestions/base-suggestions.vue.d.ts.map +1 -1
- package/types/components/suggestions/index.d.ts.map +1 -1
- package/types/components/x-component.utils.d.ts +2 -2
- package/types/components/x-component.utils.d.ts.map +1 -1
- package/types/composables/create-use-device.d.ts +1 -1
- package/types/composables/create-use-device.d.ts.map +1 -1
- package/types/composables/index.d.ts.map +1 -1
- package/types/composables/use-alias-api.d.ts +4 -4
- package/types/composables/use-alias-api.d.ts.map +1 -1
- package/types/composables/use-debounce.d.ts +1 -1
- package/types/composables/use-debounce.d.ts.map +1 -1
- package/types/composables/use-getter.d.ts +3 -3
- package/types/composables/use-getter.d.ts.map +1 -1
- package/types/composables/use-on-display.d.ts +11 -15
- package/types/composables/use-on-display.d.ts.map +1 -1
- package/types/composables/use-state.d.ts +3 -3
- package/types/composables/use-state.d.ts.map +1 -1
- package/types/composables/use-store.d.ts.map +1 -1
- package/types/composables/use-x-bus.d.ts +3 -3
- package/types/composables/use-x-bus.d.ts.map +1 -1
- package/types/directives/index.d.ts.map +1 -1
- package/types/directives/infinite-scroll.d.ts +1 -1
- package/types/directives/infinite-scroll.d.ts.map +1 -1
- package/types/directives/typing.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/plugins/devtools/colors.utils.d.ts +2 -2
- package/types/plugins/devtools/colors.utils.d.ts.map +1 -1
- package/types/plugins/devtools/devtools.plugin.d.ts +1 -1
- package/types/plugins/devtools/devtools.plugin.d.ts.map +1 -1
- package/types/plugins/devtools/timeline.devtools.d.ts +4 -4
- package/types/plugins/devtools/timeline.devtools.d.ts.map +1 -1
- package/types/plugins/devtools/wiring.devtools.d.ts +4 -4
- package/types/plugins/devtools/wiring.devtools.d.ts.map +1 -1
- package/types/plugins/index.d.ts.map +1 -1
- package/types/plugins/x-bus.d.ts +3 -3
- package/types/plugins/x-bus.d.ts.map +1 -1
- package/types/plugins/x-emitters.d.ts +7 -8
- package/types/plugins/x-emitters.d.ts.map +1 -1
- package/types/plugins/x-plugin.d.ts +16 -21
- package/types/plugins/x-plugin.d.ts.map +1 -1
- package/types/plugins/x-plugin.types.d.ts +19 -21
- package/types/plugins/x-plugin.types.d.ts.map +1 -1
- package/types/plugins/x-plugin.utils.d.ts +2 -2
- package/types/plugins/x-plugin.utils.d.ts.map +1 -1
- package/types/router.d.ts.map +1 -1
- package/types/services/directional-focus-navigation.service.d.ts +3 -5
- package/types/services/directional-focus-navigation.service.d.ts.map +1 -1
- package/types/services/index.d.ts.map +1 -1
- package/types/services/services.types.d.ts +4 -4
- package/types/services/services.types.d.ts.map +1 -1
- package/types/services/state-machine.service.d.ts +1 -1
- package/types/services/state-machine.service.d.ts.map +1 -1
- package/types/store/actions.types.d.ts +7 -9
- package/types/store/actions.types.d.ts.map +1 -1
- package/types/store/getters.types.d.ts +2 -2
- package/types/store/getters.types.d.ts.map +1 -1
- package/types/store/index.d.ts +1 -1
- package/types/store/index.d.ts.map +1 -1
- package/types/store/mutations.types.d.ts +2 -2
- package/types/store/mutations.types.d.ts.map +1 -1
- package/types/store/store.types.d.ts +8 -8
- package/types/store/store.types.d.ts.map +1 -1
- package/types/store/utils/config-store.utils.d.ts +2 -2
- package/types/store/utils/config-store.utils.d.ts.map +1 -1
- package/types/store/utils/fetch-and-save-action.utils.d.ts +7 -8
- package/types/store/utils/fetch-and-save-action.utils.d.ts.map +1 -1
- package/types/store/utils/getters-proxy.utils.d.ts +3 -3
- package/types/store/utils/getters-proxy.utils.d.ts.map +1 -1
- package/types/store/utils/query.utils.d.ts +3 -3
- package/types/store/utils/query.utils.d.ts.map +1 -1
- package/types/store/utils/status-store.utils.d.ts +1 -1
- package/types/store/utils/status-store.utils.d.ts.map +1 -1
- package/types/store/utils/store-emitters.utils.d.ts +9 -9
- package/types/store/utils/store-emitters.utils.d.ts.map +1 -1
- package/types/store/x.module.d.ts +2 -2
- package/types/store/x.module.d.ts.map +1 -1
- package/types/tailwind/plugin-options.d.ts.map +1 -1
- package/types/types/animation-prop.d.ts.map +1 -1
- package/types/types/index.d.ts +1 -1
- package/types/types/index.d.ts.map +1 -1
- package/types/types/origin.d.ts +1 -1
- package/types/types/origin.d.ts.map +1 -1
- package/types/types/page-mode.d.ts.map +1 -1
- package/types/types/url-params.d.ts.map +1 -1
- package/types/utils/array.d.ts +1 -1
- package/types/utils/array.d.ts.map +1 -1
- package/types/utils/cancellable-promise.d.ts.map +1 -1
- package/types/utils/clone.d.ts.map +1 -1
- package/types/utils/debounce.d.ts +1 -3
- package/types/utils/debounce.d.ts.map +1 -1
- package/types/utils/filters.d.ts +1 -1
- package/types/utils/filters.d.ts.map +1 -1
- package/types/utils/focus.d.ts.map +1 -1
- package/types/utils/function.d.ts.map +1 -1
- package/types/utils/get-url-parameters.d.ts.map +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/is-new-query.d.ts.map +1 -1
- package/types/utils/number.d.ts +0 -1
- package/types/utils/number.d.ts.map +1 -1
- package/types/utils/origin.d.ts +2 -4
- package/types/utils/origin.d.ts.map +1 -1
- package/types/utils/sanitize.d.ts.map +1 -1
- package/types/utils/storage.d.ts +1 -1
- package/types/utils/storage.d.ts.map +1 -1
- package/types/utils/throttle.d.ts +1 -1
- package/types/utils/throttle.d.ts.map +1 -1
- package/types/utils/types.d.ts +7 -7
- package/types/utils/types.d.ts.map +1 -1
- package/types/views/adapter.d.ts +1 -1
- package/types/views/adapter.d.ts.map +1 -1
- package/types/views/base-config.d.ts +2 -2
- package/types/views/base-config.d.ts.map +1 -1
- package/types/views/home/types.d.ts.map +1 -1
- package/types/wiring/events.types.d.ts +26 -26
- package/types/wiring/events.types.d.ts.map +1 -1
- package/types/wiring/index.d.ts.map +1 -1
- package/types/wiring/namespaced-wires.factory.d.ts +2 -2
- package/types/wiring/namespaced-wires.factory.d.ts.map +1 -1
- package/types/wiring/namespaced-wires.operators.d.ts +2 -2
- package/types/wiring/namespaced-wires.operators.d.ts.map +1 -1
- package/types/wiring/namespaced-wiring.types.d.ts +4 -4
- package/types/wiring/namespaced-wiring.types.d.ts.map +1 -1
- package/types/wiring/wires-operators.utils.d.ts +10 -8
- package/types/wiring/wires-operators.utils.d.ts.map +1 -1
- package/types/wiring/wires.factory.d.ts +2 -2
- package/types/wiring/wires.factory.d.ts.map +1 -1
- package/types/wiring/wires.operators.d.ts +2 -2
- package/types/wiring/wires.operators.d.ts.map +1 -1
- package/types/wiring/wiring.types.d.ts +10 -10
- package/types/wiring/wiring.types.d.ts.map +1 -1
- package/types/wiring/wiring.utils.d.ts +4 -4
- package/types/wiring/wiring.utils.d.ts.map +1 -1
- package/types/x-installer/api/api.types.d.ts +16 -17
- package/types/x-installer/api/api.types.d.ts.map +1 -1
- package/types/x-installer/api/base-api.d.ts +5 -5
- package/types/x-installer/api/base-api.d.ts.map +1 -1
- package/types/x-installer/api/index.d.ts.map +1 -1
- package/types/x-installer/index.d.ts.map +1 -1
- package/types/x-installer/x-installer/index.d.ts.map +1 -1
- package/types/x-installer/x-installer/types.d.ts +10 -10
- package/types/x-installer/x-installer/types.d.ts.map +1 -1
- package/types/x-installer/x-installer/x-installer.d.ts +8 -8
- package/types/x-installer/x-installer/x-installer.d.ts.map +1 -1
- package/types/x-modules/device/components/device-detector.vue.d.ts +1 -1
- package/types/x-modules/device/components/device-detector.vue.d.ts.map +1 -1
- package/types/x-modules/device/components/index.d.ts.map +1 -1
- package/types/x-modules/device/events.types.d.ts +1 -1
- package/types/x-modules/device/events.types.d.ts.map +1 -1
- package/types/x-modules/device/index.d.ts.map +1 -1
- package/types/x-modules/device/store/emitters.d.ts.map +1 -1
- package/types/x-modules/device/store/index.d.ts.map +1 -1
- package/types/x-modules/device/store/module.d.ts +1 -1
- package/types/x-modules/device/store/module.d.ts.map +1 -1
- package/types/x-modules/device/store/types.d.ts +2 -2
- package/types/x-modules/device/store/types.d.ts.map +1 -1
- package/types/x-modules/device/wiring.d.ts.map +1 -1
- package/types/x-modules/device/x-module.d.ts +2 -2
- package/types/x-modules/device/x-module.d.ts.map +1 -1
- package/types/x-modules/empathize/components/empathize.vue.d.ts +1 -1
- package/types/x-modules/empathize/components/empathize.vue.d.ts.map +1 -1
- package/types/x-modules/empathize/components/index.d.ts.map +1 -1
- package/types/x-modules/empathize/events.types.d.ts +3 -3
- package/types/x-modules/empathize/events.types.d.ts.map +1 -1
- package/types/x-modules/empathize/index.d.ts.map +1 -1
- package/types/x-modules/empathize/store/emitters.d.ts.map +1 -1
- package/types/x-modules/empathize/store/index.d.ts.map +1 -1
- package/types/x-modules/empathize/store/module.d.ts +1 -1
- package/types/x-modules/empathize/store/module.d.ts.map +1 -1
- package/types/x-modules/empathize/store/types.d.ts +4 -4
- package/types/x-modules/empathize/store/types.d.ts.map +1 -1
- package/types/x-modules/empathize/wiring.d.ts.map +1 -1
- package/types/x-modules/empathize/x-module.d.ts +2 -2
- package/types/x-modules/empathize/x-module.d.ts.map +1 -1
- package/types/x-modules/experience-controls/components/experience-controls.vue.d.ts.map +1 -1
- package/types/x-modules/experience-controls/components/index.d.ts.map +1 -1
- package/types/x-modules/experience-controls/events.types.d.ts +2 -2
- package/types/x-modules/experience-controls/events.types.d.ts.map +1 -1
- package/types/x-modules/experience-controls/index.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts +2 -2
- package/types/x-modules/experience-controls/store/actions/fetch-and-save-experience-controls.action.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts +1 -1
- package/types/x-modules/experience-controls/store/actions/fetch-experience-controls.action.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/actions/index.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/emitters.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts +1 -1
- package/types/x-modules/experience-controls/store/getters/experience-controls-results-request.getter.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/index.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/module.d.ts +1 -1
- package/types/x-modules/experience-controls/store/module.d.ts.map +1 -1
- package/types/x-modules/experience-controls/store/types.d.ts +10 -10
- package/types/x-modules/experience-controls/store/types.d.ts.map +1 -1
- package/types/x-modules/experience-controls/wiring.d.ts.map +1 -1
- package/types/x-modules/experience-controls/x-module.d.ts +2 -2
- package/types/x-modules/experience-controls/x-module.d.ts.map +1 -1
- package/types/x-modules/extra-params/components/extra-params.vue.d.ts +2 -2
- package/types/x-modules/extra-params/components/extra-params.vue.d.ts.map +1 -1
- package/types/x-modules/extra-params/components/index.d.ts +1 -1
- package/types/x-modules/extra-params/components/index.d.ts.map +1 -1
- package/types/x-modules/extra-params/components/renderless-extra-param.vue.d.ts.map +1 -1
- package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts +3 -3
- package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +1 -1
- package/types/x-modules/extra-params/events.types.d.ts +5 -5
- package/types/x-modules/extra-params/events.types.d.ts.map +1 -1
- package/types/x-modules/extra-params/index.d.ts.map +1 -1
- package/types/x-modules/extra-params/store/emitters.d.ts.map +1 -1
- package/types/x-modules/extra-params/store/index.d.ts.map +1 -1
- package/types/x-modules/extra-params/store/module.d.ts +1 -1
- package/types/x-modules/extra-params/store/module.d.ts.map +1 -1
- package/types/x-modules/extra-params/store/types.d.ts +3 -3
- package/types/x-modules/extra-params/store/types.d.ts.map +1 -1
- package/types/x-modules/extra-params/wiring.d.ts.map +1 -1
- package/types/x-modules/extra-params/x-module.d.ts +2 -2
- package/types/x-modules/extra-params/x-module.d.ts.map +1 -1
- package/types/x-modules/facets/components/clear-filters.vue.d.ts +3 -3
- package/types/x-modules/facets/components/clear-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts +2 -2
- package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets.vue.d.ts +3 -3
- package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/all-filter.vue.d.ts +3 -3
- package/types/x-modules/facets/components/filters/all-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts +2 -2
- package/types/x-modules/facets/components/filters/editable-number-range-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +4 -4
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/number-range-filter.vue.d.ts +4 -4
- package/types/x-modules/facets/components/filters/number-range-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/renderless-filter.vue.d.ts +4 -4
- package/types/x-modules/facets/components/filters/renderless-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts +4 -4
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/index.d.ts +5 -5
- package/types/x-modules/facets/components/index.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts +2 -2
- package/types/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/filters-list.vue.d.ts +3 -3
- package/types/x-modules/facets/components/lists/filters-list.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/filters-search.vue.d.ts +3 -3
- package/types/x-modules/facets/components/lists/filters-search.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts +2 -2
- package/types/x-modules/facets/components/lists/selected-filters-list.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts +1 -1
- package/types/x-modules/facets/components/lists/selected-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/sliced-filters.vue.d.ts +3 -3
- package/types/x-modules/facets/components/lists/sliced-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/lists/sorted-filters.vue.d.ts +2 -2
- package/types/x-modules/facets/components/lists/sorted-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/preselected-filters.vue.d.ts +1 -1
- package/types/x-modules/facets/components/preselected-filters.vue.d.ts.map +1 -1
- package/types/x-modules/facets/composables/index.d.ts.map +1 -1
- package/types/x-modules/facets/composables/use-facets.d.ts +3 -4
- package/types/x-modules/facets/composables/use-facets.d.ts.map +1 -1
- package/types/x-modules/facets/composables/use-filters-injection.d.ts +1 -2
- package/types/x-modules/facets/composables/use-filters-injection.d.ts.map +1 -1
- package/types/x-modules/facets/entities/add-facet-if-not-present.d.ts +3 -3
- package/types/x-modules/facets/entities/add-facet-if-not-present.d.ts.map +1 -1
- package/types/x-modules/facets/entities/editable-number-range-filter.entity.d.ts +8 -8
- package/types/x-modules/facets/entities/editable-number-range-filter.entity.d.ts.map +1 -1
- package/types/x-modules/facets/entities/filter-entity.factory.d.ts +4 -4
- package/types/x-modules/facets/entities/filter-entity.factory.d.ts.map +1 -1
- package/types/x-modules/facets/entities/hierarchical-filter.entity.d.ts +9 -8
- package/types/x-modules/facets/entities/hierarchical-filter.entity.d.ts.map +1 -1
- package/types/x-modules/facets/entities/index.d.ts.map +1 -1
- package/types/x-modules/facets/entities/number-range-filter.entity.d.ts +9 -8
- package/types/x-modules/facets/entities/number-range-filter.entity.d.ts.map +1 -1
- package/types/x-modules/facets/entities/raw-filter.entity.d.ts +8 -7
- package/types/x-modules/facets/entities/raw-filter.entity.d.ts.map +1 -1
- package/types/x-modules/facets/entities/simple-filter.entity.d.ts +9 -8
- package/types/x-modules/facets/entities/simple-filter.entity.d.ts.map +1 -1
- package/types/x-modules/facets/entities/single-select.modifier.d.ts +1 -1
- package/types/x-modules/facets/entities/single-select.modifier.d.ts.map +1 -1
- package/types/x-modules/facets/entities/sticky.modifier.d.ts +1 -1
- package/types/x-modules/facets/entities/sticky.modifier.d.ts.map +1 -1
- package/types/x-modules/facets/entities/types.d.ts +7 -7
- package/types/x-modules/facets/entities/types.d.ts.map +1 -1
- package/types/x-modules/facets/events.types.d.ts +2 -2
- package/types/x-modules/facets/events.types.d.ts.map +1 -1
- package/types/x-modules/facets/index.d.ts +5 -5
- package/types/x-modules/facets/index.d.ts.map +1 -1
- package/types/x-modules/facets/service/facets.service.d.ts +8 -9
- package/types/x-modules/facets/service/facets.service.d.ts.map +1 -1
- package/types/x-modules/facets/service/index.d.ts.map +1 -1
- package/types/x-modules/facets/service/types.d.ts +12 -12
- package/types/x-modules/facets/service/types.d.ts.map +1 -1
- package/types/x-modules/facets/store/constants.d.ts.map +1 -1
- package/types/x-modules/facets/store/emitters.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/facets.getter.d.ts +1 -1
- package/types/x-modules/facets/store/getters/facets.getter.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/index.d.ts +1 -1
- package/types/x-modules/facets/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts +1 -1
- package/types/x-modules/facets/store/getters/selected-filters-by-facet.getter.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts +1 -1
- package/types/x-modules/facets/store/getters/selected-filters-for-request.getter.d.ts.map +1 -1
- package/types/x-modules/facets/store/getters/selected-filters.getter.d.ts +1 -1
- package/types/x-modules/facets/store/getters/selected-filters.getter.d.ts.map +1 -1
- package/types/x-modules/facets/store/index.d.ts +1 -1
- package/types/x-modules/facets/store/index.d.ts.map +1 -1
- package/types/x-modules/facets/store/module.d.ts +1 -1
- package/types/x-modules/facets/store/module.d.ts.map +1 -1
- package/types/x-modules/facets/store/types.d.ts +15 -15
- package/types/x-modules/facets/store/types.d.ts.map +1 -1
- package/types/x-modules/facets/utils.d.ts +1 -1
- package/types/x-modules/facets/utils.d.ts.map +1 -1
- package/types/x-modules/facets/wiring.d.ts +2 -2
- package/types/x-modules/facets/wiring.d.ts.map +1 -1
- package/types/x-modules/facets/x-module.d.ts +2 -2
- package/types/x-modules/facets/x-module.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/clear-history-queries.vue.d.ts +2 -2
- package/types/x-modules/history-queries/components/clear-history-queries.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/history-queries-switch.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/history-queries.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/history-query.vue.d.ts +3 -3
- package/types/x-modules/history-queries/components/history-query.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/index.d.ts +1 -1
- package/types/x-modules/history-queries/components/index.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/my-history.vue.d.ts +2 -2
- package/types/x-modules/history-queries/components/my-history.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/components/remove-history-query.vue.d.ts +3 -3
- package/types/x-modules/history-queries/components/remove-history-query.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/config.types.d.ts.map +1 -1
- package/types/x-modules/history-queries/events.types.d.ts +1 -1
- package/types/x-modules/history-queries/events.types.d.ts.map +1 -1
- package/types/x-modules/history-queries/index.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts +4 -4
- package/types/x-modules/history-queries/store/actions/add-query-to-history.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts +1 -1
- package/types/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/refresh-session.action.d.ts +1 -1
- package/types/x-modules/history-queries/store/actions/refresh-session.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts +1 -1
- package/types/x-modules/history-queries/store/actions/remove-query-from-history.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts +1 -1
- package/types/x-modules/history-queries/store/actions/set-history-queries.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/set-url-params.action.d.ts +1 -2
- package/types/x-modules/history-queries/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts +1 -1
- package/types/x-modules/history-queries/store/actions/toggle-history-queries.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts +1 -4
- package/types/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/constants.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/emitters.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts +1 -4
- package/types/x-modules/history-queries/store/getters/history-queries-with-results.getter.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/getters/history-queries.getter.d.ts +3 -3
- package/types/x-modules/history-queries/store/getters/history-queries.getter.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/getters/normalized-query.getter.d.ts +2 -1
- package/types/x-modules/history-queries/store/getters/normalized-query.getter.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts +1 -1
- package/types/x-modules/history-queries/store/getters/session-history-queries.getter.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/getters/storage-key.getter.d.ts +1 -1
- package/types/x-modules/history-queries/store/getters/storage-key.getter.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/index.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/module.d.ts +1 -1
- package/types/x-modules/history-queries/store/module.d.ts.map +1 -1
- package/types/x-modules/history-queries/store/types.d.ts +19 -19
- package/types/x-modules/history-queries/store/types.d.ts.map +1 -1
- package/types/x-modules/history-queries/wiring.d.ts.map +1 -1
- package/types/x-modules/history-queries/x-module.d.ts +2 -2
- package/types/x-modules/history-queries/x-module.d.ts.map +1 -1
- package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts +2 -2
- package/types/x-modules/identifier-results/components/identifier-result.vue.d.ts.map +1 -1
- package/types/x-modules/identifier-results/components/identifier-results.vue.d.ts +1 -1
- package/types/x-modules/identifier-results/components/identifier-results.vue.d.ts.map +1 -1
- package/types/x-modules/identifier-results/components/index.d.ts.map +1 -1
- package/types/x-modules/identifier-results/config.types.d.ts.map +1 -1
- package/types/x-modules/identifier-results/events.types.d.ts +1 -1
- package/types/x-modules/identifier-results/events.types.d.ts.map +1 -1
- package/types/x-modules/identifier-results/index.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts +2 -2
- package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts +1 -1
- package/types/x-modules/identifier-results/store/actions/fetch-identifier-results.action.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/actions/index.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/actions/save-origin.action.d.ts +1 -2
- package/types/x-modules/identifier-results/store/actions/save-origin.action.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts +1 -2
- package/types/x-modules/identifier-results/store/actions/save-query.action.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/emitters.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-detection-regexp.getter.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-highlight-regexp.getter.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/index.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/module.d.ts +1 -1
- package/types/x-modules/identifier-results/store/module.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/types.d.ts +16 -16
- package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
- package/types/x-modules/identifier-results/wiring.d.ts.map +1 -1
- package/types/x-modules/identifier-results/x-module.d.ts +2 -2
- package/types/x-modules/identifier-results/x-module.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/index.d.ts +2 -2
- package/types/x-modules/next-queries/components/index.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries-list.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-queries.vue.d.ts +2 -2
- package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts +2 -2
- package/types/x-modules/next-queries/components/next-query-preview.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-query.vue.d.ts +3 -3
- package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -1
- package/types/x-modules/next-queries/config.types.d.ts.map +1 -1
- package/types/x-modules/next-queries/events.types.d.ts +1 -1
- package/types/x-modules/next-queries/events.types.d.ts.map +1 -1
- package/types/x-modules/next-queries/index.d.ts +1 -1
- package/types/x-modules/next-queries/index.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts +2 -2
- package/types/x-modules/next-queries/store/actions/fetch-and-save-next-queries.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-and-save-next-query-preview.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-next-queries.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts +4 -1
- package/types/x-modules/next-queries/store/actions/fetch-next-query-preview.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts +1 -1
- package/types/x-modules/next-queries/store/actions/set-query-from-last-history-query.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/actions/set-url-params.action.d.ts +1 -2
- package/types/x-modules/next-queries/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/emitters.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts +1 -3
- package/types/x-modules/next-queries/store/getters/next-queries-query.getter.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/getters/next-queries.getter.d.ts +1 -2
- package/types/x-modules/next-queries/store/getters/next-queries.getter.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/getters/request.getter.d.ts +1 -3
- package/types/x-modules/next-queries/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/index.d.ts +2 -2
- package/types/x-modules/next-queries/store/index.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/module.d.ts +1 -1
- package/types/x-modules/next-queries/store/module.d.ts.map +1 -1
- package/types/x-modules/next-queries/store/types.d.ts +24 -24
- package/types/x-modules/next-queries/store/types.d.ts.map +1 -1
- package/types/x-modules/next-queries/types.d.ts +2 -2
- package/types/x-modules/next-queries/types.d.ts.map +1 -1
- package/types/x-modules/next-queries/wiring.d.ts.map +1 -1
- package/types/x-modules/next-queries/x-module.d.ts +2 -2
- package/types/x-modules/next-queries/x-module.d.ts.map +1 -1
- package/types/x-modules/popular-searches/components/index.d.ts.map +1 -1
- package/types/x-modules/popular-searches/components/popular-search.vue.d.ts +3 -3
- package/types/x-modules/popular-searches/components/popular-search.vue.d.ts.map +1 -1
- package/types/x-modules/popular-searches/components/popular-searches.vue.d.ts.map +1 -1
- package/types/x-modules/popular-searches/config.types.d.ts.map +1 -1
- package/types/x-modules/popular-searches/events.types.d.ts +1 -1
- package/types/x-modules/popular-searches/events.types.d.ts.map +1 -1
- package/types/x-modules/popular-searches/index.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts +2 -2
- package/types/x-modules/popular-searches/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts +1 -1
- package/types/x-modules/popular-searches/store/actions/fetch-suggestions.action.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/emitters.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts +1 -2
- package/types/x-modules/popular-searches/store/getters/popular-searches.getter.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/getters/request.getter.d.ts +1 -3
- package/types/x-modules/popular-searches/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/index.d.ts +2 -2
- package/types/x-modules/popular-searches/store/index.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/module.d.ts +1 -1
- package/types/x-modules/popular-searches/store/module.d.ts.map +1 -1
- package/types/x-modules/popular-searches/store/types.d.ts +12 -12
- package/types/x-modules/popular-searches/store/types.d.ts.map +1 -1
- package/types/x-modules/popular-searches/wiring.d.ts.map +1 -1
- package/types/x-modules/popular-searches/x-module.d.ts +2 -2
- package/types/x-modules/popular-searches/x-module.d.ts.map +1 -1
- package/types/x-modules/queries-preview/components/index.d.ts +1 -1
- package/types/x-modules/queries-preview/components/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/components/query-preview-button.vue.d.ts +4 -4
- package/types/x-modules/queries-preview/components/query-preview-button.vue.d.ts.map +1 -1
- package/types/x-modules/queries-preview/components/query-preview-list.vue.d.ts +3 -3
- package/types/x-modules/queries-preview/components/query-preview-list.vue.d.ts.map +1 -1
- package/types/x-modules/queries-preview/components/query-preview.vue.d.ts +4 -4
- package/types/x-modules/queries-preview/components/query-preview.vue.d.ts.map +1 -1
- package/types/x-modules/queries-preview/composables/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/composables/use-queries-preview.composable.d.ts.map +1 -1
- package/types/x-modules/queries-preview/config.types.d.ts.map +1 -1
- package/types/x-modules/queries-preview/events.types.d.ts +3 -3
- package/types/x-modules/queries-preview/events.types.d.ts.map +1 -1
- package/types/x-modules/queries-preview/index.d.ts +1 -1
- package/types/x-modules/queries-preview/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts +1 -1
- package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts +1 -1
- package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/emitters.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts +1 -2
- package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/index.d.ts +1 -1
- package/types/x-modules/queries-preview/store/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/module.d.ts +1 -1
- package/types/x-modules/queries-preview/store/module.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/types.d.ts +20 -20
- package/types/x-modules/queries-preview/store/types.d.ts.map +1 -1
- package/types/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts +1 -1
- package/types/x-modules/queries-preview/utils/get-hash-from-query-preview.d.ts.map +1 -1
- package/types/x-modules/queries-preview/wiring.d.ts.map +1 -1
- package/types/x-modules/queries-preview/x-module.d.ts +2 -2
- package/types/x-modules/queries-preview/x-module.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/components/index.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts +2 -2
- package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/components/query-suggestions.vue.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/config.types.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/events.types.d.ts +1 -1
- package/types/x-modules/query-suggestions/events.types.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/index.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts +2 -2
- package/types/x-modules/query-suggestions/store/actions/fetch-and-save-suggestions.action.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts +1 -1
- package/types/x-modules/query-suggestions/store/actions/fetch-suggestions.action.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts +1 -2
- package/types/x-modules/query-suggestions/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/emitters.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts +1 -3
- package/types/x-modules/query-suggestions/store/getters/normalized-query.getter.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts +5 -5
- package/types/x-modules/query-suggestions/store/getters/query-suggestions.getter.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/getters/request.getter.d.ts +1 -3
- package/types/x-modules/query-suggestions/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/index.d.ts +2 -2
- package/types/x-modules/query-suggestions/store/index.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/module.d.ts +1 -1
- package/types/x-modules/query-suggestions/store/module.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/store/types.d.ts +15 -15
- package/types/x-modules/query-suggestions/store/types.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/wiring.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/x-module.d.ts +2 -2
- package/types/x-modules/query-suggestions/x-module.d.ts.map +1 -1
- package/types/x-modules/recommendations/components/index.d.ts.map +1 -1
- package/types/x-modules/recommendations/components/recommendations.vue.d.ts +2 -2
- package/types/x-modules/recommendations/components/recommendations.vue.d.ts.map +1 -1
- package/types/x-modules/recommendations/config.types.d.ts.map +1 -1
- package/types/x-modules/recommendations/events.types.d.ts +1 -1
- package/types/x-modules/recommendations/events.types.d.ts.map +1 -1
- package/types/x-modules/recommendations/index.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts +2 -2
- package/types/x-modules/recommendations/store/actions/fetch-and-save-recommendations.action.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts +1 -1
- package/types/x-modules/recommendations/store/actions/fetch-recommendations.action.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/constants.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/emitters.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/getters/request.getter.d.ts +1 -1
- package/types/x-modules/recommendations/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/index.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/module.d.ts +1 -1
- package/types/x-modules/recommendations/store/module.d.ts.map +1 -1
- package/types/x-modules/recommendations/store/types.d.ts +12 -12
- package/types/x-modules/recommendations/store/types.d.ts.map +1 -1
- package/types/x-modules/recommendations/wiring.d.ts.map +1 -1
- package/types/x-modules/recommendations/x-module.d.ts +2 -2
- package/types/x-modules/recommendations/x-module.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/index.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +2 -2
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-list.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/events.types.d.ts +1 -1
- package/types/x-modules/related-prompts/events.types.d.ts.map +1 -1
- package/types/x-modules/related-prompts/index.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts +2 -2
- package/types/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts +1 -1
- package/types/x-modules/related-prompts/store/actions/fetch-related-prompts.action.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/actions/set-url-params.action.d.ts +1 -2
- package/types/x-modules/related-prompts/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/emitters.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/getters/index.d.ts +1 -1
- package/types/x-modules/related-prompts/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts +1 -1
- package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/getters/request.getter.d.ts +1 -1
- package/types/x-modules/related-prompts/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/index.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/module.d.ts +1 -1
- package/types/x-modules/related-prompts/store/module.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/types.d.ts +17 -17
- package/types/x-modules/related-prompts/store/types.d.ts.map +1 -1
- package/types/x-modules/related-prompts/types.d.ts +2 -2
- package/types/x-modules/related-prompts/types.d.ts.map +1 -1
- package/types/x-modules/related-prompts/wiring.d.ts.map +1 -1
- package/types/x-modules/related-prompts/x-module.d.ts +2 -2
- package/types/x-modules/related-prompts/x-module.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/index.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/related-tag.vue.d.ts +3 -3
- package/types/x-modules/related-tags/components/related-tag.vue.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/related-tags.vue.d.ts +3 -3
- package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -1
- package/types/x-modules/related-tags/config.types.d.ts.map +1 -1
- package/types/x-modules/related-tags/events.types.d.ts +1 -1
- package/types/x-modules/related-tags/events.types.d.ts.map +1 -1
- package/types/x-modules/related-tags/index.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts +2 -2
- package/types/x-modules/related-tags/store/actions/fetch-and-save-related-tags.action.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts +1 -1
- package/types/x-modules/related-tags/store/actions/fetch-related-tags.action.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/actions/set-url-params.action.d.ts +4 -1
- package/types/x-modules/related-tags/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts +1 -2
- package/types/x-modules/related-tags/store/actions/toggle-related-tag.action.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/emitters.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/getters/query.getter.d.ts +1 -3
- package/types/x-modules/related-tags/store/getters/query.getter.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/getters/related-tags.getter.d.ts +1 -2
- package/types/x-modules/related-tags/store/getters/related-tags.getter.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/getters/request.getter.d.ts +1 -3
- package/types/x-modules/related-tags/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/index.d.ts +1 -1
- package/types/x-modules/related-tags/store/index.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/module.d.ts +1 -1
- package/types/x-modules/related-tags/store/module.d.ts.map +1 -1
- package/types/x-modules/related-tags/store/types.d.ts +16 -16
- package/types/x-modules/related-tags/store/types.d.ts.map +1 -1
- package/types/x-modules/related-tags/wiring.d.ts.map +1 -1
- package/types/x-modules/related-tags/x-module.d.ts +2 -2
- package/types/x-modules/related-tags/x-module.d.ts.map +1 -1
- package/types/x-modules/scroll/components/index.d.ts +2 -2
- package/types/x-modules/scroll/components/index.d.ts.map +1 -1
- package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts +2 -2
- package/types/x-modules/scroll/components/main-scroll-item.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/components/main-scroll.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/components/scroll-to-top.vue.d.ts +1 -1
- package/types/x-modules/scroll/components/scroll-to-top.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/components/scroll.const.d.ts +2 -2
- package/types/x-modules/scroll/components/scroll.const.d.ts.map +1 -1
- package/types/x-modules/scroll/components/scroll.types.d.ts +2 -2
- package/types/x-modules/scroll/components/scroll.types.d.ts.map +1 -1
- package/types/x-modules/scroll/components/scroll.vue.d.ts +2 -2
- package/types/x-modules/scroll/components/scroll.vue.d.ts.map +1 -1
- package/types/x-modules/scroll/events.types.d.ts +9 -9
- package/types/x-modules/scroll/events.types.d.ts.map +1 -1
- package/types/x-modules/scroll/index.d.ts +1 -1
- package/types/x-modules/scroll/index.d.ts.map +1 -1
- package/types/x-modules/scroll/store/emitters.d.ts.map +1 -1
- package/types/x-modules/scroll/store/index.d.ts.map +1 -1
- package/types/x-modules/scroll/store/module.d.ts +1 -1
- package/types/x-modules/scroll/store/module.d.ts.map +1 -1
- package/types/x-modules/scroll/store/types.d.ts +6 -6
- package/types/x-modules/scroll/store/types.d.ts.map +1 -1
- package/types/x-modules/scroll/wiring.d.ts.map +1 -1
- package/types/x-modules/scroll/x-module.d.ts +2 -2
- package/types/x-modules/scroll/x-module.d.ts.map +1 -1
- package/types/x-modules/search/components/banner.vue.d.ts +2 -2
- package/types/x-modules/search/components/banner.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/banners-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/fallback-disclaimer.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/index.d.ts +1 -1
- package/types/x-modules/search/components/index.d.ts.map +1 -1
- package/types/x-modules/search/components/partial-query-button.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/partial-results-list.vue.d.ts +2 -2
- package/types/x-modules/search/components/partial-results-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/promoted.vue.d.ts +2 -2
- package/types/x-modules/search/components/promoted.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/promoteds-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/redirection.vue.d.ts +2 -2
- package/types/x-modules/search/components/redirection.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/results-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/sort-dropdown.vue.d.ts +7 -6
- package/types/x-modules/search/components/sort-dropdown.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/sort-list.vue.d.ts +9 -8
- package/types/x-modules/search/components/sort-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/sort-picker-list.vue.d.ts +9 -8
- package/types/x-modules/search/components/sort-picker-list.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/spellcheck-button.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/spellcheck.vue.d.ts.map +1 -1
- package/types/x-modules/search/config.types.d.ts +1 -1
- package/types/x-modules/search/config.types.d.ts.map +1 -1
- package/types/x-modules/search/events.types.d.ts +2 -2
- package/types/x-modules/search/events.types.d.ts.map +1 -1
- package/types/x-modules/search/index.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts +2 -2
- package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/fetch-search-response.action.d.ts +1 -1
- package/types/x-modules/search/store/actions/fetch-search-response.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/increase-page-apending-results.action.d.ts +1 -1
- package/types/x-modules/search/store/actions/increase-page-apending-results.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/index.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts +1 -2
- package/types/x-modules/search/store/actions/reset-request-on-refinement.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/save-origin.action.d.ts +1 -2
- package/types/x-modules/search/store/actions/save-origin.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/save-search-response.action.d.ts +1 -2
- package/types/x-modules/search/store/actions/save-search-response.action.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/set-url-params.action.d.ts +1 -3
- package/types/x-modules/search/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/search/store/emitters.d.ts.map +1 -1
- package/types/x-modules/search/store/getters/index.d.ts +1 -1
- package/types/x-modules/search/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/search/store/getters/query.getter.d.ts +1 -1
- package/types/x-modules/search/store/getters/query.getter.d.ts.map +1 -1
- package/types/x-modules/search/store/getters/request.getter.d.ts +1 -2
- package/types/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/search/store/index.d.ts.map +1 -1
- package/types/x-modules/search/store/module.d.ts +2 -2
- package/types/x-modules/search/store/module.d.ts.map +1 -1
- package/types/x-modules/search/store/types.d.ts +41 -41
- package/types/x-modules/search/store/types.d.ts.map +1 -1
- package/types/x-modules/search/types.d.ts +2 -2
- package/types/x-modules/search/types.d.ts.map +1 -1
- package/types/x-modules/search/wiring.d.ts +2 -2
- package/types/x-modules/search/wiring.d.ts.map +1 -1
- package/types/x-modules/search/x-module.d.ts +2 -2
- package/types/x-modules/search/x-module.d.ts.map +1 -1
- package/types/x-modules/search-box/components/clear-search-input.vue.d.ts +1 -1
- package/types/x-modules/search-box/components/clear-search-input.vue.d.ts.map +1 -1
- package/types/x-modules/search-box/components/index.d.ts +1 -1
- package/types/x-modules/search-box/components/index.d.ts.map +1 -1
- package/types/x-modules/search-box/components/search-button.vue.d.ts +2 -2
- package/types/x-modules/search-box/components/search-button.vue.d.ts.map +1 -1
- package/types/x-modules/search-box/components/search-input-placeholder.vue.d.ts +1 -1
- package/types/x-modules/search-box/components/search-input-placeholder.vue.d.ts.map +1 -1
- package/types/x-modules/search-box/components/search-input.vue.d.ts.map +1 -1
- package/types/x-modules/search-box/events.types.d.ts +13 -13
- package/types/x-modules/search-box/events.types.d.ts.map +1 -1
- package/types/x-modules/search-box/index.d.ts.map +1 -1
- package/types/x-modules/search-box/store/actions/set-input-status.action.d.ts +2 -2
- package/types/x-modules/search-box/store/actions/set-input-status.action.d.ts.map +1 -1
- package/types/x-modules/search-box/store/actions/set-url-params.action.d.ts +1 -2
- package/types/x-modules/search-box/store/actions/set-url-params.action.d.ts.map +1 -1
- package/types/x-modules/search-box/store/emitters.d.ts.map +1 -1
- package/types/x-modules/search-box/store/index.d.ts.map +1 -1
- package/types/x-modules/search-box/store/module.d.ts +1 -1
- package/types/x-modules/search-box/store/module.d.ts.map +1 -1
- package/types/x-modules/search-box/store/types.d.ts +7 -7
- package/types/x-modules/search-box/store/types.d.ts.map +1 -1
- package/types/x-modules/search-box/wiring.d.ts +1 -1
- package/types/x-modules/search-box/wiring.d.ts.map +1 -1
- package/types/x-modules/search-box/x-module.d.ts +2 -2
- package/types/x-modules/search-box/x-module.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/components/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts +2 -2
- package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts +2 -2
- package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/config.types.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/events.types.d.ts +1 -1
- package/types/x-modules/semantic-queries/events.types.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/index.d.ts +1 -1
- package/types/x-modules/semantic-queries/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/actions/fetch-and-save-semantic-query.action.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/actions/fetch-semantic-query.action.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/actions/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/emitters.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/index.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/module.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/module.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/types.d.ts +13 -13
- package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/wiring.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/x-module.d.ts +2 -2
- package/types/x-modules/semantic-queries/x-module.d.ts.map +1 -1
- package/types/x-modules/tagging/components/index.d.ts.map +1 -1
- package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -1
- package/types/x-modules/tagging/config.types.d.ts.map +1 -1
- package/types/x-modules/tagging/events.types.d.ts +2 -2
- package/types/x-modules/tagging/events.types.d.ts.map +1 -1
- package/types/x-modules/tagging/index.d.ts.map +1 -1
- package/types/x-modules/tagging/service/external-tagging.service.d.ts +5 -5
- package/types/x-modules/tagging/service/external-tagging.service.d.ts.map +1 -1
- package/types/x-modules/tagging/service/index.d.ts.map +1 -1
- package/types/x-modules/tagging/service/types.d.ts +5 -5
- package/types/x-modules/tagging/service/types.d.ts.map +1 -1
- package/types/x-modules/tagging/store/actions/index.d.ts.map +1 -1
- package/types/x-modules/tagging/store/actions/track.action.d.ts +1 -2
- package/types/x-modules/tagging/store/actions/track.action.d.ts.map +1 -1
- package/types/x-modules/tagging/store/emitters.d.ts.map +1 -1
- package/types/x-modules/tagging/store/index.d.ts.map +1 -1
- package/types/x-modules/tagging/store/module.d.ts +1 -1
- package/types/x-modules/tagging/store/module.d.ts.map +1 -1
- package/types/x-modules/tagging/store/types.d.ts +9 -9
- package/types/x-modules/tagging/store/types.d.ts.map +1 -1
- package/types/x-modules/tagging/wiring.d.ts +2 -2
- package/types/x-modules/tagging/wiring.d.ts.map +1 -1
- package/types/x-modules/tagging/x-module.d.ts +2 -2
- package/types/x-modules/tagging/x-module.d.ts.map +1 -1
- package/types/x-modules/url/components/index.d.ts.map +1 -1
- package/types/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
- package/types/x-modules/url/events.types.d.ts +6 -7
- package/types/x-modules/url/events.types.d.ts.map +1 -1
- package/types/x-modules/url/index.d.ts.map +1 -1
- package/types/x-modules/url/store/emitters.d.ts +2 -2
- package/types/x-modules/url/store/emitters.d.ts.map +1 -1
- package/types/x-modules/url/store/getters/url-params.getter.d.ts +1 -2
- package/types/x-modules/url/store/getters/url-params.getter.d.ts.map +1 -1
- package/types/x-modules/url/store/index.d.ts.map +1 -1
- package/types/x-modules/url/store/initial-state.d.ts +1 -1
- package/types/x-modules/url/store/initial-state.d.ts.map +1 -1
- package/types/x-modules/url/store/module.d.ts +1 -1
- package/types/x-modules/url/store/module.d.ts.map +1 -1
- package/types/x-modules/url/store/mutations/set-params.mutation.d.ts +1 -1
- package/types/x-modules/url/store/mutations/set-params.mutation.d.ts.map +1 -1
- package/types/x-modules/url/store/types.d.ts +13 -13
- package/types/x-modules/url/store/types.d.ts.map +1 -1
- package/types/x-modules/url/wiring.d.ts.map +1 -1
- package/types/x-modules/url/x-module.d.ts +2 -2
- package/types/x-modules/url/x-module.d.ts.map +1 -1
- package/types/x-modules/x-modules.types.d.ts +23 -23
- package/types/x-modules/x-modules.types.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.xactioncontext.commit_1.md +0 -23
- package/docs/API-reference/api/x-components.xactioncontext.dispatch_1.md +0 -23
- package/docs/API-reference/api/x-components.xcomponentbusapi.emit_1.md +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-suggestion.vue2.js","sources":["../../../../src/components/suggestions/base-suggestion.vue"],"sourcesContent":["<template>\n <button ref=\"el\" @click=\"emitEvents\" :class=\"dynamicCSSClasses\">\n <!--\n @slot Button content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {String} query - The query that the suggestion belongs to\n @binding {Filter} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ query, suggestion, filter }\">\n <Highlight class=\"x-suggestion__query\" :text=\"suggestion.query\" :highlight=\"query\" />\n <span v-if=\"filter\" class=\"x-suggestion__filter\">{{ filter.label }}</span>\n </slot>\n </button>\n</template>\n\n<script lang=\"ts\">\n import { BooleanFilter, Suggestion } from '@empathyco/x-types';\n import { forEach } from '@empathyco/x-utils';\n import { computed, defineComponent, PropType, ref } from 'vue';\n import { QueryFeature } from '../../types';\n import { VueCSSClasses } from '../../utils/types';\n import { XEventsTypes } from '../../wiring/events.types';\n import Highlight from '../highlight.vue';\n import { use$x } from '../../composables/index';\n\n /**\n * Renders a button with a default slot. It receives a query, which should be the query of the\n * module using this component, a suggestion, the {@link XEvent} that will be emitted\n * on click with a given feature.\n *\n * The default slot receives the suggestion and the matched query has props.\n *\n * @public\n */\n export default defineComponent({\n components: { Highlight },\n props: {\n /**\n * The normalized query of the module using this component.\n *\n * @public\n */\n query: {\n type: String,\n default: ''\n },\n\n /**\n * The suggestion to render and use in the default slot.\n *\n * @public\n */\n suggestion: {\n type: Object as PropType<Suggestion>,\n required: true\n },\n\n /**\n * The feature from which the events will be emitted.\n *\n * @public\n */\n //TODO: set to true when the suggestions components pass it.\n feature: {\n type: String as PropType<QueryFeature>\n },\n\n /**\n * The {@link XEvent} that will be emitted when selecting a suggestion.\n *\n * @public\n */\n suggestionSelectedEvents: {\n type: Object as PropType<Partial<XEventsTypes>>,\n required: true\n },\n\n /**\n * Indicates if the curated suggestion should be highlighted.\n *\n * @public\n */\n highlightCurated: {\n type: Boolean\n }\n },\n\n setup(props) {\n const el = ref<HTMLElement | null>(null);\n\n const $x = use$x();\n\n /**\n * Returns the suggestion filter object.\n * It is a BooleanFilter because the label is needed.\n * It returns only the first element because the facets and filters are being planned\n * in the BaseSuggestions component.\n *\n * @returns The filter.\n * @public\n */\n const filter = computed<BooleanFilter | undefined>(\n () => props.suggestion.facets?.[0]?.filters[0] as BooleanFilter\n );\n\n /**\n * The event handler that will be triggered when clicking on a suggestion.\n *\n * @remarks\n * UserAcceptedAQuery: suggestion.query\n * UserSelectedASuggestion: suggestion\n * UserClickedAFilter: suggestion.facets[0].filters[0]\n * Merges the events defined in the suggestionSelectedEvents prop and also emits them\n *\n * @returns The {@link XEvent} to emit.\n * @public\n */\n const events = computed<Partial<XEventsTypes>>(() => {\n const filterEvent: Partial<XEventsTypes> = filter.value\n ? { UserClickedAFilter: filter.value }\n : {};\n return {\n UserAcceptedAQuery: props.suggestion.query,\n UserSelectedASuggestion: props.suggestion,\n ...props.suggestionSelectedEvents,\n ...filterEvent\n };\n });\n\n /**\n * Emits the events when the button is clicked.\n *\n * @public\n */\n const emitEvents = (): void => {\n forEach(events.value, (event, payload): void => {\n $x.emit(event, payload, {\n target: el.value!,\n feature: props.feature\n });\n });\n };\n\n /**\n * Checks if the suggestion is curated and if it should be highlighted.\n *\n * @returns True if the suggestion is curated and should be highlighted.\n *\n * @internal\n */\n const shouldHighlightCurated = computed<boolean>(\n () => props.highlightCurated && !!props.suggestion.isCurated\n );\n\n /**\n * Generates css classes dynamically.\n *\n * @remarks\n * 'x-suggestion--matching added when the query should be matched.\n *\n * @returns The {@link VueCSSClasses} classes.\n * @public\n */\n const dynamicCSSClasses = computed<VueCSSClasses>(() => ({\n 'x-suggestion--is-curated': shouldHighlightCurated.value\n }));\n\n return {\n el,\n filter,\n emitEvents,\n dynamicCSSClasses\n };\n }\n });\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`UserAcceptedAQuery`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the suggestion query\n data.\n- [`UserSelectedASuggestion`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the suggestion data.\n- [`UserClickedAFilter`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button if the suggestion includes a filter. The\n event payload is the suggestion filter.\n- The component can emit more events on click using the `suggestionSelectedEvents` prop.\n\n## See it in action\n\nThis suggestion component expects a suggestion to render and pass to its default slot, a normalized\nquery to compare with the suggestion's query and highlight its matching parts, and events to emit\nwhen the suggestion is selected.\n\nIf the suggestion contains a filter, it is displayed next to the suggestion.\n\n```vue live\n<template>\n <BaseSuggestion v-bind=\"{ query, suggestion }\" />\n</template>\n<script>\n import { BaseSuggestion } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionDemo',\n components: {\n BaseSuggestion\n },\n data() {\n return {\n query: 'st',\n suggestion: {\n modelName: 'QuerySuggestion',\n query: 'steak',\n facet: {\n namedModel: 'SimpleFacet',\n id: 'category',\n label: 'Category',\n filters: [\n {\n id: 'category:groceries',\n modelName: 'SimpleFilter',\n facetId: 'category-facet',\n label: 'Groceries',\n selected: false,\n totalResults: 10\n }\n ]\n }\n }\n };\n }\n };\n</script>\n```\n\n### Customise the content\n\nYou can make this component render any content you want by using the `default` slot.\n\n```vue live\n<template>\n <BaseSuggestion v-bind=\"{ query, suggestion }\" #default=\"{ suggestion, query, filter }\">\n <span>🔍</span>\n <Highlight :text=\"suggestion.query\" :highlight=\"query\" />\n <span v-if=\"filter\">{{ filter.label }}</span>\n </BaseSuggestion>\n</template>\n<script>\n import { BaseSuggestion } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionDemo',\n components: {\n BaseSuggestion\n },\n data() {\n return {\n query: 'st',\n suggestion: {\n modelName: 'QuerySuggestion',\n query: 'steak'\n }\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBE;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,WAAW;AACzB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,EAAC;AACX,SAAA;AAED;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAA8B;AACpC,YAAA,QAAQ,EAAE,IAAG;AACd,SAAA;AAED;;;;AAIE;;AAEF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAA+B;AACtC,SAAA;AAED;;;;AAIE;AACF,QAAA,wBAAwB,EAAE;AACxB,YAAA,IAAI,EAAE,MAAyC;AAC/C,YAAA,QAAQ,EAAE,IAAG;AACd,SAAA;AAED;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,OAAM;AACd,SAAA;AACD,KAAA;AAED,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAG,GAAE,GAAG,CAAqB,IAAI,CAAC,CAAA;AAExC,QAAA,MAAM,EAAC,GAAI,KAAK,EAAE,CAAA;AAElB;;;;;;;;AAQE;QACF,MAAM,SAAS,QAAQ,CACrB,MAAM,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAiB,CAC/D,CAAA;AAED;;;;;;;;;;;AAWE;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CAAwB,MAAM;AACnD,YAAA,MAAM,WAAW,GAA0B,MAAM,CAAC,KAAI;AACpD,kBAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,KAAM,EAAA;kBACnC,EAAE,CAAA;YACN,OAAO;AACL,gBAAA,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK;gBAC1C,uBAAuB,EAAE,KAAK,CAAC,UAAU;gBACzC,GAAG,KAAK,CAAC,wBAAwB;AACjC,gBAAA,GAAG,WAAU;aACd,CAAA;AACH,SAAC,CAAC,CAAA;AAEF;;;;AAIE;QACF,MAAM,UAAS,GAAI,MAAY;YAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAW;AAC9C,gBAAA,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE;oBACtB,MAAM,EAAE,EAAE,CAAC,KAAM;oBACjB,OAAO,EAAE,KAAK,CAAC,OAAM;AACtB,iBAAA,CAAC,CAAA;AACJ,aAAC,CAAC,CAAA;AACJ,SAAC,CAAA;AAED;;;;;;AAME;AACF,QAAA,MAAM,sBAAuB,GAAE,QAAQ,CACrC,MAAM,KAAK,CAAC,gBAAiB,IAAG,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,SAAQ,CAC5D,CAAA;AAED;;;;;;;;AAQE;AACF,QAAA,MAAM,iBAAgB,GAAI,QAAQ,CAAgB,OAAO;YACvD,0BAA0B,EAAE,sBAAsB,CAAC,KAAI;AACxD,SAAA,CAAC,CAAC,CAAA;QAEH,OAAO;YACL,EAAE;YACF,MAAM;YACN,UAAU;YACV,iBAAgB;SACjB,CAAA;KACH;AACD,CAAA,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"base-suggestion.vue2.js","sources":["../../../../src/components/suggestions/base-suggestion.vue"],"sourcesContent":["<template>\n <button ref=\"el\" :class=\"dynamicCSSClasses\" @click=\"emitEvents\">\n <!--\n @slot Button content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {String} query - The query that the suggestion belongs to\n @binding {Filter} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ query, suggestion, filter }\">\n <Highlight class=\"x-suggestion__query\" :text=\"suggestion.query\" :highlight=\"query\" />\n <span v-if=\"filter\" class=\"x-suggestion__filter\">{{ filter.label }}</span>\n </slot>\n </button>\n</template>\n\n<script lang=\"ts\">\nimport type { BooleanFilter, Suggestion } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport type { QueryFeature } from '../../types'\nimport type { VueCSSClasses } from '../../utils/types'\nimport type { XEventsTypes } from '../../wiring/events.types'\nimport { forEach } from '@empathyco/x-utils'\nimport { computed, defineComponent, ref } from 'vue'\nimport { use$x } from '../../composables/index'\nimport Highlight from '../highlight.vue'\n\n/**\n * Renders a button with a default slot. It receives a query, which should be the query of the\n * module using this component, a suggestion, the {@link XEvent} that will be emitted\n * on click with a given feature.\n *\n * The default slot receives the suggestion and the matched query has props.\n *\n * @public\n */\nexport default defineComponent({\n components: { Highlight },\n props: {\n /**\n * The normalized query of the module using this component.\n *\n * @public\n */\n query: {\n type: String,\n default: '',\n },\n\n /**\n * The suggestion to render and use in the default slot.\n *\n * @public\n */\n suggestion: {\n type: Object as PropType<Suggestion>,\n required: true,\n },\n\n /**\n * The feature from which the events will be emitted.\n *\n * @public\n */\n //TODO: set to true when the suggestions components pass it.\n feature: {\n type: String as PropType<QueryFeature>,\n },\n\n /**\n * The {@link XEvent} that will be emitted when selecting a suggestion.\n *\n * @public\n */\n suggestionSelectedEvents: {\n type: Object as PropType<Partial<XEventsTypes>>,\n required: true,\n },\n\n /**\n * Indicates if the curated suggestion should be highlighted.\n *\n * @public\n */\n highlightCurated: {\n type: Boolean,\n },\n },\n\n setup(props) {\n const el = ref<HTMLElement | null>(null)\n\n const $x = use$x()\n\n /**\n * Returns the suggestion filter object.\n * It is a BooleanFilter because the label is needed.\n * It returns only the first element because the facets and filters are being planned\n * in the BaseSuggestions component.\n *\n * @returns The filter.\n * @public\n */\n const filter = computed<BooleanFilter | undefined>(\n () => props.suggestion.facets?.[0]?.filters[0] as BooleanFilter,\n )\n\n /**\n * The event handler that will be triggered when clicking on a suggestion.\n *\n * @remarks\n * UserAcceptedAQuery: suggestion.query\n * UserSelectedASuggestion: suggestion\n * UserClickedAFilter: suggestion.facets[0].filters[0]\n * Merges the events defined in the suggestionSelectedEvents prop and also emits them\n *\n * @returns The {@link XEvent} to emit.\n * @public\n */\n const events = computed<Partial<XEventsTypes>>(() => {\n const filterEvent: Partial<XEventsTypes> = filter.value\n ? { UserClickedAFilter: filter.value }\n : {}\n return {\n UserAcceptedAQuery: props.suggestion.query,\n UserSelectedASuggestion: props.suggestion,\n ...props.suggestionSelectedEvents,\n ...filterEvent,\n }\n })\n\n /**\n * Emits the events when the button is clicked.\n *\n * @public\n */\n const emitEvents = (): void => {\n forEach(events.value, (event, payload): void => {\n $x.emit(event, payload, {\n target: el.value!,\n feature: props.feature,\n })\n })\n }\n\n /**\n * Checks if the suggestion is curated and if it should be highlighted.\n *\n * @returns True if the suggestion is curated and should be highlighted.\n *\n * @internal\n */\n const shouldHighlightCurated = computed<boolean>(\n () => props.highlightCurated && !!props.suggestion.isCurated,\n )\n\n /**\n * Generates css classes dynamically.\n *\n * @remarks\n * 'x-suggestion--matching added when the query should be matched.\n *\n * @returns The {@link VueCSSClasses} classes.\n * @public\n */\n const dynamicCSSClasses = computed<VueCSSClasses>(() => ({\n 'x-suggestion--is-curated': shouldHighlightCurated.value,\n }))\n\n return {\n el,\n filter,\n emitEvents,\n dynamicCSSClasses,\n }\n },\n})\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following events:\n\n- [`UserAcceptedAQuery`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the suggestion query\n data.\n- [`UserSelectedASuggestion`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button. The event payload is the suggestion data.\n- [`UserClickedAFilter`](https://github.com/empathyco/x/blob/main/packages/x-components/src/wiring/events.types.ts):\n the event is emitted after the user clicks the button if the suggestion includes a filter. The\n event payload is the suggestion filter.\n- The component can emit more events on click using the `suggestionSelectedEvents` prop.\n\n## See it in action\n\nThis suggestion component expects a suggestion to render and pass to its default slot, a normalized\nquery to compare with the suggestion's query and highlight its matching parts, and events to emit\nwhen the suggestion is selected.\n\nIf the suggestion contains a filter, it is displayed next to the suggestion.\n\n```vue live\n<template>\n <BaseSuggestion v-bind=\"{ query, suggestion }\" />\n</template>\n<script>\nimport { BaseSuggestion } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionDemo',\n components: {\n BaseSuggestion,\n },\n data() {\n return {\n query: 'st',\n suggestion: {\n modelName: 'QuerySuggestion',\n query: 'steak',\n facet: {\n namedModel: 'SimpleFacet',\n id: 'category',\n label: 'Category',\n filters: [\n {\n id: 'category:groceries',\n modelName: 'SimpleFilter',\n facetId: 'category-facet',\n label: 'Groceries',\n selected: false,\n totalResults: 10,\n },\n ],\n },\n },\n }\n },\n}\n</script>\n```\n\n### Customise the content\n\nYou can make this component render any content you want by using the `default` slot.\n\n```vue live\n<template>\n <BaseSuggestion v-bind=\"{ query, suggestion }\" #default=\"{ suggestion, query, filter }\">\n <span>🔍</span>\n <Highlight :text=\"suggestion.query\" :highlight=\"query\" />\n <span v-if=\"filter\">{{ filter.label }}</span>\n </BaseSuggestion>\n</template>\n<script>\nimport { BaseSuggestion } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionDemo',\n components: {\n BaseSuggestion,\n },\n data() {\n return {\n query: 'st',\n suggestion: {\n modelName: 'QuerySuggestion',\n query: 'steak',\n },\n }\n },\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA0BA;;;;;;;;AAQE;AACF,gBAAe,eAAe,CAAC;IAC7B,UAAU,EAAE,EAAE,WAAW;AACzB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,EAAE;AACZ,SAAA;AAED;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,MAA8B;AACpC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AAED;;;;AAIE;;AAEF,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,MAAgC;AACvC,SAAA;AAED;;;;AAIE;AACF,QAAA,wBAAwB,EAAE;AACxB,YAAA,IAAI,EAAE,MAAyC;AAC/C,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AAED;;;;AAIE;AACF,QAAA,gBAAgB,EAAE;AAChB,YAAA,IAAI,EAAE,OAAO;AACd,SAAA;AACF,KAAA;AAED,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAG,GAAE,GAAG,CAAqB,IAAI,CAAA,CAAA;AAEvC,QAAA,MAAM,EAAC,GAAI,KAAK,EAAC,CAAA;AAEjB;;;;;;;;AAQE;QACF,MAAM,SAAS,QAAQ,CACrB,MAAM,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAkB,CACjE,CAAA;AAEA;;;;;;;;;;;AAWE;AACF,QAAA,MAAM,MAAK,GAAI,QAAQ,CAAwB,MAAM;AACnD,YAAA,MAAM,WAAW,GAA0B,MAAM,CAAC,KAAI;AACpD,kBAAE,EAAE,kBAAkB,EAAE,MAAM,CAAC,KAAM,EAAA;kBACnC,EAAC,CAAA;YACL,OAAO;AACL,gBAAA,kBAAkB,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK;gBAC1C,uBAAuB,EAAE,KAAK,CAAC,UAAU;gBACzC,GAAG,KAAK,CAAC,wBAAwB;AACjC,gBAAA,GAAG,WAAW;aAChB,CAAA;AACF,SAAC,CAAA,CAAA;AAED;;;;AAIE;QACF,MAAM,UAAS,GAAI,MAAY;YAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,KAAW;AAC9C,gBAAA,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE;oBACtB,MAAM,EAAE,EAAE,CAAC,KAAM;oBACjB,OAAO,EAAE,KAAK,CAAC,OAAO;AACvB,iBAAA,CAAA,CAAA;AACH,aAAC,CAAA,CAAA;AACH,SAAA,CAAA;AAEA;;;;;;AAME;AACF,QAAA,MAAM,sBAAuB,GAAE,QAAQ,CACrC,MAAM,KAAK,CAAC,gBAAe,IAAK,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAC9D,CAAA;AAEA;;;;;;;;AAQE;AACF,QAAA,MAAM,iBAAgB,GAAI,QAAQ,CAAgB,OAAO;YACvD,0BAA0B,EAAE,sBAAsB,CAAC,KAAK;AACzD,SAAA,CAAC,CAAA,CAAA;QAEF,OAAO;YACL,EAAE;YACF,MAAM;YACN,UAAU;YACV,iBAAiB;SACnB,CAAA;KACD;AACF,CAAA,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-suggestions.vue.js","sources":["../../../../src/components/suggestions/base-suggestions.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" v-if=\"suggestions.length\" tag=\"ul\" class=\"x-suggestions\">\n <li\n v-for=\"(suggestion, index) in suggestionsToRender\"\n :key=\"suggestionsKeys[index]\"\n class=\"x-suggestions__item\"\n :class=\"suggestionItemClass\"\n data-test=\"suggestion-item\"\n >\n <!--\n @slot (Required) List item content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {number} index - Suggestion index\n @binding {Filter | undefined} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ suggestion, index, filter: getSuggestionFilter(suggestion) }\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { Suggestion, Facet } from '@empathyco/x-types';\n import { isArrayEmpty } from '../../utils/array';\n import { AnimationProp } from '../../types';\n\n /**\n * Paints a list of suggestions passed in by prop. Requires a component for a single suggestion\n * in the default slot for working.\n *\n * @public\n */\n export default defineComponent({\n name: 'BaseSuggestions',\n props: {\n /**\n * The list of suggestions to render.\n *\n * @public\n */\n suggestions: {\n type: Array as PropType<Suggestion[]>,\n required: true\n },\n /**\n * Animation component that will be used to animate the suggestion.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul'\n },\n /**\n * Number of suggestions to be rendered.\n *\n * @public\n */\n maxItemsToRender: Number,\n /**\n * Boolean value to indicate if the facets should be rendered.\n *\n * @public\n */\n showFacets: {\n type: Boolean,\n default: false\n },\n /**\n * When `showFacets` property of `BaseSuggestions` component is true, it indicates if the suggestion without\n * filter should be rendered.\n *\n * @public\n */\n showPlainSuggestion: {\n type: Boolean,\n default: false\n },\n /** Class inherited by content element. */\n suggestionItemClass: String\n },\n setup: function (props) {\n /**\n * Creates a suggestion for each one of the filter inside each facet.\n *\n * @param suggestion - Suggestion to expand.\n * @returns A list of suggestions, each one with a single filter.\n *\n * @internal\n */\n const expandSuggestionFilters = (suggestion: Suggestion): Suggestion[] => {\n return (\n suggestion.facets?.flatMap(facet =>\n facet.filters.map(filter => ({\n ...suggestion,\n facets: [{ ...facet, filters: [filter] }]\n }))\n ) ?? []\n );\n };\n\n /**\n * Creates a list of suggestions to render based on the configuration of this component.\n *\n * @returns - The list of suggestions to be rendered by this component.\n *\n * @internal\n */\n const suggestionsToRender = computed(() =>\n props.suggestions\n .flatMap(suggestion =>\n props.showFacets && suggestion.facets?.length\n ? props.showPlainSuggestion\n ? [{ ...suggestion, facets: [] }, ...expandSuggestionFilters(suggestion)]\n : expandSuggestionFilters(suggestion)\n : { ...suggestion, facets: [] }\n )\n .slice(0, props.maxItemsToRender)\n );\n\n /**\n * Generates a string from the given facet.\n *\n * @param facet - The facet to reduce to a string.\n * @returns - A string representing the facet.\n * @internal\n */\n const getFacetKey = (facet: Facet) => facet.filters.map(filter => filter.id).join('&');\n\n /**\n * Generates a string from the given facets.\n *\n * @param facets - The list of facets to reduce to a string.\n * @returns - A string representing the list of facets.\n * @internal\n */\n const getFacetsKey = (facets: Facet[]) => facets.map(getFacetKey).join('&');\n\n /**\n * An array with the unique keys for each suggestion. Required by the `v-for` loop.\n *\n * @returns An array with the unique keys of the suggestions.\n * @internal\n */\n const suggestionsKeys = computed(() =>\n suggestionsToRender.value.map(suggestion =>\n isArrayEmpty(suggestion.facets)\n ? suggestion.query\n : `${suggestion.query}-in-${getFacetsKey(suggestion.facets)}`\n )\n );\n\n /**\n * Returns the filter contained by the suggestion.\n *\n * @param suggestion - Suggestion containing the filter.\n * @returns The suggestion filter.\n * @internal\n */\n const getSuggestionFilter = (suggestion: Suggestion) => suggestion.facets?.[0]?.filters[0];\n\n return { suggestionsToRender, suggestionsKeys, getSuggestionFilter };\n }\n });\n</script>\n\n<style lang=\"css\" scoped>\n .x-suggestions {\n list-style-type: none;\n }\n\n .x-suggestions,\n .x-suggestions__item {\n display: flex;\n flex-flow: column nowrap;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nFor this component to work, you will need to set a list of suggestions as prop, and also to\nimplement the component for single suggestion, which handles the click event. In the following\nexample, the suggestions are retrieved from a property called `suggestions`, and the implementation\nof the suggestion component is a simple `button`, that calls the `emitSuggestionSelected` method\nwhen clicked.\n\n```vue\n<BaseSuggestions :suggestions=\"suggestions\">\n <template #default=\"{ suggestion }\">\n <button @click=\"emitSuggestionSelected($event, suggestion)\">\n {{ suggestion.query }}\n </button>\n </template>\n</BaseSuggestions>\n```\n\nFollowing the previous example, the component options object could be something like this:\n\n```js\nexport default {\n computed: {\n ...mapGetters(['x', 'querySuggestions'], { suggestions: 'suggestions' })\n },\n methods: {\n emitSuggestionSelected(event, suggestion) {\n this.$x.emit('UserAcceptedAQuery', suggestion.query, { target: event.target });\n this.$x.emit('UserSelectedAQuerySuggestion', suggestion, { target: event.target });\n }\n }\n};\n```\n\n### Play with props\n\nIn this example, the suggestions has been limited to render a maximum of 3 items. _Type \"puzzle\" or\nanother toy in the input field to try it out!_\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" :maxItemsToRender=\"3\" />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n\nIn this example, the filters of the suggestion will be rendered along with the query.\n\nThe `showPlainSuggestion` prop can be used to indicate if the suggestion without filter must be\nrendered along with the suggestion with filters.\n\nThis will render:\n\n- Chips //If `showPlainSuggestion` is true\n- Chips EXAMPLE\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" showFacets showPlainSuggestion />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [\n {\n id: 'exampleFacet',\n label: 'exampleFacet',\n modelName: 'SimpleFacet',\n filters: [\n {\n facetId: 'exampleFacet',\n id: '{!tag=exampleFacet}exampleFacet_60361120_64009600:\"EXAMPLE\"',\n label: 'EXAMPLE',\n selected: false,\n totalResults: 10,\n modelName: 'SimpleFilter'\n }\n ]\n }\n ],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n\nIn this example, the `contentClass` prop can be used to add classes to the suggestion item.\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" suggestionItemClass=\"x-custom-class\" />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":["animation","_openBlock","_createBlock","_resolveDynamicComponent","suggestionsKeys","_Fragment","_renderList","_createElementBlock","_normalizeClass","_createCommentVNode"],"mappings":";;;;;AACE,SAAA,WAAA,CAAA,IAAA,EAAA,MAAA,EADF,MACkBA,EAAAA,MAAAA,EAAAA,KAAAA,EAAAA,QAAAA,EAAAA;SADlB,IAC+D,CAAA,WAAA,CAAA,MAAA,IAAAC,SAAA,EAAA,EAAAC,WAAA,CAAAC,uBAAA,CAAA,IAAA,CAAA,SAAA,CAAA,EAAA;AAAA,IAAC,GAAK,EAAA,CAAA;AAAA,IAAA,GAAA,EAAA,IAAA;AADrE,IAAA,KAAA,EAAA,eAAA;AAAA,GAAA,EAAA;;AAIYC,OAAAA,SAAAA,CAAAA,IAAAA,CAAAA,EAAAA,kBAAAA;AAAAA,QAAqBC,QAAA;AAAA,QAAA,IAAA;AAAA,QAAAC,UAAA,CAAA,IAAA,CAAA,mBAAA,EAAA,CAAA,UAAA,EAAA,KAAA,KAAA;iBACtBL,SALX,EAAA,EAAAM,kBAAA;AAAA,YAKY,IAAA;AAAA,YAAqB;AAAA,cAE3B,0BAAU,KAAiB,CAAA;AAAA,cAAA,KAAA,EAAAC,cAAA,CAAA,CAAA,qBAAA,EAAA,IAAA,CAAA,mBAAA,CAAA,CAAA;cAQ3B,WAAgF,EAAA,iBAAA;AAAA,aAAA;;;;;;;AAftF,SAAA,CAAA;AAAA,QAAA,GAAA;AAAA;AAAA,OAAA;AAAA,KAAA,CAAA;AAAA,IAAA,CAAA,EAAA,CAAA;AAAA;AAAA,GAAA,CAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA,CAAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"base-suggestions.vue.js","sources":["../../../../src/components/suggestions/base-suggestions.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" v-if=\"suggestions.length\" tag=\"ul\" class=\"x-suggestions\">\n <li\n v-for=\"(suggestion, index) in suggestionsToRender\"\n :key=\"suggestionsKeys[index]\"\n class=\"x-suggestions__item\"\n :class=\"suggestionItemClass\"\n data-test=\"suggestion-item\"\n >\n <!--\n @slot (Required) List item content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {number} index - Suggestion index\n @binding {Filter | undefined} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ suggestion, index, filter: getSuggestionFilter(suggestion) }\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { Facet, Suggestion } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { isArrayEmpty } from '../../utils/array'\n\n/**\n * Paints a list of suggestions passed in by prop. Requires a component for a single suggestion\n * in the default slot for working.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseSuggestions',\n props: {\n /**\n * The list of suggestions to render.\n *\n * @public\n */\n suggestions: {\n type: Array as PropType<Suggestion[]>,\n required: true,\n },\n /**\n * Animation component that will be used to animate the suggestion.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul',\n },\n /**\n * Number of suggestions to be rendered.\n *\n * @public\n */\n maxItemsToRender: Number,\n /**\n * Boolean value to indicate if the facets should be rendered.\n *\n * @public\n */\n showFacets: {\n type: Boolean,\n default: false,\n },\n /**\n * When `showFacets` property of `BaseSuggestions` component is true, it indicates if the suggestion without\n * filter should be rendered.\n *\n * @public\n */\n showPlainSuggestion: {\n type: Boolean,\n default: false,\n },\n /** Class inherited by content element. */\n suggestionItemClass: String,\n },\n setup(props) {\n /**\n * Creates a suggestion for each one of the filter inside each facet.\n *\n * @param suggestion - Suggestion to expand.\n * @returns A list of suggestions, each one with a single filter.\n *\n * @internal\n */\n const expandSuggestionFilters = (suggestion: Suggestion): Suggestion[] => {\n return (\n suggestion.facets?.flatMap(facet =>\n facet.filters.map(filter => ({\n ...suggestion,\n facets: [{ ...facet, filters: [filter] }],\n })),\n ) ?? []\n )\n }\n\n /**\n * Creates a list of suggestions to render based on the configuration of this component.\n *\n * @returns - The list of suggestions to be rendered by this component.\n *\n * @internal\n */\n const suggestionsToRender = computed(() =>\n props.suggestions\n .flatMap(suggestion =>\n props.showFacets && suggestion.facets?.length\n ? props.showPlainSuggestion\n ? [{ ...suggestion, facets: [] }, ...expandSuggestionFilters(suggestion)]\n : expandSuggestionFilters(suggestion)\n : { ...suggestion, facets: [] },\n )\n .slice(0, props.maxItemsToRender),\n )\n\n /**\n * Generates a string from the given facet.\n *\n * @param facet - The facet to reduce to a string.\n * @returns - A string representing the facet.\n * @internal\n */\n const getFacetKey = (facet: Facet) => facet.filters.map(filter => filter.id).join('&')\n\n /**\n * Generates a string from the given facets.\n *\n * @param facets - The list of facets to reduce to a string.\n * @returns - A string representing the list of facets.\n * @internal\n */\n const getFacetsKey = (facets: Facet[]) => facets.map(getFacetKey).join('&')\n\n /**\n * An array with the unique keys for each suggestion. Required by the `v-for` loop.\n *\n * @returns An array with the unique keys of the suggestions.\n * @internal\n */\n const suggestionsKeys = computed(() =>\n suggestionsToRender.value.map(suggestion =>\n isArrayEmpty(suggestion.facets)\n ? suggestion.query\n : `${suggestion.query}-in-${getFacetsKey(suggestion.facets)}`,\n ),\n )\n\n /**\n * Returns the filter contained by the suggestion.\n *\n * @param suggestion - Suggestion containing the filter.\n * @returns The suggestion filter.\n * @internal\n */\n const getSuggestionFilter = (suggestion: Suggestion) => suggestion.facets?.[0]?.filters[0]\n\n return { suggestionsToRender, suggestionsKeys, getSuggestionFilter }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-suggestions {\n list-style-type: none;\n}\n\n.x-suggestions,\n.x-suggestions__item {\n display: flex;\n flex-flow: column nowrap;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nFor this component to work, you will need to set a list of suggestions as prop, and also to\nimplement the component for single suggestion, which handles the click event. In the following\nexample, the suggestions are retrieved from a property called `suggestions`, and the implementation\nof the suggestion component is a simple `button`, that calls the `emitSuggestionSelected` method\nwhen clicked.\n\n```vue\n<BaseSuggestions :suggestions=\"suggestions\">\n <template #default=\"{ suggestion }\">\n <button @click=\"emitSuggestionSelected($event, suggestion)\">\n {{ suggestion.query }}\n </button>\n </template>\n</BaseSuggestions>\n```\n\nFollowing the previous example, the component options object could be something like this:\n\n```js\nexport default {\n computed: {\n ...mapGetters(['x', 'querySuggestions'], { suggestions: 'suggestions' }),\n },\n methods: {\n emitSuggestionSelected(event, suggestion) {\n this.$x.emit('UserAcceptedAQuery', suggestion.query, { target: event.target })\n this.$x.emit('UserSelectedAQuerySuggestion', suggestion, { target: event.target })\n },\n },\n}\n```\n\n### Play with props\n\nIn this example, the suggestions has been limited to render a maximum of 3 items. _Type \"puzzle\" or\nanother toy in the input field to try it out!_\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" :maxItemsToRender=\"3\" />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n\nIn this example, the filters of the suggestion will be rendered along with the query.\n\nThe `showPlainSuggestion` prop can be used to indicate if the suggestion without filter must be\nrendered along with the suggestion with filters.\n\nThis will render:\n\n- Chips //If `showPlainSuggestion` is true\n- Chips EXAMPLE\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" showFacets showPlainSuggestion />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [\n {\n id: 'exampleFacet',\n label: 'exampleFacet',\n modelName: 'SimpleFacet',\n filters: [\n {\n facetId: 'exampleFacet',\n id: '{!tag=exampleFacet}exampleFacet_60361120_64009600:\"EXAMPLE\"',\n label: 'EXAMPLE',\n selected: false,\n totalResults: 10,\n modelName: 'SimpleFilter',\n },\n ],\n },\n ],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n\nIn this example, the `contentClass` prop can be used to add classes to the suggestion item.\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" suggestionItemClass=\"x-custom-class\" />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n</docs>\n"],"names":["animation","_openBlock","_createBlock","_resolveDynamicComponent","suggestionsKeys","_Fragment","_renderList","_createElementBlock","_normalizeClass","_createCommentVNode"],"mappings":";;;;;AACE,SAAA,WAAA,CAAA,IAAA,EAAA,MAAA,EADF,MACkBA,EAAAA,MAAAA,EAAAA,KAAAA,EAAAA,QAAAA,EAAAA;SADlB,IAC+D,CAAA,WAAA,CAAA,MAAA,IAAAC,SAAA,EAAA,EAAAC,WAAA,CAAAC,uBAAA,CAAA,IAAA,CAAA,SAAA,CAAA,EAAA;AAAA,IAAC,GAAK,EAAA,CAAA;AAAA,IAAA,GAAA,EAAA,IAAA;AADrE,IAAA,KAAA,EAAA,eAAA;AAAA,GAAA,EAAA;;AAIYC,OAAAA,SAAAA,CAAAA,IAAAA,CAAAA,EAAAA,kBAAAA;AAAAA,QAAqBC,QAAA;AAAA,QAAA,IAAA;AAAA,QAAAC,UAAA,CAAA,IAAA,CAAA,mBAAA,EAAA,CAAA,UAAA,EAAA,KAAA,KAAA;iBACtBL,SALX,EAAA,EAAAM,kBAAA;AAAA,YAKY,IAAA;AAAA,YAAqB;AAAA,cAE3B,0BAAU,KAAiB,CAAA;AAAA,cAAA,KAAA,EAAAC,cAAA,CAAA,CAAA,qBAAA,EAAA,IAAA,CAAA,mBAAA,CAAA,CAAA;cAQ3B,WAAgF,EAAA,iBAAA;AAAA,aAAA;;;;;;;AAftF,SAAA,CAAA;AAAA,QAAA,GAAA;AAAA;AAAA,OAAA;AAAA,KAAA,CAAA;AAAA,IAAA,CAAA,EAAA,CAAA;AAAA;AAAA,GAAA,CAAA,IAAAC,kBAAA,CAAA,MAAA,EAAA,IAAA,CAAA,CAAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed } from 'vue';
|
|
2
|
-
import { isArrayEmpty } from '../../utils/array.js';
|
|
3
2
|
import { AnimationProp } from '../../types/animation-prop.js';
|
|
3
|
+
import { isArrayEmpty } from '../../utils/array.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Paints a list of suggestions passed in by prop. Requires a component for a single suggestion
|
|
@@ -18,7 +18,7 @@ var _sfc_main = defineComponent({
|
|
|
18
18
|
*/
|
|
19
19
|
suggestions: {
|
|
20
20
|
type: Array,
|
|
21
|
-
required: true
|
|
21
|
+
required: true,
|
|
22
22
|
},
|
|
23
23
|
/**
|
|
24
24
|
* Animation component that will be used to animate the suggestion.
|
|
@@ -27,7 +27,7 @@ var _sfc_main = defineComponent({
|
|
|
27
27
|
*/
|
|
28
28
|
animation: {
|
|
29
29
|
type: AnimationProp,
|
|
30
|
-
default: 'ul'
|
|
30
|
+
default: 'ul',
|
|
31
31
|
},
|
|
32
32
|
/**
|
|
33
33
|
* Number of suggestions to be rendered.
|
|
@@ -42,7 +42,7 @@ var _sfc_main = defineComponent({
|
|
|
42
42
|
*/
|
|
43
43
|
showFacets: {
|
|
44
44
|
type: Boolean,
|
|
45
|
-
default: false
|
|
45
|
+
default: false,
|
|
46
46
|
},
|
|
47
47
|
/**
|
|
48
48
|
* When `showFacets` property of `BaseSuggestions` component is true, it indicates if the suggestion without
|
|
@@ -52,12 +52,12 @@ var _sfc_main = defineComponent({
|
|
|
52
52
|
*/
|
|
53
53
|
showPlainSuggestion: {
|
|
54
54
|
type: Boolean,
|
|
55
|
-
default: false
|
|
55
|
+
default: false,
|
|
56
56
|
},
|
|
57
57
|
/** Class inherited by content element. */
|
|
58
|
-
suggestionItemClass: String
|
|
58
|
+
suggestionItemClass: String,
|
|
59
59
|
},
|
|
60
|
-
setup
|
|
60
|
+
setup(props) {
|
|
61
61
|
/**
|
|
62
62
|
* Creates a suggestion for each one of the filter inside each facet.
|
|
63
63
|
*
|
|
@@ -69,7 +69,7 @@ var _sfc_main = defineComponent({
|
|
|
69
69
|
const expandSuggestionFilters = (suggestion) => {
|
|
70
70
|
return (suggestion.facets?.flatMap(facet => facet.filters.map(filter => ({
|
|
71
71
|
...suggestion,
|
|
72
|
-
facets: [{ ...facet, filters: [filter] }]
|
|
72
|
+
facets: [{ ...facet, filters: [filter] }],
|
|
73
73
|
}))) ?? []);
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
@@ -120,7 +120,7 @@ var _sfc_main = defineComponent({
|
|
|
120
120
|
*/
|
|
121
121
|
const getSuggestionFilter = (suggestion) => suggestion.facets?.[0]?.filters[0];
|
|
122
122
|
return { suggestionsToRender, suggestionsKeys, getSuggestionFilter };
|
|
123
|
-
}
|
|
123
|
+
},
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
export { _sfc_main as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-suggestions.vue2.js","sources":["../../../../src/components/suggestions/base-suggestions.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" v-if=\"suggestions.length\" tag=\"ul\" class=\"x-suggestions\">\n <li\n v-for=\"(suggestion, index) in suggestionsToRender\"\n :key=\"suggestionsKeys[index]\"\n class=\"x-suggestions__item\"\n :class=\"suggestionItemClass\"\n data-test=\"suggestion-item\"\n >\n <!--\n @slot (Required) List item content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {number} index - Suggestion index\n @binding {Filter | undefined} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ suggestion, index, filter: getSuggestionFilter(suggestion) }\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { Suggestion, Facet } from '@empathyco/x-types';\n import { isArrayEmpty } from '../../utils/array';\n import { AnimationProp } from '../../types';\n\n /**\n * Paints a list of suggestions passed in by prop. Requires a component for a single suggestion\n * in the default slot for working.\n *\n * @public\n */\n export default defineComponent({\n name: 'BaseSuggestions',\n props: {\n /**\n * The list of suggestions to render.\n *\n * @public\n */\n suggestions: {\n type: Array as PropType<Suggestion[]>,\n required: true\n },\n /**\n * Animation component that will be used to animate the suggestion.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul'\n },\n /**\n * Number of suggestions to be rendered.\n *\n * @public\n */\n maxItemsToRender: Number,\n /**\n * Boolean value to indicate if the facets should be rendered.\n *\n * @public\n */\n showFacets: {\n type: Boolean,\n default: false\n },\n /**\n * When `showFacets` property of `BaseSuggestions` component is true, it indicates if the suggestion without\n * filter should be rendered.\n *\n * @public\n */\n showPlainSuggestion: {\n type: Boolean,\n default: false\n },\n /** Class inherited by content element. */\n suggestionItemClass: String\n },\n setup: function (props) {\n /**\n * Creates a suggestion for each one of the filter inside each facet.\n *\n * @param suggestion - Suggestion to expand.\n * @returns A list of suggestions, each one with a single filter.\n *\n * @internal\n */\n const expandSuggestionFilters = (suggestion: Suggestion): Suggestion[] => {\n return (\n suggestion.facets?.flatMap(facet =>\n facet.filters.map(filter => ({\n ...suggestion,\n facets: [{ ...facet, filters: [filter] }]\n }))\n ) ?? []\n );\n };\n\n /**\n * Creates a list of suggestions to render based on the configuration of this component.\n *\n * @returns - The list of suggestions to be rendered by this component.\n *\n * @internal\n */\n const suggestionsToRender = computed(() =>\n props.suggestions\n .flatMap(suggestion =>\n props.showFacets && suggestion.facets?.length\n ? props.showPlainSuggestion\n ? [{ ...suggestion, facets: [] }, ...expandSuggestionFilters(suggestion)]\n : expandSuggestionFilters(suggestion)\n : { ...suggestion, facets: [] }\n )\n .slice(0, props.maxItemsToRender)\n );\n\n /**\n * Generates a string from the given facet.\n *\n * @param facet - The facet to reduce to a string.\n * @returns - A string representing the facet.\n * @internal\n */\n const getFacetKey = (facet: Facet) => facet.filters.map(filter => filter.id).join('&');\n\n /**\n * Generates a string from the given facets.\n *\n * @param facets - The list of facets to reduce to a string.\n * @returns - A string representing the list of facets.\n * @internal\n */\n const getFacetsKey = (facets: Facet[]) => facets.map(getFacetKey).join('&');\n\n /**\n * An array with the unique keys for each suggestion. Required by the `v-for` loop.\n *\n * @returns An array with the unique keys of the suggestions.\n * @internal\n */\n const suggestionsKeys = computed(() =>\n suggestionsToRender.value.map(suggestion =>\n isArrayEmpty(suggestion.facets)\n ? suggestion.query\n : `${suggestion.query}-in-${getFacetsKey(suggestion.facets)}`\n )\n );\n\n /**\n * Returns the filter contained by the suggestion.\n *\n * @param suggestion - Suggestion containing the filter.\n * @returns The suggestion filter.\n * @internal\n */\n const getSuggestionFilter = (suggestion: Suggestion) => suggestion.facets?.[0]?.filters[0];\n\n return { suggestionsToRender, suggestionsKeys, getSuggestionFilter };\n }\n });\n</script>\n\n<style lang=\"css\" scoped>\n .x-suggestions {\n list-style-type: none;\n }\n\n .x-suggestions,\n .x-suggestions__item {\n display: flex;\n flex-flow: column nowrap;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nFor this component to work, you will need to set a list of suggestions as prop, and also to\nimplement the component for single suggestion, which handles the click event. In the following\nexample, the suggestions are retrieved from a property called `suggestions`, and the implementation\nof the suggestion component is a simple `button`, that calls the `emitSuggestionSelected` method\nwhen clicked.\n\n```vue\n<BaseSuggestions :suggestions=\"suggestions\">\n <template #default=\"{ suggestion }\">\n <button @click=\"emitSuggestionSelected($event, suggestion)\">\n {{ suggestion.query }}\n </button>\n </template>\n</BaseSuggestions>\n```\n\nFollowing the previous example, the component options object could be something like this:\n\n```js\nexport default {\n computed: {\n ...mapGetters(['x', 'querySuggestions'], { suggestions: 'suggestions' })\n },\n methods: {\n emitSuggestionSelected(event, suggestion) {\n this.$x.emit('UserAcceptedAQuery', suggestion.query, { target: event.target });\n this.$x.emit('UserSelectedAQuerySuggestion', suggestion, { target: event.target });\n }\n }\n};\n```\n\n### Play with props\n\nIn this example, the suggestions has been limited to render a maximum of 3 items. _Type \"puzzle\" or\nanother toy in the input field to try it out!_\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" :maxItemsToRender=\"3\" />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n\nIn this example, the filters of the suggestion will be rendered along with the query.\n\nThe `showPlainSuggestion` prop can be used to indicate if the suggestion without filter must be\nrendered along with the suggestion with filters.\n\nThis will render:\n\n- Chips //If `showPlainSuggestion` is true\n- Chips EXAMPLE\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" showFacets showPlainSuggestion />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [\n {\n id: 'exampleFacet',\n label: 'exampleFacet',\n modelName: 'SimpleFacet',\n filters: [\n {\n facetId: 'exampleFacet',\n id: '{!tag=exampleFacet}exampleFacet_60361120_64009600:\"EXAMPLE\"',\n label: 'EXAMPLE',\n selected: false,\n totalResults: 10,\n modelName: 'SimpleFilter'\n }\n ]\n }\n ],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n\nIn this example, the `contentClass` prop can be used to add classes to the suggestion item.\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" suggestionItemClass=\"x-custom-class\" />\n</template>\n\n<script>\n import { BaseSuggestions } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch'\n }\n ]\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;AA0BE;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,KAA+B;AACrC,YAAA,QAAQ,EAAE,IAAG;AACd,SAAA;AACD;;;;AAIE;AACF,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,IAAG;AACb,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE,MAAM;AACxB;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAI;AACd,SAAA;AACD;;;;;AAKE;AACF,QAAA,mBAAmB,EAAE;AACnB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAI;AACd,SAAA;;AAED,QAAA,mBAAmB,EAAE,MAAK;AAC3B,KAAA;IACD,KAAK,EAAE,UAAU,KAAK,EAAA;AACpB;;;;;;;AAOE;AACF,QAAA,MAAM,uBAAsB,GAAI,CAAC,UAAsB,KAAmB;YACxE,QACE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,SACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAK,KAAM;AAC3B,gBAAA,GAAG,UAAU;AACb,gBAAA,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC,MAAM,GAAG,CAAA;AACzC,aAAA,CAAC,CAAA,CACF,IAAG,EAAC,EACP;AACH,SAAC,CAAA;AAED;;;;;;AAME;QACF,MAAM,mBAAoB,GAAE,QAAQ,CAAC,MACnC,KAAK,CAAC,WAAU;AACb,aAAA,OAAO,CAAC,cACP,KAAK,CAAC,cAAc,UAAU,CAAC,MAAM,EAAE,MAAK;cACxC,KAAK,CAAC,mBAAkB;AACxB,kBAAE,CAAC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,EAAC,EAAG,EAAE,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAA;AACxE,kBAAE,uBAAuB,CAAC,UAAU,CAAA;cACpC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,EAAG,EAAA,CAClC;aACC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAA,CACnC,CAAA;AAED;;;;;;AAME;QACF,MAAM,WAAU,GAAI,CAAC,KAAY,KAAK,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAK,IAAK,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAEtF;;;;;;AAME;AACF,QAAA,MAAM,YAAa,GAAE,CAAC,MAAe,KAAK,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAE3E;;;;;AAKE;QACF,MAAM,eAAc,GAAI,QAAQ,CAAC,MAC/B,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,cAC5B,YAAY,CAAC,UAAU,CAAC,MAAM,CAAA;cAC1B,UAAU,CAAC,KAAI;AACjB,cAAE,CAAA,EAAG,UAAU,CAAC,KAAK,CAAO,IAAA,EAAA,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA,CAChE,CACD,CAAA;AAED;;;;;;AAME;AACF,QAAA,MAAM,mBAAoB,GAAE,CAAC,UAAsB,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAA;AAE1F,QAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,qBAAqB,CAAA;KACtE;AACD,CAAA,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"base-suggestions.vue2.js","sources":["../../../../src/components/suggestions/base-suggestions.vue"],"sourcesContent":["<template>\n <component :is=\"animation\" v-if=\"suggestions.length\" tag=\"ul\" class=\"x-suggestions\">\n <li\n v-for=\"(suggestion, index) in suggestionsToRender\"\n :key=\"suggestionsKeys[index]\"\n class=\"x-suggestions__item\"\n :class=\"suggestionItemClass\"\n data-test=\"suggestion-item\"\n >\n <!--\n @slot (Required) List item content\n @binding {Suggestion} suggestion - Suggestion data\n @binding {number} index - Suggestion index\n @binding {Filter | undefined} filter - Suggestion's filter\n -->\n <slot v-bind=\"{ suggestion, index, filter: getSuggestionFilter(suggestion) }\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\nimport type { Facet, Suggestion } from '@empathyco/x-types'\nimport type { PropType } from 'vue'\nimport { computed, defineComponent } from 'vue'\nimport { AnimationProp } from '../../types'\nimport { isArrayEmpty } from '../../utils/array'\n\n/**\n * Paints a list of suggestions passed in by prop. Requires a component for a single suggestion\n * in the default slot for working.\n *\n * @public\n */\nexport default defineComponent({\n name: 'BaseSuggestions',\n props: {\n /**\n * The list of suggestions to render.\n *\n * @public\n */\n suggestions: {\n type: Array as PropType<Suggestion[]>,\n required: true,\n },\n /**\n * Animation component that will be used to animate the suggestion.\n *\n * @public\n */\n animation: {\n type: AnimationProp,\n default: 'ul',\n },\n /**\n * Number of suggestions to be rendered.\n *\n * @public\n */\n maxItemsToRender: Number,\n /**\n * Boolean value to indicate if the facets should be rendered.\n *\n * @public\n */\n showFacets: {\n type: Boolean,\n default: false,\n },\n /**\n * When `showFacets` property of `BaseSuggestions` component is true, it indicates if the suggestion without\n * filter should be rendered.\n *\n * @public\n */\n showPlainSuggestion: {\n type: Boolean,\n default: false,\n },\n /** Class inherited by content element. */\n suggestionItemClass: String,\n },\n setup(props) {\n /**\n * Creates a suggestion for each one of the filter inside each facet.\n *\n * @param suggestion - Suggestion to expand.\n * @returns A list of suggestions, each one with a single filter.\n *\n * @internal\n */\n const expandSuggestionFilters = (suggestion: Suggestion): Suggestion[] => {\n return (\n suggestion.facets?.flatMap(facet =>\n facet.filters.map(filter => ({\n ...suggestion,\n facets: [{ ...facet, filters: [filter] }],\n })),\n ) ?? []\n )\n }\n\n /**\n * Creates a list of suggestions to render based on the configuration of this component.\n *\n * @returns - The list of suggestions to be rendered by this component.\n *\n * @internal\n */\n const suggestionsToRender = computed(() =>\n props.suggestions\n .flatMap(suggestion =>\n props.showFacets && suggestion.facets?.length\n ? props.showPlainSuggestion\n ? [{ ...suggestion, facets: [] }, ...expandSuggestionFilters(suggestion)]\n : expandSuggestionFilters(suggestion)\n : { ...suggestion, facets: [] },\n )\n .slice(0, props.maxItemsToRender),\n )\n\n /**\n * Generates a string from the given facet.\n *\n * @param facet - The facet to reduce to a string.\n * @returns - A string representing the facet.\n * @internal\n */\n const getFacetKey = (facet: Facet) => facet.filters.map(filter => filter.id).join('&')\n\n /**\n * Generates a string from the given facets.\n *\n * @param facets - The list of facets to reduce to a string.\n * @returns - A string representing the list of facets.\n * @internal\n */\n const getFacetsKey = (facets: Facet[]) => facets.map(getFacetKey).join('&')\n\n /**\n * An array with the unique keys for each suggestion. Required by the `v-for` loop.\n *\n * @returns An array with the unique keys of the suggestions.\n * @internal\n */\n const suggestionsKeys = computed(() =>\n suggestionsToRender.value.map(suggestion =>\n isArrayEmpty(suggestion.facets)\n ? suggestion.query\n : `${suggestion.query}-in-${getFacetsKey(suggestion.facets)}`,\n ),\n )\n\n /**\n * Returns the filter contained by the suggestion.\n *\n * @param suggestion - Suggestion containing the filter.\n * @returns The suggestion filter.\n * @internal\n */\n const getSuggestionFilter = (suggestion: Suggestion) => suggestion.facets?.[0]?.filters[0]\n\n return { suggestionsToRender, suggestionsKeys, getSuggestionFilter }\n },\n})\n</script>\n\n<style lang=\"css\" scoped>\n.x-suggestions {\n list-style-type: none;\n}\n\n.x-suggestions,\n.x-suggestions__item {\n display: flex;\n flex-flow: column nowrap;\n}\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nFor this component to work, you will need to set a list of suggestions as prop, and also to\nimplement the component for single suggestion, which handles the click event. In the following\nexample, the suggestions are retrieved from a property called `suggestions`, and the implementation\nof the suggestion component is a simple `button`, that calls the `emitSuggestionSelected` method\nwhen clicked.\n\n```vue\n<BaseSuggestions :suggestions=\"suggestions\">\n <template #default=\"{ suggestion }\">\n <button @click=\"emitSuggestionSelected($event, suggestion)\">\n {{ suggestion.query }}\n </button>\n </template>\n</BaseSuggestions>\n```\n\nFollowing the previous example, the component options object could be something like this:\n\n```js\nexport default {\n computed: {\n ...mapGetters(['x', 'querySuggestions'], { suggestions: 'suggestions' }),\n },\n methods: {\n emitSuggestionSelected(event, suggestion) {\n this.$x.emit('UserAcceptedAQuery', suggestion.query, { target: event.target })\n this.$x.emit('UserSelectedAQuerySuggestion', suggestion, { target: event.target })\n },\n },\n}\n```\n\n### Play with props\n\nIn this example, the suggestions has been limited to render a maximum of 3 items. _Type \"puzzle\" or\nanother toy in the input field to try it out!_\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" :maxItemsToRender=\"3\" />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n\nIn this example, the filters of the suggestion will be rendered along with the query.\n\nThe `showPlainSuggestion` prop can be used to indicate if the suggestion without filter must be\nrendered along with the suggestion with filters.\n\nThis will render:\n\n- Chips //If `showPlainSuggestion` is true\n- Chips EXAMPLE\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" showFacets showPlainSuggestion />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [\n {\n id: 'exampleFacet',\n label: 'exampleFacet',\n modelName: 'SimpleFacet',\n filters: [\n {\n facetId: 'exampleFacet',\n id: '{!tag=exampleFacet}exampleFacet_60361120_64009600:\"EXAMPLE\"',\n label: 'EXAMPLE',\n selected: false,\n totalResults: 10,\n modelName: 'SimpleFilter',\n },\n ],\n },\n ],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n\nIn this example, the `contentClass` prop can be used to add classes to the suggestion item.\n\n```vue\n<template>\n <BaseSuggestions :suggestions=\"suggestions\" suggestionItemClass=\"x-custom-class\" />\n</template>\n\n<script>\nimport { BaseSuggestions } from '@empathyco/x-components'\n\nexport default {\n name: 'BaseSuggestionsDemo',\n components: {\n BaseSuggestions,\n },\n data() {\n return {\n suggestions: [\n {\n facets: [],\n key: 'chips',\n query: 'Chips',\n totalResults: 10,\n results: [],\n modelName: 'PopularSearch',\n },\n ],\n }\n },\n}\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;AA2BA;;;;;AAKE;AACF,gBAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,KAAK,EAAE;AACL;;;;AAIE;AACF,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,KAA+B;AACrC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACD;;;;AAIE;AACF,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD;;;;AAIE;AACF,QAAA,gBAAgB,EAAE,MAAM;AACxB;;;;AAIE;AACF,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;AACD;;;;;AAKE;AACF,QAAA,mBAAmB,EAAE;AACnB,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,KAAK;AACf,SAAA;;AAED,QAAA,mBAAmB,EAAE,MAAM;AAC5B,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT;;;;;;;AAOE;AACF,QAAA,MAAM,uBAAsB,GAAI,CAAC,UAAsB,KAAmB;YACxE,QACE,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,SACzB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAK,KAAM;AAC3B,gBAAA,GAAG,UAAU;AACb,gBAAA,MAAM,EAAE,CAAC,EAAE,GAAG,KAAK,EAAE,OAAO,EAAE,CAAC,MAAM,CAAA,EAAG,CAAC;AAC1C,aAAA,CAAC,CAAC,CACH,IAAG,EAAC,EACR;AACF,SAAA,CAAA;AAEA;;;;;;AAME;QACF,MAAM,mBAAoB,GAAE,QAAQ,CAAC,MACnC,KAAK,CAAC,WAAU;AACb,aAAA,OAAO,CAAC,cACP,KAAK,CAAC,cAAc,UAAU,CAAC,MAAM,EAAE,MAAK;cACxC,KAAK,CAAC,mBAAkB;AACxB,kBAAE,CAAC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,EAAC,EAAG,EAAE,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAA;AACxE,kBAAE,uBAAuB,CAAC,UAAU,CAAA;cACpC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,EAAC,EAAG,CACnC;aACC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CACrC,CAAA;AAEA;;;;;;AAME;QACF,MAAM,cAAc,CAAC,KAAY,KAAK,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAA,CAAA;AAErF;;;;;;AAME;AACF,QAAA,MAAM,YAAa,GAAE,CAAC,MAAe,KAAK,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAA,CAAA;AAE1E;;;;;AAKE;QACF,MAAM,eAAc,GAAI,QAAQ,CAAC,MAC/B,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,cAC5B,YAAY,CAAC,UAAU,CAAC,MAAM,CAAA;cAC1B,UAAU,CAAC,KAAI;AACjB,cAAE,CAAA,EAAG,UAAU,CAAC,KAAK,CAAO,IAAA,EAAA,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAE,CAAA,CAChE,CACH,CAAA;AAEA;;;;;;AAME;AACF,QAAA,MAAM,mBAAoB,GAAE,CAAC,UAAsB,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA,CAAA;AAEzF,QAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,mBAAoB,EAAA,CAAA;KACpE;AACF,CAAA,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-component.utils.js","sources":["../../../src/components/x-component.utils.ts"],"sourcesContent":["import { ComponentPublicInstance } from 'vue'
|
|
1
|
+
{"version":3,"file":"x-component.utils.js","sources":["../../../src/components/x-component.utils.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\nimport type { XModuleName } from '../x-modules/x-modules.types'\n\n/**\n * Gets the X-Component name.\n *\n * @param component - The x-component to get its name.\n * @returns The x-module name if the component is an x-component, or `null` if it is not an\n * x-component.\n * @internal\n */\nexport function getXComponentXModuleName(\n component: ComponentPublicInstance | undefined,\n): XModuleName | null {\n // eslint-disable-next-line ts/no-unsafe-return\n return component?.$options.xModule ?? null\n}\n\n/**\n * Returns if the component is an X-Component. An X-Component is a component that has an\n * {@link XModule} associated to it.\n *\n * @param component - The component to check if it is an X-Component.\n * @returns A boolean which flags if a component is a X-Component.\n * @public\n */\nexport function isXComponent(component: ComponentPublicInstance): boolean {\n return !!getXComponentXModuleName(component)\n}\n\n/**\n * Given a component, finds the root XComponent in the ancestors hierarchy.\n *\n * @param component - The component to find its root XComponent.\n * @returns The root XComponent or undefined if it has not.\n * @public\n */\nexport function getRootXComponent(\n component: ComponentPublicInstance | null,\n): ComponentPublicInstance | undefined {\n let xComponent: ComponentPublicInstance | undefined\n let currentComponent = component\n while (currentComponent != null) {\n if (isXComponent(currentComponent)) {\n xComponent = currentComponent\n }\n currentComponent = currentComponent.$parent\n }\n return xComponent\n}\n"],"names":[],"mappings":"AAGA;;;;;;;AAOG;AACG,SAAU,wBAAwB,CACtC,SAA8C,EAAA;;AAG9C,IAAA,OAAO,SAAS,EAAE,QAAQ,CAAC,OAAO,IAAI,IAAI,CAAA;AAC5C,CAAC;AAED;;;;;;;AAOG;AACG,SAAU,YAAY,CAAC,SAAkC,EAAA;AAC7D,IAAA,OAAO,CAAC,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAA;AAC9C,CAAC;AAED;;;;;;AAMG;AACG,SAAU,iBAAiB,CAC/B,SAAyC,EAAA;AAEzC,IAAA,IAAI,UAA+C,CAAA;IACnD,IAAI,gBAAgB,GAAG,SAAS,CAAA;IAChC,OAAO,gBAAgB,IAAI,IAAI,EAAE;AAC/B,QAAA,IAAI,YAAY,CAAC,gBAAgB,CAAC,EAAE;YAClC,UAAU,GAAG,gBAAgB,CAAA;AAC9B,SAAA;AACD,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAA;AAC5C,KAAA;AACD,IAAA,OAAO,UAAU,CAAA;AACnB;;;;"}
|
|
@@ -53,7 +53,7 @@ function createUseDevice(devices) {
|
|
|
53
53
|
...devicesFlags,
|
|
54
54
|
orientation,
|
|
55
55
|
isTouchable,
|
|
56
|
-
deviceName
|
|
56
|
+
deviceName,
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
@@ -125,7 +125,7 @@ function getIsTouchable() {
|
|
|
125
125
|
const isTouchableRef = ref(detectTouchable());
|
|
126
126
|
if (window) {
|
|
127
127
|
useEventListener(window, 'resize', () => (isTouchableRef.value = detectTouchable()), {
|
|
128
|
-
passive: true
|
|
128
|
+
passive: true,
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
return isTouchableRef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-use-device.js","sources":["../../../src/composables/create-use-device.ts"],"sourcesContent":["import { reduce } from '@empathyco/x-utils'
|
|
1
|
+
{"version":3,"file":"create-use-device.js","sources":["../../../src/composables/create-use-device.ts"],"sourcesContent":["import type { Ref } from 'vue'\nimport { reduce } from '@empathyco/x-utils'\nimport { useEventListener, useMemoize, useScreenOrientation, useWindowSize } from '@vueuse/core'\nimport { computed, effectScope, ref } from 'vue'\nimport { capitalize } from '../utils'\n\n/**\n * The Return type of the composable returned by `createUseDevice`.\n *\n * @public\n */\nexport type UseDeviceReturn<Device extends string = string> = {\n orientation: Ref<'landscape' | 'portrait' | undefined>\n isTouchable: Ref<boolean>\n deviceName: Ref<string>\n} & UseDeviceFlags<Device>\n\n/**\n * The device flags type of the Return type of the composable returned by `createUseDevice`.\n *\n * @public\n */\nexport type UseDeviceFlags<Device extends string> = Record<\n `is${Capitalize<Device>}`,\n Ref<boolean>\n> &\n Record<`is${Capitalize<Device>}OrGreater`, Ref<boolean>> &\n Record<`is${Capitalize<Device>}OrLess`, Ref<boolean>>\n\n/**\n * Factory function that creates a composable for device detection using the devices parameter\n * to configure breakpoints.\n *\n * @param devices - An object containing the breakpoints, where the key is the name of the device\n * and the value is the screen width.\n * @returns A composable which provides multiple reactive flags and values for detecting the\n * current device. The flags names depends on the names passed in the `devices` parameter.\n * @remarks The `orientation` only works for orientation-sensor devices (mobile, tablet, etc). If\n * in a desktop, the height of the window is larger than the width, the orientation will be\n * `landscape`.\n *\n * @example\n * ´´´typescript\n * const useDevice = createUseDevice(\\{ mobile: 0, tablet: 744, desktop: 1024 \\});\n * const \\{\n * isMobile,\n * isMobileOrLess,\n * isMobileOrGreater,\n * isTablet,\n * isTabletOrLess,\n * isTabletOrGreater,\n * isDesktop,\n * isDesktopOrLess,\n * isDesktopOrGreater,\n * deviceName,\n * orientation,\n * istTouchable\n * \\} = useDevice();\n *\n * @public\n */\nexport function createUseDevice<Device extends string>(\n devices: Record<Device, number>,\n): () => UseDeviceReturn<Device> {\n let devicesFlags: UseDeviceFlags<Device>\n let orientation: UseDeviceReturn['orientation']\n let isTouchable: UseDeviceReturn['isTouchable']\n let deviceName: UseDeviceReturn['deviceName']\n // The `effectScope` group all the changes in one to avoid multiple re-renderings.\n const scope = effectScope()\n scope.run(() => {\n devicesFlags = getDeviceFlags(devices)\n orientation = getOrientation()\n isTouchable = getIsTouchable()\n deviceName = getDeviceName(devices, devicesFlags)\n })\n return () => ({\n ...devicesFlags,\n orientation,\n isTouchable,\n deviceName,\n })\n}\n\n/**\n * A function that returns reactive flags to detect the current device based on provided\n * breakpoints.\n *\n * @param devices - An object containing the breakpoints, where the key is the name of the device\n * and the value is the screen width.\n * @returns A object containing the multiple reactive flags.\n *\n * @internal\n */\nfunction getDeviceFlags<Device extends string>(\n devices: Record<Device, number>,\n): UseDeviceFlags<Device> {\n const { width: windowSize } = useWindowSize()\n return reduce(\n devices,\n (accumulator, device, deviceWidth) => {\n const isDevice = computed(() => isCurrentDevice(device, devices, windowSize.value))\n accumulator[`is${capitalize(device)}`] = isDevice\n accumulator[`is${capitalize(device)}OrLess`] = computed(\n () => deviceWidth >= windowSize.value || isDevice.value,\n )\n accumulator[`is${capitalize(device)}OrGreater`] = computed(\n () => deviceWidth <= windowSize.value,\n )\n return accumulator\n },\n {} as Record<string, Ref<boolean>>,\n )\n}\n\n/**\n * To get the devices sorted by size and not run this calculation on every check.\n */\nconst getSortedByWidthDevices = useMemoize((devices: Record<string, number>) =>\n Object.entries(devices).sort(([, aWidth], [, bWidth]) => bWidth - aWidth),\n)\n\n/**\n * Checks if the current device satisfies the criteria of being a valid device.\n *\n * @param device - The name of the current device.\n * @param devices - An object containing device names and their\n * respective widths.\n * @param windowSize - The width of the window.\n * @returns A boolean value indicating whether the current device satisfies the\n * criteria of being a valid device.\n *\n * @internal\n */\nfunction isCurrentDevice(\n device: string,\n devices: Record<string, number>,\n windowSize: number,\n): boolean {\n const deviceWidth = devices[device]\n return (\n deviceWidth <= windowSize &&\n !getSortedByWidthDevices(devices).some(\n ([, otherDeviceWidth]) => otherDeviceWidth <= windowSize && otherDeviceWidth > deviceWidth,\n )\n )\n}\n\n/**\n * A function that returns the current device orientation as a reactive value.\n *\n * @returns A reactive value indicating the current device\n * orientation.\n *\n * @internal\n */\nfunction getOrientation(): UseDeviceReturn['orientation'] {\n const { orientation } = useScreenOrientation()\n return computed(() =>\n orientation.value?.includes('landscape')\n ? 'landscape'\n : orientation.value?.includes('portrait')\n ? 'portrait'\n : undefined,\n )\n}\n\n/**\n * A function that returns a reactive boolean indicating whether the current device is\n * touch-enabled.\n *\n * @returns A reactive boolean indicating whether the current device is touch-enabled.\n *\n * @internal\n */\nfunction getIsTouchable(): Ref<boolean> {\n const isTouchableRef = ref(detectTouchable())\n if (window) {\n useEventListener(window, 'resize', () => (isTouchableRef.value = detectTouchable()), {\n passive: true,\n })\n }\n return isTouchableRef\n}\n\n/**\n * A function that returns a reactive string indicating the name of the currently detected device\n * based on the provided devices and device flags.\n *\n * @param devices - An object containing the breakpoints, where the key is the name of the device\n * and the value is the screen width.\n * @param devicesFlags - An object containing multiple reactive flags and values for detecting\n * the current device.\n * @returns A reactive string indicating the name of the currently detected device.\n *\n * @internal\n */\nfunction getDeviceName(\n devices: Record<string, number>,\n devicesFlags: UseDeviceFlags<string>,\n): Ref<string> {\n return computed(\n () => Object.keys(devices).find(device => devicesFlags[`is${capitalize(device)}`]?.value) ?? '',\n )\n}\n\n/**\n * A utility function that detects whether the current device is touch-enabled.\n *\n * @returns A boolean indicating whether the current device is touch-enabled.\n *\n * @internal\n */\nfunction detectTouchable(): boolean {\n return 'ontouchstart' in window || navigator.maxTouchPoints > 0\n}\n"],"names":[],"mappings":";;;;;;AA6BA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BG;AACG,SAAU,eAAe,CAC7B,OAA+B,EAAA;AAE/B,IAAA,IAAI,YAAoC,CAAA;AACxC,IAAA,IAAI,WAA2C,CAAA;AAC/C,IAAA,IAAI,WAA2C,CAAA;AAC/C,IAAA,IAAI,UAAyC,CAAA;;AAE7C,IAAA,MAAM,KAAK,GAAG,WAAW,EAAE,CAAA;AAC3B,IAAA,KAAK,CAAC,GAAG,CAAC,MAAK;AACb,QAAA,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;QACtC,WAAW,GAAG,cAAc,EAAE,CAAA;QAC9B,WAAW,GAAG,cAAc,EAAE,CAAA;AAC9B,QAAA,UAAU,GAAG,aAAa,CAAC,OAAO,EAAE,YAAY,CAAC,CAAA;AACnD,KAAC,CAAC,CAAA;IACF,OAAO,OAAO;AACZ,QAAA,GAAG,YAAY;QACf,WAAW;QACX,WAAW;QACX,UAAU;AACX,KAAA,CAAC,CAAA;AACJ,CAAC;AAED;;;;;;;;;AASG;AACH,SAAS,cAAc,CACrB,OAA+B,EAAA;IAE/B,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,EAAE,CAAA;IAC7C,OAAO,MAAM,CACX,OAAO,EACP,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,KAAI;AACnC,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAA;QACnF,WAAW,CAAC,CAAK,EAAA,EAAA,UAAU,CAAC,MAAM,CAAC,CAAE,CAAA,CAAC,GAAG,QAAQ,CAAA;QACjD,WAAW,CAAC,CAAK,EAAA,EAAA,UAAU,CAAC,MAAM,CAAC,CAAQ,MAAA,CAAA,CAAC,GAAG,QAAQ,CACrD,MAAM,WAAW,IAAI,UAAU,CAAC,KAAK,IAAI,QAAQ,CAAC,KAAK,CACxD,CAAA;QACD,WAAW,CAAC,KAAK,UAAU,CAAC,MAAM,CAAC,CAAA,SAAA,CAAW,CAAC,GAAG,QAAQ,CACxD,MAAM,WAAW,IAAI,UAAU,CAAC,KAAK,CACtC,CAAA;AACD,QAAA,OAAO,WAAW,CAAA;KACnB,EACD,EAAkC,CACnC,CAAA;AACH,CAAC;AAED;;AAEG;AACH,MAAM,uBAAuB,GAAG,UAAU,CAAC,CAAC,OAA+B,KACzE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC,CAC1E,CAAA;AAED;;;;;;;;;;;AAWG;AACH,SAAS,eAAe,CACtB,MAAc,EACd,OAA+B,EAC/B,UAAkB,EAAA;AAElB,IAAA,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACnC,QACE,WAAW,IAAI,UAAU;QACzB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,IAAI,CACpC,CAAC,GAAG,gBAAgB,CAAC,KAAK,gBAAgB,IAAI,UAAU,IAAI,gBAAgB,GAAG,WAAW,CAC3F,EACF;AACH,CAAC;AAED;;;;;;;AAOG;AACH,SAAS,cAAc,GAAA;AACrB,IAAA,MAAM,EAAE,WAAW,EAAE,GAAG,oBAAoB,EAAE,CAAA;AAC9C,IAAA,OAAO,QAAQ,CAAC,MACd,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC;AACtC,UAAE,WAAW;UACX,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC;AACvC,cAAE,UAAU;cACV,SAAS,CAChB,CAAA;AACH,CAAC;AAED;;;;;;;AAOG;AACH,SAAS,cAAc,GAAA;AACrB,IAAA,MAAM,cAAc,GAAG,GAAG,CAAC,eAAe,EAAE,CAAC,CAAA;AAC7C,IAAA,IAAI,MAAM,EAAE;AACV,QAAA,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,cAAc,CAAC,KAAK,GAAG,eAAe,EAAE,CAAC,EAAE;AACnF,YAAA,OAAO,EAAE,IAAI;AACd,SAAA,CAAC,CAAA;AACH,KAAA;AACD,IAAA,OAAO,cAAc,CAAA;AACvB,CAAC;AAED;;;;;;;;;;;AAWG;AACH,SAAS,aAAa,CACpB,OAA+B,EAC/B,YAAoC,EAAA;AAEpC,IAAA,OAAO,QAAQ,CACb,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,YAAY,CAAC,CAAK,EAAA,EAAA,UAAU,CAAC,MAAM,CAAC,CAAE,CAAA,CAAC,EAAE,KAAK,CAAC,IAAI,EAAE,CAChG,CAAA;AACH,CAAC;AAED;;;;;;AAMG;AACH,SAAS,eAAe,GAAA;IACtB,OAAO,cAAc,IAAI,MAAM,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAA;AACjE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-_x.js","sources":["../../../src/composables/use-$x.ts"],"sourcesContent":["import { useAliasApi } from './use-alias-api'
|
|
1
|
+
{"version":3,"file":"use-_x.js","sources":["../../../src/composables/use-$x.ts"],"sourcesContent":["import { useAliasApi } from './use-alias-api'\nimport { useXBus } from './use-x-bus'\n\n/**\n * Function which returns the `$x` object from the current component instance.\n *\n * @returns The `$x` object from the current component instance.\n *\n * @public\n */\nexport function use$x() {\n const xAliasAPI = useAliasApi()\n const xBusAPI = useXBus()\n return Object.assign(xAliasAPI, xBusAPI)\n}\n"],"names":[],"mappings":";;;AAGA;;;;;;AAMG;SACa,KAAK,GAAA;AACnB,IAAA,MAAM,SAAS,GAAG,WAAW,EAAE,CAAA;AAC/B,IAAA,MAAM,OAAO,GAAG,OAAO,EAAE,CAAA;IACzB,OAAO,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;AAC1C;;;;"}
|
|
@@ -9,6 +9,7 @@ import '../plugins/x-plugin.js';
|
|
|
9
9
|
import { getGetterPath } from '../plugins/x-plugin.utils.js';
|
|
10
10
|
import { useStore } from 'vuex';
|
|
11
11
|
|
|
12
|
+
/* eslint-disable ts/no-unsafe-return,ts/no-unsafe-member-access,ts/no-unsafe-assignment */
|
|
12
13
|
/**
|
|
13
14
|
* Creates an object containing the alias part of {@link XComponentAPI}.
|
|
14
15
|
*
|
|
@@ -23,7 +24,7 @@ function useAliasApi() {
|
|
|
23
24
|
'nextQueries',
|
|
24
25
|
'querySuggestions',
|
|
25
26
|
'relatedTags',
|
|
26
|
-
'search'
|
|
27
|
+
'search',
|
|
27
28
|
];
|
|
28
29
|
const statusModules = [
|
|
29
30
|
'identifierResults',
|
|
@@ -32,7 +33,7 @@ function useAliasApi() {
|
|
|
32
33
|
'querySuggestions',
|
|
33
34
|
'recommendations',
|
|
34
35
|
'relatedTags',
|
|
35
|
-
'search'
|
|
36
|
+
'search',
|
|
36
37
|
];
|
|
37
38
|
const store = useStore();
|
|
38
39
|
const query = queryModules.reduce((acc, moduleName) => {
|
|
@@ -40,7 +41,7 @@ function useAliasApi() {
|
|
|
40
41
|
get() {
|
|
41
42
|
return store.state.x[moduleName]?.query ?? '';
|
|
42
43
|
},
|
|
43
|
-
enumerable: true
|
|
44
|
+
enumerable: true,
|
|
44
45
|
});
|
|
45
46
|
}, {});
|
|
46
47
|
const status = statusModules.reduce((acc, moduleName) => {
|
|
@@ -48,7 +49,7 @@ function useAliasApi() {
|
|
|
48
49
|
get() {
|
|
49
50
|
return store.state.x[moduleName]?.status;
|
|
50
51
|
},
|
|
51
|
-
enumerable: true
|
|
52
|
+
enumerable: true,
|
|
52
53
|
});
|
|
53
54
|
}, {});
|
|
54
55
|
return {
|
|
@@ -137,9 +138,10 @@ function useAliasApi() {
|
|
|
137
138
|
},
|
|
138
139
|
get priceStats() {
|
|
139
140
|
return store.state.x.search?.stats?.price ?? {};
|
|
140
|
-
}
|
|
141
|
+
},
|
|
141
142
|
};
|
|
142
|
-
}
|
|
143
|
+
}
|
|
144
|
+
/* eslint-enable ts/no-unsafe-return,ts/no-unsafe-member-access,ts/no-unsafe-assignment */
|
|
143
145
|
|
|
144
146
|
export { useAliasApi };
|
|
145
147
|
//# sourceMappingURL=use-alias-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-alias-api.js","sources":["../../../src/composables/use-alias-api.ts"],"sourcesContent":["import {\n Facet,\n Filter,\n HistoryQuery,\n NextQuery,\n PartialResult,\n Redirection,\n RelatedTag,\n Result,\n SemanticQuery,\n Suggestion\n} from '@empathyco/x-types';\nimport { ScrollComponentState } from '../x-modules/scroll/store/types';\nimport { InputStatus } from '../x-modules/search-box/store/types';\nimport { RequestStatus } from '../store/utils/status-store.utils';\nimport { getGetterPath } from '../plugins/index';\nimport { useStore } from './use-store';\n\n/**\n * Creates an object containing the alias part of {@link XComponentAPI}.\n *\n * @returns An object containing the alias part of the {@link XComponentAPI}.\n *\n * @internal\n */\nexport function useAliasApi(): UseAliasAPI {\n const queryModules = [\n 'facets',\n 'searchBox',\n 'nextQueries',\n 'querySuggestions',\n 'relatedTags',\n 'search'\n ] as const;\n const statusModules = [\n 'identifierResults',\n 'nextQueries',\n 'popularSearches',\n 'querySuggestions',\n 'recommendations',\n 'relatedTags',\n 'search'\n ] as const;\n\n const store = useStore();\n\n const query = queryModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): string {\n return store.state.x[moduleName]?.query ?? '';\n },\n enumerable: true\n });\n }, {} as UseAliasQueryAPI);\n\n const status = statusModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): RequestStatus | undefined {\n return store.state.x[moduleName]?.status;\n },\n enumerable: true\n });\n }, {} as UseAliasStatusAPI);\n\n return {\n query,\n status,\n get device() {\n return store.state.x.device?.name ?? null;\n },\n get facets() {\n return store.getters[getGetterPath('facets', 'facets')] ?? {};\n },\n get historyQueries() {\n return store.getters[getGetterPath('historyQueries', 'historyQueries')] ?? [];\n },\n get historyQueriesWithResults() {\n return store.getters[getGetterPath('historyQueries', 'historyQueriesWithResults')] ?? [];\n },\n get fullHistoryQueries() {\n return store.state.x.historyQueries?.historyQueries ?? [];\n },\n get isHistoryQueriesEnabled() {\n return store.state.x.historyQueries?.isEnabled ?? false;\n },\n get fromNoResultsWithFilters() {\n return store.state.x.search?.fromNoResultsWithFilters ?? false;\n },\n get identifierResults() {\n return store.state.x.identifierResults?.identifierResults ?? [];\n },\n get searchBoxStatus() {\n return store.state.x.searchBox?.inputStatus ?? undefined;\n },\n get isEmpathizeOpen() {\n return store.state.x.empathize?.isOpen ?? false;\n },\n get nextQueries() {\n return store.getters[getGetterPath('nextQueries', 'nextQueries')] ?? [];\n },\n get noResults() {\n return store.state.x.search?.isNoResults ?? false;\n },\n get partialResults() {\n return store.state.x.search?.partialResults ?? [];\n },\n get popularSearches() {\n return store.state.x.popularSearches?.popularSearches ?? [];\n },\n get querySuggestions() {\n return store.getters[getGetterPath('querySuggestions', 'querySuggestions')] ?? [];\n },\n get fullQuerySuggestions() {\n return store.state.x.querySuggestions?.suggestions ?? [];\n },\n get recommendations() {\n return store.state.x.recommendations?.recommendations ?? [];\n },\n get redirections() {\n return store.state.x.search?.redirections ?? [];\n },\n get relatedTags() {\n return store.getters[getGetterPath('relatedTags', 'relatedTags')] ?? [];\n },\n get results() {\n return store.state.x.search?.results ?? [];\n },\n get scroll() {\n return store.state.x.scroll?.data ?? {};\n },\n get selectedFilters() {\n return store.getters[getGetterPath('facets', 'selectedFilters')] ?? [];\n },\n get selectedRelatedTags() {\n return store.state.x.relatedTags?.selectedRelatedTags ?? [];\n },\n get semanticQueries() {\n return store.state.x.semanticQueries?.semanticQueries ?? [];\n },\n get spellcheckedQuery() {\n return store.state.x.search?.spellcheckedQuery ?? null;\n },\n get totalResults() {\n return store.state.x.search?.totalResults ?? 0;\n },\n get selectedSort() {\n return store.state.x.search?.sort ?? '';\n },\n get priceStats() {\n return store.state.x.search?.stats?.price ?? {};\n }\n };\n}\n\n/**\n * Alias to facilitate retrieving values from the store.\n *\n * @public\n */\nexport interface UseAliasAPI {\n /** The {@link DeviceXModule} detected device. */\n readonly device: string | null;\n /** The {@link FacetsXModule} facets. */\n readonly facets: Record<Facet['id'], Facet>;\n /** The {@link HistoryQueriesXModule} history queries matching the query. */\n readonly historyQueries: ReadonlyArray<HistoryQuery>;\n /** The {@link HistoryQueriesXModule} history queries with 1 or more results. */\n readonly historyQueriesWithResults: ReadonlyArray<HistoryQuery>;\n /** The {@link HistoryQueriesXModule} history queries. */\n readonly fullHistoryQueries: ReadonlyArray<HistoryQuery>;\n /** The {@link HistoryQueriesXModule} history queries enabled flag. */\n readonly isHistoryQueriesEnabled: Readonly<boolean>;\n /** The {@link SearchXModule} no results with filters flag. */\n readonly fromNoResultsWithFilters: Readonly<boolean>;\n /** The {@link IdentifierResultsXModule} results. */\n readonly identifierResults: ReadonlyArray<Result>;\n /** The {@link SearchBoxXModule } input status. */\n readonly searchBoxStatus: InputStatus | undefined;\n /** The {@link Empathize} is open state. */\n readonly isEmpathizeOpen: boolean;\n /** The {@link NextQueriesXModule} next queries. */\n readonly nextQueries: ReadonlyArray<NextQuery>;\n /** The {@link SearchXModule} no results situation. */\n readonly noResults: boolean;\n /** The {@link SearchXModule} partial results. */\n readonly partialResults: ReadonlyArray<PartialResult>;\n /** The {@link PopularSearchesXModule} popular searches. */\n readonly popularSearches: ReadonlyArray<Suggestion>;\n /** The query value of the different modules. */\n readonly query: UseAliasQueryAPI;\n /** The {@link QuerySuggestionsXModule} query suggestions that should be displayed. */\n readonly querySuggestions: ReadonlyArray<Suggestion>;\n /** The {@link QuerySuggestionsXModule} query suggestions. */\n readonly fullQuerySuggestions: ReadonlyArray<Suggestion>;\n /** The {@link RecommendationsXModule} recommendations. */\n readonly recommendations: ReadonlyArray<Result>;\n /** The {@link SearchXModule} redirections. */\n readonly redirections: ReadonlyArray<Redirection>;\n /** The {@link RelatedTagsXModule} related tags (Both selected and deselected). */\n readonly relatedTags: ReadonlyArray<RelatedTag>;\n /** The {@link SearchXModule} search results. */\n readonly results: ReadonlyArray<Result>;\n /** The {@link ScrollXModule} data state. */\n readonly scroll: Record<string, ScrollComponentState>;\n /** The {@link FacetsXModule} selected filters. */\n readonly selectedFilters: Filter[];\n /** The {@link RelatedTagsXModule} selected related tags. */\n readonly selectedRelatedTags: ReadonlyArray<RelatedTag>;\n /** The {@link SemanticQueriesXModule} queries. */\n readonly semanticQueries: ReadonlyArray<SemanticQuery>;\n /** The {@link SearchXModule} spellchecked query. */\n readonly spellcheckedQuery: string | null;\n /** The status value of the different modules. */\n readonly status: UseAliasStatusAPI;\n /** The {@link SearchXModule} total results. */\n readonly totalResults: number;\n /** The {@link SearchXModule} selected sort. */\n readonly selectedSort: string;\n /** The {@link SearchXModule} price specific stats. */\n readonly priceStats: { min: number; max: number };\n}\n\n/**\n * Alias to facilitate retrieving the modules with query.\n *\n * @public\n */\nexport interface UseAliasQueryAPI {\n /** The {@link FacetsXModule} query. */\n readonly facets: string;\n /** The {@link SearchBoxXModule} query. */\n readonly searchBox: string;\n /** The {@link NextQueriesXModule} query. */\n readonly nextQueries: string;\n /** The {@link QuerySuggestionsXModule} query. */\n readonly querySuggestions: string;\n /** The {@link RelatedTagsXModule} query. */\n readonly relatedTags: string;\n /** The {@link SearchXModule} query. */\n readonly search: string;\n}\n\n/**\n * Alias to facilitate retrieving the modules with status.\n *\n * @public\n */\nexport interface UseAliasStatusAPI {\n /** The {@link IdentifierResultsXModule} status. */\n readonly identifierResults: RequestStatus | undefined;\n /** The {@link NextQueriesXModule} status. */\n readonly nextQueries: RequestStatus | undefined;\n /** The {@link PopularSearchesXModule} status. */\n readonly popularSearches: RequestStatus | undefined;\n /** The {@link QuerySuggestionsXModule} status. */\n readonly querySuggestions: RequestStatus | undefined;\n /** The {@link RecommendationsXModule} status. */\n readonly recommendations: RequestStatus | undefined;\n /** The {@link RelatedTagsXModule} status. */\n readonly relatedTags: RequestStatus | undefined;\n /** The {@link SearchXModule} status. */\n readonly search: RequestStatus | undefined;\n}\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA;;;;;;AAMG;SACa,WAAW,GAAA;AACzB,IAAA,MAAM,YAAY,GAAG;QACnB,QAAQ;QACR,WAAW;QACX,aAAa;QACb,kBAAkB;QAClB,aAAa;QACb,QAAQ;KACA,CAAC;AACX,IAAA,MAAM,aAAa,GAAG;QACpB,mBAAmB;QACnB,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,iBAAiB;QACjB,aAAa;QACb,QAAQ;KACA,CAAC;AAEX,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,KAAI;AACpD,QAAA,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,GAAA;AACD,gBAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC;aAC/C;AACD,YAAA,UAAU,EAAE,IAAI;AACjB,SAAA,CAAC,CAAC;KACJ,EAAE,EAAsB,CAAC,CAAC;IAE3B,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,KAAI;AACtD,QAAA,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,GAAA;gBACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;aAC1C;AACD,YAAA,UAAU,EAAE,IAAI;AACjB,SAAA,CAAC,CAAC;KACJ,EAAE,EAAuB,CAAC,CAAC;IAE5B,OAAO;QACL,KAAK;QACL,MAAM;AACN,QAAA,IAAI,MAAM,GAAA;YACR,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAC;SAC3C;AACD,QAAA,IAAI,MAAM,GAAA;AACR,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;SAC/D;AACD,QAAA,IAAI,cAAc,GAAA;AAChB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC;SAC/E;AACD,QAAA,IAAI,yBAAyB,GAAA;AAC3B,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,IAAI,EAAE,CAAC;SAC1F;AACD,QAAA,IAAI,kBAAkB,GAAA;YACpB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,cAAc,IAAI,EAAE,CAAC;SAC3D;AACD,QAAA,IAAI,uBAAuB,GAAA;YACzB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,SAAS,IAAI,KAAK,CAAC;SACzD;AACD,QAAA,IAAI,wBAAwB,GAAA;YAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,wBAAwB,IAAI,KAAK,CAAC;SAChE;AACD,QAAA,IAAI,iBAAiB,GAAA;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,EAAE,iBAAiB,IAAI,EAAE,CAAC;SACjE;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,WAAW,IAAI,SAAS,CAAC;SAC1D;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,IAAI,KAAK,CAAC;SACjD;AACD,QAAA,IAAI,WAAW,GAAA;AACb,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC;SACzE;AACD,QAAA,IAAI,SAAS,GAAA;YACX,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,IAAI,KAAK,CAAC;SACnD;AACD,QAAA,IAAI,cAAc,GAAA;YAChB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,cAAc,IAAI,EAAE,CAAC;SACnD;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAC;SAC7D;AACD,QAAA,IAAI,gBAAgB,GAAA;AAClB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,IAAI,EAAE,CAAC;SACnF;AACD,QAAA,IAAI,oBAAoB,GAAA;YACtB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,EAAE,WAAW,IAAI,EAAE,CAAC;SAC1D;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAC;SAC7D;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,CAAC;SACjD;AACD,QAAA,IAAI,WAAW,GAAA;AACb,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC;SACzE;AACD,QAAA,IAAI,OAAO,GAAA;YACT,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC;SAC5C;AACD,QAAA,IAAI,MAAM,GAAA;YACR,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;SACzC;AACD,QAAA,IAAI,eAAe,GAAA;AACjB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAC;SACxE;AACD,QAAA,IAAI,mBAAmB,GAAA;YACrB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,mBAAmB,IAAI,EAAE,CAAC;SAC7D;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAC;SAC7D;AACD,QAAA,IAAI,iBAAiB,GAAA;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,iBAAiB,IAAI,IAAI,CAAC;SACxD;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,YAAY,IAAI,CAAC,CAAC;SAChD;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;SACzC;AACD,QAAA,IAAI,UAAU,GAAA;AACZ,YAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC;SACjD;KACF,CAAC;AACJ;;;;"}
|
|
1
|
+
{"version":3,"file":"use-alias-api.js","sources":["../../../src/composables/use-alias-api.ts"],"sourcesContent":["import type {\n Facet,\n Filter,\n HistoryQuery,\n NextQuery,\n PartialResult,\n Redirection,\n RelatedTag,\n Result,\n SemanticQuery,\n Suggestion,\n} from '@empathyco/x-types'\nimport type { RequestStatus } from '../store/utils/status-store.utils'\nimport type { ScrollComponentState } from '../x-modules/scroll/store/types'\nimport type { InputStatus } from '../x-modules/search-box/store/types'\nimport { getGetterPath } from '../plugins/index'\nimport { useStore } from './use-store'\n\n/* eslint-disable ts/no-unsafe-return,ts/no-unsafe-member-access,ts/no-unsafe-assignment */\n\n/**\n * Creates an object containing the alias part of {@link XComponentAPI}.\n *\n * @returns An object containing the alias part of the {@link XComponentAPI}.\n *\n * @internal\n */\nexport function useAliasApi(): UseAliasAPI {\n const queryModules = [\n 'facets',\n 'searchBox',\n 'nextQueries',\n 'querySuggestions',\n 'relatedTags',\n 'search',\n ] as const\n const statusModules = [\n 'identifierResults',\n 'nextQueries',\n 'popularSearches',\n 'querySuggestions',\n 'recommendations',\n 'relatedTags',\n 'search',\n ] as const\n\n const store = useStore()\n\n const query = queryModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): string {\n return store.state.x[moduleName]?.query ?? ''\n },\n enumerable: true,\n })\n }, {} as UseAliasQueryAPI)\n\n const status = statusModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): RequestStatus | undefined {\n return store.state.x[moduleName]?.status\n },\n enumerable: true,\n })\n }, {} as UseAliasStatusAPI)\n\n return {\n query,\n status,\n get device() {\n return store.state.x.device?.name ?? null\n },\n get facets() {\n return store.getters[getGetterPath('facets', 'facets')] ?? {}\n },\n get historyQueries() {\n return store.getters[getGetterPath('historyQueries', 'historyQueries')] ?? []\n },\n get historyQueriesWithResults() {\n return store.getters[getGetterPath('historyQueries', 'historyQueriesWithResults')] ?? []\n },\n get fullHistoryQueries() {\n return store.state.x.historyQueries?.historyQueries ?? []\n },\n get isHistoryQueriesEnabled() {\n return store.state.x.historyQueries?.isEnabled ?? false\n },\n get fromNoResultsWithFilters() {\n return store.state.x.search?.fromNoResultsWithFilters ?? false\n },\n get identifierResults() {\n return store.state.x.identifierResults?.identifierResults ?? []\n },\n get searchBoxStatus() {\n return store.state.x.searchBox?.inputStatus ?? undefined\n },\n get isEmpathizeOpen() {\n return store.state.x.empathize?.isOpen ?? false\n },\n get nextQueries() {\n return store.getters[getGetterPath('nextQueries', 'nextQueries')] ?? []\n },\n get noResults() {\n return store.state.x.search?.isNoResults ?? false\n },\n get partialResults() {\n return store.state.x.search?.partialResults ?? []\n },\n get popularSearches() {\n return store.state.x.popularSearches?.popularSearches ?? []\n },\n get querySuggestions() {\n return store.getters[getGetterPath('querySuggestions', 'querySuggestions')] ?? []\n },\n get fullQuerySuggestions() {\n return store.state.x.querySuggestions?.suggestions ?? []\n },\n get recommendations() {\n return store.state.x.recommendations?.recommendations ?? []\n },\n get redirections() {\n return store.state.x.search?.redirections ?? []\n },\n get relatedTags() {\n return store.getters[getGetterPath('relatedTags', 'relatedTags')] ?? []\n },\n get results() {\n return store.state.x.search?.results ?? []\n },\n get scroll() {\n return store.state.x.scroll?.data ?? {}\n },\n get selectedFilters() {\n return store.getters[getGetterPath('facets', 'selectedFilters')] ?? []\n },\n get selectedRelatedTags() {\n return store.state.x.relatedTags?.selectedRelatedTags ?? []\n },\n get semanticQueries() {\n return store.state.x.semanticQueries?.semanticQueries ?? []\n },\n get spellcheckedQuery() {\n return store.state.x.search?.spellcheckedQuery ?? null\n },\n get totalResults() {\n return store.state.x.search?.totalResults ?? 0\n },\n get selectedSort() {\n return store.state.x.search?.sort ?? ''\n },\n get priceStats() {\n return store.state.x.search?.stats?.price ?? {}\n },\n }\n}\n\n/**\n * Alias to facilitate retrieving values from the store.\n *\n * @public\n */\nexport interface UseAliasAPI {\n /** The {@link DeviceXModule} detected device. */\n readonly device: string | null\n /** The {@link FacetsXModule} facets. */\n readonly facets: Record<Facet['id'], Facet>\n /** The {@link HistoryQueriesXModule} history queries matching the query. */\n readonly historyQueries: ReadonlyArray<HistoryQuery>\n /** The {@link HistoryQueriesXModule} history queries with 1 or more results. */\n readonly historyQueriesWithResults: ReadonlyArray<HistoryQuery>\n /** The {@link HistoryQueriesXModule} history queries. */\n readonly fullHistoryQueries: ReadonlyArray<HistoryQuery>\n /** The {@link HistoryQueriesXModule} history queries enabled flag. */\n readonly isHistoryQueriesEnabled: Readonly<boolean>\n /** The {@link SearchXModule} no results with filters flag. */\n readonly fromNoResultsWithFilters: Readonly<boolean>\n /** The {@link IdentifierResultsXModule} results. */\n readonly identifierResults: ReadonlyArray<Result>\n /** The {@link SearchBoxXModule } input status. */\n readonly searchBoxStatus: InputStatus | undefined\n /** The {@link Empathize} is open state. */\n readonly isEmpathizeOpen: boolean\n /** The {@link NextQueriesXModule} next queries. */\n readonly nextQueries: ReadonlyArray<NextQuery>\n /** The {@link SearchXModule} no results situation. */\n readonly noResults: boolean\n /** The {@link SearchXModule} partial results. */\n readonly partialResults: ReadonlyArray<PartialResult>\n /** The {@link PopularSearchesXModule} popular searches. */\n readonly popularSearches: ReadonlyArray<Suggestion>\n /** The query value of the different modules. */\n readonly query: UseAliasQueryAPI\n /** The {@link QuerySuggestionsXModule} query suggestions that should be displayed. */\n readonly querySuggestions: ReadonlyArray<Suggestion>\n /** The {@link QuerySuggestionsXModule} query suggestions. */\n readonly fullQuerySuggestions: ReadonlyArray<Suggestion>\n /** The {@link RecommendationsXModule} recommendations. */\n readonly recommendations: ReadonlyArray<Result>\n /** The {@link SearchXModule} redirections. */\n readonly redirections: ReadonlyArray<Redirection>\n /** The {@link RelatedTagsXModule} related tags (Both selected and deselected). */\n readonly relatedTags: ReadonlyArray<RelatedTag>\n /** The {@link SearchXModule} search results. */\n readonly results: ReadonlyArray<Result>\n /** The {@link ScrollXModule} data state. */\n readonly scroll: Record<string, ScrollComponentState>\n /** The {@link FacetsXModule} selected filters. */\n readonly selectedFilters: Filter[]\n /** The {@link RelatedTagsXModule} selected related tags. */\n readonly selectedRelatedTags: ReadonlyArray<RelatedTag>\n /** The {@link SemanticQueriesXModule} queries. */\n readonly semanticQueries: ReadonlyArray<SemanticQuery>\n /** The {@link SearchXModule} spellchecked query. */\n readonly spellcheckedQuery: string | null\n /** The status value of the different modules. */\n readonly status: UseAliasStatusAPI\n /** The {@link SearchXModule} total results. */\n readonly totalResults: number\n /** The {@link SearchXModule} selected sort. */\n readonly selectedSort: string\n /** The {@link SearchXModule} price specific stats. */\n readonly priceStats: { min: number; max: number }\n}\n\n/**\n * Alias to facilitate retrieving the modules with query.\n *\n * @public\n */\nexport interface UseAliasQueryAPI {\n /** The {@link FacetsXModule} query. */\n readonly facets: string\n /** The {@link SearchBoxXModule} query. */\n readonly searchBox: string\n /** The {@link NextQueriesXModule} query. */\n readonly nextQueries: string\n /** The {@link QuerySuggestionsXModule} query. */\n readonly querySuggestions: string\n /** The {@link RelatedTagsXModule} query. */\n readonly relatedTags: string\n /** The {@link SearchXModule} query. */\n readonly search: string\n}\n\n/**\n * Alias to facilitate retrieving the modules with status.\n *\n * @public\n */\nexport interface UseAliasStatusAPI {\n /** The {@link IdentifierResultsXModule} status. */\n readonly identifierResults: RequestStatus | undefined\n /** The {@link NextQueriesXModule} status. */\n readonly nextQueries: RequestStatus | undefined\n /** The {@link PopularSearchesXModule} status. */\n readonly popularSearches: RequestStatus | undefined\n /** The {@link QuerySuggestionsXModule} status. */\n readonly querySuggestions: RequestStatus | undefined\n /** The {@link RecommendationsXModule} status. */\n readonly recommendations: RequestStatus | undefined\n /** The {@link RelatedTagsXModule} status. */\n readonly relatedTags: RequestStatus | undefined\n /** The {@link SearchXModule} status. */\n readonly search: RequestStatus | undefined\n}\n\n/* eslint-enable ts/no-unsafe-return,ts/no-unsafe-member-access,ts/no-unsafe-assignment */\n"],"names":[],"mappings":";;;;;;;;;;;AAkBA;AAEA;;;;;;AAMG;SACa,WAAW,GAAA;AACzB,IAAA,MAAM,YAAY,GAAG;QACnB,QAAQ;QACR,WAAW;QACX,aAAa;QACb,kBAAkB;QAClB,aAAa;QACb,QAAQ;KACA,CAAA;AACV,IAAA,MAAM,aAAa,GAAG;QACpB,mBAAmB;QACnB,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,iBAAiB;QACjB,aAAa;QACb,QAAQ;KACA,CAAA;AAEV,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,KAAI;AACpD,QAAA,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,GAAA;AACD,gBAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,KAAK,IAAI,EAAE,CAAA;aAC9C;AACD,YAAA,UAAU,EAAE,IAAI;AACjB,SAAA,CAAC,CAAA;KACH,EAAE,EAAsB,CAAC,CAAA;IAE1B,MAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,UAAU,KAAI;AACtD,QAAA,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,GAAA;gBACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;aACzC;AACD,YAAA,UAAU,EAAE,IAAI;AACjB,SAAA,CAAC,CAAA;KACH,EAAE,EAAuB,CAAC,CAAA;IAE3B,OAAO;QACL,KAAK;QACL,MAAM;AACN,QAAA,IAAI,MAAM,GAAA;YACR,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,IAAI,CAAA;SAC1C;AACD,QAAA,IAAI,MAAM,GAAA;AACR,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA;SAC9D;AACD,QAAA,IAAI,cAAc,GAAA;AAChB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAA;SAC9E;AACD,QAAA,IAAI,yBAAyB,GAAA;AAC3B,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,2BAA2B,CAAC,CAAC,IAAI,EAAE,CAAA;SACzF;AACD,QAAA,IAAI,kBAAkB,GAAA;YACpB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,cAAc,IAAI,EAAE,CAAA;SAC1D;AACD,QAAA,IAAI,uBAAuB,GAAA;YACzB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,SAAS,IAAI,KAAK,CAAA;SACxD;AACD,QAAA,IAAI,wBAAwB,GAAA;YAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,wBAAwB,IAAI,KAAK,CAAA;SAC/D;AACD,QAAA,IAAI,iBAAiB,GAAA;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,EAAE,iBAAiB,IAAI,EAAE,CAAA;SAChE;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,WAAW,IAAI,SAAS,CAAA;SACzD;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,IAAI,KAAK,CAAA;SAChD;AACD,QAAA,IAAI,WAAW,GAAA;AACb,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAA;SACxE;AACD,QAAA,IAAI,SAAS,GAAA;YACX,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,IAAI,KAAK,CAAA;SAClD;AACD,QAAA,IAAI,cAAc,GAAA;YAChB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,cAAc,IAAI,EAAE,CAAA;SAClD;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAA;SAC5D;AACD,QAAA,IAAI,gBAAgB,GAAA;AAClB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,IAAI,EAAE,CAAA;SAClF;AACD,QAAA,IAAI,oBAAoB,GAAA;YACtB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,EAAE,WAAW,IAAI,EAAE,CAAA;SACzD;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAA;SAC5D;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,CAAA;SAChD;AACD,QAAA,IAAI,WAAW,GAAA;AACb,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,IAAI,EAAE,CAAA;SACxE;AACD,QAAA,IAAI,OAAO,GAAA;YACT,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,IAAI,EAAE,CAAA;SAC3C;AACD,QAAA,IAAI,MAAM,GAAA;YACR,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAA;SACxC;AACD,QAAA,IAAI,eAAe,GAAA;AACjB,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,IAAI,EAAE,CAAA;SACvE;AACD,QAAA,IAAI,mBAAmB,GAAA;YACrB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,EAAE,mBAAmB,IAAI,EAAE,CAAA;SAC5D;AACD,QAAA,IAAI,eAAe,GAAA;YACjB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,EAAE,eAAe,IAAI,EAAE,CAAA;SAC5D;AACD,QAAA,IAAI,iBAAiB,GAAA;YACnB,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,iBAAiB,IAAI,IAAI,CAAA;SACvD;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,YAAY,IAAI,CAAC,CAAA;SAC/C;AACD,QAAA,IAAI,YAAY,GAAA;YACd,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,IAAI,EAAE,CAAA;SACxC;AACD,QAAA,IAAI,UAAU,GAAA;AACZ,YAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,CAAA;SAChD;KACF,CAAA;AACH,CAAC;AAgHD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-debounce.js","sources":["../../../src/composables/use-debounce.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"use-debounce.js","sources":["../../../src/composables/use-debounce.ts"],"sourcesContent":["import type { DebounceOptions } from '../utils/types'\nimport { onBeforeUnmount } from 'vue'\nimport { debounce } from '../utils/debounce'\n\n/**\n * Composable which wraps the function passed as parameter into a debounced function and returns it.\n * It also cancels the debounced function when component is unmounted.\n *\n * @param fn - Function to be debounced.\n * @param debounceTimeInMs - Time of debounce in ms.\n * @param debounceOptions - The options for the debounce strategy.\n * @returns Debounced function obtained from `fn` parameter.\n * @public\n */\nexport function useDebounce<Params extends any[]>(\n fn: (...args: Params) => void,\n debounceTimeInMs: number,\n debounceOptions: DebounceOptions = {},\n) {\n const debouncedFn = debounce(fn, debounceTimeInMs, debounceOptions)\n\n onBeforeUnmount(() => {\n debouncedFn.cancel()\n })\n\n return debouncedFn\n}\n"],"names":[],"mappings":";;;AAIA;;;;;;;;;AASG;AACG,SAAU,WAAW,CACzB,EAA6B,EAC7B,gBAAwB,EACxB,kBAAmC,EAAE,EAAA;IAErC,MAAM,WAAW,GAAG,QAAQ,CAAC,EAAE,EAAE,gBAAgB,EAAE,eAAe,CAAC,CAAA;IAEnE,eAAe,CAAC,MAAK;QACnB,WAAW,CAAC,MAAM,EAAE,CAAA;AACtB,KAAC,CAAC,CAAA;AAEF,IAAA,OAAO,WAAW,CAAA;AACpB;;;;"}
|
|
@@ -22,6 +22,7 @@ function useGetter(module, getters) {
|
|
|
22
22
|
const store = useStore();
|
|
23
23
|
return getters.reduce((getterDictionary, getterName) => {
|
|
24
24
|
const getterPath = getGetterPath(module, getterName);
|
|
25
|
+
// eslint-disable-next-line ts/no-unsafe-return,ts/no-unsafe-member-access
|
|
25
26
|
getterDictionary[getterName] = computed(() => store.getters[getterPath]);
|
|
26
27
|
return getterDictionary;
|
|
27
28
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-getter.js","sources":["../../../src/composables/use-getter.ts"],"sourcesContent":["import { Dictionary } from '@empathyco/x-utils'
|
|
1
|
+
{"version":3,"file":"use-getter.js","sources":["../../../src/composables/use-getter.ts"],"sourcesContent":["import type { Dictionary } from '@empathyco/x-utils'\nimport type { ComputedRef } from 'vue'\nimport type { ExtractGetters, XModuleName } from '../x-modules/x-modules.types'\nimport { computed } from 'vue'\nimport { getGetterPath } from '../plugins/index'\nimport { useStore } from './use-store'\n\n/**\n * Function which returns the requested getters as a dictionary of getters.\n *\n * @param module - The {@link XModuleName} of the getter.\n * @param getters - List of getters names.\n * @returns The requested getters from the module.\n * @public\n */\nexport function useGetter<\n Module extends XModuleName,\n GetterName extends keyof ExtractGetters<Module> & string,\n>(module: Module, getters: GetterName[]): Dictionary<ComputedRef> {\n const store = useStore()\n\n return getters.reduce<Dictionary<ComputedRef>>((getterDictionary, getterName) => {\n const getterPath = getGetterPath(module, getterName)\n // eslint-disable-next-line ts/no-unsafe-return,ts/no-unsafe-member-access\n getterDictionary[getterName] = computed(() => store.getters[getterPath])\n return getterDictionary\n }, {})\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA;;;;;;;AAOG;AACa,SAAA,SAAS,CAGvB,MAAc,EAAE,OAAqB,EAAA;AACrC,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,OAAO,OAAO,CAAC,MAAM,CAA0B,CAAC,gBAAgB,EAAE,UAAU,KAAI;QAC9E,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;;AAEpD,QAAA,gBAAgB,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAA;AACxE,QAAA,OAAO,gBAAgB,CAAA;KACxB,EAAE,EAAE,CAAC,CAAA;AACR;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { watch } from 'vue';
|
|
2
1
|
import { useElementVisibility } from '@vueuse/core';
|
|
2
|
+
import { watch } from 'vue';
|
|
3
3
|
import { useXBus } from './use-x-bus.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -9,12 +9,10 @@ import { useXBus } from './use-x-bus.js';
|
|
|
9
9
|
* @param options - The options to customize the behavior of the composable. The element that
|
|
10
10
|
* will be watched, the callback to trigger and if the callback should be triggered only once
|
|
11
11
|
* or every time the element appears in the viewport, true by default.
|
|
12
|
-
*
|
|
13
12
|
* @returns If the element is currently visible in the viewport or not and the watcher stop handle.
|
|
14
|
-
*
|
|
15
13
|
* @public
|
|
16
14
|
*/
|
|
17
|
-
function useOnDisplay({ element, callback, triggerOnce = true }) {
|
|
15
|
+
function useOnDisplay({ element, callback, triggerOnce = true, }) {
|
|
18
16
|
const isElementVisible = useElementVisibility(element);
|
|
19
17
|
const unwatchDisplay = watch(isElementVisible, newValue => {
|
|
20
18
|
if (newValue) {
|
|
@@ -26,7 +24,7 @@ function useOnDisplay({ element, callback, triggerOnce = true }) {
|
|
|
26
24
|
});
|
|
27
25
|
return {
|
|
28
26
|
isElementVisible,
|
|
29
|
-
unwatchDisplay
|
|
27
|
+
unwatchDisplay,
|
|
30
28
|
};
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
@@ -35,22 +33,20 @@ function useOnDisplay({ element, callback, triggerOnce = true }) {
|
|
|
35
33
|
*
|
|
36
34
|
* @param options - The options to customize the behavior of the composable. The element that
|
|
37
35
|
* will be watched and the tagging request to emit.
|
|
38
|
-
*
|
|
39
36
|
* @returns If the element is currently visible in the viewport or not and the watcher stop handle.
|
|
40
|
-
*
|
|
41
37
|
* @public
|
|
42
38
|
*/
|
|
43
|
-
function useEmitDisplayEvent({ element, taggingRequest, eventMetadata = {} }) {
|
|
39
|
+
function useEmitDisplayEvent({ element, taggingRequest, eventMetadata = {}, }) {
|
|
44
40
|
const bus = useXBus();
|
|
45
41
|
const { isElementVisible, unwatchDisplay } = useOnDisplay({
|
|
46
42
|
element,
|
|
47
43
|
callback: () => {
|
|
48
|
-
bus.emit('TrackableElementDisplayed', { tagging: { display: taggingRequest } }, eventMetadata);
|
|
49
|
-
}
|
|
44
|
+
void bus.emit('TrackableElementDisplayed', { tagging: { display: taggingRequest } }, eventMetadata);
|
|
45
|
+
},
|
|
50
46
|
});
|
|
51
47
|
return {
|
|
52
48
|
isElementVisible,
|
|
53
|
-
unwatchDisplay
|
|
49
|
+
unwatchDisplay,
|
|
54
50
|
};
|
|
55
51
|
}
|
|
56
52
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-on-display.js","sources":["../../../src/composables/use-on-display.ts"],"sourcesContent":["import { Ref,
|
|
1
|
+
{"version":3,"file":"use-on-display.js","sources":["../../../src/composables/use-on-display.ts"],"sourcesContent":["import type { TaggingRequest } from '@empathyco/x-types'\nimport type { Ref, WatchStopHandle } from 'vue'\nimport type { WireMetadata } from '../wiring'\nimport { useElementVisibility } from '@vueuse/core'\nimport { watch } from 'vue'\nimport { useXBus } from './use-x-bus'\n\n/**\n * Composable that triggers a callback whenever the provided element appears in the viewport.\n * It can trigger the first time only or every time the element appears in the viewport.\n *\n * @param options - The options to customize the behavior of the composable. The element that\n * will be watched, the callback to trigger and if the callback should be triggered only once\n * or every time the element appears in the viewport, true by default.\n * @returns If the element is currently visible in the viewport or not and the watcher stop handle.\n * @public\n */\nexport function useOnDisplay({\n element,\n callback,\n triggerOnce = true,\n}: UseOnDisplayOptions): UseOnDisplayReturn {\n const isElementVisible = useElementVisibility(element)\n\n const unwatchDisplay = watch(isElementVisible, newValue => {\n if (newValue) {\n callback()\n if (triggerOnce) {\n unwatchDisplay()\n }\n }\n })\n\n return {\n isElementVisible,\n unwatchDisplay,\n }\n}\n\n/**\n * Composable that emits a `TrackableElementDisplayed` event whenever the provided element\n * appears in the viewport for the first time.\n *\n * @param options - The options to customize the behavior of the composable. The element that\n * will be watched and the tagging request to emit.\n * @returns If the element is currently visible in the viewport or not and the watcher stop handle.\n * @public\n */\nexport function useEmitDisplayEvent({\n element,\n taggingRequest,\n eventMetadata = {},\n}: UseEmitDisplayEventOptions): UseOnDisplayReturn {\n const bus = useXBus()\n\n const { isElementVisible, unwatchDisplay } = useOnDisplay({\n element,\n callback: () => {\n void bus.emit(\n 'TrackableElementDisplayed',\n { tagging: { display: taggingRequest } },\n eventMetadata,\n )\n },\n })\n\n return {\n isElementVisible,\n unwatchDisplay,\n }\n}\n\n/**\n * Options for the {@link useOnDisplay} composable.\n */\ninterface UseOnDisplayOptions {\n element: HTMLElement | Ref<HTMLElement | null>\n callback: () => void\n triggerOnce?: boolean\n}\n\n/**\n * Return type of the {@link useOnDisplay} composable.\n */\ninterface UseOnDisplayReturn {\n isElementVisible: Ref<boolean>\n unwatchDisplay: WatchStopHandle\n}\n\n/**\n * Options for the {@link useEmitDisplayEvent} composable.\n */\ninterface UseEmitDisplayEventOptions {\n element: UseOnDisplayOptions['element']\n taggingRequest: TaggingRequest\n eventMetadata?: Omit<WireMetadata, 'moduleName' | 'origin' | 'location'>\n}\n"],"names":[],"mappings":";;;;AAOA;;;;;;;;;AASG;AACG,SAAU,YAAY,CAAC,EAC3B,OAAO,EACP,QAAQ,EACR,WAAW,GAAG,IAAI,GACE,EAAA;AACpB,IAAA,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;IAEtD,MAAM,cAAc,GAAG,KAAK,CAAC,gBAAgB,EAAE,QAAQ,IAAG;AACxD,QAAA,IAAI,QAAQ,EAAE;AACZ,YAAA,QAAQ,EAAE,CAAA;AACV,YAAA,IAAI,WAAW,EAAE;AACf,gBAAA,cAAc,EAAE,CAAA;AACjB,aAAA;AACF,SAAA;AACH,KAAC,CAAC,CAAA;IAEF,OAAO;QACL,gBAAgB;QAChB,cAAc;KACf,CAAA;AACH,CAAC;AAED;;;;;;;;AAQG;AACG,SAAU,mBAAmB,CAAC,EAClC,OAAO,EACP,cAAc,EACd,aAAa,GAAG,EAAE,GACS,EAAA;AAC3B,IAAA,MAAM,GAAG,GAAG,OAAO,EAAE,CAAA;AAErB,IAAA,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,GAAG,YAAY,CAAC;QACxD,OAAO;QACP,QAAQ,EAAE,MAAK;AACb,YAAA,KAAK,GAAG,CAAC,IAAI,CACX,2BAA2B,EAC3B,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EACxC,aAAa,CACd,CAAA;SACF;AACF,KAAA,CAAC,CAAA;IAEF,OAAO;QACL,gBAAgB;QAChB,cAAc;KACf,CAAA;AACH;;;;"}
|
|
@@ -13,6 +13,7 @@ import { useStore } from 'vuex';
|
|
|
13
13
|
function useState(module, paths) {
|
|
14
14
|
const store = useStore();
|
|
15
15
|
return paths.reduce((stateDictionary, path) => {
|
|
16
|
+
// eslint-disable-next-line ts/no-unsafe-return,ts/no-unsafe-member-access
|
|
16
17
|
stateDictionary[path] = computed(() => store?.state.x[module]?.[path]);
|
|
17
18
|
return stateDictionary;
|
|
18
19
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-state.js","sources":["../../../src/composables/use-state.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"use-state.js","sources":["../../../src/composables/use-state.ts"],"sourcesContent":["import type { Dictionary } from '@empathyco/x-utils'\nimport type { ComputedRef } from 'vue'\nimport type { ExtractState, XModuleName } from '../x-modules/x-modules.types'\nimport { computed } from 'vue'\nimport { useStore } from './use-store'\n\n/**\n * Function which returns the requested state's properties as a dictionary.\n *\n * @param module - The {@link XModuleName} of the getter.\n * @param paths - List of state paths.\n * @returns The requested state properties of the module.\n *\n * @public\n */\nexport function useState<\n Module extends XModuleName,\n Path extends keyof ExtractState<Module> & string,\n>(module: Module, paths: Path[]): Dictionary<ComputedRef> {\n const store = useStore()\n\n return paths.reduce<Dictionary<ComputedRef>>((stateDictionary, path) => {\n // eslint-disable-next-line ts/no-unsafe-return,ts/no-unsafe-member-access\n stateDictionary[path] = computed(() => store?.state.x[module]?.[path])\n return stateDictionary\n }, {})\n}\n"],"names":[],"mappings":";;;AAMA;;;;;;;;AAQG;AACa,SAAA,QAAQ,CAGtB,MAAc,EAAE,KAAa,EAAA;AAC7B,IAAA,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,OAAO,KAAK,CAAC,MAAM,CAA0B,CAAC,eAAe,EAAE,IAAI,KAAI;;QAErE,eAAe,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;AACtE,QAAA,OAAO,eAAe,CAAA;KACvB,EAAE,EAAE,CAAC,CAAA;AACR;;;;"}
|