shared-ritm 1.0.49 → 1.0.51

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 (40) hide show
  1. package/README.md +93 -0
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +1105 -1136
  4. package/dist/shared-ritm.umd.js +7 -7
  5. package/dist/types/api/services/ProjectsService.d.ts +0 -10
  6. package/dist/types/index.d.ts +1 -2
  7. package/package.json +56 -56
  8. package/src/App.vue +2404 -2404
  9. package/src/api/services/AuthService.ts +37 -37
  10. package/src/api/services/GanttService.ts +17 -17
  11. package/src/api/services/MetricsService.ts +74 -74
  12. package/src/api/services/ProjectsService.ts +15 -56
  13. package/src/api/services/RepairsService.ts +82 -82
  14. package/src/api/services/TasksService.ts +15 -15
  15. package/src/api/settings/ApiService.ts +124 -124
  16. package/src/api/types/Api_Repairs.ts +57 -57
  17. package/src/api/types/Api_Tasks.ts +99 -99
  18. package/src/common/app-button/AppButton.vue +1 -1
  19. package/src/common/app-icon/AppIcon.vue +104 -104
  20. package/src/common/app-input/AppInput.vue +128 -128
  21. package/src/common/app-input-search/AppInputSearch.vue +168 -170
  22. package/src/common/app-layout/AppLayout.vue +61 -62
  23. package/src/common/app-layout/components/AppLayoutHeader.vue +119 -119
  24. package/src/common/app-loader/index.vue +41 -43
  25. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  26. package/src/common/app-select/AppSelect.vue +154 -154
  27. package/src/common/app-sidebar/AppSidebar.vue +163 -163
  28. package/src/common/app-sidebar/components/SidebarMenu.vue +27 -27
  29. package/src/common/app-sidebar/components/SidebarMenuItem.vue +134 -134
  30. package/src/common/app-toggle/index.vue +23 -23
  31. package/src/common/app-wrapper/AppWrapper.vue +25 -25
  32. package/src/global.d.ts +1 -1
  33. package/src/icons/sidebar/projects-icon.vue +31 -31
  34. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  35. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  36. package/src/index.ts +34 -35
  37. package/src/main.ts +15 -15
  38. package/src/quasar-user-options.ts +17 -17
  39. package/src/shared/styles/general.css +77 -77
  40. package/src/shims-vue.d.ts +5 -5
@@ -1,119 +1,119 @@
1
- <template>
2
- <q-header :class="$style.header">
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
-
35
- //import SmallCapsIcon from '@/icons/header/smallCapsIcon.vue'
36
- //import SearchStatusIcon from '@/icons/header/searchStatusIcon.vue'
37
- //import FlashIcon from '@/icons/header/flashIcon.vue'
38
- //import NotificationIcon from '@/icons/header/notificationIcon.vue'
39
- interface Props {
40
- userData: any
41
- }
42
-
43
- const props = defineProps<Props>()
44
-
45
- // const counter = ref(1)
46
- const shortName = computed(
47
- () =>
48
- `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
49
- props.userData?.patronymic?.[0] ? '.' : ''
50
- }`,
51
- )
52
- </script>
53
-
54
- <style lang="scss" module>
55
- .header {
56
- height: 100px;
57
- background: transparent;
58
- margin: 0 auto;
59
- max-width: 1300px;
60
- }
61
-
62
- .toolbar {
63
- padding: 0;
64
- min-height: 100%;
65
- }
66
-
67
- .header-search {
68
- width: 412px;
69
- font-size: 16px;
70
- }
71
-
72
- .action-buttons {
73
- flex: 1;
74
- position: relative;
75
- display: flex;
76
- align-items: center;
77
- column-gap: 16px;
78
- justify-content: end;
79
- }
80
-
81
- .button {
82
- padding: 12px;
83
- background: white;
84
- transition: all 0.3s ease, color 0.3s ease;
85
- }
86
-
87
- .button-person {
88
- padding: 10px 14px;
89
- background: white;
90
- }
91
-
92
- @media (max-width: 1440px) {
93
- .header {
94
- height: 100px;
95
- background: transparent;
96
- margin: 0 auto;
97
- max-width: 874px;
98
- }
99
- .header-search {
100
- width: 343px;
101
- font-size: 16px;
102
- }
103
- .action-buttons {
104
- position: relative;
105
- display: flex;
106
- align-items: center;
107
- column-gap: 8px;
108
- }
109
- .button {
110
- padding: 10px;
111
- background: white;
112
- transition: all 0.3s ease, color 0.3s ease;
113
- }
114
- .button-person {
115
- padding: 8px 10px;
116
- background: white;
117
- }
118
- }
119
- </style>
1
+ <template>
2
+ <q-header :class="$style.header">
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
+
35
+ //import SmallCapsIcon from '@/icons/header/smallCapsIcon.vue'
36
+ //import SearchStatusIcon from '@/icons/header/searchStatusIcon.vue'
37
+ //import FlashIcon from '@/icons/header/flashIcon.vue'
38
+ //import NotificationIcon from '@/icons/header/notificationIcon.vue'
39
+ interface Props {
40
+ userData: any
41
+ }
42
+
43
+ const props = defineProps<Props>()
44
+
45
+ // const counter = ref(1)
46
+ const shortName = computed(
47
+ () =>
48
+ `${props.userData?.last_name} ${props.userData?.first_name?.[0]}. ${props.userData?.patronymic?.[0] || ''} ${
49
+ props.userData?.patronymic?.[0] ? '.' : ''
50
+ }`,
51
+ )
52
+ </script>
53
+
54
+ <style lang="scss" module>
55
+ .header {
56
+ height: 100px;
57
+ background: transparent;
58
+ margin: 0 auto;
59
+ max-width: 1300px;
60
+ }
61
+
62
+ .toolbar {
63
+ padding: 0;
64
+ min-height: 100%;
65
+ }
66
+
67
+ .header-search {
68
+ width: 412px;
69
+ font-size: 16px;
70
+ }
71
+
72
+ .action-buttons {
73
+ flex: 1;
74
+ position: relative;
75
+ display: flex;
76
+ align-items: center;
77
+ column-gap: 16px;
78
+ justify-content: end;
79
+ }
80
+
81
+ .button {
82
+ padding: 12px;
83
+ background: white;
84
+ transition: all 0.3s ease, color 0.3s ease;
85
+ }
86
+
87
+ .button-person {
88
+ padding: 10px 14px;
89
+ background: white;
90
+ }
91
+
92
+ @media (max-width: 1440px) {
93
+ .header {
94
+ height: 100px;
95
+ background: transparent;
96
+ margin: 0 auto;
97
+ max-width: 874px;
98
+ }
99
+ .header-search {
100
+ width: 343px;
101
+ font-size: 16px;
102
+ }
103
+ .action-buttons {
104
+ position: relative;
105
+ display: flex;
106
+ align-items: center;
107
+ column-gap: 8px;
108
+ }
109
+ .button {
110
+ padding: 10px;
111
+ background: white;
112
+ transition: all 0.3s ease, color 0.3s ease;
113
+ }
114
+ .button-person {
115
+ padding: 8px 10px;
116
+ background: white;
117
+ }
118
+ }
119
+ </style>
@@ -1,43 +1,41 @@
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
+ width: 100%;
28
+ height: 100%;
29
+ background-color: rgba(255, 255, 255, 0.45);
30
+ position: absolute;
31
+ z-index: 9999;
32
+ }
33
+ &-spinner {
34
+ position: absolute;
35
+ color: #3f8cff;
36
+ top: 50%;
37
+ left: 48%;
38
+ z-index: 2;
39
+ }
40
+ }
41
+ </style>
@@ -1,122 +1,122 @@
1
- <template lang="pug">
2
- q-page#content(:class="$style['page-container']")
3
- q-toolbar(:class="$style['toolbar']")
4
- q-toolbar-title(:class="$style.title") {{ title }}
5
- div(:class="$style['action-buttons']")
6
- app-button(
7
- rounded
8
- :class="$style['button-new']"
9
- :label="'Новый ремонт'"
10
- @click="emits('create-repair')"
11
- color="#fff"
12
- icon="add"
13
- )
14
- app-button(rounded :class="$style['button-video-wall']" @click="emits('routing-to-video-wall')")
15
- video-wall-icon
16
- span Видеостена
17
- app-button(rounded :class="$style.button" @click="openFullScreenWidgets")
18
- q-tooltip на весь экран
19
- q-icon(name="open_in_full")
20
- //app-button(rounded :class="$style.button")
21
- // graph-icon
22
- //app-button(rounded :class="$style.button")
23
- // time-line-icon
24
- slot
25
- </template>
26
-
27
- <script setup lang="ts">
28
- import { defineProps, defineEmits, defineAsyncComponent } from 'vue'
29
- import AppButton from '@/common/app-button/AppButton.vue'
30
- import { useQuasar } from 'quasar'
31
- import VideoWallIcon from '@/icons/page-header/videoWallIcon.vue'
32
-
33
- const $q = useQuasar()
34
-
35
- const FullScreenDialog = defineAsyncComponent(() => import('@/components/dialogs/full-screen-widgets/index.vue'))
36
- // import GraphIcon from '@/icons/page-header/graphIcon.vue'
37
- // import TimeLineIcon from '@/icons/page-header/timeLineIcon.vue'
38
- interface Props {
39
- title: string
40
- }
41
- const props = defineProps<Props>()
42
- const emits = defineEmits(['create-repair', ''])
43
-
44
- const openFullScreenWidgets = () => {
45
- $q.dialog({
46
- component: FullScreenDialog,
47
- })
48
- }
49
- </script>
50
- <style module lang="scss">
51
- .toolbar {
52
- padding: 0;
53
- margin-top: 16px;
54
- }
55
- .page-container {
56
- padding: 0 4px 0 0;
57
- max-width: 1300px;
58
- margin: 0 auto;
59
- max-height: 600px;
60
- overflow: auto;
61
- &::-webkit-scrollbar-thumb {
62
- height: 88px;
63
- background-color: #d3dbeb;
64
- border-radius: 6px;
65
- }
66
- }
67
- .button {
68
- padding: 12px;
69
- background: white;
70
- }
71
-
72
- .button-new {
73
- padding: 12px 18px;
74
- background: #3f8cff;
75
- }
76
- .button-video-wall {
77
- padding: 10px 18px;
78
- background: white;
79
- span {
80
- color: #3f8cff;
81
- margin-left: 8px;
82
- font-size: 16px;
83
- font-weight: 700;
84
- }
85
- }
86
- .title {
87
- color: #fff;
88
- font-family: Montserrat, sans-serif;
89
- font-size: 32px;
90
- font-style: normal;
91
- font-weight: 700;
92
- line-height: normal;
93
- }
94
-
95
- .action-buttons {
96
- position: relative;
97
- display: flex;
98
- align-items: center;
99
- column-gap: 16px;
100
- }
101
-
102
- @media (max-width: 1440px) {
103
- .page-container {
104
- max-width: 874px;
105
- }
106
- .action-buttons {
107
- column-gap: 8px;
108
- }
109
- .title {
110
- font-size: 24px;
111
- line-height: normal;
112
- }
113
- .button {
114
- padding: 10px;
115
- background: white;
116
- }
117
- .button-new {
118
- padding: 10px 12px;
119
- background: #3f8cff;
120
- }
121
- }
122
- </style>
1
+ <template lang="pug">
2
+ q-page#content(:class="$style['page-container']")
3
+ q-toolbar(:class="$style['toolbar']")
4
+ q-toolbar-title(:class="$style.title") {{ title }}
5
+ div(:class="$style['action-buttons']")
6
+ app-button(
7
+ rounded
8
+ :class="$style['button-new']"
9
+ :label="'Новый ремонт'"
10
+ @click="emits('create-repair')"
11
+ color="#fff"
12
+ icon="add"
13
+ )
14
+ app-button(rounded :class="$style['button-video-wall']" @click="emits('routing-to-video-wall')")
15
+ video-wall-icon
16
+ span Видеостена
17
+ app-button(rounded :class="$style.button" @click="openFullScreenWidgets")
18
+ q-tooltip на весь экран
19
+ q-icon(name="open_in_full")
20
+ //app-button(rounded :class="$style.button")
21
+ // graph-icon
22
+ //app-button(rounded :class="$style.button")
23
+ // time-line-icon
24
+ slot
25
+ </template>
26
+
27
+ <script setup lang="ts">
28
+ import { defineProps, defineEmits, defineAsyncComponent } from 'vue'
29
+ import AppButton from '@/common/app-button/AppButton.vue'
30
+ import { useQuasar } from 'quasar'
31
+ import VideoWallIcon from '@/icons/page-header/videoWallIcon.vue'
32
+
33
+ const $q = useQuasar()
34
+
35
+ const FullScreenDialog = defineAsyncComponent(() => import('@/components/dialogs/full-screen-widgets/index.vue'))
36
+ // import GraphIcon from '@/icons/page-header/graphIcon.vue'
37
+ // import TimeLineIcon from '@/icons/page-header/timeLineIcon.vue'
38
+ interface Props {
39
+ title: string
40
+ }
41
+ const props = defineProps<Props>()
42
+ const emits = defineEmits(['create-repair', ''])
43
+
44
+ const openFullScreenWidgets = () => {
45
+ $q.dialog({
46
+ component: FullScreenDialog,
47
+ })
48
+ }
49
+ </script>
50
+ <style module lang="scss">
51
+ .toolbar {
52
+ padding: 0;
53
+ margin-top: 16px;
54
+ }
55
+ .page-container {
56
+ padding: 0 4px 0 0;
57
+ max-width: 1300px;
58
+ margin: 0 auto;
59
+ max-height: 600px;
60
+ overflow: auto;
61
+ &::-webkit-scrollbar-thumb {
62
+ height: 88px;
63
+ background-color: #d3dbeb;
64
+ border-radius: 6px;
65
+ }
66
+ }
67
+ .button {
68
+ padding: 12px;
69
+ background: white;
70
+ }
71
+
72
+ .button-new {
73
+ padding: 12px 18px;
74
+ background: #3f8cff;
75
+ }
76
+ .button-video-wall {
77
+ padding: 10px 18px;
78
+ background: white;
79
+ span {
80
+ color: #3f8cff;
81
+ margin-left: 8px;
82
+ font-size: 16px;
83
+ font-weight: 700;
84
+ }
85
+ }
86
+ .title {
87
+ color: #fff;
88
+ font-family: Montserrat, sans-serif;
89
+ font-size: 32px;
90
+ font-style: normal;
91
+ font-weight: 700;
92
+ line-height: normal;
93
+ }
94
+
95
+ .action-buttons {
96
+ position: relative;
97
+ display: flex;
98
+ align-items: center;
99
+ column-gap: 16px;
100
+ }
101
+
102
+ @media (max-width: 1440px) {
103
+ .page-container {
104
+ max-width: 874px;
105
+ }
106
+ .action-buttons {
107
+ column-gap: 8px;
108
+ }
109
+ .title {
110
+ font-size: 24px;
111
+ line-height: normal;
112
+ }
113
+ .button {
114
+ padding: 10px;
115
+ background: white;
116
+ }
117
+ .button-new {
118
+ padding: 10px 12px;
119
+ background: #3f8cff;
120
+ }
121
+ }
122
+ </style>