shared-ritm 1.1.70 → 1.1.71

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.
Files changed (87) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +250 -243
  4. package/dist/shared-ritm.umd.js +3 -3
  5. package/dist/types/api/services/TasksService.d.ts +6 -1
  6. package/dist/types/api/types/Api_Tasks.d.ts +4 -0
  7. package/package.json +57 -57
  8. package/src/api/services/AuthService.ts +41 -41
  9. package/src/api/services/FileService.ts +15 -15
  10. package/src/api/services/GanttService.ts +17 -17
  11. package/src/api/services/MetricsService.ts +101 -101
  12. package/src/api/services/ProjectsService.ts +61 -61
  13. package/src/api/services/TasksService.ts +10 -0
  14. package/src/api/settings/ApiService.ts +125 -125
  15. package/src/api/types/Api_Files.ts +1 -1
  16. package/src/api/types/Api_Projects.ts +55 -55
  17. package/src/api/types/Api_Tasks.ts +5 -0
  18. package/src/common/app-button/AppButton.vue +173 -173
  19. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  20. package/src/common/app-date-picker/AppDatePicker.vue +74 -74
  21. package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
  22. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  23. package/src/common/app-icon/AppIcon.vue +104 -104
  24. package/src/common/app-input/AppInput.vue +147 -147
  25. package/src/common/app-input-search/AppInputSearch.vue +170 -170
  26. package/src/common/app-layout/AppLayout.vue +63 -63
  27. package/src/common/app-layout/components/AppLayoutHeader.vue +123 -123
  28. package/src/common/app-loader/index.vue +43 -43
  29. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  30. package/src/common/app-select/AppSelect.vue +157 -157
  31. package/src/common/app-sheet/AppSheet.vue +114 -114
  32. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  33. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  34. package/src/common/app-sidebar/components/SidebarMenuItem.vue +139 -139
  35. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  36. package/src/global.d.ts +1 -1
  37. package/src/icons/components/arrow-down-icon.vue +25 -25
  38. package/src/icons/components/arrow-frame-icon.vue +19 -19
  39. package/src/icons/components/arrow-square.vue +22 -22
  40. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  41. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  42. package/src/icons/header/flashIcon.vue +24 -24
  43. package/src/icons/header/notificationIcon.vue +18 -18
  44. package/src/icons/header/searchStatusIcon.vue +24 -24
  45. package/src/icons/header/smallCapsIcon.vue +34 -34
  46. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  47. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  48. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  49. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  50. package/src/icons/sidebar/instruments-icon.vue +45 -45
  51. package/src/icons/sidebar/logo-icon.vue +15 -15
  52. package/src/icons/sidebar/logout-icon.vue +13 -13
  53. package/src/icons/sidebar/modules-icon.vue +16 -16
  54. package/src/icons/sidebar/notifications-icon.vue +24 -24
  55. package/src/icons/sidebar/order-icon.vue +44 -44
  56. package/src/icons/sidebar/pass-icon.vue +38 -38
  57. package/src/icons/sidebar/positions-icon.vue +42 -42
  58. package/src/icons/sidebar/preorder-icon.vue +19 -19
  59. package/src/icons/sidebar/projects-icon.vue +31 -31
  60. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  61. package/src/icons/sidebar/repairs-icon.vue +20 -20
  62. package/src/icons/sidebar/roles-icon.vue +26 -26
  63. package/src/icons/sidebar/status-history-icon.vue +24 -24
  64. package/src/icons/sidebar/tasks-icon.vue +28 -28
  65. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  66. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  67. package/src/icons/sidebar/teams-icon.vue +32 -32
  68. package/src/icons/sidebar/user-icon.vue +18 -18
  69. package/src/icons/sidebar/users-icon.vue +46 -46
  70. package/src/icons/sidebar/videosources-icon.vue +19 -19
  71. package/src/icons/sidebar/videowall-icon.vue +13 -13
  72. package/src/icons/sidebar/videozones-icon.vue +21 -21
  73. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  74. package/src/icons/sidebar/workshop-icon.vue +100 -100
  75. package/src/icons/sidebar/workzones-icon.vue +22 -22
  76. package/src/icons/task/attention-icon.vue +13 -13
  77. package/src/icons/task/clock-icon.vue +10 -10
  78. package/src/icons/task/delete-icon.vue +10 -10
  79. package/src/icons/task/fire-icon.vue +16 -16
  80. package/src/index.ts +62 -62
  81. package/src/main.ts +18 -18
  82. package/src/quasar-user-options.ts +17 -17
  83. package/src/router/index.ts +10 -10
  84. package/src/shared/styles/general.css +96 -96
  85. package/src/shims-vue.d.ts +5 -5
  86. package/src/utils/confirm.ts +12 -12
  87. package/src/utils/notification.ts +9 -9
@@ -1,100 +1,100 @@
1
- <template>
2
- <q-dialog ref="dialogRef" persistent transition-show="slide-up" transition-hide="slide-down" :class="$style.dialog">
3
- <q-card :class="$style.modal">
4
- <q-card-section :class="$style['modal__content']">
5
- <div :class="$style['modal__content__header']">
6
- <safety-icon v-if="type === 'edit'" />
7
- <remove-icon v-if="type === 'delete'" />
8
- <h4>Подтвердить ?</h4>
9
- </div>
10
- <p>{{ content }}</p>
11
- </q-card-section>
12
- <q-card-section :class="$style.footer">
13
- <app-button :class="$style['footer__btn--ok']" label="Подтвердить" @click="onDialogOK" />
14
- <app-button :class="$style['footer__btn--cancel']" label="Отменить" @click="onDialogHide" />
15
- </q-card-section>
16
- </q-card>
17
- </q-dialog>
18
- </template>
19
-
20
- <script setup lang="ts">
21
- import { useDialogPluginComponent } from 'quasar'
22
- import AppButton from '@/common/app-button/AppButton.vue'
23
- import SafetyIcon from '@/icons/dialogs/SafetyIcon.vue'
24
- import RemoveIcon from '@/icons/dialogs/RemoveIcon.vue'
25
-
26
- const { onDialogHide, onDialogOK, dialogRef } = useDialogPluginComponent()
27
-
28
- interface Props {
29
- content: string
30
- type: 'delete' | 'edit'
31
- }
32
-
33
- const props = defineProps<Props>()
34
- </script>
35
-
36
- <style lang="scss" module>
37
- .modal {
38
- font-family: NunitoSansFont, sans-serif;
39
- display: flex;
40
- flex-direction: column;
41
- width: 400px;
42
- border-radius: 24px !important;
43
- justify-content: space-between;
44
- padding: 40px;
45
- &__content {
46
- margin: 0 auto;
47
- padding: 0;
48
- flex-grow: 1;
49
- &__header {
50
- width: 100%;
51
- display: flex;
52
- align-items: center;
53
- justify-content: center;
54
- flex-direction: column;
55
- gap: 16px;
56
- h4 {
57
- font-size: 24px;
58
- font-weight: 600;
59
- }
60
- }
61
- }
62
- p {
63
- margin-top: 14px;
64
- margin-bottom: 30px;
65
- font-size: 16px;
66
- text-align: center;
67
- }
68
- }
69
-
70
- .footer {
71
- display: flex;
72
- flex-direction: column;
73
- gap: 12px;
74
- align-items: center;
75
- justify-content: center;
76
- //height: 146px;
77
- padding: 0;
78
- &__btn--ok,
79
- &__btn--cancel {
80
- background-color: #3f8cff;
81
- border-radius: 9px;
82
- color: white;
83
- font-size: 16px;
84
- font-weight: bold;
85
- width: 300px;
86
- height: 48px;
87
- cursor: pointer;
88
- span {
89
- color: white;
90
- }
91
- }
92
- &__btn--cancel {
93
- background-color: white;
94
- border: 1px solid #3f8cff;
95
- span {
96
- color: #3f8cff;
97
- }
98
- }
99
- }
100
- </style>
1
+ <template>
2
+ <q-dialog ref="dialogRef" persistent transition-show="slide-up" transition-hide="slide-down" :class="$style.dialog">
3
+ <q-card :class="$style.modal">
4
+ <q-card-section :class="$style['modal__content']">
5
+ <div :class="$style['modal__content__header']">
6
+ <safety-icon v-if="type === 'edit'" />
7
+ <remove-icon v-if="type === 'delete'" />
8
+ <h4>Подтвердить ?</h4>
9
+ </div>
10
+ <p>{{ content }}</p>
11
+ </q-card-section>
12
+ <q-card-section :class="$style.footer">
13
+ <app-button :class="$style['footer__btn--ok']" label="Подтвердить" @click="onDialogOK" />
14
+ <app-button :class="$style['footer__btn--cancel']" label="Отменить" @click="onDialogHide" />
15
+ </q-card-section>
16
+ </q-card>
17
+ </q-dialog>
18
+ </template>
19
+
20
+ <script setup lang="ts">
21
+ import { useDialogPluginComponent } from 'quasar'
22
+ import AppButton from '@/common/app-button/AppButton.vue'
23
+ import SafetyIcon from '@/icons/dialogs/SafetyIcon.vue'
24
+ import RemoveIcon from '@/icons/dialogs/RemoveIcon.vue'
25
+
26
+ const { onDialogHide, onDialogOK, dialogRef } = useDialogPluginComponent()
27
+
28
+ interface Props {
29
+ content: string
30
+ type: 'delete' | 'edit'
31
+ }
32
+
33
+ const props = defineProps<Props>()
34
+ </script>
35
+
36
+ <style lang="scss" module>
37
+ .modal {
38
+ font-family: NunitoSansFont, sans-serif;
39
+ display: flex;
40
+ flex-direction: column;
41
+ width: 400px;
42
+ border-radius: 24px !important;
43
+ justify-content: space-between;
44
+ padding: 40px;
45
+ &__content {
46
+ margin: 0 auto;
47
+ padding: 0;
48
+ flex-grow: 1;
49
+ &__header {
50
+ width: 100%;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ flex-direction: column;
55
+ gap: 16px;
56
+ h4 {
57
+ font-size: 24px;
58
+ font-weight: 600;
59
+ }
60
+ }
61
+ }
62
+ p {
63
+ margin-top: 14px;
64
+ margin-bottom: 30px;
65
+ font-size: 16px;
66
+ text-align: center;
67
+ }
68
+ }
69
+
70
+ .footer {
71
+ display: flex;
72
+ flex-direction: column;
73
+ gap: 12px;
74
+ align-items: center;
75
+ justify-content: center;
76
+ //height: 146px;
77
+ padding: 0;
78
+ &__btn--ok,
79
+ &__btn--cancel {
80
+ background-color: #3f8cff;
81
+ border-radius: 9px;
82
+ color: white;
83
+ font-size: 16px;
84
+ font-weight: bold;
85
+ width: 300px;
86
+ height: 48px;
87
+ cursor: pointer;
88
+ span {
89
+ color: white;
90
+ }
91
+ }
92
+ &__btn--cancel {
93
+ background-color: white;
94
+ border: 1px solid #3f8cff;
95
+ span {
96
+ color: #3f8cff;
97
+ }
98
+ }
99
+ }
100
+ </style>
@@ -1,31 +1,31 @@
1
- <template>
2
- <q-btn-dropdown :color="color" :content-style="{ width: width || '200px', minWidth: height || '200px' }">
3
- <template #label>
4
- <slot name="label">
5
- {{ label }}
6
- </slot>
7
- </template>
8
- <template #default>
9
- <slot name="content" />
10
- </template>
11
- </q-btn-dropdown>
12
- </template>
13
-
14
- <script setup lang="ts">
15
- interface Props {
16
- label?: string
17
- color?: string
18
- width?: number
19
- height?: number
20
- }
21
-
22
- const props = defineProps<Props>()
23
- </script>
24
-
25
- <style scoped lang="scss">
26
- .q-btn {
27
- &:before {
28
- box-shadow: none;
29
- }
30
- }
31
- </style>
1
+ <template>
2
+ <q-btn-dropdown :color="color" :content-style="{ width: width || '200px', minWidth: height || '200px' }">
3
+ <template #label>
4
+ <slot name="label">
5
+ {{ label }}
6
+ </slot>
7
+ </template>
8
+ <template #default>
9
+ <slot name="content" />
10
+ </template>
11
+ </q-btn-dropdown>
12
+ </template>
13
+
14
+ <script setup lang="ts">
15
+ interface Props {
16
+ label?: string
17
+ color?: string
18
+ width?: number
19
+ height?: number
20
+ }
21
+
22
+ const props = defineProps<Props>()
23
+ </script>
24
+
25
+ <style scoped lang="scss">
26
+ .q-btn {
27
+ &:before {
28
+ box-shadow: none;
29
+ }
30
+ }
31
+ </style>
@@ -1,104 +1,104 @@
1
- <template>
2
- <component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
3
- </template>
4
-
5
- <script setup lang="ts">
6
- import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
7
- import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
8
- import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
9
- import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
10
- import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
11
- import PassIcon from '@/icons/sidebar/pass-icon.vue'
12
- import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
13
- import UsersIcon from '@/icons/sidebar/users-icon.vue'
14
- import UserIcon from '@/icons/sidebar/user-icon.vue'
15
- import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
16
- import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
17
- import LogoIcon from '@/icons/sidebar/logo-icon.vue'
18
- import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
19
- import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
20
- import OrderIcon from '@/icons/sidebar/order-icon.vue'
21
- import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
22
- import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
23
- import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
24
- import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
25
- import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
26
- import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
27
- import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
28
- import RolesIcon from '@/icons/sidebar/roles-icon.vue'
29
- import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
30
- import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
31
- import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
32
- import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
33
- import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
34
- import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
35
- import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
36
- import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
37
-
38
- import { computed, defineProps } from 'vue'
39
-
40
- interface Props {
41
- size?: string | undefined
42
- tag?: string | undefined
43
- name: string
44
- color?: string | undefined
45
- }
46
-
47
- const props = withDefaults(defineProps<Props>(), {
48
- tag: '',
49
- name: '',
50
- })
51
-
52
- function toPascalCase(str: string): string {
53
- if (!str) return ''
54
- return str
55
- .split('-')
56
- .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
57
- .join('')
58
- }
59
- const sideBarIcon = computed(
60
- () =>
61
- ({
62
- ProjectsIcon,
63
- RepairsIcon,
64
- RepairObjectIcon,
65
- InstrumentHistoryIcon,
66
- StatusHistoryIcon,
67
- PassIcon,
68
- AssignModuleIcon,
69
- UsersIcon,
70
- UserIcon,
71
- WorkzonesIcon,
72
- LogoutIcon,
73
- LogoIcon,
74
- TasksIcon,
75
- InstrumentsIcon,
76
- OrderIcon,
77
- ModulesIcon,
78
- NotificationsIcon,
79
- VideozonesIcon,
80
- InstrumentWorkZoneIcon,
81
- WorkshopIcon,
82
- WarehousesIcon,
83
- TeamsIcon,
84
- RolesIcon,
85
- PositionsIcon,
86
- InstrumentOrderIcon,
87
- PreorderIcon,
88
- VideowallIcon,
89
- VideosourcesIcon,
90
- Tasks_tasksIcon,
91
- Tasks_todayIcon,
92
- ArrowFrameIcon,
93
- }[toPascalCase(props.name)]),
94
- )
95
- </script>
96
-
97
- <style module lang="scss">
98
- .app-icon {
99
- stroke: v-bind(color);
100
- fill: none;
101
- width: v-bind(size);
102
- height: v-bind(size);
103
- }
104
- </style>
1
+ <template>
2
+ <component :is="sideBarIcon" :tag="tag" :class="[$style['app-icon']]" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import ProjectsIcon from '@/icons/sidebar/projects-icon.vue'
7
+ import RepairsIcon from '@/icons/sidebar/repairs-icon.vue'
8
+ import InstrumentHistoryIcon from '@/icons/sidebar/instrument-history-icon.vue'
9
+ import RepairObjectIcon from '@/icons/sidebar/repair-object-icon.vue'
10
+ import StatusHistoryIcon from '@/icons/sidebar/status-history-icon.vue'
11
+ import PassIcon from '@/icons/sidebar/pass-icon.vue'
12
+ import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
13
+ import UsersIcon from '@/icons/sidebar/users-icon.vue'
14
+ import UserIcon from '@/icons/sidebar/user-icon.vue'
15
+ import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
16
+ import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
17
+ import LogoIcon from '@/icons/sidebar/logo-icon.vue'
18
+ import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
19
+ import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
20
+ import OrderIcon from '@/icons/sidebar/order-icon.vue'
21
+ import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
22
+ import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
23
+ import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
24
+ import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
25
+ import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
26
+ import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
27
+ import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
28
+ import RolesIcon from '@/icons/sidebar/roles-icon.vue'
29
+ import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
30
+ import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
31
+ import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
32
+ import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
33
+ import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
34
+ import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
35
+ import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
36
+ import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
37
+
38
+ import { computed, defineProps } from 'vue'
39
+
40
+ interface Props {
41
+ size?: string | undefined
42
+ tag?: string | undefined
43
+ name: string
44
+ color?: string | undefined
45
+ }
46
+
47
+ const props = withDefaults(defineProps<Props>(), {
48
+ tag: '',
49
+ name: '',
50
+ })
51
+
52
+ function toPascalCase(str: string): string {
53
+ if (!str) return ''
54
+ return str
55
+ .split('-')
56
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
57
+ .join('')
58
+ }
59
+ const sideBarIcon = computed(
60
+ () =>
61
+ ({
62
+ ProjectsIcon,
63
+ RepairsIcon,
64
+ RepairObjectIcon,
65
+ InstrumentHistoryIcon,
66
+ StatusHistoryIcon,
67
+ PassIcon,
68
+ AssignModuleIcon,
69
+ UsersIcon,
70
+ UserIcon,
71
+ WorkzonesIcon,
72
+ LogoutIcon,
73
+ LogoIcon,
74
+ TasksIcon,
75
+ InstrumentsIcon,
76
+ OrderIcon,
77
+ ModulesIcon,
78
+ NotificationsIcon,
79
+ VideozonesIcon,
80
+ InstrumentWorkZoneIcon,
81
+ WorkshopIcon,
82
+ WarehousesIcon,
83
+ TeamsIcon,
84
+ RolesIcon,
85
+ PositionsIcon,
86
+ InstrumentOrderIcon,
87
+ PreorderIcon,
88
+ VideowallIcon,
89
+ VideosourcesIcon,
90
+ Tasks_tasksIcon,
91
+ Tasks_todayIcon,
92
+ ArrowFrameIcon,
93
+ }[toPascalCase(props.name)]),
94
+ )
95
+ </script>
96
+
97
+ <style module lang="scss">
98
+ .app-icon {
99
+ stroke: v-bind(color);
100
+ fill: none;
101
+ width: v-bind(size);
102
+ height: v-bind(size);
103
+ }
104
+ </style>