shared-ritm 1.2.96 → 1.2.98
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.
- package/dist/index.css +1 -1
- package/dist/shared-ritm.es.js +1461 -1437
- package/dist/shared-ritm.umd.js +27 -27
- package/dist/types/api/services/PhotoService.d.ts +38 -51
- package/dist/types/api/services/VideoService.d.ts +11 -1
- package/dist/types/api/types/Api_Video.d.ts +31 -0
- package/package.json +64 -64
- package/src/api/services/InstrumentsService.ts +22 -22
- package/src/api/services/UserService.ts +87 -87
- package/src/api/services/VideoService.ts +62 -36
- package/src/api/settings/ApiService.ts +123 -123
- package/src/api/types/Api_Instruments.ts +98 -98
- package/src/api/types/Api_User.ts +117 -117
- package/src/api/types/Api_Video.ts +123 -90
- package/src/common/app-input-new/AppInputNew.vue +17 -2
- package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
- package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
- package/src/common/app-table/AppTable.vue +312 -312
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +270 -270
- package/src/common/app-table/components/TableModal.vue +331 -331
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/index.ts +113 -113
- package/src/styles/variables.sass +12 -12
- package/dist/types/api/services/ComentsServise.d.ts +0 -10
- package/dist/types/api/types/Api_Users.d.ts +0 -43
|
@@ -1,90 +1,123 @@
|
|
|
1
|
-
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
-
|
|
3
|
-
export type Api_Video_Source = {
|
|
4
|
-
id: string
|
|
5
|
-
name: string
|
|
6
|
-
login: string
|
|
7
|
-
password: string
|
|
8
|
-
camera_id: string | null
|
|
9
|
-
comment: string | null
|
|
10
|
-
data: unknown | null
|
|
11
|
-
snapshot_path: string | null
|
|
12
|
-
url: string
|
|
13
|
-
updated_at: string
|
|
14
|
-
created_at: string
|
|
15
|
-
fps: string
|
|
16
|
-
domed: boolean
|
|
17
|
-
height: number
|
|
18
|
-
width: number
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type Api_Work_Zone_Search = {
|
|
22
|
-
id: string
|
|
23
|
-
name: string
|
|
24
|
-
title: string
|
|
25
|
-
type: number
|
|
26
|
-
parent_id: string | null
|
|
27
|
-
created_at: string
|
|
28
|
-
deleted_at: string | null
|
|
29
|
-
updated_at: string
|
|
30
|
-
description: string
|
|
31
|
-
detect_face: boolean
|
|
32
|
-
detect_helmet: boolean
|
|
33
|
-
detect_mask: boolean
|
|
34
|
-
detect_work_time: boolean
|
|
35
|
-
detect_work_zone: boolean
|
|
36
|
-
has_tasks: boolean
|
|
37
|
-
is_parent: boolean
|
|
38
|
-
x0: number
|
|
39
|
-
x1: number
|
|
40
|
-
y0: number
|
|
41
|
-
y1: number
|
|
42
|
-
video_source: Api_Video_Source
|
|
43
|
-
video_source_id: string
|
|
44
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type Api_Work_Zone_Usage_User = {
|
|
48
|
-
id: string
|
|
49
|
-
user_id: string
|
|
50
|
-
user_full_name: string
|
|
51
|
-
work_zone_id: string
|
|
52
|
-
start_interval: string
|
|
53
|
-
end_interval: string
|
|
54
|
-
minutes: number
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type Api_Work_Zone_Task = {
|
|
58
|
-
id: string
|
|
59
|
-
name: string
|
|
60
|
-
plan_date: string
|
|
61
|
-
planned_start: null | string
|
|
62
|
-
planned_end: null | string
|
|
63
|
-
deadline: string
|
|
64
|
-
is_critical_path: boolean | null
|
|
65
|
-
is_expired: boolean
|
|
66
|
-
power_output_MWh: number
|
|
67
|
-
cost_per_MWh: number | null
|
|
68
|
-
fact_start_date: null | string
|
|
69
|
-
fact_end_date: null | string
|
|
70
|
-
time_to_complete_sec: number | null
|
|
71
|
-
status: Api_Status_DTO[]
|
|
72
|
-
usage_users: Api_Work_Zone_Usage_User[]
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type Api_Work_Zone_Coords = {
|
|
76
|
-
x0: number
|
|
77
|
-
x1: number
|
|
78
|
-
y0: number
|
|
79
|
-
y1: number
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export type Api_Work_Zone = {
|
|
83
|
-
id: string
|
|
84
|
-
title: string
|
|
85
|
-
created_at: string
|
|
86
|
-
video_source: { id: string; name: string }
|
|
87
|
-
coordinates: Api_Work_Zone_Coords
|
|
88
|
-
warehouse_by_work_zone_instruments: unknown[]
|
|
89
|
-
tasks: Api_Work_Zone_Task[]
|
|
90
|
-
}
|
|
1
|
+
import { Api_Status_DTO } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
3
|
+
export type Api_Video_Source = {
|
|
4
|
+
id: string
|
|
5
|
+
name: string
|
|
6
|
+
login: string
|
|
7
|
+
password: string
|
|
8
|
+
camera_id: string | null
|
|
9
|
+
comment: string | null
|
|
10
|
+
data: unknown | null
|
|
11
|
+
snapshot_path: string | null
|
|
12
|
+
url: string
|
|
13
|
+
updated_at: string
|
|
14
|
+
created_at: string
|
|
15
|
+
fps: string
|
|
16
|
+
domed: boolean
|
|
17
|
+
height: number
|
|
18
|
+
width: number
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Api_Work_Zone_Search = {
|
|
22
|
+
id: string
|
|
23
|
+
name: string
|
|
24
|
+
title: string
|
|
25
|
+
type: number
|
|
26
|
+
parent_id: string | null
|
|
27
|
+
created_at: string
|
|
28
|
+
deleted_at: string | null
|
|
29
|
+
updated_at: string
|
|
30
|
+
description: string
|
|
31
|
+
detect_face: boolean
|
|
32
|
+
detect_helmet: boolean
|
|
33
|
+
detect_mask: boolean
|
|
34
|
+
detect_work_time: boolean
|
|
35
|
+
detect_work_zone: boolean
|
|
36
|
+
has_tasks: boolean
|
|
37
|
+
is_parent: boolean
|
|
38
|
+
x0: number
|
|
39
|
+
x1: number
|
|
40
|
+
y0: number
|
|
41
|
+
y1: number
|
|
42
|
+
video_source: Api_Video_Source
|
|
43
|
+
video_source_id: string
|
|
44
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type Api_Work_Zone_Usage_User = {
|
|
48
|
+
id: string
|
|
49
|
+
user_id: string
|
|
50
|
+
user_full_name: string
|
|
51
|
+
work_zone_id: string
|
|
52
|
+
start_interval: string
|
|
53
|
+
end_interval: string
|
|
54
|
+
minutes: number
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Api_Work_Zone_Task = {
|
|
58
|
+
id: string
|
|
59
|
+
name: string
|
|
60
|
+
plan_date: string
|
|
61
|
+
planned_start: null | string
|
|
62
|
+
planned_end: null | string
|
|
63
|
+
deadline: string
|
|
64
|
+
is_critical_path: boolean | null
|
|
65
|
+
is_expired: boolean
|
|
66
|
+
power_output_MWh: number
|
|
67
|
+
cost_per_MWh: number | null
|
|
68
|
+
fact_start_date: null | string
|
|
69
|
+
fact_end_date: null | string
|
|
70
|
+
time_to_complete_sec: number | null
|
|
71
|
+
status: Api_Status_DTO[]
|
|
72
|
+
usage_users: Api_Work_Zone_Usage_User[]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type Api_Work_Zone_Coords = {
|
|
76
|
+
x0: number
|
|
77
|
+
x1: number
|
|
78
|
+
y0: number
|
|
79
|
+
y1: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type Api_Work_Zone = {
|
|
83
|
+
id: string
|
|
84
|
+
title: string
|
|
85
|
+
created_at: string
|
|
86
|
+
video_source: { id: string; name: string }
|
|
87
|
+
coordinates: Api_Work_Zone_Coords
|
|
88
|
+
warehouse_by_work_zone_instruments: unknown[]
|
|
89
|
+
tasks: Api_Work_Zone_Task[]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type Api_Video_Source_Search = {
|
|
93
|
+
comment: string
|
|
94
|
+
domed: boolean
|
|
95
|
+
fps: string
|
|
96
|
+
height: number
|
|
97
|
+
id: string
|
|
98
|
+
interactive_zones: unknown
|
|
99
|
+
login: string
|
|
100
|
+
name: string
|
|
101
|
+
password: string
|
|
102
|
+
related_video_sources: unknown[]
|
|
103
|
+
shapes: unknown[]
|
|
104
|
+
snapshot_path: string
|
|
105
|
+
url: string
|
|
106
|
+
video_source: Api_Video_Source_Search[]
|
|
107
|
+
width: number
|
|
108
|
+
work_zones: unknown[]
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type Api_Video_Source_Create = {
|
|
112
|
+
fps: string
|
|
113
|
+
height: number
|
|
114
|
+
login: string
|
|
115
|
+
name: string
|
|
116
|
+
password: string
|
|
117
|
+
url: string
|
|
118
|
+
width: number
|
|
119
|
+
comment?: string
|
|
120
|
+
domed?: boolean
|
|
121
|
+
video_source_ids?: string[]
|
|
122
|
+
snapshot?: string
|
|
123
|
+
}
|
|
@@ -8,17 +8,26 @@
|
|
|
8
8
|
<q-input
|
|
9
9
|
v-model="model"
|
|
10
10
|
filled
|
|
11
|
-
:type="
|
|
11
|
+
:type="inputType"
|
|
12
12
|
:rules="rules"
|
|
13
13
|
:placeholder="placeholder"
|
|
14
14
|
:disable="disable"
|
|
15
15
|
:readonly="readonly"
|
|
16
16
|
:class="inputClass"
|
|
17
17
|
:error="error"
|
|
18
|
+
:autocomplete="autocomplete"
|
|
19
|
+
@blur="emit('blur')"
|
|
18
20
|
>
|
|
19
21
|
<slot />
|
|
20
22
|
<template #append>
|
|
21
23
|
<slot name="append" />
|
|
24
|
+
<q-icon
|
|
25
|
+
v-if="type === 'password'"
|
|
26
|
+
:name="isVisiblePass ? 'visibility' : 'visibility_off'"
|
|
27
|
+
color="primary"
|
|
28
|
+
class="cursor-pointer"
|
|
29
|
+
@click="isVisiblePass = !isVisiblePass"
|
|
30
|
+
/>
|
|
22
31
|
<q-icon
|
|
23
32
|
v-if="clearable && String(model)?.length"
|
|
24
33
|
name="close"
|
|
@@ -40,7 +49,7 @@
|
|
|
40
49
|
</template>
|
|
41
50
|
|
|
42
51
|
<script setup lang="ts">
|
|
43
|
-
import { defineEmits, defineProps, computed } from 'vue'
|
|
52
|
+
import { defineEmits, defineProps, computed, ref } from 'vue'
|
|
44
53
|
import { uuidv4 } from '@/utils/helpers'
|
|
45
54
|
import { notificationSettings } from '@/utils/notification'
|
|
46
55
|
import { QInputProps, useQuasar } from 'quasar'
|
|
@@ -59,20 +68,26 @@ const props = defineProps<
|
|
|
59
68
|
clearable?: boolean
|
|
60
69
|
copyable?: boolean
|
|
61
70
|
error?: boolean
|
|
71
|
+
autocomplete?: string
|
|
62
72
|
}
|
|
63
73
|
>()
|
|
64
74
|
|
|
65
75
|
const emit = defineEmits<{
|
|
66
76
|
(e: 'update:modelValue', val?: string | number | null): void
|
|
77
|
+
(e: 'blur', val?: string | number | null): void
|
|
67
78
|
}>()
|
|
68
79
|
|
|
69
80
|
const $q = useQuasar()
|
|
70
81
|
|
|
82
|
+
const isVisiblePass = ref(false)
|
|
83
|
+
|
|
71
84
|
const model = computed({
|
|
72
85
|
get: () => getValue(props.modelValue),
|
|
73
86
|
set: (newValue?: string | number | null) => emit('update:modelValue', getValue(newValue)),
|
|
74
87
|
})
|
|
75
88
|
|
|
89
|
+
const inputType = computed(() => (props.type === 'password' && isVisiblePass.value ? 'text' : props.type))
|
|
90
|
+
|
|
76
91
|
const getValue = (value?: string | number | null) => {
|
|
77
92
|
if (props.type === 'number') return value ? +value : value
|
|
78
93
|
|