shared-ritm 1.3.135 → 1.3.137

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.
@@ -71,10 +71,11 @@ declare class UserService extends ApiService {
71
71
  getListVisitorLog(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
72
72
  entryVisitorLog(body: {
73
73
  user_id: string;
74
- task_id: string;
74
+ task_id?: string;
75
75
  }): Promise<Api_Visitor_Dto>;
76
76
  exitVisitorLog(id: string): Promise<Api_Visitor_Dto>;
77
- deleteVisitorLog(): Promise<any>;
77
+ deleteVisitorLog(listId?: string[]): Promise<any>;
78
+ getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>>;
78
79
  findUserByVideo(data: any): Promise<any>;
79
80
  }
80
81
  export default function useUserService(): UserService;
@@ -45,6 +45,7 @@ export type FiltersValue = {
45
45
  status?: {
46
46
  status: boolean;
47
47
  };
48
+ divisions?: string[];
48
49
  };
49
50
  export type Api_Instrument_Dto = {
50
51
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.135",
3
+ "version": "1.3.137",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -126,16 +126,18 @@ class UserService extends ApiService {
126
126
  return await this.get(`get_list_visitor_log`, { params })
127
127
  }
128
128
 
129
- public entryVisitorLog(body: { user_id: string; task_id: string }): Promise<Api_Visitor_Dto> {
129
+ public entryVisitorLog(body: { user_id: string; task_id?: string }): Promise<Api_Visitor_Dto> {
130
130
  return this.post('entry_visitor_log', body)
131
131
  }
132
132
  public async exitVisitorLog(id: string): Promise<Api_Visitor_Dto> {
133
133
  return await this.post(`exit_visitor_log/${id}`, {})
134
134
  }
135
- public async deleteVisitorLog(): Promise<any> {
136
- return await this.post(`delete_not_in_zone_visitor_log`, {})
135
+ public async deleteVisitorLog(listId: string[] = []): Promise<any> {
136
+ return await this.post(`delete_not_in_zone_visitor_log`, { visitor_log_list_id: listId })
137
+ }
138
+ public async getListVisitorHistories(params: Record<string, any>): Promise<ResponseApi<Api_Visitor_Dto[]>> {
139
+ return await this.get(`get_list_visitor_log_histories`, { params })
137
140
  }
138
-
139
141
  public findUserByVideo(data: any): Promise<any> {
140
142
  return this.post<any, Api_Auth_Login>(`/user/recognition`, data, {
141
143
  transformRequest: d => d,
@@ -47,6 +47,7 @@ export type FiltersValue = {
47
47
  status?: {
48
48
  status: boolean
49
49
  }
50
+ divisions?: string[]
50
51
  }
51
52
  export type Api_Instrument_Dto = {
52
53
  id: string
@@ -11,7 +11,7 @@
11
11
  class="full-width"
12
12
  :rows-per-page-options="[0]"
13
13
  :selection="props.enableMultiSelect ? 'multiple' : 'none'"
14
- style="height: 100%"
14
+ style="height: 100%; border-radius: 6px"
15
15
  :table-row-style-fn="tableRowStyleFn"
16
16
  @row-click="rowClick"
17
17
  >
@@ -105,11 +105,12 @@ const isActionsSlot = computed(() => 'actions' in slots)
105
105
 
106
106
  .search-input {
107
107
  flex: 1;
108
+ border-radius: 6px;
108
109
  }
109
110
 
110
111
  ::v-deep(.q-btn) {
111
112
  flex-shrink: 0;
112
- border-radius: 2px;
113
+ border-radius: 6px;
113
114
  background: #fff;
114
115
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
115
116
  color: #3f8cff;
@@ -134,4 +135,24 @@ const isActionsSlot = computed(() => 'actions' in slots)
134
135
  .loader-spinner {
135
136
  z-index: 11;
136
137
  }
138
+ @media (min-width: 768px) and (max-width: 1024px) {
139
+ .table-layout {
140
+ height: 100%;
141
+ display: grid;
142
+ grid-template-rows: auto 1fr auto;
143
+ gap: 12px;
144
+ }
145
+ .table-controls {
146
+ gap: 8px;
147
+
148
+ .search-input {
149
+ height: 44px;
150
+ }
151
+
152
+ ::v-deep(.q-btn) {
153
+ height: 44px;
154
+ width: 44px;
155
+ }
156
+ }
157
+ }
137
158
  </style>
@@ -73,4 +73,11 @@ watch(input, val => {
73
73
  border-color: #3f8cff;
74
74
  }
75
75
  }
76
+ @media (min-width: 768px) and (max-width: 1024px) {
77
+ ::v-deep(.q-field__control) {
78
+ height: 44px !important;
79
+ display: flex;
80
+ align-items: center;
81
+ }
82
+ }
76
83
  </style>