shared-ritm 1.2.118 → 1.2.120
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 +1474 -1467
- package/dist/shared-ritm.umd.js +105 -105
- package/dist/types/api/services/AuthService.d.ts +0 -14
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/services/ProjectsService.d.ts +3 -1
- package/dist/types/api/types/Api_Auth.d.ts +76 -0
- package/dist/types/api/types/Api_Projects.d.ts +4 -0
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +64 -64
- package/src/api/services/AuthService.ts +11 -22
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +63 -63
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +8 -1
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/UserService.ts +101 -101
- package/src/api/services/VideoService.ts +71 -71
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +86 -0
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +136 -136
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +5 -0
- package/src/api/types/Api_Repairs.ts +117 -117
- package/src/api/types/Api_Search.ts +77 -77
- package/src/api/types/Api_User.ts +117 -117
- package/src/api/types/Api_Video.ts +140 -140
- package/src/common/app-input-new/AppInputNew.vue +175 -175
- package/src/common/app-layout/components/AppLayoutHeader.vue +23 -1
- package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
- package/src/common/app-table/AppTable.vue +314 -314
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +270 -270
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/index.ts +1 -0
- 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
|
@@ -106,6 +106,7 @@ export { notificationSettings } from './utils/notification'
|
|
|
106
106
|
export * from './utils/helpers'
|
|
107
107
|
|
|
108
108
|
export * from './api/types/Api_Service'
|
|
109
|
+
export * from './api/types/Api_Auth'
|
|
109
110
|
export * from './api/types/Api_Tasks'
|
|
110
111
|
export * from './api/types/Api_Repairs'
|
|
111
112
|
export * from './api/types/Api_Projects'
|
|
@@ -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
|