@flux-ui/components 3.0.0-next.6 → 3.0.0-next.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/dist/component/FluxDataTable.vue.d.ts.map +1 -1
- package/dist/composable/private/useFormSelect.d.ts +2 -2
- package/dist/composable/private/useFormSelect.d.ts.map +1 -1
- package/dist/{flux.js → index.js} +245 -264
- package/dist/index.js.map +1 -0
- package/package.json +11 -11
- package/src/component/FluxDataTable.vue +3 -3
- package/src/component/FluxFormInput.vue +1 -1
- package/src/component/FluxFormSelect.vue +1 -1
- package/src/composable/private/useFormSelect.ts +2 -2
- package/dist/flux.js.map +0 -1
- /package/dist/{flux.css → index.css} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flux-ui/components",
|
|
3
3
|
"description": "A set of opiniated UI components.",
|
|
4
|
-
"version": "3.0.0-next.
|
|
4
|
+
"version": "3.0.0-next.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/basmilius",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./dist/index.d.ts",
|
|
35
|
-
"default": "./dist/
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
36
|
},
|
|
37
|
-
"./style.css": "./dist/
|
|
37
|
+
"./style.css": "./dist/index.css",
|
|
38
38
|
"./*": "./*"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"src",
|
|
47
47
|
"tsconfig.json"
|
|
48
48
|
],
|
|
49
|
-
"main": "./dist/
|
|
50
|
-
"module": "./dist/
|
|
49
|
+
"main": "./dist/index.js",
|
|
50
|
+
"module": "./dist/index.js",
|
|
51
51
|
"types": "./dist/index.d.ts",
|
|
52
52
|
"typings": "./dist/index.d.ts",
|
|
53
53
|
"sideEffects": false,
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@basmilius/utils": "^1.
|
|
56
|
-
"@flux-ui/internals": "3.0.0-next.
|
|
57
|
-
"@flux-ui/types": "3.0.0-next.
|
|
55
|
+
"@basmilius/utils": "^2.1.0",
|
|
56
|
+
"@flux-ui/internals": "3.0.0-next.8",
|
|
57
|
+
"@flux-ui/types": "3.0.0-next.8",
|
|
58
58
|
"@fortawesome/fontawesome-common-types": "^6.7.2",
|
|
59
59
|
"clsx": "^2.1.1",
|
|
60
60
|
"imask": "^7.6.1",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"vue": "^3.5.13"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@basmilius/vite-
|
|
66
|
+
"@basmilius/vite-preset": "^2.1.0",
|
|
67
67
|
"@types/lodash-es": "^4.17.12",
|
|
68
68
|
"@types/luxon": "^3.6.2",
|
|
69
|
-
"@types/node": "^22.
|
|
69
|
+
"@types/node": "^22.15.3",
|
|
70
70
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
71
71
|
"pinia": "^3.0.2",
|
|
72
72
|
"sass-embedded": "^1.87.0",
|
|
73
73
|
"typescript": "^5.8.3",
|
|
74
|
-
"vite": "^6.3.
|
|
74
|
+
"vite": "^6.3.3",
|
|
75
75
|
"vue-tsc": "^2.2.10"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
:is-separated="isSeparated"
|
|
8
8
|
:is-striped="isStriped">
|
|
9
9
|
<template
|
|
10
|
-
v-if="slots
|
|
10
|
+
v-if="'colgroups' in slots"
|
|
11
11
|
#colgroups>
|
|
12
12
|
<slot name="colgroups"/>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<template
|
|
16
|
-
v-if="slots
|
|
16
|
+
v-if="'header' in slots"
|
|
17
17
|
#header>
|
|
18
18
|
<FluxTableRow>
|
|
19
19
|
<slot
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<template
|
|
26
|
-
v-if="slots
|
|
26
|
+
v-if="'footer' in slots"
|
|
27
27
|
#footer>
|
|
28
28
|
<FluxTableRow>
|
|
29
29
|
<slot
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}>();
|
|
42
42
|
|
|
43
43
|
const disabled = useDisabled(toRef(() => componentDisabled));
|
|
44
|
-
const {groups, selected, values} = useFormSelect(modelValue, isMultiple, options, modelSearch);
|
|
44
|
+
const {groups, selected, values} = useFormSelect(modelValue, isMultiple, toRef(() => options), modelSearch);
|
|
45
45
|
|
|
46
46
|
function onDeselect(id: string | number | null): void {
|
|
47
47
|
if (unref(isMultiple)) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FluxFormSelectEntry, FluxFormSelectOption, FluxFormSelectOptions, FluxFormSelectValue } from '@flux-ui/types';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Ref } from 'vue';
|
|
3
3
|
import { computed, unref } from 'vue';
|
|
4
4
|
import { isFluxFormSelectGroup, isFluxFormSelectOption } from '$flux/data';
|
|
5
5
|
|
|
6
|
-
export default function (modelValue: Ref<FluxFormSelectValue>, isMultiple: boolean, options:
|
|
6
|
+
export default function (modelValue: Ref<FluxFormSelectValue>, isMultiple: boolean, options: Ref<FluxFormSelectEntry[]>, searchQuery?: Ref<string>) {
|
|
7
7
|
const values = computed(() => {
|
|
8
8
|
const model = unref(modelValue);
|
|
9
9
|
return Array.isArray(model) ? model : [model];
|