@dynamicforms/vuetify-inputs 0.1.6 → 0.1.7

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/index.d.ts CHANGED
@@ -13,6 +13,28 @@ import { GlobalDirectives } from 'vue';
13
13
  import { PublicProps } from 'vue';
14
14
  import { Ref } from 'vue';
15
15
  import { ValidationError } from '@dynamicforms/vue-forms';
16
+ import { VAutocomplete } from 'vuetify/components/VAutocomplete';
17
+ import { VBtn } from 'vuetify/components/VBtn';
18
+ import { VCheckbox } from 'vuetify/components/VCheckbox';
19
+ import { VChip } from 'vuetify/components/VChip';
20
+ import { VCol } from 'vuetify/components/VGrid';
21
+ import { VColorPicker } from 'vuetify/components/VColorPicker';
22
+ import { VCombobox } from 'vuetify/components/VCombobox';
23
+ import { VConfirmEdit } from 'vuetify/components/VConfirmEdit';
24
+ import { VDatePicker } from 'vuetify/components/VDatePicker';
25
+ import { VFileInput } from 'vuetify/components/VFileInput';
26
+ import { VIcon } from 'vuetify/components/VIcon';
27
+ import { VInput } from 'vuetify/components/VInput';
28
+ import { VListItem } from 'vuetify/components/VList';
29
+ import { VMenu } from 'vuetify/components/VMenu';
30
+ import { VNumberInput } from 'vuetify/components/VNumberInput';
31
+ import { VProgressLinear } from 'vuetify/components/VProgressLinear';
32
+ import { VRow } from 'vuetify/components/VGrid';
33
+ import { VSelect } from 'vuetify/components/VSelect';
34
+ import { VSwitch } from 'vuetify/components/VSwitch';
35
+ import { VTextarea } from 'vuetify/components/VTextarea';
36
+ import { VTextField } from 'vuetify/components/VTextField';
37
+ import { VTimePicker } from 'vuetify/labs/VTimePicker';
16
38
  import { WritableComputedRef } from 'vue';
17
39
 
18
40
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -275,6 +297,7 @@ export declare const DynamicFormsInputs: {
275
297
 
276
298
  export declare interface DynamicFormsInputsOptions {
277
299
  registerComponents: boolean;
300
+ registerVuetifyComponents: boolean;
278
301
  }
279
302
 
280
303
  export declare const ErrorsWidget: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -395,4 +418,31 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
395
418
  }>;
396
419
  };
397
420
 
421
+ export declare namespace VuetifyComponents {
422
+ export {
423
+ VAutocomplete,
424
+ VBtn,
425
+ VCheckbox,
426
+ VChip,
427
+ VCombobox,
428
+ VColorPicker,
429
+ VConfirmEdit,
430
+ VDatePicker,
431
+ VFileInput,
432
+ VRow,
433
+ VCol,
434
+ VIcon,
435
+ VInput,
436
+ VListItem,
437
+ VMenu,
438
+ VNumberInput,
439
+ VProgressLinear,
440
+ VSelect,
441
+ VSwitch,
442
+ VTextarea,
443
+ VTextField,
444
+ VTimePicker
445
+ }
446
+ }
447
+
398
448
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "description": "Visual components for data entry using @dynamicforms/vue-forms",
7
7
  "author": "Jure Erznožnik",
@@ -12,21 +12,13 @@
12
12
  ".": {
13
13
  "require": "./dist/dynamicforms-vuetify-inputs.umd.cjs",
14
14
  "import": "./dist/dynamicforms-vuetify-inputs.js"
15
- },
16
- "./vuetify-components": {
17
- "require": "./dist/vuetify-components.js",
18
- "import": "./dist/vuetify-components.js"
19
- },
20
- "./vuetify-components-list": {
21
- "require": "./dist/vuetify-components-list.js",
22
- "import": "./dist/vuetify-components-list.js"
23
15
  }
24
16
  },
25
17
  "workspaces": [
26
18
  "docs"
27
19
  ],
28
20
  "scripts": {
29
- "build": "vite build && cp src/vuetify-components* dist",
21
+ "build": "vite build",
30
22
  "test": "vitest run --coverage",
31
23
  "lint": "eslint src && vue-tsc --noEmit",
32
24
  "docs:dev": "npm run docs:dev -w docs",
@@ -60,6 +52,7 @@
60
52
  },
61
53
  "devDependencies": {
62
54
  "@types/lodash-es": "^4.17.12",
55
+ "@types/node": "^22.14.1",
63
56
  "@vitejs/plugin-vue": "^5",
64
57
  "@vitest/coverage-v8": "^3",
65
58
  "@vue/test-utils": "^2.2.4",
package/readme.md CHANGED
@@ -25,14 +25,13 @@ npm install @dynamicforms/vuetify-inputs
25
25
  In your main.py
26
26
  ```typescript
27
27
  import { DynamicFormsInputs } from '@dynamicforms/vuetify-inputs';
28
- import DynamicFormsInputsVuetify from '@dynamicforms/vuetify-inputs/vuetify-components';
29
28
 
30
29
  ...
31
30
  const app = createApp(MyApp);
32
31
  app.use(router);
33
32
  app.use(vuetify);
34
- app.use(DynamicFormsInputs, { registerComponents: true }); // register the plugins and optionally inputs globally
35
- app.use(DynamicFormsInputsVuetify); // register the vuetify components used by the library
33
+ // registers the library for use and optionally inputs globally
34
+ app.use(DynamicFormsInputs, { registerComponents: true, registerVuetifyComponents: false });
36
35
  ```
37
36
 
38
37
  ## Basic Usage Example
@@ -1,25 +0,0 @@
1
- /* jshint esversion: 11 */
2
- export { VAutocomplete } from 'vuetify/components/VAutocomplete';
3
- export { VBtn } from 'vuetify/components/VBtn';
4
- export { VCheckbox } from 'vuetify/components/VCheckbox';
5
- export { VChip } from 'vuetify/components/VChip';
6
- export { VCombobox } from 'vuetify/components/VCombobox';
7
- export { VColorPicker } from 'vuetify/components/VColorPicker';
8
- export { VConfirmEdit } from 'vuetify/components/VConfirmEdit';
9
- export { VDatePicker } from 'vuetify/components/VDatePicker';
10
- export { VFileInput } from 'vuetify/components/VFileInput';
11
- export { VRow, VCol } from 'vuetify/components/VGrid';
12
- export { VIcon } from 'vuetify/components/VIcon';
13
- export { VInput } from 'vuetify/components/VInput';
14
- export { VListItem } from 'vuetify/components/VList';
15
- export { VMenu } from 'vuetify/components/VMenu';
16
- export { VNumberInput } from 'vuetify/components/VNumberInput';
17
- export { VProgressLinear } from 'vuetify/components/VProgressLinear';
18
- export { VSelect } from 'vuetify/components/VSelect';
19
- export { VSwitch } from 'vuetify/components/VSwitch';
20
- export { VTextarea } from 'vuetify/components/VTextarea';
21
- export { VTextField } from 'vuetify/components/VTextField';
22
- export { VTimePicker } from 'vuetify/labs/VTimePicker';
23
-
24
- // run this in the src folder to get list of used components
25
- // grep -r -o "<v-[a-zA-Z0-9-]*" --include="*.vue" . | sed 's/.*:<//' | sort | uniq
@@ -1,10 +0,0 @@
1
- /* jshint esversion: 11 */
2
- import * as VuetifyComponents from './vuetify-components-list';
3
-
4
- const DynamicFormsInputsVuetify = {
5
- install: (app) => {
6
- Object.entries(VuetifyComponents).map(([name, component]) => app.component(name, component));
7
- },
8
- };
9
-
10
- export default DynamicFormsInputsVuetify;