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