@xy-planning-network/trees 0.14.2 → 0.15.1-dev-1
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 +11 -5
- package/config/eslint.mjs +36 -0
- package/config/prettier.js +0 -2
- package/config/tailwind.config.js +0 -1
- package/dist/trees.css +2 -1
- package/dist/trees.es.js +14455 -16154
- package/dist/trees.umd.js +20 -20
- package/package.json +20 -13
- package/src/lib-components/forms/NumberInput.vue +3 -3
- package/src/lib-components/navigation/ActionsDropdown.vue +11 -11
- package/src/lib-components/overlays/Tooltip.vue +7 -3
- package/types/components.d.ts +0 -1
- package/types/composables/useActionItems.d.ts +12 -0
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +8 -0
- package/config/eslint.js +0 -25
package/README.md
CHANGED
|
@@ -59,13 +59,19 @@ Additional peer dependecies will be installed by NPM. If you are using NPM < 7 y
|
|
|
59
59
|
|
|
60
60
|
### ESLint
|
|
61
61
|
|
|
62
|
-
**Initialize ESLint rules in .
|
|
62
|
+
**Initialize ESLint rules in eslint.config.mjs**
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
import { defineConfig, globalIgnores } from "eslint/config"
|
|
66
|
+
import config from "@xy-planning-network/trees/config/eslint.mjs"
|
|
67
|
+
|
|
68
|
+
export default defineConfig([
|
|
69
|
+
globalIgnores(["dist/**"]),
|
|
70
|
+
{
|
|
71
|
+
files: ["src/**/*.{js,ts,vue}"],
|
|
72
|
+
extends: config,
|
|
73
|
+
},
|
|
74
|
+
])
|
|
69
75
|
```
|
|
70
76
|
|
|
71
77
|
### Prettier
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import js from "@eslint/js"
|
|
2
|
+
import pluginVue from "eslint-plugin-vue"
|
|
3
|
+
import {
|
|
4
|
+
defineConfigWithVueTs,
|
|
5
|
+
vueTsConfigs,
|
|
6
|
+
} from "@vue/eslint-config-typescript"
|
|
7
|
+
import globals from "globals"
|
|
8
|
+
import skipFormattingConfig from "@vue/eslint-config-prettier/skip-formatting"
|
|
9
|
+
|
|
10
|
+
export default defineConfigWithVueTs(
|
|
11
|
+
{
|
|
12
|
+
name: "@xy-planning-network/trees/recommended",
|
|
13
|
+
extends: [
|
|
14
|
+
js.configs.recommended,
|
|
15
|
+
pluginVue.configs["flat/recommended"],
|
|
16
|
+
vueTsConfigs.recommended,
|
|
17
|
+
],
|
|
18
|
+
languageOptions: {
|
|
19
|
+
ecmaVersion: "latest",
|
|
20
|
+
sourceType: "module",
|
|
21
|
+
globals: globals.browser,
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
"no-useless-assignment": "off",
|
|
25
|
+
"vue/multi-word-component-names": "off",
|
|
26
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
27
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
allowInterfaces: "with-single-extends",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
skipFormattingConfig
|
|
36
|
+
)
|
package/config/prettier.js
CHANGED
package/dist/trees.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.list-move,.list-enter-active,.list-leave-active{transition:all .5s
|
|
1
|
+
.list-move,.list-enter-active,.list-leave-active{transition:all .5s}.list-enter-from,.list-leave-to{opacity:0;transform:translate(30px)}.list-leave-active{position:absolute}
|
|
2
|
+
/*$vite$:1*/
|