@blueking/bk-user-selector 0.0.37 → 0.0.38-beta.1

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/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-44fec2ba] {
800
+ .me-tag[data-v-ef4a05c4] {
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;
813
814
  cursor: pointer;
814
815
  background-color: #e1ecff;
815
816
  border-radius: 50%;
816
817
  transform: translateY(-50%);
817
- white-space: nowrap;
818
818
  }
819
- .me-tag[data-v-44fec2ba]:hover {
819
+ .me-tag[data-v-ef4a05c4]:hover {
820
820
  color: #3a84ff;
821
821
  background-color: #cddffe;
822
822
  }
823
- .me-tag.disabled[data-v-44fec2ba] {
823
+ .me-tag.disabled[data-v-ef4a05c4] {
824
824
  color: #c4c6cc;
825
825
  cursor: not-allowed;
826
826
  background-color: #f0f1f5;
827
- }.dropdown-content[data-v-e11d7af7] {
827
+ }.dropdown-content[data-v-ee78cf72] {
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-e11d7af7] {
833
+ .dropdown-content .no-data[data-v-ee78cf72] {
834
834
  padding: 10px;
835
835
  color: #979ba5;
836
836
  text-align: center;
837
837
  }
838
- .dropdown-content .user-group .group-header[data-v-e11d7af7] {
838
+ .dropdown-content .user-group .group-header[data-v-ee78cf72] {
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-e11d7af7] {
844
+ .dropdown-content .user-group .group-header .group-count[data-v-ee78cf72] {
845
845
  margin-left: 4px;
846
846
  }
847
- .dropdown-content .user-option[data-v-e11d7af7] {
847
+ .dropdown-content .user-option[data-v-ee78cf72] {
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-e11d7af7]:hover {
854
+ .dropdown-content .user-option[data-v-ee78cf72]: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-3ff46050] {
858
+ }.user-tag[data-v-48ac8fc1] {
859
859
  margin-right: 4px;
860
860
  margin-left: 0;
861
861
  }
862
- .user-tag.draggable[data-v-3ff46050] {
862
+ .user-tag.draggable[data-v-48ac8fc1] {
863
863
  cursor: move;
864
864
  }
865
- .user-tag.active[data-v-3ff46050] {
865
+ .user-tag.active[data-v-48ac8fc1] {
866
866
  background-color: #e1ecff;
867
867
  border-color: #3a84ff;
868
868
  }
869
- .user-tag.is-custom[data-v-3ff46050] {
869
+ .user-tag.is-custom[data-v-48ac8fc1] {
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-3ff46050]:hover {
874
+ .user-tag.is-custom[data-v-48ac8fc1]:hover {
875
875
  background-color: #fedddc;
876
876
  }
877
- .user-tag .tag-content .user-name[data-v-3ff46050] {
877
+ .user-tag .tag-content .user-name[data-v-48ac8fc1] {
878
878
  overflow: hidden;
879
- font-size: 12px;
880
879
  text-overflow: ellipsis;
880
+ font-size: 12px;
881
881
  white-space: nowrap;
882
- }.multiple-selector[data-v-94252de2] {
882
+ }.multiple-selector[data-v-6c9ac297] {
883
883
  position: relative;
884
884
  width: 100%;
885
885
  }
886
- .multiple-selector.is-disabled[data-v-94252de2] {
886
+ .multiple-selector.is-disabled[data-v-6c9ac297] {
887
887
  pointer-events: none;
888
888
  }
889
- .multiple-selector .tags-container[data-v-94252de2] {
889
+ .multiple-selector .tags-container[data-v-6c9ac297] {
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-94252de2] {
897
+ .multiple-selector .tags-container.focused[data-v-6c9ac297] {
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-94252de2] {
901
+ .multiple-selector .tags-container.collapsed[data-v-6c9ac297] {
902
902
  display: flex;
903
903
  flex-wrap: wrap;
904
904
  align-items: center;
905
905
  }
906
- .multiple-selector .tag-list[data-v-94252de2] {
906
+ .multiple-selector .tag-list[data-v-6c9ac297] {
907
907
  display: flex;
908
908
  flex-wrap: wrap;
909
909
  align-items: center;
910
910
  }
911
- .multiple-selector .tag-wrapper[data-v-94252de2] {
911
+ .multiple-selector .tag-wrapper[data-v-6c9ac297] {
912
912
  display: inline-flex;
913
913
  align-items: center;
914
914
  max-width: 100%;
915
915
  }
916
- .multiple-selector .search-input[data-v-94252de2] {
916
+ .multiple-selector .search-input[data-v-6c9ac297] {
917
917
  min-width: 10px;
918
918
  height: 28px;
919
+ outline: none;
919
920
  background: transparent;
920
921
  border: none;
921
- outline: none;
922
922
  }
923
- .multiple-selector .search-input[data-v-94252de2]::placeholder {
923
+ .multiple-selector .search-input[data-v-6c9ac297]::placeholder {
924
924
  color: #c4c6cc;
925
925
  }
926
- .multiple-selector .search-input.inline[data-v-94252de2] {
926
+ .multiple-selector .search-input.inline[data-v-6c9ac297] {
927
927
  min-width: 10px;
928
928
  }
929
- .multiple-selector .search-input.last[data-v-94252de2], .multiple-selector .search-input.collapsed[data-v-94252de2] {
929
+ .multiple-selector .search-input.last[data-v-6c9ac297], .multiple-selector .search-input.collapsed[data-v-6c9ac297] {
930
930
  flex: 1;
931
931
  }
932
- .hidden-users[data-v-94252de2] {
932
+ .hidden-users[data-v-6c9ac297] {
933
933
  padding: 6px 10px;
934
- }.single-selector[data-v-726a967e] {
934
+ }.single-selector[data-v-2a791ec6] {
935
935
  position: relative;
936
936
  width: 100%;
937
937
  }
938
- .single-selector.is-disabled[data-v-726a967e] {
938
+ .single-selector.is-disabled[data-v-2a791ec6] {
939
939
  pointer-events: none;
940
940
  }
941
- .input-container[data-v-726a967e] {
941
+ .input-container[data-v-2a791ec6] {
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-726a967e]:focus-within {
951
+ .input-container[data-v-2a791ec6]: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-726a967e] {
955
+ .search-input[data-v-2a791ec6] {
956
956
  flex: 1;
957
957
  height: 30px;
958
+ outline: none;
958
959
  background: transparent;
959
960
  border: none;
960
- outline: none;
961
961
  }
962
- .search-input[data-v-726a967e]::placeholder {
962
+ .search-input[data-v-2a791ec6]::placeholder {
963
963
  color: #c4c6cc;
964
- }.bk-user-selector[data-v-3a531e42] {
964
+ }.bk-user-selector[data-v-f4c00173] {
965
965
  position: relative;
966
966
  width: 100%;
967
967
  font-size: 12px;
968
968
  }
969
- .bk-user-selector.is-disabled[data-v-3a531e42] {
969
+ .bk-user-selector.is-disabled[data-v-f4c00173] {
970
970
  cursor: not-allowed;
971
971
  background-color: #dcdee5;
972
972
  }
@@ -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-44fec2ba"]]);
3265
+ const MeTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ef4a05c4"]]);
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
- "ext-cls": "bk-user-selector-popover",
3441
3440
  arrow: false,
3441
+ "ext-cls": "bk-user-selector-popover",
3442
3442
  "is-show": __props.isShow,
3443
3443
  offset: { mainAxis: 4, crossAxis: __props.crossAxisOffset },
3444
- width: __props.containerWidth,
3445
3444
  placement: "bottom-start",
3446
3445
  theme: "light",
3447
3446
  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
- size: "mini",
3455
- mode: "spin"
3454
+ mode: "spin",
3455
+ size: "mini"
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
- class: "user-group",
3472
- key: groupName
3471
+ key: groupName,
3472
+ class: "user-group"
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
- class: "user-option",
3501
3500
  key: user.id,
3501
+ class: "user-option",
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-e11d7af7"]]);
3534
+ const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ee78cf72"]]);
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
- user: {},
3542
- tenants: {},
3541
+ active: { type: Boolean },
3543
3542
  currentTenantId: {},
3544
3543
  draggable: { type: Boolean },
3545
- active: { type: Boolean },
3544
+ renderTag: { type: Function },
3546
3545
  showTenant: { type: Boolean },
3547
- renderTag: { type: Function }
3546
+ tenants: {},
3547
+ user: {}
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-3ff46050"]]);
3580
+ const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-48ac8fc1"]]);
3581
3581
  const _hoisted_1$1 = ["onClick"];
3582
3582
  const _hoisted_2$1 = ["placeholder"];
3583
3583
  const _hoisted_3 = { class: "hidden-users" };
@@ -3588,26 +3588,34 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3588
3588
  },
3589
3589
  __name: "multiple-selector",
3590
3590
  props: {
3591
- modelValue: { default: () => [] },
3592
3591
  draggable: { type: Boolean, default: false },
3592
+ modelValue: { default: () => [] },
3593
3593
  selectedUsers: { default: () => [] },
3594
3594
  tenants: { default: () => ({}) },
3595
+ allowCreate: { type: Boolean, default: false },
3595
3596
  apiBaseUrl: { default: "" },
3596
- tenantId: { default: "" },
3597
- placeholder: { default: "" },
3598
3597
  currentUserId: { default: "" },
3598
+ disabled: { type: Boolean },
3599
+ emptyText: { default: "" },
3600
+ enableMultiTenantMode: { type: Boolean },
3599
3601
  exactSearchKey: { default: "bk_username" },
3600
- userGroup: { default: () => [] },
3602
+ excludeUserIds: { default: () => [] },
3603
+ placeholder: { default: "" },
3604
+ tenantId: { default: "" },
3601
3605
  userGroupName: { default: "" },
3602
- emptyText: { default: "" },
3603
- disabled: { type: Boolean },
3604
3606
  renderListItem: {},
3605
3607
  renderTag: {},
3606
- excludeUserIds: { default: () => [] },
3607
- enableMultiTenantMode: { type: Boolean },
3608
- allowCreate: { type: Boolean, default: false }
3608
+ userGroup: { default: () => [] }
3609
3609
  },
3610
- emits: ["update:selectedUsers", "add-user", "remove-user", "focus", "blur"],
3610
+ emits: [
3611
+ "update:selectedUsers",
3612
+ "add-user",
3613
+ "remove-user",
3614
+ "dragStart",
3615
+ "dragEnd",
3616
+ "focus",
3617
+ "blur"
3618
+ ],
3611
3619
  setup(__props, { emit: __emit }) {
3612
3620
  const props = __props;
3613
3621
  const emit = __emit;
@@ -3652,6 +3660,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3652
3660
  sortableInstance.value = new Sortable(sortableContainerRef.value, {
3653
3661
  animation: 150,
3654
3662
  draggable: ".tag-wrapper",
3663
+ onStart: (event) => {
3664
+ emit("dragStart", event);
3665
+ },
3655
3666
  onEnd: (evt) => {
3656
3667
  const { oldIndex, newIndex } = evt;
3657
3668
  if (oldIndex === newIndex || oldIndex === void 0 || newIndex === void 0) return;
@@ -3659,6 +3670,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3659
3670
  const [movedUser] = updatedUsers.splice(oldIndex, 1);
3660
3671
  updatedUsers.splice(newIndex, 0, movedUser);
3661
3672
  emit("update:selectedUsers", updatedUsers);
3673
+ emit("dragEnd", evt);
3662
3674
  }
3663
3675
  });
3664
3676
  };
@@ -3694,7 +3706,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3694
3706
  });
3695
3707
  };
3696
3708
  const handleClickOutside = (event) => {
3697
- event.stopPropagation();
3698
3709
  const target = event.target;
3699
3710
  const container = containerRef.value;
3700
3711
  if ((container == null ? void 0 : container.contains(target)) || container === target) {
@@ -3942,8 +3953,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3942
3953
  null,
3943
3954
  renderList(_ctx.selectedUsers, (user, index) => {
3944
3955
  return openBlock(), createElementBlock("div", {
3945
- class: "tag-wrapper",
3946
3956
  key: user.id,
3957
+ class: "tag-wrapper",
3947
3958
  onClick: withModifiers(($event) => handleTagClick(index), ["stop"])
3948
3959
  }, [
3949
3960
  createVNode(UserTag, {
@@ -3964,8 +3975,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3964
3975
  ref_for: true,
3965
3976
  ref_key: "inlineInputRef",
3966
3977
  ref: inlineInputRef,
3967
- class: "search-input inline",
3968
3978
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
3979
+ class: "search-input inline",
3969
3980
  onFocus: handleInputFocus,
3970
3981
  onInput: handleInput,
3971
3982
  onKeydown: handleKeyDown,
@@ -3987,8 +3998,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3987
3998
  key: 0,
3988
3999
  ref_key: "lastInputRef",
3989
4000
  ref: lastInputRef,
3990
- class: "search-input last",
3991
4001
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
4002
+ class: "search-input last",
3992
4003
  placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
3993
4004
  onFocus: handleInputFocus,
3994
4005
  onInput: handleInput,
@@ -4029,8 +4040,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4029
4040
  null,
4030
4041
  renderList(visibleUsers.value, (user) => {
4031
4042
  return openBlock(), createBlock(UserTag, {
4032
- "current-tenant-id": _ctx.tenantId,
4033
4043
  key: user.id,
4044
+ "current-tenant-id": _ctx.tenantId,
4034
4045
  "render-tag": _ctx.renderTag,
4035
4046
  "show-tenant": true,
4036
4047
  tenants: _ctx.tenants,
@@ -4085,8 +4096,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4085
4096
  withDirectives(createElementVNode("input", {
4086
4097
  ref_key: "collapsedInputRef",
4087
4098
  ref: collapsedInputRef,
4088
- class: "search-input collapsed",
4089
4099
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
4100
+ class: "search-input collapsed",
4090
4101
  placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
4091
4102
  onFocus: handleFocus
4092
4103
  }, null, 40, _hoisted_4), [
@@ -4117,7 +4128,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
4117
4128
  };
4118
4129
  }
4119
4130
  });
4120
- const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-94252de2"]]);
4131
+ const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6c9ac297"]]);
4121
4132
  const _hoisted_1 = { class: "input-container" };
4122
4133
  const _hoisted_2 = ["placeholder"];
4123
4134
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -4128,20 +4139,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4128
4139
  props: {
4129
4140
  modelValue: { default: "" },
4130
4141
  tenants: {},
4142
+ allowCreate: { type: Boolean },
4131
4143
  apiBaseUrl: { default: "" },
4132
- tenantId: { default: "" },
4133
- placeholder: { default: "" },
4134
4144
  currentUserId: { default: "" },
4145
+ disabled: { type: Boolean },
4146
+ emptyText: { default: "" },
4147
+ enableMultiTenantMode: { type: Boolean },
4135
4148
  exactSearchKey: { default: "bk_username" },
4136
- userGroup: { default: () => [] },
4149
+ excludeUserIds: { default: () => [] },
4150
+ placeholder: { default: "" },
4151
+ tenantId: { default: "" },
4137
4152
  userGroupName: { default: "" },
4138
- emptyText: { default: "" },
4139
- disabled: { type: Boolean },
4140
4153
  renderListItem: {},
4141
4154
  renderTag: {},
4142
- excludeUserIds: { default: () => [] },
4143
- enableMultiTenantMode: { type: Boolean },
4144
- allowCreate: { type: Boolean }
4155
+ userGroup: { default: () => [] }
4145
4156
  },
4146
4157
  emits: ["update:modelValue", "change", "focus", "blur"],
4147
4158
  setup(__props, { emit: __emit }) {
@@ -4347,8 +4358,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4347
4358
  withDirectives(createElementVNode("input", {
4348
4359
  ref_key: "inputRef",
4349
4360
  ref: inputRef,
4350
- class: "search-input",
4351
4361
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
4362
+ class: "search-input",
4352
4363
  placeholder: selectedUserInfo.value ? "" : _ctx.placeholder,
4353
4364
  onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur")),
4354
4365
  onFocus: handleInputFocus,
@@ -4377,32 +4388,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
4377
4388
  };
4378
4389
  }
4379
4390
  });
4380
- const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-726a967e"]]);
4391
+ const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2a791ec6"]]);
4381
4392
  const _sfc_main = /* @__PURE__ */ defineComponent({
4382
4393
  ...{
4383
4394
  name: "BkUserSelector"
4384
4395
  },
4385
4396
  __name: "user-selector",
4386
4397
  props: {
4387
- modelValue: { default: "" },
4388
4398
  draggable: { type: Boolean, default: false },
4399
+ modelValue: { default: "" },
4389
4400
  multiple: { type: Boolean, default: false },
4401
+ allowCreate: { type: Boolean, default: false },
4390
4402
  apiBaseUrl: { default: "" },
4391
- tenantId: { default: "" },
4392
- placeholder: { default: "" },
4393
4403
  currentUserId: { default: "" },
4404
+ disabled: { type: Boolean, default: false },
4405
+ emptyText: { default: "" },
4406
+ enableMultiTenantMode: { type: Boolean, default: true },
4394
4407
  exactSearchKey: { default: "bk_username" },
4395
- userGroup: { default: () => [] },
4408
+ excludeUserIds: { default: () => [] },
4409
+ placeholder: { default: "" },
4410
+ tenantId: { default: "" },
4396
4411
  userGroupName: { default: "" },
4397
- emptyText: { default: "" },
4398
- disabled: { type: Boolean, default: false },
4399
4412
  renderListItem: {},
4400
4413
  renderTag: {},
4401
- excludeUserIds: { default: () => [] },
4402
- enableMultiTenantMode: { type: Boolean, default: true },
4403
- allowCreate: { type: Boolean, default: false }
4414
+ userGroup: { default: () => [] }
4404
4415
  },
4405
- emits: ["update:modelValue", "change", "focus", "blur"],
4416
+ emits: ["update:modelValue", "change", "dragStart", "dragEnd", "focus", "blur"],
4406
4417
  setup(__props, { emit: __emit }) {
4407
4418
  const { t } = useI18n();
4408
4419
  provideGlobalConfig({
@@ -4552,6 +4563,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4552
4563
  "user-group": _ctx.userGroup,
4553
4564
  "user-group-name": userGroupName.value,
4554
4565
  onBlur: handleBlur,
4566
+ onDragEnd: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("dragEnd", $event)),
4567
+ onDragStart: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("dragStart", $event)),
4555
4568
  onFocus: handleFocus,
4556
4569
  "onUpdate:selectedUsers": handleUpdateSelectedUsers
4557
4570
  }, null, 8, ["modelValue", "allow-create", "api-base-url", "current-user-id", "disabled", "draggable", "empty-text", "enable-multi-tenant-mode", "exact-search-key", "exclude-user-ids", "placeholder", "render-list-item", "render-tag", "selected-users", "tenant-id", "tenants", "user-group", "user-group-name"])
@@ -4566,7 +4579,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4566
4579
  };
4567
4580
  }
4568
4581
  });
4569
- const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a531e42"]]);
4582
+ const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4c00173"]]);
4570
4583
  export {
4571
4584
  BkUserSelector,
4572
4585
  BkUserSelector as default