vuetify-swatches 1.6.2 → 1.7.3
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/LICENSE +1 -1
- package/dist/index.es.js +2 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/src/Meta.d.ts +4 -0
- package/dist/src/Meta.d.ts.map +1 -0
- package/dist/src/components/VSwatches.vue.d.ts +161 -0
- package/dist/src/components/VSwatches.vue.d.ts.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +2 -1
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/interfaces/MetaInterface.d.ts +8 -0
- package/dist/src/interfaces/MetaInterface.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +39 -46
- package/src/components/VSwatches.vue +2 -1
package/LICENSE
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.
|
|
8
|
+
* @version 1.7.3
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -107,6 +107,7 @@ var _ = /* @__PURE__ */ g({
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
emits: {
|
|
110
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
110
111
|
"update:modelValue": (t) => !0
|
|
111
112
|
},
|
|
112
113
|
setup(t, { emit: m }) {
|
package/dist/index.iife.js
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../../src/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAG1D,QAAA,MAAM,IAAI,EAAE,aAGX,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/** Model value */
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
/** Swatch colors */
|
|
9
|
+
swatches: {
|
|
10
|
+
type: PropType<string[] | string[][] | Record<string, string[]>>;
|
|
11
|
+
default: () => string[][];
|
|
12
|
+
};
|
|
13
|
+
/** Swatch size */
|
|
14
|
+
size: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** Selected icon */
|
|
19
|
+
icon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** selected icon size */
|
|
24
|
+
iconSize: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The variant prop gives you easy access to several different button styles..
|
|
30
|
+
*
|
|
31
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
|
|
32
|
+
*/
|
|
33
|
+
variant: {
|
|
34
|
+
type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Removes the ability to click or target the component.
|
|
39
|
+
*
|
|
40
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
41
|
+
*/
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Applies a large border radius on the button.
|
|
48
|
+
*
|
|
49
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
|
|
50
|
+
*/
|
|
51
|
+
rounded: {
|
|
52
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Applies border styles to component.
|
|
57
|
+
*
|
|
58
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
|
|
59
|
+
*/
|
|
60
|
+
border: {
|
|
61
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Designates an elevation applied to the component between 0 and 24.
|
|
66
|
+
*
|
|
67
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
68
|
+
*/
|
|
69
|
+
elevation: {
|
|
70
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
74
|
+
"update:modelValue": (_value: string) => void;
|
|
75
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
76
|
+
/** Model value */
|
|
77
|
+
modelValue: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
/** Swatch colors */
|
|
82
|
+
swatches: {
|
|
83
|
+
type: PropType<string[] | string[][] | Record<string, string[]>>;
|
|
84
|
+
default: () => string[][];
|
|
85
|
+
};
|
|
86
|
+
/** Swatch size */
|
|
87
|
+
size: {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
/** Selected icon */
|
|
92
|
+
icon: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
/** selected icon size */
|
|
97
|
+
iconSize: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The variant prop gives you easy access to several different button styles..
|
|
103
|
+
*
|
|
104
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
|
|
105
|
+
*/
|
|
106
|
+
variant: {
|
|
107
|
+
type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
|
|
108
|
+
default: undefined;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Removes the ability to click or target the component.
|
|
112
|
+
*
|
|
113
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
114
|
+
*/
|
|
115
|
+
disabled: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Applies a large border radius on the button.
|
|
121
|
+
*
|
|
122
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
|
|
123
|
+
*/
|
|
124
|
+
rounded: {
|
|
125
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Applies border styles to component.
|
|
130
|
+
*
|
|
131
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
|
|
132
|
+
*/
|
|
133
|
+
border: {
|
|
134
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Designates an elevation applied to the component between 0 and 24.
|
|
139
|
+
*
|
|
140
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
141
|
+
*/
|
|
142
|
+
elevation: {
|
|
143
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
}>> & Readonly<{
|
|
147
|
+
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
148
|
+
}>, {
|
|
149
|
+
modelValue: string;
|
|
150
|
+
swatches: string[] | Record<string, string[]> | string[][];
|
|
151
|
+
size: string;
|
|
152
|
+
icon: string;
|
|
153
|
+
iconSize: string;
|
|
154
|
+
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
155
|
+
disabled: boolean;
|
|
156
|
+
rounded: string | number | boolean;
|
|
157
|
+
border: string | number | boolean;
|
|
158
|
+
elevation: string | number;
|
|
159
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
export default _default;
|
|
161
|
+
//# sourceMappingURL=VSwatches.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VSwatches.vue"],"names":[],"mappings":"AAmMA,uBAAuB;AACvB,OAAO,EAAc,KAAK,QAAQ,EAAuB,MAAM,KAAK,CAAC;;IA4anE,kBAAkB;;;;;IAElB,oBAAoB;;cAEH,QAAQ,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;;;IA0B3E,kBAAkB;;;;;IAKlB,oBAAoB;;;;;IAKpB,yBAAyB;;;;;IAKzB;;;;OAIG;;cAEe,QAAQ,CACtB,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC,CAC3E;;;IAGH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;IAvFH,kBAAkB;;;;;IAElB,oBAAoB;;cAEH,QAAQ,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;;;IA0B3E,kBAAkB;;;;;IAKlB,oBAAoB;;;;;IAKpB,yBAAyB;;;;;IAKzB;;;;OAIG;;cAEe,QAAQ,CACtB,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC,CAC3E;;;IAGH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;;;;;;;;;;;;AA9FL,wBAoGG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import VSwatches from './components/VSwatches.vue';
|
|
1
|
+
import { default as VSwatches } from './components/VSwatches.vue';
|
|
2
2
|
declare const installVSwatches: (app: any) => void;
|
|
3
3
|
export { VSwatches as default, installVSwatches as install };
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAGnD,QAAA,MAAM,gBAAgB,QAAS,GAAG,KAAG,IACE,CAAC;AAExC,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaInterface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/MetaInterface.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,CAAC,OAAO,WAAW,aAAa;IACpC,cAAc;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vuetify-swatches",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.3",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"module": "dist/index.es.js",
|
|
37
37
|
"jsdelivr": "dist/index.iife.js",
|
|
38
38
|
"unpkg": "dist/index.iife.js",
|
|
39
|
-
"types": "dist/index.d.ts",
|
|
39
|
+
"types": "dist/src/index.d.ts",
|
|
40
40
|
"style": "dist/style.css",
|
|
41
41
|
"browser": {
|
|
42
42
|
"./sfc": "./src/components/VSwatches.vue"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"require": "./dist/index.umd.js",
|
|
48
48
|
"jsdelivr": "./dist/index.iife.js",
|
|
49
49
|
"unpkg": "./dist/index.iife.js",
|
|
50
|
-
"types": "./dist/index.d.ts"
|
|
50
|
+
"types": "./dist/src/index.d.ts"
|
|
51
51
|
},
|
|
52
52
|
"./dist/style.css": {
|
|
53
53
|
"import": "./dist/style.css",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"src/components/VSwatches.vue"
|
|
62
62
|
],
|
|
63
63
|
"engines": {
|
|
64
|
-
"
|
|
64
|
+
"pnpm": ">=9.12.3"
|
|
65
65
|
},
|
|
66
|
-
"packageManager": "
|
|
66
|
+
"packageManager": "pnpm@9.12.3",
|
|
67
67
|
"sideEffects": false,
|
|
68
68
|
"scripts": {
|
|
69
69
|
"dev": "vite",
|
|
@@ -76,52 +76,47 @@
|
|
|
76
76
|
"build-only": "vite build",
|
|
77
77
|
"lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
|
|
78
78
|
"preview": "vite preview --mode=docs",
|
|
79
|
-
"prepare": "husky
|
|
79
|
+
"prepare": "husky",
|
|
80
80
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"vuetify": "^3.
|
|
83
|
+
"vuetify": "^3.7.2"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@codemirror/lang-vue": "0.1.
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@vue/eslint-config-prettier": "^9.0.0",
|
|
86
|
+
"@codemirror/lang-vue": "0.1.3",
|
|
87
|
+
"@eslint/js": "^9.14.0",
|
|
88
|
+
"@tsconfig/node-lts": "^22.0.0",
|
|
89
|
+
"@types/node": "^22.9.0",
|
|
90
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
91
|
+
"@vue/eslint-config-prettier": "^10.1.0",
|
|
93
92
|
"@vue/tsconfig": "^0.5.1",
|
|
94
|
-
"eslint": "^
|
|
95
|
-
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
93
|
+
"eslint": "^9.14.0",
|
|
96
94
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
97
|
-
"eslint-import-resolver-typescript": "^3.6.
|
|
98
|
-
"eslint-plugin-
|
|
99
|
-
"eslint-plugin-
|
|
100
|
-
"eslint-plugin-
|
|
101
|
-
"eslint-plugin-
|
|
102
|
-
"eslint-plugin-
|
|
103
|
-
"eslint-plugin-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"eslint-plugin-yaml": "^0.5.0",
|
|
107
|
-
"husky": "^9.0.11",
|
|
108
|
-
"lint-staged": "^15.2.2",
|
|
95
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
96
|
+
"eslint-plugin-import": "^2.31.0",
|
|
97
|
+
"eslint-plugin-tsdoc": "^0.3.0",
|
|
98
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
99
|
+
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
100
|
+
"eslint-plugin-vuetify": "^2.4.0",
|
|
101
|
+
"eslint-plugin-yaml": "^1.0.3",
|
|
102
|
+
"husky": "^9.1.6",
|
|
103
|
+
"lint-staged": "^15.2.10",
|
|
109
104
|
"npm-run-all": "^4.1.5",
|
|
110
|
-
"prettier": "^3.
|
|
111
|
-
"rimraf": "^
|
|
105
|
+
"prettier": "^3.3.3",
|
|
106
|
+
"rimraf": "^6.0.1",
|
|
112
107
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
113
|
-
"sass": "^1.
|
|
114
|
-
"typescript": "
|
|
115
|
-
"
|
|
116
|
-
"vite
|
|
117
|
-
"vite-plugin-
|
|
118
|
-
"vite-plugin-
|
|
119
|
-
"vite-plugin-
|
|
120
|
-
"
|
|
121
|
-
"vue
|
|
122
|
-
"vue-
|
|
123
|
-
"vue-
|
|
124
|
-
"
|
|
108
|
+
"sass": "^1.80.6",
|
|
109
|
+
"typescript": "5.6.3",
|
|
110
|
+
"typescript-eslint": "^8.13.0",
|
|
111
|
+
"vite": "^5.4.10",
|
|
112
|
+
"vite-plugin-banner": "^0.8.0",
|
|
113
|
+
"vite-plugin-checker": "^0.8.0",
|
|
114
|
+
"vite-plugin-dts": "^4.3.0",
|
|
115
|
+
"vite-plugin-vuetify": "^2.0.4",
|
|
116
|
+
"vue": "^3.5.12",
|
|
117
|
+
"vue-codemirror6": "^1.3.7",
|
|
118
|
+
"vue-eslint-parser": "^9.4.3",
|
|
119
|
+
"vue-tsc": "^2.1.10"
|
|
125
120
|
},
|
|
126
121
|
"husky": {
|
|
127
122
|
"hooks": {
|
|
@@ -134,9 +129,7 @@
|
|
|
134
129
|
"*": "prettier -w -u"
|
|
135
130
|
},
|
|
136
131
|
"resolutions": {
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"semver": "^7.5.2",
|
|
140
|
-
"yaml": "^2.2.2"
|
|
132
|
+
"json5": ">=2.2.3",
|
|
133
|
+
"yaml": ">=2.3.2"
|
|
141
134
|
}
|
|
142
135
|
}
|
|
@@ -7,7 +7,8 @@ import colors from 'vuetify/util/colors';
|
|
|
7
7
|
|
|
8
8
|
/** Emits */
|
|
9
9
|
const emits = defineEmits({
|
|
10
|
-
|
|
10
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
11
|
+
'update:modelValue': (_value: string) => true,
|
|
11
12
|
});
|
|
12
13
|
|
|
13
14
|
/** Props */
|