maz-ui 3.44.4-beta.2 → 3.44.4-beta.5
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/modules/chunks/{MazBtn-DhVNaOBj.mjs → MazBtn-DxYbSFNY.mjs} +2 -2
- package/modules/chunks/{MazBtn-BLvj2Vcl.cjs → MazBtn-a4WapAam.cjs} +1 -1
- package/modules/chunks/{MazIcon-BhCADEJL.cjs → MazIcon-BNfrenqA.cjs} +1 -1
- package/modules/chunks/{MazIcon-ZPJHGsC7.mjs → MazIcon-DvI-njch.mjs} +1 -1
- package/modules/chunks/{MazSpinner-Dx_yL6x9.mjs → MazSpinner-BWGhong9.mjs} +1 -1
- package/modules/chunks/{MazSpinner-OdoRwyjg.cjs → MazSpinner-CMc5WJqh.cjs} +1 -1
- package/modules/chunks/{index-CgWq2KzW.mjs → index-CmxlTT9q.mjs} +306 -307
- package/modules/chunks/{index-BT3W7L22.cjs → index-DvulrgSW.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/modules/composables/use-form-validator/index.d.ts +4 -2
- package/types/modules/composables/use-form-validator/types.d.ts +7 -6
- package/types/modules/composables/use-form-validator/utils.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as h, useAttrs as j, useSlots as E, onBeforeMount as O, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as R, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
|
|
2
|
-
import { _ as w } from "./index-
|
|
2
|
+
import { _ as w } from "./index-CmxlTT9q.mjs";
|
|
3
3
|
import '../assets/MazBtn.css';const A = /* @__PURE__ */ F({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -25,7 +25,7 @@ import '../assets/MazBtn.css';const A = /* @__PURE__ */ F({
|
|
|
25
25
|
contentClass: { default: void 0 }
|
|
26
26
|
},
|
|
27
27
|
setup(g) {
|
|
28
|
-
const o = g, z = h(() => import("./MazSpinner-
|
|
28
|
+
const o = g, z = h(() => import("./MazSpinner-BWGhong9.mjs")), f = h(() => import("./MazIcon-DvI-njch.mjs")), { href: k, to: B } = j(), p = E();
|
|
29
29
|
O(() => {
|
|
30
30
|
o.icon && !o.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
31
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazBtn.css');const e=require("vue"),h=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazBtn.css');const e=require("vue"),h=require("./index-DvulrgSW.cjs"),C=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},roundedSize:{default:"lg"},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{type:[String,Function,Object],default:void 0},leftIcon:{type:[String,Function,Object],default:void 0},rightIcon:{type:[String,Function,Object],default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},contentClass:{default:void 0}},setup(u){const n=u,d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-CMc5WJqh.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-BNfrenqA.cjs"))),{href:m,to:p}=e.useAttrs(),a=e.useSlots();e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const r=e.computed(()=>m?"a":p?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),i=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),v=e.computed(()=>i.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),t=e.computed(()=>n.loading&&n.variant==="button"),c=e.computed(()=>!!a["left-icon"]||n.leftIcon),s=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>c.value||s.value),k=e.computed(()=>n.fab&&(n.icon||!!a.icon)),B=e.computed(()=>r.value==="button"?n.type:void 0);return(o,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:i.value||void 0,class:e.normalizeClass(["m-btn",[`--${o.size}`,!o.fab&&o.roundedSize&&`--rounded-${o.roundedSize}`,f.value,v.value,y.value,{"--block":o.block,"--no-underline":o.noUnderline,"--fab":o.fab,"--loading":o.loading,"--disabled":i.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:B.value},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":t.value}])},[e.createCommentVNode(`
|
|
2
2
|
@slot left-icon - The icon to display on the left of the button
|
|
3
3
|
`),e.renderSlot(o.$slots,"left-icon",{},()=>[typeof o.leftIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.leftIcon},null,8,["name"])):o.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.leftIcon),{key:1})):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),k.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["m-btn__icon",{"maz-invisible":t.value}])},[e.createCommentVNode(`
|
|
4
4
|
@slot icon - The icon to display on the fab button
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),C=require("./index-DvulrgSW.cjs"),T=["innerHTML"],b=t.defineComponent({__name:"MazIcon",props:{src:{type:String,default:void 0},path:{type:String,default:void 0},name:{type:String,default:void 0},size:{type:String,default:void 0},title:{type:String,default:void 0},transformSource:{type:Function,default:s=>s}},emits:["loaded","unloaded","error"],setup(s,{emit:v}){const l=s,d=v,a={},i=t.ref(),m=t.ref();function g(){try{return C.injectStrict("mazIconPath")}catch{return}}const f=t.computed(()=>l.path??g()),p=t.computed(()=>l.src?l.src:f.value?`${f.value}/${l.name}.svg`:`/${l.name}.svg`);t.onMounted(()=>{!l.name&&!l.src&&console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop')});function h(e,r){const n=e.querySelectorAll("title");if(n.length>0)n[0].textContent=r;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=r,e.append(o)}}function S(e){return Object.keys(e).reduce((r,n)=>(e[n]!==!1&&e[n]!==null&&e[n]!==void 0&&(r[n]=e[n]),r),{})}function y(e){const r={},n=e.attributes;if(!n)return r;for(let o=n.length-1;o>=0;o--)r[n[o].name]=n[o].value;return r}function w(e){let r=e.cloneNode(!0);return r=l.transformSource(e),l.title&&h(r,l.title),e.innerHTML}async function E(e){a[e]||(a[e]=M(e));try{i.value=await a[e],await t.nextTick(),d("loaded",m.value)}catch(r){i.value&&(i.value=void 0,d("unloaded")),delete a[e],d("error",r)}}function M(e){return new Promise((r,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.addEventListener("load",()=>{if(o.status>=200&&o.status<400)try{let c=new DOMParser().parseFromString(o.responseText,"text/xml").querySelectorAll("svg")[0];c?(c=l.transformSource(c),r(c)):n(new Error('Loaded file is not valid SVG"'))}catch(u){n(u)}else n(new Error("Error loading SVG"))}),o.addEventListener("error",u=>n(u)),o.send()})}return t.watchEffect(()=>E(p.value)),(e,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createCommentVNode(" eslint-disable vue/no-v-html "),t.createCommentVNode(" eslint-disable vue/html-self-closing "),i.value?(t.openBlock(),t.createElementBlock("svg",t.mergeProps({key:0,ref_key:"svgElem",ref:m,width:"1em",height:"1em"},{...y(i.value),...S(e.$attrs)},{style:`font-size: ${s.size}`,innerHTML:w(i.value)}),null,16,T)):t.createCommentVNode("v-if",!0),t.createCommentVNode(" eslint-enable vue/no-v-html "),t.createCommentVNode(" eslint-enable vue/html-self-closing ")],2112))}});exports.default=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, ref as v, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as i, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./index-
|
|
2
|
+
import { i as q } from "./index-CmxlTT9q.mjs";
|
|
3
3
|
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as o, createElementBlock as n, normalizeClass as s, pushScopeId as c, popScopeId as a, createElementVNode as r } from "vue";
|
|
2
|
-
import { _ as i } from "./index-
|
|
2
|
+
import { _ as i } from "./index-CmxlTT9q.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const p = (e) => (c("data-v-c16a57a3"), e = e(), a(), e), d = ["width", "height"], l = /* @__PURE__ */ p(() => /* @__PURE__ */ r(
|
|
4
4
|
"path",
|
|
5
5
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazSpinner.css');const t=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../assets/MazSpinner.css');const t=require("vue"),n=require("./index-DvulrgSW.cjs"),o=e=>(t.pushScopeId("data-v-c16a57a3"),e=e(),t.popScopeId(),e),c=["width","height"],s=o(()=>t.createElementVNode("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},null,-1)),r=[s],i=t.defineComponent({__name:"MazSpinner",props:{size:{type:String,default:"2em"},color:{type:String,default:"primary"}},setup(e){return(p,d)=>(t.openBlock(),t.createElementBlock("svg",{width:e.size,height:e.size,version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 50 50","xml:space":"preserve",class:t.normalizeClass(["m-spinner",`m-spinner--${e.color}`]),style:{"enable-background":"new 0 0 50 50"}},r,10,c))}}),a=n._export_sfc(i,[["__scopeId","data-v-c16a57a3"]]);exports.default=a;
|