@quidgest/ui 0.16.53 → 0.16.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/api.json +13 -2
- package/dist/ui.esm.js +251 -251
- package/dist/ui.js +4 -4
- package/dist/ui.min.js +7 -7
- package/dist/ui.scss +2 -2
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +1 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +24 -22
- package/esm/components/QBadgeIndicator/index.d.ts +3 -0
- package/esm/components/QBadgeIndicator/index.d.ts.map +1 -1
- package/esm/components/QBadgeIndicator/types.d.ts +7 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -1
- package/esm/components/QIcon/InlineSvg.js +8 -8
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +44 -46
- package/package.json +1 -1
package/dist/ui.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self)["Quidgest UI"]={},e.Vue)}(this,(function(e,t){"use strict"
|
|
2
2
|
var a=Object.defineProperty,n=(e,t,n)=>((e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n)
|
|
3
3
|
/*!
|
|
4
|
-
* Quidgest UI v0.16.
|
|
5
|
-
* (c)
|
|
4
|
+
* Quidgest UI v0.16.54
|
|
5
|
+
* (c) 2026 Quidgest - Consultores de Gestão, S.A.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
|
8
8
|
const l={primary:"#008ad2",primaryLight:"#cde5ff",primaryDark:"#006398",secondary:"#001d31",secondaryLight:"#e6eef3",secondaryDark:"#001425",highlight:"#ff8241",highlightLight:"#ffe4d6",highlightDark:"#cc4700",info:"#17a2b8",infoLight:"#bceff7",infoDark:"#11798a",success:"#28a745",successLight:"#c2f0cd",successDark:"#1e7d34",warning:"#ffa900",warningLight:"#ffeabf",warningDark:"#bf7f00",danger:"#b71c1c",dangerLight:"#f7cccc",dangerDark:"#891515",background:"#fff",container:"#fff",neutral:"#7c858d",neutralLight:"#c4c5ca",neutralDark:"#40474f",onPrimary:"#fff",onPrimaryLight:"#202428",onPrimaryDark:"#fff",onSecondary:"#fff",onSecondaryLight:"#202428",onSecondaryDark:"#fff",onHighlight:"#fff",onHighlightLight:"#202428",onHighlightDark:"#fff",onInfo:"#fff",onInfoLight:"#202428",onInfoDark:"#fff",onSuccess:"#fff",onSuccessLight:"#202428",onSuccessDark:"#fff",onWarning:"#fff",onWarningLight:"#202428",onWarningDark:"#fff",onDanger:"#fff",onDangerLight:"#202428",onDangerDark:"#fff",onBackground:"#202428",onContainer:"#202428",onNeutral:"#fff",onNeutralLight:"#202428",onNeutralDark:"#fff"},o={primary:"#4da6e0",primaryLight:"#1a2832",primaryDark:"#87c5f0",secondary:"#b8d4e6",secondaryLight:"#1a2832",secondaryDark:"#e6f2ff",highlight:"#ff9966",highlightLight:"#2d1a0f",highlightDark:"#ffb899",info:"#4cb8d1",infoLight:"#1f2a2d",infoDark:"#7dcce0",success:"#5cb85c",successLight:"#1e2a20",successDark:"#85d085",warning:"#ffcc4d",warningLight:"#332a1a",warningDark:"#ffd966",danger:"#e74c3c",dangerLight:"#2d1a1a",dangerDark:"#f17066",background:"#121212",container:"#1e1e1e",neutral:"#9ca3ab",neutralLight:"#2a2d31",neutralDark:"#c8ced6",onPrimary:"#000",onPrimaryLight:"#e0e0e0",onPrimaryDark:"#000",onSecondary:"#000",onSecondaryLight:"#e0e0e0",onSecondaryDark:"#000",onHighlight:"#000",onHighlightLight:"#e0e0e0",onHighlightDark:"#000",onInfo:"#000",onInfoLight:"#e0e0e0",onInfoDark:"#000",onSuccess:"#000",onSuccessLight:"#e0e0e0",onSuccessDark:"#000",onWarning:"#000",onWarningLight:"#e0e0e0",onWarningDark:"#000",onDanger:"#000",onDangerLight:"#e0e0e0",onDangerDark:"#000",onBackground:"#e0e0e0",onContainer:"#e0e0e0",onNeutral:"#000",onNeutralLight:"#e0e0e0",onNeutralDark:"#000"},r=Object.freeze(Object.defineProperty({__proto__:null,defaultDarkColorScheme:o,defaultLightColorScheme:l},Symbol.toStringTag,{value:"Module"}))
|
|
@@ -122,7 +122,7 @@ return n}},render(){if(!this.svgElSource)return null
|
|
|
122
122
|
const e=this.getSvgContent(this.svgElSource)
|
|
123
123
|
if(!e)return t.h("div",this.$attrs)
|
|
124
124
|
const a={}
|
|
125
|
-
return this.copySvgAttrs(a,this.svgElSource),this.copySvgAttrs(a,e),this.copyComponentAttrs(a,this.$attrs),a.innerHTML=e.innerHTML,t.h("svg",a)},expose:[]})
|
|
125
|
+
return this.copySvgAttrs(a,this.svgElSource),this.copySvgAttrs(a,e),this.copyComponentAttrs(a,this.$attrs),a.innerHTML=e.innerHTML,this.$attrs.id||delete a.id,t.h("svg",a)},expose:[]})
|
|
126
126
|
const me=t.defineComponent({__name:"QIconSvg",props:{id:{},class:{},icon:{},bundle:{default:""}},emits:["loaded","unloaded"],setup(e,{emit:a}){const n=e,l=a
|
|
127
127
|
function o(e){l("loaded",e)}function r(){l("unloaded")}return(e,a)=>(t.openBlock(),t.createBlock(t.unref(pe),{id:n.id,class:t.normalizeClass(["q-icon","q-icon__svg",n.class]),src:n.bundle,symbol:n.icon,onLoaded:o,onUnloaded:r},null,8,["id","class","src","symbol"]))}}),ve=B(re),fe=B(se),he=B(de),ye=B(me),ge=B(t.defineComponent({__name:"QChevron",props:t.mergeModels({id:{},class:{},icons:{default:()=>k}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),l=t.computed((()=>["q-chevron",{"q-chevron--expanded":n.value},a.class]))
|
|
128
128
|
return(e,n)=>(t.openBlock(),t.createBlock(t.unref(ve),t.mergeProps({id:a.id,class:l.value},a.icons.chevron),null,16,["id","class"]))}})),ke={key:0,class:"q-collapsible__header"},be={class:"q-collapsible__title"},we={class:"q-collapsible__title-text"},_e={key:1,class:"q-collapsible--required"},xe={key:0,class:"q-collapsible__subtitle"},Be={class:"q-collapsible__content-inner"},Ce={class:"q-collapsible__content"},Se=B(t.defineComponent({__name:"QCollapsible",props:t.mergeModels({id:{},class:{},title:{},subtitle:{},variant:{},iconRight:{type:Boolean},spacing:{},width:{default:"fit-content"},required:{type:Boolean},icons:{default:()=>b}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=e,n=t.useModel(e,"modelValue"),l=t.computed((()=>"block"===a.width?"block":void 0)),o=t.computed((()=>["q-collapsible",a.spacing&&"comfortable"!==a.spacing?`q-collapsible--${a.spacing}`:void 0,a.variant&&"default"!==a.variant?`q-collapsible--${a.variant}`:void 0,{"q-collapsible--icon-right":a.iconRight},a.class])),r=t.computed((()=>["q-collapsible__content-wrapper",{"q-collapsible__content-show":n.value}]))
|
|
@@ -137,8 +137,8 @@ return["small","medium","large"].includes(a.size)||(n["--q-avatar-size"]=a.size)
|
|
|
137
137
|
return(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["q-avatar",n.value,l.value]),style:t.normalizeStyle(r.value)},[e.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.src,alt:e.alt,class:"q-avatar-img"},null,8,Te)):e.initials?(t.openBlock(),t.createElementBlock("span",Ne,t.toDisplayString(e.initials.slice(0,2).toUpperCase()),1)):t.renderSlot(e.$slots,"fallback",{key:2})],6))}})),Pe={remove:{icon:"close"}},Ae={removeText:"Remove"},Re=["id","role","tabindex","onKeydown"],ze={key:0,class:"q-badge__underlay"},Le={class:"q-badge__content"},Oe=B(t.defineComponent({__name:"QBadge",props:{id:{},class:{},variant:{default:"tonal"},color:{default:"primary"},pill:{type:Boolean},size:{default:"default"},disabled:{type:Boolean},removable:{type:Boolean},icons:{default:()=>Pe},texts:{default:()=>Ae}},emits:["click:remove"],setup(e,{emit:a}){const n=e,l=a,o=t.useAttrs(),r=t.computed((()=>!!o.onClick)),i=t.computed((()=>{const e=s.value?`q-badge--${n.color}`:void 0,t="default"!==n.size?`q-badge--${n.size}`:void 0
|
|
138
138
|
return["q-badge",`q-badge--${n.variant}`,e,t,{"q-badge--pill":n.pill,"q-badge--disabled":n.disabled,"q-badge--clickable":r.value&&!n.disabled},n.class]})),{isUtilityColor:s,style:u}=U(t.toRef(n,"color")),d=t.computed((()=>{var e,t,a,n
|
|
139
139
|
if(!s.value)return{"--q-badge-main-color":null==(e=u.value)?void 0:e.mainColor,"--q-badge-on-main-color":null==(t=u.value)?void 0:t.onMainColor,"--q-badge-hover-color":null==(a=u.value)?void 0:a.hoverColor,"--q-badge-on-hover-color":null==(n=u.value)?void 0:n.onHoverColor}}))
|
|
140
|
-
function c(e){e.stopImmediatePropagation()}function p(){l("click:remove")}return(e,a)=>(t.openBlock(),t.createElementBlock("span",{id:n.id,class:t.normalizeClass(i.value),role:r.value?"button":"presentation",style:t.normalizeStyle(d.value),tabindex:r.value?0:void 0,onKeydown:t.withKeys(t.withModifiers(c,["stop","prevent"]),["enter"])},["tonal"===n.variant?(t.openBlock(),t.createElementBlock("div",ze)):t.createCommentVNode("",!0),t.createElementVNode("div",Le,[t.renderSlot(e.$slots,"default"),n.removable?(t.openBlock(),t.createBlock(t.unref(X),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,title:n.texts.removeText,disabled:n.disabled,onClick:p},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.remove)),null,16)])),_:1},8,["color","aria-label","title","disabled"])):t.createCommentVNode("",!0)])],46,Re))}})),Ie=["id"],Fe=B(t.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"}},setup(e){const a=e,n=t.useSlots(),l=t.computed((()=>!a.content&&!n.content)),o=t.computed((()=>["q-badge-indicator",`q-badge-indicator--${a.placement}`,{"q-badge-indicator--dot":l.value}]))
|
|
141
|
-
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-badge-indicator__wrapper",a.class])},[t.renderSlot(e.$slots,"default"),t.
|
|
140
|
+
function c(e){e.stopImmediatePropagation()}function p(){l("click:remove")}return(e,a)=>(t.openBlock(),t.createElementBlock("span",{id:n.id,class:t.normalizeClass(i.value),role:r.value?"button":"presentation",style:t.normalizeStyle(d.value),tabindex:r.value?0:void 0,onKeydown:t.withKeys(t.withModifiers(c,["stop","prevent"]),["enter"])},["tonal"===n.variant?(t.openBlock(),t.createElementBlock("div",ze)):t.createCommentVNode("",!0),t.createElementVNode("div",Le,[t.renderSlot(e.$slots,"default"),n.removable?(t.openBlock(),t.createBlock(t.unref(X),{key:0,class:"q-badge__remove",pill:"",borderless:"",tabindex:"0",color:n.color,"aria-label":n.texts.removeText,title:n.texts.removeText,disabled:n.disabled,onClick:p},{default:t.withCtx((()=>[t.createVNode(t.unref(ve),t.normalizeProps(t.guardReactiveProps(n.icons.remove)),null,16)])),_:1},8,["color","aria-label","title","disabled"])):t.createCommentVNode("",!0)])],46,Re))}})),Ie=["id"],Fe=B(t.defineComponent({__name:"QBadgeIndicator",props:{id:{},class:{},content:{},color:{default:"highlight"},placement:{default:"top-right"},enabled:{type:Boolean,default:!0}},setup(e){const a=e,n=t.useSlots(),l=t.computed((()=>!a.content&&!n.content)),o=t.computed((()=>["q-badge-indicator",`q-badge-indicator--${a.placement}`,{"q-badge-indicator--dot":l.value}]))
|
|
141
|
+
return(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-badge-indicator__wrapper",a.class])},[t.renderSlot(e.$slots,"default"),a.enabled?(t.openBlock(),t.createBlock(t.unref(Oe),{key:0,pill:"",variant:"bold",class:t.normalizeClass(o.value),color:a.color},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"content",{},(()=>[t.createTextVNode(t.toDisplayString(a.content),1)]))])),_:3},8,["class","color"])):t.createCommentVNode("",!0)],10,Ie))}})),Ye=["id"],Qe=B(t.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},block:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},disabled:{type:Boolean}},setup(e){const a=e
|
|
142
142
|
return c({QButton:{disabled:t.toRef(a,"disabled"),borderless:t.toRef(a,"borderless")}}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-button-group",{"q-button-group--elevated":a.elevated,"q-button-group--block":a.block},a.class]),role:"group"},[t.renderSlot(e.$slots,"default")],10,Ye))}})),He={back:{icon:"chevron-left"},forward:{icon:"chevron-right"}},We={previousText:"Previous",nextText:"Next",goToSlide:"Go to slide {0}"},Ue=["id"],je=B(t.defineComponent({__name:"QSkeletonLoader",props:{id:{},class:{},width:{},height:{},type:{}},setup(e){const a=e,n=t.computed((()=>a.type?`q-skeleton-loader--${a.type}`:void 0)),l=t.computed((()=>({width:"number"==typeof a.width?`${a.width}px`:a.width,height:"number"==typeof a.height?`${a.height}px`:a.height})))
|
|
143
143
|
return(e,o)=>(t.openBlock(),t.createElementBlock("div",{id:a.id,class:t.normalizeClass(["q-skeleton-loader",n.value,a.class]),style:t.normalizeStyle(l.value)},o[0]||(o[0]=[t.createElementVNode("div",{class:"q-skeleton-loader__bone"},null,-1)]),14,Ue))}})),Ge=["id"],Ke={key:0,class:"q-carousel__skeleton"},Xe={class:"q-carousel__skeleton-caption"},Ze={key:0,class:"q-carousel__skeleton-controls"},Je=["onClick"],et=["src","alt"],tt={key:1,class:"q-carousel__empty-container"},at={key:2,class:"q-carousel__caption-global"},nt={key:0,class:"q-carousel__title"},lt={key:1,class:"q-carousel__subtitle"},ot={key:3,class:"q-carousel__indicators"},rt=["aria-label","aria-current","onClick"],it={class:"q-carousel__sr-only"},st={class:"q-carousel__sr-only"},ut=B(t.defineComponent({__name:"QCarousel",props:t.mergeModels({id:{},class:{},slides:{default:()=>[]},showIndicators:{type:Boolean},showControls:{type:Boolean},autoCycleInterval:{default:5e3},autoCyclePause:{default:"hover"},ride:{default:"carousel"},swipeThreshold:{default:50},wrap:{type:Boolean,default:!0},animationDuration:{default:500},loading:{type:Boolean},icons:{default:()=>He},texts:{default:()=>We}},{currentSlide:{default:0},currentSlideModifiers:{}}),emits:t.mergeModels(["slide:before-change","slide:after-change","slide:click"],["update:currentSlide"]),setup(e,{emit:a}){const n=e,l=a,o=t.useModel(e,"currentSlide"),r=t.ref(0)
|
|
144
144
|
let i=!1,s=!1,u=0,d=0
|
|
@@ -1382,8 +1382,8 @@ const t=new Map
|
|
|
1382
1382
|
return null==(e=n.items)||e.forEach(((e,a)=>{t.set(e.key,a)})),t})),b=t.computed((()=>{var e
|
|
1383
1383
|
return null==(e=g.value)?void 0:e.map((e=>e[n.itemLabel])).join(", ")})),w=t.computed((()=>n.clearable&&!n.readonly&&!n.disabled&&!n.loading&&!y.value))
|
|
1384
1384
|
function _(e){var t
|
|
1385
|
-
return null==(t=n.items)?void 0:t.find((t=>t[n.itemValue]===e))}function x(e){Array.isArray(e)?(o.value=e.sort(((e,t)=>k.value.get(e)-k.value.get(t))),A()):(o.value=e,M())}function B(){x(n.emptyValue),q()}function S(e){var t,a,n;(null==(t=m.value)||!t.contains(e.relatedTarget))&&(null==(n=null==(a=d.value)?void 0:a.fieldRef)||!n.contains(e.relatedTarget))&&M()}function V(){s.value||(l("before-show"),s.value=!0)}function M(){s.value&&(l("before-hide"),s.value=!1)}function $(){n.readonly||n.disabled||(s.value?M():V())}function E(e){!e.key||n.readonly||n.disabled||(["Enter"," ","ArrowDown","ArrowUp","Home","End","Delete"].includes(e.key)&&(e.preventDefault(),e.stopPropagation()),["Enter"," ","ArrowDown"].includes(e.key)&&V(),["Escape","Tab"].includes(e.key)&&(s.value?M():w.value&&"Escape"===e.key&&B()),w.value&&"Delete"===e.key&&B())}function D(e){1===e.key.length&&e.preventDefault(),E(e)}function T(){
|
|
1386
|
-
n.loading?null==(e=m.value)||e.focus():P(),l("show")}
|
|
1385
|
+
return null==(t=n.items)?void 0:t.find((t=>t[n.itemValue]===e))}function x(e){Array.isArray(e)?(o.value=e.sort(((e,t)=>k.value.get(e)-k.value.get(t))),A()):(o.value=e,M())}function B(){x(n.emptyValue),q()}function S(e){var t,a,n;(null==(t=m.value)||!t.contains(e.relatedTarget))&&(null==(n=null==(a=d.value)?void 0:a.fieldRef)||!n.contains(e.relatedTarget))&&M()}function V(){s.value||(l("before-show"),s.value=!0)}function M(){s.value&&(l("before-hide"),s.value=!1)}function $(){n.readonly||n.disabled||(s.value?M():V())}function E(e){!e.key||n.readonly||n.disabled||(["Enter"," ","ArrowDown","ArrowUp","Home","End","Delete"].includes(e.key)&&(e.preventDefault(),e.stopPropagation()),["Enter"," ","ArrowDown"].includes(e.key)&&V(),["Escape","Tab"].includes(e.key)&&(s.value?M():w.value&&"Escape"===e.key&&B()),w.value&&"Delete"===e.key&&B())}function D(e){1===e.key.length&&e.preventDefault(),E(e)}async function T(){var e
|
|
1386
|
+
await t.nextTick(),n.loading?null==(e=m.value)||e.focus():P(),l("show")}function N(){q(),l("hide")}function q(){var e
|
|
1387
1387
|
null==(e=c.value)||e.focus()}function P(){var e
|
|
1388
1388
|
null==(e=p.value)||e.$el.focus()}async function A(){var e
|
|
1389
1389
|
if(await t.nextTick(),await t.nextTick(),!n.multiple||!n.badges||!f.value)return
|
package/dist/ui.scss
CHANGED
|
@@ -12,6 +12,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
12
12
|
declare const __VLS_component: import('vue').DefineComponent<QBadgeIndicatorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QBadgeIndicatorProps> & Readonly<{}>, {
|
|
13
13
|
color: string;
|
|
14
14
|
placement: import('./types').QBadgeIndicatorPlacement;
|
|
15
|
+
enabled: boolean;
|
|
15
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QBadgeIndicator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/QBadgeIndicator.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"QBadgeIndicator.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/QBadgeIndicator.vue"],"names":[],"mappings":"AAiBA;AAsDC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAiCpD,iBAAS,cAAc;WAiDT,OAAO,IAA6B;;yBAXrB,GAAG;yBACH,GAAG;;;;EAe/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;wFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { QBadge as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, useSlots as p, computed as o, createElementBlock as u, openBlock as a, normalizeClass as n, renderSlot as l, createBlock as m, createCommentVNode as f, unref as g, withCtx as _, createTextVNode as b, toDisplayString as h } from "vue";
|
|
2
|
+
import { QBadge as B } from "../QBadge/index.js";
|
|
3
|
+
const v = ["id"], y = /* @__PURE__ */ i({
|
|
4
4
|
__name: "QBadgeIndicator",
|
|
5
5
|
props: {
|
|
6
6
|
id: {},
|
|
7
7
|
class: {},
|
|
8
8
|
content: {},
|
|
9
9
|
color: { default: "highlight" },
|
|
10
|
-
placement: { default: "top-right" }
|
|
10
|
+
placement: { default: "top-right" },
|
|
11
|
+
enabled: { type: Boolean, default: !0 }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
13
|
+
setup(c) {
|
|
14
|
+
const e = c, s = p(), r = o(() => !e.content && !s.content), d = o(() => [
|
|
14
15
|
"q-badge-indicator",
|
|
15
|
-
`q-badge-indicator--${
|
|
16
|
+
`q-badge-indicator--${e.placement}`,
|
|
16
17
|
{
|
|
17
|
-
"q-badge-indicator--dot":
|
|
18
|
+
"q-badge-indicator--dot": r.value
|
|
18
19
|
}
|
|
19
20
|
]);
|
|
20
|
-
return (
|
|
21
|
-
id:
|
|
22
|
-
class:
|
|
21
|
+
return (t, k) => (a(), u("div", {
|
|
22
|
+
id: e.id,
|
|
23
|
+
class: n(["q-badge-indicator__wrapper", e.class])
|
|
23
24
|
}, [
|
|
24
|
-
|
|
25
|
-
m(
|
|
25
|
+
l(t.$slots, "default"),
|
|
26
|
+
e.enabled ? (a(), m(g(B), {
|
|
27
|
+
key: 0,
|
|
26
28
|
pill: "",
|
|
27
29
|
variant: "bold",
|
|
28
|
-
class:
|
|
29
|
-
color:
|
|
30
|
+
class: n(d.value),
|
|
31
|
+
color: e.color
|
|
30
32
|
}, {
|
|
31
|
-
default:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
h(
|
|
33
|
+
default: _(() => [
|
|
34
|
+
l(t.$slots, "content", {}, () => [
|
|
35
|
+
b(
|
|
36
|
+
h(e.content),
|
|
35
37
|
1
|
|
36
38
|
/* TEXT */
|
|
37
39
|
)
|
|
@@ -39,10 +41,10 @@ const q = ["id"], S = /* @__PURE__ */ d({
|
|
|
39
41
|
]),
|
|
40
42
|
_: 3
|
|
41
43
|
/* FORWARDED */
|
|
42
|
-
}, 8, ["class", "color"])
|
|
43
|
-
], 10,
|
|
44
|
+
}, 8, ["class", "color"])) : f("v-if", !0)
|
|
45
|
+
], 10, v));
|
|
44
46
|
}
|
|
45
47
|
});
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
y as default
|
|
48
50
|
};
|
|
@@ -2,6 +2,7 @@ declare const QBadgeIndicator: {
|
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
3
|
color: string;
|
|
4
4
|
placement: import('./types').QBadgeIndicatorPlacement;
|
|
5
|
+
enabled: boolean;
|
|
5
6
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
7
|
P: {};
|
|
7
8
|
B: {};
|
|
@@ -12,6 +13,7 @@ declare const QBadgeIndicator: {
|
|
|
12
13
|
}, Readonly<import('./types').QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
13
14
|
color: string;
|
|
14
15
|
placement: import('./types').QBadgeIndicatorPlacement;
|
|
16
|
+
enabled: boolean;
|
|
15
17
|
}>;
|
|
16
18
|
__isFragment?: never;
|
|
17
19
|
__isTeleport?: never;
|
|
@@ -19,6 +21,7 @@ declare const QBadgeIndicator: {
|
|
|
19
21
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types').QBadgeIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
20
22
|
color: string;
|
|
21
23
|
placement: import('./types').QBadgeIndicatorPlacement;
|
|
24
|
+
enabled: boolean;
|
|
22
25
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
23
26
|
$slots: {
|
|
24
27
|
default?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoC,CAAA;AAGzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAG1B,cAAc,SAAS,CAAA"}
|
|
@@ -23,5 +23,12 @@ export type QBadgeIndicatorProps = QBaseComponentProps & {
|
|
|
23
23
|
* @category Presentation
|
|
24
24
|
*/
|
|
25
25
|
placement?: QBadgeIndicatorPlacement;
|
|
26
|
+
/**
|
|
27
|
+
* Whether to display the indicator.
|
|
28
|
+
* Used in situations where the indicator can be shown or hidden depending on system state.
|
|
29
|
+
*
|
|
30
|
+
* @category Content
|
|
31
|
+
*/
|
|
32
|
+
enabled?: boolean;
|
|
26
33
|
};
|
|
27
34
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,+DAA+D;AAC/D,MAAM,MAAM,wBAAwB,GACjC,WAAW,GACX,YAAY,GACZ,UAAU,GACV,cAAc,GACd,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,CAAA;AAEhB,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IACxD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QBadgeIndicator/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,+DAA+D;AAC/D,MAAM,MAAM,wBAAwB,GACjC,WAAW,GACX,YAAY,GACZ,UAAU,GACV,cAAc,GACd,aAAa,GACb,cAAc,GACd,eAAe,GACf,aAAa,CAAA;AAEhB,MAAM,MAAM,oBAAoB,GAAG,mBAAmB,GAAG;IACxD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;OAKG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAA;IAEpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, h as s } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const i = {}, h = a({
|
|
3
3
|
name: "InlineSvg",
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
props: {
|
|
@@ -78,11 +78,11 @@ const o = {}, h = a({
|
|
|
78
78
|
*/
|
|
79
79
|
async getSource(t) {
|
|
80
80
|
try {
|
|
81
|
-
|
|
82
|
-
const e = await
|
|
81
|
+
i[t] || (i[t] = u(this.download(t))), this.svgElSource && i[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
82
|
+
const e = await i[t];
|
|
83
83
|
this.svgElSource = e, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
84
84
|
} catch (e) {
|
|
85
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
85
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete i[t], this.$emit("error", e);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
@@ -93,9 +93,9 @@ const o = {}, h = a({
|
|
|
93
93
|
async download(t) {
|
|
94
94
|
const e = await fetch(t);
|
|
95
95
|
if (!e.ok) throw new Error("Error loading SVG");
|
|
96
|
-
const r = await e.text(),
|
|
97
|
-
if (!
|
|
98
|
-
return
|
|
96
|
+
const r = await e.text(), o = new DOMParser().parseFromString(r, "text/xml").getElementsByTagName("svg")[0];
|
|
97
|
+
if (!o) throw new Error("Loaded file is not a valid SVG");
|
|
98
|
+
return o;
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
render() {
|
|
@@ -103,7 +103,7 @@ const o = {}, h = a({
|
|
|
103
103
|
const t = this.getSvgContent(this.svgElSource);
|
|
104
104
|
if (!t) return s("div", this.$attrs);
|
|
105
105
|
const e = {};
|
|
106
|
-
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, s("svg", e);
|
|
106
|
+
return this.copySvgAttrs(e, this.svgElSource), this.copySvgAttrs(e, t), this.copyComponentAttrs(e, this.$attrs), e.innerHTML = t.innerHTML, this.$attrs.id || delete e.id, s("svg", e);
|
|
107
107
|
},
|
|
108
108
|
expose: []
|
|
109
109
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoMA;
|
|
1
|
+
{"version":3,"file":"QSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/QSelect.vue"],"names":[],"mappings":"AAoMA;AA+hBC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAe1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAY,QAAQ,EAAgD,MAAM,KAAK,CAAA;AAMtF,KAAK,WAAW,GAAG,YAAY,CAAC;AAwUjC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,GAAG,CAAC;CAChB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkeT,OAAO,IAA6B;;yBAtBpB,GAAG;wBACJ,GAAG;wBACH,GAAG;gCACK,GAAG;;;YACZ,GAAG;+BACM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCArX5B,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyYxD;AAoCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhbT,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAF7C,GAAG,8CACL,GAAG,yBACG,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAubvD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as
|
|
1
|
+
import { defineComponent as fe, mergeModels as Z, useModel as me, toRef as z, ref as ee, useTemplateRef as g, onMounted as pe, computed as q, nextTick as $, watch as D, createElementBlock as c, openBlock as a, Fragment as y, createVNode as T, unref as o, normalizeClass as ve, createSlots as be, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as h, normalizeProps as te, createElementVNode as ae, vModelText as ge, renderSlot as k, withModifiers as he } from "vue";
|
|
2
2
|
import { DEFAULT_TEXTS as ke, DEFAULT_ICONS as _e } from "./constants.js";
|
|
3
|
-
import { QBadge as
|
|
3
|
+
import { QBadge as M } from "../QBadge/index.js";
|
|
4
4
|
import { QButton as qe } from "../QButton/index.js";
|
|
5
5
|
import { QField as we } from "../QField/index.js";
|
|
6
|
-
import { QIcon as
|
|
6
|
+
import { QIcon as Q } from "../QIcon/index.js";
|
|
7
7
|
import { QList as Be } from "../QList/index.js";
|
|
8
8
|
import { QOverlay as Ce } from "../QOverlay/index.js";
|
|
9
9
|
import { QSpinnerLoader as Ve } from "../QSpinnerLoader/index.js";
|
|
10
10
|
import { QChevron as Le } from "../__internal__/QChevron/index.js";
|
|
11
11
|
import { QClearButton as Ee } from "../__internal__/QClearButton/index.js";
|
|
12
12
|
import { useId as xe } from "../../composables/uid.js";
|
|
13
|
-
import { useGroup as
|
|
14
|
-
const
|
|
13
|
+
import { useGroup as $e } from "../../composables/useGroup/index.js";
|
|
14
|
+
const De = {
|
|
15
15
|
key: 0,
|
|
16
16
|
ref: "badgesContainer",
|
|
17
17
|
class: "q-select__badge-container"
|
|
18
|
-
},
|
|
18
|
+
}, Te = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "q-select__value"
|
|
21
21
|
}, Me = {
|
|
@@ -55,10 +55,10 @@ const $e = {
|
|
|
55
55
|
}),
|
|
56
56
|
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
57
57
|
setup(O, { emit: oe }) {
|
|
58
|
-
const e = O, C = oe, r = me(O, "modelValue"),
|
|
58
|
+
const e = O, C = oe, r = me(O, "modelValue"), R = xe(z(e, "id")), { active: F } = $e({
|
|
59
59
|
active: r,
|
|
60
|
-
required:
|
|
61
|
-
multiple:
|
|
60
|
+
required: z(e, "required"),
|
|
61
|
+
multiple: z(e, "multiple")
|
|
62
62
|
}), u = ee(!1), V = ee(0), K = g("trigger"), ie = g("input"), ne = g("list"), U = g("content"), N = g("badgesContainer"), W = g("allBadges");
|
|
63
63
|
pe(x);
|
|
64
64
|
const P = q(() => s.value.length === 0), s = q(() => {
|
|
@@ -73,7 +73,7 @@ const $e = {
|
|
|
73
73
|
return (t = e.items) == null || t.forEach((d, i) => {
|
|
74
74
|
l.set(d.key, i);
|
|
75
75
|
}), l;
|
|
76
|
-
}),
|
|
76
|
+
}), S = q(
|
|
77
77
|
() => {
|
|
78
78
|
var l;
|
|
79
79
|
return (l = s.value) == null ? void 0 : l.map((t) => t[e.itemLabel]).join(", ");
|
|
@@ -88,11 +88,11 @@ const $e = {
|
|
|
88
88
|
function se(l) {
|
|
89
89
|
e.multiple && l < r.value.length && (!e.required || r.value.length > 1) ? F.value = r.value.toSpliced(l, 1) : _();
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function A(l) {
|
|
92
92
|
Array.isArray(l) ? (r.value = l.sort((t, d) => H.value.get(t) - H.value.get(d)), x()) : (r.value = l, E());
|
|
93
93
|
}
|
|
94
94
|
function _() {
|
|
95
|
-
|
|
95
|
+
A(e.emptyValue), J();
|
|
96
96
|
}
|
|
97
97
|
function re(l) {
|
|
98
98
|
var t, d, i;
|
|
@@ -107,17 +107,15 @@ const $e = {
|
|
|
107
107
|
function X() {
|
|
108
108
|
e.readonly || e.disabled || (u.value ? E() : G());
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function I(l) {
|
|
111
111
|
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && G(), ["Escape", "Tab"].includes(l.key) && (u.value ? E() : L.value && l.key === "Escape" && _()), L.value && l.key === "Delete" && _());
|
|
112
112
|
}
|
|
113
113
|
function de(l) {
|
|
114
|
-
l.key.length === 1 && l.preventDefault(),
|
|
114
|
+
l.key.length === 1 && l.preventDefault(), I(l);
|
|
115
115
|
}
|
|
116
|
-
function ue() {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
|
|
120
|
-
}, 0);
|
|
116
|
+
async function ue() {
|
|
117
|
+
var l;
|
|
118
|
+
await $(), e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
|
|
121
119
|
}
|
|
122
120
|
function ce() {
|
|
123
121
|
J(), C("hide");
|
|
@@ -132,7 +130,7 @@ const $e = {
|
|
|
132
130
|
}
|
|
133
131
|
async function x() {
|
|
134
132
|
var n;
|
|
135
|
-
if (await
|
|
133
|
+
if (await $(), await $(), !e.multiple || !e.badges || !N.value) return;
|
|
136
134
|
let l = 0, t = 0;
|
|
137
135
|
const d = N.value.offsetWidth, i = 4;
|
|
138
136
|
for (const b of W.value ?? []) {
|
|
@@ -143,19 +141,19 @@ const $e = {
|
|
|
143
141
|
}
|
|
144
142
|
V.value = (((n = W.value) == null ? void 0 : n.length) ?? 0) - t;
|
|
145
143
|
}
|
|
146
|
-
return
|
|
144
|
+
return D(
|
|
147
145
|
() => e.loading,
|
|
148
146
|
(l) => {
|
|
149
|
-
!l && u.value &&
|
|
147
|
+
!l && u.value && $(Y);
|
|
150
148
|
}
|
|
151
|
-
),
|
|
149
|
+
), D(() => e.badges, x), D(() => e.clearable, x), D(F, A), (l, t) => {
|
|
152
150
|
var d;
|
|
153
151
|
return a(), c(
|
|
154
152
|
y,
|
|
155
153
|
null,
|
|
156
154
|
[
|
|
157
|
-
|
|
158
|
-
id: o(
|
|
155
|
+
T(o(we), {
|
|
156
|
+
id: o(R),
|
|
159
157
|
ref: "trigger",
|
|
160
158
|
label: e.label,
|
|
161
159
|
required: e.required,
|
|
@@ -173,7 +171,7 @@ const $e = {
|
|
|
173
171
|
size: e.size,
|
|
174
172
|
invalid: e.invalid,
|
|
175
173
|
onClick: X,
|
|
176
|
-
onKeydown:
|
|
174
|
+
onKeydown: I
|
|
177
175
|
}, be({
|
|
178
176
|
append: f(() => [
|
|
179
177
|
k(l.$slots, "append"),
|
|
@@ -195,7 +193,7 @@ const $e = {
|
|
|
195
193
|
onClick: X
|
|
196
194
|
}, {
|
|
197
195
|
default: f(() => [
|
|
198
|
-
|
|
196
|
+
T(o(Le), {
|
|
199
197
|
"model-value": u.value,
|
|
200
198
|
icons: e.icons
|
|
201
199
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -225,7 +223,7 @@ const $e = {
|
|
|
225
223
|
[
|
|
226
224
|
e.badges ? (a(), c(
|
|
227
225
|
"span",
|
|
228
|
-
|
|
226
|
+
De,
|
|
229
227
|
[
|
|
230
228
|
e.multiple ? (a(), c(
|
|
231
229
|
y,
|
|
@@ -238,7 +236,7 @@ const $e = {
|
|
|
238
236
|
y,
|
|
239
237
|
{ key: n },
|
|
240
238
|
[
|
|
241
|
-
n < r.value.length - V.value ? (a(), m(o(
|
|
239
|
+
n < r.value.length - V.value ? (a(), m(o(M), {
|
|
242
240
|
key: 0,
|
|
243
241
|
pill: "",
|
|
244
242
|
disabled: e.readonly || e.disabled,
|
|
@@ -250,7 +248,7 @@ const $e = {
|
|
|
250
248
|
var b, v;
|
|
251
249
|
return [
|
|
252
250
|
(b = s.value[n]) != null && b.icon ? (a(), m(
|
|
253
|
-
o(
|
|
251
|
+
o(Q),
|
|
254
252
|
B({
|
|
255
253
|
key: 0,
|
|
256
254
|
ref_for: !0
|
|
@@ -276,7 +274,7 @@ const $e = {
|
|
|
276
274
|
128
|
|
277
275
|
/* KEYED_FRAGMENT */
|
|
278
276
|
)),
|
|
279
|
-
V.value > 0 ? (a(), m(o(
|
|
277
|
+
V.value > 0 ? (a(), m(o(M), {
|
|
280
278
|
key: 0,
|
|
281
279
|
pill: "",
|
|
282
280
|
class: "q-select__badge-count",
|
|
@@ -295,7 +293,7 @@ const $e = {
|
|
|
295
293
|
(a(!0), c(
|
|
296
294
|
y,
|
|
297
295
|
null,
|
|
298
|
-
le(r.value, (i, n) => (a(), m(o(
|
|
296
|
+
le(r.value, (i, n) => (a(), m(o(M), {
|
|
299
297
|
key: n,
|
|
300
298
|
ref_for: !0,
|
|
301
299
|
ref: "allBadges",
|
|
@@ -308,7 +306,7 @@ const $e = {
|
|
|
308
306
|
var b, v;
|
|
309
307
|
return [
|
|
310
308
|
(b = s.value[n]) != null && b.icon ? (a(), m(
|
|
311
|
-
o(
|
|
309
|
+
o(Q),
|
|
312
310
|
B({
|
|
313
311
|
key: 0,
|
|
314
312
|
ref_for: !0
|
|
@@ -333,7 +331,7 @@ const $e = {
|
|
|
333
331
|
],
|
|
334
332
|
64
|
|
335
333
|
/* STABLE_FRAGMENT */
|
|
336
|
-
)) : (a(), m(o(
|
|
334
|
+
)) : (a(), m(o(M), {
|
|
337
335
|
key: 1,
|
|
338
336
|
pill: "",
|
|
339
337
|
disabled: e.readonly || e.disabled,
|
|
@@ -345,7 +343,7 @@ const $e = {
|
|
|
345
343
|
var i, n;
|
|
346
344
|
return [
|
|
347
345
|
(i = s.value[0]) != null && i.icon ? (a(), m(
|
|
348
|
-
o(
|
|
346
|
+
o(Q),
|
|
349
347
|
te(B({ key: 0 }, s.value[0].icon)),
|
|
350
348
|
null,
|
|
351
349
|
16
|
|
@@ -366,8 +364,8 @@ const $e = {
|
|
|
366
364
|
/* NEED_PATCH */
|
|
367
365
|
)) : (a(), c(
|
|
368
366
|
"span",
|
|
369
|
-
|
|
370
|
-
h(
|
|
367
|
+
Te,
|
|
368
|
+
h(S.value),
|
|
371
369
|
1
|
|
372
370
|
/* TEXT */
|
|
373
371
|
))
|
|
@@ -376,10 +374,10 @@ const $e = {
|
|
|
376
374
|
/* STABLE_FRAGMENT */
|
|
377
375
|
)),
|
|
378
376
|
ye(ae("input", B({
|
|
379
|
-
id: `${o(
|
|
377
|
+
id: `${o(R)}_input`,
|
|
380
378
|
ref: "input"
|
|
381
379
|
}, l.$attrs, {
|
|
382
|
-
"onUpdate:modelValue": t[0] || (t[0] = (i) =>
|
|
380
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => S.value = i),
|
|
383
381
|
class: "q-select__input",
|
|
384
382
|
inputmode: "none",
|
|
385
383
|
type: "text",
|
|
@@ -391,7 +389,7 @@ const $e = {
|
|
|
391
389
|
"aria-keyshortcuts": L.value ? "Delete" : void 0,
|
|
392
390
|
onKeydown: de
|
|
393
391
|
}), null, 16, Qe), [
|
|
394
|
-
[ge,
|
|
392
|
+
[ge, S.value]
|
|
395
393
|
])
|
|
396
394
|
]),
|
|
397
395
|
_: 2
|
|
@@ -402,7 +400,7 @@ const $e = {
|
|
|
402
400
|
fn: f(() => [
|
|
403
401
|
k(l.$slots, "prepend"),
|
|
404
402
|
s.value.length === 1 && s.value[0].icon && !e.badges ? (a(), m(
|
|
405
|
-
o(
|
|
403
|
+
o(Q),
|
|
406
404
|
te(B({ key: 0 }, s.value[0].icon)),
|
|
407
405
|
null,
|
|
408
406
|
16
|
|
@@ -419,7 +417,7 @@ const $e = {
|
|
|
419
417
|
key: "1"
|
|
420
418
|
} : void 0
|
|
421
419
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "size", "invalid"]),
|
|
422
|
-
|
|
420
|
+
T(o(Ce), {
|
|
423
421
|
modelValue: u.value,
|
|
424
422
|
"onUpdate:modelValue": t[1] || (t[1] = (i) => u.value = i),
|
|
425
423
|
spy: "",
|
|
@@ -437,15 +435,15 @@ const $e = {
|
|
|
437
435
|
ae("div", {
|
|
438
436
|
ref: "content",
|
|
439
437
|
"data-testid": "combobox-dropdown",
|
|
440
|
-
"data-key": o(
|
|
438
|
+
"data-key": o(R),
|
|
441
439
|
class: "q-select__body",
|
|
442
440
|
tabindex: "-1",
|
|
443
441
|
onFocusout: re,
|
|
444
|
-
onKeydown: he(
|
|
442
|
+
onKeydown: he(I, ["stop"])
|
|
445
443
|
}, [
|
|
446
444
|
k(l.$slots, "body.prepend"),
|
|
447
445
|
e.loading ? (a(), c("div", Se, [
|
|
448
|
-
|
|
446
|
+
T(o(Ve), { size: 24 })
|
|
449
447
|
])) : (a(), m(o(Be), {
|
|
450
448
|
key: 1,
|
|
451
449
|
ref: "list",
|
|
@@ -458,7 +456,7 @@ const $e = {
|
|
|
458
456
|
groups: l.groups,
|
|
459
457
|
"item-label": e.itemLabel,
|
|
460
458
|
"item-value": e.itemValue,
|
|
461
|
-
"onUpdate:modelValue":
|
|
459
|
+
"onUpdate:modelValue": A
|
|
462
460
|
}, {
|
|
463
461
|
item: f(({ item: i }) => [
|
|
464
462
|
k(l.$slots, "item", { item: i })
|