easycomponentstools 1.0.0-dev.5 → 1.0.0-dev.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "easycomponentstools",
3
3
  "private": false,
4
- "version": "1.0.0-dev.5",
4
+ "version": "1.0.0-dev.7",
5
5
  "type": "module",
6
6
  "description": "Easy Vue Components",
7
7
  "keywords": [
@@ -2,6 +2,7 @@
2
2
  <CustomMapAutoComplete
3
3
  :class="input.required ? 'required_field' : ''"
4
4
  :label="input.label"
5
+ :options="input.options"
5
6
  @place_changed="change_location"
6
7
  ></CustomMapAutoComplete>
7
8
  <v-card ref="cardMapRef" :loading="loading" :elevation="0" class="cardMap">
@@ -6,6 +6,7 @@
6
6
  :items="items"
7
7
  clearable
8
8
  :loading="loading"
9
+ v-bind="{ ...options }"
9
10
  @keydown.enter="search"
10
11
  @update:model-value="change"
11
12
  @click:clear="clear"
@@ -27,6 +28,7 @@ type Item = {
27
28
  type propsType = {
28
29
  label: string
29
30
  getPlaces?: any
31
+ options: Record<string, any>
30
32
  }
31
33
 
32
34
  const props = defineProps<propsType>()
package/src/main.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  import { App } from 'vue'
2
- import { en, el } from 'vuetify/locale'
3
2
  import { pluginsPropertiesDTO } from './types/plugins'
4
- import { createVuetify } from 'vuetify/framework'
5
- import * as components from 'vuetify/components'
6
- import * as directives from 'vuetify/directives'
7
- import { VFileUpload } from 'vuetify/labs/components'
8
3
  import { createI18n } from 'vue-i18n'
9
4
  import langEn from '../src/lang/en'
10
5
  import langEl from '../src/lang/el'
@@ -14,33 +9,6 @@ import './scss/app.scss'
14
9
 
15
10
  export default {
16
11
  install(app: App, props: pluginsPropertiesDTO) {
17
- const vuetify = createVuetify({
18
- components: {
19
- ...components,
20
- VFileUpload,
21
- },
22
- directives,
23
- defaults: {},
24
- theme: {
25
- defaultTheme: 'customTheme',
26
- themes: {
27
- customTheme: {
28
- colors: props.colors,
29
- variables: {
30
- 'font-family': props.fontFamily,
31
- },
32
- },
33
- },
34
- },
35
- locale: {
36
- locale: props.locale,
37
- fallback: props.locale,
38
- messages: {
39
- en: { ...en },
40
- el: { ...el },
41
- },
42
- },
43
- })
44
12
  const i18n = createI18n({
45
13
  legacy: false,
46
14
  locale: props.locale ?? 'en',
@@ -49,7 +17,6 @@ export default {
49
17
  el: langEl,
50
18
  },
51
19
  })
52
- app.use(vuetify)
53
20
  app.use(i18n)
54
21
  app.component('EasyForm', EasyForm)
55
22
 
package/src/scss/app.scss CHANGED
@@ -1,4 +1,3 @@
1
- @use 'vuetify/styles';
2
1
  @import "lucide-static/font/lucide.css";
3
2
  @import "@mdi/font/css/materialdesignicons.min.css";
4
3
 
@@ -1,15 +1,4 @@
1
- export type colorsDTO = {
2
- background: string
3
- surface: string
4
- primary: string
5
- secondary: string
6
- error: string
7
- grey: string
8
- }
9
-
10
1
  export type pluginsPropertiesDTO = {
11
- colors: colorsDTO
12
- fontFamily: string
13
2
  locale: string
14
3
  timeZone: string
15
4
  }