@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.
Files changed (29) hide show
  1. package/README.md +61 -73
  2. package/dist/components/inputs/base/vs-input-text.vue.d.ts +1 -1
  3. package/dist/components/inputs/base/vs-input-text.vue.d.ts.map +1 -1
  4. package/dist/components/inputs/date/datepicker/Datepicker.vue.d.ts +956 -0
  5. package/dist/components/inputs/date/datepicker/Datepicker.vue.d.ts.map +1 -0
  6. package/dist/components/inputs/date/datepicker/DayPicker.vue.d.ts +206 -0
  7. package/dist/components/inputs/date/datepicker/DayPicker.vue.d.ts.map +1 -0
  8. package/dist/components/inputs/date/datepicker/MonthPicker.vue.d.ts +142 -0
  9. package/dist/components/inputs/date/datepicker/MonthPicker.vue.d.ts.map +1 -0
  10. package/dist/components/inputs/date/datepicker/PickerPopup.vue.d.ts +74 -0
  11. package/dist/components/inputs/date/datepicker/PickerPopup.vue.d.ts.map +1 -0
  12. package/dist/components/inputs/date/datepicker/Timepicker.vue.d.ts +132 -0
  13. package/dist/components/inputs/date/datepicker/Timepicker.vue.d.ts.map +1 -0
  14. package/dist/components/inputs/date/datepicker/YearPicker.vue.d.ts +122 -0
  15. package/dist/components/inputs/date/datepicker/YearPicker.vue.d.ts.map +1 -0
  16. package/dist/components/inputs/date/datepicker/types.d.ts +16 -0
  17. package/dist/components/inputs/date/datepicker/types.d.ts.map +1 -0
  18. package/dist/components/inputs/date/vs-input-date2.vue.d.ts +17 -0
  19. package/dist/components/inputs/date/vs-input-date2.vue.d.ts.map +1 -0
  20. package/dist/components/modal/modal-edit.vue.d.ts.map +1 -1
  21. package/dist/index.css +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +4526 -3198
  24. package/dist/index.umd.cjs +3 -3
  25. package/dist/types/form.d.ts +4 -1
  26. package/dist/types/form.d.ts.map +1 -1
  27. package/dist/utils/dateHelper.d.ts +57 -0
  28. package/dist/utils/dateHelper.d.ts.map +1 -0
  29. package/package.json +68 -68
package/README.md CHANGED
@@ -1,73 +1,61 @@
1
- # Vue 3 + TypeScript + Vite
2
-
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6
-
7
- ## Features
8
-
9
- - Schema-based filter rendering (radio, checkbox)
10
- - Slot-based extensibility for custom filters
11
- - Built-in clear/reset support
12
- - Emits `change` and `clear` events
13
- - Popover support with positioning logic
14
- - Show more / limit options logic
15
- - Written in TypeScript
16
- - Fully styleable with Tailwind CSS
17
- - Mobile-friendly and responsive
18
-
19
- ---
20
-
21
- ## Documentation
22
-
23
- Check out the documentation and live demo here: [Live Demo & Docs](https://form.opengis.info)
24
-
25
- ## Install & Usage
26
-
27
- ### Install
28
-
29
- ```bash
30
- npm i @opengis/form
31
- ```
32
-
33
- ### Usage
34
-
35
- ```vue
36
- <template>
37
- <VsForm :schema="schema" @change="console.log($event.data)" />
38
- </template>
39
-
40
- <script setup lang="ts">
41
-
42
- import {ref} from 'vue'
43
- import VsForm from "@opengis/form";
44
-
45
- const schema = [
46
- { name: 'name', label: 'Name', type: 'text', col: 6, conditions: ['number', '==', 2], },
47
- { name: 'date', label: 'Date', type: 'date', col: 6, time: true, },
48
- { name: 'file', label: 'File', type: 'file', multiple: true, },
49
- { name: 'number', label: 'Number', type: 'number', col: 6, }
50
- ];
51
- </script>
52
- ```
53
-
54
- ### Register
55
-
56
- ```ts
57
- // main.ts
58
- import VsFilter from '@opengis/form';
59
- app.use(VsForm); // Register: VsForm, TextInput, ...
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,4 +1,4 @@
1
- import { IInputProps } from "../../../types/form";
1
+ import type { IInputProps } from '../../../types/form';
2
2
  type __VLS_Props = IInputProps;
3
3
  type __VLS_PublicProps = __VLS_Props & {
4
4
  modelValue?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"vs-input-text.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-text.vue"],"names":[],"mappings":"AA6CA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,KAAK,WAAW,GAAG,WAAW,CAAC;AAiC/B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;AAuDF,wBAQG"}
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"}