bkui-vue 2.0.1-beta.113 → 2.0.1-beta.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +54 -54
- package/dist/index.esm.js +13951 -13942
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +47 -39
- package/lib/alert/index.d.ts +73 -126
- package/lib/alert/index.js +50 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +21 -16
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +42 -31
- package/lib/badge/index.d.ts +119 -152
- package/lib/badge/index.js +43 -37
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -40
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +55 -46
- package/lib/card/index.d.ts +128 -157
- package/lib/card/index.js +67 -55
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +149 -119
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +143 -175
- package/lib/checkbox/index.js +89 -79
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +464 -517
- package/lib/collapse/index.d.ts +156 -175
- package/lib/collapse/index.js +67 -60
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +23 -16
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +144 -165
- package/lib/color-picker/index.js +98 -82
- package/lib/config-provider/index.d.ts +160 -227
- package/lib/config-provider/index.js +51 -43
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +55 -47
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/index.d.ts +380 -351
- package/lib/date-picker/index.js +171 -150
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/index.d.ts +299 -269
- package/lib/dialog/index.js +323 -310
- package/lib/directives/index.js +344 -336
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +23 -16
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +66 -52
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +76 -70
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +22 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +104 -83
- package/lib/icon/angle-double-down-line.js +31 -29
- package/lib/icon/angle-double-left-line.js +31 -29
- package/lib/icon/angle-double-left.js +31 -29
- package/lib/icon/angle-double-right-line.js +31 -29
- package/lib/icon/angle-double-right.js +31 -29
- package/lib/icon/angle-double-up-line.js +31 -29
- package/lib/icon/angle-down-fill.js +31 -29
- package/lib/icon/angle-down-line.js +31 -29
- package/lib/icon/angle-down.js +31 -29
- package/lib/icon/angle-left.js +31 -29
- package/lib/icon/angle-right.js +31 -29
- package/lib/icon/angle-up-fill.js +31 -29
- package/lib/icon/angle-up.js +31 -29
- package/lib/icon/archive-fill.js +31 -29
- package/lib/icon/arrows-left.js +31 -29
- package/lib/icon/arrows-right.js +31 -29
- package/lib/icon/assistant.js +31 -29
- package/lib/icon/audio-fill.js +31 -29
- package/lib/icon/bk.js +31 -29
- package/lib/icon/circle.js +31 -29
- package/lib/icon/close-line.js +31 -29
- package/lib/icon/close.js +31 -29
- package/lib/icon/code.js +31 -29
- package/lib/icon/cog-shape.js +31 -29
- package/lib/icon/collapse-left.js +31 -29
- package/lib/icon/copy-shape.js +31 -29
- package/lib/icon/copy.js +31 -29
- package/lib/icon/data-shape.js +31 -29
- package/lib/icon/del.js +31 -29
- package/lib/icon/doc-fill.js +31 -29
- package/lib/icon/done.js +31 -29
- package/lib/icon/down-shape.js +31 -29
- package/lib/icon/down-small.js +31 -29
- package/lib/icon/edit-line.js +31 -29
- package/lib/icon/ellipsis.js +31 -29
- package/lib/icon/enlarge-line.js +31 -29
- package/lib/icon/error.js +31 -29
- package/lib/icon/excel-fill.js +31 -29
- package/lib/icon/exclamation-circle-shape.js +31 -29
- package/lib/icon/eye.js +31 -29
- package/lib/icon/filliscreen-line.js +31 -29
- package/lib/icon/fix-line.js +31 -29
- package/lib/icon/fix-shape.js +31 -29
- package/lib/icon/folder-open.js +31 -29
- package/lib/icon/folder-shape-open.js +31 -29
- package/lib/icon/folder-shape.js +31 -29
- package/lib/icon/folder.js +31 -29
- package/lib/icon/funnel.js +31 -29
- package/lib/icon/grag-fill.js +31 -29
- package/lib/icon/help-document-fill.js +31 -29
- package/lib/icon/help-fill.js +31 -29
- package/lib/icon/help.js +31 -29
- package/lib/icon/image-fill.js +31 -29
- package/lib/icon/img-error.js +31 -29
- package/lib/icon/img-placehoulder.js +31 -29
- package/lib/icon/info-line.js +31 -29
- package/lib/icon/info.js +31 -29
- package/lib/icon/left-shape.js +31 -29
- package/lib/icon/left-turn-line.js +31 -29
- package/lib/icon/loading.js +31 -29
- package/lib/icon/narrow-line.js +31 -29
- package/lib/icon/original.js +31 -29
- package/lib/icon/pdf-fill.js +31 -29
- package/lib/icon/play-shape.js +31 -29
- package/lib/icon/plus.js +31 -29
- package/lib/icon/ppt-fill.js +31 -29
- package/lib/icon/qq.js +31 -29
- package/lib/icon/right-shape.js +31 -29
- package/lib/icon/right-turn-line.js +31 -29
- package/lib/icon/search.js +31 -29
- package/lib/icon/share.js +31 -29
- package/lib/icon/spinner.js +31 -29
- package/lib/icon/success.js +31 -29
- package/lib/icon/switcher-loading.js +31 -29
- package/lib/icon/text-all.js +31 -29
- package/lib/icon/text-file.js +31 -29
- package/lib/icon/text-fill.js +31 -29
- package/lib/icon/transfer.js +31 -29
- package/lib/icon/tree-application-shape.js +31 -29
- package/lib/icon/unfull-screen.js +31 -29
- package/lib/icon/unvisible.js +31 -29
- package/lib/icon/up-shape.js +31 -29
- package/lib/icon/upload.js +31 -29
- package/lib/icon/video-fill.js +31 -29
- package/lib/icon/warn.js +31 -29
- package/lib/icon/weixin-pro.js +31 -29
- package/lib/icon/weixin.js +31 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +76 -61
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +328 -315
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +91 -83
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +27 -19
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +56 -51
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +3 -3
- package/lib/menu/index.d.ts +55 -116
- package/lib/menu/index.js +67 -58
- package/lib/message/index.js +72 -67
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +171 -185
- package/lib/modal/index.js +58 -48
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +35 -25
- package/lib/notify/index.js +57 -48
- package/lib/overflow-title/index.d.ts +343 -256
- package/lib/overflow-title/index.js +51 -38
- package/lib/pagination/index.d.ts +184 -198
- package/lib/pagination/index.js +112 -103
- package/lib/plugin-popover/index.js +7 -5
- package/lib/plugins/index.js +7 -5
- package/lib/pop-confirm/index.d.ts +115 -153
- package/lib/pop-confirm/index.js +53 -36
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +421 -359
- package/lib/popover/index.js +291 -179
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +15 -11
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +299 -295
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +47 -40
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +91 -140
- package/lib/radio/index.js +85 -79
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +44 -39
- package/lib/resize-layout/index.d.ts +168 -192
- package/lib/resize-layout/index.js +50 -43
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/scrollbar/index.js +63 -63
- package/lib/search-select/index.d.ts +678 -895
- package/lib/search-select/index.js +397 -379
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +133 -188
- package/lib/search-select/selected.d.ts +133 -188
- package/lib/select/index.d.ts +1375 -1217
- package/lib/select/index.js +456 -419
- package/lib/select/select.d.ts +132 -169
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +109 -103
- package/lib/sideslider/index.d.ts +197 -201
- package/lib/sideslider/index.js +312 -303
- package/lib/slider/index.d.ts +214 -210
- package/lib/slider/index.js +305 -294
- package/lib/steps/index.d.ts +110 -149
- package/lib/steps/index.js +303 -298
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +42 -36
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +50 -44
- package/lib/tab/index.d.ts +151 -183
- package/lib/tab/index.js +72 -59
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +457 -362
- package/lib/table/index.js +589 -547
- package/lib/table/table.d.ts +1 -1
- package/lib/table-column/index.d.ts +104 -150
- package/lib/table-column/index.js +13 -9
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +56 -46
- package/lib/tag-input/index.d.ts +744 -529
- package/lib/tag-input/index.js +148 -128
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +439 -386
- package/lib/time-picker/index.js +13 -9
- package/lib/timeline/index.d.ts +64 -131
- package/lib/timeline/index.js +27 -21
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +56 -40
- package/lib/tree/index.d.ts +350 -308
- package/lib/tree/index.js +171 -150
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +311 -273
- package/lib/upload/index.js +474 -465
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +333 -241
- package/lib/virtual-render/index.js +84 -72
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +1 -1
@@ -36,43 +36,45 @@ __webpack_require__.d(__webpack_exports__, {
|
|
36
36
|
"default": () => (/* binding */ src)
|
37
37
|
});
|
38
38
|
|
39
|
-
;//
|
40
|
-
var x = y => {
|
41
|
-
var
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
;// external "../shared"
|
40
|
+
var x = (y) => {
|
41
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
42
|
+
}
|
43
|
+
var y = (x) => (() => (x))
|
44
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes), ["classes"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes), ["useFormItem"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem), ["withInstall"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall) });
|
45
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
46
|
+
function _typeof(o) {
|
45
47
|
"@babel/helpers - typeof";
|
46
48
|
|
47
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
48
|
-
return typeof
|
49
|
-
} : function (
|
50
|
-
return
|
51
|
-
}, _typeof(
|
49
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
50
|
+
return typeof o;
|
51
|
+
} : function (o) {
|
52
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
53
|
+
}, _typeof(o);
|
52
54
|
}
|
53
|
-
;//
|
54
|
-
|
55
|
-
function
|
56
|
-
if (
|
57
|
-
var
|
58
|
-
if (
|
59
|
-
var
|
60
|
-
if (
|
55
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
56
|
+
|
57
|
+
function toPrimitive(t, r) {
|
58
|
+
if ("object" != _typeof(t) || !t) return t;
|
59
|
+
var e = t[Symbol.toPrimitive];
|
60
|
+
if (void 0 !== e) {
|
61
|
+
var i = e.call(t, r || "default");
|
62
|
+
if ("object" != _typeof(i)) return i;
|
61
63
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
62
64
|
}
|
63
|
-
return (
|
65
|
+
return ("string" === r ? String : Number)(t);
|
64
66
|
}
|
65
|
-
;//
|
67
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
66
68
|
|
67
69
|
|
68
|
-
function
|
69
|
-
var
|
70
|
-
return _typeof(
|
70
|
+
function toPropertyKey(t) {
|
71
|
+
var i = toPrimitive(t, "string");
|
72
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
71
73
|
}
|
72
|
-
;//
|
74
|
+
;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
73
75
|
|
74
76
|
function _defineProperty(obj, key, value) {
|
75
|
-
key =
|
77
|
+
key = toPropertyKey(key);
|
76
78
|
if (key in obj) {
|
77
79
|
Object.defineProperty(obj, key, {
|
78
80
|
value: value,
|
@@ -85,31 +87,43 @@ function _defineProperty(obj, key, value) {
|
|
85
87
|
}
|
86
88
|
return obj;
|
87
89
|
}
|
88
|
-
;//
|
89
|
-
var external_vue_x = y => {
|
90
|
-
var
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
var
|
99
|
-
const
|
100
|
-
;//
|
101
|
-
var
|
102
|
-
var
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
var
|
111
|
-
const
|
112
|
-
;//
|
90
|
+
;// external "vue"
|
91
|
+
var external_vue_x = (y) => {
|
92
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
93
|
+
}
|
94
|
+
var external_vue_y = (x) => (() => (x))
|
95
|
+
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) });
|
96
|
+
;// external "vue-types"
|
97
|
+
var external_vue_types_x = (y) => {
|
98
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
99
|
+
}
|
100
|
+
var external_vue_types_y = (x) => (() => (x))
|
101
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => (__WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType) });
|
102
|
+
;// external "../config-provider"
|
103
|
+
var config_provider_x = (y) => {
|
104
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
105
|
+
}
|
106
|
+
var config_provider_y = (x) => (() => (x))
|
107
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix) });
|
108
|
+
;// external "../date-picker"
|
109
|
+
var date_picker_x = (y) => {
|
110
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
111
|
+
}
|
112
|
+
var date_picker_y = (x) => (() => (x))
|
113
|
+
const date_picker_namespaceObject = date_picker_x({ ["PickerDropdown"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__.PickerDropdown) });
|
114
|
+
;// external "../directives"
|
115
|
+
var directives_x = (y) => {
|
116
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
117
|
+
}
|
118
|
+
var directives_y = (x) => (() => (x))
|
119
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside) });
|
120
|
+
;// external "../icon"
|
121
|
+
var icon_x = (y) => {
|
122
|
+
var x = {}; __webpack_require__.d(x, y); return x
|
123
|
+
}
|
124
|
+
var icon_y = (x) => (() => (x))
|
125
|
+
const icon_namespaceObject = icon_x({ ["AngleUp"]: () => (__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp) });
|
126
|
+
;// ../../node_modules/tinycolor2/esm/tinycolor.js
|
113
127
|
// This file is autogenerated. It's used to publish ESM to npm.
|
114
128
|
function tinycolor_typeof(obj) {
|
115
129
|
"@babel/helpers - typeof";
|
@@ -1291,7 +1305,7 @@ function validateWCAG2Parms(parms) {
|
|
1291
1305
|
|
1292
1306
|
|
1293
1307
|
|
1294
|
-
;//
|
1308
|
+
;// ../../packages/color-picker/src/components/input-container.tsx
|
1295
1309
|
|
1296
1310
|
/*
|
1297
1311
|
* Tencent is pleased to support the open source community by making
|
@@ -1320,10 +1334,11 @@ function validateWCAG2Parms(parms) {
|
|
1320
1334
|
*/
|
1321
1335
|
|
1322
1336
|
|
1337
|
+
|
1323
1338
|
var inputContainerProps = {
|
1324
1339
|
info: shared_namespaceObject.PropTypes.object.isRequired
|
1325
1340
|
};
|
1326
|
-
/* harmony default export */ const input_container = (defineComponent({
|
1341
|
+
/* harmony default export */ const input_container = ((0,external_vue_namespaceObject.defineComponent)({
|
1327
1342
|
props: inputContainerProps,
|
1328
1343
|
emits: ['tab', 'input'],
|
1329
1344
|
setup: function setup(props, _ref) {
|
@@ -1340,7 +1355,7 @@ var inputContainerProps = {
|
|
1340
1355
|
};
|
1341
1356
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1342
1357
|
resolveClassName = _usePrefix.resolveClassName;
|
1343
|
-
var colorPickerCls = computed(function () {
|
1358
|
+
var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
|
1344
1359
|
return (0,shared_namespaceObject.classes)({
|
1345
1360
|
error: props.info.error
|
1346
1361
|
}, "".concat(resolveClassName('color-picker-input-value')));
|
@@ -1360,7 +1375,7 @@ var inputContainerProps = {
|
|
1360
1375
|
};
|
1361
1376
|
}
|
1362
1377
|
}));
|
1363
|
-
;//
|
1378
|
+
;// ../../packages/color-picker/src/components/color-input.tsx
|
1364
1379
|
|
1365
1380
|
/*
|
1366
1381
|
* Tencent is pleased to support the open source community by making
|
@@ -1391,46 +1406,47 @@ var inputContainerProps = {
|
|
1391
1406
|
|
1392
1407
|
|
1393
1408
|
|
1409
|
+
|
1394
1410
|
var colorPickerProps = {
|
1395
1411
|
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
1396
1412
|
};
|
1397
|
-
/* harmony default export */ const color_input = (defineComponent({
|
1413
|
+
/* harmony default export */ const color_input = ((0,external_vue_namespaceObject.defineComponent)({
|
1398
1414
|
name: 'ColorPicker',
|
1399
1415
|
props: colorPickerProps,
|
1400
1416
|
emits: ['change', 'tab'],
|
1401
1417
|
setup: function setup(props, _ref) {
|
1402
1418
|
var emit = _ref.emit;
|
1403
|
-
var hex = reactive({
|
1419
|
+
var hex = (0,external_vue_namespaceObject.reactive)({
|
1404
1420
|
key: 'hex',
|
1405
1421
|
name: 'HEX',
|
1406
1422
|
value: props.colorObj.hex,
|
1407
1423
|
error: false
|
1408
1424
|
});
|
1409
|
-
var r = reactive({
|
1425
|
+
var r = (0,external_vue_namespaceObject.reactive)({
|
1410
1426
|
key: 'r',
|
1411
1427
|
name: 'R',
|
1412
1428
|
value: props.colorObj.rgba.r.toString(),
|
1413
1429
|
error: false
|
1414
1430
|
});
|
1415
|
-
var g = reactive({
|
1431
|
+
var g = (0,external_vue_namespaceObject.reactive)({
|
1416
1432
|
key: 'g',
|
1417
1433
|
name: 'G',
|
1418
1434
|
value: props.colorObj.rgba.g.toString(),
|
1419
1435
|
error: false
|
1420
1436
|
});
|
1421
|
-
var b = reactive({
|
1437
|
+
var b = (0,external_vue_namespaceObject.reactive)({
|
1422
1438
|
key: 'b',
|
1423
1439
|
name: 'B',
|
1424
1440
|
value: props.colorObj.rgba.b.toString(),
|
1425
1441
|
error: false
|
1426
1442
|
});
|
1427
|
-
var a = reactive({
|
1443
|
+
var a = (0,external_vue_namespaceObject.reactive)({
|
1428
1444
|
key: 'a',
|
1429
1445
|
name: 'Alpha',
|
1430
1446
|
value: props.colorObj.rgba.a.toString(),
|
1431
1447
|
error: false
|
1432
1448
|
});
|
1433
|
-
watch(function () {
|
1449
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
1434
1450
|
return props.colorObj;
|
1435
1451
|
}, function (val) {
|
1436
1452
|
if (tinycolor(val.hex).toString() !== tinycolor(hex.value).toString()) {
|
@@ -1528,7 +1544,7 @@ var colorPickerProps = {
|
|
1528
1544
|
};
|
1529
1545
|
}
|
1530
1546
|
}));
|
1531
|
-
;//
|
1547
|
+
;// ../../packages/color-picker/src/utils.ts
|
1532
1548
|
/*
|
1533
1549
|
* Tencent is pleased to support the open source community by making
|
1534
1550
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1634,7 +1650,7 @@ var toRGBAString = function toRGBAString(rgba) {
|
|
1634
1650
|
a = rgba.a;
|
1635
1651
|
return "rgba(".concat([r, g, b, a].join(','), ")");
|
1636
1652
|
};
|
1637
|
-
;//
|
1653
|
+
;// ../../packages/color-picker/src/components/hue-slider.tsx
|
1638
1654
|
|
1639
1655
|
/*
|
1640
1656
|
* Tencent is pleased to support the open source community by making
|
@@ -1664,17 +1680,18 @@ var toRGBAString = function toRGBAString(rgba) {
|
|
1664
1680
|
|
1665
1681
|
|
1666
1682
|
|
1683
|
+
|
1667
1684
|
var hue_slider_colorPickerProps = {
|
1668
1685
|
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
1669
1686
|
};
|
1670
|
-
/* harmony default export */ const hue_slider = (defineComponent({
|
1687
|
+
/* harmony default export */ const hue_slider = ((0,external_vue_namespaceObject.defineComponent)({
|
1671
1688
|
name: 'ColorPicker',
|
1672
1689
|
props: hue_slider_colorPickerProps,
|
1673
1690
|
emits: ['change'],
|
1674
1691
|
setup: function setup(props, _ref) {
|
1675
1692
|
var emit = _ref.emit;
|
1676
|
-
var containerRef = ref(null);
|
1677
|
-
var pointerStyle = computed(function () {
|
1693
|
+
var containerRef = (0,external_vue_namespaceObject.ref)(null);
|
1694
|
+
var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
|
1678
1695
|
return {
|
1679
1696
|
left: "".concat(props.colorObj.hsv.h / 360 * 100, "%")
|
1680
1697
|
};
|
@@ -1771,7 +1788,7 @@ var hue_slider_colorPickerProps = {
|
|
1771
1788
|
};
|
1772
1789
|
}
|
1773
1790
|
}));
|
1774
|
-
;//
|
1791
|
+
;// ../../packages/color-picker/src/components/recommend-colors.tsx
|
1775
1792
|
|
1776
1793
|
|
1777
1794
|
/*
|
@@ -1835,8 +1852,7 @@ var recommend_colors_colorPickerProps = {
|
|
1835
1852
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1836
1853
|
resolveClassName = _usePrefix.resolveClassName;
|
1837
1854
|
var getColorClass = function getColorClass(color, index) {
|
1838
|
-
|
1839
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName('color-picker-empty')), color === ''), _defineProperty(_classes, "".concat(resolveClassName('color-picker-recommend-selected-color')), isFocused.value && selectedIndex.value === index), _classes), "".concat(resolveClassName('color-picker-recommend-color')));
|
1855
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty({}, "".concat(resolveClassName('color-picker-empty')), color === ''), "".concat(resolveClassName('color-picker-recommend-selected-color')), isFocused.value && selectedIndex.value === index), "".concat(resolveClassName('color-picker-recommend-color')));
|
1840
1856
|
};
|
1841
1857
|
var handleKeydown = function handleKeydown(e) {
|
1842
1858
|
if (e.code === 'Tab') {
|
@@ -1924,7 +1940,7 @@ var recommend_colors_colorPickerProps = {
|
|
1924
1940
|
};
|
1925
1941
|
}
|
1926
1942
|
}));
|
1927
|
-
;//
|
1943
|
+
;// ../../packages/color-picker/src/components/saturation-panel.tsx
|
1928
1944
|
|
1929
1945
|
/*
|
1930
1946
|
* Tencent is pleased to support the open source community by making
|
@@ -1954,21 +1970,22 @@ var recommend_colors_colorPickerProps = {
|
|
1954
1970
|
|
1955
1971
|
|
1956
1972
|
|
1973
|
+
|
1957
1974
|
var saturation_panel_colorPickerProps = {
|
1958
1975
|
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
1959
1976
|
};
|
1960
|
-
/* harmony default export */ const saturation_panel = (defineComponent({
|
1977
|
+
/* harmony default export */ const saturation_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
1961
1978
|
props: saturation_panel_colorPickerProps,
|
1962
1979
|
emits: ['change'],
|
1963
1980
|
setup: function setup(props, _ref) {
|
1964
1981
|
var emit = _ref.emit;
|
1965
|
-
var containerRef = ref(null);
|
1966
|
-
var backgroundStyle = computed(function () {
|
1982
|
+
var containerRef = (0,external_vue_namespaceObject.ref)(null);
|
1983
|
+
var backgroundStyle = (0,external_vue_namespaceObject.computed)(function () {
|
1967
1984
|
return {
|
1968
1985
|
background: "hsl(".concat(props.colorObj.hsv.h, ", 100%, 50%)")
|
1969
1986
|
};
|
1970
1987
|
});
|
1971
|
-
var pointerStyle = computed(function () {
|
1988
|
+
var pointerStyle = (0,external_vue_namespaceObject.computed)(function () {
|
1972
1989
|
return {
|
1973
1990
|
top: "".concat((1 - props.colorObj.hsv.v) * 100, "%"),
|
1974
1991
|
left: "".concat(props.colorObj.hsv.s * 100, "%")
|
@@ -2075,7 +2092,7 @@ var saturation_panel_colorPickerProps = {
|
|
2075
2092
|
};
|
2076
2093
|
}
|
2077
2094
|
}));
|
2078
|
-
;//
|
2095
|
+
;// ../../packages/color-picker/src/color-picker.tsx
|
2079
2096
|
|
2080
2097
|
|
2081
2098
|
/*
|
@@ -2164,8 +2181,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2164
2181
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2165
2182
|
resolveClassName = _usePrefix.resolveClassName;
|
2166
2183
|
var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
|
2167
|
-
|
2168
|
-
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName("color-picker-".concat(props.size))), props.size), _defineProperty(_classes, "".concat(resolveClassName('color-picker-show-dropdown')), showDropdown.value), _defineProperty(_classes, "".concat(resolveClassName('color-picker-show-value')), props.showValue), _defineProperty(_classes, "".concat(resolveClassName('color-picker-disabled')), props.disabled || props.readonly), _classes), "".concat(resolveClassName('color-picker'), " ").concat(props.extCls));
|
2184
|
+
return (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(resolveClassName("color-picker-".concat(props.size))), props.size), "".concat(resolveClassName('color-picker-show-dropdown')), showDropdown.value), "".concat(resolveClassName('color-picker-show-value')), props.showValue), "".concat(resolveClassName('color-picker-disabled')), props.disabled || props.readonly), "".concat(resolveClassName('color-picker'), " ").concat(props.extCls));
|
2169
2185
|
});
|
2170
2186
|
// 是否渲染预设值
|
2171
2187
|
var isRenderRecommend = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2189,7 +2205,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2189
2205
|
changeColorFromProps();
|
2190
2206
|
if (props.withValidate) {
|
2191
2207
|
var _formItem$validate;
|
2192
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
2208
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
2193
2209
|
}
|
2194
2210
|
});
|
2195
2211
|
var handleTriggerKeydown = function handleTriggerKeydown(e) {
|
@@ -2225,7 +2241,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2225
2241
|
var openDropdown = function openDropdown() {
|
2226
2242
|
var _dropRef$value;
|
2227
2243
|
showDropdown.value = true;
|
2228
|
-
(_dropRef$value = dropRef.value) === null || _dropRef$value === void 0
|
2244
|
+
(_dropRef$value = dropRef.value) === null || _dropRef$value === void 0 || _dropRef$value.updateDropdown();
|
2229
2245
|
// 展开后默认聚焦于 HEX 输入框,setTimeout 等 transfer 出现
|
2230
2246
|
setTimeout(function () {
|
2231
2247
|
var hexInput = dropRef.value.$el.querySelector(".".concat(resolveClassName('color-picker-input-hex'), " .").concat(resolveClassName('color-picker-input-value')));
|
@@ -2239,7 +2255,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2239
2255
|
return referenceRef.value.focus();
|
2240
2256
|
});
|
2241
2257
|
showDropdown.value = false;
|
2242
|
-
(_dropRef$value2 = dropRef.value) === null || _dropRef$value2 === void 0
|
2258
|
+
(_dropRef$value2 = dropRef.value) === null || _dropRef$value2 === void 0 || _dropRef$value2.destoryDropdown();
|
2243
2259
|
// 3. 关闭组件时如果绑定值与组件内部选择的值不一致(比如既没有使用 v-model 也没有监听 change 事件)显示绑定值
|
2244
2260
|
changeColorFromProps();
|
2245
2261
|
}
|
@@ -2389,7 +2405,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2389
2405
|
};
|
2390
2406
|
}
|
2391
2407
|
}));
|
2392
|
-
;//
|
2408
|
+
;// ../../packages/color-picker/src/index.ts
|
2393
2409
|
/*
|
2394
2410
|
* Tencent is pleased to support the open source community by making
|
2395
2411
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|