shared-ritm 1.2.101 → 1.2.103

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 +14 -13
  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/services/SearchService.d.ts +2 -1
  7. package/dist/types/api/types/Api_Search.d.ts +9 -0
  8. package/dist/types/api/types/Api_Tasks.d.ts +1 -0
  9. package/dist/types/api/types/Api_Users.d.ts +43 -0
  10. package/package.json +64 -64
  11. package/src/api/services/EquipmentService.ts +29 -29
  12. package/src/api/services/InstrumentsService.ts +22 -22
  13. package/src/api/services/SearchService.ts +4 -1
  14. package/src/api/services/UserService.ts +101 -101
  15. package/src/api/services/VideoService.ts +62 -62
  16. package/src/api/settings/ApiService.ts +123 -123
  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_Search.ts +10 -0
  20. package/src/api/types/Api_Tasks.ts +1 -0
  21. package/src/api/types/Api_User.ts +117 -117
  22. package/src/api/types/Api_Video.ts +123 -123
  23. package/src/common/app-input-new/AppInputNew.vue +167 -167
  24. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  25. package/src/common/app-sheet/AppSheet.vue +1 -1
  26. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  27. package/src/common/app-table/AppTable.vue +312 -312
  28. package/src/common/app-table/AppTableLayout.vue +137 -137
  29. package/src/common/app-table/components/ModalSelect.vue +270 -270
  30. package/src/common/app-table/components/TableModal.vue +356 -356
  31. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  32. package/src/index.ts +116 -116
  33. 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,116 +1,116 @@
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
+
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,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