@blueking/bk-user-selector 0.0.38-beta.1 → 0.0.38
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 +2 -2
- package/typings/api/user.d.ts +8 -8
- package/typings/components/multiple-selector.vue.d.ts +4 -4
- package/typings/components/selection-popover.vue.d.ts +3 -3
- package/typings/components/single-selector.vue.d.ts +3 -3
- package/typings/components/user-selector.vue.d.ts +4 -4
- package/typings/components/user-tag.vue.d.ts +20 -20
- package/typings/hooks/use-jsonp.d.ts +5 -5
- package/typings/hooks/useUserSearch.d.ts +1 -1
- package/typings/types/index.d.ts +100 -100
- package/typings/utils/common.d.ts +1 -1
- package/vue2/index.es.min.js +196 -54
- package/vue2/index.iife.min.js +196 -54
- package/vue2/index.umd.min.js +196 -54
- package/vue2/vue2.css +39 -39
- package/vue3/index.es.min.js +50 -49
- package/vue3/index.iife.min.js +196 -54
- package/vue3/index.umd.min.js +51 -50
- package/vue3/vue3.css +39 -39
package/vue2/vue2.css
CHANGED
|
@@ -797,7 +797,7 @@ optgroup {
|
|
|
797
797
|
line-height: 0;
|
|
798
798
|
cursor: pointer;
|
|
799
799
|
}
|
|
800
|
-
.me-tag[data-v-
|
|
800
|
+
.me-tag[data-v-44fec2ba] {
|
|
801
801
|
position: absolute;
|
|
802
802
|
top: 50%;
|
|
803
803
|
right: 8px;
|
|
@@ -810,83 +810,83 @@ optgroup {
|
|
|
810
810
|
padding: 0 8px;
|
|
811
811
|
font-size: 12px;
|
|
812
812
|
color: #4d4f56;
|
|
813
|
-
white-space: nowrap;
|
|
814
813
|
cursor: pointer;
|
|
815
814
|
background-color: #e1ecff;
|
|
816
815
|
border-radius: 50%;
|
|
817
816
|
transform: translateY(-50%);
|
|
817
|
+
white-space: nowrap;
|
|
818
818
|
}
|
|
819
|
-
.me-tag[data-v-
|
|
819
|
+
.me-tag[data-v-44fec2ba]:hover {
|
|
820
820
|
color: #3a84ff;
|
|
821
821
|
background-color: #cddffe;
|
|
822
822
|
}
|
|
823
|
-
.me-tag.disabled[data-v-
|
|
823
|
+
.me-tag.disabled[data-v-44fec2ba] {
|
|
824
824
|
color: #c4c6cc;
|
|
825
825
|
cursor: not-allowed;
|
|
826
826
|
background-color: #f0f1f5;
|
|
827
|
-
}.dropdown-content[data-v-
|
|
827
|
+
}.dropdown-content[data-v-e11d7af7] {
|
|
828
828
|
min-height: 40px;
|
|
829
829
|
max-height: 300px;
|
|
830
830
|
padding: 5px 0;
|
|
831
831
|
overflow-y: auto;
|
|
832
832
|
}
|
|
833
|
-
.dropdown-content .no-data[data-v-
|
|
833
|
+
.dropdown-content .no-data[data-v-e11d7af7] {
|
|
834
834
|
padding: 10px;
|
|
835
835
|
color: #979ba5;
|
|
836
836
|
text-align: center;
|
|
837
837
|
}
|
|
838
|
-
.dropdown-content .user-group .group-header[data-v-
|
|
838
|
+
.dropdown-content .user-group .group-header[data-v-e11d7af7] {
|
|
839
839
|
display: flex;
|
|
840
840
|
align-items: center;
|
|
841
841
|
padding: 8px 12px;
|
|
842
842
|
color: #979ba5;
|
|
843
843
|
}
|
|
844
|
-
.dropdown-content .user-group .group-header .group-count[data-v-
|
|
844
|
+
.dropdown-content .user-group .group-header .group-count[data-v-e11d7af7] {
|
|
845
845
|
margin-left: 4px;
|
|
846
846
|
}
|
|
847
|
-
.dropdown-content .user-option[data-v-
|
|
847
|
+
.dropdown-content .user-option[data-v-e11d7af7] {
|
|
848
848
|
display: flex;
|
|
849
849
|
align-items: center;
|
|
850
850
|
height: 32px;
|
|
851
851
|
padding: 8px 12px;
|
|
852
852
|
cursor: pointer;
|
|
853
853
|
}
|
|
854
|
-
.dropdown-content .user-option[data-v-
|
|
854
|
+
.dropdown-content .user-option[data-v-e11d7af7]:hover {
|
|
855
855
|
background-color: #f5f7fa;
|
|
856
856
|
}.bk-user-selector-popover.bk-user-selector-pop2-content {
|
|
857
857
|
padding: 0;
|
|
858
|
-
}.user-tag[data-v-
|
|
858
|
+
}.user-tag[data-v-3ff46050] {
|
|
859
859
|
margin-right: 4px;
|
|
860
860
|
margin-left: 0;
|
|
861
861
|
}
|
|
862
|
-
.user-tag.draggable[data-v-
|
|
862
|
+
.user-tag.draggable[data-v-3ff46050] {
|
|
863
863
|
cursor: move;
|
|
864
864
|
}
|
|
865
|
-
.user-tag.active[data-v-
|
|
865
|
+
.user-tag.active[data-v-3ff46050] {
|
|
866
866
|
background-color: #e1ecff;
|
|
867
867
|
border-color: #3a84ff;
|
|
868
868
|
}
|
|
869
|
-
.user-tag.is-custom[data-v-
|
|
869
|
+
.user-tag.is-custom[data-v-3ff46050] {
|
|
870
870
|
color: #ea3636;
|
|
871
871
|
background-color: #feebea;
|
|
872
872
|
border-color: rgba(234, 53, 54, 0.3019607843);
|
|
873
873
|
}
|
|
874
|
-
.user-tag.is-custom[data-v-
|
|
874
|
+
.user-tag.is-custom[data-v-3ff46050]:hover {
|
|
875
875
|
background-color: #fedddc;
|
|
876
876
|
}
|
|
877
|
-
.user-tag .tag-content .user-name[data-v-
|
|
877
|
+
.user-tag .tag-content .user-name[data-v-3ff46050] {
|
|
878
878
|
overflow: hidden;
|
|
879
|
-
text-overflow: ellipsis;
|
|
880
879
|
font-size: 12px;
|
|
880
|
+
text-overflow: ellipsis;
|
|
881
881
|
white-space: nowrap;
|
|
882
|
-
}.multiple-selector[data-v-
|
|
882
|
+
}.multiple-selector[data-v-49f3716b] {
|
|
883
883
|
position: relative;
|
|
884
884
|
width: 100%;
|
|
885
885
|
}
|
|
886
|
-
.multiple-selector.is-disabled[data-v-
|
|
886
|
+
.multiple-selector.is-disabled[data-v-49f3716b] {
|
|
887
887
|
pointer-events: none;
|
|
888
888
|
}
|
|
889
|
-
.multiple-selector .tags-container[data-v-
|
|
889
|
+
.multiple-selector .tags-container[data-v-49f3716b] {
|
|
890
890
|
min-height: 32px;
|
|
891
891
|
padding: 1px 10px 1px 8px;
|
|
892
892
|
background-color: #fff;
|
|
@@ -894,51 +894,51 @@ optgroup {
|
|
|
894
894
|
border-radius: 2px;
|
|
895
895
|
transition: all 0.2s ease;
|
|
896
896
|
}
|
|
897
|
-
.multiple-selector .tags-container.focused[data-v-
|
|
897
|
+
.multiple-selector .tags-container.focused[data-v-49f3716b] {
|
|
898
898
|
border-color: #3a84ff;
|
|
899
899
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
900
900
|
}
|
|
901
|
-
.multiple-selector .tags-container.collapsed[data-v-
|
|
901
|
+
.multiple-selector .tags-container.collapsed[data-v-49f3716b] {
|
|
902
902
|
display: flex;
|
|
903
903
|
flex-wrap: wrap;
|
|
904
904
|
align-items: center;
|
|
905
905
|
}
|
|
906
|
-
.multiple-selector .tag-list[data-v-
|
|
906
|
+
.multiple-selector .tag-list[data-v-49f3716b] {
|
|
907
907
|
display: flex;
|
|
908
908
|
flex-wrap: wrap;
|
|
909
909
|
align-items: center;
|
|
910
910
|
}
|
|
911
|
-
.multiple-selector .tag-wrapper[data-v-
|
|
911
|
+
.multiple-selector .tag-wrapper[data-v-49f3716b] {
|
|
912
912
|
display: inline-flex;
|
|
913
913
|
align-items: center;
|
|
914
914
|
max-width: 100%;
|
|
915
915
|
}
|
|
916
|
-
.multiple-selector .search-input[data-v-
|
|
916
|
+
.multiple-selector .search-input[data-v-49f3716b] {
|
|
917
917
|
min-width: 10px;
|
|
918
918
|
height: 28px;
|
|
919
|
-
outline: none;
|
|
920
919
|
background: transparent;
|
|
921
920
|
border: none;
|
|
921
|
+
outline: none;
|
|
922
922
|
}
|
|
923
|
-
.multiple-selector .search-input[data-v-
|
|
923
|
+
.multiple-selector .search-input[data-v-49f3716b]::placeholder {
|
|
924
924
|
color: #c4c6cc;
|
|
925
925
|
}
|
|
926
|
-
.multiple-selector .search-input.inline[data-v-
|
|
926
|
+
.multiple-selector .search-input.inline[data-v-49f3716b] {
|
|
927
927
|
min-width: 10px;
|
|
928
928
|
}
|
|
929
|
-
.multiple-selector .search-input.last[data-v-
|
|
929
|
+
.multiple-selector .search-input.last[data-v-49f3716b], .multiple-selector .search-input.collapsed[data-v-49f3716b] {
|
|
930
930
|
flex: 1;
|
|
931
931
|
}
|
|
932
|
-
.hidden-users[data-v-
|
|
932
|
+
.hidden-users[data-v-49f3716b] {
|
|
933
933
|
padding: 6px 10px;
|
|
934
|
-
}.single-selector[data-v-
|
|
934
|
+
}.single-selector[data-v-726a967e] {
|
|
935
935
|
position: relative;
|
|
936
936
|
width: 100%;
|
|
937
937
|
}
|
|
938
|
-
.single-selector.is-disabled[data-v-
|
|
938
|
+
.single-selector.is-disabled[data-v-726a967e] {
|
|
939
939
|
pointer-events: none;
|
|
940
940
|
}
|
|
941
|
-
.input-container[data-v-
|
|
941
|
+
.input-container[data-v-726a967e] {
|
|
942
942
|
position: relative;
|
|
943
943
|
display: flex;
|
|
944
944
|
align-items: center;
|
|
@@ -948,25 +948,25 @@ optgroup {
|
|
|
948
948
|
border: 1px solid #c4c6cc;
|
|
949
949
|
border-radius: 2px;
|
|
950
950
|
}
|
|
951
|
-
.input-container[data-v-
|
|
951
|
+
.input-container[data-v-726a967e]:focus-within {
|
|
952
952
|
border-color: #3a84ff;
|
|
953
953
|
box-shadow: 0 0 0 2px rgba(58, 132, 255, 0.1);
|
|
954
954
|
}
|
|
955
|
-
.search-input[data-v-
|
|
955
|
+
.search-input[data-v-726a967e] {
|
|
956
956
|
flex: 1;
|
|
957
957
|
height: 30px;
|
|
958
|
-
outline: none;
|
|
959
958
|
background: transparent;
|
|
960
959
|
border: none;
|
|
960
|
+
outline: none;
|
|
961
961
|
}
|
|
962
|
-
.search-input[data-v-
|
|
962
|
+
.search-input[data-v-726a967e]::placeholder {
|
|
963
963
|
color: #c4c6cc;
|
|
964
|
-
}.bk-user-selector[data-v-
|
|
964
|
+
}.bk-user-selector[data-v-879a2fa1] {
|
|
965
965
|
position: relative;
|
|
966
966
|
width: 100%;
|
|
967
967
|
font-size: 12px;
|
|
968
968
|
}
|
|
969
|
-
.bk-user-selector.is-disabled[data-v-
|
|
969
|
+
.bk-user-selector.is-disabled[data-v-879a2fa1] {
|
|
970
970
|
cursor: not-allowed;
|
|
971
971
|
background-color: #dcdee5;
|
|
972
972
|
}
|
package/vue3/index.es.min.js
CHANGED
|
@@ -3262,7 +3262,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
3262
3262
|
}
|
|
3263
3263
|
return target;
|
|
3264
3264
|
};
|
|
3265
|
-
const MeTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
3265
|
+
const MeTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-44fec2ba"]]);
|
|
3266
3266
|
const UserRender = defineComponent({
|
|
3267
3267
|
name: "UserRender",
|
|
3268
3268
|
props: {
|
|
@@ -3437,22 +3437,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3437
3437
|
};
|
|
3438
3438
|
return (_ctx, _cache) => {
|
|
3439
3439
|
return openBlock(), createBlock(unref(Popover), {
|
|
3440
|
-
arrow: false,
|
|
3441
3440
|
"ext-cls": "bk-user-selector-popover",
|
|
3441
|
+
arrow: false,
|
|
3442
3442
|
"is-show": __props.isShow,
|
|
3443
3443
|
offset: { mainAxis: 4, crossAxis: __props.crossAxisOffset },
|
|
3444
|
+
width: __props.containerWidth,
|
|
3444
3445
|
placement: "bottom-start",
|
|
3445
3446
|
theme: "light",
|
|
3446
3447
|
trigger: "manual",
|
|
3447
|
-
width: __props.containerWidth,
|
|
3448
3448
|
onClickoutside: handleClickOutside
|
|
3449
3449
|
}, {
|
|
3450
3450
|
content: withCtx(() => [
|
|
3451
3451
|
createVNode(unref(Loading), {
|
|
3452
3452
|
class: "dropdown-content",
|
|
3453
3453
|
loading: __props.loading,
|
|
3454
|
-
|
|
3455
|
-
|
|
3454
|
+
size: "mini",
|
|
3455
|
+
mode: "spin"
|
|
3456
3456
|
}, {
|
|
3457
3457
|
default: withCtx(() => [
|
|
3458
3458
|
__props.options.length === 0 && __props.userGroup.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
@@ -3468,8 +3468,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3468
3468
|
{ key: 1 },
|
|
3469
3469
|
renderList(groupedUsers.value, (group, groupName) => {
|
|
3470
3470
|
return openBlock(), createElementBlock("div", {
|
|
3471
|
-
|
|
3472
|
-
|
|
3471
|
+
class: "user-group",
|
|
3472
|
+
key: groupName
|
|
3473
3473
|
}, [
|
|
3474
3474
|
Object.keys(groupedUsers.value).length > 1 || group.some((user) => user.type === "userGroup") ? (openBlock(), createElementBlock("div", {
|
|
3475
3475
|
key: 0,
|
|
@@ -3497,8 +3497,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3497
3497
|
null,
|
|
3498
3498
|
renderList(group, (user) => {
|
|
3499
3499
|
return openBlock(), createElementBlock("div", {
|
|
3500
|
-
key: user.id,
|
|
3501
3500
|
class: "user-option",
|
|
3501
|
+
key: user.id,
|
|
3502
3502
|
onClick: withModifiers(($event) => selectUser(user), ["prevent"])
|
|
3503
3503
|
}, [
|
|
3504
3504
|
createVNode(unref(UserRender), {
|
|
@@ -3531,20 +3531,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3531
3531
|
};
|
|
3532
3532
|
}
|
|
3533
3533
|
});
|
|
3534
|
-
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
3534
|
+
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e11d7af7"]]);
|
|
3535
3535
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
3536
3536
|
...{
|
|
3537
3537
|
name: "UserTag"
|
|
3538
3538
|
},
|
|
3539
3539
|
__name: "user-tag",
|
|
3540
3540
|
props: {
|
|
3541
|
-
|
|
3541
|
+
user: {},
|
|
3542
|
+
tenants: {},
|
|
3542
3543
|
currentTenantId: {},
|
|
3543
3544
|
draggable: { type: Boolean },
|
|
3544
|
-
|
|
3545
|
+
active: { type: Boolean },
|
|
3545
3546
|
showTenant: { type: Boolean },
|
|
3546
|
-
|
|
3547
|
-
user: {}
|
|
3547
|
+
renderTag: { type: Function }
|
|
3548
3548
|
},
|
|
3549
3549
|
emits: ["click", "close"],
|
|
3550
3550
|
setup(__props, { emit: __emit }) {
|
|
@@ -3577,7 +3577,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3577
3577
|
};
|
|
3578
3578
|
}
|
|
3579
3579
|
});
|
|
3580
|
-
const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
3580
|
+
const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-3ff46050"]]);
|
|
3581
3581
|
const _hoisted_1$1 = ["onClick"];
|
|
3582
3582
|
const _hoisted_2$1 = ["placeholder"];
|
|
3583
3583
|
const _hoisted_3 = { class: "hidden-users" };
|
|
@@ -3588,24 +3588,24 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3588
3588
|
},
|
|
3589
3589
|
__name: "multiple-selector",
|
|
3590
3590
|
props: {
|
|
3591
|
-
draggable: { type: Boolean, default: false },
|
|
3592
3591
|
modelValue: { default: () => [] },
|
|
3592
|
+
draggable: { type: Boolean, default: false },
|
|
3593
3593
|
selectedUsers: { default: () => [] },
|
|
3594
3594
|
tenants: { default: () => ({}) },
|
|
3595
|
-
allowCreate: { type: Boolean, default: false },
|
|
3596
3595
|
apiBaseUrl: { default: "" },
|
|
3596
|
+
tenantId: { default: "" },
|
|
3597
|
+
placeholder: { default: "" },
|
|
3597
3598
|
currentUserId: { default: "" },
|
|
3598
|
-
disabled: { type: Boolean },
|
|
3599
|
-
emptyText: { default: "" },
|
|
3600
|
-
enableMultiTenantMode: { type: Boolean },
|
|
3601
3599
|
exactSearchKey: { default: "bk_username" },
|
|
3602
|
-
|
|
3603
|
-
placeholder: { default: "" },
|
|
3604
|
-
tenantId: { default: "" },
|
|
3600
|
+
userGroup: { default: () => [] },
|
|
3605
3601
|
userGroupName: { default: "" },
|
|
3602
|
+
emptyText: { default: "" },
|
|
3603
|
+
disabled: { type: Boolean },
|
|
3606
3604
|
renderListItem: {},
|
|
3607
3605
|
renderTag: {},
|
|
3608
|
-
|
|
3606
|
+
excludeUserIds: { default: () => [] },
|
|
3607
|
+
enableMultiTenantMode: { type: Boolean },
|
|
3608
|
+
allowCreate: { type: Boolean, default: false }
|
|
3609
3609
|
},
|
|
3610
3610
|
emits: [
|
|
3611
3611
|
"update:selectedUsers",
|
|
@@ -3706,6 +3706,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3706
3706
|
});
|
|
3707
3707
|
};
|
|
3708
3708
|
const handleClickOutside = (event) => {
|
|
3709
|
+
event.stopPropagation();
|
|
3709
3710
|
const target = event.target;
|
|
3710
3711
|
const container = containerRef.value;
|
|
3711
3712
|
if ((container == null ? void 0 : container.contains(target)) || container === target) {
|
|
@@ -3953,8 +3954,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3953
3954
|
null,
|
|
3954
3955
|
renderList(_ctx.selectedUsers, (user, index) => {
|
|
3955
3956
|
return openBlock(), createElementBlock("div", {
|
|
3956
|
-
key: user.id,
|
|
3957
3957
|
class: "tag-wrapper",
|
|
3958
|
+
key: user.id,
|
|
3958
3959
|
onClick: withModifiers(($event) => handleTagClick(index), ["stop"])
|
|
3959
3960
|
}, [
|
|
3960
3961
|
createVNode(UserTag, {
|
|
@@ -3975,8 +3976,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3975
3976
|
ref_for: true,
|
|
3976
3977
|
ref_key: "inlineInputRef",
|
|
3977
3978
|
ref: inlineInputRef,
|
|
3978
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
3979
3979
|
class: "search-input inline",
|
|
3980
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
3980
3981
|
onFocus: handleInputFocus,
|
|
3981
3982
|
onInput: handleInput,
|
|
3982
3983
|
onKeydown: handleKeyDown,
|
|
@@ -3998,8 +3999,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
3998
3999
|
key: 0,
|
|
3999
4000
|
ref_key: "lastInputRef",
|
|
4000
4001
|
ref: lastInputRef,
|
|
4001
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
4002
4002
|
class: "search-input last",
|
|
4003
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
4003
4004
|
placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
|
|
4004
4005
|
onFocus: handleInputFocus,
|
|
4005
4006
|
onInput: handleInput,
|
|
@@ -4040,8 +4041,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4040
4041
|
null,
|
|
4041
4042
|
renderList(visibleUsers.value, (user) => {
|
|
4042
4043
|
return openBlock(), createBlock(UserTag, {
|
|
4043
|
-
key: user.id,
|
|
4044
4044
|
"current-tenant-id": _ctx.tenantId,
|
|
4045
|
+
key: user.id,
|
|
4045
4046
|
"render-tag": _ctx.renderTag,
|
|
4046
4047
|
"show-tenant": true,
|
|
4047
4048
|
tenants: _ctx.tenants,
|
|
@@ -4096,8 +4097,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4096
4097
|
withDirectives(createElementVNode("input", {
|
|
4097
4098
|
ref_key: "collapsedInputRef",
|
|
4098
4099
|
ref: collapsedInputRef,
|
|
4099
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
4100
4100
|
class: "search-input collapsed",
|
|
4101
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
4101
4102
|
placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
|
|
4102
4103
|
onFocus: handleFocus
|
|
4103
4104
|
}, null, 40, _hoisted_4), [
|
|
@@ -4128,7 +4129,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4128
4129
|
};
|
|
4129
4130
|
}
|
|
4130
4131
|
});
|
|
4131
|
-
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
4132
|
+
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-49f3716b"]]);
|
|
4132
4133
|
const _hoisted_1 = { class: "input-container" };
|
|
4133
4134
|
const _hoisted_2 = ["placeholder"];
|
|
4134
4135
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -4139,20 +4140,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4139
4140
|
props: {
|
|
4140
4141
|
modelValue: { default: "" },
|
|
4141
4142
|
tenants: {},
|
|
4142
|
-
allowCreate: { type: Boolean },
|
|
4143
4143
|
apiBaseUrl: { default: "" },
|
|
4144
|
+
tenantId: { default: "" },
|
|
4145
|
+
placeholder: { default: "" },
|
|
4144
4146
|
currentUserId: { default: "" },
|
|
4145
|
-
disabled: { type: Boolean },
|
|
4146
|
-
emptyText: { default: "" },
|
|
4147
|
-
enableMultiTenantMode: { type: Boolean },
|
|
4148
4147
|
exactSearchKey: { default: "bk_username" },
|
|
4149
|
-
|
|
4150
|
-
placeholder: { default: "" },
|
|
4151
|
-
tenantId: { default: "" },
|
|
4148
|
+
userGroup: { default: () => [] },
|
|
4152
4149
|
userGroupName: { default: "" },
|
|
4150
|
+
emptyText: { default: "" },
|
|
4151
|
+
disabled: { type: Boolean },
|
|
4153
4152
|
renderListItem: {},
|
|
4154
4153
|
renderTag: {},
|
|
4155
|
-
|
|
4154
|
+
excludeUserIds: { default: () => [] },
|
|
4155
|
+
enableMultiTenantMode: { type: Boolean },
|
|
4156
|
+
allowCreate: { type: Boolean }
|
|
4156
4157
|
},
|
|
4157
4158
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
4158
4159
|
setup(__props, { emit: __emit }) {
|
|
@@ -4358,8 +4359,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4358
4359
|
withDirectives(createElementVNode("input", {
|
|
4359
4360
|
ref_key: "inputRef",
|
|
4360
4361
|
ref: inputRef,
|
|
4361
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
4362
4362
|
class: "search-input",
|
|
4363
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
4363
4364
|
placeholder: selectedUserInfo.value ? "" : _ctx.placeholder,
|
|
4364
4365
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur")),
|
|
4365
4366
|
onFocus: handleInputFocus,
|
|
@@ -4388,30 +4389,30 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4388
4389
|
};
|
|
4389
4390
|
}
|
|
4390
4391
|
});
|
|
4391
|
-
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
4392
|
+
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-726a967e"]]);
|
|
4392
4393
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4393
4394
|
...{
|
|
4394
4395
|
name: "BkUserSelector"
|
|
4395
4396
|
},
|
|
4396
4397
|
__name: "user-selector",
|
|
4397
4398
|
props: {
|
|
4398
|
-
draggable: { type: Boolean, default: false },
|
|
4399
4399
|
modelValue: { default: "" },
|
|
4400
|
+
draggable: { type: Boolean, default: false },
|
|
4400
4401
|
multiple: { type: Boolean, default: false },
|
|
4401
|
-
allowCreate: { type: Boolean, default: false },
|
|
4402
4402
|
apiBaseUrl: { default: "" },
|
|
4403
|
+
tenantId: { default: "" },
|
|
4404
|
+
placeholder: { default: "" },
|
|
4403
4405
|
currentUserId: { default: "" },
|
|
4404
|
-
disabled: { type: Boolean, default: false },
|
|
4405
|
-
emptyText: { default: "" },
|
|
4406
|
-
enableMultiTenantMode: { type: Boolean, default: true },
|
|
4407
4406
|
exactSearchKey: { default: "bk_username" },
|
|
4408
|
-
|
|
4409
|
-
placeholder: { default: "" },
|
|
4410
|
-
tenantId: { default: "" },
|
|
4407
|
+
userGroup: { default: () => [] },
|
|
4411
4408
|
userGroupName: { default: "" },
|
|
4409
|
+
emptyText: { default: "" },
|
|
4410
|
+
disabled: { type: Boolean, default: false },
|
|
4412
4411
|
renderListItem: {},
|
|
4413
4412
|
renderTag: {},
|
|
4414
|
-
|
|
4413
|
+
excludeUserIds: { default: () => [] },
|
|
4414
|
+
enableMultiTenantMode: { type: Boolean, default: true },
|
|
4415
|
+
allowCreate: { type: Boolean, default: false }
|
|
4415
4416
|
},
|
|
4416
4417
|
emits: ["update:modelValue", "change", "dragStart", "dragEnd", "focus", "blur"],
|
|
4417
4418
|
setup(__props, { emit: __emit }) {
|
|
@@ -4579,7 +4580,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4579
4580
|
};
|
|
4580
4581
|
}
|
|
4581
4582
|
});
|
|
4582
|
-
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4583
|
+
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-879a2fa1"]]);
|
|
4583
4584
|
export {
|
|
4584
4585
|
BkUserSelector,
|
|
4585
4586
|
BkUserSelector as default
|