shared-ritm 1.0.52 → 1.0.54

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 (39) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +1135 -1104
  3. package/dist/shared-ritm.umd.js +7 -7
  4. package/dist/types/api/services/ProjectsService.d.ts +10 -0
  5. package/dist/types/index.d.ts +2 -1
  6. package/package.json +56 -56
  7. package/src/App.vue +2404 -2404
  8. package/src/api/services/AuthService.ts +37 -37
  9. package/src/api/services/GanttService.ts +17 -17
  10. package/src/api/services/MetricsService.ts +74 -74
  11. package/src/api/services/ProjectsService.ts +56 -15
  12. package/src/api/services/RepairsService.ts +82 -82
  13. package/src/api/services/TasksService.ts +15 -15
  14. package/src/api/settings/ApiService.ts +124 -124
  15. package/src/api/types/Api_Repairs.ts +57 -57
  16. package/src/api/types/Api_Tasks.ts +99 -99
  17. package/src/common/app-icon/AppIcon.vue +104 -104
  18. package/src/common/app-input/AppInput.vue +128 -128
  19. package/src/common/app-input-search/AppInputSearch.vue +170 -168
  20. package/src/common/app-layout/AppLayout.vue +62 -61
  21. package/src/common/app-layout/components/AppLayoutHeader.vue +119 -119
  22. package/src/common/app-loader/index.vue +43 -41
  23. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  24. package/src/common/app-select/AppSelect.vue +154 -154
  25. package/src/common/app-sidebar/AppSidebar.vue +163 -163
  26. package/src/common/app-sidebar/components/SidebarMenu.vue +27 -27
  27. package/src/common/app-sidebar/components/SidebarMenuItem.vue +134 -134
  28. package/src/common/app-toggle/index.vue +23 -23
  29. package/src/common/app-wrapper/AppWrapper.vue +25 -25
  30. package/src/global.d.ts +1 -1
  31. package/src/icons/sidebar/projects-icon.vue +31 -31
  32. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  33. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  34. package/src/index.ts +35 -34
  35. package/src/main.ts +15 -15
  36. package/src/quasar-user-options.ts +17 -17
  37. package/src/shared/styles/general.css +77 -77
  38. package/src/shims-vue.d.ts +5 -5
  39. package/README.md +0 -93
@@ -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>
@@ -1,128 +1,128 @@
1
- <template>
2
- <q-input
3
- v-model="value"
4
- :class="inputClasses"
5
- standout
6
- outlined
7
- dense
8
- :type="inputType"
9
- autocomplete="h87h58g7h8hd"
10
- :readonly="readonly || field"
11
- >
12
- </q-input>
13
- </template>
14
-
15
- <script lang="ts" setup>
16
- import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
17
-
18
- interface AppQInputProps {
19
- name?: string | undefined
20
- mask?: string | undefined
21
- fillMask?: boolean | string | undefined
22
- reverseFillMask?: boolean | undefined
23
- unmaskedValue?: boolean | undefined
24
- modelValue: string | number | null | undefined
25
- error?: boolean | undefined
26
- errorMessage?: string | undefined
27
- noErrorIcon?: boolean | undefined
28
- rules?: any | undefined
29
- reactiveRules?: boolean | undefined
30
- lazyRules?: boolean | 'ondemand' | undefined
31
- label?: string | undefined
32
- stackLabel?: boolean | undefined
33
- hint?: string | undefined
34
- hideHint?: boolean | undefined
35
- prefix?: string | undefined
36
- suffix?: string | undefined
37
- labelColor?: string | undefined
38
- color?: string | undefined
39
- bgColor?: string | undefined
40
- dark?: boolean | undefined
41
- loading?: boolean | undefined
42
- clearable?: boolean | undefined
43
- clearIcon?: string | undefined
44
- filled?: boolean | undefined
45
- outlined?: boolean | undefined
46
- borderless?: boolean | undefined
47
- standout?: boolean | string | undefined
48
- labelSlot?: boolean | undefined
49
- bottomSlots?: boolean | undefined
50
- hideBottomSpace?: boolean | undefined
51
- counter?: boolean | undefined
52
- rounded?: boolean | undefined
53
- square?: boolean | undefined
54
- dense?: boolean | undefined
55
- itemAligned?: boolean | undefined
56
- disable?: boolean | undefined
57
- readonly?: boolean | undefined
58
- autofocus?: boolean | undefined
59
- for?: string | undefined
60
- shadowText?: string | undefined
61
- type?:
62
- | 'text'
63
- | 'password'
64
- | 'textarea'
65
- | 'email'
66
- | 'search'
67
- | 'tel'
68
- | 'file'
69
- | 'number'
70
- | 'url'
71
- | 'time'
72
- | 'date'
73
- | undefined
74
- debounce?: string | number | undefined
75
- maxlength?: string | number | undefined
76
- autogrow?: boolean | undefined
77
- inputClass?: any | undefined
78
- inputStyle?: any | undefined
79
- onClear?: (value: any) => void
80
- 'onUpdate:modelValue'?: (value: string | number | null) => void
81
- onFocus?: (evt: Event) => void
82
- onBlur?: (evt: Event) => void
83
- onClick?: (evt: Event) => void
84
- }
85
-
86
- interface AppInputProps extends AppQInputProps {
87
- field?: boolean
88
- required?: boolean
89
- datePicker?: boolean
90
- timePicker?: boolean
91
- withIcon?: boolean
92
- withButton?: boolean
93
- withArrow?: boolean
94
- }
95
-
96
- const props = withDefaults(defineProps<AppInputProps>(), {
97
- dense: true,
98
- outlined: true,
99
- error: undefined,
100
- modelValue: '',
101
- })
102
-
103
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
104
- const passwordVisibility = ref(false)
105
- const inputType = computed(() => {
106
- if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
107
- return props.type || 'text'
108
- })
109
-
110
- const value = computed({
111
- get: () =>
112
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
113
- ? +props.modelValue
114
- : props.modelValue,
115
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
116
- })
117
-
118
- const inputClasses = computed(() => {
119
- return {
120
- 'app-input': true,
121
- '--required': props.required,
122
- '--field': props.field,
123
- 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
124
- }
125
- })
126
- </script>
127
-
128
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <q-input
3
+ v-model="value"
4
+ :class="inputClasses"
5
+ standout
6
+ outlined
7
+ dense
8
+ :type="inputType"
9
+ autocomplete="h87h58g7h8hd"
10
+ :readonly="readonly || field"
11
+ >
12
+ </q-input>
13
+ </template>
14
+
15
+ <script lang="ts" setup>
16
+ import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
17
+
18
+ interface AppQInputProps {
19
+ name?: string | undefined
20
+ mask?: string | undefined
21
+ fillMask?: boolean | string | undefined
22
+ reverseFillMask?: boolean | undefined
23
+ unmaskedValue?: boolean | undefined
24
+ modelValue: string | number | null | undefined
25
+ error?: boolean | undefined
26
+ errorMessage?: string | undefined
27
+ noErrorIcon?: boolean | undefined
28
+ rules?: any | undefined
29
+ reactiveRules?: boolean | undefined
30
+ lazyRules?: boolean | 'ondemand' | undefined
31
+ label?: string | undefined
32
+ stackLabel?: boolean | undefined
33
+ hint?: string | undefined
34
+ hideHint?: boolean | undefined
35
+ prefix?: string | undefined
36
+ suffix?: string | undefined
37
+ labelColor?: string | undefined
38
+ color?: string | undefined
39
+ bgColor?: string | undefined
40
+ dark?: boolean | undefined
41
+ loading?: boolean | undefined
42
+ clearable?: boolean | undefined
43
+ clearIcon?: string | undefined
44
+ filled?: boolean | undefined
45
+ outlined?: boolean | undefined
46
+ borderless?: boolean | undefined
47
+ standout?: boolean | string | undefined
48
+ labelSlot?: boolean | undefined
49
+ bottomSlots?: boolean | undefined
50
+ hideBottomSpace?: boolean | undefined
51
+ counter?: boolean | undefined
52
+ rounded?: boolean | undefined
53
+ square?: boolean | undefined
54
+ dense?: boolean | undefined
55
+ itemAligned?: boolean | undefined
56
+ disable?: boolean | undefined
57
+ readonly?: boolean | undefined
58
+ autofocus?: boolean | undefined
59
+ for?: string | undefined
60
+ shadowText?: string | undefined
61
+ type?:
62
+ | 'text'
63
+ | 'password'
64
+ | 'textarea'
65
+ | 'email'
66
+ | 'search'
67
+ | 'tel'
68
+ | 'file'
69
+ | 'number'
70
+ | 'url'
71
+ | 'time'
72
+ | 'date'
73
+ | undefined
74
+ debounce?: string | number | undefined
75
+ maxlength?: string | number | undefined
76
+ autogrow?: boolean | undefined
77
+ inputClass?: any | undefined
78
+ inputStyle?: any | undefined
79
+ onClear?: (value: any) => void
80
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
81
+ onFocus?: (evt: Event) => void
82
+ onBlur?: (evt: Event) => void
83
+ onClick?: (evt: Event) => void
84
+ }
85
+
86
+ interface AppInputProps extends AppQInputProps {
87
+ field?: boolean
88
+ required?: boolean
89
+ datePicker?: boolean
90
+ timePicker?: boolean
91
+ withIcon?: boolean
92
+ withButton?: boolean
93
+ withArrow?: boolean
94
+ }
95
+
96
+ const props = withDefaults(defineProps<AppInputProps>(), {
97
+ dense: true,
98
+ outlined: true,
99
+ error: undefined,
100
+ modelValue: '',
101
+ })
102
+
103
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
104
+ const passwordVisibility = ref(false)
105
+ const inputType = computed(() => {
106
+ if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
107
+ return props.type || 'text'
108
+ })
109
+
110
+ const value = computed({
111
+ get: () =>
112
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
113
+ ? +props.modelValue
114
+ : props.modelValue,
115
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
116
+ })
117
+
118
+ const inputClasses = computed(() => {
119
+ return {
120
+ 'app-input': true,
121
+ '--required': props.required,
122
+ '--field': props.field,
123
+ 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
124
+ }
125
+ })
126
+ </script>
127
+
128
+ <style scoped lang="scss"></style>