shared-ritm 1.1.25 → 1.1.26

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 (82) hide show
  1. package/README.md +93 -0
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +10896 -88573
  4. package/dist/shared-ritm.umd.js +12 -52
  5. package/package.json +56 -56
  6. package/src/App.vue +2432 -2432
  7. package/src/api/services/AuthService.ts +41 -41
  8. package/src/api/services/GanttService.ts +17 -17
  9. package/src/api/services/MetricsService.ts +101 -101
  10. package/src/api/services/ProjectsService.ts +61 -61
  11. package/src/api/services/RepairsService.ts +82 -82
  12. package/src/api/services/TasksService.ts +39 -39
  13. package/src/api/settings/ApiService.ts +124 -124
  14. package/src/api/types/Api_Projects.ts +40 -40
  15. package/src/api/types/Api_Repairs.ts +57 -57
  16. package/src/api/types/Api_Tasks.ts +124 -124
  17. package/src/common/app-button/AppButton.vue +173 -173
  18. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  19. package/src/common/app-date-picker/AppDatePicker.vue +66 -66
  20. package/src/common/app-dialogs/AppConfirmDialog.vue +100 -100
  21. package/src/common/app-icon/AppIcon.vue +104 -104
  22. package/src/common/app-input/AppInput.vue +147 -147
  23. package/src/common/app-input-search/AppInputSearch.vue +170 -170
  24. package/src/common/app-layout/AppLayout.vue +62 -62
  25. package/src/common/app-layout/components/AppLayoutHeader.vue +124 -124
  26. package/src/common/app-loader/index.vue +43 -43
  27. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  28. package/src/common/app-select/AppSelect.vue +157 -157
  29. package/src/common/app-sheet/AppSheet.vue +114 -114
  30. package/src/common/app-sidebar/AppSidebar.vue +167 -167
  31. package/src/common/app-sidebar/components/SidebarMenu.vue +29 -29
  32. package/src/common/app-sidebar/components/SidebarMenuItem.vue +137 -137
  33. package/src/common/app-toggle/AppToggle.vue +23 -23
  34. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  35. package/src/global.d.ts +1 -1
  36. package/src/icons/components/arrow-down-icon.vue +25 -25
  37. package/src/icons/components/arrow-frame-icon.vue +19 -19
  38. package/src/icons/components/arrow-square.vue +22 -22
  39. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  40. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  41. package/src/icons/header/flashIcon.vue +24 -24
  42. package/src/icons/header/notificationIcon.vue +18 -18
  43. package/src/icons/header/searchStatusIcon.vue +24 -24
  44. package/src/icons/header/smallCapsIcon.vue +34 -34
  45. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  46. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  47. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  48. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  49. package/src/icons/sidebar/instruments-icon.vue +45 -45
  50. package/src/icons/sidebar/logo-icon.vue +15 -15
  51. package/src/icons/sidebar/logout-icon.vue +13 -13
  52. package/src/icons/sidebar/modules-icon.vue +16 -16
  53. package/src/icons/sidebar/notifications-icon.vue +24 -24
  54. package/src/icons/sidebar/order-icon.vue +44 -44
  55. package/src/icons/sidebar/pass-icon.vue +38 -38
  56. package/src/icons/sidebar/positions-icon.vue +42 -42
  57. package/src/icons/sidebar/preorder-icon.vue +19 -19
  58. package/src/icons/sidebar/projects-icon.vue +31 -31
  59. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  60. package/src/icons/sidebar/repairs-icon.vue +20 -20
  61. package/src/icons/sidebar/roles-icon.vue +26 -26
  62. package/src/icons/sidebar/status-history-icon.vue +24 -24
  63. package/src/icons/sidebar/tasks-icon.vue +28 -28
  64. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  65. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  66. package/src/icons/sidebar/teams-icon.vue +32 -32
  67. package/src/icons/sidebar/user-icon.vue +18 -18
  68. package/src/icons/sidebar/users-icon.vue +46 -46
  69. package/src/icons/sidebar/videosources-icon.vue +19 -19
  70. package/src/icons/sidebar/videowall-icon.vue +13 -13
  71. package/src/icons/sidebar/videozones-icon.vue +21 -21
  72. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  73. package/src/icons/sidebar/workshop-icon.vue +100 -100
  74. package/src/icons/sidebar/workzones-icon.vue +22 -22
  75. package/src/index.ts +58 -58
  76. package/src/main.ts +15 -15
  77. package/src/quasar-user-options.ts +17 -17
  78. package/src/shared/styles/general.css +96 -96
  79. package/src/shims-vue.d.ts +5 -5
  80. package/src/utils/confirm.ts +12 -12
  81. package/src/utils/notification.ts +9 -9
  82. package/dist/types/router/index.d.ts +0 -2
@@ -1,62 +1,62 @@
1
- <template>
2
- <q-layout :class="$style.layout" view="lHh LpR fFf">
3
- <!-- <div v-if="logged" :class="$style['loader-backdrop']">-->
4
- <!-- <q-spinner size="md" color="white" :class="$style['loader-spinner']" />-->
5
- <!-- </div>-->
6
- <app-loader :loading="logged" size="md" :thickness="3" :backdrop="true" />
7
- <slot name="drawer"></slot>
8
- <slot name="header"></slot>
9
- <q-page-container :class="{ container: container }" @wheel="mouseMove">
10
- <q-page>
11
- <slot></slot>
12
-
13
- <slot name="page-bottom"></slot>
14
- </q-page>
15
- </q-page-container>
16
-
17
- <slot name="footer"></slot>
18
- </q-layout>
19
- </template>
20
-
21
- <script lang="ts" setup>
22
- import { defineProps } from 'vue'
23
- import AppLoader from '@/common/app-loader/index.vue'
24
- interface LayoutProps {
25
- logged: boolean
26
- console?: boolean
27
- container?: boolean
28
- padding?: string
29
- }
30
-
31
- const props = defineProps<LayoutProps>()
32
-
33
- function mouseMove(e: any) {
34
- const content = document.getElementById('content')
35
- const scrollable = e.target
36
- if (content && !scrollable.closest('#content')) {
37
- content.scrollBy({ top: e.deltaY })
38
- }
39
- }
40
- </script>
41
-
42
- <style lang="scss" module>
43
- .layout {
44
- position: relative;
45
- background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
46
- }
47
- //.loader {
48
- // &-backdrop {
49
- // width: 100%;
50
- // height: 100%;
51
- // background-color: rgba(255, 255, 255, 0.45);
52
- // position: absolute;
53
- // z-index: 9999;
54
- // }
55
- // &-spinner {
56
- // position: absolute;
57
- // top: 50%;
58
- // left: 50%;
59
- // z-index: 2;
60
- // }
61
- //}
62
- </style>
1
+ <template>
2
+ <q-layout :class="$style.layout" view="lHh LpR fFf">
3
+ <!-- <div v-if="logged" :class="$style['loader-backdrop']">-->
4
+ <!-- <q-spinner size="md" color="white" :class="$style['loader-spinner']" />-->
5
+ <!-- </div>-->
6
+ <app-loader :loading="logged" size="md" :thickness="3" :backdrop="true" />
7
+ <slot name="drawer"></slot>
8
+ <slot name="header"></slot>
9
+ <q-page-container :class="{ container: container }" @wheel="mouseMove">
10
+ <q-page>
11
+ <slot></slot>
12
+
13
+ <slot name="page-bottom"></slot>
14
+ </q-page>
15
+ </q-page-container>
16
+
17
+ <slot name="footer"></slot>
18
+ </q-layout>
19
+ </template>
20
+
21
+ <script lang="ts" setup>
22
+ import { defineProps } from 'vue'
23
+ import AppLoader from '@/common/app-loader/index.vue'
24
+ interface LayoutProps {
25
+ logged: boolean
26
+ console?: boolean
27
+ container?: boolean
28
+ padding?: string
29
+ }
30
+
31
+ const props = defineProps<LayoutProps>()
32
+
33
+ function mouseMove(e: any) {
34
+ const content = document.getElementById('content')
35
+ const scrollable = e.target
36
+ if (content && !scrollable.closest('#content')) {
37
+ content.scrollBy({ top: e.deltaY })
38
+ }
39
+ }
40
+ </script>
41
+
42
+ <style lang="scss" module>
43
+ .layout {
44
+ position: relative;
45
+ background: linear-gradient(235deg, #87caff 9.16%, #5386d3 45.8%, #0b3f8e 92.27%);
46
+ }
47
+ //.loader {
48
+ // &-backdrop {
49
+ // width: 100%;
50
+ // height: 100%;
51
+ // background-color: rgba(255, 255, 255, 0.45);
52
+ // position: absolute;
53
+ // z-index: 9999;
54
+ // }
55
+ // &-spinner {
56
+ // position: absolute;
57
+ // top: 50%;
58
+ // left: 50%;
59
+ // z-index: 2;
60
+ // }
61
+ //}
62
+ </style>
@@ -1,124 +1,124 @@
1
- <template>
2
- <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
- <q-toolbar :class="$style.toolbar">
4
- <!-- <app-input-search v-model.trim="text" type="text" label="Поиск по системе" :class="$style['header-search']" />-->
5
- <div :class="$style['action-buttons']">
6
- <slot name="filters-actions"></slot>
7
- </div>
8
-
9
- <div :class="$style['action-buttons']">
10
- <slot name="action-buttons"></slot>
11
-
12
- <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
13
- <!-- <app-button :class="$style.button" rounded>-->
14
- <!-- <small-caps-icon />-->
15
- <!-- </app-button>-->
16
- <!-- <app-button :class="$style.button" rounded>-->
17
- <!-- <search-status-icon />-->
18
- <!-- </app-button>-->
19
- <!-- <app-button @click="counter++" :class="$style.button" rounded :badge="`+${counter}`" badge-color="#3F8CFF">-->
20
- <!-- <flash-icon />-->
21
- <!-- </app-button>-->
22
- <!-- <app-button :class="$style.button" rounded>-->
23
- <!-- <notification-icon />-->
24
- <!-- </app-button>-->
25
- </div>
26
- </q-toolbar>
27
- </q-header>
28
- </template>
29
-
30
- <script lang="ts" setup>
31
- import { computed, defineProps } from 'vue'
32
- //import AppInput from '@/common/app-input-search/AppInputSearch.vue'
33
- import AppButton from '@/common/app-button/AppButton.vue'
34
- import { b } from 'vite/dist/node/types.d-aGj9QkWt'
35
-
36
- //import SmallCapsIcon from '@/icons/header/smallCapsIcon.vue'
37
- //import SearchStatusIcon from '@/icons/header/searchStatusIcon.vue'
38
- //import FlashIcon from '@/icons/header/flashIcon.vue'
39
- //import NotificationIcon from '@/icons/header/notificationIcon.vue'
40
- interface Props {
41
- userData: any
42
- fullWidth?: boolean
43
- }
44
-
45
- const props = defineProps<Props>()
46
-
47
- // const counter = ref(1)
48
- const shortName = computed(
49
- () =>
50
- `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
51
- props.userData?.patronymic?.[0] ? '.' : ''
52
- }`,
53
- )
54
- </script>
55
-
56
- <style lang="scss" module>
57
- .header {
58
- height: 100px;
59
- background: transparent;
60
- margin: 0 auto;
61
- max-width: 1300px;
62
- }
63
- .header-full {
64
- max-width: 100%;
65
- padding: 0 20px;
66
- }
67
- .toolbar {
68
- padding: 0;
69
- min-height: 100%;
70
- }
71
-
72
- .header-search {
73
- width: 412px;
74
- font-size: 16px;
75
- }
76
-
77
- .action-buttons {
78
- flex: 1;
79
- position: relative;
80
- display: flex;
81
- align-items: center;
82
- column-gap: 16px;
83
- justify-content: end;
84
- }
85
-
86
- .button {
87
- padding: 12px;
88
- background: white;
89
- transition: all 0.3s ease, color 0.3s ease;
90
- }
91
-
92
- .button-person {
93
- padding: 10px 14px;
94
- background: white;
95
- }
96
-
97
- @media (max-width: 1440px) {
98
- .header {
99
- height: 100px;
100
- background: transparent;
101
- margin: 0 auto;
102
- max-width: 874px;
103
- }
104
- .header-search {
105
- width: 343px;
106
- font-size: 16px;
107
- }
108
- .action-buttons {
109
- position: relative;
110
- display: flex;
111
- align-items: center;
112
- column-gap: 8px;
113
- }
114
- .button {
115
- padding: 10px;
116
- background: white;
117
- transition: all 0.3s ease, color 0.3s ease;
118
- }
119
- .button-person {
120
- padding: 8px 10px;
121
- background: white;
122
- }
123
- }
124
- </style>
1
+ <template>
2
+ <q-header :class="[$style.header, { [$style[`header-full`]]: fullWidth }]">
3
+ <q-toolbar :class="$style.toolbar">
4
+ <!-- <app-input-search v-model.trim="text" type="text" label="Поиск по системе" :class="$style['header-search']" />-->
5
+ <div :class="$style['action-buttons']">
6
+ <slot name="filters-actions"></slot>
7
+ </div>
8
+
9
+ <div :class="$style['action-buttons']">
10
+ <slot name="action-buttons"></slot>
11
+
12
+ <app-button icon="person" text-color="black" :label="shortName" rounded :class="$style['button-person']" />
13
+ <!-- <app-button :class="$style.button" rounded>-->
14
+ <!-- <small-caps-icon />-->
15
+ <!-- </app-button>-->
16
+ <!-- <app-button :class="$style.button" rounded>-->
17
+ <!-- <search-status-icon />-->
18
+ <!-- </app-button>-->
19
+ <!-- <app-button @click="counter++" :class="$style.button" rounded :badge="`+${counter}`" badge-color="#3F8CFF">-->
20
+ <!-- <flash-icon />-->
21
+ <!-- </app-button>-->
22
+ <!-- <app-button :class="$style.button" rounded>-->
23
+ <!-- <notification-icon />-->
24
+ <!-- </app-button>-->
25
+ </div>
26
+ </q-toolbar>
27
+ </q-header>
28
+ </template>
29
+
30
+ <script lang="ts" setup>
31
+ import { computed, defineProps } from 'vue'
32
+ //import AppInput from '@/common/app-input-search/AppInputSearch.vue'
33
+ import AppButton from '@/common/app-button/AppButton.vue'
34
+ import { b } from 'vite/dist/node/types.d-aGj9QkWt'
35
+
36
+ //import SmallCapsIcon from '@/icons/header/smallCapsIcon.vue'
37
+ //import SearchStatusIcon from '@/icons/header/searchStatusIcon.vue'
38
+ //import FlashIcon from '@/icons/header/flashIcon.vue'
39
+ //import NotificationIcon from '@/icons/header/notificationIcon.vue'
40
+ interface Props {
41
+ userData: any
42
+ fullWidth?: boolean
43
+ }
44
+
45
+ const props = defineProps<Props>()
46
+
47
+ // const counter = ref(1)
48
+ const shortName = computed(
49
+ () =>
50
+ `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
51
+ props.userData?.patronymic?.[0] ? '.' : ''
52
+ }`,
53
+ )
54
+ </script>
55
+
56
+ <style lang="scss" module>
57
+ .header {
58
+ height: 100px;
59
+ background: transparent;
60
+ margin: 0 auto;
61
+ max-width: 1300px;
62
+ }
63
+ .header-full {
64
+ max-width: 100%;
65
+ padding: 0 20px;
66
+ }
67
+ .toolbar {
68
+ padding: 0;
69
+ min-height: 100%;
70
+ }
71
+
72
+ .header-search {
73
+ width: 412px;
74
+ font-size: 16px;
75
+ }
76
+
77
+ .action-buttons {
78
+ flex: 1;
79
+ position: relative;
80
+ display: flex;
81
+ align-items: center;
82
+ column-gap: 16px;
83
+ justify-content: end;
84
+ }
85
+
86
+ .button {
87
+ padding: 12px;
88
+ background: white;
89
+ transition: all 0.3s ease, color 0.3s ease;
90
+ }
91
+
92
+ .button-person {
93
+ padding: 10px 14px;
94
+ background: white;
95
+ }
96
+
97
+ @media (max-width: 1440px) {
98
+ .header {
99
+ height: 100px;
100
+ background: transparent;
101
+ margin: 0 auto;
102
+ max-width: 874px;
103
+ }
104
+ .header-search {
105
+ width: 343px;
106
+ font-size: 16px;
107
+ }
108
+ .action-buttons {
109
+ position: relative;
110
+ display: flex;
111
+ align-items: center;
112
+ column-gap: 8px;
113
+ }
114
+ .button {
115
+ padding: 10px;
116
+ background: white;
117
+ transition: all 0.3s ease, color 0.3s ease;
118
+ }
119
+ .button-person {
120
+ padding: 8px 10px;
121
+ background: white;
122
+ }
123
+ }
124
+ </style>
@@ -1,43 +1,43 @@
1
- <template>
2
- <div :class="{ 'loader-backdrop': backdrop && loading }">
3
- <q-spinner v-if="loading" :size="size" class="loader-spinner" :thickness="thickness" />
4
- </div>
5
- </template>
6
-
7
- <script setup lang="ts">
8
- interface Props {
9
- backdrop: boolean
10
- loading: boolean
11
- thickness: number
12
- size: string
13
- }
14
- const props = withDefaults(defineProps<Props>(), {
15
- backdrop: false,
16
- loading: false,
17
- thickness: 2,
18
- size: 'md',
19
- })
20
-
21
- // <app-loader :loading="logged" :backdrop="true" />
22
- </script>
23
-
24
- <style scoped lang="scss">
25
- .loader {
26
- &-backdrop {
27
- top: 0;
28
- bottom: 0;
29
- left: 0;
30
- right: 0;
31
- background-color: rgba(255, 255, 255, 0.45);
32
- position: absolute;
33
- z-index: 9999;
34
- }
35
- &-spinner {
36
- position: absolute;
37
- color: #3f8cff;
38
- top: 44%;
39
- left: 48%;
40
- z-index: 9999;
41
- }
42
- }
43
- </style>
1
+ <template>
2
+ <div :class="{ 'loader-backdrop': backdrop && loading }">
3
+ <q-spinner v-if="loading" :size="size" class="loader-spinner" :thickness="thickness" />
4
+ </div>
5
+ </template>
6
+
7
+ <script setup lang="ts">
8
+ interface Props {
9
+ backdrop: boolean
10
+ loading: boolean
11
+ thickness: number
12
+ size: string
13
+ }
14
+ const props = withDefaults(defineProps<Props>(), {
15
+ backdrop: false,
16
+ loading: false,
17
+ thickness: 2,
18
+ size: 'md',
19
+ })
20
+
21
+ // <app-loader :loading="logged" :backdrop="true" />
22
+ </script>
23
+
24
+ <style scoped lang="scss">
25
+ .loader {
26
+ &-backdrop {
27
+ top: 0;
28
+ bottom: 0;
29
+ left: 0;
30
+ right: 0;
31
+ background-color: rgba(255, 255, 255, 0.45);
32
+ position: absolute;
33
+ z-index: 9999;
34
+ }
35
+ &-spinner {
36
+ position: absolute;
37
+ color: #3f8cff;
38
+ top: 44%;
39
+ left: 48%;
40
+ z-index: 9999;
41
+ }
42
+ }
43
+ </style>