Rename `@primevue/form` with `@primevue/forms`

pull/6697/head
Mert Sincan 2024-10-31 13:43:37 +00:00
parent 4949d22eb9
commit a30fa5508a
63 changed files with 127 additions and 125 deletions

View File

@ -16,7 +16,7 @@ const core_dependencies = {
primevue: pkg.version || PrimeVue.version || 'latest',
'@primevue/themes': pkg.version || PrimeVue.version || 'latest',
'@primevue/auto-import-resolver': pkg.version || PrimeVue.version || 'latest',
'@primevue/form': pkg.version || PrimeVue.version || 'latest',
'@primevue/forms': pkg.version || PrimeVue.version || 'latest',
primeicons: app_dependencies['primeicons'] || 'latest',
tailwindcss: app_dependencies['tailwindcss'] || 'latest',
autoprefixer: app_dependencies['autoprefixer'] || 'latest',

View File

@ -16,7 +16,7 @@
<script>
import { CountryService } from '@/service/CountryService';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -63,7 +63,7 @@ export default {
<script>
import { CountryService } from '@/service/CountryService';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -127,7 +127,7 @@ export default {
<script setup>
import { ref, onMounted } from "vue";
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';
import { CountryService } from "@/service/CountryService";

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -251,7 +251,7 @@ export default {
<script setup>
import { ref } from "vue";
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -32,7 +32,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -105,7 +105,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -165,7 +165,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -59,7 +59,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -107,7 +107,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -17,7 +17,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -57,7 +57,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -106,7 +106,7 @@ input {
<script setup>
import { reactive } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -4,7 +4,7 @@
Validations are implemented the with <i>resolver</i> property. A custom resolver is responsible for handling the validation and returning an <i>errors</i> object with key-value pairs where key is the form field name and value is an array
of error object data. For productivity, we recommend using a schema validation library instead of building your own custom validation logic. The forms library provide built-in resolvers for popular options including
<a href="https://zod.dev/">Zod</a>, <a href="https://github.com/jquense/yup">Yup</a>, <a href="https://joi.dev/">Joi</a>, <a href="https://valibot.dev/">Valibot</a>, and <a href="https://docs.superstructjs.org/">Superstruct</a> that can
be be imported from <i>@primevue/form/resolvers</i> path.
be be imported from <i>@primevue/forms/resolvers</i> path.
</p>
</DocSectionText>
<div class="card flex flex-col items-center gap-5">
@ -45,7 +45,7 @@
</template>
<script>
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
import * as s from 'superstruct';
import * as v from 'valibot';
import * as yup from 'yup';
@ -114,7 +114,7 @@ export default {
</template>
<script>
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
import * as s from 'superstruct';
import * as v from 'valibot';
import * as yup from 'yup';
@ -225,7 +225,7 @@ export default {
<script setup>
import { ref, watch } from 'vue';
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/form/resolvers';
import { superStructResolver, valibotResolver, yupResolver, zodResolver } from '@primevue/forms/resolvers';
import * as s from 'superstruct';
import * as v from 'valibot';
import * as yup from 'yup';

View File

@ -26,7 +26,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -96,7 +96,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -168,7 +168,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
import { useToast } from 'primevue/usetoast';

View File

@ -15,7 +15,7 @@
<script setup>
import { isNotEmpty } from '@primeuix/utils';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
import DynamicFormControl from './DynamicFormControl.vue';
import DynamicFormField from './DynamicFormField.vue';

View File

@ -12,7 +12,7 @@
<script>
import { getPTOptions } from '@/components/doc/helpers';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -19,7 +19,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -67,7 +67,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -115,7 +115,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -54,7 +54,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -97,7 +97,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -65,7 +65,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -119,7 +119,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -13,7 +13,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -64,7 +64,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -119,7 +119,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -17,7 +17,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -71,7 +71,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -127,7 +127,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -32,7 +32,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -104,7 +104,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -163,7 +163,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -13,7 +13,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -63,7 +63,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -116,7 +116,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -54,7 +54,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -97,7 +97,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -53,7 +53,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
export default {
@ -95,7 +95,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';

View File

@ -15,7 +15,7 @@
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
import { NodeService } from '/service/NodeService';
@ -55,7 +55,7 @@ export default {
</template>
<script>
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { z } from 'zod';
import { NodeService } from '/service/NodeService';
@ -99,7 +99,7 @@ export default {
<script setup>
import { ref } from 'vue';
import { zodResolver } from '@primevue/form/resolvers';
import { zodResolver } from '@primevue/forms/resolvers';
import { useToast } from "primevue/usetoast";
import { z } from 'zod';
import { NodeService } from '/service/NodeService';

View File

@ -56,7 +56,7 @@
"@primevue/core": "workspace:*",
"@primevue/nuxt-module": "workspace:*",
"@primevue/themes": "workspace:*",
"@primevue/form": "workspace:*",
"@primevue/forms": "workspace:*",
"yup": "1.4.0",
"zod": "3.23.8",
"valibot": "^0.42.1",
@ -69,4 +69,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}

View File

@ -19,7 +19,7 @@
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --report-summary --tag rc",
"build": "NODE_ENV=production pnpm run build:check && pnpm run build:packages",
"build:check": "pnpm run format:check && pnpm run security:check",
"build:packages": "pnpm run build:metadata && pnpm run build:resolver && pnpm run build:core && pnpm run build:lib && pnpm run build:module && pnpm run build:themes && pnpm run build:icons && pnpm run build:form && pnpm run build:showcase",
"build:packages": "pnpm run build:metadata && pnpm run build:resolver && pnpm run build:core && pnpm run build:lib && pnpm run build:module && pnpm run build:themes && pnpm run build:icons && pnpm run build:forms && pnpm run build:showcase",
"build:resolver": "pnpm --filter auto-import-resolver build",
"build:core": "pnpm --filter core build",
"build:metadata": "pnpm --filter metadata build",
@ -27,7 +27,7 @@
"build:lib": "pnpm --filter primevue build",
"build:themes": "pnpm --filter themes build",
"build:icons": "pnpm --filter icons build",
"build:form": "pnpm --filter form build",
"build:forms": "pnpm --filter forms build",
"build:showcase": "pnpm --filter showcase build",
"build:apidoc": "pnpm --filter themes build:tokens && pnpm --filter showcase build:apidoc",
"dev": "pnpm --filter showcase dev",

View File

@ -1 +0,0 @@
# PrimeVue Form

1
packages/forms/README.md Normal file
View File

@ -0,0 +1 @@
# PrimeVue Forms

View File

@ -1,5 +1,5 @@
{
"name": "@primevue/form",
"name": "@primevue/forms",
"version": "4.1.1",
"author": "PrimeTek Informatics",
"description": "",
@ -8,44 +8,36 @@
"repository": {
"type": "git",
"url": "https://github.com/primefaces/primevue.git",
"directory": "packages/form"
"directory": "packages/forms"
},
"bugs": {
"url": "https://github.com/primefaces/primevue/issues"
},
"main": "./src/form/Form.vue",
"types": "./src/form/Form.d.ts",
"main": "./src/index.js",
"module": "./src/index.js",
"types": "./src/index.d.ts",
"exports": {
".": "./src/form/Form.vue",
"./style": "./src/form/style/FormStyle.js",
"./field": "./src/formfield/FormField.vue",
"./field/style": "./src/formfield/style/FormFieldStyle.js",
".": "./src/index.js",
"./form": "./src/form/Form.vue",
"./form/style": "./src/form/style/FormStyle.js",
"./formfield": "./src/formfield/FormField.vue",
"./formfield/style": "./src/formfield/style/FormFieldStyle.js",
"./*": "./src/*/index.js"
},
"publishConfig": {
"main": "./form/index.mjs",
"module": "./form/index.mjs",
"types": "./form/index.d.ts",
"main": "./index.mjs",
"module": "./index.mjs",
"types": "./index.d.ts",
"exports": {
".": {
"types": "./form/index.d.ts",
"import": "./form/index.mjs"
},
"./style": {
"types": "./form/style/index.d.ts",
"import": "./form/style/index.mjs"
},
"./field": {
"types": "./formfield/index.d.ts",
"import": "./formfield/index.mjs"
},
"./field/style": {
"types": "./formfield/style/index.d.ts",
"import": "./formfield/style/index.mjs"
"types": "./index.d.ts",
"import": "./index.mjs",
"default": "./index.mjs"
},
"./*": {
"types": "./*/index.d.ts",
"import": "./*/index.mjs"
"import": "./*/index.mjs",
"default": "./*/index.mjs"
}
},
"directory": "dist",

View File

@ -25,7 +25,7 @@ const EXTERNALS = [...GLOBAL_EXTERNALS, ...INLINE_EXTERNALS];
// alias
const ALIAS_ENTRIES = [
{
find: /^@primevue\/form\/(.*)$/,
find: /^@primevue\/forms\/(.*)$/,
replacement: path.resolve(__dirname, './src/$1'),
customResolver(source, importer) {
const basedir = path.dirname(importer);
@ -43,8 +43,8 @@ const ALIAS_ENTRIES = [
return targetFile ? path.join(folderPath, targetFile) : null;
}
},
{ find: '@primevue/form/resolvers', replacement: path.resolve(__dirname, './src/resolvers/index.js') },
{ find: '@primevue/form/useform', replacement: path.resolve(__dirname, './src/useform/index.js') }
{ find: '@primevue/forms/resolvers', replacement: path.resolve(__dirname, './src/resolvers/index.js') },
{ find: '@primevue/forms/useform', replacement: path.resolve(__dirname, './src/useform/index.js') }
];
// plugins

View File

@ -1,6 +1,6 @@
<script>
import BaseComponent from '@primevue/core/basecomponent';
import FormStyle from '@primevue/form/style';
import FormStyle from '@primevue/forms/form/style';
export default {
name: 'BaseForm',

View File

@ -6,7 +6,7 @@
<script>
import { omit } from '@primeuix/utils';
import { useForm } from '@primevue/form/useform';
import { useForm } from '@primevue/forms/useform';
import BaseForm from './BaseForm.vue';
export default {

View File

@ -1,6 +1,6 @@
<script>
import BaseComponent from '@primevue/core/basecomponent';
import FormFieldStyle from '@primevue/form/field/style';
import FormFieldStyle from '@primevue/forms/field/style';
export default {
name: 'BaseFormField',

5
packages/forms/src/index.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
export { default as Form } from '@primevue/forms/form';
export { default as FormStyle } from '@primevue/forms/form/style';
export { default as FormField } from '@primevue/forms/formfield';
export { default as FormFieldStyle } from '@primevue/forms/formfield/style';

View File

@ -0,0 +1,5 @@
export { default as Form } from '@primevue/forms/form';
export { default as FormStyle } from '@primevue/forms/form/style';
export { default as FormField } from '@primevue/forms/formfield';
export { default as FormFieldStyle } from '@primevue/forms/formfield/style';

View File

@ -16,7 +16,7 @@
"incremental": true,
"baseUrl": ".",
"paths": {
"@primevue/form/*": ["./src/*"],
"@primevue/forms/*": ["./src/*"],
"@primevue/core/*": ["../../packages/core/src/*"]
}
},

View File

@ -97,8 +97,8 @@ export const media: MetaType[] = toMeta(['Carousel', 'Galleria', 'Image', 'Image
export const misc: MetaType[] = toMeta(['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'MeterGroup', 'OverlayBadge', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal']);
export const extensions: MetaType[] = toMeta([
{ name: 'Form', from: '@primevue/form' },
{ name: 'FormField', from: '@primevue/form/field' }
{ name: 'Form', from: '@primevue/forms/form' },
{ name: 'FormField', from: '@primevue/forms/formfield' }
]);
// All PrimeVue Components

View File

@ -347,4 +347,4 @@
"engines": {
"node": ">=12.11.0"
}
}
}

View File

@ -81,9 +81,9 @@ importers:
'@primevue/core':
specifier: workspace:*
version: link:../../packages/core
'@primevue/form':
'@primevue/forms':
specifier: workspace:*
version: link:../../packages/form
version: link:../../packages/forms
'@primevue/nuxt-module':
specifier: workspace:*
version: link:../../packages/nuxt-module
@ -175,7 +175,7 @@ importers:
version: 3.5.12(typescript@5.6.3)
publishDirectory: dist
packages/form:
packages/forms:
dependencies:
'@primeuix/form':
specifier: 'catalog:'