easycomponentstools 1.0.0-dev.0
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/.idea/EasyComponents.iml +8 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jsLinters/eslint.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php.xml +19 -0
- package/.idea/prettier.xml +7 -0
- package/.prettierrc +9 -0
- package/dist/easyComponents.es.js +35624 -0
- package/dist/easyComponents.umd.js +27 -0
- package/dist/easycomponents.css +2 -0
- package/dist/src/components/Form/EasyForm.vue.d.ts +24 -0
- package/dist/src/components/Form/MenuActions.vue.d.ts +7 -0
- package/dist/src/components/Form/types/DatePicker.vue.d.ts +16 -0
- package/dist/src/components/Form/types/FileInput.vue.d.ts +16 -0
- package/dist/src/components/Form/types/Gallery.vue.d.ts +7 -0
- package/dist/src/components/Form/types/Input.vue.d.ts +12 -0
- package/dist/src/components/Form/types/MapAutoComplete.vue.d.ts +20 -0
- package/dist/src/components/Form/types/Number.vue.d.ts +12 -0
- package/dist/src/components/Form/types/Password.vue.d.ts +12 -0
- package/dist/src/components/Form/types/RangeDatePicker.vue.d.ts +16 -0
- package/dist/src/components/Form/types/Selects.vue.d.ts +16 -0
- package/dist/src/components/Form/types/SelectsAutoComplete.vue.d.ts +16 -0
- package/dist/src/components/Form/types/Switch.vue.d.ts +16 -0
- package/dist/src/components/Form/types/Tags.vue.d.ts +16 -0
- package/dist/src/components/Form/types/TextArea.vue.d.ts +12 -0
- package/dist/src/components/Form/types/map/CustomMapAutoComplete.vue.d.ts +7 -0
- package/dist/src/composables/useHelpers.d.ts +9 -0
- package/dist/src/composables/useMap.d.ts +41 -0
- package/dist/src/lang/el/form.d.ts +5 -0
- package/dist/src/lang/el/index.d.ts +7 -0
- package/dist/src/lang/en/form.d.ts +5 -0
- package/dist/src/lang/en/index.d.ts +7 -0
- package/dist/src/main.d.ts +6 -0
- package/dist/src/stores/useInfo.d.ts +7 -0
- package/dist/src/types/form.d.ts +48 -0
- package/dist/src/types/gallery.d.ts +4 -0
- package/dist/src/types/map.d.ts +32 -0
- package/dist/src/types/plugins.d.ts +14 -0
- package/dist/src/types/table.d.ts +79 -0
- package/eslint.config.ts +26 -0
- package/package.json +54 -0
- package/src/components/Form/EasyForm.vue +194 -0
- package/src/components/Form/MenuActions.vue +40 -0
- package/src/components/Form/types/DatePicker.vue +103 -0
- package/src/components/Form/types/FileInput.vue +68 -0
- package/src/components/Form/types/Gallery.vue +28 -0
- package/src/components/Form/types/Input.vue +23 -0
- package/src/components/Form/types/MapAutoComplete.vue +83 -0
- package/src/components/Form/types/Number.vue +24 -0
- package/src/components/Form/types/Password.vue +53 -0
- package/src/components/Form/types/RangeDatePicker.vue +133 -0
- package/src/components/Form/types/Selects.vue +24 -0
- package/src/components/Form/types/SelectsAutoComplete.vue +24 -0
- package/src/components/Form/types/Switch.vue +24 -0
- package/src/components/Form/types/Tags.vue +59 -0
- package/src/components/Form/types/TextArea.vue +23 -0
- package/src/components/Form/types/map/CustomMapAutoComplete.vue +83 -0
- package/src/composables/useHelpers.ts +48 -0
- package/src/composables/useMap.ts +104 -0
- package/src/lang/el/form.ts +4 -0
- package/src/lang/el/index.ts +5 -0
- package/src/lang/en/form.ts +4 -0
- package/src/lang/en/index.ts +5 -0
- package/src/main.ts +59 -0
- package/src/scss/app.scss +57 -0
- package/src/shims-scss.d.ts +3 -0
- package/src/stores/useInfo.ts +10 -0
- package/src/types/form.ts +63 -0
- package/src/types/gallery.ts +4 -0
- package/src/types/map.ts +33 -0
- package/src/types/plugins.ts +15 -0
- package/src/types/table.ts +80 -0
- package/tsconfig.json +9 -0
- package/vite.config.ts +19 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type inputType =
|
|
2
|
+
| 'input'
|
|
3
|
+
| 'textarea'
|
|
4
|
+
| 'number'
|
|
5
|
+
| 'password'
|
|
6
|
+
| 'password-eye'
|
|
7
|
+
| 'checkbox'
|
|
8
|
+
| 'selects'
|
|
9
|
+
| 'selectsAutoComplete'
|
|
10
|
+
| 'selectsAutoCompleteChips'
|
|
11
|
+
| 'date'
|
|
12
|
+
| 'rangeDate'
|
|
13
|
+
| 'file'
|
|
14
|
+
| 'map'
|
|
15
|
+
| 'slot'
|
|
16
|
+
|
|
17
|
+
export type InputDTO = {
|
|
18
|
+
type: inputType
|
|
19
|
+
key: string
|
|
20
|
+
label: string
|
|
21
|
+
icon?: string
|
|
22
|
+
required?: boolean
|
|
23
|
+
options: any
|
|
24
|
+
validation?: any[]
|
|
25
|
+
moreButton?: {
|
|
26
|
+
onClick: any
|
|
27
|
+
icon: string
|
|
28
|
+
label: string
|
|
29
|
+
}
|
|
30
|
+
onChange?: any
|
|
31
|
+
onDelete?: any
|
|
32
|
+
}
|
|
33
|
+
export type buttonDTO = {
|
|
34
|
+
onClick: any
|
|
35
|
+
label: string
|
|
36
|
+
icon?: string
|
|
37
|
+
color?: string
|
|
38
|
+
loading?: boolean
|
|
39
|
+
disabled?: boolean
|
|
40
|
+
}
|
|
41
|
+
export type submitDTO = {
|
|
42
|
+
label: string
|
|
43
|
+
icon?: string
|
|
44
|
+
color?: string
|
|
45
|
+
onSubmit: any
|
|
46
|
+
}
|
|
47
|
+
export type MenuButtonsDTO = {
|
|
48
|
+
label: string
|
|
49
|
+
icon?: string
|
|
50
|
+
color?: string
|
|
51
|
+
items: buttonDTO[]
|
|
52
|
+
}
|
|
53
|
+
export type FormDTO = {
|
|
54
|
+
elevation?: number
|
|
55
|
+
title?: string
|
|
56
|
+
icon?: string
|
|
57
|
+
subtitle?: string
|
|
58
|
+
inputs: InputDTO[]
|
|
59
|
+
binder: any
|
|
60
|
+
button?: buttonDTO
|
|
61
|
+
submit?: submitDTO
|
|
62
|
+
menuButtons?: MenuButtonsDTO
|
|
63
|
+
}
|
package/src/types/map.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue'
|
|
2
|
+
|
|
3
|
+
interface MapRefWithMapObject extends ComponentPublicInstance {
|
|
4
|
+
$mapObject?: google.maps.Map | null
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export type MapDTO = {
|
|
8
|
+
cardMapRef: ComponentPublicInstance
|
|
9
|
+
mapRef: MapRefWithMapObject
|
|
10
|
+
isFullScreen: boolean
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type MapOptions = {
|
|
14
|
+
zoomControl: boolean
|
|
15
|
+
mapTypeControl: boolean
|
|
16
|
+
scaleControl: boolean
|
|
17
|
+
streetViewControl: boolean
|
|
18
|
+
rotateControl: boolean
|
|
19
|
+
fullscreenControl: boolean
|
|
20
|
+
disableDefaultUi: boolean
|
|
21
|
+
styles: Array<{
|
|
22
|
+
featureType: string
|
|
23
|
+
stylers: Array<{ visibility: string }>
|
|
24
|
+
}>
|
|
25
|
+
zoom: number
|
|
26
|
+
key: number
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface DocumentWithFullscreen extends Document {
|
|
30
|
+
webkitExitFullscreen?: any
|
|
31
|
+
mozCancelFullScreen?: any
|
|
32
|
+
msExitFullscreen?: any
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type colorsDTO = {
|
|
2
|
+
background: string
|
|
3
|
+
surface: '#f1f1f1'
|
|
4
|
+
primary: '#099a09'
|
|
5
|
+
secondary: '#242424'
|
|
6
|
+
error: '#b71c1c'
|
|
7
|
+
grey: '#ACAAAAFF'
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type pluginsPropertiesDTO = {
|
|
11
|
+
colors: colorsDTO
|
|
12
|
+
fontFamily: string
|
|
13
|
+
locale: 'el' | 'en,'
|
|
14
|
+
timeZone: string
|
|
15
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { DataTableHeader } from 'vuetify/framework'
|
|
2
|
+
|
|
3
|
+
export type HeaderActionMenuItemsDTO = {
|
|
4
|
+
label: string
|
|
5
|
+
icon?: string
|
|
6
|
+
onClick: any | string
|
|
7
|
+
show?: any
|
|
8
|
+
}
|
|
9
|
+
export type HeaderActionDTO = {
|
|
10
|
+
type?: 'menu'
|
|
11
|
+
show?: any
|
|
12
|
+
icon: string
|
|
13
|
+
color?: string
|
|
14
|
+
label?: string
|
|
15
|
+
onClick: any | string
|
|
16
|
+
items?: HeaderActionMenuItemsDTO[]
|
|
17
|
+
}
|
|
18
|
+
export type HeaderDTO = DataTableHeader & {
|
|
19
|
+
title: string
|
|
20
|
+
value: string
|
|
21
|
+
sortable?: boolean
|
|
22
|
+
align?: string
|
|
23
|
+
width?: string
|
|
24
|
+
valueFormatter?: any
|
|
25
|
+
cellRenderer?: any
|
|
26
|
+
type?: string
|
|
27
|
+
actions?: HeaderActionDTO[]
|
|
28
|
+
hidden?: boolean
|
|
29
|
+
show?: boolean
|
|
30
|
+
}
|
|
31
|
+
export type SavedHeaderDTO = {
|
|
32
|
+
value: string
|
|
33
|
+
hidden: boolean
|
|
34
|
+
order: number
|
|
35
|
+
}
|
|
36
|
+
export type ApiTableDTO = {
|
|
37
|
+
create?: any
|
|
38
|
+
get: string
|
|
39
|
+
delete?: string
|
|
40
|
+
multipleDelete?: string
|
|
41
|
+
}
|
|
42
|
+
export type HardFiltersDTO = {
|
|
43
|
+
label?: string
|
|
44
|
+
type: 'trash' | 'exist' | 'not_exist' | 'active' | 'not_active' | 'premium'
|
|
45
|
+
column: string
|
|
46
|
+
key?: string
|
|
47
|
+
active?: boolean
|
|
48
|
+
}
|
|
49
|
+
export type AdvancedFiltersComparisonDTO = {
|
|
50
|
+
symbol: '<' | '<=' | '=' | '>' | '>='
|
|
51
|
+
value: number
|
|
52
|
+
}
|
|
53
|
+
export type SelectItem = {
|
|
54
|
+
title: string
|
|
55
|
+
value: any
|
|
56
|
+
}
|
|
57
|
+
export type AdvancedFiltersDTO = {
|
|
58
|
+
type: 'input' | 'inArray' | 'likeInArray' | 'selects' | 'date' | 'dateTime' | 'comparison'
|
|
59
|
+
column: string
|
|
60
|
+
label?: string
|
|
61
|
+
value: AdvancedFiltersComparisonDTO | string | string[]
|
|
62
|
+
items?: SelectItem[]
|
|
63
|
+
}
|
|
64
|
+
export type PropsDataTableDTO = {
|
|
65
|
+
id: string
|
|
66
|
+
headers: HeaderDTO[]
|
|
67
|
+
showSelect?: boolean
|
|
68
|
+
multipleHardFilters?: boolean
|
|
69
|
+
multipleDeletion?: boolean
|
|
70
|
+
api: ApiTableDTO
|
|
71
|
+
title?: string
|
|
72
|
+
hardFilters?: HardFiltersDTO[]
|
|
73
|
+
advancedFilters?: AdvancedFiltersDTO[]
|
|
74
|
+
calcHeight?: string
|
|
75
|
+
showExportData?: boolean
|
|
76
|
+
}
|
|
77
|
+
export type SortDTO = {
|
|
78
|
+
column: string
|
|
79
|
+
sort: string
|
|
80
|
+
}
|
package/tsconfig.json
ADDED
package/vite.config.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import dts from 'vite-plugin-dts'
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
plugins: [vue(), dts()],
|
|
7
|
+
build: {
|
|
8
|
+
cssCodeSplit: false,
|
|
9
|
+
lib: {
|
|
10
|
+
entry: 'src/main.ts',
|
|
11
|
+
name: 'EasyComponents',
|
|
12
|
+
fileName: (format) => `easyComponents.${format}.js`,
|
|
13
|
+
},
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
external: ['vue'],
|
|
16
|
+
output: { globals: { vue: 'Vue' } },
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
})
|