@volverjs/ui-vue 0.0.13-beta.7 → 0.0.13-beta.8
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/README.md +2 -2
- package/bin/icons.cjs +2 -2
- package/bin/icons.js +45 -51
- package/dist/components/VvAccordion/VvAccordion.es.js +433 -192
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +529 -393
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAction/VvAction.es.js +349 -138
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +441 -280
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +486 -373
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAvatar/VvAvatar.es.js +353 -47
- package/dist/components/VvAvatar/VvAvatar.umd.js +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.es.js +381 -125
- package/dist/components/VvAvatarGroup/VvAvatarGroup.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.es.js +346 -49
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +393 -223
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvButton/VvButton.es.js +557 -496
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +380 -99
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvCard/VvCard.es.js +352 -59
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +530 -417
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +585 -581
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +1462 -2195
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.es.js +405 -152
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +535 -405
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +10 -0
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +456 -245
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +391 -47
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.es.js +337 -34
- package/dist/components/VvDropdownOptgroup/VvDropdownOptgroup.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +415 -129
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +52 -69
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.es.js +908 -1017
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +1067 -1591
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvNav/VvNav.es.js +409 -239
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +363 -161
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvNavSeparator/VvNavSeparator.es.js +10 -15
- package/dist/components/VvNavSeparator/VvNavSeparator.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.es.js +346 -63
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +505 -370
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +559 -533
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +586 -633
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvTab/VvTab.es.js +462 -339
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.es.js +839 -1204
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.es.js +349 -64
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvVirtualScroll/VvVirtualScroll.es.js +74 -76
- package/dist/components/VvVirtualScroll/VvVirtualScroll.umd.js +1 -1
- package/dist/components/index.es.js +3392 -5638
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/index.es.js +563 -173
- package/dist/composables/index.umd.js +420 -1
- package/dist/composables/useBlurhash.d.ts +1 -1
- package/dist/directives/index.es.js +836 -155
- package/dist/directives/index.umd.js +420 -1
- package/dist/directives/v-contextmenu.es.js +477 -79
- package/dist/directives/v-contextmenu.umd.js +420 -1
- package/dist/directives/v-tooltip.es.js +360 -77
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +26 -21
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +97 -119
- package/dist/index.umd.js +1 -1
- package/dist/resolvers/unplugin.es.js +85 -100
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/utils/DateUtilities.d.ts +0 -17
- package/package.json +28 -35
package/README.md
CHANGED
|
@@ -192,7 +192,7 @@ export type Alert = {
|
|
|
192
192
|
}
|
|
193
193
|
```
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
#### Usage
|
|
196
196
|
|
|
197
197
|
```typescript
|
|
198
198
|
import { useAlert } from '@volverjs/ui-vue/composables'
|
|
@@ -224,7 +224,7 @@ function showSuccess() {
|
|
|
224
224
|
|
|
225
225
|
Used to create blurred preview image ([blurhash](https://blurha.sh/))
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
#### Example
|
|
228
228
|
|
|
229
229
|
```typescript
|
|
230
230
|
import { useBlurhash } from '@volverjs/ui-vue/composables'
|
package/bin/icons.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
`)}):console.error(`There are no files in ${
|
|
1
|
+
(function(a,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("node:fs"),require("node:path"),require("yargs"),require("yargs/helpers"),require("@iconify/tools"),require("@iconify/utils"),require("chokidar")):typeof define=="function"&&define.amd?define(["exports","node:fs","node:path","yargs","yargs/helpers","@iconify/tools","@iconify/utils","chokidar"],o):(a=typeof globalThis<"u"?globalThis:a||self,o(a["generate-icons"]={},a.node_fs,a.node_path,a.yargs,a.yargs_helpers,a._iconify_tools,a._iconify_utils,a.chokidar))})(this,function(a,o,p,w,I,f,b,P){Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});var q=Object.create,S=Object.defineProperty,m=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,E=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,G=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(var s=_(r),l=0,O=s.length,i;l<O;l++)i=s[l],!x.call(e,i)&&i!==t&&S(e,i,{get:(c=>r[c]).bind(null,i),enumerable:!(n=m(r,i))||n.enumerable});return e},v=(e,r,t)=>(t=e!=null?q(E(e)):{},G(r||!e||!e.__esModule?S(t,"default",{value:e,enumerable:!0}):t,e));o=v(o),p=v(p),w=v(w),P=v(P);function j(e,r="iconify",t={}){return o.default.readdirSync(e).forEach(n=>{o.default.statSync(`${e}/${n}`).isDirectory()?t=j(`${e}/${n}`,n,t):n.includes(".svg")&&(t[r]?t[r].push(p.default.join(e,"/",n)):t[r]=[p.default.join(e,"/",n)])}),t}async function J(e,r,t,n){const s=(0,f.blankIconSet)(e);for(const i of r)try{const c=new f.SVG(await o.default.promises.readFile(i,{encoding:"utf-8"}));await(0,f.cleanupSVG)(c),n?.keepColors||await(0,f.parseColors)(c,{defaultColor:"currentColor",callback:(T,$,C)=>!C||(0,f.isEmptyColor)(C)||$.includes("var(")?$:"currentColor"}),await(0,f.runSVGO)(c);const N=i.replace(/^.*[\\/]/,"").split(".")[0].replace(/ /g,"-").replace(/[^a-z0-9-]/gi,"");s.fromSVG(N,c)}catch(c){console.error(c)}const l=s.export();try{(0,b.validateIconSet)(l)}catch(i){throw new Error(`Icon set is not valid: ${i?.message}`)}const O=`${t}/${l.prefix}.json`;o.default.mkdirSync(p.default.dirname(O),{recursive:!0}),o.default.writeFileSync(O,JSON.stringify(l))}function d(e,r,t){const n=j(e,t?.prefix);Object.keys(n).length?Object.keys(n).forEach(s=>{J(s,n[s],r,t),console.info(`Icons generated in: ${r}/${s}.json
|
|
2
|
+
`)}):console.error(`There are no files in ${e}`)}var y=(0,w.default)((0,I.hideBin)(process.argv)).argv,u=y.srcPath,h=y.destPath||u;(!u||!h)&&(console.error("Please specify the srcPath and destPath with --srcPath and --destPath"),process.exit());var g={prefix:y.prefix,keepColors:y.keepColors};y.watch?(d(u,h,g),P.default.watch(u,{ignoreInitial:!0}).on("add",()=>{d(u,h,g)}).on("change",()=>{d(u,h,g)})):d(u,h,g),a.createIconifyJsonFiles=d});
|
package/bin/icons.js
CHANGED
|
@@ -1,62 +1,56 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { hideBin as
|
|
6
|
-
import { blankIconSet as C,
|
|
7
|
-
import { validateIconSet as
|
|
8
|
-
import
|
|
9
|
-
function
|
|
10
|
-
return
|
|
11
|
-
|
|
12
|
-
}),
|
|
2
|
+
import c from "node:fs";
|
|
3
|
+
import h from "node:path";
|
|
4
|
+
import w from "yargs";
|
|
5
|
+
import { hideBin as $ } from "yargs/helpers";
|
|
6
|
+
import { SVG as k, blankIconSet as C, cleanupSVG as I, isEmptyColor as E, parseColors as G, runSVGO as O } from "@iconify/tools";
|
|
7
|
+
import { validateIconSet as V } from "@iconify/utils";
|
|
8
|
+
import x from "chokidar";
|
|
9
|
+
function v(o, n = "iconify", e = {}) {
|
|
10
|
+
return c.readdirSync(o).forEach((r) => {
|
|
11
|
+
c.statSync(`${o}/${r}`).isDirectory() ? e = v(`${o}/${r}`, r, e) : r.includes(".svg") && (e[n] ? e[n].push(h.join(o, "/", r)) : e[n] = [h.join(o, "/", r)]);
|
|
12
|
+
}), e;
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
15
|
-
const
|
|
16
|
-
for (const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
console.error(h);
|
|
29
|
-
}
|
|
30
|
-
const d = e.export();
|
|
14
|
+
async function J(o, n, e, r) {
|
|
15
|
+
const a = C(o);
|
|
16
|
+
for (const f of n) try {
|
|
17
|
+
const s = new k(await c.promises.readFile(f, { encoding: "utf-8" }));
|
|
18
|
+
await I(s), r?.keepColors || await G(s, {
|
|
19
|
+
defaultColor: "currentColor",
|
|
20
|
+
callback: (P, y, g) => !g || E(g) || y.includes("var(") ? y : "currentColor"
|
|
21
|
+
}), await O(s);
|
|
22
|
+
const S = f.replace(/^.*[\\/]/, "").split(".")[0].replace(/ /g, "-").replace(/[^a-z0-9-]/gi, "");
|
|
23
|
+
a.fromSVG(S, s);
|
|
24
|
+
} catch (s) {
|
|
25
|
+
console.error(s);
|
|
26
|
+
}
|
|
27
|
+
const d = a.export();
|
|
31
28
|
try {
|
|
32
|
-
|
|
33
|
-
} catch (
|
|
34
|
-
throw new Error(
|
|
35
|
-
`Icon set is not valid: ${l?.message}`
|
|
36
|
-
);
|
|
29
|
+
V(d);
|
|
30
|
+
} catch (f) {
|
|
31
|
+
throw new Error(`Icon set is not valid: ${f?.message}`);
|
|
37
32
|
}
|
|
38
|
-
const
|
|
39
|
-
|
|
33
|
+
const u = `${e}/${d.prefix}.json`;
|
|
34
|
+
c.mkdirSync(h.dirname(u), { recursive: !0 }), c.writeFileSync(u, JSON.stringify(d));
|
|
40
35
|
}
|
|
41
|
-
function p(
|
|
42
|
-
const
|
|
43
|
-
Object.keys(
|
|
44
|
-
|
|
36
|
+
function p(o, n, e) {
|
|
37
|
+
const r = v(o, e?.prefix);
|
|
38
|
+
Object.keys(r).length ? Object.keys(r).forEach((a) => {
|
|
39
|
+
J(a, r[a], n, e), console.info(`Icons generated in: ${n}/${a}.json
|
|
45
40
|
`);
|
|
46
|
-
}) : console.error(`There are no files in ${
|
|
41
|
+
}) : console.error(`There are no files in ${o}`);
|
|
47
42
|
}
|
|
48
|
-
|
|
49
|
-
(!t || !
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
p(t, c, m);
|
|
43
|
+
var l = w($(process.argv)).argv, t = l.srcPath, i = l.destPath || t;
|
|
44
|
+
(!t || !i) && (console.error("Please specify the srcPath and destPath with --srcPath and --destPath"), process.exit());
|
|
45
|
+
var m = {
|
|
46
|
+
prefix: l.prefix,
|
|
47
|
+
keepColors: l.keepColors
|
|
48
|
+
};
|
|
49
|
+
l.watch ? (p(t, i, m), x.watch(t, { ignoreInitial: !0 }).on("add", () => {
|
|
50
|
+
p(t, i, m);
|
|
57
51
|
}).on("change", () => {
|
|
58
|
-
p(t,
|
|
59
|
-
})) : p(t,
|
|
52
|
+
p(t, i, m);
|
|
53
|
+
})) : p(t, i, m);
|
|
60
54
|
export {
|
|
61
55
|
p as createIconifyJsonFiles
|
|
62
56
|
};
|