@dynamicforms/vuetify-inputs 0.1.1 → 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.
- package/dist/dynamicforms-vuetify-inputs.js +776 -3079
- package/dist/dynamicforms-vuetify-inputs.js.map +1 -1
- package/dist/dynamicforms-vuetify-inputs.umd.cjs +14 -15
- package/dist/dynamicforms-vuetify-inputs.umd.cjs.map +1 -1
- package/dist/index.d.ts +36 -32
- package/dist/style.css +1 -1
- package/package.json +6 -3
- package/readme.md +13 -0
- package/src/vuetify-components-list.ts +24 -0
- package/src/vuetify-components.ts +11 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicforms/vuetify-inputs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Visual components for data entry using @dynamicforms/vue-forms",
|
|
7
7
|
"author": "Jure Erznožnik",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist/*"
|
|
9
|
+
"dist/*",
|
|
10
|
+
"src/vuetify-components*.ts"
|
|
10
11
|
],
|
|
11
12
|
"main": "dist/dynamicforms-vuetify-inputs.umd.cjs",
|
|
12
13
|
"types": "./dist/index.d.ts",
|
|
@@ -14,7 +15,9 @@
|
|
|
14
15
|
".": {
|
|
15
16
|
"require": "./dist/dynamicforms-vuetify-inputs.umd.cjs",
|
|
16
17
|
"import": "./dist/dynamicforms-vuetify-inputs.js"
|
|
17
|
-
}
|
|
18
|
+
},
|
|
19
|
+
"./vuetify-components.ts": "./src/vuetify-components.ts",
|
|
20
|
+
"./vuetify-components-list.ts": "./src/vuetify-components-list.ts"
|
|
18
21
|
},
|
|
19
22
|
"workspaces": [
|
|
20
23
|
"docs"
|
package/readme.md
CHANGED
|
@@ -22,6 +22,19 @@ visual implementation of logical concepts from
|
|
|
22
22
|
npm install @dynamicforms/vuetify-inputs
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
In your main.py
|
|
26
|
+
```typescript
|
|
27
|
+
import { DynamicFormsInputs } from '@dynamicforms/vuetify-inputs';
|
|
28
|
+
import DynamicFormsInputsVuetify from '@dynamicforms/vuetify-inputs/vuetify-components';
|
|
29
|
+
|
|
30
|
+
...
|
|
31
|
+
const app = createApp(MyApp);
|
|
32
|
+
app.use(router);
|
|
33
|
+
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
|
|
36
|
+
```
|
|
37
|
+
|
|
25
38
|
## Basic Usage Example
|
|
26
39
|
|
|
27
40
|
The library offers various components, including:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { VAutocomplete } from 'vuetify/components/VAutocomplete';
|
|
2
|
+
export { VBtn } from 'vuetify/components/VBtn';
|
|
3
|
+
export { VCheckbox } from 'vuetify/components/VCheckbox';
|
|
4
|
+
export { VChip } from 'vuetify/components/VChip';
|
|
5
|
+
export { VCombobox } from 'vuetify/components/VCombobox';
|
|
6
|
+
export { VColorPicker } from 'vuetify/components/VColorPicker';
|
|
7
|
+
export { VConfirmEdit } from 'vuetify/components/VConfirmEdit';
|
|
8
|
+
export { VDatePicker } from 'vuetify/components/VDatePicker';
|
|
9
|
+
export { VFileInput } from 'vuetify/components/VFileInput';
|
|
10
|
+
export { VRow, VCol } from 'vuetify/components/VGrid';
|
|
11
|
+
export { VIcon } from 'vuetify/components/VIcon';
|
|
12
|
+
export { VInput } from 'vuetify/components/VInput';
|
|
13
|
+
export { VListItem } from 'vuetify/components/VList';
|
|
14
|
+
export { VMenu } from 'vuetify/components/VMenu';
|
|
15
|
+
export { VNumberInput } from 'vuetify/components/VNumberInput';
|
|
16
|
+
export { VProgressLinear } from 'vuetify/components/VProgressLinear';
|
|
17
|
+
export { VSelect } from 'vuetify/components/VSelect';
|
|
18
|
+
export { VSwitch } from 'vuetify/components/VSwitch';
|
|
19
|
+
export { VTextarea } from 'vuetify/components/VTextarea';
|
|
20
|
+
export { VTextField } from 'vuetify/components/VTextField';
|
|
21
|
+
export { VTimePicker } from 'vuetify/labs/VTimePicker';
|
|
22
|
+
|
|
23
|
+
// run this in the src folder to get list of used components
|
|
24
|
+
// grep -r -o "<v-[a-zA-Z0-9-]*" --include="*.vue" . | sed 's/.*:<//' | sort | uniq
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { App } from '~/vue';
|
|
2
|
+
|
|
3
|
+
import * as VuetifyComponents from './vuetify-components-list';
|
|
4
|
+
|
|
5
|
+
const DynamicFormsInputsVuetify = {
|
|
6
|
+
install: (app: App) => {
|
|
7
|
+
Object.entries(VuetifyComponents).map(([name, component]) => app.component(name, component));
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default DynamicFormsInputsVuetify;
|