bkui-vue 2.0.1 → 2.0.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/form/index.js CHANGED
@@ -1,20 +1,1501 @@
1
1
  import "../styles/reset.css";
2
2
  import "./form.less";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__ from "../plugin-popover";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__ from "@popperjs/core";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__overflow_title_f9bafa47__ from "../overflow-title";
3
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
4
8
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
9
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
6
10
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isBoolean_dcb66997__ from "lodash/isBoolean";
7
11
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isString_e6fa8a5b__ from "lodash/isString";
8
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
9
12
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
10
13
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
11
14
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isFunction_f90b20d6__ from "lodash/isFunction";
12
15
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isDate_b457317b__ from "lodash/isDate";
13
16
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__ from "lodash/isEmpty";
14
- /******/ // The require scope
15
- /******/ var __webpack_require__ = {};
17
+ /******/ var __webpack_modules__ = ({
18
+
19
+ /***/ 5235:
20
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21
+
22
+
23
+ // EXPORTS
24
+ __webpack_require__.d(__webpack_exports__, {
25
+ bkTooltips: () => (/* reexport */ src_tooltips)
26
+ });
27
+
28
+ // UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, clickoutside, mousewheel, overflowTitle
29
+
30
+ ;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
31
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
32
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
33
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
34
+ /*
35
+ * Tencent is pleased to support the open source community by making
36
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
37
+ *
38
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
39
+ *
40
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
41
+ *
42
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
43
+ *
44
+ * ---------------------------------------------------
45
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
46
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
47
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
48
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
49
+ *
50
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
51
+ * the Software.
52
+ *
53
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
54
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
55
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
56
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
57
+ * IN THE SOFTWARE.
58
+ */
59
+ var isElement = function isElement(e) {
60
+ if (typeof Element === 'undefined') return false;
61
+ return e instanceof Element;
62
+ };
63
+ var nodeList = new Map();
64
+ var startClick;
65
+ document.addEventListener('mousedown', function (e) {
66
+ return startClick = e;
67
+ });
68
+ document.addEventListener('mouseup', function (e) {
69
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
70
+ _step;
71
+ try {
72
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
73
+ var handlers = _step.value;
74
+ var _iterator2 = _createForOfIteratorHelper(handlers),
75
+ _step2;
76
+ try {
77
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
78
+ var documentHandler = _step2.value.documentHandler;
79
+ documentHandler(e, startClick);
80
+ }
81
+ } catch (err) {
82
+ _iterator2.e(err);
83
+ } finally {
84
+ _iterator2.f();
85
+ }
86
+ }
87
+ } catch (err) {
88
+ _iterator.e(err);
89
+ } finally {
90
+ _iterator.f();
91
+ }
92
+ });
93
+ function createDocumentHandler(el, binding) {
94
+ var excludes = [];
95
+ if (Array.isArray(binding.arg)) {
96
+ excludes = binding.arg;
97
+ } else if (isElement(binding.arg)) {
98
+ excludes.push(binding.arg);
99
+ }
100
+ return function (mouseup, mousedown) {
101
+ var popperRef = binding.instance.popperRef;
102
+ var mouseUpTarget = mouseup.target;
103
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
104
+ var isBound = !binding || !binding.instance;
105
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
106
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
107
+ var isSelf = el === mouseUpTarget;
108
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
109
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
110
+ }) || excludes.length && excludes.includes(mouseDownTarget);
111
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
112
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
113
+ return;
114
+ }
115
+ binding.value(mouseup, mousedown);
116
+ };
117
+ }
118
+ var ClickOutside = {
119
+ beforeMount: function beforeMount(el, binding) {
120
+ if (!nodeList.has(el)) {
121
+ nodeList.set(el, []);
122
+ }
123
+ nodeList.get(el).push({
124
+ documentHandler: createDocumentHandler(el, binding),
125
+ bindingFn: binding.value
126
+ });
127
+ },
128
+ updated: function updated(el, binding) {
129
+ if (!nodeList.has(el)) {
130
+ nodeList.set(el, []);
131
+ }
132
+ var handlers = nodeList.get(el);
133
+ var oldHandlerIndex = handlers.findIndex(function (item) {
134
+ return item.bindingFn === binding.oldValue;
135
+ });
136
+ var newHandler = {
137
+ documentHandler: createDocumentHandler(el, binding),
138
+ bindingFn: binding.value
139
+ };
140
+ if (oldHandlerIndex >= 0) {
141
+ // replace the old handler to the new handler
142
+ handlers.splice(oldHandlerIndex, 1, newHandler);
143
+ } else {
144
+ handlers.push(newHandler);
145
+ }
146
+ },
147
+ unmounted: function unmounted(el) {
148
+ // remove all listeners when a component unmounted
149
+ nodeList["delete"](el);
150
+ }
151
+ };
152
+ ClickOutside.install = function (app) {
153
+ app.directive('bkTooltips', ClickOutside);
154
+ };
155
+ /* harmony default export */ const clickoutside = ((/* unused pure expression or super */ null && (ClickOutside)));
156
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
157
+ var esm_typeof = __webpack_require__(6522);
158
+ ;// CONCATENATED MODULE: external "../plugin-popover"
159
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
160
+ var y = x => () => x
161
+ const plugin_popover_namespaceObject = x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"] });
162
+ ;// CONCATENATED MODULE: ../../packages/directives/src/ellipsis.ts
163
+
164
+ /*
165
+ * Tencent is pleased to support the open source community by making
166
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
167
+ *
168
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
169
+ *
170
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
171
+ *
172
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
173
+ *
174
+ * ---------------------------------------------------
175
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
176
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
177
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
178
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
179
+ *
180
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
181
+ * the Software.
182
+ *
183
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
184
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
185
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
186
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
187
+ * IN THE SOFTWARE.
188
+ */
189
+
190
+ var resolveOptions = function resolveOptions(el, binding) {
191
+ var options = {
192
+ content: '',
193
+ target: el
194
+ };
195
+ if ((0,esm_typeof["default"])(binding) === 'object') {
196
+ Object.assign(options, binding);
197
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
198
+ Object.assign(options, binding.popoverOption);
199
+ }
200
+ } else {
201
+ options.content = binding;
202
+ }
203
+ return options;
204
+ };
205
+ var createInstance = function createInstance(el, binding) {
206
+ var instance = null;
207
+ var createTimer = null;
208
+ var hidePopTimer = null;
209
+ var options = resolveOptions(el, binding);
210
+ var disabled = options.disabled;
211
+ if (disabled || instance) {
212
+ return;
213
+ }
214
+ var handleContentEnter = function handleContentEnter() {
215
+ hidePopTimer && clearTimeout(hidePopTimer);
216
+ hidePopTimer = null;
217
+ };
218
+ var handleContentLeave = function handleContentLeave() {
219
+ var _instance, _instance2;
220
+ if (createTimer) {
221
+ clearTimeout(createTimer);
222
+ }
223
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
224
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
225
+ instance = null;
226
+ };
227
+ var handleMouseEnter = function handleMouseEnter() {
228
+ handleContentLeave();
229
+ createTimer && clearTimeout(createTimer);
230
+ createTimer = setTimeout(function () {
231
+ var targetOptions = resolveOptions(el, binding);
232
+ targetOptions.isShow = true;
233
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
234
+ targetOptions.allowHtml = true;
235
+ Object.assign(targetOptions, {
236
+ onContentMouseenter: handleContentEnter,
237
+ onContentMouseleave: handleContentLeave
238
+ });
239
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
240
+ }, 300);
241
+ };
242
+ var handleMouseLeave = function handleMouseLeave() {
243
+ hidePopTimer = setTimeout(function () {
244
+ var _instance3, _instance4;
245
+ if (createTimer) {
246
+ clearTimeout(createTimer);
247
+ }
248
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
249
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
250
+ instance = null;
251
+ }, 120);
252
+ };
253
+ el.addEventListener('mouseenter', handleMouseEnter);
254
+ el.addEventListener('mouseleave', handleMouseLeave);
255
+ var destroyInstance = function destroyInstance(element) {
256
+ var _ref, _ref2;
257
+ handleMouseLeave();
258
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
259
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
260
+ };
261
+ return {
262
+ destroyInstance: destroyInstance,
263
+ instance: instance
264
+ };
265
+ };
266
+ var ellipsis = {
267
+ mounted: function mounted(el, binding) {
268
+ createInstance(el, binding);
269
+ }
270
+ };
271
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
272
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
273
+ var normalize_wheel = __webpack_require__(2439);
274
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
275
+ ;// CONCATENATED MODULE: ../../packages/directives/src/mousewheel.ts
276
+ /*
277
+ * Tencent is pleased to support the open source community by making
278
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
279
+ *
280
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
281
+ *
282
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
283
+ *
284
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
285
+ *
286
+ * ---------------------------------------------------
287
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
288
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
289
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
290
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
291
+ *
292
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
293
+ * the Software.
294
+ *
295
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
296
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
297
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
298
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
299
+ * IN THE SOFTWARE.
300
+ */
301
+
302
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
303
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
304
+ if (element !== null && element !== void 0 && element.addEventListener) {
305
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
306
+ var normalized = normalize_wheel_default()(e);
307
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
308
+ });
309
+ }
310
+ };
311
+ var mousewheel = {
312
+ beforeMount: function beforeMount(el, binding) {
313
+ mousewheelHandler(el, binding.value);
314
+ }
315
+ };
316
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
317
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
318
+ var defineProperty = __webpack_require__(6666);
319
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
320
+ var toConsumableArray = __webpack_require__(7930);
321
+ // EXTERNAL MODULE: external "vue"
322
+ var external_vue_ = __webpack_require__(6609);
323
+ // EXTERNAL MODULE: external "../shared"
324
+ var shared_ = __webpack_require__(9253);
325
+ ;// CONCATENATED MODULE: external "@popperjs/core"
326
+ var core_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
327
+ var core_y = x => () => x
328
+ const core_namespaceObject = core_x({ ["createPopper"]: () => __WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper });
329
+ ;// CONCATENATED MODULE: ../../packages/directives/src/tooltips.ts
330
+
331
+
332
+
333
+ 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; }
334
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
335
+ /*
336
+ * Tencent is pleased to support the open source community by making
337
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
338
+ *
339
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
340
+ *
341
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
342
+ *
343
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
344
+ *
345
+ * ---------------------------------------------------
346
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
347
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
348
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
349
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
350
+ *
351
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
352
+ * the Software.
353
+ *
354
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
355
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
356
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
357
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
358
+ * IN THE SOFTWARE.
359
+ */
360
+
361
+
362
+
363
+ var tooltips_nodeList = new WeakMap();
364
+ var tooltips = {
365
+ beforeMount: function beforeMount(el, binding) {
366
+ var opts = getOpts(binding);
367
+ var trigger = opts.trigger,
368
+ showOnInit = opts.showOnInit;
369
+ var popper = renderContent(opts);
370
+ var delayTimeout = null;
371
+ if (showOnInit) {
372
+ (0,external_vue_.nextTick)(function () {
373
+ show(el);
374
+ });
375
+ }
376
+ if (trigger === 'hover') {
377
+ var hideTimeout = null;
378
+ el.addEventListener('mouseenter', function () {
379
+ delayTimeout = setTimeout(function () {
380
+ show(el);
381
+ clearTimeout(hideTimeout);
382
+ clearTimeout(delayTimeout);
383
+ }, opts.delay);
384
+ });
385
+ popper.addEventListener('mouseenter', function () {
386
+ clearTimeout(hideTimeout);
387
+ });
388
+ el.addEventListener('mouseleave', function () {
389
+ clearTimeout(delayTimeout);
390
+ hideTimeout = setTimeout(function () {
391
+ hide(el);
392
+ }, 100);
393
+ });
394
+ el.addEventListener('click', function () {
395
+ hide(el);
396
+ });
397
+ popper.addEventListener('mouseleave', function () {
398
+ clearTimeout(delayTimeout);
399
+ hideTimeout = setTimeout(function () {
400
+ hide(el);
401
+ }, 100);
402
+ });
403
+ } else if (trigger === 'click') {
404
+ document.body.addEventListener('click', function (event) {
405
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
406
+ delayTimeout = setTimeout(function () {
407
+ show(el);
408
+ clearTimeout(delayTimeout);
409
+ }, opts.delay);
410
+ } else if (popper.hasAttribute('data-show')) {
411
+ hide(el);
412
+ }
413
+ });
414
+ }
415
+ tooltips_nodeList.set(el, {
416
+ opts: opts,
417
+ popper: popper,
418
+ popperInstance: null
419
+ });
420
+ },
421
+ updated: function updated(el, binding) {
422
+ if (tooltips_nodeList.get(el)) {
423
+ tooltips_nodeList.get(el).opts = getOpts(binding);
424
+ }
425
+ },
426
+ unmounted: function unmounted(el) {
427
+ hide(el);
428
+ tooltips_nodeList["delete"](el);
429
+ }
430
+ };
431
+ /**
432
+ * 初始化配置
433
+ * @returns tooltips配置
434
+ */
435
+ function initOptions() {
436
+ var defaultOpts = {
437
+ arrow: true,
438
+ disabled: false,
439
+ trigger: 'hover',
440
+ theme: 'dark',
441
+ content: '',
442
+ showOnInit: false,
443
+ placement: 'top',
444
+ distance: 8,
445
+ extCls: '',
446
+ sameWidth: false,
447
+ delay: 0,
448
+ onShow: function onShow() {},
449
+ onHide: function onHide() {}
450
+ };
451
+ return defaultOpts;
452
+ }
453
+ /**
454
+ * 获取配置
455
+ * @returns tooltips配置
456
+ */
457
+ function getOpts(binding) {
458
+ var opts = initOptions();
459
+ if ((0,esm_typeof["default"])(binding.value) === 'object') {
460
+ Object.assign(opts, binding.value);
461
+ } else {
462
+ opts.content = binding.value;
463
+ }
464
+ return opts;
465
+ }
466
+ /**
467
+ * 创建tooltips DOM
468
+ * @param opts
469
+ * @returns
470
+ */
471
+ function renderContext(value, content) {
472
+ if (typeof value === 'string') {
473
+ content.innerText = value;
474
+ } else {
475
+ // 如果 content 是 Vue 组件的实例,则挂载它
476
+ var container = document.createElement('div');
477
+ var vnode = (0,external_vue_.h)(value);
478
+ (0,external_vue_.render)(vnode, container);
479
+ content.innerHTML = container.innerHTML;
480
+ }
481
+ }
482
+ function renderContent(opts) {
483
+ var value = opts.content,
484
+ hasArrow = opts.arrow,
485
+ theme = opts.theme,
486
+ extCls = opts.extCls;
487
+ var isLight = theme === 'light';
488
+ var zIndex = shared_.bkZIndexManager.getPopperIndex();
489
+ var content = document.createElement('div');
490
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
491
+ content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
492
+ content.innerText = value;
493
+ content.style.zIndex = String(zIndex);
494
+ renderContext(value, content);
495
+ if (hasArrow) {
496
+ var arrow = renderArrow();
497
+ content.appendChild(arrow);
498
+ }
499
+ return content;
500
+ }
501
+ /**
502
+ * 渲染箭头dom
503
+ * @returns arrow DOM
504
+ */
505
+ function renderArrow() {
506
+ var arrow = document.createElement('div');
507
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
508
+ arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
509
+ arrow.setAttribute('data-popper-arrow', '');
510
+ return arrow;
511
+ }
512
+ /**
513
+ * 创建popper实例
514
+ * @param el
515
+ * @param popper
516
+ * @returns popper实例
517
+ */
518
+ function createPopperInstance(el, popper) {
519
+ var _nodeList$get = tooltips_nodeList.get(el),
520
+ opts = _nodeList$get.opts;
521
+ var placement = opts.placement,
522
+ distance = opts.distance,
523
+ sameWidth = opts.sameWidth;
524
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
525
+ placement: placement,
526
+ modifiers: [{
527
+ name: 'offset',
528
+ options: {
529
+ offset: [0, distance]
530
+ }
531
+ }, {
532
+ name: 'arrow',
533
+ options: {
534
+ padding: 5
535
+ }
536
+ }].concat((0,toConsumableArray["default"])(sameWidth ? [{
537
+ name: 'sameWidth',
538
+ enabled: true,
539
+ phase: 'beforeWrite',
540
+ requires: ['computeStyles'],
541
+ fn: function fn(_ref) {
542
+ var state = _ref.state;
543
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
544
+ },
545
+ effect: function effect(_ref2) {
546
+ var state = _ref2.state;
547
+ state.elements.popper.style.overflowWrap = 'break-word';
548
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
549
+ }
550
+ }] : []))
551
+ });
552
+ return popperInstance;
553
+ }
554
+ /**
555
+ * 显示
556
+ * @param el
557
+ */
558
+ function show(el) {
559
+ var _nodeList$get2 = tooltips_nodeList.get(el),
560
+ popper = _nodeList$get2.popper,
561
+ opts = _nodeList$get2.opts;
562
+ var disabled = opts.disabled,
563
+ content = opts.content,
564
+ hasArrow = opts.arrow,
565
+ onShow = opts.onShow,
566
+ boundary = opts.boundary,
567
+ _opts$modifiers = opts.modifiers,
568
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
569
+ if (disabled) return;
570
+ renderContext(content, popper);
571
+ if (hasArrow) {
572
+ var arrow = renderArrow();
573
+ popper.appendChild(arrow);
574
+ }
575
+ var container = document.body;
576
+ if (boundary) {
577
+ if (boundary === 'parent') {
578
+ container = el.parentElement;
579
+ } else if (boundary instanceof HTMLElement) {
580
+ container = boundary;
581
+ }
582
+ }
583
+ container.appendChild(popper);
584
+ var popperInstance = createPopperInstance(el, popper);
585
+ onShow();
586
+ // Make the tooltip visible
587
+ popper.setAttribute('data-show', '');
588
+ // Enable the event listeners
589
+ popperInstance.setOptions(function (options) {
590
+ return _objectSpread(_objectSpread({}, options), {}, {
591
+ modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
592
+ name: 'eventListeners',
593
+ enabled: true
594
+ }])
595
+ });
596
+ });
597
+ // Update its position
598
+ popperInstance.forceUpdate();
599
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
600
+ }
601
+ /**
602
+ * 隐藏
603
+ * @param el
604
+ */
605
+ function hide(el) {
606
+ if (!tooltips_nodeList.get(el)) return;
607
+ var _nodeList$get3 = tooltips_nodeList.get(el),
608
+ popper = _nodeList$get3.popper,
609
+ popperInstance = _nodeList$get3.popperInstance,
610
+ opts = _nodeList$get3.opts;
611
+ var onHide = opts.onHide;
612
+ if (popper && document.body.contains(popper)) {
613
+ var _popper$parentNode;
614
+ popper.removeAttribute('data-show');
615
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
616
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
617
+ onHide();
618
+ }
619
+ }
620
+ /* harmony default export */ const src_tooltips = (tooltips);
621
+ ;// CONCATENATED MODULE: external "../loading"
622
+ var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
623
+ var external_loading_y = x => () => x
624
+ const external_loading_namespaceObject = external_loading_x({ });
625
+ ;// CONCATENATED MODULE: external "../overflow-title"
626
+ var external_overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
627
+ var external_overflow_title_y = x => () => x
628
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
629
+ ;// CONCATENATED MODULE: ../../packages/directives/src/index.ts
630
+ /*
631
+ * Tencent is pleased to support the open source community by making
632
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
633
+ *
634
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
635
+ *
636
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
637
+ *
638
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
639
+ *
640
+ * ---------------------------------------------------
641
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
642
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
643
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
644
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
645
+ *
646
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
647
+ * the Software.
648
+ *
649
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
650
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
651
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
652
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
653
+ * IN THE SOFTWARE.
654
+ */
655
+
656
+
657
+
658
+
659
+
660
+
661
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
662
+
663
+ /***/ }),
664
+
665
+ /***/ 2439:
666
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
667
+
668
+ module.exports = __webpack_require__(2527);
669
+
670
+
671
+ /***/ }),
672
+
673
+ /***/ 7430:
674
+ /***/ ((module) => {
675
+
676
+ /**
677
+ * Copyright (c) 2015, Facebook, Inc.
678
+ * All rights reserved.
679
+ *
680
+ * This source code is licensed under the BSD-style license found in the
681
+ * LICENSE file in the root directory of this source tree. An additional grant
682
+ * of patent rights can be found in the PATENTS file in the same directory.
683
+ *
684
+ * @providesModule ExecutionEnvironment
685
+ */
686
+
687
+ /*jslint evil: true */
688
+
689
+
690
+
691
+ var canUseDOM = !!(
692
+ typeof window !== 'undefined' &&
693
+ window.document &&
694
+ window.document.createElement
695
+ );
696
+
697
+ /**
698
+ * Simple, lightweight module assisting with the detection and context of
699
+ * Worker. Helps avoid circular dependencies and allows code to reason about
700
+ * whether or not they are in a Worker, even if they never include the main
701
+ * `ReactWorker` dependency.
702
+ */
703
+ var ExecutionEnvironment = {
704
+
705
+ canUseDOM: canUseDOM,
706
+
707
+ canUseWorkers: typeof Worker !== 'undefined',
708
+
709
+ canUseEventListeners:
710
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
711
+
712
+ canUseViewport: canUseDOM && !!window.screen,
713
+
714
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
715
+
716
+ };
717
+
718
+ module.exports = ExecutionEnvironment;
719
+
720
+
721
+ /***/ }),
722
+
723
+ /***/ 6377:
724
+ /***/ ((module) => {
725
+
726
+ /**
727
+ * Copyright 2004-present Facebook. All Rights Reserved.
728
+ *
729
+ * @providesModule UserAgent_DEPRECATED
730
+ */
731
+
732
+ /**
733
+ * Provides entirely client-side User Agent and OS detection. You should prefer
734
+ * the non-deprecated UserAgent module when possible, which exposes our
735
+ * authoritative server-side PHP-based detection to the client.
736
+ *
737
+ * Usage is straightforward:
738
+ *
739
+ * if (UserAgent_DEPRECATED.ie()) {
740
+ * // IE
741
+ * }
742
+ *
743
+ * You can also do version checks:
744
+ *
745
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
746
+ * // IE7 or better
747
+ * }
748
+ *
749
+ * The browser functions will return NaN if the browser does not match, so
750
+ * you can also do version compares the other way:
751
+ *
752
+ * if (UserAgent_DEPRECATED.ie() < 7) {
753
+ * // IE6 or worse
754
+ * }
755
+ *
756
+ * Note that the version is a float and may include a minor version number,
757
+ * so you should always use range operators to perform comparisons, not
758
+ * strict equality.
759
+ *
760
+ * **Note:** You should **strongly** prefer capability detection to browser
761
+ * version detection where it's reasonable:
762
+ *
763
+ * http://www.quirksmode.org/js/support.html
764
+ *
765
+ * Further, we have a large number of mature wrapper functions and classes
766
+ * which abstract away many browser irregularities. Check the documentation,
767
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
768
+ * another copy of "event || window.event".
769
+ *
770
+ */
771
+
772
+ var _populated = false;
773
+
774
+ // Browsers
775
+ var _ie, _firefox, _opera, _webkit, _chrome;
776
+
777
+ // Actual IE browser for compatibility mode
778
+ var _ie_real_version;
779
+
780
+ // Platforms
781
+ var _osx, _windows, _linux, _android;
782
+
783
+ // Architectures
784
+ var _win64;
785
+
786
+ // Devices
787
+ var _iphone, _ipad, _native;
788
+
789
+ var _mobile;
790
+
791
+ function _populate() {
792
+ if (_populated) {
793
+ return;
794
+ }
795
+
796
+ _populated = true;
797
+
798
+ // To work around buggy JS libraries that can't handle multi-digit
799
+ // version numbers, Opera 10's user agent string claims it's Opera
800
+ // 9, then later includes a Version/X.Y field:
801
+ //
802
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
803
+ var uas = navigator.userAgent;
804
+ var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas);
805
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
806
+
807
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
808
+ _ipad = /\b(iP[ao]d)/.exec(uas);
809
+ _android = /Android/i.exec(uas);
810
+ _native = /FBAN\/\w+;/i.exec(uas);
811
+ _mobile = /Mobile/i.exec(uas);
812
+
813
+ // Note that the IE team blog would have you believe you should be checking
814
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
815
+ // from either x64 or ia64; so ultimately, you should just check for Win64
816
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
817
+ // Windows will send 'WOW64' instead.
818
+ _win64 = !!(/Win64/.exec(uas));
819
+
820
+ if (agent) {
821
+ _ie = agent[1] ? parseFloat(agent[1]) : (
822
+ agent[5] ? parseFloat(agent[5]) : NaN);
823
+ // IE compatibility mode
824
+ if (_ie && document && document.documentMode) {
825
+ _ie = document.documentMode;
826
+ }
827
+ // grab the "true" ie version from the trident token if available
828
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
829
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
830
+
831
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
832
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
833
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
834
+ if (_webkit) {
835
+ // We do not add the regexp to the above test, because it will always
836
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
837
+ // the userAgent string.
838
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
839
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
840
+ } else {
841
+ _chrome = NaN;
842
+ }
843
+ } else {
844
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
845
+ }
846
+
847
+ if (os) {
848
+ if (os[1]) {
849
+ // Detect OS X version. If no version number matches, set _osx to true.
850
+ // Version examples: 10, 10_6_1, 10.7
851
+ // Parses version number as a float, taking only first two sets of
852
+ // digits. If only one set of digits is found, returns just the major
853
+ // version number.
854
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
855
+
856
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
857
+ } else {
858
+ _osx = false;
859
+ }
860
+ _windows = !!os[2];
861
+ _linux = !!os[3];
862
+ } else {
863
+ _osx = _windows = _linux = false;
864
+ }
865
+ }
866
+
867
+ var UserAgent_DEPRECATED = {
868
+
869
+ /**
870
+ * Check if the UA is Internet Explorer.
871
+ *
872
+ *
873
+ * @return float|NaN Version number (if match) or NaN.
874
+ */
875
+ ie: function() {
876
+ return _populate() || _ie;
877
+ },
878
+
879
+ /**
880
+ * Check if we're in Internet Explorer compatibility mode.
881
+ *
882
+ * @return bool true if in compatibility mode, false if
883
+ * not compatibility mode or not ie
884
+ */
885
+ ieCompatibilityMode: function() {
886
+ return _populate() || (_ie_real_version > _ie);
887
+ },
888
+
889
+
890
+ /**
891
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
892
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
893
+ * this when we don't need it -- tracked by #601957.
894
+ */
895
+ ie64: function() {
896
+ return UserAgent_DEPRECATED.ie() && _win64;
897
+ },
898
+
899
+ /**
900
+ * Check if the UA is Firefox.
901
+ *
902
+ *
903
+ * @return float|NaN Version number (if match) or NaN.
904
+ */
905
+ firefox: function() {
906
+ return _populate() || _firefox;
907
+ },
908
+
909
+
910
+ /**
911
+ * Check if the UA is Opera.
912
+ *
913
+ *
914
+ * @return float|NaN Version number (if match) or NaN.
915
+ */
916
+ opera: function() {
917
+ return _populate() || _opera;
918
+ },
919
+
920
+
921
+ /**
922
+ * Check if the UA is WebKit.
923
+ *
924
+ *
925
+ * @return float|NaN Version number (if match) or NaN.
926
+ */
927
+ webkit: function() {
928
+ return _populate() || _webkit;
929
+ },
930
+
931
+ /**
932
+ * For Push
933
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
934
+ */
935
+ safari: function() {
936
+ return UserAgent_DEPRECATED.webkit();
937
+ },
938
+
939
+ /**
940
+ * Check if the UA is a Chrome browser.
941
+ *
942
+ *
943
+ * @return float|NaN Version number (if match) or NaN.
944
+ */
945
+ chrome : function() {
946
+ return _populate() || _chrome;
947
+ },
948
+
949
+
950
+ /**
951
+ * Check if the user is running Windows.
952
+ *
953
+ * @return bool `true' if the user's OS is Windows.
954
+ */
955
+ windows: function() {
956
+ return _populate() || _windows;
957
+ },
958
+
959
+
960
+ /**
961
+ * Check if the user is running Mac OS X.
962
+ *
963
+ * @return float|bool Returns a float if a version number is detected,
964
+ * otherwise true/false.
965
+ */
966
+ osx: function() {
967
+ return _populate() || _osx;
968
+ },
969
+
970
+ /**
971
+ * Check if the user is running Linux.
972
+ *
973
+ * @return bool `true' if the user's OS is some flavor of Linux.
974
+ */
975
+ linux: function() {
976
+ return _populate() || _linux;
977
+ },
978
+
979
+ /**
980
+ * Check if the user is running on an iPhone or iPod platform.
981
+ *
982
+ * @return bool `true' if the user is running some flavor of the
983
+ * iPhone OS.
984
+ */
985
+ iphone: function() {
986
+ return _populate() || _iphone;
987
+ },
988
+
989
+ mobile: function() {
990
+ return _populate() || (_iphone || _ipad || _android || _mobile);
991
+ },
992
+
993
+ nativeApp: function() {
994
+ // webviews inside of the native apps
995
+ return _populate() || _native;
996
+ },
997
+
998
+ android: function() {
999
+ return _populate() || _android;
1000
+ },
1001
+
1002
+ ipad: function() {
1003
+ return _populate() || _ipad;
1004
+ }
1005
+ };
1006
+
1007
+ module.exports = UserAgent_DEPRECATED;
1008
+
1009
+
1010
+ /***/ }),
1011
+
1012
+ /***/ 3541:
1013
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1014
+
1015
+ /**
1016
+ * Copyright 2013-2015, Facebook, Inc.
1017
+ * All rights reserved.
1018
+ *
1019
+ * This source code is licensed under the BSD-style license found in the
1020
+ * LICENSE file in the root directory of this source tree. An additional grant
1021
+ * of patent rights can be found in the PATENTS file in the same directory.
1022
+ *
1023
+ * @providesModule isEventSupported
1024
+ */
1025
+
1026
+
1027
+
1028
+ var ExecutionEnvironment = __webpack_require__(7430);
1029
+
1030
+ var useHasFeature;
1031
+ if (ExecutionEnvironment.canUseDOM) {
1032
+ useHasFeature =
1033
+ document.implementation &&
1034
+ document.implementation.hasFeature &&
1035
+ // always returns true in newer browsers as per the standard.
1036
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
1037
+ document.implementation.hasFeature('', '') !== true;
1038
+ }
1039
+
1040
+ /**
1041
+ * Checks if an event is supported in the current execution environment.
1042
+ *
1043
+ * NOTE: This will not work correctly for non-generic events such as `change`,
1044
+ * `reset`, `load`, `error`, and `select`.
1045
+ *
1046
+ * Borrows from Modernizr.
1047
+ *
1048
+ * @param {string} eventNameSuffix Event name, e.g. "click".
1049
+ * @param {?boolean} capture Check if the capture phase is supported.
1050
+ * @return {boolean} True if the event is supported.
1051
+ * @internal
1052
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
1053
+ */
1054
+ function isEventSupported(eventNameSuffix, capture) {
1055
+ if (!ExecutionEnvironment.canUseDOM ||
1056
+ capture && !('addEventListener' in document)) {
1057
+ return false;
1058
+ }
1059
+
1060
+ var eventName = 'on' + eventNameSuffix;
1061
+ var isSupported = eventName in document;
1062
+
1063
+ if (!isSupported) {
1064
+ var element = document.createElement('div');
1065
+ element.setAttribute(eventName, 'return;');
1066
+ isSupported = typeof element[eventName] === 'function';
1067
+ }
1068
+
1069
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
1070
+ // This is the only way to test support for the `wheel` event in IE9+.
1071
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
1072
+ }
1073
+
1074
+ return isSupported;
1075
+ }
1076
+
1077
+ module.exports = isEventSupported;
1078
+
1079
+
1080
+ /***/ }),
1081
+
1082
+ /***/ 2527:
1083
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1084
+
1085
+ /**
1086
+ * Copyright (c) 2015, Facebook, Inc.
1087
+ * All rights reserved.
1088
+ *
1089
+ * This source code is licensed under the BSD-style license found in the
1090
+ * LICENSE file in the root directory of this source tree. An additional grant
1091
+ * of patent rights can be found in the PATENTS file in the same directory.
1092
+ *
1093
+ * @providesModule normalizeWheel
1094
+ * @typechecks
1095
+ */
1096
+
1097
+
1098
+
1099
+ var UserAgent_DEPRECATED = __webpack_require__(6377);
1100
+
1101
+ var isEventSupported = __webpack_require__(3541);
1102
+
1103
+
1104
+ // Reasonable defaults
1105
+ var PIXEL_STEP = 10;
1106
+ var LINE_HEIGHT = 40;
1107
+ var PAGE_HEIGHT = 800;
1108
+
1109
+ /**
1110
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
1111
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
1112
+ * your questions.
1113
+ *
1114
+ * If you need to react to the mouse wheel in a predictable way, this code is
1115
+ * like your bestest friend. * hugs *
1116
+ *
1117
+ * As of today, there are 4 DOM event types you can listen to:
1118
+ *
1119
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
1120
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
1121
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
1122
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
1123
+ *
1124
+ * So what to do? The is the best:
1125
+ *
1126
+ * normalizeWheel.getEventType();
1127
+ *
1128
+ * In your event callback, use this code to get sane interpretation of the
1129
+ * deltas. This code will return an object with properties:
1130
+ *
1131
+ * spinX -- normalized spin speed (use for zoom) - x plane
1132
+ * spinY -- " - y plane
1133
+ * pixelX -- normalized distance (to pixels) - x plane
1134
+ * pixelY -- " - y plane
1135
+ *
1136
+ * Wheel values are provided by the browser assuming you are using the wheel to
1137
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
1138
+ * significantly on different platforms and browsers, forgetting that you can
1139
+ * scroll at different speeds. Some devices (like trackpads) emit more events
1140
+ * at smaller increments with fine granularity, and some emit massive jumps with
1141
+ * linear speed or acceleration.
1142
+ *
1143
+ * This code does its best to normalize the deltas for you:
1144
+ *
1145
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
1146
+ * dragged). This is super useful for zoom support where you want to
1147
+ * throw away the chunky scroll steps on the PC and make those equal to
1148
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
1149
+ * resolve a single slow step on a wheel to 1.
1150
+ *
1151
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
1152
+ * get the crazy differences between browsers, but at least it'll be in
1153
+ * pixels!
1154
+ *
1155
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
1156
+ * should translate to positive value zooming IN, negative zooming OUT.
1157
+ * This matches the newer 'wheel' event.
1158
+ *
1159
+ * Why are there spinX, spinY (or pixels)?
1160
+ *
1161
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
1162
+ * with a mouse. It results in side-scrolling in the browser by default.
1163
+ *
1164
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
1165
+ *
1166
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
1167
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
1168
+ * you know.
1169
+ *
1170
+ * Implementation info:
1171
+ *
1172
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
1173
+ * average mouse:
1174
+ *
1175
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
1176
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
1177
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
1178
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
1179
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
1180
+ *
1181
+ * On the trackpad:
1182
+ *
1183
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
1184
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
1185
+ *
1186
+ * On other/older browsers.. it's more complicated as there can be multiple and
1187
+ * also missing delta values.
1188
+ *
1189
+ * The 'wheel' event is more standard:
1190
+ *
1191
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
1192
+ *
1193
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
1194
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
1195
+ * backward compatibility with older events. Those other values help us
1196
+ * better normalize spin speed. Example of what the browsers provide:
1197
+ *
1198
+ * | event.wheelDelta | event.detail
1199
+ * ------------------+------------------+--------------
1200
+ * Safari v5/OS X | -120 | 0
1201
+ * Safari v5/Win7 | -120 | 0
1202
+ * Chrome v17/OS X | -120 | 0
1203
+ * Chrome v17/Win7 | -120 | 0
1204
+ * IE9/Win7 | -120 | undefined
1205
+ * Firefox v4/OS X | undefined | 1
1206
+ * Firefox v4/Win7 | undefined | 3
1207
+ *
1208
+ */
1209
+ function normalizeWheel(/*object*/ event) /*object*/ {
1210
+ var sX = 0, sY = 0, // spinX, spinY
1211
+ pX = 0, pY = 0; // pixelX, pixelY
1212
+
1213
+ // Legacy
1214
+ if ('detail' in event) { sY = event.detail; }
1215
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
1216
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
1217
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
1218
+
1219
+ // side scrolling on FF with DOMMouseScroll
1220
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
1221
+ sX = sY;
1222
+ sY = 0;
1223
+ }
1224
+
1225
+ pX = sX * PIXEL_STEP;
1226
+ pY = sY * PIXEL_STEP;
1227
+
1228
+ if ('deltaY' in event) { pY = event.deltaY; }
1229
+ if ('deltaX' in event) { pX = event.deltaX; }
1230
+
1231
+ if ((pX || pY) && event.deltaMode) {
1232
+ if (event.deltaMode == 1) { // delta in LINE units
1233
+ pX *= LINE_HEIGHT;
1234
+ pY *= LINE_HEIGHT;
1235
+ } else { // delta in PAGE units
1236
+ pX *= PAGE_HEIGHT;
1237
+ pY *= PAGE_HEIGHT;
1238
+ }
1239
+ }
1240
+
1241
+ // Fall-back if spin cannot be determined
1242
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
1243
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
1244
+
1245
+ return { spinX : sX,
1246
+ spinY : sY,
1247
+ pixelX : pX,
1248
+ pixelY : pY };
1249
+ }
1250
+
1251
+
1252
+ /**
1253
+ * The best combination if you prefer spinX + spinY normalization. It favors
1254
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
1255
+ * 'wheel' event, making spin speed determination impossible.
1256
+ */
1257
+ normalizeWheel.getEventType = function() /*string*/ {
1258
+ return (UserAgent_DEPRECATED.firefox())
1259
+ ? 'DOMMouseScroll'
1260
+ : (isEventSupported('wheel'))
1261
+ ? 'wheel'
1262
+ : 'mousewheel';
1263
+ };
1264
+
1265
+ module.exports = normalizeWheel;
1266
+
1267
+
1268
+ /***/ }),
1269
+
1270
+ /***/ 9253:
1271
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1272
+
1273
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1274
+ var y = x => () => x
1275
+ module.exports = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.bkZIndexManager, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["formItemKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formItemKey, ["formKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formKey, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName, ["useForm"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useForm, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
1276
+
1277
+ /***/ }),
1278
+
1279
+ /***/ 6609:
1280
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1281
+
1282
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
1283
+ var y = x => () => x
1284
+ module.exports = x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
1285
+
1286
+ /***/ }),
1287
+
1288
+ /***/ 926:
1289
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1290
+
1291
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1292
+ /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
1293
+ /* harmony export */ });
1294
+ function _arrayLikeToArray(arr, len) {
1295
+ if (len == null || len > arr.length) len = arr.length;
1296
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1297
+ return arr2;
1298
+ }
1299
+
1300
+ /***/ }),
1301
+
1302
+ /***/ 74:
1303
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1304
+
1305
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1306
+ /* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
1307
+ /* harmony export */ });
1308
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
1309
+
1310
+ function _arrayWithoutHoles(arr) {
1311
+ if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
1312
+ }
1313
+
1314
+ /***/ }),
1315
+
1316
+ /***/ 6666:
1317
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1318
+
1319
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1320
+ /* harmony export */ "default": () => (/* binding */ _defineProperty)
1321
+ /* harmony export */ });
1322
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
1323
+
1324
+ function _defineProperty(obj, key, value) {
1325
+ key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
1326
+ if (key in obj) {
1327
+ Object.defineProperty(obj, key, {
1328
+ value: value,
1329
+ enumerable: true,
1330
+ configurable: true,
1331
+ writable: true
1332
+ });
1333
+ } else {
1334
+ obj[key] = value;
1335
+ }
1336
+ return obj;
1337
+ }
1338
+
1339
+ /***/ }),
1340
+
1341
+ /***/ 1079:
1342
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1343
+
1344
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1345
+ /* harmony export */ "default": () => (/* binding */ _iterableToArray)
1346
+ /* harmony export */ });
1347
+ function _iterableToArray(iter) {
1348
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1349
+ }
1350
+
1351
+ /***/ }),
1352
+
1353
+ /***/ 6098:
1354
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1355
+
1356
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1357
+ /* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
1358
+ /* harmony export */ });
1359
+ function _nonIterableSpread() {
1360
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1361
+ }
1362
+
1363
+ /***/ }),
1364
+
1365
+ /***/ 7930:
1366
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1367
+
1368
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1369
+ /* harmony export */ "default": () => (/* binding */ _toConsumableArray)
1370
+ /* harmony export */ });
1371
+ /* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(74);
1372
+ /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1079);
1373
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9147);
1374
+ /* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6098);
1375
+
1376
+
1377
+
1378
+
1379
+ function _toConsumableArray(arr) {
1380
+ return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
1381
+ }
1382
+
1383
+ /***/ }),
1384
+
1385
+ /***/ 9745:
1386
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1387
+
1388
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1389
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
1390
+ /* harmony export */ });
1391
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6522);
1392
+
1393
+ function toPrimitive(t, r) {
1394
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
1395
+ var e = t[Symbol.toPrimitive];
1396
+ if (void 0 !== e) {
1397
+ var i = e.call(t, r || "default");
1398
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
1399
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1400
+ }
1401
+ return ("string" === r ? String : Number)(t);
1402
+ }
1403
+
1404
+ /***/ }),
1405
+
1406
+ /***/ 3795:
1407
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1408
+
1409
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1410
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
1411
+ /* harmony export */ });
1412
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6522);
1413
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9745);
1414
+
1415
+
1416
+ function toPropertyKey(t) {
1417
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
1418
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
1419
+ }
1420
+
1421
+ /***/ }),
1422
+
1423
+ /***/ 6522:
1424
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1425
+
1426
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1427
+ /* harmony export */ "default": () => (/* binding */ _typeof)
1428
+ /* harmony export */ });
1429
+ function _typeof(o) {
1430
+ "@babel/helpers - typeof";
1431
+
1432
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1433
+ return typeof o;
1434
+ } : function (o) {
1435
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1436
+ }, _typeof(o);
1437
+ }
1438
+
1439
+ /***/ }),
1440
+
1441
+ /***/ 9147:
1442
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1443
+
1444
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1445
+ /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
1446
+ /* harmony export */ });
1447
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
1448
+
1449
+ function _unsupportedIterableToArray(o, minLen) {
1450
+ if (!o) return;
1451
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1452
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1453
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1454
+ if (n === "Map" || n === "Set") return Array.from(o);
1455
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1456
+ }
1457
+
1458
+ /***/ })
1459
+
1460
+ /******/ });
1461
+ /************************************************************************/
1462
+ /******/ // The module cache
1463
+ /******/ var __webpack_module_cache__ = {};
1464
+ /******/
1465
+ /******/ // The require function
1466
+ /******/ function __webpack_require__(moduleId) {
1467
+ /******/ // Check if module is in cache
1468
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1469
+ /******/ if (cachedModule !== undefined) {
1470
+ /******/ return cachedModule.exports;
1471
+ /******/ }
1472
+ /******/ // Create a new module (and put it into the cache)
1473
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1474
+ /******/ // no module.id needed
1475
+ /******/ // no module.loaded needed
1476
+ /******/ exports: {}
1477
+ /******/ };
1478
+ /******/
1479
+ /******/ // Execute the module function
1480
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1481
+ /******/
1482
+ /******/ // Return the exports of the module
1483
+ /******/ return module.exports;
1484
+ /******/ }
16
1485
  /******/
17
1486
  /************************************************************************/
1487
+ /******/ /* webpack/runtime/compat get default export */
1488
+ /******/ (() => {
1489
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1490
+ /******/ __webpack_require__.n = (module) => {
1491
+ /******/ var getter = module && module.__esModule ?
1492
+ /******/ () => (module['default']) :
1493
+ /******/ () => (module);
1494
+ /******/ __webpack_require__.d(getter, { a: getter });
1495
+ /******/ return getter;
1496
+ /******/ };
1497
+ /******/ })();
1498
+ /******/
18
1499
  /******/ /* webpack/runtime/define property getters */
19
1500
  /******/ (() => {
20
1501
  /******/ // define getter functions for harmony exports
@@ -34,30 +1515,28 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEmpty_e109fd6b__ from "lodash/isE
34
1515
  /******/
35
1516
  /************************************************************************/
36
1517
  var __webpack_exports__ = {};
1518
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1519
+ (() => {
37
1520
 
38
1521
  // EXPORTS
39
1522
  __webpack_require__.d(__webpack_exports__, {
40
1523
  BkComposeFormItem: () => (/* reexport */ compose_form_item),
41
1524
  BkForm: () => (/* binding */ BkForm),
42
1525
  BkFormItem: () => (/* reexport */ form_item),
43
- "default": () => (/* binding */ src),
44
- formItemKey: () => (/* reexport */ shared_namespaceObject.formItemKey),
45
- formKey: () => (/* reexport */ shared_namespaceObject.formKey),
46
- useFormItem: () => (/* reexport */ shared_namespaceObject.useFormItem)
1526
+ "default": () => (/* binding */ form_src),
1527
+ formItemKey: () => (/* reexport */ shared_.formItemKey),
1528
+ formKey: () => (/* reexport */ shared_.formKey),
1529
+ useFormItem: () => (/* reexport */ shared_.useFormItem)
47
1530
  });
48
1531
 
49
- ;// CONCATENATED MODULE: external "../shared"
1532
+ // EXTERNAL MODULE: external "../shared"
1533
+ var shared_ = __webpack_require__(9253);
1534
+ // EXTERNAL MODULE: external "vue"
1535
+ var external_vue_ = __webpack_require__(6609);
1536
+ ;// CONCATENATED MODULE: external "../config-provider"
50
1537
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
51
1538
  var y = x => () => x
52
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["formItemKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formItemKey, ["formKey"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.formKey, ["useForm"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useForm, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
53
- ;// CONCATENATED MODULE: external "vue"
54
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
55
- var external_vue_y = x => () => x
56
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
57
- ;// CONCATENATED MODULE: external "../config-provider"
58
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
59
- var config_provider_y = x => () => x
60
- 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 });
1539
+ const config_provider_namespaceObject = x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
61
1540
  ;// CONCATENATED MODULE: ../../packages/form/src/compose-form-item.tsx
62
1541
  /*
63
1542
  * Tencent is pleased to support the open source community by making
@@ -89,7 +1568,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
89
1568
  var isCustomComponent = function isCustomComponent(node) {
90
1569
  return node.__v_isVNode;
91
1570
  };
92
- /* harmony default export */ const compose_form_item = ((0,external_vue_namespaceObject.defineComponent)({
1571
+ /* harmony default export */ const compose_form_item = ((0,external_vue_.defineComponent)({
93
1572
  name: 'ComposeFormItem',
94
1573
  props: {
95
1574
  headBackgroundColor: {
@@ -159,56 +1638,13 @@ var isCustomComponent = function isCustomComponent(node) {
159
1638
  tailChildren.props["class"] = tailChildStaticClass;
160
1639
  }
161
1640
  }
162
- return (0,external_vue_namespaceObject.h)('div', {
1641
+ return (0,external_vue_.h)('div', {
163
1642
  "class": "".concat(this.resolveClassName('compose-form-item'))
164
1643
  }, childrenArr);
165
1644
  }
166
1645
  }));
167
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
168
- function _typeof(o) {
169
- "@babel/helpers - typeof";
170
-
171
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
172
- return typeof o;
173
- } : function (o) {
174
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
175
- }, _typeof(o);
176
- }
177
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
178
-
179
- function toPrimitive(t, r) {
180
- if ("object" != _typeof(t) || !t) return t;
181
- var e = t[Symbol.toPrimitive];
182
- if (void 0 !== e) {
183
- var i = e.call(t, r || "default");
184
- if ("object" != _typeof(i)) return i;
185
- throw new TypeError("@@toPrimitive must return a primitive value.");
186
- }
187
- return ("string" === r ? String : Number)(t);
188
- }
189
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
190
-
191
-
192
- function toPropertyKey(t) {
193
- var i = toPrimitive(t, "string");
194
- return "symbol" == _typeof(i) ? i : String(i);
195
- }
196
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
197
-
198
- function _defineProperty(obj, key, value) {
199
- key = toPropertyKey(key);
200
- if (key in obj) {
201
- Object.defineProperty(obj, key, {
202
- value: value,
203
- enumerable: true,
204
- configurable: true,
205
- writable: true
206
- });
207
- } else {
208
- obj[key] = value;
209
- }
210
- return obj;
211
- }
1646
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1647
+ var defineProperty = __webpack_require__(6666);
212
1648
  ;// CONCATENATED MODULE: external "lodash/isBoolean"
213
1649
  var isBoolean_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
214
1650
  var isBoolean_y = x => () => x
@@ -221,7 +1657,7 @@ const isString_namespaceObject = isString_x({ ["default"]: () => __WEBPACK_EXTER
221
1657
 
222
1658
 
223
1659
  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; }
224
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1660
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
225
1661
  /*
226
1662
  * Tencent is pleased to support the open source community by making
227
1663
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -253,11 +1689,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
253
1689
 
254
1690
 
255
1691
  var formProps = {
256
- formType: shared_namespaceObject.PropTypes.oneOf(['default', 'vertical']).def('default'),
257
- labelWidth: shared_namespaceObject.PropTypes.oneOfType([Number, String]).def(150),
258
- labelPosition: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
259
- model: shared_namespaceObject.PropTypes.object,
260
- rules: shared_namespaceObject.PropTypes.object
1692
+ formType: shared_.PropTypes.oneOf(['default', 'vertical']).def('default'),
1693
+ labelWidth: shared_.PropTypes.oneOfType([Number, String]).def(150),
1694
+ labelPosition: shared_.PropTypes.oneOf(['left', 'center', 'right']),
1695
+ model: shared_.PropTypes.object,
1696
+ rules: shared_.PropTypes.object
261
1697
  };
262
1698
  var formEvents = {
263
1699
  submit: null,
@@ -265,7 +1701,7 @@ var formEvents = {
265
1701
  return (0,isString_namespaceObject["default"])(property) && (0,isBoolean_namespaceObject["default"])(result) && (0,isString_namespaceObject["default"])(message);
266
1702
  }
267
1703
  };
268
- /* harmony default export */ const src_form = ((0,external_vue_namespaceObject.defineComponent)({
1704
+ /* harmony default export */ const src_form = ((0,external_vue_.defineComponent)({
269
1705
  name: 'Form',
270
1706
  props: formProps,
271
1707
  emits: formEvents,
@@ -291,7 +1727,7 @@ var formEvents = {
291
1727
  return result;
292
1728
  }, []);
293
1729
  };
294
- (0,external_vue_namespaceObject.provide)(shared_namespaceObject.formKey, {
1730
+ (0,external_vue_.provide)(shared_.formKey, {
295
1731
  props: props,
296
1732
  emit: context.emit,
297
1733
  register: register,
@@ -311,12 +1747,12 @@ var formEvents = {
311
1747
  if (fields) {
312
1748
  var fieldList = typeof fields === 'string' ? [fields] : fields;
313
1749
  fieldMap = fieldList.reduce(function (result, item) {
314
- return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, item, true));
1750
+ return _objectSpread(_objectSpread({}, result), {}, (0,defineProperty["default"])({}, item, true));
315
1751
  }, {});
316
1752
  } else {
317
1753
  fieldMap = formItemInstanceList.reduce(function (result, item) {
318
1754
  if (item.property) {
319
- return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, item.property, true));
1755
+ return _objectSpread(_objectSpread({}, result), {}, (0,defineProperty["default"])({}, item.property, true));
320
1756
  }
321
1757
  return result;
322
1758
  }, {});
@@ -352,11 +1788,11 @@ var formEvents = {
352
1788
  if (fields) {
353
1789
  var fieldList = typeof fields === 'string' ? [fields] : fields;
354
1790
  fieldMap = fieldList.reduce(function (result, item) {
355
- return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, item, true));
1791
+ return _objectSpread(_objectSpread({}, result), {}, (0,defineProperty["default"])({}, item, true));
356
1792
  }, {});
357
1793
  } else {
358
1794
  fieldMap = formItemInstanceList.reduce(function (result, item) {
359
- return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, item.property, true));
1795
+ return _objectSpread(_objectSpread({}, result), {}, (0,defineProperty["default"])({}, item.property, true));
360
1796
  }, {});
361
1797
  }
362
1798
  formItemInstanceList.forEach(function (formItem) {
@@ -375,54 +1811,17 @@ var formEvents = {
375
1811
  },
376
1812
  render: function render() {
377
1813
  var _this$$slots$default, _this$$slots;
378
- var formClasses = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('form')), true), "".concat(this.resolveClassName("form--".concat(this.formType))), true));
379
- return (0,external_vue_namespaceObject.createVNode)("form", {
1814
+ var formClasses = (0,shared_.classes)((0,defineProperty["default"])((0,defineProperty["default"])({}, "".concat(this.resolveClassName('form')), true), "".concat(this.resolveClassName("form--".concat(this.formType))), true));
1815
+ return (0,external_vue_.createVNode)("form", {
380
1816
  "class": formClasses,
381
1817
  "onSubmit": this.handleSubmit
382
1818
  }, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
383
1819
  }
384
1820
  }));
385
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
386
- function _arrayLikeToArray(arr, len) {
387
- if (len == null || len > arr.length) len = arr.length;
388
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
389
- return arr2;
390
- }
391
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
392
-
393
- function _arrayWithoutHoles(arr) {
394
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
395
- }
396
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
397
- function _iterableToArray(iter) {
398
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
399
- }
400
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
401
-
402
- function _unsupportedIterableToArray(o, minLen) {
403
- if (!o) return;
404
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
405
- var n = Object.prototype.toString.call(o).slice(8, -1);
406
- if (n === "Object" && o.constructor) n = o.constructor.name;
407
- if (n === "Map" || n === "Set") return Array.from(o);
408
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
409
- }
410
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
411
- function _nonIterableSpread() {
412
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
413
- }
414
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
415
-
416
-
417
-
418
-
419
- function _toConsumableArray(arr) {
420
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
421
- }
422
- ;// CONCATENATED MODULE: external "../directives"
423
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
424
- var directives_y = x => () => x
425
- const directives_namespaceObject = directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.bkTooltips });
1821
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1822
+ var toConsumableArray = __webpack_require__(7930);
1823
+ // EXTERNAL MODULE: ../../packages/directives/src/index.ts + 8 modules
1824
+ var src = __webpack_require__(5235);
426
1825
  ;// CONCATENATED MODULE: external "../icon"
427
1826
  var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
428
1827
  var icon_y = x => () => x
@@ -533,7 +1932,7 @@ const isEmpty_namespaceObject = isEmpty_x({ ["default"]: () => __WEBPACK_EXTERNA
533
1932
 
534
1933
 
535
1934
  function form_item_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; }
536
- function form_item_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? form_item_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : form_item_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1935
+ function form_item_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? form_item_ownKeys(Object(t), !0).forEach(function (r) { (0,defineProperty["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : form_item_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
537
1936
  /*
538
1937
  * Tencent is pleased to support the open source community by making
539
1938
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -569,18 +1968,18 @@ function form_item_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
569
1968
 
570
1969
 
571
1970
  var formItemProps = {
572
- label: shared_namespaceObject.PropTypes.string,
573
- labelWidth: shared_namespaceObject.PropTypes.oneOfType([Number, String]),
574
- labelPosition: shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
575
- property: shared_namespaceObject.PropTypes.string.def(''),
576
- required: shared_namespaceObject.PropTypes.bool.def(false),
577
- email: shared_namespaceObject.PropTypes.bool.def(false),
578
- max: shared_namespaceObject.PropTypes.number,
579
- min: shared_namespaceObject.PropTypes.number,
580
- maxlength: shared_namespaceObject.PropTypes.number,
581
- rules: shared_namespaceObject.PropTypes.array,
582
- description: shared_namespaceObject.PropTypes.string,
583
- errorDisplayType: shared_namespaceObject.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
1971
+ label: shared_.PropTypes.string,
1972
+ labelWidth: shared_.PropTypes.oneOfType([Number, String]),
1973
+ labelPosition: shared_.PropTypes.oneOf(['left', 'center', 'right']),
1974
+ property: shared_.PropTypes.string.def(''),
1975
+ required: shared_.PropTypes.bool.def(false),
1976
+ email: shared_.PropTypes.bool.def(false),
1977
+ max: shared_.PropTypes.number,
1978
+ min: shared_.PropTypes.number,
1979
+ maxlength: shared_.PropTypes.number,
1980
+ rules: shared_.PropTypes.array,
1981
+ description: shared_.PropTypes.string,
1982
+ errorDisplayType: shared_.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
584
1983
  };
585
1984
  var hasOwn = function hasOwn(obj, key) {
586
1985
  return Object.prototype.hasOwnProperty.call(obj, key);
@@ -684,7 +2083,7 @@ var mergeRules = function mergeRules(configRules, propRules, t) {
684
2083
  result.push(ruleItem);
685
2084
  return result;
686
2085
  }, []);
687
- return [].concat(_toConsumableArray(filterPropRules), _toConsumableArray(formatConfigRules));
2086
+ return [].concat((0,toConsumableArray["default"])(filterPropRules), (0,toConsumableArray["default"])(formatConfigRules));
688
2087
  };
689
2088
  var getTriggerRules = function getTriggerRules(trigger, rules) {
690
2089
  return rules.reduce(function (result, rule) {
@@ -702,36 +2101,36 @@ var getTriggerRules = function getTriggerRules(trigger, rules) {
702
2101
  var isValid = function isValid(value) {
703
2102
  return value !== undefined;
704
2103
  };
705
- /* harmony default export */ const form_item = ((0,external_vue_namespaceObject.defineComponent)({
2104
+ /* harmony default export */ const form_item = ((0,external_vue_.defineComponent)({
706
2105
  name: 'FormItem',
707
2106
  directives: {
708
- bkTooltips: directives_namespaceObject.bkTooltips
2107
+ bkTooltips: src.bkTooltips
709
2108
  },
710
2109
  props: formItemProps,
711
2110
  setup: function setup(props, context) {
712
2111
  var t = (0,config_provider_namespaceObject.useLocale)('form');
713
- var form = (0,shared_namespaceObject.useForm)();
2112
+ var form = (0,shared_.useForm)();
714
2113
  var isForm = Boolean(form);
715
- var parentFormItem = (0,shared_namespaceObject.useFormItem)();
2114
+ var parentFormItem = (0,shared_.useFormItem)();
716
2115
  var isNested = Boolean(parentFormItem);
717
- var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
718
- var state = (0,external_vue_namespaceObject.reactive)({
2116
+ var currentInstance = (0,external_vue_.getCurrentInstance)();
2117
+ var state = (0,external_vue_.reactive)({
719
2118
  isError: false,
720
2119
  errorMessage: ''
721
2120
  });
722
- var isFormTypeVertical = (0,external_vue_namespaceObject.computed)(function () {
2121
+ var isFormTypeVertical = (0,external_vue_.computed)(function () {
723
2122
  if (!isForm) {
724
2123
  return false;
725
2124
  }
726
2125
  return form.props.formType === 'vertical';
727
2126
  });
728
- var isShowLabel = (0,external_vue_namespaceObject.computed)(function () {
2127
+ var isShowLabel = (0,external_vue_.computed)(function () {
729
2128
  if (props.label || context.slots.label) {
730
2129
  return true;
731
2130
  }
732
2131
  return false;
733
2132
  });
734
- var labelStyles = (0,external_vue_namespaceObject.computed)(function () {
2133
+ var labelStyles = (0,external_vue_.computed)(function () {
735
2134
  var styles = {
736
2135
  width: '',
737
2136
  paddingRight: '',
@@ -751,8 +2150,8 @@ var isValid = function isValid(value) {
751
2150
  }
752
2151
  return styles;
753
2152
  });
754
- var contentStyles = (0,external_vue_namespaceObject.computed)(function () {
755
- return _defineProperty({}, 'margin-left', labelStyles.value.width);
2153
+ var contentStyles = (0,external_vue_.computed)(function () {
2154
+ return (0,defineProperty["default"])({}, 'margin-left', labelStyles.value.width);
756
2155
  });
757
2156
  /**
758
2157
  * @desc 验证字段
@@ -841,23 +2240,23 @@ var isValid = function isValid(value) {
841
2240
  state.isError = false;
842
2241
  state.errorMessage = '';
843
2242
  };
844
- (0,external_vue_namespaceObject.provide)(shared_namespaceObject.formItemKey, form_item_objectSpread(form_item_objectSpread({}, props), {}, {
2243
+ (0,external_vue_.provide)(shared_.formItemKey, form_item_objectSpread(form_item_objectSpread({}, props), {}, {
845
2244
  validate: validate,
846
2245
  clearValidate: clearValidate
847
2246
  }));
848
- (0,external_vue_namespaceObject.onMounted)(function () {
2247
+ (0,external_vue_.onMounted)(function () {
849
2248
  if (isForm) {
850
2249
  form.register(currentInstance.proxy);
851
2250
  }
852
2251
  });
853
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
2252
+ (0,external_vue_.onBeforeUnmount)(function () {
854
2253
  if (isForm) {
855
2254
  form.unregister(currentInstance.proxy);
856
2255
  }
857
2256
  });
858
2257
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
859
2258
  resolveClassName = _usePrefix.resolveClassName;
860
- return form_item_objectSpread(form_item_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(state)), {}, {
2259
+ return form_item_objectSpread(form_item_objectSpread({}, (0,external_vue_.toRefs)(state)), {}, {
861
2260
  isShowLabel: isShowLabel,
862
2261
  labelStyles: labelStyles,
863
2262
  contentStyles: contentStyles,
@@ -873,40 +2272,40 @@ var isValid = function isValid(value) {
873
2272
  _this$$slots,
874
2273
  _this$$slots$default,
875
2274
  _this$$slots2;
876
- var itemClassees = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('form-item')), true), 'is-error', this.isError), 'is-required', this.required));
2275
+ var itemClassees = (0,shared_.classes)((0,defineProperty["default"])((0,defineProperty["default"])((0,defineProperty["default"])({}, "".concat(this.resolveClassName('form-item')), true), 'is-error', this.isError), 'is-required', this.required));
877
2276
  var renderLabel = function renderLabel() {
878
2277
  if (_this.$slots.label) {
879
- return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.$slots.label()]);
2278
+ return (0,external_vue_.createVNode)("span", null, [_this.$slots.label()]);
880
2279
  }
881
2280
  if (_this.description) {
882
- return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
883
- "class": _defineProperty({}, "".concat(_this.resolveClassName('form-label-description')), Boolean(_this.description))
884
- }, [_this.label]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
2281
+ return (0,external_vue_.withDirectives)((0,external_vue_.createVNode)("span", {
2282
+ "class": (0,defineProperty["default"])({}, "".concat(_this.resolveClassName('form-label-description')), Boolean(_this.description))
2283
+ }, [_this.label]), [[(0,external_vue_.resolveDirective)("bk-tooltips"), {
885
2284
  content: _this.description,
886
2285
  extCls: _this.resolveClassName('form-label-description-popper')
887
2286
  }]]);
888
2287
  }
889
- return (0,external_vue_namespaceObject.createVNode)("span", null, [_this.label]);
2288
+ return (0,external_vue_.createVNode)("span", null, [_this.label]);
890
2289
  };
891
2290
  var renderError = function renderError() {
892
2291
  if (!_this.isError) {
893
2292
  return null;
894
2293
  }
895
2294
  if (_this.errorDisplayType === 'tooltips') {
896
- return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
2295
+ return (0,external_vue_.withDirectives)((0,external_vue_.createVNode)("div", {
897
2296
  "class": "".concat(_this.resolveClassName('form-error-tips'))
898
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, null, null)]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
2297
+ }, [(0,external_vue_.createVNode)(icon_namespaceObject.ExclamationCircleShape, null, null)]), [[(0,external_vue_.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
899
2298
  }
900
- return (0,external_vue_namespaceObject.createVNode)("div", {
2299
+ return (0,external_vue_.createVNode)("div", {
901
2300
  "class": "".concat(_this.resolveClassName('form-error'))
902
2301
  }, [_this.$slots.error ? _this.$slots.error(_this.errorMessage) : _this.errorMessage]);
903
2302
  };
904
- return (0,external_vue_namespaceObject.createVNode)("div", {
2303
+ return (0,external_vue_.createVNode)("div", {
905
2304
  "class": itemClassees
906
- }, [this.isShowLabel && (0,external_vue_namespaceObject.createVNode)("div", {
2305
+ }, [this.isShowLabel && (0,external_vue_.createVNode)("div", {
907
2306
  "style": this.labelStyles,
908
2307
  "class": "".concat(this.resolveClassName('form-label'))
909
- }, [renderLabel(), this.isFormTypeVertical && ((_this$$slots$labelApp = (_this$$slots = this.$slots).labelAppend) === null || _this$$slots$labelApp === void 0 ? void 0 : _this$$slots$labelApp.call(_this$$slots))]), (0,external_vue_namespaceObject.createVNode)("div", {
2308
+ }, [renderLabel(), this.isFormTypeVertical && ((_this$$slots$labelApp = (_this$$slots = this.$slots).labelAppend) === null || _this$$slots$labelApp === void 0 ? void 0 : _this$$slots$labelApp.call(_this$$slots))]), (0,external_vue_.createVNode)("div", {
910
2309
  "style": this.contentStyles,
911
2310
  "class": "".concat(this.resolveClassName('form-content'))
912
2311
  }, [(_this$$slots$default = (_this$$slots2 = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2), renderError()])]);
@@ -943,11 +2342,13 @@ var isValid = function isValid(value) {
943
2342
 
944
2343
 
945
2344
 
946
- var BkForm = (0,shared_namespaceObject.withInstallProps)(src_form, {
2345
+ var BkForm = (0,shared_.withInstallProps)(src_form, {
947
2346
  FormItem: form_item,
948
2347
  ComposeFormItem: compose_form_item
949
2348
  });
950
- /* harmony default export */ const src = (BkForm);
2349
+ /* harmony default export */ const form_src = (BkForm);
2350
+
2351
+ })();
951
2352
 
952
2353
  var __webpack_exports__BkComposeFormItem = __webpack_exports__.BkComposeFormItem;
953
2354
  var __webpack_exports__BkForm = __webpack_exports__.BkForm;