shared-ritm 1.3.89 → 1.3.91

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.
@@ -23,6 +23,9 @@ declare class ControlsService extends ApiService {
23
23
  deleteInstrumentType(id: string): Promise<any>;
24
24
  fetchRpdzLogList(params: Record<string, any>): Promise<ResponseApi<Api_ControlLogs_Dto[]>>;
25
25
  exportRpdzLogList(params: Record<string, any>): Promise<Blob>;
26
+ editControlLog(id: string, body: {
27
+ description: string | null;
28
+ }): Promise<void>;
26
29
  }
27
30
  export default function useControlsService(): ControlsService;
28
31
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.89",
3
+ "version": "1.3.91",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -86,6 +86,10 @@ class ControlsService extends ApiService {
86
86
  public exportRpdzLogList(params: Record<string, any>): Promise<Blob> {
87
87
  return this.get('exposed_equipment_zones_history/list/export', { params, responseType: 'blob' })
88
88
  }
89
+
90
+ public editControlLog(id: string, body: { description: string | null }): Promise<void> {
91
+ return this.put(`exposed_equipment_zones/${id}`, body)
92
+ }
89
93
  }
90
94
 
91
95
  let api: ControlsService
@@ -48,6 +48,7 @@ export default class ApiService {
48
48
  error.response?.status !== 401 ||
49
49
  originalRequest.url === '/v2/auth/refresh' ||
50
50
  originalRequest.url === '/v2/login' ||
51
+ originalRequest.url === '/v2/auth/refresh' ||
51
52
  originalRequest._retry
52
53
  ) {
53
54
  return Promise.reject(error)
@@ -1,96 +1,101 @@
1
- <template>
2
- <q-dialog v-model="model">
3
- <q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
4
- <q-card-section class="section">
5
- <div v-if="title" class="title">{{ title }}</div>
6
-
7
- <slot />
8
-
9
- <div v-if="loading" class="loader-overlay">
10
- <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
11
- </div>
12
- </q-card-section>
13
-
14
- <q-card-actions align="center" class="btn__wrapper">
15
- <slot name="actions" />
16
- </q-card-actions>
17
- </q-card>
18
- </q-dialog>
19
- </template>
20
-
21
- <script setup lang="ts">
22
- import { defineProps, defineEmits, defineModel } from 'vue'
23
-
24
- type Props = {
25
- modelValue?: boolean
26
- title?: string
27
- width?: string
28
- loading?: boolean
29
- maxHeight?: string
30
- }
31
-
32
- defineProps<Props>()
33
-
34
- const emit = defineEmits(['update:modelValue'])
35
-
36
- const model = defineModel<boolean>()
37
- </script>
38
-
39
- <style scoped lang="scss">
40
- .modal {
41
- display: grid;
42
- border-radius: 0.5rem;
43
- grid-template-rows: 1fr auto;
44
- font-family: NunitoSansFont, sans-serif;
45
- color: #1d425d;
46
- overflow: hidden;
47
-
48
- .section {
49
- position: relative;
50
- display: grid;
51
- grid-template-rows: auto 1fr;
52
- justify-items: center;
53
- gap: 0.5rem;
54
- background-color: white;
55
- overflow: auto;
56
-
57
- .loader-overlay {
58
- width: 100%;
59
- height: 100%;
60
- position: absolute;
61
- inset: 0;
62
- z-index: 10;
63
- background: rgba(255, 255, 255, 0.8);
64
- display: flex;
65
- align-items: center;
66
- justify-content: center;
67
- }
68
- .loader-spinner {
69
- z-index: 11;
70
- }
71
- }
72
-
73
- .title {
74
- font-size: 32px;
75
- font-weight: 700;
76
- }
77
-
78
- .btn__wrapper {
79
- width: 100%;
80
- background-color: var(--light-blue);
81
- padding: 1rem;
82
- }
83
- }
84
- </style>
85
-
86
- <style lang="scss">
87
- .modal {
88
- .btn__wrapper {
89
- button {
90
- padding: 13px 37px;
91
- border-radius: 4px;
92
- color: var(--action-text-color);
93
- }
94
- }
95
- }
96
- </style>
1
+ <template>
2
+ <q-dialog v-model="model">
3
+ <q-card class="modal" :style="{ width, 'max-width': width || 'unset', maxHeight: maxHeight || '600px' }">
4
+ <q-card-section class="section">
5
+ <div v-if="title" class="title" :class="{ ellipsis }" :title="title" :style="titleStyle">
6
+ {{ title }}
7
+ </div>
8
+
9
+ <slot />
10
+
11
+ <div v-if="loading" class="loader-overlay">
12
+ <q-spinner-audio class="loader-spinner" size="md" :thickness="3" color="primary" />
13
+ </div>
14
+ </q-card-section>
15
+
16
+ <q-card-actions align="center" class="btn__wrapper">
17
+ <slot name="actions" />
18
+ </q-card-actions>
19
+ </q-card>
20
+ </q-dialog>
21
+ </template>
22
+
23
+ <script setup lang="ts">
24
+ import { defineProps, defineEmits, defineModel } from 'vue'
25
+
26
+ type Props = {
27
+ modelValue?: boolean
28
+ title?: string
29
+ width?: string
30
+ loading?: boolean
31
+ maxHeight?: string
32
+ ellipsis?: boolean
33
+ titleStyle?: string
34
+ }
35
+
36
+ defineProps<Props>()
37
+
38
+ const emit = defineEmits(['update:modelValue'])
39
+
40
+ const model = defineModel<boolean>()
41
+ </script>
42
+
43
+ <style scoped lang="scss">
44
+ .modal {
45
+ display: grid;
46
+ border-radius: 0.5rem;
47
+ grid-template-rows: 1fr auto;
48
+ font-family: NunitoSansFont, sans-serif;
49
+ color: #1d425d;
50
+ overflow: hidden;
51
+
52
+ .section {
53
+ position: relative;
54
+ display: grid;
55
+ grid-template-rows: auto 1fr;
56
+ justify-items: center;
57
+ gap: 0.5rem;
58
+ background-color: white;
59
+ overflow: auto;
60
+
61
+ .loader-overlay {
62
+ width: 100%;
63
+ height: 100%;
64
+ position: absolute;
65
+ inset: 0;
66
+ z-index: 10;
67
+ background: rgba(255, 255, 255, 0.8);
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+ .loader-spinner {
73
+ z-index: 11;
74
+ }
75
+ }
76
+
77
+ .title {
78
+ width: 100%;
79
+ font-size: 32px;
80
+ font-weight: 700;
81
+ }
82
+
83
+ .btn__wrapper {
84
+ width: 100%;
85
+ background-color: var(--light-blue);
86
+ padding: 1rem;
87
+ }
88
+ }
89
+ </style>
90
+
91
+ <style lang="scss">
92
+ .modal {
93
+ .btn__wrapper {
94
+ button {
95
+ padding: 13px 37px;
96
+ border-radius: 4px;
97
+ color: var(--action-text-color);
98
+ }
99
+ }
100
+ }
101
+ </style>