@it-enterprise/forcebpm-ui-kit 1.0.2-beta.26 → 1.0.2-beta.27
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/FUserGroupPicker.vue +16 -12
- package/src/assets/scss/input.scss +16 -2
package/package.json
CHANGED
package/src/FUserGroupPicker.vue
CHANGED
|
@@ -432,10 +432,6 @@ const selectMenuItem = id => {
|
|
|
432
432
|
selectedMenuId.value = selectedMenuId.value === id ? null : id
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
const open = () => {
|
|
436
|
-
state.value = true
|
|
437
|
-
}
|
|
438
|
-
|
|
439
435
|
const close = () => {
|
|
440
436
|
state.value = false
|
|
441
437
|
search.value = ''
|
|
@@ -443,10 +439,19 @@ const close = () => {
|
|
|
443
439
|
}
|
|
444
440
|
|
|
445
441
|
const selectHandler = () => {
|
|
446
|
-
if (props.
|
|
447
|
-
|
|
442
|
+
if (props.multiple) {
|
|
443
|
+
if (props.returnObject) {
|
|
444
|
+
modelValue.value = selectedItems.value
|
|
445
|
+
} else {
|
|
446
|
+
modelValue.value = selectedItems.value.map(item => item[props.itemValue])
|
|
447
|
+
}
|
|
448
448
|
} else {
|
|
449
|
-
|
|
449
|
+
const selectedItem = selectedItems.value[0]
|
|
450
|
+
if (props.returnObject) {
|
|
451
|
+
modelValue.value = selectedItem
|
|
452
|
+
} else {
|
|
453
|
+
modelValue.value = selectedItem[props.itemValue]
|
|
454
|
+
}
|
|
450
455
|
}
|
|
451
456
|
|
|
452
457
|
state.value = false
|
|
@@ -459,11 +464,11 @@ watch(tab, () => {
|
|
|
459
464
|
|
|
460
465
|
// Sync with external modelValue changes
|
|
461
466
|
watch(state, newState => {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
selectedGroupIds.value = new Set()
|
|
467
|
+
// Reset
|
|
468
|
+
selectedIds.value = new Set()
|
|
469
|
+
selectedGroupIds.value = new Set()
|
|
466
470
|
|
|
471
|
+
if (newState && modelValue.value) {
|
|
467
472
|
// Populate from modelValue
|
|
468
473
|
const values = Array.isArray(modelValue.value) ? modelValue.value : [modelValue.value]
|
|
469
474
|
for (const val of values) {
|
|
@@ -508,7 +513,6 @@ watch(state, newState => {
|
|
|
508
513
|
no-space
|
|
509
514
|
is-search
|
|
510
515
|
:title="$t('user.executors')"
|
|
511
|
-
@open="open"
|
|
512
516
|
@close="close"
|
|
513
517
|
>
|
|
514
518
|
<div class="user-group-picker">
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
.v-label {
|
|
47
47
|
opacity: 1;
|
|
48
48
|
color: rgb(var(--v-theme-text));
|
|
49
|
+
font-size: 0.95rem;
|
|
50
|
+
&.v-field-label--floating {
|
|
51
|
+
font-size: 0.7rem;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
&.v-field--variant-outlined {
|
|
@@ -73,7 +77,7 @@
|
|
|
73
77
|
padding-top: 16px;
|
|
74
78
|
padding-bottom: 10px;
|
|
75
79
|
padding-inline: 12px 12px;
|
|
76
|
-
min-height:
|
|
80
|
+
min-height: 20px;
|
|
77
81
|
font-size: 0.95em;
|
|
78
82
|
line-height: 1em;
|
|
79
83
|
color: rgb(var(--v-theme-subTitle));
|
|
@@ -84,6 +88,15 @@
|
|
|
84
88
|
border-radius: 5.8px !important;
|
|
85
89
|
}
|
|
86
90
|
}
|
|
91
|
+
input {
|
|
92
|
+
min-height: 20px;
|
|
93
|
+
&:is(:-webkit-autofill, :autofill) {
|
|
94
|
+
-webkit-text-fill-color: rgb(var(--v-theme-subTitle)) !important;
|
|
95
|
+
-webkit-box-shadow: 0 0 0 1000px rgb(var(--v-theme-background)) inset !important;
|
|
96
|
+
background-color: rgb(var(--v-theme-background)) !important;
|
|
97
|
+
border-radius: 5.8px !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
87
100
|
input::placeholder {
|
|
88
101
|
font-size: 0.9em;
|
|
89
102
|
opacity: 0.9;
|
|
@@ -185,8 +198,9 @@
|
|
|
185
198
|
}
|
|
186
199
|
}
|
|
187
200
|
.v-autocomplete__selection {
|
|
201
|
+
height: 20px;
|
|
188
202
|
.f-chip.v-chip {
|
|
189
|
-
--v-chip-height:
|
|
203
|
+
--v-chip-height: 20px;
|
|
190
204
|
padding: 0;
|
|
191
205
|
border-radius: 16.8px;
|
|
192
206
|
font-size: 0.75em;
|