@it-enterprise/forcebpm-ui-kit 1.0.2-beta.34 → 1.0.2-beta.35
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/package.json +1 -1
- package/src/assets/icons/calendar.svg +3 -0
- package/src/assets/scss/buttons.scss +9 -0
- package/src/assets/scss/icons.scss +7 -0
- package/src/assets/scss/index.scss +1 -0
- package/src/assets/scss/input.scss +17 -1
- package/src/assets/scss/list.scss +64 -0
- package/src/assets/scss/overlay.scss +5 -0
- package/src/f-date-picker/FDatePicker.vue +23 -44
- package/src/locales/en.json +1 -0
- package/src/locales/ru.json +1 -0
- package/src/locales/uk.json +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.64258 1.6H11.0426V0H12.6426V1.6H13.4426C13.8669 1.6 14.2739 1.76857 14.5739 2.06863C14.874 2.36869 15.0426 2.77565 15.0426 3.2V14.4C15.0426 14.8243 14.874 15.2313 14.5739 15.5314C14.2739 15.8314 13.8669 16 13.4426 16H2.24258C1.81823 16 1.41127 15.8314 1.11121 15.5314C0.811149 15.2313 0.642578 14.8243 0.642578 14.4V3.2C0.642578 2.77565 0.811149 2.36869 1.11121 2.06863C1.41127 1.76857 1.81823 1.6 2.24258 1.6H3.04258V0H4.64258V1.6ZM2.24258 4.8V14.4H13.4426V4.8H2.24258ZM3.84258 7.2H5.44258V8.8H3.84258V7.2ZM7.04258 7.2H8.64258V8.8H7.04258V7.2ZM10.2426 7.2H11.8426V8.8H10.2426V7.2ZM10.2426 10.4H11.8426V12H10.2426V10.4ZM7.04258 10.4H8.64258V12H7.04258V10.4ZM3.84258 10.4H5.44258V12H3.84258V10.4Z" fill="#97A7C8"/>
|
|
3
|
+
</svg>
|
|
@@ -295,6 +295,13 @@
|
|
|
295
295
|
mask-size: contain;
|
|
296
296
|
mask-position: center;
|
|
297
297
|
}
|
|
298
|
+
&.calendar {
|
|
299
|
+
background-color: rgb(var(--v-theme-primary));
|
|
300
|
+
-webkit-mask: url('./../icons/calendar.svg') no-repeat;
|
|
301
|
+
mask: url('./../icons/calendar.svg') no-repeat;
|
|
302
|
+
mask-size: contain;
|
|
303
|
+
mask-position: center;
|
|
304
|
+
}
|
|
298
305
|
}
|
|
299
306
|
|
|
300
307
|
@media screen and (max-width: 1280px) {
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
--v-chip-height: 20px;
|
|
213
213
|
padding: 0;
|
|
214
214
|
border-radius: 16.8px;
|
|
215
|
-
font-size: 0.
|
|
215
|
+
font-size: 0.85em;
|
|
216
216
|
background: rgb(var(--v-theme-line));
|
|
217
217
|
color: rgb(var(--v-theme-subTitle));
|
|
218
218
|
.v-chip__close {
|
|
@@ -230,6 +230,20 @@
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
+
// File Input
|
|
234
|
+
.f-input.v-file-input {
|
|
235
|
+
.v-field .v-field__input {
|
|
236
|
+
padding-top: 14px;
|
|
237
|
+
}
|
|
238
|
+
.f-chip.v-chip {
|
|
239
|
+
--v-chip-height: 20px;
|
|
240
|
+
border-radius: 16.8px;
|
|
241
|
+
font-size: 0.85em;
|
|
242
|
+
background: rgb(var(--v-theme-line));
|
|
243
|
+
color: rgb(var(--v-theme-subTitle));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
233
247
|
// Checkbox
|
|
234
248
|
.f-checkbox {
|
|
235
249
|
.v-input__control {
|
|
@@ -252,7 +266,9 @@
|
|
|
252
266
|
}
|
|
253
267
|
}
|
|
254
268
|
.v-label {
|
|
269
|
+
font-size: 0.95em;
|
|
255
270
|
line-height: var(--v-selection-control-size);
|
|
271
|
+
margin-left: 6px;
|
|
256
272
|
}
|
|
257
273
|
}
|
|
258
274
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.v-list {
|
|
2
|
+
//Treeview
|
|
3
|
+
&.v-treeview.f-treeview {
|
|
4
|
+
padding-right: 8px;
|
|
5
|
+
&::-webkit-scrollbar {
|
|
6
|
+
height: 6px;
|
|
7
|
+
width: 6px;
|
|
8
|
+
}
|
|
9
|
+
&::-webkit-scrollbar-track {
|
|
10
|
+
border-radius: 10.8px;
|
|
11
|
+
box-shadow: inset 0 0 6px rgba(var(--v-theme-disabled));
|
|
12
|
+
}
|
|
13
|
+
&::-webkit-scrollbar-thumb {
|
|
14
|
+
border-top: 0px solid rgba(0, 0, 0, 0);
|
|
15
|
+
border-bottom: 0px solid rgba(0, 0, 0, 0);
|
|
16
|
+
background-clip: padding-box;
|
|
17
|
+
border-radius: 10.8px;
|
|
18
|
+
height: 50px;
|
|
19
|
+
background-color: rgba(var(--v-theme-disabled));
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: rgba(var(--v-theme-primary));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.v-treeview-group {
|
|
25
|
+
min-height: auto;
|
|
26
|
+
}
|
|
27
|
+
.v-treeview-item {
|
|
28
|
+
min-height: 20px;
|
|
29
|
+
padding: 5px 0px;
|
|
30
|
+
color: rgba(var(--v-theme-subTitle));
|
|
31
|
+
.v-list-item__prepend {
|
|
32
|
+
.v-list-item-action--start {
|
|
33
|
+
margin-inline-end: 8px;
|
|
34
|
+
margin-inline-start: 4px;
|
|
35
|
+
}
|
|
36
|
+
.v-treeview-item__level {
|
|
37
|
+
width: 18px;
|
|
38
|
+
}
|
|
39
|
+
.v-btn {
|
|
40
|
+
width: 18px;
|
|
41
|
+
height: 18px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.v-list-item__content {
|
|
45
|
+
.v-list-item-title {
|
|
46
|
+
font-size: 1em;
|
|
47
|
+
line-height: 1.2em;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
&.v-list-item--active {
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: rgba(var(--v-theme-title));
|
|
53
|
+
.v-list-item__overlay {
|
|
54
|
+
background: rgba(var(--v-theme-primary));
|
|
55
|
+
}
|
|
56
|
+
.v-list-item__content {
|
|
57
|
+
.v-list-item-title {
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -161,12 +161,12 @@ const updateDateHandler = value => {
|
|
|
161
161
|
<!-- Time picker -->
|
|
162
162
|
<div v-if="type === 'datetime'" class="d-flex mt-5 font-weight-semibold f-date-picker-footer-time">
|
|
163
163
|
<span class="mr-2">{{ $t('pickers.time') }}:</span>
|
|
164
|
-
<v-menu offset="
|
|
164
|
+
<v-menu offset="6" location="top" content-class="time-picker-content" :close-on-content-click="false">
|
|
165
165
|
<template #activator="{ props: activatorProps }">
|
|
166
|
-
<div class="time pointer" v-bind="activatorProps">{{ time }}</div>
|
|
166
|
+
<div class="time cursor-pointer" v-bind="activatorProps">{{ time }}</div>
|
|
167
167
|
</template>
|
|
168
168
|
|
|
169
|
-
<v-time-picker v-model="time" hide-title scrollable format="24hr" @update:model-value="updateDateHandler" />
|
|
169
|
+
<v-time-picker v-model="time" hide-title scrollable format="24hr" variant="input" @update:model-value="updateDateHandler" />
|
|
170
170
|
</v-menu>
|
|
171
171
|
</div>
|
|
172
172
|
|
|
@@ -258,65 +258,44 @@ const updateDateHandler = value => {
|
|
|
258
258
|
.v-time-picker {
|
|
259
259
|
min-width: 290px;
|
|
260
260
|
:deep(.v-picker__header) {
|
|
261
|
-
padding:
|
|
261
|
+
padding: 20px 0 12px;
|
|
262
262
|
background: rgb(var(--v-theme-background-dark));
|
|
263
263
|
.v-time-picker-controls {
|
|
264
|
+
margin: 0;
|
|
265
|
+
margin-inline: 0;
|
|
266
|
+
font-size: 0.9em;
|
|
264
267
|
.v-time-picker-controls__time__field {
|
|
265
268
|
height: auto;
|
|
266
269
|
.v-field {
|
|
267
270
|
font-size: 32px;
|
|
268
|
-
background-color: rgb(var(--v-theme-fields));
|
|
271
|
+
background-color: rgb(var(--v-theme-fields-light));
|
|
272
|
+
.v-field__overlay {
|
|
273
|
+
opacity: 0;
|
|
274
|
+
}
|
|
269
275
|
.v-field__input {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
color: rgb(var(--v-theme-title-dark));
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
&.v-time-picker-controls__time__field--active {
|
|
280
|
+
.v-field {
|
|
281
|
+
.v-field__overlay {
|
|
282
|
+
opacity: 0;
|
|
283
|
+
}
|
|
273
284
|
}
|
|
274
285
|
}
|
|
275
286
|
}
|
|
276
287
|
.v-time-picker-controls__field-label {
|
|
277
288
|
opacity: 1;
|
|
289
|
+
font-size: 1.1em;
|
|
290
|
+
color: rgb(var(--v-theme-fields-light));
|
|
278
291
|
}
|
|
279
292
|
.v-time-picker-controls__time__separator {
|
|
280
|
-
font-size:
|
|
281
|
-
line-height:
|
|
293
|
+
font-size: 68px;
|
|
294
|
+
line-height: 68px;
|
|
282
295
|
color: rgb(var(--v-theme-fields-light));
|
|
283
296
|
}
|
|
284
297
|
}
|
|
285
298
|
}
|
|
286
|
-
:deep(.v-picker__body) {
|
|
287
|
-
.v-time-picker-clock {
|
|
288
|
-
margin: 20px;
|
|
289
|
-
background: rgb(var(--v-theme-line));
|
|
290
|
-
.v-time-picker-clock__hand {
|
|
291
|
-
background: rgb(var(--v-theme-secondary));
|
|
292
|
-
&::before {
|
|
293
|
-
border-color: rgb(var(--v-theme-secondary));
|
|
294
|
-
}
|
|
295
|
-
&::after {
|
|
296
|
-
background: rgb(var(--v-theme-secondary));
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
.v-time-picker-clock__item {
|
|
300
|
-
color: rgb(var(--v-theme-text));
|
|
301
|
-
font-size: 14px;
|
|
302
|
-
height: 28px;
|
|
303
|
-
width: 28px;
|
|
304
|
-
&.v-time-picker-clock__item--active {
|
|
305
|
-
color: rgb(var(--v-theme-fields));
|
|
306
|
-
background: rgb(var(--v-theme-secondary));
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
.v-theme--dark {
|
|
314
|
-
.time-picker-content {
|
|
315
|
-
.v-time-picker {
|
|
316
|
-
:deep(.v-picker__header) {
|
|
317
|
-
border-bottom: 1px solid rgb(var(--v-theme-line));
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
299
|
}
|
|
321
300
|
}
|
|
322
301
|
</style>
|
package/src/locales/en.json
CHANGED
package/src/locales/ru.json
CHANGED