shared-ritm 1.2.66 → 1.2.68

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 (68) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +27926 -8480
  4. package/dist/shared-ritm.umd.js +3834 -7
  5. package/dist/types/api/services/PhotoService.d.ts +41 -0
  6. package/dist/types/api/services/UserService.d.ts +11 -0
  7. package/dist/types/api/settings/ApiService.d.ts +0 -1
  8. package/dist/types/api/types/Api_Instruments.d.ts +1 -35
  9. package/dist/types/api/types/Api_User.d.ts +42 -0
  10. package/dist/types/index.d.ts +6 -4
  11. package/dist/types/utils/helpers.d.ts +1 -0
  12. package/package.json +64 -63
  13. package/src/api/services/ControlsService.ts +65 -64
  14. package/src/api/services/FileService.ts +2 -1
  15. package/src/api/services/GanttService.ts +17 -17
  16. package/src/api/services/InstrumentsService.ts +22 -22
  17. package/src/api/services/MetricsService.ts +110 -109
  18. package/src/api/services/PhotoService.ts +137 -0
  19. package/src/api/services/ProjectsService.ts +68 -67
  20. package/src/api/services/RepairsService.ts +101 -100
  21. package/src/api/services/SearchService.ts +2 -1
  22. package/src/api/services/TasksService.ts +2 -1
  23. package/src/api/services/UserService.ts +19 -0
  24. package/src/api/services/VideoService.ts +14 -14
  25. package/src/api/settings/ApiService.ts +0 -10
  26. package/src/api/types/Api_Controls.ts +72 -72
  27. package/src/api/types/Api_Files.ts +1 -1
  28. package/src/api/types/Api_Instruments.ts +98 -133
  29. package/src/api/types/Api_Projects.ts +55 -55
  30. package/src/api/types/Api_Repairs.ts +93 -93
  31. package/src/api/types/Api_Service.ts +9 -0
  32. package/src/api/types/Api_Tasks.ts +155 -155
  33. package/src/api/types/Api_User.ts +44 -0
  34. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  35. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  36. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  37. package/src/common/app-input/AppInput.vue +148 -148
  38. package/src/common/app-select/AppSelect.vue +157 -157
  39. package/src/common/app-sheet/AppSheet.vue +120 -120
  40. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  41. package/src/common/app-table/AppTable.vue +250 -250
  42. package/src/common/app-table/AppTableLayout.vue +111 -111
  43. package/src/common/app-table/components/ModalSelect.vue +264 -264
  44. package/src/common/app-table/components/TableModal.vue +329 -329
  45. package/src/common/app-table/components/TablePagination.vue +152 -152
  46. package/src/common/app-table/components/TableSearch.vue +76 -76
  47. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  48. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  49. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  50. package/src/common/app-toggle/AppToggle.vue +23 -23
  51. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  52. package/src/icons/components/table-filter-icon.vue +30 -30
  53. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  54. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  55. package/src/icons/task/attention-icon.vue +13 -13
  56. package/src/icons/task/clock-icon.vue +10 -10
  57. package/src/icons/task/delete-icon.vue +10 -10
  58. package/src/icons/task/fire-icon.vue +16 -16
  59. package/src/index.ts +7 -0
  60. package/src/main.ts +28 -28
  61. package/src/shared/styles/general.css +125 -125
  62. package/src/styles/variables.sass +12 -12
  63. package/src/utils/confirm.ts +12 -12
  64. package/src/utils/helpers.ts +58 -39
  65. package/src/utils/notification.ts +9 -9
  66. package/dist/types/api/services/SearchService.d.ts +0 -7
  67. package/dist/types/api/types/Api_Search.d.ts +0 -43
  68. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -1,111 +1,111 @@
1
- <template>
2
- <div class="table-layout" :class="{ 'hide-search': !actionsSlot && hideSearch }">
3
- <div v-if="actionsSlot || !hideSearch" class="table-controls">
4
- <app-table-search
5
- v-if="!hideSearch"
6
- :model-value="props.search"
7
- class="search-input"
8
- placeholder="Введите наименование"
9
- @search="props.onSearch"
10
- />
11
- <slot v-if="actionsSlot" name="actions" />
12
- </div>
13
-
14
- <div class="table-wrapper">
15
- <app-table
16
- v-bind="props.tableProps"
17
- :selected-rows="props.selectedRows"
18
- :no-hover="noHover"
19
- v-on="props.tableEvents"
20
- @update:selectedRows="rows => emit('update:selectedRows', rows)"
21
- />
22
- <div v-if="props.loading" class="loader-overlay">
23
- <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
24
- </div>
25
- </div>
26
-
27
- <app-table-pagination
28
- :model-value="props.currentPage"
29
- :total-pages="props.totalPages"
30
- @page-change="props.onPageChange"
31
- />
32
-
33
- <slot v-if="modalSlot" name="modal" />
34
- </div>
35
- </template>
36
- <script setup lang="ts">
37
- import AppTable from './AppTable.vue'
38
- import AppTablePagination from '../app-table/components/TablePagination.vue'
39
- import AppTableSearch from '../app-table/components/TableSearch.vue'
40
- import { defineProps, defineEmits } from 'vue'
41
-
42
- const props = defineProps<{
43
- search: string
44
- loading: boolean
45
- currentPage: number
46
- totalPages: number
47
- tableProps: any
48
- tableEvents: any
49
- onSearch: (val: string) => void
50
- onPageChange: (page: number) => void
51
- actionsSlot?: boolean
52
- modalSlot?: boolean
53
- hideSearch?: boolean
54
- noHover?: boolean
55
- selectedRows: any[]
56
- }>()
57
- const emit = defineEmits<{
58
- 'update:selectedRows': [rows: any[]]
59
- }>()
60
- </script>
61
- <style scoped lang="scss">
62
- .table-layout {
63
- height: 100%;
64
- display: grid;
65
- grid-template-rows: auto 1fr auto;
66
- gap: 1.25rem;
67
- box-sizing: border-box;
68
- overflow: auto;
69
-
70
- &.hide-search {
71
- grid-template-rows: 1fr auto;
72
- }
73
- }
74
- .table-controls {
75
- display: flex;
76
- align-items: center;
77
- justify-content: space-between;
78
- gap: 1.25rem;
79
-
80
- .search-input {
81
- flex: 1;
82
- }
83
-
84
- ::v-deep(.q-btn) {
85
- flex-shrink: 0;
86
- border-radius: 2px;
87
- background: #fff;
88
- box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
89
- color: #3f8cff;
90
- height: 50px;
91
- width: 50px;
92
- }
93
- }
94
- .table-wrapper {
95
- position: relative;
96
- flex: 1;
97
- overflow-y: auto;
98
- }
99
- .loader-overlay {
100
- position: absolute;
101
- inset: 0;
102
- z-index: 10;
103
- background: rgba(255, 255, 255, 0.8);
104
- display: flex;
105
- align-items: center;
106
- justify-content: center;
107
- }
108
- .loader-spinner {
109
- z-index: 11;
110
- }
111
- </style>
1
+ <template>
2
+ <div class="table-layout" :class="{ 'hide-search': !actionsSlot && hideSearch }">
3
+ <div v-if="actionsSlot || !hideSearch" class="table-controls">
4
+ <app-table-search
5
+ v-if="!hideSearch"
6
+ :model-value="props.search"
7
+ class="search-input"
8
+ placeholder="Введите наименование"
9
+ @search="props.onSearch"
10
+ />
11
+ <slot v-if="actionsSlot" name="actions" />
12
+ </div>
13
+
14
+ <div class="table-wrapper">
15
+ <app-table
16
+ v-bind="props.tableProps"
17
+ :selected-rows="props.selectedRows"
18
+ :no-hover="noHover"
19
+ v-on="props.tableEvents"
20
+ @update:selectedRows="rows => emit('update:selectedRows', rows)"
21
+ />
22
+ <div v-if="props.loading" class="loader-overlay">
23
+ <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
24
+ </div>
25
+ </div>
26
+
27
+ <app-table-pagination
28
+ :model-value="props.currentPage"
29
+ :total-pages="props.totalPages"
30
+ @page-change="props.onPageChange"
31
+ />
32
+
33
+ <slot v-if="modalSlot" name="modal" />
34
+ </div>
35
+ </template>
36
+ <script setup lang="ts">
37
+ import AppTable from './AppTable.vue'
38
+ import AppTablePagination from '../app-table/components/TablePagination.vue'
39
+ import AppTableSearch from '../app-table/components/TableSearch.vue'
40
+ import { defineProps, defineEmits } from 'vue'
41
+
42
+ const props = defineProps<{
43
+ search: string
44
+ loading: boolean
45
+ currentPage: number
46
+ totalPages: number
47
+ tableProps: any
48
+ tableEvents: any
49
+ onSearch: (val: string) => void
50
+ onPageChange: (page: number) => void
51
+ actionsSlot?: boolean
52
+ modalSlot?: boolean
53
+ hideSearch?: boolean
54
+ noHover?: boolean
55
+ selectedRows: any[]
56
+ }>()
57
+ const emit = defineEmits<{
58
+ 'update:selectedRows': [rows: any[]]
59
+ }>()
60
+ </script>
61
+ <style scoped lang="scss">
62
+ .table-layout {
63
+ height: 100%;
64
+ display: grid;
65
+ grid-template-rows: auto 1fr auto;
66
+ gap: 1.25rem;
67
+ box-sizing: border-box;
68
+ overflow: auto;
69
+
70
+ &.hide-search {
71
+ grid-template-rows: 1fr auto;
72
+ }
73
+ }
74
+ .table-controls {
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: space-between;
78
+ gap: 1.25rem;
79
+
80
+ .search-input {
81
+ flex: 1;
82
+ }
83
+
84
+ ::v-deep(.q-btn) {
85
+ flex-shrink: 0;
86
+ border-radius: 2px;
87
+ background: #fff;
88
+ box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
89
+ color: #3f8cff;
90
+ height: 50px;
91
+ width: 50px;
92
+ }
93
+ }
94
+ .table-wrapper {
95
+ position: relative;
96
+ flex: 1;
97
+ overflow-y: auto;
98
+ }
99
+ .loader-overlay {
100
+ position: absolute;
101
+ inset: 0;
102
+ z-index: 10;
103
+ background: rgba(255, 255, 255, 0.8);
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: center;
107
+ }
108
+ .loader-spinner {
109
+ z-index: 11;
110
+ }
111
+ </style>