shared-ritm 1.2.55 → 1.2.56

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 (74) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +4770 -4777
  3. package/dist/shared-ritm.umd.js +7 -7
  4. package/dist/types/api/types/Api_Controls.d.ts +6 -6
  5. package/package.json +1 -1
  6. package/src/App.vue +2461 -2461
  7. package/src/api/services/AuthService.ts +58 -58
  8. package/src/api/services/ControlsService.ts +64 -64
  9. package/src/api/services/FileService.ts +15 -15
  10. package/src/api/services/TasksService.ts +137 -137
  11. package/src/api/settings/ApiService.ts +128 -128
  12. package/src/api/types/Api_Controls.ts +3 -3
  13. package/src/common/app-button/AppButton.vue +173 -173
  14. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  15. package/src/common/app-icon/AppIcon.vue +108 -108
  16. package/src/common/app-input/AppInput.vue +147 -147
  17. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  18. package/src/common/app-layout/AppLayout.vue +84 -84
  19. package/src/common/app-layout/components/AppLayoutHeader.vue +246 -246
  20. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  21. package/src/common/app-loader/index.vue +43 -43
  22. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  23. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  24. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  25. package/src/common/app-table/AppTable.vue +244 -244
  26. package/src/common/app-table/AppTableLayout.vue +104 -104
  27. package/src/common/app-table/components/ModalSelect.vue +264 -264
  28. package/src/common/app-table/components/TableModal.vue +357 -357
  29. package/src/common/app-table/controllers/useBaseTable.ts +42 -42
  30. package/src/global.d.ts +1 -1
  31. package/src/icons/components/arrow-down-icon.vue +25 -25
  32. package/src/icons/components/arrow-frame-icon.vue +19 -19
  33. package/src/icons/components/arrow-square.vue +22 -22
  34. package/src/icons/header/NotificationIcon.vue +18 -18
  35. package/src/icons/header/PersonIcon.vue +11 -11
  36. package/src/icons/header/SettingIcon.vue +14 -14
  37. package/src/icons/header/flashIcon.vue +24 -24
  38. package/src/icons/header/searchStatusIcon.vue +24 -24
  39. package/src/icons/header/smallCapsIcon.vue +34 -34
  40. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  41. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  42. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  43. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  44. package/src/icons/sidebar/instruments-icon.vue +45 -45
  45. package/src/icons/sidebar/logo-icon.vue +15 -15
  46. package/src/icons/sidebar/logout-icon.vue +13 -13
  47. package/src/icons/sidebar/modules-icon.vue +16 -16
  48. package/src/icons/sidebar/notifications-icon.vue +24 -24
  49. package/src/icons/sidebar/order-icon.vue +44 -44
  50. package/src/icons/sidebar/pass-icon.vue +38 -38
  51. package/src/icons/sidebar/positions-icon.vue +42 -42
  52. package/src/icons/sidebar/preorder-icon.vue +19 -19
  53. package/src/icons/sidebar/projects-icon.vue +31 -31
  54. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  55. package/src/icons/sidebar/repairs-icon.vue +20 -20
  56. package/src/icons/sidebar/roles-icon.vue +26 -26
  57. package/src/icons/sidebar/status-history-icon.vue +24 -24
  58. package/src/icons/sidebar/tasks-icon.vue +28 -28
  59. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  60. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  61. package/src/icons/sidebar/teams-icon.vue +32 -32
  62. package/src/icons/sidebar/user-icon.vue +18 -18
  63. package/src/icons/sidebar/users-icon.vue +46 -46
  64. package/src/icons/sidebar/videosources-icon.vue +19 -19
  65. package/src/icons/sidebar/videowall-icon.vue +13 -13
  66. package/src/icons/sidebar/videozones-icon.vue +21 -21
  67. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  68. package/src/icons/sidebar/workshop-icon.vue +100 -100
  69. package/src/icons/sidebar/workzones-icon.vue +22 -22
  70. package/src/index.ts +84 -84
  71. package/src/main.ts +28 -28
  72. package/src/quasar-user-options.ts +17 -17
  73. package/src/router/index.ts +10 -10
  74. package/src/shims-vue.d.ts +5 -5
@@ -1,104 +1,104 @@
1
- <script setup lang="ts">
2
- import AppTable from './AppTable.vue'
3
- import AppTablePagination from '../app-table/components/TablePagination.vue'
4
- import AppTableSearch from '../app-table/components/TableSearch.vue'
5
- import { defineProps, defineEmits } from 'vue'
6
-
7
- const emit = defineEmits<{
8
- 'update:selectedRows': [rows: any[]]
9
- }>()
10
- const props = defineProps<{
11
- search: string
12
- loading: boolean
13
- currentPage: number
14
- totalPages: number
15
- tableProps: any
16
- tableEvents: any
17
- onSearch: (val: string) => void
18
- onPageChange: (page: number) => void
19
- actionsSlot?: boolean
20
- modalSlot?: boolean
21
- selectedRows: any[]
22
- }>()
23
- </script>
24
-
25
- <template>
26
- <div class="table-layout">
27
- <div class="table-controls">
28
- <app-table-search
29
- :model-value="props.search"
30
- class="search-input"
31
- placeholder="Введите наименование"
32
- @search="props.onSearch"
33
- />
34
- <slot v-if="actionsSlot" name="actions" />
35
- </div>
36
-
37
- <div class="table-wrapper">
38
- <app-table
39
- v-bind="props.tableProps"
40
- :selected-rows="props.selectedRows"
41
- v-on="props.tableEvents"
42
- @update:selectedRows="rows => emit('update:selectedRows', rows)"
43
- />
44
- <div v-if="props.loading" class="loader-overlay">
45
- <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
46
- </div>
47
- </div>
48
-
49
- <app-table-pagination
50
- :model-value="props.currentPage"
51
- :total-pages="props.totalPages"
52
- @page-change="props.onPageChange"
53
- />
54
-
55
- <slot v-if="modalSlot" name="modal" />
56
- </div>
57
- </template>
58
-
59
- <style scoped lang="scss">
60
- .table-layout {
61
- height: calc(100vh - 100px);
62
- display: flex;
63
- flex-direction: column;
64
- box-sizing: border-box;
65
- }
66
- .table-controls {
67
- display: flex;
68
- align-items: center;
69
- justify-content: space-between;
70
- gap: 18px;
71
- margin-bottom: 20px;
72
-
73
- .search-input {
74
- flex: 1;
75
- }
76
-
77
- ::v-deep(.q-btn) {
78
- flex-shrink: 0;
79
- border-radius: 2px;
80
- background: #fff;
81
- box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
82
- color: #3f8cff;
83
- height: 50px;
84
- width: 50px;
85
- }
86
- }
87
- .table-wrapper {
88
- position: relative;
89
- flex: 1;
90
- overflow-y: auto;
91
- }
92
- .loader-overlay {
93
- position: absolute;
94
- inset: 0;
95
- z-index: 10;
96
- background: rgba(255, 255, 255, 0.8);
97
- display: flex;
98
- align-items: center;
99
- justify-content: center;
100
- }
101
- .loader-spinner {
102
- z-index: 11;
103
- }
104
- </style>
1
+ <script setup lang="ts">
2
+ import AppTable from './AppTable.vue'
3
+ import AppTablePagination from '../app-table/components/TablePagination.vue'
4
+ import AppTableSearch from '../app-table/components/TableSearch.vue'
5
+ import { defineProps, defineEmits } from 'vue'
6
+
7
+ const emit = defineEmits<{
8
+ 'update:selectedRows': [rows: any[]]
9
+ }>()
10
+ const props = defineProps<{
11
+ search: string
12
+ loading: boolean
13
+ currentPage: number
14
+ totalPages: number
15
+ tableProps: any
16
+ tableEvents: any
17
+ onSearch: (val: string) => void
18
+ onPageChange: (page: number) => void
19
+ actionsSlot?: boolean
20
+ modalSlot?: boolean
21
+ selectedRows: any[]
22
+ }>()
23
+ </script>
24
+
25
+ <template>
26
+ <div class="table-layout">
27
+ <div class="table-controls">
28
+ <app-table-search
29
+ :model-value="props.search"
30
+ class="search-input"
31
+ placeholder="Введите наименование"
32
+ @search="props.onSearch"
33
+ />
34
+ <slot v-if="actionsSlot" name="actions" />
35
+ </div>
36
+
37
+ <div class="table-wrapper">
38
+ <app-table
39
+ v-bind="props.tableProps"
40
+ :selected-rows="props.selectedRows"
41
+ v-on="props.tableEvents"
42
+ @update:selectedRows="rows => emit('update:selectedRows', rows)"
43
+ />
44
+ <div v-if="props.loading" class="loader-overlay">
45
+ <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
46
+ </div>
47
+ </div>
48
+
49
+ <app-table-pagination
50
+ :model-value="props.currentPage"
51
+ :total-pages="props.totalPages"
52
+ @page-change="props.onPageChange"
53
+ />
54
+
55
+ <slot v-if="modalSlot" name="modal" />
56
+ </div>
57
+ </template>
58
+
59
+ <style scoped lang="scss">
60
+ .table-layout {
61
+ height: calc(100vh - 100px);
62
+ display: flex;
63
+ flex-direction: column;
64
+ box-sizing: border-box;
65
+ }
66
+ .table-controls {
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: space-between;
70
+ gap: 18px;
71
+ margin-bottom: 20px;
72
+
73
+ .search-input {
74
+ flex: 1;
75
+ }
76
+
77
+ ::v-deep(.q-btn) {
78
+ flex-shrink: 0;
79
+ border-radius: 2px;
80
+ background: #fff;
81
+ box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
82
+ color: #3f8cff;
83
+ height: 50px;
84
+ width: 50px;
85
+ }
86
+ }
87
+ .table-wrapper {
88
+ position: relative;
89
+ flex: 1;
90
+ overflow-y: auto;
91
+ }
92
+ .loader-overlay {
93
+ position: absolute;
94
+ inset: 0;
95
+ z-index: 10;
96
+ background: rgba(255, 255, 255, 0.8);
97
+ display: flex;
98
+ align-items: center;
99
+ justify-content: center;
100
+ }
101
+ .loader-spinner {
102
+ z-index: 11;
103
+ }
104
+ </style>