@quidgest/ui 0.16.5 → 0.16.6
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/ui.esm.js +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.min.js +1 -1
- package/dist/ui.scss +2 -2
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ var ko = (t, e, a) => e in t ? _o(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ge = (t, e, a) => ko(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import { getCurrentInstance as _l, computed as T, ref as U, provide as kl, inject as _n, unref as f, isRef as un, watch as Ce, defineComponent as he, mergeModels as qe, toRef as Ue, useModel as Ve, createElementBlock as A, openBlock as v, normalizeClass as ue, renderSlot as S, normalizeStyle as Ge, withModifiers as gt, createCommentVNode as L, createElementVNode as ee, createVNode as ke, createTextVNode as ut, toDisplayString as Ae, useAttrs as $l, createBlock as oe, resolveDynamicComponent as ea, withCtx as j, Fragment as be, h as dn, mergeProps as Me, withKeys as cn, normalizeProps as Be, guardReactiveProps as je, useSlots as Wt, createSlots as Ye, withDirectives as ia, vModelDynamic as $o, vModelText as Rr, renderList as Ne, readonly as xo, customRef as Do, getCurrentScope as Lr, onScopeDispose as xl, shallowRef as ol, nextTick as Qe, toValue as Lt, onMounted as Je, useId as To, onUnmounted as Ct, reactive as Zt, onBeforeUnmount as Mo, Teleport as Br, Transition as Yt, render as Kl, onBeforeUpdate as Ao, vShow as on, useTemplateRef as Po, toHandlers as Co } from "vue";
|
|
5
5
|
/*!
|
|
6
|
-
* Quidgest UI v0.16.
|
|
6
|
+
* Quidgest UI v0.16.6
|
|
7
7
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
8
8
|
* Released under the MIT License.
|
|
9
9
|
*/
|
package/dist/ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(Ie,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(Ie=typeof globalThis<"u"?globalThis:Ie||self,e(Ie["Quidgest UI"]={},Ie.Vue))})(this,function(Ie,e){"use strict";var $y=Object.defineProperty;var vy=(Ie,e,pt)=>e in Ie?$y(Ie,e,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ie[e]=pt;var se=(Ie,e,pt)=>vy(Ie,typeof e!="symbol"?e+"":e,pt);/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.6
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/const pt={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",onBackground:"#202428",onPrimary:"#fff",onSecondary:"#fff",onHighlight:"#fff",onSuccess:"#fff",onWarning:"#fff",onDanger:"#fff",onInfo:"#fff",onNeutral:"#fff"},or={primary:"#008ad2",primaryLight:"#006398",primaryDark:"#cde5ff",secondary:"#003552",secondaryLight:"#001425",secondaryDark:"#e6eef3",highlight:"#ff8241",highlightLight:"#cc4700",highlightDark:"#ffe4d6",info:"#17a2b8",infoLight:"#11798a",infoDark:"#bceff7",success:"#28a745",successLight:"#1e7d34",successDark:"#c2f0cd",warning:"#ffa900",warningLight:"#bf7f00",warningDark:"#ffeabf",danger:"#b71c1c",dangerLight:"#891515",dangerDark:"#f7cccc",background:"#202428",container:"#202428",neutral:"#9299a0",neutralLight:"#40474f",neutralDark:"#c4c5ca",onBackground:"#fff",onPrimary:"#fff",onSecondary:"#fff",onHighlight:"#fff",onSuccess:"#fff",onWarning:"#fff",onDanger:"#fff",onInfo:"#fff",onNeutral:"#fff"},To=Object.freeze(Object.defineProperty({__proto__:null,defaultDarkColorScheme:or,defaultLightColorScheme:pt},Symbol.toStringTag,{value:"Module"}));function Gn(n){return n==null?!0:typeof n=="string"||Array.isArray(n)?n.length===0:typeof n=="object"?Object.keys(n).length===0:!1}function sr(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)}function Zn(n={},t={}){const a={},r=new Set([...Object.keys(n),...Object.keys(t)]);for(const l of r){if(l==="__proto__"||l==="constructor"||l==="prototype")continue;const o=n[l],s=t[l];sr(o)&&sr(s)?a[l]=Zn(o,s):a[l]=s!==void 0?s:o}return a}const Jn="q-defaults";function Mo(){var o,s;const n=e.getCurrentInstance();if(!n)throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");const t=n.type.name??n.type.__name;if(!t)throw new Error("[Quidgest UI] Could not determine component name");const a=ir(),r=(o=a.value)==null?void 0:o.Global,l=(s=a.value)==null?void 0:s[t];return e.computed(()=>Zn(r,l))}function qt(n){if(Gn(n))return;const t=ir(),a=e.ref(n),r=e.computed(()=>Gn(a.value)?t.value:Zn(t.value,a.value));e.provide(Jn,r)}function ir(){const n=e.inject(Jn,void 0);if(!n)throw new Error("[Quidgest UI] Could not find defaults instance");return n}const dr=Symbol.for("q-group");function Bn(n){const t={active:e.ref(e.unref(n.multiple)?Array.isArray(e.unref(n.active))?e.unref(n.active):e.unref(n.active)!==void 0?[e.unref(n.active)]:[]:e.unref(n.active)),multiple:e.computed(()=>e.unref(n.multiple)||!1),required:e.computed(()=>e.unref(n.required)||!1)};return e.isRef(n.active)&&e.watch(n.active,a=>{t.active.value=a}),e.watch(()=>t.multiple.value,a=>{a&&t.active.value?t.active.value=[t.active.value]:a?t.active.value=[]:Array.isArray(t.active.value)&&t.active.value.length===1?t.active.value=t.active.value[0]:t.active.value=void 0}),e.provide(dr,t),t}function xn(n){const t=e.inject(dr,void 0);if(!t)return;const a=e.computed(()=>{var o;const l=e.unref(n);return Array.isArray(t.active.value)?(o=t.active.value)==null?void 0:o.includes(l):t.active.value===l});return{isActive:a,toggle:()=>{var o,s,i;const l=e.unref(n);Array.isArray(t.active.value)?a.value?(!((o=t.required)!=null&&o.value)||t.active.value.length>1)&&(t.active.value=(s=t.active.value)==null?void 0:s.filter(u=>u!==l)):t.active.value.push(l):t.active.value!==l?t.active.value=l:(i=t.required)!=null&&i.value||(t.active.value=void 0)}}}const Eo=["id"],Po=e.defineComponent({__name:"QAccordion",props:e.mergeModels({id:{},class:{},variant:{},spacing:{},iconRight:{type:Boolean},multiple:{type:Boolean}},{modelValue:{type:[String,Number,Boolean,Symbol,Array]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=n;qt({QCollapsible:{iconRight:e.toRef(t,"iconRight"),spacing:e.toRef(t,"spacing"),variant:e.toRef(t,"variant"),width:"block"}});const a=e.useModel(n,"modelValue"),{active:r}=Bn({active:a,multiple:e.toRef(t,"multiple")});return e.watch(r,l=>{a.value=l}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-accordion",t.class])},[e.renderSlot(l.$slots,"default")],10,Eo))}}),$n={chevron:{icon:"chevron-down"}},No={...$n},Vo=["id"],Ao=e.defineComponent({__name:"QSpinnerLoader",props:{id:{},class:{},size:{default:48}},setup(n){const t=n,a=e.computed(()=>({"font-size":t.size!==48?`${t.size}px`:void 0}));return(r,l)=>(e.openBlock(),e.createElementBlock("div",{id:t.id,class:e.normalizeClass(["q-spinner-loader",t.class]),style:e.normalizeStyle(a.value)},null,14,Vo))}});function qo(n){return n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").trim().split(/\s+/)}function cr(n){return qo(n).join("-").toLowerCase()}function Oo(n,t){var r;const a=cr(t);return a?typeof((r=n.props)==null?void 0:r[a])<"u":!1}function ie(n){const t=n,a=t.setup;return a&&(t.setup=(r,l)=>{const o=Mo();if(Gn(o.value))return a(r,l);const s=e.getCurrentInstance();if(s===null)return a(r,l);const i=new Proxy(r,{get(d,u){var p;const m=Reflect.get(d,u),f=(p=o.value)==null?void 0:p[u];return typeof u=="string"&&!Oo(s.vnode,u)?f??m:m}});return a(i,l)}),n}const en=ie(Ao);function ur(n,t=!1){return t?/^#[a-fA-F0-9]{6}$/.test(n):/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n)}function Ro(n){const t=n.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(t){const a=parseInt(t[1],10),r=parseInt(t[2],10),l=parseInt(t[3],10);return{r:a,g:r,b:l}}}function fr(n){if(ur(n)){n.length===4&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]);const t=parseInt(n.slice(1,3),16),a=parseInt(n.slice(3,5),16),r=parseInt(n.slice(5,7),16);return{r:t,g:a,b:r}}else{const t=Ro(n);if(t)return t}throw new Error("Invalid color format")}function Io(n,t){const a=pr(n),r=t/100;return a.l=a.l-r*a.l,zo(a)}function Lo(n){const t=n.r.toString(16).padStart(2,"0"),a=n.g.toString(16).padStart(2,"0"),r=n.b.toString(16).padStart(2,"0");return`#${t}${a}${r}`}function mr(n){return`${n.r} ${n.g} ${n.b}`}function pr(n){const t=n.r/255,a=n.g/255,r=n.b/255,l=Math.max(t,a,r),o=Math.min(t,a,r);let s=0,i;const d=(l+o)/2;if(l===o)s=i=0;else{const u=l-o;switch(i=d>.5?u/(2-l-o):u/(l+o),l){case t:s=(a-r)/u+(a<r?6:0);break;case a:s=(r-t)/u+2;break;case r:s=(t-a)/u+4;break}s/=6}return{h:Math.round(s*360),s:Math.round(i*100),l:Math.round(d*100)}}function zo(n){const t=n.h/360,a=n.s/100,r=n.l/100;let l,o,s;if(a===0)l=o=s=r;else{const i=r<.5?r*(1+a):r+a-r*a,d=2*r-i;l=ea(d,i,t+1/3),o=ea(d,i,t),s=ea(d,i,t-1/3)}return{r:Math.round(l*255),g:Math.round(o*255),b:Math.round(s*255)}}function ea(n,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(t-n)*6*a:a<1/2?t:a<2/3?n+(t-n)*(2/3-a)*6:n}function Fo(n){return n>50?"#000":"#fff"}const hr="q-theme";function Yo(){let n=document.getElementById(hr);return n||(n=document.createElement("style"),n.id=hr,document.head.appendChild(n)),n}function Wo(n){let t="";for(const r of n){t+=`.q-theme--${r.name} {
|
package/dist/ui.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.
|
|
4
|
+
* Quidgest UI v0.16.6
|
|
5
5
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
6
6
|
* Released under the MIT License.
|
|
7
7
|
*/
|
package/dist/ui.scss
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Quidgest UI v0.16.
|
|
2
|
+
* Quidgest UI v0.16.6
|
|
3
3
|
* (c) 2025 Quidgest - Consultores de Gestão, S.A.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
+
@use 'sass:math';
|
|
6
7
|
|
|
7
8
|
*,
|
|
8
9
|
::before,
|
|
@@ -1522,7 +1523,6 @@ $transition-duration: 0.2s !default;
|
|
|
1522
1523
|
}
|
|
1523
1524
|
}
|
|
1524
1525
|
}
|
|
1525
|
-
@use 'sass:math';
|
|
1526
1526
|
.q-container {
|
|
1527
1527
|
width: 100%;
|
|
1528
1528
|
margin-left: auto;
|