shared-ritm 1.2.16 → 1.2.18
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/README.md +103 -103
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +2923 -2909
- package/dist/shared-ritm.umd.js +7 -7
- package/package.json +1 -1
- package/src/App.vue +2445 -2455
- package/src/api/services/GanttService.ts +17 -17
- package/src/api/services/MetricsService.ts +101 -101
- package/src/api/services/ProjectsService.ts +67 -67
- package/src/api/settings/ApiService.ts +126 -126
- package/src/api/types/Api_Files.ts +1 -1
- package/src/api/types/Api_Projects.ts +55 -55
- package/src/api/types/Api_Repairs.ts +93 -93
- package/src/common/app-checkbox/AppCheckbox.vue +26 -26
- package/src/common/app-date-picker/AppDatePicker.vue +81 -81
- package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
- package/src/common/app-dropdown/AppDropdown.vue +31 -31
- package/src/common/app-input-search/AppInputSearch.vue +170 -170
- package/src/common/app-layout/AppLayout.vue +5 -1
- package/src/common/app-layout/components/AppLayoutHeader.vue +29 -41
- package/src/common/app-select/AppSelect.vue +157 -157
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +146 -146
- package/src/common/app-toggle/AppToggle.vue +23 -23
- package/src/common/app-wrapper/AppWrapper.vue +28 -28
- package/src/icons/dialogs/RemoveIcon.vue +12 -12
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/icons/task/attention-icon.vue +13 -13
- package/src/icons/task/clock-icon.vue +10 -10
- package/src/icons/task/delete-icon.vue +10 -10
- package/src/icons/task/fire-icon.vue +16 -16
- package/src/index.ts +62 -62
- package/src/shared/styles/general.css +96 -96
- package/src/utils/confirm.ts +12 -12
- package/src/utils/notification.ts +9 -9
- package/src/common/app-layout/components/AppPageContent.vue +0 -32
package/src/index.ts
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
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 AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
-
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
-
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
-
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
-
import AppLoader from '@/common/app-loader/index.vue'
|
|
10
|
-
import AppSelect from '@/common/app-select/AppSelect.vue'
|
|
11
|
-
import AppSheet from '@/common/app-sheet/AppSheet.vue'
|
|
12
|
-
import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
|
|
13
|
-
import AppToggle from '@/common/app-toggle/AppToggle.vue'
|
|
14
|
-
import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
|
|
15
|
-
import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
|
|
16
|
-
import AppDropdown from '@/common/app-dropdown/AppDropdown.vue'
|
|
17
|
-
|
|
18
|
-
import useGanttService from '@/api/services/GanttService'
|
|
19
|
-
import useMetricsService from '@/api/services/MetricsService'
|
|
20
|
-
import useProjectsService from '@/api/services/ProjectsService'
|
|
21
|
-
import useRepairsService from '@/api/services/RepairsService'
|
|
22
|
-
import useTasksService from '@/api/services/TasksService'
|
|
23
|
-
import useAuthService from '@/api/services/AuthService'
|
|
24
|
-
import useFileService from '@/api/services/FileService'
|
|
25
|
-
import ApiService from '@/api/settings/ApiService'
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
AppButton,
|
|
29
|
-
AppCheckbox,
|
|
30
|
-
AppDatePicker,
|
|
31
|
-
AppInput,
|
|
32
|
-
AppInputSearch,
|
|
33
|
-
AppLayout,
|
|
34
|
-
AppLayoutHeader,
|
|
35
|
-
AppLoader,
|
|
36
|
-
AppSelect,
|
|
37
|
-
AppSheet,
|
|
38
|
-
AppSidebar,
|
|
39
|
-
AppToggle,
|
|
40
|
-
AppWrapper,
|
|
41
|
-
AppConfirmDialog,
|
|
42
|
-
AppDropdown,
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
ApiService,
|
|
47
|
-
useAuthService,
|
|
48
|
-
useGanttService,
|
|
49
|
-
useMetricsService,
|
|
50
|
-
useProjectsService,
|
|
51
|
-
useRepairsService,
|
|
52
|
-
useTasksService,
|
|
53
|
-
useFileService,
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type { NotificationType } from './utils/notification'
|
|
57
|
-
export { notificationSettings } from './utils/notification'
|
|
58
|
-
|
|
59
|
-
export * from './api/types/Api_Tasks'
|
|
60
|
-
export * from './api/types/Api_Repairs'
|
|
61
|
-
export * from './api/types/Api_Projects'
|
|
62
|
-
// export * from '@/api/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 AppInput from '@/common/app-input/AppInput.vue'
|
|
6
|
+
import AppInputSearch from '@/common/app-input-search/AppInputSearch.vue'
|
|
7
|
+
import AppLayout from '@/common/app-layout/AppLayout.vue'
|
|
8
|
+
import AppLayoutHeader from '@/common/app-layout/components/AppLayoutHeader.vue'
|
|
9
|
+
import AppLoader from '@/common/app-loader/index.vue'
|
|
10
|
+
import AppSelect from '@/common/app-select/AppSelect.vue'
|
|
11
|
+
import AppSheet from '@/common/app-sheet/AppSheet.vue'
|
|
12
|
+
import AppSidebar from '@/common/app-sidebar/AppSidebar.vue'
|
|
13
|
+
import AppToggle from '@/common/app-toggle/AppToggle.vue'
|
|
14
|
+
import AppWrapper from '@/common/app-wrapper/AppWrapper.vue'
|
|
15
|
+
import AppConfirmDialog from '@/common/app-dialogs/AppConfirmDialog.vue'
|
|
16
|
+
import AppDropdown from '@/common/app-dropdown/AppDropdown.vue'
|
|
17
|
+
|
|
18
|
+
import useGanttService from '@/api/services/GanttService'
|
|
19
|
+
import useMetricsService from '@/api/services/MetricsService'
|
|
20
|
+
import useProjectsService from '@/api/services/ProjectsService'
|
|
21
|
+
import useRepairsService from '@/api/services/RepairsService'
|
|
22
|
+
import useTasksService from '@/api/services/TasksService'
|
|
23
|
+
import useAuthService from '@/api/services/AuthService'
|
|
24
|
+
import useFileService from '@/api/services/FileService'
|
|
25
|
+
import ApiService from '@/api/settings/ApiService'
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
AppButton,
|
|
29
|
+
AppCheckbox,
|
|
30
|
+
AppDatePicker,
|
|
31
|
+
AppInput,
|
|
32
|
+
AppInputSearch,
|
|
33
|
+
AppLayout,
|
|
34
|
+
AppLayoutHeader,
|
|
35
|
+
AppLoader,
|
|
36
|
+
AppSelect,
|
|
37
|
+
AppSheet,
|
|
38
|
+
AppSidebar,
|
|
39
|
+
AppToggle,
|
|
40
|
+
AppWrapper,
|
|
41
|
+
AppConfirmDialog,
|
|
42
|
+
AppDropdown,
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
ApiService,
|
|
47
|
+
useAuthService,
|
|
48
|
+
useGanttService,
|
|
49
|
+
useMetricsService,
|
|
50
|
+
useProjectsService,
|
|
51
|
+
useRepairsService,
|
|
52
|
+
useTasksService,
|
|
53
|
+
useFileService,
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type { NotificationType } from './utils/notification'
|
|
57
|
+
export { notificationSettings } from './utils/notification'
|
|
58
|
+
|
|
59
|
+
export * from './api/types/Api_Tasks'
|
|
60
|
+
export * from './api/types/Api_Repairs'
|
|
61
|
+
export * from './api/types/Api_Projects'
|
|
62
|
+
// export * from '@/api/types/Api_Metrics'
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--main-header-height: 73px;
|
|
3
|
-
--main-footer-height: 66px;
|
|
4
|
-
--sidebar-width-max: 250px;
|
|
5
|
-
--sidebar-width-min: 66px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/*border-radius*/
|
|
9
|
-
:root {
|
|
10
|
-
--border-radius-xxs: 4px;
|
|
11
|
-
--border-radius-xs: 8px;
|
|
12
|
-
--border-radius-s: 12px;
|
|
13
|
-
--border-radius-m: 16px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/*color*/
|
|
17
|
-
:root {
|
|
18
|
-
--g-blue: #3f8cff;
|
|
19
|
-
--g-blue-light: #e4efff;
|
|
20
|
-
--g-blue-dark: #1c75ff;
|
|
21
|
-
--g-green: #00d097;
|
|
22
|
-
--g-green-light: #e0f9f2;
|
|
23
|
-
--g-green-dark: #b8f8e7;
|
|
24
|
-
--g-red: #ff192d;
|
|
25
|
-
--g-red-light: #fdecee;
|
|
26
|
-
--g-red-dark: #ffdcde;
|
|
27
|
-
--g-grey-100: #d8e0f0;
|
|
28
|
-
|
|
29
|
-
--g-font-color: #0a1629;
|
|
30
|
-
--g-font-grey-color: #b9c0c7;
|
|
31
|
-
--g-font-secondary-color: #7d8592;
|
|
32
|
-
|
|
33
|
-
--g-grey-background: #ced5e0;
|
|
34
|
-
--g-grey-hover-background: #9fa5af;
|
|
35
|
-
--g-secondary-background: #f4f9fd;
|
|
36
|
-
--g-thirty-background: #c8cbcf;
|
|
37
|
-
|
|
38
|
-
--g-fire-color-1: #fee7e7;
|
|
39
|
-
--g-fire-color-2: #fed4d5;
|
|
40
|
-
--g-fire-color-3: #fcc0c0;
|
|
41
|
-
--g-fire-color-4: #f9a2a2;
|
|
42
|
-
--g-fire-color-5: #f97d7e;
|
|
43
|
-
--g-fire-color-6: #f65160;
|
|
44
|
-
--g-fire-color-7: #ff192d;
|
|
45
|
-
--g-fire-color-8: #ab0514;
|
|
46
|
-
--g-fire-color-9: #6e000a;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
* {
|
|
50
|
-
margin: 0;
|
|
51
|
-
padding: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
button:active,
|
|
55
|
-
button:focus {
|
|
56
|
-
outline: none !important;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
html {
|
|
60
|
-
font-family: 'NunitoSansFont', sans-serif !important;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ant-dropdown {
|
|
64
|
-
z-index: 10000;
|
|
65
|
-
.content {
|
|
66
|
-
z-index: 10000;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@font-face {
|
|
71
|
-
font-family: 'NunitoSansFont';
|
|
72
|
-
src: local('NunitoSansFont-Regular'), url('../fonts/NunitoSansFont.ttf') format('truetype');
|
|
73
|
-
font-weight: 400;
|
|
74
|
-
font-style: normal;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@font-face {
|
|
78
|
-
font-family: 'NunitoSansFont';
|
|
79
|
-
src: local('NunitoSansFont-Bold'), url('../fonts/NunitoSans_7pt-Bold.ttf') format('truetype');
|
|
80
|
-
font-weight: 700;
|
|
81
|
-
font-style: normal;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@font-face {
|
|
85
|
-
font-family: 'Montserrat';
|
|
86
|
-
src: local('Montserrat-Regular'), url('../fonts/Montserrat.ttf') format('truetype');
|
|
87
|
-
font-weight: 400;
|
|
88
|
-
font-style: normal;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@font-face {
|
|
92
|
-
font-family: 'Montserrat';
|
|
93
|
-
src: local('Montserrat-Bold'), url('../fonts/Montserrat-Bold.ttf') format('truetype');
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
font-style: normal;
|
|
96
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--main-header-height: 73px;
|
|
3
|
+
--main-footer-height: 66px;
|
|
4
|
+
--sidebar-width-max: 250px;
|
|
5
|
+
--sidebar-width-min: 66px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/*border-radius*/
|
|
9
|
+
:root {
|
|
10
|
+
--border-radius-xxs: 4px;
|
|
11
|
+
--border-radius-xs: 8px;
|
|
12
|
+
--border-radius-s: 12px;
|
|
13
|
+
--border-radius-m: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/*color*/
|
|
17
|
+
:root {
|
|
18
|
+
--g-blue: #3f8cff;
|
|
19
|
+
--g-blue-light: #e4efff;
|
|
20
|
+
--g-blue-dark: #1c75ff;
|
|
21
|
+
--g-green: #00d097;
|
|
22
|
+
--g-green-light: #e0f9f2;
|
|
23
|
+
--g-green-dark: #b8f8e7;
|
|
24
|
+
--g-red: #ff192d;
|
|
25
|
+
--g-red-light: #fdecee;
|
|
26
|
+
--g-red-dark: #ffdcde;
|
|
27
|
+
--g-grey-100: #d8e0f0;
|
|
28
|
+
|
|
29
|
+
--g-font-color: #0a1629;
|
|
30
|
+
--g-font-grey-color: #b9c0c7;
|
|
31
|
+
--g-font-secondary-color: #7d8592;
|
|
32
|
+
|
|
33
|
+
--g-grey-background: #ced5e0;
|
|
34
|
+
--g-grey-hover-background: #9fa5af;
|
|
35
|
+
--g-secondary-background: #f4f9fd;
|
|
36
|
+
--g-thirty-background: #c8cbcf;
|
|
37
|
+
|
|
38
|
+
--g-fire-color-1: #fee7e7;
|
|
39
|
+
--g-fire-color-2: #fed4d5;
|
|
40
|
+
--g-fire-color-3: #fcc0c0;
|
|
41
|
+
--g-fire-color-4: #f9a2a2;
|
|
42
|
+
--g-fire-color-5: #f97d7e;
|
|
43
|
+
--g-fire-color-6: #f65160;
|
|
44
|
+
--g-fire-color-7: #ff192d;
|
|
45
|
+
--g-fire-color-8: #ab0514;
|
|
46
|
+
--g-fire-color-9: #6e000a;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
margin: 0;
|
|
51
|
+
padding: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
button:active,
|
|
55
|
+
button:focus {
|
|
56
|
+
outline: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
html {
|
|
60
|
+
font-family: 'NunitoSansFont', sans-serif !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ant-dropdown {
|
|
64
|
+
z-index: 10000;
|
|
65
|
+
.content {
|
|
66
|
+
z-index: 10000;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@font-face {
|
|
71
|
+
font-family: 'NunitoSansFont';
|
|
72
|
+
src: local('NunitoSansFont-Regular'), url('../fonts/NunitoSansFont.ttf') format('truetype');
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-style: normal;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: 'NunitoSansFont';
|
|
79
|
+
src: local('NunitoSansFont-Bold'), url('../fonts/NunitoSans_7pt-Bold.ttf') format('truetype');
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
font-style: normal;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@font-face {
|
|
85
|
+
font-family: 'Montserrat';
|
|
86
|
+
src: local('Montserrat-Regular'), url('../fonts/Montserrat.ttf') format('truetype');
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
font-style: normal;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@font-face {
|
|
92
|
+
font-family: 'Montserrat';
|
|
93
|
+
src: local('Montserrat-Bold'), url('../fonts/Montserrat-Bold.ttf') format('truetype');
|
|
94
|
+
font-weight: 700;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
}
|
package/src/utils/confirm.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent } from 'vue'
|
|
2
|
-
import { useQuasar } from 'quasar'
|
|
3
|
-
const $q = useQuasar()
|
|
4
|
-
|
|
5
|
-
const AppConfirmDialog = defineAsyncComponent(() => import('@/common/app-dialogs/AppConfirmDialog.vue'))
|
|
6
|
-
|
|
7
|
-
export const appConfirm = (content: string, type: 'delete' | 'edit') => {
|
|
8
|
-
return $q.dialog({
|
|
9
|
-
component: AppConfirmDialog,
|
|
10
|
-
componentProps: { content, type },
|
|
11
|
-
})
|
|
12
|
-
}
|
|
1
|
+
import { defineAsyncComponent } from 'vue'
|
|
2
|
+
import { useQuasar } from 'quasar'
|
|
3
|
+
const $q = useQuasar()
|
|
4
|
+
|
|
5
|
+
const AppConfirmDialog = defineAsyncComponent(() => import('@/common/app-dialogs/AppConfirmDialog.vue'))
|
|
6
|
+
|
|
7
|
+
export const appConfirm = (content: string, type: 'delete' | 'edit') => {
|
|
8
|
+
return $q.dialog({
|
|
9
|
+
component: AppConfirmDialog,
|
|
10
|
+
componentProps: { content, type },
|
|
11
|
+
})
|
|
12
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { QNotifyCreateOptions } from 'quasar'
|
|
2
|
-
|
|
3
|
-
export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
|
|
4
|
-
|
|
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
|
-
})
|
|
1
|
+
import { QNotifyCreateOptions } from 'quasar'
|
|
2
|
+
|
|
3
|
+
export type NotificationType = 'danger' | 'success' | 'warning' | 'info' | 'default'
|
|
4
|
+
|
|
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
|
+
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<q-page class="page-container" :style="marginLeft">
|
|
3
|
-
<slot />
|
|
4
|
-
</q-page>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
import { computed, onMounted, ref, onBeforeUnmount } from 'vue'
|
|
9
|
-
|
|
10
|
-
const hasPaddingLeft = ref(false)
|
|
11
|
-
|
|
12
|
-
const marginLeft = computed(() => {
|
|
13
|
-
return hasPaddingLeft.value ? { 'margin-left': '0px' } : { 'margin-left': '72px' }
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
function checkPaddingLeft() {
|
|
17
|
-
const el = document.querySelector('.q-page-container') as HTMLElement | null
|
|
18
|
-
if (el) {
|
|
19
|
-
const observer = new ResizeObserver(() => {
|
|
20
|
-
hasPaddingLeft.value = window.getComputedStyle(el).paddingLeft !== '0px'
|
|
21
|
-
})
|
|
22
|
-
observer.observe(el)
|
|
23
|
-
onBeforeUnmount(() => observer.disconnect())
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
onMounted(() => {
|
|
28
|
-
checkPaddingLeft()
|
|
29
|
-
})
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<style scoped lang="scss"></style>
|