shared-ritm 1.3.37 → 1.3.38-alpha.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/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +12594 -12219
- package/dist/shared-ritm.umd.js +476 -476
- package/dist/types/api/services/AuthService.d.ts +1 -0
- package/dist/types/api/services/ControlsService.d.ts +3 -0
- package/dist/types/api/services/EquipmentService.d.ts +15 -5
- package/dist/types/api/services/GanttService.d.ts +22 -0
- package/dist/types/api/services/InstrumentsService.d.ts +6 -1
- package/dist/types/api/services/MetricsService.d.ts +5 -1
- package/dist/types/api/services/TasksService.d.ts +3 -2
- package/dist/types/api/services/UserIssueService.d.ts +15 -0
- package/dist/types/api/services/UserService.d.ts +2 -1
- package/dist/types/api/settings/ApiService.d.ts +6 -2
- package/dist/types/api/types/Api_Auth.d.ts +15 -0
- package/dist/types/api/types/Api_Controls.d.ts +1 -0
- package/dist/types/api/types/Api_Equipment.d.ts +45 -0
- package/dist/types/api/types/Api_Instruments.d.ts +24 -0
- package/dist/types/api/types/Api_Metrics.d.ts +69 -0
- package/dist/types/api/types/Api_Repairs.d.ts +14 -1
- package/dist/types/api/types/Api_Search.d.ts +1 -0
- package/dist/types/api/types/Api_User.d.ts +12 -0
- package/dist/types/api/types/Api_User_Issue.d.ts +33 -0
- package/dist/types/common/app-button/Button.stories.d.ts +13 -0
- package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
- package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
- package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
- package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
- package/dist/types/common/app-file/File.stories.d.ts +8 -0
- package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
- package/dist/types/common/app-input/Input.stories.d.ts +9 -0
- package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
- package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
- package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
- package/dist/types/common/app-select/Select.stories.d.ts +7 -0
- package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
- package/dist/types/common/app-toggle/Toggle.stories.d.ts +12 -0
- package/dist/types/configs/storybook.d.ts +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/utils/files.d.ts +2 -0
- package/package.json +64 -64
- package/src/App.vue +2461 -2461
- package/src/api/services/AuthService.ts +53 -53
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/GanttService.ts +23 -23
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/TasksService.ts +157 -157
- package/src/api/services/UserService.ts +123 -123
- package/src/api/services/VideoService.ts +118 -118
- package/src/api/settings/ApiService.ts +2 -1
- package/src/api/types/Api_Auth.ts +105 -105
- 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_Repairs.ts +186 -186
- 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 -244
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
- package/src/common/app-icon/AppIcon.vue +108 -108
- package/src/common/app-input/AppInput.vue +148 -148
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-select/AppSelect.vue +159 -159
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-table/AppTable.vue +313 -313
- package/src/common/app-table/components/ModalSelect.vue +298 -298
- package/src/common/app-table/components/TableModal.vue +367 -367
- package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/common/app-toggle/AppToggle.vue +24 -24
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/index.ts +131 -131
- package/src/shared/styles/general.css +124 -124
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
- package/src/utils/helpers.ts +59 -59
- package/dist/types/api/services/PhotoService.d.ts +0 -40
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { computed, ref } from 'vue'
|
|
2
|
-
|
|
3
|
-
export interface ColumnConfig {
|
|
4
|
-
name: string
|
|
5
|
-
label: string
|
|
6
|
-
[key: string]: any
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function useColumnSelector(allColumns: ColumnConfig[], fixedColumnNames: string[] = []) {
|
|
10
|
-
const selectedColumnNames = ref<string[]>([...new Set([...fixedColumnNames, ...allColumns.map(col => col.name)])])
|
|
11
|
-
|
|
12
|
-
const visibleColumns = computed(() => allColumns.filter(col => selectedColumnNames.value.includes(col.name)))
|
|
13
|
-
|
|
14
|
-
function openColumnSelectorDialog($q: any) {
|
|
15
|
-
$q.dialog({
|
|
16
|
-
title: 'Выберите колонки',
|
|
17
|
-
options: {
|
|
18
|
-
type: 'checkbox',
|
|
19
|
-
model: [...selectedColumnNames.value],
|
|
20
|
-
items: allColumns.map(col => ({
|
|
21
|
-
label: col.label,
|
|
22
|
-
value: col.name,
|
|
23
|
-
disable: fixedColumnNames.includes(col.name),
|
|
24
|
-
})),
|
|
25
|
-
},
|
|
26
|
-
cancel: {
|
|
27
|
-
label: 'Отмена',
|
|
28
|
-
'data-test': 'cancel-button',
|
|
29
|
-
},
|
|
30
|
-
ok: {
|
|
31
|
-
label: 'Ок',
|
|
32
|
-
'data-test': 'ok-button',
|
|
33
|
-
},
|
|
34
|
-
persistent: true,
|
|
35
|
-
}).onOk((val: string[]) => {
|
|
36
|
-
selectedColumnNames.value = Array.from(new Set([...val, ...fixedColumnNames]))
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return {
|
|
41
|
-
selectedColumnNames,
|
|
42
|
-
visibleColumns,
|
|
43
|
-
openColumnSelectorDialog,
|
|
44
|
-
}
|
|
45
|
-
}
|
|
1
|
+
import { computed, ref } from 'vue'
|
|
2
|
+
|
|
3
|
+
export interface ColumnConfig {
|
|
4
|
+
name: string
|
|
5
|
+
label: string
|
|
6
|
+
[key: string]: any
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function useColumnSelector(allColumns: ColumnConfig[], fixedColumnNames: string[] = []) {
|
|
10
|
+
const selectedColumnNames = ref<string[]>([...new Set([...fixedColumnNames, ...allColumns.map(col => col.name)])])
|
|
11
|
+
|
|
12
|
+
const visibleColumns = computed(() => allColumns.filter(col => selectedColumnNames.value.includes(col.name)))
|
|
13
|
+
|
|
14
|
+
function openColumnSelectorDialog($q: any) {
|
|
15
|
+
$q.dialog({
|
|
16
|
+
title: 'Выберите колонки',
|
|
17
|
+
options: {
|
|
18
|
+
type: 'checkbox',
|
|
19
|
+
model: [...selectedColumnNames.value],
|
|
20
|
+
items: allColumns.map(col => ({
|
|
21
|
+
label: col.label,
|
|
22
|
+
value: col.name,
|
|
23
|
+
disable: fixedColumnNames.includes(col.name),
|
|
24
|
+
})),
|
|
25
|
+
},
|
|
26
|
+
cancel: {
|
|
27
|
+
label: 'Отмена',
|
|
28
|
+
'data-test': 'cancel-button',
|
|
29
|
+
},
|
|
30
|
+
ok: {
|
|
31
|
+
label: 'Ок',
|
|
32
|
+
'data-test': 'ok-button',
|
|
33
|
+
},
|
|
34
|
+
persistent: true,
|
|
35
|
+
}).onOk((val: string[]) => {
|
|
36
|
+
selectedColumnNames.value = Array.from(new Set([...val, ...fixedColumnNames]))
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
selectedColumnNames,
|
|
42
|
+
visibleColumns,
|
|
43
|
+
openColumnSelectorDialog,
|
|
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
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<q-toggle v-model="value" :disable="disable" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
import { computed, defineProps, defineEmits } from 'vue'
|
|
9
|
-
|
|
10
|
-
interface Props {
|
|
11
|
-
modelValue: any
|
|
12
|
-
disable?: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const props = defineProps<Props>()
|
|
16
|
-
const emit = defineEmits(['update:modelValue', 'number'])
|
|
17
|
-
|
|
18
|
-
const value = computed({
|
|
19
|
-
get: () => props.modelValue,
|
|
20
|
-
set: (newValue: any) => emit('update:modelValue', newValue),
|
|
21
|
-
})
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style module lang="scss"></style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<q-toggle v-model="value" :disable="disable" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
import { computed, defineProps, defineEmits } from 'vue'
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
modelValue: any
|
|
12
|
+
disable?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const props = defineProps<Props>()
|
|
16
|
+
const emit = defineEmits(['update:modelValue', 'number'])
|
|
17
|
+
|
|
18
|
+
const value = computed({
|
|
19
|
+
get: () => props.modelValue,
|
|
20
|
+
set: (newValue: any) => emit('update:modelValue', newValue),
|
|
21
|
+
})
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<style module lang="scss"></style>
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="app-wrapper">
|
|
3
|
-
<slot />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
<script setup lang="ts"></script>
|
|
7
|
-
<style scoped lang="scss">
|
|
8
|
-
.app-wrapper {
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: 100%;
|
|
11
|
-
margin: 20px 0 12px 0;
|
|
12
|
-
padding: 30px;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
background: #fff;
|
|
15
|
-
outline: 4px solid #598dd5;
|
|
16
|
-
outline-offset: -3px;
|
|
17
|
-
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 0px 4px 4px 0px #c4d7f1 inset,
|
|
18
|
-
0px 0px 6.4px 3px rgba(31, 82, 159, 0.5), 0px 6px 58px 0px rgba(0, 49, 122, 0.1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media (max-width: 1440px) {
|
|
22
|
-
.app-wrapper {
|
|
23
|
-
margin: 10px 0;
|
|
24
|
-
padding: 14px;
|
|
25
|
-
border-radius: 8px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-wrapper">
|
|
3
|
+
<slot />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
<script setup lang="ts"></script>
|
|
7
|
+
<style scoped lang="scss">
|
|
8
|
+
.app-wrapper {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
margin: 20px 0 12px 0;
|
|
12
|
+
padding: 30px;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
background: #fff;
|
|
15
|
+
outline: 4px solid #598dd5;
|
|
16
|
+
outline-offset: -3px;
|
|
17
|
+
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25), 0px 4px 4px 0px #c4d7f1 inset,
|
|
18
|
+
0px 0px 6.4px 3px rgba(31, 82, 159, 0.5), 0px 6px 58px 0px rgba(0, 49, 122, 0.1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media (max-width: 1440px) {
|
|
22
|
+
.app-wrapper {
|
|
23
|
+
margin: 10px 0;
|
|
24
|
+
padding: 14px;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
</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'
|