shared-ritm 1.1.71 → 1.1.73

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 (65) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +19 -16
  3. package/dist/shared-ritm.umd.js +3 -3
  4. package/package.json +1 -1
  5. package/src/api/services/AuthService.ts +41 -41
  6. package/src/api/services/FileService.ts +15 -15
  7. package/src/api/services/TasksService.ts +128 -126
  8. package/src/api/settings/ApiService.ts +125 -125
  9. package/src/api/types/Api_Repairs.ts +93 -93
  10. package/src/api/types/Api_Tasks.ts +155 -155
  11. package/src/common/app-button/AppButton.vue +173 -173
  12. package/src/common/app-date-picker/AppDatePicker.vue +75 -74
  13. package/src/common/app-icon/AppIcon.vue +104 -104
  14. package/src/common/app-input/AppInput.vue +147 -147
  15. package/src/common/app-layout/AppLayout.vue +63 -63
  16. package/src/common/app-layout/components/AppLayoutHeader.vue +123 -123
  17. package/src/common/app-loader/index.vue +43 -43
  18. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  19. package/src/common/app-sheet/AppSheet.vue +114 -114
  20. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  21. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  22. package/src/common/app-sidebar/components/SidebarMenuItem.vue +139 -139
  23. package/src/common/app-toggle/AppToggle.vue +23 -23
  24. package/src/global.d.ts +1 -1
  25. package/src/icons/components/arrow-down-icon.vue +25 -25
  26. package/src/icons/components/arrow-frame-icon.vue +19 -19
  27. package/src/icons/components/arrow-square.vue +22 -22
  28. package/src/icons/header/flashIcon.vue +24 -24
  29. package/src/icons/header/notificationIcon.vue +18 -18
  30. package/src/icons/header/searchStatusIcon.vue +24 -24
  31. package/src/icons/header/smallCapsIcon.vue +34 -34
  32. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  33. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  34. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  35. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  36. package/src/icons/sidebar/instruments-icon.vue +45 -45
  37. package/src/icons/sidebar/logo-icon.vue +15 -15
  38. package/src/icons/sidebar/logout-icon.vue +13 -13
  39. package/src/icons/sidebar/modules-icon.vue +16 -16
  40. package/src/icons/sidebar/notifications-icon.vue +24 -24
  41. package/src/icons/sidebar/order-icon.vue +44 -44
  42. package/src/icons/sidebar/pass-icon.vue +38 -38
  43. package/src/icons/sidebar/positions-icon.vue +42 -42
  44. package/src/icons/sidebar/preorder-icon.vue +19 -19
  45. package/src/icons/sidebar/projects-icon.vue +31 -31
  46. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  47. package/src/icons/sidebar/repairs-icon.vue +20 -20
  48. package/src/icons/sidebar/roles-icon.vue +26 -26
  49. package/src/icons/sidebar/status-history-icon.vue +24 -24
  50. package/src/icons/sidebar/tasks-icon.vue +28 -28
  51. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  52. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  53. package/src/icons/sidebar/teams-icon.vue +32 -32
  54. package/src/icons/sidebar/user-icon.vue +18 -18
  55. package/src/icons/sidebar/users-icon.vue +46 -46
  56. package/src/icons/sidebar/videosources-icon.vue +19 -19
  57. package/src/icons/sidebar/videowall-icon.vue +13 -13
  58. package/src/icons/sidebar/videozones-icon.vue +21 -21
  59. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  60. package/src/icons/sidebar/workshop-icon.vue +100 -100
  61. package/src/icons/sidebar/workzones-icon.vue +22 -22
  62. package/src/main.ts +18 -18
  63. package/src/quasar-user-options.ts +17 -17
  64. package/src/router/index.ts +10 -10
  65. package/src/shims-vue.d.ts +5 -5
@@ -1,114 +1,114 @@
1
- <template>
2
- <q-dialog
3
- ref="DialogRef"
4
- :model-value="true"
5
- :position="'right'"
6
- :class="$style['sheet-dialog']"
7
- full-height
8
- full-width
9
- >
10
- <template v-if="type === 'details'">
11
- <q-card>
12
- <div class="wrapper">
13
- <div class="sheet-header">
14
- <h2>{{ title }}</h2>
15
- <div class="close-button">
16
- <q-btn v-close-popup dense flat icon="close" />
17
- </div>
18
- </div>
19
- <div v-if="loading" class="loader">
20
- <q-spinner-audio v-if="loading" class="loader-spinner" size="md" :thickness="3" color="primary" />
21
- </div>
22
- <slot v-else />
23
- </div>
24
- </q-card>
25
- </template>
26
- <template v-if="type === 'custom'">
27
- <div v-if="loading" class="custom-wrapper">
28
- <div class="loader">
29
- <q-spinner-audio v-if="loading" class="loader-spinner" size="md" :thickness="3" color="primary" />
30
- </div>
31
- </div>
32
- <slot v-else />
33
- </template>
34
- </q-dialog>
35
- </template>
36
-
37
- <script setup lang="ts">
38
- import { computed, defineEmits, defineProps, withDefaults } from 'vue'
39
-
40
- interface DialogProps {
41
- dialogRef: any
42
- loading?: boolean
43
- title?: string
44
- width?: string
45
- type?: 'details' | 'custom'
46
- tabs?: any[]
47
- currentTabName?: string
48
- }
49
-
50
- const props = withDefaults(defineProps<DialogProps>(), {
51
- title: '',
52
- width: '976px',
53
- type: 'details',
54
- loading: false,
55
- tabs: () => [],
56
- currentTabName: '',
57
- })
58
-
59
- const emit = defineEmits(['update:dialogRef', 'update:currentTabName'])
60
-
61
- const DialogRef = computed({
62
- get() {
63
- return props.dialogRef
64
- },
65
- set(value) {
66
- emit('update:dialogRef', value)
67
- },
68
- })
69
- </script>
70
-
71
- <style lang="scss" scoped>
72
- .custom-wrapper {
73
- width: v-bind(width);
74
- background-color: white;
75
- }
76
- .wrapper {
77
- display: flex;
78
- flex-direction: column;
79
- gap: 1rem;
80
- width: v-bind(width);
81
- height: 100vh;
82
- min-height: 100vh;
83
- position: relative;
84
- padding: 2rem 2rem 4rem 2rem;
85
- background-color: #7991ad32;
86
- font-family: 'NunitoSansFont', sans-serif;
87
- }
88
-
89
- .sheet-header {
90
- display: flex;
91
- justify-content: space-between;
92
- align-items: center;
93
- h2 {
94
- font-size: 36px;
95
- }
96
- }
97
- .loader {
98
- min-width: 976px;
99
- &-spinner {
100
- position: absolute;
101
- top: 50%;
102
- left: 50%;
103
- z-index: 4;
104
- }
105
- }
106
- </style>
107
-
108
- <style lang="scss" module>
109
- .sheet-dialog {
110
- :global(.q-dialog__inner--minimized) {
111
- padding: 0;
112
- }
113
- }
114
- </style>
1
+ <template>
2
+ <q-dialog
3
+ ref="DialogRef"
4
+ :model-value="true"
5
+ :position="'right'"
6
+ :class="$style['sheet-dialog']"
7
+ full-height
8
+ full-width
9
+ >
10
+ <template v-if="type === 'details'">
11
+ <q-card>
12
+ <div class="wrapper">
13
+ <div class="sheet-header">
14
+ <h2>{{ title }}</h2>
15
+ <div class="close-button">
16
+ <q-btn v-close-popup dense flat icon="close" />
17
+ </div>
18
+ </div>
19
+ <div v-if="loading" class="loader">
20
+ <q-spinner-audio v-if="loading" class="loader-spinner" size="md" :thickness="3" color="primary" />
21
+ </div>
22
+ <slot v-else />
23
+ </div>
24
+ </q-card>
25
+ </template>
26
+ <template v-if="type === 'custom'">
27
+ <div v-if="loading" class="custom-wrapper">
28
+ <div class="loader">
29
+ <q-spinner-audio v-if="loading" class="loader-spinner" size="md" :thickness="3" color="primary" />
30
+ </div>
31
+ </div>
32
+ <slot v-else />
33
+ </template>
34
+ </q-dialog>
35
+ </template>
36
+
37
+ <script setup lang="ts">
38
+ import { computed, defineEmits, defineProps, withDefaults } from 'vue'
39
+
40
+ interface DialogProps {
41
+ dialogRef: any
42
+ loading?: boolean
43
+ title?: string
44
+ width?: string
45
+ type?: 'details' | 'custom'
46
+ tabs?: any[]
47
+ currentTabName?: string
48
+ }
49
+
50
+ const props = withDefaults(defineProps<DialogProps>(), {
51
+ title: '',
52
+ width: '976px',
53
+ type: 'details',
54
+ loading: false,
55
+ tabs: () => [],
56
+ currentTabName: '',
57
+ })
58
+
59
+ const emit = defineEmits(['update:dialogRef', 'update:currentTabName'])
60
+
61
+ const DialogRef = computed({
62
+ get() {
63
+ return props.dialogRef
64
+ },
65
+ set(value) {
66
+ emit('update:dialogRef', value)
67
+ },
68
+ })
69
+ </script>
70
+
71
+ <style lang="scss" scoped>
72
+ .custom-wrapper {
73
+ width: v-bind(width);
74
+ background-color: white;
75
+ }
76
+ .wrapper {
77
+ display: flex;
78
+ flex-direction: column;
79
+ gap: 1rem;
80
+ width: v-bind(width);
81
+ height: 100vh;
82
+ min-height: 100vh;
83
+ position: relative;
84
+ padding: 2rem 2rem 4rem 2rem;
85
+ background-color: #7991ad32;
86
+ font-family: 'NunitoSansFont', sans-serif;
87
+ }
88
+
89
+ .sheet-header {
90
+ display: flex;
91
+ justify-content: space-between;
92
+ align-items: center;
93
+ h2 {
94
+ font-size: 36px;
95
+ }
96
+ }
97
+ .loader {
98
+ min-width: 976px;
99
+ &-spinner {
100
+ position: absolute;
101
+ top: 50%;
102
+ left: 50%;
103
+ z-index: 4;
104
+ }
105
+ }
106
+ </style>
107
+
108
+ <style lang="scss" module>
109
+ .sheet-dialog {
110
+ :global(.q-dialog__inner--minimized) {
111
+ padding: 0;
112
+ }
113
+ }
114
+ </style>
@@ -1,168 +1,168 @@
1
- <template>
2
- <q-drawer
3
- :key="`${drawer}`"
4
- v-model="drawer"
5
- :class="$style.drawer"
6
- :mini="isSidebarMini"
7
- :overlay="!isFixSidebar"
8
- :width="drawerWidth"
9
- :mini-width="drawerMiniWidth"
10
- :breakpoint="960"
11
- show-if-above
12
- @mouseover="toggleSidebarMini(false)"
13
- @mouseout="toggleSidebarMini(true)"
14
- >
15
- <template v-if="isTablet">
16
- <q-item :class="$style['tablet-logo']">
17
- <q-item-section avatar>
18
- <q-btn
19
- round
20
- unelevated
21
- :class="$style['tablet-logo__btn']"
22
- :icon="tabletLogoBtn"
23
- @click="openDrawerIsTablet()"
24
- />
25
- </q-item-section>
26
- <q-item-section :class="$style['logo__text']">РИТМ</q-item-section>
27
- </q-item>
28
- </template>
29
- <template v-else>
30
- <q-item :class="$style.logo">
31
- <q-item-section avatar>
32
- <app-icon name="logo-icon" />
33
- </q-item-section>
34
- <q-item-section :class="$style['logo__text']">РИТМ</q-item-section>
35
- </q-item>
36
- <q-btn
37
- dense
38
- round
39
- unelevated
40
- class="q-mini-drawer-hide"
41
- :class="$style['minify-btn']"
42
- icon="chevron_left"
43
- @click="isFixSidebar = !isFixSidebar"
44
- >
45
- <q-tooltip>Закрепить сайдбар</q-tooltip>
46
- </q-btn>
47
- </template>
48
- <sidebar-menu :main="main" :menu-items="menuItems" :minify="isSidebarMini" :is-route-active="isRouteActive" />
49
- <q-item v-ripple :class="$style['menu-exit']" clickable @click="logout()">
50
- <q-item-section avatar>
51
- <app-icon :name="'logout-icon'" color="white" size="24px" />
52
- </q-item-section>
53
- <q-item-section :class="$style['menu-exit__label']">Выход</q-item-section>
54
- </q-item>
55
- </q-drawer>
56
- </template>
57
-
58
- <script setup lang="ts">
59
- import { computed, defineProps, defineEmits, ref, watch, withDefaults } from 'vue'
60
- import SidebarMenu from './components/SidebarMenu.vue'
61
-
62
- import { useQuasar } from 'quasar'
63
- import AppIcon from '@/common/app-icon/AppIcon.vue'
64
-
65
- interface Props {
66
- isDrawer: boolean
67
- minify?: boolean
68
- menuItems?: any[]
69
- main?: boolean
70
- isRouteActive: (item: any) => boolean
71
- }
72
- const emits = defineEmits(['logout'])
73
- const props = withDefaults(defineProps<Props>(), {
74
- main: false,
75
- menuItems: () => [],
76
- })
77
- const $q = useQuasar()
78
-
79
- const drawer = ref(true)
80
- const isSidebarMini = ref(true)
81
- const isFixSidebar = ref(false)
82
-
83
- const isTablet = computed(() => $q.screen.lt.lg)
84
- const tabletLogoBtn = computed(() => (isSidebarMini.value ? 'menu' : 'close'))
85
- const drawerWidth = computed(() => (isTablet.value ? 250 : 275))
86
- const drawerMiniWidth = computed(() => (isTablet.value ? 47 : 72))
87
-
88
- function toggleSidebarMini(value: boolean): void {
89
- if (!isFixSidebar.value && !isTablet.value) isSidebarMini.value = value
90
- }
91
-
92
- function openDrawerIsTablet() {
93
- isFixSidebar.value = !isFixSidebar.value
94
- isSidebarMini.value = !isSidebarMini.value
95
- }
96
-
97
- function logout(): void {
98
- emits('logout')
99
- }
100
-
101
- watch(
102
- () => isTablet.value,
103
- (value: boolean) => {
104
- isFixSidebar.value = value
105
- },
106
- )
107
- </script>
108
-
109
- <style lang="scss" module>
110
- .drawer {
111
- display: flex;
112
- flex-direction: column;
113
- height: 100vh;
114
- background: linear-gradient(184deg, #0b3f8e 9.62%, #5386d3 59.23%, #5386d3 91.63%);
115
- border-right: 1px solid #e4e6e8;
116
- &::-webkit-scrollbar {
117
- height: 4px;
118
- width: 4px;
119
- }
120
- &::-webkit-scrollbar-thumb {
121
- width: 4px;
122
- height: 4px;
123
- }
124
- }
125
- .logo {
126
- display: flex;
127
- justify-content: center;
128
- margin: 24px 0;
129
- &__text {
130
- color: white;
131
- font-size: 20px;
132
- font-weight: 700;
133
- }
134
- }
135
- .tablet-logo {
136
- border-bottom: 1px solid white;
137
- &__btn {
138
- color: white;
139
- }
140
- }
141
-
142
- .minify-btn {
143
- background: #0b3f8e;
144
- color: white;
145
- position: absolute;
146
- top: 25px;
147
- right: -17px;
148
-
149
- &:global(.--mini) {
150
- :global(.q-icon) {
151
- transform: rotate(180deg);
152
- }
153
- }
154
- }
155
-
156
- .menu-exit {
157
- border-top: 1px solid white;
158
- :global(.q-item__section--avatar) {
159
- min-width: 24px;
160
- }
161
- &__label {
162
- color: #fff;
163
- font-family: 'Nunito Sans', sans-serif;
164
- font-size: 16px;
165
- font-weight: 300;
166
- }
167
- }
168
- </style>
1
+ <template>
2
+ <q-drawer
3
+ :key="`${drawer}`"
4
+ v-model="drawer"
5
+ :class="$style.drawer"
6
+ :mini="isSidebarMini"
7
+ :overlay="!isFixSidebar"
8
+ :width="drawerWidth"
9
+ :mini-width="drawerMiniWidth"
10
+ :breakpoint="960"
11
+ show-if-above
12
+ @mouseover="toggleSidebarMini(false)"
13
+ @mouseout="toggleSidebarMini(true)"
14
+ >
15
+ <template v-if="isTablet">
16
+ <q-item :class="$style['tablet-logo']">
17
+ <q-item-section avatar>
18
+ <q-btn
19
+ round
20
+ unelevated
21
+ :class="$style['tablet-logo__btn']"
22
+ :icon="tabletLogoBtn"
23
+ @click="openDrawerIsTablet()"
24
+ />
25
+ </q-item-section>
26
+ <q-item-section :class="$style['logo__text']">РИТМ</q-item-section>
27
+ </q-item>
28
+ </template>
29
+ <template v-else>
30
+ <q-item :class="$style.logo">
31
+ <q-item-section avatar>
32
+ <app-icon name="logo-icon" />
33
+ </q-item-section>
34
+ <q-item-section :class="$style['logo__text']">РИТМ</q-item-section>
35
+ </q-item>
36
+ <q-btn
37
+ dense
38
+ round
39
+ unelevated
40
+ class="q-mini-drawer-hide"
41
+ :class="$style['minify-btn']"
42
+ icon="chevron_left"
43
+ @click="isFixSidebar = !isFixSidebar"
44
+ >
45
+ <q-tooltip>Закрепить сайдбар</q-tooltip>
46
+ </q-btn>
47
+ </template>
48
+ <sidebar-menu :main="main" :menu-items="menuItems" :minify="isSidebarMini" :is-route-active="isRouteActive" />
49
+ <q-item v-ripple :class="$style['menu-exit']" clickable @click="logout()">
50
+ <q-item-section avatar>
51
+ <app-icon :name="'logout-icon'" color="white" size="24px" />
52
+ </q-item-section>
53
+ <q-item-section :class="$style['menu-exit__label']">Выход</q-item-section>
54
+ </q-item>
55
+ </q-drawer>
56
+ </template>
57
+
58
+ <script setup lang="ts">
59
+ import { computed, defineProps, defineEmits, ref, watch, withDefaults } from 'vue'
60
+ import SidebarMenu from './components/SidebarMenu.vue'
61
+
62
+ import { useQuasar } from 'quasar'
63
+ import AppIcon from '@/common/app-icon/AppIcon.vue'
64
+
65
+ interface Props {
66
+ isDrawer: boolean
67
+ minify?: boolean
68
+ menuItems?: any[]
69
+ main?: boolean
70
+ isRouteActive: (item: any) => boolean
71
+ }
72
+ const emits = defineEmits(['logout'])
73
+ const props = withDefaults(defineProps<Props>(), {
74
+ main: false,
75
+ menuItems: () => [],
76
+ })
77
+ const $q = useQuasar()
78
+
79
+ const drawer = ref(true)
80
+ const isSidebarMini = ref(true)
81
+ const isFixSidebar = ref(false)
82
+
83
+ const isTablet = computed(() => $q.screen.lt.lg)
84
+ const tabletLogoBtn = computed(() => (isSidebarMini.value ? 'menu' : 'close'))
85
+ const drawerWidth = computed(() => (isTablet.value ? 250 : 275))
86
+ const drawerMiniWidth = computed(() => (isTablet.value ? 47 : 72))
87
+
88
+ function toggleSidebarMini(value: boolean): void {
89
+ if (!isFixSidebar.value && !isTablet.value) isSidebarMini.value = value
90
+ }
91
+
92
+ function openDrawerIsTablet() {
93
+ isFixSidebar.value = !isFixSidebar.value
94
+ isSidebarMini.value = !isSidebarMini.value
95
+ }
96
+
97
+ function logout(): void {
98
+ emits('logout')
99
+ }
100
+
101
+ watch(
102
+ () => isTablet.value,
103
+ (value: boolean) => {
104
+ isFixSidebar.value = value
105
+ },
106
+ )
107
+ </script>
108
+
109
+ <style lang="scss" module>
110
+ .drawer {
111
+ display: flex;
112
+ flex-direction: column;
113
+ height: 100vh;
114
+ background: linear-gradient(184deg, #0b3f8e 9.62%, #5386d3 59.23%, #5386d3 91.63%);
115
+ border-right: 1px solid #e4e6e8;
116
+ &::-webkit-scrollbar {
117
+ height: 4px;
118
+ width: 4px;
119
+ }
120
+ &::-webkit-scrollbar-thumb {
121
+ width: 4px;
122
+ height: 4px;
123
+ }
124
+ }
125
+ .logo {
126
+ display: flex;
127
+ justify-content: center;
128
+ margin: 24px 0;
129
+ &__text {
130
+ color: white;
131
+ font-size: 20px;
132
+ font-weight: 700;
133
+ }
134
+ }
135
+ .tablet-logo {
136
+ border-bottom: 1px solid white;
137
+ &__btn {
138
+ color: white;
139
+ }
140
+ }
141
+
142
+ .minify-btn {
143
+ background: #0b3f8e;
144
+ color: white;
145
+ position: absolute;
146
+ top: 25px;
147
+ right: -17px;
148
+
149
+ &:global(.--mini) {
150
+ :global(.q-icon) {
151
+ transform: rotate(180deg);
152
+ }
153
+ }
154
+ }
155
+
156
+ .menu-exit {
157
+ border-top: 1px solid white;
158
+ :global(.q-item__section--avatar) {
159
+ min-width: 24px;
160
+ }
161
+ &__label {
162
+ color: #fff;
163
+ font-family: 'Nunito Sans', sans-serif;
164
+ font-size: 16px;
165
+ font-weight: 300;
166
+ }
167
+ }
168
+ </style>
@@ -1,37 +1,37 @@
1
- <template>
2
- <div :class="$style.wrapper">
3
- <sidebar-menu-item
4
- v-for="(item, index) in menuItems"
5
- :key="index"
6
- :item="item"
7
- :main="main"
8
- :minify="minify"
9
- :is-route-active="isRouteActive"
10
- />
11
- </div>
12
- </template>
13
-
14
- <script lang="ts" setup>
15
- import { defineProps } from 'vue'
16
- import SidebarMenuItem from './SidebarMenuItem.vue'
17
-
18
- interface Props {
19
- menuItems?: any[]
20
- minify?: boolean
21
- main: boolean
22
- isRouteActive: (item: any) => boolean
23
- }
24
-
25
- const props = defineProps<Props>()
26
- </script>
27
-
28
- <style lang="scss" module>
29
- .wrapper {
30
- overflow-y: auto;
31
- overflow-x: hidden;
32
- flex-grow: 1;
33
- :global(.q-item) {
34
- min-height: 54px;
35
- }
36
- }
37
- </style>
1
+ <template>
2
+ <div :class="$style.wrapper">
3
+ <sidebar-menu-item
4
+ v-for="(item, index) in menuItems"
5
+ :key="index"
6
+ :item="item"
7
+ :main="main"
8
+ :minify="minify"
9
+ :is-route-active="isRouteActive"
10
+ />
11
+ </div>
12
+ </template>
13
+
14
+ <script lang="ts" setup>
15
+ import { defineProps } from 'vue'
16
+ import SidebarMenuItem from './SidebarMenuItem.vue'
17
+
18
+ interface Props {
19
+ menuItems?: any[]
20
+ minify?: boolean
21
+ main: boolean
22
+ isRouteActive: (item: any) => boolean
23
+ }
24
+
25
+ const props = defineProps<Props>()
26
+ </script>
27
+
28
+ <style lang="scss" module>
29
+ .wrapper {
30
+ overflow-y: auto;
31
+ overflow-x: hidden;
32
+ flex-grow: 1;
33
+ :global(.q-item) {
34
+ min-height: 54px;
35
+ }
36
+ }
37
+ </style>