shared-ritm 1.2.57 → 1.2.58

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