bkui-vue 2.0.2-beta.47 → 2.0.2-beta.49
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 +42 -47
- package/dist/index.esm.js +7009 -7201
- package/dist/index.umd.js +45 -50
- package/lib/affix/index.js +14 -12
- package/lib/alert/index.js +14 -12
- package/lib/animate-number/index.js +12 -11
- package/lib/backtop/index.js +11 -10
- package/lib/badge/index.js +14 -12
- package/lib/breadcrumb/index.js +14 -12
- package/lib/button/index.js +14 -12
- package/lib/card/index.js +14 -12
- package/lib/cascader/index.js +101 -94
- package/lib/checkbox/index.js +35 -37
- package/lib/code-diff/index.js +674 -1170
- package/lib/collapse/index.js +42 -44
- package/lib/collapse-transition/index.js +4 -3
- package/lib/color-picker/index.js +60 -59
- package/lib/config-provider/index.js +14 -12
- package/lib/container/index.js +25 -21
- package/lib/date-picker/index.js +51 -58
- package/lib/dialog/index.js +441 -43
- package/lib/directives/index.js +34 -37
- package/lib/divider/index.js +3 -2
- package/lib/dropdown/index.js +21 -17
- package/lib/exception/index.js +17 -14
- package/lib/fixed-navbar/index.js +3 -2
- package/lib/form/index.js +34 -37
- package/lib/icon/angle-double-down-line.js +36 -29
- package/lib/icon/angle-double-left-line.js +36 -29
- package/lib/icon/angle-double-left.js +36 -29
- package/lib/icon/angle-double-right-line.js +36 -29
- package/lib/icon/angle-double-right.js +36 -29
- package/lib/icon/angle-double-up-line.js +36 -29
- package/lib/icon/angle-down-fill.js +36 -29
- package/lib/icon/angle-down-line.js +36 -29
- package/lib/icon/angle-down.js +36 -29
- package/lib/icon/angle-left.js +36 -29
- package/lib/icon/angle-right.js +36 -29
- package/lib/icon/angle-up-fill.js +36 -29
- package/lib/icon/angle-up.js +36 -29
- package/lib/icon/archive-fill.js +36 -29
- package/lib/icon/arrows-left.js +36 -29
- package/lib/icon/arrows-right.js +36 -29
- package/lib/icon/assistant.js +36 -29
- package/lib/icon/audio-fill.js +36 -29
- package/lib/icon/bk.js +36 -29
- package/lib/icon/circle.js +36 -29
- package/lib/icon/close-line.js +36 -29
- package/lib/icon/close.js +36 -29
- package/lib/icon/code.js +36 -29
- package/lib/icon/cog-shape.js +36 -29
- package/lib/icon/collapse-left.js +36 -29
- package/lib/icon/copy-shape.js +36 -29
- package/lib/icon/copy.js +36 -29
- package/lib/icon/data-shape.js +36 -29
- package/lib/icon/del.js +36 -29
- package/lib/icon/doc-fill.js +36 -29
- package/lib/icon/done.js +36 -29
- package/lib/icon/down-shape.js +36 -29
- package/lib/icon/down-small.js +36 -29
- package/lib/icon/edit-line.js +36 -29
- package/lib/icon/ellipsis.js +36 -29
- package/lib/icon/enlarge-line.js +36 -29
- package/lib/icon/error.js +36 -29
- package/lib/icon/excel-fill.js +36 -29
- package/lib/icon/exclamation-circle-shape.js +36 -29
- package/lib/icon/eye.js +36 -29
- package/lib/icon/filliscreen-line.js +36 -29
- package/lib/icon/fix-line.js +36 -29
- package/lib/icon/fix-shape.js +36 -29
- package/lib/icon/folder-open.js +36 -29
- package/lib/icon/folder-shape-open.js +36 -29
- package/lib/icon/folder-shape.js +36 -29
- package/lib/icon/folder.js +36 -29
- package/lib/icon/funnel.js +36 -29
- package/lib/icon/grag-fill.js +36 -29
- package/lib/icon/help-document-fill.js +36 -29
- package/lib/icon/help-fill.js +36 -29
- package/lib/icon/help.js +36 -29
- package/lib/icon/image-fill.js +36 -29
- package/lib/icon/img-error.js +36 -29
- package/lib/icon/img-placehoulder.js +36 -29
- package/lib/icon/info-line.js +36 -29
- package/lib/icon/info.js +36 -29
- package/lib/icon/left-shape.js +36 -29
- package/lib/icon/left-turn-line.js +36 -29
- package/lib/icon/loading.js +36 -29
- package/lib/icon/narrow-line.js +36 -29
- package/lib/icon/original.js +36 -29
- package/lib/icon/pdf-fill.js +36 -29
- package/lib/icon/play-shape.js +36 -29
- package/lib/icon/plus.js +36 -29
- package/lib/icon/ppt-fill.js +36 -29
- package/lib/icon/qq.js +36 -29
- package/lib/icon/right-shape.js +36 -29
- package/lib/icon/right-turn-line.js +36 -29
- package/lib/icon/search.js +36 -29
- package/lib/icon/share.js +36 -29
- package/lib/icon/spinner.js +36 -29
- package/lib/icon/success.js +36 -29
- package/lib/icon/switcher-loading.js +36 -29
- package/lib/icon/text-all.js +36 -29
- package/lib/icon/text-file.js +36 -29
- package/lib/icon/text-fill.js +36 -29
- package/lib/icon/transfer.js +36 -29
- package/lib/icon/tree-application-shape.js +36 -29
- package/lib/icon/unfull-screen.js +36 -29
- package/lib/icon/unvisible.js +36 -29
- package/lib/icon/up-shape.js +36 -29
- package/lib/icon/upload.js +36 -29
- package/lib/icon/video-fill.js +36 -29
- package/lib/icon/warn.js +36 -29
- package/lib/icon/weixin-pro.js +36 -29
- package/lib/icon/weixin.js +36 -29
- package/lib/image/index.js +47 -49
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +461 -62
- package/lib/input/index.js +60 -62
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +25 -22
- package/lib/menu/index.js +34 -36
- package/lib/message/index.js +31 -34
- package/lib/modal/index.js +14 -12
- package/lib/navigation/index.js +9 -7
- package/lib/notify/index.js +14 -12
- package/lib/overflow-title/index.js +10 -9
- package/lib/pagination/index.js +29 -32
- package/lib/pop-confirm/index.js +5 -4
- package/lib/popover/index.js +136 -209
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +452 -59
- package/lib/progress/index.js +19 -16
- package/lib/radio/index.js +34 -37
- package/lib/rate/index.js +14 -12
- package/lib/resize-layout/index.js +20 -18
- package/lib/scrollbar/index.js +58 -51
- package/lib/search-select/index.js +595 -222
- package/lib/select/index.js +463 -111
- package/lib/shared/index.js +95 -83
- package/lib/sideslider/index.js +441 -43
- package/lib/slider/index.js +446 -49
- package/lib/steps/index.js +458 -60
- package/lib/swiper/index.js +17 -15
- package/lib/switcher/index.js +14 -12
- package/lib/tab/index.js +40 -42
- package/lib/table/index.js +501 -152
- package/lib/tag/index.js +14 -12
- package/lib/tag-input/index.js +41 -47
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +17 -22
- package/lib/tree/index.js +66 -73
- package/lib/upload/index.js +487 -136
- package/lib/virtual-render/index.js +51 -47
- package/package.json +1 -2
package/lib/collapse/index.js
CHANGED
@@ -50,7 +50,6 @@ function _typeof(o) {
|
|
50
50
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
51
51
|
}, _typeof(o);
|
52
52
|
}
|
53
|
-
|
54
53
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
55
54
|
|
56
55
|
function toPrimitive(t, r) {
|
@@ -63,72 +62,70 @@ function toPrimitive(t, r) {
|
|
63
62
|
}
|
64
63
|
return ("string" === r ? String : Number)(t);
|
65
64
|
}
|
66
|
-
|
67
65
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
68
66
|
|
69
67
|
|
70
68
|
function toPropertyKey(t) {
|
71
69
|
var i = toPrimitive(t, "string");
|
72
|
-
return "symbol" == _typeof(i) ? i : i
|
70
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
73
71
|
}
|
74
|
-
|
75
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
76
73
|
|
77
|
-
function _defineProperty(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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;
|
84
87
|
}
|
85
|
-
|
86
88
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
87
|
-
function _arrayLikeToArray(
|
88
|
-
(
|
89
|
-
for (var
|
90
|
-
return
|
89
|
+
function _arrayLikeToArray(arr, len) {
|
90
|
+
if (len == null || len > arr.length) len = arr.length;
|
91
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
92
|
+
return arr2;
|
91
93
|
}
|
92
|
-
|
93
94
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
94
95
|
|
95
|
-
function _arrayWithoutHoles(
|
96
|
-
if (Array.isArray(
|
96
|
+
function _arrayWithoutHoles(arr) {
|
97
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
97
98
|
}
|
98
|
-
|
99
99
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
100
|
-
function _iterableToArray(
|
101
|
-
if (
|
100
|
+
function _iterableToArray(iter) {
|
101
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
102
102
|
}
|
103
|
-
|
104
103
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
105
104
|
|
106
|
-
function _unsupportedIterableToArray(
|
107
|
-
if (
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
105
|
+
function _unsupportedIterableToArray(o, minLen) {
|
106
|
+
if (!o) return;
|
107
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
108
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
109
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
110
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
111
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
112
112
|
}
|
113
|
-
|
114
113
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
115
114
|
function _nonIterableSpread() {
|
116
115
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
117
116
|
}
|
118
|
-
|
119
117
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
120
118
|
|
121
119
|
|
122
120
|
|
123
121
|
|
124
|
-
function _toConsumableArray(
|
125
|
-
return _arrayWithoutHoles(
|
122
|
+
function _toConsumableArray(arr) {
|
123
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
126
124
|
}
|
127
|
-
|
128
125
|
;// CONCATENATED MODULE: external "vue"
|
129
126
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
130
127
|
var external_vue_y = x => () => x
|
131
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
128
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["renderSlot"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.renderSlot, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
132
129
|
;// CONCATENATED MODULE: external "../config-provider"
|
133
130
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
134
131
|
var config_provider_y = x => () => x
|
@@ -270,10 +267,11 @@ var propsCollapsePanel = _objectSpread({
|
|
270
267
|
|
271
268
|
|
272
269
|
|
270
|
+
|
273
271
|
function _isSlot(s) {
|
274
272
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
275
273
|
}
|
276
|
-
/* harmony default export */ const collapse_panel = (defineComponent({
|
274
|
+
/* harmony default export */ const collapse_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
277
275
|
name: 'CollapsePanel',
|
278
276
|
props: propsCollapsePanel,
|
279
277
|
emits: ['change', 'update:modelValue', 'after-leave', 'before-enter'],
|
@@ -282,17 +280,17 @@ function _isSlot(s) {
|
|
282
280
|
slots = _ref.slots;
|
283
281
|
var localActiveItems = null;
|
284
282
|
var handleItemClick = null;
|
285
|
-
var isActive = ref(props.modelValue);
|
286
|
-
watch(function () {
|
283
|
+
var isActive = (0,external_vue_namespaceObject.ref)(props.modelValue);
|
284
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
287
285
|
return props.modelValue;
|
288
286
|
}, function (newVal) {
|
289
287
|
isActive.value = newVal;
|
290
288
|
});
|
291
289
|
// 如果单独使用,避免报 injection "*" not found. 相比getCurrentInstance()?.parent.type.name 方法简洁
|
292
290
|
if (!props.alone) {
|
293
|
-
localActiveItems = inject('localActiveItems');
|
294
|
-
handleItemClick = inject('handleItemClick');
|
295
|
-
watch(localActiveItems, function (newVal) {
|
291
|
+
localActiveItems = (0,external_vue_namespaceObject.inject)('localActiveItems');
|
292
|
+
handleItemClick = (0,external_vue_namespaceObject.inject)('handleItemClick');
|
293
|
+
(0,external_vue_namespaceObject.watch)(localActiveItems, function (newVal) {
|
296
294
|
if (newVal !== null && newVal !== void 0 && newVal.length) {
|
297
295
|
isActive.value = newVal.includes(props.name);
|
298
296
|
} else {
|
@@ -332,7 +330,7 @@ function _isSlot(s) {
|
|
332
330
|
}
|
333
331
|
function getContent() {
|
334
332
|
if (slots.content) {
|
335
|
-
return slots.content(h);
|
333
|
+
return slots.content(external_vue_namespaceObject.h);
|
336
334
|
}
|
337
335
|
return props.content;
|
338
336
|
}
|
@@ -347,14 +345,14 @@ function _isSlot(s) {
|
|
347
345
|
function renderHeader(icon) {
|
348
346
|
if (slots.header) {
|
349
347
|
if (typeof slots.header === 'function') {
|
350
|
-
return slots.header(h);
|
348
|
+
return slots.header(external_vue_namespaceObject.h);
|
351
349
|
}
|
352
350
|
return slots.header;
|
353
351
|
}
|
354
352
|
var title;
|
355
353
|
if (slots["default"]) {
|
356
354
|
if (typeof slots["default"] === 'function') {
|
357
|
-
title = slots["default"](h);
|
355
|
+
title = slots["default"](external_vue_namespaceObject.h);
|
358
356
|
} else {
|
359
357
|
title = slots["default"];
|
360
358
|
}
|
@@ -38,7 +38,7 @@ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MOD
|
|
38
38
|
;// CONCATENATED MODULE: external "vue"
|
39
39
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
40
|
var external_vue_y = x => () => x
|
41
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
41
|
+
const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
|
42
42
|
;// CONCATENATED MODULE: external "../config-provider"
|
43
43
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
44
44
|
var config_provider_y = x => () => x
|
@@ -71,7 +71,8 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
71
71
|
* IN THE SOFTWARE.
|
72
72
|
*/
|
73
73
|
|
74
|
-
|
74
|
+
|
75
|
+
/* harmony default export */ const collapse_transition = ((0,external_vue_namespaceObject.defineComponent)({
|
75
76
|
name: 'CollapseTransition',
|
76
77
|
setup: function setup(_props, _ref) {
|
77
78
|
var slots = _ref.slots;
|
@@ -134,7 +135,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
134
135
|
render: function render() {
|
135
136
|
var _this = this;
|
136
137
|
var name = this.resolveClassName('collapse-transition');
|
137
|
-
return (0,external_vue_namespaceObject.createVNode)(Transition, (0,external_vue_namespaceObject.mergeProps)({
|
138
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, (0,external_vue_namespaceObject.mergeProps)({
|
138
139
|
"name": name
|
139
140
|
}, this.on), {
|
140
141
|
"default": function _default() {
|
@@ -24,9 +24,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
24
24
|
// UNUSED EXPORTS: bkEllipsis, bkEllipsisInstance, bkLoading, bkTooltips, mousewheel, overflowTitle
|
25
25
|
|
26
26
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
27
|
-
function _createForOfIteratorHelper(
|
28
|
-
function _unsupportedIterableToArray(
|
29
|
-
function _arrayLikeToArray(
|
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
30
|
/*
|
31
31
|
* Tencent is pleased to support the open source community by making
|
32
32
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1291,13 +1291,12 @@ module.exports = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragmen
|
|
1291
1291
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1292
1292
|
/* harmony export */ "default": () => (/* binding */ _arrayLikeToArray)
|
1293
1293
|
/* harmony export */ });
|
1294
|
-
function _arrayLikeToArray(
|
1295
|
-
(
|
1296
|
-
for (var
|
1297
|
-
return
|
1294
|
+
function _arrayLikeToArray(arr, len) {
|
1295
|
+
if (len == null || len > arr.length) len = arr.length;
|
1296
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
1297
|
+
return arr2;
|
1298
1298
|
}
|
1299
1299
|
|
1300
|
-
|
1301
1300
|
/***/ }),
|
1302
1301
|
|
1303
1302
|
/***/ 74:
|
@@ -1308,11 +1307,10 @@ function _arrayLikeToArray(r, a) {
|
|
1308
1307
|
/* harmony export */ });
|
1309
1308
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1310
1309
|
|
1311
|
-
function _arrayWithoutHoles(
|
1312
|
-
if (Array.isArray(
|
1310
|
+
function _arrayWithoutHoles(arr) {
|
1311
|
+
if (Array.isArray(arr)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr);
|
1313
1312
|
}
|
1314
1313
|
|
1315
|
-
|
1316
1314
|
/***/ }),
|
1317
1315
|
|
1318
1316
|
/***/ 6666:
|
@@ -1323,16 +1321,21 @@ function _arrayWithoutHoles(r) {
|
|
1323
1321
|
/* harmony export */ });
|
1324
1322
|
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3795);
|
1325
1323
|
|
1326
|
-
function _defineProperty(
|
1327
|
-
|
1328
|
-
|
1329
|
-
|
1330
|
-
|
1331
|
-
|
1332
|
-
|
1324
|
+
function _defineProperty(obj, key, value) {
|
1325
|
+
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
|
1326
|
+
if (key in obj) {
|
1327
|
+
Object.defineProperty(obj, key, {
|
1328
|
+
value: value,
|
1329
|
+
enumerable: true,
|
1330
|
+
configurable: true,
|
1331
|
+
writable: true
|
1332
|
+
});
|
1333
|
+
} else {
|
1334
|
+
obj[key] = value;
|
1335
|
+
}
|
1336
|
+
return obj;
|
1333
1337
|
}
|
1334
1338
|
|
1335
|
-
|
1336
1339
|
/***/ }),
|
1337
1340
|
|
1338
1341
|
/***/ 1079:
|
@@ -1341,11 +1344,10 @@ function _defineProperty(e, r, t) {
|
|
1341
1344
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1342
1345
|
/* harmony export */ "default": () => (/* binding */ _iterableToArray)
|
1343
1346
|
/* harmony export */ });
|
1344
|
-
function _iterableToArray(
|
1345
|
-
if (
|
1347
|
+
function _iterableToArray(iter) {
|
1348
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
1346
1349
|
}
|
1347
1350
|
|
1348
|
-
|
1349
1351
|
/***/ }),
|
1350
1352
|
|
1351
1353
|
/***/ 6098:
|
@@ -1358,7 +1360,6 @@ function _nonIterableSpread() {
|
|
1358
1360
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
1359
1361
|
}
|
1360
1362
|
|
1361
|
-
|
1362
1363
|
/***/ }),
|
1363
1364
|
|
1364
1365
|
/***/ 7930:
|
@@ -1375,11 +1376,10 @@ function _nonIterableSpread() {
|
|
1375
1376
|
|
1376
1377
|
|
1377
1378
|
|
1378
|
-
function _toConsumableArray(
|
1379
|
-
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
1379
|
+
function _toConsumableArray(arr) {
|
1380
|
+
return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
1380
1381
|
}
|
1381
1382
|
|
1382
|
-
|
1383
1383
|
/***/ }),
|
1384
1384
|
|
1385
1385
|
/***/ 9745:
|
@@ -1401,7 +1401,6 @@ function toPrimitive(t, r) {
|
|
1401
1401
|
return ("string" === r ? String : Number)(t);
|
1402
1402
|
}
|
1403
1403
|
|
1404
|
-
|
1405
1404
|
/***/ }),
|
1406
1405
|
|
1407
1406
|
/***/ 3795:
|
@@ -1416,10 +1415,9 @@ function toPrimitive(t, r) {
|
|
1416
1415
|
|
1417
1416
|
function toPropertyKey(t) {
|
1418
1417
|
var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t, "string");
|
1419
|
-
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : i
|
1418
|
+
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_1__["default"])(i) ? i : String(i);
|
1420
1419
|
}
|
1421
1420
|
|
1422
|
-
|
1423
1421
|
/***/ }),
|
1424
1422
|
|
1425
1423
|
/***/ 6522:
|
@@ -1438,7 +1436,6 @@ function _typeof(o) {
|
|
1438
1436
|
}, _typeof(o);
|
1439
1437
|
}
|
1440
1438
|
|
1441
|
-
|
1442
1439
|
/***/ }),
|
1443
1440
|
|
1444
1441
|
/***/ 9147:
|
@@ -1449,15 +1446,15 @@ function _typeof(o) {
|
|
1449
1446
|
/* harmony export */ });
|
1450
1447
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(926);
|
1451
1448
|
|
1452
|
-
function _unsupportedIterableToArray(
|
1453
|
-
if (
|
1454
|
-
|
1455
|
-
|
1456
|
-
|
1457
|
-
|
1449
|
+
function _unsupportedIterableToArray(o, minLen) {
|
1450
|
+
if (!o) return;
|
1451
|
+
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1452
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
1453
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
1454
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
1455
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
1458
1456
|
}
|
1459
1457
|
|
1460
|
-
|
1461
1458
|
/***/ })
|
1462
1459
|
|
1463
1460
|
/******/ });
|
@@ -2761,10 +2758,11 @@ function validateWCAG2Parms(parms) {
|
|
2761
2758
|
*/
|
2762
2759
|
|
2763
2760
|
|
2761
|
+
|
2764
2762
|
var inputContainerProps = {
|
2765
2763
|
info: shared_.PropTypes.object.isRequired
|
2766
2764
|
};
|
2767
|
-
/* harmony default export */ const input_container = (defineComponent({
|
2765
|
+
/* harmony default export */ const input_container = ((0,external_vue_.defineComponent)({
|
2768
2766
|
props: inputContainerProps,
|
2769
2767
|
emits: ['tab', 'input'],
|
2770
2768
|
setup: function setup(props, _ref) {
|
@@ -2781,7 +2779,7 @@ var inputContainerProps = {
|
|
2781
2779
|
};
|
2782
2780
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2783
2781
|
resolveClassName = _usePrefix.resolveClassName;
|
2784
|
-
var colorPickerCls = computed(function () {
|
2782
|
+
var colorPickerCls = (0,external_vue_.computed)(function () {
|
2785
2783
|
return (0,shared_.classes)({
|
2786
2784
|
error: props.info.error
|
2787
2785
|
}, "".concat(resolveClassName('color-picker-input-value')));
|
@@ -2832,46 +2830,47 @@ var inputContainerProps = {
|
|
2832
2830
|
|
2833
2831
|
|
2834
2832
|
|
2833
|
+
|
2835
2834
|
var colorPickerProps = {
|
2836
2835
|
colorObj: shared_.PropTypes.object.isRequired
|
2837
2836
|
};
|
2838
|
-
/* harmony default export */ const color_input = (defineComponent({
|
2837
|
+
/* harmony default export */ const color_input = ((0,external_vue_.defineComponent)({
|
2839
2838
|
name: 'ColorPicker',
|
2840
2839
|
props: colorPickerProps,
|
2841
2840
|
emits: ['change', 'tab'],
|
2842
2841
|
setup: function setup(props, _ref) {
|
2843
2842
|
var emit = _ref.emit;
|
2844
|
-
var hex = reactive({
|
2843
|
+
var hex = (0,external_vue_.reactive)({
|
2845
2844
|
key: 'hex',
|
2846
2845
|
name: 'HEX',
|
2847
2846
|
value: props.colorObj.hex,
|
2848
2847
|
error: false
|
2849
2848
|
});
|
2850
|
-
var r = reactive({
|
2849
|
+
var r = (0,external_vue_.reactive)({
|
2851
2850
|
key: 'r',
|
2852
2851
|
name: 'R',
|
2853
2852
|
value: props.colorObj.rgba.r.toString(),
|
2854
2853
|
error: false
|
2855
2854
|
});
|
2856
|
-
var g = reactive({
|
2855
|
+
var g = (0,external_vue_.reactive)({
|
2857
2856
|
key: 'g',
|
2858
2857
|
name: 'G',
|
2859
2858
|
value: props.colorObj.rgba.g.toString(),
|
2860
2859
|
error: false
|
2861
2860
|
});
|
2862
|
-
var b = reactive({
|
2861
|
+
var b = (0,external_vue_.reactive)({
|
2863
2862
|
key: 'b',
|
2864
2863
|
name: 'B',
|
2865
2864
|
value: props.colorObj.rgba.b.toString(),
|
2866
2865
|
error: false
|
2867
2866
|
});
|
2868
|
-
var a = reactive({
|
2867
|
+
var a = (0,external_vue_.reactive)({
|
2869
2868
|
key: 'a',
|
2870
2869
|
name: 'Alpha',
|
2871
2870
|
value: props.colorObj.rgba.a.toString(),
|
2872
2871
|
error: false
|
2873
2872
|
});
|
2874
|
-
watch(function () {
|
2873
|
+
(0,external_vue_.watch)(function () {
|
2875
2874
|
return props.colorObj;
|
2876
2875
|
}, function (val) {
|
2877
2876
|
if (tinycolor(val.hex).toString() !== tinycolor(hex.value).toString()) {
|
@@ -3105,17 +3104,18 @@ var toRGBAString = function toRGBAString(rgba) {
|
|
3105
3104
|
|
3106
3105
|
|
3107
3106
|
|
3107
|
+
|
3108
3108
|
var hue_slider_colorPickerProps = {
|
3109
3109
|
colorObj: shared_.PropTypes.object.isRequired
|
3110
3110
|
};
|
3111
|
-
/* harmony default export */ const hue_slider = (defineComponent({
|
3111
|
+
/* harmony default export */ const hue_slider = ((0,external_vue_.defineComponent)({
|
3112
3112
|
name: 'ColorPicker',
|
3113
3113
|
props: hue_slider_colorPickerProps,
|
3114
3114
|
emits: ['change'],
|
3115
3115
|
setup: function setup(props, _ref) {
|
3116
3116
|
var emit = _ref.emit;
|
3117
|
-
var containerRef = ref(null);
|
3118
|
-
var pointerStyle = computed(function () {
|
3117
|
+
var containerRef = (0,external_vue_.ref)(null);
|
3118
|
+
var pointerStyle = (0,external_vue_.computed)(function () {
|
3119
3119
|
return {
|
3120
3120
|
left: "".concat(props.colorObj.hsv.h / 360 * 100, "%")
|
3121
3121
|
};
|
@@ -3153,11 +3153,11 @@ var hue_slider_colorPickerProps = {
|
|
3153
3153
|
window.addEventListener('mousemove', handlePointChange, {
|
3154
3154
|
passive: true
|
3155
3155
|
});
|
3156
|
-
window.addEventListener('mouseup',
|
3156
|
+
window.addEventListener('mouseup', handleMouseUp);
|
3157
3157
|
};
|
3158
|
-
var
|
3158
|
+
var handleMouseUp = function handleMouseUp() {
|
3159
3159
|
window.removeEventListener('mousemove', handlePointChange);
|
3160
|
-
window.removeEventListener('mouseup',
|
3160
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
3161
3161
|
};
|
3162
3162
|
/**
|
3163
3163
|
* 色相面板变化
|
@@ -3394,21 +3394,22 @@ var recommend_colors_colorPickerProps = {
|
|
3394
3394
|
|
3395
3395
|
|
3396
3396
|
|
3397
|
+
|
3397
3398
|
var saturation_panel_colorPickerProps = {
|
3398
3399
|
colorObj: shared_.PropTypes.object.isRequired
|
3399
3400
|
};
|
3400
|
-
/* harmony default export */ const saturation_panel = (defineComponent({
|
3401
|
+
/* harmony default export */ const saturation_panel = ((0,external_vue_.defineComponent)({
|
3401
3402
|
props: saturation_panel_colorPickerProps,
|
3402
3403
|
emits: ['change'],
|
3403
3404
|
setup: function setup(props, _ref) {
|
3404
3405
|
var emit = _ref.emit;
|
3405
|
-
var containerRef = ref(null);
|
3406
|
-
var backgroundStyle = computed(function () {
|
3406
|
+
var containerRef = (0,external_vue_.ref)(null);
|
3407
|
+
var backgroundStyle = (0,external_vue_.computed)(function () {
|
3407
3408
|
return {
|
3408
3409
|
background: "hsl(".concat(props.colorObj.hsv.h, ", 100%, 50%)")
|
3409
3410
|
};
|
3410
3411
|
});
|
3411
|
-
var pointerStyle = computed(function () {
|
3412
|
+
var pointerStyle = (0,external_vue_.computed)(function () {
|
3412
3413
|
return {
|
3413
3414
|
top: "".concat((1 - props.colorObj.hsv.v) * 100, "%"),
|
3414
3415
|
left: "".concat(props.colorObj.hsv.s * 100, "%")
|
@@ -3420,11 +3421,11 @@ var saturation_panel_colorPickerProps = {
|
|
3420
3421
|
window.addEventListener('mousemove', handlePointChange, {
|
3421
3422
|
passive: true
|
3422
3423
|
});
|
3423
|
-
window.addEventListener('mouseup',
|
3424
|
+
window.addEventListener('mouseup', handleMouseUp);
|
3424
3425
|
};
|
3425
|
-
var
|
3426
|
+
var handleMouseUp = function handleMouseUp() {
|
3426
3427
|
window.removeEventListener('mousemove', handlePointChange);
|
3427
|
-
window.removeEventListener('mouseup',
|
3428
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
3428
3429
|
};
|
3429
3430
|
var handleArrowKeydown = function handleArrowKeydown(e) {
|
3430
3431
|
var _containerRef$value = containerRef.value,
|
@@ -57,7 +57,6 @@ function _typeof(o) {
|
|
57
57
|
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
58
58
|
}, _typeof(o);
|
59
59
|
}
|
60
|
-
|
61
60
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
62
61
|
|
63
62
|
function toPrimitive(t, r) {
|
@@ -70,26 +69,29 @@ function toPrimitive(t, r) {
|
|
70
69
|
}
|
71
70
|
return ("string" === r ? String : Number)(t);
|
72
71
|
}
|
73
|
-
|
74
72
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
75
73
|
|
76
74
|
|
77
75
|
function toPropertyKey(t) {
|
78
76
|
var i = toPrimitive(t, "string");
|
79
|
-
return "symbol" == _typeof(i) ? i : i
|
77
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
80
78
|
}
|
81
|
-
|
82
79
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
83
80
|
|
84
|
-
function _defineProperty(
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
81
|
+
function _defineProperty(obj, key, value) {
|
82
|
+
key = toPropertyKey(key);
|
83
|
+
if (key in obj) {
|
84
|
+
Object.defineProperty(obj, key, {
|
85
|
+
value: value,
|
86
|
+
enumerable: true,
|
87
|
+
configurable: true,
|
88
|
+
writable: true
|
89
|
+
});
|
90
|
+
} else {
|
91
|
+
obj[key] = value;
|
92
|
+
}
|
93
|
+
return obj;
|
91
94
|
}
|
92
|
-
|
93
95
|
;// CONCATENATED MODULE: external "lodash/merge"
|
94
96
|
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
95
97
|
var merge_y = x => () => x
|