shared-ritm 1.3.37 → 1.3.38-alpha.0

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 (86) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +12594 -12219
  3. package/dist/shared-ritm.umd.js +476 -476
  4. package/dist/types/api/services/AuthService.d.ts +1 -0
  5. package/dist/types/api/services/ControlsService.d.ts +3 -0
  6. package/dist/types/api/services/EquipmentService.d.ts +15 -5
  7. package/dist/types/api/services/GanttService.d.ts +22 -0
  8. package/dist/types/api/services/InstrumentsService.d.ts +6 -1
  9. package/dist/types/api/services/MetricsService.d.ts +5 -1
  10. package/dist/types/api/services/TasksService.d.ts +3 -2
  11. package/dist/types/api/services/UserIssueService.d.ts +15 -0
  12. package/dist/types/api/services/UserService.d.ts +2 -1
  13. package/dist/types/api/settings/ApiService.d.ts +6 -2
  14. package/dist/types/api/types/Api_Auth.d.ts +15 -0
  15. package/dist/types/api/types/Api_Controls.d.ts +1 -0
  16. package/dist/types/api/types/Api_Equipment.d.ts +45 -0
  17. package/dist/types/api/types/Api_Instruments.d.ts +24 -0
  18. package/dist/types/api/types/Api_Metrics.d.ts +69 -0
  19. package/dist/types/api/types/Api_Repairs.d.ts +14 -1
  20. package/dist/types/api/types/Api_Search.d.ts +1 -0
  21. package/dist/types/api/types/Api_User.d.ts +12 -0
  22. package/dist/types/api/types/Api_User_Issue.d.ts +33 -0
  23. package/dist/types/common/app-button/Button.stories.d.ts +13 -0
  24. package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +12 -0
  25. package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
  26. package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
  27. package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
  28. package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
  29. package/dist/types/common/app-file/File.stories.d.ts +8 -0
  30. package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
  31. package/dist/types/common/app-input/Input.stories.d.ts +9 -0
  32. package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
  33. package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
  34. package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
  35. package/dist/types/common/app-select/Select.stories.d.ts +7 -0
  36. package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
  37. package/dist/types/common/app-toggle/Toggle.stories.d.ts +12 -0
  38. package/dist/types/configs/storybook.d.ts +1 -0
  39. package/dist/types/index.d.ts +3 -1
  40. package/dist/types/utils/files.d.ts +2 -0
  41. package/package.json +64 -64
  42. package/src/App.vue +2461 -2461
  43. package/src/api/services/AuthService.ts +53 -53
  44. package/src/api/services/ControlsService.ts +96 -96
  45. package/src/api/services/EquipmentService.ts +29 -29
  46. package/src/api/services/GanttService.ts +23 -23
  47. package/src/api/services/InstrumentsService.ts +68 -68
  48. package/src/api/services/MetricsService.ts +123 -123
  49. package/src/api/services/RepairsService.ts +111 -111
  50. package/src/api/services/TasksService.ts +157 -157
  51. package/src/api/services/UserService.ts +123 -123
  52. package/src/api/services/VideoService.ts +118 -118
  53. package/src/api/settings/ApiService.ts +2 -1
  54. package/src/api/types/Api_Auth.ts +105 -105
  55. package/src/api/types/Api_Controls.ts +111 -111
  56. package/src/api/types/Api_Equipment.ts +3 -3
  57. package/src/api/types/Api_Instruments.ts +156 -156
  58. package/src/api/types/Api_Metrics.ts +5 -5
  59. package/src/api/types/Api_Repairs.ts +186 -186
  60. package/src/api/types/Api_Search.ts +80 -80
  61. package/src/api/types/Api_Tasks.ts +376 -376
  62. package/src/api/types/Api_User.ts +146 -146
  63. package/src/api/types/Api_Video.ts +244 -244
  64. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  65. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  66. package/src/common/app-icon/AppIcon.vue +108 -108
  67. package/src/common/app-input/AppInput.vue +148 -148
  68. package/src/common/app-input-new/AppInputNew.vue +179 -179
  69. package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
  70. package/src/common/app-modal/index.vue +96 -96
  71. package/src/common/app-select/AppSelect.vue +159 -159
  72. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  73. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  74. package/src/common/app-table/AppTable.vue +313 -313
  75. package/src/common/app-table/components/ModalSelect.vue +298 -298
  76. package/src/common/app-table/components/TableModal.vue +367 -367
  77. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  78. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  79. package/src/common/app-toggle/AppToggle.vue +24 -24
  80. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  81. package/src/index.ts +131 -131
  82. package/src/shared/styles/general.css +124 -124
  83. package/src/styles/variables.sass +12 -12
  84. package/src/utils/files.ts +19 -19
  85. package/src/utils/helpers.ts +59 -59
  86. package/dist/types/api/services/PhotoService.d.ts +0 -40
@@ -1,109 +1,109 @@
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
- </div>
9
- <p>{{ content }}</p>
10
- </q-card-section>
11
- <q-card-section :class="$style.footer">
12
- <app-button
13
- data-test="confirm-button"
14
- :class="$style['footer__btn--ok']"
15
- label="Подтвердить"
16
- @click="onDialogOK"
17
- />
18
- <app-button
19
- data-test="close-button"
20
- :class="$style['footer__btn--cancel']"
21
- label="Отменить"
22
- @click="onDialogHide"
23
- />
24
- </q-card-section>
25
- </q-card>
26
- </q-dialog>
27
- </template>
28
-
29
- <script setup lang="ts">
30
- import { useDialogPluginComponent } from 'quasar'
31
- import AppButton from '@/common/app-button/AppButton.vue'
32
- import SafetyIcon from '@/icons/dialogs/SafetyIcon.vue'
33
- import RemoveIcon from '@/icons/dialogs/RemoveIcon.vue'
34
-
35
- const { onDialogHide, onDialogOK, dialogRef } = useDialogPluginComponent()
36
-
37
- interface Props {
38
- content: string
39
- type: 'delete' | 'edit'
40
- }
41
-
42
- const props = defineProps<Props>()
43
- </script>
44
-
45
- <style lang="scss" module>
46
- .modal {
47
- font-family: NunitoSansFont, sans-serif;
48
- display: flex;
49
- flex-direction: column;
50
- width: 400px;
51
- border-radius: 8px !important;
52
- justify-content: space-between;
53
- &__content {
54
- margin: 0 auto;
55
- padding: 0;
56
- flex-grow: 1;
57
- &__header {
58
- width: 100%;
59
- display: flex;
60
- align-items: center;
61
- justify-content: center;
62
- flex-direction: column;
63
- gap: 16px;
64
- padding-top: 18px;
65
- h4 {
66
- font-size: 24px;
67
- font-weight: 600;
68
- }
69
- }
70
- }
71
- p {
72
- margin: 0;
73
- font-size: 16px;
74
- text-align: center;
75
- padding: 18px;
76
- }
77
- }
78
-
79
- .footer {
80
- display: flex;
81
- gap: 12px;
82
- align-items: center;
83
- justify-content: center;
84
- border-radius: 0px 0px 2px 2px;
85
- background: #f4f9fd;
86
- padding: 18px 12px;
87
- &__btn--ok,
88
- &__btn--cancel {
89
- background-color: #3f8cff;
90
- border-radius: 4px;
91
- color: white;
92
- font-size: 16px;
93
- font-weight: bold;
94
- width: 165px;
95
- height: 48px;
96
- cursor: pointer;
97
- span {
98
- color: white;
99
- }
100
- }
101
- &__btn--cancel {
102
- background-color: white;
103
- border: 1px solid #3f8cff;
104
- span {
105
- color: #3f8cff;
106
- }
107
- }
108
- }
109
- </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
+ </div>
9
+ <p>{{ content }}</p>
10
+ </q-card-section>
11
+ <q-card-section :class="$style.footer">
12
+ <app-button
13
+ data-test="confirm-button"
14
+ :class="$style['footer__btn--ok']"
15
+ label="Подтвердить"
16
+ @click="onDialogOK"
17
+ />
18
+ <app-button
19
+ data-test="close-button"
20
+ :class="$style['footer__btn--cancel']"
21
+ label="Отменить"
22
+ @click="onDialogHide"
23
+ />
24
+ </q-card-section>
25
+ </q-card>
26
+ </q-dialog>
27
+ </template>
28
+
29
+ <script setup lang="ts">
30
+ import { useDialogPluginComponent } from 'quasar'
31
+ import AppButton from '@/common/app-button/AppButton.vue'
32
+ import SafetyIcon from '@/icons/dialogs/SafetyIcon.vue'
33
+ import RemoveIcon from '@/icons/dialogs/RemoveIcon.vue'
34
+
35
+ const { onDialogHide, onDialogOK, dialogRef } = useDialogPluginComponent()
36
+
37
+ interface Props {
38
+ content: string
39
+ type: 'delete' | 'edit'
40
+ }
41
+
42
+ const props = defineProps<Props>()
43
+ </script>
44
+
45
+ <style lang="scss" module>
46
+ .modal {
47
+ font-family: NunitoSansFont, sans-serif;
48
+ display: flex;
49
+ flex-direction: column;
50
+ width: 400px;
51
+ border-radius: 8px !important;
52
+ justify-content: space-between;
53
+ &__content {
54
+ margin: 0 auto;
55
+ padding: 0;
56
+ flex-grow: 1;
57
+ &__header {
58
+ width: 100%;
59
+ display: flex;
60
+ align-items: center;
61
+ justify-content: center;
62
+ flex-direction: column;
63
+ gap: 16px;
64
+ padding-top: 18px;
65
+ h4 {
66
+ font-size: 24px;
67
+ font-weight: 600;
68
+ }
69
+ }
70
+ }
71
+ p {
72
+ margin: 0;
73
+ font-size: 16px;
74
+ text-align: center;
75
+ padding: 18px;
76
+ }
77
+ }
78
+
79
+ .footer {
80
+ display: flex;
81
+ gap: 12px;
82
+ align-items: center;
83
+ justify-content: center;
84
+ border-radius: 0px 0px 2px 2px;
85
+ background: #f4f9fd;
86
+ padding: 18px 12px;
87
+ &__btn--ok,
88
+ &__btn--cancel {
89
+ background-color: #3f8cff;
90
+ border-radius: 4px;
91
+ color: white;
92
+ font-size: 16px;
93
+ font-weight: bold;
94
+ width: 165px;
95
+ height: 48px;
96
+ cursor: pointer;
97
+ span {
98
+ color: white;
99
+ }
100
+ }
101
+ &__btn--cancel {
102
+ background-color: white;
103
+ border: 1px solid #3f8cff;
104
+ span {
105
+ color: #3f8cff;
106
+ }
107
+ }
108
+ }
109
+ </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>