shared-ritm 1.2.67 → 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 (63) 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/ControlsService.d.ts +1 -2
  6. package/dist/types/api/services/FileService.d.ts +1 -2
  7. package/dist/types/api/services/MetricsService.d.ts +1 -2
  8. package/dist/types/api/services/PhotoService.d.ts +41 -0
  9. package/dist/types/api/services/ProjectsService.d.ts +1 -2
  10. package/dist/types/api/services/RepairsService.d.ts +1 -2
  11. package/dist/types/api/services/TasksService.d.ts +1 -2
  12. package/dist/types/api/services/UserService.d.ts +11 -0
  13. package/dist/types/api/settings/ApiService.d.ts +8 -0
  14. package/dist/types/api/types/Api_Instruments.d.ts +1 -35
  15. package/dist/types/api/types/Api_User.d.ts +42 -0
  16. package/dist/types/index.d.ts +6 -5
  17. package/dist/types/utils/helpers.d.ts +1 -0
  18. package/package.json +64 -63
  19. package/src/api/services/PhotoService.ts +137 -0
  20. package/src/api/services/UserService.ts +19 -0
  21. package/src/api/types/Api_Controls.ts +72 -72
  22. package/src/api/types/Api_Files.ts +1 -1
  23. package/src/api/types/Api_Instruments.ts +98 -133
  24. package/src/api/types/Api_Projects.ts +55 -55
  25. package/src/api/types/Api_Repairs.ts +93 -93
  26. package/src/api/types/Api_Tasks.ts +155 -155
  27. package/src/api/types/Api_User.ts +44 -0
  28. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  29. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  30. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  31. package/src/common/app-input/AppInput.vue +148 -148
  32. package/src/common/app-select/AppSelect.vue +157 -157
  33. package/src/common/app-sheet/AppSheet.vue +120 -120
  34. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  35. package/src/common/app-table/AppTable.vue +250 -250
  36. package/src/common/app-table/AppTableLayout.vue +111 -111
  37. package/src/common/app-table/components/ModalSelect.vue +264 -264
  38. package/src/common/app-table/components/TableModal.vue +329 -329
  39. package/src/common/app-table/components/TablePagination.vue +152 -152
  40. package/src/common/app-table/components/TableSearch.vue +76 -76
  41. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  42. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  43. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  44. package/src/common/app-toggle/AppToggle.vue +23 -23
  45. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  46. package/src/icons/components/table-filter-icon.vue +30 -30
  47. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  48. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  49. package/src/icons/task/attention-icon.vue +13 -13
  50. package/src/icons/task/clock-icon.vue +10 -10
  51. package/src/icons/task/delete-icon.vue +10 -10
  52. package/src/icons/task/fire-icon.vue +16 -16
  53. package/src/index.ts +6 -0
  54. package/src/main.ts +28 -28
  55. package/src/shared/styles/general.css +125 -125
  56. package/src/styles/variables.sass +12 -12
  57. package/src/utils/confirm.ts +12 -12
  58. package/src/utils/helpers.ts +58 -39
  59. package/src/utils/notification.ts +9 -9
  60. package/dist/types/api/services/SearchService.d.ts +0 -8
  61. package/dist/types/api/types/Api_Search.d.ts +0 -43
  62. package/dist/types/api/types/Api_Service.d.ts +0 -9
  63. 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>