shared-ritm 1.2.65 → 1.2.67

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 (33) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +1381 -1371
  3. package/dist/shared-ritm.umd.js +7 -7
  4. package/dist/types/api/services/ControlsService.d.ts +2 -1
  5. package/dist/types/api/services/FileService.d.ts +2 -1
  6. package/dist/types/api/services/MetricsService.d.ts +2 -1
  7. package/dist/types/api/services/ProjectsService.d.ts +2 -1
  8. package/dist/types/api/services/RepairsService.d.ts +2 -1
  9. package/dist/types/api/services/SearchService.d.ts +8 -0
  10. package/dist/types/api/services/TasksService.d.ts +2 -1
  11. package/dist/types/api/settings/ApiService.d.ts +0 -8
  12. package/dist/types/api/types/Api_Search.d.ts +43 -0
  13. package/dist/types/api/types/Api_Service.d.ts +9 -0
  14. package/dist/types/api/types/Api_Users.d.ts +43 -0
  15. package/dist/types/index.d.ts +5 -2
  16. package/package.json +1 -1
  17. package/src/api/services/ControlsService.ts +65 -64
  18. package/src/api/services/FileService.ts +2 -1
  19. package/src/api/services/GanttService.ts +17 -17
  20. package/src/api/services/InstrumentsService.ts +22 -22
  21. package/src/api/services/MetricsService.ts +110 -109
  22. package/src/api/services/ProjectsService.ts +68 -67
  23. package/src/api/services/RepairsService.ts +101 -100
  24. package/src/api/services/SearchService.ts +16 -0
  25. package/src/api/services/TasksService.ts +2 -1
  26. package/src/api/services/VideoService.ts +14 -14
  27. package/src/api/settings/ApiService.ts +0 -9
  28. package/src/api/types/Api_Controls.ts +72 -72
  29. package/src/api/types/Api_Search.ts +48 -0
  30. package/src/api/types/Api_Service.ts +9 -0
  31. package/src/common/app-input/AppInput.vue +148 -148
  32. package/src/index.ts +93 -89
  33. package/src/main.ts +28 -28
@@ -1,72 +1,72 @@
1
- export type Api_User_Dto = {
2
- id: string
3
- full_name: string
4
- }
5
- export type Api_ControlZones_Dto = {
6
- id: string
7
- name: string
8
- inventory_number: string
9
- uuid: string
10
- controller_zone: string
11
- users?: Api_User_Dto[]
12
- }
13
- export type ControlsParams = {
14
- search?: string
15
- page?: number
16
- filter?: Record<string, string[]>
17
- }
18
-
19
- export interface ControlMeta {
20
- total: number
21
- perPage: number
22
- totalPages: number
23
- currentPage: number
24
- }
25
-
26
- export type FiltersValue = {
27
- users?: {
28
- users: Api_User_Dto[]
29
- }
30
- controller?: {
31
- controller: Api_User_Dto[]
32
- }
33
- responsible?: {
34
- responsible: Api_User_Dto[]
35
- }
36
- status?: {
37
- status: boolean
38
- }
39
- }
40
- export type Api_Instrument_Dto = {
41
- id: string
42
- name: string
43
- storage_id?: string
44
- }
45
- export type Api_Warehouse_Dto = {
46
- id: string
47
- invoice_ref_key: string
48
- inventory_number: string
49
- instrument: Api_Instrument_Dto[]
50
- }
51
-
52
- export type Api_ControlLogs_Dto = {
53
- id: string
54
- automatically: string
55
- in_zone: string
56
- uuid: string
57
- controller_zone: string
58
- controller: Api_User_Dto[]
59
- user: Api_User_Dto[]
60
- frame: Api_ControlZones_Dto[]
61
- warehouse: Api_Warehouse_Dto[]
62
- }
63
- export type Api_New_Items = {
64
- title: string
65
- inventory_numbers: string
66
- storage_id: string
67
- }
68
- export type Api_ManualEntry_Dto = {
69
- user: string
70
- items?: string[]
71
- new_items?: Api_New_Items[]
72
- }
1
+ export type Api_User_Dto = {
2
+ id: string
3
+ full_name: string
4
+ }
5
+ export type Api_ControlZones_Dto = {
6
+ id: string
7
+ name: string
8
+ inventory_number: string
9
+ uuid: string
10
+ controller_zone: string
11
+ users?: Api_User_Dto[]
12
+ }
13
+ export type ControlsParams = {
14
+ search?: string
15
+ page?: number
16
+ filter?: Record<string, string[]>
17
+ }
18
+
19
+ export interface ControlMeta {
20
+ total: number
21
+ perPage: number
22
+ totalPages: number
23
+ currentPage: number
24
+ }
25
+
26
+ export type FiltersValue = {
27
+ users?: {
28
+ users: Api_User_Dto[]
29
+ }
30
+ controller?: {
31
+ controller: Api_User_Dto[]
32
+ }
33
+ responsible?: {
34
+ responsible: Api_User_Dto[]
35
+ }
36
+ status?: {
37
+ status: boolean
38
+ }
39
+ }
40
+ export type Api_Instrument_Dto = {
41
+ id: string
42
+ name: string
43
+ storage_id?: string
44
+ }
45
+ export type Api_Warehouse_Dto = {
46
+ id: string
47
+ invoice_ref_key: string
48
+ inventory_number: string
49
+ instrument: Api_Instrument_Dto[]
50
+ }
51
+
52
+ export type Api_ControlLogs_Dto = {
53
+ id: string
54
+ automatically: string
55
+ in_zone: string
56
+ uuid: string
57
+ controller_zone: string
58
+ controller: Api_User_Dto[]
59
+ user: Api_User_Dto[]
60
+ frame: Api_ControlZones_Dto[]
61
+ warehouse: Api_Warehouse_Dto[]
62
+ }
63
+ export type Api_New_Items = {
64
+ title: string
65
+ inventory_numbers: string
66
+ storage_id: string
67
+ }
68
+ export type Api_ManualEntry_Dto = {
69
+ user: string
70
+ items?: string[]
71
+ new_items?: Api_New_Items[]
72
+ }
@@ -0,0 +1,48 @@
1
+ export type Api_Search_User_Passes = {
2
+ id: string
3
+ type: string
4
+ uuid: string
5
+ }
6
+
7
+ export type Api_Search_User_Positions = {
8
+ id: string
9
+ name: string
10
+ display_name: string
11
+ description: string
12
+ }
13
+
14
+ export type Api_Search_User_Roles = {
15
+ id: string
16
+ name: string
17
+ display_name: string
18
+ }
19
+
20
+ export type Api_Search_User_Teams = {
21
+ id: string
22
+ name: string
23
+ display_name: string
24
+ roles: Api_Search_User_Roles[]
25
+ }
26
+
27
+ export type Api_Search_User_Photos = {
28
+ id: string
29
+ name: string
30
+ path: string
31
+ type: string
32
+ }
33
+
34
+ export type Api_Search_User = {
35
+ id: string
36
+ full_name: string
37
+ last_name: string
38
+ first_name: string
39
+ patronymic: string
40
+ email: string
41
+ phone: string
42
+ divisions: string
43
+ personnel_number: string
44
+ passes: Api_Search_User_Passes[]
45
+ positions: Api_Search_User_Positions[]
46
+ teams: Api_Search_User_Teams[]
47
+ photos: Api_Search_User_Photos[]
48
+ }
@@ -0,0 +1,9 @@
1
+ export type ResponseApi<T> = {
2
+ count: number
3
+ current_page: number
4
+ data: T
5
+ per_page: number
6
+ total: number
7
+ total_pages: number
8
+ filter_value?: string
9
+ }
@@ -1,148 +1,148 @@
1
- <template>
2
- <q-input
3
- v-model="value"
4
- :class="[inputClasses, $style['app-input']]"
5
- standout
6
- outlined
7
- dense
8
- :rules="rules"
9
- :type="inputType"
10
- autocomplete="h87h58g7h8hd"
11
- :readonly="readonly || field"
12
- :disable="disabled"
13
- :placeholder="placeholder"
14
- >
15
- </q-input>
16
- </template>
17
-
18
- <script lang="ts" setup>
19
- import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
20
-
21
- interface AppQInputProps {
22
- name?: string | undefined
23
- mask?: string | undefined
24
- fillMask?: boolean | string | undefined
25
- reverseFillMask?: boolean | undefined
26
- unmaskedValue?: boolean | undefined
27
- modelValue: string | number | null | undefined
28
- error?: boolean | undefined
29
- errorMessage?: string | undefined
30
- noErrorIcon?: boolean | undefined
31
- rules?: any | undefined
32
- reactiveRules?: boolean | undefined
33
- lazyRules?: boolean | 'ondemand' | undefined
34
- label?: string | undefined
35
- stackLabel?: boolean | undefined
36
- hint?: string | undefined
37
- hideHint?: boolean | undefined
38
- prefix?: string | undefined
39
- suffix?: string | undefined
40
- labelColor?: string | undefined
41
- color?: string | undefined
42
- bgColor?: string | undefined
43
- dark?: boolean | undefined
44
- loading?: boolean | undefined
45
- clearable?: boolean | undefined
46
- clearIcon?: string | undefined
47
- filled?: boolean | undefined
48
- outlined?: boolean | undefined
49
- borderless?: boolean | undefined
50
- standout?: boolean | string | undefined
51
- labelSlot?: boolean | undefined
52
- bottomSlots?: boolean | undefined
53
- hideBottomSpace?: boolean | undefined
54
- counter?: boolean | undefined
55
- rounded?: boolean | undefined
56
- square?: boolean | undefined
57
- dense?: boolean | undefined
58
- itemAligned?: boolean | undefined
59
- disable?: boolean | undefined
60
- readonly?: boolean | undefined
61
- autofocus?: boolean | undefined
62
- for?: string | undefined
63
- shadowText?: string | undefined
64
- type?:
65
- | 'text'
66
- | 'password'
67
- | 'textarea'
68
- | 'email'
69
- | 'search'
70
- | 'tel'
71
- | 'file'
72
- | 'number'
73
- | 'url'
74
- | 'time'
75
- | 'date'
76
- | undefined
77
- debounce?: string | number | undefined
78
- disabled?: boolean | undefined
79
- maxlength?: string | number | undefined
80
- autogrow?: boolean | undefined
81
- inputClass?: any | undefined
82
- inputStyle?: any | undefined
83
- onClear?: (value: any) => void
84
- 'onUpdate:modelValue'?: (value: string | number | null) => void
85
- onFocus?: (evt: Event) => void
86
- onBlur?: (evt: Event) => void
87
- onClick?: (evt: Event) => void
88
- placeholder?: string | undefined
89
- }
90
-
91
- interface AppInputProps extends AppQInputProps {
92
- field?: boolean
93
- required?: boolean
94
- datePicker?: boolean
95
- timePicker?: boolean
96
- withIcon?: boolean
97
- withButton?: boolean
98
- withArrow?: boolean
99
- borderColor?: string
100
- borderRadius?: string
101
- borderWidth?: string
102
- width?: string
103
- height?: string
104
- }
105
-
106
- const props = withDefaults(defineProps<AppInputProps>(), {
107
- dense: true,
108
- outlined: true,
109
- error: undefined,
110
- modelValue: '',
111
- borderRadius: '8px',
112
- borderWidth: '1px',
113
- width: 'auto',
114
- height: 'auto',
115
- })
116
-
117
- const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
118
- const passwordVisibility = ref(false)
119
- const inputType = computed(() => {
120
- if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
121
- return props.type || 'text'
122
- })
123
-
124
- const value = computed({
125
- get: () =>
126
- props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
127
- ? +props.modelValue
128
- : props.modelValue,
129
- set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
130
- })
131
-
132
- const inputClasses = computed(() => {
133
- return {
134
- 'app-input': true,
135
- '--required': props.required,
136
- '--field': props.field,
137
- 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
138
- }
139
- })
140
- </script>
141
-
142
- <style module lang="scss">
143
- .app-input {
144
- &:global(.q-field--dense .q-field__control) {
145
- height: v-bind(height);
146
- }
147
- }
148
- </style>
1
+ <template>
2
+ <q-input
3
+ v-model="value"
4
+ :class="[inputClasses, $style['app-input']]"
5
+ standout
6
+ outlined
7
+ dense
8
+ :rules="rules"
9
+ :type="inputType"
10
+ autocomplete="h87h58g7h8hd"
11
+ :readonly="readonly || field"
12
+ :disable="disabled"
13
+ :placeholder="placeholder"
14
+ >
15
+ </q-input>
16
+ </template>
17
+
18
+ <script lang="ts" setup>
19
+ import { defineProps, defineEmits, computed, ref, withDefaults } from 'vue'
20
+
21
+ interface AppQInputProps {
22
+ name?: string | undefined
23
+ mask?: string | undefined
24
+ fillMask?: boolean | string | undefined
25
+ reverseFillMask?: boolean | undefined
26
+ unmaskedValue?: boolean | undefined
27
+ modelValue: string | number | null | undefined
28
+ error?: boolean | undefined
29
+ errorMessage?: string | undefined
30
+ noErrorIcon?: boolean | undefined
31
+ rules?: any | undefined
32
+ reactiveRules?: boolean | undefined
33
+ lazyRules?: boolean | 'ondemand' | undefined
34
+ label?: string | undefined
35
+ stackLabel?: boolean | undefined
36
+ hint?: string | undefined
37
+ hideHint?: boolean | undefined
38
+ prefix?: string | undefined
39
+ suffix?: string | undefined
40
+ labelColor?: string | undefined
41
+ color?: string | undefined
42
+ bgColor?: string | undefined
43
+ dark?: boolean | undefined
44
+ loading?: boolean | undefined
45
+ clearable?: boolean | undefined
46
+ clearIcon?: string | undefined
47
+ filled?: boolean | undefined
48
+ outlined?: boolean | undefined
49
+ borderless?: boolean | undefined
50
+ standout?: boolean | string | undefined
51
+ labelSlot?: boolean | undefined
52
+ bottomSlots?: boolean | undefined
53
+ hideBottomSpace?: boolean | undefined
54
+ counter?: boolean | undefined
55
+ rounded?: boolean | undefined
56
+ square?: boolean | undefined
57
+ dense?: boolean | undefined
58
+ itemAligned?: boolean | undefined
59
+ disable?: boolean | undefined
60
+ readonly?: boolean | undefined
61
+ autofocus?: boolean | undefined
62
+ for?: string | undefined
63
+ shadowText?: string | undefined
64
+ type?:
65
+ | 'text'
66
+ | 'password'
67
+ | 'textarea'
68
+ | 'email'
69
+ | 'search'
70
+ | 'tel'
71
+ | 'file'
72
+ | 'number'
73
+ | 'url'
74
+ | 'time'
75
+ | 'date'
76
+ | undefined
77
+ debounce?: string | number | undefined
78
+ disabled?: boolean | undefined
79
+ maxlength?: string | number | undefined
80
+ autogrow?: boolean | undefined
81
+ inputClass?: any | undefined
82
+ inputStyle?: any | undefined
83
+ onClear?: (value: any) => void
84
+ 'onUpdate:modelValue'?: (value: string | number | null) => void
85
+ onFocus?: (evt: Event) => void
86
+ onBlur?: (evt: Event) => void
87
+ onClick?: (evt: Event) => void
88
+ placeholder?: string | undefined
89
+ }
90
+
91
+ interface AppInputProps extends AppQInputProps {
92
+ field?: boolean
93
+ required?: boolean
94
+ datePicker?: boolean
95
+ timePicker?: boolean
96
+ withIcon?: boolean
97
+ withButton?: boolean
98
+ withArrow?: boolean
99
+ borderColor?: string
100
+ borderRadius?: string
101
+ borderWidth?: string
102
+ width?: string
103
+ height?: string
104
+ }
105
+
106
+ const props = withDefaults(defineProps<AppInputProps>(), {
107
+ dense: true,
108
+ outlined: true,
109
+ error: undefined,
110
+ modelValue: '',
111
+ borderRadius: '8px',
112
+ borderWidth: '1px',
113
+ width: 'auto',
114
+ height: 'auto',
115
+ })
116
+
117
+ const emit = defineEmits(['update:modelValue', 'button-click', 'clear', 'focus', 'blur', 'click'])
118
+ const passwordVisibility = ref(false)
119
+ const inputType = computed(() => {
120
+ if (props.type === 'password') return passwordVisibility.value ? 'text' : 'password'
121
+ return props.type || 'text'
122
+ })
123
+
124
+ const value = computed({
125
+ get: () =>
126
+ props.modelValue !== null && props.modelValue !== undefined && props.type === 'number'
127
+ ? +props.modelValue
128
+ : props.modelValue,
129
+ set: (newValue: any) => emit('update:modelValue', props.type === 'number' ? +newValue : newValue),
130
+ })
131
+
132
+ const inputClasses = computed(() => {
133
+ return {
134
+ 'app-input': true,
135
+ '--required': props.required,
136
+ '--field': props.field,
137
+ 'input-number-without-arrow': inputType.value === 'number' && !props.withArrow,
138
+ }
139
+ })
140
+ </script>
141
+
142
+ <style module lang="scss">
143
+ .app-input {
144
+ &:global(.q-field--dense .q-field__control) {
145
+ height: v-bind(height);
146
+ }
147
+ }
148
+ </style>