Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agnostic-vue

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agnostic-vue - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

dist/common.properties.min.css

2

dist/agnostic-vue.cjs.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var e=require("vue");const M="_alert_tv9xk_2";var D={"alert-base":"_alert-base_tv9xk_2",alert:M,"alert-end":"_alert-end_tv9xk_10","alert-skin":"_alert-skin_tv9xk_14","alert-icon":"_alert-icon_tv9xk_20","alert-border-top":"_alert-border-top_tv9xk_28","alert-border-left":"_alert-border-left_tv9xk_32","alert-border-bottom":"_alert-border-bottom_tv9xk_36","alert-border-right":"_alert-border-right_tv9xk_40","alert-border-all":"_alert-border-all_tv9xk_44","alert-rounded":"_alert-rounded_tv9xk_48","alert-warning":"_alert-warning_tv9xk_52","alert-warning-icon":"_alert-warning-icon_tv9xk_57","alert-info":"_alert-info_tv9xk_85","alert-info-icon":"_alert-info-icon_tv9xk_90","alert-error":"_alert-error_tv9xk_118","alert-error-icon":"_alert-error-icon_tv9xk_123","alert-success":"_alert-success_tv9xk_151","alert-success-icon":"_alert-success-icon_tv9xk_156"},o=(t,l)=>{for(const[s,i]of l)t[s]=i;return t};const I={name:"AgAlert",props:{type:{type:String,require:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},isBorderAll:{type:Boolean,require:!1,default:!1},isBorderTop:{type:Boolean,require:!1,default:!1},isBorderBottom:{type:Boolean,require:!1,default:!1},isBorderLeft:{type:Boolean,require:!1,default:!1},isBorderRight:{type:Boolean,require:!1,default:!1},isRounded:{type:Boolean,require:!1,default:!1},isBlockEnd:{type:Boolean,require:!1,default:!1}},computed:{svgClasses(){return this.type?[this.$style[`alert-${this.type}-icon`],this.$style["alert-icon"]].join(" "):this.$style["alert-icon"]},alertClasses(){let t;switch(this.type){case"warning":t="alert-warning";break;case"error":t="alert-error";break;case"info":t="alert-info";break;case"success":t="alert-success";break;default:t=""}return{[this.$style.alert]:!0,[this.$style[t]]:t.length,[this.$style["alert-rounded"]]:this.isRounded,[this.$style["alert-border-all"]]:this.isBorderAll,[this.$style["alert-border-left"]]:this.isBorderLeft,[this.$style["alert-border-right"]]:this.isBorderRight,[this.$style["alert-border-top"]]:this.isBorderTop,[this.$style["alert-border-bottom"]]:this.isBorderBottom,[this.$style["alert-end"]]:this.isBlockEnd}}}},L=e.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),j=e.createElementVNode("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1),V=[L,j];function N(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.alertClasses),role:"alert"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.svgClasses),xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},V,2)),e.renderSlot(t.$slots,"default")],2)}const _={};_.$style=D;var R=o(I,[["render",N],["__cssModules",_]]);const O="_avatar_1bk0m_2";var H={avatar:O,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const P={name:"AgAvatar",props:{isSkinned:{type:Boolean,default:!0,required:!1},isRounded:{type:Boolean,default:!1,required:!1},isSquare:{type:Boolean,default:!1,required:!1},isTransparent:{type:Boolean,default:!1,required:!1},imgUrl:{type:String,require:!1,default:""},text:{type:String,require:!1,default:""},size:{type:String,require:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)},type:{type:String,require:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{avatarImage(){return{[this.$style["avatar-image"]]:!0}},avatarClasses(){return{[this.$style.avatar]:!!this.isSkinned,[this.$style["avatar-base"]]:!this.isSkinned,[this.$style["avatar-square"]]:!!this.isSquare,[this.$style["avatar-rounded"]]:!!this.isRounded,[this.$style["avatar-transparent"]]:!!this.isTransparent,[this.$style[`avatar-${this.type}`]]:!!this.type,[this.$style[`avatar-${this.size}`]]:!!this.size}}}},U=["data-text"],K=["src"];function F(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.avatarClasses),"data-text":s.text||null},[s.imgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.imgUrl,class:e.normalizeClass(a.avatarImage),alt:""},null,10,K)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,U)}const h={};h.$style=H;var G=o(P,[["render",F],["__cssModules",h]]);const W="_avatar_1bk0m_2";var Y={avatar:W,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const Z={name:"AgAvatarGroup"};function J(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style["avatar-group"])},[e.renderSlot(t.$slots,"default")],2)}const b={};b.$style=Y;var Q=o(Z,[["render",J],["__cssModules",b]]);const X="_breadcrumb_dor2y_2",ee="_active_dor2y_20";var te={breadcrumb:X,"breadcrumb-item":"_breadcrumb-item_dor2y_10",active:ee,"breadcrumb-slash":"_breadcrumb-slash_dor2y_24","breadcrumb-arrow":"_breadcrumb-arrow_dor2y_28","breadcrumb-bullet":"_breadcrumb-bullet_dor2y_32"};const se={name:"AgBreadcrumb",props:{routes:{type:Array,required:!0,validator:t=>{let l=!0;return t.forEach(s=>l=Object.keys(s).every(i=>["label","url"].includes(i))),l||console.warn("routes argument must be an array of objects with shape: {label:..., url:...}"),l}},type:{type:String,default:"",required:!1,validator:t=>["arrow","slash","bullet",""].includes(t)}},computed:{breadcrumbClasses(){return{[this.$style.breadcrumb]:!0,[this.$style[`breadcrumb-${this.type}`]]:!!this.type}}},methods:{isLast(t,l){return l===t.length-1},crumbClasses(t){const l=this.isLast(this.routes,t);return{[this.$style["breadcrumb-item"]]:!0,[this.$style.active]:l}}}},ae={"aria-label":"breadcrumbs"},le={key:0,href:"{route.url}"},re={key:1};function ie(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",ae,[e.createElementVNode("ol",{class:e.normalizeClass(a.breadcrumbClasses)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,(r,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(a.crumbClasses(d))},[d!==s.routes.length-1&&r.url?(e.openBlock(),e.createElementBlock("a",le,e.toDisplayString(r.label),1)):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(r.label),1))],2))),128))],2)])}const p={};p.$style=te;var ne=o(se,[["render",ie],["__cssModules",p]]);const oe="_btn_1nn3z_6",de="_disabled_1nn3z_81",ce="_active_1nn3z_171";var ue={"btn-base":"_btn-base_1nn3z_7",btn:oe,"btn-skin":"_btn-skin_1nn3z_28",disabled:de,"btn-primary":"_btn-primary_1nn3z_102","btn-bordered":"_btn-bordered_1nn3z_109","btn-secondary":"_btn-secondary_1nn3z_123","btn-raised":"_btn-raised_1nn3z_150",active:ce,"btn-large":"_btn-large_1nn3z_286","btn-small":"_btn-small_1nn3z_293","btn-rounded":"_btn-rounded_1nn3z_303","btn-pill":"_btn-pill_1nn3z_307","btn-circle":"_btn-circle_1nn3z_316","btn-circle-large":"_btn-circle-large_1nn3z_323","btn-circle-small":"_btn-circle-small_1nn3z_329","btn-block":"_btn-block_1nn3z_338","btn-block-following":"_btn-block-following_1nn3z_344","btn-link":"_btn-link_1nn3z_352","btn-blank":"_btn-blank_1nn3z_353"};const _e={name:"AgButton",props:{mode:{type:String,default:""},isDisabled:{type:Boolean,default:!1},isBlank:{type:Boolean,default:!1},isLink:{type:Boolean,default:!1},isBlock:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isRaised:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"button",validator:t=>["button","submit","reset","faux"].includes(t)},size:{type:String,default:""},css:{type:String,default:""}},emits:["click"],computed:{currentComponentType(){return this.type==="faux"?"div":"button"},isButtonDisabled(){return this.isDisabled?!0:void 0},classes(){return{[this.$style.btn]:this.isSkinned,[this.$style["btn-base"]]:!this.isSkinned,[this.$style.disabled]:this.isDisabled,[this.$style["btn-bordered"]]:this.isBordered,[this.$style["btn-blank"]]:this.isBlank,[this.$style["btn-link"]]:this.isLink,[this.$style["btn-block"]]:this.isBlock,[this.$style["btn-rounded"]]:this.isRounded,[this.$style["btn-circle"]]:this.isCircle,[this.$style["btn-raised"]]:this.isRaised,[this.$style["btn-primary"]]:this.mode==="primary",[this.$style["btn-secondary"]]:this.mode==="secondary",[`${this.css}`]:!!this.css,[this.$style[`btn-${this.size}`]]:this.size}}}};function he(t,l,s,i,n,a){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.currentComponentType),{type:s.type==="faux"?!1:s.type,class:e.normalizeClass(a.classes),disabled:a.isButtonDisabled,onClick:l[0]||(l[0]=r=>t.$emit("click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["type","class","disabled"])}const y={};y.$style=ue;var be=o(_e,[["render",he],["__cssModules",y]]),pe={"btn-group":"_btn-group_nuvva_5"};const ye={name:"AgButtonGroup",props:{ariaLabel:{type:String,default:"",required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style["btn-group"]]:!0,[`${this.css}`]:this.css}}}},fe=["aria-label"];function me(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes),role:"group","aria-label":s.ariaLabel},[e.renderSlot(t.$slots,"default")],10,fe)}const f={};f.$style=pe;var ke=o(ye,[["render",me],["__cssModules",f]]);const ge="_card_aihsb_8";var ve={card:ge,"card-base":"_card-base_aihsb_9","card-skin":"_card-skin_aihsb_19","card-animated":"_card-animated_aihsb_47","card-stacked":"_card-stacked_aihsb_79"};const $e={name:"AgCard",props:{css:{type:String,default:""},isAnimated:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.card]:this.isSkinned,[this.$style["card-base"]]:!this.isSkinned,[this.$style["card-animated"]]:this.isAnimated,[this.$style["card-stacked"]]:this.isStacked,[`${this.css}`]:!!this.css}}}};function Be(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const m={};m.$style=ve;var Ce=o($e,[["render",Be],["__cssModules",m]]);const we="_checkbox_1myko_9",Se="_radio_1myko_10",ze="_disabled_1myko_213";var xe={"checkbox-group":"_checkbox-group_1myko_9","radio-group":"_radio-group_1myko_10","checkbox-group-large":"_checkbox-group-large_1myko_19","radio-group-large":"_radio-group-large_1myko_20","checkbox-legend":"_checkbox-legend_1myko_25","radio-legend":"_radio-legend_1myko_26",checkbox:we,radio:Se,"checkbox-small":"_checkbox-small_1myko_41","radio-small":"_radio-small_1myko_42","checkbox-large":"_checkbox-large_1myko_47","radio-large":"_radio-large_1myko_48","checkbox-label-wrap":"_checkbox-label-wrap_1myko_53","radio-label-wrap":"_radio-label-wrap_1myko_54","checkbox-label-wrap-inline":"_checkbox-label-wrap-inline_1myko_62","radio-label-wrap-inline":"_radio-label-wrap-inline_1myko_63","checkbox-label":"_checkbox-label_1myko_53","radio-label":"_radio-label_1myko_54","checkbox-label-small":"_checkbox-label-small_1myko_132","radio-label-small":"_radio-label-small_1myko_141","checkbox-label-large":"_checkbox-label-large_1myko_146","radio-label-large":"_radio-label-large_1myko_155","checkbox-group-hidden":"_checkbox-group-hidden_1myko_195","radio-group-hidden":"_radio-group-hidden_1myko_196",disabled:ze};const k=["checkbox","radio"],Ee={name:"AgChoiceInput",props:{isFieldset:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},disabledOptions:{type:Array,required:!1,default(){return[]}},checkedOptions:{type:Array,default(){return[]},required:!1},options:{type:Array,required:!0},css:{type:String,required:!1,default:""},legendLabel:{type:String,required:!0},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"checkbox",validator:t=>{const l=k.includes(t);return l||console.warn(`Allowed types for ChoiceInput are: ${k}`),l}},size:{type:String,default:null,validator:t=>["large","small"].includes(t)}},emits:["change"],data:function(){return{mutableCheckedOptions:Array.from(this.checkedOptions)}},computed:{choiceType(){return this.type},inputClasses(){return{[this.$style[`${this.type}`]]:this.type,[this.$style[`${this.type}-${this.size}`]]:!!this.size}},fieldsetClasses(){const t=this.css,l=this.isSkinned?this.$style[`${this.type}-group`]:"",s=this.isSkinned&&this.size==="large"?this.$style[`${this.type}-group-${this.size}`]:"";return{[l]:!0,[s]:!0,[t]:t,[this.$style[`${this.type}-group-hidden`]]:this.isFieldset===!1}},labelSpanClasses(){return{[this.$style[`${this.type}-label`]]:this.type,[this.$style[`${this.type}-label-${this.size}`]]:!!this.size}},legendClasses(){return{[this.isSkinned?this.$style[`${this.type}-legend`]:""]:!0,["screenreader-only"]:this.isFieldset===!1}}},methods:{isChoiceInputPrechecked(t){return!!(this.mutableCheckedOptions.length&&this.mutableCheckedOptions.includes(t))},labelClasses(t){return{[this.$style[`${this.type}-label-wrap`]]:this.type,[this.$style[`${this.type}-label-wrap-inline`]]:!!this.isInline,[this.$style.disabled]:this.isChoiceInputDisabled(t)}},isChoiceInputDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},triggerChange(t){const l=t.target.checked,s=t.target.value;if(l)this.mutableCheckedOptions.includes(s)||this.mutableCheckedOptions.push(s);else{const i=this.mutableCheckedOptions.filter(n=>n!==s);this.mutableCheckedOptions=i}this.$emit("change",this.mutableCheckedOptions)}}},Ae=["id","type","name","value","disabled","checked"];function qe(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(a.fieldsetClasses)},[e.createElementVNode("legend",{class:e.normalizeClass(a.legendClasses)},e.toDisplayString(s.legendLabel),3),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(r,d)=>(e.openBlock(),e.createElementBlock("label",{key:d,class:e.normalizeClass(a.labelClasses(r.value))},[e.createElementVNode("input",{id:`${r.name}-${d}`,class:e.normalizeClass(a.inputClasses),type:a.choiceType,name:r.name,value:r.value,disabled:a.isChoiceInputDisabled(r.value),checked:a.isChoiceInputPrechecked(r.value),onChange:l[0]||(l[0]=(...u)=>a.triggerChange&&a.triggerChange(...u))},null,42,Ae),e.createElementVNode("span",{class:e.normalizeClass(a.labelSpanClasses)},e.toDisplayString(r.label),3)],2))),128))],2)}const g={};g.$style=xe;var Te=o(Ee,[["render",qe],["__cssModules",g]]);const Me="_close_survv_2";var De={"close-button":"_close-button_survv_2",close:Me,"close-button-small":"_close-button-small_survv_49","close-button-large":"_close-button-large_survv_54","close-button-xlarge":"_close-button-xlarge_survv_59"};const Ie={name:"AgClose",props:{size:{type:String,require:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)}},computed:{closeClasses(){return{[this.$style.close]:!0}},closeButtonClasses(){return{[this.$style["close-button"]]:!0,[this.$style[`close-button-${this.size}`]]:!!this.size}}}},Le=e.createElementVNode("path",{fill:"currentColor",d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z"},null,-1),je=[Le];function Ve(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.closeButtonClasses),"aria-label":"Close"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.closeClasses),viewBox:"0 0 24 24","aria-hidden":"true"},je,2))],2)}const v={};v.$style=De;var Ne=o(Ie,[["render",Ve],["__cssModules",v]]);const Re="_disclose_1uc8k_2";var Oe={disclose:Re,"disclose-title":"_disclose-title_1uc8k_6","disclose-panel":"_disclose-panel_1uc8k_18","disclose-bg":"_disclose-bg_1uc8k_33"};const He={name:"AgDisclose",props:{title:{type:String,require:!0,default:""},isOpen:{type:Boolean,require:!1,default:!1},isBackground:{type:Boolean,require:!1,default:!1}},computed:{discloseClasses(){return{[this.$style.disclose]:!0,[this.$style["disclose-bg"]]:!!this.isBackground}}}},Pe=["open"];function Ue(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("details",{class:e.normalizeClass(a.discloseClasses),open:s.isOpen},[e.createElementVNode("summary",{class:e.normalizeClass(t.$style["disclose-title"])},e.toDisplayString(s.title),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style["disclose-panel"])},[e.renderSlot(t.$slots,"default")],2)],10,Pe)}const $={};$.$style=Oe;var Ke=o(He,[["render",Ue],["__cssModules",$]]);const Fe="_header_1jtcs_2";var Ge={header:Fe,"header-base":"_header-base_1jtcs_3","header-skin":"_header-skin_1jtcs_14","header-content":"_header-content_1jtcs_28","header-sticky":"_header-sticky_1jtcs_54","header-content-start":"_header-content-start_1jtcs_70","header-content-end":"_header-content-end_1jtcs_74"};const We={name:"AgHeader",props:{css:{type:String,default:""},isSticky:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isHeaderContentStart:{type:Boolean,default:!1},isHeaderContentEnd:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.header]:this.isSkinned,[this.$style["header-base"]]:!this.isSkinned,[this.$style["header-sticky"]]:this.isSticky,[`${this.css}`]:!!this.css}},headerContentClasses(){return{[this.$style["header-content"]]:!0,[this.$style["header-content-start"]]:this.isHeaderContentStart,[this.$style["header-content-end"]]:this.isHeaderContentEnd}}}};function Ye(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("div",{class:e.normalizeClass(a.headerContentClasses)},[e.renderSlot(t.$slots,"logoleft"),e.renderSlot(t.$slots,"headernav"),e.renderSlot(t.$slots,"logoright")],2)],2)}const B={};B.$style=Ge;var Ze=o(We,[["render",Ye],["__cssModules",B]]),Je={"header-nav":"_header-nav_yf3gw_3"};const Qe={name:"AgHeaderNav",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav"]]:!0,[`${this.css}`]:!!this.css}}}};function Xe(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([s.css?s.css:""])},[e.createElementVNode("ul",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)],2)}const C={};C.$style=Je;var et=o(Qe,[["render",Xe],["__cssModules",C]]),tt={"header-nav-item":"_header-nav-item_1k5ky_2"};const st={name:"AgHeaderNavItem",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav-item"]]:!0,[`${this.css}`]:!!this.css}}}};function at(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const w={};w.$style=tt;var lt=o(st,[["render",at],["__cssModules",w]]);const rt={name:"AgIcon",props:{isSkinned:{type:Boolean,require:!1,default:!0},size:{type:Number,require:!1,default:18,validator:t=>[14,16,18,20,24,32,36,40,48,56,64].includes(t)},type:{type:String,require:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{iconClasses(){return{["icon-base"]:!this.isSkinned,icon:!!this.isSkinned,[`icon-${this.type}`]:!!this.type,[`icon-${this.size}`]:!!this.size}}}};function it(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.iconClasses)},[e.renderSlot(t.$slots,"default")],2)}var nt=o(rt,[["render",it]]);const ot="_input_kts3n_2",dt="_label_kts3n_15",ct="_disabled_kts3n_245";var ut={"input-base":"_input-base_kts3n_2",input:ot,label:dt,"label-base":"_label-base_kts3n_16","field-help":"_field-help_kts3n_24","field-help-large":"_field-help-large_kts3n_25","field-help-small":"_field-help-small_kts3n_26","field-error":"_field-error_kts3n_27","field-error-large":"_field-error-large_kts3n_28","field-error-small":"_field-error-small_kts3n_29","label-skin":"_label-skin_kts3n_30","input-addon-container":"_input-addon-container_kts3n_32","input-small":"_input-small_kts3n_33","input-large":"_input-large_kts3n_34","input-skin":"_input-skin_kts3n_35","input-underlined":"_input-underlined_kts3n_36","input-underlined-bg":"_input-underlined-bg_kts3n_37","label-inline":"_label-inline_kts3n_90","input-inline":"_input-inline_kts3n_91","input-rounded":"_input-rounded_kts3n_153","label-error":"_label-error_kts3n_168","input-error":"_input-error_kts3n_172","label-large":"_label-large_kts3n_210","label-small":"_label-small_kts3n_222",disabled:ct,"input-has-left-addon":"_input-has-left-addon_kts3n_284","input-has-right-addon":"_input-has-right-addon_kts3n_285"};const S=["text","password","email","number","url","tel","search","textarea"],_t={name:"AgInput",inheritAttrs:!1,props:{label:{type:String,default:"",required:!0},id:{type:String,required:!0},labelCss:{type:String,default:""},css:{type:String,default:""},helpText:{type:String,default:""},invalidText:{type:String,default:""},hasLeftAddon:{type:Boolean,default:!1},hasRightAddon:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isRounded:{type:Boolean,default:!1},isUnderlinedWithBackground:{type:Boolean,default:!1},isUnderlined:{type:Boolean,default:!1},size:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text",validator:t=>{const l=S.includes(t);return l||console.warn(`Allowed types for Input: are ${S}`),l}}},emits:["input"],computed:{isInputDisabled(){return this.isDisabled?!0:void 0},helpClasses(){return{[this.$style["field-help"]]:!this.size,[this.$style[`field-help-${this.size}`]]:this.size}},invalidClasses(){return{[this.$style["field-error"]]:!this.size,[this.$style[`field-error-${this.size}`]]:this.size}},addonContainerClasses(){return{[this.$style["input-addon-container"]]:!0}},inputClasses(){return{[this.$style.input]:this.isSkinned,[this.$style["input-base"]]:!this.isSkinned,[this.$style["input-rounded"]]:this.isRounded,[this.$style["input-underlined"]]:this.isUnderlined,[this.$style["input-has-left-addon"]]:this.hasLeftAddon,[this.$style["input-has-right-addon"]]:this.hasRightAddon,[this.$style["input-error"]]:this.isInvalid,[this.$style["input-inline"]]:this.isInline,[this.$style["input-underlined-bg"]]:this.isUnderlinedWithBackground,[`${this.css}`]:!!this.css,[this.$style[`input-${this.size}`]]:this.size}},labelClasses(){return{[this.$style.label]:!0,[this.$style["label-error"]]:this.isInvalid,[this.$style["label-inline"]]:this.isInline,[this.$style[`label-${this.size}`]]:this.size,[`${this.labelCss}`]:!!this.labelCss}}}},ht={class:"w-100"},bt=["for"],pt=["id","value","disabled"],yt=["id","type","value","disabled"],ft=["id","type","value","disabled"];function mt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",ht,[e.createElementVNode("label",{class:e.normalizeClass(a.labelClasses),for:s.id},e.toDisplayString(s.label),11,bt),s.type=="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:0,id:s.id,class:a.inputClasses},t.$attrs,{value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,pt)):s.hasLeftAddon||s.hasRightAddon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.addonContainerClasses)},[e.renderSlot(t.$slots,"addonLeft"),e.createElementVNode("input",e.mergeProps({id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,yt),e.renderSlot(t.$slots,"addonRight")],2)):(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:2,id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,ft)),s.isInvalid?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(a.invalidClasses),role:"status","aria-live":"polite"},e.toDisplayString(s.invalidText),3)):s.helpText?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(a.helpClasses)},e.toDisplayString(s.helpText),3)):e.createCommentVNode("",!0)])}const z={};z.$style=ut;var kt=o(_t,[["render",mt],["__cssModules",z]]),gt={"input-addon-right":"_input-addon-right_1b61h_5","input-addon-left":"_input-addon-left_1b61h_6"};const vt={name:"AgInputAddonItem",props:{css:{type:String,default:""},addonLeft:{type:Boolean,default:!1},addonRight:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style["input-addon-left"]]:!!this.addonLeft,[this.$style["input-addon-right"]]:!!this.addonRight,[`${this.css}`]:!!this.css}}}};function $t(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const x={};x.$style=gt;var Bt=o(vt,[["render",$t],["__cssModules",x]]);const Ct="_progress_f0u9q_8";var wt={progress:Ct};const St={name:"AgProgress",props:{value:{type:Number,default:0},max:{type:Number,required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style.progress]:!0,[`${this.css}`]:!!this.css}}}},zt=["value","max"];function xt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("progress",{class:e.normalizeClass(a.classes),value:s.value,max:s.max},null,10,zt)}const E={};E.$style=wt;var Et=o(St,[["render",xt],["__cssModules",E]]);const At="_disabled_97d1o_183";var qt={"switch-container":"_switch-container_97d1o_8",switch:"_switch_97d1o_8","switch-small":"_switch-small_97d1o_54","switch-large":"_switch-large_97d1o_65","switch-border":"_switch-border_97d1o_76","switch-action":"_switch-action_97d1o_80","switch-right":"_switch-right_97d1o_87","switch-input":"_switch-input_97d1o_111","switch-label":"_switch-label_97d1o_119",disabled:At};const Tt={name:"AgSwitch",props:{id:{type:String,required:!0},label:{type:String,required:!0},css:{type:String,required:!1,default:""},labelPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)},size:{type:String,default:null,validator:t=>["large","small"].includes(t)},isChecked:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isAction:{type:Boolean,default:!1}},emits:["change"],computed:{switchSpan(){return{[this.$style.switch]:!0,[this.$style["switch-border"]]:!!this.isBordered,[this.$style["switch-action"]]:!!this.isAction,[this.$style[`switch-${this.size}`]]:!!this.size}},switchInput(){return[this.$style["switch-input"]]},switchLabel(){return[this.$style["switch-label"]]},switchContainer(){return{[this.$style["switch-container"]]:!0,[this.css]:!!this.css,[this.$style["switch-right"]]:this.labelPosition==="right",[this.$style.disabled]:!!this.isDisabled}}},methods:{handleClick(t){const l=t.target;l.getAttribute("aria-checked")=="true"?l.setAttribute("aria-checked","false"):l.setAttribute("aria-checked","true")},handleKeypress(t){switch(t.keyCode||t.which){case 13:t.preventDefault(),t.target.click();break}},triggerChange(t){this.$emit("change",t.target.checked)}}},Mt=["for"],Dt=["id","checked","disabled"];function It(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(a.switchContainer),for:s.id},[s.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:s.id,type:"checkbox",class:e.normalizeClass(a.switchInput),checked:s.isChecked,disabled:s.isDisabled,role:"switch",onChange:l[0]||(l[0]=(...r)=>a.triggerChange&&a.triggerChange(...r)),onClick:l[1]||(l[1]=(...r)=>a.handleClick&&a.handleClick(...r)),onKeypress:l[2]||(l[2]=(...r)=>a.handleKeypress&&a.handleKeypress(...r))},null,42,Dt),e.createElementVNode("span",{class:e.normalizeClass(a.switchSpan),"aria-hidden":"true"},null,2),s.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0)],10,Mt)}const A={};A.$style=qt;var Lt=o(Tt,[["render",It],["__cssModules",A]]);const jt="_tabs_jb818_3",Vt="_active_jb818_117";var Nt={tabs:jt,"tabs-vertical":"_tabs-vertical_jb818_8","tab-list":"_tab-list_jb818_12","tab-list-base":"_tab-list-base_jb818_13","tab-skinned":"_tab-skinned_jb818_20","tab-base":"_tab-base_jb818_32","tab-button":"_tab-button_jb818_37","tab-button-base":"_tab-button-base_jb818_37","tab-button-skin":"_tab-button-skin_jb818_63","tab-borderless":"_tab-borderless_jb818_91","tab-button-large":"_tab-button-large_jb818_95","tab-button-xlarge":"_tab-button-xlarge_jb818_102","tab-item":"_tab-item_jb818_109",active:Vt,"tab-panel":"_tab-panel_jb818_151"};const Rt={name:"AgTabs",props:{activatedTab:{type:Number,default:0},tabType:{type:String,require:!1,default:"tab",validator:t=>["tab","custom"].includes(t)},isVertical:{type:Boolean,required:!1,default:!1},isSkinned:{type:Boolean,require:!1,default:!0},isDisabled:{type:Boolean,default:!1},disabledOptions:{type:Array,required:!1,default:()=>[]},isBorderless:{type:Boolean,require:!1,default:!1},size:{type:String,require:!1,default:""}},emits:["selected"],setup(t,{emit:l,slots:s}){const i=Object.keys(s).filter(c=>c.startsWith("tab-")),n=Object.keys(s).filter(c=>c.startsWith("panel-"));let a=[];const r=c=>{c&&a.push(c)};let d=e.ref(i[0]);return{activeTab:d,selectTab:c=>{d.value=c,l("selected",c)},setTabButtonRefs:r,tabButtonRefs:a,tabsList:i,panelsList:n}},computed:{tabsClasses(){return{[this.$style.tabs]:!0,[this.$style["tabs-vertical"]]:!!this.isVertical}},tablistClasses(){return{[this.$style["tab-list-base"]]:!this.isSkinned,[this.$style["tab-list"]]:!!this.isSkinned,[this.$style["tab-borderless"]]:this.isBorderless}}},methods:{focusTab(t,l){let s=t;l==="asc"?s+=1:l==="desc"&&(s-=1),s<0?s=this.tabsList.length-1:s>=this.tabsList.length&&(s=0);const i=this.tabButtonRefs[s];i&&(i.disabled&&l?this.focusTab(s,l):i.focus())},onKeyDown(t,l){switch(t.key){case"Up":case"ArrowUp":this.isVertical&&this.focusTab(l,"desc");break;case"Down":case"ArrowDown":this.isVertical&&this.focusTab(l,"asc");break;case"Left":case"ArrowLeft":this.isVertical||this.focusTab(l,"desc");break;case"Right":case"ArrowRight":this.isVertical||this.focusTab(l,"asc");break;case"Home":case"ArrowHome":this.focusTab(0);break;case"End":case"ArrowEnd":this.focusTab(this.tabsList.length-1);break;case"Enter":case"Space":this.focusTab(l),this.selectTab(this.tabsList[l]);break;default:return}t.preventDefault()},isTabDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},tabButtonClasses(t){return this.tabType==="tab"?{[this.$style["tab-item"]]:!0,[this.$style["tab-button"]]:!0,[this.$style.active]:t===this.activeTab,[this.$style["tab-button-large"]]:this.size==="large",[this.$style["tab-button-xlarge"]]:this.size==="xlarge"}:{[this.$style["tab-button-base"]]:!0,[this.$style.active]:t===this.activeTab}}}},Ot=["aria-orientation"],Ht=["id","aria-controls","disabled","tabindex","aria-selected","onClick","onKeydown"],Pt=["id","aria-labelledby","hidden"];function Ut(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tabsClasses)},[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(a.tablistClasses),"aria-orientation":s.isVertical?"vertical":"horizontal"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsList,(r,d)=>(e.openBlock(),e.createElementBlock("button",{id:r,key:r,ref:i.setTabButtonRefs,role:"tab","aria-controls":`${r.replace("tab","panel")}`,disabled:a.isTabDisabled(r),tabindex:r===i.activeTab?"0":"-1","aria-selected":r===i.activeTab,class:e.normalizeClass(a.tabButtonClasses(r)),onClick:e.withModifiers(u=>i.selectTab(r),["prevent"]),onKeydown:u=>a.onKeyDown(u,d)},[e.renderSlot(t.$slots,r)],42,Ht))),128))],10,Ot),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.panelsList,r=>(e.openBlock(),e.createElementBlock("div",{id:r,key:r,"aria-labelledby":`${r.replace("panel","tab")}`,hidden:i.activeTab!==r.replace("panel","tab"),class:e.normalizeClass(t.$style["tab-panel"]),tabindex:"0",role:"tabpanel"},[e.renderSlot(t.$slots,i.activeTab.replace("tab","panel"))],10,Pt))),128))],2)}const q={};q.$style=Nt;var Kt=o(Rt,[["render",Ut],["__cssModules",q]]);const Ft="_tag_2luww_2";var Gt={"tag-base":"_tag-base_2luww_2",tag:Ft,"tag-skin":"_tag-skin_2luww_9","tag-info":"_tag-info_2luww_21","tag-warning":"_tag-warning_2luww_26","tag-error":"_tag-error_2luww_31","tag-success":"_tag-success_2luww_36","tag-upper":"_tag-upper_2luww_41","tag-circle":"_tag-circle_2luww_46","tag-round":"_tag-round_2luww_50","tag-pill":"_tag-pill_2luww_54"};const Wt={name:"AgTag",props:{isSkinned:{type:Boolean,require:!1,default:!0},isUppercase:{type:Boolean,require:!1,default:!1},type:{type:String,require:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},shape:{type:String,require:!1,default:"",validator:t=>["pill","circle","round","square",""].includes(t)}},computed:{tagClasses(){return{[this.$style.tag]:!!this.isSkinned,[this.$style["tag-base"]]:!this.isSkinned,[this.$style[`tag-${this.type}`]]:!!this.type,[this.$style[`tag-${this.shape}`]]:!!this.shape,[this.$style["tag-upper"]]:!!this.isUppercase}}}};function Yt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.tagClasses)},[e.renderSlot(t.$slots,"default")],2)}const T={};T.$style=Gt;var Zt=o(Wt,[["render",Yt],["__cssModules",T]]);exports.Alert=R;exports.Avatar=G;exports.AvatarGroup=Q;exports.Breadcrumb=ne;exports.Button=be;exports.ButtonGroup=ke;exports.Card=Ce;exports.ChoiceInput=Te;exports.Close=Ne;exports.Disclose=Ke;exports.Header=Ze;exports.HeaderNav=et;exports.HeaderNavItem=lt;exports.Icon=nt;exports.Input=kt;exports.InputAddonItem=Bt;exports.Progress=Et;exports.Switch=Lt;exports.Tabs=Kt;exports.Tag=Zt;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports[Symbol.toStringTag]="Module";var e=require("vue");const O="_alert_17o8u_2";var H={"alert-base":"_alert-base_17o8u_2",alert:O,"alert-end":"_alert-end_17o8u_10","alert-skin":"_alert-skin_17o8u_14","alert-icon":"_alert-icon_17o8u_20","alert-border-top":"_alert-border-top_17o8u_28","alert-border-left":"_alert-border-left_17o8u_32","alert-border-bottom":"_alert-border-bottom_17o8u_36","alert-border-right":"_alert-border-right_17o8u_40","alert-border-all":"_alert-border-all_17o8u_44","alert-rounded":"_alert-rounded_17o8u_48","alert-warning":"_alert-warning_17o8u_52","alert-warning-icon":"_alert-warning-icon_17o8u_57","alert-info":"_alert-info_17o8u_85","alert-info-icon":"_alert-info-icon_17o8u_90","alert-error":"_alert-error_17o8u_118","alert-error-icon":"_alert-error-icon_17o8u_123","alert-success":"_alert-success_17o8u_151","alert-success-icon":"_alert-success-icon_17o8u_156"},o=(t,l)=>{for(const[s,i]of l)t[s]=i;return t};const F={name:"AgAlert",props:{type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},isBorderAll:{type:Boolean,required:!1,default:!1},isBorderTop:{type:Boolean,required:!1,default:!1},isBorderBottom:{type:Boolean,required:!1,default:!1},isBorderLeft:{type:Boolean,required:!1,default:!1},isBorderRight:{type:Boolean,required:!1,default:!1},isRounded:{type:Boolean,required:!1,default:!1},isBlockEnd:{type:Boolean,required:!1,default:!1}},computed:{svgClasses(){return this.type?[this.$style[`alert-${this.type}-icon`],this.$style["alert-icon"]].join(" "):this.$style["alert-icon"]},alertClasses(){let t;switch(this.type){case"warning":t="alert-warning";break;case"error":t="alert-error";break;case"info":t="alert-info";break;case"success":t="alert-success";break;default:t=""}return{[this.$style.alert]:!0,[this.$style[t]]:t.length,[this.$style["alert-rounded"]]:this.isRounded,[this.$style["alert-border-all"]]:this.isBorderAll,[this.$style["alert-border-left"]]:this.isBorderLeft,[this.$style["alert-border-right"]]:this.isBorderRight,[this.$style["alert-border-top"]]:this.isBorderTop,[this.$style["alert-border-bottom"]]:this.isBorderBottom,[this.$style["alert-end"]]:this.isBlockEnd}}}},P=e.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),U=e.createElementVNode("path",{fill:"currentColor",d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1),K=[P,U];function G(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.alertClasses),role:"alert"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.svgClasses),xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24"},K,2)),e.renderSlot(t.$slots,"default")],2)}const m={};m.$style=H;var W=o(F,[["render",G],["__cssModules",m]]);const Y="_avatar_1bk0m_2";var Z={avatar:Y,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const J={name:"AgAvatar",props:{isSkinned:{type:Boolean,default:!0,required:!1},isRounded:{type:Boolean,default:!1,required:!1},isSquare:{type:Boolean,default:!1,required:!1},isTransparent:{type:Boolean,default:!1,required:!1},imgUrl:{type:String,required:!1,default:""},text:{type:String,required:!1,default:""},size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{avatarImage(){return{[this.$style["avatar-image"]]:!0}},avatarClasses(){return{[this.$style.avatar]:!!this.isSkinned,[this.$style["avatar-base"]]:!this.isSkinned,[this.$style["avatar-square"]]:!!this.isSquare,[this.$style["avatar-rounded"]]:!!this.isRounded,[this.$style["avatar-transparent"]]:!!this.isTransparent,[this.$style[`avatar-${this.type}`]]:!!this.type,[this.$style[`avatar-${this.size}`]]:!!this.size}}}},Q=["data-text"],X=["src"];function ee(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.avatarClasses),"data-text":s.text||null},[s.imgUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:s.imgUrl,class:e.normalizeClass(a.avatarImage),alt:""},null,10,X)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,Q)}const g={};g.$style=Z;var te=o(J,[["render",ee],["__cssModules",g]]);const se="_avatar_1bk0m_2";var ae={avatar:se,"avatar-base":"_avatar-base_1bk0m_3","avatar-skin":"_avatar-skin_1bk0m_12","avatar-square":"_avatar-square_1bk0m_20","avatar-rounded":"_avatar-rounded_1bk0m_24","avatar-small":"_avatar-small_1bk0m_28","avatar-large":"_avatar-large_1bk0m_34","avatar-xlarge":"_avatar-xlarge_1bk0m_39","avatar-image":"_avatar-image_1bk0m_49","avatar-info":"_avatar-info_1bk0m_55","avatar-warning":"_avatar-warning_1bk0m_60","avatar-success":"_avatar-success_1bk0m_65","avatar-error":"_avatar-error_1bk0m_70","avatar-transparent":"_avatar-transparent_1bk0m_76","avatar-group":"_avatar-group_1bk0m_80"};const le={name:"AgAvatarGroup"};function re(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style["avatar-group"])},[e.renderSlot(t.$slots,"default")],2)}const k={};k.$style=ae;var ie=o(le,[["render",re],["__cssModules",k]]);const ne="_breadcrumb_dor2y_2",oe="_active_dor2y_20";var de={breadcrumb:ne,"breadcrumb-item":"_breadcrumb-item_dor2y_10",active:oe,"breadcrumb-slash":"_breadcrumb-slash_dor2y_24","breadcrumb-arrow":"_breadcrumb-arrow_dor2y_28","breadcrumb-bullet":"_breadcrumb-bullet_dor2y_32"};const ce={name:"AgBreadcrumb",props:{routes:{type:Array,required:!0,validator:t=>{let l=!0;return t.forEach(s=>l=Object.keys(s).every(i=>["label","url"].includes(i))),l||console.warn("routes argument must be an array of objects with shape: {label:..., url:...}"),l}},type:{type:String,default:"",required:!1,validator:t=>["arrow","slash","bullet",""].includes(t)}},computed:{breadcrumbClasses(){return{[this.$style.breadcrumb]:!0,[this.$style[`breadcrumb-${this.type}`]]:!!this.type}}},methods:{isLast(t,l){return l===t.length-1},crumbClasses(t){const l=this.isLast(this.routes,t);return{[this.$style["breadcrumb-item"]]:!0,[this.$style.active]:l}}}},ue={"aria-label":"breadcrumbs"},_e={key:0,href:"{route.url}"},he={key:1};function be(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",ue,[e.createElementVNode("ol",{class:e.normalizeClass(a.breadcrumbClasses)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.routes,(r,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(a.crumbClasses(d))},[d!==s.routes.length-1&&r.url?(e.openBlock(),e.createElementBlock("a",_e,e.toDisplayString(r.label),1)):(e.openBlock(),e.createElementBlock("span",he,e.toDisplayString(r.label),1))],2))),128))],2)])}const v={};v.$style=de;var pe=o(ce,[["render",be],["__cssModules",v]]);const fe="_btn_5ln7f_6",ye="_disabled_5ln7f_81",me="_active_5ln7f_171";var ge={"btn-base":"_btn-base_5ln7f_7",btn:fe,"btn-skin":"_btn-skin_5ln7f_28",disabled:ye,"btn-primary":"_btn-primary_5ln7f_102","btn-bordered":"_btn-bordered_5ln7f_109","btn-secondary":"_btn-secondary_5ln7f_123","btn-raised":"_btn-raised_5ln7f_150",active:me,"btn-large":"_btn-large_5ln7f_286","btn-small":"_btn-small_5ln7f_293","btn-rounded":"_btn-rounded_5ln7f_303","btn-pill":"_btn-pill_5ln7f_307","btn-circle":"_btn-circle_5ln7f_316","btn-circle-large":"_btn-circle-large_5ln7f_323","btn-circle-small":"_btn-circle-small_5ln7f_329","btn-block":"_btn-block_5ln7f_338","btn-block-following":"_btn-block-following_5ln7f_344","btn-link":"_btn-link_5ln7f_352","btn-blank":"_btn-blank_5ln7f_353"};const ke={name:"AgButton",props:{mode:{type:String,default:""},isDisabled:{type:Boolean,default:!1},isBlank:{type:Boolean,default:!1},isLink:{type:Boolean,default:!1},isBlock:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isRaised:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"button",validator:t=>["button","submit","reset","faux"].includes(t)},size:{type:String,default:""},css:{type:String,default:""}},emits:["click"],computed:{currentComponentType(){return this.type==="faux"?"div":"button"},isButtonDisabled(){return this.isDisabled?!0:void 0},classes(){return{[this.$style.btn]:this.isSkinned,[this.$style["btn-base"]]:!this.isSkinned,[this.$style.disabled]:this.isDisabled,[this.$style["btn-bordered"]]:this.isBordered,[this.$style["btn-blank"]]:this.isBlank,[this.$style["btn-link"]]:this.isLink,[this.$style["btn-block"]]:this.isBlock,[this.$style["btn-rounded"]]:this.isRounded,[this.$style["btn-circle"]]:this.isCircle,[this.$style["btn-raised"]]:this.isRaised,[this.$style["btn-primary"]]:this.mode==="primary",[this.$style["btn-secondary"]]:this.mode==="secondary",[`${this.css}`]:!!this.css,[this.$style[`btn-${this.size}`]]:this.size}}}};function ve(t,l,s,i,n,a){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.currentComponentType),{type:s.type==="faux"?!1:s.type,class:e.normalizeClass(a.classes),disabled:a.isButtonDisabled,onClick:l[0]||(l[0]=r=>t.$emit("click"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["type","class","disabled"])}const $={};$.$style=ge;var $e=o(ke,[["render",ve],["__cssModules",$]]),Be={"btn-group":"_btn-group_nuvva_5"};const Ce={name:"AgButtonGroup",props:{ariaLabel:{type:String,default:"",required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style["btn-group"]]:!0,[`${this.css}`]:this.css}}}},Se=["aria-label"];function we(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes),role:"group","aria-label":s.ariaLabel},[e.renderSlot(t.$slots,"default")],10,Se)}const B={};B.$style=Be;var ze=o(Ce,[["render",we],["__cssModules",B]]);const Ee="_card_1v11v_8";var xe={card:Ee,"card-base":"_card-base_1v11v_9","card-border":"_card-border_1v11v_18","card-rounded":"_card-rounded_1v11v_22","card-shadow":"_card-shadow_1v11v_26","card-animated":"_card-animated_1v11v_53","card-stacked":"_card-stacked_1v11v_85","card-success":"_card-success_1v11v_89","card-info":"_card-info_1v11v_94","card-error":"_card-error_1v11v_99","card-warning":"_card-warning_1v11v_104"};const qe={name:"AgCard",props:{css:{type:String,default:""},type:{type:String,default:"",validator:t=>["success","info","warning","error"].includes(t)},isAnimated:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isStacked:{type:Boolean,default:!1},isShadow:{type:Boolean,default:!1},isBorder:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.card]:this.isSkinned,[this.$style["card-base"]]:!this.isSkinned,[this.$style["card-animated"]]:this.isAnimated,[this.$style["card-rounded"]]:this.isRounded,[this.$style["card-border"]]:this.isBorder,[this.$style["card-shadow"]]:this.isShadow,[this.$style["card-stacked"]]:this.isStacked,[this.$style[`card-${this.type}`]]:!!this.type,[`${this.css}`]:!!this.css}}}};function Ae(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const C={};C.$style=xe;var De=o(qe,[["render",Ae],["__cssModules",C]]);const je="_checkbox_1h7x4_9",Te="_radio_1h7x4_10",Me="_disabled_1h7x4_213";var Ne={"checkbox-group":"_checkbox-group_1h7x4_9","radio-group":"_radio-group_1h7x4_10","checkbox-group-large":"_checkbox-group-large_1h7x4_19","radio-group-large":"_radio-group-large_1h7x4_20","checkbox-legend":"_checkbox-legend_1h7x4_25","radio-legend":"_radio-legend_1h7x4_26",checkbox:je,radio:Te,"checkbox-small":"_checkbox-small_1h7x4_41","radio-small":"_radio-small_1h7x4_42","checkbox-large":"_checkbox-large_1h7x4_47","radio-large":"_radio-large_1h7x4_48","checkbox-label-wrap":"_checkbox-label-wrap_1h7x4_53","radio-label-wrap":"_radio-label-wrap_1h7x4_54","checkbox-label-wrap-inline":"_checkbox-label-wrap-inline_1h7x4_62","radio-label-wrap-inline":"_radio-label-wrap-inline_1h7x4_63","checkbox-label":"_checkbox-label_1h7x4_53","radio-label":"_radio-label_1h7x4_54","checkbox-label-small":"_checkbox-label-small_1h7x4_132","radio-label-small":"_radio-label-small_1h7x4_141","checkbox-label-large":"_checkbox-label-large_1h7x4_146","radio-label-large":"_radio-label-large_1h7x4_155","checkbox-group-hidden":"_checkbox-group-hidden_1h7x4_195","radio-group-hidden":"_radio-group-hidden_1h7x4_196",disabled:Me};const S=["checkbox","radio"],Ie={name:"AgChoiceInput",props:{isFieldset:{type:Boolean,default:!0},isDisabled:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},disabledOptions:{type:Array,required:!1,default(){return[]}},checkedOptions:{type:Array,default(){return[]},required:!1},options:{type:Array,required:!0},css:{type:String,required:!1,default:""},legendLabel:{type:String,required:!0},isSkinned:{type:Boolean,default:!0},type:{type:String,default:"checkbox",validator:t=>{const l=S.includes(t);return l||console.warn(`Allowed types for ChoiceInput are: ${S}`),l}},size:{type:String,default:null,validator:t=>["large","small"].includes(t)}},emits:["change"],data:function(){return{mutableCheckedOptions:Array.from(this.checkedOptions)}},computed:{choiceType(){return this.type},inputClasses(){return{[this.$style[`${this.type}`]]:this.type,[this.$style[`${this.type}-${this.size}`]]:!!this.size}},fieldsetClasses(){const t=this.css,l=this.isSkinned?this.$style[`${this.type}-group`]:"",s=this.isSkinned&&this.size==="large"?this.$style[`${this.type}-group-${this.size}`]:"";return{[l]:!0,[s]:!0,[t]:t,[this.$style[`${this.type}-group-hidden`]]:this.isFieldset===!1}},labelSpanClasses(){return{[this.$style[`${this.type}-label`]]:this.type,[this.$style[`${this.type}-label-${this.size}`]]:!!this.size}},legendClasses(){return{[this.isSkinned?this.$style[`${this.type}-legend`]:""]:!0,["screenreader-only"]:this.isFieldset===!1}}},methods:{isChoiceInputPrechecked(t){return!!(this.mutableCheckedOptions.length&&this.mutableCheckedOptions.includes(t))},labelClasses(t){return{[this.$style[`${this.type}-label-wrap`]]:this.type,[this.$style[`${this.type}-label-wrap-inline`]]:!!this.isInline,[this.$style.disabled]:this.isChoiceInputDisabled(t)}},isChoiceInputDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},triggerChange(t){const l=t.target.checked,s=t.target.value;if(l)this.mutableCheckedOptions.includes(s)||this.mutableCheckedOptions.push(s);else{const i=this.mutableCheckedOptions.filter(n=>n!==s);this.mutableCheckedOptions=i}this.$emit("change",this.mutableCheckedOptions)}}},Le=["id","type","name","value","disabled","checked"];function Ve(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(a.fieldsetClasses)},[e.createElementVNode("legend",{class:e.normalizeClass(a.legendClasses)},e.toDisplayString(s.legendLabel),3),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(r,d)=>(e.openBlock(),e.createElementBlock("label",{key:d,class:e.normalizeClass(a.labelClasses(r.value))},[e.createElementVNode("input",{id:`${r.name}-${d}`,class:e.normalizeClass(a.inputClasses),type:a.choiceType,name:r.name,value:r.value,disabled:a.isChoiceInputDisabled(r.value),checked:a.isChoiceInputPrechecked(r.value),onChange:l[0]||(l[0]=(...b)=>a.triggerChange&&a.triggerChange(...b))},null,42,Le),e.createElementVNode("span",{class:e.normalizeClass(a.labelSpanClasses)},e.toDisplayString(r.label),3)],2))),128))],2)}const w={};w.$style=Ne;var Re=o(Ie,[["render",Ve],["__cssModules",w]]);const Oe="_close_1wx3m_2";var He={"close-button":"_close-button_1wx3m_2",close:Oe,"close-button-small":"_close-button-small_1wx3m_49","close-button-large":"_close-button-large_1wx3m_54","close-button-xlarge":"_close-button-xlarge_1wx3m_59"};const Fe={name:"AgClose",props:{size:{type:String,required:!1,default:"",validator:t=>["small","large","xlarge",""].includes(t)}},computed:{closeClasses(){return{[this.$style.close]:!0}},closeButtonClasses(){return{[this.$style["close-button"]]:!0,[this.$style[`close-button-${this.size}`]]:!!this.size}}}},Pe=e.createElementVNode("path",{fill:"currentColor",d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z"},null,-1),Ue=[Pe];function Ke(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(a.closeButtonClasses),"aria-label":"Close"},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(a.closeClasses),viewBox:"0 0 24 24","aria-hidden":"true"},Ue,2))],2)}const z={};z.$style=He;var Ge=o(Fe,[["render",Ke],["__cssModules",z]]);const We="_disclose_gzcq8_2";var Ye={disclose:We,"disclose-title":"_disclose-title_gzcq8_6","disclose-panel":"_disclose-panel_gzcq8_18","disclose-bg":"_disclose-bg_gzcq8_33"};const Ze={name:"AgDisclose",props:{title:{type:String,required:!0,default:""},isOpen:{type:Boolean,required:!1,default:!1},isBackground:{type:Boolean,required:!1,default:!1}},computed:{discloseClasses(){return{[this.$style.disclose]:!0,[this.$style["disclose-bg"]]:!!this.isBackground}}}},Je=["open"];function Qe(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("details",{class:e.normalizeClass(a.discloseClasses),open:s.isOpen},[e.createElementVNode("summary",{class:e.normalizeClass(t.$style["disclose-title"])},e.toDisplayString(s.title),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style["disclose-panel"])},[e.renderSlot(t.$slots,"default")],2)],10,Je)}const E={};E.$style=Ye;var Xe=o(Ze,[["render",Qe],["__cssModules",E]]);const et="_header_1k0hl_2";var tt={header:et,"header-base":"_header-base_1k0hl_3","header-skin":"_header-skin_1k0hl_14","header-content":"_header-content_1k0hl_28","header-sticky":"_header-sticky_1k0hl_54","header-content-start":"_header-content-start_1k0hl_70","header-content-end":"_header-content-end_1k0hl_74"};const st={name:"AgHeader",props:{css:{type:String,default:""},isSticky:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isHeaderContentStart:{type:Boolean,default:!1},isHeaderContentEnd:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style.header]:this.isSkinned,[this.$style["header-base"]]:!this.isSkinned,[this.$style["header-sticky"]]:this.isSticky,[`${this.css}`]:!!this.css}},headerContentClasses(){return{[this.$style["header-content"]]:!0,[this.$style["header-content-start"]]:this.isHeaderContentStart,[this.$style["header-content-end"]]:this.isHeaderContentEnd}}}};function at(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.createElementVNode("div",{class:e.normalizeClass(a.headerContentClasses)},[e.renderSlot(t.$slots,"logoleft"),e.renderSlot(t.$slots,"headernav"),e.renderSlot(t.$slots,"logoright")],2)],2)}const x={};x.$style=tt;var lt=o(st,[["render",at],["__cssModules",x]]),rt={"header-nav":"_header-nav_yf3gw_3"};const it={name:"AgHeaderNav",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav"]]:!0,[`${this.css}`]:!!this.css}}}};function nt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass([s.css?s.css:""])},[e.createElementVNode("ul",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)],2)}const q={};q.$style=rt;var ot=o(it,[["render",nt],["__cssModules",q]]),dt={"header-nav-item":"_header-nav-item_1k5ky_2"};const ct={name:"AgHeaderNavItem",props:{css:{type:String,default:""}},computed:{classes(){return{[this.$style["header-nav-item"]]:!0,[`${this.css}`]:!!this.css}}}};function ut(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const A={};A.$style=dt;var _t=o(ct,[["render",ut],["__cssModules",A]]);const ht={name:"AgIcon",props:{isSkinned:{type:Boolean,required:!1,default:!0},size:{type:Number,required:!1,default:18,validator:t=>[14,16,18,20,24,32,36,40,48,56,64].includes(t)},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)}},computed:{iconClasses(){return{["icon-base"]:!this.isSkinned,icon:!!this.isSkinned,[`icon-${this.type}`]:!!this.type,[`icon-${this.size}`]:!!this.size}}}};function bt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.iconClasses)},[e.renderSlot(t.$slots,"default")],2)}var pt=o(ht,[["render",bt]]);const ft="_input_8f99j_2",yt="_label_8f99j_15",mt="_disabled_8f99j_245";var gt={"input-base":"_input-base_8f99j_2",input:ft,label:yt,"label-base":"_label-base_8f99j_16","field-help":"_field-help_8f99j_24","field-help-large":"_field-help-large_8f99j_25","field-help-small":"_field-help-small_8f99j_26","field-error":"_field-error_8f99j_27","field-error-large":"_field-error-large_8f99j_28","field-error-small":"_field-error-small_8f99j_29","label-skin":"_label-skin_8f99j_30","input-addon-container":"_input-addon-container_8f99j_32","input-small":"_input-small_8f99j_33","input-large":"_input-large_8f99j_34","input-skin":"_input-skin_8f99j_35","input-underlined":"_input-underlined_8f99j_36","input-underlined-bg":"_input-underlined-bg_8f99j_37","label-inline":"_label-inline_8f99j_90","input-inline":"_input-inline_8f99j_91","input-rounded":"_input-rounded_8f99j_153","label-error":"_label-error_8f99j_168","input-error":"_input-error_8f99j_172","label-large":"_label-large_8f99j_210","label-small":"_label-small_8f99j_222",disabled:mt,"input-has-left-addon":"_input-has-left-addon_8f99j_284","input-has-right-addon":"_input-has-right-addon_8f99j_285"};const D=["text","password","email","number","url","tel","search","textarea"],kt={name:"AgInput",inheritAttrs:!1,props:{label:{type:String,default:"",required:!0},id:{type:String,required:!0},labelCss:{type:String,default:""},css:{type:String,default:""},helpText:{type:String,default:""},invalidText:{type:String,default:""},hasLeftAddon:{type:Boolean,default:!1},hasRightAddon:{type:Boolean,default:!1},isInline:{type:Boolean,default:!1},isInvalid:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isSkinned:{type:Boolean,default:!0},isRounded:{type:Boolean,default:!1},isUnderlinedWithBackground:{type:Boolean,default:!1},isUnderlined:{type:Boolean,default:!1},size:{type:String,default:""},value:{type:[String,Number],default:""},type:{type:String,default:"text",validator:t=>{const l=D.includes(t);return l||console.warn(`Allowed types for Input: are ${D}`),l}}},emits:["input"],computed:{isInputDisabled(){return this.isDisabled?!0:void 0},helpClasses(){return{[this.$style["field-help"]]:!this.size,[this.$style[`field-help-${this.size}`]]:this.size}},invalidClasses(){return{[this.$style["field-error"]]:!this.size,[this.$style[`field-error-${this.size}`]]:this.size}},addonContainerClasses(){return{[this.$style["input-addon-container"]]:!0}},inputClasses(){return{[this.$style.input]:this.isSkinned,[this.$style["input-base"]]:!this.isSkinned,[this.$style["input-rounded"]]:this.isRounded,[this.$style["input-underlined"]]:this.isUnderlined,[this.$style["input-has-left-addon"]]:this.hasLeftAddon,[this.$style["input-has-right-addon"]]:this.hasRightAddon,[this.$style["input-error"]]:this.isInvalid,[this.$style["input-inline"]]:this.isInline,[this.$style["input-underlined-bg"]]:this.isUnderlinedWithBackground,[`${this.css}`]:!!this.css,[this.$style[`input-${this.size}`]]:this.size}},labelClasses(){return{[this.$style.label]:!0,[this.$style["label-error"]]:this.isInvalid,[this.$style["label-inline"]]:this.isInline,[this.$style[`label-${this.size}`]]:this.size,[`${this.labelCss}`]:!!this.labelCss}}}},vt={class:"w-100"},$t=["for"],Bt=["id","value","disabled"],Ct=["id","type","value","disabled"],St=["id","type","value","disabled"];function wt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",vt,[e.createElementVNode("label",{class:e.normalizeClass(a.labelClasses),for:s.id},e.toDisplayString(s.label),11,$t),s.type=="textarea"?(e.openBlock(),e.createElementBlock("textarea",e.mergeProps({key:0,id:s.id,class:a.inputClasses},t.$attrs,{value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,Bt)):s.hasLeftAddon||s.hasRightAddon?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.addonContainerClasses)},[e.renderSlot(t.$slots,"addonLeft"),e.createElementVNode("input",e.mergeProps({id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,Ct),e.renderSlot(t.$slots,"addonRight")],2)):(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:2,id:s.id,class:a.inputClasses},t.$attrs,{type:s.type,value:s.value,disabled:a.isInputDisabled},e.toHandlers({input:r=>t.$emit("input",r.target.value)})),null,16,St)),s.isInvalid?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(a.invalidClasses),role:"status","aria-live":"polite"},e.toDisplayString(s.invalidText),3)):s.helpText?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(a.helpClasses)},e.toDisplayString(s.helpText),3)):e.createCommentVNode("",!0)])}const j={};j.$style=gt;var zt=o(kt,[["render",wt],["__cssModules",j]]),Et={"input-addon-right":"_input-addon-right_1b61h_5","input-addon-left":"_input-addon-left_1b61h_6"};const xt={name:"AgInputAddonItem",props:{css:{type:String,default:""},addonLeft:{type:Boolean,default:!1},addonRight:{type:Boolean,default:!1}},computed:{classes(){return{[this.$style["input-addon-left"]]:!!this.addonLeft,[this.$style["input-addon-right"]]:!!this.addonRight,[`${this.css}`]:!!this.css}}}};function qt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.classes)},[e.renderSlot(t.$slots,"default")],2)}const T={};T.$style=Et;var At=o(xt,[["render",qt],["__cssModules",T]]);const Dt="_progress_f0u9q_8";var jt={progress:Dt};const Tt={name:"AgProgress",props:{value:{type:Number,default:0},max:{type:Number,required:!0},css:{type:String,default:""}},computed:{classes(){return{[this.$style.progress]:!0,[`${this.css}`]:!!this.css}}}},Mt=["value","max"];function Nt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("progress",{class:e.normalizeClass(a.classes),value:s.value,max:s.max},null,10,Mt)}const M={};M.$style=jt;var It=o(Tt,[["render",Nt],["__cssModules",M]]);const Lt="_select_19fej_2";var Vt={select:Lt,"select-base":"_select-base_19fej_3","select-skin":"_select-skin_19fej_14","select-small":"_select-small_19fej_63","select-large":"_select-large_19fej_70"};const Rt={name:"AgSelect",props:{uniqueId:{type:String,required:!0},name:{type:String,required:!0},labelCopy:{type:String,required:!0},options:{type:Array,required:!0},size:{type:String,required:!1,default:"",validator:t=>["small","large",""].includes(t)},multipleSize:{type:Number,required:!1,default:1},isMultiple:{type:Boolean,required:!1,default:!1},defaultOptionLabel:{type:String,required:!1,default:"Please select an option"},isDisabled:{type:Boolean,required:!1,default:!1}},emits:["input"],data(){return{value:""}},computed:{showDefaultOption(){return!this.isMultiple},selectClasses(){return{[this.$style.select]:!0,[this.$style[`select-${this.size}`]]:!!this.size}}}},Ot=["for"],Ht=["id","name","value","disabled","multiple","size"],Ft={key:0,disabled:"",value:""},Pt=["value"];function Ut(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("label",{class:e.normalizeClass([t.$style.select,"screenreader-only"]),for:s.uniqueId},e.toDisplayString(s.labelCopy),11,Ot),e.createElementVNode("select",{id:s.uniqueId,name:s.name,value:n.value,class:e.normalizeClass(a.selectClasses),disabled:s.isDisabled,multiple:s.isMultiple,size:s.isMultiple&&s.multipleSize,onInput:l[0]||(l[0]=r=>t.$emit("input",r.target.value))},[a.showDefaultOption?(e.openBlock(),e.createElementBlock("option",Ft,e.toDisplayString(s.defaultOptionLabel),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(r,d)=>(e.openBlock(),e.createElementBlock("option",{key:d,value:r.value},e.toDisplayString(r.label),9,Pt))),128))],42,Ht)],64)}const N={};N.$style=Vt;var Kt=o(Rt,[["render",Ut],["__cssModules",N]]);const Gt="_disabled_5iflo_183";var Wt={"switch-container":"_switch-container_5iflo_8",switch:"_switch_5iflo_8","switch-small":"_switch-small_5iflo_54","switch-large":"_switch-large_5iflo_65","switch-border":"_switch-border_5iflo_76","switch-action":"_switch-action_5iflo_80","switch-right":"_switch-right_5iflo_87","switch-input":"_switch-input_5iflo_111","switch-label":"_switch-label_5iflo_119",disabled:Gt};const Yt={name:"AgSwitch",props:{id:{type:String,required:!0},label:{type:String,required:!0},css:{type:String,required:!1,default:""},labelPosition:{type:String,default:"left",validator:t=>["left","right"].includes(t)},size:{type:String,default:null,validator:t=>["large","small"].includes(t)},isChecked:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isAction:{type:Boolean,default:!1}},emits:["change"],computed:{switchSpan(){return{[this.$style.switch]:!0,[this.$style["switch-border"]]:!!this.isBordered,[this.$style["switch-action"]]:!!this.isAction,[this.$style[`switch-${this.size}`]]:!!this.size}},switchInput(){return[this.$style["switch-input"]]},switchLabel(){return[this.$style["switch-label"]]},switchContainer(){return{[this.$style["switch-container"]]:!0,[this.css]:!!this.css,[this.$style["switch-right"]]:this.labelPosition==="right",[this.$style.disabled]:!!this.isDisabled}}},methods:{handleClick(t){const l=t.target;l.getAttribute("aria-checked")=="true"?l.setAttribute("aria-checked","false"):l.setAttribute("aria-checked","true")},handleKeypress(t){switch(t.keyCode||t.which){case 13:t.preventDefault(),t.target.click();break}},triggerChange(t){this.$emit("change",t.target.checked)}}},Zt=["for"],Jt=["id","checked","disabled"];function Qt(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(a.switchContainer),for:s.id},[s.labelPosition==="left"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:s.id,type:"checkbox",class:e.normalizeClass(a.switchInput),checked:s.isChecked,disabled:s.isDisabled,role:"switch",onChange:l[0]||(l[0]=(...r)=>a.triggerChange&&a.triggerChange(...r)),onClick:l[1]||(l[1]=(...r)=>a.handleClick&&a.handleClick(...r)),onKeypress:l[2]||(l[2]=(...r)=>a.handleKeypress&&a.handleKeypress(...r))},null,42,Jt),e.createElementVNode("span",{class:e.normalizeClass(a.switchSpan),"aria-hidden":"true"},null,2),s.labelPosition==="right"?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(a.switchLabel)},e.toDisplayString(s.label),3)):e.createCommentVNode("",!0)],10,Zt)}const I={};I.$style=Wt;var Xt=o(Yt,[["render",Qt],["__cssModules",I]]);const es="_tabs_ralmj_3",ts="_active_ralmj_117";var ss={tabs:es,"tabs-vertical":"_tabs-vertical_ralmj_8","tab-list":"_tab-list_ralmj_12","tab-list-base":"_tab-list-base_ralmj_13","tab-skinned":"_tab-skinned_ralmj_20","tab-base":"_tab-base_ralmj_32","tab-button":"_tab-button_ralmj_37","tab-button-base":"_tab-button-base_ralmj_37","tab-button-skin":"_tab-button-skin_ralmj_63","tab-borderless":"_tab-borderless_ralmj_91","tab-button-large":"_tab-button-large_ralmj_95","tab-button-xlarge":"_tab-button-xlarge_ralmj_102","tab-item":"_tab-item_ralmj_109",active:ts,"tab-panel":"_tab-panel_ralmj_151"};const as={name:"AgTabs",props:{activatedTab:{type:Number,default:0},tabType:{type:String,required:!1,default:"tab",validator:t=>["tab","custom"].includes(t)},isVertical:{type:Boolean,requiredd:!1,default:!1},isSkinned:{type:Boolean,required:!1,default:!0},isDisabled:{type:Boolean,default:!1},disabledOptions:{type:Array,requiredd:!1,default:()=>[]},isBorderless:{type:Boolean,required:!1,default:!1},size:{type:String,required:!1,default:""}},emits:["selected"],setup(t,{emit:l,slots:s}){const i=Object.keys(s).filter(_=>_.startsWith("tab-")),n=Object.keys(s).filter(_=>_.startsWith("panel-"));let a=[];const r=_=>{_&&a.push(_)};let d=e.ref(i[0]);return{activeTab:d,selectTab:_=>{d.value=_,l("selected",_)},setTabButtonRefs:r,tabButtonRefs:a,tabsList:i,panelsList:n}},computed:{tabsClasses(){return{[this.$style.tabs]:!0,[this.$style["tabs-vertical"]]:!!this.isVertical}},tablistClasses(){return{[this.$style["tab-list-base"]]:!this.isSkinned,[this.$style["tab-list"]]:!!this.isSkinned,[this.$style["tab-borderless"]]:this.isBorderless}}},methods:{focusTab(t,l){let s=t;l==="asc"?s+=1:l==="desc"&&(s-=1),s<0?s=this.tabsList.length-1:s>=this.tabsList.length&&(s=0);const i=this.tabButtonRefs[s];i&&(i.disabled&&l?this.focusTab(s,l):i.focus())},onKeyDown(t,l){switch(t.key){case"Up":case"ArrowUp":this.isVertical&&this.focusTab(l,"desc");break;case"Down":case"ArrowDown":this.isVertical&&this.focusTab(l,"asc");break;case"Left":case"ArrowLeft":this.isVertical||this.focusTab(l,"desc");break;case"Right":case"ArrowRight":this.isVertical||this.focusTab(l,"asc");break;case"Home":case"ArrowHome":this.focusTab(0);break;case"End":case"ArrowEnd":this.focusTab(this.tabsList.length-1);break;case"Enter":case"Space":this.focusTab(l),this.selectTab(this.tabsList[l]);break;default:return}t.preventDefault()},isTabDisabled(t){if(this.isDisabled||this.disabledOptions&&this.disabledOptions.includes(t))return!0},tabButtonClasses(t){return this.tabType==="tab"?{[this.$style["tab-item"]]:!0,[this.$style["tab-button"]]:!0,[this.$style.active]:t===this.activeTab,[this.$style["tab-button-large"]]:this.size==="large",[this.$style["tab-button-xlarge"]]:this.size==="xlarge"}:{[this.$style["tab-button-base"]]:!0,[this.$style.active]:t===this.activeTab}}}},ls=["aria-orientation"],rs=["id","aria-controls","disabled","tabindex","aria-selected","onClick","onKeydown"],is=["id","aria-labelledby","hidden"];function ns(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tabsClasses)},[e.createElementVNode("div",{role:"tablist",class:e.normalizeClass(a.tablistClasses),"aria-orientation":s.isVertical?"vertical":"horizontal"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsList,(r,d)=>(e.openBlock(),e.createElementBlock("button",{id:r,key:r,ref:i.setTabButtonRefs,role:"tab","aria-controls":`${r.replace("tab","panel")}`,disabled:a.isTabDisabled(r),tabindex:r===i.activeTab?"0":"-1","aria-selected":r===i.activeTab,class:e.normalizeClass(a.tabButtonClasses(r)),onClick:e.withModifiers(b=>i.selectTab(r),["prevent"]),onKeydown:b=>a.onKeyDown(b,d)},[e.renderSlot(t.$slots,r)],42,rs))),128))],10,ls),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.panelsList,r=>(e.openBlock(),e.createElementBlock("div",{id:r,key:r,"aria-labelledby":`${r.replace("panel","tab")}`,hidden:i.activeTab!==r.replace("panel","tab"),class:e.normalizeClass(t.$style["tab-panel"]),tabindex:"0",role:"tabpanel"},[e.renderSlot(t.$slots,i.activeTab.replace("tab","panel"))],10,is))),128))],2)}const L={};L.$style=ss;var os=o(as,[["render",ns],["__cssModules",L]]);const ds="_table_cmss1_2";var cs={table:ds,"table-caps":"_table-caps_cmss1_40","caption-top":"_caption-top_cmss1_54","caption-bottom":"_caption-bottom_cmss1_58","caption-end":"_caption-end_cmss1_72","table-small":"_table-small_cmss1_76","table-large":"_table-large_cmss1_80","table-xlarge":"_table-xlarge_cmss1_84","table-bordered":"_table-bordered_cmss1_88","table-borderless":"_table-borderless_cmss1_96","table-striped":"_table-striped_cmss1_104","table-active":"_table-active_cmss1_110","table-hoverable":"_table-hoverable_cmss1_116","table-stacked":"_table-stacked_cmss1_123","table-responsive":"_table-responsive_cmss1_178","table-responsive-small":"_table-responsive-small_cmss1_185","table-responsive-medium":"_table-responsive-medium_cmss1_192","table-responsive-large":"_table-responsive-large_cmss1_199","table-responsive-xlarge":"_table-responsive-xlarge_cmss1_206","table-header-container":"_table-header-container_cmss1_212","table-sort-label":"_table-sort-label_cmss1_217","table-sort":"_table-sort_cmss1_217","icon-sort":"_icon-sort_cmss1_235","icon-sort-ascending":"_icon-sort-ascending_cmss1_241","icon-sort-descending":"_icon-sort-descending_cmss1_245"};const us={name:"AgTable",props:{headers:{type:Array,default:()=>[]},rows:{type:Array,default:()=>[]},caption:{type:String,required:!0},captionPosition:{type:String,required:!1,default:"hidden",validator:t=>["top","bottom","end","hidden"].includes(t)},tableSize:{type:String,required:!1,default:"",validator:t=>["","small","large","xlarge"].includes(t)},responsiveSize:{type:String,required:!1,default:"",validator:t=>["","small","medium","large","xlarge"].includes(t)},isUppercasedHeaders:{type:Boolean,default:!1},isBordered:{type:Boolean,default:!1},isBorderless:{type:Boolean,default:!1},isStriped:{type:Boolean,default:!1},isHoverable:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1}},setup(t){const l=e.useCssModule();let s=e.ref("none"),i=e.ref("");const n=[...t.rows];let a=e.ref([...n]);const r=(u,p)=>{const c=u[i.value]===null||u[i.value]===void 0?-1/0:u[i.value],h=p[i.value]===null||p[i.value]===void 0?-1/0:p[i.value];return{colLeft:c,colRight:h}},d=(u,p)=>{let{colLeft:c,colRight:h}=r(u,p);const f=t.headers.find(y=>y.key===i.value&&!!y.sortFn);return f&&f.sortFn?f.sortFn(c,h):(c=typeof c=="string"?c.toLowerCase().replace(/(^\$|,)/g,""):c,h=typeof h=="string"?h.toLowerCase().replace(/(^\$|,)/g,""):h,c=Number.isNaN(Number(c))?c:Number(c),h=Number.isNaN(Number(h))?h:Number(h),c>h?1:c<h?-1:0)},b=(u,p)=>d(u,p)*-1;return e.watch([s,i],u=>{const p=u[0];let c=t.rows;p==="ascending"?c.sort(d):p==="descending"?c.sort(b):c=[...n],a.value=c}),{direction:s,getSortDirectionFor:u=>i.value!==u?"none":s.value,getSortingClassesFor:u=>i.value===u?{[l[`icon-sort-${s.value}`]]:s&&s.value!=="none",[l["icon-sort"]]:!0}:{[l["icon-sort"]]:!0},handleSortClicked:u=>{switch(i.value!==u&&(s.value="none",i.value=u),s.value){case"ascending":s.value="descending";break;case"descending":s.value="none";break;case"none":s.value="ascending";break;default:console.warn("Table sorting only supports directions: ascending | descending | none")}},sortingKey:i,sortableItems:a}},computed:{captionClasses(){return{["screenreader-only"]:this.captionPosition==="hidden",[this.$style[`caption-${this.captionPosition}`]]:this.captionPosition!=="hidden"}},tableResponsiveClasses(){return{[this.$style["table-responsive"]]:!this.responsiveSize,[this.$style[`table-responsive-${this.responsiveSize}`]]:!!this.responsiveSize}},tableClasses(){return{[this.$style.table]:!0,[this.$style[`table-${this.tableSize}`]]:this.tableSize,[this.$style["table-caps"]]:this.isUppercasedHeaders,[this.$style["table-bordered"]]:this.isBordered,[this.$style["table-borderless"]]:this.isBorderless,[this.$style["table-striped"]]:this.isStriped,[this.$style["table-hoverable"]]:this.isHoverable,[this.$style["table-stacked"]]:this.isStacked}}}},_s=["aria-sort"],hs=["onClick"],bs={class:e.normalizeClass("screenreader-only")},ps={key:1},fs=["innerHTML"],ys={key:1};function ms(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.tableResponsiveClasses)},[e.createElementVNode("table",{class:e.normalizeClass(a.tableClasses)},[e.createElementVNode("caption",{class:e.normalizeClass(a.captionClasses)},e.toDisplayString(s.caption),3),e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.headers,r=>(e.openBlock(),e.createElementBlock("th",{key:r.key,"aria-sort":i.getSortDirectionFor(r.key),scope:"col",style:e.normalizeStyle({width:r.width?r.width:"auto"})},[r.sortable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.$style["table-header-container"]])},[e.createElementVNode("span",{class:e.normalizeClass([t.$style["table-sort-label"]])},e.toDisplayString(r.label),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.$style["table-sort"]]),onClick:d=>i.handleSortClicked(r.key)},[e.createElementVNode("span",bs,e.toDisplayString(r.label),1),e.createElementVNode("span",{class:e.normalizeClass(i.getSortingClassesFor(r.key))},null,2)],10,hs)],2)):(e.openBlock(),e.createElementBlock("span",ps,e.toDisplayString(r.label),1))],12,_s))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.sortableItems,(r,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(r),(b,_)=>(e.openBlock(),e.createElementBlock("td",{key:_},[s.headers[_].renderFn?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:s.headers[_].renderFn(r[b])},null,8,fs)):(e.openBlock(),e.createElementBlock("div",ys,e.toDisplayString(r[b]),1))]))),128))]))),128))])],2)],2)}const V={};V.$style=cs;var gs=o(us,[["render",ms],["__cssModules",V]]);const ks="_tag_2luww_2";var vs={"tag-base":"_tag-base_2luww_2",tag:ks,"tag-skin":"_tag-skin_2luww_9","tag-info":"_tag-info_2luww_21","tag-warning":"_tag-warning_2luww_26","tag-error":"_tag-error_2luww_31","tag-success":"_tag-success_2luww_36","tag-upper":"_tag-upper_2luww_41","tag-circle":"_tag-circle_2luww_46","tag-round":"_tag-round_2luww_50","tag-pill":"_tag-pill_2luww_54"};const $s={name:"AgTag",props:{isSkinned:{type:Boolean,required:!1,default:!0},isUppercase:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"",validator:t=>["warning","error","info","success",""].includes(t)},shape:{type:String,required:!1,default:"",validator:t=>["pill","circle","round","square",""].includes(t)}},computed:{tagClasses(){return{[this.$style.tag]:!!this.isSkinned,[this.$style["tag-base"]]:!this.isSkinned,[this.$style[`tag-${this.type}`]]:!!this.type,[this.$style[`tag-${this.shape}`]]:!!this.shape,[this.$style["tag-upper"]]:!!this.isUppercase}}}};function Bs(t,l,s,i,n,a){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(a.tagClasses)},[e.renderSlot(t.$slots,"default")],2)}const R={};R.$style=vs;var Cs=o($s,[["render",Bs],["__cssModules",R]]);exports.Alert=W;exports.Avatar=te;exports.AvatarGroup=ie;exports.Breadcrumb=pe;exports.Button=$e;exports.ButtonGroup=ze;exports.Card=De;exports.ChoiceInput=Re;exports.Close=Ge;exports.Disclose=Xe;exports.Header=lt;exports.HeaderNav=ot;exports.HeaderNavItem=_t;exports.Icon=pt;exports.Input=zt;exports.InputAddonItem=At;exports.Progress=It;exports.Select=Kt;exports.Switch=Xt;exports.Table=gs;exports.Tabs=os;exports.Tag=Cs;
{
"name": "agnostic-vue",
"version": "1.0.4",
"version": "1.0.5",
"description": "AgnosticUI (Vue)",

@@ -32,9 +32,9 @@ "author": "Rob Levin <roblevinillustration@gmail.com>",

"scripts": {
"test": "jest",
"test": "jest --passWithNoTests",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore src",
"lint:fix": "yarn lint --fix",
"cp:css": "cp ./src/css/common.min.css ./dist/common.min.css",
"cp:css": "cp ./src/css/*.css ./dist",
"syncStyles": "node copystyles.js",
"dev": "vite --port 3011",
"build": "vite build && yarn cp:css",
"build": "yarn syncStyles && vite build && yarn cp:css",
"serve": "vite preview",

@@ -41,0 +41,0 @@ "storybook": "yarn syncStyles && start-storybook -p 6006",

@@ -18,4 +18,6 @@ export { default as Alert } from './Alert.vue';

export { default as Progress } from './Progress.vue';
export { default as Select } from './Select.vue';
export { default as Switch } from './Switch.vue';
export { default as Tabs } from './Tabs.vue';
export { default as Table } from './Table.vue';
export { default as Tag } from './Tag.vue';

@@ -6,14 +6,11 @@ import AgnosticCard from "../components/Card.vue";

component: AgnosticCard,
argTypes: {
isSkinned: { control: "boolean" },
isStacked: { control: "boolean" },
css: { control: "text" }
}
};
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
const Template = (args) => ({
components: { AgnosticCard },
setup() {
return { args };
},
template:
'<agnostic-card v-bind="$props"><div style="padding: 24px;">First div</div><div style="padding: 24px;">Second div</div></agnostic-card>',
'<agnostic-card v-bind="args"><div style="padding: 24px;">First div</div><div style="padding: 24px;">Second div</div></agnostic-card>',
});

@@ -24,12 +21,56 @@

export const CardStacked = Template.bind({});
CardStacked.args = {
export const CardBorder = Template.bind({});
CardBorder.args = {
isBorder: true,
};
export const CardBorderRounded = Template.bind({});
CardBorderRounded.args = {
isBorder: true,
isRounded: true,
};
export const CardStackedBorder = Template.bind({});
CardStackedBorder.args = {
isBorder: true,
isStacked: true,
};
export const CardAnimated = Template.bind({});
CardAnimated.args = {
export const CardStackedShadow = Template.bind({});
CardStackedShadow.args = {
isShadow: true,
isStacked: true,
};
export const CardStackedShadowAnimated = Template.bind({});
CardStackedShadowAnimated.args = {
isStacked: true,
isShadow: true,
isAnimated: true,
};
export const CardSuccess = Template.bind({});
CardSuccess.args = {
isStacked: true,
type: "success",
};
export const CardInfo = Template.bind({});
CardInfo.args = {
isStacked: true,
type: "info",
};
export const CardWarning = Template.bind({});
CardWarning.args = {
isStacked: true,
type: "warning",
};
export const CardError = Template.bind({});
CardError.args = {
isStacked: true,
type: "error",
};
export const CardUnskinned = Template.bind({});

@@ -39,1 +80,6 @@ CardUnskinned.args = {

};
export const CardCustomCSS = Template.bind({});
CardCustomCSS.args = {
css: "foo-bar",
};

@@ -8,13 +8,10 @@ import AgnosticHeader from "../components/Header.vue";

components: [AgnosticHeader, AgnosticHeaderNav, AgnosticHeaderNavItem],
argTypes: {
isSkinned: { control: "boolean" },
isSticky: { control: "boolean" },
css: { control: "text" }
}
};
const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
const Template = (args) => ({
components: { AgnosticHeader, AgnosticHeaderNav, AgnosticHeaderNavItem },
template: '<AgnosticHeader v-bind="$props"><template v-slot:logoleft><a href="#">Logo on Left</a></template><template v-slot:headernav><AgnosticHeaderNav><AgnosticHeaderNavItem><a href="#">Home</a></AgnosticHeaderNavItem><AgnosticHeaderNavItem><a href="#">About</a></AgnosticHeaderNavItem></AgnosticHeaderNav></template><template v-slot:logoright><a href="#">Logo on Right</a></template></AgnosticHeader>'
setup() {
return { args };
},
template: '<AgnosticHeader v-bind="args"><template v-slot:logoleft><a href="#">Logo on Left</a></template><template v-slot:headernav><AgnosticHeaderNav><AgnosticHeaderNavItem><a href="#">Home</a></AgnosticHeaderNavItem><AgnosticHeaderNavItem><a href="#">About</a></AgnosticHeaderNavItem></AgnosticHeaderNav></template><template v-slot:logoright><a href="#">Logo on Right</a></template></AgnosticHeader>'
});

@@ -21,0 +18,0 @@

@@ -6,7 +6,2 @@ import AgnosticProgress from '../components/Progress.vue';

component: AgnosticProgress,
argTypes: {
value: { control: "number" },
max: { control: "number" },
css: { control: "text" }
}
};

@@ -13,0 +8,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc