shared-ritm 1.2.151 → 1.2.152
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/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +4619 -4550
- package/dist/shared-ritm.umd.js +156 -156
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/dist/types/api/services/VideoService.d.ts +1 -0
- package/dist/types/index.d.ts +2 -1
- package/package.json +64 -64
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/ControlsService.ts +92 -92
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +63 -63
- package/src/api/services/MetricsService.ts +110 -110
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +124 -124
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +113 -113
- package/src/api/services/VideoService.ts +107 -103
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +105 -105
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +136 -136
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +62 -62
- package/src/api/types/Api_Repairs.ts +140 -140
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_User.ts +145 -145
- package/src/api/types/Api_Video.ts +145 -145
- package/src/common/app-datepicker/AppDatepicker.vue +176 -176
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-input-new/AppInputNew.vue +175 -175
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-modal/index.vue +96 -0
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +168 -168
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
- package/src/common/app-table/AppTable.vue +308 -308
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +286 -285
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/index.ts +128 -126
- package/src/styles/variables.sass +12 -12
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { ref, watch, onMounted, Ref } from 'vue'
|
|
2
|
-
|
|
3
|
-
export function useBaseTable(model: {
|
|
4
|
-
initialize: (params: { search: string; page: number }) => Promise<void>
|
|
5
|
-
loading: Ref<boolean>
|
|
6
|
-
columnFilters: Ref<Record<string, any>>
|
|
7
|
-
}) {
|
|
8
|
-
const search = ref('')
|
|
9
|
-
const currentPage = ref(1)
|
|
10
|
-
|
|
11
|
-
const loadTable = async (searchVal = '', pageVal = 1) => {
|
|
12
|
-
await model.initialize({ search: searchVal, page: pageVal })
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const handleSearch = async (val: string) => {
|
|
16
|
-
search.value = val
|
|
17
|
-
currentPage.value = 1
|
|
18
|
-
await loadTable(val, currentPage.value)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const handlePageChange = async (page: number) => {
|
|
22
|
-
currentPage.value = page
|
|
23
|
-
await loadTable(search.value, page)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
watch(
|
|
27
|
-
() => model.columnFilters.value,
|
|
28
|
-
async () => {
|
|
29
|
-
currentPage.value = 1
|
|
30
|
-
await loadTable(search.value, currentPage.value)
|
|
31
|
-
},
|
|
32
|
-
{ deep: true },
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
onMounted(() => loadTable(search.value, currentPage.value))
|
|
36
|
-
|
|
37
|
-
return {
|
|
38
|
-
search,
|
|
39
|
-
currentPage,
|
|
40
|
-
loading: model.loading,
|
|
41
|
-
handleSearch,
|
|
42
|
-
handlePageChange,
|
|
43
|
-
loadTable,
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
import { ref, watch, onMounted, Ref } from 'vue'
|
|
2
|
+
|
|
3
|
+
export function useBaseTable(model: {
|
|
4
|
+
initialize: (params: { search: string; page: number }) => Promise<void>
|
|
5
|
+
loading: Ref<boolean>
|
|
6
|
+
columnFilters: Ref<Record<string, any>>
|
|
7
|
+
}) {
|
|
8
|
+
const search = ref('')
|
|
9
|
+
const currentPage = ref(1)
|
|
10
|
+
|
|
11
|
+
const loadTable = async (searchVal = '', pageVal = 1) => {
|
|
12
|
+
await model.initialize({ search: searchVal, page: pageVal })
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const handleSearch = async (val: string) => {
|
|
16
|
+
search.value = val
|
|
17
|
+
currentPage.value = 1
|
|
18
|
+
await loadTable(val, currentPage.value)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const handlePageChange = async (page: number) => {
|
|
22
|
+
currentPage.value = page
|
|
23
|
+
await loadTable(search.value, page)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
watch(
|
|
27
|
+
() => model.columnFilters.value,
|
|
28
|
+
async () => {
|
|
29
|
+
currentPage.value = 1
|
|
30
|
+
await loadTable(search.value, currentPage.value)
|
|
31
|
+
},
|
|
32
|
+
{ deep: true },
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
onMounted(() => loadTable(search.value, currentPage.value))
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
search,
|
|
39
|
+
currentPage,
|
|
40
|
+
loading: model.loading,
|
|
41
|
+
handleSearch,
|
|
42
|
+
handlePageChange,
|
|
43
|
+
loadTable,
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { Ref, computed, ref } from 'vue'
|
|
2
|
-
|
|
3
|
-
export interface TableColumn {
|
|
4
|
-
name: string
|
|
5
|
-
label: string
|
|
6
|
-
style?: string
|
|
7
|
-
headerStyle?: string
|
|
8
|
-
field?: string | ((row: any) => any)
|
|
9
|
-
sortable?: boolean
|
|
10
|
-
filterType?: 'single' | 'multi' | null
|
|
11
|
-
align?: 'left' | 'center' | 'right'
|
|
12
|
-
badge?: {
|
|
13
|
-
true?: string
|
|
14
|
-
false?: string
|
|
15
|
-
colorTrue?: string
|
|
16
|
-
colorFalse?: string
|
|
17
|
-
}
|
|
18
|
-
format?: (val: any) => any
|
|
19
|
-
html?: boolean
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface FilterOption {
|
|
23
|
-
id: string
|
|
24
|
-
name: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface TableModel<T = any> {
|
|
28
|
-
columns: TableColumn[]
|
|
29
|
-
rows: T[] | Ref<T[]>
|
|
30
|
-
filtersOptions?: Ref<Record<string, FilterOption[]>>
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const useTableModel = <T = any>(model: TableModel<T>) => {
|
|
34
|
-
const columnFilters = ref<Record<string, string | string[] | undefined>>({})
|
|
35
|
-
const filterMenus = ref<Record<string, boolean>>({})
|
|
36
|
-
|
|
37
|
-
model.columns.forEach(({ name, filterType }) => {
|
|
38
|
-
if (filterType) {
|
|
39
|
-
columnFilters.value[name] = filterType === 'multi' ? [] : undefined
|
|
40
|
-
filterMenus.value[name] = false
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
const resolvedRows = computed(() => (Array.isArray(model.rows) ? model.rows : model.rows.value))
|
|
45
|
-
|
|
46
|
-
const toggleFilterValue = (colName: string, value: string) => {
|
|
47
|
-
const col = model.columns.find(c => c.name === colName)
|
|
48
|
-
if (col?.filterType === 'multi') {
|
|
49
|
-
const current = columnFilters.value[colName] as string[]
|
|
50
|
-
const index = current.indexOf(value)
|
|
51
|
-
index > -1 ? current.splice(index, 1) : current.push(value)
|
|
52
|
-
columnFilters.value[colName] = [...current]
|
|
53
|
-
} else {
|
|
54
|
-
columnFilters.value[colName] = value
|
|
55
|
-
filterMenus.value[colName] = false
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const selectedFilters = computed(() => {
|
|
60
|
-
const result: Record<string, string[]> = {}
|
|
61
|
-
for (const col of model.columns) {
|
|
62
|
-
const filter = columnFilters.value[col.name]
|
|
63
|
-
const options = model.filtersOptions?.value[col.name] || []
|
|
64
|
-
|
|
65
|
-
if (filter) {
|
|
66
|
-
let selectedIds: string[] = []
|
|
67
|
-
if (Array.isArray(filter)) {
|
|
68
|
-
selectedIds = options
|
|
69
|
-
.filter(opt => filter.includes(opt.name))
|
|
70
|
-
.map(opt => opt.id)
|
|
71
|
-
} else {
|
|
72
|
-
selectedIds = options
|
|
73
|
-
.filter(opt => opt.name === filter)
|
|
74
|
-
.map(opt => opt.id)
|
|
75
|
-
}
|
|
76
|
-
result[col.name] = Array.from(new Set(selectedIds))
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return result
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const clearFilter = (colName: string) => {
|
|
84
|
-
const col = model.columns.find(c => c.name === colName)
|
|
85
|
-
columnFilters.value[colName] = col?.filterType === 'multi' ? [] : undefined
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const openFilterMenu = (colName: string, isOpen: boolean) => {
|
|
89
|
-
filterMenus.value[colName] = isOpen
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return {
|
|
93
|
-
rows: resolvedRows,
|
|
94
|
-
columns: computed(() => model.columns),
|
|
95
|
-
columnFilters,
|
|
96
|
-
filterMenus,
|
|
97
|
-
toggleFilterValue,
|
|
98
|
-
clearFilter,
|
|
99
|
-
openFilterMenu,
|
|
100
|
-
selectedFilters,
|
|
101
|
-
}
|
|
102
|
-
}
|
|
1
|
+
import { Ref, computed, ref } from 'vue'
|
|
2
|
+
|
|
3
|
+
export interface TableColumn {
|
|
4
|
+
name: string
|
|
5
|
+
label: string
|
|
6
|
+
style?: string
|
|
7
|
+
headerStyle?: string
|
|
8
|
+
field?: string | ((row: any) => any)
|
|
9
|
+
sortable?: boolean
|
|
10
|
+
filterType?: 'single' | 'multi' | null
|
|
11
|
+
align?: 'left' | 'center' | 'right'
|
|
12
|
+
badge?: {
|
|
13
|
+
true?: string
|
|
14
|
+
false?: string
|
|
15
|
+
colorTrue?: string
|
|
16
|
+
colorFalse?: string
|
|
17
|
+
}
|
|
18
|
+
format?: (val: any) => any
|
|
19
|
+
html?: boolean
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface FilterOption {
|
|
23
|
+
id: string
|
|
24
|
+
name: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface TableModel<T = any> {
|
|
28
|
+
columns: TableColumn[]
|
|
29
|
+
rows: T[] | Ref<T[]>
|
|
30
|
+
filtersOptions?: Ref<Record<string, FilterOption[]>>
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export const useTableModel = <T = any>(model: TableModel<T>) => {
|
|
34
|
+
const columnFilters = ref<Record<string, string | string[] | undefined>>({})
|
|
35
|
+
const filterMenus = ref<Record<string, boolean>>({})
|
|
36
|
+
|
|
37
|
+
model.columns.forEach(({ name, filterType }) => {
|
|
38
|
+
if (filterType) {
|
|
39
|
+
columnFilters.value[name] = filterType === 'multi' ? [] : undefined
|
|
40
|
+
filterMenus.value[name] = false
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
const resolvedRows = computed(() => (Array.isArray(model.rows) ? model.rows : model.rows.value))
|
|
45
|
+
|
|
46
|
+
const toggleFilterValue = (colName: string, value: string) => {
|
|
47
|
+
const col = model.columns.find(c => c.name === colName)
|
|
48
|
+
if (col?.filterType === 'multi') {
|
|
49
|
+
const current = columnFilters.value[colName] as string[]
|
|
50
|
+
const index = current.indexOf(value)
|
|
51
|
+
index > -1 ? current.splice(index, 1) : current.push(value)
|
|
52
|
+
columnFilters.value[colName] = [...current]
|
|
53
|
+
} else {
|
|
54
|
+
columnFilters.value[colName] = value
|
|
55
|
+
filterMenus.value[colName] = false
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const selectedFilters = computed(() => {
|
|
60
|
+
const result: Record<string, string[]> = {}
|
|
61
|
+
for (const col of model.columns) {
|
|
62
|
+
const filter = columnFilters.value[col.name]
|
|
63
|
+
const options = model.filtersOptions?.value[col.name] || []
|
|
64
|
+
|
|
65
|
+
if (filter) {
|
|
66
|
+
let selectedIds: string[] = []
|
|
67
|
+
if (Array.isArray(filter)) {
|
|
68
|
+
selectedIds = options
|
|
69
|
+
.filter(opt => filter.includes(opt.name))
|
|
70
|
+
.map(opt => opt.id)
|
|
71
|
+
} else {
|
|
72
|
+
selectedIds = options
|
|
73
|
+
.filter(opt => opt.name === filter)
|
|
74
|
+
.map(opt => opt.id)
|
|
75
|
+
}
|
|
76
|
+
result[col.name] = Array.from(new Set(selectedIds))
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
const clearFilter = (colName: string) => {
|
|
84
|
+
const col = model.columns.find(c => c.name === colName)
|
|
85
|
+
columnFilters.value[colName] = col?.filterType === 'multi' ? [] : undefined
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const openFilterMenu = (colName: string, isOpen: boolean) => {
|
|
89
|
+
filterMenus.value[colName] = isOpen
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
rows: resolvedRows,
|
|
94
|
+
columns: computed(() => model.columns),
|
|
95
|
+
columnFilters,
|
|
96
|
+
filterMenus,
|
|
97
|
+
toggleFilterValue,
|
|
98
|
+
clearFilter,
|
|
99
|
+
openFilterMenu,
|
|
100
|
+
selectedFilters,
|
|
101
|
+
}
|
|
102
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,126 +1,128 @@
|
|
|
1
|
-
import './shared/styles/general.css'
|
|
2
|
-
import AppButton from './common/app-button/AppButton.vue'
|
|
3
|
-
import AppCheckbox from './common/app-checkbox/AppCheckbox.vue'
|
|
4
|
-
import AppDatePicker from './common/app-date-picker/AppDatePicker.vue'
|
|
5
|
-
import AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
|
|
6
|
-
import AppInput from './common/app-input/AppInput.vue'
|
|
7
|
-
import AppInputNew from './common/app-input-new/AppInputNew.vue'
|
|
8
|
-
import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
|
|
9
|
-
import AppLayout from './common/app-layout/AppLayout.vue'
|
|
10
|
-
import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
|
|
11
|
-
import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
|
|
12
|
-
import AppLoader from './common/app-loader/index.vue'
|
|
13
|
-
import AppSelect from './common/app-select/AppSelect.vue'
|
|
14
|
-
import AppSheet from './common/app-sheet/AppSheet.vue'
|
|
15
|
-
import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
|
|
16
|
-
import AppSidebar from './common/app-sidebar/AppSidebar.vue'
|
|
17
|
-
import AppToggle from './common/app-toggle/AppToggle.vue'
|
|
18
|
-
import AppWrapper from './common/app-wrapper/AppWrapper.vue'
|
|
19
|
-
import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
|
|
20
|
-
import AppDropdown from './common/app-dropdown/AppDropdown.vue'
|
|
21
|
-
import AppTablePagination from './common/app-table/components/TablePagination.vue'
|
|
22
|
-
import AppTableSearch from './common/app-table/components/TableSearch.vue'
|
|
23
|
-
import AppTableModal from './common/app-table/components/TableModal.vue'
|
|
24
|
-
import AppTable from './common/app-table/AppTable.vue'
|
|
25
|
-
import AppTableLayout from './common/app-table/AppTableLayout.vue'
|
|
26
|
-
import AppModalSelect from './common/app-table/components/ModalSelect.vue'
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
export type {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
export
|
|
109
|
-
|
|
110
|
-
export * from './
|
|
111
|
-
|
|
112
|
-
export * from './api/types/
|
|
113
|
-
export * from './api/types/
|
|
114
|
-
export * from './api/types/
|
|
115
|
-
export * from './api/types/
|
|
116
|
-
export * from './api/types/
|
|
117
|
-
export * from './api/types/
|
|
118
|
-
export * from './api/types/
|
|
119
|
-
export * from './api/types/
|
|
120
|
-
export * from './api/types/
|
|
121
|
-
export * from './api/types/
|
|
122
|
-
export * from './api/types/
|
|
123
|
-
export * from './api/types/
|
|
124
|
-
export * from './api/types/
|
|
125
|
-
export * from './api/types/
|
|
126
|
-
|
|
1
|
+
import './shared/styles/general.css'
|
|
2
|
+
import AppButton from './common/app-button/AppButton.vue'
|
|
3
|
+
import AppCheckbox from './common/app-checkbox/AppCheckbox.vue'
|
|
4
|
+
import AppDatePicker from './common/app-date-picker/AppDatePicker.vue'
|
|
5
|
+
import AppDatepicker from './common/app-datepicker/AppDatepicker.vue'
|
|
6
|
+
import AppInput from './common/app-input/AppInput.vue'
|
|
7
|
+
import AppInputNew from './common/app-input-new/AppInputNew.vue'
|
|
8
|
+
import AppInputSearch from './common/app-input-search/AppInputSearch.vue'
|
|
9
|
+
import AppLayout from './common/app-layout/AppLayout.vue'
|
|
10
|
+
import AppLayoutHeader from './common/app-layout/components/AppLayoutHeader.vue'
|
|
11
|
+
import AppLayoutPage from './common/app-layout/components/AppLayoutPage.vue'
|
|
12
|
+
import AppLoader from './common/app-loader/index.vue'
|
|
13
|
+
import AppSelect from './common/app-select/AppSelect.vue'
|
|
14
|
+
import AppSheet from './common/app-sheet/AppSheet.vue'
|
|
15
|
+
import AppSheetNew from './common/app-sheet-new/AppSheetNew.vue'
|
|
16
|
+
import AppSidebar from './common/app-sidebar/AppSidebar.vue'
|
|
17
|
+
import AppToggle from './common/app-toggle/AppToggle.vue'
|
|
18
|
+
import AppWrapper from './common/app-wrapper/AppWrapper.vue'
|
|
19
|
+
import AppConfirmDialog from './common/app-dialogs/AppConfirmDialog.vue'
|
|
20
|
+
import AppDropdown from './common/app-dropdown/AppDropdown.vue'
|
|
21
|
+
import AppTablePagination from './common/app-table/components/TablePagination.vue'
|
|
22
|
+
import AppTableSearch from './common/app-table/components/TableSearch.vue'
|
|
23
|
+
import AppTableModal from './common/app-table/components/TableModal.vue'
|
|
24
|
+
import AppTable from './common/app-table/AppTable.vue'
|
|
25
|
+
import AppTableLayout from './common/app-table/AppTableLayout.vue'
|
|
26
|
+
import AppModalSelect from './common/app-table/components/ModalSelect.vue'
|
|
27
|
+
import AppModal from './common/app-modal/index.vue'
|
|
28
|
+
|
|
29
|
+
import ApiService from './api/settings/ApiService'
|
|
30
|
+
import useGanttService from './api/services/GanttService'
|
|
31
|
+
import useMetricsService from './api/services/MetricsService'
|
|
32
|
+
import useProjectsService from './api/services/ProjectsService'
|
|
33
|
+
import useRepairsService from './api/services/RepairsService'
|
|
34
|
+
import useTasksService from './api/services/TasksService'
|
|
35
|
+
import useAuthService from './api/services/AuthService'
|
|
36
|
+
import useFileService from './api/services/FileService'
|
|
37
|
+
import useVideoService from './api/services/VideoService'
|
|
38
|
+
import useUserService from './api/services/UserService'
|
|
39
|
+
import useInstrumentsService from './api/services/InstrumentsService'
|
|
40
|
+
import useControlsService from './api/services/ControlsService'
|
|
41
|
+
import useSearchService from './api/services/SearchService'
|
|
42
|
+
import useModulesService from './api/services/ModulesService'
|
|
43
|
+
import useCommentsService from './api/services/CommentsService'
|
|
44
|
+
import useEquipmentService from './api/services/EquipmentService'
|
|
45
|
+
import useBrigadesService from './api/services/BrigadesService'
|
|
46
|
+
import useScheduleService from './api/services/ScheduleService'
|
|
47
|
+
|
|
48
|
+
import useFaceApiHelper from './utils/faceApiHelper'
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
AppButton,
|
|
52
|
+
AppCheckbox,
|
|
53
|
+
AppDatepicker,
|
|
54
|
+
AppDatePicker,
|
|
55
|
+
AppInput,
|
|
56
|
+
AppInputNew,
|
|
57
|
+
AppInputSearch,
|
|
58
|
+
AppLayout,
|
|
59
|
+
AppLayoutHeader,
|
|
60
|
+
AppLayoutPage,
|
|
61
|
+
AppLoader,
|
|
62
|
+
AppSelect,
|
|
63
|
+
AppSheet,
|
|
64
|
+
AppSheetNew,
|
|
65
|
+
AppSidebar,
|
|
66
|
+
AppToggle,
|
|
67
|
+
AppWrapper,
|
|
68
|
+
AppConfirmDialog,
|
|
69
|
+
AppDropdown,
|
|
70
|
+
AppTablePagination,
|
|
71
|
+
AppTableSearch,
|
|
72
|
+
AppTableModal,
|
|
73
|
+
AppTable,
|
|
74
|
+
AppTableLayout,
|
|
75
|
+
AppModalSelect,
|
|
76
|
+
AppModal,
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
ApiService,
|
|
81
|
+
useAuthService,
|
|
82
|
+
useGanttService,
|
|
83
|
+
useMetricsService,
|
|
84
|
+
useProjectsService,
|
|
85
|
+
useRepairsService,
|
|
86
|
+
useTasksService,
|
|
87
|
+
useFileService,
|
|
88
|
+
useControlsService,
|
|
89
|
+
useVideoService,
|
|
90
|
+
useUserService,
|
|
91
|
+
useInstrumentsService,
|
|
92
|
+
useSearchService,
|
|
93
|
+
useModulesService,
|
|
94
|
+
useCommentsService,
|
|
95
|
+
useFaceApiHelper,
|
|
96
|
+
useEquipmentService,
|
|
97
|
+
useBrigadesService,
|
|
98
|
+
useScheduleService,
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export { useBaseTable } from './common/app-table/controllers/useBaseTable'
|
|
102
|
+
export { useTableModel } from './common/app-table/controllers/useTableModel'
|
|
103
|
+
export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
|
|
104
|
+
|
|
105
|
+
export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
|
|
106
|
+
|
|
107
|
+
export type { NotificationType } from './utils/notification'
|
|
108
|
+
export { notificationSettings } from './utils/notification'
|
|
109
|
+
|
|
110
|
+
export * from './utils/helpers'
|
|
111
|
+
|
|
112
|
+
export * from './api/types/Api_Service'
|
|
113
|
+
export * from './api/types/Api_Auth'
|
|
114
|
+
export * from './api/types/Api_Tasks'
|
|
115
|
+
export * from './api/types/Api_Repairs'
|
|
116
|
+
export * from './api/types/Api_Projects'
|
|
117
|
+
export * from './api/types/Api_Controls'
|
|
118
|
+
export * from './api/types/Api_Instruments'
|
|
119
|
+
export * from './api/types/Api_Search'
|
|
120
|
+
export * from './api/types/Api_User'
|
|
121
|
+
export * from './api/types/Api_Comment'
|
|
122
|
+
export * from './api/types/Api_Files'
|
|
123
|
+
export * from './api/types/Api_Video'
|
|
124
|
+
export * from './api/types/Api_Equipment'
|
|
125
|
+
export * from './api/types/Api_Brigades'
|
|
126
|
+
export * from './api/types/Api_Modules'
|
|
127
|
+
export * from './api/types/Api_Schedule'
|
|
128
|
+
// export * from '../types/Api_Metrics'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
$primary : #1976D2
|
|
2
|
-
$secondary : #C4C4C4
|
|
3
|
-
$accent : #665BA6
|
|
4
|
-
$positive : #3B9F69
|
|
5
|
-
$negative : #C10015
|
|
6
|
-
$info : #31CCEC
|
|
7
|
-
$warning : #F2C037
|
|
8
|
-
|
|
9
|
-
$dark : #1D1D1D
|
|
10
|
-
$dark-page : #121212
|
|
11
|
-
|
|
12
|
-
$secondary: #1D1D1D
|
|
1
|
+
$primary : #1976D2
|
|
2
|
+
$secondary : #C4C4C4
|
|
3
|
+
$accent : #665BA6
|
|
4
|
+
$positive : #3B9F69
|
|
5
|
+
$negative : #C10015
|
|
6
|
+
$info : #31CCEC
|
|
7
|
+
$warning : #F2C037
|
|
8
|
+
|
|
9
|
+
$dark : #1D1D1D
|
|
10
|
+
$dark-page : #121212
|
|
11
|
+
|
|
12
|
+
$secondary: #1D1D1D
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import ApiService from '@/api/settings/ApiService'
|
|
2
|
-
import { Api_Comment_Request_Dto } from '@/api/types/Api_Comment'
|
|
3
|
-
import { Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
4
|
-
declare class CommentsService extends ApiService {
|
|
5
|
-
uploadComment(payload: Api_Comment_Request_Dto): Promise<Api_Tasks_Task_Dto>
|
|
6
|
-
deleteComment(commentId: string): Promise<unknown>
|
|
7
|
-
editComment(payload: { commentId: string; data: unknown }): Promise<unknown>
|
|
8
|
-
}
|
|
9
|
-
export default function useCommentsService(): CommentsService
|
|
10
|
-
export {}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export type Api_Search_User_Passes = {
|
|
2
|
-
id: string
|
|
3
|
-
type: string
|
|
4
|
-
uuid: string
|
|
5
|
-
}
|
|
6
|
-
export type Api_Search_User_Positions = {
|
|
7
|
-
id: string
|
|
8
|
-
name: string
|
|
9
|
-
display_name: string
|
|
10
|
-
description: string
|
|
11
|
-
}
|
|
12
|
-
export type Api_Search_User_Roles = {
|
|
13
|
-
id: string
|
|
14
|
-
name: string
|
|
15
|
-
display_name: string
|
|
16
|
-
}
|
|
17
|
-
export type Api_Search_User_Teams = {
|
|
18
|
-
id: string
|
|
19
|
-
name: string
|
|
20
|
-
display_name: string
|
|
21
|
-
roles: Api_Search_User_Roles[]
|
|
22
|
-
}
|
|
23
|
-
export type Api_Search_User_Photos = {
|
|
24
|
-
id: string
|
|
25
|
-
name: string
|
|
26
|
-
path: string
|
|
27
|
-
type: string
|
|
28
|
-
}
|
|
29
|
-
export type Api_Search_User = {
|
|
30
|
-
id: string
|
|
31
|
-
full_name: string
|
|
32
|
-
last_name: string
|
|
33
|
-
first_name: string
|
|
34
|
-
patronymic: string
|
|
35
|
-
email: string
|
|
36
|
-
phone: string
|
|
37
|
-
divisions: string
|
|
38
|
-
personnel_number: string
|
|
39
|
-
passes: Api_Search_User_Passes[]
|
|
40
|
-
positions: Api_Search_User_Positions[]
|
|
41
|
-
teams: Api_Search_User_Teams[]
|
|
42
|
-
photos: Api_Search_User_Photos[]
|
|
43
|
-
}
|