@konoma-development/vue-components 0.1.6 → 0.1.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/.vscode/settings.json +35 -6
- package/components/form/KonomaCheckboxList.vue +5 -2
- package/components/form/KonomaInput.vue +6 -1
- package/components/form/KonomaSelect.vue +1 -0
- package/components/table/KonomaTable.vue +2 -2
- package/components/ui/KonomaIcon.vue +4 -0
- package/eslint.config.ts +8 -4
- package/nuxt.config.ts +7 -1
- package/package.json +23 -22
- package/tsconfig.json +8 -1
package/.vscode/settings.json
CHANGED
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"editor.formatOnSave": false,
|
|
3
3
|
"editor.codeActionsOnSave": {
|
|
4
|
-
"source.fixAll": "explicit"
|
|
4
|
+
"source.fixAll.eslint": "explicit",
|
|
5
|
+
"source.organizeImports": "never",
|
|
6
|
+
"source.addMissingImports.ts": "explicit"
|
|
5
7
|
},
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"**/.pnp.*": true
|
|
8
|
+
"[typescript]": {
|
|
9
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
9
10
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
11
|
+
"js/ts.tsdk.path": "node_modules/typescript/lib",
|
|
12
|
+
"editor.indentSize": 2,
|
|
13
|
+
|
|
14
|
+
// Enable eslint for all supported languages
|
|
15
|
+
"eslint.validate": [
|
|
16
|
+
"javascript",
|
|
17
|
+
"javascriptreact",
|
|
18
|
+
"typescript",
|
|
19
|
+
"typescriptreact",
|
|
20
|
+
"vue",
|
|
21
|
+
"html",
|
|
22
|
+
// "markdown",
|
|
23
|
+
"json",
|
|
24
|
+
"jsonc",
|
|
25
|
+
"yaml",
|
|
26
|
+
"toml",
|
|
27
|
+
"xml",
|
|
28
|
+
"gql",
|
|
29
|
+
"graphql",
|
|
30
|
+
"astro",
|
|
31
|
+
"svelte",
|
|
32
|
+
"css",
|
|
33
|
+
"less",
|
|
34
|
+
"scss",
|
|
35
|
+
"pcss",
|
|
36
|
+
"postcss",
|
|
37
|
+
"dockerfile",
|
|
38
|
+
"dockercompose",
|
|
39
|
+
"github-actions-workflow"
|
|
40
|
+
]
|
|
12
41
|
}
|
|
@@ -8,12 +8,15 @@
|
|
|
8
8
|
v-for="(option, i) in options"
|
|
9
9
|
:key="i"
|
|
10
10
|
:name="name?.toString()"
|
|
11
|
-
:label="option.label.toString()"
|
|
12
11
|
:error="error"
|
|
13
12
|
v-bind="{ ...$attrs, ...childClasses }"
|
|
14
13
|
:value="values?.includes(option.value)"
|
|
15
14
|
@change=" (_, e) => $emit('change', option.value, e)"
|
|
16
|
-
|
|
15
|
+
>
|
|
16
|
+
<template #label>
|
|
17
|
+
<span :class="optionClasses">{{ option.label.toString() }}</span>
|
|
18
|
+
</template>
|
|
19
|
+
</KonomaCheckbox>
|
|
17
20
|
</div>
|
|
18
21
|
<template v-if="error && error.length > 0">
|
|
19
22
|
<span v-for="(e, i) in error" :key="i" :class="errorClasses">
|
|
@@ -18,7 +18,12 @@
|
|
|
18
18
|
:name="name?.toString()"
|
|
19
19
|
v-bind="$attrs"
|
|
20
20
|
@input="(e) => $emit('change', (e.target as HTMLInputElement).value, e)"
|
|
21
|
-
@click="
|
|
21
|
+
@click="($event) => {
|
|
22
|
+
if ($event.isTrusted) {
|
|
23
|
+
($event.target as HTMLInputElement).showPicker();
|
|
24
|
+
}
|
|
25
|
+
$emit('click', $event)
|
|
26
|
+
}"
|
|
22
27
|
@blur="$emit('blur', $event)"
|
|
23
28
|
@keydown="$emit('keyDown', $event)"
|
|
24
29
|
>
|
|
@@ -62,6 +62,7 @@ import type { Option } from 'vue3-select-component';
|
|
|
62
62
|
import type { FormDataType, FormFieldEmits, FormFieldProps, FormValue } from '../../types/form';
|
|
63
63
|
import VueSelect from 'vue3-select-component';
|
|
64
64
|
import { baseClasses } from '../defaults/select';
|
|
65
|
+
// @ts-expect-error - No types available for styles import
|
|
65
66
|
import 'vue3-select-component/styles';
|
|
66
67
|
|
|
67
68
|
const props = withDefaults(defineProps<FormFieldProps<DataType> & { class?: string }>(), {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<span>{{ column.title }}</span>
|
|
29
29
|
<div v-if="column.sortKey">
|
|
30
30
|
<KonomaIcon
|
|
31
|
-
class
|
|
31
|
+
class="h-4 w-4"
|
|
32
32
|
:name="column.sorting
|
|
33
33
|
? {
|
|
34
34
|
'+': 'heroicons:chevron-down-16-solid',
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<span>{{ column.title }}</span>
|
|
99
99
|
<div v-if="column.sortKey">
|
|
100
100
|
<KonomaIcon
|
|
101
|
-
class
|
|
101
|
+
class="h-4 w-4"
|
|
102
102
|
:name="column.sorting
|
|
103
103
|
? {
|
|
104
104
|
'+': 'heroicons:chevron-down-16-solid',
|
package/eslint.config.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import antfu from '@antfu/eslint-config';
|
|
2
2
|
import * as eslint from '@eslint/js';
|
|
3
|
-
import
|
|
3
|
+
import globals from 'globals';
|
|
4
4
|
import * as vueParser from 'vue-eslint-parser'
|
|
5
5
|
import withNuxt from './.playground/.nuxt/eslint.config.mjs';
|
|
6
6
|
|
|
7
7
|
export default withNuxt(
|
|
8
8
|
eslint.configs.recommended,
|
|
9
9
|
await antfu({
|
|
10
|
+
vue: {
|
|
11
|
+
overrides: {
|
|
12
|
+
'vue/block-order': ['error', {
|
|
13
|
+
order: [['template', 'script'], 'style'],
|
|
14
|
+
}],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
10
17
|
unocss: true,
|
|
11
18
|
rules: {
|
|
12
19
|
'style/semi': 'off',
|
|
13
20
|
'style/brace-style': ['error', '1tbs'],
|
|
14
|
-
'vue/block-order': ['error', {
|
|
15
|
-
order: [['template', 'script'], 'style'],
|
|
16
|
-
}],
|
|
17
21
|
},
|
|
18
22
|
}),
|
|
19
23
|
{
|
package/nuxt.config.ts
CHANGED
|
@@ -3,7 +3,13 @@ export default defineNuxtConfig({
|
|
|
3
3
|
enabled: true,
|
|
4
4
|
},
|
|
5
5
|
modules: ['@pinia/nuxt', '@unocss/nuxt', '@nuxt/icon', '@vueuse/nuxt', '@nuxt/eslint', 'floating-vue/nuxt'],
|
|
6
|
-
vite: {
|
|
6
|
+
vite: {
|
|
7
|
+
build: {
|
|
8
|
+
rollupOptions: {
|
|
9
|
+
external: ['@oxc-parser/binding-wasm32-wasi'],
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
7
13
|
experimental: {
|
|
8
14
|
asyncContext: true,
|
|
9
15
|
},
|
package/package.json
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.1.
|
|
8
|
-
"packageManager": "yarn@4.
|
|
7
|
+
"version": "0.1.8",
|
|
8
|
+
"packageManager": "yarn@4.14.1",
|
|
9
9
|
"main": "./nuxt.config.ts",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "nuxi dev .playground",
|
|
12
12
|
"build": "nuxt build .playground",
|
|
13
13
|
"generate": "nuxt generate .playground",
|
|
14
|
+
"audit": "yarn npm audit --all --recursive --severity high",
|
|
14
15
|
"preview": "nuxt preview .playground",
|
|
15
16
|
"lint": "eslint .",
|
|
16
17
|
"upgrade-nuxt": "nuxi upgrade",
|
|
@@ -18,47 +19,47 @@
|
|
|
18
19
|
"upgrade-all": "yarn upgrade-nuxt && yarn upgrade-deps"
|
|
19
20
|
},
|
|
20
21
|
"peerDependencies": {
|
|
21
|
-
"vue3-select-component": "^0.16.
|
|
22
|
+
"vue3-select-component": "^0.16.2"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"@antfu/eslint-config": "
|
|
25
|
+
"@antfu/eslint-config": "8.2.0",
|
|
25
26
|
"@babel/eslint-parser": "7.28.6",
|
|
26
27
|
"@babel/plugin-transform-typescript": "7.28.6",
|
|
27
28
|
"@babel/preset-typescript": "7.28.5",
|
|
28
|
-
"@iconify-json/carbon": "1.2.
|
|
29
|
-
"@nuxt/devtools": "3.2.
|
|
29
|
+
"@iconify-json/carbon": "1.2.20",
|
|
30
|
+
"@nuxt/devtools": "3.2.4",
|
|
30
31
|
"@nuxt/eslint": "1.15.2",
|
|
31
32
|
"@nuxt/eslint-config": "1.15.2",
|
|
32
33
|
"@nuxt/icon": "2.2.1",
|
|
33
34
|
"@nuxt/schema": "4.4.2",
|
|
34
|
-
"@nuxt/test-utils": "4.0.
|
|
35
|
+
"@nuxt/test-utils": "4.0.2",
|
|
35
36
|
"@pinia/nuxt": "0.11.3",
|
|
36
|
-
"@sentry/nuxt": "10.
|
|
37
|
-
"@types/node": "22.19.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
39
|
-
"@typescript-eslint/parser": "8.
|
|
40
|
-
"@unocss/eslint-config": "66.6.
|
|
41
|
-
"@unocss/nuxt": "66.6.
|
|
42
|
-
"@unocss/reset": "66.6.
|
|
43
|
-
"@vitejs/plugin-vue": "6.0.
|
|
37
|
+
"@sentry/nuxt": "10.49.0",
|
|
38
|
+
"@types/node": "22.19.17",
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "8.59.0",
|
|
40
|
+
"@typescript-eslint/parser": "8.59.0",
|
|
41
|
+
"@unocss/eslint-config": "66.6.8",
|
|
42
|
+
"@unocss/nuxt": "66.6.8",
|
|
43
|
+
"@unocss/reset": "66.6.8",
|
|
44
|
+
"@vitejs/plugin-vue": "6.0.6",
|
|
44
45
|
"@vueuse/nuxt": "14.2.1",
|
|
45
46
|
"babel-preset-vue": "2.0.2",
|
|
46
47
|
"changelogen": "0.6.2",
|
|
47
|
-
"eslint": "10.
|
|
48
|
+
"eslint": "10.2.1",
|
|
48
49
|
"eslint-plugin-nuxt": "4.0.0",
|
|
49
50
|
"eslint-plugin-unocss": "0.0.1-alpha.3",
|
|
50
|
-
"eslint-plugin-vue": "10.
|
|
51
|
+
"eslint-plugin-vue": "10.9.0",
|
|
51
52
|
"floating-vue": "5.2.2",
|
|
52
53
|
"nuxt": "4.4.2",
|
|
53
54
|
"nuxt-headlessui": "1.2.2",
|
|
54
55
|
"pinia": "3.0.4",
|
|
55
56
|
"tslib": "2.8.1",
|
|
56
|
-
"typescript": "
|
|
57
|
-
"unocss": "66.6.
|
|
57
|
+
"typescript": "6.0.3",
|
|
58
|
+
"unocss": "66.6.8",
|
|
58
59
|
"unocss-preset-scrollbar": "3.2.0",
|
|
59
|
-
"vite": "
|
|
60
|
+
"vite": "8.0.9",
|
|
60
61
|
"vue-eslint-parser": "10.4.0",
|
|
61
|
-
"vue-tsc": "3.2.
|
|
62
|
-
"vue3-select-component": "^0.16.
|
|
62
|
+
"vue-tsc": "3.2.7",
|
|
63
|
+
"vue3-select-component": "^0.16.2"
|
|
63
64
|
}
|
|
64
65
|
}
|
package/tsconfig.json
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
"@pinia/nuxt"
|
|
7
7
|
],
|
|
8
8
|
"noImplicitAny": true,
|
|
9
|
-
"allowSyntheticDefaultImports": true
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"skipLibCheck": true
|
|
11
|
+
},
|
|
12
|
+
"vueCompilerOptions": {
|
|
13
|
+
"strictTemplates": true,
|
|
14
|
+
"dataAttributes": [
|
|
15
|
+
"data-testid"
|
|
16
|
+
]
|
|
10
17
|
}
|
|
11
18
|
}
|