vuetify-swatches 2.0.0 → 2.1.0
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/README.ja.md +159 -0
- package/README.md +51 -128
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +3 -3
- package/dist/index.iife.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/vuetify-swatches.css +2 -2
- package/package.json +42 -35
- package/src/components/VSwatches.vue +0 -1
package/LICENSE
CHANGED
package/README.ja.md
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# Vuetify Swatches
|
|
2
|
+
|
|
3
|
+
[English](README.md) | [日本語](README.ja.md)
|
|
4
|
+
|
|
5
|
+
[](https://www.jsdelivr.com/package/npm/vuetify-swatches)
|
|
6
|
+
[](https://www.npmjs.com/package/vuetify-swatches)
|
|
7
|
+
[](https://uiwjs.github.io/npm-unpkg/#/pkg/vuetify-swatches/file/README.md)
|
|
8
|
+
[](https://www.npmjs.com/package/vuetify-swatches)
|
|
9
|
+
[](https://gitpod.io/#https://github.com/logue/vuetify-swatches)
|
|
10
|
+
[](https://twitter.com/logue256)
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
Vuetify 3 向けのカラースウォッチコンポーネントです。
|
|
15
|
+
|
|
16
|
+
このプロジェクトは [saintplay の vue-swatches](https://saintplay.github.io/vue-swatches/) を
|
|
17
|
+
[Vuetify](https://vuetifyjs.com/) ベースで再構築したものです。
|
|
18
|
+
シンプルな API のまま、Vuetify の UI に自然に組み込める設計を目指しています。
|
|
19
|
+
|
|
20
|
+
## 対応バージョン
|
|
21
|
+
|
|
22
|
+
- `2.x`: Vuetify 3(現行)
|
|
23
|
+
- `1.x`: Vuetify 2
|
|
24
|
+
|
|
25
|
+
`2.x` は破壊的変更を含み、`swatches` プロパティが必須です。
|
|
26
|
+
|
|
27
|
+
## インストール
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm add vuetify-swatches
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## クイックスタート
|
|
34
|
+
|
|
35
|
+
```vue
|
|
36
|
+
<script setup lang="ts">
|
|
37
|
+
import { ref, type Ref } from 'vue';
|
|
38
|
+
import VSwatches from 'vuetify-swatches';
|
|
39
|
+
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
40
|
+
|
|
41
|
+
const selected: Ref<string> = ref('#ffffff');
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<v-swatches v-model="selected" :swatches="basicPalette" />
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<style>
|
|
49
|
+
@import 'vuetify-swatches/dist/style.css';
|
|
50
|
+
</style>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## プリセットパレット
|
|
54
|
+
|
|
55
|
+
- `basicPalette`: 軽量で一般的な用途向け
|
|
56
|
+
- `advancedPalette`: 色バリエーションが豊富な拡張パレット
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
60
|
+
import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## カスタムパレット
|
|
64
|
+
|
|
65
|
+
`swatches` にはネストした配列で任意の色パレットを渡せます。
|
|
66
|
+
|
|
67
|
+
```vue
|
|
68
|
+
<script setup lang="ts">
|
|
69
|
+
import { ref, type Ref } from 'vue';
|
|
70
|
+
import VSwatches from 'vuetify-swatches';
|
|
71
|
+
|
|
72
|
+
const customPalette: Ref<string[][]> = ref([
|
|
73
|
+
[
|
|
74
|
+
'#ffb7b7',
|
|
75
|
+
'#ffdbb7',
|
|
76
|
+
'#ffffb7',
|
|
77
|
+
'#b7ffb7',
|
|
78
|
+
'#b7ffff',
|
|
79
|
+
'#b7b7ff',
|
|
80
|
+
'#ffb7ff',
|
|
81
|
+
'#ffffff',
|
|
82
|
+
],
|
|
83
|
+
[
|
|
84
|
+
'#ff5555',
|
|
85
|
+
'#ffa555',
|
|
86
|
+
'#ffff55',
|
|
87
|
+
'#55ff55',
|
|
88
|
+
'#55ffff',
|
|
89
|
+
'#5555ff',
|
|
90
|
+
'#ff55ff',
|
|
91
|
+
'#aaaaaa',
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
'#ff0000',
|
|
95
|
+
'#ff7f00',
|
|
96
|
+
'#ffff00',
|
|
97
|
+
'#00ff00',
|
|
98
|
+
'#00ffff',
|
|
99
|
+
'#0000ff',
|
|
100
|
+
'#ff00ff',
|
|
101
|
+
'#555555',
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
'#7f0000',
|
|
105
|
+
'#7f4c00',
|
|
106
|
+
'#7f7f00',
|
|
107
|
+
'#007f00',
|
|
108
|
+
'#007f7f',
|
|
109
|
+
'#00007f',
|
|
110
|
+
'#7f007f',
|
|
111
|
+
'#000000',
|
|
112
|
+
],
|
|
113
|
+
]);
|
|
114
|
+
|
|
115
|
+
const selected: Ref<string> = ref('#ffffff');
|
|
116
|
+
</script>
|
|
117
|
+
|
|
118
|
+
<template>
|
|
119
|
+
<v-swatches v-model="selected" :swatches="customPalette" />
|
|
120
|
+
</template>
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Props
|
|
124
|
+
|
|
125
|
+
スウォッチ固有の項目以外は、基本的に [v-btn](https://vuetifyjs.com/en/api/v-btn/) の仕様に準拠します。
|
|
126
|
+
|
|
127
|
+
| Prop | Type | Default | 説明 |
|
|
128
|
+
| ------------------ | -------------- | ---------------------------- | ---------------------------- |
|
|
129
|
+
| `size` | string | `2rem` | スウォッチボタンのサイズ |
|
|
130
|
+
| `icon` | string | `mdi-checkbox-marked-circle` | 選択時に表示するアイコン |
|
|
131
|
+
| `icon-size` | string | `1rem` | アイコンサイズ |
|
|
132
|
+
| `disabled` | boolean | `false` | 操作を無効化 |
|
|
133
|
+
| `rounded` | number\|string | `undefined` | 角丸 |
|
|
134
|
+
| `variant` | Variant | `undefined` | Vuetify のボタンバリアント |
|
|
135
|
+
| `elevation` | number\|string | `undefined` | Vuetify の elevation |
|
|
136
|
+
| `border` | number\|string | `undefined` | Vuetify の border |
|
|
137
|
+
| `transpose` | boolean | `false` | 行と列を入れ替える |
|
|
138
|
+
| `tooltip` | boolean | `false` | ツールチップで色コードを表示 |
|
|
139
|
+
| `tooltip-location` | Anchor | `undefined` | ツールチップの表示位置 |
|
|
140
|
+
|
|
141
|
+
参照:
|
|
142
|
+
|
|
143
|
+
- Variant: <https://vuetifyjs.com/api/v-btn/#props-variant>
|
|
144
|
+
- Tooltip location: <https://vuetifyjs.com/en/components/tooltips/#props-location>
|
|
145
|
+
|
|
146
|
+
## デモ
|
|
147
|
+
|
|
148
|
+
- デモページ: <https://logue.dev/vuetify-swatches>
|
|
149
|
+
|
|
150
|
+
## ライセンス
|
|
151
|
+
|
|
152
|
+
Copyright (c) 2022-2026 Logue.
|
|
153
|
+
[MIT License](LICENSE) のもとで公開しています。
|
|
154
|
+
|
|
155
|
+
## スポンサー
|
|
156
|
+
|
|
157
|
+
このプロジェクトが役に立ったら、スポンサーとしての支援をご検討ください。
|
|
158
|
+
|
|
159
|
+
[](https://github.com/sponsors/logue)
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Vuetify Swatches
|
|
2
2
|
|
|
3
|
+
[English](README.md) | [日本語](README.ja.md)
|
|
4
|
+
|
|
3
5
|
[](https://www.jsdelivr.com/package/npm/vuetify-swatches)
|
|
4
6
|
[](https://www.npmjs.com/package/vuetify-swatches)
|
|
5
7
|
[](https://uiwjs.github.io/npm-unpkg/#/pkg/vuetify-swatches/file/README.md)
|
|
@@ -9,43 +11,37 @@
|
|
|
9
11
|
|
|
10
12
|

|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
⚠ This is for Vuetify3. If you are using Vuetify2, please use 1.0.x.
|
|
14
|
+
A color swatch component for Vuetify 3.
|
|
15
15
|
|
|
16
|
-
This project is a remake of [saintplay's vue-swatches](https://saintplay.github.io/vue-swatches/)
|
|
16
|
+
This project is a Vuetify-based remake of [saintplay's vue-swatches](https://saintplay.github.io/vue-swatches/).
|
|
17
|
+
It keeps the API simple while fitting naturally into Vuetify UI patterns.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
## Compatibility
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
- `2.x`: Vuetify 3 (current)
|
|
22
|
+
- `1.x`: Vuetify 2
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
`2.x` contains breaking changes and requires the `swatches` prop.
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
## Installation
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
```bash
|
|
29
|
+
pnpm add vuetify-swatches
|
|
30
|
+
```
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
## Quick Start
|
|
29
33
|
|
|
30
34
|
```vue
|
|
31
35
|
<script setup lang="ts">
|
|
32
36
|
import { ref, type Ref } from 'vue';
|
|
33
|
-
|
|
34
37
|
import VSwatches from 'vuetify-swatches';
|
|
35
|
-
// Import only the palette you need
|
|
36
38
|
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
37
|
-
// or
|
|
38
|
-
import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
39
39
|
|
|
40
40
|
const selected: Ref<string> = ref('#ffffff');
|
|
41
41
|
</script>
|
|
42
42
|
|
|
43
43
|
<template>
|
|
44
|
-
<!-- Use the basic palette (22 colors) -->
|
|
45
44
|
<v-swatches v-model="selected" :swatches="basicPalette" />
|
|
46
|
-
|
|
47
|
-
<!-- Or use the advanced palette (~200 color variations) -->
|
|
48
|
-
<v-swatches v-model="selected" :swatches="advancedPalette" />
|
|
49
45
|
</template>
|
|
50
46
|
|
|
51
47
|
<style>
|
|
@@ -53,69 +49,23 @@ const selected: Ref<string> = ref('#ffffff');
|
|
|
53
49
|
</style>
|
|
54
50
|
```
|
|
55
51
|
|
|
56
|
-
##
|
|
57
|
-
|
|
58
|
-
Most props other than size and placement are the same as [v-btn](https://vuetifyjs.com/en/api/v-btn/).
|
|
59
|
-
|
|
60
|
-
| Variables | Type | Default | Info |
|
|
61
|
-
| ---------------- | -------------- | -------------------------- | -------------------------------------------------------------------------- |
|
|
62
|
-
| size | string | 2rem | Swatch Button size |
|
|
63
|
-
| icon | string | mdi-checkbox-marked-circle | checked icon |
|
|
64
|
-
| icon-size | string | 1rem | checked icon size |
|
|
65
|
-
| disabled | boolean | false | Removes the ability to click or target the component. |
|
|
66
|
-
| rounded | number\|string | undefined | Applies a large border radius on the button. |
|
|
67
|
-
| variant | Variant [^1] | undefined | The variant prop gives you easy access to several different button styles. |
|
|
68
|
-
| elevation | number\|string | undefined | |
|
|
69
|
-
| border | number\|string | undefined | |
|
|
70
|
-
| transpose | boolean | false | Swaps the rows and columns of swatches. |
|
|
71
|
-
| tooltip | boolean | false | Display color value in tooltip. |
|
|
72
|
-
| tooltip-location | Anchor [^2] | undefined | Tooltip location. |
|
|
73
|
-
|
|
74
|
-
[^1]: <https://vuetifyjs.com/api/v-btn/#props-variant>
|
|
75
|
-
|
|
76
|
-
[^2]: <https://vuetifyjs.com/en/components/tooltips/#props-location>
|
|
77
|
-
|
|
78
|
-
## Example
|
|
79
|
-
|
|
80
|
-
For more details, see the [demo page](https://logue.dev/vuetify-swatches).
|
|
81
|
-
|
|
82
|
-
### Show color code in tooltip
|
|
52
|
+
## Preset Palettes
|
|
83
53
|
|
|
84
|
-
|
|
54
|
+
- `basicPalette`: lightweight palette for common use cases
|
|
55
|
+
- `advancedPalette`: larger palette with many color variations
|
|
85
56
|
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
import {
|
|
89
|
-
|
|
90
|
-
import VSwatches from 'vuetify-swatches';
|
|
91
|
-
import { basicPalette } from 'vuetify-swatches/presets';
|
|
92
|
-
|
|
93
|
-
const selected: Ref<string> = ref('#ffffff');
|
|
94
|
-
</script>
|
|
95
|
-
|
|
96
|
-
<template>
|
|
97
|
-
<v-swatches
|
|
98
|
-
v-model="selected"
|
|
99
|
-
:swatches="basicPalette"
|
|
100
|
-
tooltip
|
|
101
|
-
tooltip-location="top"
|
|
102
|
-
class="mb-3"
|
|
103
|
-
/>
|
|
104
|
-
</template>
|
|
105
|
-
|
|
106
|
-
<style>
|
|
107
|
-
@import 'vuetify-swatches/dist/style.css';
|
|
108
|
-
</style>
|
|
57
|
+
```ts
|
|
58
|
+
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
59
|
+
import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
109
60
|
```
|
|
110
61
|
|
|
111
|
-
|
|
62
|
+
## Custom Palette
|
|
112
63
|
|
|
113
|
-
You can
|
|
64
|
+
You can pass your own nested color array to `swatches`.
|
|
114
65
|
|
|
115
66
|
```vue
|
|
116
67
|
<script setup lang="ts">
|
|
117
68
|
import { ref, type Ref } from 'vue';
|
|
118
|
-
|
|
119
69
|
import VSwatches from 'vuetify-swatches';
|
|
120
70
|
|
|
121
71
|
const customPalette: Ref<string[][]> = ref([
|
|
@@ -160,76 +110,49 @@ const customPalette: Ref<string[][]> = ref([
|
|
|
160
110
|
'#000000',
|
|
161
111
|
],
|
|
162
112
|
]);
|
|
113
|
+
|
|
163
114
|
const selected: Ref<string> = ref('#ffffff');
|
|
164
115
|
</script>
|
|
165
116
|
|
|
166
117
|
<template>
|
|
167
118
|
<v-swatches v-model="selected" :swatches="customPalette" />
|
|
168
119
|
</template>
|
|
169
|
-
|
|
170
|
-
<style>
|
|
171
|
-
@import 'vuetify-swatches/dist/style.css';
|
|
172
|
-
</style>
|
|
173
120
|
```
|
|
174
121
|
|
|
175
|
-
|
|
122
|
+
## Props
|
|
176
123
|
|
|
177
|
-
|
|
124
|
+
Most props (except swatch-specific options) follow [v-btn](https://vuetifyjs.com/en/api/v-btn/).
|
|
178
125
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
126
|
+
| Prop | Type | Default | Description |
|
|
127
|
+
| ------------------ | -------------- | ---------------------------- | ----------------------------- |
|
|
128
|
+
| `size` | string | `2rem` | Swatch button size |
|
|
129
|
+
| `icon` | string | `mdi-checkbox-marked-circle` | Icon shown for selected color |
|
|
130
|
+
| `icon-size` | string | `1rem` | Icon size |
|
|
131
|
+
| `disabled` | boolean | `false` | Disables interaction |
|
|
132
|
+
| `rounded` | number\|string | `undefined` | Border radius |
|
|
133
|
+
| `variant` | Variant | `undefined` | Vuetify button variant |
|
|
134
|
+
| `elevation` | number\|string | `undefined` | Vuetify elevation |
|
|
135
|
+
| `border` | number\|string | `undefined` | Vuetify border |
|
|
136
|
+
| `transpose` | boolean | `false` | Swap rows and columns |
|
|
137
|
+
| `tooltip` | boolean | `false` | Show color value in tooltip |
|
|
138
|
+
| `tooltip-location` | Anchor | `undefined` | Tooltip location |
|
|
182
139
|
|
|
183
|
-
|
|
184
|
-
import { advancedPalette } from 'vuetify-swatches/presets';
|
|
140
|
+
Reference:
|
|
185
141
|
|
|
186
|
-
|
|
187
|
-
|
|
142
|
+
- Variant: <https://vuetifyjs.com/api/v-btn/#props-variant>
|
|
143
|
+
- Tooltip location: <https://vuetifyjs.com/en/components/tooltips/#props-location>
|
|
188
144
|
|
|
189
|
-
|
|
190
|
-
<v-menu class="mb-3">
|
|
191
|
-
<template #activator="{ props }">
|
|
192
|
-
<v-btn v-bind="props" class="mb-3" min-width="auto" :color="color4">
|
|
193
|
-
<v-icon
|
|
194
|
-
:color="color4"
|
|
195
|
-
style="filter: invert(100%) grayscale(100%) contrast(100)"
|
|
196
|
-
>
|
|
197
|
-
mdi-menu-down
|
|
198
|
-
</v-icon>
|
|
199
|
-
</v-btn>
|
|
200
|
-
</template>
|
|
201
|
-
<v-card title="Select a color">
|
|
202
|
-
<v-swatches v-model="color4" :swatches="advancedPalette" />
|
|
203
|
-
</v-card>
|
|
204
|
-
</v-menu>
|
|
205
|
-
</template>
|
|
145
|
+
## Demo
|
|
206
146
|
|
|
207
|
-
<
|
|
208
|
-
@import 'vuetify-swatches/dist/style.css';
|
|
209
|
-
</style>
|
|
210
|
-
```
|
|
147
|
+
- Demo page: <https://logue.dev/vuetify-swatches>
|
|
211
148
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
<link
|
|
219
|
-
rel="stylesheet"
|
|
220
|
-
href="https://cdn.jsdelivr.net/npm/vuetify@3.11.0/dist/vuetify.min.js"
|
|
221
|
-
/>
|
|
222
|
-
<!-- Markdown wasm -->
|
|
223
|
-
<script src="https://cdn.jsdelivr.net/npm/vuetify-swatches@2.0.3/dist/index.iife.min.js"></script>
|
|
224
|
-
<script>
|
|
225
|
-
const { createApp } = Vue;
|
|
226
|
-
const { createVuetify } = Vuetify;
|
|
227
|
-
|
|
228
|
-
const app = createApp();
|
|
229
|
-
app.use(vuetify).component(VSwatches).mount('#app');
|
|
230
|
-
</script>
|
|
231
|
-
```
|
|
149
|
+
## License
|
|
150
|
+
|
|
151
|
+
Copyright (c) 2022-2026 Logue.
|
|
152
|
+
Licensed under the [MIT License](LICENSE).
|
|
153
|
+
|
|
154
|
+
## Sponsor
|
|
232
155
|
|
|
233
|
-
|
|
156
|
+
If this project helps your work, consider sponsoring:
|
|
234
157
|
|
|
235
|
-
|
|
158
|
+
[](https://github.com/sponsors/logue)
|
package/dist/index.cjs.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-
|
|
6
|
+
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
package/dist/index.es.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-
|
|
6
|
+
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import { defineComponent as B,
|
|
12
|
+
import { defineComponent as B, openBlock as n, createBlock as c, unref as r, withCtx as p, createVNode as z, mergeProps as C, createCommentVNode as x, computed as N, ref as L, watch as S, normalizeClass as A, createElementBlock as f, Fragment as b, renderList as y } from "vue";
|
|
13
13
|
import { VTooltip as I, VBtn as g, VIcon as j, VItemGroup as $, VItem as k } from "vuetify/components";
|
|
14
14
|
import m from "vuetify/util/colors";
|
|
15
15
|
function E(...l) {
|
package/dist/index.iife.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-
|
|
6
|
+
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
package/dist/index.umd.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-
|
|
6
|
+
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description Color Swatch component for Vuetify3.
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-
|
|
6
|
+
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 2.0.
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://schemastore.org/package.json",
|
|
3
3
|
"name": "vuetify-swatches",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=24.11.1"
|
|
70
70
|
},
|
|
71
|
-
"packageManager": "pnpm@10.
|
|
71
|
+
"packageManager": "pnpm@10.30.3",
|
|
72
72
|
"sideEffects": false,
|
|
73
73
|
"scripts": {
|
|
74
74
|
"dev": "vite",
|
|
@@ -80,7 +80,10 @@
|
|
|
80
80
|
"build:docs": "vite build --mode=docs",
|
|
81
81
|
"build-only": "vite build",
|
|
82
82
|
"build:presets": "vite build --config vite.config.presets.ts",
|
|
83
|
-
"lint": "
|
|
83
|
+
"lint": "run-s lint:*",
|
|
84
|
+
"lint:oxlint": "oxlint . --fix",
|
|
85
|
+
"lint:eslint": "eslint . --fix --cache --cache-location ./node_modules/.vite/eslint-cache",
|
|
86
|
+
"lint:prettier": "prettier \"./**/*.{js,ts,json,css,sass,scss,htm,html,vue,md}\" -w -u",
|
|
84
87
|
"preview": "vite preview --mode=docs",
|
|
85
88
|
"test": "vitest",
|
|
86
89
|
"test:run": "vitest run",
|
|
@@ -90,50 +93,55 @@
|
|
|
90
93
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
91
94
|
},
|
|
92
95
|
"peerDependencies": {
|
|
93
|
-
"vue": ">=3.5.
|
|
94
|
-
"vuetify": ">=
|
|
96
|
+
"vue": ">=3.5.29",
|
|
97
|
+
"vuetify": ">=4.0.1"
|
|
95
98
|
},
|
|
96
99
|
"dependencies": {
|
|
97
|
-
"es-toolkit": "^1.
|
|
100
|
+
"es-toolkit": "^1.45.1"
|
|
98
101
|
},
|
|
99
102
|
"devDependencies": {
|
|
100
103
|
"@codemirror/lang-vue": "0.1.3",
|
|
101
104
|
"@tsconfig/node-lts": "^24.0.0",
|
|
102
|
-
"@types/jsdom": "^
|
|
103
|
-
"@types/node": "^
|
|
104
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
105
|
-
"@vitest/coverage-v8": "^4.0.
|
|
105
|
+
"@types/jsdom": "^28.0.0",
|
|
106
|
+
"@types/node": "^25.3.5",
|
|
107
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
108
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
109
|
+
"@vitest/eslint-plugin": "^1.6.9",
|
|
106
110
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
107
|
-
"@vue/eslint-config-typescript": "^14.
|
|
111
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
108
112
|
"@vue/test-utils": "^2.4.6",
|
|
109
|
-
"@vue/tsconfig": "^0.
|
|
110
|
-
"eslint": "^
|
|
113
|
+
"@vue/tsconfig": "^0.9.0",
|
|
114
|
+
"eslint": "^10.0.2",
|
|
111
115
|
"eslint-import-resolver-custom-alias": "^1.3.2",
|
|
112
116
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
113
|
-
"eslint-plugin-import": "^
|
|
114
|
-
"eslint-plugin-
|
|
115
|
-
"eslint-plugin-
|
|
116
|
-
"eslint-plugin-
|
|
117
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
118
|
+
"eslint-plugin-oxlint": "^1.51.0",
|
|
119
|
+
"eslint-plugin-security": "^4.0.0",
|
|
120
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
121
|
+
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
122
|
+
"eslint-plugin-vuetify": "^2.7.0",
|
|
117
123
|
"husky": "^9.1.7",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
124
|
+
"jiti": "^2.6.1",
|
|
125
|
+
"jsdom": "^28.1.0",
|
|
126
|
+
"lint-staged": "^16.3.2",
|
|
120
127
|
"npm-run-all2": "^8.0.4",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
128
|
+
"oxlint": "^1.51.0",
|
|
129
|
+
"prettier": "^3.8.1",
|
|
130
|
+
"rimraf": "^6.1.3",
|
|
131
|
+
"rollup-plugin-visualizer": "^7.0.1",
|
|
132
|
+
"sass-embedded": "^1.97.3",
|
|
125
133
|
"typescript": "^5.9.3",
|
|
126
|
-
"typescript-eslint": "^8.
|
|
127
|
-
"vite": "^7.
|
|
134
|
+
"typescript-eslint": "^8.56.1",
|
|
135
|
+
"vite": "^7.3.1",
|
|
128
136
|
"vite-plugin-banner": "^0.8.1",
|
|
129
|
-
"vite-plugin-checker": "^0.
|
|
137
|
+
"vite-plugin-checker": "^0.12.0",
|
|
130
138
|
"vite-plugin-dts": "^4.5.4",
|
|
131
|
-
"vite-plugin-vuetify": "^2.1.
|
|
132
|
-
"vitest": "^4.0.
|
|
133
|
-
"vue": "^3.5.
|
|
134
|
-
"vue-codemirror6": "^1.4.
|
|
135
|
-
"vue-eslint-parser": "^10.
|
|
136
|
-
"vue-tsc": "^3.
|
|
139
|
+
"vite-plugin-vuetify": "^2.1.3",
|
|
140
|
+
"vitest": "^4.0.18",
|
|
141
|
+
"vue": "^3.5.29",
|
|
142
|
+
"vue-codemirror6": "^1.4.3",
|
|
143
|
+
"vue-eslint-parser": "^10.4.0",
|
|
144
|
+
"vue-tsc": "^3.2.5"
|
|
137
145
|
},
|
|
138
146
|
"husky": {
|
|
139
147
|
"hooks": {
|
|
@@ -141,12 +149,11 @@
|
|
|
141
149
|
}
|
|
142
150
|
},
|
|
143
151
|
"lint-staged": {
|
|
144
|
-
"
|
|
145
|
-
"*.{css,sass,scss,vue}": "stylelint --fix --cache",
|
|
146
|
-
"*": "prettier -w -u"
|
|
152
|
+
"*": "run-s lint:*"
|
|
147
153
|
},
|
|
148
154
|
"resolutions": {
|
|
149
155
|
"json5": ">=2.2.3",
|
|
156
|
+
"minimatch": ">=10.2.3",
|
|
150
157
|
"yaml": ">=2.3.2"
|
|
151
158
|
}
|
|
152
159
|
}
|