shared-ritm 1.2.118 → 1.2.119

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