@opengis/form 0.0.79 → 0.0.80
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/README.md +61 -73
- package/dist/components/inputs/base/vs-input-text.vue.d.ts +1 -1
- package/dist/components/inputs/base/vs-input-text.vue.d.ts.map +1 -1
- package/dist/components/inputs/date/datepicker/Datepicker.vue.d.ts +956 -0
- package/dist/components/inputs/date/datepicker/Datepicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/DayPicker.vue.d.ts +206 -0
- package/dist/components/inputs/date/datepicker/DayPicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/MonthPicker.vue.d.ts +142 -0
- package/dist/components/inputs/date/datepicker/MonthPicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/PickerPopup.vue.d.ts +74 -0
- package/dist/components/inputs/date/datepicker/PickerPopup.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/Timepicker.vue.d.ts +132 -0
- package/dist/components/inputs/date/datepicker/Timepicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/YearPicker.vue.d.ts +122 -0
- package/dist/components/inputs/date/datepicker/YearPicker.vue.d.ts.map +1 -0
- package/dist/components/inputs/date/datepicker/types.d.ts +16 -0
- package/dist/components/inputs/date/datepicker/types.d.ts.map +1 -0
- package/dist/components/inputs/date/vs-input-date2.vue.d.ts +17 -0
- package/dist/components/inputs/date/vs-input-date2.vue.d.ts.map +1 -0
- package/dist/components/modal/modal-edit.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4526 -3198
- package/dist/index.umd.cjs +3 -3
- package/dist/types/form.d.ts +4 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/utils/dateHelper.d.ts +57 -0
- package/dist/utils/dateHelper.d.ts.map +1 -0
- package/package.json +68 -68
package/README.md
CHANGED
|
@@ -1,73 +1,61 @@
|
|
|
1
|
-
# Vue 3 + TypeScript + Vite
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
### Style
|
|
63
|
-
|
|
64
|
-
```html
|
|
65
|
-
<script src="https://cdn.tailwindcss.com"></script>
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## Contributions
|
|
71
|
-
|
|
72
|
-
We welcome contributions!
|
|
73
|
-
Feel free to open issues, suggest features, or submit pull requests.
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
Flexible and reusable way to create forms with validation, different input types, and layouts
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Schema-based filter rendering (radio, checkbox)
|
|
8
|
+
- Slot-based extensibility for custom filters
|
|
9
|
+
- Built-in clear/reset support
|
|
10
|
+
- Emits `change` and `clear` events
|
|
11
|
+
- Popover support with positioning logic
|
|
12
|
+
- Show more / limit options logic
|
|
13
|
+
- Written in TypeScript
|
|
14
|
+
- Fully styleable with Tailwind CSS
|
|
15
|
+
- Mobile-friendly and responsive
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
Check out the documentation and live demo here: [Live Demo & Docs](https://form.opengis.info)
|
|
22
|
+
|
|
23
|
+
## Install & Usage
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm i @opengis/form
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
```vue
|
|
32
|
+
<template>
|
|
33
|
+
<VsForm :schema="schema" @change="console.log($event.data)" />
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup lang="ts">
|
|
37
|
+
|
|
38
|
+
import {ref} from 'vue'
|
|
39
|
+
import VsForm from "@opengis/form";
|
|
40
|
+
|
|
41
|
+
const schema = [
|
|
42
|
+
{ name: 'name', label: 'Name', type: 'text', col: 6, conditions: ['number', '==', 2], },
|
|
43
|
+
{ name: 'date', label: 'Date', type: 'date', col: 6, time: true, },
|
|
44
|
+
{ name: 'file', label: 'File', type: 'file', multiple: true, },
|
|
45
|
+
{ name: 'number', label: 'Number', type: 'number', col: 6, }
|
|
46
|
+
];
|
|
47
|
+
</script>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Style**
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<script src="https://cdn.tailwindcss.com"></script>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Contributions
|
|
59
|
+
|
|
60
|
+
We welcome contributions!
|
|
61
|
+
Feel free to open issues, suggest features, or submit pull requests.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vs-input-text.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-text.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vs-input-text.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-text.vue"],"names":[],"mappings":"AA0CA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,KAAK,WAAW,GAAG,WAAW,CAAC;AAiC/B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;AAqDF,wBAQG"}
|