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