shared-ritm 1.2.104 → 1.2.105

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 (31) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +3025 -3001
  3. package/dist/shared-ritm.umd.js +148 -148
  4. package/dist/types/api/services/BrigadesService.d.ts +18 -0
  5. package/dist/types/api/services/PhotoService.d.ts +38 -51
  6. package/dist/types/api/types/Api_Brigades.d.ts +31 -0
  7. package/dist/types/index.d.ts +3 -1
  8. package/package.json +64 -64
  9. package/src/api/services/BrigadesService.ts +32 -0
  10. package/src/api/services/EquipmentService.ts +29 -29
  11. package/src/api/services/InstrumentsService.ts +22 -22
  12. package/src/api/services/UserService.ts +101 -101
  13. package/src/api/services/VideoService.ts +62 -62
  14. package/src/api/settings/ApiService.ts +126 -123
  15. package/src/api/types/Api_Brigades.ts +36 -0
  16. package/src/api/types/Api_Equipment.ts +3 -3
  17. package/src/api/types/Api_Instruments.ts +98 -98
  18. package/src/api/types/Api_User.ts +117 -117
  19. package/src/api/types/Api_Video.ts +123 -123
  20. package/src/common/app-input-new/AppInputNew.vue +167 -167
  21. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  22. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  23. package/src/common/app-table/AppTable.vue +312 -312
  24. package/src/common/app-table/AppTableLayout.vue +137 -137
  25. package/src/common/app-table/components/ModalSelect.vue +270 -270
  26. package/src/common/app-table/components/TableModal.vue +356 -356
  27. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  28. package/src/index.ts +119 -116
  29. package/src/styles/variables.sass +12 -12
  30. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  31. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -1,167 +1,167 @@
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
- @blur="emit('blur')"
20
- >
21
- <slot />
22
- <template #append>
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
- />
31
- <q-icon
32
- v-if="clearable && String(model)?.length"
33
- name="close"
34
- class="cursor-pointer clear-input"
35
- @click="model = null"
36
- />
37
- <q-btn v-if="uuid" flat no-caps label="UUID" size="sm" class="q-ml-sm uuid-btn" @click="model = uuidv4()" />
38
- <q-icon
39
- v-if="copyable"
40
- name="content_copy"
41
- class="cursor-pointer q-ml-sm copy-icon"
42
- color="primary"
43
- :disable="!model"
44
- @click="copyToClipboard"
45
- />
46
- </template>
47
- </q-input>
48
- </div>
49
- </template>
50
-
51
- <script setup lang="ts">
52
- import { defineEmits, defineProps, computed, ref } from 'vue'
53
- import { uuidv4 } from '@/utils/helpers'
54
- import { notificationSettings } from '@/utils/notification'
55
- import { QInputProps, useQuasar } from 'quasar'
56
-
57
- const props = defineProps<
58
- QInputProps & {
59
- modelValue?: string | number | null
60
- label?: string
61
- placeholder?: string
62
- rules?: ((val: string | number | null | undefined) => boolean | string)[]
63
- inputClass?: string
64
- required?: boolean
65
- readonly?: boolean
66
- disable?: boolean
67
- uuid?: boolean
68
- clearable?: boolean
69
- copyable?: boolean
70
- error?: boolean
71
- autocomplete?: string
72
- }
73
- >()
74
-
75
- const emit = defineEmits<{
76
- (e: 'update:modelValue', val?: string | number | null): void
77
- (e: 'blur', val?: string | number | null): void
78
- }>()
79
-
80
- const $q = useQuasar()
81
-
82
- const isVisiblePass = ref(false)
83
-
84
- const model = computed({
85
- get: () => getValue(props.modelValue),
86
- set: (newValue?: string | number | null) => emit('update:modelValue', getValue(newValue)),
87
- })
88
-
89
- const inputType = computed(() => (props.type === 'password' && isVisiblePass.value ? 'text' : props.type))
90
-
91
- const getValue = (value?: string | number | null) => {
92
- if (props.type === 'number') return value ? +value : value
93
-
94
- return value
95
- }
96
-
97
- const copyToClipboard = () => {
98
- if (!model.value && model.value !== 0) return
99
-
100
- navigator.clipboard.writeText(model.value.toString()).then(() => {
101
- $q.notify(notificationSettings('success', 'Данные скопированы'))
102
- })
103
- }
104
- </script>
105
-
106
- <style scoped lang="scss">
107
- .app-input-new {
108
- display: flex;
109
- flex-direction: column;
110
- margin-bottom: 15px;
111
-
112
- &__label {
113
- font-size: 14px;
114
- font-weight: 700;
115
- color: #7d8592;
116
- }
117
-
118
- .required {
119
- color: #f65160;
120
- font-weight: bold;
121
- }
122
-
123
- .clear-input {
124
- color: #d8e0f0;
125
- }
126
-
127
- .uuid-btn {
128
- height: 32px;
129
- padding: 0 10px;
130
- border: 1px solid #3f8cff;
131
- color: #3f8cff;
132
- font-weight: 700;
133
- font-size: 14px;
134
- background: white;
135
- border-radius: 6px;
136
-
137
- :deep(.block) {
138
- line-height: normal;
139
- }
140
- }
141
-
142
- :deep(.q-placeholder) {
143
- color: #7d8592;
144
- }
145
-
146
- :deep(.q-field__control) {
147
- min-height: 58px;
148
- border-radius: 8px;
149
- border: 1px solid #d8e0f0;
150
- background: #fff;
151
- box-shadow: 0 1px 2px 0 rgba(184, 200, 224, 0.22);
152
- }
153
-
154
- :deep(.q-field--filled .q-field__control:before) {
155
- background: #fff !important;
156
- border: none;
157
- }
158
-
159
- :deep(.q-field--with-bottom) {
160
- padding-bottom: 0;
161
- }
162
-
163
- :deep(.q-field__bottom) {
164
- padding: 0;
165
- }
166
- }
167
- </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
+ @blur="emit('blur')"
20
+ >
21
+ <slot />
22
+ <template #append>
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
+ />
31
+ <q-icon
32
+ v-if="clearable && String(model)?.length"
33
+ name="close"
34
+ class="cursor-pointer clear-input"
35
+ @click="model = null"
36
+ />
37
+ <q-btn v-if="uuid" flat no-caps label="UUID" size="sm" class="q-ml-sm uuid-btn" @click="model = uuidv4()" />
38
+ <q-icon
39
+ v-if="copyable"
40
+ name="content_copy"
41
+ class="cursor-pointer q-ml-sm copy-icon"
42
+ color="primary"
43
+ :disable="!model"
44
+ @click="copyToClipboard"
45
+ />
46
+ </template>
47
+ </q-input>
48
+ </div>
49
+ </template>
50
+
51
+ <script setup lang="ts">
52
+ import { defineEmits, defineProps, computed, ref } from 'vue'
53
+ import { uuidv4 } from '@/utils/helpers'
54
+ import { notificationSettings } from '@/utils/notification'
55
+ import { QInputProps, useQuasar } from 'quasar'
56
+
57
+ const props = defineProps<
58
+ QInputProps & {
59
+ modelValue?: string | number | null
60
+ label?: string
61
+ placeholder?: string
62
+ rules?: ((val: string | number | null | undefined) => boolean | string)[]
63
+ inputClass?: string
64
+ required?: boolean
65
+ readonly?: boolean
66
+ disable?: boolean
67
+ uuid?: boolean
68
+ clearable?: boolean
69
+ copyable?: boolean
70
+ error?: boolean
71
+ autocomplete?: string
72
+ }
73
+ >()
74
+
75
+ const emit = defineEmits<{
76
+ (e: 'update:modelValue', val?: string | number | null): void
77
+ (e: 'blur', val?: string | number | null): void
78
+ }>()
79
+
80
+ const $q = useQuasar()
81
+
82
+ const isVisiblePass = ref(false)
83
+
84
+ const model = computed({
85
+ get: () => getValue(props.modelValue),
86
+ set: (newValue?: string | number | null) => emit('update:modelValue', getValue(newValue)),
87
+ })
88
+
89
+ const inputType = computed(() => (props.type === 'password' && isVisiblePass.value ? 'text' : props.type))
90
+
91
+ const getValue = (value?: string | number | null) => {
92
+ if (props.type === 'number') return value ? +value : value
93
+
94
+ return value
95
+ }
96
+
97
+ const copyToClipboard = () => {
98
+ if (!model.value && model.value !== 0) return
99
+
100
+ navigator.clipboard.writeText(model.value.toString()).then(() => {
101
+ $q.notify(notificationSettings('success', 'Данные скопированы'))
102
+ })
103
+ }
104
+ </script>
105
+
106
+ <style scoped lang="scss">
107
+ .app-input-new {
108
+ display: flex;
109
+ flex-direction: column;
110
+ margin-bottom: 15px;
111
+
112
+ &__label {
113
+ font-size: 14px;
114
+ font-weight: 700;
115
+ color: #7d8592;
116
+ }
117
+
118
+ .required {
119
+ color: #f65160;
120
+ font-weight: bold;
121
+ }
122
+
123
+ .clear-input {
124
+ color: #d8e0f0;
125
+ }
126
+
127
+ .uuid-btn {
128
+ height: 32px;
129
+ padding: 0 10px;
130
+ border: 1px solid #3f8cff;
131
+ color: #3f8cff;
132
+ font-weight: 700;
133
+ font-size: 14px;
134
+ background: white;
135
+ border-radius: 6px;
136
+
137
+ :deep(.block) {
138
+ line-height: normal;
139
+ }
140
+ }
141
+
142
+ :deep(.q-placeholder) {
143
+ color: #7d8592;
144
+ }
145
+
146
+ :deep(.q-field__control) {
147
+ min-height: 58px;
148
+ border-radius: 8px;
149
+ border: 1px solid #d8e0f0;
150
+ background: #fff;
151
+ box-shadow: 0 1px 2px 0 rgba(184, 200, 224, 0.22);
152
+ }
153
+
154
+ :deep(.q-field--filled .q-field__control:before) {
155
+ background: #fff !important;
156
+ border: none;
157
+ }
158
+
159
+ :deep(.q-field--with-bottom) {
160
+ padding-bottom: 0;
161
+ }
162
+
163
+ :deep(.q-field__bottom) {
164
+ padding: 0;
165
+ }
166
+ }
167
+ </style>