@volverjs/ui-vue 0.0.10-beta.66 → 0.0.10-beta.67
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/Volver.d.ts +13 -1
- package/dist/components/VvInputText/VvInputText.es.js +2 -1
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +2 -1
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/index.es.js +4 -2
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +9 -1
- package/dist/index.umd.js +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -116,12 +116,14 @@ class Volver {
|
|
|
116
116
|
iconsProvider,
|
|
117
117
|
nuxt,
|
|
118
118
|
iconsCollections,
|
|
119
|
-
defaults
|
|
119
|
+
defaults,
|
|
120
|
+
experimentalFeatures
|
|
120
121
|
} = {}) {
|
|
121
122
|
__publicField(this, "_fetchOptions", {});
|
|
122
123
|
__publicField(this, "_iconsCollections", []);
|
|
123
124
|
__publicField(this, "_iconsProvider", DEFAULT_ICONIFY_PROVIDER);
|
|
124
125
|
__publicField(this, "_nuxt", false);
|
|
126
|
+
__publicField(this, "_experimentalFeatures", {});
|
|
125
127
|
__publicField(this, "defaults", ref({}));
|
|
126
128
|
if (fetchOptions) {
|
|
127
129
|
this._fetchOptions = fetchOptions;
|
|
@@ -146,6 +148,9 @@ class Volver {
|
|
|
146
148
|
if (defaults) {
|
|
147
149
|
this.defaults.value = defaults;
|
|
148
150
|
}
|
|
151
|
+
if (experimentalFeatures) {
|
|
152
|
+
this._experimentalFeatures = experimentalFeatures;
|
|
153
|
+
}
|
|
149
154
|
}
|
|
150
155
|
get nuxt() {
|
|
151
156
|
return this._nuxt;
|
|
@@ -156,6 +161,9 @@ class Volver {
|
|
|
156
161
|
get iconsCollections() {
|
|
157
162
|
return this._iconsCollections;
|
|
158
163
|
}
|
|
164
|
+
get experimentalFeatures() {
|
|
165
|
+
return this._experimentalFeatures;
|
|
166
|
+
}
|
|
159
167
|
addCollection(collection, providerName = this._iconsProvider) {
|
|
160
168
|
this._iconsCollections.push(collection);
|
|
161
169
|
return addCollection(collection, providerName);
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iconify/vue"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@iconify/vue","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).volver={},e.vue$1,e.vue)}(this,(function(e,t,n){"use strict";var i=Object.defineProperty,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iconify/vue"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@iconify/vue","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).volver={},e.vue$1,e.vue)}(this,(function(e,t,n){"use strict";var i=Object.defineProperty,r=(e,t,n)=>((e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const o=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),s=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),c=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),l=/[^\p{L}\d]+/giu,u="$1\0$2";function a(e){let t=e.trim();t=t.replace(o,u).replace(s,u),t=t.replace(l,"\0");let n=0,i=t.length;for(;"\0"===t.charAt(n);)n++;if(n===i)return[];for(;"\0"===t.charAt(i-1);)i--;return t.slice(n,i).split(/\0/g)}function f(e){const t=a(e);for(let n=0;n<t.length;n++){const e=t[n],i=c.exec(e);if(i){const r=i.index+(i[1]??i[2]).length;t.splice(n,1,e.slice(0,r),e.slice(r))}}return t}function d(e,t){const[n,i,r]=function(e,t={}){const n=t.split??(t.separateNumbers?f:a),i=t.prefixCharacters??"",r=t.suffixCharacters??"";let o=0,s=e.length;for(;o<e.length;){const t=e.charAt(o);if(!i.includes(t))break;o++}for(;s>o;){const t=s-1,n=e.charAt(t);if(!r.includes(n))break;s=t}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}(e,t);return n+i.map((o=null==t?void 0:t.locale,!1===o?e=>e.toLowerCase():e=>e.toLocaleLowerCase(o))).join((null==t?void 0:t.delimiter)??" ")+r;var o}const h=Symbol.for("volver");function p(e,t,n){const i=n||e.name;if(!i)return e;const r=null==t?void 0:t[i],o=e.props;return r&&o?{...e,name:i,props:Object.keys(o).reduce(((e,t)=>{if(!(t in r))return e[t]=o[t],e;const n=r[t];return"function"==typeof o[t]||Array.isArray(o[t])?(e[t]={type:o[t],default:n},e):(e[t]={...o[t],default:n},e)}),{})}:{...e,name:i}}class v{constructor({fetchWithCredentials:e,fetchOptions:t,iconsProvider:i,nuxt:o,iconsCollections:s,defaults:c,experimentalFeatures:l}={}){r(this,"_fetchOptions",{}),r(this,"_iconsCollections",[]),r(this,"_iconsProvider","vv"),r(this,"_nuxt",!1),r(this,"_experimentalFeatures",{}),r(this,"defaults",n.ref({})),t&&(this._fetchOptions=t),e&&(this._fetchOptions={...this._fetchOptions,credentials:"include"}),i&&(this._iconsProvider=i),o&&(this._nuxt=o),s&&Array.isArray(s)&&s.forEach((e=>{this.addCollection(e,this._iconsProvider)})),c&&(this.defaults.value=c),l&&(this._experimentalFeatures=l)}get nuxt(){return this._nuxt}get iconsProvider(){return this._iconsProvider}get iconsCollections(){return this._iconsCollections}get experimentalFeatures(){return this._experimentalFeatures}addCollection(e,n=this._iconsProvider){return this._iconsCollections.push(e),t.addCollection(e,n)}addIcon(e,n){return t.addIcon(e,n)}addIconsAPIProvider(e,n){return t.addAPIProvider(e,n)}fetchIcon(e,t={cache:"force-cache"}){return new Promise(((n,i)=>{fetch(e,{...this._fetchOptions,...t}).catch((e=>i(e))).then((e=>null==e?void 0:e.text())).then((e=>n(e)))}))}}const g={install(e,t={}){const n=new v(t);e.config.globalProperties.$vv=n,t.components&&Object.entries(t.components).forEach((([n,i])=>{e.component(n,p(i,t.defaults))})),t.aliases&&Object.entries(t.aliases).forEach((([n,i])=>{e.component(n,p(i,t.defaults,n))})),t.directives&&Object.entries(t.directives).forEach((([t,n])=>{const i=function(e,t){return d(e,{delimiter:"-",...t})}(t);i.startsWith("v-")&&(t=i.substring(2).toLocaleLowerCase()),e.directive(t,n)})),e.provide(h,n)}};e.VolverPlugin=g,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volverjs/ui-vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.10-beta.
|
|
4
|
+
"version": "0.0.10-beta.67",
|
|
5
5
|
"description": "@volverjs/ui-vue is a lightweight Vue 3 component library to accompany @volverjs/style.",
|
|
6
6
|
"author": "8 wave S.r.l.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
],
|
|
378
378
|
"peerDependencies": {
|
|
379
379
|
"@volverjs/style": "0.x",
|
|
380
|
-
"@vueuse/core": "^
|
|
380
|
+
"@vueuse/core": "^13.x",
|
|
381
381
|
"vue": "^3.5.x"
|
|
382
382
|
},
|
|
383
383
|
"dependencies": {
|
|
@@ -396,8 +396,8 @@
|
|
|
396
396
|
"yargs": "^17.7.2"
|
|
397
397
|
},
|
|
398
398
|
"devDependencies": {
|
|
399
|
-
"@antfu/eslint-config": "4.
|
|
400
|
-
"@babel/core": "^7.26.
|
|
399
|
+
"@antfu/eslint-config": "4.10.1",
|
|
400
|
+
"@babel/core": "^7.26.10",
|
|
401
401
|
"@babel/preset-env": "^7.26.9",
|
|
402
402
|
"@babel/preset-typescript": "^7.26.0",
|
|
403
403
|
"@iconify/types": "^2.0.0",
|