bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78

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.
Files changed (144) hide show
  1. package/dist/index.cjs.js +48 -48
  2. package/dist/index.esm.js +8323 -8377
  3. package/dist/index.umd.js +48 -48
  4. package/lib/affix/index.js +5 -3
  5. package/lib/alert/index.js +2 -3
  6. package/lib/backtop/index.js +2 -2
  7. package/lib/badge/index.js +3 -4
  8. package/lib/breadcrumb/index.js +4 -4
  9. package/lib/button/index.js +6 -6
  10. package/lib/card/index.js +16 -5
  11. package/lib/cascader/index.js +70 -53
  12. package/lib/checkbox/index.js +4 -4
  13. package/lib/collapse/index.js +58 -6
  14. package/lib/color-picker/index.js +14 -11
  15. package/lib/config-provider/index.js +51 -3
  16. package/lib/container/index.js +55 -7
  17. package/lib/date-picker/index.js +202 -156
  18. package/lib/dialog/index.js +140 -431
  19. package/lib/directives/index.js +59 -19
  20. package/lib/dropdown/index.js +8 -8
  21. package/lib/exception/index.js +5 -5
  22. package/lib/form/index.js +22 -16
  23. package/lib/icon/angle-double-down-line.js +84 -374
  24. package/lib/icon/angle-double-left-line.js +84 -374
  25. package/lib/icon/angle-double-left.js +84 -374
  26. package/lib/icon/angle-double-right-line.js +84 -374
  27. package/lib/icon/angle-double-right.js +84 -374
  28. package/lib/icon/angle-double-up-line.js +84 -374
  29. package/lib/icon/angle-down-fill.js +84 -374
  30. package/lib/icon/angle-down-line.js +84 -374
  31. package/lib/icon/angle-down.js +84 -374
  32. package/lib/icon/angle-left.js +84 -374
  33. package/lib/icon/angle-right.js +84 -374
  34. package/lib/icon/angle-up-fill.js +84 -374
  35. package/lib/icon/angle-up.js +84 -374
  36. package/lib/icon/archive-fill.js +84 -374
  37. package/lib/icon/arrows-left.js +84 -374
  38. package/lib/icon/arrows-right.js +84 -374
  39. package/lib/icon/assistant.js +84 -374
  40. package/lib/icon/audio-fill.js +84 -374
  41. package/lib/icon/bk.js +84 -374
  42. package/lib/icon/circle.js +84 -374
  43. package/lib/icon/close-line.js +84 -374
  44. package/lib/icon/close.js +84 -374
  45. package/lib/icon/code.js +84 -374
  46. package/lib/icon/cog-shape.js +84 -374
  47. package/lib/icon/collapse-left.js +84 -374
  48. package/lib/icon/copy-shape.js +84 -374
  49. package/lib/icon/copy.js +84 -374
  50. package/lib/icon/data-shape.js +84 -374
  51. package/lib/icon/del.js +84 -374
  52. package/lib/icon/doc-fill.js +84 -374
  53. package/lib/icon/done.js +84 -374
  54. package/lib/icon/down-shape.js +84 -374
  55. package/lib/icon/down-small.js +84 -374
  56. package/lib/icon/edit-line.js +84 -374
  57. package/lib/icon/ellipsis.js +84 -374
  58. package/lib/icon/enlarge-line.js +84 -374
  59. package/lib/icon/error.js +84 -374
  60. package/lib/icon/excel-fill.js +84 -374
  61. package/lib/icon/exclamation-circle-shape.js +84 -374
  62. package/lib/icon/eye.js +84 -374
  63. package/lib/icon/filliscreen-line.js +84 -374
  64. package/lib/icon/fix-line.js +84 -374
  65. package/lib/icon/fix-shape.js +84 -374
  66. package/lib/icon/folder-open.js +84 -374
  67. package/lib/icon/folder-shape-open.js +84 -374
  68. package/lib/icon/folder-shape.js +84 -374
  69. package/lib/icon/folder.js +84 -374
  70. package/lib/icon/funnel.js +84 -374
  71. package/lib/icon/help-document-fill.js +84 -374
  72. package/lib/icon/help-fill.js +84 -374
  73. package/lib/icon/help.js +84 -374
  74. package/lib/icon/image-fill.js +131 -382
  75. package/lib/icon/img-error.js +131 -382
  76. package/lib/icon/img-placehoulder.js +131 -382
  77. package/lib/icon/index.js +563 -531
  78. package/lib/icon/info-line.js +131 -382
  79. package/lib/icon/info.js +131 -382
  80. package/lib/icon/left-shape.js +131 -382
  81. package/lib/icon/left-turn-line.js +131 -382
  82. package/lib/icon/narrow-line.js +131 -382
  83. package/lib/icon/original.js +131 -382
  84. package/lib/icon/pdf-fill.js +131 -382
  85. package/lib/icon/play-shape.js +131 -382
  86. package/lib/icon/plus.js +131 -382
  87. package/lib/icon/ppt-fill.js +131 -382
  88. package/lib/icon/qq.js +131 -382
  89. package/lib/icon/right-shape.js +131 -382
  90. package/lib/icon/right-turn-line.js +131 -382
  91. package/lib/icon/search.js +131 -382
  92. package/lib/icon/share.js +131 -382
  93. package/lib/icon/spinner.js +131 -382
  94. package/lib/icon/success.js +131 -382
  95. package/lib/icon/switcher-loading.js +131 -382
  96. package/lib/icon/text-file.js +131 -382
  97. package/lib/icon/text-fill.js +131 -382
  98. package/lib/icon/transfer.js +131 -382
  99. package/lib/icon/tree-application-shape.js +131 -382
  100. package/lib/icon/unfull-screen.js +131 -382
  101. package/lib/icon/unvisible.js +131 -382
  102. package/lib/icon/up-shape.js +131 -382
  103. package/lib/icon/upload.js +131 -382
  104. package/lib/icon/video-fill.js +131 -382
  105. package/lib/icon/warn.js +131 -382
  106. package/lib/icon/weixin-pro.js +131 -382
  107. package/lib/icon/weixin.js +131 -382
  108. package/lib/image/index.js +57 -9
  109. package/lib/info-box/index.js +145 -436
  110. package/lib/input/index.js +105 -415
  111. package/lib/link/index.js +2 -2
  112. package/lib/loading/index.js +18 -16
  113. package/lib/menu/index.js +22 -23
  114. package/lib/message/index.js +62 -57
  115. package/lib/modal/index.js +77 -18
  116. package/lib/navigation/index.js +11 -11
  117. package/lib/notify/index.js +51 -48
  118. package/lib/overflow-title/index.js +6 -5
  119. package/lib/plugin-popover/index.js +202 -364
  120. package/lib/popover/index.js +202 -364
  121. package/lib/process/index.js +55 -395
  122. package/lib/progress/index.js +51 -48
  123. package/lib/radio/index.js +4 -4
  124. package/lib/rate/index.js +2 -2
  125. package/lib/resize-layout/index.js +4 -5
  126. package/lib/search-select/index.js +179 -486
  127. package/lib/select/index.js +148 -479
  128. package/lib/shared/index.js +176 -352
  129. package/lib/sideslider/index.js +82 -373
  130. package/lib/slider/index.js +48 -386
  131. package/lib/steps/index.js +67 -405
  132. package/lib/swiper/index.js +10 -10
  133. package/lib/switcher/index.js +2 -2
  134. package/lib/tab/index.js +63 -8
  135. package/lib/table/index.js +262 -424
  136. package/lib/table-column/index.js +7 -6
  137. package/lib/tag/index.js +2 -2
  138. package/lib/tag-input/index.js +29 -21
  139. package/lib/timeline/index.js +6 -7
  140. package/lib/transfer/index.js +8 -8
  141. package/lib/tree/index.js +139 -319
  142. package/lib/upload/index.js +104 -423
  143. package/lib/virtual-render/index.js +60 -16
  144. package/package.json +2 -1
@@ -804,381 +804,40 @@ const external_directives_namespaceObject = external_directives_x({ ["clickoutsi
804
804
  var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
805
805
  var external_icon_y = x => () => x
806
806
  const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Search });
807
- // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
808
- var regenerator = __webpack_require__(2841);
809
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
810
- ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.mjs
811
- /******************************************************************************
812
- Copyright (c) Microsoft Corporation.
813
-
814
- Permission to use, copy, modify, and/or distribute this software for any
815
- purpose with or without fee is hereby granted.
816
-
817
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
818
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
819
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
820
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
821
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
822
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
823
- PERFORMANCE OF THIS SOFTWARE.
824
- ***************************************************************************** */
825
- /* global Reflect, Promise, SuppressedError, Symbol */
826
-
827
- var extendStatics = function(d, b) {
828
- extendStatics = Object.setPrototypeOf ||
829
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
830
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
831
- return extendStatics(d, b);
832
- };
833
-
834
- function __extends(d, b) {
835
- if (typeof b !== "function" && b !== null)
836
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
837
- extendStatics(d, b);
838
- function __() { this.constructor = d; }
839
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
840
- }
841
-
842
- var __assign = function() {
843
- __assign = Object.assign || function __assign(t) {
844
- for (var s, i = 1, n = arguments.length; i < n; i++) {
845
- s = arguments[i];
846
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
847
- }
848
- return t;
849
- }
850
- return __assign.apply(this, arguments);
851
- }
852
-
853
- function __rest(s, e) {
854
- var t = {};
855
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
856
- t[p] = s[p];
857
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
858
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
859
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
860
- t[p[i]] = s[p[i]];
861
- }
862
- return t;
863
- }
864
-
865
- function __decorate(decorators, target, key, desc) {
866
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
867
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
868
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
869
- return c > 3 && r && Object.defineProperty(target, key, r), r;
870
- }
871
-
872
- function __param(paramIndex, decorator) {
873
- return function (target, key) { decorator(target, key, paramIndex); }
874
- }
875
-
876
- function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
877
- function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
878
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
879
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
880
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
881
- var _, done = false;
882
- for (var i = decorators.length - 1; i >= 0; i--) {
883
- var context = {};
884
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
885
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
886
- context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
887
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
888
- if (kind === "accessor") {
889
- if (result === void 0) continue;
890
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
891
- if (_ = accept(result.get)) descriptor.get = _;
892
- if (_ = accept(result.set)) descriptor.set = _;
893
- if (_ = accept(result.init)) initializers.unshift(_);
894
- }
895
- else if (_ = accept(result)) {
896
- if (kind === "field") initializers.unshift(_);
897
- else descriptor[key] = _;
898
- }
899
- }
900
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
901
- done = true;
902
- };
903
-
904
- function __runInitializers(thisArg, initializers, value) {
905
- var useValue = arguments.length > 2;
906
- for (var i = 0; i < initializers.length; i++) {
907
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
908
- }
909
- return useValue ? value : void 0;
910
- };
911
-
912
- function __propKey(x) {
913
- return typeof x === "symbol" ? x : "".concat(x);
914
- };
915
-
916
- function __setFunctionName(f, name, prefix) {
917
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
918
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
919
- };
920
-
921
- function __metadata(metadataKey, metadataValue) {
922
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
923
- }
924
-
925
- function __awaiter(thisArg, _arguments, P, generator) {
926
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
927
- return new (P || (P = Promise))(function (resolve, reject) {
928
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
929
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
930
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
931
- step((generator = generator.apply(thisArg, _arguments || [])).next());
932
- });
933
- }
934
-
935
- function __generator(thisArg, body) {
936
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
937
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
938
- function verb(n) { return function (v) { return step([n, v]); }; }
939
- function step(op) {
940
- if (f) throw new TypeError("Generator is already executing.");
941
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
942
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
943
- if (y = 0, t) op = [op[0] & 2, t.value];
944
- switch (op[0]) {
945
- case 0: case 1: t = op; break;
946
- case 4: _.label++; return { value: op[1], done: false };
947
- case 5: _.label++; y = op[1]; op = [0]; continue;
948
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
949
- default:
950
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
951
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
952
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
953
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
954
- if (t[2]) _.ops.pop();
955
- _.trys.pop(); continue;
956
- }
957
- op = body.call(thisArg, _);
958
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
959
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
960
- }
961
- }
962
-
963
- var __createBinding = Object.create ? (function(o, m, k, k2) {
964
- if (k2 === undefined) k2 = k;
965
- var desc = Object.getOwnPropertyDescriptor(m, k);
966
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
967
- desc = { enumerable: true, get: function() { return m[k]; } };
968
- }
969
- Object.defineProperty(o, k2, desc);
970
- }) : (function(o, m, k, k2) {
971
- if (k2 === undefined) k2 = k;
972
- o[k2] = m[k];
973
- });
974
-
975
- function __exportStar(m, o) {
976
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
977
- }
978
-
979
- function __values(o) {
980
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
981
- if (m) return m.call(o);
982
- if (o && typeof o.length === "number") return {
983
- next: function () {
984
- if (o && i >= o.length) o = void 0;
985
- return { value: o && o[i++], done: !o };
986
- }
987
- };
988
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
989
- }
990
-
991
- function __read(o, n) {
992
- var m = typeof Symbol === "function" && o[Symbol.iterator];
993
- if (!m) return o;
994
- var i = m.call(o), r, ar = [], e;
807
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
808
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
995
809
  try {
996
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
810
+ var info = gen[key](arg);
811
+ var value = info.value;
812
+ } catch (error) {
813
+ reject(error);
814
+ return;
997
815
  }
998
- catch (error) { e = { error: error }; }
999
- finally {
1000
- try {
1001
- if (r && !r.done && (m = i["return"])) m.call(i);
1002
- }
1003
- finally { if (e) throw e.error; }
1004
- }
1005
- return ar;
1006
- }
1007
-
1008
- /** @deprecated */
1009
- function __spread() {
1010
- for (var ar = [], i = 0; i < arguments.length; i++)
1011
- ar = ar.concat(__read(arguments[i]));
1012
- return ar;
1013
- }
1014
-
1015
- /** @deprecated */
1016
- function __spreadArrays() {
1017
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1018
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
1019
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1020
- r[k] = a[j];
1021
- return r;
1022
- }
1023
-
1024
- function __spreadArray(to, from, pack) {
1025
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
1026
- if (ar || !(i in from)) {
1027
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
1028
- ar[i] = from[i];
1029
- }
1030
- }
1031
- return to.concat(ar || Array.prototype.slice.call(from));
1032
- }
1033
-
1034
- function __await(v) {
1035
- return this instanceof __await ? (this.v = v, this) : new __await(v);
1036
- }
1037
-
1038
- function __asyncGenerator(thisArg, _arguments, generator) {
1039
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1040
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
1041
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1042
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1043
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1044
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1045
- function fulfill(value) { resume("next", value); }
1046
- function reject(value) { resume("throw", value); }
1047
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1048
- }
1049
-
1050
- function __asyncDelegator(o) {
1051
- var i, p;
1052
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1053
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
1054
- }
1055
-
1056
- function __asyncValues(o) {
1057
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1058
- var m = o[Symbol.asyncIterator], i;
1059
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1060
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1061
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1062
- }
1063
-
1064
- function __makeTemplateObject(cooked, raw) {
1065
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
1066
- return cooked;
1067
- };
1068
-
1069
- var __setModuleDefault = Object.create ? (function(o, v) {
1070
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1071
- }) : function(o, v) {
1072
- o["default"] = v;
1073
- };
1074
-
1075
- function __importStar(mod) {
1076
- if (mod && mod.__esModule) return mod;
1077
- var result = {};
1078
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1079
- __setModuleDefault(result, mod);
1080
- return result;
1081
- }
1082
-
1083
- function __importDefault(mod) {
1084
- return (mod && mod.__esModule) ? mod : { default: mod };
1085
- }
1086
-
1087
- function __classPrivateFieldGet(receiver, state, kind, f) {
1088
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1089
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1090
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1091
- }
1092
-
1093
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
1094
- if (kind === "m") throw new TypeError("Private method is not writable");
1095
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1096
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1097
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1098
- }
1099
-
1100
- function __classPrivateFieldIn(state, receiver) {
1101
- if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
1102
- return typeof state === "function" ? receiver === state : state.has(receiver);
1103
- }
1104
-
1105
- function __addDisposableResource(env, value, async) {
1106
- if (value !== null && value !== void 0) {
1107
- if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
1108
- var dispose;
1109
- if (async) {
1110
- if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
1111
- dispose = value[Symbol.asyncDispose];
1112
- }
1113
- if (dispose === void 0) {
1114
- if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
1115
- dispose = value[Symbol.dispose];
1116
- }
1117
- if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
1118
- env.stack.push({ value: value, dispose: dispose, async: async });
1119
- }
1120
- else if (async) {
1121
- env.stack.push({ async: true });
816
+ if (info.done) {
817
+ resolve(value);
818
+ } else {
819
+ Promise.resolve(value).then(_next, _throw);
1122
820
  }
1123
- return value;
1124
821
  }
1125
-
1126
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1127
- var e = new Error(message);
1128
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1129
- };
1130
-
1131
- function __disposeResources(env) {
1132
- function fail(e) {
1133
- env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
1134
- env.hasError = true;
1135
- }
1136
- function next() {
1137
- while (env.stack.length) {
1138
- var rec = env.stack.pop();
1139
- try {
1140
- var result = rec.dispose && rec.dispose.call(rec.value);
1141
- if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
822
+ function _asyncToGenerator(fn) {
823
+ return function () {
824
+ var self = this,
825
+ args = arguments;
826
+ return new Promise(function (resolve, reject) {
827
+ var gen = fn.apply(self, args);
828
+ function _next(value) {
829
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
1142
830
  }
1143
- catch (e) {
1144
- fail(e);
831
+ function _throw(err) {
832
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
1145
833
  }
1146
- }
1147
- if (env.hasError) throw env.error;
1148
- }
1149
- return next();
834
+ _next(undefined);
835
+ });
836
+ };
1150
837
  }
1151
-
1152
- /* harmony default export */ const tslib_es6 = ({
1153
- __extends,
1154
- __assign,
1155
- __rest,
1156
- __decorate,
1157
- __param,
1158
- __metadata,
1159
- __awaiter,
1160
- __generator,
1161
- __createBinding,
1162
- __exportStar,
1163
- __values,
1164
- __read,
1165
- __spread,
1166
- __spreadArrays,
1167
- __spreadArray,
1168
- __await,
1169
- __asyncGenerator,
1170
- __asyncDelegator,
1171
- __asyncValues,
1172
- __makeTemplateObject,
1173
- __importStar,
1174
- __importDefault,
1175
- __classPrivateFieldGet,
1176
- __classPrivateFieldSet,
1177
- __classPrivateFieldIn,
1178
- __addDisposableResource,
1179
- __disposeResources,
1180
- });
1181
-
838
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
839
+ var regenerator = __webpack_require__(2841);
840
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
1182
841
  ;// CONCATENATED MODULE: external "../popover"
1183
842
  var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1184
843
  var external_popover_y = x => () => x
@@ -1219,6 +878,7 @@ function _createClass(Constructor, protoProps, staticProps) {
1219
878
  ;// CONCATENATED MODULE: ../../packages/search-select/src/utils.ts
1220
879
 
1221
880
 
881
+
1222
882
  /*
1223
883
  * Tencent is pleased to support the open source community by making
1224
884
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1277,9 +937,9 @@ var SelectedItem = /*#__PURE__*/function () {
1277
937
  function SelectedItem(searchItem) {
1278
938
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1279
939
  _classCallCheck(this, SelectedItem);
940
+ _defineProperty(this, "values", []);
1280
941
  this.searchItem = searchItem;
1281
942
  this.type = type;
1282
- this.values = [];
1283
943
  this.id = searchItem.id;
1284
944
  this.name = searchItem.name;
1285
945
  this.logical = searchItem.logical || SearchLogical.OR;
@@ -1307,18 +967,18 @@ var SelectedItem = /*#__PURE__*/function () {
1307
967
  }, {
1308
968
  key: "inputInnerHtml",
1309
969
  get: function get() {
1310
- var _a;
970
+ var _this$values;
1311
971
  if (this.isSpecialType()) return this.name;
1312
- return "".concat(this.keyInnerHtml).concat(((_a = this.values) === null || _a === void 0 ? void 0 : _a.map(function (item) {
972
+ return "".concat(this.keyInnerHtml).concat(((_this$values = this.values) === null || _this$values === void 0 ? void 0 : _this$values.map(function (item) {
1313
973
  return item.name;
1314
974
  }).join(" ".concat(this.logical, " "))) || '');
1315
975
  }
1316
976
  }, {
1317
977
  key: "inputInnerText",
1318
978
  get: function get() {
1319
- var _a;
979
+ var _this$values2;
1320
980
  if (this.isSpecialType()) return this.name;
1321
- return "".concat(this.keyInnerText).concat(((_a = this.values) === null || _a === void 0 ? void 0 : _a.map(function (item) {
981
+ return "".concat(this.keyInnerText).concat(((_this$values2 = this.values) === null || _this$values2 === void 0 ? void 0 : _this$values2.map(function (item) {
1322
982
  return item.name;
1323
983
  }).join(" ".concat(this.logical, " "))) || '');
1324
984
  }
@@ -1363,12 +1023,12 @@ var SelectedItem = /*#__PURE__*/function () {
1363
1023
  }, {
1364
1024
  key: "toValue",
1365
1025
  value: function toValue() {
1366
- var _a;
1026
+ var _this$values3;
1367
1027
  var value = {
1368
1028
  id: this.id,
1369
1029
  name: this.name
1370
1030
  };
1371
- if ((_a = this.values) === null || _a === void 0 ? void 0 : _a.length) {
1031
+ if ((_this$values3 = this.values) !== null && _this$values3 !== void 0 && _this$values3.length) {
1372
1032
  value.values = this.values.map(function (item) {
1373
1033
  return {
1374
1034
  id: item.id,
@@ -1501,18 +1161,19 @@ var SelectedItem = /*#__PURE__*/function () {
1501
1161
  emit('footerClick', item);
1502
1162
  }
1503
1163
  var filterList = (0,external_vue_namespaceObject.computed)(function () {
1504
- var _a, _b;
1505
- if (!((_a = props.list) === null || _a === void 0 ? void 0 : _a.length)) return [];
1506
- if (!((_b = props.keyword) === null || _b === void 0 ? void 0 : _b.length)) return props.list;
1164
+ var _props$list, _props$keyword;
1165
+ if (!((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length)) return [];
1166
+ if (!((_props$keyword = props.keyword) !== null && _props$keyword !== void 0 && _props$keyword.length)) return props.list;
1507
1167
  return props.list.filter(function (item) {
1508
1168
  return item.name.toLocaleLowerCase().includes(props.keyword.toLocaleLowerCase());
1509
1169
  });
1510
1170
  });
1511
1171
  function transformNode(str) {
1172
+ var _keyword;
1512
1173
  if (!str) return str;
1513
1174
  var keyword = props.keyword;
1514
1175
  var len = keyword.length;
1515
- if (!(keyword === null || keyword === void 0 ? void 0 : keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
1176
+ if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
1516
1177
  var list = [];
1517
1178
  var lastIndex = -1;
1518
1179
  keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
@@ -1534,8 +1195,8 @@ var SelectedItem = /*#__PURE__*/function () {
1534
1195
  return list.length ? list : str;
1535
1196
  }
1536
1197
  function getSearchNode(item) {
1537
- var _a;
1538
- if (!((_a = item.value) === null || _a === void 0 ? void 0 : _a.name)) return transformNode(item.name);
1198
+ var _item$value;
1199
+ if (!((_item$value = item.value) !== null && _item$value !== void 0 && _item$value.name)) return transformNode(item.name);
1539
1200
  return [(0,external_vue_namespaceObject.createVNode)("span", {
1540
1201
  "class": "menu-name"
1541
1202
  }, [item.name, (0,external_vue_namespaceObject.createTextVNode)(":")]), item.value.name];
@@ -1562,11 +1223,12 @@ var SelectedItem = /*#__PURE__*/function () {
1562
1223
  };
1563
1224
  },
1564
1225
  render: function render() {
1565
- var _this = this;
1566
- var _a, _b;
1226
+ var _this$list,
1227
+ _this = this,
1228
+ _this$conditions;
1567
1229
  var listMenu = (0,external_vue_namespaceObject.createVNode)("ul", {
1568
1230
  "class": "menu-content"
1569
- }, [(_a = this.list) === null || _a === void 0 ? void 0 : _a.map(function (item) {
1231
+ }, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
1570
1232
  return (0,external_vue_namespaceObject.createVNode)("li", {
1571
1233
  "class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
1572
1234
  "key": item.id,
@@ -1618,7 +1280,7 @@ var SelectedItem = /*#__PURE__*/function () {
1618
1280
  };
1619
1281
  return (0,external_vue_namespaceObject.createVNode)("div", {
1620
1282
  "class": this.resolveClassName('search-select-menu')
1621
- }, [!!((_b = this.conditions) === null || _b === void 0 ? void 0 : _b.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
1283
+ }, [!!((_this$conditions = this.conditions) !== null && _this$conditions !== void 0 && _this$conditions.length) && (0,external_vue_namespaceObject.createVNode)("ul", {
1622
1284
  "class": "menu-header"
1623
1285
  }, [this.conditions.map(function (item) {
1624
1286
  return (0,external_vue_namespaceObject.createVNode)("li", {
@@ -1635,6 +1297,9 @@ var SelectedItem = /*#__PURE__*/function () {
1635
1297
 
1636
1298
 
1637
1299
 
1300
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1301
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1302
+
1638
1303
  /*
1639
1304
  * Tencent is pleased to support the open source community by making
1640
1305
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1721,8 +1386,8 @@ var SelectedItem = /*#__PURE__*/function () {
1721
1386
  editKey = _useSearchSelectInjec.editKey,
1722
1387
  onValidate = _useSearchSelectInjec.onValidate;
1723
1388
  var valueLoagic = (0,external_vue_namespaceObject.computed)(function () {
1724
- var _a;
1725
- return ((_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.logical) || SearchLogical.OR;
1389
+ var _usingItem$value;
1390
+ return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
1726
1391
  });
1727
1392
  (0,external_vue_namespaceObject.watch)(editKey, function () {
1728
1393
  if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
@@ -1738,10 +1403,10 @@ var SelectedItem = /*#__PURE__*/function () {
1738
1403
  flush: 'pre'
1739
1404
  });
1740
1405
  (0,external_vue_namespaceObject.watch)([menuList, showPopover], function () {
1741
- var _a;
1742
- if (((_a = menuList.value) === null || _a === void 0 ? void 0 : _a.some(function (item) {
1406
+ var _menuList$value;
1407
+ if ((_menuList$value = menuList.value) !== null && _menuList$value !== void 0 && _menuList$value.some(function (item) {
1743
1408
  return !item.disabled;
1744
- })) && showPopover.value) {
1409
+ }) && showPopover.value) {
1745
1410
  if (!isBindEvent) {
1746
1411
  if (props.valueBehavior === ValueBehavior.NEEDKEY) {
1747
1412
  menuHoverId.value = menuList.value.find(function (item) {
@@ -1775,9 +1440,9 @@ var SelectedItem = /*#__PURE__*/function () {
1775
1440
  }
1776
1441
  }
1777
1442
  function documentArrowEvent(e) {
1778
- var _a;
1443
+ var _inputRef$value;
1779
1444
  e.preventDefault();
1780
- (_a = inputRef.value) === null || _a === void 0 ? void 0 : _a.blur();
1445
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 ? void 0 : _inputRef$value.blur();
1781
1446
  var len = menuList.value.length;
1782
1447
  var i = len;
1783
1448
  var index = menuList.value.findIndex(function (set) {
@@ -1808,9 +1473,10 @@ var SelectedItem = /*#__PURE__*/function () {
1808
1473
  }
1809
1474
  }
1810
1475
  function handleClickOutside(e) {
1811
- var _a, _b, _c, _d, _e;
1812
- if (!((_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.contains(e.target)) && ((_b = props.clickOutside) === null || _b === void 0 ? void 0 : _b.call(props, e.target, popoverRef.value))) {
1813
- if (((_d = (_c = usingItem.value) === null || _c === void 0 ? void 0 : _c.values) === null || _d === void 0 ? void 0 : _d.length) && ((_e = usingItem.value) === null || _e === void 0 ? void 0 : _e.multiple)) {
1476
+ var _popoverRef$value, _props$clickOutside;
1477
+ if (!((_popoverRef$value = popoverRef.value) !== null && _popoverRef$value !== void 0 && _popoverRef$value.contains(e.target)) && (_props$clickOutside = props.clickOutside) !== null && _props$clickOutside !== void 0 && _props$clickOutside.call(props, e.target, popoverRef.value)) {
1478
+ var _usingItem$value2, _usingItem$value3;
1479
+ if ((_usingItem$value2 = usingItem.value) !== null && _usingItem$value2 !== void 0 && (_usingItem$value2 = _usingItem$value2.values) !== null && _usingItem$value2 !== void 0 && _usingItem$value2.length && (_usingItem$value3 = usingItem.value) !== null && _usingItem$value3 !== void 0 && _usingItem$value3.multiple) {
1814
1480
  keyword.value = '';
1815
1481
  handleKeyEnter();
1816
1482
  return;
@@ -1825,32 +1491,35 @@ var SelectedItem = /*#__PURE__*/function () {
1825
1491
  e && setMenuList();
1826
1492
  }
1827
1493
  function handleInputChange(event) {
1828
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1494
+ var _usingItem$value5, _usingItem$value8;
1829
1495
  clearInput();
1830
1496
  var text = event.target.innerText;
1831
1497
  if (/(\r|\n)/gm.test(text) || /\s{2}/gm.test(text)) {
1498
+ var _usingItem$value4;
1832
1499
  event.preventDefault();
1833
1500
  text = text.replace(/(\r|\n)/gm, " ".concat(valueLoagic.value, " ")).replace(/\s{2}/gm, '');
1834
1501
  inputRef.value.innerText = text;
1835
1502
  setInputFocus();
1836
- keyword.value = text.replace(((_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.keyInnerText) || '', '').trim();
1503
+ keyword.value = text.replace(((_usingItem$value4 = usingItem.value) === null || _usingItem$value4 === void 0 ? void 0 : _usingItem$value4.keyInnerText) || '', '').trim();
1837
1504
  debounceSetMenuList();
1838
- } else if (!keyword.value && text.length < (((_c = (_b = usingItem.value) === null || _b === void 0 ? void 0 : _b.inputInnerText) === null || _c === void 0 ? void 0 : _c.length) || 1)) {
1839
- var outerText = text.replace("\xA0", " ").replace(((_d = usingItem.value) === null || _d === void 0 ? void 0 : _d.keyInnerText.replace("\xA0", " ").trim()) || '', '').trim();
1840
- var hasKeyword = text && ((_e = usingItem.value) === null || _e === void 0 ? void 0 : _e.keyInnerText) && text.replace("\xA0", " ").includes(usingItem.value.keyInnerText.replace("\xA0", " ").trim());
1841
- if (hasKeyword && outerText && ((_f = usingItem.value.values) === null || _f === void 0 ? void 0 : _f.length)) {
1505
+ } else if (!keyword.value && text.length < (((_usingItem$value5 = usingItem.value) === null || _usingItem$value5 === void 0 || (_usingItem$value5 = _usingItem$value5.inputInnerText) === null || _usingItem$value5 === void 0 ? void 0 : _usingItem$value5.length) || 1)) {
1506
+ var _usingItem$value6, _usingItem$value7, _usingItem$value$valu, _text;
1507
+ var outerText = text.replace("\xA0", " ").replace(((_usingItem$value6 = usingItem.value) === null || _usingItem$value6 === void 0 ? void 0 : _usingItem$value6.keyInnerText.replace("\xA0", " ").trim()) || '', '').trim();
1508
+ var hasKeyword = text && ((_usingItem$value7 = usingItem.value) === null || _usingItem$value7 === void 0 ? void 0 : _usingItem$value7.keyInnerText) && text.replace("\xA0", " ").includes(usingItem.value.keyInnerText.replace("\xA0", " ").trim());
1509
+ if (hasKeyword && outerText && (_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) {
1842
1510
  keyword.value = outerText;
1843
1511
  console.info('outerText', outerText);
1844
1512
  debounceSetMenuList();
1845
1513
  return;
1846
1514
  }
1847
- if (outerText || !(text === null || text === void 0 ? void 0 : text.length)) {
1515
+ if (outerText || !((_text = text) !== null && _text !== void 0 && _text.length)) {
1848
1516
  usingItem.value = null;
1849
1517
  }
1850
1518
  keyword.value = outerText ? text : '';
1851
1519
  debounceSetMenuList();
1852
- } else if (!((_h = (_g = usingItem.value) === null || _g === void 0 ? void 0 : _g.values) === null || _h === void 0 ? void 0 : _h.length)) {
1853
- keyword.value = text.replace("\xA0", " ").replace(((_j = usingItem.value) === null || _j === void 0 ? void 0 : _j.keyInnerText.replace("\xA0", " ")) || '', '').trim();
1520
+ } else if (!((_usingItem$value8 = usingItem.value) !== null && _usingItem$value8 !== void 0 && (_usingItem$value8 = _usingItem$value8.values) !== null && _usingItem$value8 !== void 0 && _usingItem$value8.length)) {
1521
+ var _usingItem$value9;
1522
+ keyword.value = text.replace("\xA0", " ").replace(((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.keyInnerText.replace("\xA0", " ")) || '', '').trim();
1854
1523
  setInputFocus();
1855
1524
  debounceSetMenuList();
1856
1525
  }
@@ -1871,10 +1540,12 @@ var SelectedItem = /*#__PURE__*/function () {
1871
1540
  break;
1872
1541
  }
1873
1542
  }
1874
- function handleKeyEnter(event) {
1875
- var _a;
1876
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee() {
1877
- var value, _res, values, valueList, _res2, _value, _res3, _value2, _res4, res;
1543
+ function handleKeyEnter(_x) {
1544
+ return _handleKeyEnter.apply(this, arguments);
1545
+ }
1546
+ function _handleKeyEnter() {
1547
+ _handleKeyEnter = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee(event) {
1548
+ var value, _res, values, _keyword$value, valueList, _res2, _value, _res3, _value2, _res4, res;
1878
1549
  return regenerator_default().wrap(function _callee$(_context) {
1879
1550
  while (1) switch (_context.prev = _context.next) {
1880
1551
  case 0:
@@ -1915,11 +1586,11 @@ var SelectedItem = /*#__PURE__*/function () {
1915
1586
  return _context.abrupt("return");
1916
1587
  case 16:
1917
1588
  values = usingItem.value.values;
1918
- if (values === null || values === void 0 ? void 0 : values.length) {
1589
+ if (values !== null && values !== void 0 && values.length) {
1919
1590
  _context.next = 43;
1920
1591
  break;
1921
1592
  }
1922
- if (!((_a = keyword.value) === null || _a === void 0 ? void 0 : _a.length)) {
1593
+ if (!((_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length)) {
1923
1594
  _context.next = 41;
1924
1595
  break;
1925
1596
  }
@@ -2017,9 +1688,10 @@ var SelectedItem = /*#__PURE__*/function () {
2017
1688
  }
2018
1689
  }, _callee);
2019
1690
  }));
1691
+ return _handleKeyEnter.apply(this, arguments);
2020
1692
  }
2021
1693
  function handleKeyBackspace() {
2022
- var _a, _b;
1694
+ var _usingItem$value10;
2023
1695
  // 删除已选择项
2024
1696
  if (!usingItem.value && !keyword.value) {
2025
1697
  emit('delete');
@@ -2027,9 +1699,10 @@ var SelectedItem = /*#__PURE__*/function () {
2027
1699
  (0,external_vue_namespaceObject.nextTick)(setMenuList);
2028
1700
  return;
2029
1701
  }
2030
- if ((_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.values.length) {
1702
+ if ((_usingItem$value10 = usingItem.value) !== null && _usingItem$value10 !== void 0 && _usingItem$value10.values.length) {
1703
+ var _usingItem$value11;
2031
1704
  // 删除选项
2032
- if (((_b = usingItem.value) === null || _b === void 0 ? void 0 : _b.multiple) || usingItem.value.isInValueList(usingItem.value.values[0]) || props.mode === SearchInputMode.EDIT && !keyword.value) {
1705
+ if ((_usingItem$value11 = usingItem.value) !== null && _usingItem$value11 !== void 0 && _usingItem$value11.multiple || usingItem.value.isInValueList(usingItem.value.values[0]) || props.mode === SearchInputMode.EDIT && !keyword.value) {
2033
1706
  usingItem.value.values.splice(-1, 1);
2034
1707
  keyword.value = '';
2035
1708
  setInputFocus();
@@ -2042,14 +1715,17 @@ var SelectedItem = /*#__PURE__*/function () {
2042
1715
  }
2043
1716
  onValidate('');
2044
1717
  }
2045
- function handleSelectItem(item, type) {
2046
- var _a, _b, _c, _d, _e, _f;
2047
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee2() {
2048
- var seleted, _res5, isCondition, res;
1718
+ function handleSelectItem(_x2, _x3) {
1719
+ return _handleSelectItem.apply(this, arguments);
1720
+ }
1721
+ function _handleSelectItem() {
1722
+ _handleSelectItem = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee2(item, type) {
1723
+ var _item$value, _inputRef$value2, _usingItem$value14, _usingItem$value15;
1724
+ var _item$realId2, _item$realId, seleted, _res5, isCondition, res;
2049
1725
  return regenerator_default().wrap(function _callee2$(_context2) {
2050
1726
  while (1) switch (_context2.prev = _context2.next) {
2051
1727
  case 0:
2052
- if (!((_a = item.value) === null || _a === void 0 ? void 0 : _a.id)) {
1728
+ if (!((_item$value = item.value) !== null && _item$value !== void 0 && _item$value.id)) {
2053
1729
  _context2.next = 20;
2054
1730
  break;
2055
1731
  }
@@ -2057,8 +1733,8 @@ var SelectedItem = /*#__PURE__*/function () {
2057
1733
  _context2.next = 8;
2058
1734
  break;
2059
1735
  }
2060
- seleted = new SelectedItem(Object.assign(Object.assign({}, item), {
2061
- id: (_b = item.realId) !== null && _b !== void 0 ? _b : item.id
1736
+ seleted = new SelectedItem(_objectSpread(_objectSpread({}, item), {}, {
1737
+ id: (_item$realId = item.realId) !== null && _item$realId !== void 0 ? _item$realId : item.id
2062
1738
  }), type);
2063
1739
  seleted.addValue(item.value);
2064
1740
  setSelectedItem(seleted);
@@ -2068,8 +1744,8 @@ var SelectedItem = /*#__PURE__*/function () {
2068
1744
  menuHoverId.value = '';
2069
1745
  return _context2.abrupt("return");
2070
1746
  case 8:
2071
- usingItem.value = new SelectedItem(Object.assign(Object.assign({}, item), {
2072
- id: (_c = item.realId) !== null && _c !== void 0 ? _c : item.id
1747
+ usingItem.value = new SelectedItem(_objectSpread(_objectSpread({}, item), {}, {
1748
+ id: (_item$realId2 = item.realId) !== null && _item$realId2 !== void 0 ? _item$realId2 : item.id
2073
1749
  }), type);
2074
1750
  usingItem.value.addValue(item.value);
2075
1751
  _context2.next = 12;
@@ -2088,7 +1764,7 @@ var SelectedItem = /*#__PURE__*/function () {
2088
1764
  setInputFocus(true);
2089
1765
  return _context2.abrupt("return");
2090
1766
  case 20:
2091
- if (!(!usingItem.value || !((_d = inputRef === null || inputRef === void 0 ? void 0 : inputRef.value) === null || _d === void 0 ? void 0 : _d.innerText))) {
1767
+ if (!(!usingItem.value || !(inputRef !== null && inputRef !== void 0 && (_inputRef$value2 = inputRef.value) !== null && _inputRef$value2 !== void 0 && _inputRef$value2.innerText))) {
2092
1768
  _context2.next = 28;
2093
1769
  break;
2094
1770
  }
@@ -2100,7 +1776,7 @@ var SelectedItem = /*#__PURE__*/function () {
2100
1776
  setInputFocus(props.valueBehavior === ValueBehavior.NEEDKEY && !!menuHoverId.value);
2101
1777
  return _context2.abrupt("return");
2102
1778
  case 28:
2103
- if (!(((_e = usingItem.value) === null || _e === void 0 ? void 0 : _e.type) === 'condition')) {
1779
+ if (!(((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.type) === 'condition')) {
2104
1780
  _context2.next = 32;
2105
1781
  break;
2106
1782
  }
@@ -2120,7 +1796,7 @@ var SelectedItem = /*#__PURE__*/function () {
2120
1796
  return _context2.abrupt("return");
2121
1797
  case 38:
2122
1798
  if (!usingItem.value.multiple) setSelectedItem();
2123
- if (props.valueBehavior === ValueBehavior.NEEDKEY && ((_f = usingItem.value) === null || _f === void 0 ? void 0 : _f.multiple)) {
1799
+ if (props.valueBehavior === ValueBehavior.NEEDKEY && (_usingItem$value15 = usingItem.value) !== null && _usingItem$value15 !== void 0 && _usingItem$value15.multiple) {
2124
1800
  setInputFocus();
2125
1801
  }
2126
1802
  case 40:
@@ -2129,15 +1805,16 @@ var SelectedItem = /*#__PURE__*/function () {
2129
1805
  }
2130
1806
  }, _callee2);
2131
1807
  }));
1808
+ return _handleSelectItem.apply(this, arguments);
2132
1809
  }
2133
1810
  function handleSelectCondtionItem(item) {
2134
1811
  handleSelectItem(item, 'condition');
2135
1812
  }
2136
1813
  function handleMenuFooterClick(item) {
2137
- var _a;
1814
+ var _usingItem$value12;
2138
1815
  switch (item.id) {
2139
1816
  case 'confirm':
2140
- if (!((_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.values.length)) return;
1817
+ if (!((_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.values.length)) return;
2141
1818
  keyword.value = '';
2142
1819
  handleKeyEnter();
2143
1820
  break;
@@ -2148,9 +1825,12 @@ var SelectedItem = /*#__PURE__*/function () {
2148
1825
  }
2149
1826
  }
2150
1827
  // functions
2151
- function validateUsingItemValues(value) {
2152
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee3() {
2153
- var _usingItem$value, searchItem, validate, values;
1828
+ function validateUsingItemValues(_x4) {
1829
+ return _validateUsingItemValues.apply(this, arguments);
1830
+ }
1831
+ function _validateUsingItemValues() {
1832
+ _validateUsingItemValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee3(value) {
1833
+ var _usingItem$value16, searchItem, validate, values;
2154
1834
  return regenerator_default().wrap(function _callee3$(_context3) {
2155
1835
  while (1) switch (_context3.prev = _context3.next) {
2156
1836
  case 0:
@@ -2163,7 +1843,7 @@ var SelectedItem = /*#__PURE__*/function () {
2163
1843
  case 3:
2164
1844
  return _context3.abrupt("return", _context3.sent);
2165
1845
  case 4:
2166
- _usingItem$value = usingItem.value, searchItem = _usingItem$value.searchItem, validate = _usingItem$value.validate, values = _usingItem$value.values;
1846
+ _usingItem$value16 = usingItem.value, searchItem = _usingItem$value16.searchItem, validate = _usingItem$value16.validate, values = _usingItem$value16.values;
2167
1847
  if (!(validate && typeof props.validateValues === 'function')) {
2168
1848
  _context3.next = 9;
2169
1849
  break;
@@ -2181,16 +1861,20 @@ var SelectedItem = /*#__PURE__*/function () {
2181
1861
  }
2182
1862
  }, _callee3);
2183
1863
  }));
1864
+ return _validateUsingItemValues.apply(this, arguments);
2184
1865
  }
2185
- function validateValues(searchItem, value) {
2186
- var _a;
2187
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee4() {
1866
+ function validateValues(_x5, _x6) {
1867
+ return _validateValues.apply(this, arguments);
1868
+ }
1869
+ function _validateValues() {
1870
+ _validateValues = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee4(searchItem, value) {
1871
+ var _props$validateValues;
2188
1872
  var validateStr;
2189
1873
  return regenerator_default().wrap(function _callee4$(_context4) {
2190
1874
  while (1) switch (_context4.prev = _context4.next) {
2191
1875
  case 0:
2192
1876
  _context4.next = 2;
2193
- return (_a = props.validateValues) === null || _a === void 0 ? void 0 : _a.call(props, searchItem !== null && searchItem !== void 0 ? searchItem : null, value)["catch"](function () {
1877
+ return (_props$validateValues = props.validateValues) === null || _props$validateValues === void 0 ? void 0 : _props$validateValues.call(props, searchItem !== null && searchItem !== void 0 ? searchItem : null, value)["catch"](function () {
2194
1878
  return false;
2195
1879
  });
2196
1880
  case 2:
@@ -2210,6 +1894,7 @@ var SelectedItem = /*#__PURE__*/function () {
2210
1894
  }
2211
1895
  }, _callee4);
2212
1896
  }));
1897
+ return _validateValues.apply(this, arguments);
2213
1898
  }
2214
1899
  function setInputFocus() {
2215
1900
  var refleshMenuList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -2235,20 +1920,23 @@ var SelectedItem = /*#__PURE__*/function () {
2235
1920
  emit('focus', isFocus.value);
2236
1921
  }
2237
1922
  function setMenuList() {
2238
- var _a, _b, _c, _d, _e;
2239
- return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator_default().mark(function _callee5() {
2240
- var list, hoverItem;
1923
+ return _setMenuList.apply(this, arguments);
1924
+ }
1925
+ function _setMenuList() {
1926
+ _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
1927
+ var _usingItem$value17, _usingItem$value$valu2;
1928
+ var list, _usingItem$value18, _keyword$value2, hoverItem;
2241
1929
  return regenerator_default().wrap(function _callee5$(_context5) {
2242
1930
  while (1) switch (_context5.prev = _context5.next) {
2243
1931
  case 0:
2244
1932
  list = [];
2245
- if (!(typeof props.getMenuList === 'function' && (typeof ((_b = (_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.searchItem) === null || _b === void 0 ? void 0 : _b.async) === 'undefined' || usingItem.value.searchItem.async === true))) {
1933
+ if (!(typeof props.getMenuList === 'function' && (typeof ((_usingItem$value17 = usingItem.value) === null || _usingItem$value17 === void 0 || (_usingItem$value17 = _usingItem$value17.searchItem) === null || _usingItem$value17 === void 0 ? void 0 : _usingItem$value17.async) === 'undefined' || usingItem.value.searchItem.async === true))) {
2246
1934
  _context5.next = 9;
2247
1935
  break;
2248
1936
  }
2249
1937
  loading.value = true;
2250
1938
  _context5.next = 5;
2251
- return props.getMenuList((_c = usingItem.value) === null || _c === void 0 ? void 0 : _c.searchItem, keyword.value)["catch"](function () {
1939
+ return props.getMenuList((_usingItem$value18 = usingItem.value) === null || _usingItem$value18 === void 0 ? void 0 : _usingItem$value18.searchItem, keyword.value)["catch"](function () {
2252
1940
  return [];
2253
1941
  });
2254
1942
  case 5:
@@ -2257,28 +1945,27 @@ var SelectedItem = /*#__PURE__*/function () {
2257
1945
  _context5.next = 10;
2258
1946
  break;
2259
1947
  case 9:
2260
- if (!(usingItem === null || usingItem === void 0 ? void 0 : usingItem.value)) {
2261
- if (!((_d = keyword.value) === null || _d === void 0 ? void 0 : _d.length)) {
1948
+ if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
1949
+ if (!((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length)) {
2262
1950
  list = props.data.filter(function (item) {
2263
1951
  return !item.isSelected;
2264
1952
  }).slice();
2265
1953
  } else props.data.filter(function (item) {
2266
1954
  return !item.isSelected;
2267
1955
  }).forEach(function (item) {
2268
- var _a, _b;
2269
1956
  var isMatched = item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2270
1957
  if (isMatched) {
2271
- var _list;
1958
+ var _item$children, _list;
2272
1959
  list.push(item);
2273
1960
  var filterList = [];
2274
- (_a = item.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) {
2275
- filterList.push(Object.assign(Object.assign({}, item), {
1961
+ (_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.forEach(function (child) {
1962
+ filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2276
1963
  realId: item.id,
2277
1964
  id: (0,external_shared_namespaceObject.random)(10),
2278
1965
  value: child
2279
1966
  }));
2280
1967
  });
2281
- !filterList.length && !item.onlyRecommendChildren && filterList.push(Object.assign(Object.assign({}, item), {
1968
+ !filterList.length && !item.onlyRecommendChildren && filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2282
1969
  realId: item.id,
2283
1970
  id: (0,external_shared_namespaceObject.random)(10),
2284
1971
  value: {
@@ -2288,18 +1975,18 @@ var SelectedItem = /*#__PURE__*/function () {
2288
1975
  }));
2289
1976
  (_list = list).push.apply(_list, filterList);
2290
1977
  } else {
2291
- var _list2;
1978
+ var _item$children2, _list2;
2292
1979
  var _filterList = [];
2293
- (_b = item.children) === null || _b === void 0 ? void 0 : _b.forEach(function (child) {
1980
+ (_item$children2 = item.children) === null || _item$children2 === void 0 ? void 0 : _item$children2.forEach(function (child) {
2294
1981
  if (child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
2295
- _filterList.push(Object.assign(Object.assign({}, item), {
1982
+ _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2296
1983
  realId: item.id,
2297
1984
  id: (0,external_shared_namespaceObject.random)(10),
2298
1985
  value: child
2299
1986
  }));
2300
1987
  }
2301
1988
  });
2302
- !_filterList.length && !item.onlyRecommendChildren && _filterList.push(Object.assign(Object.assign({}, item), {
1989
+ !_filterList.length && !item.onlyRecommendChildren && _filterList.push(_objectSpread(_objectSpread({}, item), {}, {
2303
1990
  value: {
2304
1991
  id: keyword.value,
2305
1992
  name: keyword.value
@@ -2310,7 +1997,7 @@ var SelectedItem = /*#__PURE__*/function () {
2310
1997
  });
2311
1998
  } else if (usingItem.value.type === 'condition') {
2312
1999
  list = props.conditions;
2313
- } else if (!((_e = usingItem.value.values) === null || _e === void 0 ? void 0 : _e.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
2000
+ } else if (!((_usingItem$value$valu2 = usingItem.value.values) !== null && _usingItem$value$valu2 !== void 0 && _usingItem$value$valu2.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
2314
2001
  list = usingItem.value.children.filter(function (item) {
2315
2002
  return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
2316
2003
  });
@@ -2333,6 +2020,7 @@ var SelectedItem = /*#__PURE__*/function () {
2333
2020
  }
2334
2021
  }, _callee5);
2335
2022
  }));
2023
+ return _setMenuList.apply(this, arguments);
2336
2024
  }
2337
2025
  function setSelectedItem(item) {
2338
2026
  emit('add', item !== null && item !== void 0 ? item : usingItem.value);
@@ -2352,9 +2040,9 @@ var SelectedItem = /*#__PURE__*/function () {
2352
2040
  }
2353
2041
  function setInputText() {
2354
2042
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2355
- var _a;
2356
2043
  if (inputRef.value) {
2357
- inputRef.value.innerHTML = text || ((_a = usingItem.value) === null || _a === void 0 ? void 0 : _a.inputInnerHtml) || '';
2044
+ var _usingItem$value13;
2045
+ inputRef.value.innerHTML = text || ((_usingItem$value13 = usingItem.value) === null || _usingItem$value13 === void 0 ? void 0 : _usingItem$value13.inputInnerHtml) || '';
2358
2046
  }
2359
2047
  }
2360
2048
  function handleLogicalChange(logical) {
@@ -2393,29 +2081,30 @@ var SelectedItem = /*#__PURE__*/function () {
2393
2081
  };
2394
2082
  },
2395
2083
  render: function render() {
2396
- var _this = this;
2397
- var _a, _b;
2084
+ var _this$keyword,
2085
+ _this$menuList,
2086
+ _this = this;
2398
2087
  var _ref2 = this.usingItem || {},
2399
2088
  multiple = _ref2.multiple,
2400
2089
  values = _ref2.values,
2401
2090
  placeholder = _ref2.placeholder,
2402
2091
  inputInnerHtml = _ref2.inputInnerHtml;
2403
- var showInputAfter = !((_a = this.keyword) === null || _a === void 0 ? void 0 : _a.length) && !(values === null || values === void 0 ? void 0 : values.length) && placeholder;
2404
- var showPopover = this.loading || this.showNoSelectValueError || this.showPopover && !!((_b = this.menuList) === null || _b === void 0 ? void 0 : _b.length);
2092
+ var showInputAfter = !((_this$keyword = this.keyword) !== null && _this$keyword !== void 0 && _this$keyword.length) && !(values !== null && values !== void 0 && values.length) && placeholder;
2093
+ var showPopover = this.loading || this.showNoSelectValueError || this.showPopover && !!((_this$menuList = this.menuList) !== null && _this$menuList !== void 0 && _this$menuList.length);
2405
2094
  var showCondition = !this.usingItem && this.showCondition;
2406
2095
  var menuSlots = Object.assign({}, this.$slots.menu ? {
2407
2096
  "default": function _default(data) {
2408
- var _a, _b;
2409
- return (_b = (_a = _this.$slots).menu) === null || _b === void 0 ? void 0 : _b.call(_a, data);
2097
+ var _this$$slots$menu, _this$$slots;
2098
+ return (_this$$slots$menu = (_this$$slots = _this.$slots).menu) === null || _this$$slots$menu === void 0 ? void 0 : _this$$slots$menu.call(_this$$slots, data);
2410
2099
  }
2411
2100
  } : {});
2412
2101
  var inputContent = function inputContent() {
2413
- var _a;
2102
+ var _this$keyword2;
2414
2103
  return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2415
2104
  "ref": "inputRef",
2416
2105
  "class": {
2417
2106
  'div-input': true,
2418
- 'input-before': _this.showInputBefore && !((_a = _this.keyword) === null || _a === void 0 ? void 0 : _a.length),
2107
+ 'input-before': _this.showInputBefore && !((_this$keyword2 = _this.keyword) !== null && _this$keyword2 !== void 0 && _this$keyword2.length),
2419
2108
  'input-after': showInputAfter
2420
2109
  },
2421
2110
  "contenteditable": true,
@@ -2428,14 +2117,14 @@ var SelectedItem = /*#__PURE__*/function () {
2428
2117
  }, null), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
2429
2118
  };
2430
2119
  var popoverContent = function popoverContent() {
2431
- var _a, _b, _c;
2120
+ var _this$menuList2, _this$usingItem, _this$usingItem2;
2432
2121
  if (_this.loading) {
2433
2122
  return (0,external_vue_namespaceObject.createVNode)("div", null, [_this.t.loading]);
2434
2123
  }
2435
2124
  if (_this.showNoSelectValueError) {
2436
2125
  return (0,external_vue_namespaceObject.createVNode)("div", null, [_this.t.filterQueryMustHasValue]);
2437
2126
  }
2438
- return ((_a = _this.menuList) === null || _a === void 0 ? void 0 : _a.length) ? (0,external_vue_namespaceObject.createVNode)("div", {
2127
+ return (_this$menuList2 = _this.menuList) !== null && _this$menuList2 !== void 0 && _this$menuList2.length ? (0,external_vue_namespaceObject.createVNode)("div", {
2439
2128
  "ref": "popoverRef",
2440
2129
  "class": _this.resolveClassName('search-select-popover')
2441
2130
  }, [(0,external_vue_namespaceObject.createVNode)(menu, {
@@ -2447,13 +2136,13 @@ var SelectedItem = /*#__PURE__*/function () {
2447
2136
  return item.id;
2448
2137
  })) || [],
2449
2138
  "conditions": showCondition ? _this.conditions : [],
2450
- "logical": (_b = _this.usingItem) === null || _b === void 0 ? void 0 : _b.logical,
2451
- "showLogical": (_c = _this.usingItem) === null || _c === void 0 ? void 0 : _c.showLogical,
2139
+ "logical": (_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.logical,
2140
+ "showLogical": (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.showLogical,
2452
2141
  "onUpdate:logical": _this.handleLogicalChange,
2453
2142
  "onSelectItem": _this.handleSelectItem,
2454
2143
  "onSelectCondition": _this.handleSelectCondtionItem,
2455
2144
  "onFooterClick": _this.handleMenuFooterClick
2456
- }, Object.assign({}, menuSlots))]) : undefined;
2145
+ }, _objectSpread({}, menuSlots))]) : undefined;
2457
2146
  };
2458
2147
  return (0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], {
2459
2148
  "trigger": "manual",
@@ -2619,6 +2308,8 @@ var SelectedItem = /*#__PURE__*/function () {
2619
2308
  ;// CONCATENATED MODULE: ../../packages/search-select/src/search-select.tsx
2620
2309
 
2621
2310
 
2311
+ function search_select_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2312
+ function search_select_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? search_select_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : search_select_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2622
2313
  /*
2623
2314
  * Tencent is pleased to support the open source community by making
2624
2315
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2743,9 +2434,9 @@ var SearchSelectProps = {
2743
2434
  (0,external_vue_namespaceObject.watch)(function () {
2744
2435
  return props.data;
2745
2436
  }, function () {
2746
- var _a;
2437
+ var _copyData$value;
2747
2438
  copyData.value = JSON.parse(JSON.stringify(props.data));
2748
- (_a = copyData.value) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
2439
+ (_copyData$value = copyData.value) === null || _copyData$value === void 0 ? void 0 : _copyData$value.forEach(function (item) {
2749
2440
  item.isSelected = props.uniqueSelect && !!props.modelValue.some(function (set) {
2750
2441
  return set.id === item.id;
2751
2442
  });
@@ -2757,17 +2448,17 @@ var SearchSelectProps = {
2757
2448
  (0,external_vue_namespaceObject.watch)(function () {
2758
2449
  return props.modelValue;
2759
2450
  }, function (v) {
2760
- var _a, _b;
2761
- if (!(v === null || v === void 0 ? void 0 : v.length)) {
2451
+ var _copyData$value3;
2452
+ if (!(v !== null && v !== void 0 && v.length)) {
2453
+ var _copyData$value2;
2762
2454
  selectedList.value = [];
2763
- (_a = copyData.value) === null || _a === void 0 ? void 0 : _a.forEach(function (item) {
2455
+ (_copyData$value2 = copyData.value) === null || _copyData$value2 === void 0 ? void 0 : _copyData$value2.forEach(function (item) {
2764
2456
  item.isSelected = false;
2765
2457
  });
2766
2458
  return;
2767
2459
  }
2768
2460
  var list = [];
2769
2461
  v.forEach(function (item) {
2770
- var _a;
2771
2462
  var seleted = selectedList.value.find(function (set) {
2772
2463
  return set.id === item.id && set.name === item.name;
2773
2464
  });
@@ -2776,6 +2467,7 @@ var SearchSelectProps = {
2776
2467
  seleted.logical = item.logical || SearchLogical.OR;
2777
2468
  list.push(seleted);
2778
2469
  } else {
2470
+ var _item$values;
2779
2471
  var searchItem = props.data.find(function (set) {
2780
2472
  return set.id === item.id;
2781
2473
  });
@@ -2786,7 +2478,7 @@ var SearchSelectProps = {
2786
2478
  });
2787
2479
  searchItem && (searchType = 'condition');
2788
2480
  }
2789
- if (!searchItem && !((_a = item.values) === null || _a === void 0 ? void 0 : _a.length)) {
2481
+ if (!searchItem && !((_item$values = item.values) !== null && _item$values !== void 0 && _item$values.length)) {
2790
2482
  searchType = 'text';
2791
2483
  }
2792
2484
  var newSelected = new SelectedItem(searchItem || item, searchType);
@@ -2796,7 +2488,7 @@ var SearchSelectProps = {
2796
2488
  }
2797
2489
  });
2798
2490
  selectedList.value = list;
2799
- (_b = copyData.value) === null || _b === void 0 ? void 0 : _b.forEach(function (item) {
2491
+ (_copyData$value3 = copyData.value) === null || _copyData$value3 === void 0 ? void 0 : _copyData$value3.forEach(function (item) {
2800
2492
  item.isSelected = props.uniqueSelect && !!list.some(function (set) {
2801
2493
  return set.id === item.id;
2802
2494
  });
@@ -2879,8 +2571,8 @@ var SearchSelectProps = {
2879
2571
  emit('update:modelValue', []);
2880
2572
  }
2881
2573
  function handleInputOutside(target) {
2882
- var _a;
2883
- return !((_a = wrapRef.value) === null || _a === void 0 ? void 0 : _a.contains(target));
2574
+ var _wrapRef$value;
2575
+ return !((_wrapRef$value = wrapRef.value) !== null && _wrapRef$value !== void 0 && _wrapRef$value.contains(target));
2884
2576
  }
2885
2577
  function handleAddSelected(item) {
2886
2578
  var list = selectedList.value.slice();
@@ -2899,10 +2591,10 @@ var SearchSelectProps = {
2899
2591
  }));
2900
2592
  }
2901
2593
  function handleInputFocus(v) {
2902
- var _a;
2903
2594
  v && (overflowIndex.value = -1);
2904
2595
  if (v === false) {
2905
- (_a = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _a === void 0 ? void 0 : _a.scrollTo(0, 0);
2596
+ var _wrapRef$value$queryS;
2597
+ (_wrapRef$value$queryS = wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container')))) === null || _wrapRef$value$queryS === void 0 ? void 0 : _wrapRef$value$queryS.scrollTo(0, 0);
2906
2598
  }
2907
2599
  isFocus.value = v;
2908
2600
  }
@@ -2934,14 +2626,15 @@ var SearchSelectProps = {
2934
2626
  },
2935
2627
  render: function render() {
2936
2628
  var _this = this,
2937
- _ref2;
2938
- var _a, _b;
2629
+ _ref2,
2630
+ _this$$slots$prepend,
2631
+ _this$$slots2;
2939
2632
  var maxHeight = "".concat(!this.shrink || this.isFocus ? this.maxHeight : this.minHeight, "px");
2940
2633
  var showCondition = !!this.selectedList.length && this.selectedList.slice(-1)[0].type !== 'condition';
2941
2634
  var menuSlots = Object.assign({}, this.$slots.menu ? {
2942
2635
  menu: function menu(data) {
2943
- var _a, _b;
2944
- return (_b = (_a = _this.$slots).menu) === null || _b === void 0 ? void 0 : _b.call(_a, data);
2636
+ var _this$$slots$menu, _this$$slots;
2637
+ return (_this$$slots$menu = (_this$$slots = _this.$slots).menu) === null || _this$$slots$menu === void 0 ? void 0 : _this$$slots$menu.call(_this$$slots, data);
2945
2638
  }
2946
2639
  } : {});
2947
2640
  // render
@@ -2953,7 +2646,7 @@ var SearchSelectProps = {
2953
2646
  "onClick": this.handleWrapClick
2954
2647
  }, [(0,external_vue_namespaceObject.createVNode)("div", {
2955
2648
  "class": "search-prefix"
2956
- }, [(_b = (_a = this.$slots).prepend) === null || _b === void 0 ? void 0 : _b.call(_a)]), (0,external_vue_namespaceObject.createVNode)("div", {
2649
+ }, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
2957
2650
  "class": "search-container",
2958
2651
  "style": {
2959
2652
  maxHeight: maxHeight
@@ -2967,7 +2660,7 @@ var SearchSelectProps = {
2967
2660
  "validateValues": this.validateValues,
2968
2661
  "valueBehavior": this.valueBehavior,
2969
2662
  "onDelete": this.handleDeleteSelected
2970
- }, Object.assign({}, menuSlots)), (0,external_vue_namespaceObject.createVNode)("div", {
2663
+ }, search_select_objectSpread({}, menuSlots)), (0,external_vue_namespaceObject.createVNode)("div", {
2971
2664
  "class": "search-container-input"
2972
2665
  }, [(0,external_vue_namespaceObject.createVNode)(input, {
2973
2666
  "ref": "inputRef",
@@ -2983,7 +2676,7 @@ var SearchSelectProps = {
2983
2676
  "onAdd": this.handleAddSelected,
2984
2677
  "onDelete": this.handleDeleteSelected,
2985
2678
  "onFocus": this.handleInputFocus
2986
- }, Object.assign({}, menuSlots))])]), (0,external_vue_namespaceObject.createVNode)("div", {
2679
+ }, search_select_objectSpread({}, menuSlots))])]), (0,external_vue_namespaceObject.createVNode)("div", {
2987
2680
  "class": "search-nextfix"
2988
2681
  }, [this.clearable && !!this.selectedList.length && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
2989
2682
  "class": "search-clear",