shared-ritm 1.2.105 → 1.2.106

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 (30) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +8 -10
  3. package/dist/shared-ritm.umd.js +6 -6
  4. package/dist/types/api/services/ComentsServise.d.ts +10 -0
  5. package/dist/types/api/services/PhotoService.d.ts +51 -38
  6. package/dist/types/api/types/Api_Tasks.d.ts +1 -0
  7. package/dist/types/api/types/Api_Users.d.ts +43 -0
  8. package/package.json +64 -64
  9. package/src/api/services/BrigadesService.ts +32 -32
  10. package/src/api/services/EquipmentService.ts +29 -29
  11. package/src/api/services/InstrumentsService.ts +22 -22
  12. package/src/api/services/UserService.ts +101 -101
  13. package/src/api/services/VideoService.ts +62 -62
  14. package/src/api/settings/ApiService.ts +126 -126
  15. package/src/api/types/Api_Brigades.ts +36 -36
  16. package/src/api/types/Api_Equipment.ts +3 -3
  17. package/src/api/types/Api_Instruments.ts +98 -98
  18. package/src/api/types/Api_Tasks.ts +1 -0
  19. package/src/api/types/Api_User.ts +117 -117
  20. package/src/api/types/Api_Video.ts +123 -123
  21. package/src/common/app-input-new/AppInputNew.vue +167 -167
  22. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  23. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  24. package/src/common/app-table/AppTable.vue +312 -312
  25. package/src/common/app-table/AppTableLayout.vue +137 -137
  26. package/src/common/app-table/components/ModalSelect.vue +270 -270
  27. package/src/common/app-table/components/TableModal.vue +356 -356
  28. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  29. package/src/index.ts +119 -119
  30. package/src/styles/variables.sass +12 -12
@@ -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,119 +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
- 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
+ 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