bkui-vue 2.0.1-beta.113 → 2.0.1-beta.114
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/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +13950 -13941
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +380 -351
- package/lib/date-picker/index.js +171 -150
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +311 -302
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
package/lib/tag-input/index.js
CHANGED
@@ -44,43 +44,45 @@ __webpack_require__.d(__webpack_exports__, {
|
|
44
44
|
useTagsOverflow: () => (/* reexport */ useTagsOverflow)
|
45
45
|
});
|
46
46
|
|
47
|
-
;//
|
48
|
-
var x = y => {
|
49
|
-
var
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
;// external "../shared"
|
48
|
+
var x = (y) => {
|
49
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
50
|
+
}
|
51
|
+
var y = (x) => (() => (x))
|
52
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["checkOverflow"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.checkOverflow), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
53
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
54
|
+
function _typeof(o) {
|
53
55
|
"@babel/helpers - typeof";
|
54
56
|
|
55
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
56
|
-
return typeof
|
57
|
-
} : function (
|
58
|
-
return
|
59
|
-
}, _typeof(
|
57
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
58
|
+
return typeof o;
|
59
|
+
} : function (o) {
|
60
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
61
|
+
}, _typeof(o);
|
60
62
|
}
|
61
|
-
;//
|
63
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
62
64
|
|
63
|
-
function
|
64
|
-
if (
|
65
|
-
var
|
66
|
-
if (
|
67
|
-
var
|
68
|
-
if (
|
65
|
+
function toPrimitive(t, r) {
|
66
|
+
if ("object" != _typeof(t) || !t) return t;
|
67
|
+
var e = t[Symbol.toPrimitive];
|
68
|
+
if (void 0 !== e) {
|
69
|
+
var i = e.call(t, r || "default");
|
70
|
+
if ("object" != _typeof(i)) return i;
|
69
71
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
70
72
|
}
|
71
|
-
return (
|
73
|
+
return ("string" === r ? String : Number)(t);
|
72
74
|
}
|
73
|
-
;//
|
75
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
74
76
|
|
75
77
|
|
76
|
-
function
|
77
|
-
var
|
78
|
-
return _typeof(
|
78
|
+
function toPropertyKey(t) {
|
79
|
+
var i = toPrimitive(t, "string");
|
80
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
79
81
|
}
|
80
|
-
;//
|
82
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
81
83
|
|
82
84
|
function _defineProperty(obj, key, value) {
|
83
|
-
key =
|
85
|
+
key = toPropertyKey(key);
|
84
86
|
if (key in obj) {
|
85
87
|
Object.defineProperty(obj, key, {
|
86
88
|
value: value,
|
@@ -93,22 +95,22 @@ function _defineProperty(obj, key, value) {
|
|
93
95
|
}
|
94
96
|
return obj;
|
95
97
|
}
|
96
|
-
;//
|
98
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
97
99
|
function _arrayLikeToArray(arr, len) {
|
98
100
|
if (len == null || len > arr.length) len = arr.length;
|
99
101
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
100
102
|
return arr2;
|
101
103
|
}
|
102
|
-
;//
|
104
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
103
105
|
|
104
106
|
function _arrayWithoutHoles(arr) {
|
105
107
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
106
108
|
}
|
107
|
-
;//
|
109
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
108
110
|
function _iterableToArray(iter) {
|
109
111
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
110
112
|
}
|
111
|
-
;//
|
113
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
112
114
|
|
113
115
|
function _unsupportedIterableToArray(o, minLen) {
|
114
116
|
if (!o) return;
|
@@ -118,11 +120,11 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
118
120
|
if (n === "Map" || n === "Set") return Array.from(o);
|
119
121
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
120
122
|
}
|
121
|
-
;//
|
123
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
122
124
|
function _nonIterableSpread() {
|
123
125
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
124
126
|
}
|
125
|
-
;//
|
127
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
126
128
|
|
127
129
|
|
128
130
|
|
@@ -130,11 +132,13 @@ function _nonIterableSpread() {
|
|
130
132
|
function _toConsumableArray(arr) {
|
131
133
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
132
134
|
}
|
133
|
-
;//
|
134
|
-
var external_vue_x = y => {
|
135
|
-
var
|
136
|
-
|
137
|
-
|
135
|
+
;// external "vue"
|
136
|
+
var external_vue_x = (y) => {
|
137
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
138
|
+
}
|
139
|
+
var external_vue_y = (x) => (() => (x))
|
140
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createTextVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["markRaw"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.markRaw), ["mergeProps"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.mergeProps), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onMounted"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onMounted), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["toRefs"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.toRefs), ["vModelText"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vModelText), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
|
141
|
+
;// ../../packages/tag-input/src/common.ts
|
138
142
|
|
139
143
|
|
140
144
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -315,43 +319,43 @@ var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, select
|
|
315
319
|
overflowTagIndex: overflowTagIndex
|
316
320
|
};
|
317
321
|
};
|
318
|
-
;//
|
322
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
319
323
|
function _arrayWithHoles(arr) {
|
320
324
|
if (Array.isArray(arr)) return arr;
|
321
325
|
}
|
322
|
-
;//
|
323
|
-
function _iterableToArrayLimit(
|
324
|
-
var
|
325
|
-
if (null !=
|
326
|
-
var
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
326
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
327
|
+
function _iterableToArrayLimit(r, l) {
|
328
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
329
|
+
if (null != t) {
|
330
|
+
var e,
|
331
|
+
n,
|
332
|
+
i,
|
333
|
+
u,
|
334
|
+
a = [],
|
335
|
+
f = !0,
|
336
|
+
o = !1;
|
333
337
|
try {
|
334
|
-
if (
|
335
|
-
if (Object(
|
336
|
-
|
337
|
-
} else for (; !(
|
338
|
-
} catch (
|
339
|
-
|
338
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
339
|
+
if (Object(t) !== t) return;
|
340
|
+
f = !1;
|
341
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
342
|
+
} catch (r) {
|
343
|
+
o = !0, n = r;
|
340
344
|
} finally {
|
341
345
|
try {
|
342
|
-
if (!
|
346
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
343
347
|
} finally {
|
344
|
-
if (
|
348
|
+
if (o) throw n;
|
345
349
|
}
|
346
350
|
}
|
347
|
-
return
|
351
|
+
return a;
|
348
352
|
}
|
349
353
|
}
|
350
|
-
;//
|
354
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
351
355
|
function _nonIterableRest() {
|
352
356
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
353
357
|
}
|
354
|
-
;//
|
358
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
355
359
|
|
356
360
|
|
357
361
|
|
@@ -359,43 +363,61 @@ function _nonIterableRest() {
|
|
359
363
|
function _slicedToArray(arr, i) {
|
360
364
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
361
365
|
}
|
362
|
-
;//
|
363
|
-
var config_provider_x = y => {
|
364
|
-
var
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
var
|
373
|
-
const
|
374
|
-
;//
|
375
|
-
var
|
376
|
-
var
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
366
|
+
;// external "../config-provider"
|
367
|
+
var config_provider_x = (y) => {
|
368
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
369
|
+
}
|
370
|
+
var config_provider_y = (x) => (() => (x))
|
371
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale), ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
372
|
+
;// external "../directives"
|
373
|
+
var directives_x = (y) => {
|
374
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
375
|
+
}
|
376
|
+
var directives_y = (x) => (() => (x))
|
377
|
+
const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips) });
|
378
|
+
;// external "../icon"
|
379
|
+
var icon_x = (y) => {
|
380
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
381
|
+
}
|
382
|
+
var icon_y = (x) => (() => (x))
|
383
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close), ["Error"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error) });
|
384
|
+
;// external "../loading"
|
385
|
+
var loading_x = (y) => {
|
386
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
387
|
+
}
|
388
|
+
var loading_y = (x) => (() => (x))
|
389
|
+
const loading_namespaceObject = loading_x({ ["BkLoadingSize"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__.BkLoadingSize), ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_loading_dcf0e69a__["default"]) });
|
390
|
+
;// external "../loading/loading.less"
|
391
|
+
var loading_less_x = (y) => {
|
392
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
393
|
+
}
|
394
|
+
var loading_less_y = (x) => (() => (x))
|
381
395
|
const loading_less_namespaceObject = loading_less_x({ });
|
382
|
-
;//
|
383
|
-
var popover_x = y => {
|
384
|
-
var
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
396
|
+
;// external "../popover"
|
397
|
+
var popover_x = (y) => {
|
398
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
399
|
+
}
|
400
|
+
var popover_y = (x) => (() => (x))
|
401
|
+
const popover_namespaceObject = popover_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__["default"]) });
|
402
|
+
;// external "../popover/popover.less"
|
403
|
+
var popover_less_x = (y) => {
|
404
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
405
|
+
}
|
406
|
+
var popover_less_y = (x) => (() => (x))
|
389
407
|
const popover_less_namespaceObject = popover_less_x({ });
|
390
|
-
;//
|
391
|
-
var debounce_x = y => {
|
392
|
-
var
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
408
|
+
;// external "lodash/debounce"
|
409
|
+
var debounce_x = (y) => {
|
410
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
411
|
+
}
|
412
|
+
var debounce_y = (x) => (() => (x))
|
413
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"]) });
|
414
|
+
;// external "lodash/trim"
|
415
|
+
var trim_x = (y) => {
|
416
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
417
|
+
}
|
418
|
+
var trim_y = (x) => (() => (x))
|
419
|
+
const trim_namespaceObject = trim_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_trim_5cdad98c__["default"]) });
|
420
|
+
;// ../../packages/tag-input/src/list-tag-render.tsx
|
399
421
|
|
400
422
|
/*
|
401
423
|
* Tencent is pleased to support the open source community by making
|
@@ -424,7 +446,8 @@ const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODU
|
|
424
446
|
*/
|
425
447
|
|
426
448
|
|
427
|
-
|
449
|
+
|
450
|
+
/* harmony default export */ const list_tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
428
451
|
name: 'ListTagRender',
|
429
452
|
props: {
|
430
453
|
node: shared_namespaceObject.PropTypes.object,
|
@@ -448,7 +471,7 @@ const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODU
|
|
448
471
|
return value;
|
449
472
|
};
|
450
473
|
if (this.tpl) {
|
451
|
-
return this.tpl(this.node, highlightKeyword, h, this);
|
474
|
+
return this.tpl(this.node, highlightKeyword, external_vue_namespaceObject.h, this);
|
452
475
|
}
|
453
476
|
var displayText = this.node[this.displayKey];
|
454
477
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -459,11 +482,13 @@ const trim_namespaceObject = trim_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODU
|
|
459
482
|
}, [displayText])]);
|
460
483
|
}
|
461
484
|
}));
|
462
|
-
;//
|
463
|
-
var external_vue_types_x = y => {
|
464
|
-
var
|
465
|
-
|
466
|
-
|
485
|
+
;// external "vue-types"
|
486
|
+
var external_vue_types_x = (y) => {
|
487
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
488
|
+
}
|
489
|
+
var external_vue_types_y = (x) => (() => (x))
|
490
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
491
|
+
;// ../../packages/tag-input/src/tag-props.ts
|
467
492
|
/*
|
468
493
|
* Tencent is pleased to support the open source community by making
|
469
494
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -560,11 +585,13 @@ var tagProps = function tagProps() {
|
|
560
585
|
};
|
561
586
|
};
|
562
587
|
/* harmony default export */ const tag_props = (tagProps);
|
563
|
-
;//
|
564
|
-
var has_x = y => {
|
565
|
-
var
|
566
|
-
|
567
|
-
|
588
|
+
;// external "lodash/has"
|
589
|
+
var has_x = (y) => {
|
590
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
591
|
+
}
|
592
|
+
var has_y = (x) => (() => (x))
|
593
|
+
const has_namespaceObject = has_x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_lodash_has_e9e453be__["default"]) });
|
594
|
+
;// ../../packages/tag-input/src/tag-render.tsx
|
568
595
|
|
569
596
|
|
570
597
|
function tag_render_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -653,7 +680,7 @@ function tag_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
653
680
|
}, [this.node[this.displayKey]])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), this.overflowTips]]);
|
654
681
|
}
|
655
682
|
}));
|
656
|
-
;//
|
683
|
+
;// ../../packages/tag-input/src/tag-input.tsx
|
657
684
|
|
658
685
|
|
659
686
|
|
@@ -771,8 +798,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
771
798
|
return props.clearable && !props.disabled && listState.selectedTagList.length !== 0 && (props.showClearOnlyHover ? state.isHover : true);
|
772
799
|
});
|
773
800
|
var triggerClass = (0,external_vue_namespaceObject.computed)(function () {
|
774
|
-
|
775
|
-
return _ref2 = {}, _defineProperty(_ref2, "".concat(resolveClassName('tag-input-trigger')), true), _defineProperty(_ref2, "active", state.isEdit), _defineProperty(_ref2, "disabled", props.disabled), _ref2;
|
801
|
+
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName('tag-input-trigger')), true), "active", state.isEdit), "disabled", props.disabled);
|
776
802
|
});
|
777
803
|
var listState = (0,external_vue_namespaceObject.reactive)({
|
778
804
|
localList: [],
|
@@ -806,7 +832,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
806
832
|
children: []
|
807
833
|
};
|
808
834
|
}
|
809
|
-
groupMap === null || groupMap === void 0 || (_groupMap$curGroupId = groupMap[curGroupId]) === null || _groupMap$curGroupId === void 0
|
835
|
+
groupMap === null || groupMap === void 0 || (_groupMap$curGroupId = groupMap[curGroupId]) === null || _groupMap$curGroupId === void 0 || _groupMap$curGroupId.children.push(item);
|
810
836
|
});
|
811
837
|
return Object.keys(groupMap).map(function (key) {
|
812
838
|
return groupMap[key];
|
@@ -832,7 +858,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
832
858
|
});
|
833
859
|
if (props.withValidate) {
|
834
860
|
var _formItem$validate;
|
835
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
861
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
836
862
|
}
|
837
863
|
}
|
838
864
|
});
|
@@ -922,7 +948,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
922
948
|
state.isEdit = true;
|
923
949
|
setTimeout(function () {
|
924
950
|
var _tagInputRef$value;
|
925
|
-
(_tagInputRef$value = tagInputRef.value) === null || _tagInputRef$value === void 0
|
951
|
+
(_tagInputRef$value = tagInputRef.value) === null || _tagInputRef$value === void 0 || _tagInputRef$value.focus();
|
926
952
|
if (props.trigger === 'focus' && listState.localList.length !== 0) {
|
927
953
|
filterData();
|
928
954
|
if (popoverProps.isShow) {
|
@@ -951,8 +977,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
951
977
|
var item = saveKeyMap.value[tag];
|
952
978
|
modelValueMap[tag] = 1;
|
953
979
|
if (!item && allowCreate) {
|
954
|
-
|
955
|
-
return _ref3 = {}, _defineProperty(_ref3, saveKey, tag), _defineProperty(_ref3, displayKey, tag), _ref3;
|
980
|
+
return _defineProperty(_defineProperty({}, saveKey, tag), displayKey, tag);
|
956
981
|
}
|
957
982
|
return item;
|
958
983
|
}).filter(function (item) {
|
@@ -1008,8 +1033,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1008
1033
|
initPage(filterData);
|
1009
1034
|
};
|
1010
1035
|
var activeClass = function activeClass(data, index) {
|
1011
|
-
var
|
1012
|
-
var style = (_style = {}, _defineProperty(_style, "".concat(resolveClassName('selector-actived')), true), _defineProperty(_style, "".concat(resolveClassName('selector-selected')), tagList.value.includes(data[props.saveKey])), _style);
|
1036
|
+
var style = _defineProperty(_defineProperty({}, "".concat(resolveClassName('selector-actived')), true), "".concat(resolveClassName('selector-selected')), tagList.value.includes(data[props.saveKey]));
|
1013
1037
|
if (props.useGroup) {
|
1014
1038
|
style["".concat(resolveClassName('selector-actived'))] = data.__index__ === state.focusItemIndex;
|
1015
1039
|
} else {
|
@@ -1135,7 +1159,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1135
1159
|
}
|
1136
1160
|
popoverProps.isShow = false;
|
1137
1161
|
emit('blur', inputValue, tagList.value);
|
1138
|
-
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0
|
1162
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
1139
1163
|
}, 200);
|
1140
1164
|
};
|
1141
1165
|
/**
|
@@ -1144,7 +1168,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1144
1168
|
* @param type emit type
|
1145
1169
|
*/
|
1146
1170
|
var handleTagSelected = function handleTagSelected(item, type, e) {
|
1147
|
-
e === null || e === void 0
|
1171
|
+
e === null || e === void 0 || e.stopPropagation();
|
1148
1172
|
// 如果 item 不存在(备选项中没有包含输入的字母的情况即输入关键字没有备选项出现的情况)或者选中标签所在组是禁用状态,返回
|
1149
1173
|
if (!item || item.disabled) {
|
1150
1174
|
return;
|
@@ -1165,7 +1189,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1165
1189
|
* @param e mouse event
|
1166
1190
|
*/
|
1167
1191
|
var handleTagRemove = function handleTagRemove(data, index, e) {
|
1168
|
-
e === null || e === void 0
|
1192
|
+
e === null || e === void 0 || e.stopPropagation();
|
1169
1193
|
removeTag(data, index);
|
1170
1194
|
clearInput();
|
1171
1195
|
handleChange('remove', data);
|
@@ -1324,8 +1348,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1324
1348
|
var textArr = value.split(';');
|
1325
1349
|
textArr.forEach(function (item) {
|
1326
1350
|
if ((0,trim_namespaceObject["default"])(item)) {
|
1327
|
-
|
1328
|
-
target.push((_target$push = {}, _defineProperty(_target$push, props.saveKey, item), _defineProperty(_target$push, props.displayKey, item), _target$push));
|
1351
|
+
target.push(_defineProperty(_defineProperty({}, props.saveKey, item), props.displayKey, item));
|
1329
1352
|
}
|
1330
1353
|
});
|
1331
1354
|
return target;
|
@@ -1365,11 +1388,10 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1365
1388
|
}
|
1366
1389
|
}
|
1367
1390
|
var localTags = allowCreate ? tags.map(function (tag) {
|
1368
|
-
var _ref6;
|
1369
1391
|
var localTag = listState.localList.find(function (localTag) {
|
1370
1392
|
return localTag[saveKey] === tag;
|
1371
1393
|
});
|
1372
|
-
return localTag !== null && localTag !== void 0 ? localTag : (
|
1394
|
+
return localTag !== null && localTag !== void 0 ? localTag : _defineProperty(_defineProperty({}, saveKey, tag), displayKey, tag);
|
1373
1395
|
}) : listState.localList.filter(function (tag) {
|
1374
1396
|
return tags.includes(tag[saveKey]);
|
1375
1397
|
});
|
@@ -1431,8 +1453,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1431
1453
|
return (tag === null || tag === void 0 ? void 0 : tag.trim()) && !tagList.value.includes(tag) && validateTag(tag);
|
1432
1454
|
});
|
1433
1455
|
var localTags = tags.map(function (tag) {
|
1434
|
-
|
1435
|
-
return saveKeyMap.value[tag] || (_ref7 = {}, _defineProperty(_ref7, saveKey, tag), _defineProperty(_ref7, displayKey, tag), _ref7);
|
1456
|
+
return saveKeyMap.value[tag] || _defineProperty(_defineProperty({}, saveKey, tag), displayKey, tag);
|
1436
1457
|
});
|
1437
1458
|
if (tags.length) {
|
1438
1459
|
var _listState$selectedTa2;
|
@@ -1447,8 +1468,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1447
1468
|
newValue = newValue.replace(/\s+/g, '');
|
1448
1469
|
}
|
1449
1470
|
if (newValue !== undefined && !tagList.value.includes(newValue) && validateTag(newValue)) {
|
1450
|
-
var
|
1451
|
-
var localItem = saveKeyMap.value[newValue] || (isObject ? item : (_ref8 = {}, _defineProperty(_ref8, saveKey, newValue), _defineProperty(_ref8, displayKey, newValue), _ref8));
|
1471
|
+
var localItem = saveKeyMap.value[newValue] || (isObject ? item : _defineProperty(_defineProperty({}, saveKey, newValue), displayKey, newValue));
|
1452
1472
|
listState.selectedTagList.splice(targetIndex, 0, localItem);
|
1453
1473
|
isSelected = true;
|
1454
1474
|
}
|
@@ -1680,7 +1700,7 @@ function tag_input_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
1680
1700
|
})]);
|
1681
1701
|
}
|
1682
1702
|
}));
|
1683
|
-
;//
|
1703
|
+
;// ../../packages/tag-input/src/index.ts
|
1684
1704
|
/*
|
1685
1705
|
* Tencent is pleased to support the open source community by making
|
1686
1706
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -307,12 +307,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
307
307
|
curInputValue: Ref<string>;
|
308
308
|
renderList: import("vue").ComputedRef<any[]>;
|
309
309
|
showTagClose: import("vue").ComputedRef<boolean>;
|
310
|
-
tagInputRef: any
|
311
|
-
bkTagSelectorRef: any
|
312
|
-
tagListRef: any
|
313
|
-
tagInputItemRef: any
|
310
|
+
tagInputRef: Ref<any>;
|
311
|
+
bkTagSelectorRef: Ref<any>;
|
312
|
+
tagListRef: Ref<any>;
|
313
|
+
tagInputItemRef: Ref<any>;
|
314
314
|
inputValueRef: Ref<HTMLElement>;
|
315
|
-
selectorListRef: any
|
315
|
+
selectorListRef: Ref<any>;
|
316
316
|
triggerClass: import("vue").ComputedRef<{
|
317
317
|
[x: string]: boolean;
|
318
318
|
active: boolean;
|