nuxt-unified-ui 0.1.0 → 0.1.2
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.
|
@@ -11,6 +11,7 @@ const props = defineProps({
|
|
|
11
11
|
/* elements */
|
|
12
12
|
|
|
13
13
|
import FormElementText from '../elements/form-element-text.vue';
|
|
14
|
+
import FormElementTextarea from '../elements/form-element-textarea.vue';
|
|
14
15
|
import FormElementSelect from '../elements/form-element-select.vue';
|
|
15
16
|
import FormElementSeries from '../elements/form-element-series.vue';
|
|
16
17
|
import FormElementCheckbox from '../elements/form-element-checkbox.vue';
|
|
@@ -19,6 +20,7 @@ import FormElementDate from '../elements/form-element-date.vue';
|
|
|
19
20
|
|
|
20
21
|
const elementsMap = {
|
|
21
22
|
'text': FormElementText,
|
|
23
|
+
'textarea': FormElementTextarea,
|
|
22
24
|
'select': FormElementSelect,
|
|
23
25
|
'series': FormElementSeries,
|
|
24
26
|
'date': FormElementDate,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
|
|
3
|
+
/* interface */
|
|
4
|
+
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
field: Object,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
const modelValue = defineModel();
|
|
10
|
+
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<u-form-field v-bind="radPick(props.field, [ 'label' ])">
|
|
16
|
+
<u-textarea
|
|
17
|
+
class="w-full"
|
|
18
|
+
v-bind="radOmit(props.field, [ 'key', 'identifier', 'label' ])"
|
|
19
|
+
v-model="modelValue"
|
|
20
|
+
/>
|
|
21
|
+
</u-form-field>
|
|
22
|
+
</template>
|
package/nuxt.config.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
pathRelativeToBase,
|
|
5
|
+
} from './app/utils/path-relative';
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
export default defineNuxtConfig({
|
|
@@ -15,10 +19,6 @@ export default defineNuxtConfig({
|
|
|
15
19
|
'@nuxt/ui',
|
|
16
20
|
],
|
|
17
21
|
|
|
18
|
-
css: [
|
|
19
|
-
pathRelativeToBase(import.meta.url, './app/assets/css/main.css'),
|
|
20
|
-
],
|
|
21
|
-
|
|
22
22
|
ui: {
|
|
23
23
|
colorMode: false,
|
|
24
24
|
},
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-unified-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"main": "./nuxt.config.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./nuxt.config.js",
|
|
8
|
+
"./nuxt-ui-fixes.css": "./app/assets/css/nuxt-ui-fixes.css"
|
|
9
|
+
},
|
|
6
10
|
"files": [
|
|
7
11
|
"nuxt.config.js",
|
|
8
12
|
"package.json",
|
|
9
13
|
"app",
|
|
10
|
-
"layers",
|
|
11
14
|
"modules"
|
|
12
15
|
],
|
|
13
16
|
"dependencies": {
|
|
14
17
|
"@formkit/tempo": "0.1.2",
|
|
15
|
-
"@iconify-json/lucide": "1.2.
|
|
18
|
+
"@iconify-json/lucide": "1.2.73",
|
|
16
19
|
"@nuxt/kit": "4.2.1",
|
|
17
20
|
"@nuxt/ui": "4.1.0",
|
|
18
21
|
"@vueuse/core": "14.0.0",
|