@volverjs/ui-vue 0.0.10-beta.66 → 0.0.10-beta.68
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 +6 -1
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +5 -2
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/index.es.js +11 -3
- 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/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +2 -27
- package/package.json +31 -31
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"})}));
|
|
@@ -4,33 +4,8 @@ declare const _default: {
|
|
|
4
4
|
id?: import("@storybook/types").ComponentId;
|
|
5
5
|
includeStories?: RegExp | string[];
|
|
6
6
|
excludeStories?: RegExp | string[];
|
|
7
|
-
component?: Omit<import("vue").ConcreteComponent<
|
|
8
|
-
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
modelValue: string | string[] | undefined;
|
|
11
|
-
not: boolean;
|
|
12
|
-
modifiers: string | string[];
|
|
13
|
-
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
14
|
-
itemModifiers: string | string[];
|
|
15
|
-
storageType: "local" | "session";
|
|
16
|
-
}> & Omit<{
|
|
17
|
-
readonly collapse: boolean;
|
|
18
|
-
readonly disabled: boolean;
|
|
19
|
-
readonly not: boolean;
|
|
20
|
-
readonly items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
21
|
-
readonly itemModifiers: string | string[];
|
|
22
|
-
readonly storageType: "local" | "session";
|
|
23
|
-
readonly modelValue?: string | string[] | undefined;
|
|
24
|
-
readonly modifiers?: string | string[] | undefined;
|
|
25
|
-
readonly storageKey?: string | undefined;
|
|
26
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "collapse" | "disabled" | "modelValue" | "not" | "modifiers" | "items" | "itemModifiers" | "storageType"> & {
|
|
27
|
-
default?: ((props: {
|
|
28
|
-
expandedAccordions: Set<string>;
|
|
29
|
-
expand: (name?: string | string[]) => void;
|
|
30
|
-
collapse: boolean & ((name?: string | string[]) => void);
|
|
31
|
-
}) => any) | import("vue").VNodeChild;
|
|
32
|
-
}>, "props"> | undefined;
|
|
33
|
-
subcomponents?: Record<string, Omit<import("vue").ConcreteComponent<unknown>, "props">> | undefined;
|
|
7
|
+
component?: Omit<import("vue").ConcreteComponent<any>, "props"> | undefined;
|
|
8
|
+
subcomponents?: Record<string, Omit<import("vue").ConcreteComponent<any>, "props">> | undefined;
|
|
34
9
|
play?: import("@storybook/types").PlayFunction<import("@storybook/vue3").VueRenderer, import("@storybook/vue3").ComponentPropsAndSlots<{
|
|
35
10
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
36
11
|
modelValue: {
|
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.68",
|
|
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,17 +377,17 @@
|
|
|
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": {
|
|
384
384
|
"@floating-ui/vue": "^1.1.6",
|
|
385
|
-
"@iconify/tools": "^4.1.
|
|
385
|
+
"@iconify/tools": "^4.1.2",
|
|
386
386
|
"@iconify/vue": "^4.3.0",
|
|
387
387
|
"blurhash": "^2.0.5",
|
|
388
388
|
"chokidar": "^4.0.3",
|
|
389
389
|
"comlink": "^4.4.2",
|
|
390
|
-
"jsdom": "^26.
|
|
390
|
+
"jsdom": "^26.1.0",
|
|
391
391
|
"mitt": "^3.0.1",
|
|
392
392
|
"pica": "^9.0.1",
|
|
393
393
|
"ts-dot-prop": "^2.1.4",
|
|
@@ -396,60 +396,60 @@
|
|
|
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.12.0",
|
|
400
|
+
"@babel/core": "^7.26.10",
|
|
401
401
|
"@babel/preset-env": "^7.26.9",
|
|
402
|
-
"@babel/preset-typescript": "^7.
|
|
402
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
403
403
|
"@iconify/types": "^2.0.0",
|
|
404
404
|
"@iconify/utils": "^2.3.0",
|
|
405
405
|
"@nabla/vite-plugin-eslint": "^2.0.5",
|
|
406
|
-
"@storybook/addon-a11y": "^8.6.
|
|
407
|
-
"@storybook/addon-actions": "^8.6.
|
|
408
|
-
"@storybook/addon-docs": "^8.6.
|
|
409
|
-
"@storybook/addon-essentials": "^8.6.
|
|
410
|
-
"@storybook/addon-interactions": "^8.6.
|
|
411
|
-
"@storybook/addon-links": "^8.6.
|
|
412
|
-
"@storybook/cli": "^8.6.
|
|
413
|
-
"@storybook/client-logger": "^8.6.
|
|
414
|
-
"@storybook/core-common": "^8.6.
|
|
415
|
-
"@storybook/preview-api": "^8.6.
|
|
416
|
-
"@storybook/test": "^8.6.
|
|
406
|
+
"@storybook/addon-a11y": "^8.6.12",
|
|
407
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
408
|
+
"@storybook/addon-docs": "^8.6.12",
|
|
409
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
410
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
411
|
+
"@storybook/addon-links": "^8.6.12",
|
|
412
|
+
"@storybook/cli": "^8.6.12",
|
|
413
|
+
"@storybook/client-logger": "^8.6.12",
|
|
414
|
+
"@storybook/core-common": "^8.6.12",
|
|
415
|
+
"@storybook/preview-api": "^8.6.12",
|
|
416
|
+
"@storybook/test": "^8.6.12",
|
|
417
417
|
"@storybook/test-runner": "^0.22.0",
|
|
418
|
-
"@storybook/types": "^8.6.
|
|
419
|
-
"@storybook/vue3": "^8.6.
|
|
420
|
-
"@storybook/vue3-vite": "^8.6.
|
|
418
|
+
"@storybook/types": "^8.6.12",
|
|
419
|
+
"@storybook/vue3": "^8.6.12",
|
|
420
|
+
"@storybook/vue3-vite": "^8.6.12",
|
|
421
421
|
"@tsconfig/node18": "^18.2.4",
|
|
422
422
|
"@types/jest-axe": "^3.5.9",
|
|
423
423
|
"@types/jsdom": "^21.1.7",
|
|
424
|
-
"@types/node": "^22.
|
|
424
|
+
"@types/node": "^22.14.1",
|
|
425
425
|
"@types/pica": "^9.0.5",
|
|
426
426
|
"@types/yargs": "^17.0.33",
|
|
427
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
427
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
428
428
|
"@vue/compiler-sfc": "^3.5.13",
|
|
429
429
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
430
430
|
"@vue/test-utils": "^2.4.6",
|
|
431
431
|
"@vue/tsconfig": "^0.7.0",
|
|
432
432
|
"change-case": "^5.4.4",
|
|
433
|
-
"eslint": "^9.
|
|
433
|
+
"eslint": "^9.24.0",
|
|
434
434
|
"glob": "^11.0.1",
|
|
435
435
|
"jest-axe": "^10.0.0",
|
|
436
436
|
"jest-diff": "^29.7.0",
|
|
437
437
|
"jest-get-type": "^29.6.3",
|
|
438
|
-
"jsdom": "^26.
|
|
438
|
+
"jsdom": "^26.1.0",
|
|
439
439
|
"npm-run-all": "^4.1.5",
|
|
440
440
|
"prettier": "^3.5.3",
|
|
441
441
|
"pretty-format": "^29.7.0",
|
|
442
442
|
"remark": "^15.0.1",
|
|
443
|
-
"sass": "^1.
|
|
444
|
-
"storybook": "^8.6.
|
|
443
|
+
"sass": "^1.86.3",
|
|
444
|
+
"storybook": "^8.6.12",
|
|
445
445
|
"storybook-addon-markdown-docs": "^2.0.0",
|
|
446
446
|
"storybook-dark-mode": "^4.0.2",
|
|
447
447
|
"terser": "^5.39.0",
|
|
448
448
|
"ts-node": "^10.9.2",
|
|
449
|
-
"typescript": "~5.8.
|
|
450
|
-
"unplugin-auto-import": "^19.1.
|
|
451
|
-
"unplugin-vue-components": "^28.
|
|
452
|
-
"vite": "^6.
|
|
449
|
+
"typescript": "~5.8.3",
|
|
450
|
+
"unplugin-auto-import": "^19.1.2",
|
|
451
|
+
"unplugin-vue-components": "^28.5.0",
|
|
452
|
+
"vite": "^6.3.1",
|
|
453
453
|
"vite-plugin-externalize-deps": "^0.9.0",
|
|
454
454
|
"vue-tsc": "^2.2.8"
|
|
455
455
|
},
|