@community-release/nx-ui 0.0.14 → 0.0.16

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
@@ -2,3 +2,4 @@
2
2
 
3
3
  Nuxt UI library
4
4
 
5
+ Not for production use yet.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "ui",
3
3
  "configKey": "ui",
4
- "version": "0.0.14"
4
+ "version": "0.0.16"
5
5
  }
package/dist/module.mjs CHANGED
@@ -168,6 +168,7 @@ const module = defineNuxtModule({
168
168
  getContents: () => generateComponentsDefaults(options)
169
169
  });
170
170
  const componentsProps = readComponentsProps(resolve, srcDir, options);
171
+ console.log("nx-ui componentsProps", componentsProps);
171
172
  for (let componentName in componentsProps) {
172
173
  addTemplate({
173
174
  filename: `ui.${componentName}.mjs`,
@@ -1,17 +1,15 @@
1
1
  <template>
2
2
  <section class="component-ui-map">
3
- <!-- <component :is="mapEngine" @initialized="emit('initialized', $event)"> -->
4
- <openlayers @initialized="emit('initialized', $event)">
3
+ <component :is="mapEngine" @initialized="emit('initialized', $event)">
5
4
  <slot :store="store"></slot>
6
5
  <div class="slot-row">
7
6
  <slot name="row" :store="store"></slot>
8
7
  </div>
9
- </openlayers>
8
+ </component>
10
9
  </section>
11
10
  </template>
12
11
 
13
12
  <script setup>
14
- import openlayers from './openlayers/index.vue';
15
13
  import { watch, computed, defineAsyncComponent } from 'vue';
16
14
  import { useMapStore } from './store';
17
15
  import comProps from '#build/ui.map.mjs';
@@ -19,9 +17,6 @@ import comProps from '#build/ui.map.mjs';
19
17
  // Data
20
18
  const store = useMapStore();
21
19
  const emit = defineEmits('initialized');
22
- // const engines = {
23
- // openlayers
24
- // };
25
20
 
26
21
  const props = defineProps({
27
22
  engine: {
@@ -92,10 +87,9 @@ watch(() => props.disabledMarkers, (v) => {
92
87
  store.setDisabledMarkers(v);
93
88
  }, {immediate: true});
94
89
 
95
- // const mapEngine = computed(() => {
96
- // return engines[props.engine];
97
- // //return defineAsyncComponent(() => import(`./${props.engine}/index.vue`));
98
- // });
90
+ const mapEngine = computed(() => {
91
+ return defineAsyncComponent(() => import(`./${props.engine}/index.vue`));
92
+ });
99
93
  </script>
100
94
 
101
95
  <style lang="less">
@@ -65,7 +65,7 @@ export const useMapStore: import("pinia").StoreDefinition<"map", {
65
65
  * Set map coord
66
66
  * @param {MapCoord} v
67
67
  */
68
- setCoord(v: any[]): void;
68
+ setCoord(v: MapCoord): void;
69
69
  /**
70
70
  * Enable/disable device zoom, if call withour params then toggle current state
71
71
  * @param {boolean=} v
@@ -110,5 +110,5 @@ export type MapCoord = any[];
110
110
  * Map Marker
111
111
  */
112
112
  export type MapMarker = {
113
- coord: any[];
113
+ coord: MapCoord;
114
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "nx-ui - Nuxt UI library",
5
5
  "repository": {
6
6
  "type": "git",