shared-ritm 1.1.14 → 1.1.16
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 +524 -526
- package/dist/shared-ritm.umd.js +7 -7
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/notification.d.ts +2 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/utils/notification.ts +6 -10
package/dist/types/index.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ import useAuthService from '@/api/services/AuthService';
|
|
|
21
21
|
import ApiService from '@/api/settings/ApiService';
|
|
22
22
|
export { AppButton, AppCheckbox, AppDatePicker, AppInput, AppInputSearch, AppLayout, AppLayoutHeader, AppLoader, AppSelect, AppSheet, AppSidebar, AppToggle, AppWrapper, };
|
|
23
23
|
export { ApiService, useAuthService, useGanttService, useMetricsService, useProjectsService, useRepairsService, useTasksService, };
|
|
24
|
-
export {
|
|
24
|
+
export type { NotificationType } from './utils/notification';
|
|
25
|
+
export { notificationSettings } from './utils/notification';
|
|
25
26
|
export * from './api/types/Api_Tasks';
|
|
26
27
|
export * from './api/types/Api_Repairs';
|
|
27
28
|
export * from './api/types/Api_Projects';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { QNotifyCreateOptions } from 'quasar';
|
|
1
2
|
export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default';
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const notificationSettings: (type: NotificationType, message: string) => QNotifyCreateOptions;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -47,7 +47,8 @@ export {
|
|
|
47
47
|
useTasksService,
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export type { NotificationType } from './utils/notification'
|
|
51
|
+
export { notificationSettings } from './utils/notification'
|
|
51
52
|
|
|
52
53
|
export * from './api/types/Api_Tasks'
|
|
53
54
|
export * from './api/types/Api_Repairs'
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const $q = useQuasar()
|
|
1
|
+
import { QNotifyCreateOptions } from 'quasar'
|
|
4
2
|
|
|
5
3
|
export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
|
|
6
4
|
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
}
|
|
5
|
+
export const notificationSettings = (type: NotificationType, message: string): QNotifyCreateOptions => ({
|
|
6
|
+
message,
|
|
7
|
+
color: type === 'danger' ? 'red' : type === 'success' ? 'green' : type === 'warning' ? 'orange' : 'white',
|
|
8
|
+
position: 'top-right',
|
|
9
|
+
})
|