shared-ritm 1.3.37 → 1.3.38-alpha.0

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 (86) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +12594 -12219
  3. package/dist/shared-ritm.umd.js +476 -476
  4. package/dist/types/api/services/AuthService.d.ts +1 -0
  5. package/dist/types/api/services/ControlsService.d.ts +3 -0
  6. package/dist/types/api/services/EquipmentService.d.ts +15 -5
  7. package/dist/types/api/services/GanttService.d.ts +22 -0
  8. package/dist/types/api/services/InstrumentsService.d.ts +6 -1
  9. package/dist/types/api/services/MetricsService.d.ts +5 -1
  10. package/dist/types/api/services/TasksService.d.ts +3 -2
  11. package/dist/types/api/services/UserIssueService.d.ts +15 -0
  12. package/dist/types/api/services/UserService.d.ts +2 -1
  13. package/dist/types/api/settings/ApiService.d.ts +6 -2
  14. package/dist/types/api/types/Api_Auth.d.ts +15 -0
  15. package/dist/types/api/types/Api_Controls.d.ts +1 -0
  16. package/dist/types/api/types/Api_Equipment.d.ts +45 -0
  17. package/dist/types/api/types/Api_Instruments.d.ts +24 -0
  18. package/dist/types/api/types/Api_Metrics.d.ts +69 -0
  19. package/dist/types/api/types/Api_Repairs.d.ts +14 -1
  20. package/dist/types/api/types/Api_Search.d.ts +1 -0
  21. package/dist/types/api/types/Api_User.d.ts +12 -0
  22. package/dist/types/api/types/Api_User_Issue.d.ts +33 -0
  23. package/dist/types/common/app-button/Button.stories.d.ts +13 -0
  24. package/dist/types/common/app-checkbox/Checkbox.stories.d.ts +12 -0
  25. package/dist/types/common/app-date-picker/DatePicker.stories.d.ts +7 -0
  26. package/dist/types/common/app-datepicker/Datepicker.stories.d.ts +10 -0
  27. package/dist/types/common/app-dialogs/Confirm.stories.d.ts +8 -0
  28. package/dist/types/common/app-dropdown/Dropdown.stories.d.ts +8 -0
  29. package/dist/types/common/app-file/File.stories.d.ts +8 -0
  30. package/dist/types/common/app-icon/Icon.stories.d.ts +7 -0
  31. package/dist/types/common/app-input/Input.stories.d.ts +9 -0
  32. package/dist/types/common/app-input-new/InputNew.stories.d.ts +12 -0
  33. package/dist/types/common/app-input-search/InputSearch.stories.d.ts +8 -0
  34. package/dist/types/common/app-loader/Loader.stories.d.ts +8 -0
  35. package/dist/types/common/app-select/Select.stories.d.ts +7 -0
  36. package/dist/types/common/app-table/components/ModalSelect.stories.d.ts +10 -0
  37. package/dist/types/common/app-toggle/Toggle.stories.d.ts +12 -0
  38. package/dist/types/configs/storybook.d.ts +1 -0
  39. package/dist/types/index.d.ts +3 -1
  40. package/dist/types/utils/files.d.ts +2 -0
  41. package/package.json +64 -64
  42. package/src/App.vue +2461 -2461
  43. package/src/api/services/AuthService.ts +53 -53
  44. package/src/api/services/ControlsService.ts +96 -96
  45. package/src/api/services/EquipmentService.ts +29 -29
  46. package/src/api/services/GanttService.ts +23 -23
  47. package/src/api/services/InstrumentsService.ts +68 -68
  48. package/src/api/services/MetricsService.ts +123 -123
  49. package/src/api/services/RepairsService.ts +111 -111
  50. package/src/api/services/TasksService.ts +157 -157
  51. package/src/api/services/UserService.ts +123 -123
  52. package/src/api/services/VideoService.ts +118 -118
  53. package/src/api/settings/ApiService.ts +2 -1
  54. package/src/api/types/Api_Auth.ts +105 -105
  55. package/src/api/types/Api_Controls.ts +111 -111
  56. package/src/api/types/Api_Equipment.ts +3 -3
  57. package/src/api/types/Api_Instruments.ts +156 -156
  58. package/src/api/types/Api_Metrics.ts +5 -5
  59. package/src/api/types/Api_Repairs.ts +186 -186
  60. package/src/api/types/Api_Search.ts +80 -80
  61. package/src/api/types/Api_Tasks.ts +376 -376
  62. package/src/api/types/Api_User.ts +146 -146
  63. package/src/api/types/Api_Video.ts +244 -244
  64. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  65. package/src/common/app-dialogs/AppConfirmDialog.vue +109 -109
  66. package/src/common/app-icon/AppIcon.vue +108 -108
  67. package/src/common/app-input/AppInput.vue +148 -148
  68. package/src/common/app-input-new/AppInputNew.vue +179 -179
  69. package/src/common/app-layout/components/AppLayoutHeader.vue +273 -273
  70. package/src/common/app-modal/index.vue +96 -96
  71. package/src/common/app-select/AppSelect.vue +159 -159
  72. package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
  73. package/src/common/app-sidebar/AppSidebar.vue +174 -174
  74. package/src/common/app-table/AppTable.vue +313 -313
  75. package/src/common/app-table/components/ModalSelect.vue +298 -298
  76. package/src/common/app-table/components/TableModal.vue +367 -367
  77. package/src/common/app-table/controllers/useColumnSelector.ts +45 -45
  78. package/src/common/app-table/controllers/useTableModel.ts +102 -102
  79. package/src/common/app-toggle/AppToggle.vue +24 -24
  80. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  81. package/src/index.ts +131 -131
  82. package/src/shared/styles/general.css +124 -124
  83. package/src/styles/variables.sass +12 -12
  84. package/src/utils/files.ts +19 -19
  85. package/src/utils/helpers.ts +59 -59
  86. package/dist/types/api/services/PhotoService.d.ts +0 -40
@@ -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>
@@ -1,179 +1,179 @@
1
- <template>
2
- <div class="app-input-new">
3
- <label v-if="label" class="app-input-new__label">
4
- {{ label }}
5
- <span v-if="required" class="required">*</span>
6
- </label>
7
-
8
- <q-input
9
- v-model="model"
10
- filled
11
- :type="inputType"
12
- :rules="rules"
13
- :placeholder="placeholder"
14
- :disable="disable"
15
- :readonly="readonly"
16
- :class="inputClass"
17
- :error="error"
18
- :autocomplete="autocomplete"
19
- :debounce="debounce"
20
- :loading="loading"
21
- @blur="emit('blur')"
22
- >
23
- <slot />
24
- <template #append>
25
- <slot name="append" />
26
- <q-icon
27
- v-if="type === 'password'"
28
- :name="isVisiblePass ? 'visibility' : 'visibility_off'"
29
- color="primary"
30
- class="cursor-pointer"
31
- @click="isVisiblePass = !isVisiblePass"
32
- />
33
- <q-icon
34
- v-if="clearable && (model || model === 0)"
35
- name="close"
36
- class="cursor-pointer clear-input"
37
- @click="model = null"
38
- />
39
- <q-btn
40
- v-if="uuid && !disable && !readonly"
41
- flat
42
- no-caps
43
- label="UUID"
44
- size="sm"
45
- class="q-ml-sm uuid-btn"
46
- @click="model = uuidv4()"
47
- />
48
- <q-icon
49
- v-if="copyable"
50
- name="content_copy"
51
- class="cursor-pointer q-ml-sm copy-icon"
52
- color="primary"
53
- :disable="!model"
54
- @click="copyToClipboard"
55
- />
56
- </template>
57
- </q-input>
58
- </div>
59
- </template>
60
-
61
- <script setup lang="ts">
62
- import { defineEmits, defineProps, computed, ref } from 'vue'
63
- import { uuidv4 } from '@/utils/helpers'
64
- import { notificationSettings } from '@/utils/notification'
65
- import { QInputProps, useQuasar } from 'quasar'
66
-
67
- const props = defineProps<
68
- QInputProps & {
69
- modelValue?: string | number | null
70
- label?: string
71
- placeholder?: string
72
- rules?: ((val: string | number | null | undefined) => boolean | string)[]
73
- inputClass?: string
74
- required?: boolean
75
- readonly?: boolean
76
- disable?: boolean
77
- uuid?: boolean
78
- clearable?: boolean
79
- copyable?: boolean
80
- error?: boolean
81
- autocomplete?: string
82
- debounce?: number
83
- loading?: boolean
84
- }
85
- >()
86
-
87
- const emit = defineEmits<{
88
- (e: 'update:modelValue', val?: string | number | null): void
89
- (e: 'blur', val?: string | number | null): void
90
- }>()
91
-
92
- const $q = useQuasar()
93
-
94
- const isVisiblePass = ref(false)
95
-
96
- const model = computed({
97
- get: () => getValue(props.modelValue),
98
- set: (newValue?: string | number | null) => emit('update:modelValue', getValue(newValue)),
99
- })
100
-
101
- const inputType = computed(() => (props.type === 'password' && isVisiblePass.value ? 'text' : props.type))
102
-
103
- const getValue = (value?: string | number | null) => {
104
- if (props.type === 'number') return value ? +value : value
105
-
106
- return value
107
- }
108
-
109
- const copyToClipboard = () => {
110
- if (!model.value && model.value !== 0) return
111
-
112
- navigator.clipboard.writeText(model.value.toString()).then(() => {
113
- $q.notify(notificationSettings('success', 'Данные скопированы'))
114
- })
115
- }
116
- </script>
117
-
118
- <style scoped lang="scss">
119
- .app-input-new {
120
- display: flex;
121
- flex-direction: column;
122
- margin-bottom: 15px;
123
-
124
- &__label {
125
- font-size: 14px;
126
- font-weight: 700;
127
- color: #7d8592;
128
- }
129
-
130
- .required {
131
- color: #f65160;
132
- font-weight: bold;
133
- }
134
-
135
- .clear-input {
136
- color: #d8e0f0;
137
- }
138
-
139
- .uuid-btn {
140
- height: 32px;
141
- padding: 0 10px;
142
- border: 1px solid #3f8cff;
143
- color: #3f8cff;
144
- font-weight: 700;
145
- font-size: 14px;
146
- background: white;
147
- border-radius: 6px;
148
-
149
- :deep(.block) {
150
- line-height: normal;
151
- }
152
- }
153
-
154
- :deep(.q-placeholder) {
155
- color: #7d8592;
156
- }
157
-
158
- :deep(.q-field__control) {
159
- min-height: 58px;
160
- border-radius: 8px;
161
- border: 1px solid #d8e0f0;
162
- background: #fff;
163
- box-shadow: 0 1px 2px 0 rgba(184, 200, 224, 0.22);
164
- }
165
-
166
- :deep(.q-field--filled .q-field__control:before) {
167
- background: #fff !important;
168
- border: none;
169
- }
170
-
171
- :deep(.q-field--with-bottom) {
172
- padding-bottom: 0;
173
- }
174
-
175
- :deep(.q-field__bottom) {
176
- padding: 0;
177
- }
178
- }
179
- </style>
1
+ <template>
2
+ <div class="app-input-new">
3
+ <label v-if="label" class="app-input-new__label">
4
+ {{ label }}
5
+ <span v-if="required" class="required">*</span>
6
+ </label>
7
+
8
+ <q-input
9
+ v-model="model"
10
+ filled
11
+ :type="inputType"
12
+ :rules="rules"
13
+ :placeholder="placeholder"
14
+ :disable="disable"
15
+ :readonly="readonly"
16
+ :class="inputClass"
17
+ :error="error"
18
+ :autocomplete="autocomplete"
19
+ :debounce="debounce"
20
+ :loading="loading"
21
+ @blur="emit('blur')"
22
+ >
23
+ <slot />
24
+ <template #append>
25
+ <slot name="append" />
26
+ <q-icon
27
+ v-if="type === 'password'"
28
+ :name="isVisiblePass ? 'visibility' : 'visibility_off'"
29
+ color="primary"
30
+ class="cursor-pointer"
31
+ @click="isVisiblePass = !isVisiblePass"
32
+ />
33
+ <q-icon
34
+ v-if="clearable && (model || model === 0)"
35
+ name="close"
36
+ class="cursor-pointer clear-input"
37
+ @click="model = null"
38
+ />
39
+ <q-btn
40
+ v-if="uuid && !disable && !readonly"
41
+ flat
42
+ no-caps
43
+ label="UUID"
44
+ size="sm"
45
+ class="q-ml-sm uuid-btn"
46
+ @click="model = uuidv4()"
47
+ />
48
+ <q-icon
49
+ v-if="copyable"
50
+ name="content_copy"
51
+ class="cursor-pointer q-ml-sm copy-icon"
52
+ color="primary"
53
+ :disable="!model"
54
+ @click="copyToClipboard"
55
+ />
56
+ </template>
57
+ </q-input>
58
+ </div>
59
+ </template>
60
+
61
+ <script setup lang="ts">
62
+ import { defineEmits, defineProps, computed, ref } from 'vue'
63
+ import { uuidv4 } from '@/utils/helpers'
64
+ import { notificationSettings } from '@/utils/notification'
65
+ import { QInputProps, useQuasar } from 'quasar'
66
+
67
+ const props = defineProps<
68
+ QInputProps & {
69
+ modelValue?: string | number | null
70
+ label?: string
71
+ placeholder?: string
72
+ rules?: ((val: string | number | null | undefined) => boolean | string)[]
73
+ inputClass?: string
74
+ required?: boolean
75
+ readonly?: boolean
76
+ disable?: boolean
77
+ uuid?: boolean
78
+ clearable?: boolean
79
+ copyable?: boolean
80
+ error?: boolean
81
+ autocomplete?: string
82
+ debounce?: number
83
+ loading?: boolean
84
+ }
85
+ >()
86
+
87
+ const emit = defineEmits<{
88
+ (e: 'update:modelValue', val?: string | number | null): void
89
+ (e: 'blur', val?: string | number | null): void
90
+ }>()
91
+
92
+ const $q = useQuasar()
93
+
94
+ const isVisiblePass = ref(false)
95
+
96
+ const model = computed({
97
+ get: () => getValue(props.modelValue),
98
+ set: (newValue?: string | number | null) => emit('update:modelValue', getValue(newValue)),
99
+ })
100
+
101
+ const inputType = computed(() => (props.type === 'password' && isVisiblePass.value ? 'text' : props.type))
102
+
103
+ const getValue = (value?: string | number | null) => {
104
+ if (props.type === 'number') return value ? +value : value
105
+
106
+ return value
107
+ }
108
+
109
+ const copyToClipboard = () => {
110
+ if (!model.value && model.value !== 0) return
111
+
112
+ navigator.clipboard.writeText(model.value.toString()).then(() => {
113
+ $q.notify(notificationSettings('success', 'Данные скопированы'))
114
+ })
115
+ }
116
+ </script>
117
+
118
+ <style scoped lang="scss">
119
+ .app-input-new {
120
+ display: flex;
121
+ flex-direction: column;
122
+ margin-bottom: 15px;
123
+
124
+ &__label {
125
+ font-size: 14px;
126
+ font-weight: 700;
127
+ color: #7d8592;
128
+ }
129
+
130
+ .required {
131
+ color: #f65160;
132
+ font-weight: bold;
133
+ }
134
+
135
+ .clear-input {
136
+ color: #d8e0f0;
137
+ }
138
+
139
+ .uuid-btn {
140
+ height: 32px;
141
+ padding: 0 10px;
142
+ border: 1px solid #3f8cff;
143
+ color: #3f8cff;
144
+ font-weight: 700;
145
+ font-size: 14px;
146
+ background: white;
147
+ border-radius: 6px;
148
+
149
+ :deep(.block) {
150
+ line-height: normal;
151
+ }
152
+ }
153
+
154
+ :deep(.q-placeholder) {
155
+ color: #7d8592;
156
+ }
157
+
158
+ :deep(.q-field__control) {
159
+ min-height: 58px;
160
+ border-radius: 8px;
161
+ border: 1px solid #d8e0f0;
162
+ background: #fff;
163
+ box-shadow: 0 1px 2px 0 rgba(184, 200, 224, 0.22);
164
+ }
165
+
166
+ :deep(.q-field--filled .q-field__control:before) {
167
+ background: #fff !important;
168
+ border: none;
169
+ }
170
+
171
+ :deep(.q-field--with-bottom) {
172
+ padding-bottom: 0;
173
+ }
174
+
175
+ :deep(.q-field__bottom) {
176
+ padding: 0;
177
+ }
178
+ }
179
+ </style>