shared-ritm 1.2.34 → 1.2.36

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 (46) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +12 -11
  4. package/dist/shared-ritm.umd.js +3 -3
  5. package/dist/types/api/services/AuthService.d.ts +3 -3
  6. package/dist/types/api/services/ControlsService.d.ts +11 -0
  7. package/dist/types/api/services/RepairsService.d.ts +7 -7
  8. package/dist/types/api/settings/ApiService.d.ts +1 -1
  9. package/dist/types/api/types/Api_Controls.d.ts +12 -0
  10. package/package.json +1 -1
  11. package/src/App.vue +2461 -2461
  12. package/src/api/services/AuthService.ts +58 -58
  13. package/src/api/services/ControlsService.ts +32 -0
  14. package/src/api/services/GanttService.ts +17 -17
  15. package/src/api/services/MetricsService.ts +101 -101
  16. package/src/api/settings/ApiService.ts +126 -126
  17. package/src/api/types/Api_Controls.ts +12 -0
  18. package/src/api/types/Api_Files.ts +1 -1
  19. package/src/api/types/Api_Projects.ts +55 -55
  20. package/src/api/types/Api_Repairs.ts +93 -93
  21. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  22. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  23. package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
  24. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  25. package/src/common/app-icon/AppIcon.vue +108 -108
  26. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  27. package/src/common/app-layout/AppLayout.vue +84 -84
  28. package/src/common/app-layout/components/AppLayoutHeader.vue +246 -246
  29. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  30. package/src/common/app-select/AppSelect.vue +157 -157
  31. package/src/common/app-sidebar/components/SidebarMenuItem.vue +146 -146
  32. package/src/common/app-toggle/AppToggle.vue +23 -23
  33. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  34. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  35. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  36. package/src/icons/header/NotificationIcon.vue +18 -18
  37. package/src/icons/header/PersonIcon.vue +11 -11
  38. package/src/icons/header/SettingIcon.vue +14 -14
  39. package/src/icons/task/attention-icon.vue +13 -13
  40. package/src/icons/task/clock-icon.vue +10 -10
  41. package/src/icons/task/delete-icon.vue +10 -10
  42. package/src/icons/task/fire-icon.vue +16 -16
  43. package/src/main.ts +28 -28
  44. package/src/shared/styles/general.css +96 -96
  45. package/src/utils/confirm.ts +12 -12
  46. 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,108 +1,108 @@
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 SettingIcon from '@/icons/header/SettingIcon.vue'
12
- import PassIcon from '@/icons/sidebar/pass-icon.vue'
13
- import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
14
- import UsersIcon from '@/icons/sidebar/users-icon.vue'
15
- import UserIcon from '@/icons/sidebar/user-icon.vue'
16
- import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
17
- import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
18
- import LogoIcon from '@/icons/sidebar/logo-icon.vue'
19
- import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
20
- import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
21
- import OrderIcon from '@/icons/sidebar/order-icon.vue'
22
- import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
23
- import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
24
- import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
25
- import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
26
- import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
27
- import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
28
- import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
29
- import RolesIcon from '@/icons/sidebar/roles-icon.vue'
30
- import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
31
- import PersonIcon from '@/icons/header/PersonIcon.vue'
32
- import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
33
- import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
34
- import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
35
- import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
36
- import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
37
- import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
38
- import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
39
-
40
- import { computed, defineProps } from 'vue'
41
-
42
- interface Props {
43
- size?: string | undefined
44
- tag?: string | undefined
45
- name: string
46
- color?: string | undefined
47
- }
48
-
49
- const props = withDefaults(defineProps<Props>(), {
50
- tag: '',
51
- name: '',
52
- })
53
-
54
- function toPascalCase(str: string): string {
55
- if (!str) return ''
56
- return str
57
- .split('-')
58
- .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
59
- .join('')
60
- }
61
- const sideBarIcon = computed(
62
- () =>
63
- ({
64
- ProjectsIcon,
65
- RepairsIcon,
66
- RepairObjectIcon,
67
- InstrumentHistoryIcon,
68
- StatusHistoryIcon,
69
- SettingIcon,
70
- PassIcon,
71
- AssignModuleIcon,
72
- UsersIcon,
73
- UserIcon,
74
- WorkzonesIcon,
75
- LogoutIcon,
76
- LogoIcon,
77
- TasksIcon,
78
- InstrumentsIcon,
79
- OrderIcon,
80
- ModulesIcon,
81
- NotificationsIcon,
82
- VideozonesIcon,
83
- InstrumentWorkZoneIcon,
84
- WorkshopIcon,
85
- WarehousesIcon,
86
- TeamsIcon,
87
- RolesIcon,
88
- PositionsIcon,
89
- PersonIcon,
90
- InstrumentOrderIcon,
91
- PreorderIcon,
92
- VideowallIcon,
93
- VideosourcesIcon,
94
- Tasks_tasksIcon,
95
- Tasks_todayIcon,
96
- ArrowFrameIcon,
97
- }[toPascalCase(props.name)]),
98
- )
99
- </script>
100
-
101
- <style module lang="scss">
102
- .app-icon {
103
- stroke: v-bind(color);
104
- fill: none;
105
- width: v-bind(size);
106
- height: v-bind(size);
107
- }
108
- </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 SettingIcon from '@/icons/header/SettingIcon.vue'
12
+ import PassIcon from '@/icons/sidebar/pass-icon.vue'
13
+ import AssignModuleIcon from '@/icons/sidebar/assign-module-icon.vue'
14
+ import UsersIcon from '@/icons/sidebar/users-icon.vue'
15
+ import UserIcon from '@/icons/sidebar/user-icon.vue'
16
+ import WorkzonesIcon from '@/icons/sidebar/workzones-icon.vue'
17
+ import LogoutIcon from '@/icons/sidebar/logout-icon.vue'
18
+ import LogoIcon from '@/icons/sidebar/logo-icon.vue'
19
+ import TasksIcon from '@/icons/sidebar/tasks-icon.vue'
20
+ import InstrumentsIcon from '@/icons/sidebar/instruments-icon.vue'
21
+ import OrderIcon from '@/icons/sidebar/order-icon.vue'
22
+ import ModulesIcon from '@/icons/sidebar/modules-icon.vue'
23
+ import NotificationsIcon from '@/icons/sidebar/notifications-icon.vue'
24
+ import VideozonesIcon from '@/icons/sidebar/videozones-icon.vue'
25
+ import InstrumentWorkZoneIcon from '@/icons/sidebar/instrument-work-zone-icon.vue'
26
+ import WorkshopIcon from '@/icons/sidebar/workshop-icon.vue'
27
+ import WarehousesIcon from '@/icons/sidebar/warehouses-icon.vue'
28
+ import TeamsIcon from '@/icons/sidebar/teams-icon.vue'
29
+ import RolesIcon from '@/icons/sidebar/roles-icon.vue'
30
+ import PositionsIcon from '@/icons/sidebar/positions-icon.vue'
31
+ import PersonIcon from '@/icons/header/PersonIcon.vue'
32
+ import InstrumentOrderIcon from '@/icons/sidebar/instrument-order-icon.vue'
33
+ import PreorderIcon from '@/icons/sidebar/preorder-icon.vue'
34
+ import VideowallIcon from '@/icons/sidebar/videowall-icon.vue'
35
+ import VideosourcesIcon from '@/icons/sidebar/videosources-icon.vue'
36
+ import Tasks_tasksIcon from '@/icons/sidebar/tasks_tasks-icon.vue'
37
+ import Tasks_todayIcon from '@/icons/sidebar/tasks_today-icon.vue'
38
+ import ArrowFrameIcon from '@/icons/components/arrow-frame-icon.vue'
39
+
40
+ import { computed, defineProps } from 'vue'
41
+
42
+ interface Props {
43
+ size?: string | undefined
44
+ tag?: string | undefined
45
+ name: string
46
+ color?: string | undefined
47
+ }
48
+
49
+ const props = withDefaults(defineProps<Props>(), {
50
+ tag: '',
51
+ name: '',
52
+ })
53
+
54
+ function toPascalCase(str: string): string {
55
+ if (!str) return ''
56
+ return str
57
+ .split('-')
58
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
59
+ .join('')
60
+ }
61
+ const sideBarIcon = computed(
62
+ () =>
63
+ ({
64
+ ProjectsIcon,
65
+ RepairsIcon,
66
+ RepairObjectIcon,
67
+ InstrumentHistoryIcon,
68
+ StatusHistoryIcon,
69
+ SettingIcon,
70
+ PassIcon,
71
+ AssignModuleIcon,
72
+ UsersIcon,
73
+ UserIcon,
74
+ WorkzonesIcon,
75
+ LogoutIcon,
76
+ LogoIcon,
77
+ TasksIcon,
78
+ InstrumentsIcon,
79
+ OrderIcon,
80
+ ModulesIcon,
81
+ NotificationsIcon,
82
+ VideozonesIcon,
83
+ InstrumentWorkZoneIcon,
84
+ WorkshopIcon,
85
+ WarehousesIcon,
86
+ TeamsIcon,
87
+ RolesIcon,
88
+ PositionsIcon,
89
+ PersonIcon,
90
+ InstrumentOrderIcon,
91
+ PreorderIcon,
92
+ VideowallIcon,
93
+ VideosourcesIcon,
94
+ Tasks_tasksIcon,
95
+ Tasks_todayIcon,
96
+ ArrowFrameIcon,
97
+ }[toPascalCase(props.name)]),
98
+ )
99
+ </script>
100
+
101
+ <style module lang="scss">
102
+ .app-icon {
103
+ stroke: v-bind(color);
104
+ fill: none;
105
+ width: v-bind(size);
106
+ height: v-bind(size);
107
+ }
108
+ </style>