shared-ritm 1.2.103 → 1.2.105

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.
Files changed (33) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +3025 -3001
  3. package/dist/shared-ritm.umd.js +148 -148
  4. package/dist/types/api/services/BrigadesService.d.ts +18 -0
  5. package/dist/types/api/services/PhotoService.d.ts +38 -51
  6. package/dist/types/api/types/Api_Brigades.d.ts +31 -0
  7. package/dist/types/api/types/Api_Tasks.d.ts +3 -1
  8. package/dist/types/index.d.ts +3 -1
  9. package/package.json +64 -64
  10. package/src/api/services/BrigadesService.ts +32 -0
  11. package/src/api/services/EquipmentService.ts +29 -29
  12. package/src/api/services/InstrumentsService.ts +22 -22
  13. package/src/api/services/UserService.ts +101 -101
  14. package/src/api/services/VideoService.ts +62 -62
  15. package/src/api/settings/ApiService.ts +126 -123
  16. package/src/api/types/Api_Brigades.ts +36 -0
  17. package/src/api/types/Api_Equipment.ts +3 -3
  18. package/src/api/types/Api_Instruments.ts +98 -98
  19. package/src/api/types/Api_Tasks.ts +3 -1
  20. package/src/api/types/Api_User.ts +117 -117
  21. package/src/api/types/Api_Video.ts +123 -123
  22. package/src/common/app-input-new/AppInputNew.vue +167 -167
  23. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  24. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  25. package/src/common/app-table/AppTable.vue +312 -312
  26. package/src/common/app-table/AppTableLayout.vue +137 -137
  27. package/src/common/app-table/components/ModalSelect.vue +270 -270
  28. package/src/common/app-table/components/TableModal.vue +356 -356
  29. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  30. package/src/index.ts +119 -116
  31. package/src/styles/variables.sass +12 -12
  32. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  33. 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
+ }
package/src/index.ts CHANGED
@@ -1,116 +1,119 @@
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
- import ApiService from './api/settings/ApiService'
29
- import useGanttService from './api/services/GanttService'
30
- import useMetricsService from './api/services/MetricsService'
31
- import useProjectsService from './api/services/ProjectsService'
32
- import useRepairsService from './api/services/RepairsService'
33
- import useTasksService from './api/services/TasksService'
34
- import useAuthService from './api/services/AuthService'
35
- import useFileService from './api/services/FileService'
36
- import useVideoService from './api/services/VideoService'
37
- import useUserService from './api/services/UserService'
38
- import useInstrumentsService from './api/services/InstrumentsService'
39
- import useControlsService from './api/services/ControlsService'
40
- import useSearchService from './api/services/SearchService'
41
- import useCommentsService from './api/services/CommentsService'
42
- import useEquipmentService from './api/services/EquipmentService'
43
-
44
- import useFaceApiHelper from './utils/faceApiHelper'
45
-
46
- export {
47
- AppButton,
48
- AppCheckbox,
49
- AppDatepicker,
50
- AppDatePicker,
51
- AppInput,
52
- AppInputNew,
53
- AppInputSearch,
54
- AppLayout,
55
- AppLayoutHeader,
56
- AppLayoutPage,
57
- AppLoader,
58
- AppSelect,
59
- AppSheet,
60
- AppSheetNew,
61
- AppSidebar,
62
- AppToggle,
63
- AppWrapper,
64
- AppConfirmDialog,
65
- AppDropdown,
66
- AppTablePagination,
67
- AppTableSearch,
68
- AppTableModal,
69
- AppTable,
70
- AppTableLayout,
71
- AppModalSelect,
72
- }
73
-
74
- export {
75
- ApiService,
76
- useAuthService,
77
- useGanttService,
78
- useMetricsService,
79
- useProjectsService,
80
- useRepairsService,
81
- useTasksService,
82
- useFileService,
83
- useControlsService,
84
- useVideoService,
85
- useUserService,
86
- useInstrumentsService,
87
- useSearchService,
88
- useCommentsService,
89
- useFaceApiHelper,
90
- useEquipmentService,
91
- }
92
-
93
- export { useBaseTable } from './common/app-table/controllers/useBaseTable'
94
- export { useTableModel } from './common/app-table/controllers/useTableModel'
95
- export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
96
-
97
- export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
98
-
99
- export type { NotificationType } from './utils/notification'
100
- export { notificationSettings } from './utils/notification'
101
-
102
- export * from './utils/helpers'
103
-
104
- export * from './api/types/Api_Service'
105
- export * from './api/types/Api_Tasks'
106
- export * from './api/types/Api_Repairs'
107
- export * from './api/types/Api_Projects'
108
- export * from './api/types/Api_Controls'
109
- export * from './api/types/Api_Instruments'
110
- export * from './api/types/Api_Search'
111
- export * from './api/types/Api_User'
112
- export * from './api/types/Api_Comment'
113
- export * from './api/types/Api_Files'
114
- export * from './api/types/Api_Video'
115
- export * from './api/types/Api_Equipment'
116
- // export * from '../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
+
28
+ import ApiService from './api/settings/ApiService'
29
+ import useGanttService from './api/services/GanttService'
30
+ import useMetricsService from './api/services/MetricsService'
31
+ import useProjectsService from './api/services/ProjectsService'
32
+ import useRepairsService from './api/services/RepairsService'
33
+ import useTasksService from './api/services/TasksService'
34
+ import useAuthService from './api/services/AuthService'
35
+ import useFileService from './api/services/FileService'
36
+ import useVideoService from './api/services/VideoService'
37
+ import useUserService from './api/services/UserService'
38
+ import useInstrumentsService from './api/services/InstrumentsService'
39
+ import useControlsService from './api/services/ControlsService'
40
+ import useSearchService from './api/services/SearchService'
41
+ import useCommentsService from './api/services/CommentsService'
42
+ import useEquipmentService from './api/services/EquipmentService'
43
+ import useBrigadesService from '@/api/services/BrigadesService'
44
+
45
+ import useFaceApiHelper from './utils/faceApiHelper'
46
+
47
+ export {
48
+ AppButton,
49
+ AppCheckbox,
50
+ AppDatepicker,
51
+ AppDatePicker,
52
+ AppInput,
53
+ AppInputNew,
54
+ AppInputSearch,
55
+ AppLayout,
56
+ AppLayoutHeader,
57
+ AppLayoutPage,
58
+ AppLoader,
59
+ AppSelect,
60
+ AppSheet,
61
+ AppSheetNew,
62
+ AppSidebar,
63
+ AppToggle,
64
+ AppWrapper,
65
+ AppConfirmDialog,
66
+ AppDropdown,
67
+ AppTablePagination,
68
+ AppTableSearch,
69
+ AppTableModal,
70
+ AppTable,
71
+ AppTableLayout,
72
+ AppModalSelect,
73
+ }
74
+
75
+ export {
76
+ ApiService,
77
+ useAuthService,
78
+ useGanttService,
79
+ useMetricsService,
80
+ useProjectsService,
81
+ useRepairsService,
82
+ useTasksService,
83
+ useFileService,
84
+ useControlsService,
85
+ useVideoService,
86
+ useUserService,
87
+ useInstrumentsService,
88
+ useSearchService,
89
+ useCommentsService,
90
+ useFaceApiHelper,
91
+ useEquipmentService,
92
+ useBrigadesService,
93
+ }
94
+
95
+ export { useBaseTable } from './common/app-table/controllers/useBaseTable'
96
+ export { useTableModel } from './common/app-table/controllers/useTableModel'
97
+ export { useColumnSelector } from './common/app-table/controllers/useColumnSelector'
98
+
99
+ export type { FilterOption, TableModel, TableColumn } from './common/app-table/controllers/useTableModel'
100
+
101
+ export type { NotificationType } from './utils/notification'
102
+ export { notificationSettings } from './utils/notification'
103
+
104
+ export * from './utils/helpers'
105
+
106
+ export * from './api/types/Api_Service'
107
+ export * from './api/types/Api_Tasks'
108
+ export * from './api/types/Api_Repairs'
109
+ export * from './api/types/Api_Projects'
110
+ export * from './api/types/Api_Controls'
111
+ export * from './api/types/Api_Instruments'
112
+ export * from './api/types/Api_Search'
113
+ export * from './api/types/Api_User'
114
+ export * from './api/types/Api_Comment'
115
+ export * from './api/types/Api_Files'
116
+ export * from './api/types/Api_Video'
117
+ export * from './api/types/Api_Equipment'
118
+ export * from './api/types/Api_Brigades'
119
+ // 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
- }