@blueking/bk-user-selector 0.0.37 → 0.0.38-beta.2
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 +8 -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 +8 -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 +77 -199
- package/vue2/index.iife.min.js +77 -199
- package/vue2/index.umd.min.js +77 -199
- package/vue2/vue2.css +39 -39
- package/vue3/index.es.min.js +66 -53
- package/vue3/index.iife.min.js +71 -199
- package/vue3/index.umd.min.js +67 -54
- package/vue3/vue3.css +39 -39
package/vue2/index.es.min.js
CHANGED
|
@@ -4546,10 +4546,6 @@ __webpack_require__$7.d(__webpack_exports__$7, {
|
|
|
4546
4546
|
/* reexport */
|
|
4547
4547
|
lang_en
|
|
4548
4548
|
),
|
|
4549
|
-
jp: () => (
|
|
4550
|
-
/* reexport */
|
|
4551
|
-
ja_jp
|
|
4552
|
-
),
|
|
4553
4549
|
zhCn: () => (
|
|
4554
4550
|
/* reexport */
|
|
4555
4551
|
zh_cn
|
|
@@ -4737,145 +4733,6 @@ var en = {
|
|
|
4737
4733
|
}
|
|
4738
4734
|
};
|
|
4739
4735
|
const lang_en = en;
|
|
4740
|
-
var jp = {
|
|
4741
|
-
lang: "ja",
|
|
4742
|
-
steps: {
|
|
4743
|
-
step1: "ステップ1",
|
|
4744
|
-
step2: "ステップ2",
|
|
4745
|
-
step3: "ステップ3"
|
|
4746
|
-
},
|
|
4747
|
-
datePicker: {
|
|
4748
|
-
selectDate: "日付を選択",
|
|
4749
|
-
selectTime: "時間を選択",
|
|
4750
|
-
clear: "クリア",
|
|
4751
|
-
ok: "OK",
|
|
4752
|
-
weekdays: {
|
|
4753
|
-
sun: "日",
|
|
4754
|
-
mon: "月",
|
|
4755
|
-
tue: "火",
|
|
4756
|
-
wed: "水",
|
|
4757
|
-
thu: "木",
|
|
4758
|
-
fri: "金",
|
|
4759
|
-
sat: "土"
|
|
4760
|
-
},
|
|
4761
|
-
hour: "時間",
|
|
4762
|
-
min: "分",
|
|
4763
|
-
sec: "秒",
|
|
4764
|
-
toNow: "現在まで"
|
|
4765
|
-
},
|
|
4766
|
-
dialog: {
|
|
4767
|
-
ok: "OK",
|
|
4768
|
-
cancel: "キャンセル",
|
|
4769
|
-
prev: "前へ",
|
|
4770
|
-
next: "次へ"
|
|
4771
|
-
},
|
|
4772
|
-
popConfirm: {
|
|
4773
|
-
ok: "OK",
|
|
4774
|
-
cancel: "キャンセル"
|
|
4775
|
-
},
|
|
4776
|
-
form: {
|
|
4777
|
-
notBeEmpty: "空にできません",
|
|
4778
|
-
incorrectFormat: "形式が正しくありません",
|
|
4779
|
-
max: "最大値",
|
|
4780
|
-
min: "最小値",
|
|
4781
|
-
maxLen: "最大長",
|
|
4782
|
-
verifyError: "検証エラー"
|
|
4783
|
-
},
|
|
4784
|
-
pagination: {
|
|
4785
|
-
eachPage: "各ページ",
|
|
4786
|
-
strip: "",
|
|
4787
|
-
total: "合計"
|
|
4788
|
-
},
|
|
4789
|
-
process: {
|
|
4790
|
-
step1: "ステップ1",
|
|
4791
|
-
step2: "ステップ2",
|
|
4792
|
-
step3: "ステップ3",
|
|
4793
|
-
step4: "ステップ4"
|
|
4794
|
-
},
|
|
4795
|
-
searchSelect: {
|
|
4796
|
-
pleaseSelect: "選択してください",
|
|
4797
|
-
loading: "ロード中...",
|
|
4798
|
-
filterQueryMustHasValue: "フィルタークエリに値を含める必要があります",
|
|
4799
|
-
ok: "OK",
|
|
4800
|
-
cancel: "キャンセル",
|
|
4801
|
-
or: "または",
|
|
4802
|
-
and: "そして",
|
|
4803
|
-
logical: "論理:"
|
|
4804
|
-
},
|
|
4805
|
-
select: {
|
|
4806
|
-
noData: "データなし",
|
|
4807
|
-
noMatchedData: "一致するデータがありません",
|
|
4808
|
-
loading: "読み込み中...",
|
|
4809
|
-
pleaseSelect: "選んでください",
|
|
4810
|
-
enterKeywords: "キーワードを入力してください",
|
|
4811
|
-
all: "すべて",
|
|
4812
|
-
selectAll: "すべて選択"
|
|
4813
|
-
},
|
|
4814
|
-
table: {
|
|
4815
|
-
emptyText: "データがありません",
|
|
4816
|
-
confirm: "確認",
|
|
4817
|
-
reset: "リセット",
|
|
4818
|
-
sort: "ソート",
|
|
4819
|
-
setting: {
|
|
4820
|
-
title: "テーブル設定",
|
|
4821
|
-
fields: {
|
|
4822
|
-
title: "表示フィールド設定",
|
|
4823
|
-
subtitle: function subtitle2(max2) {
|
|
4824
|
-
return "(".concat(max2, "フィールド最大)");
|
|
4825
|
-
},
|
|
4826
|
-
selectAll: "すべて選択"
|
|
4827
|
-
},
|
|
4828
|
-
lineHeight: {
|
|
4829
|
-
title: "テーブル行の高さ",
|
|
4830
|
-
small: "小",
|
|
4831
|
-
medium: "中",
|
|
4832
|
-
large: "大"
|
|
4833
|
-
},
|
|
4834
|
-
options: {
|
|
4835
|
-
ok: "OK",
|
|
4836
|
-
cancel: "キャンセル"
|
|
4837
|
-
}
|
|
4838
|
-
}
|
|
4839
|
-
},
|
|
4840
|
-
transfer: {
|
|
4841
|
-
sourceList: "ソースリスト",
|
|
4842
|
-
targetList: "ターゲットリスト",
|
|
4843
|
-
removeAll: "すべて削除",
|
|
4844
|
-
selectAll: "すべて選択",
|
|
4845
|
-
noData: "データがありません",
|
|
4846
|
-
noSelected: "選択されていません",
|
|
4847
|
-
search: "検索"
|
|
4848
|
-
},
|
|
4849
|
-
upload: {
|
|
4850
|
-
uploadSuccess: "アップロード成功",
|
|
4851
|
-
uploadFailed: "アップロード失敗",
|
|
4852
|
-
drapFileOr: "ここにファイルをドラッグまたは",
|
|
4853
|
-
clickUpload: "クリックしてアップロード",
|
|
4854
|
-
uploadLabel: "ファイルをアップロード"
|
|
4855
|
-
},
|
|
4856
|
-
input: {
|
|
4857
|
-
placeholder: "入力してください",
|
|
4858
|
-
maxlengthLimitTips: "文字数制限に達しました"
|
|
4859
|
-
},
|
|
4860
|
-
tagInput: {
|
|
4861
|
-
placeholder: "入力してEnterキーで終了"
|
|
4862
|
-
},
|
|
4863
|
-
message: {
|
|
4864
|
-
assistant: "アシスタント",
|
|
4865
|
-
details: "詳細",
|
|
4866
|
-
copySuccess: "コピー成功",
|
|
4867
|
-
copyFailed: "コピー失敗"
|
|
4868
|
-
},
|
|
4869
|
-
cascader: {
|
|
4870
|
-
pleaseSelect: "選択してください",
|
|
4871
|
-
noData: "データがありません",
|
|
4872
|
-
emptyText: "データがありません"
|
|
4873
|
-
},
|
|
4874
|
-
versionLog: {
|
|
4875
|
-
current: "現在のバージョン"
|
|
4876
|
-
}
|
|
4877
|
-
};
|
|
4878
|
-
const ja_jp = jp;
|
|
4879
4736
|
var zhCn = {
|
|
4880
4737
|
lang: "zh-cn",
|
|
4881
4738
|
steps: {
|
|
@@ -4960,7 +4817,7 @@ var zhCn = {
|
|
|
4960
4817
|
title: "表格设置",
|
|
4961
4818
|
fields: {
|
|
4962
4819
|
title: "字段显示设置",
|
|
4963
|
-
subtitle: function
|
|
4820
|
+
subtitle: function subtitle2(max2) {
|
|
4964
4821
|
return "(最多".concat(max2, "项)");
|
|
4965
4822
|
},
|
|
4966
4823
|
selectAll: "全选"
|
|
@@ -5059,7 +4916,6 @@ var zhCn = {
|
|
|
5059
4916
|
};
|
|
5060
4917
|
const zh_cn = zhCn;
|
|
5061
4918
|
__webpack_exports__$7.en;
|
|
5062
|
-
__webpack_exports__$7.jp;
|
|
5063
4919
|
var __webpack_exports__zhCn = __webpack_exports__$7.zhCn;
|
|
5064
4920
|
var __webpack_require__$6 = {};
|
|
5065
4921
|
(() => {
|
|
@@ -10617,6 +10473,9 @@ var __webpack_exports__ = {};
|
|
|
10617
10473
|
hide2(el);
|
|
10618
10474
|
}, 100);
|
|
10619
10475
|
});
|
|
10476
|
+
el.addEventListener("click", function() {
|
|
10477
|
+
hide2(el);
|
|
10478
|
+
});
|
|
10620
10479
|
popper2.addEventListener("mouseleave", function() {
|
|
10621
10480
|
clearTimeout(delayTimeout);
|
|
10622
10481
|
hideTimeout = setTimeout(function() {
|
|
@@ -10630,7 +10489,7 @@ var __webpack_exports__ = {};
|
|
|
10630
10489
|
show(el);
|
|
10631
10490
|
clearTimeout(delayTimeout);
|
|
10632
10491
|
}, opts.delay);
|
|
10633
|
-
} else if (
|
|
10492
|
+
} else if (popper2.hasAttribute("data-show")) {
|
|
10634
10493
|
hide2(el);
|
|
10635
10494
|
}
|
|
10636
10495
|
});
|
|
@@ -10819,7 +10678,7 @@ const generateCallbackName = () => {
|
|
|
10819
10678
|
const jsonpRequest = (requestUrl, options = {}) => {
|
|
10820
10679
|
return new Promise((resolve, reject) => {
|
|
10821
10680
|
const url = unref(requestUrl);
|
|
10822
|
-
const { timeout = 1e3 * 60 * 2, params, withCredentials =
|
|
10681
|
+
const { timeout = 1e3 * 60 * 2, params, withCredentials = false } = options;
|
|
10823
10682
|
const callbackName = generateCallbackName();
|
|
10824
10683
|
const script = document.createElement("script");
|
|
10825
10684
|
let timeoutId;
|
|
@@ -14069,7 +13928,7 @@ const _export_sfc = (sfc, props2) => {
|
|
|
14069
13928
|
}
|
|
14070
13929
|
return target;
|
|
14071
13930
|
};
|
|
14072
|
-
const MeTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
13931
|
+
const MeTag = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-ef4a05c4"]]);
|
|
14073
13932
|
const UserRender = defineComponent({
|
|
14074
13933
|
name: "UserRender",
|
|
14075
13934
|
props: {
|
|
@@ -14244,22 +14103,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14244
14103
|
};
|
|
14245
14104
|
return (_ctx, _cache) => {
|
|
14246
14105
|
return openBlock(), createBlock(unref(__webpack_exports__default$1), {
|
|
14247
|
-
"ext-cls": "bk-user-selector-popover",
|
|
14248
14106
|
arrow: false,
|
|
14107
|
+
"ext-cls": "bk-user-selector-popover",
|
|
14249
14108
|
"is-show": __props.isShow,
|
|
14250
14109
|
offset: { mainAxis: 4, crossAxis: __props.crossAxisOffset },
|
|
14251
|
-
width: __props.containerWidth,
|
|
14252
14110
|
placement: "bottom-start",
|
|
14253
14111
|
theme: "light",
|
|
14254
14112
|
trigger: "manual",
|
|
14113
|
+
width: __props.containerWidth,
|
|
14255
14114
|
onClickoutside: handleClickOutside
|
|
14256
14115
|
}, {
|
|
14257
14116
|
content: withCtx(() => [
|
|
14258
14117
|
createVNode(unref(__webpack_exports__default$2), {
|
|
14259
14118
|
class: "dropdown-content",
|
|
14260
14119
|
loading: __props.loading,
|
|
14261
|
-
|
|
14262
|
-
|
|
14120
|
+
mode: "spin",
|
|
14121
|
+
size: "mini"
|
|
14263
14122
|
}, {
|
|
14264
14123
|
default: withCtx(() => [
|
|
14265
14124
|
__props.options.length === 0 && __props.userGroup.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
@@ -14275,8 +14134,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14275
14134
|
{ key: 1 },
|
|
14276
14135
|
renderList(groupedUsers.value, (group, groupName) => {
|
|
14277
14136
|
return openBlock(), createElementBlock("div", {
|
|
14278
|
-
|
|
14279
|
-
|
|
14137
|
+
key: groupName,
|
|
14138
|
+
class: "user-group"
|
|
14280
14139
|
}, [
|
|
14281
14140
|
Object.keys(groupedUsers.value).length > 1 || group.some((user) => user.type === "userGroup") ? (openBlock(), createElementBlock("div", {
|
|
14282
14141
|
key: 0,
|
|
@@ -14304,8 +14163,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14304
14163
|
null,
|
|
14305
14164
|
renderList(group, (user) => {
|
|
14306
14165
|
return openBlock(), createElementBlock("div", {
|
|
14307
|
-
class: "user-option",
|
|
14308
14166
|
key: user.id,
|
|
14167
|
+
class: "user-option",
|
|
14309
14168
|
onClick: withModifiers(($event) => selectUser(user), ["prevent"])
|
|
14310
14169
|
}, [
|
|
14311
14170
|
createVNode(unref(UserRender), {
|
|
@@ -14338,20 +14197,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
14338
14197
|
};
|
|
14339
14198
|
}
|
|
14340
14199
|
});
|
|
14341
|
-
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
14200
|
+
const SelectionPopover = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-ee78cf72"]]);
|
|
14342
14201
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
14343
14202
|
...{
|
|
14344
14203
|
name: "UserTag"
|
|
14345
14204
|
},
|
|
14346
14205
|
__name: "user-tag",
|
|
14347
14206
|
props: {
|
|
14348
|
-
|
|
14349
|
-
tenants: {},
|
|
14207
|
+
active: { type: Boolean },
|
|
14350
14208
|
currentTenantId: {},
|
|
14351
14209
|
draggable: { type: Boolean },
|
|
14352
|
-
|
|
14210
|
+
renderTag: { type: Function },
|
|
14353
14211
|
showTenant: { type: Boolean },
|
|
14354
|
-
|
|
14212
|
+
tenants: {},
|
|
14213
|
+
user: {}
|
|
14355
14214
|
},
|
|
14356
14215
|
emits: ["click", "close"],
|
|
14357
14216
|
setup(__props, { emit: __emit }) {
|
|
@@ -14384,7 +14243,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14384
14243
|
};
|
|
14385
14244
|
}
|
|
14386
14245
|
});
|
|
14387
|
-
const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
14246
|
+
const UserTag = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-48ac8fc1"]]);
|
|
14388
14247
|
const _hoisted_1$1 = ["onClick"];
|
|
14389
14248
|
const _hoisted_2$1 = ["placeholder"];
|
|
14390
14249
|
const _hoisted_3 = { class: "hidden-users" };
|
|
@@ -14395,26 +14254,34 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14395
14254
|
},
|
|
14396
14255
|
__name: "multiple-selector",
|
|
14397
14256
|
props: {
|
|
14398
|
-
modelValue: { default: () => [] },
|
|
14399
14257
|
draggable: { type: Boolean, default: false },
|
|
14258
|
+
modelValue: { default: () => [] },
|
|
14400
14259
|
selectedUsers: { default: () => [] },
|
|
14401
14260
|
tenants: { default: () => ({}) },
|
|
14261
|
+
allowCreate: { type: Boolean, default: false },
|
|
14402
14262
|
apiBaseUrl: { default: "" },
|
|
14403
|
-
tenantId: { default: "" },
|
|
14404
|
-
placeholder: { default: "" },
|
|
14405
14263
|
currentUserId: { default: "" },
|
|
14264
|
+
disabled: { type: Boolean },
|
|
14265
|
+
emptyText: { default: "" },
|
|
14266
|
+
enableMultiTenantMode: { type: Boolean },
|
|
14406
14267
|
exactSearchKey: { default: "bk_username" },
|
|
14407
|
-
|
|
14268
|
+
excludeUserIds: { default: () => [] },
|
|
14269
|
+
placeholder: { default: "" },
|
|
14270
|
+
tenantId: { default: "" },
|
|
14408
14271
|
userGroupName: { default: "" },
|
|
14409
|
-
emptyText: { default: "" },
|
|
14410
|
-
disabled: { type: Boolean },
|
|
14411
14272
|
renderListItem: {},
|
|
14412
14273
|
renderTag: {},
|
|
14413
|
-
|
|
14414
|
-
enableMultiTenantMode: { type: Boolean },
|
|
14415
|
-
allowCreate: { type: Boolean, default: false }
|
|
14274
|
+
userGroup: { default: () => [] }
|
|
14416
14275
|
},
|
|
14417
|
-
emits: [
|
|
14276
|
+
emits: [
|
|
14277
|
+
"update:selectedUsers",
|
|
14278
|
+
"add-user",
|
|
14279
|
+
"remove-user",
|
|
14280
|
+
"dragStart",
|
|
14281
|
+
"dragEnd",
|
|
14282
|
+
"focus",
|
|
14283
|
+
"blur"
|
|
14284
|
+
],
|
|
14418
14285
|
setup(__props, { emit: __emit }) {
|
|
14419
14286
|
const props2 = __props;
|
|
14420
14287
|
const emit = __emit;
|
|
@@ -14459,6 +14326,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14459
14326
|
sortableInstance.value = new Sortable(sortableContainerRef.value, {
|
|
14460
14327
|
animation: 150,
|
|
14461
14328
|
draggable: ".tag-wrapper",
|
|
14329
|
+
onStart: (event) => {
|
|
14330
|
+
emit("dragStart", event);
|
|
14331
|
+
},
|
|
14462
14332
|
onEnd: (evt) => {
|
|
14463
14333
|
const { oldIndex, newIndex } = evt;
|
|
14464
14334
|
if (oldIndex === newIndex || oldIndex === void 0 || newIndex === void 0) return;
|
|
@@ -14466,6 +14336,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14466
14336
|
const [movedUser] = updatedUsers.splice(oldIndex, 1);
|
|
14467
14337
|
updatedUsers.splice(newIndex, 0, movedUser);
|
|
14468
14338
|
emit("update:selectedUsers", updatedUsers);
|
|
14339
|
+
emit("dragEnd", evt);
|
|
14469
14340
|
}
|
|
14470
14341
|
});
|
|
14471
14342
|
};
|
|
@@ -14501,7 +14372,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14501
14372
|
});
|
|
14502
14373
|
};
|
|
14503
14374
|
const handleClickOutside = (event) => {
|
|
14504
|
-
event.stopPropagation();
|
|
14505
14375
|
const target = event.target;
|
|
14506
14376
|
const container = containerRef.value;
|
|
14507
14377
|
if ((container == null ? void 0 : container.contains(target)) || container === target) {
|
|
@@ -14749,8 +14619,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14749
14619
|
null,
|
|
14750
14620
|
renderList(_ctx.selectedUsers, (user, index) => {
|
|
14751
14621
|
return openBlock(), createElementBlock("div", {
|
|
14752
|
-
class: "tag-wrapper",
|
|
14753
14622
|
key: user.id,
|
|
14623
|
+
class: "tag-wrapper",
|
|
14754
14624
|
onClick: withModifiers(($event) => handleTagClick(index), ["stop"])
|
|
14755
14625
|
}, [
|
|
14756
14626
|
createVNode(UserTag, {
|
|
@@ -14771,8 +14641,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14771
14641
|
ref_for: true,
|
|
14772
14642
|
ref_key: "inlineInputRef",
|
|
14773
14643
|
ref: inlineInputRef,
|
|
14774
|
-
class: "search-input inline",
|
|
14775
14644
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
14645
|
+
class: "search-input inline",
|
|
14776
14646
|
onFocus: handleInputFocus,
|
|
14777
14647
|
onInput: handleInput,
|
|
14778
14648
|
onKeydown: handleKeyDown,
|
|
@@ -14794,8 +14664,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14794
14664
|
key: 0,
|
|
14795
14665
|
ref_key: "lastInputRef",
|
|
14796
14666
|
ref: lastInputRef,
|
|
14797
|
-
class: "search-input last",
|
|
14798
14667
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
14668
|
+
class: "search-input last",
|
|
14799
14669
|
placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
|
|
14800
14670
|
onFocus: handleInputFocus,
|
|
14801
14671
|
onInput: handleInput,
|
|
@@ -14836,8 +14706,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14836
14706
|
null,
|
|
14837
14707
|
renderList(visibleUsers.value, (user) => {
|
|
14838
14708
|
return openBlock(), createBlock(UserTag, {
|
|
14839
|
-
"current-tenant-id": _ctx.tenantId,
|
|
14840
14709
|
key: user.id,
|
|
14710
|
+
"current-tenant-id": _ctx.tenantId,
|
|
14841
14711
|
"render-tag": _ctx.renderTag,
|
|
14842
14712
|
"show-tenant": true,
|
|
14843
14713
|
tenants: _ctx.tenants,
|
|
@@ -14892,8 +14762,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14892
14762
|
withDirectives(createElementVNode("input", {
|
|
14893
14763
|
ref_key: "collapsedInputRef",
|
|
14894
14764
|
ref: collapsedInputRef,
|
|
14895
|
-
class: "search-input collapsed",
|
|
14896
14765
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(searchQuery) ? searchQuery.value = $event : null),
|
|
14766
|
+
class: "search-input collapsed",
|
|
14897
14767
|
placeholder: !_ctx.selectedUsers.length ? _ctx.placeholder : "",
|
|
14898
14768
|
onFocus: handleFocus
|
|
14899
14769
|
}, null, 40, _hoisted_4), [
|
|
@@ -14924,7 +14794,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14924
14794
|
};
|
|
14925
14795
|
}
|
|
14926
14796
|
});
|
|
14927
|
-
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
14797
|
+
const MultipleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-6c9ac297"]]);
|
|
14928
14798
|
const _hoisted_1 = { class: "input-container" };
|
|
14929
14799
|
const _hoisted_2 = ["placeholder"];
|
|
14930
14800
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -14935,20 +14805,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
14935
14805
|
props: {
|
|
14936
14806
|
modelValue: { default: "" },
|
|
14937
14807
|
tenants: {},
|
|
14808
|
+
allowCreate: { type: Boolean },
|
|
14938
14809
|
apiBaseUrl: { default: "" },
|
|
14939
|
-
tenantId: { default: "" },
|
|
14940
|
-
placeholder: { default: "" },
|
|
14941
14810
|
currentUserId: { default: "" },
|
|
14811
|
+
disabled: { type: Boolean },
|
|
14812
|
+
emptyText: { default: "" },
|
|
14813
|
+
enableMultiTenantMode: { type: Boolean },
|
|
14942
14814
|
exactSearchKey: { default: "bk_username" },
|
|
14943
|
-
|
|
14815
|
+
excludeUserIds: { default: () => [] },
|
|
14816
|
+
placeholder: { default: "" },
|
|
14817
|
+
tenantId: { default: "" },
|
|
14944
14818
|
userGroupName: { default: "" },
|
|
14945
|
-
emptyText: { default: "" },
|
|
14946
|
-
disabled: { type: Boolean },
|
|
14947
14819
|
renderListItem: {},
|
|
14948
14820
|
renderTag: {},
|
|
14949
|
-
|
|
14950
|
-
enableMultiTenantMode: { type: Boolean },
|
|
14951
|
-
allowCreate: { type: Boolean }
|
|
14821
|
+
userGroup: { default: () => [] }
|
|
14952
14822
|
},
|
|
14953
14823
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
14954
14824
|
setup(__props, { emit: __emit }) {
|
|
@@ -15154,8 +15024,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
15154
15024
|
withDirectives(createElementVNode("input", {
|
|
15155
15025
|
ref_key: "inputRef",
|
|
15156
15026
|
ref: inputRef,
|
|
15157
|
-
class: "search-input",
|
|
15158
15027
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchQuery.value = $event),
|
|
15028
|
+
class: "search-input",
|
|
15159
15029
|
placeholder: selectedUserInfo.value ? "" : _ctx.placeholder,
|
|
15160
15030
|
onBlur: _cache[1] || (_cache[1] = ($event) => emit("blur")),
|
|
15161
15031
|
onFocus: handleInputFocus,
|
|
@@ -15184,32 +15054,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
15184
15054
|
};
|
|
15185
15055
|
}
|
|
15186
15056
|
});
|
|
15187
|
-
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
15057
|
+
const SingleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2a791ec6"]]);
|
|
15188
15058
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15189
15059
|
...{
|
|
15190
15060
|
name: "BkUserSelector"
|
|
15191
15061
|
},
|
|
15192
15062
|
__name: "user-selector",
|
|
15193
15063
|
props: {
|
|
15194
|
-
modelValue: { default: "" },
|
|
15195
15064
|
draggable: { type: Boolean, default: false },
|
|
15065
|
+
modelValue: { default: "" },
|
|
15196
15066
|
multiple: { type: Boolean, default: false },
|
|
15067
|
+
allowCreate: { type: Boolean, default: false },
|
|
15197
15068
|
apiBaseUrl: { default: "" },
|
|
15198
|
-
tenantId: { default: "" },
|
|
15199
|
-
placeholder: { default: "" },
|
|
15200
15069
|
currentUserId: { default: "" },
|
|
15070
|
+
disabled: { type: Boolean, default: false },
|
|
15071
|
+
emptyText: { default: "" },
|
|
15072
|
+
enableMultiTenantMode: { type: Boolean, default: true },
|
|
15201
15073
|
exactSearchKey: { default: "bk_username" },
|
|
15202
|
-
|
|
15074
|
+
excludeUserIds: { default: () => [] },
|
|
15075
|
+
placeholder: { default: "" },
|
|
15076
|
+
tenantId: { default: "" },
|
|
15203
15077
|
userGroupName: { default: "" },
|
|
15204
|
-
emptyText: { default: "" },
|
|
15205
|
-
disabled: { type: Boolean, default: false },
|
|
15206
15078
|
renderListItem: {},
|
|
15207
15079
|
renderTag: {},
|
|
15208
|
-
|
|
15209
|
-
enableMultiTenantMode: { type: Boolean, default: true },
|
|
15210
|
-
allowCreate: { type: Boolean, default: false }
|
|
15080
|
+
userGroup: { default: () => [] }
|
|
15211
15081
|
},
|
|
15212
|
-
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
15082
|
+
emits: ["update:modelValue", "change", "dragStart", "dragEnd", "focus", "blur"],
|
|
15213
15083
|
setup(__props, { emit: __emit }) {
|
|
15214
15084
|
const { t: t2 } = useI18n();
|
|
15215
15085
|
__webpack_exports__provideGlobalConfig({
|
|
@@ -15359,6 +15229,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15359
15229
|
"user-group": _ctx.userGroup,
|
|
15360
15230
|
"user-group-name": userGroupName.value,
|
|
15361
15231
|
onBlur: handleBlur,
|
|
15232
|
+
onDragEnd: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("dragEnd", $event)),
|
|
15233
|
+
onDragStart: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("dragStart", $event)),
|
|
15362
15234
|
onFocus: handleFocus,
|
|
15363
15235
|
"onUpdate:selectedUsers": handleUpdateSelectedUsers
|
|
15364
15236
|
}, 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"])
|
|
@@ -15373,7 +15245,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15373
15245
|
};
|
|
15374
15246
|
}
|
|
15375
15247
|
});
|
|
15376
|
-
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
15248
|
+
const BkUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4c00173"]]);
|
|
15377
15249
|
const vue2 = {
|
|
15378
15250
|
model: {
|
|
15379
15251
|
prop: "modelValue",
|
|
@@ -15403,6 +15275,12 @@ const vue2 = {
|
|
|
15403
15275
|
onFocus() {
|
|
15404
15276
|
emit("focus", ...arguments);
|
|
15405
15277
|
},
|
|
15278
|
+
onDragStart: (event) => {
|
|
15279
|
+
emit("dragStart", event);
|
|
15280
|
+
},
|
|
15281
|
+
onDragEnd: (event) => {
|
|
15282
|
+
emit("dragEnd", event);
|
|
15283
|
+
},
|
|
15406
15284
|
ref: "userSelectorRef"
|
|
15407
15285
|
});
|
|
15408
15286
|
}
|