bkui-vue 0.0.2-beta.97 → 0.0.2-beta.99
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 +27 -27
- package/dist/index.esm.js +4455 -4509
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +122 -0
- package/lib/affix/affix.variable.css +245 -1
- package/lib/alert/alert.css +125 -3
- package/lib/alert/alert.variable.css +245 -1
- package/lib/backtop/backtop.css +125 -3
- package/lib/backtop/backtop.variable.css +370 -4
- package/lib/badge/badge.css +148 -26
- package/lib/badge/badge.variable.css +245 -1
- package/lib/breadcrumb/breadcrumb.css +127 -5
- package/lib/breadcrumb/breadcrumb.variable.css +372 -6
- package/lib/button/button.css +249 -127
- package/lib/button/button.variable.css +245 -1
- package/lib/card/card.css +126 -4
- package/lib/card/card.variable.css +371 -5
- package/lib/cascader/cascader.css +145 -23
- package/lib/cascader/cascader.variable.css +390 -24
- package/lib/checkbox/checkbox.css +131 -9
- package/lib/checkbox/checkbox.variable.css +245 -1
- package/lib/code-diff/code-diff.css +122 -0
- package/lib/code-diff/code-diff.variable.css +245 -1
- package/lib/collapse/collapse.css +123 -1
- package/lib/collapse/collapse.variable.css +245 -1
- package/lib/collapse-transition/collapse-transition.css +122 -0
- package/lib/collapse-transition/collapse-transition.variable.css +245 -1
- package/lib/color-picker/color-picker.css +122 -0
- package/lib/color-picker/color-picker.variable.css +245 -1
- package/lib/config-provider/config-provider.css +122 -0
- package/lib/config-provider/config-provider.variable.css +245 -1
- package/lib/container/container.css +122 -0
- package/lib/container/container.variable.css +367 -1
- package/lib/date-picker/date-picker.css +139 -17
- package/lib/date-picker/date-picker.variable.css +245 -1
- package/lib/dialog/dialog.css +131 -9
- package/lib/dialog/dialog.variable.css +376 -10
- package/lib/divider/divider.css +125 -3
- package/lib/divider/divider.variable.css +245 -1
- package/lib/dropdown/dropdown.css +122 -0
- package/lib/dropdown/dropdown.variable.css +367 -1
- package/lib/exception/exception.css +122 -0
- package/lib/exception/exception.variable.css +245 -1
- package/lib/fixed-navbar/fixed-navbar.css +126 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +245 -1
- package/lib/form/form.css +122 -0
- package/lib/form/form.variable.css +245 -1
- package/lib/image/image-viewer.css +122 -0
- package/lib/image/image-viewer.variable.css +245 -1
- package/lib/image/image.css +122 -0
- package/lib/image/image.variable.css +367 -1
- package/lib/info-box/info-box.css +122 -0
- package/lib/info-box/info-box.d.ts +4 -0
- package/lib/info-box/info-box.variable.css +245 -1
- package/lib/input/input.css +190 -68
- package/lib/input/input.variable.css +435 -69
- package/lib/link/link.css +138 -16
- package/lib/link/link.variable.css +245 -1
- package/lib/loading/loading.css +138 -16
- package/lib/loading/loading.variable.css +383 -17
- package/lib/menu/menu.css +140 -18
- package/lib/menu/menu.variable.css +385 -19
- package/lib/menu/submenu.css +122 -0
- package/lib/menu/submenu.variable.css +245 -1
- package/lib/message/message.css +143 -21
- package/lib/message/message.variable.css +245 -1
- package/lib/modal/modal.css +122 -0
- package/lib/modal/modal.variable.css +367 -1
- package/lib/navigation/navigation.css +124 -2
- package/lib/navigation/navigation.variable.css +245 -1
- package/lib/notify/notify.css +129 -7
- package/lib/notify/notify.variable.css +245 -1
- package/lib/pagination/pagination.css +123 -1
- package/lib/pagination/pagination.variable.css +245 -1
- package/lib/plugin-popover/index.js +93 -277
- package/lib/pop-confirm/pop-confirm.css +122 -0
- package/lib/pop-confirm/pop-confirm.variable.css +245 -1
- package/lib/popover/index.js +93 -277
- package/lib/popover/popover.css +122 -0
- package/lib/popover/popover.variable.css +245 -1
- package/lib/process/process.css +135 -13
- package/lib/process/process.variable.css +245 -1
- package/lib/progress/progress.css +126 -4
- package/lib/progress/progress.variable.css +371 -5
- package/lib/radio/radio.css +153 -31
- package/lib/radio/radio.variable.css +245 -1
- package/lib/rate/rate.css +122 -0
- package/lib/rate/rate.variable.css +245 -1
- package/lib/rate/star.css +122 -0
- package/lib/rate/star.variable.css +245 -1
- package/lib/resize-layout/resize-layout.css +122 -0
- package/lib/resize-layout/resize-layout.variable.css +245 -1
- package/lib/search-select/search-select.css +155 -33
- package/lib/search-select/search-select.variable.css +400 -34
- package/lib/select/select.css +146 -24
- package/lib/select/select.variable.css +391 -25
- package/lib/shared/index.js +91 -275
- package/lib/sideslider/sideslider.css +123 -1
- package/lib/sideslider/sideslider.variable.css +245 -1
- package/lib/slider/slider.css +126 -4
- package/lib/slider/slider.variable.css +245 -1
- package/lib/steps/steps.css +158 -36
- package/lib/steps/steps.variable.css +245 -1
- package/lib/styles/mixins/animate.css +122 -0
- package/lib/styles/mixins/animate.variable.css +245 -1
- package/lib/styles/mixins/mixins.css +122 -0
- package/lib/styles/mixins/mixins.variable.css +122 -0
- package/lib/styles/mixins/popper.css +122 -0
- package/lib/styles/mixins/popper.variable.css +245 -1
- package/lib/styles/mixins/scroll.css +122 -0
- package/lib/styles/mixins/scroll.variable.css +245 -1
- package/lib/styles/reset.css +122 -0
- package/lib/styles/reset.variable.css +245 -1
- package/lib/styles/themes/themes.css +122 -0
- package/lib/styles/themes/themes.less +290 -121
- package/lib/styles/themes/themes.variable.css +122 -0
- package/lib/swiper/swiper.css +122 -0
- package/lib/swiper/swiper.variable.css +245 -1
- package/lib/switcher/switcher.css +139 -17
- package/lib/switcher/switcher.variable.css +384 -18
- package/lib/tab/tab.css +139 -17
- package/lib/tab/tab.variable.css +245 -1
- package/lib/table/index.js +94 -278
- package/lib/table/plugins/head-filter.css +124 -2
- package/lib/table/plugins/head-filter.variable.css +245 -1
- package/lib/table/plugins/head-sort.css +122 -0
- package/lib/table/plugins/head-sort.variable.css +245 -1
- package/lib/table/plugins/settings.css +122 -0
- package/lib/table/plugins/settings.variable.css +245 -1
- package/lib/table/table.css +282 -160
- package/lib/table/table.variable.css +527 -161
- package/lib/tag/tag.css +127 -5
- package/lib/tag/tag.variable.css +245 -1
- package/lib/tag-input/tag-input.css +140 -18
- package/lib/tag-input/tag-input.variable.css +245 -1
- package/lib/time-picker/time-picker.css +122 -0
- package/lib/time-picker/time-picker.variable.css +245 -1
- package/lib/timeline/timeline.css +141 -19
- package/lib/timeline/timeline.variable.css +245 -1
- package/lib/transfer/transfer.css +141 -19
- package/lib/transfer/transfer.variable.css +245 -1
- package/lib/tree/index.js +92 -276
- package/lib/tree/tree.css +131 -9
- package/lib/tree/tree.variable.css +376 -10
- package/lib/upload/upload.css +149 -27
- package/lib/upload/upload.variable.css +394 -28
- package/lib/virtual-render/virtual-render.css +122 -0
- package/lib/virtual-render/virtual-render.variable.css +367 -1
- package/package.json +2 -1
package/lib/tree/index.js
CHANGED
@@ -6,274 +6,8 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__exception_12c197e0__ from "../exception";
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__checkbox_a57bcb84__ from "../checkbox";
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
9
|
-
/******/
|
10
|
-
|
11
|
-
/***/ 8022:
|
12
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
13
|
-
|
14
|
-
var v1 = __webpack_require__(4481);
|
15
|
-
var v4 = __webpack_require__(6426);
|
16
|
-
|
17
|
-
var uuid = v4;
|
18
|
-
uuid.v1 = v1;
|
19
|
-
uuid.v4 = v4;
|
20
|
-
|
21
|
-
module.exports = uuid;
|
22
|
-
|
23
|
-
|
24
|
-
/***/ }),
|
25
|
-
|
26
|
-
/***/ 8725:
|
27
|
-
/***/ ((module) => {
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
31
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
32
|
-
*/
|
33
|
-
var byteToHex = [];
|
34
|
-
for (var i = 0; i < 256; ++i) {
|
35
|
-
byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
36
|
-
}
|
37
|
-
|
38
|
-
function bytesToUuid(buf, offset) {
|
39
|
-
var i = offset || 0;
|
40
|
-
var bth = byteToHex;
|
41
|
-
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
|
42
|
-
return ([
|
43
|
-
bth[buf[i++]], bth[buf[i++]],
|
44
|
-
bth[buf[i++]], bth[buf[i++]], '-',
|
45
|
-
bth[buf[i++]], bth[buf[i++]], '-',
|
46
|
-
bth[buf[i++]], bth[buf[i++]], '-',
|
47
|
-
bth[buf[i++]], bth[buf[i++]], '-',
|
48
|
-
bth[buf[i++]], bth[buf[i++]],
|
49
|
-
bth[buf[i++]], bth[buf[i++]],
|
50
|
-
bth[buf[i++]], bth[buf[i++]]
|
51
|
-
]).join('');
|
52
|
-
}
|
53
|
-
|
54
|
-
module.exports = bytesToUuid;
|
55
|
-
|
56
|
-
|
57
|
-
/***/ }),
|
58
|
-
|
59
|
-
/***/ 9157:
|
60
|
-
/***/ ((module) => {
|
61
|
-
|
62
|
-
// Unique ID creation requires a high quality random # generator. In the
|
63
|
-
// browser this is a little complicated due to unknown quality of Math.random()
|
64
|
-
// and inconsistent support for the `crypto` API. We do the best we can via
|
65
|
-
// feature-detection
|
66
|
-
|
67
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto
|
68
|
-
// implementation. Also, find the complete implementation of crypto on IE11.
|
69
|
-
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
|
70
|
-
(typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
|
71
|
-
|
72
|
-
if (getRandomValues) {
|
73
|
-
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
|
74
|
-
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
|
75
|
-
|
76
|
-
module.exports = function whatwgRNG() {
|
77
|
-
getRandomValues(rnds8);
|
78
|
-
return rnds8;
|
79
|
-
};
|
80
|
-
} else {
|
81
|
-
// Math.random()-based (RNG)
|
82
|
-
//
|
83
|
-
// If all else fails, use Math.random(). It's fast, but is of unspecified
|
84
|
-
// quality.
|
85
|
-
var rnds = new Array(16);
|
86
|
-
|
87
|
-
module.exports = function mathRNG() {
|
88
|
-
for (var i = 0, r; i < 16; i++) {
|
89
|
-
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
|
90
|
-
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
|
91
|
-
}
|
92
|
-
|
93
|
-
return rnds;
|
94
|
-
};
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
/***/ }),
|
99
|
-
|
100
|
-
/***/ 4481:
|
101
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
102
|
-
|
103
|
-
var rng = __webpack_require__(9157);
|
104
|
-
var bytesToUuid = __webpack_require__(8725);
|
105
|
-
|
106
|
-
// **`v1()` - Generate time-based UUID**
|
107
|
-
//
|
108
|
-
// Inspired by https://github.com/LiosK/UUID.js
|
109
|
-
// and http://docs.python.org/library/uuid.html
|
110
|
-
|
111
|
-
var _nodeId;
|
112
|
-
var _clockseq;
|
113
|
-
|
114
|
-
// Previous uuid creation time
|
115
|
-
var _lastMSecs = 0;
|
116
|
-
var _lastNSecs = 0;
|
117
|
-
|
118
|
-
// See https://github.com/uuidjs/uuid for API details
|
119
|
-
function v1(options, buf, offset) {
|
120
|
-
var i = buf && offset || 0;
|
121
|
-
var b = buf || [];
|
122
|
-
|
123
|
-
options = options || {};
|
124
|
-
var node = options.node || _nodeId;
|
125
|
-
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
126
|
-
|
127
|
-
// node and clockseq need to be initialized to random values if they're not
|
128
|
-
// specified. We do this lazily to minimize issues related to insufficient
|
129
|
-
// system entropy. See #189
|
130
|
-
if (node == null || clockseq == null) {
|
131
|
-
var seedBytes = rng();
|
132
|
-
if (node == null) {
|
133
|
-
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
134
|
-
node = _nodeId = [
|
135
|
-
seedBytes[0] | 0x01,
|
136
|
-
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
137
|
-
];
|
138
|
-
}
|
139
|
-
if (clockseq == null) {
|
140
|
-
// Per 4.2.2, randomize (14 bit) clockseq
|
141
|
-
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
142
|
-
}
|
143
|
-
}
|
144
|
-
|
145
|
-
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
146
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
147
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
148
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
149
|
-
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
150
|
-
|
151
|
-
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
152
|
-
// cycle to simulate higher resolution clock
|
153
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
154
|
-
|
155
|
-
// Time since last uuid creation (in msecs)
|
156
|
-
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
|
157
|
-
|
158
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
159
|
-
if (dt < 0 && options.clockseq === undefined) {
|
160
|
-
clockseq = clockseq + 1 & 0x3fff;
|
161
|
-
}
|
162
|
-
|
163
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
164
|
-
// time interval
|
165
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
166
|
-
nsecs = 0;
|
167
|
-
}
|
168
|
-
|
169
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
170
|
-
if (nsecs >= 10000) {
|
171
|
-
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
|
172
|
-
}
|
173
|
-
|
174
|
-
_lastMSecs = msecs;
|
175
|
-
_lastNSecs = nsecs;
|
176
|
-
_clockseq = clockseq;
|
177
|
-
|
178
|
-
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
179
|
-
msecs += 12219292800000;
|
180
|
-
|
181
|
-
// `time_low`
|
182
|
-
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
183
|
-
b[i++] = tl >>> 24 & 0xff;
|
184
|
-
b[i++] = tl >>> 16 & 0xff;
|
185
|
-
b[i++] = tl >>> 8 & 0xff;
|
186
|
-
b[i++] = tl & 0xff;
|
187
|
-
|
188
|
-
// `time_mid`
|
189
|
-
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
190
|
-
b[i++] = tmh >>> 8 & 0xff;
|
191
|
-
b[i++] = tmh & 0xff;
|
192
|
-
|
193
|
-
// `time_high_and_version`
|
194
|
-
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
195
|
-
b[i++] = tmh >>> 16 & 0xff;
|
196
|
-
|
197
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
198
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
199
|
-
|
200
|
-
// `clock_seq_low`
|
201
|
-
b[i++] = clockseq & 0xff;
|
202
|
-
|
203
|
-
// `node`
|
204
|
-
for (var n = 0; n < 6; ++n) {
|
205
|
-
b[i + n] = node[n];
|
206
|
-
}
|
207
|
-
|
208
|
-
return buf ? buf : bytesToUuid(b);
|
209
|
-
}
|
210
|
-
|
211
|
-
module.exports = v1;
|
212
|
-
|
213
|
-
|
214
|
-
/***/ }),
|
215
|
-
|
216
|
-
/***/ 6426:
|
217
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
218
|
-
|
219
|
-
var rng = __webpack_require__(9157);
|
220
|
-
var bytesToUuid = __webpack_require__(8725);
|
221
|
-
|
222
|
-
function v4(options, buf, offset) {
|
223
|
-
var i = buf && offset || 0;
|
224
|
-
|
225
|
-
if (typeof(options) == 'string') {
|
226
|
-
buf = options === 'binary' ? new Array(16) : null;
|
227
|
-
options = null;
|
228
|
-
}
|
229
|
-
options = options || {};
|
230
|
-
|
231
|
-
var rnds = options.random || (options.rng || rng)();
|
232
|
-
|
233
|
-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
234
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
235
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
236
|
-
|
237
|
-
// Copy bytes to buffer, if provided
|
238
|
-
if (buf) {
|
239
|
-
for (var ii = 0; ii < 16; ++ii) {
|
240
|
-
buf[i + ii] = rnds[ii];
|
241
|
-
}
|
242
|
-
}
|
243
|
-
|
244
|
-
return buf || bytesToUuid(rnds);
|
245
|
-
}
|
246
|
-
|
247
|
-
module.exports = v4;
|
248
|
-
|
249
|
-
|
250
|
-
/***/ })
|
251
|
-
|
252
|
-
/******/ });
|
253
|
-
/************************************************************************/
|
254
|
-
/******/ // The module cache
|
255
|
-
/******/ var __webpack_module_cache__ = {};
|
256
|
-
/******/
|
257
|
-
/******/ // The require function
|
258
|
-
/******/ function __webpack_require__(moduleId) {
|
259
|
-
/******/ // Check if module is in cache
|
260
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
261
|
-
/******/ if (cachedModule !== undefined) {
|
262
|
-
/******/ return cachedModule.exports;
|
263
|
-
/******/ }
|
264
|
-
/******/ // Create a new module (and put it into the cache)
|
265
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
266
|
-
/******/ // no module.id needed
|
267
|
-
/******/ // no module.loaded needed
|
268
|
-
/******/ exports: {}
|
269
|
-
/******/ };
|
270
|
-
/******/
|
271
|
-
/******/ // Execute the module function
|
272
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
273
|
-
/******/
|
274
|
-
/******/ // Return the exports of the module
|
275
|
-
/******/ return module.exports;
|
276
|
-
/******/ }
|
9
|
+
/******/ // The require scope
|
10
|
+
/******/ var __webpack_require__ = {};
|
277
11
|
/******/
|
278
12
|
/************************************************************************/
|
279
13
|
/******/ /* webpack/runtime/define property getters */
|
@@ -295,8 +29,6 @@ module.exports = v4;
|
|
295
29
|
/******/
|
296
30
|
/************************************************************************/
|
297
31
|
var __webpack_exports__ = {};
|
298
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
299
|
-
(() => {
|
300
32
|
|
301
33
|
// EXPORTS
|
302
34
|
__webpack_require__.d(__webpack_exports__, {
|
@@ -2122,8 +1854,94 @@ var use_search_this = undefined;
|
|
2122
1854
|
showChildNodes: showChildNodes
|
2123
1855
|
};
|
2124
1856
|
});
|
2125
|
-
|
2126
|
-
|
1857
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
1858
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
1859
|
+
/* harmony default export */ const esm_browser_native = ({
|
1860
|
+
randomUUID
|
1861
|
+
});
|
1862
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/rng.js
|
1863
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
1864
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
1865
|
+
// generators (like Math.random()).
|
1866
|
+
let getRandomValues;
|
1867
|
+
const rnds8 = new Uint8Array(16);
|
1868
|
+
function rng() {
|
1869
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
1870
|
+
if (!getRandomValues) {
|
1871
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
1872
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
1873
|
+
|
1874
|
+
if (!getRandomValues) {
|
1875
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
1876
|
+
}
|
1877
|
+
}
|
1878
|
+
|
1879
|
+
return getRandomValues(rnds8);
|
1880
|
+
}
|
1881
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/stringify.js
|
1882
|
+
|
1883
|
+
/**
|
1884
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
1885
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
1886
|
+
*/
|
1887
|
+
|
1888
|
+
const byteToHex = [];
|
1889
|
+
|
1890
|
+
for (let i = 0; i < 256; ++i) {
|
1891
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
1892
|
+
}
|
1893
|
+
|
1894
|
+
function unsafeStringify(arr, offset = 0) {
|
1895
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
1896
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
1897
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
1898
|
+
}
|
1899
|
+
|
1900
|
+
function stringify(arr, offset = 0) {
|
1901
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
1902
|
+
// of the following:
|
1903
|
+
// - One or more input array values don't map to a hex octet (leading to
|
1904
|
+
// "undefined" in the uuid)
|
1905
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
1906
|
+
|
1907
|
+
if (!validate(uuid)) {
|
1908
|
+
throw TypeError('Stringified UUID is invalid');
|
1909
|
+
}
|
1910
|
+
|
1911
|
+
return uuid;
|
1912
|
+
}
|
1913
|
+
|
1914
|
+
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
1915
|
+
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/v4.js
|
1916
|
+
|
1917
|
+
|
1918
|
+
|
1919
|
+
|
1920
|
+
function v4(options, buf, offset) {
|
1921
|
+
if (esm_browser_native.randomUUID && !buf && !options) {
|
1922
|
+
return esm_browser_native.randomUUID();
|
1923
|
+
}
|
1924
|
+
|
1925
|
+
options = options || {};
|
1926
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
1927
|
+
|
1928
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
1929
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
1930
|
+
|
1931
|
+
if (buf) {
|
1932
|
+
offset = offset || 0;
|
1933
|
+
|
1934
|
+
for (let i = 0; i < 16; ++i) {
|
1935
|
+
buf[offset + i] = rnds[i];
|
1936
|
+
}
|
1937
|
+
|
1938
|
+
return buf;
|
1939
|
+
}
|
1940
|
+
|
1941
|
+
return unsafeStringify(rnds);
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
/* harmony default export */ const esm_browser_v4 = (v4);
|
2127
1945
|
;// CONCATENATED MODULE: ../../packages/tree/src/use-tree-init.tsx
|
2128
1946
|
|
2129
1947
|
|
@@ -2204,9 +2022,9 @@ var use_tree_init_this = undefined;
|
|
2204
2022
|
function getUid(item) {
|
2205
2023
|
var uid = null;
|
2206
2024
|
if (typeof props.nodeKey === 'string') {
|
2207
|
-
uid = item[props.nodeKey] || (
|
2025
|
+
uid = item[props.nodeKey] || esm_browser_v4();
|
2208
2026
|
}
|
2209
|
-
return uid || item[NODE_ATTRIBUTES.UUID] || (
|
2027
|
+
return uid || item[NODE_ATTRIBUTES.UUID] || esm_browser_v4();
|
2210
2028
|
}
|
2211
2029
|
/**
|
2212
2030
|
* 默认设置
|
@@ -2716,7 +2534,5 @@ var use_tree_init_this = undefined;
|
|
2716
2534
|
|
2717
2535
|
var BkTree = (0,external_shared_namespaceObject.withInstall)(tree);
|
2718
2536
|
/* harmony default export */ const src = (BkTree);
|
2719
|
-
})();
|
2720
|
-
|
2721
2537
|
var __webpack_exports__default = __webpack_exports__.Z;
|
2722
2538
|
export { __webpack_exports__default as default };
|
package/lib/tree/tree.css
CHANGED
@@ -1,3 +1,125 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--font-size-base: 12px;
|
15
|
+
--font-size-medium: 14px;
|
16
|
+
--font-size-large: 16px;
|
17
|
+
--line-height-base: 16px;
|
18
|
+
--line-height-medium: 16px;
|
19
|
+
--line-height-large: 18px;
|
20
|
+
--component-size-small: 26px;
|
21
|
+
--component-size-base: 32px;
|
22
|
+
--component-size-large: 40px;
|
23
|
+
--border-width-base: 1px;
|
24
|
+
--border-style-base: solid;
|
25
|
+
--border-radius-base: 2px;
|
26
|
+
--border-style-color: var(--light-gray);
|
27
|
+
--input-disabled-bg: #fafbfd;
|
28
|
+
--input-disabled-border: var(--disable-color);
|
29
|
+
--input-height-base: var(--component-size-base);
|
30
|
+
--input-color: var(--default-color);
|
31
|
+
--input-bg: white;
|
32
|
+
--input-border-color: var(--light-gray);
|
33
|
+
--input-broder-radius: 3px;
|
34
|
+
--input-shadow-color: #a3c5fd;
|
35
|
+
--input-horizontal-padding: 10px;
|
36
|
+
--input-block-color: #f5f7fa;
|
37
|
+
--input-block-hover-color: #eaebf0;
|
38
|
+
--input-icon-size: var(--font-size-medium);
|
39
|
+
--input-maxlength-color: #979ba5;
|
40
|
+
--button-primary-hover-color: #5594fa;
|
41
|
+
--button-danger-hover-color: #ff5656;
|
42
|
+
--button-success-hover-color: #45e35f;
|
43
|
+
--button-warning-hover-color: #ffb848;
|
44
|
+
--button-default-hover-border-color: #979ba5;
|
45
|
+
--button-primary-active-color: #2c77f4;
|
46
|
+
--button-danger-active-color: #db2626;
|
47
|
+
--button-success-active-color: #1ab943;
|
48
|
+
--button-warning-active-color: #eb9000;
|
49
|
+
--button-selected-bg-color: #e1ecff;
|
50
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
51
|
+
--radio-font-color: #63656e;
|
52
|
+
--radio-active-color: #3a84ff;
|
53
|
+
--radio-hover-border-color: #979ba5;
|
54
|
+
--radio-disabled-border: #dcdee5;
|
55
|
+
--radio-disabled-font-color: #c4c6cc;
|
56
|
+
--radio-disabled-checked-bg: #a3c5fd;
|
57
|
+
--radio-button-checked-bg: #e1ecff;
|
58
|
+
--radio-button-disabled-checked-bg: #fafbfd;
|
59
|
+
--checkbox-disabled-checked-bg: #a3c5fd;
|
60
|
+
--fixed-navbar-background: #fff;
|
61
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
62
|
+
--switch-default-color: #fff;
|
63
|
+
--switch-grey-color: #c4c6cc;
|
64
|
+
--breadcrumb-black-color: #979ba5;
|
65
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
66
|
+
--breadcrumb-fn-main-color: #63656e;
|
67
|
+
--link-default-hover-color: #979ba5;
|
68
|
+
--link-primary-hover-color: #699df4;
|
69
|
+
--link-success-hover-color: #45e35f;
|
70
|
+
--link-warning-hover-color: #ffb848;
|
71
|
+
--link-danger-hover-color: #ff5656;
|
72
|
+
--link-default-disabled-color: #dcdee5;
|
73
|
+
--link-primary-disabled-color: #a3c5fd;
|
74
|
+
--link-success-disabled-color: #94f5a4;
|
75
|
+
--link-warning-disabled-color: #ffd695;
|
76
|
+
--link-danger-disabled-color: #fd9c9c;
|
77
|
+
--message-color: var(--default-color);
|
78
|
+
--message-primary-bg-color: #f0f8ff;
|
79
|
+
--message-primary-border-color: #e1ecff;
|
80
|
+
--message-primary-shadow-color: #e1e8f4;
|
81
|
+
--message-warning-bg-color: #fff4e2;
|
82
|
+
--message-warning-border-color: #ffe8c3;
|
83
|
+
--message-warning-shadow-color: #ede6db;
|
84
|
+
--message-success-bg-color: #f2fff4;
|
85
|
+
--message-success-border-color: #dcffe2;
|
86
|
+
--message-success-shadow-color: #cef0d7;
|
87
|
+
--message-danger-bg-color: #ffeded;
|
88
|
+
--message-danger-border-color: #ffdddd;
|
89
|
+
--message-danger-shadow-color: #f6dada;
|
90
|
+
--slider-default-bg: #dcdee5;
|
91
|
+
--slider-disable-bar-bg: #979ba5;
|
92
|
+
--menu-bg-color: #182132;
|
93
|
+
--submenu-bg-color: #151d2c;
|
94
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
95
|
+
--menu-color: #96a2b9;
|
96
|
+
--menu-group-color: var(--default-color);
|
97
|
+
--menu-width: 260px;
|
98
|
+
--menu-collapse-width: 60px;
|
99
|
+
--menu-active-color: white;
|
100
|
+
--nav-header-bg-color: #182132;
|
101
|
+
--nav-bg-color: #182132;
|
102
|
+
--date-picker-disabled-bg: #fafbfd;
|
103
|
+
--date-picker-dropdown-mb: 4px;
|
104
|
+
--date-picker-dropdown-bg: #fff;
|
105
|
+
--table-bg-color: var(--white-color);
|
106
|
+
--table-border-color: #dcdee5;
|
107
|
+
--table-head-bg-color: #fafbfd;
|
108
|
+
--table-head-font-color: #313238;
|
109
|
+
--table-body-font-color: #63656E;
|
110
|
+
--table-row-hover-bg-color: #f5f7fa;
|
111
|
+
--table-row-active-bg-color: #f0f1f5;
|
112
|
+
--cascader-panel-border-color: #dcdee5;
|
113
|
+
--cascader-panel-hover: #f5f7fa;
|
114
|
+
--cascader-panel-active: #e1ecff;
|
115
|
+
--cascader-panel-disabled-bg: #fff;
|
116
|
+
--search-select-focus-border-color: var(--primary-color);
|
117
|
+
--search-select-focus-color: #3c96ff;
|
118
|
+
--search-select-font-color: var(--default-color);
|
119
|
+
--search-select-placeholder-color: var(--light-gray);
|
120
|
+
--search-select-message-color: var(--danger-color);
|
121
|
+
--search-select-menu-border-color: var(--disable-color);
|
122
|
+
}
|
1
123
|
.bk-F-scroll-x {
|
2
124
|
overflow-x: auto;
|
3
125
|
scrollbar-color: #a0a0a0 transparent;
|
@@ -49,8 +171,8 @@
|
|
49
171
|
margin-left: 30px;
|
50
172
|
}
|
51
173
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
52
|
-
background:
|
53
|
-
border-color:
|
174
|
+
background: var(--primary-color);
|
175
|
+
border-color: var(--primary-color);
|
54
176
|
transition: all 0.1s;
|
55
177
|
}
|
56
178
|
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
@@ -71,8 +193,8 @@
|
|
71
193
|
transform-origin: center;
|
72
194
|
}
|
73
195
|
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
74
|
-
background:
|
75
|
-
border-color:
|
196
|
+
background: var(--primary-color);
|
197
|
+
border-color: var(--primary-color);
|
76
198
|
transition: all 0.1s;
|
77
199
|
}
|
78
200
|
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
@@ -97,17 +219,17 @@
|
|
97
219
|
}
|
98
220
|
.bk-checkbox.is-disabled .bk-checkbox-input {
|
99
221
|
background: #fafbfd;
|
100
|
-
border-color:
|
222
|
+
border-color: var(--disable-color);
|
101
223
|
}
|
102
224
|
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
103
|
-
background:
|
225
|
+
background: var(--disable-color);
|
104
226
|
}
|
105
227
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
106
|
-
background:
|
107
|
-
border-color:
|
228
|
+
background: var(--checkbox-disabled-checked-bg);
|
229
|
+
border-color: var(--checkbox-disabled-checked-bg);
|
108
230
|
}
|
109
231
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
110
|
-
background:
|
232
|
+
background: var(--checkbox-disabled-checked-bg);
|
111
233
|
}
|
112
234
|
.bk-checkbox-input {
|
113
235
|
position: relative;
|