shared-ritm 1.1.2 → 1.1.4
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/shared-ritm.es.js +528 -519
- package/dist/shared-ritm.umd.js +7 -7
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/notification.d.ts +2 -0
- package/package.json +3 -3
- package/src/App.vue +12 -5
- package/src/common/app-layout/components/AppLayoutHeader.vue +2 -1
- package/src/index.ts +4 -0
- package/src/utils/notification.ts +13 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -19,8 +19,10 @@ import useRepairsService from '@/api/services/RepairsService';
|
|
|
19
19
|
import useTasksService from '@/api/services/TasksService';
|
|
20
20
|
import useAuthService from '@/api/services/AuthService';
|
|
21
21
|
import ApiService from '@/api/settings/ApiService';
|
|
22
|
+
import notification from '@/utils/notification';
|
|
22
23
|
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, };
|
|
23
24
|
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, };
|
|
25
|
+
export { notification };
|
|
24
26
|
export * from '@/api/types/Api_Tasks';
|
|
25
27
|
export * from '@/api/types/Api_Repairs';
|
|
26
28
|
export * from '@/api/types/Api_Projects';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shared-ritm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"main": "dist/shared-ritm.umd.js",
|
|
10
10
|
"type": "module",
|
|
11
11
|
"module": "./dist/shared-ritm.es.js",
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/shared-ritm.es.js",
|
|
16
16
|
"require": "./dist/shared-ritm.umd.js",
|
|
17
17
|
"default": "./dist/shared-ritm.es.js",
|
|
18
|
-
"types": "./dist/index.d.ts"
|
|
18
|
+
"types": "./dist/types/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./style": "./dist/index.css"
|
|
21
21
|
},
|
package/src/App.vue
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<app-layout :logged="false">
|
|
3
3
|
<template #header>
|
|
4
|
-
<app-layout-header :user-data="userData" />
|
|
4
|
+
<app-layout-header :user-data="userData" full-width />
|
|
5
5
|
</template>
|
|
6
6
|
<template #drawer>
|
|
7
7
|
<app-sidebar :is-drawer="true" :menu-items="menuItems" />
|
|
8
8
|
</template>
|
|
9
|
-
<
|
|
10
|
-
|
|
9
|
+
<div class="wrapper">
|
|
10
|
+
<app-button label="asad" color="primary" />
|
|
11
|
+
<app-input v-model="test" type="text" />
|
|
12
|
+
</div>
|
|
11
13
|
</app-layout>
|
|
12
14
|
</template>
|
|
13
15
|
|
|
@@ -2397,8 +2399,13 @@ const menuItems = ref([
|
|
|
2397
2399
|
],
|
|
2398
2400
|
},
|
|
2399
2401
|
{ name: 'video-sync', icon: 'videozones-icon', label: 'Разметка видеозоны', to: '/video-sync' },
|
|
2400
|
-
{ name: '
|
|
2402
|
+
{ name: 'notification', icon: 'notification-icon', label: 'Уведомления', to: '/notification' },
|
|
2401
2403
|
{ name: 'sign-out', icon: 'logout-icon', label: 'Выход', to: '/sign-out' },
|
|
2402
2404
|
])
|
|
2403
2405
|
</script>
|
|
2404
|
-
<style lang="scss"
|
|
2406
|
+
<style lang="scss">
|
|
2407
|
+
.wrapper {
|
|
2408
|
+
max-width: 1300px;
|
|
2409
|
+
margin: 0 auto;
|
|
2410
|
+
}
|
|
2411
|
+
</style>
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
import { computed, defineProps } from 'vue'
|
|
32
32
|
//import AppInput from '@/common/app-input-search/AppInputSearch.vue'
|
|
33
33
|
import AppButton from '@/common/app-button/AppButton.vue'
|
|
34
|
+
import { b } from 'vite/dist/node/types.d-aGj9QkWt'
|
|
34
35
|
|
|
35
36
|
//import SmallCapsIcon from '@/icons/header/smallCapsIcon.vue'
|
|
36
37
|
//import SearchStatusIcon from '@/icons/header/searchStatusIcon.vue'
|
|
@@ -38,7 +39,7 @@ import AppButton from '@/common/app-button/AppButton.vue'
|
|
|
38
39
|
//import NotificationIcon from '@/icons/header/notificationIcon.vue'
|
|
39
40
|
interface Props {
|
|
40
41
|
userData: any
|
|
41
|
-
fullWidth?:
|
|
42
|
+
fullWidth?: boolean
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
const props = defineProps<Props>()
|
package/src/index.ts
CHANGED
|
@@ -21,6 +21,8 @@ import useTasksService from '@/api/services/TasksService'
|
|
|
21
21
|
import useAuthService from '@/api/services/AuthService'
|
|
22
22
|
import ApiService from '@/api/settings/ApiService'
|
|
23
23
|
|
|
24
|
+
import notification from '@/utils/notification'
|
|
25
|
+
|
|
24
26
|
export {
|
|
25
27
|
AppButton,
|
|
26
28
|
AppCheckbox,
|
|
@@ -47,6 +49,8 @@ export {
|
|
|
47
49
|
useTasksService,
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
export { notification }
|
|
53
|
+
|
|
50
54
|
export * from '@/api/types/Api_Tasks'
|
|
51
55
|
export * from '@/api/types/Api_Repairs'
|
|
52
56
|
export * from '@/api/types/Api_Projects'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useQuasar } from 'quasar'
|
|
2
|
+
|
|
3
|
+
const $q = useQuasar()
|
|
4
|
+
|
|
5
|
+
export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
|
|
6
|
+
|
|
7
|
+
export default function notification(type: NotificationType, message: string): void {
|
|
8
|
+
$q.notify({
|
|
9
|
+
message,
|
|
10
|
+
color: type === 'danger' ? 'red' : type === 'success' ? 'green' : type === 'warning' ? 'orange' : 'white',
|
|
11
|
+
position: 'top-right',
|
|
12
|
+
})
|
|
13
|
+
}
|