bkui-vue 0.0.3-beta.6 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs.js +47 -47
- package/dist/index.esm.js +10444 -10431
- package/dist/index.umd.js +47 -47
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.d.ts +57 -111
- package/lib/affix/index.js +35 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +82 -132
- package/lib/alert/index.js +43 -42
- package/lib/animate-number/index.d.ts +33 -96
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.d.ts +69 -117
- package/lib/backtop/index.js +23 -22
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +120 -153
- package/lib/badge/index.js +40 -39
- package/lib/breadcrumb/index.d.ts +67 -119
- package/lib/breadcrumb/index.js +48 -47
- package/lib/button/button.d.ts +2 -2
- package/lib/button/index.d.ts +119 -155
- package/lib/button/index.js +60 -53
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +129 -158
- package/lib/card/index.js +62 -57
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/index.d.ts +393 -354
- package/lib/cascader/index.js +338 -320
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/index.d.ts +119 -161
- package/lib/checkbox/index.js +77 -78
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.d.ts +65 -82
- package/lib/code-diff/index.js +532 -452
- package/lib/collapse/index.d.ts +144 -168
- package/lib/collapse/index.js +67 -66
- package/lib/collapse-transition/index.d.ts +19 -94
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +128 -154
- package/lib/color-picker/index.js +74 -76
- package/lib/components.js +63 -504
- package/lib/config-provider/index.d.ts +159 -226
- package/lib/config-provider/index.js +49 -45
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/container.d.ts +1 -1
- package/lib/container/index.d.ts +74 -85
- package/lib/container/index.js +47 -46
- 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 +3 -3
- package/lib/date-picker/index.d.ts +384 -351
- package/lib/date-picker/index.js +164 -170
- 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 +1 -1
- package/lib/date-picker/time-picker.d.ts +3 -3
- package/lib/dialog/index.d.ts +355 -309
- package/lib/dialog/index.js +291 -279
- package/lib/directives/index.js +51 -51
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.d.ts +57 -111
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/index.d.ts +94 -136
- package/lib/dropdown/index.js +56 -49
- package/lib/exception/index.d.ts +41 -102
- package/lib/exception/index.js +37 -37
- package/lib/fixed-navbar/index.d.ts +59 -113
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/form.d.ts +1 -1
- package/lib/form/index.d.ts +80 -132
- package/lib/form/index.js +83 -83
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +23 -23
- package/lib/icon/angle-double-left-line.js +23 -23
- package/lib/icon/angle-double-left.js +23 -23
- package/lib/icon/angle-double-right-line.js +23 -23
- package/lib/icon/angle-double-right.js +23 -23
- package/lib/icon/angle-double-up-line.js +23 -23
- package/lib/icon/angle-down-fill.js +23 -23
- package/lib/icon/angle-down-line.js +23 -23
- package/lib/icon/angle-down.js +23 -23
- package/lib/icon/angle-left.js +23 -23
- package/lib/icon/angle-right.js +23 -23
- package/lib/icon/angle-up-fill.js +23 -23
- package/lib/icon/angle-up.js +23 -23
- package/lib/icon/archive-fill.js +23 -23
- package/lib/icon/arrows-left.js +23 -23
- package/lib/icon/arrows-right.js +23 -23
- package/lib/icon/assistant.js +23 -23
- package/lib/icon/audio-fill.js +23 -23
- package/lib/icon/bk.js +23 -23
- package/lib/icon/circle.js +23 -23
- package/lib/icon/close-line.js +23 -23
- package/lib/icon/close.js +23 -23
- package/lib/icon/code.js +23 -23
- package/lib/icon/cog-shape.js +23 -23
- package/lib/icon/collapse-left.js +23 -23
- package/lib/icon/copy-shape.js +23 -23
- package/lib/icon/copy.js +23 -23
- package/lib/icon/data-shape.js +23 -23
- package/lib/icon/del.js +23 -23
- package/lib/icon/doc-fill.js +23 -23
- package/lib/icon/done.js +23 -23
- package/lib/icon/down-shape.js +23 -23
- package/lib/icon/down-small.js +23 -23
- package/lib/icon/edit-line.js +23 -23
- package/lib/icon/ellipsis.js +23 -23
- package/lib/icon/enlarge-line.js +23 -23
- package/lib/icon/error.js +23 -23
- package/lib/icon/excel-fill.js +23 -23
- package/lib/icon/exclamation-circle-shape.js +23 -23
- package/lib/icon/eye.js +23 -23
- package/lib/icon/filliscreen-line.js +23 -23
- package/lib/icon/fix-line.js +23 -23
- package/lib/icon/fix-shape.js +23 -23
- package/lib/icon/folder-open.js +23 -23
- package/lib/icon/folder-shape-open.js +23 -23
- package/lib/icon/folder-shape.js +23 -23
- package/lib/icon/folder.js +23 -23
- package/lib/icon/funnel.js +23 -23
- package/lib/icon/grag-fill.js +23 -23
- package/lib/icon/help-document-fill.js +23 -23
- package/lib/icon/help-fill.js +23 -23
- package/lib/icon/help.js +23 -23
- package/lib/icon/image-fill.js +29 -29
- package/lib/icon/img-error.js +29 -29
- package/lib/icon/img-placehoulder.js +29 -29
- package/lib/icon/index.js +485 -485
- package/lib/icon/info-line.js +29 -29
- package/lib/icon/info.js +29 -29
- package/lib/icon/left-shape.js +29 -29
- package/lib/icon/left-turn-line.js +29 -29
- package/lib/icon/loading.js +29 -29
- package/lib/icon/narrow-line.js +29 -29
- package/lib/icon/original.js +29 -29
- package/lib/icon/pdf-fill.js +29 -29
- package/lib/icon/play-shape.js +29 -29
- package/lib/icon/plus.js +29 -29
- package/lib/icon/ppt-fill.js +29 -29
- package/lib/icon/qq.js +29 -29
- package/lib/icon/right-shape.js +29 -29
- package/lib/icon/right-turn-line.js +29 -29
- package/lib/icon/search.js +29 -29
- package/lib/icon/share.js +29 -29
- package/lib/icon/spinner.js +29 -29
- package/lib/icon/success.js +29 -29
- package/lib/icon/switcher-loading.js +29 -29
- package/lib/icon/text-file.js +29 -29
- package/lib/icon/text-fill.js +29 -29
- package/lib/icon/transfer.js +29 -29
- package/lib/icon/tree-application-shape.js +29 -29
- package/lib/icon/unfull-screen.js +29 -29
- package/lib/icon/unvisible.js +29 -29
- package/lib/icon/up-shape.js +29 -29
- package/lib/icon/upload.js +29 -29
- package/lib/icon/video-fill.js +29 -29
- package/lib/icon/warn.js +29 -29
- package/lib/icon/weixin-pro.js +29 -29
- package/lib/icon/weixin.js +29 -29
- package/lib/image/index.d.ts +113 -149
- package/lib/image/index.js +62 -62
- package/lib/index.js +8 -72
- package/lib/info-box/index.js +296 -284
- package/lib/input/index.d.ts +326 -293
- package/lib/input/index.js +316 -317
- package/lib/link/index.d.ts +73 -122
- package/lib/link/index.js +16 -15
- package/lib/loading/index.d.ts +130 -156
- package/lib/loading/index.js +49 -50
- package/lib/loading/loading.d.ts +1 -1
- package/lib/locale/index.js +2 -4
- package/lib/menu/index.d.ts +51 -112
- package/lib/menu/index.js +49 -48
- package/lib/message/index.js +69 -70
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +261 -249
- package/lib/modal/index.js +535 -75
- package/lib/navigation/index.d.ts +152 -188
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +56 -57
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/index.d.ts +314 -242
- package/lib/overflow-title/index.js +32 -25
- package/lib/pagination/index.d.ts +194 -205
- package/lib/pagination/index.js +116 -109
- package/lib/plugin-popover/index.js +247 -153
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.d.ts +126 -159
- package/lib/pop-confirm/index.js +43 -31
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +374 -330
- package/lib/popover/index.js +251 -156
- package/lib/popover2/index.d.ts +8 -83
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -287
- package/lib/preset.js +16 -58
- package/lib/process/index.d.ts +93 -137
- package/lib/process/index.js +253 -254
- package/lib/progress/index.d.ts +178 -187
- package/lib/progress/index.js +48 -47
- package/lib/progress/progress.d.ts +2 -2
- package/lib/radio/index.d.ts +83 -135
- package/lib/radio/index.js +80 -81
- package/lib/rate/index.d.ts +55 -112
- package/lib/rate/index.js +43 -43
- package/lib/resize-layout/index.d.ts +156 -185
- package/lib/resize-layout/index.js +48 -48
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/search-select/index.d.ts +292 -327
- package/lib/search-select/index.js +310 -293
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.d.ts +3 -3
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/select/index.d.ts +1234 -1135
- package/lib/select/index.js +427 -392
- package/lib/select/select.d.ts +121 -161
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/helper.d.ts +4 -0
- package/lib/shared/index.js +235 -217
- package/lib/sideslider/index.d.ts +247 -233
- package/lib/sideslider/index.js +264 -263
- package/lib/slider/index.d.ts +204 -204
- package/lib/slider/index.js +245 -233
- package/lib/steps/index.d.ts +114 -150
- package/lib/steps/index.js +257 -257
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.d.ts +81 -127
- package/lib/swiper/index.js +35 -34
- package/lib/switcher/index.d.ts +152 -174
- package/lib/switcher/index.js +52 -53
- package/lib/tab/index.d.ts +199 -211
- package/lib/tab/index.js +78 -79
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/index.d.ts +605 -593
- package/lib/table/index.js +275 -237
- package/lib/table/plugins/use-pagination.d.ts +1 -1
- package/lib/table/table.d.ts +1 -1
- package/lib/table/use-common.d.ts +67 -34
- package/lib/table-column/index.d.ts +207 -243
- package/lib/table-column/index.js +61 -62
- package/lib/tag/index.d.ts +95 -142
- package/lib/tag/index.js +41 -40
- package/lib/tag-input/index.d.ts +690 -498
- package/lib/tag-input/index.js +135 -129
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/time-picker/index.d.ts +442 -385
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.d.ts +50 -109
- package/lib/timeline/index.js +20 -20
- package/lib/transfer/index.d.ts +191 -206
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.d.ts +322 -288
- package/lib/tree/index.js +129 -113
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +281 -254
- package/lib/upload/index.js +313 -302
- package/lib/upload/upload.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +337 -242
- package/lib/virtual-render/index.js +66 -65
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/package.json +10 -14
- package/lib/version-log/index.d.ts +0 -298
- package/lib/version-log/index.js +0 -9045
- package/lib/version-log/version-log.css +0 -224
- package/lib/version-log/version-log.d.ts +0 -203
- package/lib/version-log/version-log.less +0 -239
- package/lib/version-log/version-log.variable.css +0 -350
@@ -1,9 +1,10 @@
|
|
1
|
-
import
|
1
|
+
import "./color-picker.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
4
|
-
import * as
|
5
|
-
import * as
|
6
|
-
import * as
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
7
8
|
/******/ // The require scope
|
8
9
|
/******/ var __webpack_require__ = {};
|
9
10
|
/******/
|
@@ -30,46 +31,46 @@ var __webpack_exports__ = {};
|
|
30
31
|
|
31
32
|
// EXPORTS
|
32
33
|
__webpack_require__.d(__webpack_exports__, {
|
33
|
-
|
34
|
+
"default": () => (/* binding */ src)
|
34
35
|
});
|
35
36
|
|
36
37
|
;// CONCATENATED MODULE: external "../shared"
|
37
38
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
39
|
var y = x => () => x
|
39
|
-
const
|
40
|
+
const shared_namespaceObject = x({ ["BKPopover"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.BKPopover, ["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, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
40
41
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
41
|
-
function _typeof(
|
42
|
+
function _typeof(o) {
|
42
43
|
"@babel/helpers - typeof";
|
43
44
|
|
44
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
45
|
-
return typeof
|
46
|
-
} : function (
|
47
|
-
return
|
48
|
-
}, _typeof(
|
45
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
46
|
+
return typeof o;
|
47
|
+
} : function (o) {
|
48
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
49
|
+
}, _typeof(o);
|
49
50
|
}
|
50
51
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
51
52
|
|
52
|
-
function
|
53
|
-
if (
|
54
|
-
var
|
55
|
-
if (
|
56
|
-
var
|
57
|
-
if (
|
53
|
+
function toPrimitive(t, r) {
|
54
|
+
if ("object" != _typeof(t) || !t) return t;
|
55
|
+
var e = t[Symbol.toPrimitive];
|
56
|
+
if (void 0 !== e) {
|
57
|
+
var i = e.call(t, r || "default");
|
58
|
+
if ("object" != _typeof(i)) return i;
|
58
59
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
59
60
|
}
|
60
|
-
return (
|
61
|
+
return ("string" === r ? String : Number)(t);
|
61
62
|
}
|
62
63
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
63
64
|
|
64
65
|
|
65
|
-
function
|
66
|
-
var
|
67
|
-
return _typeof(
|
66
|
+
function toPropertyKey(t) {
|
67
|
+
var i = toPrimitive(t, "string");
|
68
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
68
69
|
}
|
69
70
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
70
71
|
|
71
72
|
function _defineProperty(obj, key, value) {
|
72
|
-
key =
|
73
|
+
key = toPropertyKey(key);
|
73
74
|
if (key in obj) {
|
74
75
|
Object.defineProperty(obj, key, {
|
75
76
|
value: value,
|
@@ -1273,22 +1274,22 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
1273
1274
|
var external_vue_types_y = x => () => x
|
1274
1275
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
1275
1276
|
;// CONCATENATED MODULE: external "../config-provider"
|
1276
|
-
var
|
1277
|
-
var
|
1278
|
-
const
|
1277
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1278
|
+
var config_provider_y = x => () => x
|
1279
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
1279
1280
|
;// CONCATENATED MODULE: external "../directives"
|
1280
|
-
var
|
1281
|
-
var
|
1282
|
-
const
|
1281
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1282
|
+
var directives_y = x => () => x
|
1283
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
1283
1284
|
;// CONCATENATED MODULE: external "../icon"
|
1284
|
-
var
|
1285
|
-
var
|
1286
|
-
const
|
1285
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1286
|
+
var icon_y = x => () => x
|
1287
|
+
const icon_namespaceObject = icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp });
|
1287
1288
|
;// CONCATENATED MODULE: ../../packages/date-picker/src/base/picker-dropdown.tsx
|
1288
1289
|
|
1289
1290
|
|
1290
|
-
function ownKeys(
|
1291
|
-
function _objectSpread(
|
1291
|
+
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; }
|
1292
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1292
1293
|
/*
|
1293
1294
|
* Tencent is pleased to support the open source community by making
|
1294
1295
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -1375,7 +1376,7 @@ var pickerDropdownProps = {
|
|
1375
1376
|
var forceUpdate = function forceUpdate() {
|
1376
1377
|
if (popoverInstance) {
|
1377
1378
|
var _popoverInstance, _popoverInstance$forc;
|
1378
|
-
(_popoverInstance = popoverInstance) === null || _popoverInstance === void 0 || (_popoverInstance$forc = _popoverInstance.forceUpdate) === null || _popoverInstance$forc === void 0
|
1379
|
+
(_popoverInstance = popoverInstance) === null || _popoverInstance === void 0 || (_popoverInstance$forc = _popoverInstance.forceUpdate) === null || _popoverInstance$forc === void 0 || _popoverInstance$forc.call(_popoverInstance);
|
1379
1380
|
}
|
1380
1381
|
};
|
1381
1382
|
var destoryDropdown = function destoryDropdown() {
|
@@ -1451,7 +1452,7 @@ var pickerDropdownProps = {
|
|
1451
1452
|
});
|
1452
1453
|
} else {
|
1453
1454
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
1454
|
-
popoverInstance = new
|
1455
|
+
popoverInstance = new shared_namespaceObject.BKPopover(props.triggerRef, refContentRef.value, {
|
1455
1456
|
placement: props.placement,
|
1456
1457
|
trigger: 'manual',
|
1457
1458
|
modifiers: [
|
@@ -1505,18 +1506,17 @@ var pickerDropdownProps = {
|
|
1505
1506
|
});
|
1506
1507
|
}
|
1507
1508
|
};
|
1508
|
-
|
1509
1509
|
var styles = (0,external_vue_namespaceObject.computed)(function () {
|
1510
1510
|
var style = {};
|
1511
1511
|
if (props.appendToBody) {
|
1512
|
-
style['z-index'] = 1060 +
|
1512
|
+
style['z-index'] = 1060 + shared_namespaceObject.bkZIndexManager.getModalNextIndex();
|
1513
1513
|
}
|
1514
1514
|
return style;
|
1515
1515
|
});
|
1516
1516
|
var state = (0,external_vue_namespaceObject.reactive)({
|
1517
1517
|
styles: styles
|
1518
1518
|
});
|
1519
|
-
var _usePrefix = (0,
|
1519
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1520
1520
|
resolveClassName = _usePrefix.resolveClassName;
|
1521
1521
|
return _objectSpread(_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(state)), {}, {
|
1522
1522
|
refContentRef: refContentRef,
|
@@ -1567,7 +1567,7 @@ var pickerDropdownProps = {
|
|
1567
1567
|
|
1568
1568
|
|
1569
1569
|
var inputContainerProps = {
|
1570
|
-
info:
|
1570
|
+
info: shared_namespaceObject.PropTypes.object.isRequired
|
1571
1571
|
};
|
1572
1572
|
/* harmony default export */ const input_container = ((0,external_vue_namespaceObject.defineComponent)({
|
1573
1573
|
props: inputContainerProps,
|
@@ -1584,10 +1584,10 @@ var inputContainerProps = {
|
|
1584
1584
|
var value = e.target.value;
|
1585
1585
|
emit('input', key, value);
|
1586
1586
|
};
|
1587
|
-
var _usePrefix = (0,
|
1587
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1588
1588
|
resolveClassName = _usePrefix.resolveClassName;
|
1589
1589
|
var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
|
1590
|
-
return (0,
|
1590
|
+
return (0,shared_namespaceObject.classes)({
|
1591
1591
|
error: props.info.error
|
1592
1592
|
}, "".concat(resolveClassName('color-picker-input-value')));
|
1593
1593
|
});
|
@@ -1639,7 +1639,7 @@ var inputContainerProps = {
|
|
1639
1639
|
|
1640
1640
|
|
1641
1641
|
var colorPickerProps = {
|
1642
|
-
colorObj:
|
1642
|
+
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
1643
1643
|
};
|
1644
1644
|
/* harmony default export */ const color_input = ((0,external_vue_namespaceObject.defineComponent)({
|
1645
1645
|
name: 'ColorPicker',
|
@@ -1746,7 +1746,7 @@ var colorPickerProps = {
|
|
1746
1746
|
}
|
1747
1747
|
return result;
|
1748
1748
|
};
|
1749
|
-
var _usePrefix = (0,
|
1749
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1750
1750
|
resolveClassName = _usePrefix.resolveClassName;
|
1751
1751
|
return function () {
|
1752
1752
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1913,7 +1913,7 @@ var toRGBAString = function toRGBAString(rgba) {
|
|
1913
1913
|
|
1914
1914
|
|
1915
1915
|
var hue_slider_colorPickerProps = {
|
1916
|
-
colorObj:
|
1916
|
+
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
1917
1917
|
};
|
1918
1918
|
/* harmony default export */ const hue_slider = ((0,external_vue_namespaceObject.defineComponent)({
|
1919
1919
|
name: 'ColorPicker',
|
@@ -1997,7 +1997,7 @@ var hue_slider_colorPickerProps = {
|
|
1997
1997
|
});
|
1998
1998
|
}
|
1999
1999
|
};
|
2000
|
-
var _usePrefix = (0,
|
2000
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2001
2001
|
resolveClassName = _usePrefix.resolveClassName;
|
2002
2002
|
return function () {
|
2003
2003
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -2053,11 +2053,11 @@ var hue_slider_colorPickerProps = {
|
|
2053
2053
|
|
2054
2054
|
|
2055
2055
|
var recommend_colors_colorPickerProps = {
|
2056
|
-
colorObj:
|
2057
|
-
recommend:
|
2056
|
+
colorObj: shared_namespaceObject.PropTypes.object.isRequired,
|
2057
|
+
recommend: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.array.def(function () {
|
2058
2058
|
return [];
|
2059
|
-
}),
|
2060
|
-
recommendEmpty:
|
2059
|
+
}), shared_namespaceObject.PropTypes.bool.def(true)]).isRequired,
|
2060
|
+
recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true)
|
2061
2061
|
};
|
2062
2062
|
/* harmony default export */ const recommend_colors = ((0,external_vue_namespaceObject.defineComponent)({
|
2063
2063
|
props: recommend_colors_colorPickerProps,
|
@@ -2080,11 +2080,10 @@ var recommend_colors_colorPickerProps = {
|
|
2080
2080
|
var colors = (0,external_vue_namespaceObject.computed)(function () {
|
2081
2081
|
return getColorsFromRecommend(props.recommend);
|
2082
2082
|
});
|
2083
|
-
var _usePrefix = (0,
|
2083
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2084
2084
|
resolveClassName = _usePrefix.resolveClassName;
|
2085
2085
|
var getColorClass = function getColorClass(color, index) {
|
2086
|
-
|
2087
|
-
return (0,external_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')));
|
2086
|
+
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')));
|
2088
2087
|
};
|
2089
2088
|
var handleKeydown = function handleKeydown(e) {
|
2090
2089
|
if (e.code === 'Tab') {
|
@@ -2204,7 +2203,7 @@ var recommend_colors_colorPickerProps = {
|
|
2204
2203
|
|
2205
2204
|
|
2206
2205
|
var saturation_panel_colorPickerProps = {
|
2207
|
-
colorObj:
|
2206
|
+
colorObj: shared_namespaceObject.PropTypes.object.isRequired
|
2208
2207
|
};
|
2209
2208
|
/* harmony default export */ const saturation_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
2210
2209
|
props: saturation_panel_colorPickerProps,
|
@@ -2298,7 +2297,7 @@ var saturation_panel_colorPickerProps = {
|
|
2298
2297
|
a: a
|
2299
2298
|
});
|
2300
2299
|
};
|
2301
|
-
var _usePrefix = (0,
|
2300
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2302
2301
|
resolveClassName = _usePrefix.resolveClassName;
|
2303
2302
|
return function () {
|
2304
2303
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -2372,34 +2371,34 @@ var ColorPickSizeEnum;
|
|
2372
2371
|
ColorPickSizeEnum["LARGE"] = "large";
|
2373
2372
|
})(ColorPickSizeEnum || (ColorPickSizeEnum = {}));
|
2374
2373
|
var color_picker_colorPickerProps = {
|
2375
|
-
modelValue:
|
2376
|
-
disabled:
|
2377
|
-
readonly:
|
2378
|
-
transfer:
|
2374
|
+
modelValue: shared_namespaceObject.PropTypes.string.def(''),
|
2375
|
+
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
2376
|
+
readonly: shared_namespaceObject.PropTypes.bool.def(false),
|
2377
|
+
transfer: shared_namespaceObject.PropTypes.bool.def(false),
|
2379
2378
|
size: (0,external_vue_types_namespaceObject.toType)('colorPickSize', {}).def(ColorPickSizeEnum.UNKNOWN),
|
2380
|
-
showValue:
|
2379
|
+
showValue: shared_namespaceObject.PropTypes.bool.def(true),
|
2381
2380
|
// true 展示组件内置预设值
|
2382
2381
|
// false 不展示预设值
|
2383
2382
|
// 数组 自定义预设值
|
2384
|
-
recommend:
|
2383
|
+
recommend: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.array.def(function () {
|
2385
2384
|
return [];
|
2386
|
-
}),
|
2387
|
-
extCls:
|
2388
|
-
withValidate:
|
2389
|
-
recommendEmpty:
|
2385
|
+
}), shared_namespaceObject.PropTypes.bool.def(true)]).def(true),
|
2386
|
+
extCls: shared_namespaceObject.PropTypes.string.def(''),
|
2387
|
+
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
2388
|
+
recommendEmpty: shared_namespaceObject.PropTypes.bool.def(true)
|
2390
2389
|
};
|
2391
2390
|
var whiteColorObj = formatColor('#FFFFFF');
|
2392
2391
|
/* harmony default export */ const color_picker = ((0,external_vue_namespaceObject.defineComponent)({
|
2393
2392
|
name: 'ColorPicker',
|
2394
2393
|
directives: {
|
2395
|
-
clickoutside:
|
2394
|
+
clickoutside: directives_namespaceObject.clickoutside
|
2396
2395
|
},
|
2397
2396
|
props: color_picker_colorPickerProps,
|
2398
2397
|
emits: ['update:modelValue', 'change'],
|
2399
2398
|
setup: function setup(props, _ref) {
|
2400
2399
|
var emit = _ref.emit,
|
2401
2400
|
slots = _ref.slots;
|
2402
|
-
var formItem = (0,
|
2401
|
+
var formItem = (0,shared_namespaceObject.useFormItem)();
|
2403
2402
|
var showDropdown = (0,external_vue_namespaceObject.ref)(false);
|
2404
2403
|
// 当前颜色的色值,如果为空字符串显示:默认白色背景 + 中间一个叉
|
2405
2404
|
var colorStr = (0,external_vue_namespaceObject.ref)('');
|
@@ -2408,11 +2407,10 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2408
2407
|
var dropRef = (0,external_vue_namespaceObject.ref)(null);
|
2409
2408
|
var saturationPanelRef = (0,external_vue_namespaceObject.ref)(null);
|
2410
2409
|
var referenceRef = (0,external_vue_namespaceObject.ref)(null);
|
2411
|
-
var _usePrefix = (0,
|
2410
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
2412
2411
|
resolveClassName = _usePrefix.resolveClassName;
|
2413
2412
|
var colorPickerCls = (0,external_vue_namespaceObject.computed)(function () {
|
2414
|
-
|
2415
|
-
return (0,external_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));
|
2413
|
+
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));
|
2416
2414
|
});
|
2417
2415
|
// 是否渲染预设值
|
2418
2416
|
var isRenderRecommend = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2431,7 +2429,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2431
2429
|
changeColorFromProps();
|
2432
2430
|
if (props.withValidate) {
|
2433
2431
|
var _formItem$validate;
|
2434
|
-
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0
|
2432
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 || _formItem$validate.call(formItem, 'change');
|
2435
2433
|
}
|
2436
2434
|
});
|
2437
2435
|
var handleTriggerKeydown = function handleTriggerKeydown(e) {
|
@@ -2467,7 +2465,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2467
2465
|
var openDropdown = function openDropdown() {
|
2468
2466
|
var _dropRef$value;
|
2469
2467
|
showDropdown.value = true;
|
2470
|
-
(_dropRef$value = dropRef.value) === null || _dropRef$value === void 0
|
2468
|
+
(_dropRef$value = dropRef.value) === null || _dropRef$value === void 0 || _dropRef$value.updateDropdown();
|
2471
2469
|
// 展开后默认聚焦于 HEX 输入框,setTimeout 等 transfer 出现
|
2472
2470
|
setTimeout(function () {
|
2473
2471
|
var hexInput = dropRef.value.$el.querySelector(".".concat(resolveClassName('color-picker-input-hex'), " .").concat(resolveClassName('color-picker-input-value')));
|
@@ -2481,7 +2479,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2481
2479
|
return referenceRef.value.focus();
|
2482
2480
|
});
|
2483
2481
|
showDropdown.value = false;
|
2484
|
-
(_dropRef$value2 = dropRef.value) === null || _dropRef$value2 === void 0
|
2482
|
+
(_dropRef$value2 = dropRef.value) === null || _dropRef$value2 === void 0 || _dropRef$value2.destoryDropdown();
|
2485
2483
|
// 3. 关闭组件时如果绑定值与组件内部选择的值不一致(比如既没有使用 v-model 也没有监听 change 事件)显示绑定值
|
2486
2484
|
changeColorFromProps();
|
2487
2485
|
}
|
@@ -2582,7 +2580,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2582
2580
|
"class": "".concat(resolveClassName('color-picker-text'))
|
2583
2581
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [colorStr.value])]) : undefined, (0,external_vue_namespaceObject.createVNode)("div", {
|
2584
2582
|
"class": "".concat(resolveClassName('color-picker-icon'))
|
2585
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
2583
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
|
2586
2584
|
"class": "icon-angle-down"
|
2587
2585
|
}, null)])]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
2588
2586
|
"name": "bk-fade-down-transition"
|
@@ -2659,7 +2657,7 @@ var whiteColorObj = formatColor('#FFFFFF');
|
|
2659
2657
|
*/
|
2660
2658
|
|
2661
2659
|
|
2662
|
-
var BkColorPicker = (0,
|
2660
|
+
var BkColorPicker = (0,shared_namespaceObject.withInstall)(color_picker);
|
2663
2661
|
/* harmony default export */ const src = (BkColorPicker);
|
2664
|
-
var __webpack_exports__default = __webpack_exports__
|
2662
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
2665
2663
|
export { __webpack_exports__default as default };
|