@konoma-development/vue-components 0.1.7 → 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.
@@ -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
- "search.exclude": {
7
- "**/.yarn": true,
8
- "**/.pnp.*": true
8
+ "[typescript]": {
9
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
9
10
  },
10
- "typescript.tsdk": "node_modules/typescript/lib",
11
- "unocss.root": ["."]
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">
@@ -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-name="h-4 w-4"
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-name="h-4 w-4"
101
+ class="h-4 w-4"
102
102
  :name="column.sorting
103
103
  ? {
104
104
  '+': 'heroicons:chevron-down-16-solid',
@@ -10,4 +10,8 @@ defineProps<{
10
10
  name?: string
11
11
  path?: string
12
12
  }>()
13
+
14
+ defineEmits<{
15
+ (e: 'click', event: MouseEvent): void
16
+ }>()
13
17
  </script>
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 * as globals from 'globals';
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.7",
8
- "packageManager": "yarn@4.13.0",
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.0"
22
+ "vue3-select-component": "^0.16.2"
22
23
  },
23
24
  "devDependencies": {
24
- "@antfu/eslint-config": "7.7.3",
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.19",
29
+ "@iconify-json/carbon": "1.2.20",
29
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.0",
35
+ "@nuxt/test-utils": "4.0.2",
35
36
  "@pinia/nuxt": "0.11.3",
36
- "@sentry/nuxt": "10.45.0",
37
- "@types/node": "22.19.15",
38
- "@typescript-eslint/eslint-plugin": "8.57.2",
39
- "@typescript-eslint/parser": "8.57.2",
40
- "@unocss/eslint-config": "66.6.7",
41
- "@unocss/nuxt": "66.6.7",
42
- "@unocss/reset": "66.6.7",
43
- "@vitejs/plugin-vue": "6.0.5",
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.1.0",
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.8.0",
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": "5.9.3",
57
- "unocss": "66.6.2",
57
+ "typescript": "6.0.3",
58
+ "unocss": "66.6.8",
58
59
  "unocss-preset-scrollbar": "3.2.0",
59
- "vite": "8.0.2",
60
+ "vite": "8.0.9",
60
61
  "vue-eslint-parser": "10.4.0",
61
- "vue-tsc": "3.2.6",
62
- "vue3-select-component": "^0.16.0"
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
  }