bkui-vue 2.0.1 → 2.0.2-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.esm.js +1 -1
  3. package/dist/index.umd.js +1 -1
  4. package/lib/affix/index.js +30 -22
  5. package/lib/alert/index.js +30 -22
  6. package/lib/animate-number/index.js +14 -10
  7. package/lib/backtop/index.js +32 -22
  8. package/lib/badge/index.js +24 -18
  9. package/lib/breadcrumb/index.js +31 -23
  10. package/lib/button/index.js +36 -26
  11. package/lib/card/index.js +47 -33
  12. package/lib/cascader/index.js +1680 -198
  13. package/lib/checkbox/index.js +44 -34
  14. package/lib/code-diff/index.js +83 -79
  15. package/lib/collapse/index.js +39 -33
  16. package/lib/collapse-transition/index.js +20 -14
  17. package/lib/color-picker/index.js +1645 -193
  18. package/lib/config-provider/index.js +34 -26
  19. package/lib/container/index.js +27 -21
  20. package/lib/date-picker/index.js +1943 -516
  21. package/lib/dialog/index.js +101 -87
  22. package/lib/directives/index.js +494 -376
  23. package/lib/divider/index.js +21 -15
  24. package/lib/dropdown/index.js +43 -31
  25. package/lib/exception/index.js +55 -49
  26. package/lib/fixed-navbar/index.js +20 -14
  27. package/lib/form/index.js +1623 -198
  28. package/lib/icon/angle-double-down-line.js +14 -12
  29. package/lib/icon/angle-double-left-line.js +14 -12
  30. package/lib/icon/angle-double-left.js +14 -12
  31. package/lib/icon/angle-double-right-line.js +14 -12
  32. package/lib/icon/angle-double-right.js +14 -12
  33. package/lib/icon/angle-double-up-line.js +14 -12
  34. package/lib/icon/angle-down-fill.js +14 -12
  35. package/lib/icon/angle-down-line.js +14 -12
  36. package/lib/icon/angle-down.js +14 -12
  37. package/lib/icon/angle-left.js +14 -12
  38. package/lib/icon/angle-right.js +14 -12
  39. package/lib/icon/angle-up-fill.js +14 -12
  40. package/lib/icon/angle-up.js +14 -12
  41. package/lib/icon/archive-fill.js +14 -12
  42. package/lib/icon/arrows-left.js +14 -12
  43. package/lib/icon/arrows-right.js +14 -12
  44. package/lib/icon/assistant.js +14 -12
  45. package/lib/icon/audio-fill.js +14 -12
  46. package/lib/icon/bk.js +14 -12
  47. package/lib/icon/circle.js +14 -12
  48. package/lib/icon/close-line.js +14 -12
  49. package/lib/icon/close.js +14 -12
  50. package/lib/icon/code.js +14 -12
  51. package/lib/icon/cog-shape.js +14 -12
  52. package/lib/icon/collapse-left.js +14 -12
  53. package/lib/icon/copy-shape.js +14 -12
  54. package/lib/icon/copy.js +14 -12
  55. package/lib/icon/data-shape.js +14 -12
  56. package/lib/icon/del.js +14 -12
  57. package/lib/icon/doc-fill.js +14 -12
  58. package/lib/icon/done.js +14 -12
  59. package/lib/icon/down-shape.js +14 -12
  60. package/lib/icon/down-small.js +14 -12
  61. package/lib/icon/edit-line.js +14 -12
  62. package/lib/icon/ellipsis.js +14 -12
  63. package/lib/icon/enlarge-line.js +14 -12
  64. package/lib/icon/error.js +14 -12
  65. package/lib/icon/excel-fill.js +14 -12
  66. package/lib/icon/exclamation-circle-shape.js +14 -12
  67. package/lib/icon/eye.js +14 -12
  68. package/lib/icon/filliscreen-line.js +14 -12
  69. package/lib/icon/fix-line.js +14 -12
  70. package/lib/icon/fix-shape.js +14 -12
  71. package/lib/icon/folder-open.js +14 -12
  72. package/lib/icon/folder-shape-open.js +14 -12
  73. package/lib/icon/folder-shape.js +14 -12
  74. package/lib/icon/folder.js +14 -12
  75. package/lib/icon/funnel.js +14 -12
  76. package/lib/icon/grag-fill.js +14 -12
  77. package/lib/icon/help-document-fill.js +14 -12
  78. package/lib/icon/help-fill.js +14 -12
  79. package/lib/icon/help.js +14 -12
  80. package/lib/icon/image-fill.js +14 -12
  81. package/lib/icon/img-error.js +14 -12
  82. package/lib/icon/img-placehoulder.js +14 -12
  83. package/lib/icon/info-line.js +14 -12
  84. package/lib/icon/info.js +14 -12
  85. package/lib/icon/left-shape.js +14 -12
  86. package/lib/icon/left-turn-line.js +14 -12
  87. package/lib/icon/loading.js +14 -12
  88. package/lib/icon/narrow-line.js +14 -12
  89. package/lib/icon/original.js +14 -12
  90. package/lib/icon/pdf-fill.js +14 -12
  91. package/lib/icon/play-shape.js +14 -12
  92. package/lib/icon/plus.js +14 -12
  93. package/lib/icon/ppt-fill.js +14 -12
  94. package/lib/icon/qq.js +14 -12
  95. package/lib/icon/right-shape.js +14 -12
  96. package/lib/icon/right-turn-line.js +14 -12
  97. package/lib/icon/search.js +14 -12
  98. package/lib/icon/share.js +14 -12
  99. package/lib/icon/spinner.js +14 -12
  100. package/lib/icon/success.js +14 -12
  101. package/lib/icon/switcher-loading.js +14 -12
  102. package/lib/icon/text-all.js +14 -12
  103. package/lib/icon/text-file.js +14 -12
  104. package/lib/icon/text-fill.js +14 -12
  105. package/lib/icon/transfer.js +14 -12
  106. package/lib/icon/tree-application-shape.js +14 -12
  107. package/lib/icon/unfull-screen.js +14 -12
  108. package/lib/icon/unvisible.js +14 -12
  109. package/lib/icon/up-shape.js +14 -12
  110. package/lib/icon/upload.js +14 -12
  111. package/lib/icon/video-fill.js +14 -12
  112. package/lib/icon/warn.js +14 -12
  113. package/lib/icon/weixin-pro.js +14 -12
  114. package/lib/icon/weixin.js +14 -12
  115. package/lib/image/index.js +1502 -182
  116. package/lib/index.js +1 -1
  117. package/lib/info-box/index.js +101 -87
  118. package/lib/input/index.js +1342 -42
  119. package/lib/link/index.js +26 -18
  120. package/lib/loading/index.js +25 -19
  121. package/lib/locale/index.js +3 -3
  122. package/lib/menu/index.js +40 -32
  123. package/lib/message/index.js +47 -41
  124. package/lib/modal/index.js +39 -29
  125. package/lib/navigation/index.js +27 -19
  126. package/lib/notify/index.js +37 -27
  127. package/lib/overflow-title/index.js +41 -29
  128. package/lib/pagination/index.js +62 -46
  129. package/lib/plugin-popover/index.js +7 -5
  130. package/lib/plugins/index.js +7 -5
  131. package/lib/pop-confirm/index.js +49 -33
  132. package/lib/popover/index.js +1417 -113
  133. package/lib/popover2/index.js +14 -10
  134. package/lib/process/index.js +78 -74
  135. package/lib/progress/index.js +26 -20
  136. package/lib/radio/index.js +39 -31
  137. package/lib/rate/index.js +25 -19
  138. package/lib/resize-layout/index.js +30 -22
  139. package/lib/scrollbar/index.js +25 -25
  140. package/lib/search-select/index.js +1486 -236
  141. package/lib/select/index.js +1404 -134
  142. package/lib/shared/index.js +57 -49
  143. package/lib/sideslider/index.js +89 -79
  144. package/lib/slider/index.js +85 -75
  145. package/lib/steps/index.js +78 -72
  146. package/lib/swiper/index.js +24 -18
  147. package/lib/switcher/index.js +30 -22
  148. package/lib/tab/index.js +1324 -43
  149. package/lib/table/index.js +1582 -296
  150. package/lib/table-column/index.js +13 -9
  151. package/lib/tag/index.js +36 -26
  152. package/lib/tag-input/index.js +1370 -75
  153. package/lib/time-picker/index.js +13 -9
  154. package/lib/timeline/index.js +21 -15
  155. package/lib/transfer/index.js +56 -40
  156. package/lib/tree/index.js +100 -76
  157. package/lib/upload/index.js +584 -572
  158. package/lib/virtual-render/index.js +55 -43
  159. package/package.json +1 -1
@@ -1,16 +1,1509 @@
1
1
  import "../styles/reset.css";
2
2
  import "./color-picker.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_vue_types_22de060a__ from "vue-types";
6
10
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
7
11
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__ from "../date-picker";
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
- /******/ // The require scope
11
- /******/ var __webpack_require__ = {};
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 205:
16
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
17
+
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "default": () => (/* binding */ toPropertyKey)
20
+ /* harmony export */ });
21
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7545);
22
+ /* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
23
+
24
+
25
+ function toPropertyKey(t) {
26
+ var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
27
+ return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
28
+ }
29
+
30
+ /***/ }),
31
+
32
+ /***/ 1043:
33
+ /***/ ((module) => {
34
+
35
+ /**
36
+ * Copyright (c) 2015, Facebook, Inc.
37
+ * All rights reserved.
38
+ *
39
+ * This source code is licensed under the BSD-style license found in the
40
+ * LICENSE file in the root directory of this source tree. An additional grant
41
+ * of patent rights can be found in the PATENTS file in the same directory.
42
+ *
43
+ * @providesModule ExecutionEnvironment
44
+ */
45
+
46
+ /*jslint evil: true */
47
+
48
+
49
+
50
+ var canUseDOM = !!(
51
+ typeof window !== 'undefined' &&
52
+ window.document &&
53
+ window.document.createElement
54
+ );
55
+
56
+ /**
57
+ * Simple, lightweight module assisting with the detection and context of
58
+ * Worker. Helps avoid circular dependencies and allows code to reason about
59
+ * whether or not they are in a Worker, even if they never include the main
60
+ * `ReactWorker` dependency.
61
+ */
62
+ var ExecutionEnvironment = {
63
+
64
+ canUseDOM: canUseDOM,
65
+
66
+ canUseWorkers: typeof Worker !== 'undefined',
67
+
68
+ canUseEventListeners:
69
+ canUseDOM && !!(window.addEventListener || window.attachEvent),
70
+
71
+ canUseViewport: canUseDOM && !!window.screen,
72
+
73
+ isInWorker: !canUseDOM // For now, this is true - might change in the future.
74
+
75
+ };
76
+
77
+ module.exports = ExecutionEnvironment;
78
+
79
+
80
+ /***/ }),
81
+
82
+ /***/ 2586:
83
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
84
+
85
+ /**
86
+ * Copyright 2013-2015, Facebook, Inc.
87
+ * All rights reserved.
88
+ *
89
+ * This source code is licensed under the BSD-style license found in the
90
+ * LICENSE file in the root directory of this source tree. An additional grant
91
+ * of patent rights can be found in the PATENTS file in the same directory.
92
+ *
93
+ * @providesModule isEventSupported
94
+ */
95
+
96
+
97
+
98
+ var ExecutionEnvironment = __webpack_require__(1043);
99
+
100
+ var useHasFeature;
101
+ if (ExecutionEnvironment.canUseDOM) {
102
+ useHasFeature =
103
+ document.implementation &&
104
+ document.implementation.hasFeature &&
105
+ // always returns true in newer browsers as per the standard.
106
+ // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
107
+ document.implementation.hasFeature('', '') !== true;
108
+ }
109
+
110
+ /**
111
+ * Checks if an event is supported in the current execution environment.
112
+ *
113
+ * NOTE: This will not work correctly for non-generic events such as `change`,
114
+ * `reset`, `load`, `error`, and `select`.
115
+ *
116
+ * Borrows from Modernizr.
117
+ *
118
+ * @param {string} eventNameSuffix Event name, e.g. "click".
119
+ * @param {?boolean} capture Check if the capture phase is supported.
120
+ * @return {boolean} True if the event is supported.
121
+ * @internal
122
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
123
+ */
124
+ function isEventSupported(eventNameSuffix, capture) {
125
+ if (!ExecutionEnvironment.canUseDOM ||
126
+ capture && !('addEventListener' in document)) {
127
+ return false;
128
+ }
129
+
130
+ var eventName = 'on' + eventNameSuffix;
131
+ var isSupported = eventName in document;
132
+
133
+ if (!isSupported) {
134
+ var element = document.createElement('div');
135
+ element.setAttribute(eventName, 'return;');
136
+ isSupported = typeof element[eventName] === 'function';
137
+ }
138
+
139
+ if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') {
140
+ // This is the only way to test support for the `wheel` event in IE9+.
141
+ isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
142
+ }
143
+
144
+ return isSupported;
145
+ }
146
+
147
+ module.exports = isEventSupported;
148
+
149
+
150
+ /***/ }),
151
+
152
+ /***/ 2880:
153
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
154
+
155
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
156
+ /* harmony export */ "default": () => (/* binding */ _nonIterableSpread)
157
+ /* harmony export */ });
158
+ function _nonIterableSpread() {
159
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
160
+ }
161
+
162
+ /***/ }),
163
+
164
+ /***/ 3492:
165
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
166
+
167
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
168
+ /* harmony export */ "default": () => (/* binding */ _arrayWithoutHoles)
169
+ /* harmony export */ });
170
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
171
+
172
+ function _arrayWithoutHoles(arr) {
173
+ if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
174
+ }
175
+
176
+ /***/ }),
177
+
178
+ /***/ 4430:
179
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
180
+
181
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
182
+ /* harmony export */ "default": () => (/* binding */ _iterableToArray)
183
+ /* harmony export */ });
184
+ function _iterableToArray(iter) {
185
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
186
+ }
187
+
188
+ /***/ }),
189
+
190
+ /***/ 4586:
191
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
192
+
193
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
194
+ /* harmony export */ "default": () => (/* binding */ _defineProperty)
195
+ /* harmony export */ });
196
+ /* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(205);
197
+
198
+ function _defineProperty(obj, key, value) {
199
+ key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(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
+ }
212
+
213
+ /***/ }),
214
+
215
+ /***/ 4923:
216
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
217
+
218
+
219
+ // EXPORTS
220
+ __webpack_require__.d(__webpack_exports__, {
221
+ clickoutside: () => (/* reexport */ clickoutside)
222
+ });
223
+
224
+ // UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, bkTooltips, mousewheel, overflowTitle
225
+
226
+ ;// ../../packages/directives/src/clickoutside.ts
227
+ 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; } } }; }
228
+ 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); }
229
+ 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; }
230
+ /*
231
+ * Tencent is pleased to support the open source community by making
232
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
233
+ *
234
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
235
+ *
236
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
237
+ *
238
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
239
+ *
240
+ * ---------------------------------------------------
241
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
242
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
243
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
244
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
245
+ *
246
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
247
+ * the Software.
248
+ *
249
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
250
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
251
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
252
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
253
+ * IN THE SOFTWARE.
254
+ */
255
+ var isElement = function isElement(e) {
256
+ if (typeof Element === 'undefined') return false;
257
+ return e instanceof Element;
258
+ };
259
+ var nodeList = new Map();
260
+ var startClick;
261
+ document.addEventListener('mousedown', function (e) {
262
+ return startClick = e;
263
+ });
264
+ document.addEventListener('mouseup', function (e) {
265
+ var _iterator = _createForOfIteratorHelper(nodeList.values()),
266
+ _step;
267
+ try {
268
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
269
+ var handlers = _step.value;
270
+ var _iterator2 = _createForOfIteratorHelper(handlers),
271
+ _step2;
272
+ try {
273
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
274
+ var documentHandler = _step2.value.documentHandler;
275
+ documentHandler(e, startClick);
276
+ }
277
+ } catch (err) {
278
+ _iterator2.e(err);
279
+ } finally {
280
+ _iterator2.f();
281
+ }
282
+ }
283
+ } catch (err) {
284
+ _iterator.e(err);
285
+ } finally {
286
+ _iterator.f();
287
+ }
288
+ });
289
+ function createDocumentHandler(el, binding) {
290
+ var excludes = [];
291
+ if (Array.isArray(binding.arg)) {
292
+ excludes = binding.arg;
293
+ } else if (isElement(binding.arg)) {
294
+ excludes.push(binding.arg);
295
+ }
296
+ return function (mouseup, mousedown) {
297
+ var popperRef = binding.instance.popperRef;
298
+ var mouseUpTarget = mouseup.target;
299
+ var mouseDownTarget = mousedown === null || mousedown === void 0 ? void 0 : mousedown.target;
300
+ var isBound = !binding || !binding.instance;
301
+ var isTargetExists = !mouseUpTarget || !mouseDownTarget;
302
+ var isContainedByEl = el.contains(mouseUpTarget) || el.contains(mouseDownTarget);
303
+ var isSelf = el === mouseUpTarget;
304
+ var isTargetExcluded = excludes.length && excludes.some(function (item) {
305
+ return item === null || item === void 0 ? void 0 : item.contains(mouseUpTarget);
306
+ }) || excludes.length && excludes.includes(mouseDownTarget);
307
+ var isContainedByPopper = popperRef && (popperRef.contains(mouseUpTarget) || popperRef.contains(mouseDownTarget));
308
+ if (isBound || isTargetExists || isContainedByEl || isSelf || isTargetExcluded || isContainedByPopper) {
309
+ return;
310
+ }
311
+ binding.value(mouseup, mousedown);
312
+ };
313
+ }
314
+ var ClickOutside = {
315
+ beforeMount: function beforeMount(el, binding) {
316
+ if (!nodeList.has(el)) {
317
+ nodeList.set(el, []);
318
+ }
319
+ nodeList.get(el).push({
320
+ documentHandler: createDocumentHandler(el, binding),
321
+ bindingFn: binding.value
322
+ });
323
+ },
324
+ updated: function updated(el, binding) {
325
+ if (!nodeList.has(el)) {
326
+ nodeList.set(el, []);
327
+ }
328
+ var handlers = nodeList.get(el);
329
+ var oldHandlerIndex = handlers.findIndex(function (item) {
330
+ return item.bindingFn === binding.oldValue;
331
+ });
332
+ var newHandler = {
333
+ documentHandler: createDocumentHandler(el, binding),
334
+ bindingFn: binding.value
335
+ };
336
+ if (oldHandlerIndex >= 0) {
337
+ // replace the old handler to the new handler
338
+ handlers.splice(oldHandlerIndex, 1, newHandler);
339
+ } else {
340
+ handlers.push(newHandler);
341
+ }
342
+ },
343
+ unmounted: function unmounted(el) {
344
+ // remove all listeners when a component unmounted
345
+ nodeList["delete"](el);
346
+ }
347
+ };
348
+ ClickOutside.install = function (app) {
349
+ app.directive('bkTooltips', ClickOutside);
350
+ };
351
+ /* harmony default export */ const clickoutside = (ClickOutside);
352
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
353
+ var esm_typeof = __webpack_require__(7545);
354
+ ;// external "../plugin-popover"
355
+ var x = (y) => {
356
+ var x = {}; __webpack_require__.d(x, y); return x
357
+ }
358
+ var y = (x) => (() => (x))
359
+ const plugin_popover_namespaceObject = x({ ["default"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_plugin_popover_300e25d0__["default"]) });
360
+ ;// ../../packages/directives/src/ellipsis.ts
361
+
362
+ /*
363
+ * Tencent is pleased to support the open source community by making
364
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
365
+ *
366
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
367
+ *
368
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
369
+ *
370
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
371
+ *
372
+ * ---------------------------------------------------
373
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
374
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
375
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
376
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
377
+ *
378
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
379
+ * the Software.
380
+ *
381
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
382
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
383
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
384
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
385
+ * IN THE SOFTWARE.
386
+ */
387
+
388
+ var resolveOptions = function resolveOptions(el, binding) {
389
+ var options = {
390
+ content: '',
391
+ target: el
392
+ };
393
+ if ((0,esm_typeof["default"])(binding) === 'object') {
394
+ Object.assign(options, binding);
395
+ if (Object.prototype.hasOwnProperty.call(binding, 'popoverOption')) {
396
+ Object.assign(options, binding.popoverOption);
397
+ }
398
+ } else {
399
+ options.content = binding;
400
+ }
401
+ return options;
402
+ };
403
+ var createInstance = function createInstance(el, binding) {
404
+ var instance = null;
405
+ var createTimer = null;
406
+ var hidePopTimer = null;
407
+ var options = resolveOptions(el, binding);
408
+ var disabled = options.disabled;
409
+ if (disabled || instance) {
410
+ return;
411
+ }
412
+ var handleContentEnter = function handleContentEnter() {
413
+ hidePopTimer && clearTimeout(hidePopTimer);
414
+ hidePopTimer = null;
415
+ };
416
+ var handleContentLeave = function handleContentLeave() {
417
+ var _instance, _instance2;
418
+ if (createTimer) {
419
+ clearTimeout(createTimer);
420
+ }
421
+ (_instance = instance) === null || _instance === void 0 || _instance.hide();
422
+ (_instance2 = instance) === null || _instance2 === void 0 || _instance2.close();
423
+ instance = null;
424
+ };
425
+ var handleMouseEnter = function handleMouseEnter() {
426
+ handleContentLeave();
427
+ createTimer && clearTimeout(createTimer);
428
+ createTimer = setTimeout(function () {
429
+ var targetOptions = resolveOptions(el, binding);
430
+ targetOptions.isShow = true;
431
+ targetOptions.content = typeof targetOptions.content === 'function' ? targetOptions.content() : targetOptions.content || el.innerText;
432
+ targetOptions.allowHtml = true;
433
+ Object.assign(targetOptions, {
434
+ onContentMouseenter: handleContentEnter,
435
+ onContentMouseleave: handleContentLeave
436
+ });
437
+ instance = (0,plugin_popover_namespaceObject["default"])(targetOptions);
438
+ }, 300);
439
+ };
440
+ var handleMouseLeave = function handleMouseLeave() {
441
+ hidePopTimer = setTimeout(function () {
442
+ var _instance3, _instance4;
443
+ if (createTimer) {
444
+ clearTimeout(createTimer);
445
+ }
446
+ (_instance3 = instance) === null || _instance3 === void 0 || _instance3.hide();
447
+ (_instance4 = instance) === null || _instance4 === void 0 || _instance4.close();
448
+ instance = null;
449
+ }, 120);
450
+ };
451
+ el.addEventListener('mouseenter', handleMouseEnter);
452
+ el.addEventListener('mouseleave', handleMouseLeave);
453
+ var destroyInstance = function destroyInstance(element) {
454
+ var _ref, _ref2;
455
+ handleMouseLeave();
456
+ (_ref = element !== null && element !== void 0 ? element : el) === null || _ref === void 0 || _ref.removeEventListener('mouseenter', handleMouseEnter);
457
+ (_ref2 = element !== null && element !== void 0 ? element : el) === null || _ref2 === void 0 || _ref2.removeEventListener('mouseleave', handleMouseLeave);
458
+ };
459
+ return {
460
+ destroyInstance: destroyInstance,
461
+ instance: instance
462
+ };
463
+ };
464
+ var ellipsis = {
465
+ mounted: function mounted(el, binding) {
466
+ createInstance(el, binding);
467
+ }
468
+ };
469
+ /* harmony default export */ const src_ellipsis = ((/* unused pure expression or super */ null && (ellipsis)));
470
+ // EXTERNAL MODULE: ../../node_modules/normalize-wheel/index.js
471
+ var normalize_wheel = __webpack_require__(8283);
472
+ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel);
473
+ ;// ../../packages/directives/src/mousewheel.ts
474
+ /*
475
+ * Tencent is pleased to support the open source community by making
476
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
477
+ *
478
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
479
+ *
480
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
481
+ *
482
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
483
+ *
484
+ * ---------------------------------------------------
485
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
486
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
487
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
488
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
489
+ *
490
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
491
+ * the Software.
492
+ *
493
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
494
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
495
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
496
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
497
+ * IN THE SOFTWARE.
498
+ */
499
+
500
+ var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
501
+ var mousewheelHandler = function mousewheelHandler(element, callback) {
502
+ if (element !== null && element !== void 0 && element.addEventListener) {
503
+ element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (e) {
504
+ var normalized = normalize_wheel_default()(e);
505
+ callback === null || callback === void 0 || callback.apply(this, [e, normalized]);
506
+ });
507
+ }
508
+ };
509
+ var mousewheel = {
510
+ beforeMount: function beforeMount(el, binding) {
511
+ mousewheelHandler(el, binding.value);
512
+ }
513
+ };
514
+ /* harmony default export */ const src_mousewheel = ((/* unused pure expression or super */ null && (mousewheel)));
515
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
516
+ var defineProperty = __webpack_require__(4586);
517
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
518
+ var toConsumableArray = __webpack_require__(5153);
519
+ // EXTERNAL MODULE: external "vue"
520
+ var external_vue_ = __webpack_require__(5286);
521
+ // EXTERNAL MODULE: external "../shared"
522
+ var shared_ = __webpack_require__(5166);
523
+ ;// external "@popperjs/core"
524
+ var core_x = (y) => {
525
+ var x = {}; __webpack_require__.d(x, y); return x
526
+ }
527
+ var core_y = (x) => (() => (x))
528
+ const core_namespaceObject = core_x({ ["createPopper"]: () => (__WEBPACK_EXTERNAL_MODULE__popperjs_core_a5c7319c__.createPopper) });
529
+ ;// ../../packages/directives/src/tooltips.ts
530
+
531
+
532
+
533
+ 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; }
534
+ 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; }
535
+ /*
536
+ * Tencent is pleased to support the open source community by making
537
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
538
+ *
539
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
540
+ *
541
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
542
+ *
543
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
544
+ *
545
+ * ---------------------------------------------------
546
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
547
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
548
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
549
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
550
+ *
551
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
552
+ * the Software.
553
+ *
554
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
555
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
556
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
557
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
558
+ * IN THE SOFTWARE.
559
+ */
560
+
561
+
562
+
563
+ var tooltips_nodeList = new WeakMap();
564
+ var tooltips = {
565
+ beforeMount: function beforeMount(el, binding) {
566
+ var opts = getOpts(binding);
567
+ var trigger = opts.trigger,
568
+ showOnInit = opts.showOnInit;
569
+ var popper = renderContent(opts);
570
+ var delayTimeout = null;
571
+ if (showOnInit) {
572
+ (0,external_vue_.nextTick)(function () {
573
+ show(el);
574
+ });
575
+ }
576
+ if (trigger === 'hover') {
577
+ var hideTimeout = null;
578
+ el.addEventListener('mouseenter', function () {
579
+ delayTimeout = setTimeout(function () {
580
+ show(el);
581
+ clearTimeout(hideTimeout);
582
+ clearTimeout(delayTimeout);
583
+ }, opts.delay);
584
+ });
585
+ popper.addEventListener('mouseenter', function () {
586
+ clearTimeout(hideTimeout);
587
+ });
588
+ el.addEventListener('mouseleave', function () {
589
+ clearTimeout(delayTimeout);
590
+ hideTimeout = setTimeout(function () {
591
+ hide(el);
592
+ }, 100);
593
+ });
594
+ el.addEventListener('click', function () {
595
+ hide(el);
596
+ });
597
+ popper.addEventListener('mouseleave', function () {
598
+ clearTimeout(delayTimeout);
599
+ hideTimeout = setTimeout(function () {
600
+ hide(el);
601
+ }, 100);
602
+ });
603
+ } else if (trigger === 'click') {
604
+ document.body.addEventListener('click', function (event) {
605
+ if (el.contains(event.target) && !popper.hasAttribute('data-show')) {
606
+ delayTimeout = setTimeout(function () {
607
+ show(el);
608
+ clearTimeout(delayTimeout);
609
+ }, opts.delay);
610
+ } else if (popper.hasAttribute('data-show')) {
611
+ hide(el);
612
+ }
613
+ });
614
+ }
615
+ tooltips_nodeList.set(el, {
616
+ opts: opts,
617
+ popper: popper,
618
+ popperInstance: null
619
+ });
620
+ },
621
+ updated: function updated(el, binding) {
622
+ if (tooltips_nodeList.get(el)) {
623
+ tooltips_nodeList.get(el).opts = getOpts(binding);
624
+ }
625
+ },
626
+ unmounted: function unmounted(el) {
627
+ hide(el);
628
+ tooltips_nodeList["delete"](el);
629
+ }
630
+ };
631
+ /**
632
+ * 初始化配置
633
+ * @returns tooltips配置
634
+ */
635
+ function initOptions() {
636
+ var defaultOpts = {
637
+ arrow: true,
638
+ disabled: false,
639
+ trigger: 'hover',
640
+ theme: 'dark',
641
+ content: '',
642
+ showOnInit: false,
643
+ placement: 'top',
644
+ distance: 8,
645
+ extCls: '',
646
+ sameWidth: false,
647
+ delay: 0,
648
+ onShow: function onShow() {},
649
+ onHide: function onHide() {}
650
+ };
651
+ return defaultOpts;
652
+ }
653
+ /**
654
+ * 获取配置
655
+ * @returns tooltips配置
656
+ */
657
+ function getOpts(binding) {
658
+ var opts = initOptions();
659
+ if ((0,esm_typeof["default"])(binding.value) === 'object') {
660
+ Object.assign(opts, binding.value);
661
+ } else {
662
+ opts.content = binding.value;
663
+ }
664
+ return opts;
665
+ }
666
+ /**
667
+ * 创建tooltips DOM
668
+ * @param opts
669
+ * @returns
670
+ */
671
+ function renderContext(value, content) {
672
+ if (typeof value === 'string') {
673
+ content.innerText = value;
674
+ } else {
675
+ // 如果 content 是 Vue 组件的实例,则挂载它
676
+ var container = document.createElement('div');
677
+ var vnode = (0,external_vue_.h)(value);
678
+ (0,external_vue_.render)(vnode, container);
679
+ content.innerHTML = container.innerHTML;
680
+ }
681
+ }
682
+ function renderContent(opts) {
683
+ var value = opts.content,
684
+ hasArrow = opts.arrow,
685
+ theme = opts.theme,
686
+ extCls = opts.extCls;
687
+ var isLight = theme === 'light';
688
+ var zIndex = shared_.bkZIndexManager.getPopperIndex();
689
+ var content = document.createElement('div');
690
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
691
+ content.className = "".concat((0,shared_.resolveClassName)('popper', prefix), " ").concat(isLight ? 'light' : 'dark', " ").concat(extCls);
692
+ content.innerText = value;
693
+ content.style.zIndex = String(zIndex);
694
+ renderContext(value, content);
695
+ if (hasArrow) {
696
+ var arrow = renderArrow();
697
+ content.appendChild(arrow);
698
+ }
699
+ return content;
700
+ }
701
+ /**
702
+ * 渲染箭头dom
703
+ * @returns arrow DOM
704
+ */
705
+ function renderArrow() {
706
+ var arrow = document.createElement('div');
707
+ var prefix = document.documentElement.style.getPropertyValue('--bk-prefix') || 'bk';
708
+ arrow.className = (0,shared_.resolveClassName)('popper-arrow', prefix);
709
+ arrow.setAttribute('data-popper-arrow', '');
710
+ return arrow;
711
+ }
712
+ /**
713
+ * 创建popper实例
714
+ * @param el
715
+ * @param popper
716
+ * @returns popper实例
717
+ */
718
+ function createPopperInstance(el, popper) {
719
+ var _nodeList$get = tooltips_nodeList.get(el),
720
+ opts = _nodeList$get.opts;
721
+ var placement = opts.placement,
722
+ distance = opts.distance,
723
+ sameWidth = opts.sameWidth;
724
+ var popperInstance = (0,core_namespaceObject.createPopper)(el, popper, {
725
+ placement: placement,
726
+ modifiers: [{
727
+ name: 'offset',
728
+ options: {
729
+ offset: [0, distance]
730
+ }
731
+ }, {
732
+ name: 'arrow',
733
+ options: {
734
+ padding: 5
735
+ }
736
+ }].concat((0,toConsumableArray["default"])(sameWidth ? [{
737
+ name: 'sameWidth',
738
+ enabled: true,
739
+ phase: 'beforeWrite',
740
+ requires: ['computeStyles'],
741
+ fn: function fn(_ref) {
742
+ var state = _ref.state;
743
+ state.styles.popper.width = "".concat(state.rects.reference.width, "px");
744
+ },
745
+ effect: function effect(_ref2) {
746
+ var state = _ref2.state;
747
+ state.elements.popper.style.overflowWrap = 'break-word';
748
+ state.elements.popper.style.width = "".concat(state.elements.reference.offsetWidth, "px");
749
+ }
750
+ }] : []))
751
+ });
752
+ return popperInstance;
753
+ }
754
+ /**
755
+ * 显示
756
+ * @param el
757
+ */
758
+ function show(el) {
759
+ var _nodeList$get2 = tooltips_nodeList.get(el),
760
+ popper = _nodeList$get2.popper,
761
+ opts = _nodeList$get2.opts;
762
+ var disabled = opts.disabled,
763
+ content = opts.content,
764
+ hasArrow = opts.arrow,
765
+ onShow = opts.onShow,
766
+ boundary = opts.boundary,
767
+ _opts$modifiers = opts.modifiers,
768
+ modifiers = _opts$modifiers === void 0 ? [] : _opts$modifiers;
769
+ if (disabled) return;
770
+ renderContext(content, popper);
771
+ if (hasArrow) {
772
+ var arrow = renderArrow();
773
+ popper.appendChild(arrow);
774
+ }
775
+ var container = document.body;
776
+ if (boundary) {
777
+ if (boundary === 'parent') {
778
+ container = el.parentElement;
779
+ } else if (boundary instanceof HTMLElement) {
780
+ container = boundary;
781
+ }
782
+ }
783
+ container.appendChild(popper);
784
+ var popperInstance = createPopperInstance(el, popper);
785
+ onShow();
786
+ // Make the tooltip visible
787
+ popper.setAttribute('data-show', '');
788
+ // Enable the event listeners
789
+ popperInstance.setOptions(function (options) {
790
+ return _objectSpread(_objectSpread({}, options), {}, {
791
+ modifiers: [].concat((0,toConsumableArray["default"])(options.modifiers), (0,toConsumableArray["default"])(modifiers), [{
792
+ name: 'eventListeners',
793
+ enabled: true
794
+ }])
795
+ });
796
+ });
797
+ // Update its position
798
+ popperInstance.forceUpdate();
799
+ tooltips_nodeList.get(el).popperInstance = popperInstance;
800
+ }
801
+ /**
802
+ * 隐藏
803
+ * @param el
804
+ */
805
+ function hide(el) {
806
+ if (!tooltips_nodeList.get(el)) return;
807
+ var _nodeList$get3 = tooltips_nodeList.get(el),
808
+ popper = _nodeList$get3.popper,
809
+ popperInstance = _nodeList$get3.popperInstance,
810
+ opts = _nodeList$get3.opts;
811
+ var onHide = opts.onHide;
812
+ if (popper && document.body.contains(popper)) {
813
+ var _popper$parentNode;
814
+ popper.removeAttribute('data-show');
815
+ popperInstance === null || popperInstance === void 0 || popperInstance.destroy();
816
+ popper === null || popper === void 0 || (_popper$parentNode = popper.parentNode) === null || _popper$parentNode === void 0 || _popper$parentNode.removeChild(popper);
817
+ onHide();
818
+ }
819
+ }
820
+ /* harmony default export */ const src_tooltips = ((/* unused pure expression or super */ null && (tooltips)));
821
+ ;// external "../loading"
822
+ var external_loading_x = (y) => {
823
+ var x = {}; __webpack_require__.d(x, y); return x
824
+ }
825
+ var external_loading_y = (x) => (() => (x))
826
+ const external_loading_namespaceObject = external_loading_x({ });
827
+ ;// external "../overflow-title"
828
+ var external_overflow_title_x = (y) => {
829
+ var x = {}; __webpack_require__.d(x, y); return x
830
+ }
831
+ var external_overflow_title_y = (x) => (() => (x))
832
+ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
833
+ ;// ../../packages/directives/src/index.ts
834
+ /*
835
+ * Tencent is pleased to support the open source community by making
836
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
837
+ *
838
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
839
+ *
840
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
841
+ *
842
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
843
+ *
844
+ * ---------------------------------------------------
845
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
846
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
847
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
848
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
849
+ *
850
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
851
+ * the Software.
852
+ *
853
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
854
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
855
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
856
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
857
+ * IN THE SOFTWARE.
858
+ */
859
+
860
+
861
+
862
+
863
+
864
+
865
+ // export { createInstance as bkEllipsisInstance } from './ellipsis';
866
+
867
+ /***/ }),
868
+
869
+ /***/ 5022:
870
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
871
+
872
+ /**
873
+ * Copyright (c) 2015, Facebook, Inc.
874
+ * All rights reserved.
875
+ *
876
+ * This source code is licensed under the BSD-style license found in the
877
+ * LICENSE file in the root directory of this source tree. An additional grant
878
+ * of patent rights can be found in the PATENTS file in the same directory.
879
+ *
880
+ * @providesModule normalizeWheel
881
+ * @typechecks
882
+ */
883
+
884
+
885
+
886
+ var UserAgent_DEPRECATED = __webpack_require__(7416);
887
+
888
+ var isEventSupported = __webpack_require__(2586);
889
+
890
+
891
+ // Reasonable defaults
892
+ var PIXEL_STEP = 10;
893
+ var LINE_HEIGHT = 40;
894
+ var PAGE_HEIGHT = 800;
895
+
896
+ /**
897
+ * Mouse wheel (and 2-finger trackpad) support on the web sucks. It is
898
+ * complicated, thus this doc is long and (hopefully) detailed enough to answer
899
+ * your questions.
900
+ *
901
+ * If you need to react to the mouse wheel in a predictable way, this code is
902
+ * like your bestest friend. * hugs *
903
+ *
904
+ * As of today, there are 4 DOM event types you can listen to:
905
+ *
906
+ * 'wheel' -- Chrome(31+), FF(17+), IE(9+)
907
+ * 'mousewheel' -- Chrome, IE(6+), Opera, Safari
908
+ * 'MozMousePixelScroll' -- FF(3.5 only!) (2010-2013) -- don't bother!
909
+ * 'DOMMouseScroll' -- FF(0.9.7+) since 2003
910
+ *
911
+ * So what to do? The is the best:
912
+ *
913
+ * normalizeWheel.getEventType();
914
+ *
915
+ * In your event callback, use this code to get sane interpretation of the
916
+ * deltas. This code will return an object with properties:
917
+ *
918
+ * spinX -- normalized spin speed (use for zoom) - x plane
919
+ * spinY -- " - y plane
920
+ * pixelX -- normalized distance (to pixels) - x plane
921
+ * pixelY -- " - y plane
922
+ *
923
+ * Wheel values are provided by the browser assuming you are using the wheel to
924
+ * scroll a web page by a number of lines or pixels (or pages). Values can vary
925
+ * significantly on different platforms and browsers, forgetting that you can
926
+ * scroll at different speeds. Some devices (like trackpads) emit more events
927
+ * at smaller increments with fine granularity, and some emit massive jumps with
928
+ * linear speed or acceleration.
929
+ *
930
+ * This code does its best to normalize the deltas for you:
931
+ *
932
+ * - spin is trying to normalize how far the wheel was spun (or trackpad
933
+ * dragged). This is super useful for zoom support where you want to
934
+ * throw away the chunky scroll steps on the PC and make those equal to
935
+ * the slow and smooth tiny steps on the Mac. Key data: This code tries to
936
+ * resolve a single slow step on a wheel to 1.
937
+ *
938
+ * - pixel is normalizing the desired scroll delta in pixel units. You'll
939
+ * get the crazy differences between browsers, but at least it'll be in
940
+ * pixels!
941
+ *
942
+ * - positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This
943
+ * should translate to positive value zooming IN, negative zooming OUT.
944
+ * This matches the newer 'wheel' event.
945
+ *
946
+ * Why are there spinX, spinY (or pixels)?
947
+ *
948
+ * - spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
949
+ * with a mouse. It results in side-scrolling in the browser by default.
950
+ *
951
+ * - spinY is what you expect -- it's the classic axis of a mouse wheel.
952
+ *
953
+ * - I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and
954
+ * probably is by browsers in conjunction with fancy 3D controllers .. but
955
+ * you know.
956
+ *
957
+ * Implementation info:
958
+ *
959
+ * Examples of 'wheel' event if you scroll slowly (down) by one step with an
960
+ * average mouse:
961
+ *
962
+ * OS X + Chrome (mouse) - 4 pixel delta (wheelDelta -120)
963
+ * OS X + Safari (mouse) - N/A pixel delta (wheelDelta -12)
964
+ * OS X + Firefox (mouse) - 0.1 line delta (wheelDelta N/A)
965
+ * Win8 + Chrome (mouse) - 100 pixel delta (wheelDelta -120)
966
+ * Win8 + Firefox (mouse) - 3 line delta (wheelDelta -120)
967
+ *
968
+ * On the trackpad:
969
+ *
970
+ * OS X + Chrome (trackpad) - 2 pixel delta (wheelDelta -6)
971
+ * OS X + Firefox (trackpad) - 1 pixel delta (wheelDelta N/A)
972
+ *
973
+ * On other/older browsers.. it's more complicated as there can be multiple and
974
+ * also missing delta values.
975
+ *
976
+ * The 'wheel' event is more standard:
977
+ *
978
+ * http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents
979
+ *
980
+ * The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
981
+ * deltaX, deltaY and deltaZ. Some browsers provide other values to maintain
982
+ * backward compatibility with older events. Those other values help us
983
+ * better normalize spin speed. Example of what the browsers provide:
984
+ *
985
+ * | event.wheelDelta | event.detail
986
+ * ------------------+------------------+--------------
987
+ * Safari v5/OS X | -120 | 0
988
+ * Safari v5/Win7 | -120 | 0
989
+ * Chrome v17/OS X | -120 | 0
990
+ * Chrome v17/Win7 | -120 | 0
991
+ * IE9/Win7 | -120 | undefined
992
+ * Firefox v4/OS X | undefined | 1
993
+ * Firefox v4/Win7 | undefined | 3
994
+ *
995
+ */
996
+ function normalizeWheel(/*object*/ event) /*object*/ {
997
+ var sX = 0, sY = 0, // spinX, spinY
998
+ pX = 0, pY = 0; // pixelX, pixelY
999
+
1000
+ // Legacy
1001
+ if ('detail' in event) { sY = event.detail; }
1002
+ if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; }
1003
+ if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; }
1004
+ if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; }
1005
+
1006
+ // side scrolling on FF with DOMMouseScroll
1007
+ if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {
1008
+ sX = sY;
1009
+ sY = 0;
1010
+ }
1011
+
1012
+ pX = sX * PIXEL_STEP;
1013
+ pY = sY * PIXEL_STEP;
1014
+
1015
+ if ('deltaY' in event) { pY = event.deltaY; }
1016
+ if ('deltaX' in event) { pX = event.deltaX; }
1017
+
1018
+ if ((pX || pY) && event.deltaMode) {
1019
+ if (event.deltaMode == 1) { // delta in LINE units
1020
+ pX *= LINE_HEIGHT;
1021
+ pY *= LINE_HEIGHT;
1022
+ } else { // delta in PAGE units
1023
+ pX *= PAGE_HEIGHT;
1024
+ pY *= PAGE_HEIGHT;
1025
+ }
1026
+ }
1027
+
1028
+ // Fall-back if spin cannot be determined
1029
+ if (pX && !sX) { sX = (pX < 1) ? -1 : 1; }
1030
+ if (pY && !sY) { sY = (pY < 1) ? -1 : 1; }
1031
+
1032
+ return { spinX : sX,
1033
+ spinY : sY,
1034
+ pixelX : pX,
1035
+ pixelY : pY };
1036
+ }
1037
+
1038
+
1039
+ /**
1040
+ * The best combination if you prefer spinX + spinY normalization. It favors
1041
+ * the older DOMMouseScroll for Firefox, as FF does not include wheelDelta with
1042
+ * 'wheel' event, making spin speed determination impossible.
1043
+ */
1044
+ normalizeWheel.getEventType = function() /*string*/ {
1045
+ return (UserAgent_DEPRECATED.firefox())
1046
+ ? 'DOMMouseScroll'
1047
+ : (isEventSupported('wheel'))
1048
+ ? 'wheel'
1049
+ : 'mousewheel';
1050
+ };
1051
+
1052
+ module.exports = normalizeWheel;
1053
+
1054
+
1055
+ /***/ }),
1056
+
1057
+ /***/ 5153:
1058
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1059
+
1060
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1061
+ /* harmony export */ "default": () => (/* binding */ _toConsumableArray)
1062
+ /* harmony export */ });
1063
+ /* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3492);
1064
+ /* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4430);
1065
+ /* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7985);
1066
+ /* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2880);
1067
+
1068
+
1069
+
1070
+
1071
+ function _toConsumableArray(arr) {
1072
+ 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"])();
1073
+ }
1074
+
1075
+ /***/ }),
1076
+
1077
+ /***/ 5166:
1078
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1079
+
1080
+ var x = (y) => {
1081
+ var x = {}; __webpack_require__.d(x, y); return x
1082
+ }
1083
+ var y = (x) => (() => (x))
1084
+ 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), ["resolveClassName"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.resolveClassName), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
1085
+
1086
+ /***/ }),
1087
+
1088
+ /***/ 5286:
1089
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1090
+
1091
+ var x = (y) => {
1092
+ var x = {}; __webpack_require__.d(x, y); return x
1093
+ }
1094
+ var y = (x) => (() => (x))
1095
+ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Fragment), ["Transition"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.Transition), ["computed"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.computed), ["createVNode"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.createVNode), ["defineComponent"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.defineComponent), ["h"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.h), ["nextTick"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.nextTick), ["onBeforeMount"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount), ["reactive"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.reactive), ["ref"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.ref), ["render"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.render), ["resolveDirective"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective), ["vShow"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.vShow), ["watch"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.watch), ["withDirectives"]: () => (__WEBPACK_EXTERNAL_MODULE_vue__.withDirectives) });
1096
+
1097
+ /***/ }),
1098
+
1099
+ /***/ 6284:
1100
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1101
+
1102
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1103
+ /* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
1104
+ /* harmony export */ });
1105
+ function _arrayLikeToArray(arr, len) {
1106
+ if (len == null || len > arr.length) len = arr.length;
1107
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1108
+ return arr2;
1109
+ }
1110
+
1111
+ /***/ }),
1112
+
1113
+ /***/ 7416:
1114
+ /***/ ((module) => {
1115
+
1116
+ /**
1117
+ * Copyright 2004-present Facebook. All Rights Reserved.
1118
+ *
1119
+ * @providesModule UserAgent_DEPRECATED
1120
+ */
1121
+
1122
+ /**
1123
+ * Provides entirely client-side User Agent and OS detection. You should prefer
1124
+ * the non-deprecated UserAgent module when possible, which exposes our
1125
+ * authoritative server-side PHP-based detection to the client.
1126
+ *
1127
+ * Usage is straightforward:
1128
+ *
1129
+ * if (UserAgent_DEPRECATED.ie()) {
1130
+ * // IE
1131
+ * }
1132
+ *
1133
+ * You can also do version checks:
1134
+ *
1135
+ * if (UserAgent_DEPRECATED.ie() >= 7) {
1136
+ * // IE7 or better
1137
+ * }
1138
+ *
1139
+ * The browser functions will return NaN if the browser does not match, so
1140
+ * you can also do version compares the other way:
1141
+ *
1142
+ * if (UserAgent_DEPRECATED.ie() < 7) {
1143
+ * // IE6 or worse
1144
+ * }
1145
+ *
1146
+ * Note that the version is a float and may include a minor version number,
1147
+ * so you should always use range operators to perform comparisons, not
1148
+ * strict equality.
1149
+ *
1150
+ * **Note:** You should **strongly** prefer capability detection to browser
1151
+ * version detection where it's reasonable:
1152
+ *
1153
+ * http://www.quirksmode.org/js/support.html
1154
+ *
1155
+ * Further, we have a large number of mature wrapper functions and classes
1156
+ * which abstract away many browser irregularities. Check the documentation,
1157
+ * grep for things, or ask on javascript@lists.facebook.com before writing yet
1158
+ * another copy of "event || window.event".
1159
+ *
1160
+ */
1161
+
1162
+ var _populated = false;
1163
+
1164
+ // Browsers
1165
+ var _ie, _firefox, _opera, _webkit, _chrome;
1166
+
1167
+ // Actual IE browser for compatibility mode
1168
+ var _ie_real_version;
1169
+
1170
+ // Platforms
1171
+ var _osx, _windows, _linux, _android;
1172
+
1173
+ // Architectures
1174
+ var _win64;
1175
+
1176
+ // Devices
1177
+ var _iphone, _ipad, _native;
1178
+
1179
+ var _mobile;
1180
+
1181
+ function _populate() {
1182
+ if (_populated) {
1183
+ return;
1184
+ }
1185
+
1186
+ _populated = true;
1187
+
1188
+ // To work around buggy JS libraries that can't handle multi-digit
1189
+ // version numbers, Opera 10's user agent string claims it's Opera
1190
+ // 9, then later includes a Version/X.Y field:
1191
+ //
1192
+ // Opera/9.80 (foo) Presto/2.2.15 Version/10.10
1193
+ var uas = navigator.userAgent;
1194
+ 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);
1195
+ var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas);
1196
+
1197
+ _iphone = /\b(iPhone|iP[ao]d)/.exec(uas);
1198
+ _ipad = /\b(iP[ao]d)/.exec(uas);
1199
+ _android = /Android/i.exec(uas);
1200
+ _native = /FBAN\/\w+;/i.exec(uas);
1201
+ _mobile = /Mobile/i.exec(uas);
1202
+
1203
+ // Note that the IE team blog would have you believe you should be checking
1204
+ // for 'Win64; x64'. But MSDN then reveals that you can actually be coming
1205
+ // from either x64 or ia64; so ultimately, you should just check for Win64
1206
+ // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit
1207
+ // Windows will send 'WOW64' instead.
1208
+ _win64 = !!(/Win64/.exec(uas));
1209
+
1210
+ if (agent) {
1211
+ _ie = agent[1] ? parseFloat(agent[1]) : (
1212
+ agent[5] ? parseFloat(agent[5]) : NaN);
1213
+ // IE compatibility mode
1214
+ if (_ie && document && document.documentMode) {
1215
+ _ie = document.documentMode;
1216
+ }
1217
+ // grab the "true" ie version from the trident token if available
1218
+ var trident = /(?:Trident\/(\d+.\d+))/.exec(uas);
1219
+ _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie;
1220
+
1221
+ _firefox = agent[2] ? parseFloat(agent[2]) : NaN;
1222
+ _opera = agent[3] ? parseFloat(agent[3]) : NaN;
1223
+ _webkit = agent[4] ? parseFloat(agent[4]) : NaN;
1224
+ if (_webkit) {
1225
+ // We do not add the regexp to the above test, because it will always
1226
+ // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in
1227
+ // the userAgent string.
1228
+ agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas);
1229
+ _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN;
1230
+ } else {
1231
+ _chrome = NaN;
1232
+ }
1233
+ } else {
1234
+ _ie = _firefox = _opera = _chrome = _webkit = NaN;
1235
+ }
1236
+
1237
+ if (os) {
1238
+ if (os[1]) {
1239
+ // Detect OS X version. If no version number matches, set _osx to true.
1240
+ // Version examples: 10, 10_6_1, 10.7
1241
+ // Parses version number as a float, taking only first two sets of
1242
+ // digits. If only one set of digits is found, returns just the major
1243
+ // version number.
1244
+ var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas);
1245
+
1246
+ _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true;
1247
+ } else {
1248
+ _osx = false;
1249
+ }
1250
+ _windows = !!os[2];
1251
+ _linux = !!os[3];
1252
+ } else {
1253
+ _osx = _windows = _linux = false;
1254
+ }
1255
+ }
1256
+
1257
+ var UserAgent_DEPRECATED = {
1258
+
1259
+ /**
1260
+ * Check if the UA is Internet Explorer.
1261
+ *
1262
+ *
1263
+ * @return float|NaN Version number (if match) or NaN.
1264
+ */
1265
+ ie: function() {
1266
+ return _populate() || _ie;
1267
+ },
1268
+
1269
+ /**
1270
+ * Check if we're in Internet Explorer compatibility mode.
1271
+ *
1272
+ * @return bool true if in compatibility mode, false if
1273
+ * not compatibility mode or not ie
1274
+ */
1275
+ ieCompatibilityMode: function() {
1276
+ return _populate() || (_ie_real_version > _ie);
1277
+ },
1278
+
1279
+
1280
+ /**
1281
+ * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we
1282
+ * only need this because Skype can't handle 64-bit IE yet. We need to remove
1283
+ * this when we don't need it -- tracked by #601957.
1284
+ */
1285
+ ie64: function() {
1286
+ return UserAgent_DEPRECATED.ie() && _win64;
1287
+ },
1288
+
1289
+ /**
1290
+ * Check if the UA is Firefox.
1291
+ *
1292
+ *
1293
+ * @return float|NaN Version number (if match) or NaN.
1294
+ */
1295
+ firefox: function() {
1296
+ return _populate() || _firefox;
1297
+ },
1298
+
1299
+
1300
+ /**
1301
+ * Check if the UA is Opera.
1302
+ *
1303
+ *
1304
+ * @return float|NaN Version number (if match) or NaN.
1305
+ */
1306
+ opera: function() {
1307
+ return _populate() || _opera;
1308
+ },
1309
+
1310
+
1311
+ /**
1312
+ * Check if the UA is WebKit.
1313
+ *
1314
+ *
1315
+ * @return float|NaN Version number (if match) or NaN.
1316
+ */
1317
+ webkit: function() {
1318
+ return _populate() || _webkit;
1319
+ },
1320
+
1321
+ /**
1322
+ * For Push
1323
+ * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit
1324
+ */
1325
+ safari: function() {
1326
+ return UserAgent_DEPRECATED.webkit();
1327
+ },
1328
+
1329
+ /**
1330
+ * Check if the UA is a Chrome browser.
1331
+ *
1332
+ *
1333
+ * @return float|NaN Version number (if match) or NaN.
1334
+ */
1335
+ chrome : function() {
1336
+ return _populate() || _chrome;
1337
+ },
1338
+
1339
+
1340
+ /**
1341
+ * Check if the user is running Windows.
1342
+ *
1343
+ * @return bool `true' if the user's OS is Windows.
1344
+ */
1345
+ windows: function() {
1346
+ return _populate() || _windows;
1347
+ },
1348
+
1349
+
1350
+ /**
1351
+ * Check if the user is running Mac OS X.
1352
+ *
1353
+ * @return float|bool Returns a float if a version number is detected,
1354
+ * otherwise true/false.
1355
+ */
1356
+ osx: function() {
1357
+ return _populate() || _osx;
1358
+ },
1359
+
1360
+ /**
1361
+ * Check if the user is running Linux.
1362
+ *
1363
+ * @return bool `true' if the user's OS is some flavor of Linux.
1364
+ */
1365
+ linux: function() {
1366
+ return _populate() || _linux;
1367
+ },
1368
+
1369
+ /**
1370
+ * Check if the user is running on an iPhone or iPod platform.
1371
+ *
1372
+ * @return bool `true' if the user is running some flavor of the
1373
+ * iPhone OS.
1374
+ */
1375
+ iphone: function() {
1376
+ return _populate() || _iphone;
1377
+ },
1378
+
1379
+ mobile: function() {
1380
+ return _populate() || (_iphone || _ipad || _android || _mobile);
1381
+ },
1382
+
1383
+ nativeApp: function() {
1384
+ // webviews inside of the native apps
1385
+ return _populate() || _native;
1386
+ },
1387
+
1388
+ android: function() {
1389
+ return _populate() || _android;
1390
+ },
1391
+
1392
+ ipad: function() {
1393
+ return _populate() || _ipad;
1394
+ }
1395
+ };
1396
+
1397
+ module.exports = UserAgent_DEPRECATED;
1398
+
1399
+
1400
+ /***/ }),
1401
+
1402
+ /***/ 7545:
1403
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1404
+
1405
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1406
+ /* harmony export */ "default": () => (/* binding */ _typeof)
1407
+ /* harmony export */ });
1408
+ function _typeof(o) {
1409
+ "@babel/helpers - typeof";
1410
+
1411
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
1412
+ return typeof o;
1413
+ } : function (o) {
1414
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1415
+ }, _typeof(o);
1416
+ }
1417
+
1418
+ /***/ }),
1419
+
1420
+ /***/ 7985:
1421
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1422
+
1423
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1424
+ /* harmony export */ "default": () => (/* binding */ _unsupportedIterableToArray)
1425
+ /* harmony export */ });
1426
+ /* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6284);
1427
+
1428
+ function _unsupportedIterableToArray(o, minLen) {
1429
+ if (!o) return;
1430
+ if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1431
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1432
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1433
+ if (n === "Map" || n === "Set") return Array.from(o);
1434
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
1435
+ }
1436
+
1437
+ /***/ }),
1438
+
1439
+ /***/ 8283:
1440
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1441
+
1442
+ module.exports = __webpack_require__(5022);
1443
+
1444
+
1445
+ /***/ }),
1446
+
1447
+ /***/ 9824:
1448
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1449
+
1450
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1451
+ /* harmony export */ "default": () => (/* binding */ toPrimitive)
1452
+ /* harmony export */ });
1453
+ /* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7545);
1454
+
1455
+ function toPrimitive(t, r) {
1456
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
1457
+ var e = t[Symbol.toPrimitive];
1458
+ if (void 0 !== e) {
1459
+ var i = e.call(t, r || "default");
1460
+ if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
1461
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1462
+ }
1463
+ return ("string" === r ? String : Number)(t);
1464
+ }
1465
+
1466
+ /***/ })
1467
+
1468
+ /******/ });
1469
+ /************************************************************************/
1470
+ /******/ // The module cache
1471
+ /******/ var __webpack_module_cache__ = {};
1472
+ /******/
1473
+ /******/ // The require function
1474
+ /******/ function __webpack_require__(moduleId) {
1475
+ /******/ // Check if module is in cache
1476
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1477
+ /******/ if (cachedModule !== undefined) {
1478
+ /******/ return cachedModule.exports;
1479
+ /******/ }
1480
+ /******/ // Create a new module (and put it into the cache)
1481
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1482
+ /******/ // no module.id needed
1483
+ /******/ // no module.loaded needed
1484
+ /******/ exports: {}
1485
+ /******/ };
1486
+ /******/
1487
+ /******/ // Execute the module function
1488
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1489
+ /******/
1490
+ /******/ // Return the exports of the module
1491
+ /******/ return module.exports;
1492
+ /******/ }
12
1493
  /******/
13
1494
  /************************************************************************/
1495
+ /******/ /* webpack/runtime/compat get default export */
1496
+ /******/ (() => {
1497
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1498
+ /******/ __webpack_require__.n = (module) => {
1499
+ /******/ var getter = module && module.__esModule ?
1500
+ /******/ () => (module['default']) :
1501
+ /******/ () => (module);
1502
+ /******/ __webpack_require__.d(getter, { a: getter });
1503
+ /******/ return getter;
1504
+ /******/ };
1505
+ /******/ })();
1506
+ /******/
14
1507
  /******/ /* webpack/runtime/define property getters */
15
1508
  /******/ (() => {
16
1509
  /******/ // define getter functions for harmony exports
@@ -33,92 +1526,51 @@ var __webpack_exports__ = {};
33
1526
 
34
1527
  // EXPORTS
35
1528
  __webpack_require__.d(__webpack_exports__, {
36
- "default": () => (/* binding */ src)
1529
+ "default": () => (/* binding */ color_picker_src)
37
1530
  });
38
1531
 
39
- ;// CONCATENATED MODULE: external "../shared"
40
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
- var y = x => () => x
42
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
43
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
44
- function _typeof(o) {
45
- "@babel/helpers - typeof";
46
-
47
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
48
- return typeof o;
49
- } : function (o) {
50
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
51
- }, _typeof(o);
52
- }
53
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
54
-
55
- function toPrimitive(t, r) {
56
- if ("object" != _typeof(t) || !t) return t;
57
- var e = t[Symbol.toPrimitive];
58
- if (void 0 !== e) {
59
- var i = e.call(t, r || "default");
60
- if ("object" != _typeof(i)) return i;
61
- throw new TypeError("@@toPrimitive must return a primitive value.");
62
- }
63
- return ("string" === r ? String : Number)(t);
64
- }
65
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
66
-
67
-
68
- function toPropertyKey(t) {
69
- var i = toPrimitive(t, "string");
70
- return "symbol" == _typeof(i) ? i : String(i);
71
- }
72
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
73
-
74
- function _defineProperty(obj, key, value) {
75
- key = toPropertyKey(key);
76
- if (key in obj) {
77
- Object.defineProperty(obj, key, {
78
- value: value,
79
- enumerable: true,
80
- configurable: true,
81
- writable: true
82
- });
83
- } else {
84
- obj[key] = value;
85
- }
86
- return obj;
87
- }
88
- ;// CONCATENATED MODULE: external "vue"
89
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
90
- var external_vue_y = x => () => x
91
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
92
- ;// CONCATENATED MODULE: external "vue-types"
93
- var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
94
- var external_vue_types_y = x => () => x
95
- const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
96
- ;// CONCATENATED MODULE: external "../config-provider"
97
- var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
98
- var config_provider_y = x => () => x
99
- const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
100
- ;// CONCATENATED MODULE: external "../date-picker"
101
- var date_picker_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
102
- var date_picker_y = x => () => x
103
- const date_picker_namespaceObject = date_picker_x({ ["PickerDropdown"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__.PickerDropdown });
104
- ;// CONCATENATED MODULE: external "../directives"
105
- var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
106
- var directives_y = x => () => x
107
- const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
108
- ;// CONCATENATED MODULE: external "../icon"
109
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
110
- var icon_y = x => () => x
111
- const icon_namespaceObject = icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp });
112
- ;// CONCATENATED MODULE: ../../node_modules/tinycolor2/esm/tinycolor.js
1532
+ // EXTERNAL MODULE: external "../shared"
1533
+ var shared_ = __webpack_require__(5166);
1534
+ // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
1535
+ var defineProperty = __webpack_require__(4586);
1536
+ // EXTERNAL MODULE: external "vue"
1537
+ var external_vue_ = __webpack_require__(5286);
1538
+ ;// external "vue-types"
1539
+ var x = (y) => {
1540
+ var x = {}; __webpack_require__.d(x, y); return x
1541
+ }
1542
+ var y = (x) => (() => (x))
1543
+ const external_vue_types_namespaceObject = x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
1544
+ ;// external "../config-provider"
1545
+ var config_provider_x = (y) => {
1546
+ var x = {}; __webpack_require__.d(x, y); return x
1547
+ }
1548
+ var config_provider_y = (x) => (() => (x))
1549
+ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
1550
+ ;// external "../date-picker"
1551
+ var date_picker_x = (y) => {
1552
+ var x = {}; __webpack_require__.d(x, y); return x
1553
+ }
1554
+ var date_picker_y = (x) => (() => (x))
1555
+ const date_picker_namespaceObject = date_picker_x({ ["PickerDropdown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__.PickerDropdown) });
1556
+ // EXTERNAL MODULE: ../../packages/directives/src/index.ts + 8 modules
1557
+ var src = __webpack_require__(4923);
1558
+ ;// external "../icon"
1559
+ var icon_x = (y) => {
1560
+ var x = {}; __webpack_require__.d(x, y); return x
1561
+ }
1562
+ var icon_y = (x) => (() => (x))
1563
+ const icon_namespaceObject = icon_x({ ["AngleUp"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp) });
1564
+ ;// ../../node_modules/tinycolor2/esm/tinycolor.js
113
1565
  // This file is autogenerated. It's used to publish ESM to npm.
114
- function tinycolor_typeof(obj) {
1566
+ function _typeof(obj) {
115
1567
  "@babel/helpers - typeof";
116
1568
 
117
- return tinycolor_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1569
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
118
1570
  return typeof obj;
119
1571
  } : function (obj) {
120
1572
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
121
- }, tinycolor_typeof(obj);
1573
+ }, _typeof(obj);
122
1574
  }
123
1575
 
124
1576
  // https://github.com/bgrins/TinyColor
@@ -382,7 +1834,7 @@ tinycolor.prototype = {
382
1834
  // If input is an object, force 1 into "1.0" to handle ratios properly
383
1835
  // String input requires "1.0" as input, so 1 will be treated as 1
384
1836
  tinycolor.fromRatio = function (color, opts) {
385
- if (tinycolor_typeof(color) == "object") {
1837
+ if (_typeof(color) == "object") {
386
1838
  var newColor = {};
387
1839
  for (var i in color) {
388
1840
  if (color.hasOwnProperty(i)) {
@@ -428,7 +1880,7 @@ function inputToRGB(color) {
428
1880
  if (typeof color == "string") {
429
1881
  color = stringInputToObject(color);
430
1882
  }
431
- if (tinycolor_typeof(color) == "object") {
1883
+ if (_typeof(color) == "object") {
432
1884
  if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
433
1885
  rgb = rgbToRgb(color.r, color.g, color.b);
434
1886
  ok = true;
@@ -1291,7 +2743,7 @@ function validateWCAG2Parms(parms) {
1291
2743
 
1292
2744
 
1293
2745
 
1294
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/input-container.tsx
2746
+ ;// ../../packages/color-picker/src/components/input-container.tsx
1295
2747
 
1296
2748
  /*
1297
2749
  * Tencent is pleased to support the open source community by making
@@ -1322,9 +2774,9 @@ function validateWCAG2Parms(parms) {
1322
2774
 
1323
2775
 
1324
2776
  var inputContainerProps = {
1325
- info: shared_namespaceObject.PropTypes.object.isRequired
2777
+ info: shared_.PropTypes.object.isRequired
1326
2778
  };
1327
- /* harmony default export */ const input_container = ((0,external_vue_namespaceObject.defineComponent)({
2779
+ /* harmony default export */ const input_container = ((0,external_vue_.defineComponent)({
1328
2780
  props: inputContainerProps,
1329
2781
  emits: ['tab', 'input'],
1330
2782
  setup: function setup(props, _ref) {
@@ -1341,27 +2793,27 @@ var inputContainerProps = {
1341
2793
  };
1342
2794
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1343
2795
  resolveClassName = _usePrefix.resolveClassName;
1344
- var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
1345
- return (0,shared_namespaceObject.classes)({
2796
+ var colorPickerCls = (0,external_vue_.computed)(function () {
2797
+ return (0,shared_.classes)({
1346
2798
  error: props.info.error
1347
2799
  }, "".concat(resolveClassName('color-picker-input-value')));
1348
2800
  });
1349
2801
  return function () {
1350
- return (0,external_vue_namespaceObject.createVNode)("div", {
2802
+ return (0,external_vue_.createVNode)("div", {
1351
2803
  "class": "".concat(resolveClassName('color-picker-input-part'))
1352
- }, [(0,external_vue_namespaceObject.createVNode)("input", {
2804
+ }, [(0,external_vue_.createVNode)("input", {
1353
2805
  "class": colorPickerCls.value,
1354
2806
  "type": props.info.name === 'HEX' ? 'text' : 'number',
1355
2807
  "value": props.info.value,
1356
2808
  "onInput": handleInput,
1357
2809
  "onKeydown": handleTab
1358
- }, null), (0,external_vue_namespaceObject.createVNode)("span", {
2810
+ }, null), (0,external_vue_.createVNode)("span", {
1359
2811
  "class": "".concat(resolveClassName('color-picker-input-text'))
1360
2812
  }, [props.info.name])]);
1361
2813
  };
1362
2814
  }
1363
2815
  }));
1364
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/color-input.tsx
2816
+ ;// ../../packages/color-picker/src/components/color-input.tsx
1365
2817
 
1366
2818
  /*
1367
2819
  * Tencent is pleased to support the open source community by making
@@ -1394,45 +2846,45 @@ var inputContainerProps = {
1394
2846
 
1395
2847
 
1396
2848
  var colorPickerProps = {
1397
- colorObj: shared_namespaceObject.PropTypes.object.isRequired
2849
+ colorObj: shared_.PropTypes.object.isRequired
1398
2850
  };
1399
- /* harmony default export */ const color_input = ((0,external_vue_namespaceObject.defineComponent)({
2851
+ /* harmony default export */ const color_input = ((0,external_vue_.defineComponent)({
1400
2852
  name: 'ColorPicker',
1401
2853
  props: colorPickerProps,
1402
2854
  emits: ['change', 'tab'],
1403
2855
  setup: function setup(props, _ref) {
1404
2856
  var emit = _ref.emit;
1405
- var hex = (0,external_vue_namespaceObject.reactive)({
2857
+ var hex = (0,external_vue_.reactive)({
1406
2858
  key: 'hex',
1407
2859
  name: 'HEX',
1408
2860
  value: props.colorObj.hex,
1409
2861
  error: false
1410
2862
  });
1411
- var r = (0,external_vue_namespaceObject.reactive)({
2863
+ var r = (0,external_vue_.reactive)({
1412
2864
  key: 'r',
1413
2865
  name: 'R',
1414
2866
  value: props.colorObj.rgba.r.toString(),
1415
2867
  error: false
1416
2868
  });
1417
- var g = (0,external_vue_namespaceObject.reactive)({
2869
+ var g = (0,external_vue_.reactive)({
1418
2870
  key: 'g',
1419
2871
  name: 'G',
1420
2872
  value: props.colorObj.rgba.g.toString(),
1421
2873
  error: false
1422
2874
  });
1423
- var b = (0,external_vue_namespaceObject.reactive)({
2875
+ var b = (0,external_vue_.reactive)({
1424
2876
  key: 'b',
1425
2877
  name: 'B',
1426
2878
  value: props.colorObj.rgba.b.toString(),
1427
2879
  error: false
1428
2880
  });
1429
- var a = (0,external_vue_namespaceObject.reactive)({
2881
+ var a = (0,external_vue_.reactive)({
1430
2882
  key: 'a',
1431
2883
  name: 'Alpha',
1432
2884
  value: props.colorObj.rgba.a.toString(),
1433
2885
  error: false
1434
2886
  });
1435
- (0,external_vue_namespaceObject.watch)(function () {
2887
+ (0,external_vue_.watch)(function () {
1436
2888
  return props.colorObj;
1437
2889
  }, function (val) {
1438
2890
  if (tinycolor(val.hex).toString() !== tinycolor(hex.value).toString()) {
@@ -1504,25 +2956,25 @@ var colorPickerProps = {
1504
2956
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1505
2957
  resolveClassName = _usePrefix.resolveClassName;
1506
2958
  return function () {
1507
- return (0,external_vue_namespaceObject.createVNode)("div", {
2959
+ return (0,external_vue_.createVNode)("div", {
1508
2960
  "class": "".concat(resolveClassName('color-picker-input'))
1509
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
2961
+ }, [(0,external_vue_.createVNode)("div", {
1510
2962
  "class": "".concat(resolveClassName('color-picker-input-hex'))
1511
- }, [(0,external_vue_namespaceObject.createVNode)(input_container, {
2963
+ }, [(0,external_vue_.createVNode)(input_container, {
1512
2964
  "info": hex,
1513
2965
  "onInput": handleInput
1514
- }, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
2966
+ }, null)]), (0,external_vue_.createVNode)("div", {
1515
2967
  "class": "".concat(resolveClassName('color-picker-input-rgba'))
1516
- }, [(0,external_vue_namespaceObject.createVNode)(input_container, {
2968
+ }, [(0,external_vue_.createVNode)(input_container, {
1517
2969
  "info": r,
1518
2970
  "onInput": handleInput
1519
- }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
2971
+ }, null), (0,external_vue_.createVNode)(input_container, {
1520
2972
  "info": g,
1521
2973
  "onInput": handleInput
1522
- }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
2974
+ }, null), (0,external_vue_.createVNode)(input_container, {
1523
2975
  "info": b,
1524
2976
  "onInput": handleInput
1525
- }, null), (0,external_vue_namespaceObject.createVNode)(input_container, {
2977
+ }, null), (0,external_vue_.createVNode)(input_container, {
1526
2978
  "info": a,
1527
2979
  "onInput": handleInput,
1528
2980
  "onTab": handleAlphaTab
@@ -1530,7 +2982,7 @@ var colorPickerProps = {
1530
2982
  };
1531
2983
  }
1532
2984
  }));
1533
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/utils.ts
2985
+ ;// ../../packages/color-picker/src/utils.ts
1534
2986
  /*
1535
2987
  * Tencent is pleased to support the open source community by making
1536
2988
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -1636,7 +3088,7 @@ var toRGBAString = function toRGBAString(rgba) {
1636
3088
  a = rgba.a;
1637
3089
  return "rgba(".concat([r, g, b, a].join(','), ")");
1638
3090
  };
1639
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/hue-slider.tsx
3091
+ ;// ../../packages/color-picker/src/components/hue-slider.tsx
1640
3092
 
1641
3093
  /*
1642
3094
  * Tencent is pleased to support the open source community by making
@@ -1668,16 +3120,16 @@ var toRGBAString = function toRGBAString(rgba) {
1668
3120
 
1669
3121
 
1670
3122
  var hue_slider_colorPickerProps = {
1671
- colorObj: shared_namespaceObject.PropTypes.object.isRequired
3123
+ colorObj: shared_.PropTypes.object.isRequired
1672
3124
  };
1673
- /* harmony default export */ const hue_slider = ((0,external_vue_namespaceObject.defineComponent)({
3125
+ /* harmony default export */ const hue_slider = ((0,external_vue_.defineComponent)({
1674
3126
  name: 'ColorPicker',
1675
3127
  props: hue_slider_colorPickerProps,
1676
3128
  emits: ['change'],
1677
3129
  setup: function setup(props, _ref) {
1678
3130
  var emit = _ref.emit;
1679
- var containerRef = (0,external_vue_namespaceObject.ref)(null);
1680
- var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
3131
+ var containerRef = (0,external_vue_.ref)(null);
3132
+ var pointerStyle = (0,external_vue_.computed)(function () {
1681
3133
  return {
1682
3134
  left: "".concat(props.colorObj.hsv.h / 360 * 100, "%")
1683
3135
  };
@@ -1755,7 +3207,7 @@ var hue_slider_colorPickerProps = {
1755
3207
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1756
3208
  resolveClassName = _usePrefix.resolveClassName;
1757
3209
  return function () {
1758
- return (0,external_vue_namespaceObject.createVNode)("div", {
3210
+ return (0,external_vue_.createVNode)("div", {
1759
3211
  "ref": containerRef,
1760
3212
  "class": "".concat(resolveClassName('color-picker-hue')),
1761
3213
  "tabindex": "0",
@@ -1765,16 +3217,16 @@ var hue_slider_colorPickerProps = {
1765
3217
  e.preventDefault();
1766
3218
  handleMouseDown(e);
1767
3219
  }
1768
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3220
+ }, [(0,external_vue_.createVNode)("div", {
1769
3221
  "style": pointerStyle.value,
1770
3222
  "class": "".concat(resolveClassName('color-picker-hue-pointer'))
1771
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3223
+ }, [(0,external_vue_.createVNode)("div", {
1772
3224
  "class": "".concat(resolveClassName('color-picker-hue-rectangle'))
1773
3225
  }, null)])]);
1774
3226
  };
1775
3227
  }
1776
3228
  }));
1777
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/recommend-colors.tsx
3229
+ ;// ../../packages/color-picker/src/components/recommend-colors.tsx
1778
3230
 
1779
3231
 
1780
3232
  /*
@@ -1808,21 +3260,21 @@ var hue_slider_colorPickerProps = {
1808
3260
 
1809
3261
 
1810
3262
  var recommend_colors_colorPickerProps = {
1811
- colorObj: shared_namespaceObject.PropTypes.object.isRequired,
1812
- recommend: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.array.def(function () {
3263
+ colorObj: shared_.PropTypes.object.isRequired,
3264
+ recommend: shared_.PropTypes.oneOfType([shared_.PropTypes.array.def(function () {
1813
3265
  return [];
1814
- }), shared_namespaceObject.PropTypes.bool.def(true)]).isRequired,
1815
- recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true)
3266
+ }), shared_.PropTypes.bool.def(true)]).isRequired,
3267
+ recommendEmpty: shared_.PropTypes.bool.def(true)
1816
3268
  };
1817
- /* harmony default export */ const recommend_colors = ((0,external_vue_namespaceObject.defineComponent)({
3269
+ /* harmony default export */ const recommend_colors = ((0,external_vue_.defineComponent)({
1818
3270
  props: recommend_colors_colorPickerProps,
1819
3271
  emits: ['change', 'tab'],
1820
3272
  setup: function setup(props, _ref) {
1821
3273
  var emit = _ref.emit;
1822
- var isFocused = (0,external_vue_namespaceObject.ref)(false);
1823
- var selectedIndex = (0,external_vue_namespaceObject.ref)(-1);
1824
- var selectedColor = (0,external_vue_namespaceObject.ref)(null);
1825
- (0,external_vue_namespaceObject.watch)(function () {
3274
+ var isFocused = (0,external_vue_.ref)(false);
3275
+ var selectedIndex = (0,external_vue_.ref)(-1);
3276
+ var selectedColor = (0,external_vue_.ref)(null);
3277
+ (0,external_vue_.watch)(function () {
1826
3278
  return props.colorObj;
1827
3279
  }, function () {
1828
3280
  // 每次在外部修改颜色后预设面板都会取消预设选择的样式,即便预设和当前色一样
@@ -1832,13 +3284,13 @@ var recommend_colors_colorPickerProps = {
1832
3284
  }, {
1833
3285
  deep: true
1834
3286
  });
1835
- var colors = (0,external_vue_namespaceObject.computed)(function () {
3287
+ var colors = (0,external_vue_.computed)(function () {
1836
3288
  return getColorsFromRecommend(props.recommend);
1837
3289
  });
1838
3290
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
1839
3291
  resolveClassName = _usePrefix.resolveClassName;
1840
3292
  var getColorClass = function getColorClass(color, index) {
1841
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(resolveClassName('color-picker-empty')), color === ''), "".concat(resolveClassName('color-picker-recommend-selected-color')), isFocused.value && selectedIndex.value === index), "".concat(resolveClassName('color-picker-recommend-color')));
3293
+ return (0,shared_.classes)((0,defineProperty["default"])((0,defineProperty["default"])({}, "".concat(resolveClassName('color-picker-empty')), color === ''), "".concat(resolveClassName('color-picker-recommend-selected-color')), isFocused.value && selectedIndex.value === index), "".concat(resolveClassName('color-picker-recommend-color')));
1842
3294
  };
1843
3295
  var handleKeydown = function handleKeydown(e) {
1844
3296
  if (e.code === 'Tab') {
@@ -1874,7 +3326,7 @@ var recommend_colors_colorPickerProps = {
1874
3326
  var color = colors.value[index];
1875
3327
  emit('change', color);
1876
3328
  // 预设里面修改颜色不重置状态(恢复状态)
1877
- (0,external_vue_namespaceObject.nextTick)(function () {
3329
+ (0,external_vue_.nextTick)(function () {
1878
3330
  selectedIndex.value = index;
1879
3331
  selectedColor.value = color;
1880
3332
  });
@@ -1900,7 +3352,7 @@ var recommend_colors_colorPickerProps = {
1900
3352
  }
1901
3353
  };
1902
3354
  return function () {
1903
- return (0,external_vue_namespaceObject.createVNode)("div", {
3355
+ return (0,external_vue_.createVNode)("div", {
1904
3356
  "class": "".concat(resolveClassName('color-picker-recommend'), " "),
1905
3357
  "tabindex": "0",
1906
3358
  "onBlur": function onBlur() {
@@ -1911,22 +3363,22 @@ var recommend_colors_colorPickerProps = {
1911
3363
  },
1912
3364
  "onKeydown": handleKeydown
1913
3365
  }, [colors.value.map(function (color, index) {
1914
- return (0,external_vue_namespaceObject.createVNode)("div", {
3366
+ return (0,external_vue_.createVNode)("div", {
1915
3367
  "style": "background: ".concat(color || '#fff'),
1916
3368
  "class": getColorClass(color, index),
1917
3369
  "onClick": function onClick() {
1918
3370
  return selectColor(index);
1919
3371
  }
1920
- }, [selectedIndex.value === index ? (0,external_vue_namespaceObject.createVNode)("div", {
3372
+ }, [selectedIndex.value === index ? (0,external_vue_.createVNode)("div", {
1921
3373
  "class": "".concat(resolveClassName('color-picker-pointer'))
1922
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3374
+ }, [(0,external_vue_.createVNode)("div", {
1923
3375
  "class": "".concat(resolveClassName('color-picker-circle'))
1924
3376
  }, null)]) : undefined]);
1925
3377
  })]);
1926
3378
  };
1927
3379
  }
1928
3380
  }));
1929
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/components/saturation-panel.tsx
3381
+ ;// ../../packages/color-picker/src/components/saturation-panel.tsx
1930
3382
 
1931
3383
  /*
1932
3384
  * Tencent is pleased to support the open source community by making
@@ -1958,20 +3410,20 @@ var recommend_colors_colorPickerProps = {
1958
3410
 
1959
3411
 
1960
3412
  var saturation_panel_colorPickerProps = {
1961
- colorObj: shared_namespaceObject.PropTypes.object.isRequired
3413
+ colorObj: shared_.PropTypes.object.isRequired
1962
3414
  };
1963
- /* harmony default export */ const saturation_panel = ((0,external_vue_namespaceObject.defineComponent)({
3415
+ /* harmony default export */ const saturation_panel = ((0,external_vue_.defineComponent)({
1964
3416
  props: saturation_panel_colorPickerProps,
1965
3417
  emits: ['change'],
1966
3418
  setup: function setup(props, _ref) {
1967
3419
  var emit = _ref.emit;
1968
- var containerRef = (0,external_vue_namespaceObject.ref)(null);
1969
- var backgroundStyle = (0,external_vue_namespaceObject.computed)(function () {
3420
+ var containerRef = (0,external_vue_.ref)(null);
3421
+ var backgroundStyle = (0,external_vue_.computed)(function () {
1970
3422
  return {
1971
3423
  background: "hsl(".concat(props.colorObj.hsv.h, ", 100%, 50%)")
1972
3424
  };
1973
3425
  });
1974
- var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
3426
+ var pointerStyle = (0,external_vue_.computed)(function () {
1975
3427
  return {
1976
3428
  top: "".concat((1 - props.colorObj.hsv.v) * 100, "%"),
1977
3429
  left: "".concat(props.colorObj.hsv.s * 100, "%")
@@ -2055,7 +3507,7 @@ var saturation_panel_colorPickerProps = {
2055
3507
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
2056
3508
  resolveClassName = _usePrefix.resolveClassName;
2057
3509
  return function () {
2058
- return (0,external_vue_namespaceObject.createVNode)("div", {
3510
+ return (0,external_vue_.createVNode)("div", {
2059
3511
  "ref": containerRef,
2060
3512
  "style": backgroundStyle.value,
2061
3513
  "class": "".concat(resolveClassName('color-picker-saturation')),
@@ -2065,20 +3517,20 @@ var saturation_panel_colorPickerProps = {
2065
3517
  e.stopPropagation();
2066
3518
  handleMouseDown(e);
2067
3519
  }
2068
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3520
+ }, [(0,external_vue_.createVNode)("div", {
2069
3521
  "class": "".concat(resolveClassName('color-picker-saturation-white'))
2070
- }, null), (0,external_vue_namespaceObject.createVNode)("div", {
3522
+ }, null), (0,external_vue_.createVNode)("div", {
2071
3523
  "class": "".concat(resolveClassName('color-picker-saturation-black'))
2072
- }, null), (0,external_vue_namespaceObject.createVNode)("div", {
3524
+ }, null), (0,external_vue_.createVNode)("div", {
2073
3525
  "style": pointerStyle.value,
2074
3526
  "class": "".concat(resolveClassName('color-picker-pointer'))
2075
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3527
+ }, [(0,external_vue_.createVNode)("div", {
2076
3528
  "class": "".concat(resolveClassName('color-picker-circle'))
2077
3529
  }, null)])]);
2078
3530
  };
2079
3531
  }
2080
3532
  }));
2081
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/color-picker.tsx
3533
+ ;// ../../packages/color-picker/src/color-picker.tsx
2082
3534
 
2083
3535
 
2084
3536
  /*
@@ -2126,65 +3578,65 @@ var ColorPickSizeEnum;
2126
3578
  ColorPickSizeEnum["UNKNOWN"] = "";
2127
3579
  })(ColorPickSizeEnum || (ColorPickSizeEnum = {}));
2128
3580
  var color_picker_colorPickerProps = {
2129
- modelValue: shared_namespaceObject.PropTypes.string.def(''),
2130
- disabled: shared_namespaceObject.PropTypes.bool.def(false),
2131
- readonly: shared_namespaceObject.PropTypes.bool.def(false),
2132
- transfer: shared_namespaceObject.PropTypes.bool.def(false),
3581
+ modelValue: shared_.PropTypes.string.def(''),
3582
+ disabled: shared_.PropTypes.bool.def(false),
3583
+ readonly: shared_.PropTypes.bool.def(false),
3584
+ transfer: shared_.PropTypes.bool.def(false),
2133
3585
  size: (0,external_vue_types_namespaceObject.toType)('colorPickSize', {}).def(ColorPickSizeEnum.UNKNOWN),
2134
- showValue: shared_namespaceObject.PropTypes.bool.def(true),
3586
+ showValue: shared_.PropTypes.bool.def(true),
2135
3587
  // true 展示组件内置预设值
2136
3588
  // false 不展示预设值
2137
3589
  // 数组 自定义预设值
2138
- recommend: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.array.def(function () {
3590
+ recommend: shared_.PropTypes.oneOfType([shared_.PropTypes.array.def(function () {
2139
3591
  return [];
2140
- }), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
2141
- extCls: shared_namespaceObject.PropTypes.string.def(''),
2142
- withValidate: shared_namespaceObject.PropTypes.bool.def(true),
2143
- recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true),
3592
+ }), shared_.PropTypes.bool.def(true)]).def(true),
3593
+ extCls: shared_.PropTypes.string.def(''),
3594
+ withValidate: shared_.PropTypes.bool.def(true),
3595
+ recommendEmpty: shared_.PropTypes.bool.def(true),
2144
3596
  // 初始化默认展开
2145
- showOnInit: shared_namespaceObject.PropTypes.bool.def(false)
3597
+ showOnInit: shared_.PropTypes.bool.def(false)
2146
3598
  };
2147
3599
  var whiteColorObj = formatColor('#FFFFFF');
2148
- /* harmony default export */ const color_picker = ((0,external_vue_namespaceObject.defineComponent)({
3600
+ /* harmony default export */ const color_picker = ((0,external_vue_.defineComponent)({
2149
3601
  name: 'ColorPicker',
2150
3602
  directives: {
2151
- clickoutside: directives_namespaceObject.clickoutside
3603
+ clickoutside: src.clickoutside
2152
3604
  },
2153
3605
  props: color_picker_colorPickerProps,
2154
3606
  emits: ['update:modelValue', 'change'],
2155
3607
  setup: function setup(props, _ref) {
2156
3608
  var emit = _ref.emit,
2157
3609
  slots = _ref.slots;
2158
- var formItem = (0,shared_namespaceObject.useFormItem)();
2159
- var showDropdown = (0,external_vue_namespaceObject.ref)(false);
3610
+ var formItem = (0,shared_.useFormItem)();
3611
+ var showDropdown = (0,external_vue_.ref)(false);
2160
3612
  // 当前颜色的色值,如果为空字符串显示:默认白色背景 + 中间一个叉
2161
- var colorStr = (0,external_vue_namespaceObject.ref)('');
3613
+ var colorStr = (0,external_vue_.ref)('');
2162
3614
  // 储存当前颜色的相关信息
2163
- var colorObj = (0,external_vue_namespaceObject.reactive)(JSON.parse(JSON.stringify(whiteColorObj)));
2164
- var dropRef = (0,external_vue_namespaceObject.ref)(null);
2165
- var saturationPanelRef = (0,external_vue_namespaceObject.ref)(null);
2166
- var referenceRef = (0,external_vue_namespaceObject.ref)(null);
3615
+ var colorObj = (0,external_vue_.reactive)(JSON.parse(JSON.stringify(whiteColorObj)));
3616
+ var dropRef = (0,external_vue_.ref)(null);
3617
+ var saturationPanelRef = (0,external_vue_.ref)(null);
3618
+ var referenceRef = (0,external_vue_.ref)(null);
2167
3619
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
2168
3620
  resolveClassName = _usePrefix.resolveClassName;
2169
- var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
2170
- return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName("color-picker-".concat(props.size))), props.size), "".concat(resolveClassName('color-picker-show-dropdown')), showDropdown.value), "".concat(resolveClassName('color-picker-show-value')), props.showValue), "".concat(resolveClassName('color-picker-disabled')), props.disabled || props.readonly), "".concat(resolveClassName('color-picker'), " ").concat(props.extCls));
3621
+ var colorPickerCls = (0,external_vue_.computed)(function () {
3622
+ return (0,shared_.classes)((0,defineProperty["default"])((0,defineProperty["default"])((0,defineProperty["default"])((0,defineProperty["default"])({}, "".concat(resolveClassName("color-picker-".concat(props.size))), props.size), "".concat(resolveClassName('color-picker-show-dropdown')), showDropdown.value), "".concat(resolveClassName('color-picker-show-value')), props.showValue), "".concat(resolveClassName('color-picker-disabled')), props.disabled || props.readonly), "".concat(resolveClassName('color-picker'), " ").concat(props.extCls));
2171
3623
  });
2172
3624
  // 是否渲染预设值
2173
- var isRenderRecommend = (0,external_vue_namespaceObject.computed)(function () {
3625
+ var isRenderRecommend = (0,external_vue_.computed)(function () {
2174
3626
  return Boolean(props.recommend === true || Array.isArray(props.recommend) && props.recommend.length);
2175
3627
  });
2176
- (0,external_vue_namespaceObject.onBeforeMount)(function () {
3628
+ (0,external_vue_.onBeforeMount)(function () {
2177
3629
  // 1. 组件初始化时,如果计算的色值和传入的值不一样,显示计算的色值
2178
3630
  changeColorFromProps({
2179
3631
  isCreated: true
2180
3632
  });
2181
3633
  if (props.showOnInit) {
2182
- (0,external_vue_namespaceObject.nextTick)(function () {
3634
+ (0,external_vue_.nextTick)(function () {
2183
3635
  openDropdown();
2184
3636
  });
2185
3637
  }
2186
3638
  });
2187
- (0,external_vue_namespaceObject.watch)(function () {
3639
+ (0,external_vue_.watch)(function () {
2188
3640
  return props.modelValue;
2189
3641
  }, function () {
2190
3642
  // 2. 如果组件绑定值被外部修改,自动根据绑定至更新组件色值
@@ -2237,7 +3689,7 @@ var whiteColorObj = formatColor('#FFFFFF');
2237
3689
  var closeDropdown = function closeDropdown() {
2238
3690
  if (showDropdown.value) {
2239
3691
  var _dropRef$value2;
2240
- (0,external_vue_namespaceObject.nextTick)(function () {
3692
+ (0,external_vue_.nextTick)(function () {
2241
3693
  return referenceRef.value.focus();
2242
3694
  });
2243
3695
  showDropdown.value = false;
@@ -2324,7 +3776,7 @@ var whiteColorObj = formatColor('#FFFFFF');
2324
3776
  showDropdown.value = false;
2325
3777
  };
2326
3778
  return function () {
2327
- return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
3779
+ return (0,external_vue_.withDirectives)((0,external_vue_.createVNode)("div", {
2328
3780
  "ref": referenceRef,
2329
3781
  "class": colorPickerCls.value,
2330
3782
  "tabindex": "0",
@@ -2333,29 +3785,29 @@ var whiteColorObj = formatColor('#FFFFFF');
2333
3785
  }, [typeof slots.trigger === 'function' ? slots.trigger({
2334
3786
  value: colorStr.value,
2335
3787
  isShowDropdown: showDropdown.value
2336
- }) : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("div", {
3788
+ }) : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)("div", {
2337
3789
  "class": "".concat(resolveClassName('color-picker-color'))
2338
- }, [(0,external_vue_namespaceObject.createVNode)("span", {
3790
+ }, [(0,external_vue_.createVNode)("span", {
2339
3791
  "style": "background: ".concat(colorStr.value || '#FFF'),
2340
3792
  "class": "".concat(resolveClassName('color-picker-color-square'), " ").concat(!colorStr.value && "".concat(resolveClassName('color-picker-empty')))
2341
- }, null)]), props.showValue ? (0,external_vue_namespaceObject.createVNode)("div", {
3793
+ }, null)]), props.showValue ? (0,external_vue_.createVNode)("div", {
2342
3794
  "class": "".concat(resolveClassName('color-picker-text'))
2343
- }, [(0,external_vue_namespaceObject.createVNode)("span", null, [colorStr.value])]) : undefined, (0,external_vue_namespaceObject.createVNode)("div", {
3795
+ }, [(0,external_vue_.createVNode)("span", null, [colorStr.value])]) : undefined, (0,external_vue_.createVNode)("div", {
2344
3796
  "class": "".concat(resolveClassName('color-picker-icon'))
2345
- }, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
3797
+ }, [(0,external_vue_.createVNode)(icon_namespaceObject.AngleUp, {
2346
3798
  "class": resolveClassName('icon-angle-down')
2347
- }, null)])]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
3799
+ }, null)])]), (0,external_vue_.createVNode)(external_vue_.Transition, {
2348
3800
  "name": "bk-fade-down-transition"
2349
3801
  }, {
2350
3802
  "default": function _default() {
2351
- return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(date_picker_namespaceObject.PickerDropdown, {
3803
+ return [(0,external_vue_.withDirectives)((0,external_vue_.createVNode)(date_picker_namespaceObject.PickerDropdown, {
2352
3804
  "ref": dropRef,
2353
3805
  "triggerRef": referenceRef.value
2354
3806
  }, {
2355
3807
  "default": function _default() {
2356
- return [(0,external_vue_namespaceObject.createVNode)("div", {
3808
+ return [(0,external_vue_.createVNode)("div", {
2357
3809
  "class": "".concat(resolveClassName('color-dropdown-container'))
2358
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
3810
+ }, [(0,external_vue_.createVNode)("div", {
2359
3811
  "class": "".concat(resolveClassName('color-picker-dropdown')),
2360
3812
  "onClick": function onClick(e) {
2361
3813
  e.stopPropagation();
@@ -2364,20 +3816,20 @@ var whiteColorObj = formatColor('#FFFFFF');
2364
3816
  "onMousedown": function onMousedown(e) {
2365
3817
  e.stopPropagation();
2366
3818
  }
2367
- }, [(0,external_vue_namespaceObject.createVNode)(saturation_panel, {
3819
+ }, [(0,external_vue_.createVNode)(saturation_panel, {
2368
3820
  "ref": saturationPanelRef,
2369
3821
  "colorObj": colorObj,
2370
3822
  "onChange": handleColorChange
2371
- }, null), (0,external_vue_namespaceObject.createVNode)(hue_slider, {
3823
+ }, null), (0,external_vue_.createVNode)(hue_slider, {
2372
3824
  "colorObj": colorObj,
2373
3825
  "onChange": handleColorChange
2374
- }, null), (0,external_vue_namespaceObject.createVNode)(color_input, {
3826
+ }, null), (0,external_vue_.createVNode)(color_input, {
2375
3827
  "colorObj": colorObj,
2376
3828
  "onChange": handleColorChange,
2377
3829
  "onTab": handleTabInput
2378
- }, null), isRenderRecommend.value ? (0,external_vue_namespaceObject.createVNode)("div", {
3830
+ }, null), isRenderRecommend.value ? (0,external_vue_.createVNode)("div", {
2379
3831
  "class": "".concat(resolveClassName('color-picker-recommend-container'))
2380
- }, [(0,external_vue_namespaceObject.createVNode)(recommend_colors, {
3832
+ }, [(0,external_vue_.createVNode)(recommend_colors, {
2381
3833
  "colorObj": colorObj,
2382
3834
  "recommend": props.recommend,
2383
3835
  "recommendEmpty": props.recommendEmpty,
@@ -2385,13 +3837,13 @@ var whiteColorObj = formatColor('#FFFFFF');
2385
3837
  "onTab": handleTabRecommend
2386
3838
  }, null)]) : undefined])])];
2387
3839
  }
2388
- }), [[external_vue_namespaceObject.vShow, showDropdown.value]])];
3840
+ }), [[external_vue_.vShow, showDropdown.value]])];
2389
3841
  }
2390
- })]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), hideDropDown]]);
3842
+ })]), [[(0,external_vue_.resolveDirective)("clickoutside"), hideDropDown]]);
2391
3843
  };
2392
3844
  }
2393
3845
  }));
2394
- ;// CONCATENATED MODULE: ../../packages/color-picker/src/index.ts
3846
+ ;// ../../packages/color-picker/src/index.ts
2395
3847
  /*
2396
3848
  * Tencent is pleased to support the open source community by making
2397
3849
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -2419,7 +3871,7 @@ var whiteColorObj = formatColor('#FFFFFF');
2419
3871
  */
2420
3872
 
2421
3873
 
2422
- var BkColorPicker = (0,shared_namespaceObject.withInstall)(color_picker);
2423
- /* harmony default export */ const src = (BkColorPicker);
3874
+ var BkColorPicker = (0,shared_.withInstall)(color_picker);
3875
+ /* harmony default export */ const color_picker_src = (BkColorPicker);
2424
3876
  var __webpack_exports__default = __webpack_exports__["default"];
2425
3877
  export { __webpack_exports__default as default };