@ozdao/prometheus-framework 0.1.72 → 0.1.74
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +44 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +2 -44
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +24 -27
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/backoffice.client.js +2 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +133 -177
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +30 -33
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/events.client.js +18 -21
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/gallery.client.js +4 -7
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/layouts/Empty.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/Title.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/globals.client.js +6 -9
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +46 -49
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCross.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/linkedin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/socials/vk.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +2 -5
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/legal.client.js +10 -14
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/middlewares.client.js +1 -8
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EmptyState.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +58 -61
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +6 -9
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +78 -2
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/reports/reports.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/reports.client.js +1 -7
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotSub.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/users.client.js +8 -11
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/auth/auth.client.js +1 -1
- package/src/modules/backoffice/backoffice.client.js +1 -1
- package/src/modules/backoffice/router/backoffice.js +130 -128
- package/src/modules/community/community.client.js +1 -1
- package/src/modules/events/events.client.js +1 -1
- package/src/modules/gallery/gallery.client.js +1 -1
- package/src/modules/globals/globals.client.js +1 -1
- package/src/modules/icons/icons.client.js +1 -1
- package/src/modules/landing/landing.client.js +1 -1
- package/src/modules/legal/legal.client.js +1 -1
- package/src/modules/middlewares/middlewares.client.js +1 -1
- package/src/modules/organizations/organizations.client.js +1 -1
- package/src/modules/organizations/router/organizations.js +6 -6
- package/src/modules/reports/reports.client.js +1 -1
- package/src/modules/users/users.client.js +1 -1
@@ -1,3 +1,3 @@
|
|
1
1
|
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");var y=Object.defineProperty,b=Object.defineProperties,v=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,f=(e,o,s)=>o in e?y(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,c=(e,o)=>{for(var s in o||(o={}))O.call(o,s)&&f(e,s,o[s]);if(u)for(var s of u(o))w.call(o,s)&&f(e,s,o[s]);return e},m=(e,o)=>b(e,v(o));const S={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var e;const o=((e=this.$refs.dropdownMenu)==null?void 0:e.children[this.typeAheadPointer])||!1;if(o){const s=this.getDropdownViewport(),{top:l,bottom:r,height:i}=o.getBoundingClientRect();if(l<s.top)return this.$refs.dropdownMenu.scrollTop=o.offsetTop;if(r>s.bottom)return this.$refs.dropdownMenu.scrollTop=o.offsetTop-(s.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},V={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open(e){e&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect(){const e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},_={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(e){this.mutableLoading=e}},methods:{toggleLoading(e=null){return e==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=e}}},h=(e,o)=>{const s=e.__vccOpts||e;for(const[l,r]of o)s[l]=r;return s},B={},k={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},P=t.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),$=[P];function C(e,o){return t.openBlock(),t.createElementBlock("svg",k,$)}const L=h(B,[["render",C]]),D={},E={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},A=t.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),x=[A];function T(e,o){return t.openBlock(),t.createElementBlock("svg",E,x)}const F=h(D,[["render",T]]),g={Deselect:L,OpenIndicator:F},M={mounted(e,{instance:o}){if(o.appendToBody){const{height:s,top:l,left:r,width:i}=o.$refs.toggle.getBoundingClientRect();let p=window.scrollX||window.pageXOffset,n=window.scrollY||window.pageYOffset;e.unbindPosition=o.calculatePosition(e,o,{width:i+"px",left:p+r+"px",top:n+l+s+"px"}),document.body.appendChild(e)}},unmounted(e,{instance:o}){o.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition=="function"&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function N(e){const o={};return Object.keys(e).sort().forEach(s=>{o[s]=e[s]}),JSON.stringify(o)}let z=0;function R(){return++z}const j={components:c({},g),directives:{appendToBody:M},mixins:[S,V,_],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e=="object"?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.
|
2
2
|
https://vue-select.org/api/props.html#getoptionlabel`):e}},getOptionKey:{type:Function,default(e){if(typeof e!="object")return e;try{return e.hasOwnProperty("id")?e.id:N(e)}catch(o){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
3
|
-
https://vue-select.org/api/props.html#getoptionkey`,e,o)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,o,s){return(o||"").toLocaleLowerCase().indexOf(s.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,o){return e.filter(s=>{let l=this.getOptionLabel(s);return typeof l=="number"&&(l=l.toString()),this.filterBy(s,l,o)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]=="object"?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>["function","boolean"].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:o}){return e&&!o}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(e,o)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,o,{width:s,top:l,left:r}){e.style.top=l,e.style.left=r,e.style.width=s}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:o,mutableLoading:s}){return e?!1:o&&!s}},uid:{type:[String,Number],default:()=>R()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==""?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:c({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:o=>this.search=o.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:m(c({},e),{deselect:this.deselect}),footer:m(c({},e),{deselect:this.deselect})}},childComponents(){return c(c({},g),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;const o=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){const s=this.createOption(this.search);this.optionExists(s)||o.unshift(s)}return o},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,o){const s=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(e,o,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&s()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(o=>this.findOptionFromReducedValue(o)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect(e){this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter(o=>!this.optionComparator(o,e))),this.$emit("option:deselected",e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(e){typeof this.modelValue>"u"&&(this.$data._value=e),e!==null&&(Array.isArray(e)?e=e.map(o=>this.reduce(o)):e=this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown(e){const o=e.target!==this.searchEl;o&&e.preventDefault();const s=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||s.filter(Boolean).some(l=>l.contains(e.target)||l===e.target)){e.preventDefault();return}this.open&&o?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(o=>this.optionComparator(o,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,o){return this.getOptionKey(e)===this.getOptionKey(o)},findOptionFromReducedValue(e){const o=l=>JSON.stringify(this.reduce(l))===JSON.stringify(e),s=[...this.options,...this.pushedTags].filter(o);return s.length===1?s[0]:s.find(l=>this.optionComparator(l,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(o=>this.optionComparator(o,e))},normalizeOptionForSlot(e){return typeof e=="object"?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:e,multiple:o}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:o})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){const o=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),s={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>s[r]=o);const l=this.mapKeydown(s,this);if(typeof l[e.keyCode]=="function")return l[e.keyCode](e)}}},I=["dir"],K=["id","aria-expanded","aria-owns"],q={ref:"selectedOptions",class:"vs__selected-options"},U=["disabled","title","aria-label","onClick"],J={ref:"actions",class:"vs__actions"},H=["disabled"],Q={class:"vs__spinner"},X=["id"],Y=["id","aria-selected","onMouseover","onClick"],G={key:0,class:"vs__no-options"},W=t.createTextVNode(" Sorry, no matching options. "),Z=["id"];function ee(e,o,s,l,r,i){const p=t.resolveDirective("append-to-body");return t.openBlock(),t.createElementBlock("div",{dir:s.dir,class:t.normalizeClass(["v-select",i.stateClasses])},[t.renderSlot(e.$slots,"header",t.normalizeProps(t.guardReactiveProps(i.scope.header))),t.createElementVNode("div",{id:`vs${s.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${s.uid}__listbox`,"aria-label":"Search for option",onMousedown:o[1]||(o[1]=n=>i.toggleDropdown(n))},[t.createElementVNode("div",q,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.selectedValue,(n,a)=>t.renderSlot(e.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(n),deselect:i.deselect,multiple:s.multiple,disabled:s.disabled},()=>[(t.openBlock(),t.createElementBlock("span",{key:s.getOptionKey(n),class:"vs__selected"},[t.renderSlot(e.$slots,"selected-option",t.normalizeProps(t.guardReactiveProps(i.normalizeOptionForSlot(n))),()=>[t.createTextVNode(t.toDisplayString(s.getOptionLabel(n)),1)]),s.multiple?(t.openBlock(),t.createElementBlock("button",{key:0,ref_for:!0,ref:d=>r.deselectButtons[a]=d,disabled:s.disabled,type:"button",class:"vs__deselect",title:`Deselect ${s.getOptionLabel(n)}`,"aria-label":`Deselect ${s.getOptionLabel(n)}`,onClick:d=>i.deselect(n)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.Deselect)))],8,U)):t.createCommentVNode("",!0)]))])),256)),t.renderSlot(e.$slots,"search",t.normalizeProps(t.guardReactiveProps(i.scope.search)),()=>[t.createElementVNode("input",t.mergeProps({class:"vs__search"},i.scope.search.attributes,t.toHandlers(i.scope.search.events)),null,16)])],512),t.createElementVNode("div",J,[t.withDirectives(t.createElementVNode("button",{ref:"clearButton",disabled:s.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=(...n)=>i.clearSelection&&i.clearSelection(...n))},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.Deselect)))],8,H),[[t.vShow,i.showClearButton]]),t.renderSlot(e.$slots,"open-indicator",t.normalizeProps(t.guardReactiveProps(i.scope.openIndicator)),()=>[s.noDrop?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.OpenIndicator),t.normalizeProps(t.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),t.renderSlot(e.$slots,"spinner",t.normalizeProps(t.guardReactiveProps(i.scope.spinner)),()=>[t.withDirectives(t.createElementVNode("div",Q,"Loading...",512),[[t.vShow,e.mutableLoading]])])],512)],40,K),t.createVNode(t.Transition,{name:s.transition},{default:t.withCtx(()=>[i.dropdownOpen?t.withDirectives((t.openBlock(),t.createElementBlock("ul",{id:`vs${s.uid}__listbox`,ref:"dropdownMenu",key:`vs${s.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=t.withModifiers((...n)=>i.onMousedown&&i.onMousedown(...n),["prevent"])),onMouseup:o[3]||(o[3]=(...n)=>i.onMouseUp&&i.onMouseUp(...n))},[t.renderSlot(e.$slots,"list-header",t.normalizeProps(t.guardReactiveProps(i.scope.listHeader))),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.filteredOptions,(n,a)=>(t.openBlock(),t.createElementBlock("li",{id:`vs${s.uid}__option-${a}`,key:s.getOptionKey(n),role:"option",class:t.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(n)&&a===e.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(n),"vs__dropdown-option--highlight":a===e.typeAheadPointer,"vs__dropdown-option--disabled":!s.selectable(n)}]),"aria-selected":a===e.typeAheadPointer?!0:null,onMouseover:d=>s.selectable(n)?e.typeAheadPointer=a:null,onClick:t.withModifiers(d=>s.selectable(n)?i.select(n):null,["prevent","stop"])},[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps(i.normalizeOptionForSlot(n))),()=>[t.createTextVNode(t.toDisplayString(s.getOptionLabel(n)),1)])],42,Y))),128)),i.filteredOptions.length===0?(t.openBlock(),t.createElementBlock("li",G,[t.renderSlot(e.$slots,"no-options",t.normalizeProps(t.guardReactiveProps(i.scope.noOptions)),()=>[W])])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list-footer",t.normalizeProps(t.guardReactiveProps(i.scope.listFooter)))],40,X)),[[p]]):(t.openBlock(),t.createElementBlock("ul",{key:1,id:`vs${s.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Z))]),_:3},8,["name"]),t.renderSlot(e.$slots,"footer",t.normalizeProps(t.guardReactiveProps(i.scope.footer)))],10,I)}const te=h(j,[["render",ee]]);exports.default=te;
|
3
|
+
https://vue-select.org/api/props.html#getoptionkey`,e,o)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,o,s){return(o||"").toLocaleLowerCase().indexOf(s.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,o){return e.filter(s=>{let l=this.getOptionLabel(s);return typeof l=="number"&&(l=l.toString()),this.filterBy(s,l,o)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]=="object"?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>["function","boolean"].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:o}){return e&&!o}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(e,o)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,o,{width:s,top:l,left:r}){e.style.top=l,e.style.left=r,e.style.width=s}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:o,mutableLoading:s}){return e?!1:o&&!s}},uid:{type:[String,Number],default:()=>R()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==""?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:c({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:o=>this.search=o.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:m(c({},e),{deselect:this.deselect}),footer:m(c({},e),{deselect:this.deselect})}},childComponents(){return c(c({},g),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;const o=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){const s=this.createOption(this.search);this.optionExists(s)||o.unshift(s)}return o},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,o){const s=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(e,o,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&s()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(o=>this.findOptionFromReducedValue(o)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect(e){this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter(o=>!this.optionComparator(o,e))),this.$emit("option:deselected",e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(e){typeof this.modelValue>"u"&&(this.$data._value=e),e!==null&&(Array.isArray(e)?e=e.map(o=>this.reduce(o)):e=this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown(e){const o=e.target!==this.searchEl;o&&e.preventDefault();const s=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||s.filter(Boolean).some(l=>l.contains(e.target)||l===e.target)){e.preventDefault();return}this.open&&o?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(o=>this.optionComparator(o,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,o){return this.getOptionKey(e)===this.getOptionKey(o)},findOptionFromReducedValue(e){const o=l=>JSON.stringify(this.reduce(l))===JSON.stringify(e),s=[...this.options,...this.pushedTags].filter(o);return s.length===1?s[0]:s.find(l=>this.optionComparator(l,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(o=>this.optionComparator(o,e))},normalizeOptionForSlot(e){return typeof e=="object"?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:e,multiple:o}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:o})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){const o=r=>(r.preventDefault(),!this.isComposing&&this.typeAheadSelect()),s={8:r=>this.maybeDeleteValue(),9:r=>this.onTab(),27:r=>this.onEscape(),38:r=>(r.preventDefault(),this.typeAheadUp()),40:r=>(r.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(r=>s[r]=o);const l=this.mapKeydown(s,this);if(typeof l[e.keyCode]=="function")return l[e.keyCode](e)}}},I=["dir"],K=["id","aria-expanded","aria-owns"],U={ref:"selectedOptions",class:"vs__selected-options"},q=["disabled","title","aria-label","onClick"],J={ref:"actions",class:"vs__actions"},H=["disabled"],Q={class:"vs__spinner"},X=["id"],Y=["id","aria-selected","onMouseover","onClick"],G={key:0,class:"vs__no-options"},W=t.createTextVNode(" Sorry, no matching options. "),Z=["id"];function ee(e,o,s,l,r,i){const p=t.resolveDirective("append-to-body");return t.openBlock(),t.createElementBlock("div",{dir:s.dir,class:t.normalizeClass(["v-select",i.stateClasses])},[t.renderSlot(e.$slots,"header",t.normalizeProps(t.guardReactiveProps(i.scope.header))),t.createElementVNode("div",{id:`vs${s.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${s.uid}__listbox`,"aria-label":"Search for option",onMousedown:o[1]||(o[1]=n=>i.toggleDropdown(n))},[t.createElementVNode("div",U,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.selectedValue,(n,a)=>t.renderSlot(e.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(n),deselect:i.deselect,multiple:s.multiple,disabled:s.disabled},()=>[(t.openBlock(),t.createElementBlock("span",{key:s.getOptionKey(n),class:"vs__selected"},[t.renderSlot(e.$slots,"selected-option",t.normalizeProps(t.guardReactiveProps(i.normalizeOptionForSlot(n))),()=>[t.createTextVNode(t.toDisplayString(s.getOptionLabel(n)),1)]),s.multiple?(t.openBlock(),t.createElementBlock("button",{key:0,ref_for:!0,ref:d=>r.deselectButtons[a]=d,disabled:s.disabled,type:"button",class:"vs__deselect",title:`Deselect ${s.getOptionLabel(n)}`,"aria-label":`Deselect ${s.getOptionLabel(n)}`,onClick:d=>i.deselect(n)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.Deselect)))],8,q)):t.createCommentVNode("",!0)]))])),256)),t.renderSlot(e.$slots,"search",t.normalizeProps(t.guardReactiveProps(i.scope.search)),()=>[t.createElementVNode("input",t.mergeProps({class:"vs__search"},i.scope.search.attributes,t.toHandlers(i.scope.search.events)),null,16)])],512),t.createElementVNode("div",J,[t.withDirectives(t.createElementVNode("button",{ref:"clearButton",disabled:s.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=(...n)=>i.clearSelection&&i.clearSelection(...n))},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.Deselect)))],8,H),[[t.vShow,i.showClearButton]]),t.renderSlot(e.$slots,"open-indicator",t.normalizeProps(t.guardReactiveProps(i.scope.openIndicator)),()=>[s.noDrop?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.childComponents.OpenIndicator),t.normalizeProps(t.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),t.renderSlot(e.$slots,"spinner",t.normalizeProps(t.guardReactiveProps(i.scope.spinner)),()=>[t.withDirectives(t.createElementVNode("div",Q,"Loading...",512),[[t.vShow,e.mutableLoading]])])],512)],40,K),t.createVNode(t.Transition,{name:s.transition},{default:t.withCtx(()=>[i.dropdownOpen?t.withDirectives((t.openBlock(),t.createElementBlock("ul",{id:`vs${s.uid}__listbox`,ref:"dropdownMenu",key:`vs${s.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=t.withModifiers((...n)=>i.onMousedown&&i.onMousedown(...n),["prevent"])),onMouseup:o[3]||(o[3]=(...n)=>i.onMouseUp&&i.onMouseUp(...n))},[t.renderSlot(e.$slots,"list-header",t.normalizeProps(t.guardReactiveProps(i.scope.listHeader))),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.filteredOptions,(n,a)=>(t.openBlock(),t.createElementBlock("li",{id:`vs${s.uid}__option-${a}`,key:s.getOptionKey(n),role:"option",class:t.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(n)&&a===e.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(n),"vs__dropdown-option--highlight":a===e.typeAheadPointer,"vs__dropdown-option--disabled":!s.selectable(n)}]),"aria-selected":a===e.typeAheadPointer?!0:null,onMouseover:d=>s.selectable(n)?e.typeAheadPointer=a:null,onClick:t.withModifiers(d=>s.selectable(n)?i.select(n):null,["prevent","stop"])},[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps(i.normalizeOptionForSlot(n))),()=>[t.createTextVNode(t.toDisplayString(s.getOptionLabel(n)),1)])],42,Y))),128)),i.filteredOptions.length===0?(t.openBlock(),t.createElementBlock("li",G,[t.renderSlot(e.$slots,"no-options",t.normalizeProps(t.guardReactiveProps(i.scope.noOptions)),()=>[W])])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list-footer",t.normalizeProps(t.guardReactiveProps(i.scope.listFooter)))],40,X)),[[p]]):(t.openBlock(),t.createElementBlock("ul",{key:1,id:`vs${s.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Z))]),_:3},8,["name"]),t.renderSlot(e.$slots,"footer",t.normalizeProps(t.guardReactiveProps(i.scope.footer)))],10,I)}const te=h(j,[["render",ee]]);exports.default=te;
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* Vue 3 Carousel 0.1.48
|
3
3
|
* (c) 2022
|
4
4
|
* @license MIT
|
5
|
-
*/const f={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},ne={itemsToShow:{default:f.itemsToShow,type:Number},itemsToScroll:{default:f.itemsToScroll,type:Number},wrapAround:{default:f.wrapAround,type:Boolean},snapAlign:{default:f.snapAlign,validator(n){return["start","end","center","center-even","center-odd"].includes(n)}},transition:{default:f.transition,type:Number},breakpoints:{default:f.breakpoints,type:Object},autoplay:{default:f.autoplay,type:Number},pauseAutoplayOnHover:{default:f.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:f.mouseDrag,type:Boolean},touchDrag:{default:f.touchDrag,type:Boolean},dir:{default:f.dir,validator(n){return["rtl","ltr"].includes(n)}},settings:{default(){return{}},type:Object}};function se(n,o){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{n(...l),i=null},o)}}function de(n,o){let i;return function(...l){const g=this;i||(n.apply(g,l),i=!0,setTimeout(()=>i=!1,o))}}function ce(n){var o,i,l;return n?((i=(o=n[0])===null||o===void 0?void 0:o.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?n:((l=n[0])===null||l===void 0?void 0:l.children)||[]:[]}function fe(n,o){if(n.wrapAround)return o-1;switch(n.snapAlign){case"start":return o-n.itemsToShow;case"end":return o-1;case"center":case"center-odd":return o-Math.ceil(n.itemsToShow/2);case"center-even":return o-Math.ceil(n.itemsToShow/2);default:return 0}}function ve(n){if(n.wrapAround)return 0;switch(n.snapAlign){case"start":return 0;case"end":return n.itemsToShow-1;case"center":case"center-odd":return Math.floor((n.itemsToShow-1)/2);case"center-even":return Math.floor((n.itemsToShow-2)/2);default:return 0}}function re(n,o,i,l){return n.wrapAround?o:Math.min(Math.max(o,l),i)}function me({slidesBuffer:n,currentSlide:o,snapAlign:i,itemsToShow:l,wrapAround:g,slidesCount:p}){let d=n.indexOf(o);if(d===-1&&(d=n.indexOf(Math.ceil(o))),i==="center"||i==="center-odd"?d-=(l-1)/2:i==="center-even"?d-=(l-2)/2:i==="end"&&(d-=l-1),!g){const w=p-l,y=0;d=Math.max(Math.min(d,w),y)}return d}var he=t.defineComponent({name:"Carousel",props:ne,setup(n,{slots:o,emit:i,expose:l}){var g;const p=t.ref(null),d=t.ref([]),w=t.ref([]),y=t.ref(0),u=t.ref(1);let x,_,T=t.ref({}),h=Object.assign({},f);const r=t.reactive(Object.assign({},h)),c=t.ref((g=r.modelValue)!==null&&g!==void 0?g:0),oe=t.ref(0)
|
5
|
+
*/const f={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0},ne={itemsToShow:{default:f.itemsToShow,type:Number},itemsToScroll:{default:f.itemsToScroll,type:Number},wrapAround:{default:f.wrapAround,type:Boolean},snapAlign:{default:f.snapAlign,validator(n){return["start","end","center","center-even","center-odd"].includes(n)}},transition:{default:f.transition,type:Number},breakpoints:{default:f.breakpoints,type:Object},autoplay:{default:f.autoplay,type:Number},pauseAutoplayOnHover:{default:f.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:f.mouseDrag,type:Boolean},touchDrag:{default:f.touchDrag,type:Boolean},dir:{default:f.dir,validator(n){return["rtl","ltr"].includes(n)}},settings:{default(){return{}},type:Object}};function se(n,o){let i;return function(...l){i&&clearTimeout(i),i=setTimeout(()=>{n(...l),i=null},o)}}function de(n,o){let i;return function(...l){const g=this;i||(n.apply(g,l),i=!0,setTimeout(()=>i=!1,o))}}function ce(n){var o,i,l;return n?((i=(o=n[0])===null||o===void 0?void 0:o.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?n:((l=n[0])===null||l===void 0?void 0:l.children)||[]:[]}function fe(n,o){if(n.wrapAround)return o-1;switch(n.snapAlign){case"start":return o-n.itemsToShow;case"end":return o-1;case"center":case"center-odd":return o-Math.ceil(n.itemsToShow/2);case"center-even":return o-Math.ceil(n.itemsToShow/2);default:return 0}}function ve(n){if(n.wrapAround)return 0;switch(n.snapAlign){case"start":return 0;case"end":return n.itemsToShow-1;case"center":case"center-odd":return Math.floor((n.itemsToShow-1)/2);case"center-even":return Math.floor((n.itemsToShow-2)/2);default:return 0}}function re(n,o,i,l){return n.wrapAround?o:Math.min(Math.max(o,l),i)}function me({slidesBuffer:n,currentSlide:o,snapAlign:i,itemsToShow:l,wrapAround:g,slidesCount:p}){let d=n.indexOf(o);if(d===-1&&(d=n.indexOf(Math.ceil(o))),i==="center"||i==="center-odd"?d-=(l-1)/2:i==="center-even"?d-=(l-2)/2:i==="end"&&(d-=l-1),!g){const w=p-l,y=0;d=Math.max(Math.min(d,w),y)}return d}var he=t.defineComponent({name:"Carousel",props:ne,setup(n,{slots:o,emit:i,expose:l}){var g;const p=t.ref(null),d=t.ref([]),w=t.ref([]),y=t.ref(0),u=t.ref(1);let x,_,T=t.ref({}),h=Object.assign({},f);const r=t.reactive(Object.assign({},h)),c=t.ref((g=r.modelValue)!==null&&g!==void 0?g:0),oe=t.ref(0),H=t.ref(0),A=t.ref(0),O=t.ref(0);t.provide("config",r),t.provide("slidesBuffer",w),t.provide("slidesCount",u),t.provide("currentSlide",c),t.provide("maxSlide",A),t.provide("minSlide",O);function Y(){const e=Object.assign(Object.assign({},n),n.settings);T=t.ref(Object.assign({},e.breakpoints)),h=Object.assign(Object.assign({},e),{settings:void 0,breakpoints:void 0}),U(h)}function C(){const e=Object.keys(T.value).map(s=>Number(s)).sort((s,m)=>+m-+s);let a=Object.assign({},h);e.some(s=>window.matchMedia(`(min-width: ${s}px)`).matches?(a=Object.assign(Object.assign({},a),T.value[s]),!0):!1),U(a)}function U(e){for(let a in e)r[a]=e[a]}const ie=se(()=>{T.value&&(C(),j()),E()},16);function E(){if(!p.value)return;const e=p.value.getBoundingClientRect();y.value=e.width/r.itemsToShow}function j(){u.value=Math.max(d.value.length,1),!(u.value<=0)&&(H.value=Math.ceil((u.value-1)/2),A.value=fe(r,u.value),O.value=ve(r),c.value=re(r,c.value,A.value,O.value))}function D(){const e=[...Array(u.value).keys()];if(r.wrapAround&&r.itemsToShow+1<=u.value){let m=(r.itemsToShow!==1?Math.round((u.value-r.itemsToShow)/2):0)-c.value;if(r.snapAlign==="end"?m+=Math.floor(r.itemsToShow-1):(r.snapAlign==="center"||r.snapAlign==="center-odd")&&m++,m<0)for(let S=m;S<0;S++)e.push(Number(e.shift()));else for(let S=0;S<m;S++)e.unshift(Number(e.pop()))}w.value=e}t.onMounted(()=>{T.value&&(C(),j()),t.nextTick(()=>setTimeout(E,16)),R(),window.addEventListener("resize",ie,{passive:!0})}),t.onUnmounted(()=>{_&&clearTimeout(_),x&&clearInterval(x)});let v=!1;const B={x:0,y:0},V={x:0,y:0},M=t.reactive({x:0,y:0}),N=t.ref(!1),le=()=>{N.value=!0},ae=()=>{N.value=!1};function $(e){v=e.type==="touchstart",!(!v&&e.button!==0||k.value)&&(v||e.preventDefault(),B.x=v?e.touches[0].clientX:e.clientX,B.y=v?e.touches[0].clientY:e.clientY,document.addEventListener(v?"touchmove":"mousemove",W,!0),document.addEventListener(v?"touchend":"mouseup",z,!0))}const W=de(e=>{V.x=v?e.touches[0].clientX:e.clientX,V.y=v?e.touches[0].clientY:e.clientY;const a=V.x-B.x,s=V.y-B.y;M.y=s,M.x=a},16);function z(){const e=r.dir==="rtl"?-1:1,a=Math.sign(M.x)*.4,s=Math.round(M.x/y.value+a)*e;let m=re(r,c.value-s,A.value,O.value);if(s&&!v){const S=X=>{X.stopPropagation(),window.removeEventListener("click",S,!0)};window.addEventListener("click",S,!0)}b(m),M.x=0,M.y=0,document.removeEventListener(v?"touchmove":"mousemove",W,!0),document.removeEventListener(v?"touchend":"mouseup",z,!0)}function R(){!r.autoplay||r.autoplay<=0||(x=setInterval(()=>{r.pauseAutoplayOnHover&&N.value||I()},r.autoplay))}function q(){x&&(clearInterval(x),x=null),R()}const k=t.ref(!1);function b(e,a=!1){if(c.value===e||k.value)return;q();const s=u.value-1;if(e>s)return b(e-u.value);if(e<0)return b(e+u.value);k.value=!0,oe.value=c.value,c.value=e,a||i("update:modelValue",c.value),_=setTimeout(()=>{r.wrapAround&&D(),k.value=!1},r.transition)}function I(){let e=c.value+r.itemsToScroll;r.wrapAround||(e=Math.min(e,A.value)),b(e)}function G(){let e=c.value-r.itemsToScroll;r.wrapAround||(e=Math.max(e,O.value)),b(e)}const F={slideTo:b,next:I,prev:G};t.provide("nav",F);const J=t.computed(()=>me({slidesBuffer:w.value,itemsToShow:r.itemsToShow,snapAlign:r.snapAlign,wrapAround:!!r.wrapAround,currentSlide:c.value,slidesCount:u.value}));t.provide("slidesToScroll",J);const ue=t.computed(()=>{const e=r.dir==="rtl"?-1:1,a=J.value*y.value*e;return{transform:`translateX(${M.x-a}px)`,transition:`${k.value?r.transition:0}ms`}});function K(){Y()}function Q(){Y(),C(),j(),D(),E(),q()}function Z(){j(),D()}Object.keys(ne).forEach(e=>{["modelValue"].includes(e)||t.watch(()=>n[e],Q)}),K(),t.watchEffect(()=>{const e=u.value!==d.value.length;n.modelValue!==void 0&&c.value!==n.modelValue&&b(Number(n.modelValue),!0),e&&Z()});const ee={config:r,slidesBuffer:w,slidesCount:u,slideWidth:y,currentSlide:c,maxSlide:A,minSlide:O,middleSlide:H};l({updateBreakpointsConfigs:C,updateSlidesData:j,updateSlideWidth:E,updateSlidesBuffer:D,initCarousel:K,restartCarousel:Q,updateCarousel:Z,slideTo:b,next:I,prev:G,nav:F,data:ee});const L=o.default||o.slides,P=o.addons,te=t.reactive(ee);return()=>{const e=ce(L==null?void 0:L(te)),a=(P==null?void 0:P(te))||[];d.value=e,e.forEach((S,X)=>S.props.index=X);const s=t.h("ol",{class:"carousel__track",style:ue.value,onMousedown:r.mouseDrag?t.withModifiers($,["capture"]):null,onTouchstart:r.touchDrag?t.withModifiers($,["capture"]):null},e),m=t.h("div",{class:"carousel__viewport"},s);return t.h("section",{ref:p,class:{carousel:!0,"carousel--rtl":r.dir==="rtl"},dir:r.dir,"aria-label":"Gallery",onMouseenter:le,onMouseleave:ae},[m,a])}}}),pe=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1}},setup(n,{slots:o}){const i=t.inject("config",t.reactive(Object.assign({},f))),l=t.inject("slidesBuffer",t.ref([])),g=t.inject("currentSlide",t.ref(0)),p=t.inject("slidesToScroll",t.ref(0)),d=t.ref(n.index);i.wrapAround&&(w(),t.watch(l,w));function w(){d.value=l.value.indexOf(n.index)}const y=t.computed(()=>({width:`${1/i.itemsToShow*100}%`,order:d.value.toString()})),u=()=>n.index===g.value,x=()=>{const h=Math.ceil(p.value),r=Math.floor(p.value+i.itemsToShow);return l.value.slice(h,r).includes(n.index)},_=()=>n.index===l.value[Math.ceil(p.value)-1],T=()=>n.index===l.value[Math.floor(p.value+i.itemsToShow)];return()=>{var h;return t.h("li",{style:y.value,class:{carousel__slide:!0,"carousel__slide--active":u(),"carousel__slide--visible":x(),"carousel__slide--prev":_(),"carousel__slide--next":T()}},(h=o.default)===null||h===void 0?void 0:h.call(o))}}});exports.Carousel=he;exports.Slide=pe;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Address.vue2.cjs");const _=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Address.vue2.cjs");const _=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),v={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(n,{emit:l}){const r=n,o=e.ref(null);let s;const u=()=>{s=new google.maps.places.Autocomplete(o.value),s.addListener("place_changed",f)},m=()=>{s||u()},f=()=>{const t=s.getPlace();if(!t.geometry||!t.address_components)return;let d="",i="",p="";for(let c=0;c<t.address_components.length;c++){console.log(t.address_components);let a=t.address_components[c];a.types.includes("country")&&(d=a.long_name),a.types.includes("administrative_area_level_1")&&(i=a.long_name),a.types.includes("locality")&&(p=a.long_name)}const g=t.formatted_address,y={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};l("update:address",g),l("update:location",y),l("update:country",d),l("update:state",i),l("update:city",p)};return e.watchEffect(()=>{r.address!==o.value&&(o.value=r.address)}),e.onMounted(()=>{u()}),(t,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[n.label?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:o,class:"w-100",placeholder:n.placeholder,value:n.address,onInput:m},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=_.default(b,[["__scopeId","data-v-faece1a6"]]);exports.default=w;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue2.cjs");const u=["onClick","disabled"],d={key:0},m={key:0,class:"loading"},h=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[h],f={key:0,class:"loading t-white"},g={key:0,class:"error"},v={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(r){const n=r,t=e.ref(null),a=e.ref(null),l=e.ref(!1),o=e.ref(!1);async function s(){t.value.style["pointer-events"]="none",a.value=null,l.value=!0;const i=()=>{t.value&&(t.value.classList.replace("bg-light-main","bg-main"),t.value.style.pointerEvents="auto",l.value=!1,o.value=!1,a.value=null)};try{await n.submit(),t.value.classList.replace("bg-main","bg-light-main"),l.value=!1,n.showSucces?(o.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{t.value.classList.replace("bg-main","bg-fourth-nano"),a.value="❌",setTimeout(()=>{i(),t.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(s,["stop"]),disabled:r.validation,ref_key:"button",ref:t,class:"w-100 bg-main button"},[e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[!l.value&&!a.value&&!o.value?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(i.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[l.value&&!a.value?(e.openBlock(),e.createElementBlock("span",m,b)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[o.value&&r.showSucces?(e.openBlock(),e.createElementBlock("span",f,"✔")):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:1})],8,u))}};exports.default=v;
|
@@ -1,4 +1,226 @@
|
|
1
|
-
|
1
|
+
import { ref as c, openBlock as s, createElementBlock as u, withModifiers as p, createVNode as d, Transition as m, withCtx as h, renderSlot as y, createCommentVNode as b, toDisplayString as _, createElementVNode as e, createTextVNode as o } from "vue";
|
2
|
+
import "./Button.vue2.js";
|
3
|
+
const w = ["onClick", "disabled"], k = { key: 0 }, N = {
|
4
|
+
key: 0,
|
5
|
+
class: "loading"
|
6
|
+
}, x = /* @__PURE__ */ e("svg", {
|
7
|
+
class: "i-regular",
|
8
|
+
width: "135",
|
9
|
+
height: "140",
|
10
|
+
viewBox: "0 0 135 140",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12
|
+
fill: "#fff"
|
13
|
+
}, [
|
14
|
+
/* @__PURE__ */ e("rect", {
|
15
|
+
y: "10",
|
16
|
+
width: "15",
|
17
|
+
height: "120",
|
18
|
+
rx: "6"
|
19
|
+
}, [
|
20
|
+
/* @__PURE__ */ e("animate", {
|
21
|
+
attributeName: "height",
|
22
|
+
begin: "0.5s",
|
23
|
+
dur: "1s",
|
24
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
+
calcMode: "linear",
|
26
|
+
repeatCount: "indefinite"
|
27
|
+
}),
|
28
|
+
/* @__PURE__ */ o(),
|
29
|
+
/* @__PURE__ */ e("animate", {
|
30
|
+
attributeName: "y",
|
31
|
+
begin: "0.5s",
|
32
|
+
dur: "1s",
|
33
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
+
calcMode: "linear",
|
35
|
+
repeatCount: "indefinite"
|
36
|
+
})
|
37
|
+
]),
|
38
|
+
/* @__PURE__ */ e("rect", {
|
39
|
+
x: "30",
|
40
|
+
y: "10",
|
41
|
+
width: "15",
|
42
|
+
height: "120",
|
43
|
+
rx: "6"
|
44
|
+
}, [
|
45
|
+
/* @__PURE__ */ e("animate", {
|
46
|
+
attributeName: "height",
|
47
|
+
begin: "0.25s",
|
48
|
+
dur: "1s",
|
49
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
+
calcMode: "linear",
|
51
|
+
repeatCount: "indefinite"
|
52
|
+
}),
|
53
|
+
/* @__PURE__ */ o(),
|
54
|
+
/* @__PURE__ */ e("animate", {
|
55
|
+
attributeName: "y",
|
56
|
+
begin: "0.25s",
|
57
|
+
dur: "1s",
|
58
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
+
calcMode: "linear",
|
60
|
+
repeatCount: "indefinite"
|
61
|
+
})
|
62
|
+
]),
|
63
|
+
/* @__PURE__ */ e("rect", {
|
64
|
+
x: "60",
|
65
|
+
width: "15",
|
66
|
+
height: "140",
|
67
|
+
rx: "6"
|
68
|
+
}, [
|
69
|
+
/* @__PURE__ */ e("animate", {
|
70
|
+
attributeName: "height",
|
71
|
+
begin: "0s",
|
72
|
+
dur: "1s",
|
73
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
+
calcMode: "linear",
|
75
|
+
repeatCount: "indefinite"
|
76
|
+
}),
|
77
|
+
/* @__PURE__ */ o(),
|
78
|
+
/* @__PURE__ */ e("animate", {
|
79
|
+
attributeName: "y",
|
80
|
+
begin: "0s",
|
81
|
+
dur: "1s",
|
82
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
+
calcMode: "linear",
|
84
|
+
repeatCount: "indefinite"
|
85
|
+
})
|
86
|
+
]),
|
87
|
+
/* @__PURE__ */ e("rect", {
|
88
|
+
x: "90",
|
89
|
+
y: "10",
|
90
|
+
width: "15",
|
91
|
+
height: "120",
|
92
|
+
rx: "6"
|
93
|
+
}, [
|
94
|
+
/* @__PURE__ */ e("animate", {
|
95
|
+
attributeName: "height",
|
96
|
+
begin: "0.25s",
|
97
|
+
dur: "1s",
|
98
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
+
calcMode: "linear",
|
100
|
+
repeatCount: "indefinite"
|
101
|
+
}),
|
102
|
+
/* @__PURE__ */ o(),
|
103
|
+
/* @__PURE__ */ e("animate", {
|
104
|
+
attributeName: "y",
|
105
|
+
begin: "0.25s",
|
106
|
+
dur: "1s",
|
107
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
+
calcMode: "linear",
|
109
|
+
repeatCount: "indefinite"
|
110
|
+
})
|
111
|
+
]),
|
112
|
+
/* @__PURE__ */ e("rect", {
|
113
|
+
x: "120",
|
114
|
+
y: "10",
|
115
|
+
width: "15",
|
116
|
+
height: "120",
|
117
|
+
rx: "6"
|
118
|
+
}, [
|
119
|
+
/* @__PURE__ */ e("animate", {
|
120
|
+
attributeName: "height",
|
121
|
+
begin: "0.5s",
|
122
|
+
dur: "1s",
|
123
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
+
calcMode: "linear",
|
125
|
+
repeatCount: "indefinite"
|
126
|
+
}),
|
127
|
+
/* @__PURE__ */ o(),
|
128
|
+
/* @__PURE__ */ e("animate", {
|
129
|
+
attributeName: "y",
|
130
|
+
begin: "0.5s",
|
131
|
+
dur: "1s",
|
132
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
+
calcMode: "linear",
|
134
|
+
repeatCount: "indefinite"
|
135
|
+
})
|
136
|
+
])
|
137
|
+
], -1), C = [
|
138
|
+
x
|
139
|
+
], T = {
|
140
|
+
key: 0,
|
141
|
+
class: "loading t-white"
|
142
|
+
}, M = {
|
143
|
+
key: 0,
|
144
|
+
class: "error"
|
145
|
+
}, L = {
|
146
|
+
__name: "Button",
|
147
|
+
props: {
|
148
|
+
submit: {
|
149
|
+
type: Function,
|
150
|
+
default: async () => {
|
151
|
+
console.log("Button click.");
|
152
|
+
}
|
153
|
+
},
|
154
|
+
callback: {
|
155
|
+
type: Function,
|
156
|
+
default: async () => {
|
157
|
+
console.log("Button callback.");
|
158
|
+
}
|
159
|
+
},
|
160
|
+
callbackDelay: {
|
161
|
+
type: Number,
|
162
|
+
default: 750
|
163
|
+
},
|
164
|
+
showSucces: {
|
165
|
+
type: Boolean,
|
166
|
+
default: !0
|
167
|
+
},
|
168
|
+
validation: {
|
169
|
+
type: Boolean,
|
170
|
+
default: !1
|
171
|
+
}
|
172
|
+
},
|
173
|
+
setup(f) {
|
174
|
+
const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
|
175
|
+
async function g() {
|
176
|
+
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
177
|
+
const l = () => {
|
178
|
+
t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
|
179
|
+
};
|
180
|
+
try {
|
181
|
+
await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
|
182
|
+
} catch {
|
183
|
+
t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
|
184
|
+
l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
185
|
+
}, 1330);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
return (l, v) => (s(), u("button", {
|
189
|
+
onClick: p(g, ["stop"]),
|
190
|
+
disabled: f.validation,
|
191
|
+
ref_key: "button",
|
192
|
+
ref: t,
|
193
|
+
class: "w-100 bg-main button"
|
194
|
+
}, [
|
195
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
196
|
+
default: h(() => [
|
197
|
+
!n.value && !a.value && !r.value ? (s(), u("span", k, [
|
198
|
+
y(l.$slots, "default")
|
199
|
+
])) : b("", !0)
|
200
|
+
]),
|
201
|
+
_: 3
|
202
|
+
}),
|
203
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
204
|
+
default: h(() => [
|
205
|
+
n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
|
206
|
+
]),
|
207
|
+
_: 1
|
208
|
+
}),
|
209
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
210
|
+
default: h(() => [
|
211
|
+
r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
|
212
|
+
]),
|
213
|
+
_: 1
|
214
|
+
}),
|
215
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
216
|
+
default: h(() => [
|
217
|
+
a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
|
218
|
+
]),
|
219
|
+
_: 1
|
220
|
+
})
|
221
|
+
], 8, w));
|
222
|
+
}
|
223
|
+
};
|
2
224
|
export {
|
3
|
-
|
225
|
+
L as default
|
4
226
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,226 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Button.vue.js";
|
3
|
-
const w = ["onClick", "disabled"], k = { key: 0 }, N = {
|
4
|
-
key: 0,
|
5
|
-
class: "loading"
|
6
|
-
}, x = /* @__PURE__ */ e("svg", {
|
7
|
-
class: "i-regular",
|
8
|
-
width: "135",
|
9
|
-
height: "140",
|
10
|
-
viewBox: "0 0 135 140",
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12
|
-
fill: "#fff"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ e("rect", {
|
15
|
-
y: "10",
|
16
|
-
width: "15",
|
17
|
-
height: "120",
|
18
|
-
rx: "6"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ e("animate", {
|
21
|
-
attributeName: "height",
|
22
|
-
begin: "0.5s",
|
23
|
-
dur: "1s",
|
24
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
-
calcMode: "linear",
|
26
|
-
repeatCount: "indefinite"
|
27
|
-
}),
|
28
|
-
/* @__PURE__ */ o(),
|
29
|
-
/* @__PURE__ */ e("animate", {
|
30
|
-
attributeName: "y",
|
31
|
-
begin: "0.5s",
|
32
|
-
dur: "1s",
|
33
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
-
calcMode: "linear",
|
35
|
-
repeatCount: "indefinite"
|
36
|
-
})
|
37
|
-
]),
|
38
|
-
/* @__PURE__ */ e("rect", {
|
39
|
-
x: "30",
|
40
|
-
y: "10",
|
41
|
-
width: "15",
|
42
|
-
height: "120",
|
43
|
-
rx: "6"
|
44
|
-
}, [
|
45
|
-
/* @__PURE__ */ e("animate", {
|
46
|
-
attributeName: "height",
|
47
|
-
begin: "0.25s",
|
48
|
-
dur: "1s",
|
49
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
-
calcMode: "linear",
|
51
|
-
repeatCount: "indefinite"
|
52
|
-
}),
|
53
|
-
/* @__PURE__ */ o(),
|
54
|
-
/* @__PURE__ */ e("animate", {
|
55
|
-
attributeName: "y",
|
56
|
-
begin: "0.25s",
|
57
|
-
dur: "1s",
|
58
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
-
calcMode: "linear",
|
60
|
-
repeatCount: "indefinite"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
/* @__PURE__ */ e("rect", {
|
64
|
-
x: "60",
|
65
|
-
width: "15",
|
66
|
-
height: "140",
|
67
|
-
rx: "6"
|
68
|
-
}, [
|
69
|
-
/* @__PURE__ */ e("animate", {
|
70
|
-
attributeName: "height",
|
71
|
-
begin: "0s",
|
72
|
-
dur: "1s",
|
73
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
-
calcMode: "linear",
|
75
|
-
repeatCount: "indefinite"
|
76
|
-
}),
|
77
|
-
/* @__PURE__ */ o(),
|
78
|
-
/* @__PURE__ */ e("animate", {
|
79
|
-
attributeName: "y",
|
80
|
-
begin: "0s",
|
81
|
-
dur: "1s",
|
82
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
-
calcMode: "linear",
|
84
|
-
repeatCount: "indefinite"
|
85
|
-
})
|
86
|
-
]),
|
87
|
-
/* @__PURE__ */ e("rect", {
|
88
|
-
x: "90",
|
89
|
-
y: "10",
|
90
|
-
width: "15",
|
91
|
-
height: "120",
|
92
|
-
rx: "6"
|
93
|
-
}, [
|
94
|
-
/* @__PURE__ */ e("animate", {
|
95
|
-
attributeName: "height",
|
96
|
-
begin: "0.25s",
|
97
|
-
dur: "1s",
|
98
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
-
calcMode: "linear",
|
100
|
-
repeatCount: "indefinite"
|
101
|
-
}),
|
102
|
-
/* @__PURE__ */ o(),
|
103
|
-
/* @__PURE__ */ e("animate", {
|
104
|
-
attributeName: "y",
|
105
|
-
begin: "0.25s",
|
106
|
-
dur: "1s",
|
107
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
-
calcMode: "linear",
|
109
|
-
repeatCount: "indefinite"
|
110
|
-
})
|
111
|
-
]),
|
112
|
-
/* @__PURE__ */ e("rect", {
|
113
|
-
x: "120",
|
114
|
-
y: "10",
|
115
|
-
width: "15",
|
116
|
-
height: "120",
|
117
|
-
rx: "6"
|
118
|
-
}, [
|
119
|
-
/* @__PURE__ */ e("animate", {
|
120
|
-
attributeName: "height",
|
121
|
-
begin: "0.5s",
|
122
|
-
dur: "1s",
|
123
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
-
calcMode: "linear",
|
125
|
-
repeatCount: "indefinite"
|
126
|
-
}),
|
127
|
-
/* @__PURE__ */ o(),
|
128
|
-
/* @__PURE__ */ e("animate", {
|
129
|
-
attributeName: "y",
|
130
|
-
begin: "0.5s",
|
131
|
-
dur: "1s",
|
132
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
-
calcMode: "linear",
|
134
|
-
repeatCount: "indefinite"
|
135
|
-
})
|
136
|
-
])
|
137
|
-
], -1), C = [
|
138
|
-
x
|
139
|
-
], T = {
|
140
|
-
key: 0,
|
141
|
-
class: "loading t-white"
|
142
|
-
}, M = {
|
143
|
-
key: 0,
|
144
|
-
class: "error"
|
145
|
-
}, L = {
|
146
|
-
__name: "Button",
|
147
|
-
props: {
|
148
|
-
submit: {
|
149
|
-
type: Function,
|
150
|
-
default: async () => {
|
151
|
-
console.log("Button click.");
|
152
|
-
}
|
153
|
-
},
|
154
|
-
callback: {
|
155
|
-
type: Function,
|
156
|
-
default: async () => {
|
157
|
-
console.log("Button callback.");
|
158
|
-
}
|
159
|
-
},
|
160
|
-
callbackDelay: {
|
161
|
-
type: Number,
|
162
|
-
default: 750
|
163
|
-
},
|
164
|
-
showSucces: {
|
165
|
-
type: Boolean,
|
166
|
-
default: !0
|
167
|
-
},
|
168
|
-
validation: {
|
169
|
-
type: Boolean,
|
170
|
-
default: !1
|
171
|
-
}
|
172
|
-
},
|
173
|
-
setup(f) {
|
174
|
-
const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
|
175
|
-
async function g() {
|
176
|
-
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
177
|
-
const l = () => {
|
178
|
-
t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
|
179
|
-
};
|
180
|
-
try {
|
181
|
-
await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
|
182
|
-
} catch {
|
183
|
-
t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
|
184
|
-
l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
185
|
-
}, 1330);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
return (l, v) => (s(), u("button", {
|
189
|
-
onClick: p(g, ["stop"]),
|
190
|
-
disabled: f.validation,
|
191
|
-
ref_key: "button",
|
192
|
-
ref: t,
|
193
|
-
class: "w-100 bg-main button"
|
194
|
-
}, [
|
195
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
196
|
-
default: h(() => [
|
197
|
-
!n.value && !a.value && !r.value ? (s(), u("span", k, [
|
198
|
-
y(l.$slots, "default")
|
199
|
-
])) : b("", !0)
|
200
|
-
]),
|
201
|
-
_: 3
|
202
|
-
}),
|
203
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
204
|
-
default: h(() => [
|
205
|
-
n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
|
206
|
-
]),
|
207
|
-
_: 1
|
208
|
-
}),
|
209
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
210
|
-
default: h(() => [
|
211
|
-
r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
|
212
|
-
]),
|
213
|
-
_: 1
|
214
|
-
}),
|
215
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
216
|
-
default: h(() => [
|
217
|
-
a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
|
218
|
-
]),
|
219
|
-
_: 1
|
220
|
-
})
|
221
|
-
], 8, w));
|
222
|
-
}
|
223
|
-
};
|
1
|
+
const e = "";
|
224
2
|
export {
|
225
|
-
|
3
|
+
e as default
|
226
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("./Checkbox.vue2.cjs");const c=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),o={class:"flex-v-center flex-nowrap flex"},u={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:l}){const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("./Checkbox.vue2.cjs");const c=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),o={class:"flex-v-center flex-nowrap flex"},u={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:l}){const t=e,d=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const n=r.indexOf(t.value);n!==-1&&r.splice(n,1)}l("update:radio",r)}else typeof t.radio=="boolean"&&l("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",o,[e.label?(a.openBlock(),a.createElementBlock("div",u,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:d,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,s),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},y=c.default(m,[["__scopeId","data-v-f641f618"]]);exports.default=y;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n={class:"flex-v-center gap-thin flex"},i={class:"pd-thin radius-small t-semi bg-main"},l={key:1,class:"pd-thin radius-small t-semi bg-white"},c={__name:"Chips",props:["chips"],setup(t){return(o,r)=>(e.openBlock(),e.createElementBlock("div",n,[t.chips.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.chips,(s,a)=>(e.openBlock(),e.createElementBlock("div",i,e.toDisplayString(s.text?s.text:s),1))),256)):(e.openBlock(),e.createElementBlock("div",l,e.toDisplayString(t.chips),1))]))}};exports.default=c;
|