shared-ritm 1.3.35 → 1.3.37
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 +8789 -8712
- package/dist/shared-ritm.umd.js +324 -324
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/dist/types/api/services/RepairsService.d.ts +1 -1
- package/dist/types/api/services/VideoService.d.ts +2 -1
- package/dist/types/api/settings/ApiService.d.ts +1 -1
- package/dist/types/api/types/Api_Video.d.ts +5 -4
- package/package.json +64 -64
- package/src/App.vue +2461 -2461
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +123 -123
- package/src/api/services/VideoService.ts +118 -113
- 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 +156 -156
- package/src/api/types/Api_Metrics.ts +5 -5
- 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 +186 -186
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_Tasks.ts +376 -376
- package/src/api/types/Api_User.ts +146 -146
- package/src/api/types/Api_Video.ts +244 -241
- package/src/common/app-datepicker/AppDatepicker.vue +218 -218
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
- package/src/common/app-table/AppTable.vue +313 -313
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +298 -298
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/index.ts +131 -131
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -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
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg width="50" height="50" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<path
|
|
4
|
-
fill-rule="evenodd"
|
|
5
|
-
clip-rule="evenodd"
|
|
6
|
-
d="M47.5 2.5H12.5C6.97715 2.5 2.5 6.97715 2.5 12.5V25C2.5 35.9165 9.14893 45.4216 22.0963 53.4484C26.938 56.45 33.062 56.45 37.9037 53.4484L38.8284 52.8657C51.1712 44.9576 57.5 35.6473 57.5 25V12.5C57.5 6.97715 53.0228 2.5 47.5 2.5ZM12.5 7.5H47.5C50.2614 7.5 52.5 9.73858 52.5 12.5V25C52.5 33.7331 47.1592 41.5899 36.1469 48.6456L35.2535 49.2085C32.0413 51.1999 27.9586 51.1999 24.7309 49.1988C13.1268 42.0048 7.5 33.9609 7.5 25V12.5C7.5 9.73858 9.73858 7.5 12.5 7.5ZM44.2833 15.7258C43.3072 14.7492 41.7243 14.7488 40.7477 15.7248L27.5 28.9625L21.7783 23.2302L21.543 23.0221C20.5629 22.2587 19.1448 22.3268 18.2428 23.2273C17.2657 24.2028 17.2643 25.7857 18.2398 26.7628L25.7308 34.2663L25.9662 34.4745C26.9467 35.2382 28.3655 35.1696 29.2673 34.2682L44.2823 19.2613L44.4904 19.0258C45.2532 18.0453 45.1842 16.6272 44.2833 15.7258Z"
|
|
7
|
-
fill="#00D097"
|
|
8
|
-
/>
|
|
9
|
-
</svg>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<style scoped lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<svg width="50" height="50" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path
|
|
4
|
+
fill-rule="evenodd"
|
|
5
|
+
clip-rule="evenodd"
|
|
6
|
+
d="M47.5 2.5H12.5C6.97715 2.5 2.5 6.97715 2.5 12.5V25C2.5 35.9165 9.14893 45.4216 22.0963 53.4484C26.938 56.45 33.062 56.45 37.9037 53.4484L38.8284 52.8657C51.1712 44.9576 57.5 35.6473 57.5 25V12.5C57.5 6.97715 53.0228 2.5 47.5 2.5ZM12.5 7.5H47.5C50.2614 7.5 52.5 9.73858 52.5 12.5V25C52.5 33.7331 47.1592 41.5899 36.1469 48.6456L35.2535 49.2085C32.0413 51.1999 27.9586 51.1999 24.7309 49.1988C13.1268 42.0048 7.5 33.9609 7.5 25V12.5C7.5 9.73858 9.73858 7.5 12.5 7.5ZM44.2833 15.7258C43.3072 14.7492 41.7243 14.7488 40.7477 15.7248L27.5 28.9625L21.7783 23.2302L21.543 23.0221C20.5629 22.2587 19.1448 22.3268 18.2428 23.2273C17.2657 24.2028 17.2643 25.7857 18.2398 26.7628L25.7308 34.2663L25.9662 34.4745C26.9467 35.2382 28.3655 35.1696 29.2673 34.2682L44.2823 19.2613L44.4904 19.0258C45.2532 18.0453 45.1842 16.6272 44.2833 15.7258Z"
|
|
7
|
+
fill="#00D097"
|
|
8
|
+
/>
|
|
9
|
+
</svg>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<style scoped lang="scss"></style>
|
package/src/index.ts
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
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
|
-
import AppFile from './common/app-file/AppFile.vue'
|
|
29
|
-
|
|
30
|
-
import ApiService from './api/settings/ApiService'
|
|
31
|
-
import useGanttService from './api/services/GanttService'
|
|
32
|
-
import useMetricsService from './api/services/MetricsService'
|
|
33
|
-
import useProjectsService from './api/services/ProjectsService'
|
|
34
|
-
import useRepairsService from './api/services/RepairsService'
|
|
35
|
-
import useTasksService from './api/services/TasksService'
|
|
36
|
-
import useAuthService from './api/services/AuthService'
|
|
37
|
-
import useFileService from './api/services/FileService'
|
|
38
|
-
import useVideoService from './api/services/VideoService'
|
|
39
|
-
import useUserService from './api/services/UserService'
|
|
40
|
-
import useInstrumentsService from './api/services/InstrumentsService'
|
|
41
|
-
import useControlsService from './api/services/ControlsService'
|
|
42
|
-
import useSearchService from './api/services/SearchService'
|
|
43
|
-
import useModulesService from './api/services/ModulesService'
|
|
44
|
-
import useCommentsService from './api/services/CommentsService'
|
|
45
|
-
import useEquipmentService from './api/services/EquipmentService'
|
|
46
|
-
import useBrigadesService from './api/services/BrigadesService'
|
|
47
|
-
import useScheduleService from './api/services/ScheduleService'
|
|
48
|
-
|
|
49
|
-
import useFaceApiHelper from './utils/faceApiHelper'
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
AppButton,
|
|
53
|
-
AppCheckbox,
|
|
54
|
-
AppDatepicker,
|
|
55
|
-
AppDatePicker,
|
|
56
|
-
AppInput,
|
|
57
|
-
AppInputNew,
|
|
58
|
-
AppInputSearch,
|
|
59
|
-
AppLayout,
|
|
60
|
-
AppLayoutHeader,
|
|
61
|
-
AppLayoutPage,
|
|
62
|
-
AppLoader,
|
|
63
|
-
AppSelect,
|
|
64
|
-
AppSheet,
|
|
65
|
-
AppSheetNew,
|
|
66
|
-
AppSidebar,
|
|
67
|
-
AppToggle,
|
|
68
|
-
AppWrapper,
|
|
69
|
-
AppConfirmDialog,
|
|
70
|
-
AppDropdown,
|
|
71
|
-
AppTablePagination,
|
|
72
|
-
AppTableSearch,
|
|
73
|
-
AppTableModal,
|
|
74
|
-
AppTable,
|
|
75
|
-
AppTableLayout,
|
|
76
|
-
AppModalSelect,
|
|
77
|
-
AppModal,
|
|
78
|
-
AppFile,
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export {
|
|
82
|
-
ApiService,
|
|
83
|
-
useAuthService,
|
|
84
|
-
useGanttService,
|
|
85
|
-
useMetricsService,
|
|
86
|
-
useProjectsService,
|
|
87
|
-
useRepairsService,
|
|
88
|
-
useTasksService,
|
|
89
|
-
useFileService,
|
|
90
|
-
useControlsService,
|
|
91
|
-
useVideoService,
|
|
92
|
-
useUserService,
|
|
93
|
-
useInstrumentsService,
|
|
94
|
-
useSearchService,
|
|
95
|
-
useModulesService,
|
|
96
|
-
useCommentsService,
|
|
97
|
-
useFaceApiHelper,
|
|
98
|
-
useEquipmentService,
|
|
99
|
-
useBrigadesService,
|
|
100
|
-
useScheduleService,
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export { useBaseTable } from './common/app-table/controllers/useBaseTable'
|
|
104
|
-
export { useTableModel } from './common/app-table/controllers/useTableModel'
|
|
105
|
-
export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
|
|
106
|
-
|
|
107
|
-
export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
|
|
108
|
-
|
|
109
|
-
export type { NotificationType } from './utils/notification'
|
|
110
|
-
export { notificationSettings } from './utils/notification'
|
|
111
|
-
|
|
112
|
-
export * from './utils/helpers'
|
|
113
|
-
export * from './utils/files'
|
|
114
|
-
|
|
115
|
-
export * from './api/types/Api_Service'
|
|
116
|
-
export * from './api/types/Api_Auth'
|
|
117
|
-
export * from './api/types/Api_Tasks'
|
|
118
|
-
export * from './api/types/Api_Repairs'
|
|
119
|
-
export * from './api/types/Api_Projects'
|
|
120
|
-
export * from './api/types/Api_Controls'
|
|
121
|
-
export * from './api/types/Api_Instruments'
|
|
122
|
-
export * from './api/types/Api_Search'
|
|
123
|
-
export * from './api/types/Api_User'
|
|
124
|
-
export * from './api/types/Api_Comment'
|
|
125
|
-
export * from './api/types/Api_Files'
|
|
126
|
-
export * from './api/types/Api_Video'
|
|
127
|
-
export * from './api/types/Api_Equipment'
|
|
128
|
-
export * from './api/types/Api_Brigades'
|
|
129
|
-
export * from './api/types/Api_Modules'
|
|
130
|
-
export * from './api/types/Api_Schedule'
|
|
131
|
-
export * from './api/types/Api_Metrics'
|
|
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
|
+
import AppFile from './common/app-file/AppFile.vue'
|
|
29
|
+
|
|
30
|
+
import ApiService from './api/settings/ApiService'
|
|
31
|
+
import useGanttService from './api/services/GanttService'
|
|
32
|
+
import useMetricsService from './api/services/MetricsService'
|
|
33
|
+
import useProjectsService from './api/services/ProjectsService'
|
|
34
|
+
import useRepairsService from './api/services/RepairsService'
|
|
35
|
+
import useTasksService from './api/services/TasksService'
|
|
36
|
+
import useAuthService from './api/services/AuthService'
|
|
37
|
+
import useFileService from './api/services/FileService'
|
|
38
|
+
import useVideoService from './api/services/VideoService'
|
|
39
|
+
import useUserService from './api/services/UserService'
|
|
40
|
+
import useInstrumentsService from './api/services/InstrumentsService'
|
|
41
|
+
import useControlsService from './api/services/ControlsService'
|
|
42
|
+
import useSearchService from './api/services/SearchService'
|
|
43
|
+
import useModulesService from './api/services/ModulesService'
|
|
44
|
+
import useCommentsService from './api/services/CommentsService'
|
|
45
|
+
import useEquipmentService from './api/services/EquipmentService'
|
|
46
|
+
import useBrigadesService from './api/services/BrigadesService'
|
|
47
|
+
import useScheduleService from './api/services/ScheduleService'
|
|
48
|
+
|
|
49
|
+
import useFaceApiHelper from './utils/faceApiHelper'
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
AppButton,
|
|
53
|
+
AppCheckbox,
|
|
54
|
+
AppDatepicker,
|
|
55
|
+
AppDatePicker,
|
|
56
|
+
AppInput,
|
|
57
|
+
AppInputNew,
|
|
58
|
+
AppInputSearch,
|
|
59
|
+
AppLayout,
|
|
60
|
+
AppLayoutHeader,
|
|
61
|
+
AppLayoutPage,
|
|
62
|
+
AppLoader,
|
|
63
|
+
AppSelect,
|
|
64
|
+
AppSheet,
|
|
65
|
+
AppSheetNew,
|
|
66
|
+
AppSidebar,
|
|
67
|
+
AppToggle,
|
|
68
|
+
AppWrapper,
|
|
69
|
+
AppConfirmDialog,
|
|
70
|
+
AppDropdown,
|
|
71
|
+
AppTablePagination,
|
|
72
|
+
AppTableSearch,
|
|
73
|
+
AppTableModal,
|
|
74
|
+
AppTable,
|
|
75
|
+
AppTableLayout,
|
|
76
|
+
AppModalSelect,
|
|
77
|
+
AppModal,
|
|
78
|
+
AppFile,
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
ApiService,
|
|
83
|
+
useAuthService,
|
|
84
|
+
useGanttService,
|
|
85
|
+
useMetricsService,
|
|
86
|
+
useProjectsService,
|
|
87
|
+
useRepairsService,
|
|
88
|
+
useTasksService,
|
|
89
|
+
useFileService,
|
|
90
|
+
useControlsService,
|
|
91
|
+
useVideoService,
|
|
92
|
+
useUserService,
|
|
93
|
+
useInstrumentsService,
|
|
94
|
+
useSearchService,
|
|
95
|
+
useModulesService,
|
|
96
|
+
useCommentsService,
|
|
97
|
+
useFaceApiHelper,
|
|
98
|
+
useEquipmentService,
|
|
99
|
+
useBrigadesService,
|
|
100
|
+
useScheduleService,
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export { useBaseTable } from './common/app-table/controllers/useBaseTable'
|
|
104
|
+
export { useTableModel } from './common/app-table/controllers/useTableModel'
|
|
105
|
+
export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
|
|
106
|
+
|
|
107
|
+
export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
|
|
108
|
+
|
|
109
|
+
export type { NotificationType } from './utils/notification'
|
|
110
|
+
export { notificationSettings } from './utils/notification'
|
|
111
|
+
|
|
112
|
+
export * from './utils/helpers'
|
|
113
|
+
export * from './utils/files'
|
|
114
|
+
|
|
115
|
+
export * from './api/types/Api_Service'
|
|
116
|
+
export * from './api/types/Api_Auth'
|
|
117
|
+
export * from './api/types/Api_Tasks'
|
|
118
|
+
export * from './api/types/Api_Repairs'
|
|
119
|
+
export * from './api/types/Api_Projects'
|
|
120
|
+
export * from './api/types/Api_Controls'
|
|
121
|
+
export * from './api/types/Api_Instruments'
|
|
122
|
+
export * from './api/types/Api_Search'
|
|
123
|
+
export * from './api/types/Api_User'
|
|
124
|
+
export * from './api/types/Api_Comment'
|
|
125
|
+
export * from './api/types/Api_Files'
|
|
126
|
+
export * from './api/types/Api_Video'
|
|
127
|
+
export * from './api/types/Api_Equipment'
|
|
128
|
+
export * from './api/types/Api_Brigades'
|
|
129
|
+
export * from './api/types/Api_Modules'
|
|
130
|
+
export * from './api/types/Api_Schedule'
|
|
131
|
+
export * from './api/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
|
package/src/utils/files.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export const saveBlobAsFile = (blob: Blob, name: string) => {
|
|
2
|
-
try {
|
|
3
|
-
const a = document.createElement('a')
|
|
4
|
-
const url = window.URL.createObjectURL(blob)
|
|
5
|
-
|
|
6
|
-
a.href = url
|
|
7
|
-
a.download = name
|
|
8
|
-
|
|
9
|
-
document.body.appendChild(a)
|
|
10
|
-
a.click()
|
|
11
|
-
|
|
12
|
-
setTimeout(function () {
|
|
13
|
-
document.body.removeChild(a)
|
|
14
|
-
window.URL.revokeObjectURL(url)
|
|
15
|
-
}, 0)
|
|
16
|
-
} catch (error) {
|
|
17
|
-
console.error('Ошибка при загрузке файла:', error)
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
export const saveBlobAsFile = (blob: Blob, name: string) => {
|
|
2
|
+
try {
|
|
3
|
+
const a = document.createElement('a')
|
|
4
|
+
const url = window.URL.createObjectURL(blob)
|
|
5
|
+
|
|
6
|
+
a.href = url
|
|
7
|
+
a.download = name
|
|
8
|
+
|
|
9
|
+
document.body.appendChild(a)
|
|
10
|
+
a.click()
|
|
11
|
+
|
|
12
|
+
setTimeout(function () {
|
|
13
|
+
document.body.removeChild(a)
|
|
14
|
+
window.URL.revokeObjectURL(url)
|
|
15
|
+
}, 0)
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error('Ошибка при загрузке файла:', error)
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -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
|
-
}
|