@opengis/form 0.0.76 → 0.0.77

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 CHANGED
@@ -1,73 +1,73 @@
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
+ 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 +1 @@
1
- {"version":3,"file":"vs-input-text.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-text.vue"],"names":[],"mappings":"AAsCA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,KAAK,WAAW,GAAG,WAAW,CAAC;AA2B/B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;AAqDF,wBAQG"}
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 +1 @@
1
- {"version":3,"file":"vs-input-textarea.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-textarea.vue"],"names":[],"mappings":"AAoCA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,KAAK,WAAW,GAAG,WAAW,CAAC;AAyB/B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;AAqDF,wBAQG"}
1
+ {"version":3,"file":"vs-input-textarea.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/base/vs-input-textarea.vue"],"names":[],"mappings":"AA2CA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,KAAK,WAAW,GAAG,WAAW,CAAC;AA+B/B,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;AAuDF,wBAQG"}
@@ -284,6 +284,7 @@ declare const _default: {
284
284
  handleZoom: boolean;
285
285
  ctrlZoom: boolean;
286
286
  geomType: string[];
287
+ katottg: string;
287
288
  layers: import("../../types/form.js").IMapLayerConfig[];
288
289
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
289
290
  'vs-input-file-list': import("vue").DefineComponent<import("../../types/form.js").IInputFileListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,wBAiCE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,wBAiCE"}
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<IInputMapProps, {}, {}, {}
8
8
  handleZoom: boolean;
9
9
  ctrlZoom: boolean;
10
10
  geomType: string[];
11
+ katottg: string;
11
12
  layers: IMapLayerConfig[];
12
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
14
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"vs-input-map.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/vs-input-map.vue"],"names":[],"mappings":"AA4jCA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;;AAggD9E,wBAQG"}
1
+ {"version":3,"file":"vs-input-map.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/map/vs-input-map.vue"],"names":[],"mappings":"AAkoCA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;AA+jD9E,wBAQG"}
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .grid[data-v-8e66207e]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-286cdbc0]{display:flex!important;background-color:#00000080}.loader[data-v-94bcb5d9]{width:24px;height:24px;border:3px solid #f3f3f3;border-top:3px solid #3b82f6;border-radius:50%;animation:spin-94bcb5d9 1s linear infinite}@keyframes spin-94bcb5d9{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-90320b87],.slide-fade-leave-active[data-v-90320b87]{transition:all .3s ease}.slide-fade-enter-from[data-v-90320b87],.slide-fade-leave-to[data-v-90320b87]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-90320b87],.slide-fade-leave-from[data-v-90320b87]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-590eff11],.slide-fade-leave-active[data-v-590eff11]{transition:all .3s ease}.slide-fade-enter-from[data-v-590eff11],.slide-fade-leave-to[data-v-590eff11]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-590eff11],.slide-fade-leave-from[data-v-590eff11]{max-height:1000px;opacity:1;transform:translateY(0)}.map-search-widget[data-v-3048520a]{width:100%}.vs-ctrl-group[data-v-2c15b74e]{display:inline-flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px #0000000a;gap:2px}.vs-btn[data-v-2c15b74e]{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .15s ease,color .15s ease,opacity .15s}.vs-btn svg[data-v-2c15b74e]{width:16px;height:16px;stroke:currentColor;fill:none;color:#3c3c43;stroke-width:2}.vs-btn[data-v-2c15b74e]:hover,.vs-active[data-v-2c15b74e]{background:#2563eb;color:#fff}.vs-btn[data-v-2c15b74e]:disabled{opacity:.5;cursor:not-allowed}.ring-2[data-v-2c15b74e]{box-shadow:0 0 0 2px #3b82f699}.leaflet-map-wrapper .leaflet-container[data-v-2c15b74e]{font:inherit}.fullscreen[data-v-2c15b74e]{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;z-index:9999;background:#fff}.tool[data-v-2c15b74e]{line-height:1}.zoom-instructions-enter-active[data-v-2c15b74e],.zoom-instructions-leave-active[data-v-2c15b74e]{transition:all .3s ease}.zoom-instructions-enter-from[data-v-2c15b74e]{opacity:0;transform:scale(.95) translateY(-10px)}.zoom-instructions-leave-to[data-v-2c15b74e]{opacity:0;transform:scale(.95) translateY(10px)}.zoom-instructions-enter-to[data-v-2c15b74e],.zoom-instructions-leave-from[data-v-2c15b74e]{opacity:1;transform:scale(1) translateY(0)}.col-error .vs-form-text input[data-v-b0eba370]{border:1px solid red}.vs-form-text[data-v-b0eba370]{position:relative}.vs-form-text__input[data-v-b0eba370]::placeholder{opacity:.5}.col-error .vs-form-text input[data-v-6ee5237d]{border:1px solid red}.vs-form-text[data-v-6ee5237d]{position:relative}.vs-form-text__input[data-v-6ee5237d]::placeholder{opacity:.5}[draggable=true][data-v-a0f7fbfc],[draggable=true][data-v-efa2057b]{-webkit-user-select:none;user-select:none}.vs-datalist[data-v-a7a64a30],.vs-dataform[data-v-4dc5a1a3]{width:100%}.vs-compact-form-navigation__item[data-v-1584a562]{--vs-nav-indicator-left: 4px}.vs-compact-form-navigation__item[data-v-1584a562]:before{content:"";position:absolute;top:50%;left:var(--vs-nav-indicator-left);width:1.5px;height:100%;transform:translateY(-50%);background-color:#6b728099;transition:background-color .2s ease}.vs-compact-form-navigation__button[data-v-1584a562]{transition:color .2s ease}.vs-compact-form-navigation__item--active[data-v-1584a562]:before{background-color:#2563eb;border-radius:9999px}
1
+ .grid[data-v-cf0478ce]{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1rem}.item-file:hover>div[data-v-b61a9d9a]{display:flex!important;background-color:#00000080}.loader[data-v-08fe911b]{width:24px;height:24px;border:3px solid #f3f3f3;border-top:3px solid #3b82f6;border-radius:50%;animation:spin-08fe911b 1s linear infinite}@keyframes spin-08fe911b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.widget-file .vs-button{background-color:#2563eb;color:#fff;font-size:.875rem;line-height:1.25rem;font-weight:600}.ui-dialog__modal div.flex.justify-between.items-center.py-3.px-4.border-b{border-bottom-width:0px;--tw-text-opacity: 1;color:#1f2937;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding-bottom:0rem}.ui-dialog__modal .ui-dialog__content .p-4{padding-top:0rem}.slide-fade-enter-active[data-v-00f2f0fc],.slide-fade-leave-active[data-v-00f2f0fc]{transition:all .3s ease}.slide-fade-enter-from[data-v-00f2f0fc],.slide-fade-leave-to[data-v-00f2f0fc]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-00f2f0fc],.slide-fade-leave-from[data-v-00f2f0fc]{max-height:1000px;opacity:1;transform:translateY(0)}.slide-fade-enter-active[data-v-78778cb5],.slide-fade-leave-active[data-v-78778cb5]{transition:all .3s ease}.slide-fade-enter-from[data-v-78778cb5],.slide-fade-leave-to[data-v-78778cb5]{max-height:0;opacity:0;transform:translateY(-10px)}.slide-fade-enter-to[data-v-78778cb5],.slide-fade-leave-from[data-v-78778cb5]{max-height:1000px;opacity:1;transform:translateY(0)}.map-search-widget[data-v-c5cab151]{width:100%}.vs-ctrl-group[data-v-9074155d]{display:inline-flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;box-shadow:0 1px 2px #0000000a;gap:2px}.vs-btn[data-v-9074155d]{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:none;cursor:pointer;border-radius:.375rem;transition:background-color .15s ease,color .15s ease,opacity .15s}.vs-btn svg[data-v-9074155d]{width:16px;height:16px;stroke:currentColor;fill:none;color:#3c3c43;stroke-width:2}.vs-btn[data-v-9074155d]:hover,.vs-active[data-v-9074155d]{background:#2563eb;color:#fff}.vs-btn[data-v-9074155d]:disabled{opacity:.5;cursor:not-allowed}.ring-2[data-v-9074155d]{box-shadow:0 0 0 2px #3b82f699}.leaflet-map-wrapper .leaflet-container[data-v-9074155d]{font:inherit}.fullscreen[data-v-9074155d]{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;z-index:9999;background:#fff}.tool[data-v-9074155d]{line-height:1}.zoom-instructions-enter-active[data-v-9074155d],.zoom-instructions-leave-active[data-v-9074155d]{transition:all .3s ease}.zoom-instructions-enter-from[data-v-9074155d]{opacity:0;transform:scale(.95) translateY(-10px)}.zoom-instructions-leave-to[data-v-9074155d]{opacity:0;transform:scale(.95) translateY(10px)}.zoom-instructions-enter-to[data-v-9074155d],.zoom-instructions-leave-from[data-v-9074155d]{opacity:1;transform:scale(1) translateY(0)}.col-error .vs-form-text input[data-v-cb7b2b74]{border:1px solid red}.vs-form-text[data-v-cb7b2b74]{position:relative}.vs-form-text__input[data-v-cb7b2b74]::placeholder{opacity:.5}.col-error .vs-form-text input[data-v-8f88fb66]{border:1px solid red}.vs-form-text[data-v-8f88fb66]{position:relative}.vs-form-text__input[data-v-8f88fb66]::placeholder{opacity:.5}[draggable=true][data-v-c1219c25],[draggable=true][data-v-9f5a70cd]{-webkit-user-select:none;user-select:none}.vs-datalist[data-v-3b714d78],.vs-dataform[data-v-9e39b4f5]{width:100%}.vs-compact-form-navigation__item[data-v-b3e16a91]{--vs-nav-indicator-left: 4px}.vs-compact-form-navigation__item[data-v-b3e16a91]:before{content:"";position:absolute;top:50%;left:var(--vs-nav-indicator-left);width:1.5px;height:100%;transform:translateY(-50%);background-color:#6b728099;transition:background-color .2s ease}.vs-compact-form-navigation__button[data-v-b3e16a91]{transition:color .2s ease}.vs-compact-form-navigation__item--active[data-v-b3e16a91]:before{background-color:#2563eb;border-radius:9999px}